Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for aiksaurus 1.2.
4 #
5 # Report bugs to <http://aiksaurus.sourceforge.net/>.
6 #
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
23 fi
24 DUALCASE=1; export DUALCASE # for MKS sh
25
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 as_unset=unset
29 else
30 as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
45 do
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
50 fi
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56 else
57 as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62 else
63 as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
78
79
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
97 fi
98 rm -f conf$$.sh
99 fi
100
101
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
118
119 ;;
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
125 fi
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
129 fi
130 case $CONFIG_SHELL in
131 '')
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
139 /*)
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154 done
155 ;;
156 esac
157
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
168 N
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
179
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
186 }
187
188
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198 else
199 as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
212 fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215 else
216 as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222 else
223 test -d ./-p && rmdir ./-p
224 as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS=" $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
246
247 # Check that we are running under the correct shell.
248 SHELL=${CONFIG_SHELL-/bin/sh}
249
250 case X$ECHO in
251 X*--fallback-echo)
252 # Remove one level of quotation (which was required for Make).
253 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
254 ;;
255 esac
256
257 echo=${ECHO-echo}
258 if test "X$1" = X--no-reexec; then
259 # Discard the --no-reexec flag, and continue.
260 shift
261 elif test "X$1" = X--fallback-echo; then
262 # Avoid inline document here, it may be left over
263 :
264 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265 # Yippee, $echo works!
266 :
267 else
268 # Restart under the correct shell.
269 exec $SHELL "$0" --no-reexec ${1+"$@"}
270 fi
271
272 if test "X$1" = X--fallback-echo; then
273 # used as fallback echo
274 shift
275 cat <<EOF
276 $*
277 EOF
278 exit 0
279 fi
280
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
282 # if CDPATH is set.
283 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
284
285 if test -z "$ECHO"; then
286 if test "X${echo_test_string+set}" != Xset; then
287 # find a string as large as possible, as long as the shell can cope with it
288 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
291 echo_test_string="`eval $cmd`" &&
292 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293 then
294 break
295 fi
296 done
297 fi
298
299 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301 test "X$echo_testing_string" = "X$echo_test_string"; then
302 :
303 else
304 # The Solaris, AIX, and Digital Unix default echo programs unquote
305 # backslashes. This makes it impossible to quote backslashes using
306 # echo "$something" | sed 's/\\/\\\\/g'
307 #
308 # So, first we look for a working echo in the user's PATH.
309
310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311 for dir in $PATH /usr/ucb; do
312 IFS="$lt_save_ifs"
313 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316 test "X$echo_testing_string" = "X$echo_test_string"; then
317 echo="$dir/echo"
318 break
319 fi
320 done
321 IFS="$lt_save_ifs"
322
323 if test "X$echo" = Xecho; then
324 # We didn't find a better echo, so look for alternatives.
325 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327 test "X$echo_testing_string" = "X$echo_test_string"; then
328 # This shell has a builtin print -r that does the trick.
329 echo='print -r'
330 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331 test "X$CONFIG_SHELL" != X/bin/ksh; then
332 # If we have ksh, try running configure again with it.
333 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334 export ORIGINAL_CONFIG_SHELL
335 CONFIG_SHELL=/bin/ksh
336 export CONFIG_SHELL
337 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338 else
339 # Try using printf.
340 echo='printf %s\n'
341 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343 test "X$echo_testing_string" = "X$echo_test_string"; then
344 # Cool, printf works
345 :
346 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347 test "X$echo_testing_string" = 'X\t' &&
348 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349 test "X$echo_testing_string" = "X$echo_test_string"; then
350 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351 export CONFIG_SHELL
352 SHELL="$CONFIG_SHELL"
353 export SHELL
354 echo="$CONFIG_SHELL $0 --fallback-echo"
355 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356 test "X$echo_testing_string" = 'X\t' &&
357 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358 test "X$echo_testing_string" = "X$echo_test_string"; then
359 echo="$CONFIG_SHELL $0 --fallback-echo"
360 else
361 # maybe with a smaller string...
362 prev=:
363
364 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366 then
367 break
368 fi
369 prev="$cmd"
370 done
371
372 if test "$prev" != 'sed 50q "$0"'; then
373 echo_test_string=`eval $prev`
374 export echo_test_string
375 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376 else
377 # Oops. We lost completely, so just stick with echo.
378 echo=echo
379 fi
380 fi
381 fi
382 fi
383 fi
384 fi
385
386 # Copy echo and quote the copy suitably for passing to libtool from
387 # the Makefile, instead of quoting the original, which is used later.
388 ECHO=$echo
389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
391 fi
392
393
394
395
396 tagnames=${tagnames+${tagnames},}CXX
397
398 tagnames=${tagnames+${tagnames},}F77
399
400 # Name of the host.
401 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402 # so uname gets run too.
403 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
405 exec 6>&1
406
407 #
408 # Initializations.
409 #
410 ac_default_prefix=/usr/local
411 ac_config_libobj_dir=.
412 cross_compiling=no
413 subdirs=
414 MFLAGS=
415 MAKEFLAGS=
416 SHELL=${CONFIG_SHELL-/bin/sh}
417
418 # Maximum number of lines to put in a shell here document.
419 # This variable seems obsolete. It should probably be removed, and
420 # only ac_max_sed_lines should be used.
421 : ${ac_max_here_lines=38}
422
423 # Identity of this package.
424 PACKAGE_NAME='aiksaurus'
425 PACKAGE_TARNAME='aiksaurus'
426 PACKAGE_VERSION='1.2'
427 PACKAGE_STRING='aiksaurus 1.2'
428 PACKAGE_BUGREPORT='http://aiksaurus.sourceforge.net/'
429
430 ac_unique_file="base/Aiksaurus.h"
431 # Factoring default headers for most tests.
432 ac_includes_default="\
433 #include <stdio.h>
434 #if HAVE_SYS_TYPES_H
435 # include <sys/types.h>
436 #endif
437 #if HAVE_SYS_STAT_H
438 # include <sys/stat.h>
439 #endif
440 #if STDC_HEADERS
441 # include <stdlib.h>
442 # include <stddef.h>
443 #else
444 # if HAVE_STDLIB_H
445 # include <stdlib.h>
446 # endif
447 #endif
448 #if HAVE_STRING_H
449 # if !STDC_HEADERS && HAVE_MEMORY_H
450 # include <memory.h>
451 # endif
452 # include <string.h>
453 #endif
454 #if HAVE_STRINGS_H
455 # include <strings.h>
456 #endif
457 #if HAVE_INTTYPES_H
458 # include <inttypes.h>
459 #else
460 # if HAVE_STDINT_H
461 # include <stdint.h>
462 # endif
463 #endif
464 #if HAVE_UNISTD_H
465 # include <unistd.h>
466 #endif"
467
468 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 AIKSAURUS_VERSION AIKSAURUS_RELEASE LT_RELEASE LT_AIK_VERSION_INFO LT_AIKGTK_VERSION_INFO INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE LN_S build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_DEFS AIK_FE_GTK_TRUE AIK_FE_GTK_FALSE PLATFORM_WIN32_TRUE PLATFORM_WIN32_FALSE LIBOBJS LTLIBOBJS'
469 ac_subst_files=''
470
471 # Initialize some variables set by options.
472 ac_init_help=
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
476 cache_file=/dev/null
477 exec_prefix=NONE
478 no_create=
479 no_recursion=
480 prefix=NONE
481 program_prefix=NONE
482 program_suffix=NONE
483 program_transform_name=s,x,x,
484 silent=
485 site=
486 srcdir=
487 verbose=
488 x_includes=NONE
489 x_libraries=NONE
490
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
508
509 ac_prev=
510 for ac_option
511 do
512 # If the previous option needs an argument, assign it.
513 if test -n "$ac_prev"; then
514 eval "$ac_prev=\$ac_option"
515 ac_prev=
516 continue
517 fi
518
519 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
521 # Accept the important Cygnus configure options, so we can diagnose typos.
522
523 case $ac_option in
524
525 -bindir | --bindir | --bindi | --bind | --bin | --bi)
526 ac_prev=bindir ;;
527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528 bindir=$ac_optarg ;;
529
530 -build | --build | --buil | --bui | --bu)
531 ac_prev=build_alias ;;
532 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533 build_alias=$ac_optarg ;;
534
535 -cache-file | --cache-file | --cache-fil | --cache-fi \
536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537 ac_prev=cache_file ;;
538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540 cache_file=$ac_optarg ;;
541
542 --config-cache | -C)
543 cache_file=config.cache ;;
544
545 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546 ac_prev=datadir ;;
547 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548 | --da=*)
549 datadir=$ac_optarg ;;
550
551 -disable-* | --disable-*)
552 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553 # Reject names that are not valid shell variable names.
554 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556 { (exit 1); exit 1; }; }
557 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558 eval "enable_$ac_feature=no" ;;
559
560 -enable-* | --enable-*)
561 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562 # Reject names that are not valid shell variable names.
563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565 { (exit 1); exit 1; }; }
566 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567 case $ac_option in
568 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569 *) ac_optarg=yes ;;
570 esac
571 eval "enable_$ac_feature='$ac_optarg'" ;;
572
573 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575 | --exec | --exe | --ex)
576 ac_prev=exec_prefix ;;
577 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579 | --exec=* | --exe=* | --ex=*)
580 exec_prefix=$ac_optarg ;;
581
582 -gas | --gas | --ga | --g)
583 # Obsolete; use --with-gas.
584 with_gas=yes ;;
585
586 -help | --help | --hel | --he | -h)
587 ac_init_help=long ;;
588 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589 ac_init_help=recursive ;;
590 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591 ac_init_help=short ;;
592
593 -host | --host | --hos | --ho)
594 ac_prev=host_alias ;;
595 -host=* | --host=* | --hos=* | --ho=*)
596 host_alias=$ac_optarg ;;
597
598 -includedir | --includedir | --includedi | --included | --include \
599 | --includ | --inclu | --incl | --inc)
600 ac_prev=includedir ;;
601 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602 | --includ=* | --inclu=* | --incl=* | --inc=*)
603 includedir=$ac_optarg ;;
604
605 -infodir | --infodir | --infodi | --infod | --info | --inf)
606 ac_prev=infodir ;;
607 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608 infodir=$ac_optarg ;;
609
610 -libdir | --libdir | --libdi | --libd)
611 ac_prev=libdir ;;
612 -libdir=* | --libdir=* | --libdi=* | --libd=*)
613 libdir=$ac_optarg ;;
614
615 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616 | --libexe | --libex | --libe)
617 ac_prev=libexecdir ;;
618 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619 | --libexe=* | --libex=* | --libe=*)
620 libexecdir=$ac_optarg ;;
621
622 -localstatedir | --localstatedir | --localstatedi | --localstated \
623 | --localstate | --localstat | --localsta | --localst \
624 | --locals | --local | --loca | --loc | --lo)
625 ac_prev=localstatedir ;;
626 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629 localstatedir=$ac_optarg ;;
630
631 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632 ac_prev=mandir ;;
633 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634 mandir=$ac_optarg ;;
635
636 -nfp | --nfp | --nf)
637 # Obsolete; use --without-fp.
638 with_fp=no ;;
639
640 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641 | --no-cr | --no-c | -n)
642 no_create=yes ;;
643
644 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646 no_recursion=yes ;;
647
648 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650 | --oldin | --oldi | --old | --ol | --o)
651 ac_prev=oldincludedir ;;
652 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655 oldincludedir=$ac_optarg ;;
656
657 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658 ac_prev=prefix ;;
659 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660 prefix=$ac_optarg ;;
661
662 -program-prefix | --program-prefix | --program-prefi | --program-pref \
663 | --program-pre | --program-pr | --program-p)
664 ac_prev=program_prefix ;;
665 -program-prefix=* | --program-prefix=* | --program-prefi=* \
666 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667 program_prefix=$ac_optarg ;;
668
669 -program-suffix | --program-suffix | --program-suffi | --program-suff \
670 | --program-suf | --program-su | --program-s)
671 ac_prev=program_suffix ;;
672 -program-suffix=* | --program-suffix=* | --program-suffi=* \
673 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674 program_suffix=$ac_optarg ;;
675
676 -program-transform-name | --program-transform-name \
677 | --program-transform-nam | --program-transform-na \
678 | --program-transform-n | --program-transform- \
679 | --program-transform | --program-transfor \
680 | --program-transfo | --program-transf \
681 | --program-trans | --program-tran \
682 | --progr-tra | --program-tr | --program-t)
683 ac_prev=program_transform_name ;;
684 -program-transform-name=* | --program-transform-name=* \
685 | --program-transform-nam=* | --program-transform-na=* \
686 | --program-transform-n=* | --program-transform-=* \
687 | --program-transform=* | --program-transfor=* \
688 | --program-transfo=* | --program-transf=* \
689 | --program-trans=* | --program-tran=* \
690 | --progr-tra=* | --program-tr=* | --program-t=*)
691 program_transform_name=$ac_optarg ;;
692
693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694 | -silent | --silent | --silen | --sile | --sil)
695 silent=yes ;;
696
697 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698 ac_prev=sbindir ;;
699 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700 | --sbi=* | --sb=*)
701 sbindir=$ac_optarg ;;
702
703 -sharedstatedir | --sharedstatedir | --sharedstatedi \
704 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705 | --sharedst | --shareds | --shared | --share | --shar \
706 | --sha | --sh)
707 ac_prev=sharedstatedir ;;
708 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711 | --sha=* | --sh=*)
712 sharedstatedir=$ac_optarg ;;
713
714 -site | --site | --sit)
715 ac_prev=site ;;
716 -site=* | --site=* | --sit=*)
717 site=$ac_optarg ;;
718
719 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720 ac_prev=srcdir ;;
721 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722 srcdir=$ac_optarg ;;
723
724 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725 | --syscon | --sysco | --sysc | --sys | --sy)
726 ac_prev=sysconfdir ;;
727 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729 sysconfdir=$ac_optarg ;;
730
731 -target | --target | --targe | --targ | --tar | --ta | --t)
732 ac_prev=target_alias ;;
733 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734 target_alias=$ac_optarg ;;
735
736 -v | -verbose | --verbose | --verbos | --verbo | --verb)
737 verbose=yes ;;
738
739 -version | --version | --versio | --versi | --vers | -V)
740 ac_init_version=: ;;
741
742 -with-* | --with-*)
743 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744 # Reject names that are not valid shell variable names.
745 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746 { echo "$as_me: error: invalid package name: $ac_package" >&2
747 { (exit 1); exit 1; }; }
748 ac_package=`echo $ac_package| sed 's/-/_/g'`
749 case $ac_option in
750 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751 *) ac_optarg=yes ;;
752 esac
753 eval "with_$ac_package='$ac_optarg'" ;;
754
755 -without-* | --without-*)
756 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757 # Reject names that are not valid shell variable names.
758 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759 { echo "$as_me: error: invalid package name: $ac_package" >&2
760 { (exit 1); exit 1; }; }
761 ac_package=`echo $ac_package | sed 's/-/_/g'`
762 eval "with_$ac_package=no" ;;
763
764 --x)
765 # Obsolete; use --with-x.
766 with_x=yes ;;
767
768 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769 | --x-incl | --x-inc | --x-in | --x-i)
770 ac_prev=x_includes ;;
771 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773 x_includes=$ac_optarg ;;
774
775 -x-libraries | --x-libraries | --x-librarie | --x-librari \
776 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777 ac_prev=x_libraries ;;
778 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780 x_libraries=$ac_optarg ;;
781
782 -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784 { (exit 1); exit 1; }; }
785 ;;
786
787 *=*)
788 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789 # Reject names that are not valid shell variable names.
790 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792 { (exit 1); exit 1; }; }
793 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794 eval "$ac_envvar='$ac_optarg'"
795 export $ac_envvar ;;
796
797 *)
798 # FIXME: should be removed in autoconf 3.0.
799 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803 ;;
804
805 esac
806 done
807
808 if test -n "$ac_prev"; then
809 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810 { echo "$as_me: error: missing argument to $ac_option" >&2
811 { (exit 1); exit 1; }; }
812 fi
813
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
816 do
817 eval ac_val=$`echo $ac_var`
818 case $ac_val in
819 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821 { (exit 1); exit 1; }; };;
822 esac
823 done
824
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827 localstatedir libdir includedir oldincludedir infodir mandir
828 do
829 eval ac_val=$`echo $ac_var`
830 case $ac_val in
831 [\\/$]* | ?:[\\/]* ) ;;
832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833 { (exit 1); exit 1; }; };;
834 esac
835 done
836
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
840 build=$build_alias
841 host=$host_alias
842 target=$target_alias
843
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846 if test "x$build_alias" = x; then
847 cross_compiling=maybe
848 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849 If a cross compiler is detected then cross compile mode will be used." >&2
850 elif test "x$build_alias" != "x$host_alias"; then
851 cross_compiling=yes
852 fi
853 fi
854
855 ac_tool_prefix=
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
858 test "$silent" = yes && exec 6>/dev/null
859
860
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863 ac_srcdir_defaulted=yes
864 # Try the directory containing this script, then its parent.
865 ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867 X"$0" : 'X\(//\)[^/]' \| \
868 X"$0" : 'X\(//\)$' \| \
869 X"$0" : 'X\(/\)' \| \
870 . : '\(.\)' 2>/dev/null ||
871 echo X"$0" |
872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874 /^X\(\/\/\)$/{ s//\1/; q; }
875 /^X\(\/\).*/{ s//\1/; q; }
876 s/.*/./; q'`
877 srcdir=$ac_confdir
878 if test ! -r $srcdir/$ac_unique_file; then
879 srcdir=..
880 fi
881 else
882 ac_srcdir_defaulted=no
883 fi
884 if test ! -r $srcdir/$ac_unique_file; then
885 if test "$ac_srcdir_defaulted" = yes; then
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887 { (exit 1); exit 1; }; }
888 else
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890 { (exit 1); exit 1; }; }
891 fi
892 fi
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895 { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CC_set=${CC+set}
910 ac_env_CC_value=$CC
911 ac_cv_env_CC_set=${CC+set}
912 ac_cv_env_CC_value=$CC
913 ac_env_CFLAGS_set=${CFLAGS+set}
914 ac_env_CFLAGS_value=$CFLAGS
915 ac_cv_env_CFLAGS_set=${CFLAGS+set}
916 ac_cv_env_CFLAGS_value=$CFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CPP_set=${CPP+set}
926 ac_env_CPP_value=$CPP
927 ac_cv_env_CPP_set=${CPP+set}
928 ac_cv_env_CPP_value=$CPP
929 ac_env_CXX_set=${CXX+set}
930 ac_env_CXX_value=$CXX
931 ac_cv_env_CXX_set=${CXX+set}
932 ac_cv_env_CXX_value=$CXX
933 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
934 ac_env_CXXFLAGS_value=$CXXFLAGS
935 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
936 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
937 ac_env_CXXCPP_set=${CXXCPP+set}
938 ac_env_CXXCPP_value=$CXXCPP
939 ac_cv_env_CXXCPP_set=${CXXCPP+set}
940 ac_cv_env_CXXCPP_value=$CXXCPP
941 ac_env_F77_set=${F77+set}
942 ac_env_F77_value=$F77
943 ac_cv_env_F77_set=${F77+set}
944 ac_cv_env_F77_value=$F77
945 ac_env_FFLAGS_set=${FFLAGS+set}
946 ac_env_FFLAGS_value=$FFLAGS
947 ac_cv_env_FFLAGS_set=${FFLAGS+set}
948 ac_cv_env_FFLAGS_value=$FFLAGS
949
950 #
951 # Report the --help message.
952 #
953 if test "$ac_init_help" = "long"; then
954 # Omit some internal or obsolete options to make the list less imposing.
955 # This message is too long to be a string in the A/UX 3.1 sh.
956 cat <<_ACEOF
957 \`configure' configures aiksaurus 1.2 to adapt to many kinds of systems.
958
959 Usage: $0 [OPTION]... [VAR=VALUE]...
960
961 To assign environment variables (e.g., CC, CFLAGS...), specify them as
962 VAR=VALUE. See below for descriptions of some of the useful variables.
963
964 Defaults for the options are specified in brackets.
965
966 Configuration:
967 -h, --help display this help and exit
968 --help=short display options specific to this package
969 --help=recursive display the short help of all the included packages
970 -V, --version display version information and exit
971 -q, --quiet, --silent do not print \`checking...' messages
972 --cache-file=FILE cache test results in FILE [disabled]
973 -C, --config-cache alias for \`--cache-file=config.cache'
974 -n, --no-create do not create output files
975 --srcdir=DIR find the sources in DIR [configure dir or \`..']
976
977 _ACEOF
978
979 cat <<_ACEOF
980 Installation directories:
981 --prefix=PREFIX install architecture-independent files in PREFIX
982 [$ac_default_prefix]
983 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
984 [PREFIX]
985
986 By default, \`make install' will install all the files in
987 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
988 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989 for instance \`--prefix=\$HOME'.
990
991 For better control, use the options below.
992
993 Fine tuning of the installation directories:
994 --bindir=DIR user executables [EPREFIX/bin]
995 --sbindir=DIR system admin executables [EPREFIX/sbin]
996 --libexecdir=DIR program executables [EPREFIX/libexec]
997 --datadir=DIR read-only architecture-independent data [PREFIX/share]
998 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
999 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1000 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1001 --libdir=DIR object code libraries [EPREFIX/lib]
1002 --includedir=DIR C header files [PREFIX/include]
1003 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1004 --infodir=DIR info documentation [PREFIX/info]
1005 --mandir=DIR man documentation [PREFIX/man]
1006 _ACEOF
1007
1008 cat <<\_ACEOF
1009
1010 Program names:
1011 --program-prefix=PREFIX prepend PREFIX to installed program names
1012 --program-suffix=SUFFIX append SUFFIX to installed program names
1013 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1014
1015 System types:
1016 --build=BUILD configure for building on BUILD [guessed]
1017 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1018 _ACEOF
1019 fi
1020
1021 if test -n "$ac_init_help"; then
1022 case $ac_init_help in
1023 short | recursive ) echo "Configuration of aiksaurus 1.2:";;
1024 esac
1025 cat <<\_ACEOF
1026
1027 Optional Features:
1028 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1029 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1030 --disable-dependency-tracking speeds up one-time build
1031 --enable-dependency-tracking do not reject slow dependency extractors
1032 --enable-static[=PKGS]
1033 build static libraries [default=no]
1034 --enable-shared[=PKGS]
1035 build shared libraries [default=yes]
1036 --enable-fast-install[=PKGS]
1037 optimize for fast installation [default=yes]
1038 --disable-libtool-lock avoid locking (might break parallel builds)
1039
1040 Optional Packages:
1041 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1042 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1043 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1044 --with-pic try to use only PIC/non-PIC objects [default=use
1045 both]
1046 --with-tags[=TAGS]
1047 include additional configurations [automatic]
1048 --with-gtk build gtk front-end
1049
1050 Some influential environment variables:
1051 CC C compiler command
1052 CFLAGS C compiler flags
1053 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1054 nonstandard directory <lib dir>
1055 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1056 headers in a nonstandard directory <include dir>
1057 CPP C preprocessor
1058 CXX C++ compiler command
1059 CXXFLAGS C++ compiler flags
1060 CXXCPP C++ preprocessor
1061 F77 Fortran 77 compiler command
1062 FFLAGS Fortran 77 compiler flags
1063
1064 Use these variables to override the choices made by `configure' or to help
1065 it to find libraries and programs with nonstandard names/locations.
1066
1067 Report bugs to <http://aiksaurus.sourceforge.net/>.
1068 _ACEOF
1069 fi
1070
1071 if test "$ac_init_help" = "recursive"; then
1072 # If there are subdirs, report their specific --help.
1073 ac_popdir=`pwd`
1074 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1075 test -d $ac_dir || continue
1076 ac_builddir=.
1077
1078 if test "$ac_dir" != .; then
1079 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1080 # A "../" for each directory in $ac_dir_suffix.
1081 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1082 else
1083 ac_dir_suffix= ac_top_builddir=
1084 fi
1085
1086 case $srcdir in
1087 .) # No --srcdir option. We are building in place.
1088 ac_srcdir=.
1089 if test -z "$ac_top_builddir"; then
1090 ac_top_srcdir=.
1091 else
1092 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1093 fi ;;
1094 [\\/]* | ?:[\\/]* ) # Absolute path.
1095 ac_srcdir=$srcdir$ac_dir_suffix;
1096 ac_top_srcdir=$srcdir ;;
1097 *) # Relative path.
1098 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1099 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1100 esac
1101
1102 # Do not use `cd foo && pwd` to compute absolute paths, because
1103 # the directories may not exist.
1104 case `pwd` in
1105 .) ac_abs_builddir="$ac_dir";;
1106 *)
1107 case "$ac_dir" in
1108 .) ac_abs_builddir=`pwd`;;
1109 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1110 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1111 esac;;
1112 esac
1113 case $ac_abs_builddir in
1114 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1115 *)
1116 case ${ac_top_builddir}. in
1117 .) ac_abs_top_builddir=$ac_abs_builddir;;
1118 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1119 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1120 esac;;
1121 esac
1122 case $ac_abs_builddir in
1123 .) ac_abs_srcdir=$ac_srcdir;;
1124 *)
1125 case $ac_srcdir in
1126 .) ac_abs_srcdir=$ac_abs_builddir;;
1127 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1128 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1129 esac;;
1130 esac
1131 case $ac_abs_builddir in
1132 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1133 *)
1134 case $ac_top_srcdir in
1135 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1136 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1137 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1138 esac;;
1139 esac
1140
1141 cd $ac_dir
1142 # Check for guested configure; otherwise get Cygnus style configure.
1143 if test -f $ac_srcdir/configure.gnu; then
1144 echo
1145 $SHELL $ac_srcdir/configure.gnu --help=recursive
1146 elif test -f $ac_srcdir/configure; then
1147 echo
1148 $SHELL $ac_srcdir/configure --help=recursive
1149 elif test -f $ac_srcdir/configure.ac ||
1150 test -f $ac_srcdir/configure.in; then
1151 echo
1152 $ac_configure --help
1153 else
1154 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1155 fi
1156 cd $ac_popdir
1157 done
1158 fi
1159
1160 test -n "$ac_init_help" && exit 0
1161 if $ac_init_version; then
1162 cat <<\_ACEOF
1163 aiksaurus configure 1.2
1164 generated by GNU Autoconf 2.59
1165
1166 Copyright (C) 2003 Free Software Foundation, Inc.
1167 This configure script is free software; the Free Software Foundation
1168 gives unlimited permission to copy, distribute and modify it.
1169 _ACEOF
1170 exit 0
1171 fi
1172 exec 5>config.log
1173 cat >&5 <<_ACEOF
1174 This file contains any messages produced by compilers while
1175 running configure, to aid debugging if configure makes a mistake.
1176
1177 It was created by aiksaurus $as_me 1.2, which was
1178 generated by GNU Autoconf 2.59. Invocation command line was
1179
1180 $ $0 $@
1181
1182 _ACEOF
1183 {
1184 cat <<_ASUNAME
1185 ## --------- ##
1186 ## Platform. ##
1187 ## --------- ##
1188
1189 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1190 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1191 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1192 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1193 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1194
1195 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1196 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1197
1198 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1199 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1200 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1201 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1202 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1203 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1204 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1205
1206 _ASUNAME
1207
1208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1209 for as_dir in $PATH
1210 do
1211 IFS=$as_save_IFS
1212 test -z "$as_dir" && as_dir=.
1213 echo "PATH: $as_dir"
1214 done
1215
1216 } >&5
1217
1218 cat >&5 <<_ACEOF
1219
1220
1221 ## ----------- ##
1222 ## Core tests. ##
1223 ## ----------- ##
1224
1225 _ACEOF
1226
1227
1228 # Keep a trace of the command line.
1229 # Strip out --no-create and --no-recursion so they do not pile up.
1230 # Strip out --silent because we don't want to record it for future runs.
1231 # Also quote any args containing shell meta-characters.
1232 # Make two passes to allow for proper duplicate-argument suppression.
1233 ac_configure_args=
1234 ac_configure_args0=
1235 ac_configure_args1=
1236 ac_sep=
1237 ac_must_keep_next=false
1238 for ac_pass in 1 2
1239 do
1240 for ac_arg
1241 do
1242 case $ac_arg in
1243 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1244 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1245 | -silent | --silent | --silen | --sile | --sil)
1246 continue ;;
1247 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1248 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1249 esac
1250 case $ac_pass in
1251 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1252 2)
1253 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1254 if test $ac_must_keep_next = true; then
1255 ac_must_keep_next=false # Got value, back to normal.
1256 else
1257 case $ac_arg in
1258 *=* | --config-cache | -C | -disable-* | --disable-* \
1259 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1260 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1261 | -with-* | --with-* | -without-* | --without-* | --x)
1262 case "$ac_configure_args0 " in
1263 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1264 esac
1265 ;;
1266 -* ) ac_must_keep_next=true ;;
1267 esac
1268 fi
1269 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1270 # Get rid of the leading space.
1271 ac_sep=" "
1272 ;;
1273 esac
1274 done
1275 done
1276 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1277 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1278
1279 # When interrupted or exit'd, cleanup temporary files, and complete
1280 # config.log. We remove comments because anyway the quotes in there
1281 # would cause problems or look ugly.
1282 # WARNING: Be sure not to use single quotes in there, as some shells,
1283 # such as our DU 5.0 friend, will then `close' the trap.
1284 trap 'exit_status=$?
1285 # Save into config.log some information that might help in debugging.
1286 {
1287 echo
1288
1289 cat <<\_ASBOX
1290 ## ---------------- ##
1291 ## Cache variables. ##
1292 ## ---------------- ##
1293 _ASBOX
1294 echo
1295 # The following way of writing the cache mishandles newlines in values,
1296 {
1297 (set) 2>&1 |
1298 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1299 *ac_space=\ *)
1300 sed -n \
1301 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1302 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1303 ;;
1304 *)
1305 sed -n \
1306 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1307 ;;
1308 esac;
1309 }
1310 echo
1311
1312 cat <<\_ASBOX
1313 ## ----------------- ##
1314 ## Output variables. ##
1315 ## ----------------- ##
1316 _ASBOX
1317 echo
1318 for ac_var in $ac_subst_vars
1319 do
1320 eval ac_val=$`echo $ac_var`
1321 echo "$ac_var='"'"'$ac_val'"'"'"
1322 done | sort
1323 echo
1324
1325 if test -n "$ac_subst_files"; then
1326 cat <<\_ASBOX
1327 ## ------------- ##
1328 ## Output files. ##
1329 ## ------------- ##
1330 _ASBOX
1331 echo
1332 for ac_var in $ac_subst_files
1333 do
1334 eval ac_val=$`echo $ac_var`
1335 echo "$ac_var='"'"'$ac_val'"'"'"
1336 done | sort
1337 echo
1338 fi
1339
1340 if test -s confdefs.h; then
1341 cat <<\_ASBOX
1342 ## ----------- ##
1343 ## confdefs.h. ##
1344 ## ----------- ##
1345 _ASBOX
1346 echo
1347 sed "/^$/d" confdefs.h | sort
1348 echo
1349 fi
1350 test "$ac_signal" != 0 &&
1351 echo "$as_me: caught signal $ac_signal"
1352 echo "$as_me: exit $exit_status"
1353 } >&5
1354 rm -f core *.core &&
1355 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1356 exit $exit_status
1357 ' 0
1358 for ac_signal in 1 2 13 15; do
1359 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1360 done
1361 ac_signal=0
1362
1363 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1364 rm -rf conftest* confdefs.h
1365 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1366 echo >confdefs.h
1367
1368 # Predefined preprocessor variables.
1369
1370 cat >>confdefs.h <<_ACEOF
1371 #define PACKAGE_NAME "$PACKAGE_NAME"
1372 _ACEOF
1373
1374
1375 cat >>confdefs.h <<_ACEOF
1376 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1377 _ACEOF
1378
1379
1380 cat >>confdefs.h <<_ACEOF
1381 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1382 _ACEOF
1383
1384
1385 cat >>confdefs.h <<_ACEOF
1386 #define PACKAGE_STRING "$PACKAGE_STRING"
1387 _ACEOF
1388
1389
1390 cat >>confdefs.h <<_ACEOF
1391 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1392 _ACEOF
1393
1394
1395 # Let the site file select an alternate cache file if it wants to.
1396 # Prefer explicitly selected file to automatically selected ones.
1397 if test -z "$CONFIG_SITE"; then
1398 if test "x$prefix" != xNONE; then
1399 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1400 else
1401 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1402 fi
1403 fi
1404 for ac_site_file in $CONFIG_SITE; do
1405 if test -r "$ac_site_file"; then
1406 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1407 echo "$as_me: loading site script $ac_site_file" >&6;}
1408 sed 's/^/| /' "$ac_site_file" >&5
1409 . "$ac_site_file"
1410 fi
1411 done
1412
1413 if test -r "$cache_file"; then
1414 # Some versions of bash will fail to source /dev/null (special
1415 # files actually), so we avoid doing that.
1416 if test -f "$cache_file"; then
1417 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1418 echo "$as_me: loading cache $cache_file" >&6;}
1419 case $cache_file in
1420 [\\/]* | ?:[\\/]* ) . $cache_file;;
1421 *) . ./$cache_file;;
1422 esac
1423 fi
1424 else
1425 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1426 echo "$as_me: creating cache $cache_file" >&6;}
1427 >$cache_file
1428 fi
1429
1430 # Check that the precious variables saved in the cache have kept the same
1431 # value.
1432 ac_cache_corrupted=false
1433 for ac_var in `(set) 2>&1 |
1434 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1435 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1436 eval ac_new_set=\$ac_env_${ac_var}_set
1437 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1438 eval ac_new_val="\$ac_env_${ac_var}_value"
1439 case $ac_old_set,$ac_new_set in
1440 set,)
1441 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1442 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1443 ac_cache_corrupted=: ;;
1444 ,set)
1445 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1446 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1447 ac_cache_corrupted=: ;;
1448 ,);;
1449 *)
1450 if test "x$ac_old_val" != "x$ac_new_val"; then
1451 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1452 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1453 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1454 echo "$as_me: former value: $ac_old_val" >&2;}
1455 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1456 echo "$as_me: current value: $ac_new_val" >&2;}
1457 ac_cache_corrupted=:
1458 fi;;
1459 esac
1460 # Pass precious variables to config.status.
1461 if test "$ac_new_set" = set; then
1462 case $ac_new_val in
1463 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1464 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1465 *) ac_arg=$ac_var=$ac_new_val ;;
1466 esac
1467 case " $ac_configure_args " in
1468 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1469 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1470 esac
1471 fi
1472 done
1473 if $ac_cache_corrupted; then
1474 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1475 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1476 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1477 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1478 { (exit 1); exit 1; }; }
1479 fi
1480
1481 ac_ext=c
1482 ac_cpp='$CPP $CPPFLAGS'
1483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515 # Aiksaurus, version 1.2.0
1516
1517 AIK_MAJOR_VERSION=1
1518 AIK_MINOR_VERSION=2
1519
1520 # ========================================================================
1521 # IMPORTANT: Making Releases
1522 #
1523 # AIK_MICRO_VERSION += 1;
1524 # AIK_INTERFACE_AGE += 1;
1525 # AIK_BINARY_AGE += 1;
1526 #
1527 # if any functions have been added, set AIK_INTERFACE_AGE to 0.
1528 # if backwards compatibility has been broken,
1529 # set AIK_BINARY_AGE and AIK_INTERFACE_AGE to 0.
1530 #
1531 # similarly for AIKGTK_BINARY_AGE and AIKGTK_INTERFACE_AGE:
1532
1533 AIK_MICRO_VERSION=1
1534
1535 AIK_INTERFACE_AGE=1
1536 AIK_BINARY_AGE=1
1537
1538 AIKGTK_INTERFACE_AGE=1
1539 AIKGTK_BINARY_AGE=1
1540
1541 # release number, for spec file
1542
1543 AIKSAURUS_RELEASE=1
1544
1545 #
1546 # ========================================================================
1547
1548 AIKSAURUS_VERSION=$AIK_MAJOR_VERSION.$AIK_MINOR_VERSION.$AIK_MICRO_VERSION
1549
1550 # spec file substitutions
1551 #
1552
1553
1554
1555 # libtool versioning
1556 #
1557 LT_RELEASE=$AIK_MAJOR_VERSION.$AIK_MINOR_VERSION
1558
1559
1560
1561 LT_CURRENT=`expr $AIK_MICRO_VERSION - $AIK_INTERFACE_AGE`
1562 LT_REVISION=$AIK_INTERFACE_AGE
1563 LT_AGE=`expr $AIK_BINARY_AGE - $AIK_INTERFACE_AGE`
1564
1565 LT_AIK_VERSION_INFO="$LT_CURRENT:$LT_REVISION:$LT_AGE"
1566
1567
1568
1569 LT_CURRENT=`expr $AIK_MICRO_VERSION - $AIKGTK_INTERFACE_AGE`
1570 LT_REVISION=$AIKGTK_INTERFACE_AGE
1571 LT_AGE=`expr $AIKGTK_BINARY_AGE - $AIKGTK_INTERFACE_AGE`
1572
1573 LT_AIKGTK_VERSION_INFO="$LT_CURRENT:$LT_REVISION:$LT_AGE"
1574
1575
1576
1577 # initialize automake
1578 #
1579 am__api_version="1.8"
1580 ac_aux_dir=
1581 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1582 if test -f $ac_dir/install-sh; then
1583 ac_aux_dir=$ac_dir
1584 ac_install_sh="$ac_aux_dir/install-sh -c"
1585 break
1586 elif test -f $ac_dir/install.sh; then
1587 ac_aux_dir=$ac_dir
1588 ac_install_sh="$ac_aux_dir/install.sh -c"
1589 break
1590 elif test -f $ac_dir/shtool; then
1591 ac_aux_dir=$ac_dir
1592 ac_install_sh="$ac_aux_dir/shtool install -c"
1593 break
1594 fi
1595 done
1596 if test -z "$ac_aux_dir"; then
1597 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1598 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1599 { (exit 1); exit 1; }; }
1600 fi
1601 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1602 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1603 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1604
1605 # Find a good install program. We prefer a C program (faster),
1606 # so one script is as good as another. But avoid the broken or
1607 # incompatible versions:
1608 # SysV /etc/install, /usr/sbin/install
1609 # SunOS /usr/etc/install
1610 # IRIX /sbin/install
1611 # AIX /bin/install
1612 # AmigaOS /C/install, which installs bootblocks on floppy discs
1613 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1614 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1615 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1616 # OS/2's system install, which has a completely different semantic
1617 # ./install, which can be erroneously created by make from ./install.sh.
1618 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1619 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1620 if test -z "$INSTALL"; then
1621 if test "${ac_cv_path_install+set}" = set; then
1622 echo $ECHO_N "(cached) $ECHO_C" >&6
1623 else
1624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1625 for as_dir in $PATH
1626 do
1627 IFS=$as_save_IFS
1628 test -z "$as_dir" && as_dir=.
1629 # Account for people who put trailing slashes in PATH elements.
1630 case $as_dir/ in
1631 ./ | .// | /cC/* | \
1632 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1633 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1634 /usr/ucb/* ) ;;
1635 *)
1636 # OSF1 and SCO ODT 3.0 have their own names for install.
1637 # Don't use installbsd from OSF since it installs stuff as root
1638 # by default.
1639 for ac_prog in ginstall scoinst install; do
1640 for ac_exec_ext in '' $ac_executable_extensions; do
1641 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1642 if test $ac_prog = install &&
1643 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1644 # AIX install. It has an incompatible calling convention.
1645 :
1646 elif test $ac_prog = install &&
1647 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1648 # program-specific install script used by HP pwplus--don't use.
1649 :
1650 else
1651 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1652 break 3
1653 fi
1654 fi
1655 done
1656 done
1657 ;;
1658 esac
1659 done
1660
1661
1662 fi
1663 if test "${ac_cv_path_install+set}" = set; then
1664 INSTALL=$ac_cv_path_install
1665 else
1666 # As a last resort, use the slow shell script. We don't cache a
1667 # path for INSTALL within a source directory, because that will
1668 # break other packages using the cache if that directory is
1669 # removed, or if the path is relative.
1670 INSTALL=$ac_install_sh
1671 fi
1672 fi
1673 echo "$as_me:$LINENO: result: $INSTALL" >&5
1674 echo "${ECHO_T}$INSTALL" >&6
1675
1676 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1677 # It thinks the first close brace ends the variable substitution.
1678 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1679
1680 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1681
1682 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1683
1684 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1685 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1686 # Just in case
1687 sleep 1
1688 echo timestamp > conftest.file
1689 # Do `set' in a subshell so we don't clobber the current shell's
1690 # arguments. Must try -L first in case configure is actually a
1691 # symlink; some systems play weird games with the mod time of symlinks
1692 # (eg FreeBSD returns the mod time of the symlink's containing
1693 # directory).
1694 if (
1695 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1696 if test "$*" = "X"; then
1697 # -L didn't work.
1698 set X `ls -t $srcdir/configure conftest.file`
1699 fi
1700 rm -f conftest.file
1701 if test "$*" != "X $srcdir/configure conftest.file" \
1702 && test "$*" != "X conftest.file $srcdir/configure"; then
1703
1704 # If neither matched, then we have a broken ls. This can happen
1705 # if, for instance, CONFIG_SHELL is bash and it inherits a
1706 # broken ls alias from the environment. This has actually
1707 # happened. Such a system could not be considered "sane".
1708 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1709 alias in your environment" >&5
1710 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1711 alias in your environment" >&2;}
1712 { (exit 1); exit 1; }; }
1713 fi
1714
1715 test "$2" = conftest.file
1716 )
1717 then
1718 # Ok.
1719 :
1720 else
1721 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1722 Check your system clock" >&5
1723 echo "$as_me: error: newly created file is older than distributed files!
1724 Check your system clock" >&2;}
1725 { (exit 1); exit 1; }; }
1726 fi
1727 echo "$as_me:$LINENO: result: yes" >&5
1728 echo "${ECHO_T}yes" >&6
1729 test "$program_prefix" != NONE &&
1730 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1731 # Use a double $ so make ignores it.
1732 test "$program_suffix" != NONE &&
1733 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1734 # Double any \ or $. echo might interpret backslashes.
1735 # By default was `s,x,x', remove it if useless.
1736 cat <<\_ACEOF >conftest.sed
1737 s/[\\$]/&&/g;s/;s,x,x,$//
1738 _ACEOF
1739 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1740 rm conftest.sed
1741
1742 # expand $ac_aux_dir to an absolute path
1743 am_aux_dir=`cd $ac_aux_dir && pwd`
1744
1745 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1746 # Use eval to expand $SHELL
1747 if eval "$MISSING --run true"; then
1748 am_missing_run="$MISSING --run "
1749 else
1750 am_missing_run=
1751 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1752 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1753 fi
1754
1755 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1756 # Keeping the `.' argument allows $(mkdir_p) to be used without
1757 # argument. Indeed, we sometimes output rules like
1758 # $(mkdir_p) $(somedir)
1759 # where $(somedir) is conditionally defined.
1760 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1761 # expensive solution, as it forces Make to start a sub-shell.)
1762 mkdir_p='mkdir -p -- .'
1763 else
1764 # On NextStep and OpenStep, the `mkdir' command does not
1765 # recognize any option. It will interpret all options as
1766 # directories to create, and then abort because `.' already
1767 # exists.
1768 for d in ./-p ./--version;
1769 do
1770 test -d $d && rmdir $d
1771 done
1772 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1773 if test -f "$ac_aux_dir/mkinstalldirs"; then
1774 mkdir_p='$(mkinstalldirs)'
1775 else
1776 mkdir_p='$(install_sh) -d'
1777 fi
1778 fi
1779
1780 for ac_prog in gawk mawk nawk awk
1781 do
1782 # Extract the first word of "$ac_prog", so it can be a program name with args.
1783 set dummy $ac_prog; ac_word=$2
1784 echo "$as_me:$LINENO: checking for $ac_word" >&5
1785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1786 if test "${ac_cv_prog_AWK+set}" = set; then
1787 echo $ECHO_N "(cached) $ECHO_C" >&6
1788 else
1789 if test -n "$AWK"; then
1790 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1791 else
1792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1793 for as_dir in $PATH
1794 do
1795 IFS=$as_save_IFS
1796 test -z "$as_dir" && as_dir=.
1797 for ac_exec_ext in '' $ac_executable_extensions; do
1798 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1799 ac_cv_prog_AWK="$ac_prog"
1800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1801 break 2
1802 fi
1803 done
1804 done
1805
1806 fi
1807 fi
1808 AWK=$ac_cv_prog_AWK
1809 if test -n "$AWK"; then
1810 echo "$as_me:$LINENO: result: $AWK" >&5
1811 echo "${ECHO_T}$AWK" >&6
1812 else
1813 echo "$as_me:$LINENO: result: no" >&5
1814 echo "${ECHO_T}no" >&6
1815 fi
1816
1817 test -n "$AWK" && break
1818 done
1819
1820 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1821 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1822 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1823 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1824 echo $ECHO_N "(cached) $ECHO_C" >&6
1825 else
1826 cat >conftest.make <<\_ACEOF
1827 all:
1828 @echo 'ac_maketemp="$(MAKE)"'
1829 _ACEOF
1830 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1831 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1832 if test -n "$ac_maketemp"; then
1833 eval ac_cv_prog_make_${ac_make}_set=yes
1834 else
1835 eval ac_cv_prog_make_${ac_make}_set=no
1836 fi
1837 rm -f conftest.make
1838 fi
1839 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1840 echo "$as_me:$LINENO: result: yes" >&5
1841 echo "${ECHO_T}yes" >&6
1842 SET_MAKE=
1843 else
1844 echo "$as_me:$LINENO: result: no" >&5
1845 echo "${ECHO_T}no" >&6
1846 SET_MAKE="MAKE=${MAKE-make}"
1847 fi
1848
1849 rm -rf .tst 2>/dev/null
1850 mkdir .tst 2>/dev/null
1851 if test -d .tst; then
1852 am__leading_dot=.
1853 else
1854 am__leading_dot=_
1855 fi
1856 rmdir .tst 2>/dev/null
1857
1858 # test to see if srcdir already configured
1859 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1860 test -f $srcdir/config.status; then
1861 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1862 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1863 { (exit 1); exit 1; }; }
1864 fi
1865
1866 # test whether we have cygpath
1867 if test -z "$CYGPATH_W"; then
1868 if (cygpath --version) >/dev/null 2>/dev/null; then
1869 CYGPATH_W='cygpath -w'
1870 else
1871 CYGPATH_W=echo
1872 fi
1873 fi
1874
1875
1876 # Define the identity of the package.
1877 PACKAGE=aiksaurus
1878 VERSION=$AIKSAURUS_VERSION
1879
1880
1881 cat >>confdefs.h <<_ACEOF
1882 #define PACKAGE "$PACKAGE"
1883 _ACEOF
1884
1885
1886 cat >>confdefs.h <<_ACEOF
1887 #define VERSION "$VERSION"
1888 _ACEOF
1889
1890 # Some tools Automake needs.
1891
1892 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1893
1894
1895 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1896
1897
1898 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1899
1900
1901 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1902
1903
1904 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1905
1906
1907 AMTAR=${AMTAR-"${am_missing_run}tar"}
1908
1909 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1910
1911 # Installed binaries are usually stripped using `strip' when the user
1912 # run `make install-strip'. However `strip' might not be the right
1913 # tool to use in cross-compilation environments, therefore Automake
1914 # will honor the `STRIP' environment variable to overrule this program.
1915 if test "$cross_compiling" != no; then
1916 if test -n "$ac_tool_prefix"; then
1917 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1918 set dummy ${ac_tool_prefix}strip; ac_word=$2
1919 echo "$as_me:$LINENO: checking for $ac_word" >&5
1920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1921 if test "${ac_cv_prog_STRIP+set}" = set; then
1922 echo $ECHO_N "(cached) $ECHO_C" >&6
1923 else
1924 if test -n "$STRIP"; then
1925 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1926 else
1927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1928 for as_dir in $PATH
1929 do
1930 IFS=$as_save_IFS
1931 test -z "$as_dir" && as_dir=.
1932 for ac_exec_ext in '' $ac_executable_extensions; do
1933 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1934 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1936 break 2
1937 fi
1938 done
1939 done
1940
1941 fi
1942 fi
1943 STRIP=$ac_cv_prog_STRIP
1944 if test -n "$STRIP"; then
1945 echo "$as_me:$LINENO: result: $STRIP" >&5
1946 echo "${ECHO_T}$STRIP" >&6
1947 else
1948 echo "$as_me:$LINENO: result: no" >&5
1949 echo "${ECHO_T}no" >&6
1950 fi
1951
1952 fi
1953 if test -z "$ac_cv_prog_STRIP"; then
1954 ac_ct_STRIP=$STRIP
1955 # Extract the first word of "strip", so it can be a program name with args.
1956 set dummy strip; ac_word=$2
1957 echo "$as_me:$LINENO: checking for $ac_word" >&5
1958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1959 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1960 echo $ECHO_N "(cached) $ECHO_C" >&6
1961 else
1962 if test -n "$ac_ct_STRIP"; then
1963 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1964 else
1965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1966 for as_dir in $PATH
1967 do
1968 IFS=$as_save_IFS
1969 test -z "$as_dir" && as_dir=.
1970 for ac_exec_ext in '' $ac_executable_extensions; do
1971 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1972 ac_cv_prog_ac_ct_STRIP="strip"
1973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1974 break 2
1975 fi
1976 done
1977 done
1978
1979 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1980 fi
1981 fi
1982 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1983 if test -n "$ac_ct_STRIP"; then
1984 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1985 echo "${ECHO_T}$ac_ct_STRIP" >&6
1986 else
1987 echo "$as_me:$LINENO: result: no" >&5
1988 echo "${ECHO_T}no" >&6
1989 fi
1990
1991 STRIP=$ac_ct_STRIP
1992 else
1993 STRIP="$ac_cv_prog_STRIP"
1994 fi
1995
1996 fi
1997 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1998
1999 # We need awk for the "check" target. The system "awk" is bad on
2000 # some platforms.
2001
2002
2003
2004
2005 # Specify a configuration file
2006 #
2007 ac_config_headers="$ac_config_headers config.h"
2008
2009
2010
2011
2012
2013 # ========================================================================
2014
2015 ac_ext=c
2016 ac_cpp='$CPP $CPPFLAGS'
2017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2020 if test -n "$ac_tool_prefix"; then
2021 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2022 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2023 echo "$as_me:$LINENO: checking for $ac_word" >&5
2024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2025 if test "${ac_cv_prog_CC+set}" = set; then
2026 echo $ECHO_N "(cached) $ECHO_C" >&6
2027 else
2028 if test -n "$CC"; then
2029 ac_cv_prog_CC="$CC" # Let the user override the test.
2030 else
2031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2032 for as_dir in $PATH
2033 do
2034 IFS=$as_save_IFS
2035 test -z "$as_dir" && as_dir=.
2036 for ac_exec_ext in '' $ac_executable_extensions; do
2037 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2038 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2040 break 2
2041 fi
2042 done
2043 done
2044
2045 fi
2046 fi
2047 CC=$ac_cv_prog_CC
2048 if test -n "$CC"; then
2049 echo "$as_me:$LINENO: result: $CC" >&5
2050 echo "${ECHO_T}$CC" >&6
2051 else
2052 echo "$as_me:$LINENO: result: no" >&5
2053 echo "${ECHO_T}no" >&6
2054 fi
2055
2056 fi
2057 if test -z "$ac_cv_prog_CC"; then
2058 ac_ct_CC=$CC
2059 # Extract the first word of "gcc", so it can be a program name with args.
2060 set dummy gcc; ac_word=$2
2061 echo "$as_me:$LINENO: checking for $ac_word" >&5
2062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2063 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2064 echo $ECHO_N "(cached) $ECHO_C" >&6
2065 else
2066 if test -n "$ac_ct_CC"; then
2067 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2068 else
2069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2070 for as_dir in $PATH
2071 do
2072 IFS=$as_save_IFS
2073 test -z "$as_dir" && as_dir=.
2074 for ac_exec_ext in '' $ac_executable_extensions; do
2075 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2076 ac_cv_prog_ac_ct_CC="gcc"
2077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2078 break 2
2079 fi
2080 done
2081 done
2082
2083 fi
2084 fi
2085 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2086 if test -n "$ac_ct_CC"; then
2087 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2088 echo "${ECHO_T}$ac_ct_CC" >&6
2089 else
2090 echo "$as_me:$LINENO: result: no" >&5
2091 echo "${ECHO_T}no" >&6
2092 fi
2093
2094 CC=$ac_ct_CC
2095 else
2096 CC="$ac_cv_prog_CC"
2097 fi
2098
2099 if test -z "$CC"; then
2100 if test -n "$ac_tool_prefix"; then
2101 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2102 set dummy ${ac_tool_prefix}cc; ac_word=$2
2103 echo "$as_me:$LINENO: checking for $ac_word" >&5
2104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2105 if test "${ac_cv_prog_CC+set}" = set; then
2106 echo $ECHO_N "(cached) $ECHO_C" >&6
2107 else
2108 if test -n "$CC"; then
2109 ac_cv_prog_CC="$CC" # Let the user override the test.
2110 else
2111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2112 for as_dir in $PATH
2113 do
2114 IFS=$as_save_IFS
2115 test -z "$as_dir" && as_dir=.
2116 for ac_exec_ext in '' $ac_executable_extensions; do
2117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2118 ac_cv_prog_CC="${ac_tool_prefix}cc"
2119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2120 break 2
2121 fi
2122 done
2123 done
2124
2125 fi
2126 fi
2127 CC=$ac_cv_prog_CC
2128 if test -n "$CC"; then
2129 echo "$as_me:$LINENO: result: $CC" >&5
2130 echo "${ECHO_T}$CC" >&6
2131 else
2132 echo "$as_me:$LINENO: result: no" >&5
2133 echo "${ECHO_T}no" >&6
2134 fi
2135
2136 fi
2137 if test -z "$ac_cv_prog_CC"; then
2138 ac_ct_CC=$CC
2139 # Extract the first word of "cc", so it can be a program name with args.
2140 set dummy cc; ac_word=$2
2141 echo "$as_me:$LINENO: checking for $ac_word" >&5
2142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2143 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2144 echo $ECHO_N "(cached) $ECHO_C" >&6
2145 else
2146 if test -n "$ac_ct_CC"; then
2147 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2148 else
2149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2150 for as_dir in $PATH
2151 do
2152 IFS=$as_save_IFS
2153 test -z "$as_dir" && as_dir=.
2154 for ac_exec_ext in '' $ac_executable_extensions; do
2155 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2156 ac_cv_prog_ac_ct_CC="cc"
2157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2158 break 2
2159 fi
2160 done
2161 done
2162
2163 fi
2164 fi
2165 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2166 if test -n "$ac_ct_CC"; then
2167 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2168 echo "${ECHO_T}$ac_ct_CC" >&6
2169 else
2170 echo "$as_me:$LINENO: result: no" >&5
2171 echo "${ECHO_T}no" >&6
2172 fi
2173
2174 CC=$ac_ct_CC
2175 else
2176 CC="$ac_cv_prog_CC"
2177 fi
2178
2179 fi
2180 if test -z "$CC"; then
2181 # Extract the first word of "cc", so it can be a program name with args.
2182 set dummy cc; ac_word=$2
2183 echo "$as_me:$LINENO: checking for $ac_word" >&5
2184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2185 if test "${ac_cv_prog_CC+set}" = set; then
2186 echo $ECHO_N "(cached) $ECHO_C" >&6
2187 else
2188 if test -n "$CC"; then
2189 ac_cv_prog_CC="$CC" # Let the user override the test.
2190 else
2191 ac_prog_rejected=no
2192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2193 for as_dir in $PATH
2194 do
2195 IFS=$as_save_IFS
2196 test -z "$as_dir" && as_dir=.
2197 for ac_exec_ext in '' $ac_executable_extensions; do
2198 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2199 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2200 ac_prog_rejected=yes
2201 continue
2202 fi
2203 ac_cv_prog_CC="cc"
2204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2205 break 2
2206 fi
2207 done
2208 done
2209
2210 if test $ac_prog_rejected = yes; then
2211 # We found a bogon in the path, so make sure we never use it.
2212 set dummy $ac_cv_prog_CC
2213 shift
2214 if test $# != 0; then
2215 # We chose a different compiler from the bogus one.
2216 # However, it has the same basename, so the bogon will be chosen
2217 # first if we set CC to just the basename; use the full file name.
2218 shift
2219 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2220 fi
2221 fi
2222 fi
2223 fi
2224 CC=$ac_cv_prog_CC
2225 if test -n "$CC"; then
2226 echo "$as_me:$LINENO: result: $CC" >&5
2227 echo "${ECHO_T}$CC" >&6
2228 else
2229 echo "$as_me:$LINENO: result: no" >&5
2230 echo "${ECHO_T}no" >&6
2231 fi
2232
2233 fi
2234 if test -z "$CC"; then
2235 if test -n "$ac_tool_prefix"; then
2236 for ac_prog in cl
2237 do
2238 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2239 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2240 echo "$as_me:$LINENO: checking for $ac_word" >&5
2241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2242 if test "${ac_cv_prog_CC+set}" = set; then
2243 echo $ECHO_N "(cached) $ECHO_C" >&6
2244 else
2245 if test -n "$CC"; then
2246 ac_cv_prog_CC="$CC" # Let the user override the test.
2247 else
2248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2249 for as_dir in $PATH
2250 do
2251 IFS=$as_save_IFS
2252 test -z "$as_dir" && as_dir=.
2253 for ac_exec_ext in '' $ac_executable_extensions; do
2254 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2255 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2257 break 2
2258 fi
2259 done
2260 done
2261
2262 fi
2263 fi
2264 CC=$ac_cv_prog_CC
2265 if test -n "$CC"; then
2266 echo "$as_me:$LINENO: result: $CC" >&5
2267 echo "${ECHO_T}$CC" >&6
2268 else
2269 echo "$as_me:$LINENO: result: no" >&5
2270 echo "${ECHO_T}no" >&6
2271 fi
2272
2273 test -n "$CC" && break
2274 done
2275 fi
2276 if test -z "$CC"; then
2277 ac_ct_CC=$CC
2278 for ac_prog in cl
2279 do
2280 # Extract the first word of "$ac_prog", so it can be a program name with args.
2281 set dummy $ac_prog; ac_word=$2
2282 echo "$as_me:$LINENO: checking for $ac_word" >&5
2283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2284 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2285 echo $ECHO_N "(cached) $ECHO_C" >&6
2286 else
2287 if test -n "$ac_ct_CC"; then
2288 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2289 else
2290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2291 for as_dir in $PATH
2292 do
2293 IFS=$as_save_IFS
2294 test -z "$as_dir" && as_dir=.
2295 for ac_exec_ext in '' $ac_executable_extensions; do
2296 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2297 ac_cv_prog_ac_ct_CC="$ac_prog"
2298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2299 break 2
2300 fi
2301 done
2302 done
2303
2304 fi
2305 fi
2306 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2307 if test -n "$ac_ct_CC"; then
2308 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2309 echo "${ECHO_T}$ac_ct_CC" >&6
2310 else
2311 echo "$as_me:$LINENO: result: no" >&5
2312 echo "${ECHO_T}no" >&6
2313 fi
2314
2315 test -n "$ac_ct_CC" && break
2316 done
2317
2318 CC=$ac_ct_CC
2319 fi
2320
2321 fi
2322
2323
2324 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2325 See \`config.log' for more details." >&5
2326 echo "$as_me: error: no acceptable C compiler found in \$PATH
2327 See \`config.log' for more details." >&2;}
2328 { (exit 1); exit 1; }; }
2329
2330 # Provide some information about the compiler.
2331 echo "$as_me:$LINENO:" \
2332 "checking for C compiler version" >&5
2333 ac_compiler=`set X $ac_compile; echo $2`
2334 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2335 (eval $ac_compiler --version </dev/null >&5) 2>&5
2336 ac_status=$?
2337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338 (exit $ac_status); }
2339 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2340 (eval $ac_compiler -v </dev/null >&5) 2>&5
2341 ac_status=$?
2342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343 (exit $ac_status); }
2344 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2345 (eval $ac_compiler -V </dev/null >&5) 2>&5
2346 ac_status=$?
2347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2348 (exit $ac_status); }
2349
2350 cat >conftest.$ac_ext <<_ACEOF
2351 /* confdefs.h. */
2352 _ACEOF
2353 cat confdefs.h >>conftest.$ac_ext
2354 cat >>conftest.$ac_ext <<_ACEOF
2355 /* end confdefs.h. */
2356
2357 int
2358 main ()
2359 {
2360
2361 ;
2362 return 0;
2363 }
2364 _ACEOF
2365 ac_clean_files_save=$ac_clean_files
2366 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2367 # Try to create an executable without -o first, disregard a.out.
2368 # It will help us diagnose broken compilers, and finding out an intuition
2369 # of exeext.
2370 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2371 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2372 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2373 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2374 (eval $ac_link_default) 2>&5
2375 ac_status=$?
2376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377 (exit $ac_status); }; then
2378 # Find the output, starting from the most likely. This scheme is
2379 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2380 # resort.
2381
2382 # Be careful to initialize this variable, since it used to be cached.
2383 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2384 ac_cv_exeext=
2385 # b.out is created by i960 compilers.
2386 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2387 do
2388 test -f "$ac_file" || continue
2389 case $ac_file in
2390 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2391 ;;
2392 conftest.$ac_ext )
2393 # This is the source file.
2394 ;;
2395 [ab].out )
2396 # We found the default executable, but exeext='' is most
2397 # certainly right.
2398 break;;
2399 *.* )
2400 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2401 # FIXME: I believe we export ac_cv_exeext for Libtool,
2402 # but it would be cool to find out if it's true. Does anybody
2403 # maintain Libtool? --akim.
2404 export ac_cv_exeext
2405 break;;
2406 * )
2407 break;;
2408 esac
2409 done
2410 else
2411 echo "$as_me: failed program was:" >&5
2412 sed 's/^/| /' conftest.$ac_ext >&5
2413
2414 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2415 See \`config.log' for more details." >&5
2416 echo "$as_me: error: C compiler cannot create executables
2417 See \`config.log' for more details." >&2;}
2418 { (exit 77); exit 77; }; }
2419 fi
2420
2421 ac_exeext=$ac_cv_exeext
2422 echo "$as_me:$LINENO: result: $ac_file" >&5
2423 echo "${ECHO_T}$ac_file" >&6
2424
2425 # Check the compiler produces executables we can run. If not, either
2426 # the compiler is broken, or we cross compile.
2427 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2428 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2429 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2430 # If not cross compiling, check that we can run a simple program.
2431 if test "$cross_compiling" != yes; then
2432 if { ac_try='./$ac_file'
2433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2434 (eval $ac_try) 2>&5
2435 ac_status=$?
2436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437 (exit $ac_status); }; }; then
2438 cross_compiling=no
2439 else
2440 if test "$cross_compiling" = maybe; then
2441 cross_compiling=yes
2442 else
2443 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2444 If you meant to cross compile, use \`--host'.
2445 See \`config.log' for more details." >&5
2446 echo "$as_me: error: cannot run C compiled programs.
2447 If you meant to cross compile, use \`--host'.
2448 See \`config.log' for more details." >&2;}
2449 { (exit 1); exit 1; }; }
2450 fi
2451 fi
2452 fi
2453 echo "$as_me:$LINENO: result: yes" >&5
2454 echo "${ECHO_T}yes" >&6
2455
2456 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2457 ac_clean_files=$ac_clean_files_save
2458 # Check the compiler produces executables we can run. If not, either
2459 # the compiler is broken, or we cross compile.
2460 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2461 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2462 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2463 echo "${ECHO_T}$cross_compiling" >&6
2464
2465 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2466 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2468 (eval $ac_link) 2>&5
2469 ac_status=$?
2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471 (exit $ac_status); }; then
2472 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2473 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2474 # work properly (i.e., refer to `conftest.exe'), while it won't with
2475 # `rm'.
2476 for ac_file in conftest.exe conftest conftest.*; do
2477 test -f "$ac_file" || continue
2478 case $ac_file in
2479 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2480 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2481 export ac_cv_exeext
2482 break;;
2483 * ) break;;
2484 esac
2485 done
2486 else
2487 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2488 See \`config.log' for more details." >&5
2489 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2490 See \`config.log' for more details." >&2;}
2491 { (exit 1); exit 1; }; }
2492 fi
2493
2494 rm -f conftest$ac_cv_exeext
2495 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2496 echo "${ECHO_T}$ac_cv_exeext" >&6
2497
2498 rm -f conftest.$ac_ext
2499 EXEEXT=$ac_cv_exeext
2500 ac_exeext=$EXEEXT
2501 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2502 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2503 if test "${ac_cv_objext+set}" = set; then
2504 echo $ECHO_N "(cached) $ECHO_C" >&6
2505 else
2506 cat >conftest.$ac_ext <<_ACEOF
2507 /* confdefs.h. */
2508 _ACEOF
2509 cat confdefs.h >>conftest.$ac_ext
2510 cat >>conftest.$ac_ext <<_ACEOF
2511 /* end confdefs.h. */
2512
2513 int
2514 main ()
2515 {
2516
2517 ;
2518 return 0;
2519 }
2520 _ACEOF
2521 rm -f conftest.o conftest.obj
2522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2523 (eval $ac_compile) 2>&5
2524 ac_status=$?
2525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526 (exit $ac_status); }; then
2527 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2528 case $ac_file in
2529 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2530 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2531 break;;
2532 esac
2533 done
2534 else
2535 echo "$as_me: failed program was:" >&5
2536 sed 's/^/| /' conftest.$ac_ext >&5
2537
2538 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2539 See \`config.log' for more details." >&5
2540 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2541 See \`config.log' for more details." >&2;}
2542 { (exit 1); exit 1; }; }
2543 fi
2544
2545 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2546 fi
2547 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2548 echo "${ECHO_T}$ac_cv_objext" >&6
2549 OBJEXT=$ac_cv_objext
2550 ac_objext=$OBJEXT
2551 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2552 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2553 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2554 echo $ECHO_N "(cached) $ECHO_C" >&6
2555 else
2556 cat >conftest.$ac_ext <<_ACEOF
2557 /* confdefs.h. */
2558 _ACEOF
2559 cat confdefs.h >>conftest.$ac_ext
2560 cat >>conftest.$ac_ext <<_ACEOF
2561 /* end confdefs.h. */
2562
2563 int
2564 main ()
2565 {
2566 #ifndef __GNUC__
2567 choke me
2568 #endif
2569
2570 ;
2571 return 0;
2572 }
2573 _ACEOF
2574 rm -f conftest.$ac_objext
2575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2576 (eval $ac_compile) 2>conftest.er1
2577 ac_status=$?
2578 grep -v '^ *+' conftest.er1 >conftest.err
2579 rm -f conftest.er1
2580 cat conftest.err >&5
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); } &&
2583 { ac_try='test -z "$ac_c_werror_flag"
2584 || test ! -s conftest.err'
2585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2586 (eval $ac_try) 2>&5
2587 ac_status=$?
2588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589 (exit $ac_status); }; } &&
2590 { ac_try='test -s conftest.$ac_objext'
2591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2592 (eval $ac_try) 2>&5
2593 ac_status=$?
2594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595 (exit $ac_status); }; }; then
2596 ac_compiler_gnu=yes
2597 else
2598 echo "$as_me: failed program was:" >&5
2599 sed 's/^/| /' conftest.$ac_ext >&5
2600
2601 ac_compiler_gnu=no
2602 fi
2603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2604 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2605
2606 fi
2607 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2608 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2609 GCC=`test $ac_compiler_gnu = yes && echo yes`
2610 ac_test_CFLAGS=${CFLAGS+set}
2611 ac_save_CFLAGS=$CFLAGS
2612 CFLAGS="-g"
2613 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2614 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2615 if test "${ac_cv_prog_cc_g+set}" = set; then
2616 echo $ECHO_N "(cached) $ECHO_C" >&6
2617 else
2618 cat >conftest.$ac_ext <<_ACEOF
2619 /* confdefs.h. */
2620 _ACEOF
2621 cat confdefs.h >>conftest.$ac_ext
2622 cat >>conftest.$ac_ext <<_ACEOF
2623 /* end confdefs.h. */
2624
2625 int
2626 main ()
2627 {
2628
2629 ;
2630 return 0;
2631 }
2632 _ACEOF
2633 rm -f conftest.$ac_objext
2634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2635 (eval $ac_compile) 2>conftest.er1
2636 ac_status=$?
2637 grep -v '^ *+' conftest.er1 >conftest.err
2638 rm -f conftest.er1
2639 cat conftest.err >&5
2640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641 (exit $ac_status); } &&
2642 { ac_try='test -z "$ac_c_werror_flag"
2643 || test ! -s conftest.err'
2644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2645 (eval $ac_try) 2>&5
2646 ac_status=$?
2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648 (exit $ac_status); }; } &&
2649 { ac_try='test -s conftest.$ac_objext'
2650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2651 (eval $ac_try) 2>&5
2652 ac_status=$?
2653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654 (exit $ac_status); }; }; then
2655 ac_cv_prog_cc_g=yes
2656 else
2657 echo "$as_me: failed program was:" >&5
2658 sed 's/^/| /' conftest.$ac_ext >&5
2659
2660 ac_cv_prog_cc_g=no
2661 fi
2662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2663 fi
2664 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2665 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2666 if test "$ac_test_CFLAGS" = set; then
2667 CFLAGS=$ac_save_CFLAGS
2668 elif test $ac_cv_prog_cc_g = yes; then
2669 if test "$GCC" = yes; then
2670 CFLAGS="-g -O2"
2671 else
2672 CFLAGS="-g"
2673 fi
2674 else
2675 if test "$GCC" = yes; then
2676 CFLAGS="-O2"
2677 else
2678 CFLAGS=
2679 fi
2680 fi
2681 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2682 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2683 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2684 echo $ECHO_N "(cached) $ECHO_C" >&6
2685 else
2686 ac_cv_prog_cc_stdc=no
2687 ac_save_CC=$CC
2688 cat >conftest.$ac_ext <<_ACEOF
2689 /* confdefs.h. */
2690 _ACEOF
2691 cat confdefs.h >>conftest.$ac_ext
2692 cat >>conftest.$ac_ext <<_ACEOF
2693 /* end confdefs.h. */
2694 #include <stdarg.h>
2695 #include <stdio.h>
2696 #include <sys/types.h>
2697 #include <sys/stat.h>
2698 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2699 struct buf { int x; };
2700 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2701 static char *e (p, i)
2702 char **p;
2703 int i;
2704 {
2705 return p[i];
2706 }
2707 static char *f (char * (*g) (char **, int), char **p, ...)
2708 {
2709 char *s;
2710 va_list v;
2711 va_start (v,p);
2712 s = g (p, va_arg (v,int));
2713 va_end (v);
2714 return s;
2715 }
2716
2717 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2718 function prototypes and stuff, but not '\xHH' hex character constants.
2719 These don't provoke an error unfortunately, instead are silently treated
2720 as 'x'. The following induces an error, until -std1 is added to get
2721 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2722 array size at least. It's necessary to write '\x00'==0 to get something
2723 that's true only with -std1. */
2724 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2725
2726 int test (int i, double x);
2727 struct s1 {int (*f) (int a);};
2728 struct s2 {int (*f) (double a);};
2729 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2730 int argc;
2731 char **argv;
2732 int
2733 main ()
2734 {
2735 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2736 ;
2737 return 0;
2738 }
2739 _ACEOF
2740 # Don't try gcc -ansi; that turns off useful extensions and
2741 # breaks some systems' header files.
2742 # AIX -qlanglvl=ansi
2743 # Ultrix and OSF/1 -std1
2744 # HP-UX 10.20 and later -Ae
2745 # HP-UX older versions -Aa -D_HPUX_SOURCE
2746 # SVR4 -Xc -D__EXTENSIONS__
2747 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2748 do
2749 CC="$ac_save_CC $ac_arg"
2750 rm -f conftest.$ac_objext
2751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2752 (eval $ac_compile) 2>conftest.er1
2753 ac_status=$?
2754 grep -v '^ *+' conftest.er1 >conftest.err
2755 rm -f conftest.er1
2756 cat conftest.err >&5
2757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758 (exit $ac_status); } &&
2759 { ac_try='test -z "$ac_c_werror_flag"
2760 || test ! -s conftest.err'
2761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2762 (eval $ac_try) 2>&5
2763 ac_status=$?
2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765 (exit $ac_status); }; } &&
2766 { ac_try='test -s conftest.$ac_objext'
2767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2768 (eval $ac_try) 2>&5
2769 ac_status=$?
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); }; }; then
2772 ac_cv_prog_cc_stdc=$ac_arg
2773 break
2774 else
2775 echo "$as_me: failed program was:" >&5
2776 sed 's/^/| /' conftest.$ac_ext >&5
2777
2778 fi
2779 rm -f conftest.err conftest.$ac_objext
2780 done
2781 rm -f conftest.$ac_ext conftest.$ac_objext
2782 CC=$ac_save_CC
2783
2784 fi
2785
2786 case "x$ac_cv_prog_cc_stdc" in
2787 x|xno)
2788 echo "$as_me:$LINENO: result: none needed" >&5
2789 echo "${ECHO_T}none needed" >&6 ;;
2790 *)
2791 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2792 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2793 CC="$CC $ac_cv_prog_cc_stdc" ;;
2794 esac
2795
2796 # Some people use a C++ compiler to compile C. Since we use `exit',
2797 # in C++ we need to declare it. In case someone uses the same compiler
2798 # for both compiling C and C++ we need to have the C++ compiler decide
2799 # the declaration of exit, since it's the most demanding environment.
2800 cat >conftest.$ac_ext <<_ACEOF
2801 #ifndef __cplusplus
2802 choke me
2803 #endif
2804 _ACEOF
2805 rm -f conftest.$ac_objext
2806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2807 (eval $ac_compile) 2>conftest.er1
2808 ac_status=$?
2809 grep -v '^ *+' conftest.er1 >conftest.err
2810 rm -f conftest.er1
2811 cat conftest.err >&5
2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813 (exit $ac_status); } &&
2814 { ac_try='test -z "$ac_c_werror_flag"
2815 || test ! -s conftest.err'
2816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2817 (eval $ac_try) 2>&5
2818 ac_status=$?
2819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820 (exit $ac_status); }; } &&
2821 { ac_try='test -s conftest.$ac_objext'
2822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2823 (eval $ac_try) 2>&5
2824 ac_status=$?
2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826 (exit $ac_status); }; }; then
2827 for ac_declaration in \
2828 '' \
2829 'extern "C" void std::exit (int) throw (); using std::exit;' \
2830 'extern "C" void std::exit (int); using std::exit;' \
2831 'extern "C" void exit (int) throw ();' \
2832 'extern "C" void exit (int);' \
2833 'void exit (int);'
2834 do
2835 cat >conftest.$ac_ext <<_ACEOF
2836 /* confdefs.h. */
2837 _ACEOF
2838 cat confdefs.h >>conftest.$ac_ext
2839 cat >>conftest.$ac_ext <<_ACEOF
2840 /* end confdefs.h. */
2841 $ac_declaration
2842 #include <stdlib.h>
2843 int
2844 main ()
2845 {
2846 exit (42);
2847 ;
2848 return 0;
2849 }
2850 _ACEOF
2851 rm -f conftest.$ac_objext
2852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2853 (eval $ac_compile) 2>conftest.er1
2854 ac_status=$?
2855 grep -v '^ *+' conftest.er1 >conftest.err
2856 rm -f conftest.er1
2857 cat conftest.err >&5
2858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859 (exit $ac_status); } &&
2860 { ac_try='test -z "$ac_c_werror_flag"
2861 || test ! -s conftest.err'
2862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2863 (eval $ac_try) 2>&5
2864 ac_status=$?
2865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866 (exit $ac_status); }; } &&
2867 { ac_try='test -s conftest.$ac_objext'
2868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2869 (eval $ac_try) 2>&5
2870 ac_status=$?
2871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872 (exit $ac_status); }; }; then
2873 :
2874 else
2875 echo "$as_me: failed program was:" >&5
2876 sed 's/^/| /' conftest.$ac_ext >&5
2877
2878 continue
2879 fi
2880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2881 cat >conftest.$ac_ext <<_ACEOF
2882 /* confdefs.h. */
2883 _ACEOF
2884 cat confdefs.h >>conftest.$ac_ext
2885 cat >>conftest.$ac_ext <<_ACEOF
2886 /* end confdefs.h. */
2887 $ac_declaration
2888 int
2889 main ()
2890 {
2891 exit (42);
2892 ;
2893 return 0;
2894 }
2895 _ACEOF
2896 rm -f conftest.$ac_objext
2897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2898 (eval $ac_compile) 2>conftest.er1
2899 ac_status=$?
2900 grep -v '^ *+' conftest.er1 >conftest.err
2901 rm -f conftest.er1
2902 cat conftest.err >&5
2903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904 (exit $ac_status); } &&
2905 { ac_try='test -z "$ac_c_werror_flag"
2906 || test ! -s conftest.err'
2907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2908 (eval $ac_try) 2>&5
2909 ac_status=$?
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); }; } &&
2912 { ac_try='test -s conftest.$ac_objext'
2913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2914 (eval $ac_try) 2>&5
2915 ac_status=$?
2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917 (exit $ac_status); }; }; then
2918 break
2919 else
2920 echo "$as_me: failed program was:" >&5
2921 sed 's/^/| /' conftest.$ac_ext >&5
2922
2923 fi
2924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2925 done
2926 rm -f conftest*
2927 if test -n "$ac_declaration"; then
2928 echo '#ifdef __cplusplus' >>confdefs.h
2929 echo $ac_declaration >>confdefs.h
2930 echo '#endif' >>confdefs.h
2931 fi
2932
2933 else
2934 echo "$as_me: failed program was:" >&5
2935 sed 's/^/| /' conftest.$ac_ext >&5
2936
2937 fi
2938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2939 ac_ext=c
2940 ac_cpp='$CPP $CPPFLAGS'
2941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2944 DEPDIR="${am__leading_dot}deps"
2945
2946 ac_config_commands="$ac_config_commands depfiles"
2947
2948
2949 am_make=${MAKE-make}
2950 cat > confinc << 'END'
2951 am__doit:
2952 @echo done
2953 .PHONY: am__doit
2954 END
2955 # If we don't find an include directive, just comment out the code.
2956 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2957 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2958 am__include="#"
2959 am__quote=
2960 _am_result=none
2961 # First try GNU make style include.
2962 echo "include confinc" > confmf
2963 # We grep out `Entering directory' and `Leaving directory'
2964 # messages which can occur if `w' ends up in MAKEFLAGS.
2965 # In particular we don't look at `^make:' because GNU make might
2966 # be invoked under some other name (usually "gmake"), in which
2967 # case it prints its new name instead of `make'.
2968 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2969 am__include=include
2970 am__quote=
2971 _am_result=GNU
2972 fi
2973 # Now try BSD make style include.
2974 if test "$am__include" = "#"; then
2975 echo '.include "confinc"' > confmf
2976 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2977 am__include=.include
2978 am__quote="\""
2979 _am_result=BSD
2980 fi
2981 fi
2982
2983
2984 echo "$as_me:$LINENO: result: $_am_result" >&5
2985 echo "${ECHO_T}$_am_result" >&6
2986 rm -f confinc confmf
2987
2988 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2989 if test "${enable_dependency_tracking+set}" = set; then
2990 enableval="$enable_dependency_tracking"
2991
2992 fi;
2993 if test "x$enable_dependency_tracking" != xno; then
2994 am_depcomp="$ac_aux_dir/depcomp"
2995 AMDEPBACKSLASH='\'
2996 fi
2997
2998
2999 if test "x$enable_dependency_tracking" != xno; then
3000 AMDEP_TRUE=
3001 AMDEP_FALSE='#'
3002 else
3003 AMDEP_TRUE='#'
3004 AMDEP_FALSE=
3005 fi
3006
3007
3008
3009
3010 depcc="$CC" am_compiler_list=
3011
3012 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3013 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3014 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3015 echo $ECHO_N "(cached) $ECHO_C" >&6
3016 else
3017 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3018 # We make a subdir and do the tests there. Otherwise we can end up
3019 # making bogus files that we don't know about and never remove. For
3020 # instance it was reported that on HP-UX the gcc test will end up
3021 # making a dummy file named `D' -- because `-MD' means `put the output
3022 # in D'.
3023 mkdir conftest.dir
3024 # Copy depcomp to subdir because otherwise we won't find it if we're
3025 # using a relative directory.
3026 cp "$am_depcomp" conftest.dir
3027 cd conftest.dir
3028 # We will build objects and dependencies in a subdirectory because
3029 # it helps to detect inapplicable dependency modes. For instance
3030 # both Tru64's cc and ICC support -MD to output dependencies as a
3031 # side effect of compilation, but ICC will put the dependencies in
3032 # the current directory while Tru64 will put them in the object
3033 # directory.
3034 mkdir sub
3035
3036 am_cv_CC_dependencies_compiler_type=none
3037 if test "$am_compiler_list" = ""; then
3038 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3039 fi
3040 for depmode in $am_compiler_list; do
3041 # Setup a source with many dependencies, because some compilers
3042 # like to wrap large dependency lists on column 80 (with \), and
3043 # we should not choose a depcomp mode which is confused by this.
3044 #
3045 # We need to recreate these files for each test, as the compiler may
3046 # overwrite some of them when testing with obscure command lines.
3047 # This happens at least with the AIX C compiler.
3048 : > sub/conftest.c
3049 for i in 1 2 3 4 5 6; do
3050 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3051 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3052 # Solaris 8's {/usr,}/bin/sh.
3053 touch sub/conftst$i.h
3054 done
3055 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3056
3057 case $depmode in
3058 nosideeffect)
3059 # after this tag, mechanisms are not by side-effect, so they'll
3060 # only be used when explicitly requested
3061 if test "x$enable_dependency_tracking" = xyes; then
3062 continue
3063 else
3064 break
3065 fi
3066 ;;
3067 none) break ;;
3068 esac
3069 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3070 # mode. It turns out that the SunPro C++ compiler does not properly
3071 # handle `-M -o', and we need to detect this.
3072 if depmode=$depmode \
3073 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3074 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3075 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3076 >/dev/null 2>conftest.err &&
3077 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3078 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3079 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3080 # icc doesn't choke on unknown options, it will just issue warnings
3081 # or remarks (even with -Werror). So we grep stderr for any message
3082 # that says an option was ignored or not supported.
3083 # When given -MP, icc 7.0 and 7.1 complain thusly:
3084 # icc: Command line warning: ignoring option '-M'; no argument required
3085 # The diagnosis changed in icc 8.0:
3086 # icc: Command line remark: option '-MP' not supported
3087 if (grep 'ignoring option' conftest.err ||
3088 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3089 am_cv_CC_dependencies_compiler_type=$depmode
3090 break
3091 fi
3092 fi
3093 done
3094
3095 cd ..
3096 rm -rf conftest.dir
3097 else
3098 am_cv_CC_dependencies_compiler_type=none
3099 fi
3100
3101 fi
3102 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3103 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3104 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3105
3106
3107
3108 if
3109 test "x$enable_dependency_tracking" != xno \
3110 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3111 am__fastdepCC_TRUE=
3112 am__fastdepCC_FALSE='#'
3113 else
3114 am__fastdepCC_TRUE='#'
3115 am__fastdepCC_FALSE=
3116 fi
3117
3118
3119 ac_ext=c
3120 ac_cpp='$CPP $CPPFLAGS'
3121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3124 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3125 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3126 # On Suns, sometimes $CPP names a directory.
3127 if test -n "$CPP" && test -d "$CPP"; then
3128 CPP=
3129 fi
3130 if test -z "$CPP"; then
3131 if test "${ac_cv_prog_CPP+set}" = set; then
3132 echo $ECHO_N "(cached) $ECHO_C" >&6
3133 else
3134 # Double quotes because CPP needs to be expanded
3135 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3136 do
3137 ac_preproc_ok=false
3138 for ac_c_preproc_warn_flag in '' yes
3139 do
3140 # Use a header file that comes with gcc, so configuring glibc
3141 # with a fresh cross-compiler works.
3142 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3143 # <limits.h> exists even on freestanding compilers.
3144 # On the NeXT, cc -E runs the code through the compiler's parser,
3145 # not just through cpp. "Syntax error" is here to catch this case.
3146 cat >conftest.$ac_ext <<_ACEOF
3147 /* confdefs.h. */
3148 _ACEOF
3149 cat confdefs.h >>conftest.$ac_ext
3150 cat >>conftest.$ac_ext <<_ACEOF
3151 /* end confdefs.h. */
3152 #ifdef __STDC__
3153 # include <limits.h>
3154 #else
3155 # include <assert.h>
3156 #endif
3157 Syntax error
3158 _ACEOF
3159 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3160 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3161 ac_status=$?
3162 grep -v '^ *+' conftest.er1 >conftest.err
3163 rm -f conftest.er1
3164 cat conftest.err >&5
3165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166 (exit $ac_status); } >/dev/null; then
3167 if test -s conftest.err; then
3168 ac_cpp_err=$ac_c_preproc_warn_flag
3169 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3170 else
3171 ac_cpp_err=
3172 fi
3173 else
3174 ac_cpp_err=yes
3175 fi
3176 if test -z "$ac_cpp_err"; then
3177 :
3178 else
3179 echo "$as_me: failed program was:" >&5
3180 sed 's/^/| /' conftest.$ac_ext >&5
3181
3182 # Broken: fails on valid input.
3183 continue
3184 fi
3185 rm -f conftest.err conftest.$ac_ext
3186
3187 # OK, works on sane cases. Now check whether non-existent headers
3188 # can be detected and how.
3189 cat >conftest.$ac_ext <<_ACEOF
3190 /* confdefs.h. */
3191 _ACEOF
3192 cat confdefs.h >>conftest.$ac_ext
3193 cat >>conftest.$ac_ext <<_ACEOF
3194 /* end confdefs.h. */
3195 #include <ac_nonexistent.h>
3196 _ACEOF
3197 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3198 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3199 ac_status=$?
3200 grep -v '^ *+' conftest.er1 >conftest.err
3201 rm -f conftest.er1
3202 cat conftest.err >&5
3203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204 (exit $ac_status); } >/dev/null; then
3205 if test -s conftest.err; then
3206 ac_cpp_err=$ac_c_preproc_warn_flag
3207 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3208 else
3209 ac_cpp_err=
3210 fi
3211 else
3212 ac_cpp_err=yes
3213 fi
3214 if test -z "$ac_cpp_err"; then
3215 # Broken: success on invalid input.
3216 continue
3217 else
3218 echo "$as_me: failed program was:" >&5
3219 sed 's/^/| /' conftest.$ac_ext >&5
3220
3221 # Passes both tests.
3222 ac_preproc_ok=:
3223 break
3224 fi
3225 rm -f conftest.err conftest.$ac_ext
3226
3227 done
3228 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3229 rm -f conftest.err conftest.$ac_ext
3230 if $ac_preproc_ok; then
3231 break
3232 fi
3233
3234 done
3235 ac_cv_prog_CPP=$CPP
3236
3237 fi
3238 CPP=$ac_cv_prog_CPP
3239 else
3240 ac_cv_prog_CPP=$CPP
3241 fi
3242 echo "$as_me:$LINENO: result: $CPP" >&5
3243 echo "${ECHO_T}$CPP" >&6
3244 ac_preproc_ok=false
3245 for ac_c_preproc_warn_flag in '' yes
3246 do
3247 # Use a header file that comes with gcc, so configuring glibc
3248 # with a fresh cross-compiler works.
3249 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3250 # <limits.h> exists even on freestanding compilers.
3251 # On the NeXT, cc -E runs the code through the compiler's parser,
3252 # not just through cpp. "Syntax error" is here to catch this case.
3253 cat >conftest.$ac_ext <<_ACEOF
3254 /* confdefs.h. */
3255 _ACEOF
3256 cat confdefs.h >>conftest.$ac_ext
3257 cat >>conftest.$ac_ext <<_ACEOF
3258 /* end confdefs.h. */
3259 #ifdef __STDC__
3260 # include <limits.h>
3261 #else
3262 # include <assert.h>
3263 #endif
3264 Syntax error
3265 _ACEOF
3266 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3267 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3268 ac_status=$?
3269 grep -v '^ *+' conftest.er1 >conftest.err
3270 rm -f conftest.er1
3271 cat conftest.err >&5
3272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273 (exit $ac_status); } >/dev/null; then
3274 if test -s conftest.err; then
3275 ac_cpp_err=$ac_c_preproc_warn_flag
3276 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3277 else
3278 ac_cpp_err=
3279 fi
3280 else
3281 ac_cpp_err=yes
3282 fi
3283 if test -z "$ac_cpp_err"; then
3284 :
3285 else
3286 echo "$as_me: failed program was:" >&5
3287 sed 's/^/| /' conftest.$ac_ext >&5
3288
3289 # Broken: fails on valid input.
3290 continue
3291 fi
3292 rm -f conftest.err conftest.$ac_ext
3293
3294 # OK, works on sane cases. Now check whether non-existent headers
3295 # can be detected and how.
3296 cat >conftest.$ac_ext <<_ACEOF
3297 /* confdefs.h. */
3298 _ACEOF
3299 cat confdefs.h >>conftest.$ac_ext
3300 cat >>conftest.$ac_ext <<_ACEOF
3301 /* end confdefs.h. */
3302 #include <ac_nonexistent.h>
3303 _ACEOF
3304 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3305 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3306 ac_status=$?
3307 grep -v '^ *+' conftest.er1 >conftest.err
3308 rm -f conftest.er1
3309 cat conftest.err >&5
3310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311 (exit $ac_status); } >/dev/null; then
3312 if test -s conftest.err; then
3313 ac_cpp_err=$ac_c_preproc_warn_flag
3314 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3315 else
3316 ac_cpp_err=
3317 fi
3318 else
3319 ac_cpp_err=yes
3320 fi
3321 if test -z "$ac_cpp_err"; then
3322 # Broken: success on invalid input.
3323 continue
3324 else
3325 echo "$as_me: failed program was:" >&5
3326 sed 's/^/| /' conftest.$ac_ext >&5
3327
3328 # Passes both tests.
3329 ac_preproc_ok=:
3330 break
3331 fi
3332 rm -f conftest.err conftest.$ac_ext
3333
3334 done
3335 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3336 rm -f conftest.err conftest.$ac_ext
3337 if $ac_preproc_ok; then
3338 :
3339 else
3340 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3341 See \`config.log' for more details." >&5
3342 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3343 See \`config.log' for more details." >&2;}
3344 { (exit 1); exit 1; }; }
3345 fi
3346
3347 ac_ext=c
3348 ac_cpp='$CPP $CPPFLAGS'
3349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3352
3353 ac_ext=cc
3354 ac_cpp='$CXXCPP $CPPFLAGS'
3355 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3356 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3357 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3358 if test -n "$ac_tool_prefix"; then
3359 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3360 do
3361 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3362 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3363 echo "$as_me:$LINENO: checking for $ac_word" >&5
3364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3365 if test "${ac_cv_prog_CXX+set}" = set; then
3366 echo $ECHO_N "(cached) $ECHO_C" >&6
3367 else
3368 if test -n "$CXX"; then
3369 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3370 else
3371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3372 for as_dir in $PATH
3373 do
3374 IFS=$as_save_IFS
3375 test -z "$as_dir" && as_dir=.
3376 for ac_exec_ext in '' $ac_executable_extensions; do
3377 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3378 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3380 break 2
3381 fi
3382 done
3383 done
3384
3385 fi
3386 fi
3387 CXX=$ac_cv_prog_CXX
3388 if test -n "$CXX"; then
3389 echo "$as_me:$LINENO: result: $CXX" >&5
3390 echo "${ECHO_T}$CXX" >&6
3391 else
3392 echo "$as_me:$LINENO: result: no" >&5
3393 echo "${ECHO_T}no" >&6
3394 fi
3395
3396 test -n "$CXX" && break
3397 done
3398 fi
3399 if test -z "$CXX"; then
3400 ac_ct_CXX=$CXX
3401 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3402 do
3403 # Extract the first word of "$ac_prog", so it can be a program name with args.
3404 set dummy $ac_prog; ac_word=$2
3405 echo "$as_me:$LINENO: checking for $ac_word" >&5
3406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3407 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3408 echo $ECHO_N "(cached) $ECHO_C" >&6
3409 else
3410 if test -n "$ac_ct_CXX"; then
3411 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3412 else
3413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3414 for as_dir in $PATH
3415 do
3416 IFS=$as_save_IFS
3417 test -z "$as_dir" && as_dir=.
3418 for ac_exec_ext in '' $ac_executable_extensions; do
3419 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3420 ac_cv_prog_ac_ct_CXX="$ac_prog"
3421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3422 break 2
3423 fi
3424 done
3425 done
3426
3427 fi
3428 fi
3429 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3430 if test -n "$ac_ct_CXX"; then
3431 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3432 echo "${ECHO_T}$ac_ct_CXX" >&6
3433 else
3434 echo "$as_me:$LINENO: result: no" >&5
3435 echo "${ECHO_T}no" >&6
3436 fi
3437
3438 test -n "$ac_ct_CXX" && break
3439 done
3440 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3441
3442 CXX=$ac_ct_CXX
3443 fi
3444
3445
3446 # Provide some information about the compiler.
3447 echo "$as_me:$LINENO:" \
3448 "checking for C++ compiler version" >&5
3449 ac_compiler=`set X $ac_compile; echo $2`
3450 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3451 (eval $ac_compiler --version </dev/null >&5) 2>&5
3452 ac_status=$?
3453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454 (exit $ac_status); }
3455 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3456 (eval $ac_compiler -v </dev/null >&5) 2>&5
3457 ac_status=$?
3458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459 (exit $ac_status); }
3460 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3461 (eval $ac_compiler -V </dev/null >&5) 2>&5
3462 ac_status=$?
3463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464 (exit $ac_status); }
3465
3466 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3467 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3468 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3469 echo $ECHO_N "(cached) $ECHO_C" >&6
3470 else
3471 cat >conftest.$ac_ext <<_ACEOF
3472 /* confdefs.h. */
3473 _ACEOF
3474 cat confdefs.h >>conftest.$ac_ext
3475 cat >>conftest.$ac_ext <<_ACEOF
3476 /* end confdefs.h. */
3477
3478 int
3479 main ()
3480 {
3481 #ifndef __GNUC__
3482 choke me
3483 #endif
3484
3485 ;
3486 return 0;
3487 }
3488 _ACEOF
3489 rm -f conftest.$ac_objext
3490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3491 (eval $ac_compile) 2>conftest.er1
3492 ac_status=$?
3493 grep -v '^ *+' conftest.er1 >conftest.err
3494 rm -f conftest.er1
3495 cat conftest.err >&5
3496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497 (exit $ac_status); } &&
3498 { ac_try='test -z "$ac_cxx_werror_flag"
3499 || test ! -s conftest.err'
3500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3501 (eval $ac_try) 2>&5
3502 ac_status=$?
3503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504 (exit $ac_status); }; } &&
3505 { ac_try='test -s conftest.$ac_objext'
3506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3507 (eval $ac_try) 2>&5
3508 ac_status=$?
3509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510 (exit $ac_status); }; }; then
3511 ac_compiler_gnu=yes
3512 else
3513 echo "$as_me: failed program was:" >&5
3514 sed 's/^/| /' conftest.$ac_ext >&5
3515
3516 ac_compiler_gnu=no
3517 fi
3518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3519 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3520
3521 fi
3522 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3523 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3524 GXX=`test $ac_compiler_gnu = yes && echo yes`
3525 ac_test_CXXFLAGS=${CXXFLAGS+set}
3526 ac_save_CXXFLAGS=$CXXFLAGS
3527 CXXFLAGS="-g"
3528 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3529 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3530 if test "${ac_cv_prog_cxx_g+set}" = set; then
3531 echo $ECHO_N "(cached) $ECHO_C" >&6
3532 else
3533 cat >conftest.$ac_ext <<_ACEOF
3534 /* confdefs.h. */
3535 _ACEOF
3536 cat confdefs.h >>conftest.$ac_ext
3537 cat >>conftest.$ac_ext <<_ACEOF
3538 /* end confdefs.h. */
3539
3540 int
3541 main ()
3542 {
3543
3544 ;
3545 return 0;
3546 }
3547 _ACEOF
3548 rm -f conftest.$ac_objext
3549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3550 (eval $ac_compile) 2>conftest.er1
3551 ac_status=$?
3552 grep -v '^ *+' conftest.er1 >conftest.err
3553 rm -f conftest.er1
3554 cat conftest.err >&5
3555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556 (exit $ac_status); } &&
3557 { ac_try='test -z "$ac_cxx_werror_flag"
3558 || test ! -s conftest.err'
3559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3560 (eval $ac_try) 2>&5
3561 ac_status=$?
3562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563 (exit $ac_status); }; } &&
3564 { ac_try='test -s conftest.$ac_objext'
3565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3566 (eval $ac_try) 2>&5
3567 ac_status=$?
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); }; }; then
3570 ac_cv_prog_cxx_g=yes
3571 else
3572 echo "$as_me: failed program was:" >&5
3573 sed 's/^/| /' conftest.$ac_ext >&5
3574
3575 ac_cv_prog_cxx_g=no
3576 fi
3577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3578 fi
3579 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3580 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3581 if test "$ac_test_CXXFLAGS" = set; then
3582 CXXFLAGS=$ac_save_CXXFLAGS
3583 elif test $ac_cv_prog_cxx_g = yes; then
3584 if test "$GXX" = yes; then
3585 CXXFLAGS="-g -O2"
3586 else
3587 CXXFLAGS="-g"
3588 fi
3589 else
3590 if test "$GXX" = yes; then
3591 CXXFLAGS="-O2"
3592 else
3593 CXXFLAGS=
3594 fi
3595 fi
3596 for ac_declaration in \
3597 '' \
3598 'extern "C" void std::exit (int) throw (); using std::exit;' \
3599 'extern "C" void std::exit (int); using std::exit;' \
3600 'extern "C" void exit (int) throw ();' \
3601 'extern "C" void exit (int);' \
3602 'void exit (int);'
3603 do
3604 cat >conftest.$ac_ext <<_ACEOF
3605 /* confdefs.h. */
3606 _ACEOF
3607 cat confdefs.h >>conftest.$ac_ext
3608 cat >>conftest.$ac_ext <<_ACEOF
3609 /* end confdefs.h. */
3610 $ac_declaration
3611 #include <stdlib.h>
3612 int
3613 main ()
3614 {
3615 exit (42);
3616 ;
3617 return 0;
3618 }
3619 _ACEOF
3620 rm -f conftest.$ac_objext
3621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3622 (eval $ac_compile) 2>conftest.er1
3623 ac_status=$?
3624 grep -v '^ *+' conftest.er1 >conftest.err
3625 rm -f conftest.er1
3626 cat conftest.err >&5
3627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628 (exit $ac_status); } &&
3629 { ac_try='test -z "$ac_cxx_werror_flag"
3630 || test ! -s conftest.err'
3631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3632 (eval $ac_try) 2>&5
3633 ac_status=$?
3634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635 (exit $ac_status); }; } &&
3636 { ac_try='test -s conftest.$ac_objext'
3637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3638 (eval $ac_try) 2>&5
3639 ac_status=$?
3640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641 (exit $ac_status); }; }; then
3642 :
3643 else
3644 echo "$as_me: failed program was:" >&5
3645 sed 's/^/| /' conftest.$ac_ext >&5
3646
3647 continue
3648 fi
3649 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3650 cat >conftest.$ac_ext <<_ACEOF
3651 /* confdefs.h. */
3652 _ACEOF
3653 cat confdefs.h >>conftest.$ac_ext
3654 cat >>conftest.$ac_ext <<_ACEOF
3655 /* end confdefs.h. */
3656 $ac_declaration
3657 int
3658 main ()
3659 {
3660 exit (42);
3661 ;
3662 return 0;
3663 }
3664 _ACEOF
3665 rm -f conftest.$ac_objext
3666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3667 (eval $ac_compile) 2>conftest.er1
3668 ac_status=$?
3669 grep -v '^ *+' conftest.er1 >conftest.err
3670 rm -f conftest.er1
3671 cat conftest.err >&5
3672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673 (exit $ac_status); } &&
3674 { ac_try='test -z "$ac_cxx_werror_flag"
3675 || test ! -s conftest.err'
3676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3677 (eval $ac_try) 2>&5
3678 ac_status=$?
3679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680 (exit $ac_status); }; } &&
3681 { ac_try='test -s conftest.$ac_objext'
3682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3683 (eval $ac_try) 2>&5
3684 ac_status=$?
3685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686 (exit $ac_status); }; }; then
3687 break
3688 else
3689 echo "$as_me: failed program was:" >&5
3690 sed 's/^/| /' conftest.$ac_ext >&5
3691
3692 fi
3693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3694 done
3695 rm -f conftest*
3696 if test -n "$ac_declaration"; then
3697 echo '#ifdef __cplusplus' >>confdefs.h
3698 echo $ac_declaration >>confdefs.h
3699 echo '#endif' >>confdefs.h
3700 fi
3701
3702 ac_ext=c
3703 ac_cpp='$CPP $CPPFLAGS'
3704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3707
3708 depcc="$CXX" am_compiler_list=
3709
3710 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3711 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3712 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3713 echo $ECHO_N "(cached) $ECHO_C" >&6
3714 else
3715 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3716 # We make a subdir and do the tests there. Otherwise we can end up
3717 # making bogus files that we don't know about and never remove. For
3718 # instance it was reported that on HP-UX the gcc test will end up
3719 # making a dummy file named `D' -- because `-MD' means `put the output
3720 # in D'.
3721 mkdir conftest.dir
3722 # Copy depcomp to subdir because otherwise we won't find it if we're
3723 # using a relative directory.
3724 cp "$am_depcomp" conftest.dir
3725 cd conftest.dir
3726 # We will build objects and dependencies in a subdirectory because
3727 # it helps to detect inapplicable dependency modes. For instance
3728 # both Tru64's cc and ICC support -MD to output dependencies as a
3729 # side effect of compilation, but ICC will put the dependencies in
3730 # the current directory while Tru64 will put them in the object
3731 # directory.
3732 mkdir sub
3733
3734 am_cv_CXX_dependencies_compiler_type=none
3735 if test "$am_compiler_list" = ""; then
3736 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3737 fi
3738 for depmode in $am_compiler_list; do
3739 # Setup a source with many dependencies, because some compilers
3740 # like to wrap large dependency lists on column 80 (with \), and
3741 # we should not choose a depcomp mode which is confused by this.
3742 #
3743 # We need to recreate these files for each test, as the compiler may
3744 # overwrite some of them when testing with obscure command lines.
3745 # This happens at least with the AIX C compiler.
3746 : > sub/conftest.c
3747 for i in 1 2 3 4 5 6; do
3748 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3749 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3750 # Solaris 8's {/usr,}/bin/sh.
3751 touch sub/conftst$i.h
3752 done
3753 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3754
3755 case $depmode in
3756 nosideeffect)
3757 # after this tag, mechanisms are not by side-effect, so they'll
3758 # only be used when explicitly requested
3759 if test "x$enable_dependency_tracking" = xyes; then
3760 continue
3761 else
3762 break
3763 fi
3764 ;;
3765 none) break ;;
3766 esac
3767 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3768 # mode. It turns out that the SunPro C++ compiler does not properly
3769 # handle `-M -o', and we need to detect this.
3770 if depmode=$depmode \
3771 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3772 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3773 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3774 >/dev/null 2>conftest.err &&
3775 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3776 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3777 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3778 # icc doesn't choke on unknown options, it will just issue warnings
3779 # or remarks (even with -Werror). So we grep stderr for any message
3780 # that says an option was ignored or not supported.
3781 # When given -MP, icc 7.0 and 7.1 complain thusly:
3782 # icc: Command line warning: ignoring option '-M'; no argument required
3783 # The diagnosis changed in icc 8.0:
3784 # icc: Command line remark: option '-MP' not supported
3785 if (grep 'ignoring option' conftest.err ||
3786 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3787 am_cv_CXX_dependencies_compiler_type=$depmode
3788 break
3789 fi
3790 fi
3791 done
3792
3793 cd ..
3794 rm -rf conftest.dir
3795 else
3796 am_cv_CXX_dependencies_compiler_type=none
3797 fi
3798
3799 fi
3800 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3801 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3802 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3803
3804
3805
3806 if
3807 test "x$enable_dependency_tracking" != xno \
3808 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3809 am__fastdepCXX_TRUE=
3810 am__fastdepCXX_FALSE='#'
3811 else
3812 am__fastdepCXX_TRUE='#'
3813 am__fastdepCXX_FALSE=
3814 fi
3815
3816
3817 # Find a good install program. We prefer a C program (faster),
3818 # so one script is as good as another. But avoid the broken or
3819 # incompatible versions:
3820 # SysV /etc/install, /usr/sbin/install
3821 # SunOS /usr/etc/install
3822 # IRIX /sbin/install
3823 # AIX /bin/install
3824 # AmigaOS /C/install, which installs bootblocks on floppy discs
3825 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3826 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3827 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3828 # OS/2's system install, which has a completely different semantic
3829 # ./install, which can be erroneously created by make from ./install.sh.
3830 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3831 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3832 if test -z "$INSTALL"; then
3833 if test "${ac_cv_path_install+set}" = set; then
3834 echo $ECHO_N "(cached) $ECHO_C" >&6
3835 else
3836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3837 for as_dir in $PATH
3838 do
3839 IFS=$as_save_IFS
3840 test -z "$as_dir" && as_dir=.
3841 # Account for people who put trailing slashes in PATH elements.
3842 case $as_dir/ in
3843 ./ | .// | /cC/* | \
3844 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3845 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3846 /usr/ucb/* ) ;;
3847 *)
3848 # OSF1 and SCO ODT 3.0 have their own names for install.
3849 # Don't use installbsd from OSF since it installs stuff as root
3850 # by default.
3851 for ac_prog in ginstall scoinst install; do
3852 for ac_exec_ext in '' $ac_executable_extensions; do
3853 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3854 if test $ac_prog = install &&
3855 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3856 # AIX install. It has an incompatible calling convention.
3857 :
3858 elif test $ac_prog = install &&
3859 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3860 # program-specific install script used by HP pwplus--don't use.
3861 :
3862 else
3863 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3864 break 3
3865 fi
3866 fi
3867 done
3868 done
3869 ;;
3870 esac
3871 done
3872
3873
3874 fi
3875 if test "${ac_cv_path_install+set}" = set; then
3876 INSTALL=$ac_cv_path_install
3877 else
3878 # As a last resort, use the slow shell script. We don't cache a
3879 # path for INSTALL within a source directory, because that will
3880 # break other packages using the cache if that directory is
3881 # removed, or if the path is relative.
3882 INSTALL=$ac_install_sh
3883 fi
3884 fi
3885 echo "$as_me:$LINENO: result: $INSTALL" >&5
3886 echo "${ECHO_T}$INSTALL" >&6
3887
3888 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3889 # It thinks the first close brace ends the variable substitution.
3890 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3891
3892 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3893
3894 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3895
3896 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3897 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3898 LN_S=$as_ln_s
3899 if test "$LN_S" = "ln -s"; then
3900 echo "$as_me:$LINENO: result: yes" >&5
3901 echo "${ECHO_T}yes" >&6
3902 else
3903 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3904 echo "${ECHO_T}no, using $LN_S" >&6
3905 fi
3906
3907 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3908 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3909 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3910 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3911 echo $ECHO_N "(cached) $ECHO_C" >&6
3912 else
3913 cat >conftest.make <<\_ACEOF
3914 all:
3915 @echo 'ac_maketemp="$(MAKE)"'
3916 _ACEOF
3917 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3918 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3919 if test -n "$ac_maketemp"; then
3920 eval ac_cv_prog_make_${ac_make}_set=yes
3921 else
3922 eval ac_cv_prog_make_${ac_make}_set=no
3923 fi
3924 rm -f conftest.make
3925 fi
3926 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3927 echo "$as_me:$LINENO: result: yes" >&5
3928 echo "${ECHO_T}yes" >&6
3929 SET_MAKE=
3930 else
3931 echo "$as_me:$LINENO: result: no" >&5
3932 echo "${ECHO_T}no" >&6
3933 SET_MAKE="MAKE=${MAKE-make}"
3934 fi
3935
3936
3937 # Check whether --enable-static or --disable-static was given.
3938 if test "${enable_static+set}" = set; then
3939 enableval="$enable_static"
3940 p=${PACKAGE-default}
3941 case $enableval in
3942 yes) enable_static=yes ;;
3943 no) enable_static=no ;;
3944 *)
3945 enable_static=no
3946 # Look at the argument we got. We use all the common list separators.
3947 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3948 for pkg in $enableval; do
3949 IFS="$lt_save_ifs"
3950 if test "X$pkg" = "X$p"; then
3951 enable_static=yes
3952 fi
3953 done
3954 IFS="$lt_save_ifs"
3955 ;;
3956 esac
3957 else
3958 enable_static=no
3959 fi;
3960
3961
3962
3963
3964 # Check whether --enable-shared or --disable-shared was given.
3965 if test "${enable_shared+set}" = set; then
3966 enableval="$enable_shared"
3967 p=${PACKAGE-default}
3968 case $enableval in
3969 yes) enable_shared=yes ;;
3970 no) enable_shared=no ;;
3971 *)
3972 enable_shared=no
3973 # Look at the argument we got. We use all the common list separators.
3974 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3975 for pkg in $enableval; do
3976 IFS="$lt_save_ifs"
3977 if test "X$pkg" = "X$p"; then
3978 enable_shared=yes
3979 fi
3980 done
3981 IFS="$lt_save_ifs"
3982 ;;
3983 esac
3984 else
3985 enable_shared=yes
3986 fi;
3987
3988 # Check whether --enable-fast-install or --disable-fast-install was given.
3989 if test "${enable_fast_install+set}" = set; then
3990 enableval="$enable_fast_install"
3991 p=${PACKAGE-default}
3992 case $enableval in
3993 yes) enable_fast_install=yes ;;
3994 no) enable_fast_install=no ;;
3995 *)
3996 enable_fast_install=no
3997 # Look at the argument we got. We use all the common list separators.
3998 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3999 for pkg in $enableval; do
4000 IFS="$lt_save_ifs"
4001 if test "X$pkg" = "X$p"; then
4002 enable_fast_install=yes
4003 fi
4004 done
4005 IFS="$lt_save_ifs"
4006 ;;
4007 esac
4008 else
4009 enable_fast_install=yes
4010 fi;
4011
4012 # Make sure we can run config.sub.
4013 $ac_config_sub sun4 >/dev/null 2>&1 ||
4014 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4015 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4016 { (exit 1); exit 1; }; }
4017
4018 echo "$as_me:$LINENO: checking build system type" >&5
4019 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4020 if test "${ac_cv_build+set}" = set; then
4021 echo $ECHO_N "(cached) $ECHO_C" >&6
4022 else
4023 ac_cv_build_alias=$build_alias
4024 test -z "$ac_cv_build_alias" &&
4025 ac_cv_build_alias=`$ac_config_guess`
4026 test -z "$ac_cv_build_alias" &&
4027 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4028 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4029 { (exit 1); exit 1; }; }
4030 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4031 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4032 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4033 { (exit 1); exit 1; }; }
4034
4035 fi
4036 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4037 echo "${ECHO_T}$ac_cv_build" >&6
4038 build=$ac_cv_build
4039 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4040 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4041 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4042
4043
4044 echo "$as_me:$LINENO: checking host system type" >&5
4045 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4046 if test "${ac_cv_host+set}" = set; then
4047 echo $ECHO_N "(cached) $ECHO_C" >&6
4048 else
4049 ac_cv_host_alias=$host_alias
4050 test -z "$ac_cv_host_alias" &&
4051 ac_cv_host_alias=$ac_cv_build_alias
4052 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4053 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4054 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4055 { (exit 1); exit 1; }; }
4056
4057 fi
4058 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4059 echo "${ECHO_T}$ac_cv_host" >&6
4060 host=$ac_cv_host
4061 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4062 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4063 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4064
4065
4066 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4067 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4068 if test "${lt_cv_path_SED+set}" = set; then
4069 echo $ECHO_N "(cached) $ECHO_C" >&6
4070 else
4071 # Loop through the user's path and test for sed and gsed.
4072 # Then use that list of sed's as ones to test for truncation.
4073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4074 for as_dir in $PATH
4075 do
4076 IFS=$as_save_IFS
4077 test -z "$as_dir" && as_dir=.
4078 for lt_ac_prog in sed gsed; do
4079 for ac_exec_ext in '' $ac_executable_extensions; do
4080 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4081 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4082 fi
4083 done
4084 done
4085 done
4086 lt_ac_max=0
4087 lt_ac_count=0
4088 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4089 # along with /bin/sed that truncates output.
4090 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4091 test ! -f $lt_ac_sed && break
4092 cat /dev/null > conftest.in
4093 lt_ac_count=0
4094 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4095 # Check for GNU sed and select it if it is found.
4096 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4097 lt_cv_path_SED=$lt_ac_sed
4098 break
4099 fi
4100 while true; do
4101 cat conftest.in conftest.in >conftest.tmp
4102 mv conftest.tmp conftest.in
4103 cp conftest.in conftest.nl
4104 echo >>conftest.nl
4105 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4106 cmp -s conftest.out conftest.nl || break
4107 # 10000 chars as input seems more than enough
4108 test $lt_ac_count -gt 10 && break
4109 lt_ac_count=`expr $lt_ac_count + 1`
4110 if test $lt_ac_count -gt $lt_ac_max; then
4111 lt_ac_max=$lt_ac_count
4112 lt_cv_path_SED=$lt_ac_sed
4113 fi
4114 done
4115 done
4116 SED=$lt_cv_path_SED
4117
4118 fi
4119
4120 echo "$as_me:$LINENO: result: $SED" >&5
4121 echo "${ECHO_T}$SED" >&6
4122
4123 echo "$as_me:$LINENO: checking for egrep" >&5
4124 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4125 if test "${ac_cv_prog_egrep+set}" = set; then
4126 echo $ECHO_N "(cached) $ECHO_C" >&6
4127 else
4128 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4129 then ac_cv_prog_egrep='grep -E'
4130 else ac_cv_prog_egrep='egrep'
4131 fi
4132 fi
4133 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4134 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4135 EGREP=$ac_cv_prog_egrep
4136
4137
4138
4139 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4140 if test "${with_gnu_ld+set}" = set; then
4141 withval="$with_gnu_ld"
4142 test "$withval" = no || with_gnu_ld=yes
4143 else
4144 with_gnu_ld=no
4145 fi;
4146 ac_prog=ld
4147 if test "$GCC" = yes; then
4148 # Check if gcc -print-prog-name=ld gives a path.
4149 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4150 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4151 case $host in
4152 *-*-mingw*)
4153 # gcc leaves a trailing carriage return which upsets mingw
4154 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4155 *)
4156 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4157 esac
4158 case $ac_prog in
4159 # Accept absolute paths.
4160 [\\/]* | ?:[\\/]*)
4161 re_direlt='/[^/][^/]*/\.\./'
4162 # Canonicalize the pathname of ld
4163 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4164 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4165 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4166 done
4167 test -z "$LD" && LD="$ac_prog"
4168 ;;
4169 "")
4170 # If it fails, then pretend we aren't using GCC.
4171 ac_prog=ld
4172 ;;
4173 *)
4174 # If it is relative, then search for the first ld in PATH.
4175 with_gnu_ld=unknown
4176 ;;
4177 esac
4178 elif test "$with_gnu_ld" = yes; then
4179 echo "$as_me:$LINENO: checking for GNU ld" >&5
4180 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4181 else
4182 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4183 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4184 fi
4185 if test "${lt_cv_path_LD+set}" = set; then
4186 echo $ECHO_N "(cached) $ECHO_C" >&6
4187 else
4188 if test -z "$LD"; then
4189 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4190 for ac_dir in $PATH; do
4191 IFS="$lt_save_ifs"
4192 test -z "$ac_dir" && ac_dir=.
4193 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4194 lt_cv_path_LD="$ac_dir/$ac_prog"
4195 # Check to see if the program is GNU ld. I'd rather use --version,
4196 # but apparently some GNU ld's only accept -v.
4197 # Break only if it was the GNU/non-GNU ld that we prefer.
4198 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4199 *GNU* | *'with BFD'*)
4200 test "$with_gnu_ld" != no && break
4201 ;;
4202 *)
4203 test "$with_gnu_ld" != yes && break
4204 ;;
4205 esac
4206 fi
4207 done
4208 IFS="$lt_save_ifs"
4209 else
4210 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4211 fi
4212 fi
4213
4214 LD="$lt_cv_path_LD"
4215 if test -n "$LD"; then
4216 echo "$as_me:$LINENO: result: $LD" >&5
4217 echo "${ECHO_T}$LD" >&6
4218 else
4219 echo "$as_me:$LINENO: result: no" >&5
4220 echo "${ECHO_T}no" >&6
4221 fi
4222 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4223 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4224 { (exit 1); exit 1; }; }
4225 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4226 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4227 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4228 echo $ECHO_N "(cached) $ECHO_C" >&6
4229 else
4230 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4231 case `$LD -v 2>&1 </dev/null` in
4232 *GNU* | *'with BFD'*)
4233 lt_cv_prog_gnu_ld=yes
4234 ;;
4235 *)
4236 lt_cv_prog_gnu_ld=no
4237 ;;
4238 esac
4239 fi
4240 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4241 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4242 with_gnu_ld=$lt_cv_prog_gnu_ld
4243
4244
4245 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4246 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4247 if test "${lt_cv_ld_reload_flag+set}" = set; then
4248 echo $ECHO_N "(cached) $ECHO_C" >&6
4249 else
4250 lt_cv_ld_reload_flag='-r'
4251 fi
4252 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4253 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4254 reload_flag=$lt_cv_ld_reload_flag
4255 case $reload_flag in
4256 "" | " "*) ;;
4257 *) reload_flag=" $reload_flag" ;;
4258 esac
4259 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4260
4261 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4262 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4263 if test "${lt_cv_path_NM+set}" = set; then
4264 echo $ECHO_N "(cached) $ECHO_C" >&6
4265 else
4266 if test -n "$NM"; then
4267 # Let the user override the test.
4268 lt_cv_path_NM="$NM"
4269 else
4270 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4271 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4272 IFS="$lt_save_ifs"
4273 test -z "$ac_dir" && ac_dir=.
4274 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4275 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4276 # Check to see if the nm accepts a BSD-compat flag.
4277 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4278 # nm: unknown option "B" ignored
4279 # Tru64's nm complains that /dev/null is an invalid object file
4280 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4281 */dev/null* | *'Invalid file or object type'*)
4282 lt_cv_path_NM="$tmp_nm -B"
4283 break
4284 ;;
4285 *)
4286 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4287 */dev/null*)
4288 lt_cv_path_NM="$tmp_nm -p"
4289 break
4290 ;;
4291 *)
4292 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4293 continue # so that we can try to find one that supports BSD flags
4294 ;;
4295 esac
4296 esac
4297 fi
4298 done
4299 IFS="$lt_save_ifs"
4300 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4301 fi
4302 fi
4303 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4304 echo "${ECHO_T}$lt_cv_path_NM" >&6
4305 NM="$lt_cv_path_NM"
4306
4307 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4308 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4309 if test "${lt_cv_deplibs_check_method+set}" = set; then
4310 echo $ECHO_N "(cached) $ECHO_C" >&6
4311 else
4312 lt_cv_file_magic_cmd='$MAGIC_CMD'
4313 lt_cv_file_magic_test_file=
4314 lt_cv_deplibs_check_method='unknown'
4315 # Need to set the preceding variable on all platforms that support
4316 # interlibrary dependencies.
4317 # 'none' -- dependencies not supported.
4318 # `unknown' -- same as none, but documents that we really don't know.
4319 # 'pass_all' -- all dependencies passed with no checks.
4320 # 'test_compile' -- check by making test program.
4321 # 'file_magic [[regex]]' -- check by looking for files in library path
4322 # which responds to the $file_magic_cmd with a given extended regex.
4323 # If you have `file' or equivalent on your system and you're not sure
4324 # whether `pass_all' will *always* work, you probably want this one.
4325
4326 case $host_os in
4327 aix4* | aix5*)
4328 lt_cv_deplibs_check_method=pass_all
4329 ;;
4330
4331 beos*)
4332 lt_cv_deplibs_check_method=pass_all
4333 ;;
4334
4335 bsdi4*)
4336 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4337 lt_cv_file_magic_cmd='/usr/bin/file -L'
4338 lt_cv_file_magic_test_file=/shlib/libc.so
4339 ;;
4340
4341 cygwin*)
4342 # func_win32_libid is a shell function defined in ltmain.sh
4343 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4344 lt_cv_file_magic_cmd='func_win32_libid'
4345 ;;
4346
4347 mingw* | pw32*)
4348 # Base MSYS/MinGW do not provide the 'file' command needed by
4349 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4350 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4351 lt_cv_file_magic_cmd='$OBJDUMP -f'
4352 ;;
4353
4354 darwin* | rhapsody*)
4355 lt_cv_deplibs_check_method=pass_all
4356 ;;
4357
4358 freebsd* | kfreebsd*-gnu)
4359 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4360 case $host_cpu in
4361 i*86 )
4362 # Not sure whether the presence of OpenBSD here was a mistake.
4363 # Let's accept both of them until this is cleared up.
4364 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4365 lt_cv_file_magic_cmd=/usr/bin/file
4366 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4367 ;;
4368 esac
4369 else
4370 lt_cv_deplibs_check_method=pass_all
4371 fi
4372 ;;
4373
4374 gnu*)
4375 lt_cv_deplibs_check_method=pass_all
4376 ;;
4377
4378 hpux10.20* | hpux11*)
4379 lt_cv_file_magic_cmd=/usr/bin/file
4380 case "$host_cpu" in
4381 ia64*)
4382 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4383 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4384 ;;
4385 hppa*64*)
4386 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]'
4387 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4388 ;;
4389 *)
4390 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4391 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4392 ;;
4393 esac
4394 ;;
4395
4396 irix5* | irix6* | nonstopux*)
4397 case $LD in
4398 *-32|*"-32 ") libmagic=32-bit;;
4399 *-n32|*"-n32 ") libmagic=N32;;
4400 *-64|*"-64 ") libmagic=64-bit;;
4401 *) libmagic=never-match;;
4402 esac
4403 lt_cv_deplibs_check_method=pass_all
4404 ;;
4405
4406 # This must be Linux ELF.
4407 linux*)
4408 case $host_cpu in
4409 alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*)
4410 lt_cv_deplibs_check_method=pass_all ;;
4411 *)
4412 # glibc up to 2.1.1 does not perform some relocations on ARM
4413 # this will be overridden with pass_all, but let us keep it just in case
4414 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4415 esac
4416 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4417 lt_cv_deplibs_check_method=pass_all
4418 ;;
4419
4420 netbsd*)
4421 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4422 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4423 else
4424 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4425 fi
4426 ;;
4427
4428 newos6*)
4429 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4430 lt_cv_file_magic_cmd=/usr/bin/file
4431 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4432 ;;
4433
4434 nto-qnx*)
4435 lt_cv_deplibs_check_method=unknown
4436 ;;
4437
4438 openbsd*)
4439 lt_cv_file_magic_cmd=/usr/bin/file
4440 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4441 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4442 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4443 else
4444 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4445 fi
4446 ;;
4447
4448 osf3* | osf4* | osf5*)
4449 lt_cv_deplibs_check_method=pass_all
4450 ;;
4451
4452 sco3.2v5*)
4453 lt_cv_deplibs_check_method=pass_all
4454 ;;
4455
4456 solaris*)
4457 lt_cv_deplibs_check_method=pass_all
4458 ;;
4459
4460 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4461 case $host_vendor in
4462 motorola)
4463 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]'
4464 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4465 ;;
4466 ncr)
4467 lt_cv_deplibs_check_method=pass_all
4468 ;;
4469 sequent)
4470 lt_cv_file_magic_cmd='/bin/file'
4471 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4472 ;;
4473 sni)
4474 lt_cv_file_magic_cmd='/bin/file'
4475 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4476 lt_cv_file_magic_test_file=/lib/libc.so
4477 ;;
4478 siemens)
4479 lt_cv_deplibs_check_method=pass_all
4480 ;;
4481 esac
4482 ;;
4483
4484 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4485 lt_cv_deplibs_check_method=pass_all
4486 ;;
4487 esac
4488
4489 fi
4490 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4491 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4492 file_magic_cmd=$lt_cv_file_magic_cmd
4493 deplibs_check_method=$lt_cv_deplibs_check_method
4494 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4495
4496
4497
4498
4499 # If no C compiler was specified, use CC.
4500 LTCC=${LTCC-"$CC"}
4501
4502 # Allow CC to be a program name with arguments.
4503 compiler=$CC
4504
4505
4506 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4507 if test "${enable_libtool_lock+set}" = set; then
4508 enableval="$enable_libtool_lock"
4509
4510 fi;
4511 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4512
4513 # Some flags need to be propagated to the compiler or linker for good
4514 # libtool support.
4515 case $host in
4516 ia64-*-hpux*)
4517 # Find out which ABI we are using.
4518 echo 'int i;' > conftest.$ac_ext
4519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4520 (eval $ac_compile) 2>&5
4521 ac_status=$?
4522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523 (exit $ac_status); }; then
4524 case `/usr/bin/file conftest.$ac_objext` in
4525 *ELF-32*)
4526 HPUX_IA64_MODE="32"
4527 ;;
4528 *ELF-64*)
4529 HPUX_IA64_MODE="64"
4530 ;;
4531 esac
4532 fi
4533 rm -rf conftest*
4534 ;;
4535 *-*-irix6*)
4536 # Find out which ABI we are using.
4537 echo '#line 4537 "configure"' > conftest.$ac_ext
4538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4539 (eval $ac_compile) 2>&5
4540 ac_status=$?
4541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4542 (exit $ac_status); }; then
4543 if test "$lt_cv_prog_gnu_ld" = yes; then
4544 case `/usr/bin/file conftest.$ac_objext` in
4545 *32-bit*)
4546 LD="${LD-ld} -melf32bsmip"
4547 ;;
4548 *N32*)
4549 LD="${LD-ld} -melf32bmipn32"
4550 ;;
4551 *64-bit*)
4552 LD="${LD-ld} -melf64bmip"
4553 ;;
4554 esac
4555 else
4556 case `/usr/bin/file conftest.$ac_objext` in
4557 *32-bit*)
4558 LD="${LD-ld} -32"
4559 ;;
4560 *N32*)
4561 LD="${LD-ld} -n32"
4562 ;;
4563 *64-bit*)
4564 LD="${LD-ld} -64"
4565 ;;
4566 esac
4567 fi
4568 fi
4569 rm -rf conftest*
4570 ;;
4571
4572 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4573 # Find out which ABI we are using.
4574 echo 'int i;' > conftest.$ac_ext
4575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4576 (eval $ac_compile) 2>&5
4577 ac_status=$?
4578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579 (exit $ac_status); }; then
4580 case "`/usr/bin/file conftest.o`" in
4581 *32-bit*)
4582 case $host in
4583 x86_64-*linux*)
4584 LD="${LD-ld} -m elf_i386"
4585 ;;
4586 ppc64-*linux*|powerpc64-*linux*)
4587 LD="${LD-ld} -m elf32ppclinux"
4588 ;;
4589 s390x-*linux*)
4590 LD="${LD-ld} -m elf_s390"
4591 ;;
4592 sparc64-*linux*)
4593 LD="${LD-ld} -m elf32_sparc"
4594 ;;
4595 esac
4596 ;;
4597 *64-bit*)
4598 case $host in
4599 x86_64-*linux*)
4600 LD="${LD-ld} -m elf_x86_64"
4601 ;;
4602 ppc*-*linux*|powerpc*-*linux*)
4603 LD="${LD-ld} -m elf64ppc"
4604 ;;
4605 s390*-*linux*)
4606 LD="${LD-ld} -m elf64_s390"
4607 ;;
4608 sparc*-*linux*)
4609 LD="${LD-ld} -m elf64_sparc"
4610 ;;
4611 esac
4612 ;;
4613 esac
4614 fi
4615 rm -rf conftest*
4616 ;;
4617
4618 *-*-sco3.2v5*)
4619 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4620 SAVE_CFLAGS="$CFLAGS"
4621 CFLAGS="$CFLAGS -belf"
4622 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4623 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4624 if test "${lt_cv_cc_needs_belf+set}" = set; then
4625 echo $ECHO_N "(cached) $ECHO_C" >&6
4626 else
4627 ac_ext=c
4628 ac_cpp='$CPP $CPPFLAGS'
4629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4632
4633 cat >conftest.$ac_ext <<_ACEOF
4634 /* confdefs.h. */
4635 _ACEOF
4636 cat confdefs.h >>conftest.$ac_ext
4637 cat >>conftest.$ac_ext <<_ACEOF
4638 /* end confdefs.h. */
4639
4640 int
4641 main ()
4642 {
4643
4644 ;
4645 return 0;
4646 }
4647 _ACEOF
4648 rm -f conftest.$ac_objext conftest$ac_exeext
4649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4650 (eval $ac_link) 2>conftest.er1
4651 ac_status=$?
4652 grep -v '^ *+' conftest.er1 >conftest.err
4653 rm -f conftest.er1
4654 cat conftest.err >&5
4655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656 (exit $ac_status); } &&
4657 { ac_try='test -z "$ac_c_werror_flag"
4658 || test ! -s conftest.err'
4659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4660 (eval $ac_try) 2>&5
4661 ac_status=$?
4662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663 (exit $ac_status); }; } &&
4664 { ac_try='test -s conftest$ac_exeext'
4665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4666 (eval $ac_try) 2>&5
4667 ac_status=$?
4668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669 (exit $ac_status); }; }; then
4670 lt_cv_cc_needs_belf=yes
4671 else
4672 echo "$as_me: failed program was:" >&5
4673 sed 's/^/| /' conftest.$ac_ext >&5
4674
4675 lt_cv_cc_needs_belf=no
4676 fi
4677 rm -f conftest.err conftest.$ac_objext \
4678 conftest$ac_exeext conftest.$ac_ext
4679 ac_ext=c
4680 ac_cpp='$CPP $CPPFLAGS'
4681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4684
4685 fi
4686 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4687 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4688 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4689 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4690 CFLAGS="$SAVE_CFLAGS"
4691 fi
4692 ;;
4693 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4694 if test -n "$ac_tool_prefix"; then
4695 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4696 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4697 echo "$as_me:$LINENO: checking for $ac_word" >&5
4698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4699 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4700 echo $ECHO_N "(cached) $ECHO_C" >&6
4701 else
4702 if test -n "$DLLTOOL"; then
4703 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4704 else
4705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4706 for as_dir in $PATH
4707 do
4708 IFS=$as_save_IFS
4709 test -z "$as_dir" && as_dir=.
4710 for ac_exec_ext in '' $ac_executable_extensions; do
4711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4712 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4714 break 2
4715 fi
4716 done
4717 done
4718
4719 fi
4720 fi
4721 DLLTOOL=$ac_cv_prog_DLLTOOL
4722 if test -n "$DLLTOOL"; then
4723 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4724 echo "${ECHO_T}$DLLTOOL" >&6
4725 else
4726 echo "$as_me:$LINENO: result: no" >&5
4727 echo "${ECHO_T}no" >&6
4728 fi
4729
4730 fi
4731 if test -z "$ac_cv_prog_DLLTOOL"; then
4732 ac_ct_DLLTOOL=$DLLTOOL
4733 # Extract the first word of "dlltool", so it can be a program name with args.
4734 set dummy dlltool; ac_word=$2
4735 echo "$as_me:$LINENO: checking for $ac_word" >&5
4736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4737 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4738 echo $ECHO_N "(cached) $ECHO_C" >&6
4739 else
4740 if test -n "$ac_ct_DLLTOOL"; then
4741 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4742 else
4743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4744 for as_dir in $PATH
4745 do
4746 IFS=$as_save_IFS
4747 test -z "$as_dir" && as_dir=.
4748 for ac_exec_ext in '' $ac_executable_extensions; do
4749 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4750 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4752 break 2
4753 fi
4754 done
4755 done
4756
4757 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
4758 fi
4759 fi
4760 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4761 if test -n "$ac_ct_DLLTOOL"; then
4762 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4763 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
4764 else
4765 echo "$as_me:$LINENO: result: no" >&5
4766 echo "${ECHO_T}no" >&6
4767 fi
4768
4769 DLLTOOL=$ac_ct_DLLTOOL
4770 else
4771 DLLTOOL="$ac_cv_prog_DLLTOOL"
4772 fi
4773
4774 if test -n "$ac_tool_prefix"; then
4775 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4776 set dummy ${ac_tool_prefix}as; ac_word=$2
4777 echo "$as_me:$LINENO: checking for $ac_word" >&5
4778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4779 if test "${ac_cv_prog_AS+set}" = set; then
4780 echo $ECHO_N "(cached) $ECHO_C" >&6
4781 else
4782 if test -n "$AS"; then
4783 ac_cv_prog_AS="$AS" # Let the user override the test.
4784 else
4785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4786 for as_dir in $PATH
4787 do
4788 IFS=$as_save_IFS
4789 test -z "$as_dir" && as_dir=.
4790 for ac_exec_ext in '' $ac_executable_extensions; do
4791 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4792 ac_cv_prog_AS="${ac_tool_prefix}as"
4793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4794 break 2
4795 fi
4796 done
4797 done
4798
4799 fi
4800 fi
4801 AS=$ac_cv_prog_AS
4802 if test -n "$AS"; then
4803 echo "$as_me:$LINENO: result: $AS" >&5
4804 echo "${ECHO_T}$AS" >&6
4805 else
4806 echo "$as_me:$LINENO: result: no" >&5
4807 echo "${ECHO_T}no" >&6
4808 fi
4809
4810 fi
4811 if test -z "$ac_cv_prog_AS"; then
4812 ac_ct_AS=$AS
4813 # Extract the first word of "as", so it can be a program name with args.
4814 set dummy as; ac_word=$2
4815 echo "$as_me:$LINENO: checking for $ac_word" >&5
4816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4817 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4818 echo $ECHO_N "(cached) $ECHO_C" >&6
4819 else
4820 if test -n "$ac_ct_AS"; then
4821 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4822 else
4823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4824 for as_dir in $PATH
4825 do
4826 IFS=$as_save_IFS
4827 test -z "$as_dir" && as_dir=.
4828 for ac_exec_ext in '' $ac_executable_extensions; do
4829 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4830 ac_cv_prog_ac_ct_AS="as"
4831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4832 break 2
4833 fi
4834 done
4835 done
4836
4837 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
4838 fi
4839 fi
4840 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4841 if test -n "$ac_ct_AS"; then
4842 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4843 echo "${ECHO_T}$ac_ct_AS" >&6
4844 else
4845 echo "$as_me:$LINENO: result: no" >&5
4846 echo "${ECHO_T}no" >&6
4847 fi
4848
4849 AS=$ac_ct_AS
4850 else
4851 AS="$ac_cv_prog_AS"
4852 fi
4853
4854 if test -n "$ac_tool_prefix"; then
4855 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4856 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4857 echo "$as_me:$LINENO: checking for $ac_word" >&5
4858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4859 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4860 echo $ECHO_N "(cached) $ECHO_C" >&6
4861 else
4862 if test -n "$OBJDUMP"; then
4863 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4864 else
4865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4866 for as_dir in $PATH
4867 do
4868 IFS=$as_save_IFS
4869 test -z "$as_dir" && as_dir=.
4870 for ac_exec_ext in '' $ac_executable_extensions; do
4871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4872 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4874 break 2
4875 fi
4876 done
4877 done
4878
4879 fi
4880 fi
4881 OBJDUMP=$ac_cv_prog_OBJDUMP
4882 if test -n "$OBJDUMP"; then
4883 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4884 echo "${ECHO_T}$OBJDUMP" >&6
4885 else
4886 echo "$as_me:$LINENO: result: no" >&5
4887 echo "${ECHO_T}no" >&6
4888 fi
4889
4890 fi
4891 if test -z "$ac_cv_prog_OBJDUMP"; then
4892 ac_ct_OBJDUMP=$OBJDUMP
4893 # Extract the first word of "objdump", so it can be a program name with args.
4894 set dummy objdump; ac_word=$2
4895 echo "$as_me:$LINENO: checking for $ac_word" >&5
4896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4897 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4898 echo $ECHO_N "(cached) $ECHO_C" >&6
4899 else
4900 if test -n "$ac_ct_OBJDUMP"; then
4901 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4902 else
4903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4904 for as_dir in $PATH
4905 do
4906 IFS=$as_save_IFS
4907 test -z "$as_dir" && as_dir=.
4908 for ac_exec_ext in '' $ac_executable_extensions; do
4909 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4910 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4912 break 2
4913 fi
4914 done
4915 done
4916
4917 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
4918 fi
4919 fi
4920 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4921 if test -n "$ac_ct_OBJDUMP"; then
4922 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4923 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
4924 else
4925 echo "$as_me:$LINENO: result: no" >&5
4926 echo "${ECHO_T}no" >&6
4927 fi
4928
4929 OBJDUMP=$ac_ct_OBJDUMP
4930 else
4931 OBJDUMP="$ac_cv_prog_OBJDUMP"
4932 fi
4933
4934 ;;
4935
4936 esac
4937
4938 need_locks="$enable_libtool_lock"
4939
4940
4941
4942 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4943 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4944 if test "${ac_cv_header_stdc+set}" = set; then
4945 echo $ECHO_N "(cached) $ECHO_C" >&6
4946 else
4947 cat >conftest.$ac_ext <<_ACEOF
4948 /* confdefs.h. */
4949 _ACEOF
4950 cat confdefs.h >>conftest.$ac_ext
4951 cat >>conftest.$ac_ext <<_ACEOF
4952 /* end confdefs.h. */
4953 #include <stdlib.h>
4954 #include <stdarg.h>
4955 #include <string.h>
4956 #include <float.h>
4957
4958 int
4959 main ()
4960 {
4961
4962 ;
4963 return 0;
4964 }
4965 _ACEOF
4966 rm -f conftest.$ac_objext
4967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4968 (eval $ac_compile) 2>conftest.er1
4969 ac_status=$?
4970 grep -v '^ *+' conftest.er1 >conftest.err
4971 rm -f conftest.er1
4972 cat conftest.err >&5
4973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974 (exit $ac_status); } &&
4975 { ac_try='test -z "$ac_c_werror_flag"
4976 || test ! -s conftest.err'
4977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4978 (eval $ac_try) 2>&5
4979 ac_status=$?
4980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981 (exit $ac_status); }; } &&
4982 { ac_try='test -s conftest.$ac_objext'
4983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4984 (eval $ac_try) 2>&5
4985 ac_status=$?
4986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987 (exit $ac_status); }; }; then
4988 ac_cv_header_stdc=yes
4989 else
4990 echo "$as_me: failed program was:" >&5
4991 sed 's/^/| /' conftest.$ac_ext >&5
4992
4993 ac_cv_header_stdc=no
4994 fi
4995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4996
4997 if test $ac_cv_header_stdc = yes; then
4998 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4999 cat >conftest.$ac_ext <<_ACEOF
5000 /* confdefs.h. */
5001 _ACEOF
5002 cat confdefs.h >>conftest.$ac_ext
5003 cat >>conftest.$ac_ext <<_ACEOF
5004 /* end confdefs.h. */
5005 #include <string.h>
5006
5007 _ACEOF
5008 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5009 $EGREP "memchr" >/dev/null 2>&1; then
5010 :
5011 else
5012 ac_cv_header_stdc=no
5013 fi
5014 rm -f conftest*
5015
5016 fi
5017
5018 if test $ac_cv_header_stdc = yes; then
5019 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5020 cat >conftest.$ac_ext <<_ACEOF
5021 /* confdefs.h. */
5022 _ACEOF
5023 cat confdefs.h >>conftest.$ac_ext
5024 cat >>conftest.$ac_ext <<_ACEOF
5025 /* end confdefs.h. */
5026 #include <stdlib.h>
5027
5028 _ACEOF
5029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5030 $EGREP "free" >/dev/null 2>&1; then
5031 :
5032 else
5033 ac_cv_header_stdc=no
5034 fi
5035 rm -f conftest*
5036
5037 fi
5038
5039 if test $ac_cv_header_stdc = yes; then
5040 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5041 if test "$cross_compiling" = yes; then
5042 :
5043 else
5044 cat >conftest.$ac_ext <<_ACEOF
5045 /* confdefs.h. */
5046 _ACEOF
5047 cat confdefs.h >>conftest.$ac_ext
5048 cat >>conftest.$ac_ext <<_ACEOF
5049 /* end confdefs.h. */
5050 #include <ctype.h>
5051 #if ((' ' & 0x0FF) == 0x020)
5052 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5053 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5054 #else
5055 # define ISLOWER(c) \
5056 (('a' <= (c) && (c) <= 'i') \
5057 || ('j' <= (c) && (c) <= 'r') \
5058 || ('s' <= (c) && (c) <= 'z'))
5059 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5060 #endif
5061
5062 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5063 int
5064 main ()
5065 {
5066 int i;
5067 for (i = 0; i < 256; i++)
5068 if (XOR (islower (i), ISLOWER (i))
5069 || toupper (i) != TOUPPER (i))
5070 exit(2);
5071 exit (0);
5072 }
5073 _ACEOF
5074 rm -f conftest$ac_exeext
5075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5076 (eval $ac_link) 2>&5
5077 ac_status=$?
5078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5081 (eval $ac_try) 2>&5
5082 ac_status=$?
5083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084 (exit $ac_status); }; }; then
5085 :
5086 else
5087 echo "$as_me: program exited with status $ac_status" >&5
5088 echo "$as_me: failed program was:" >&5
5089 sed 's/^/| /' conftest.$ac_ext >&5
5090
5091 ( exit $ac_status )
5092 ac_cv_header_stdc=no
5093 fi
5094 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5095 fi
5096 fi
5097 fi
5098 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5099 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5100 if test $ac_cv_header_stdc = yes; then
5101
5102 cat >>confdefs.h <<\_ACEOF
5103 #define STDC_HEADERS 1
5104 _ACEOF
5105
5106 fi
5107
5108 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5119 inttypes.h stdint.h unistd.h
5120 do
5121 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5122 echo "$as_me:$LINENO: checking for $ac_header" >&5
5123 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5124 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5125 echo $ECHO_N "(cached) $ECHO_C" >&6
5126 else
5127 cat >conftest.$ac_ext <<_ACEOF
5128 /* confdefs.h. */
5129 _ACEOF
5130 cat confdefs.h >>conftest.$ac_ext
5131 cat >>conftest.$ac_ext <<_ACEOF
5132 /* end confdefs.h. */
5133 $ac_includes_default
5134
5135 #include <$ac_header>
5136 _ACEOF
5137 rm -f conftest.$ac_objext
5138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5139 (eval $ac_compile) 2>conftest.er1
5140 ac_status=$?
5141 grep -v '^ *+' conftest.er1 >conftest.err
5142 rm -f conftest.er1
5143 cat conftest.err >&5
5144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5145 (exit $ac_status); } &&
5146 { ac_try='test -z "$ac_c_werror_flag"
5147 || test ! -s conftest.err'
5148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5149 (eval $ac_try) 2>&5
5150 ac_status=$?
5151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5152 (exit $ac_status); }; } &&
5153 { ac_try='test -s conftest.$ac_objext'
5154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5155 (eval $ac_try) 2>&5
5156 ac_status=$?
5157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5158 (exit $ac_status); }; }; then
5159 eval "$as_ac_Header=yes"
5160 else
5161 echo "$as_me: failed program was:" >&5
5162 sed 's/^/| /' conftest.$ac_ext >&5
5163
5164 eval "$as_ac_Header=no"
5165 fi
5166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5167 fi
5168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5169 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5170 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5171 cat >>confdefs.h <<_ACEOF
5172 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5173 _ACEOF
5174
5175 fi
5176
5177 done
5178
5179
5180
5181 for ac_header in dlfcn.h
5182 do
5183 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5184 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5185 echo "$as_me:$LINENO: checking for $ac_header" >&5
5186 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5187 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5188 echo $ECHO_N "(cached) $ECHO_C" >&6
5189 fi
5190 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5191 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5192 else
5193 # Is the header compilable?
5194 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5195 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5196 cat >conftest.$ac_ext <<_ACEOF
5197 /* confdefs.h. */
5198 _ACEOF
5199 cat confdefs.h >>conftest.$ac_ext
5200 cat >>conftest.$ac_ext <<_ACEOF
5201 /* end confdefs.h. */
5202 $ac_includes_default
5203 #include <$ac_header>
5204 _ACEOF
5205 rm -f conftest.$ac_objext
5206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5207 (eval $ac_compile) 2>conftest.er1
5208 ac_status=$?
5209 grep -v '^ *+' conftest.er1 >conftest.err
5210 rm -f conftest.er1
5211 cat conftest.err >&5
5212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213 (exit $ac_status); } &&
5214 { ac_try='test -z "$ac_c_werror_flag"
5215 || test ! -s conftest.err'
5216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5217 (eval $ac_try) 2>&5
5218 ac_status=$?
5219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5220 (exit $ac_status); }; } &&
5221 { ac_try='test -s conftest.$ac_objext'
5222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5223 (eval $ac_try) 2>&5
5224 ac_status=$?
5225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5226 (exit $ac_status); }; }; then
5227 ac_header_compiler=yes
5228 else
5229 echo "$as_me: failed program was:" >&5
5230 sed 's/^/| /' conftest.$ac_ext >&5
5231
5232 ac_header_compiler=no
5233 fi
5234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5235 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5236 echo "${ECHO_T}$ac_header_compiler" >&6
5237
5238 # Is the header present?
5239 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5240 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5241 cat >conftest.$ac_ext <<_ACEOF
5242 /* confdefs.h. */
5243 _ACEOF
5244 cat confdefs.h >>conftest.$ac_ext
5245 cat >>conftest.$ac_ext <<_ACEOF
5246 /* end confdefs.h. */
5247 #include <$ac_header>
5248 _ACEOF
5249 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5250 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5251 ac_status=$?
5252 grep -v '^ *+' conftest.er1 >conftest.err
5253 rm -f conftest.er1
5254 cat conftest.err >&5
5255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256 (exit $ac_status); } >/dev/null; then
5257 if test -s conftest.err; then
5258 ac_cpp_err=$ac_c_preproc_warn_flag
5259 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5260 else
5261 ac_cpp_err=
5262 fi
5263 else
5264 ac_cpp_err=yes
5265 fi
5266 if test -z "$ac_cpp_err"; then
5267 ac_header_preproc=yes
5268 else
5269 echo "$as_me: failed program was:" >&5
5270 sed 's/^/| /' conftest.$ac_ext >&5
5271
5272 ac_header_preproc=no
5273 fi
5274 rm -f conftest.err conftest.$ac_ext
5275 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5276 echo "${ECHO_T}$ac_header_preproc" >&6
5277
5278 # So? What about this header?
5279 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5280 yes:no: )
5281 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5282 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5283 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5284 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5285 ac_header_preproc=yes
5286 ;;
5287 no:yes:* )
5288 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5289 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5290 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5291 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5292 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5293 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5294 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5295 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5296 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5297 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5298 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5299 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5300 (
5301 cat <<\_ASBOX
5302 ## ------------------------------------------------ ##
5303 ## Report this to http://aiksaurus.sourceforge.net/ ##
5304 ## ------------------------------------------------ ##
5305 _ASBOX
5306 ) |
5307 sed "s/^/$as_me: WARNING: /" >&2
5308 ;;
5309 esac
5310 echo "$as_me:$LINENO: checking for $ac_header" >&5
5311 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5312 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5313 echo $ECHO_N "(cached) $ECHO_C" >&6
5314 else
5315 eval "$as_ac_Header=\$ac_header_preproc"
5316 fi
5317 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5318 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5319
5320 fi
5321 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5322 cat >>confdefs.h <<_ACEOF
5323 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5324 _ACEOF
5325
5326 fi
5327
5328 done
5329
5330 ac_ext=cc
5331 ac_cpp='$CXXCPP $CPPFLAGS'
5332 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5333 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5334 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5335 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5336 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5337 if test -z "$CXXCPP"; then
5338 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5339 echo $ECHO_N "(cached) $ECHO_C" >&6
5340 else
5341 # Double quotes because CXXCPP needs to be expanded
5342 for CXXCPP in "$CXX -E" "/lib/cpp"
5343 do
5344 ac_preproc_ok=false
5345 for ac_cxx_preproc_warn_flag in '' yes
5346 do
5347 # Use a header file that comes with gcc, so configuring glibc
5348 # with a fresh cross-compiler works.
5349 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5350 # <limits.h> exists even on freestanding compilers.
5351 # On the NeXT, cc -E runs the code through the compiler's parser,
5352 # not just through cpp. "Syntax error" is here to catch this case.
5353 cat >conftest.$ac_ext <<_ACEOF
5354 /* confdefs.h. */
5355 _ACEOF
5356 cat confdefs.h >>conftest.$ac_ext
5357 cat >>conftest.$ac_ext <<_ACEOF
5358 /* end confdefs.h. */
5359 #ifdef __STDC__
5360 # include <limits.h>
5361 #else
5362 # include <assert.h>
5363 #endif
5364 Syntax error
5365 _ACEOF
5366 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5367 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5368 ac_status=$?
5369 grep -v '^ *+' conftest.er1 >conftest.err
5370 rm -f conftest.er1
5371 cat conftest.err >&5
5372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373 (exit $ac_status); } >/dev/null; then
5374 if test -s conftest.err; then
5375 ac_cpp_err=$ac_cxx_preproc_warn_flag
5376 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5377 else
5378 ac_cpp_err=
5379 fi
5380 else
5381 ac_cpp_err=yes
5382 fi
5383 if test -z "$ac_cpp_err"; then
5384 :
5385 else
5386 echo "$as_me: failed program was:" >&5
5387 sed 's/^/| /' conftest.$ac_ext >&5
5388
5389 # Broken: fails on valid input.
5390 continue
5391 fi
5392 rm -f conftest.err conftest.$ac_ext
5393
5394 # OK, works on sane cases. Now check whether non-existent headers
5395 # can be detected and how.
5396 cat >conftest.$ac_ext <<_ACEOF
5397 /* confdefs.h. */
5398 _ACEOF
5399 cat confdefs.h >>conftest.$ac_ext
5400 cat >>conftest.$ac_ext <<_ACEOF
5401 /* end confdefs.h. */
5402 #include <ac_nonexistent.h>
5403 _ACEOF
5404 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5405 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5406 ac_status=$?
5407 grep -v '^ *+' conftest.er1 >conftest.err
5408 rm -f conftest.er1
5409 cat conftest.err >&5
5410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411 (exit $ac_status); } >/dev/null; then
5412 if test -s conftest.err; then
5413 ac_cpp_err=$ac_cxx_preproc_warn_flag
5414 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5415 else
5416 ac_cpp_err=
5417 fi
5418 else
5419 ac_cpp_err=yes
5420 fi
5421 if test -z "$ac_cpp_err"; then
5422 # Broken: success on invalid input.
5423 continue
5424 else
5425 echo "$as_me: failed program was:" >&5
5426 sed 's/^/| /' conftest.$ac_ext >&5
5427
5428 # Passes both tests.
5429 ac_preproc_ok=:
5430 break
5431 fi
5432 rm -f conftest.err conftest.$ac_ext
5433
5434 done
5435 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5436 rm -f conftest.err conftest.$ac_ext
5437 if $ac_preproc_ok; then
5438 break
5439 fi
5440
5441 done
5442 ac_cv_prog_CXXCPP=$CXXCPP
5443
5444 fi
5445 CXXCPP=$ac_cv_prog_CXXCPP
5446 else
5447 ac_cv_prog_CXXCPP=$CXXCPP
5448 fi
5449 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5450 echo "${ECHO_T}$CXXCPP" >&6
5451 ac_preproc_ok=false
5452 for ac_cxx_preproc_warn_flag in '' yes
5453 do
5454 # Use a header file that comes with gcc, so configuring glibc
5455 # with a fresh cross-compiler works.
5456 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5457 # <limits.h> exists even on freestanding compilers.
5458 # On the NeXT, cc -E runs the code through the compiler's parser,
5459 # not just through cpp. "Syntax error" is here to catch this case.
5460 cat >conftest.$ac_ext <<_ACEOF
5461 /* confdefs.h. */
5462 _ACEOF
5463 cat confdefs.h >>conftest.$ac_ext
5464 cat >>conftest.$ac_ext <<_ACEOF
5465 /* end confdefs.h. */
5466 #ifdef __STDC__
5467 # include <limits.h>
5468 #else
5469 # include <assert.h>
5470 #endif
5471 Syntax error
5472 _ACEOF
5473 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5474 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5475 ac_status=$?
5476 grep -v '^ *+' conftest.er1 >conftest.err
5477 rm -f conftest.er1
5478 cat conftest.err >&5
5479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5480 (exit $ac_status); } >/dev/null; then
5481 if test -s conftest.err; then
5482 ac_cpp_err=$ac_cxx_preproc_warn_flag
5483 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5484 else
5485 ac_cpp_err=
5486 fi
5487 else
5488 ac_cpp_err=yes
5489 fi
5490 if test -z "$ac_cpp_err"; then
5491 :
5492 else
5493 echo "$as_me: failed program was:" >&5
5494 sed 's/^/| /' conftest.$ac_ext >&5
5495
5496 # Broken: fails on valid input.
5497 continue
5498 fi
5499 rm -f conftest.err conftest.$ac_ext
5500
5501 # OK, works on sane cases. Now check whether non-existent headers
5502 # can be detected and how.
5503 cat >conftest.$ac_ext <<_ACEOF
5504 /* confdefs.h. */
5505 _ACEOF
5506 cat confdefs.h >>conftest.$ac_ext
5507 cat >>conftest.$ac_ext <<_ACEOF
5508 /* end confdefs.h. */
5509 #include <ac_nonexistent.h>
5510 _ACEOF
5511 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5512 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5513 ac_status=$?
5514 grep -v '^ *+' conftest.er1 >conftest.err
5515 rm -f conftest.er1
5516 cat conftest.err >&5
5517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518 (exit $ac_status); } >/dev/null; then
5519 if test -s conftest.err; then
5520 ac_cpp_err=$ac_cxx_preproc_warn_flag
5521 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5522 else
5523 ac_cpp_err=
5524 fi
5525 else
5526 ac_cpp_err=yes
5527 fi
5528 if test -z "$ac_cpp_err"; then
5529 # Broken: success on invalid input.
5530 continue
5531 else
5532 echo "$as_me: failed program was:" >&5
5533 sed 's/^/| /' conftest.$ac_ext >&5
5534
5535 # Passes both tests.
5536 ac_preproc_ok=:
5537 break
5538 fi
5539 rm -f conftest.err conftest.$ac_ext
5540
5541 done
5542 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5543 rm -f conftest.err conftest.$ac_ext
5544 if $ac_preproc_ok; then
5545 :
5546 else
5547 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5548 See \`config.log' for more details." >&5
5549 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5550 See \`config.log' for more details." >&2;}
5551 { (exit 1); exit 1; }; }
5552 fi
5553
5554 ac_ext=cc
5555 ac_cpp='$CXXCPP $CPPFLAGS'
5556 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5557 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5558 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5559
5560
5561 ac_ext=f
5562 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5563 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5564 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5565 if test -n "$ac_tool_prefix"; then
5566 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5567 do
5568 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5569 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5570 echo "$as_me:$LINENO: checking for $ac_word" >&5
5571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5572 if test "${ac_cv_prog_F77+set}" = set; then
5573 echo $ECHO_N "(cached) $ECHO_C" >&6
5574 else
5575 if test -n "$F77"; then
5576 ac_cv_prog_F77="$F77" # Let the user override the test.
5577 else
5578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5579 for as_dir in $PATH
5580 do
5581 IFS=$as_save_IFS
5582 test -z "$as_dir" && as_dir=.
5583 for ac_exec_ext in '' $ac_executable_extensions; do
5584 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5585 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5587 break 2
5588 fi
5589 done
5590 done
5591
5592 fi
5593 fi
5594 F77=$ac_cv_prog_F77
5595 if test -n "$F77"; then
5596 echo "$as_me:$LINENO: result: $F77" >&5
5597 echo "${ECHO_T}$F77" >&6
5598 else
5599 echo "$as_me:$LINENO: result: no" >&5
5600 echo "${ECHO_T}no" >&6
5601 fi
5602
5603 test -n "$F77" && break
5604 done
5605 fi
5606 if test -z "$F77"; then
5607 ac_ct_F77=$F77
5608 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5609 do
5610 # Extract the first word of "$ac_prog", so it can be a program name with args.
5611 set dummy $ac_prog; ac_word=$2
5612 echo "$as_me:$LINENO: checking for $ac_word" >&5
5613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5614 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5615 echo $ECHO_N "(cached) $ECHO_C" >&6
5616 else
5617 if test -n "$ac_ct_F77"; then
5618 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5619 else
5620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5621 for as_dir in $PATH
5622 do
5623 IFS=$as_save_IFS
5624 test -z "$as_dir" && as_dir=.
5625 for ac_exec_ext in '' $ac_executable_extensions; do
5626 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5627 ac_cv_prog_ac_ct_F77="$ac_prog"
5628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5629 break 2
5630 fi
5631 done
5632 done
5633
5634 fi
5635 fi
5636 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5637 if test -n "$ac_ct_F77"; then
5638 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5639 echo "${ECHO_T}$ac_ct_F77" >&6
5640 else
5641 echo "$as_me:$LINENO: result: no" >&5
5642 echo "${ECHO_T}no" >&6
5643 fi
5644
5645 test -n "$ac_ct_F77" && break
5646 done
5647
5648 F77=$ac_ct_F77
5649 fi
5650
5651
5652 # Provide some information about the compiler.
5653 echo "$as_me:5653:" \
5654 "checking for Fortran 77 compiler version" >&5
5655 ac_compiler=`set X $ac_compile; echo $2`
5656 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5657 (eval $ac_compiler --version </dev/null >&5) 2>&5
5658 ac_status=$?
5659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660 (exit $ac_status); }
5661 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5662 (eval $ac_compiler -v </dev/null >&5) 2>&5
5663 ac_status=$?
5664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665 (exit $ac_status); }
5666 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5667 (eval $ac_compiler -V </dev/null >&5) 2>&5
5668 ac_status=$?
5669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670 (exit $ac_status); }
5671 rm -f a.out
5672
5673 # If we don't use `.F' as extension, the preprocessor is not run on the
5674 # input file. (Note that this only needs to work for GNU compilers.)
5675 ac_save_ext=$ac_ext
5676 ac_ext=F
5677 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5678 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5679 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5680 echo $ECHO_N "(cached) $ECHO_C" >&6
5681 else
5682 cat >conftest.$ac_ext <<_ACEOF
5683 program main
5684 #ifndef __GNUC__
5685 choke me
5686 #endif
5687
5688 end
5689 _ACEOF
5690 rm -f conftest.$ac_objext
5691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5692 (eval $ac_compile) 2>conftest.er1
5693 ac_status=$?
5694 grep -v '^ *+' conftest.er1 >conftest.err
5695 rm -f conftest.er1
5696 cat conftest.err >&5
5697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698 (exit $ac_status); } &&
5699 { ac_try='test -z "$ac_f77_werror_flag"
5700 || test ! -s conftest.err'
5701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5702 (eval $ac_try) 2>&5
5703 ac_status=$?
5704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705 (exit $ac_status); }; } &&
5706 { ac_try='test -s conftest.$ac_objext'
5707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5708 (eval $ac_try) 2>&5
5709 ac_status=$?
5710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711 (exit $ac_status); }; }; then
5712 ac_compiler_gnu=yes
5713 else
5714 echo "$as_me: failed program was:" >&5
5715 sed 's/^/| /' conftest.$ac_ext >&5
5716
5717 ac_compiler_gnu=no
5718 fi
5719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5720 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5721
5722 fi
5723 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5724 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5725 ac_ext=$ac_save_ext
5726 ac_test_FFLAGS=${FFLAGS+set}
5727 ac_save_FFLAGS=$FFLAGS
5728 FFLAGS=
5729 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5730 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5731 if test "${ac_cv_prog_f77_g+set}" = set; then
5732 echo $ECHO_N "(cached) $ECHO_C" >&6
5733 else
5734 FFLAGS=-g
5735 cat >conftest.$ac_ext <<_ACEOF
5736 program main
5737
5738 end
5739 _ACEOF
5740 rm -f conftest.$ac_objext
5741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5742 (eval $ac_compile) 2>conftest.er1
5743 ac_status=$?
5744 grep -v '^ *+' conftest.er1 >conftest.err
5745 rm -f conftest.er1
5746 cat conftest.err >&5
5747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748 (exit $ac_status); } &&
5749 { ac_try='test -z "$ac_f77_werror_flag"
5750 || test ! -s conftest.err'
5751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5752 (eval $ac_try) 2>&5
5753 ac_status=$?
5754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5755 (exit $ac_status); }; } &&
5756 { ac_try='test -s conftest.$ac_objext'
5757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5758 (eval $ac_try) 2>&5
5759 ac_status=$?
5760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761 (exit $ac_status); }; }; then
5762 ac_cv_prog_f77_g=yes
5763 else
5764 echo "$as_me: failed program was:" >&5
5765 sed 's/^/| /' conftest.$ac_ext >&5
5766
5767 ac_cv_prog_f77_g=no
5768 fi
5769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5770
5771 fi
5772 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5773 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5774 if test "$ac_test_FFLAGS" = set; then
5775 FFLAGS=$ac_save_FFLAGS
5776 elif test $ac_cv_prog_f77_g = yes; then
5777 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5778 FFLAGS="-g -O2"
5779 else
5780 FFLAGS="-g"
5781 fi
5782 else
5783 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5784 FFLAGS="-O2"
5785 else
5786 FFLAGS=
5787 fi
5788 fi
5789
5790 G77=`test $ac_compiler_gnu = yes && echo yes`
5791 ac_ext=c
5792 ac_cpp='$CPP $CPPFLAGS'
5793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5796
5797
5798
5799 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5800
5801 # find the maximum length of command line arguments
5802 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5803 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5804 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5805 echo $ECHO_N "(cached) $ECHO_C" >&6
5806 else
5807 i=0
5808 teststring="ABCD"
5809
5810 case $build_os in
5811 msdosdjgpp*)
5812 # On DJGPP, this test can blow up pretty badly due to problems in libc
5813 # (any single argument exceeding 2000 bytes causes a buffer overrun
5814 # during glob expansion). Even if it were fixed, the result of this
5815 # check would be larger than it should be.
5816 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5817 ;;
5818
5819 gnu*)
5820 # Under GNU Hurd, this test is not required because there is
5821 # no limit to the length of command line arguments.
5822 # Libtool will interpret -1 as no limit whatsoever
5823 lt_cv_sys_max_cmd_len=-1;
5824 ;;
5825
5826 cygwin* | mingw*)
5827 # On Win9x/ME, this test blows up -- it succeeds, but takes
5828 # about 5 minutes as the teststring grows exponentially.
5829 # Worse, since 9x/ME are not pre-emptively multitasking,
5830 # you end up with a "frozen" computer, even though with patience
5831 # the test eventually succeeds (with a max line length of 256k).
5832 # Instead, let's just punt: use the minimum linelength reported by
5833 # all of the supported platforms: 8192 (on NT/2K/XP).
5834 lt_cv_sys_max_cmd_len=8192;
5835 ;;
5836
5837 amigaos*)
5838 # On AmigaOS with pdksh, this test takes hours, literally.
5839 # So we just punt and use a minimum line length of 8192.
5840 lt_cv_sys_max_cmd_len=8192;
5841 ;;
5842
5843 *)
5844 # If test is not a shell built-in, we'll probably end up computing a
5845 # maximum length that is only half of the actual maximum length, but
5846 # we can't tell.
5847 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5848 = "XX$teststring") >/dev/null 2>&1 &&
5849 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5850 lt_cv_sys_max_cmd_len=$new_result &&
5851 test $i != 17 # 1/2 MB should be enough
5852 do
5853 i=`expr $i + 1`
5854 teststring=$teststring$teststring
5855 done
5856 teststring=
5857 # Add a significant safety factor because C++ compilers can tack on massive
5858 # amounts of additional arguments before passing them to the linker.
5859 # It appears as though 1/2 is a usable value.
5860 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5861 ;;
5862 esac
5863
5864 fi
5865
5866 if test -n $lt_cv_sys_max_cmd_len ; then
5867 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5868 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5869 else
5870 echo "$as_me:$LINENO: result: none" >&5
5871 echo "${ECHO_T}none" >&6
5872 fi
5873
5874
5875
5876
5877 # Check for command to grab the raw symbol name followed by C symbol from nm.
5878 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5879 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5880 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5881 echo $ECHO_N "(cached) $ECHO_C" >&6
5882 else
5883
5884 # These are sane defaults that work on at least a few old systems.
5885 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5886
5887 # Character class describing NM global symbol codes.
5888 symcode='[BCDEGRST]'
5889
5890 # Regexp to match symbols that can be accessed directly from C.
5891 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5892
5893 # Transform the above into a raw symbol and a C symbol.
5894 symxfrm='\1 \2\3 \3'
5895
5896 # Transform an extracted symbol line into a proper C declaration
5897 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5898
5899 # Transform an extracted symbol line into symbol name and symbol address
5900 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'"
5901
5902 # Define system-specific variables.
5903 case $host_os in
5904 aix*)
5905 symcode='[BCDT]'
5906 ;;
5907 cygwin* | mingw* | pw32*)
5908 symcode='[ABCDGISTW]'
5909 ;;
5910 hpux*) # Its linker distinguishes data from code symbols
5911 if test "$host_cpu" = ia64; then
5912 symcode='[ABCDEGRST]'
5913 fi
5914 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5915 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'"
5916 ;;
5917 irix* | nonstopux*)
5918 symcode='[BCDEGRST]'
5919 ;;
5920 osf*)
5921 symcode='[BCDEGQRST]'
5922 ;;
5923 solaris* | sysv5*)
5924 symcode='[BDRT]'
5925 ;;
5926 sysv4)
5927 symcode='[DFNSTU]'
5928 ;;
5929 esac
5930
5931 # Handle CRLF in mingw tool chain
5932 opt_cr=
5933 case $build_os in
5934 mingw*)
5935 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5936 ;;
5937 esac
5938
5939 # If we're using GNU nm, then use its standard symbol codes.
5940 case `$NM -V 2>&1` in
5941 *GNU* | *'with BFD'*)
5942 symcode='[ABCDGIRSTW]' ;;
5943 esac
5944
5945 # Try without a prefix undercore, then with it.
5946 for ac_symprfx in "" "_"; do
5947
5948 # Write the raw and C identifiers.
5949 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5950
5951 # Check to see that the pipe works correctly.
5952 pipe_works=no
5953
5954 rm -f conftest*
5955 cat > conftest.$ac_ext <<EOF
5956 #ifdef __cplusplus
5957 extern "C" {
5958 #endif
5959 char nm_test_var;
5960 void nm_test_func(){}
5961 #ifdef __cplusplus
5962 }
5963 #endif
5964 int main(){nm_test_var='a';nm_test_func();return(0);}
5965 EOF
5966
5967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5968 (eval $ac_compile) 2>&5
5969 ac_status=$?
5970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971 (exit $ac_status); }; then
5972 # Now try to grab the symbols.
5973 nlist=conftest.nm
5974 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5975 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5976 ac_status=$?
5977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5978 (exit $ac_status); } && test -s "$nlist"; then
5979 # Try sorting and uniquifying the output.
5980 if sort "$nlist" | uniq > "$nlist"T; then
5981 mv -f "$nlist"T "$nlist"
5982 else
5983 rm -f "$nlist"T
5984 fi
5985
5986 # Make sure that we snagged all the symbols we need.
5987 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5988 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5989 cat <<EOF > conftest.$ac_ext
5990 #ifdef __cplusplus
5991 extern "C" {
5992 #endif
5993
5994 EOF
5995 # Now generate the symbol file.
5996 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5997
5998 cat <<EOF >> conftest.$ac_ext
5999 #if defined (__STDC__) && __STDC__
6000 # define lt_ptr_t void *
6001 #else
6002 # define lt_ptr_t char *
6003 # define const
6004 #endif
6005
6006 /* The mapping between symbol names and symbols. */
6007 const struct {
6008 const char *name;
6009 lt_ptr_t address;
6010 }
6011 lt_preloaded_symbols[] =
6012 {
6013 EOF
6014 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6015 cat <<\EOF >> conftest.$ac_ext
6016 {0, (lt_ptr_t) 0}
6017 };
6018
6019 #ifdef __cplusplus
6020 }
6021 #endif
6022 EOF
6023 # Now try linking the two files.
6024 mv conftest.$ac_objext conftstm.$ac_objext
6025 lt_save_LIBS="$LIBS"
6026 lt_save_CFLAGS="$CFLAGS"
6027 LIBS="conftstm.$ac_objext"
6028 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6030 (eval $ac_link) 2>&5
6031 ac_status=$?
6032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6034 pipe_works=yes
6035 fi
6036 LIBS="$lt_save_LIBS"
6037 CFLAGS="$lt_save_CFLAGS"
6038 else
6039 echo "cannot find nm_test_func in $nlist" >&5
6040 fi
6041 else
6042 echo "cannot find nm_test_var in $nlist" >&5
6043 fi
6044 else
6045 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6046 fi
6047 else
6048 echo "$progname: failed program was:" >&5
6049 cat conftest.$ac_ext >&5
6050 fi
6051 rm -f conftest* conftst*
6052
6053 # Do not use the global_symbol_pipe unless it works.
6054 if test "$pipe_works" = yes; then
6055 break
6056 else
6057 lt_cv_sys_global_symbol_pipe=
6058 fi
6059 done
6060
6061 fi
6062
6063 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6064 lt_cv_sys_global_symbol_to_cdecl=
6065 fi
6066 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6067 echo "$as_me:$LINENO: result: failed" >&5
6068 echo "${ECHO_T}failed" >&6
6069 else
6070 echo "$as_me:$LINENO: result: ok" >&5
6071 echo "${ECHO_T}ok" >&6
6072 fi
6073
6074 echo "$as_me:$LINENO: checking for objdir" >&5
6075 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6076 if test "${lt_cv_objdir+set}" = set; then
6077 echo $ECHO_N "(cached) $ECHO_C" >&6
6078 else
6079 rm -f .libs 2>/dev/null
6080 mkdir .libs 2>/dev/null
6081 if test -d .libs; then
6082 lt_cv_objdir=.libs
6083 else
6084 # MS-DOS does not allow filenames that begin with a dot.
6085 lt_cv_objdir=_libs
6086 fi
6087 rmdir .libs 2>/dev/null
6088 fi
6089 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6090 echo "${ECHO_T}$lt_cv_objdir" >&6
6091 objdir=$lt_cv_objdir
6092
6093
6094
6095
6096
6097 case $host_os in
6098 aix3*)
6099 # AIX sometimes has problems with the GCC collect2 program. For some
6100 # reason, if we set the COLLECT_NAMES environment variable, the problems
6101 # vanish in a puff of smoke.
6102 if test "X${COLLECT_NAMES+set}" != Xset; then
6103 COLLECT_NAMES=
6104 export COLLECT_NAMES
6105 fi
6106 ;;
6107 esac
6108
6109 # Sed substitution that helps us do robust quoting. It backslashifies
6110 # metacharacters that are still active within double-quoted strings.
6111 Xsed='sed -e s/^X//'
6112 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6113
6114 # Same as above, but do not quote variable references.
6115 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6116
6117 # Sed substitution to delay expansion of an escaped shell variable in a
6118 # double_quote_subst'ed string.
6119 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6120
6121 # Sed substitution to avoid accidental globbing in evaled expressions
6122 no_glob_subst='s/\*/\\\*/g'
6123
6124 # Constants:
6125 rm="rm -f"
6126
6127 # Global variables:
6128 default_ofile=libtool
6129 can_build_shared=yes
6130
6131 # All known linkers require a `.a' archive for static linking (except M$VC,
6132 # which needs '.lib').
6133 libext=a
6134 ltmain="$ac_aux_dir/ltmain.sh"
6135 ofile="$default_ofile"
6136 with_gnu_ld="$lt_cv_prog_gnu_ld"
6137
6138 if test -n "$ac_tool_prefix"; then
6139 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6140 set dummy ${ac_tool_prefix}ar; ac_word=$2
6141 echo "$as_me:$LINENO: checking for $ac_word" >&5
6142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6143 if test "${ac_cv_prog_AR+set}" = set; then
6144 echo $ECHO_N "(cached) $ECHO_C" >&6
6145 else
6146 if test -n "$AR"; then
6147 ac_cv_prog_AR="$AR" # Let the user override the test.
6148 else
6149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6150 for as_dir in $PATH
6151 do
6152 IFS=$as_save_IFS
6153 test -z "$as_dir" && as_dir=.
6154 for ac_exec_ext in '' $ac_executable_extensions; do
6155 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6156 ac_cv_prog_AR="${ac_tool_prefix}ar"
6157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6158 break 2
6159 fi
6160 done
6161 done
6162
6163 fi
6164 fi
6165 AR=$ac_cv_prog_AR
6166 if test -n "$AR"; then
6167 echo "$as_me:$LINENO: result: $AR" >&5
6168 echo "${ECHO_T}$AR" >&6
6169 else
6170 echo "$as_me:$LINENO: result: no" >&5
6171 echo "${ECHO_T}no" >&6
6172 fi
6173
6174 fi
6175 if test -z "$ac_cv_prog_AR"; then
6176 ac_ct_AR=$AR
6177 # Extract the first word of "ar", so it can be a program name with args.
6178 set dummy ar; ac_word=$2
6179 echo "$as_me:$LINENO: checking for $ac_word" >&5
6180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6181 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6182 echo $ECHO_N "(cached) $ECHO_C" >&6
6183 else
6184 if test -n "$ac_ct_AR"; then
6185 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6186 else
6187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6188 for as_dir in $PATH
6189 do
6190 IFS=$as_save_IFS
6191 test -z "$as_dir" && as_dir=.
6192 for ac_exec_ext in '' $ac_executable_extensions; do
6193 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6194 ac_cv_prog_ac_ct_AR="ar"
6195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6196 break 2
6197 fi
6198 done
6199 done
6200
6201 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6202 fi
6203 fi
6204 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6205 if test -n "$ac_ct_AR"; then
6206 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6207 echo "${ECHO_T}$ac_ct_AR" >&6
6208 else
6209 echo "$as_me:$LINENO: result: no" >&5
6210 echo "${ECHO_T}no" >&6
6211 fi
6212
6213 AR=$ac_ct_AR
6214 else
6215 AR="$ac_cv_prog_AR"
6216 fi
6217
6218 if test -n "$ac_tool_prefix"; then
6219 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6220 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6221 echo "$as_me:$LINENO: checking for $ac_word" >&5
6222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6223 if test "${ac_cv_prog_RANLIB+set}" = set; then
6224 echo $ECHO_N "(cached) $ECHO_C" >&6
6225 else
6226 if test -n "$RANLIB"; then
6227 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6228 else
6229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6230 for as_dir in $PATH
6231 do
6232 IFS=$as_save_IFS
6233 test -z "$as_dir" && as_dir=.
6234 for ac_exec_ext in '' $ac_executable_extensions; do
6235 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6236 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6238 break 2
6239 fi
6240 done
6241 done
6242
6243 fi
6244 fi
6245 RANLIB=$ac_cv_prog_RANLIB
6246 if test -n "$RANLIB"; then
6247 echo "$as_me:$LINENO: result: $RANLIB" >&5
6248 echo "${ECHO_T}$RANLIB" >&6
6249 else
6250 echo "$as_me:$LINENO: result: no" >&5
6251 echo "${ECHO_T}no" >&6
6252 fi
6253
6254 fi
6255 if test -z "$ac_cv_prog_RANLIB"; then
6256 ac_ct_RANLIB=$RANLIB
6257 # Extract the first word of "ranlib", so it can be a program name with args.
6258 set dummy ranlib; ac_word=$2
6259 echo "$as_me:$LINENO: checking for $ac_word" >&5
6260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6261 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6262 echo $ECHO_N "(cached) $ECHO_C" >&6
6263 else
6264 if test -n "$ac_ct_RANLIB"; then
6265 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6266 else
6267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6268 for as_dir in $PATH
6269 do
6270 IFS=$as_save_IFS
6271 test -z "$as_dir" && as_dir=.
6272 for ac_exec_ext in '' $ac_executable_extensions; do
6273 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6274 ac_cv_prog_ac_ct_RANLIB="ranlib"
6275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6276 break 2
6277 fi
6278 done
6279 done
6280
6281 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6282 fi
6283 fi
6284 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6285 if test -n "$ac_ct_RANLIB"; then
6286 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6287 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6288 else
6289 echo "$as_me:$LINENO: result: no" >&5
6290 echo "${ECHO_T}no" >&6
6291 fi
6292
6293 RANLIB=$ac_ct_RANLIB
6294 else
6295 RANLIB="$ac_cv_prog_RANLIB"
6296 fi
6297
6298 if test -n "$ac_tool_prefix"; then
6299 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6300 set dummy ${ac_tool_prefix}strip; ac_word=$2
6301 echo "$as_me:$LINENO: checking for $ac_word" >&5
6302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6303 if test "${ac_cv_prog_STRIP+set}" = set; then
6304 echo $ECHO_N "(cached) $ECHO_C" >&6
6305 else
6306 if test -n "$STRIP"; then
6307 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6308 else
6309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6310 for as_dir in $PATH
6311 do
6312 IFS=$as_save_IFS
6313 test -z "$as_dir" && as_dir=.
6314 for ac_exec_ext in '' $ac_executable_extensions; do
6315 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6316 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6318 break 2
6319 fi
6320 done
6321 done
6322
6323 fi
6324 fi
6325 STRIP=$ac_cv_prog_STRIP
6326 if test -n "$STRIP"; then
6327 echo "$as_me:$LINENO: result: $STRIP" >&5
6328 echo "${ECHO_T}$STRIP" >&6
6329 else
6330 echo "$as_me:$LINENO: result: no" >&5
6331 echo "${ECHO_T}no" >&6
6332 fi
6333
6334 fi
6335 if test -z "$ac_cv_prog_STRIP"; then
6336 ac_ct_STRIP=$STRIP
6337 # Extract the first word of "strip", so it can be a program name with args.
6338 set dummy strip; ac_word=$2
6339 echo "$as_me:$LINENO: checking for $ac_word" >&5
6340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6341 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6342 echo $ECHO_N "(cached) $ECHO_C" >&6
6343 else
6344 if test -n "$ac_ct_STRIP"; then
6345 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6346 else
6347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6348 for as_dir in $PATH
6349 do
6350 IFS=$as_save_IFS
6351 test -z "$as_dir" && as_dir=.
6352 for ac_exec_ext in '' $ac_executable_extensions; do
6353 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6354 ac_cv_prog_ac_ct_STRIP="strip"
6355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6356 break 2
6357 fi
6358 done
6359 done
6360
6361 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6362 fi
6363 fi
6364 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6365 if test -n "$ac_ct_STRIP"; then
6366 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6367 echo "${ECHO_T}$ac_ct_STRIP" >&6
6368 else
6369 echo "$as_me:$LINENO: result: no" >&5
6370 echo "${ECHO_T}no" >&6
6371 fi
6372
6373 STRIP=$ac_ct_STRIP
6374 else
6375 STRIP="$ac_cv_prog_STRIP"
6376 fi
6377
6378
6379 old_CC="$CC"
6380 old_CFLAGS="$CFLAGS"
6381
6382 # Set sane defaults for various variables
6383 test -z "$AR" && AR=ar
6384 test -z "$AR_FLAGS" && AR_FLAGS=cru
6385 test -z "$AS" && AS=as
6386 test -z "$CC" && CC=cc
6387 test -z "$LTCC" && LTCC=$CC
6388 test -z "$DLLTOOL" && DLLTOOL=dlltool
6389 test -z "$LD" && LD=ld
6390 test -z "$LN_S" && LN_S="ln -s"
6391 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6392 test -z "$NM" && NM=nm
6393 test -z "$SED" && SED=sed
6394 test -z "$OBJDUMP" && OBJDUMP=objdump
6395 test -z "$RANLIB" && RANLIB=:
6396 test -z "$STRIP" && STRIP=:
6397 test -z "$ac_objext" && ac_objext=o
6398
6399 # Determine commands to create old-style static archives.
6400 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6401 old_postinstall_cmds='chmod 644 $oldlib'
6402 old_postuninstall_cmds=
6403
6404 if test -n "$RANLIB"; then
6405 case $host_os in
6406 openbsd*)
6407 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6408 ;;
6409 *)
6410 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6411 ;;
6412 esac
6413 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6414 fi
6415
6416 # Only perform the check for file, if the check method requires it
6417 case $deplibs_check_method in
6418 file_magic*)
6419 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6420 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6421 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6422 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6423 echo $ECHO_N "(cached) $ECHO_C" >&6
6424 else
6425 case $MAGIC_CMD in
6426 [\\/*] | ?:[\\/]*)
6427 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6428 ;;
6429 *)
6430 lt_save_MAGIC_CMD="$MAGIC_CMD"
6431 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6432 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6433 for ac_dir in $ac_dummy; do
6434 IFS="$lt_save_ifs"
6435 test -z "$ac_dir" && ac_dir=.
6436 if test -f $ac_dir/${ac_tool_prefix}file; then
6437 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6438 if test -n "$file_magic_test_file"; then
6439 case $deplibs_check_method in
6440 "file_magic "*)
6441 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6442 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6443 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6444 $EGREP "$file_magic_regex" > /dev/null; then
6445 :
6446 else
6447 cat <<EOF 1>&2
6448
6449 *** Warning: the command libtool uses to detect shared libraries,
6450 *** $file_magic_cmd, produces output that libtool cannot recognize.
6451 *** The result is that libtool may fail to recognize shared libraries
6452 *** as such. This will affect the creation of libtool libraries that
6453 *** depend on shared libraries, but programs linked with such libtool
6454 *** libraries will work regardless of this problem. Nevertheless, you
6455 *** may want to report the problem to your system manager and/or to
6456 *** [email protected]
6457
6458 EOF
6459 fi ;;
6460 esac
6461 fi
6462 break
6463 fi
6464 done
6465 IFS="$lt_save_ifs"
6466 MAGIC_CMD="$lt_save_MAGIC_CMD"
6467 ;;
6468 esac
6469 fi
6470
6471 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6472 if test -n "$MAGIC_CMD"; then
6473 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6474 echo "${ECHO_T}$MAGIC_CMD" >&6
6475 else
6476 echo "$as_me:$LINENO: result: no" >&5
6477 echo "${ECHO_T}no" >&6
6478 fi
6479
6480 if test -z "$lt_cv_path_MAGIC_CMD"; then
6481 if test -n "$ac_tool_prefix"; then
6482 echo "$as_me:$LINENO: checking for file" >&5
6483 echo $ECHO_N "checking for file... $ECHO_C" >&6
6484 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6485 echo $ECHO_N "(cached) $ECHO_C" >&6
6486 else
6487 case $MAGIC_CMD in
6488 [\\/*] | ?:[\\/]*)
6489 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6490 ;;
6491 *)
6492 lt_save_MAGIC_CMD="$MAGIC_CMD"
6493 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6494 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6495 for ac_dir in $ac_dummy; do
6496 IFS="$lt_save_ifs"
6497 test -z "$ac_dir" && ac_dir=.
6498 if test -f $ac_dir/file; then
6499 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6500 if test -n "$file_magic_test_file"; then
6501 case $deplibs_check_method in
6502 "file_magic "*)
6503 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6504 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6505 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6506 $EGREP "$file_magic_regex" > /dev/null; then
6507 :
6508 else
6509 cat <<EOF 1>&2
6510
6511 *** Warning: the command libtool uses to detect shared libraries,
6512 *** $file_magic_cmd, produces output that libtool cannot recognize.
6513 *** The result is that libtool may fail to recognize shared libraries
6514 *** as such. This will affect the creation of libtool libraries that
6515 *** depend on shared libraries, but programs linked with such libtool
6516 *** libraries will work regardless of this problem. Nevertheless, you
6517 *** may want to report the problem to your system manager and/or to
6518 *** [email protected]
6519
6520 EOF
6521 fi ;;
6522 esac
6523 fi
6524 break
6525 fi
6526 done
6527 IFS="$lt_save_ifs"
6528 MAGIC_CMD="$lt_save_MAGIC_CMD"
6529 ;;
6530 esac
6531 fi
6532
6533 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6534 if test -n "$MAGIC_CMD"; then
6535 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6536 echo "${ECHO_T}$MAGIC_CMD" >&6
6537 else
6538 echo "$as_me:$LINENO: result: no" >&5
6539 echo "${ECHO_T}no" >&6
6540 fi
6541
6542 else
6543 MAGIC_CMD=:
6544 fi
6545 fi
6546
6547 fi
6548 ;;
6549 esac
6550
6551 enable_dlopen=no
6552 enable_win32_dll=yes
6553
6554 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6555 if test "${enable_libtool_lock+set}" = set; then
6556 enableval="$enable_libtool_lock"
6557
6558 fi;
6559 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6560
6561
6562 # Check whether --with-pic or --without-pic was given.
6563 if test "${with_pic+set}" = set; then
6564 withval="$with_pic"
6565 pic_mode="$withval"
6566 else
6567 pic_mode=default
6568 fi;
6569 test -z "$pic_mode" && pic_mode=default
6570
6571 # Use C for the default configuration in the libtool script
6572 tagname=
6573 lt_save_CC="$CC"
6574 ac_ext=c
6575 ac_cpp='$CPP $CPPFLAGS'
6576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6579
6580
6581 # Source file extension for C test sources.
6582 ac_ext=c
6583
6584 # Object file extension for compiled C test sources.
6585 objext=o
6586 objext=$objext
6587
6588 # Code to be used in simple compile tests
6589 lt_simple_compile_test_code="int some_variable = 0;\n"
6590
6591 # Code to be used in simple link tests
6592 lt_simple_link_test_code='int main(){return(0);}\n'
6593
6594
6595 # If no C compiler was specified, use CC.
6596 LTCC=${LTCC-"$CC"}
6597
6598 # Allow CC to be a program name with arguments.
6599 compiler=$CC
6600
6601
6602 #
6603 # Check for any special shared library compilation flags.
6604 #
6605 lt_prog_cc_shlib=
6606 if test "$GCC" = no; then
6607 case $host_os in
6608 sco3.2v5*)
6609 lt_prog_cc_shlib='-belf'
6610 ;;
6611 esac
6612 fi
6613 if test -n "$lt_prog_cc_shlib"; then
6614 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6615 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6616 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6617 else
6618 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6619 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6620 lt_cv_prog_cc_can_build_shared=no
6621 fi
6622 fi
6623
6624
6625 #
6626 # Check to make sure the static flag actually works.
6627 #
6628 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6629 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6630 if test "${lt_prog_compiler_static_works+set}" = set; then
6631 echo $ECHO_N "(cached) $ECHO_C" >&6
6632 else
6633 lt_prog_compiler_static_works=no
6634 save_LDFLAGS="$LDFLAGS"
6635 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6636 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6637 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6638 # The compiler can only warn and ignore the option if not recognized
6639 # So say no if there are warnings
6640 if test -s conftest.err; then
6641 # Append any errors to the config.log.
6642 cat conftest.err 1>&5
6643 else
6644 lt_prog_compiler_static_works=yes
6645 fi
6646 fi
6647 $rm conftest*
6648 LDFLAGS="$save_LDFLAGS"
6649
6650 fi
6651 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6652 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6653
6654 if test x"$lt_prog_compiler_static_works" = xyes; then
6655 :
6656 else
6657 lt_prog_compiler_static=
6658 fi
6659
6660
6661
6662
6663 lt_prog_compiler_no_builtin_flag=
6664
6665 if test "$GCC" = yes; then
6666 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6667
6668
6669 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6670 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6671 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6672 echo $ECHO_N "(cached) $ECHO_C" >&6
6673 else
6674 lt_cv_prog_compiler_rtti_exceptions=no
6675 ac_outfile=conftest.$ac_objext
6676 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6677 lt_compiler_flag="-fno-rtti -fno-exceptions"
6678 # Insert the option either (1) after the last *FLAGS variable, or
6679 # (2) before a word containing "conftest.", or (3) at the end.
6680 # Note that $ac_compile itself does not contain backslashes and begins
6681 # with a dollar sign (not a hyphen), so the echo should work correctly.
6682 # The option is referenced via a variable to avoid confusing sed.
6683 lt_compile=`echo "$ac_compile" | $SED \
6684 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6685 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6686 -e 's:$: $lt_compiler_flag:'`
6687 (eval echo "\"\$as_me:6687: $lt_compile\"" >&5)
6688 (eval "$lt_compile" 2>conftest.err)
6689 ac_status=$?
6690 cat conftest.err >&5
6691 echo "$as_me:6691: \$? = $ac_status" >&5
6692 if (exit $ac_status) && test -s "$ac_outfile"; then
6693 # The compiler can only warn and ignore the option if not recognized
6694 # So say no if there are warnings
6695 if test ! -s conftest.err; then
6696 lt_cv_prog_compiler_rtti_exceptions=yes
6697 fi
6698 fi
6699 $rm conftest*
6700
6701 fi
6702 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6703 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6704
6705 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6706 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6707 else
6708 :
6709 fi
6710
6711 fi
6712
6713 lt_prog_compiler_wl=
6714 lt_prog_compiler_pic=
6715 lt_prog_compiler_static=
6716
6717 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6718 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6719
6720 if test "$GCC" = yes; then
6721 lt_prog_compiler_wl='-Wl,'
6722 lt_prog_compiler_static='-static'
6723
6724 case $host_os in
6725 aix*)
6726 # All AIX code is PIC.
6727 if test "$host_cpu" = ia64; then
6728 # AIX 5 now supports IA64 processor
6729 lt_prog_compiler_static='-Bstatic'
6730 fi
6731 ;;
6732
6733 amigaos*)
6734 # FIXME: we need at least 68020 code to build shared libraries, but
6735 # adding the `-m68020' flag to GCC prevents building anything better,
6736 # like `-m68040'.
6737 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6738 ;;
6739
6740 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6741 # PIC is the default for these OSes.
6742 ;;
6743
6744 mingw* | pw32* | os2*)
6745 # This hack is so that the source file can tell whether it is being
6746 # built for inclusion in a dll (and should export symbols for example).
6747 lt_prog_compiler_pic='-DDLL_EXPORT'
6748 ;;
6749
6750 darwin* | rhapsody*)
6751 # PIC is the default on this platform
6752 # Common symbols not allowed in MH_DYLIB files
6753 lt_prog_compiler_pic='-fno-common'
6754 ;;
6755
6756 msdosdjgpp*)
6757 # Just because we use GCC doesn't mean we suddenly get shared libraries
6758 # on systems that don't support them.
6759 lt_prog_compiler_can_build_shared=no
6760 enable_shared=no
6761 ;;
6762
6763 sysv4*MP*)
6764 if test -d /usr/nec; then
6765 lt_prog_compiler_pic=-Kconform_pic
6766 fi
6767 ;;
6768
6769 hpux*)
6770 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6771 # not for PA HP-UX.
6772 case "$host_cpu" in
6773 hppa*64*|ia64*)
6774 # +Z the default
6775 ;;
6776 *)
6777 lt_prog_compiler_pic='-fPIC'
6778 ;;
6779 esac
6780 ;;
6781
6782 *)
6783 lt_prog_compiler_pic='-fPIC'
6784 ;;
6785 esac
6786 else
6787 # PORTME Check for flag to pass linker flags through the system compiler.
6788 case $host_os in
6789 aix*)
6790 lt_prog_compiler_wl='-Wl,'
6791 if test "$host_cpu" = ia64; then
6792 # AIX 5 now supports IA64 processor
6793 lt_prog_compiler_static='-Bstatic'
6794 else
6795 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6796 fi
6797 ;;
6798
6799 mingw* | pw32* | os2*)
6800 # This hack is so that the source file can tell whether it is being
6801 # built for inclusion in a dll (and should export symbols for example).
6802 lt_prog_compiler_pic='-DDLL_EXPORT'
6803 ;;
6804
6805 hpux9* | hpux10* | hpux11*)
6806 lt_prog_compiler_wl='-Wl,'
6807 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6808 # not for PA HP-UX.
6809 case "$host_cpu" in
6810 hppa*64*|ia64*)
6811 # +Z the default
6812 ;;
6813 *)
6814 lt_prog_compiler_pic='+Z'
6815 ;;
6816 esac
6817 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6818 lt_prog_compiler_static='${wl}-a ${wl}archive'
6819 ;;
6820
6821 irix5* | irix6* | nonstopux*)
6822 lt_prog_compiler_wl='-Wl,'
6823 # PIC (with -KPIC) is the default.
6824 lt_prog_compiler_static='-non_shared'
6825 ;;
6826
6827 newsos6)
6828 lt_prog_compiler_pic='-KPIC'
6829 lt_prog_compiler_static='-Bstatic'
6830 ;;
6831
6832 linux*)
6833 case $CC in
6834 icc* | ecc*)
6835 lt_prog_compiler_wl='-Wl,'
6836 lt_prog_compiler_pic='-KPIC'
6837 lt_prog_compiler_static='-static'
6838 ;;
6839 ccc*)
6840 lt_prog_compiler_wl='-Wl,'
6841 # All Alpha code is PIC.
6842 lt_prog_compiler_static='-non_shared'
6843 ;;
6844 esac
6845 ;;
6846
6847 osf3* | osf4* | osf5*)
6848 lt_prog_compiler_wl='-Wl,'
6849 # All OSF/1 code is PIC.
6850 lt_prog_compiler_static='-non_shared'
6851 ;;
6852
6853 sco3.2v5*)
6854 lt_prog_compiler_pic='-Kpic'
6855 lt_prog_compiler_static='-dn'
6856 ;;
6857
6858 solaris*)
6859 lt_prog_compiler_wl='-Wl,'
6860 lt_prog_compiler_pic='-KPIC'
6861 lt_prog_compiler_static='-Bstatic'
6862 ;;
6863
6864 sunos4*)
6865 lt_prog_compiler_wl='-Qoption ld '
6866 lt_prog_compiler_pic='-PIC'
6867 lt_prog_compiler_static='-Bstatic'
6868 ;;
6869
6870 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6871 lt_prog_compiler_wl='-Wl,'
6872 lt_prog_compiler_pic='-KPIC'
6873 lt_prog_compiler_static='-Bstatic'
6874 ;;
6875
6876 sysv4*MP*)
6877 if test -d /usr/nec ;then
6878 lt_prog_compiler_pic='-Kconform_pic'
6879 lt_prog_compiler_static='-Bstatic'
6880 fi
6881 ;;
6882
6883 uts4*)
6884 lt_prog_compiler_pic='-pic'
6885 lt_prog_compiler_static='-Bstatic'
6886 ;;
6887
6888 *)
6889 lt_prog_compiler_can_build_shared=no
6890 ;;
6891 esac
6892 fi
6893
6894 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6895 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6896
6897 #
6898 # Check to make sure the PIC flag actually works.
6899 #
6900 if test -n "$lt_prog_compiler_pic"; then
6901
6902 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6903 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6904 if test "${lt_prog_compiler_pic_works+set}" = set; then
6905 echo $ECHO_N "(cached) $ECHO_C" >&6
6906 else
6907 lt_prog_compiler_pic_works=no
6908 ac_outfile=conftest.$ac_objext
6909 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6910 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6911 # Insert the option either (1) after the last *FLAGS variable, or
6912 # (2) before a word containing "conftest.", or (3) at the end.
6913 # Note that $ac_compile itself does not contain backslashes and begins
6914 # with a dollar sign (not a hyphen), so the echo should work correctly.
6915 # The option is referenced via a variable to avoid confusing sed.
6916 lt_compile=`echo "$ac_compile" | $SED \
6917 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6918 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6919 -e 's:$: $lt_compiler_flag:'`
6920 (eval echo "\"\$as_me:6920: $lt_compile\"" >&5)
6921 (eval "$lt_compile" 2>conftest.err)
6922 ac_status=$?
6923 cat conftest.err >&5
6924 echo "$as_me:6924: \$? = $ac_status" >&5
6925 if (exit $ac_status) && test -s "$ac_outfile"; then
6926 # The compiler can only warn and ignore the option if not recognized
6927 # So say no if there are warnings
6928 if test ! -s conftest.err; then
6929 lt_prog_compiler_pic_works=yes
6930 fi
6931 fi
6932 $rm conftest*
6933
6934 fi
6935 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6936 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6937
6938 if test x"$lt_prog_compiler_pic_works" = xyes; then
6939 case $lt_prog_compiler_pic in
6940 "" | " "*) ;;
6941 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6942 esac
6943 else
6944 lt_prog_compiler_pic=
6945 lt_prog_compiler_can_build_shared=no
6946 fi
6947
6948 fi
6949 case "$host_os" in
6950 # For platforms which do not support PIC, -DPIC is meaningless:
6951 *djgpp*)
6952 lt_prog_compiler_pic=
6953 ;;
6954 *)
6955 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6956 ;;
6957 esac
6958
6959 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6960 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6961 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6962 echo $ECHO_N "(cached) $ECHO_C" >&6
6963 else
6964 lt_cv_prog_compiler_c_o=no
6965 $rm -r conftest 2>/dev/null
6966 mkdir conftest
6967 cd conftest
6968 mkdir out
6969 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6970
6971 lt_compiler_flag="-o out/conftest2.$ac_objext"
6972 # Insert the option either (1) after the last *FLAGS variable, or
6973 # (2) before a word containing "conftest.", or (3) at the end.
6974 # Note that $ac_compile itself does not contain backslashes and begins
6975 # with a dollar sign (not a hyphen), so the echo should work correctly.
6976 lt_compile=`echo "$ac_compile" | $SED \
6977 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6978 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6979 -e 's:$: $lt_compiler_flag:'`
6980 (eval echo "\"\$as_me:6980: $lt_compile\"" >&5)
6981 (eval "$lt_compile" 2>out/conftest.err)
6982 ac_status=$?
6983 cat out/conftest.err >&5
6984 echo "$as_me:6984: \$? = $ac_status" >&5
6985 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6986 then
6987 # The compiler can only warn and ignore the option if not recognized
6988 # So say no if there are warnings
6989 if test ! -s out/conftest.err; then
6990 lt_cv_prog_compiler_c_o=yes
6991 fi
6992 fi
6993 chmod u+w .
6994 $rm conftest*
6995 # SGI C++ compiler will create directory out/ii_files/ for
6996 # template instantiation
6997 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6998 $rm out/* && rmdir out
6999 cd ..
7000 rmdir conftest
7001 $rm conftest*
7002
7003 fi
7004 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7005 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7006
7007
7008 hard_links="nottested"
7009 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7010 # do not overwrite the value of need_locks provided by the user
7011 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7012 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7013 hard_links=yes
7014 $rm conftest*
7015 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7016 touch conftest.a
7017 ln conftest.a conftest.b 2>&5 || hard_links=no
7018 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7019 echo "$as_me:$LINENO: result: $hard_links" >&5
7020 echo "${ECHO_T}$hard_links" >&6
7021 if test "$hard_links" = no; then
7022 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7023 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7024 need_locks=warn
7025 fi
7026 else
7027 need_locks=no
7028 fi
7029
7030 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7031 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7032
7033 runpath_var=
7034 allow_undefined_flag=
7035 enable_shared_with_static_runtimes=no
7036 archive_cmds=
7037 archive_expsym_cmds=
7038 old_archive_From_new_cmds=
7039 old_archive_from_expsyms_cmds=
7040 export_dynamic_flag_spec=
7041 whole_archive_flag_spec=
7042 thread_safe_flag_spec=
7043 hardcode_libdir_flag_spec=
7044 hardcode_libdir_flag_spec_ld=
7045 hardcode_libdir_separator=
7046 hardcode_direct=no
7047 hardcode_minus_L=no
7048 hardcode_shlibpath_var=unsupported
7049 link_all_deplibs=unknown
7050 hardcode_automatic=no
7051 module_cmds=
7052 module_expsym_cmds=
7053 always_export_symbols=no
7054 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7055 # include_expsyms should be a list of space-separated symbols to be *always*
7056 # included in the symbol list
7057 include_expsyms=
7058 # exclude_expsyms can be an extended regexp of symbols to exclude
7059 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7060 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7061 # as well as any symbol that contains `d'.
7062 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7063 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7064 # platforms (ab)use it in PIC code, but their linkers get confused if
7065 # the symbol is explicitly referenced. Since portable code cannot
7066 # rely on this symbol name, it's probably fine to never include it in
7067 # preloaded symbol tables.
7068 extract_expsyms_cmds=
7069
7070 case $host_os in
7071 cygwin* | mingw* | pw32*)
7072 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7073 # When not using gcc, we currently assume that we are using
7074 # Microsoft Visual C++.
7075 if test "$GCC" != yes; then
7076 with_gnu_ld=no
7077 fi
7078 ;;
7079 openbsd*)
7080 with_gnu_ld=no
7081 ;;
7082 esac
7083
7084 ld_shlibs=yes
7085 if test "$with_gnu_ld" = yes; then
7086 # If archive_cmds runs LD, not CC, wlarc should be empty
7087 wlarc='${wl}'
7088
7089 # See if GNU ld supports shared libraries.
7090 case $host_os in
7091 aix3* | aix4* | aix5*)
7092 # On AIX/PPC, the GNU linker is very broken
7093 if test "$host_cpu" != ia64; then
7094 ld_shlibs=no
7095 cat <<EOF 1>&2
7096
7097 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7098 *** to be unable to reliably create shared libraries on AIX.
7099 *** Therefore, libtool is disabling shared libraries support. If you
7100 *** really care for shared libraries, you may want to modify your PATH
7101 *** so that a non-GNU linker is found, and then restart.
7102
7103 EOF
7104 fi
7105 ;;
7106
7107 amigaos*)
7108 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)'
7109 hardcode_libdir_flag_spec='-L$libdir'
7110 hardcode_minus_L=yes
7111
7112 # Samuel A. Falvo II <[email protected]> reports
7113 # that the semantics of dynamic libraries on AmigaOS, at least up
7114 # to version 4, is to share data among multiple programs linked
7115 # with the same dynamic library. Since this doesn't match the
7116 # behavior of shared libraries on other platforms, we can't use
7117 # them.
7118 ld_shlibs=no
7119 ;;
7120
7121 beos*)
7122 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7123 allow_undefined_flag=unsupported
7124 # Joseph Beckenbach <[email protected]> says some releases of gcc
7125 # support --undefined. This deserves some investigation. FIXME
7126 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7127 else
7128 ld_shlibs=no
7129 fi
7130 ;;
7131
7132 cygwin* | mingw* | pw32*)
7133 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7134 # as there is no search path for DLLs.
7135 hardcode_libdir_flag_spec='-L$libdir'
7136 allow_undefined_flag=unsupported
7137 always_export_symbols=no
7138 enable_shared_with_static_runtimes=yes
7139 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7140
7141 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7142 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7143 # If the export-symbols file already is a .def file (1st line
7144 # is EXPORTS), use it as is; otherwise, prepend...
7145 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7146 cp $export_symbols $output_objdir/$soname.def;
7147 else
7148 echo EXPORTS > $output_objdir/$soname.def;
7149 cat $export_symbols >> $output_objdir/$soname.def;
7150 fi~
7151 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7152 else
7153 ld_shlibs=no
7154 fi
7155 ;;
7156
7157 netbsd*)
7158 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7159 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7160 wlarc=
7161 else
7162 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7163 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7164 fi
7165 ;;
7166
7167 solaris* | sysv5*)
7168 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7169 ld_shlibs=no
7170 cat <<EOF 1>&2
7171
7172 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7173 *** create shared libraries on Solaris systems. Therefore, libtool
7174 *** is disabling shared libraries support. We urge you to upgrade GNU
7175 *** binutils to release 2.9.1 or newer. Another option is to modify
7176 *** your PATH or compiler configuration so that the native linker is
7177 *** used, and then restart.
7178
7179 EOF
7180 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7181 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7182 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7183 else
7184 ld_shlibs=no
7185 fi
7186 ;;
7187
7188 sunos4*)
7189 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7190 wlarc=
7191 hardcode_direct=yes
7192 hardcode_shlibpath_var=no
7193 ;;
7194
7195 linux*)
7196 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7197 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7198 archive_cmds="$tmp_archive_cmds"
7199 supports_anon_versioning=no
7200 case `$LD -v 2>/dev/null` in
7201 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7202 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7203 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7204 *\ 2.11.*) ;; # other 2.11 versions
7205 *) supports_anon_versioning=yes ;;
7206 esac
7207 if test $supports_anon_versioning = yes; then
7208 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7209 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7210 $echo "local: *; };" >> $output_objdir/$libname.ver~
7211 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7212 else
7213 archive_expsym_cmds="$tmp_archive_cmds"
7214 fi
7215 else
7216 ld_shlibs=no
7217 fi
7218 ;;
7219
7220 *)
7221 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7222 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7223 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7224 else
7225 ld_shlibs=no
7226 fi
7227 ;;
7228 esac
7229
7230 if test "$ld_shlibs" = yes; then
7231 runpath_var=LD_RUN_PATH
7232 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7233 export_dynamic_flag_spec='${wl}--export-dynamic'
7234 # ancient GNU ld didn't support --whole-archive et. al.
7235 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7236 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7237 else
7238 whole_archive_flag_spec=
7239 fi
7240 fi
7241 else
7242 # PORTME fill in a description of your system's linker (not GNU ld)
7243 case $host_os in
7244 aix3*)
7245 allow_undefined_flag=unsupported
7246 always_export_symbols=yes
7247 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'
7248 # Note: this linker hardcodes the directories in LIBPATH if there
7249 # are no directories specified by -L.
7250 hardcode_minus_L=yes
7251 if test "$GCC" = yes && test -z "$link_static_flag"; then
7252 # Neither direct hardcoding nor static linking is supported with a
7253 # broken collect2.
7254 hardcode_direct=unsupported
7255 fi
7256 ;;
7257
7258 aix4* | aix5*)
7259 if test "$host_cpu" = ia64; then
7260 # On IA64, the linker does run time linking by default, so we don't
7261 # have to do anything special.
7262 aix_use_runtimelinking=no
7263 exp_sym_flag='-Bexport'
7264 no_entry_flag=""
7265 else
7266 # If we're using GNU nm, then we don't want the "-C" option.
7267 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7268 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7269 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'
7270 else
7271 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'
7272 fi
7273 aix_use_runtimelinking=no
7274
7275 # Test if we are trying to use run time linking or normal
7276 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7277 # need to do runtime linking.
7278 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7279 for ld_flag in $LDFLAGS; do
7280 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7281 aix_use_runtimelinking=yes
7282 break
7283 fi
7284 done
7285 esac
7286
7287 exp_sym_flag='-bexport'
7288 no_entry_flag='-bnoentry'
7289 fi
7290
7291 # When large executables or shared objects are built, AIX ld can
7292 # have problems creating the table of contents. If linking a library
7293 # or program results in "error TOC overflow" add -mminimal-toc to
7294 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7295 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7296
7297 archive_cmds=''
7298 hardcode_direct=yes
7299 hardcode_libdir_separator=':'
7300 link_all_deplibs=yes
7301
7302 if test "$GCC" = yes; then
7303 case $host_os in aix4.012|aix4.012.*)
7304 # We only want to do this on AIX 4.2 and lower, the check
7305 # below for broken collect2 doesn't work under 4.3+
7306 collect2name=`${CC} -print-prog-name=collect2`
7307 if test -f "$collect2name" && \
7308 strings "$collect2name" | grep resolve_lib_name >/dev/null
7309 then
7310 # We have reworked collect2
7311 hardcode_direct=yes
7312 else
7313 # We have old collect2
7314 hardcode_direct=unsupported
7315 # It fails to find uninstalled libraries when the uninstalled
7316 # path is not listed in the libpath. Setting hardcode_minus_L
7317 # to unsupported forces relinking
7318 hardcode_minus_L=yes
7319 hardcode_libdir_flag_spec='-L$libdir'
7320 hardcode_libdir_separator=
7321 fi
7322 esac
7323 shared_flag='-shared'
7324 else
7325 # not using gcc
7326 if test "$host_cpu" = ia64; then
7327 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7328 # chokes on -Wl,-G. The following line is correct:
7329 shared_flag='-G'
7330 else
7331 if test "$aix_use_runtimelinking" = yes; then
7332 shared_flag='${wl}-G'
7333 else
7334 shared_flag='${wl}-bM:SRE'
7335 fi
7336 fi
7337 fi
7338
7339 # It seems that -bexpall does not export symbols beginning with
7340 # underscore (_), so it is better to generate a list of symbols to export.
7341 always_export_symbols=yes
7342 if test "$aix_use_runtimelinking" = yes; then
7343 # Warning - without using the other runtime loading flags (-brtl),
7344 # -berok will link without error, but may produce a broken library.
7345 allow_undefined_flag='-berok'
7346 # Determine the default libpath from the value encoded in an empty executable.
7347 cat >conftest.$ac_ext <<_ACEOF
7348 /* confdefs.h. */
7349 _ACEOF
7350 cat confdefs.h >>conftest.$ac_ext
7351 cat >>conftest.$ac_ext <<_ACEOF
7352 /* end confdefs.h. */
7353
7354 int
7355 main ()
7356 {
7357
7358 ;
7359 return 0;
7360 }
7361 _ACEOF
7362 rm -f conftest.$ac_objext conftest$ac_exeext
7363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7364 (eval $ac_link) 2>conftest.er1
7365 ac_status=$?
7366 grep -v '^ *+' conftest.er1 >conftest.err
7367 rm -f conftest.er1
7368 cat conftest.err >&5
7369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370 (exit $ac_status); } &&
7371 { ac_try='test -z "$ac_c_werror_flag"
7372 || test ! -s conftest.err'
7373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7374 (eval $ac_try) 2>&5
7375 ac_status=$?
7376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377 (exit $ac_status); }; } &&
7378 { ac_try='test -s conftest$ac_exeext'
7379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7380 (eval $ac_try) 2>&5
7381 ac_status=$?
7382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383 (exit $ac_status); }; }; then
7384
7385 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7386 }'`
7387 # Check for a 64-bit object if we didn't find anything.
7388 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; }
7389 }'`; fi
7390 else
7391 echo "$as_me: failed program was:" >&5
7392 sed 's/^/| /' conftest.$ac_ext >&5
7393
7394 fi
7395 rm -f conftest.err conftest.$ac_objext \
7396 conftest$ac_exeext conftest.$ac_ext
7397 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7398
7399 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7400 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7401 else
7402 if test "$host_cpu" = ia64; then
7403 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7404 allow_undefined_flag="-z nodefs"
7405 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7406 else
7407 # Determine the default libpath from the value encoded in an empty executable.
7408 cat >conftest.$ac_ext <<_ACEOF
7409 /* confdefs.h. */
7410 _ACEOF
7411 cat confdefs.h >>conftest.$ac_ext
7412 cat >>conftest.$ac_ext <<_ACEOF
7413 /* end confdefs.h. */
7414
7415 int
7416 main ()
7417 {
7418
7419 ;
7420 return 0;
7421 }
7422 _ACEOF
7423 rm -f conftest.$ac_objext conftest$ac_exeext
7424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7425 (eval $ac_link) 2>conftest.er1
7426 ac_status=$?
7427 grep -v '^ *+' conftest.er1 >conftest.err
7428 rm -f conftest.er1
7429 cat conftest.err >&5
7430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431 (exit $ac_status); } &&
7432 { ac_try='test -z "$ac_c_werror_flag"
7433 || test ! -s conftest.err'
7434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7435 (eval $ac_try) 2>&5
7436 ac_status=$?
7437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7438 (exit $ac_status); }; } &&
7439 { ac_try='test -s conftest$ac_exeext'
7440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7441 (eval $ac_try) 2>&5
7442 ac_status=$?
7443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444 (exit $ac_status); }; }; then
7445
7446 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7447 }'`
7448 # Check for a 64-bit object if we didn't find anything.
7449 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; }
7450 }'`; fi
7451 else
7452 echo "$as_me: failed program was:" >&5
7453 sed 's/^/| /' conftest.$ac_ext >&5
7454
7455 fi
7456 rm -f conftest.err conftest.$ac_objext \
7457 conftest$ac_exeext conftest.$ac_ext
7458 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7459
7460 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7461 # Warning - without using the other run time loading flags,
7462 # -berok will link without error, but may produce a broken library.
7463 no_undefined_flag=' ${wl}-bernotok'
7464 allow_undefined_flag=' ${wl}-berok'
7465 # -bexpall does not export symbols beginning with underscore (_)
7466 always_export_symbols=yes
7467 # Exported symbols can be pulled into shared objects from archives
7468 whole_archive_flag_spec=' '
7469 archive_cmds_need_lc=yes
7470 # This is similar to how AIX traditionally builds it's shared libraries.
7471 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7472 fi
7473 fi
7474 ;;
7475
7476 amigaos*)
7477 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)'
7478 hardcode_libdir_flag_spec='-L$libdir'
7479 hardcode_minus_L=yes
7480 # see comment about different semantics on the GNU ld section
7481 ld_shlibs=no
7482 ;;
7483
7484 bsdi4*)
7485 export_dynamic_flag_spec=-rdynamic
7486 ;;
7487
7488 cygwin* | mingw* | pw32*)
7489 # When not using gcc, we currently assume that we are using
7490 # Microsoft Visual C++.
7491 # hardcode_libdir_flag_spec is actually meaningless, as there is
7492 # no search path for DLLs.
7493 hardcode_libdir_flag_spec=' '
7494 allow_undefined_flag=unsupported
7495 # Tell ltmain to make .lib files, not .a files.
7496 libext=lib
7497 # Tell ltmain to make .dll files, not .so files.
7498 shrext_cmds=".dll"
7499 # FIXME: Setting linknames here is a bad hack.
7500 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7501 # The linker will automatically build a .lib file if we build a DLL.
7502 old_archive_From_new_cmds='true'
7503 # FIXME: Should let the user specify the lib program.
7504 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7505 fix_srcfile_path='`cygpath -w "$srcfile"`'
7506 enable_shared_with_static_runtimes=yes
7507 ;;
7508
7509 darwin* | rhapsody*)
7510 if test "$GXX" = yes ; then
7511 archive_cmds_need_lc=no
7512 case "$host_os" in
7513 rhapsody* | darwin1.[012])
7514 allow_undefined_flag='-undefined suppress'
7515 ;;
7516 *) # Darwin 1.3 on
7517 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7518 allow_undefined_flag='-flat_namespace -undefined suppress'
7519 else
7520 case ${MACOSX_DEPLOYMENT_TARGET} in
7521 10.[012])
7522 allow_undefined_flag='-flat_namespace -undefined suppress'
7523 ;;
7524 10.*)
7525 allow_undefined_flag='-undefined dynamic_lookup'
7526 ;;
7527 esac
7528 fi
7529 ;;
7530 esac
7531 lt_int_apple_cc_single_mod=no
7532 output_verbose_link_cmd='echo'
7533 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7534 lt_int_apple_cc_single_mod=yes
7535 fi
7536 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7537 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7538 else
7539 archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7540 fi
7541 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7542 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7543 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7544 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7545 else
7546 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7547 fi
7548 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}'
7549 hardcode_direct=no
7550 hardcode_automatic=yes
7551 hardcode_shlibpath_var=unsupported
7552 whole_archive_flag_spec='-all_load $convenience'
7553 link_all_deplibs=yes
7554 else
7555 ld_shlibs=no
7556 fi
7557 ;;
7558
7559 dgux*)
7560 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7561 hardcode_libdir_flag_spec='-L$libdir'
7562 hardcode_shlibpath_var=no
7563 ;;
7564
7565 freebsd1*)
7566 ld_shlibs=no
7567 ;;
7568
7569 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7570 # support. Future versions do this automatically, but an explicit c++rt0.o
7571 # does not break anything, and helps significantly (at the cost of a little
7572 # extra space).
7573 freebsd2.2*)
7574 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7575 hardcode_libdir_flag_spec='-R$libdir'
7576 hardcode_direct=yes
7577 hardcode_shlibpath_var=no
7578 ;;
7579
7580 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7581 freebsd2*)
7582 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7583 hardcode_direct=yes
7584 hardcode_minus_L=yes
7585 hardcode_shlibpath_var=no
7586 ;;
7587
7588 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7589 freebsd* | kfreebsd*-gnu)
7590 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7591 hardcode_libdir_flag_spec='-R$libdir'
7592 hardcode_direct=yes
7593 hardcode_shlibpath_var=no
7594 ;;
7595
7596 hpux9*)
7597 if test "$GCC" = yes; then
7598 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'
7599 else
7600 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'
7601 fi
7602 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7603 hardcode_libdir_separator=:
7604 hardcode_direct=yes
7605
7606 # hardcode_minus_L: Not really in the search PATH,
7607 # but as the default location of the library.
7608 hardcode_minus_L=yes
7609 export_dynamic_flag_spec='${wl}-E'
7610 ;;
7611
7612 hpux10* | hpux11*)
7613 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7614 case "$host_cpu" in
7615 hppa*64*|ia64*)
7616 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7617 ;;
7618 *)
7619 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7620 ;;
7621 esac
7622 else
7623 case "$host_cpu" in
7624 hppa*64*|ia64*)
7625 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7626 ;;
7627 *)
7628 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7629 ;;
7630 esac
7631 fi
7632 if test "$with_gnu_ld" = no; then
7633 case "$host_cpu" in
7634 hppa*64*)
7635 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7636 hardcode_libdir_flag_spec_ld='+b $libdir'
7637 hardcode_libdir_separator=:
7638 hardcode_direct=no
7639 hardcode_shlibpath_var=no
7640 ;;
7641 ia64*)
7642 hardcode_libdir_flag_spec='-L$libdir'
7643 hardcode_direct=no
7644 hardcode_shlibpath_var=no
7645
7646 # hardcode_minus_L: Not really in the search PATH,
7647 # but as the default location of the library.
7648 hardcode_minus_L=yes
7649 ;;
7650 *)
7651 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7652 hardcode_libdir_separator=:
7653 hardcode_direct=yes
7654 export_dynamic_flag_spec='${wl}-E'
7655
7656 # hardcode_minus_L: Not really in the search PATH,
7657 # but as the default location of the library.
7658 hardcode_minus_L=yes
7659 ;;
7660 esac
7661 fi
7662 ;;
7663
7664 irix5* | irix6* | nonstopux*)
7665 if test "$GCC" = yes; then
7666 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'
7667 else
7668 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'
7669 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7670 fi
7671 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7672 hardcode_libdir_separator=:
7673 link_all_deplibs=yes
7674 ;;
7675
7676 netbsd*)
7677 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7678 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7679 else
7680 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7681 fi
7682 hardcode_libdir_flag_spec='-R$libdir'
7683 hardcode_direct=yes
7684 hardcode_shlibpath_var=no
7685 ;;
7686
7687 newsos6)
7688 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7689 hardcode_direct=yes
7690 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7691 hardcode_libdir_separator=:
7692 hardcode_shlibpath_var=no
7693 ;;
7694
7695 openbsd*)
7696 hardcode_direct=yes
7697 hardcode_shlibpath_var=no
7698 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7699 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7700 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7701 export_dynamic_flag_spec='${wl}-E'
7702 else
7703 case $host_os in
7704 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7705 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7706 hardcode_libdir_flag_spec='-R$libdir'
7707 ;;
7708 *)
7709 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7710 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7711 ;;
7712 esac
7713 fi
7714 ;;
7715
7716 os2*)
7717 hardcode_libdir_flag_spec='-L$libdir'
7718 hardcode_minus_L=yes
7719 allow_undefined_flag=unsupported
7720 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'
7721 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7722 ;;
7723
7724 osf3*)
7725 if test "$GCC" = yes; then
7726 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7727 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'
7728 else
7729 allow_undefined_flag=' -expect_unresolved \*'
7730 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'
7731 fi
7732 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7733 hardcode_libdir_separator=:
7734 ;;
7735
7736 osf4* | osf5*) # as osf3* with the addition of -msym flag
7737 if test "$GCC" = yes; then
7738 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7739 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'
7740 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7741 else
7742 allow_undefined_flag=' -expect_unresolved \*'
7743 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'
7744 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7745 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7746
7747 # Both c and cxx compiler support -rpath directly
7748 hardcode_libdir_flag_spec='-rpath $libdir'
7749 fi
7750 hardcode_libdir_separator=:
7751 ;;
7752
7753 sco3.2v5*)
7754 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7755 hardcode_shlibpath_var=no
7756 export_dynamic_flag_spec='${wl}-Bexport'
7757 runpath_var=LD_RUN_PATH
7758 hardcode_runpath_var=yes
7759 ;;
7760
7761 solaris*)
7762 no_undefined_flag=' -z text'
7763 if test "$GCC" = yes; then
7764 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7765 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7766 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7767 else
7768 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7769 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7770 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7771 fi
7772 hardcode_libdir_flag_spec='-R$libdir'
7773 hardcode_shlibpath_var=no
7774 case $host_os in
7775 solaris2.[0-5] | solaris2.[0-5].*) ;;
7776 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7777 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7778 esac
7779 link_all_deplibs=yes
7780 ;;
7781
7782 sunos4*)
7783 if test "x$host_vendor" = xsequent; then
7784 # Use $CC to link under sequent, because it throws in some extra .o
7785 # files that make .init and .fini sections work.
7786 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7787 else
7788 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7789 fi
7790 hardcode_libdir_flag_spec='-L$libdir'
7791 hardcode_direct=yes
7792 hardcode_minus_L=yes
7793 hardcode_shlibpath_var=no
7794 ;;
7795
7796 sysv4)
7797 case $host_vendor in
7798 sni)
7799 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7800 hardcode_direct=yes # is this really true???
7801 ;;
7802 siemens)
7803 ## LD is ld it makes a PLAMLIB
7804 ## CC just makes a GrossModule.
7805 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7806 reload_cmds='$CC -r -o $output$reload_objs'
7807 hardcode_direct=no
7808 ;;
7809 motorola)
7810 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7811 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7812 ;;
7813 esac
7814 runpath_var='LD_RUN_PATH'
7815 hardcode_shlibpath_var=no
7816 ;;
7817
7818 sysv4.3*)
7819 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7820 hardcode_shlibpath_var=no
7821 export_dynamic_flag_spec='-Bexport'
7822 ;;
7823
7824 sysv4*MP*)
7825 if test -d /usr/nec; then
7826 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7827 hardcode_shlibpath_var=no
7828 runpath_var=LD_RUN_PATH
7829 hardcode_runpath_var=yes
7830 ld_shlibs=yes
7831 fi
7832 ;;
7833
7834 sysv4.2uw2*)
7835 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7836 hardcode_direct=yes
7837 hardcode_minus_L=no
7838 hardcode_shlibpath_var=no
7839 hardcode_runpath_var=yes
7840 runpath_var=LD_RUN_PATH
7841 ;;
7842
7843 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7844 no_undefined_flag='${wl}-z ${wl}text'
7845 if test "$GCC" = yes; then
7846 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7847 else
7848 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7849 fi
7850 runpath_var='LD_RUN_PATH'
7851 hardcode_shlibpath_var=no
7852 ;;
7853
7854 sysv5*)
7855 no_undefined_flag=' -z text'
7856 # $CC -shared without GNU ld will not create a library from C++
7857 # object files and a static libstdc++, better avoid it by now
7858 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7859 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7860 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7861 hardcode_libdir_flag_spec=
7862 hardcode_shlibpath_var=no
7863 runpath_var='LD_RUN_PATH'
7864 ;;
7865
7866 uts4*)
7867 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7868 hardcode_libdir_flag_spec='-L$libdir'
7869 hardcode_shlibpath_var=no
7870 ;;
7871
7872 *)
7873 ld_shlibs=no
7874 ;;
7875 esac
7876 fi
7877
7878 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7879 echo "${ECHO_T}$ld_shlibs" >&6
7880 test "$ld_shlibs" = no && can_build_shared=no
7881
7882 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7883 if test "$GCC" = yes; then
7884 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7885 fi
7886
7887 #
7888 # Do we need to explicitly link libc?
7889 #
7890 case "x$archive_cmds_need_lc" in
7891 x|xyes)
7892 # Assume -lc should be added
7893 archive_cmds_need_lc=yes
7894
7895 if test "$enable_shared" = yes && test "$GCC" = yes; then
7896 case $archive_cmds in
7897 *'~'*)
7898 # FIXME: we may have to deal with multi-command sequences.
7899 ;;
7900 '$CC '*)
7901 # Test whether the compiler implicitly links with -lc since on some
7902 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7903 # to ld, don't add -lc before -lgcc.
7904 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7905 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7906 $rm conftest*
7907 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7908
7909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7910 (eval $ac_compile) 2>&5
7911 ac_status=$?
7912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913 (exit $ac_status); } 2>conftest.err; then
7914 soname=conftest
7915 lib=conftest
7916 libobjs=conftest.$ac_objext
7917 deplibs=
7918 wl=$lt_prog_compiler_wl
7919 compiler_flags=-v
7920 linker_flags=-v
7921 verstring=
7922 output_objdir=.
7923 libname=conftest
7924 lt_save_allow_undefined_flag=$allow_undefined_flag
7925 allow_undefined_flag=
7926 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7927 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7928 ac_status=$?
7929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7930 (exit $ac_status); }
7931 then
7932 archive_cmds_need_lc=no
7933 else
7934 archive_cmds_need_lc=yes
7935 fi
7936 allow_undefined_flag=$lt_save_allow_undefined_flag
7937 else
7938 cat conftest.err 1>&5
7939 fi
7940 $rm conftest*
7941 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7942 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7943 ;;
7944 esac
7945 fi
7946 ;;
7947 esac
7948
7949 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7950 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7951 library_names_spec=
7952 libname_spec='lib$name'
7953 soname_spec=
7954 shrext_cmds=".so"
7955 postinstall_cmds=
7956 postuninstall_cmds=
7957 finish_cmds=
7958 finish_eval=
7959 shlibpath_var=
7960 shlibpath_overrides_runpath=unknown
7961 version_type=none
7962 dynamic_linker="$host_os ld.so"
7963 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7964 if test "$GCC" = yes; then
7965 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7966 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7967 # if the path contains ";" then we assume it to be the separator
7968 # otherwise default to the standard path separator (i.e. ":") - it is
7969 # assumed that no part of a normal pathname contains ";" but that should
7970 # okay in the real world where ";" in dirpaths is itself problematic.
7971 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7972 else
7973 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7974 fi
7975 else
7976 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7977 fi
7978 need_lib_prefix=unknown
7979 hardcode_into_libs=no
7980
7981 # when you set need_version to no, make sure it does not cause -set_version
7982 # flags to be left without arguments
7983 need_version=unknown
7984
7985 case $host_os in
7986 aix3*)
7987 version_type=linux
7988 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7989 shlibpath_var=LIBPATH
7990
7991 # AIX 3 has no versioning support, so we append a major version to the name.
7992 soname_spec='${libname}${release}${shared_ext}$major'
7993 ;;
7994
7995 aix4* | aix5*)
7996 version_type=linux
7997 need_lib_prefix=no
7998 need_version=no
7999 hardcode_into_libs=yes
8000 if test "$host_cpu" = ia64; then
8001 # AIX 5 supports IA64
8002 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8003 shlibpath_var=LD_LIBRARY_PATH
8004 else
8005 # With GCC up to 2.95.x, collect2 would create an import file
8006 # for dependence libraries. The import file would start with
8007 # the line `#! .'. This would cause the generated library to
8008 # depend on `.', always an invalid library. This was fixed in
8009 # development snapshots of GCC prior to 3.0.
8010 case $host_os in
8011 aix4 | aix4.[01] | aix4.[01].*)
8012 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8013 echo ' yes '
8014 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8015 :
8016 else
8017 can_build_shared=no
8018 fi
8019 ;;
8020 esac
8021 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8022 # soname into executable. Probably we can add versioning support to
8023 # collect2, so additional links can be useful in future.
8024 if test "$aix_use_runtimelinking" = yes; then
8025 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8026 # instead of lib<name>.a to let people know that these are not
8027 # typical AIX shared libraries.
8028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8029 else
8030 # We preserve .a as extension for shared libraries through AIX4.2
8031 # and later when we are not doing run time linking.
8032 library_names_spec='${libname}${release}.a $libname.a'
8033 soname_spec='${libname}${release}${shared_ext}$major'
8034 fi
8035 shlibpath_var=LIBPATH
8036 fi
8037 ;;
8038
8039 amigaos*)
8040 library_names_spec='$libname.ixlibrary $libname.a'
8041 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8042 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'
8043 ;;
8044
8045 beos*)
8046 library_names_spec='${libname}${shared_ext}'
8047 dynamic_linker="$host_os ld.so"
8048 shlibpath_var=LIBRARY_PATH
8049 ;;
8050
8051 bsdi4*)
8052 version_type=linux
8053 need_version=no
8054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8055 soname_spec='${libname}${release}${shared_ext}$major'
8056 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8057 shlibpath_var=LD_LIBRARY_PATH
8058 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8059 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8060 # the default ld.so.conf also contains /usr/contrib/lib and
8061 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8062 # libtool to hard-code these into programs
8063 ;;
8064
8065 cygwin* | mingw* | pw32*)
8066 version_type=windows
8067 shrext_cmds=".dll"
8068 need_version=no
8069 need_lib_prefix=no
8070
8071 case $GCC,$host_os in
8072 yes,cygwin* | yes,mingw* | yes,pw32*)
8073 library_names_spec='$libname.dll.a'
8074 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8075 postinstall_cmds='base_file=`basename \${file}`~
8076 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8077 dldir=$destdir/`dirname \$dlpath`~
8078 test -d \$dldir || mkdir -p \$dldir~
8079 $install_prog $dir/$dlname \$dldir/$dlname'
8080 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8081 dlpath=$dir/\$dldll~
8082 $rm \$dlpath'
8083 shlibpath_overrides_runpath=yes
8084
8085 case $host_os in
8086 cygwin*)
8087 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8088 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8089 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8090 ;;
8091 mingw*)
8092 # MinGW DLLs use traditional 'lib' prefix
8093 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8094 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8095 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8096 # It is most probably a Windows format PATH printed by
8097 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8098 # path with ; separators, and with drive letters. We can handle the
8099 # drive letters (cygwin fileutils understands them), so leave them,
8100 # especially as we might pass files found there to a mingw objdump,
8101 # which wouldn't understand a cygwinified path. Ahh.
8102 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8103 else
8104 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8105 fi
8106 ;;
8107 pw32*)
8108 # pw32 DLLs use 'pw' prefix rather than 'lib'
8109 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
8110 ;;
8111 esac
8112 ;;
8113
8114 *)
8115 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8116 ;;
8117 esac
8118 dynamic_linker='Win32 ld.exe'
8119 # FIXME: first we should search . and the directory the executable is in
8120 shlibpath_var=PATH
8121 ;;
8122
8123 darwin* | rhapsody*)
8124 dynamic_linker="$host_os dyld"
8125 version_type=darwin
8126 need_lib_prefix=no
8127 need_version=no
8128 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8129 soname_spec='${libname}${release}${major}$shared_ext'
8130 shlibpath_overrides_runpath=yes
8131 shlibpath_var=DYLD_LIBRARY_PATH
8132 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
8133 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8134 if test "$GCC" = yes; then
8135 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"`
8136 else
8137 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8138 fi
8139 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8140 ;;
8141
8142 dgux*)
8143 version_type=linux
8144 need_lib_prefix=no
8145 need_version=no
8146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8147 soname_spec='${libname}${release}${shared_ext}$major'
8148 shlibpath_var=LD_LIBRARY_PATH
8149 ;;
8150
8151 freebsd1*)
8152 dynamic_linker=no
8153 ;;
8154
8155 kfreebsd*-gnu)
8156 version_type=linux
8157 need_lib_prefix=no
8158 need_version=no
8159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8160 soname_spec='${libname}${release}${shared_ext}$major'
8161 shlibpath_var=LD_LIBRARY_PATH
8162 shlibpath_overrides_runpath=no
8163 hardcode_into_libs=yes
8164 dynamic_linker='GNU ld.so'
8165 ;;
8166
8167 freebsd*)
8168 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8169 version_type=freebsd-$objformat
8170 case $version_type in
8171 freebsd-elf*)
8172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8173 need_version=no
8174 need_lib_prefix=no
8175 ;;
8176 freebsd-*)
8177 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8178 need_version=yes
8179 ;;
8180 esac
8181 shlibpath_var=LD_LIBRARY_PATH
8182 case $host_os in
8183 freebsd2*)
8184 shlibpath_overrides_runpath=yes
8185 ;;
8186 freebsd3.01* | freebsdelf3.01*)
8187 shlibpath_overrides_runpath=yes
8188 hardcode_into_libs=yes
8189 ;;
8190 *) # from 3.2 on
8191 shlibpath_overrides_runpath=no
8192 hardcode_into_libs=yes
8193 ;;
8194 esac
8195 ;;
8196
8197 gnu*)
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 hardcode_into_libs=yes
8205 ;;
8206
8207 hpux9* | hpux10* | hpux11*)
8208 # Give a soname corresponding to the major version so that dld.sl refuses to
8209 # link against other versions.
8210 version_type=sunos
8211 need_lib_prefix=no
8212 need_version=no
8213 case "$host_cpu" in
8214 ia64*)
8215 shrext_cmds='.so'
8216 hardcode_into_libs=yes
8217 dynamic_linker="$host_os dld.so"
8218 shlibpath_var=LD_LIBRARY_PATH
8219 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8221 soname_spec='${libname}${release}${shared_ext}$major'
8222 if test "X$HPUX_IA64_MODE" = X32; then
8223 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8224 else
8225 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8226 fi
8227 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8228 ;;
8229 hppa*64*)
8230 shrext_cmds='.sl'
8231 hardcode_into_libs=yes
8232 dynamic_linker="$host_os dld.sl"
8233 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8234 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8236 soname_spec='${libname}${release}${shared_ext}$major'
8237 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8238 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8239 ;;
8240 *)
8241 shrext_cmds='.sl'
8242 dynamic_linker="$host_os dld.sl"
8243 shlibpath_var=SHLIB_PATH
8244 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8246 soname_spec='${libname}${release}${shared_ext}$major'
8247 ;;
8248 esac
8249 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8250 postinstall_cmds='chmod 555 $lib'
8251 ;;
8252
8253 irix5* | irix6* | nonstopux*)
8254 case $host_os in
8255 nonstopux*) version_type=nonstopux ;;
8256 *)
8257 if test "$lt_cv_prog_gnu_ld" = yes; then
8258 version_type=linux
8259 else
8260 version_type=irix
8261 fi ;;
8262 esac
8263 need_lib_prefix=no
8264 need_version=no
8265 soname_spec='${libname}${release}${shared_ext}$major'
8266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8267 case $host_os in
8268 irix5* | nonstopux*)
8269 libsuff= shlibsuff=
8270 ;;
8271 *)
8272 case $LD in # libtool.m4 will add one of these switches to LD
8273 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8274 libsuff= shlibsuff= libmagic=32-bit;;
8275 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8276 libsuff=32 shlibsuff=N32 libmagic=N32;;
8277 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8278 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8279 *) libsuff= shlibsuff= libmagic=never-match;;
8280 esac
8281 ;;
8282 esac
8283 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8284 shlibpath_overrides_runpath=no
8285 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8286 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8287 hardcode_into_libs=yes
8288 ;;
8289
8290 # No shared lib support for Linux oldld, aout, or coff.
8291 linux*oldld* | linux*aout* | linux*coff*)
8292 dynamic_linker=no
8293 ;;
8294
8295 # This must be Linux ELF.
8296 linux*)
8297 version_type=linux
8298 need_lib_prefix=no
8299 need_version=no
8300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8301 soname_spec='${libname}${release}${shared_ext}$major'
8302 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8303 shlibpath_var=LD_LIBRARY_PATH
8304 shlibpath_overrides_runpath=no
8305 # This implies no fast_install, which is unacceptable.
8306 # Some rework will be needed to allow for fast_install
8307 # before this can be enabled.
8308 hardcode_into_libs=yes
8309
8310 # Append ld.so.conf contents to the search path
8311 if test -f /etc/ld.so.conf; then
8312 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
8313 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8314 fi
8315
8316 # We used to test for /lib/ld.so.1 and disable shared libraries on
8317 # powerpc, because MkLinux only supported shared libraries with the
8318 # GNU dynamic linker. Since this was broken with cross compilers,
8319 # most powerpc-linux boxes support dynamic linking these days and
8320 # people can always --disable-shared, the test was removed, and we
8321 # assume the GNU/Linux dynamic linker is in use.
8322 dynamic_linker='GNU/Linux ld.so'
8323 ;;
8324
8325 knetbsd*-gnu)
8326 version_type=linux
8327 need_lib_prefix=no
8328 need_version=no
8329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8330 soname_spec='${libname}${release}${shared_ext}$major'
8331 shlibpath_var=LD_LIBRARY_PATH
8332 shlibpath_overrides_runpath=no
8333 hardcode_into_libs=yes
8334 dynamic_linker='GNU ld.so'
8335 ;;
8336
8337 netbsd*)
8338 version_type=sunos
8339 need_lib_prefix=no
8340 need_version=no
8341 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8343 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8344 dynamic_linker='NetBSD (a.out) ld.so'
8345 else
8346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8347 soname_spec='${libname}${release}${shared_ext}$major'
8348 dynamic_linker='NetBSD ld.elf_so'
8349 fi
8350 shlibpath_var=LD_LIBRARY_PATH
8351 shlibpath_overrides_runpath=yes
8352 hardcode_into_libs=yes
8353 ;;
8354
8355 newsos6)
8356 version_type=linux
8357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8358 shlibpath_var=LD_LIBRARY_PATH
8359 shlibpath_overrides_runpath=yes
8360 ;;
8361
8362 nto-qnx*)
8363 version_type=linux
8364 need_lib_prefix=no
8365 need_version=no
8366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8367 soname_spec='${libname}${release}${shared_ext}$major'
8368 shlibpath_var=LD_LIBRARY_PATH
8369 shlibpath_overrides_runpath=yes
8370 ;;
8371
8372 openbsd*)
8373 version_type=sunos
8374 need_lib_prefix=no
8375 need_version=yes
8376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8377 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8378 shlibpath_var=LD_LIBRARY_PATH
8379 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8380 case $host_os in
8381 openbsd2.[89] | openbsd2.[89].*)
8382 shlibpath_overrides_runpath=no
8383 ;;
8384 *)
8385 shlibpath_overrides_runpath=yes
8386 ;;
8387 esac
8388 else
8389 shlibpath_overrides_runpath=yes
8390 fi
8391 ;;
8392
8393 os2*)
8394 libname_spec='$name'
8395 shrext_cmds=".dll"
8396 need_lib_prefix=no
8397 library_names_spec='$libname${shared_ext} $libname.a'
8398 dynamic_linker='OS/2 ld.exe'
8399 shlibpath_var=LIBPATH
8400 ;;
8401
8402 osf3* | osf4* | osf5*)
8403 version_type=osf
8404 need_lib_prefix=no
8405 need_version=no
8406 soname_spec='${libname}${release}${shared_ext}$major'
8407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8408 shlibpath_var=LD_LIBRARY_PATH
8409 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8410 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8411 ;;
8412
8413 sco3.2v5*)
8414 version_type=osf
8415 soname_spec='${libname}${release}${shared_ext}$major'
8416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8417 shlibpath_var=LD_LIBRARY_PATH
8418 ;;
8419
8420 solaris*)
8421 version_type=linux
8422 need_lib_prefix=no
8423 need_version=no
8424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8425 soname_spec='${libname}${release}${shared_ext}$major'
8426 shlibpath_var=LD_LIBRARY_PATH
8427 shlibpath_overrides_runpath=yes
8428 hardcode_into_libs=yes
8429 # ldd complains unless libraries are executable
8430 postinstall_cmds='chmod +x $lib'
8431 ;;
8432
8433 sunos4*)
8434 version_type=sunos
8435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8436 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8437 shlibpath_var=LD_LIBRARY_PATH
8438 shlibpath_overrides_runpath=yes
8439 if test "$with_gnu_ld" = yes; then
8440 need_lib_prefix=no
8441 fi
8442 need_version=yes
8443 ;;
8444
8445 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8446 version_type=linux
8447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8448 soname_spec='${libname}${release}${shared_ext}$major'
8449 shlibpath_var=LD_LIBRARY_PATH
8450 case $host_vendor in
8451 sni)
8452 shlibpath_overrides_runpath=no
8453 need_lib_prefix=no
8454 export_dynamic_flag_spec='${wl}-Blargedynsym'
8455 runpath_var=LD_RUN_PATH
8456 ;;
8457 siemens)
8458 need_lib_prefix=no
8459 ;;
8460 motorola)
8461 need_lib_prefix=no
8462 need_version=no
8463 shlibpath_overrides_runpath=no
8464 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8465 ;;
8466 esac
8467 ;;
8468
8469 sysv4*MP*)
8470 if test -d /usr/nec ;then
8471 version_type=linux
8472 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8473 soname_spec='$libname${shared_ext}.$major'
8474 shlibpath_var=LD_LIBRARY_PATH
8475 fi
8476 ;;
8477
8478 uts4*)
8479 version_type=linux
8480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8481 soname_spec='${libname}${release}${shared_ext}$major'
8482 shlibpath_var=LD_LIBRARY_PATH
8483 ;;
8484
8485 *)
8486 dynamic_linker=no
8487 ;;
8488 esac
8489 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8490 echo "${ECHO_T}$dynamic_linker" >&6
8491 test "$dynamic_linker" = no && can_build_shared=no
8492
8493 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8494 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8495 hardcode_action=
8496 if test -n "$hardcode_libdir_flag_spec" || \
8497 test -n "$runpath_var " || \
8498 test "X$hardcode_automatic"="Xyes" ; then
8499
8500 # We can hardcode non-existant directories.
8501 if test "$hardcode_direct" != no &&
8502 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8503 # have to relink, otherwise we might link with an installed library
8504 # when we should be linking with a yet-to-be-installed one
8505 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8506 test "$hardcode_minus_L" != no; then
8507 # Linking always hardcodes the temporary library directory.
8508 hardcode_action=relink
8509 else
8510 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8511 hardcode_action=immediate
8512 fi
8513 else
8514 # We cannot hardcode anything, or else we can only hardcode existing
8515 # directories.
8516 hardcode_action=unsupported
8517 fi
8518 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8519 echo "${ECHO_T}$hardcode_action" >&6
8520
8521 if test "$hardcode_action" = relink; then
8522 # Fast installation is not supported
8523 enable_fast_install=no
8524 elif test "$shlibpath_overrides_runpath" = yes ||
8525 test "$enable_shared" = no; then
8526 # Fast installation is not necessary
8527 enable_fast_install=needless
8528 fi
8529
8530 striplib=
8531 old_striplib=
8532 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8533 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8534 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8535 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8536 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8537 echo "$as_me:$LINENO: result: yes" >&5
8538 echo "${ECHO_T}yes" >&6
8539 else
8540 # FIXME - insert some real tests, host_os isn't really good enough
8541 case $host_os in
8542 darwin*)
8543 if test -n "$STRIP" ; then
8544 striplib="$STRIP -x"
8545 echo "$as_me:$LINENO: result: yes" >&5
8546 echo "${ECHO_T}yes" >&6
8547 else
8548 echo "$as_me:$LINENO: result: no" >&5
8549 echo "${ECHO_T}no" >&6
8550 fi
8551 ;;
8552 *)
8553 echo "$as_me:$LINENO: result: no" >&5
8554 echo "${ECHO_T}no" >&6
8555 ;;
8556 esac
8557 fi
8558
8559 if test "x$enable_dlopen" != xyes; then
8560 enable_dlopen=unknown
8561 enable_dlopen_self=unknown
8562 enable_dlopen_self_static=unknown
8563 else
8564 lt_cv_dlopen=no
8565 lt_cv_dlopen_libs=
8566
8567 case $host_os in
8568 beos*)
8569 lt_cv_dlopen="load_add_on"
8570 lt_cv_dlopen_libs=
8571 lt_cv_dlopen_self=yes
8572 ;;
8573
8574 mingw* | pw32*)
8575 lt_cv_dlopen="LoadLibrary"
8576 lt_cv_dlopen_libs=
8577 ;;
8578
8579 cygwin*)
8580 lt_cv_dlopen="dlopen"
8581 lt_cv_dlopen_libs=
8582 ;;
8583
8584 darwin*)
8585 # if libdl is installed we need to link against it
8586 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8587 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8588 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8589 echo $ECHO_N "(cached) $ECHO_C" >&6
8590 else
8591 ac_check_lib_save_LIBS=$LIBS
8592 LIBS="-ldl $LIBS"
8593 cat >conftest.$ac_ext <<_ACEOF
8594 /* confdefs.h. */
8595 _ACEOF
8596 cat confdefs.h >>conftest.$ac_ext
8597 cat >>conftest.$ac_ext <<_ACEOF
8598 /* end confdefs.h. */
8599
8600 /* Override any gcc2 internal prototype to avoid an error. */
8601 #ifdef __cplusplus
8602 extern "C"
8603 #endif
8604 /* We use char because int might match the return type of a gcc2
8605 builtin and then its argument prototype would still apply. */
8606 char dlopen ();
8607 int
8608 main ()
8609 {
8610 dlopen ();
8611 ;
8612 return 0;
8613 }
8614 _ACEOF
8615 rm -f conftest.$ac_objext conftest$ac_exeext
8616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8617 (eval $ac_link) 2>conftest.er1
8618 ac_status=$?
8619 grep -v '^ *+' conftest.er1 >conftest.err
8620 rm -f conftest.er1
8621 cat conftest.err >&5
8622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623 (exit $ac_status); } &&
8624 { ac_try='test -z "$ac_c_werror_flag"
8625 || test ! -s conftest.err'
8626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8627 (eval $ac_try) 2>&5
8628 ac_status=$?
8629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8630 (exit $ac_status); }; } &&
8631 { ac_try='test -s conftest$ac_exeext'
8632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8633 (eval $ac_try) 2>&5
8634 ac_status=$?
8635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636 (exit $ac_status); }; }; then
8637 ac_cv_lib_dl_dlopen=yes
8638 else
8639 echo "$as_me: failed program was:" >&5
8640 sed 's/^/| /' conftest.$ac_ext >&5
8641
8642 ac_cv_lib_dl_dlopen=no
8643 fi
8644 rm -f conftest.err conftest.$ac_objext \
8645 conftest$ac_exeext conftest.$ac_ext
8646 LIBS=$ac_check_lib_save_LIBS
8647 fi
8648 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8649 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8650 if test $ac_cv_lib_dl_dlopen = yes; then
8651 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8652 else
8653
8654 lt_cv_dlopen="dyld"
8655 lt_cv_dlopen_libs=
8656 lt_cv_dlopen_self=yes
8657
8658 fi
8659
8660 ;;
8661
8662 *)
8663 echo "$as_me:$LINENO: checking for shl_load" >&5
8664 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8665 if test "${ac_cv_func_shl_load+set}" = set; then
8666 echo $ECHO_N "(cached) $ECHO_C" >&6
8667 else
8668 cat >conftest.$ac_ext <<_ACEOF
8669 /* confdefs.h. */
8670 _ACEOF
8671 cat confdefs.h >>conftest.$ac_ext
8672 cat >>conftest.$ac_ext <<_ACEOF
8673 /* end confdefs.h. */
8674 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8675 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8676 #define shl_load innocuous_shl_load
8677
8678 /* System header to define __stub macros and hopefully few prototypes,
8679 which can conflict with char shl_load (); below.
8680 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8681 <limits.h> exists even on freestanding compilers. */
8682
8683 #ifdef __STDC__
8684 # include <limits.h>
8685 #else
8686 # include <assert.h>
8687 #endif
8688
8689 #undef shl_load
8690
8691 /* Override any gcc2 internal prototype to avoid an error. */
8692 #ifdef __cplusplus
8693 extern "C"
8694 {
8695 #endif
8696 /* We use char because int might match the return type of a gcc2
8697 builtin and then its argument prototype would still apply. */
8698 char shl_load ();
8699 /* The GNU C library defines this for functions which it implements
8700 to always fail with ENOSYS. Some functions are actually named
8701 something starting with __ and the normal name is an alias. */
8702 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8703 choke me
8704 #else
8705 char (*f) () = shl_load;
8706 #endif
8707 #ifdef __cplusplus
8708 }
8709 #endif
8710
8711 int
8712 main ()
8713 {
8714 return f != shl_load;
8715 ;
8716 return 0;
8717 }
8718 _ACEOF
8719 rm -f conftest.$ac_objext conftest$ac_exeext
8720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8721 (eval $ac_link) 2>conftest.er1
8722 ac_status=$?
8723 grep -v '^ *+' conftest.er1 >conftest.err
8724 rm -f conftest.er1
8725 cat conftest.err >&5
8726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727 (exit $ac_status); } &&
8728 { ac_try='test -z "$ac_c_werror_flag"
8729 || test ! -s conftest.err'
8730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8731 (eval $ac_try) 2>&5
8732 ac_status=$?
8733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8734 (exit $ac_status); }; } &&
8735 { ac_try='test -s conftest$ac_exeext'
8736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8737 (eval $ac_try) 2>&5
8738 ac_status=$?
8739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8740 (exit $ac_status); }; }; then
8741 ac_cv_func_shl_load=yes
8742 else
8743 echo "$as_me: failed program was:" >&5
8744 sed 's/^/| /' conftest.$ac_ext >&5
8745
8746 ac_cv_func_shl_load=no
8747 fi
8748 rm -f conftest.err conftest.$ac_objext \
8749 conftest$ac_exeext conftest.$ac_ext
8750 fi
8751 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8752 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8753 if test $ac_cv_func_shl_load = yes; then
8754 lt_cv_dlopen="shl_load"
8755 else
8756 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8757 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8758 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8759 echo $ECHO_N "(cached) $ECHO_C" >&6
8760 else
8761 ac_check_lib_save_LIBS=$LIBS
8762 LIBS="-ldld $LIBS"
8763 cat >conftest.$ac_ext <<_ACEOF
8764 /* confdefs.h. */
8765 _ACEOF
8766 cat confdefs.h >>conftest.$ac_ext
8767 cat >>conftest.$ac_ext <<_ACEOF
8768 /* end confdefs.h. */
8769
8770 /* Override any gcc2 internal prototype to avoid an error. */
8771 #ifdef __cplusplus
8772 extern "C"
8773 #endif
8774 /* We use char because int might match the return type of a gcc2
8775 builtin and then its argument prototype would still apply. */
8776 char shl_load ();
8777 int
8778 main ()
8779 {
8780 shl_load ();
8781 ;
8782 return 0;
8783 }
8784 _ACEOF
8785 rm -f conftest.$ac_objext conftest$ac_exeext
8786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8787 (eval $ac_link) 2>conftest.er1
8788 ac_status=$?
8789 grep -v '^ *+' conftest.er1 >conftest.err
8790 rm -f conftest.er1
8791 cat conftest.err >&5
8792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8793 (exit $ac_status); } &&
8794 { ac_try='test -z "$ac_c_werror_flag"
8795 || test ! -s conftest.err'
8796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8797 (eval $ac_try) 2>&5
8798 ac_status=$?
8799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8800 (exit $ac_status); }; } &&
8801 { ac_try='test -s conftest$ac_exeext'
8802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8803 (eval $ac_try) 2>&5
8804 ac_status=$?
8805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806 (exit $ac_status); }; }; then
8807 ac_cv_lib_dld_shl_load=yes
8808 else
8809 echo "$as_me: failed program was:" >&5
8810 sed 's/^/| /' conftest.$ac_ext >&5
8811
8812 ac_cv_lib_dld_shl_load=no
8813 fi
8814 rm -f conftest.err conftest.$ac_objext \
8815 conftest$ac_exeext conftest.$ac_ext
8816 LIBS=$ac_check_lib_save_LIBS
8817 fi
8818 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8819 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8820 if test $ac_cv_lib_dld_shl_load = yes; then
8821 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8822 else
8823 echo "$as_me:$LINENO: checking for dlopen" >&5
8824 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8825 if test "${ac_cv_func_dlopen+set}" = set; then
8826 echo $ECHO_N "(cached) $ECHO_C" >&6
8827 else
8828 cat >conftest.$ac_ext <<_ACEOF
8829 /* confdefs.h. */
8830 _ACEOF
8831 cat confdefs.h >>conftest.$ac_ext
8832 cat >>conftest.$ac_ext <<_ACEOF
8833 /* end confdefs.h. */
8834 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8835 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8836 #define dlopen innocuous_dlopen
8837
8838 /* System header to define __stub macros and hopefully few prototypes,
8839 which can conflict with char dlopen (); below.
8840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8841 <limits.h> exists even on freestanding compilers. */
8842
8843 #ifdef __STDC__
8844 # include <limits.h>
8845 #else
8846 # include <assert.h>
8847 #endif
8848
8849 #undef dlopen
8850
8851 /* Override any gcc2 internal prototype to avoid an error. */
8852 #ifdef __cplusplus
8853 extern "C"
8854 {
8855 #endif
8856 /* We use char because int might match the return type of a gcc2
8857 builtin and then its argument prototype would still apply. */
8858 char dlopen ();
8859 /* The GNU C library defines this for functions which it implements
8860 to always fail with ENOSYS. Some functions are actually named
8861 something starting with __ and the normal name is an alias. */
8862 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8863 choke me
8864 #else
8865 char (*f) () = dlopen;
8866 #endif
8867 #ifdef __cplusplus
8868 }
8869 #endif
8870
8871 int
8872 main ()
8873 {
8874 return f != dlopen;
8875 ;
8876 return 0;
8877 }
8878 _ACEOF
8879 rm -f conftest.$ac_objext conftest$ac_exeext
8880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8881 (eval $ac_link) 2>conftest.er1
8882 ac_status=$?
8883 grep -v '^ *+' conftest.er1 >conftest.err
8884 rm -f conftest.er1
8885 cat conftest.err >&5
8886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8887 (exit $ac_status); } &&
8888 { ac_try='test -z "$ac_c_werror_flag"
8889 || test ! -s conftest.err'
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); }; } &&
8895 { ac_try='test -s conftest$ac_exeext'
8896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8897 (eval $ac_try) 2>&5
8898 ac_status=$?
8899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8900 (exit $ac_status); }; }; then
8901 ac_cv_func_dlopen=yes
8902 else
8903 echo "$as_me: failed program was:" >&5
8904 sed 's/^/| /' conftest.$ac_ext >&5
8905
8906 ac_cv_func_dlopen=no
8907 fi
8908 rm -f conftest.err conftest.$ac_objext \
8909 conftest$ac_exeext conftest.$ac_ext
8910 fi
8911 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8912 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8913 if test $ac_cv_func_dlopen = yes; then
8914 lt_cv_dlopen="dlopen"
8915 else
8916 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8917 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8918 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8919 echo $ECHO_N "(cached) $ECHO_C" >&6
8920 else
8921 ac_check_lib_save_LIBS=$LIBS
8922 LIBS="-ldl $LIBS"
8923 cat >conftest.$ac_ext <<_ACEOF
8924 /* confdefs.h. */
8925 _ACEOF
8926 cat confdefs.h >>conftest.$ac_ext
8927 cat >>conftest.$ac_ext <<_ACEOF
8928 /* end confdefs.h. */
8929
8930 /* Override any gcc2 internal prototype to avoid an error. */
8931 #ifdef __cplusplus
8932 extern "C"
8933 #endif
8934 /* We use char because int might match the return type of a gcc2
8935 builtin and then its argument prototype would still apply. */
8936 char dlopen ();
8937 int
8938 main ()
8939 {
8940 dlopen ();
8941 ;
8942 return 0;
8943 }
8944 _ACEOF
8945 rm -f conftest.$ac_objext conftest$ac_exeext
8946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8947 (eval $ac_link) 2>conftest.er1
8948 ac_status=$?
8949 grep -v '^ *+' conftest.er1 >conftest.err
8950 rm -f conftest.er1
8951 cat conftest.err >&5
8952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8953 (exit $ac_status); } &&
8954 { ac_try='test -z "$ac_c_werror_flag"
8955 || test ! -s conftest.err'
8956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8957 (eval $ac_try) 2>&5
8958 ac_status=$?
8959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960 (exit $ac_status); }; } &&
8961 { ac_try='test -s conftest$ac_exeext'
8962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8963 (eval $ac_try) 2>&5
8964 ac_status=$?
8965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966 (exit $ac_status); }; }; then
8967 ac_cv_lib_dl_dlopen=yes
8968 else
8969 echo "$as_me: failed program was:" >&5
8970 sed 's/^/| /' conftest.$ac_ext >&5
8971
8972 ac_cv_lib_dl_dlopen=no
8973 fi
8974 rm -f conftest.err conftest.$ac_objext \
8975 conftest$ac_exeext conftest.$ac_ext
8976 LIBS=$ac_check_lib_save_LIBS
8977 fi
8978 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8979 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8980 if test $ac_cv_lib_dl_dlopen = yes; then
8981 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8982 else
8983 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8984 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8985 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8986 echo $ECHO_N "(cached) $ECHO_C" >&6
8987 else
8988 ac_check_lib_save_LIBS=$LIBS
8989 LIBS="-lsvld $LIBS"
8990 cat >conftest.$ac_ext <<_ACEOF
8991 /* confdefs.h. */
8992 _ACEOF
8993 cat confdefs.h >>conftest.$ac_ext
8994 cat >>conftest.$ac_ext <<_ACEOF
8995 /* end confdefs.h. */
8996
8997 /* Override any gcc2 internal prototype to avoid an error. */
8998 #ifdef __cplusplus
8999 extern "C"
9000 #endif
9001 /* We use char because int might match the return type of a gcc2
9002 builtin and then its argument prototype would still apply. */
9003 char dlopen ();
9004 int
9005 main ()
9006 {
9007 dlopen ();
9008 ;
9009 return 0;
9010 }
9011 _ACEOF
9012 rm -f conftest.$ac_objext conftest$ac_exeext
9013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9014 (eval $ac_link) 2>conftest.er1
9015 ac_status=$?
9016 grep -v '^ *+' conftest.er1 >conftest.err
9017 rm -f conftest.er1
9018 cat conftest.err >&5
9019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020 (exit $ac_status); } &&
9021 { ac_try='test -z "$ac_c_werror_flag"
9022 || test ! -s conftest.err'
9023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9024 (eval $ac_try) 2>&5
9025 ac_status=$?
9026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9027 (exit $ac_status); }; } &&
9028 { ac_try='test -s conftest$ac_exeext'
9029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9030 (eval $ac_try) 2>&5
9031 ac_status=$?
9032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9033 (exit $ac_status); }; }; then
9034 ac_cv_lib_svld_dlopen=yes
9035 else
9036 echo "$as_me: failed program was:" >&5
9037 sed 's/^/| /' conftest.$ac_ext >&5
9038
9039 ac_cv_lib_svld_dlopen=no
9040 fi
9041 rm -f conftest.err conftest.$ac_objext \
9042 conftest$ac_exeext conftest.$ac_ext
9043 LIBS=$ac_check_lib_save_LIBS
9044 fi
9045 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9046 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9047 if test $ac_cv_lib_svld_dlopen = yes; then
9048 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9049 else
9050 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9051 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9052 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9053 echo $ECHO_N "(cached) $ECHO_C" >&6
9054 else
9055 ac_check_lib_save_LIBS=$LIBS
9056 LIBS="-ldld $LIBS"
9057 cat >conftest.$ac_ext <<_ACEOF
9058 /* confdefs.h. */
9059 _ACEOF
9060 cat confdefs.h >>conftest.$ac_ext
9061 cat >>conftest.$ac_ext <<_ACEOF
9062 /* end confdefs.h. */
9063
9064 /* Override any gcc2 internal prototype to avoid an error. */
9065 #ifdef __cplusplus
9066 extern "C"
9067 #endif
9068 /* We use char because int might match the return type of a gcc2
9069 builtin and then its argument prototype would still apply. */
9070 char dld_link ();
9071 int
9072 main ()
9073 {
9074 dld_link ();
9075 ;
9076 return 0;
9077 }
9078 _ACEOF
9079 rm -f conftest.$ac_objext conftest$ac_exeext
9080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9081 (eval $ac_link) 2>conftest.er1
9082 ac_status=$?
9083 grep -v '^ *+' conftest.er1 >conftest.err
9084 rm -f conftest.er1
9085 cat conftest.err >&5
9086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087 (exit $ac_status); } &&
9088 { ac_try='test -z "$ac_c_werror_flag"
9089 || test ! -s conftest.err'
9090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9091 (eval $ac_try) 2>&5
9092 ac_status=$?
9093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9094 (exit $ac_status); }; } &&
9095 { ac_try='test -s conftest$ac_exeext'
9096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9097 (eval $ac_try) 2>&5
9098 ac_status=$?
9099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9100 (exit $ac_status); }; }; then
9101 ac_cv_lib_dld_dld_link=yes
9102 else
9103 echo "$as_me: failed program was:" >&5
9104 sed 's/^/| /' conftest.$ac_ext >&5
9105
9106 ac_cv_lib_dld_dld_link=no
9107 fi
9108 rm -f conftest.err conftest.$ac_objext \
9109 conftest$ac_exeext conftest.$ac_ext
9110 LIBS=$ac_check_lib_save_LIBS
9111 fi
9112 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9113 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9114 if test $ac_cv_lib_dld_dld_link = yes; then
9115 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9116 fi
9117
9118
9119 fi
9120
9121
9122 fi
9123
9124
9125 fi
9126
9127
9128 fi
9129
9130
9131 fi
9132
9133 ;;
9134 esac
9135
9136 if test "x$lt_cv_dlopen" != xno; then
9137 enable_dlopen=yes
9138 else
9139 enable_dlopen=no
9140 fi
9141
9142 case $lt_cv_dlopen in
9143 dlopen)
9144 save_CPPFLAGS="$CPPFLAGS"
9145 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9146
9147 save_LDFLAGS="$LDFLAGS"
9148 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9149
9150 save_LIBS="$LIBS"
9151 LIBS="$lt_cv_dlopen_libs $LIBS"
9152
9153 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9154 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9155 if test "${lt_cv_dlopen_self+set}" = set; then
9156 echo $ECHO_N "(cached) $ECHO_C" >&6
9157 else
9158 if test "$cross_compiling" = yes; then :
9159 lt_cv_dlopen_self=cross
9160 else
9161 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9162 lt_status=$lt_dlunknown
9163 cat > conftest.$ac_ext <<EOF
9164 #line 9164 "configure"
9165 #include "confdefs.h"
9166
9167 #if HAVE_DLFCN_H
9168 #include <dlfcn.h>
9169 #endif
9170
9171 #include <stdio.h>
9172
9173 #ifdef RTLD_GLOBAL
9174 # define LT_DLGLOBAL RTLD_GLOBAL
9175 #else
9176 # ifdef DL_GLOBAL
9177 # define LT_DLGLOBAL DL_GLOBAL
9178 # else
9179 # define LT_DLGLOBAL 0
9180 # endif
9181 #endif
9182
9183 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9184 find out it does not work in some platform. */
9185 #ifndef LT_DLLAZY_OR_NOW
9186 # ifdef RTLD_LAZY
9187 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9188 # else
9189 # ifdef DL_LAZY
9190 # define LT_DLLAZY_OR_NOW DL_LAZY
9191 # else
9192 # ifdef RTLD_NOW
9193 # define LT_DLLAZY_OR_NOW RTLD_NOW
9194 # else
9195 # ifdef DL_NOW
9196 # define LT_DLLAZY_OR_NOW DL_NOW
9197 # else
9198 # define LT_DLLAZY_OR_NOW 0
9199 # endif
9200 # endif
9201 # endif
9202 # endif
9203 #endif
9204
9205 #ifdef __cplusplus
9206 extern "C" void exit (int);
9207 #endif
9208
9209 void fnord() { int i=42;}
9210 int main ()
9211 {
9212 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9213 int status = $lt_dlunknown;
9214
9215 if (self)
9216 {
9217 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9218 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9219 /* dlclose (self); */
9220 }
9221
9222 exit (status);
9223 }
9224 EOF
9225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9226 (eval $ac_link) 2>&5
9227 ac_status=$?
9228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9229 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9230 (./conftest; exit; ) 2>/dev/null
9231 lt_status=$?
9232 case x$lt_status in
9233 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9234 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9235 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9236 esac
9237 else :
9238 # compilation failed
9239 lt_cv_dlopen_self=no
9240 fi
9241 fi
9242 rm -fr conftest*
9243
9244
9245 fi
9246 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9247 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9248
9249 if test "x$lt_cv_dlopen_self" = xyes; then
9250 LDFLAGS="$LDFLAGS $link_static_flag"
9251 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9252 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9253 if test "${lt_cv_dlopen_self_static+set}" = set; then
9254 echo $ECHO_N "(cached) $ECHO_C" >&6
9255 else
9256 if test "$cross_compiling" = yes; then :
9257 lt_cv_dlopen_self_static=cross
9258 else
9259 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9260 lt_status=$lt_dlunknown
9261 cat > conftest.$ac_ext <<EOF
9262 #line 9262 "configure"
9263 #include "confdefs.h"
9264
9265 #if HAVE_DLFCN_H
9266 #include <dlfcn.h>
9267 #endif
9268
9269 #include <stdio.h>
9270
9271 #ifdef RTLD_GLOBAL
9272 # define LT_DLGLOBAL RTLD_GLOBAL
9273 #else
9274 # ifdef DL_GLOBAL
9275 # define LT_DLGLOBAL DL_GLOBAL
9276 # else
9277 # define LT_DLGLOBAL 0
9278 # endif
9279 #endif
9280
9281 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9282 find out it does not work in some platform. */
9283 #ifndef LT_DLLAZY_OR_NOW
9284 # ifdef RTLD_LAZY
9285 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9286 # else
9287 # ifdef DL_LAZY
9288 # define LT_DLLAZY_OR_NOW DL_LAZY
9289 # else
9290 # ifdef RTLD_NOW
9291 # define LT_DLLAZY_OR_NOW RTLD_NOW
9292 # else
9293 # ifdef DL_NOW
9294 # define LT_DLLAZY_OR_NOW DL_NOW
9295 # else
9296 # define LT_DLLAZY_OR_NOW 0
9297 # endif
9298 # endif
9299 # endif
9300 # endif
9301 #endif
9302
9303 #ifdef __cplusplus
9304 extern "C" void exit (int);
9305 #endif
9306
9307 void fnord() { int i=42;}
9308 int main ()
9309 {
9310 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9311 int status = $lt_dlunknown;
9312
9313 if (self)
9314 {
9315 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9316 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9317 /* dlclose (self); */
9318 }
9319
9320 exit (status);
9321 }
9322 EOF
9323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9324 (eval $ac_link) 2>&5
9325 ac_status=$?
9326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9327 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9328 (./conftest; exit; ) 2>/dev/null
9329 lt_status=$?
9330 case x$lt_status in
9331 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9332 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9333 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9334 esac
9335 else :
9336 # compilation failed
9337 lt_cv_dlopen_self_static=no
9338 fi
9339 fi
9340 rm -fr conftest*
9341
9342
9343 fi
9344 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9345 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9346 fi
9347
9348 CPPFLAGS="$save_CPPFLAGS"
9349 LDFLAGS="$save_LDFLAGS"
9350 LIBS="$save_LIBS"
9351 ;;
9352 esac
9353
9354 case $lt_cv_dlopen_self in
9355 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9356 *) enable_dlopen_self=unknown ;;
9357 esac
9358
9359 case $lt_cv_dlopen_self_static in
9360 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9361 *) enable_dlopen_self_static=unknown ;;
9362 esac
9363 fi
9364
9365
9366 # Report which librarie types wil actually be built
9367 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9368 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9369 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9370 echo "${ECHO_T}$can_build_shared" >&6
9371
9372 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9373 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9374 test "$can_build_shared" = "no" && enable_shared=no
9375
9376 # On AIX, shared libraries and static libraries use the same namespace, and
9377 # are all built from PIC.
9378 case "$host_os" in
9379 aix3*)
9380 test "$enable_shared" = yes && enable_static=no
9381 if test -n "$RANLIB"; then
9382 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9383 postinstall_cmds='$RANLIB $lib'
9384 fi
9385 ;;
9386
9387 aix4* | aix5*)
9388 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9389 test "$enable_shared" = yes && enable_static=no
9390 fi
9391 ;;
9392 darwin* | rhapsody*)
9393 if test "$GCC" = yes; then
9394 archive_cmds_need_lc=no
9395 case "$host_os" in
9396 rhapsody* | darwin1.[012])
9397 allow_undefined_flag='-undefined suppress'
9398 ;;
9399 *) # Darwin 1.3 on
9400 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9401 allow_undefined_flag='-flat_namespace -undefined suppress'
9402 else
9403 case ${MACOSX_DEPLOYMENT_TARGET} in
9404 10.[012])
9405 allow_undefined_flag='-flat_namespace -undefined suppress'
9406 ;;
9407 10.*)
9408 allow_undefined_flag='-undefined dynamic_lookup'
9409 ;;
9410 esac
9411 fi
9412 ;;
9413 esac
9414 output_verbose_link_cmd='echo'
9415 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9416 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9417 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9418 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}'
9419 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}'
9420 hardcode_direct=no
9421 hardcode_automatic=yes
9422 hardcode_shlibpath_var=unsupported
9423 whole_archive_flag_spec='-all_load $convenience'
9424 link_all_deplibs=yes
9425 else
9426 ld_shlibs=no
9427 fi
9428 ;;
9429 esac
9430 echo "$as_me:$LINENO: result: $enable_shared" >&5
9431 echo "${ECHO_T}$enable_shared" >&6
9432
9433 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9434 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9435 # Make sure either enable_shared or enable_static is yes.
9436 test "$enable_shared" = yes || enable_static=yes
9437 echo "$as_me:$LINENO: result: $enable_static" >&5
9438 echo "${ECHO_T}$enable_static" >&6
9439
9440 # The else clause should only fire when bootstrapping the
9441 # libtool distribution, otherwise you forgot to ship ltmain.sh
9442 # with your package, and you will get complaints that there are
9443 # no rules to generate ltmain.sh.
9444 if test -f "$ltmain"; then
9445 # See if we are running on zsh, and set the options which allow our commands through
9446 # without removal of \ escapes.
9447 if test -n "${ZSH_VERSION+set}" ; then
9448 setopt NO_GLOB_SUBST
9449 fi
9450 # Now quote all the things that may contain metacharacters while being
9451 # careful not to overquote the AC_SUBSTed values. We take copies of the
9452 # variables and quote the copies for generation of the libtool script.
9453 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9454 SED SHELL STRIP \
9455 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9456 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9457 deplibs_check_method reload_flag reload_cmds need_locks \
9458 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9459 lt_cv_sys_global_symbol_to_c_name_address \
9460 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9461 old_postinstall_cmds old_postuninstall_cmds \
9462 compiler \
9463 CC \
9464 LD \
9465 lt_prog_compiler_wl \
9466 lt_prog_compiler_pic \
9467 lt_prog_compiler_static \
9468 lt_prog_compiler_no_builtin_flag \
9469 export_dynamic_flag_spec \
9470 thread_safe_flag_spec \
9471 whole_archive_flag_spec \
9472 enable_shared_with_static_runtimes \
9473 old_archive_cmds \
9474 old_archive_from_new_cmds \
9475 predep_objects \
9476 postdep_objects \
9477 predeps \
9478 postdeps \
9479 compiler_lib_search_path \
9480 archive_cmds \
9481 archive_expsym_cmds \
9482 postinstall_cmds \
9483 postuninstall_cmds \
9484 old_archive_from_expsyms_cmds \
9485 allow_undefined_flag \
9486 no_undefined_flag \
9487 export_symbols_cmds \
9488 hardcode_libdir_flag_spec \
9489 hardcode_libdir_flag_spec_ld \
9490 hardcode_libdir_separator \
9491 hardcode_automatic \
9492 module_cmds \
9493 module_expsym_cmds \
9494 lt_cv_prog_compiler_c_o \
9495 exclude_expsyms \
9496 include_expsyms; do
9497
9498 case $var in
9499 old_archive_cmds | \
9500 old_archive_from_new_cmds | \
9501 archive_cmds | \
9502 archive_expsym_cmds | \
9503 module_cmds | \
9504 module_expsym_cmds | \
9505 old_archive_from_expsyms_cmds | \
9506 export_symbols_cmds | \
9507 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9508 postinstall_cmds | postuninstall_cmds | \
9509 old_postinstall_cmds | old_postuninstall_cmds | \
9510 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9511 # Double-quote double-evaled strings.
9512 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9513 ;;
9514 *)
9515 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9516 ;;
9517 esac
9518 done
9519
9520 case $lt_echo in
9521 *'\$0 --fallback-echo"')
9522 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9523 ;;
9524 esac
9525
9526 cfgfile="${ofile}T"
9527 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9528 $rm -f "$cfgfile"
9529 { echo "$as_me:$LINENO: creating $ofile" >&5
9530 echo "$as_me: creating $ofile" >&6;}
9531
9532 cat <<__EOF__ >> "$cfgfile"
9533 #! $SHELL
9534
9535 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9536 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9537 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9538 #
9539 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9540 # Free Software Foundation, Inc.
9541 #
9542 # This file is part of GNU Libtool:
9543 # Originally by Gordon Matzigkeit <[email protected]>, 1996
9544 #
9545 # This program is free software; you can redistribute it and/or modify
9546 # it under the terms of the GNU General Public License as published by
9547 # the Free Software Foundation; either version 2 of the License, or
9548 # (at your option) any later version.
9549 #
9550 # This program is distributed in the hope that it will be useful, but
9551 # WITHOUT ANY WARRANTY; without even the implied warranty of
9552 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9553 # General Public License for more details.
9554 #
9555 # You should have received a copy of the GNU General Public License
9556 # along with this program; if not, write to the Free Software
9557 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9558 #
9559 # As a special exception to the GNU General Public License, if you
9560 # distribute this file as part of a program that contains a
9561 # configuration script generated by Autoconf, you may include it under
9562 # the same distribution terms that you use for the rest of that program.
9563
9564 # A sed program that does not truncate output.
9565 SED=$lt_SED
9566
9567 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9568 Xsed="$SED -e s/^X//"
9569
9570 # The HP-UX ksh and POSIX shell print the target directory to stdout
9571 # if CDPATH is set.
9572 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9573
9574 # The names of the tagged configurations supported by this script.
9575 available_tags=
9576
9577 # ### BEGIN LIBTOOL CONFIG
9578
9579 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9580
9581 # Shell to use when invoking shell scripts.
9582 SHELL=$lt_SHELL
9583
9584 # Whether or not to build shared libraries.
9585 build_libtool_libs=$enable_shared
9586
9587 # Whether or not to build static libraries.
9588 build_old_libs=$enable_static
9589
9590 # Whether or not to add -lc for building shared libraries.
9591 build_libtool_need_lc=$archive_cmds_need_lc
9592
9593 # Whether or not to disallow shared libs when runtime libs are static
9594 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9595
9596 # Whether or not to optimize for fast installation.
9597 fast_install=$enable_fast_install
9598
9599 # The host system.
9600 host_alias=$host_alias
9601 host=$host
9602
9603 # An echo program that does not interpret backslashes.
9604 echo=$lt_echo
9605
9606 # The archiver.
9607 AR=$lt_AR
9608 AR_FLAGS=$lt_AR_FLAGS
9609
9610 # A C compiler.
9611 LTCC=$lt_LTCC
9612
9613 # A language-specific compiler.
9614 CC=$lt_compiler
9615
9616 # Is the compiler the GNU C compiler?
9617 with_gcc=$GCC
9618
9619 # An ERE matcher.
9620 EGREP=$lt_EGREP
9621
9622 # The linker used to build libraries.
9623 LD=$lt_LD
9624
9625 # Whether we need hard or soft links.
9626 LN_S=$lt_LN_S
9627
9628 # A BSD-compatible nm program.
9629 NM=$lt_NM
9630
9631 # A symbol stripping program
9632 STRIP=$lt_STRIP
9633
9634 # Used to examine libraries when file_magic_cmd begins "file"
9635 MAGIC_CMD=$MAGIC_CMD
9636
9637 # Used on cygwin: DLL creation program.
9638 DLLTOOL="$DLLTOOL"
9639
9640 # Used on cygwin: object dumper.
9641 OBJDUMP="$OBJDUMP"
9642
9643 # Used on cygwin: assembler.
9644 AS="$AS"
9645
9646 # The name of the directory that contains temporary libtool files.
9647 objdir=$objdir
9648
9649 # How to create reloadable object files.
9650 reload_flag=$lt_reload_flag
9651 reload_cmds=$lt_reload_cmds
9652
9653 # How to pass a linker flag through the compiler.
9654 wl=$lt_lt_prog_compiler_wl
9655
9656 # Object file suffix (normally "o").
9657 objext="$ac_objext"
9658
9659 # Old archive suffix (normally "a").
9660 libext="$libext"
9661
9662 # Shared library suffix (normally ".so").
9663 shrext_cmds='$shrext_cmds'
9664
9665 # Executable file suffix (normally "").
9666 exeext="$exeext"
9667
9668 # Additional compiler flags for building library objects.
9669 pic_flag=$lt_lt_prog_compiler_pic
9670 pic_mode=$pic_mode
9671
9672 # What is the maximum length of a command?
9673 max_cmd_len=$lt_cv_sys_max_cmd_len
9674
9675 # Does compiler simultaneously support -c and -o options?
9676 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9677
9678 # Must we lock files when doing compilation ?
9679 need_locks=$lt_need_locks
9680
9681 # Do we need the lib prefix for modules?
9682 need_lib_prefix=$need_lib_prefix
9683
9684 # Do we need a version for libraries?
9685 need_version=$need_version
9686
9687 # Whether dlopen is supported.
9688 dlopen_support=$enable_dlopen
9689
9690 # Whether dlopen of programs is supported.
9691 dlopen_self=$enable_dlopen_self
9692
9693 # Whether dlopen of statically linked programs is supported.
9694 dlopen_self_static=$enable_dlopen_self_static
9695
9696 # Compiler flag to prevent dynamic linking.
9697 link_static_flag=$lt_lt_prog_compiler_static
9698
9699 # Compiler flag to turn off builtin functions.
9700 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9701
9702 # Compiler flag to allow reflexive dlopens.
9703 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9704
9705 # Compiler flag to generate shared objects directly from archives.
9706 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9707
9708 # Compiler flag to generate thread-safe objects.
9709 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9710
9711 # Library versioning type.
9712 version_type=$version_type
9713
9714 # Format of library name prefix.
9715 libname_spec=$lt_libname_spec
9716
9717 # List of archive names. First name is the real one, the rest are links.
9718 # The last name is the one that the linker finds with -lNAME.
9719 library_names_spec=$lt_library_names_spec
9720
9721 # The coded name of the library, if different from the real name.
9722 soname_spec=$lt_soname_spec
9723
9724 # Commands used to build and install an old-style archive.
9725 RANLIB=$lt_RANLIB
9726 old_archive_cmds=$lt_old_archive_cmds
9727 old_postinstall_cmds=$lt_old_postinstall_cmds
9728 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9729
9730 # Create an old-style archive from a shared archive.
9731 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9732
9733 # Create a temporary old-style archive to link instead of a shared archive.
9734 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9735
9736 # Commands used to build and install a shared archive.
9737 archive_cmds=$lt_archive_cmds
9738 archive_expsym_cmds=$lt_archive_expsym_cmds
9739 postinstall_cmds=$lt_postinstall_cmds
9740 postuninstall_cmds=$lt_postuninstall_cmds
9741
9742 # Commands used to build a loadable module (assumed same as above if empty)
9743 module_cmds=$lt_module_cmds
9744 module_expsym_cmds=$lt_module_expsym_cmds
9745
9746 # Commands to strip libraries.
9747 old_striplib=$lt_old_striplib
9748 striplib=$lt_striplib
9749
9750 # Dependencies to place before the objects being linked to create a
9751 # shared library.
9752 predep_objects=$lt_predep_objects
9753
9754 # Dependencies to place after the objects being linked to create a
9755 # shared library.
9756 postdep_objects=$lt_postdep_objects
9757
9758 # Dependencies to place before the objects being linked to create a
9759 # shared library.
9760 predeps=$lt_predeps
9761
9762 # Dependencies to place after the objects being linked to create a
9763 # shared library.
9764 postdeps=$lt_postdeps
9765
9766 # The library search path used internally by the compiler when linking
9767 # a shared library.
9768 compiler_lib_search_path=$lt_compiler_lib_search_path
9769
9770 # Method to check whether dependent libraries are shared objects.
9771 deplibs_check_method=$lt_deplibs_check_method
9772
9773 # Command to use when deplibs_check_method == file_magic.
9774 file_magic_cmd=$lt_file_magic_cmd
9775
9776 # Flag that allows shared libraries with undefined symbols to be built.
9777 allow_undefined_flag=$lt_allow_undefined_flag
9778
9779 # Flag that forces no undefined symbols.
9780 no_undefined_flag=$lt_no_undefined_flag
9781
9782 # Commands used to finish a libtool library installation in a directory.
9783 finish_cmds=$lt_finish_cmds
9784
9785 # Same as above, but a single script fragment to be evaled but not shown.
9786 finish_eval=$lt_finish_eval
9787
9788 # Take the output of nm and produce a listing of raw symbols and C names.
9789 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9790
9791 # Transform the output of nm in a proper C declaration
9792 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9793
9794 # Transform the output of nm in a C name address pair
9795 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9796
9797 # This is the shared library runtime path variable.
9798 runpath_var=$runpath_var
9799
9800 # This is the shared library path variable.
9801 shlibpath_var=$shlibpath_var
9802
9803 # Is shlibpath searched before the hard-coded library search path?
9804 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9805
9806 # How to hardcode a shared library path into an executable.
9807 hardcode_action=$hardcode_action
9808
9809 # Whether we should hardcode library paths into libraries.
9810 hardcode_into_libs=$hardcode_into_libs
9811
9812 # Flag to hardcode \$libdir into a binary during linking.
9813 # This must work even if \$libdir does not exist.
9814 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9815
9816 # If ld is used when linking, flag to hardcode \$libdir into
9817 # a binary during linking. This must work even if \$libdir does
9818 # not exist.
9819 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9820
9821 # Whether we need a single -rpath flag with a separated argument.
9822 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9823
9824 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9825 # resulting binary.
9826 hardcode_direct=$hardcode_direct
9827
9828 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9829 # resulting binary.
9830 hardcode_minus_L=$hardcode_minus_L
9831
9832 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9833 # the resulting binary.
9834 hardcode_shlibpath_var=$hardcode_shlibpath_var
9835
9836 # Set to yes if building a shared library automatically hardcodes DIR into the library
9837 # and all subsequent libraries and executables linked against it.
9838 hardcode_automatic=$hardcode_automatic
9839
9840 # Variables whose values should be saved in libtool wrapper scripts and
9841 # restored at relink time.
9842 variables_saved_for_relink="$variables_saved_for_relink"
9843
9844 # Whether libtool must link a program against all its dependency libraries.
9845 link_all_deplibs=$link_all_deplibs
9846
9847 # Compile-time system search path for libraries
9848 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9849
9850 # Run-time system search path for libraries
9851 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9852
9853 # Fix the shell variable \$srcfile for the compiler.
9854 fix_srcfile_path="$fix_srcfile_path"
9855
9856 # Set to yes if exported symbols are required.
9857 always_export_symbols=$always_export_symbols
9858
9859 # The commands to list exported symbols.
9860 export_symbols_cmds=$lt_export_symbols_cmds
9861
9862 # The commands to extract the exported symbol list from a shared archive.
9863 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9864
9865 # Symbols that should not be listed in the preloaded symbols.
9866 exclude_expsyms=$lt_exclude_expsyms
9867
9868 # Symbols that must always be exported.
9869 include_expsyms=$lt_include_expsyms
9870
9871 # ### END LIBTOOL CONFIG
9872
9873 __EOF__
9874
9875
9876 case $host_os in
9877 aix3*)
9878 cat <<\EOF >> "$cfgfile"
9879
9880 # AIX sometimes has problems with the GCC collect2 program. For some
9881 # reason, if we set the COLLECT_NAMES environment variable, the problems
9882 # vanish in a puff of smoke.
9883 if test "X${COLLECT_NAMES+set}" != Xset; then
9884 COLLECT_NAMES=
9885 export COLLECT_NAMES
9886 fi
9887 EOF
9888 ;;
9889 esac
9890
9891 # We use sed instead of cat because bash on DJGPP gets confused if
9892 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9893 # text mode, it properly converts lines to CR/LF. This bash problem
9894 # is reportedly fixed, but why not run on old versions too?
9895 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9896
9897 mv -f "$cfgfile" "$ofile" || \
9898 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9899 chmod +x "$ofile"
9900
9901 else
9902 # If there is no Makefile yet, we rely on a make rule to execute
9903 # `config.status --recheck' to rerun these tests and create the
9904 # libtool script then.
9905 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9906 if test -f "$ltmain_in"; then
9907 test -f Makefile && make "$ltmain"
9908 fi
9909 fi
9910
9911
9912 ac_ext=c
9913 ac_cpp='$CPP $CPPFLAGS'
9914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9917
9918 CC="$lt_save_CC"
9919
9920
9921 # Check whether --with-tags or --without-tags was given.
9922 if test "${with_tags+set}" = set; then
9923 withval="$with_tags"
9924 tagnames="$withval"
9925 fi;
9926
9927 if test -f "$ltmain" && test -n "$tagnames"; then
9928 if test ! -f "${ofile}"; then
9929 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9930 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9931 fi
9932
9933 if test -z "$LTCC"; then
9934 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9935 if test -z "$LTCC"; then
9936 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9937 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9938 else
9939 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9940 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9941 fi
9942 fi
9943
9944 # Extract list of available tagged configurations in $ofile.
9945 # Note that this assumes the entire list is on one line.
9946 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9947
9948 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9949 for tagname in $tagnames; do
9950 IFS="$lt_save_ifs"
9951 # Check whether tagname contains only valid characters
9952 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9953 "") ;;
9954 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9955 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9956 { (exit 1); exit 1; }; }
9957 ;;
9958 esac
9959
9960 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9961 then
9962 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9963 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9964 { (exit 1); exit 1; }; }
9965 fi
9966
9967 # Update the list of available tags.
9968 if test -n "$tagname"; then
9969 echo appending configuration tag \"$tagname\" to $ofile
9970
9971 case $tagname in
9972 CXX)
9973 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9974 ac_ext=cc
9975 ac_cpp='$CXXCPP $CPPFLAGS'
9976 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9977 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9978 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9979
9980
9981
9982
9983 archive_cmds_need_lc_CXX=no
9984 allow_undefined_flag_CXX=
9985 always_export_symbols_CXX=no
9986 archive_expsym_cmds_CXX=
9987 export_dynamic_flag_spec_CXX=
9988 hardcode_direct_CXX=no
9989 hardcode_libdir_flag_spec_CXX=
9990 hardcode_libdir_flag_spec_ld_CXX=
9991 hardcode_libdir_separator_CXX=
9992 hardcode_minus_L_CXX=no
9993 hardcode_automatic_CXX=no
9994 module_cmds_CXX=
9995 module_expsym_cmds_CXX=
9996 link_all_deplibs_CXX=unknown
9997 old_archive_cmds_CXX=$old_archive_cmds
9998 no_undefined_flag_CXX=
9999 whole_archive_flag_spec_CXX=
10000 enable_shared_with_static_runtimes_CXX=no
10001
10002 # Dependencies to place before and after the object being linked:
10003 predep_objects_CXX=
10004 postdep_objects_CXX=
10005 predeps_CXX=
10006 postdeps_CXX=
10007 compiler_lib_search_path_CXX=
10008
10009 # Source file extension for C++ test sources.
10010 ac_ext=cc
10011
10012 # Object file extension for compiled C++ test sources.
10013 objext=o
10014 objext_CXX=$objext
10015
10016 # Code to be used in simple compile tests
10017 lt_simple_compile_test_code="int some_variable = 0;\n"
10018
10019 # Code to be used in simple link tests
10020 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10021
10022 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10023
10024 # If no C compiler was specified, use CC.
10025 LTCC=${LTCC-"$CC"}
10026
10027 # Allow CC to be a program name with arguments.
10028 compiler=$CC
10029
10030
10031 # Allow CC to be a program name with arguments.
10032 lt_save_CC=$CC
10033 lt_save_LD=$LD
10034 lt_save_GCC=$GCC
10035 GCC=$GXX
10036 lt_save_with_gnu_ld=$with_gnu_ld
10037 lt_save_path_LD=$lt_cv_path_LD
10038 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10039 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10040 else
10041 unset lt_cv_prog_gnu_ld
10042 fi
10043 if test -n "${lt_cv_path_LDCXX+set}"; then
10044 lt_cv_path_LD=$lt_cv_path_LDCXX
10045 else
10046 unset lt_cv_path_LD
10047 fi
10048 test -z "${LDCXX+set}" || LD=$LDCXX
10049 CC=${CXX-"c++"}
10050 compiler=$CC
10051 compiler_CXX=$CC
10052 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
10053
10054 # We don't want -fno-exception wen compiling C++ code, so set the
10055 # no_builtin_flag separately
10056 if test "$GXX" = yes; then
10057 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10058 else
10059 lt_prog_compiler_no_builtin_flag_CXX=
10060 fi
10061
10062 if test "$GXX" = yes; then
10063 # Set up default GNU C++ configuration
10064
10065
10066 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10067 if test "${with_gnu_ld+set}" = set; then
10068 withval="$with_gnu_ld"
10069 test "$withval" = no || with_gnu_ld=yes
10070 else
10071 with_gnu_ld=no
10072 fi;
10073 ac_prog=ld
10074 if test "$GCC" = yes; then
10075 # Check if gcc -print-prog-name=ld gives a path.
10076 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10077 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10078 case $host in
10079 *-*-mingw*)
10080 # gcc leaves a trailing carriage return which upsets mingw
10081 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10082 *)
10083 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10084 esac
10085 case $ac_prog in
10086 # Accept absolute paths.
10087 [\\/]* | ?:[\\/]*)
10088 re_direlt='/[^/][^/]*/\.\./'
10089 # Canonicalize the pathname of ld
10090 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10091 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10092 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10093 done
10094 test -z "$LD" && LD="$ac_prog"
10095 ;;
10096 "")
10097 # If it fails, then pretend we aren't using GCC.
10098 ac_prog=ld
10099 ;;
10100 *)
10101 # If it is relative, then search for the first ld in PATH.
10102 with_gnu_ld=unknown
10103 ;;
10104 esac
10105 elif test "$with_gnu_ld" = yes; then
10106 echo "$as_me:$LINENO: checking for GNU ld" >&5
10107 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10108 else
10109 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10110 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10111 fi
10112 if test "${lt_cv_path_LD+set}" = set; then
10113 echo $ECHO_N "(cached) $ECHO_C" >&6
10114 else
10115 if test -z "$LD"; then
10116 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10117 for ac_dir in $PATH; do
10118 IFS="$lt_save_ifs"
10119 test -z "$ac_dir" && ac_dir=.
10120 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10121 lt_cv_path_LD="$ac_dir/$ac_prog"
10122 # Check to see if the program is GNU ld. I'd rather use --version,
10123 # but apparently some GNU ld's only accept -v.
10124 # Break only if it was the GNU/non-GNU ld that we prefer.
10125 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10126 *GNU* | *'with BFD'*)
10127 test "$with_gnu_ld" != no && break
10128 ;;
10129 *)
10130 test "$with_gnu_ld" != yes && break
10131 ;;
10132 esac
10133 fi
10134 done
10135 IFS="$lt_save_ifs"
10136 else
10137 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10138 fi
10139 fi
10140
10141 LD="$lt_cv_path_LD"
10142 if test -n "$LD"; then
10143 echo "$as_me:$LINENO: result: $LD" >&5
10144 echo "${ECHO_T}$LD" >&6
10145 else
10146 echo "$as_me:$LINENO: result: no" >&5
10147 echo "${ECHO_T}no" >&6
10148 fi
10149 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10150 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10151 { (exit 1); exit 1; }; }
10152 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10153 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10154 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10155 echo $ECHO_N "(cached) $ECHO_C" >&6
10156 else
10157 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10158 case `$LD -v 2>&1 </dev/null` in
10159 *GNU* | *'with BFD'*)
10160 lt_cv_prog_gnu_ld=yes
10161 ;;
10162 *)
10163 lt_cv_prog_gnu_ld=no
10164 ;;
10165 esac
10166 fi
10167 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10168 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10169 with_gnu_ld=$lt_cv_prog_gnu_ld
10170
10171
10172
10173 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10174 # archiving commands below assume that GNU ld is being used.
10175 if test "$with_gnu_ld" = yes; then
10176 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10177 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'
10178
10179 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10180 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10181
10182 # If archive_cmds runs LD, not CC, wlarc should be empty
10183 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10184 # investigate it a little bit more. (MM)
10185 wlarc='${wl}'
10186
10187 # ancient GNU ld didn't support --whole-archive et. al.
10188 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10189 grep 'no-whole-archive' > /dev/null; then
10190 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10191 else
10192 whole_archive_flag_spec_CXX=
10193 fi
10194 else
10195 with_gnu_ld=no
10196 wlarc=
10197
10198 # A generic and very simple default shared library creation
10199 # command for GNU C++ for the case where it uses the native
10200 # linker, instead of GNU ld. If possible, this setting should
10201 # overridden to take advantage of the native linker features on
10202 # the platform it is being used on.
10203 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10204 fi
10205
10206 # Commands to make compiler produce verbose output that lists
10207 # what "hidden" libraries, object files and flags are used when
10208 # linking a shared library.
10209 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10210
10211 else
10212 GXX=no
10213 with_gnu_ld=no
10214 wlarc=
10215 fi
10216
10217 # PORTME: fill in a description of your system's C++ link characteristics
10218 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10219 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10220 ld_shlibs_CXX=yes
10221 case $host_os in
10222 aix3*)
10223 # FIXME: insert proper C++ library support
10224 ld_shlibs_CXX=no
10225 ;;
10226 aix4* | aix5*)
10227 if test "$host_cpu" = ia64; then
10228 # On IA64, the linker does run time linking by default, so we don't
10229 # have to do anything special.
10230 aix_use_runtimelinking=no
10231 exp_sym_flag='-Bexport'
10232 no_entry_flag=""
10233 else
10234 aix_use_runtimelinking=no
10235
10236 # Test if we are trying to use run time linking or normal
10237 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10238 # need to do runtime linking.
10239 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10240 for ld_flag in $LDFLAGS; do
10241 case $ld_flag in
10242 *-brtl*)
10243 aix_use_runtimelinking=yes
10244 break
10245 ;;
10246 esac
10247 done
10248 esac
10249
10250 exp_sym_flag='-bexport'
10251 no_entry_flag='-bnoentry'
10252 fi
10253
10254 # When large executables or shared objects are built, AIX ld can
10255 # have problems creating the table of contents. If linking a library
10256 # or program results in "error TOC overflow" add -mminimal-toc to
10257 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10258 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10259
10260 archive_cmds_CXX=''
10261 hardcode_direct_CXX=yes
10262 hardcode_libdir_separator_CXX=':'
10263 link_all_deplibs_CXX=yes
10264
10265 if test "$GXX" = yes; then
10266 case $host_os in aix4.012|aix4.012.*)
10267 # We only want to do this on AIX 4.2 and lower, the check
10268 # below for broken collect2 doesn't work under 4.3+
10269 collect2name=`${CC} -print-prog-name=collect2`
10270 if test -f "$collect2name" && \
10271 strings "$collect2name" | grep resolve_lib_name >/dev/null
10272 then
10273 # We have reworked collect2
10274 hardcode_direct_CXX=yes
10275 else
10276 # We have old collect2
10277 hardcode_direct_CXX=unsupported
10278 # It fails to find uninstalled libraries when the uninstalled
10279 # path is not listed in the libpath. Setting hardcode_minus_L
10280 # to unsupported forces relinking
10281 hardcode_minus_L_CXX=yes
10282 hardcode_libdir_flag_spec_CXX='-L$libdir'
10283 hardcode_libdir_separator_CXX=
10284 fi
10285 esac
10286 shared_flag='-shared'
10287 else
10288 # not using gcc
10289 if test "$host_cpu" = ia64; then
10290 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10291 # chokes on -Wl,-G. The following line is correct:
10292 shared_flag='-G'
10293 else
10294 if test "$aix_use_runtimelinking" = yes; then
10295 shared_flag='${wl}-G'
10296 else
10297 shared_flag='${wl}-bM:SRE'
10298 fi
10299 fi
10300 fi
10301
10302 # It seems that -bexpall does not export symbols beginning with
10303 # underscore (_), so it is better to generate a list of symbols to export.
10304 always_export_symbols_CXX=yes
10305 if test "$aix_use_runtimelinking" = yes; then
10306 # Warning - without using the other runtime loading flags (-brtl),
10307 # -berok will link without error, but may produce a broken library.
10308 allow_undefined_flag_CXX='-berok'
10309 # Determine the default libpath from the value encoded in an empty executable.
10310 cat >conftest.$ac_ext <<_ACEOF
10311 /* confdefs.h. */
10312 _ACEOF
10313 cat confdefs.h >>conftest.$ac_ext
10314 cat >>conftest.$ac_ext <<_ACEOF
10315 /* end confdefs.h. */
10316
10317 int
10318 main ()
10319 {
10320
10321 ;
10322 return 0;
10323 }
10324 _ACEOF
10325 rm -f conftest.$ac_objext conftest$ac_exeext
10326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10327 (eval $ac_link) 2>conftest.er1
10328 ac_status=$?
10329 grep -v '^ *+' conftest.er1 >conftest.err
10330 rm -f conftest.er1
10331 cat conftest.err >&5
10332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10333 (exit $ac_status); } &&
10334 { ac_try='test -z "$ac_cxx_werror_flag"
10335 || test ! -s conftest.err'
10336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10337 (eval $ac_try) 2>&5
10338 ac_status=$?
10339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340 (exit $ac_status); }; } &&
10341 { ac_try='test -s conftest$ac_exeext'
10342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10343 (eval $ac_try) 2>&5
10344 ac_status=$?
10345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346 (exit $ac_status); }; }; then
10347
10348 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10349 }'`
10350 # Check for a 64-bit object if we didn't find anything.
10351 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; }
10352 }'`; fi
10353 else
10354 echo "$as_me: failed program was:" >&5
10355 sed 's/^/| /' conftest.$ac_ext >&5
10356
10357 fi
10358 rm -f conftest.err conftest.$ac_objext \
10359 conftest$ac_exeext conftest.$ac_ext
10360 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10361
10362 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10363
10364 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10365 else
10366 if test "$host_cpu" = ia64; then
10367 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10368 allow_undefined_flag_CXX="-z nodefs"
10369 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
10370 else
10371 # Determine the default libpath from the value encoded in an empty executable.
10372 cat >conftest.$ac_ext <<_ACEOF
10373 /* confdefs.h. */
10374 _ACEOF
10375 cat confdefs.h >>conftest.$ac_ext
10376 cat >>conftest.$ac_ext <<_ACEOF
10377 /* end confdefs.h. */
10378
10379 int
10380 main ()
10381 {
10382
10383 ;
10384 return 0;
10385 }
10386 _ACEOF
10387 rm -f conftest.$ac_objext conftest$ac_exeext
10388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10389 (eval $ac_link) 2>conftest.er1
10390 ac_status=$?
10391 grep -v '^ *+' conftest.er1 >conftest.err
10392 rm -f conftest.er1
10393 cat conftest.err >&5
10394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10395 (exit $ac_status); } &&
10396 { ac_try='test -z "$ac_cxx_werror_flag"
10397 || test ! -s conftest.err'
10398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10399 (eval $ac_try) 2>&5
10400 ac_status=$?
10401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402 (exit $ac_status); }; } &&
10403 { ac_try='test -s conftest$ac_exeext'
10404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10405 (eval $ac_try) 2>&5
10406 ac_status=$?
10407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408 (exit $ac_status); }; }; then
10409
10410 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10411 }'`
10412 # Check for a 64-bit object if we didn't find anything.
10413 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; }
10414 }'`; fi
10415 else
10416 echo "$as_me: failed program was:" >&5
10417 sed 's/^/| /' conftest.$ac_ext >&5
10418
10419 fi
10420 rm -f conftest.err conftest.$ac_objext \
10421 conftest$ac_exeext conftest.$ac_ext
10422 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10423
10424 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10425 # Warning - without using the other run time loading flags,
10426 # -berok will link without error, but may produce a broken library.
10427 no_undefined_flag_CXX=' ${wl}-bernotok'
10428 allow_undefined_flag_CXX=' ${wl}-berok'
10429 # -bexpall does not export symbols beginning with underscore (_)
10430 always_export_symbols_CXX=yes
10431 # Exported symbols can be pulled into shared objects from archives
10432 whole_archive_flag_spec_CXX=' '
10433 archive_cmds_need_lc_CXX=yes
10434 # This is similar to how AIX traditionally builds it's shared libraries.
10435 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10436 fi
10437 fi
10438 ;;
10439 chorus*)
10440 case $cc_basename in
10441 *)
10442 # FIXME: insert proper C++ library support
10443 ld_shlibs_CXX=no
10444 ;;
10445 esac
10446 ;;
10447
10448 cygwin* | mingw* | pw32*)
10449 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10450 # as there is no search path for DLLs.
10451 hardcode_libdir_flag_spec_CXX='-L$libdir'
10452 allow_undefined_flag_CXX=unsupported
10453 always_export_symbols_CXX=no
10454 enable_shared_with_static_runtimes_CXX=yes
10455
10456 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10457 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10458 # If the export-symbols file already is a .def file (1st line
10459 # is EXPORTS), use it as is; otherwise, prepend...
10460 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10461 cp $export_symbols $output_objdir/$soname.def;
10462 else
10463 echo EXPORTS > $output_objdir/$soname.def;
10464 cat $export_symbols >> $output_objdir/$soname.def;
10465 fi~
10466 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10467 else
10468 ld_shlibs_CXX=no
10469 fi
10470 ;;
10471
10472 darwin* | rhapsody*)
10473 if test "$GXX" = yes; then
10474 archive_cmds_need_lc_CXX=no
10475 case "$host_os" in
10476 rhapsody* | darwin1.[012])
10477 allow_undefined_flag_CXX='-undefined suppress'
10478 ;;
10479 *) # Darwin 1.3 on
10480 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10481 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10482 else
10483 case ${MACOSX_DEPLOYMENT_TARGET} in
10484 10.[012])
10485 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10486 ;;
10487 10.*)
10488 allow_undefined_flag_CXX='-undefined dynamic_lookup'
10489 ;;
10490 esac
10491 fi
10492 ;;
10493 esac
10494 lt_int_apple_cc_single_mod=no
10495 output_verbose_link_cmd='echo'
10496 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10497 lt_int_apple_cc_single_mod=yes
10498 fi
10499 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10500 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10501 else
10502 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10503 fi
10504 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10505
10506 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10507 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10508 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}'
10509 else
10510 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10511 fi
10512 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}'
10513 hardcode_direct_CXX=no
10514 hardcode_automatic_CXX=yes
10515 hardcode_shlibpath_var_CXX=unsupported
10516 whole_archive_flag_spec_CXX='-all_load $convenience'
10517 link_all_deplibs_CXX=yes
10518 else
10519 ld_shlibs_CXX=no
10520 fi
10521 ;;
10522
10523 dgux*)
10524 case $cc_basename in
10525 ec++)
10526 # FIXME: insert proper C++ library support
10527 ld_shlibs_CXX=no
10528 ;;
10529 ghcx)
10530 # Green Hills C++ Compiler
10531 # FIXME: insert proper C++ library support
10532 ld_shlibs_CXX=no
10533 ;;
10534 *)
10535 # FIXME: insert proper C++ library support
10536 ld_shlibs_CXX=no
10537 ;;
10538 esac
10539 ;;
10540 freebsd12*)
10541 # C++ shared libraries reported to be fairly broken before switch to ELF
10542 ld_shlibs_CXX=no
10543 ;;
10544 freebsd-elf*)
10545 archive_cmds_need_lc_CXX=no
10546 ;;
10547 freebsd* | kfreebsd*-gnu)
10548 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10549 # conventions
10550 ld_shlibs_CXX=yes
10551 ;;
10552 gnu*)
10553 ;;
10554 hpux9*)
10555 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10556 hardcode_libdir_separator_CXX=:
10557 export_dynamic_flag_spec_CXX='${wl}-E'
10558 hardcode_direct_CXX=yes
10559 hardcode_minus_L_CXX=yes # Not in the search PATH,
10560 # but as the default
10561 # location of the library.
10562
10563 case $cc_basename in
10564 CC)
10565 # FIXME: insert proper C++ library support
10566 ld_shlibs_CXX=no
10567 ;;
10568 aCC)
10569 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'
10570 # Commands to make compiler produce verbose output that lists
10571 # what "hidden" libraries, object files and flags are used when
10572 # linking a shared library.
10573 #
10574 # There doesn't appear to be a way to prevent this compiler from
10575 # explicitly linking system object files so we need to strip them
10576 # from the output so that they don't get included in the library
10577 # dependencies.
10578 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'
10579 ;;
10580 *)
10581 if test "$GXX" = yes; then
10582 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'
10583 else
10584 # FIXME: insert proper C++ library support
10585 ld_shlibs_CXX=no
10586 fi
10587 ;;
10588 esac
10589 ;;
10590 hpux10*|hpux11*)
10591 if test $with_gnu_ld = no; then
10592 case "$host_cpu" in
10593 hppa*64*)
10594 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10595 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10596 hardcode_libdir_separator_CXX=:
10597 ;;
10598 ia64*)
10599 hardcode_libdir_flag_spec_CXX='-L$libdir'
10600 ;;
10601 *)
10602 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10603 hardcode_libdir_separator_CXX=:
10604 export_dynamic_flag_spec_CXX='${wl}-E'
10605 ;;
10606 esac
10607 fi
10608 case "$host_cpu" in
10609 hppa*64*)
10610 hardcode_direct_CXX=no
10611 hardcode_shlibpath_var_CXX=no
10612 ;;
10613 ia64*)
10614 hardcode_direct_CXX=no
10615 hardcode_shlibpath_var_CXX=no
10616 hardcode_minus_L_CXX=yes # Not in the search PATH,
10617 # but as the default
10618 # location of the library.
10619 ;;
10620 *)
10621 hardcode_direct_CXX=yes
10622 hardcode_minus_L_CXX=yes # Not in the search PATH,
10623 # but as the default
10624 # location of the library.
10625 ;;
10626 esac
10627
10628 case $cc_basename in
10629 CC)
10630 # FIXME: insert proper C++ library support
10631 ld_shlibs_CXX=no
10632 ;;
10633 aCC)
10634 case "$host_cpu" in
10635 hppa*64*|ia64*)
10636 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10637 ;;
10638 *)
10639 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10640 ;;
10641 esac
10642 # Commands to make compiler produce verbose output that lists
10643 # what "hidden" libraries, object files and flags are used when
10644 # linking a shared library.
10645 #
10646 # There doesn't appear to be a way to prevent this compiler from
10647 # explicitly linking system object files so we need to strip them
10648 # from the output so that they don't get included in the library
10649 # dependencies.
10650 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'
10651 ;;
10652 *)
10653 if test "$GXX" = yes; then
10654 if test $with_gnu_ld = no; then
10655 case "$host_cpu" in
10656 ia64*|hppa*64*)
10657 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10658 ;;
10659 *)
10660 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'
10661 ;;
10662 esac
10663 fi
10664 else
10665 # FIXME: insert proper C++ library support
10666 ld_shlibs_CXX=no
10667 fi
10668 ;;
10669 esac
10670 ;;
10671 irix5* | irix6*)
10672 case $cc_basename in
10673 CC)
10674 # SGI C++
10675 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10676
10677 # Archives containing C++ object files must be created using
10678 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10679 # necessary to make sure instantiated templates are included
10680 # in the archive.
10681 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10682 ;;
10683 *)
10684 if test "$GXX" = yes; then
10685 if test "$with_gnu_ld" = no; then
10686 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10687 else
10688 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'
10689 fi
10690 fi
10691 link_all_deplibs_CXX=yes
10692 ;;
10693 esac
10694 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10695 hardcode_libdir_separator_CXX=:
10696 ;;
10697 linux*)
10698 case $cc_basename in
10699 KCC)
10700 # Kuck and Associates, Inc. (KAI) C++ Compiler
10701
10702 # KCC will only create a shared library if the output file
10703 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10704 # to its proper name (with version) after linking.
10705 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'
10706 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'
10707 # Commands to make compiler produce verbose output that lists
10708 # what "hidden" libraries, object files and flags are used when
10709 # linking a shared library.
10710 #
10711 # There doesn't appear to be a way to prevent this compiler from
10712 # explicitly linking system object files so we need to strip them
10713 # from the output so that they don't get included in the library
10714 # dependencies.
10715 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'
10716
10717 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10718 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10719
10720 # Archives containing C++ object files must be created using
10721 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10722 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10723 ;;
10724 icpc)
10725 # Intel C++
10726 with_gnu_ld=yes
10727 archive_cmds_need_lc_CXX=no
10728 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10729 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'
10730 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10731 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10732 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10733 ;;
10734 cxx)
10735 # Compaq C++
10736 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10737 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'
10738
10739 runpath_var=LD_RUN_PATH
10740 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10741 hardcode_libdir_separator_CXX=:
10742
10743 # Commands to make compiler produce verbose output that lists
10744 # what "hidden" libraries, object files and flags are used when
10745 # linking a shared library.
10746 #
10747 # There doesn't appear to be a way to prevent this compiler from
10748 # explicitly linking system object files so we need to strip them
10749 # from the output so that they don't get included in the library
10750 # dependencies.
10751 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'
10752 ;;
10753 esac
10754 ;;
10755 lynxos*)
10756 # FIXME: insert proper C++ library support
10757 ld_shlibs_CXX=no
10758 ;;
10759 m88k*)
10760 # FIXME: insert proper C++ library support
10761 ld_shlibs_CXX=no
10762 ;;
10763 mvs*)
10764 case $cc_basename in
10765 cxx)
10766 # FIXME: insert proper C++ library support
10767 ld_shlibs_CXX=no
10768 ;;
10769 *)
10770 # FIXME: insert proper C++ library support
10771 ld_shlibs_CXX=no
10772 ;;
10773 esac
10774 ;;
10775 netbsd*)
10776 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10777 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10778 wlarc=
10779 hardcode_libdir_flag_spec_CXX='-R$libdir'
10780 hardcode_direct_CXX=yes
10781 hardcode_shlibpath_var_CXX=no
10782 fi
10783 # Workaround some broken pre-1.5 toolchains
10784 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10785 ;;
10786 osf3*)
10787 case $cc_basename in
10788 KCC)
10789 # Kuck and Associates, Inc. (KAI) C++ Compiler
10790
10791 # KCC will only create a shared library if the output file
10792 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10793 # to its proper name (with version) after linking.
10794 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'
10795
10796 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10797 hardcode_libdir_separator_CXX=:
10798
10799 # Archives containing C++ object files must be created using
10800 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10801 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10802
10803 ;;
10804 RCC)
10805 # Rational C++ 2.4.1
10806 # FIXME: insert proper C++ library support
10807 ld_shlibs_CXX=no
10808 ;;
10809 cxx)
10810 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10811 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10812
10813 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10814 hardcode_libdir_separator_CXX=:
10815
10816 # Commands to make compiler produce verbose output that lists
10817 # what "hidden" libraries, object files and flags are used when
10818 # linking a shared library.
10819 #
10820 # There doesn't appear to be a way to prevent this compiler from
10821 # explicitly linking system object files so we need to strip them
10822 # from the output so that they don't get included in the library
10823 # dependencies.
10824 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'
10825 ;;
10826 *)
10827 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10828 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10829 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10830
10831 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10832 hardcode_libdir_separator_CXX=:
10833
10834 # Commands to make compiler produce verbose output that lists
10835 # what "hidden" libraries, object files and flags are used when
10836 # linking a shared library.
10837 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10838
10839 else
10840 # FIXME: insert proper C++ library support
10841 ld_shlibs_CXX=no
10842 fi
10843 ;;
10844 esac
10845 ;;
10846 osf4* | osf5*)
10847 case $cc_basename in
10848 KCC)
10849 # Kuck and Associates, Inc. (KAI) C++ Compiler
10850
10851 # KCC will only create a shared library if the output file
10852 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10853 # to its proper name (with version) after linking.
10854 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'
10855
10856 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10857 hardcode_libdir_separator_CXX=:
10858
10859 # Archives containing C++ object files must be created using
10860 # the KAI C++ compiler.
10861 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10862 ;;
10863 RCC)
10864 # Rational C++ 2.4.1
10865 # FIXME: insert proper C++ library support
10866 ld_shlibs_CXX=no
10867 ;;
10868 cxx)
10869 allow_undefined_flag_CXX=' -expect_unresolved \*'
10870 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10871 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10872 echo "-hidden">> $lib.exp~
10873 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
10874 $rm $lib.exp'
10875
10876 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10877 hardcode_libdir_separator_CXX=:
10878
10879 # Commands to make compiler produce verbose output that lists
10880 # what "hidden" libraries, object files and flags are used when
10881 # linking a shared library.
10882 #
10883 # There doesn't appear to be a way to prevent this compiler from
10884 # explicitly linking system object files so we need to strip them
10885 # from the output so that they don't get included in the library
10886 # dependencies.
10887 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'
10888 ;;
10889 *)
10890 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10891 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10892 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10893
10894 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10895 hardcode_libdir_separator_CXX=:
10896
10897 # Commands to make compiler produce verbose output that lists
10898 # what "hidden" libraries, object files and flags are used when
10899 # linking a shared library.
10900 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10901
10902 else
10903 # FIXME: insert proper C++ library support
10904 ld_shlibs_CXX=no
10905 fi
10906 ;;
10907 esac
10908 ;;
10909 psos*)
10910 # FIXME: insert proper C++ library support
10911 ld_shlibs_CXX=no
10912 ;;
10913 sco*)
10914 archive_cmds_need_lc_CXX=no
10915 case $cc_basename in
10916 CC)
10917 # FIXME: insert proper C++ library support
10918 ld_shlibs_CXX=no
10919 ;;
10920 *)
10921 # FIXME: insert proper C++ library support
10922 ld_shlibs_CXX=no
10923 ;;
10924 esac
10925 ;;
10926 sunos4*)
10927 case $cc_basename in
10928 CC)
10929 # Sun C++ 4.x
10930 # FIXME: insert proper C++ library support
10931 ld_shlibs_CXX=no
10932 ;;
10933 lcc)
10934 # Lucid
10935 # FIXME: insert proper C++ library support
10936 ld_shlibs_CXX=no
10937 ;;
10938 *)
10939 # FIXME: insert proper C++ library support
10940 ld_shlibs_CXX=no
10941 ;;
10942 esac
10943 ;;
10944 solaris*)
10945 case $cc_basename in
10946 CC)
10947 # Sun C++ 4.2, 5.x and Centerline C++
10948 no_undefined_flag_CXX=' -zdefs'
10949 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10950 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10951 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10952
10953 hardcode_libdir_flag_spec_CXX='-R$libdir'
10954 hardcode_shlibpath_var_CXX=no
10955 case $host_os in
10956 solaris2.0-5 | solaris2.0-5.*) ;;
10957 *)
10958 # The C++ compiler is used as linker so we must use $wl
10959 # flag to pass the commands to the underlying system
10960 # linker.
10961 # Supported since Solaris 2.6 (maybe 2.5.1?)
10962 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10963 ;;
10964 esac
10965 link_all_deplibs_CXX=yes
10966
10967 # Commands to make compiler produce verbose output that lists
10968 # what "hidden" libraries, object files and flags are used when
10969 # linking a shared library.
10970 #
10971 # There doesn't appear to be a way to prevent this compiler from
10972 # explicitly linking system object files so we need to strip them
10973 # from the output so that they don't get included in the library
10974 # dependencies.
10975 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10976
10977 # Archives containing C++ object files must be created using
10978 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10979 # necessary to make sure instantiated templates are included
10980 # in the archive.
10981 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10982 ;;
10983 gcx)
10984 # Green Hills C++ Compiler
10985 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10986
10987 # The C++ compiler must be used to create the archive.
10988 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10989 ;;
10990 *)
10991 # GNU C++ compiler with Solaris linker
10992 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10993 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10994 if $CC --version | grep -v '^2\.7' > /dev/null; then
10995 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10996 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10997 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10998
10999 # Commands to make compiler produce verbose output that lists
11000 # what "hidden" libraries, object files and flags are used when
11001 # linking a shared library.
11002 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11003 else
11004 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11005 # platform.
11006 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11007 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11008 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11009
11010 # Commands to make compiler produce verbose output that lists
11011 # what "hidden" libraries, object files and flags are used when
11012 # linking a shared library.
11013 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11014 fi
11015
11016 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11017 fi
11018 ;;
11019 esac
11020 ;;
11021 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11022 archive_cmds_need_lc_CXX=no
11023 ;;
11024 tandem*)
11025 case $cc_basename in
11026 NCC)
11027 # NonStop-UX NCC 3.20
11028 # FIXME: insert proper C++ library support
11029 ld_shlibs_CXX=no
11030 ;;
11031 *)
11032 # FIXME: insert proper C++ library support
11033 ld_shlibs_CXX=no
11034 ;;
11035 esac
11036 ;;
11037 vxworks*)
11038 # FIXME: insert proper C++ library support
11039 ld_shlibs_CXX=no
11040 ;;
11041 *)
11042 # FIXME: insert proper C++ library support
11043 ld_shlibs_CXX=no
11044 ;;
11045 esac
11046 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11047 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11048 test "$ld_shlibs_CXX" = no && can_build_shared=no
11049
11050 GCC_CXX="$GXX"
11051 LD_CXX="$LD"
11052
11053
11054 cat > conftest.$ac_ext <<EOF
11055 class Foo
11056 {
11057 public:
11058 Foo (void) { a = 0; }
11059 private:
11060 int a;
11061 };
11062 EOF
11063
11064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11065 (eval $ac_compile) 2>&5
11066 ac_status=$?
11067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068 (exit $ac_status); }; then
11069 # Parse the compiler output and extract the necessary
11070 # objects, libraries and library flags.
11071
11072 # Sentinel used to keep track of whether or not we are before
11073 # the conftest object file.
11074 pre_test_object_deps_done=no
11075
11076 # The `*' in the case matches for architectures that use `case' in
11077 # $output_verbose_cmd can trigger glob expansion during the loop
11078 # eval without this substitution.
11079 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
11080
11081 for p in `eval $output_verbose_link_cmd`; do
11082 case $p in
11083
11084 -L* | -R* | -l*)
11085 # Some compilers place space between "-{L,R}" and the path.
11086 # Remove the space.
11087 if test $p = "-L" \
11088 || test $p = "-R"; then
11089 prev=$p
11090 continue
11091 else
11092 prev=
11093 fi
11094
11095 if test "$pre_test_object_deps_done" = no; then
11096 case $p in
11097 -L* | -R*)
11098 # Internal compiler library paths should come after those
11099 # provided the user. The postdeps already come after the
11100 # user supplied libs so there is no need to process them.
11101 if test -z "$compiler_lib_search_path_CXX"; then
11102 compiler_lib_search_path_CXX="${prev}${p}"
11103 else
11104 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11105 fi
11106 ;;
11107 # The "-l" case would never come before the object being
11108 # linked, so don't bother handling this case.
11109 esac
11110 else
11111 if test -z "$postdeps_CXX"; then
11112 postdeps_CXX="${prev}${p}"
11113 else
11114 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11115 fi
11116 fi
11117 ;;
11118
11119 *.$objext)
11120 # This assumes that the test object file only shows up
11121 # once in the compiler output.
11122 if test "$p" = "conftest.$objext"; then
11123 pre_test_object_deps_done=yes
11124 continue
11125 fi
11126
11127 if test "$pre_test_object_deps_done" = no; then
11128 if test -z "$predep_objects_CXX"; then
11129 predep_objects_CXX="$p"
11130 else
11131 predep_objects_CXX="$predep_objects_CXX $p"
11132 fi
11133 else
11134 if test -z "$postdep_objects_CXX"; then
11135 postdep_objects_CXX="$p"
11136 else
11137 postdep_objects_CXX="$postdep_objects_CXX $p"
11138 fi
11139 fi
11140 ;;
11141
11142 *) ;; # Ignore the rest.
11143
11144 esac
11145 done
11146
11147 # Clean up.
11148 rm -f a.out a.exe
11149 else
11150 echo "libtool.m4: error: problem compiling CXX test program"
11151 fi
11152
11153 $rm -f confest.$objext
11154
11155 case " $postdeps_CXX " in
11156 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11157 esac
11158
11159 lt_prog_compiler_wl_CXX=
11160 lt_prog_compiler_pic_CXX=
11161 lt_prog_compiler_static_CXX=
11162
11163 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11164 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11165
11166 # C++ specific cases for pic, static, wl, etc.
11167 if test "$GXX" = yes; then
11168 lt_prog_compiler_wl_CXX='-Wl,'
11169 lt_prog_compiler_static_CXX='-static'
11170
11171 case $host_os in
11172 aix*)
11173 # All AIX code is PIC.
11174 if test "$host_cpu" = ia64; then
11175 # AIX 5 now supports IA64 processor
11176 lt_prog_compiler_static_CXX='-Bstatic'
11177 fi
11178 ;;
11179 amigaos*)
11180 # FIXME: we need at least 68020 code to build shared libraries, but
11181 # adding the `-m68020' flag to GCC prevents building anything better,
11182 # like `-m68040'.
11183 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11184 ;;
11185 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11186 # PIC is the default for these OSes.
11187 ;;
11188 mingw* | os2* | pw32*)
11189 # This hack is so that the source file can tell whether it is being
11190 # built for inclusion in a dll (and should export symbols for example).
11191 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11192 ;;
11193 darwin* | rhapsody*)
11194 # PIC is the default on this platform
11195 # Common symbols not allowed in MH_DYLIB files
11196 lt_prog_compiler_pic_CXX='-fno-common'
11197 ;;
11198 *djgpp*)
11199 # DJGPP does not support shared libraries at all
11200 lt_prog_compiler_pic_CXX=
11201 ;;
11202 sysv4*MP*)
11203 if test -d /usr/nec; then
11204 lt_prog_compiler_pic_CXX=-Kconform_pic
11205 fi
11206 ;;
11207 hpux*)
11208 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11209 # not for PA HP-UX.
11210 case "$host_cpu" in
11211 hppa*64*|ia64*)
11212 ;;
11213 *)
11214 lt_prog_compiler_pic_CXX='-fPIC'
11215 ;;
11216 esac
11217 ;;
11218 *)
11219 lt_prog_compiler_pic_CXX='-fPIC'
11220 ;;
11221 esac
11222 else
11223 case $host_os in
11224 aix4* | aix5*)
11225 # All AIX code is PIC.
11226 if test "$host_cpu" = ia64; then
11227 # AIX 5 now supports IA64 processor
11228 lt_prog_compiler_static_CXX='-Bstatic'
11229 else
11230 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11231 fi
11232 ;;
11233 chorus*)
11234 case $cc_basename in
11235 cxch68)
11236 # Green Hills C++ Compiler
11237 # _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"
11238 ;;
11239 esac
11240 ;;
11241 dgux*)
11242 case $cc_basename in
11243 ec++)
11244 lt_prog_compiler_pic_CXX='-KPIC'
11245 ;;
11246 ghcx)
11247 # Green Hills C++ Compiler
11248 lt_prog_compiler_pic_CXX='-pic'
11249 ;;
11250 *)
11251 ;;
11252 esac
11253 ;;
11254 freebsd* | kfreebsd*-gnu)
11255 # FreeBSD uses GNU C++
11256 ;;
11257 hpux9* | hpux10* | hpux11*)
11258 case $cc_basename in
11259 CC)
11260 lt_prog_compiler_wl_CXX='-Wl,'
11261 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11262 if test "$host_cpu" != ia64; then
11263 lt_prog_compiler_pic_CXX='+Z'
11264 fi
11265 ;;
11266 aCC)
11267 lt_prog_compiler_wl_CXX='-Wl,'
11268 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11269 case "$host_cpu" in
11270 hppa*64*|ia64*)
11271 # +Z the default
11272 ;;
11273 *)
11274 lt_prog_compiler_pic_CXX='+Z'
11275 ;;
11276 esac
11277 ;;
11278 *)
11279 ;;
11280 esac
11281 ;;
11282 irix5* | irix6* | nonstopux*)
11283 case $cc_basename in
11284 CC)
11285 lt_prog_compiler_wl_CXX='-Wl,'
11286 lt_prog_compiler_static_CXX='-non_shared'
11287 # CC pic flag -KPIC is the default.
11288 ;;
11289 *)
11290 ;;
11291 esac
11292 ;;
11293 linux*)
11294 case $cc_basename in
11295 KCC)
11296 # KAI C++ Compiler
11297 lt_prog_compiler_wl_CXX='--backend -Wl,'
11298 lt_prog_compiler_pic_CXX='-fPIC'
11299 ;;
11300 icpc)
11301 # Intel C++
11302 lt_prog_compiler_wl_CXX='-Wl,'
11303 lt_prog_compiler_pic_CXX='-KPIC'
11304 lt_prog_compiler_static_CXX='-static'
11305 ;;
11306 cxx)
11307 # Compaq C++
11308 # Make sure the PIC flag is empty. It appears that all Alpha
11309 # Linux and Compaq Tru64 Unix objects are PIC.
11310 lt_prog_compiler_pic_CXX=
11311 lt_prog_compiler_static_CXX='-non_shared'
11312 ;;
11313 *)
11314 ;;
11315 esac
11316 ;;
11317 lynxos*)
11318 ;;
11319 m88k*)
11320 ;;
11321 mvs*)
11322 case $cc_basename in
11323 cxx)
11324 lt_prog_compiler_pic_CXX='-W c,exportall'
11325 ;;
11326 *)
11327 ;;
11328 esac
11329 ;;
11330 netbsd*)
11331 ;;
11332 osf3* | osf4* | osf5*)
11333 case $cc_basename in
11334 KCC)
11335 lt_prog_compiler_wl_CXX='--backend -Wl,'
11336 ;;
11337 RCC)
11338 # Rational C++ 2.4.1
11339 lt_prog_compiler_pic_CXX='-pic'
11340 ;;
11341 cxx)
11342 # Digital/Compaq C++
11343 lt_prog_compiler_wl_CXX='-Wl,'
11344 # Make sure the PIC flag is empty. It appears that all Alpha
11345 # Linux and Compaq Tru64 Unix objects are PIC.
11346 lt_prog_compiler_pic_CXX=
11347 lt_prog_compiler_static_CXX='-non_shared'
11348 ;;
11349 *)
11350 ;;
11351 esac
11352 ;;
11353 psos*)
11354 ;;
11355 sco*)
11356 case $cc_basename in
11357 CC)
11358 lt_prog_compiler_pic_CXX='-fPIC'
11359 ;;
11360 *)
11361 ;;
11362 esac
11363 ;;
11364 solaris*)
11365 case $cc_basename in
11366 CC)
11367 # Sun C++ 4.2, 5.x and Centerline C++
11368 lt_prog_compiler_pic_CXX='-KPIC'
11369 lt_prog_compiler_static_CXX='-Bstatic'
11370 lt_prog_compiler_wl_CXX='-Qoption ld '
11371 ;;
11372 gcx)
11373 # Green Hills C++ Compiler
11374 lt_prog_compiler_pic_CXX='-PIC'
11375 ;;
11376 *)
11377 ;;
11378 esac
11379 ;;
11380 sunos4*)
11381 case $cc_basename in
11382 CC)
11383 # Sun C++ 4.x
11384 lt_prog_compiler_pic_CXX='-pic'
11385 lt_prog_compiler_static_CXX='-Bstatic'
11386 ;;
11387 lcc)
11388 # Lucid
11389 lt_prog_compiler_pic_CXX='-pic'
11390 ;;
11391 *)
11392 ;;
11393 esac
11394 ;;
11395 tandem*)
11396 case $cc_basename in
11397 NCC)
11398 # NonStop-UX NCC 3.20
11399 lt_prog_compiler_pic_CXX='-KPIC'
11400 ;;
11401 *)
11402 ;;
11403 esac
11404 ;;
11405 unixware*)
11406 ;;
11407 vxworks*)
11408 ;;
11409 *)
11410 lt_prog_compiler_can_build_shared_CXX=no
11411 ;;
11412 esac
11413 fi
11414
11415 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11416 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11417
11418 #
11419 # Check to make sure the PIC flag actually works.
11420 #
11421 if test -n "$lt_prog_compiler_pic_CXX"; then
11422
11423 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11424 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11425 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11426 echo $ECHO_N "(cached) $ECHO_C" >&6
11427 else
11428 lt_prog_compiler_pic_works_CXX=no
11429 ac_outfile=conftest.$ac_objext
11430 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11431 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11432 # Insert the option either (1) after the last *FLAGS variable, or
11433 # (2) before a word containing "conftest.", or (3) at the end.
11434 # Note that $ac_compile itself does not contain backslashes and begins
11435 # with a dollar sign (not a hyphen), so the echo should work correctly.
11436 # The option is referenced via a variable to avoid confusing sed.
11437 lt_compile=`echo "$ac_compile" | $SED \
11438 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11439 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11440 -e 's:$: $lt_compiler_flag:'`
11441 (eval echo "\"\$as_me:11441: $lt_compile\"" >&5)
11442 (eval "$lt_compile" 2>conftest.err)
11443 ac_status=$?
11444 cat conftest.err >&5
11445 echo "$as_me:11445: \$? = $ac_status" >&5
11446 if (exit $ac_status) && test -s "$ac_outfile"; then
11447 # The compiler can only warn and ignore the option if not recognized
11448 # So say no if there are warnings
11449 if test ! -s conftest.err; then
11450 lt_prog_compiler_pic_works_CXX=yes
11451 fi
11452 fi
11453 $rm conftest*
11454
11455 fi
11456 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11457 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11458
11459 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11460 case $lt_prog_compiler_pic_CXX in
11461 "" | " "*) ;;
11462 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11463 esac
11464 else
11465 lt_prog_compiler_pic_CXX=
11466 lt_prog_compiler_can_build_shared_CXX=no
11467 fi
11468
11469 fi
11470 case "$host_os" in
11471 # For platforms which do not support PIC, -DPIC is meaningless:
11472 *djgpp*)
11473 lt_prog_compiler_pic_CXX=
11474 ;;
11475 *)
11476 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11477 ;;
11478 esac
11479
11480 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11481 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11482 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11483 echo $ECHO_N "(cached) $ECHO_C" >&6
11484 else
11485 lt_cv_prog_compiler_c_o_CXX=no
11486 $rm -r conftest 2>/dev/null
11487 mkdir conftest
11488 cd conftest
11489 mkdir out
11490 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11491
11492 lt_compiler_flag="-o out/conftest2.$ac_objext"
11493 # Insert the option either (1) after the last *FLAGS variable, or
11494 # (2) before a word containing "conftest.", or (3) at the end.
11495 # Note that $ac_compile itself does not contain backslashes and begins
11496 # with a dollar sign (not a hyphen), so the echo should work correctly.
11497 lt_compile=`echo "$ac_compile" | $SED \
11498 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11499 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11500 -e 's:$: $lt_compiler_flag:'`
11501 (eval echo "\"\$as_me:11501: $lt_compile\"" >&5)
11502 (eval "$lt_compile" 2>out/conftest.err)
11503 ac_status=$?
11504 cat out/conftest.err >&5
11505 echo "$as_me:11505: \$? = $ac_status" >&5
11506 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11507 then
11508 # The compiler can only warn and ignore the option if not recognized
11509 # So say no if there are warnings
11510 if test ! -s out/conftest.err; then
11511 lt_cv_prog_compiler_c_o_CXX=yes
11512 fi
11513 fi
11514 chmod u+w .
11515 $rm conftest*
11516 # SGI C++ compiler will create directory out/ii_files/ for
11517 # template instantiation
11518 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11519 $rm out/* && rmdir out
11520 cd ..
11521 rmdir conftest
11522 $rm conftest*
11523
11524 fi
11525 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11526 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11527
11528
11529 hard_links="nottested"
11530 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11531 # do not overwrite the value of need_locks provided by the user
11532 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11533 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11534 hard_links=yes
11535 $rm conftest*
11536 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11537 touch conftest.a
11538 ln conftest.a conftest.b 2>&5 || hard_links=no
11539 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11540 echo "$as_me:$LINENO: result: $hard_links" >&5
11541 echo "${ECHO_T}$hard_links" >&6
11542 if test "$hard_links" = no; then
11543 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11544 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11545 need_locks=warn
11546 fi
11547 else
11548 need_locks=no
11549 fi
11550
11551 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11552 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11553
11554 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11555 case $host_os in
11556 aix4* | aix5*)
11557 # If we're using GNU nm, then we don't want the "-C" option.
11558 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11559 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11560 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'
11561 else
11562 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'
11563 fi
11564 ;;
11565 pw32*)
11566 export_symbols_cmds_CXX="$ltdll_cmds"
11567 ;;
11568 cygwin* | mingw*)
11569 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11570 ;;
11571 *)
11572 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11573 ;;
11574 esac
11575
11576 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11577 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11578 test "$ld_shlibs_CXX" = no && can_build_shared=no
11579
11580 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11581 if test "$GCC" = yes; then
11582 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11583 fi
11584
11585 #
11586 # Do we need to explicitly link libc?
11587 #
11588 case "x$archive_cmds_need_lc_CXX" in
11589 x|xyes)
11590 # Assume -lc should be added
11591 archive_cmds_need_lc_CXX=yes
11592
11593 if test "$enable_shared" = yes && test "$GCC" = yes; then
11594 case $archive_cmds_CXX in
11595 *'~'*)
11596 # FIXME: we may have to deal with multi-command sequences.
11597 ;;
11598 '$CC '*)
11599 # Test whether the compiler implicitly links with -lc since on some
11600 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11601 # to ld, don't add -lc before -lgcc.
11602 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11603 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11604 $rm conftest*
11605 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11606
11607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11608 (eval $ac_compile) 2>&5
11609 ac_status=$?
11610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11611 (exit $ac_status); } 2>conftest.err; then
11612 soname=conftest
11613 lib=conftest
11614 libobjs=conftest.$ac_objext
11615 deplibs=
11616 wl=$lt_prog_compiler_wl_CXX
11617 compiler_flags=-v
11618 linker_flags=-v
11619 verstring=
11620 output_objdir=.
11621 libname=conftest
11622 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11623 allow_undefined_flag_CXX=
11624 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11625 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11626 ac_status=$?
11627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11628 (exit $ac_status); }
11629 then
11630 archive_cmds_need_lc_CXX=no
11631 else
11632 archive_cmds_need_lc_CXX=yes
11633 fi
11634 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11635 else
11636 cat conftest.err 1>&5
11637 fi
11638 $rm conftest*
11639 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11640 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11641 ;;
11642 esac
11643 fi
11644 ;;
11645 esac
11646
11647 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11648 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11649 library_names_spec=
11650 libname_spec='lib$name'
11651 soname_spec=
11652 shrext_cmds=".so"
11653 postinstall_cmds=
11654 postuninstall_cmds=
11655 finish_cmds=
11656 finish_eval=
11657 shlibpath_var=
11658 shlibpath_overrides_runpath=unknown
11659 version_type=none
11660 dynamic_linker="$host_os ld.so"
11661 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11662 if test "$GCC" = yes; then
11663 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11664 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11665 # if the path contains ";" then we assume it to be the separator
11666 # otherwise default to the standard path separator (i.e. ":") - it is
11667 # assumed that no part of a normal pathname contains ";" but that should
11668 # okay in the real world where ";" in dirpaths is itself problematic.
11669 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11670 else
11671 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11672 fi
11673 else
11674 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11675 fi
11676 need_lib_prefix=unknown
11677 hardcode_into_libs=no
11678
11679 # when you set need_version to no, make sure it does not cause -set_version
11680 # flags to be left without arguments
11681 need_version=unknown
11682
11683 case $host_os in
11684 aix3*)
11685 version_type=linux
11686 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11687 shlibpath_var=LIBPATH
11688
11689 # AIX 3 has no versioning support, so we append a major version to the name.
11690 soname_spec='${libname}${release}${shared_ext}$major'
11691 ;;
11692
11693 aix4* | aix5*)
11694 version_type=linux
11695 need_lib_prefix=no
11696 need_version=no
11697 hardcode_into_libs=yes
11698 if test "$host_cpu" = ia64; then
11699 # AIX 5 supports IA64
11700 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11701 shlibpath_var=LD_LIBRARY_PATH
11702 else
11703 # With GCC up to 2.95.x, collect2 would create an import file
11704 # for dependence libraries. The import file would start with
11705 # the line `#! .'. This would cause the generated library to
11706 # depend on `.', always an invalid library. This was fixed in
11707 # development snapshots of GCC prior to 3.0.
11708 case $host_os in
11709 aix4 | aix4.[01] | aix4.[01].*)
11710 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11711 echo ' yes '
11712 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11713 :
11714 else
11715 can_build_shared=no
11716 fi
11717 ;;
11718 esac
11719 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11720 # soname into executable. Probably we can add versioning support to
11721 # collect2, so additional links can be useful in future.
11722 if test "$aix_use_runtimelinking" = yes; then
11723 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11724 # instead of lib<name>.a to let people know that these are not
11725 # typical AIX shared libraries.
11726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11727 else
11728 # We preserve .a as extension for shared libraries through AIX4.2
11729 # and later when we are not doing run time linking.
11730 library_names_spec='${libname}${release}.a $libname.a'
11731 soname_spec='${libname}${release}${shared_ext}$major'
11732 fi
11733 shlibpath_var=LIBPATH
11734 fi
11735 ;;
11736
11737 amigaos*)
11738 library_names_spec='$libname.ixlibrary $libname.a'
11739 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11740 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'
11741 ;;
11742
11743 beos*)
11744 library_names_spec='${libname}${shared_ext}'
11745 dynamic_linker="$host_os ld.so"
11746 shlibpath_var=LIBRARY_PATH
11747 ;;
11748
11749 bsdi4*)
11750 version_type=linux
11751 need_version=no
11752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11753 soname_spec='${libname}${release}${shared_ext}$major'
11754 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11755 shlibpath_var=LD_LIBRARY_PATH
11756 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11757 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11758 # the default ld.so.conf also contains /usr/contrib/lib and
11759 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11760 # libtool to hard-code these into programs
11761 ;;
11762
11763 cygwin* | mingw* | pw32*)
11764 version_type=windows
11765 shrext_cmds=".dll"
11766 need_version=no
11767 need_lib_prefix=no
11768
11769 case $GCC,$host_os in
11770 yes,cygwin* | yes,mingw* | yes,pw32*)
11771 library_names_spec='$libname.dll.a'
11772 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11773 postinstall_cmds='base_file=`basename \${file}`~
11774 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11775 dldir=$destdir/`dirname \$dlpath`~
11776 test -d \$dldir || mkdir -p \$dldir~
11777 $install_prog $dir/$dlname \$dldir/$dlname'
11778 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11779 dlpath=$dir/\$dldll~
11780 $rm \$dlpath'
11781 shlibpath_overrides_runpath=yes
11782
11783 case $host_os in
11784 cygwin*)
11785 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11786 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11787 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11788 ;;
11789 mingw*)
11790 # MinGW DLLs use traditional 'lib' prefix
11791 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11792 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11793 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11794 # It is most probably a Windows format PATH printed by
11795 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11796 # path with ; separators, and with drive letters. We can handle the
11797 # drive letters (cygwin fileutils understands them), so leave them,
11798 # especially as we might pass files found there to a mingw objdump,
11799 # which wouldn't understand a cygwinified path. Ahh.
11800 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11801 else
11802 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11803 fi
11804 ;;
11805 pw32*)
11806 # pw32 DLLs use 'pw' prefix rather than 'lib'
11807 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11808 ;;
11809 esac
11810 ;;
11811
11812 *)
11813 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11814 ;;
11815 esac
11816 dynamic_linker='Win32 ld.exe'
11817 # FIXME: first we should search . and the directory the executable is in
11818 shlibpath_var=PATH
11819 ;;
11820
11821 darwin* | rhapsody*)
11822 dynamic_linker="$host_os dyld"
11823 version_type=darwin
11824 need_lib_prefix=no
11825 need_version=no
11826 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11827 soname_spec='${libname}${release}${major}$shared_ext'
11828 shlibpath_overrides_runpath=yes
11829 shlibpath_var=DYLD_LIBRARY_PATH
11830 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11831 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11832 if test "$GCC" = yes; then
11833 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"`
11834 else
11835 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11836 fi
11837 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11838 ;;
11839
11840 dgux*)
11841 version_type=linux
11842 need_lib_prefix=no
11843 need_version=no
11844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11845 soname_spec='${libname}${release}${shared_ext}$major'
11846 shlibpath_var=LD_LIBRARY_PATH
11847 ;;
11848
11849 freebsd1*)
11850 dynamic_linker=no
11851 ;;
11852
11853 kfreebsd*-gnu)
11854 version_type=linux
11855 need_lib_prefix=no
11856 need_version=no
11857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11858 soname_spec='${libname}${release}${shared_ext}$major'
11859 shlibpath_var=LD_LIBRARY_PATH
11860 shlibpath_overrides_runpath=no
11861 hardcode_into_libs=yes
11862 dynamic_linker='GNU ld.so'
11863 ;;
11864
11865 freebsd*)
11866 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11867 version_type=freebsd-$objformat
11868 case $version_type in
11869 freebsd-elf*)
11870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11871 need_version=no
11872 need_lib_prefix=no
11873 ;;
11874 freebsd-*)
11875 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11876 need_version=yes
11877 ;;
11878 esac
11879 shlibpath_var=LD_LIBRARY_PATH
11880 case $host_os in
11881 freebsd2*)
11882 shlibpath_overrides_runpath=yes
11883 ;;
11884 freebsd3.01* | freebsdelf3.01*)
11885 shlibpath_overrides_runpath=yes
11886 hardcode_into_libs=yes
11887 ;;
11888 *) # from 3.2 on
11889 shlibpath_overrides_runpath=no
11890 hardcode_into_libs=yes
11891 ;;
11892 esac
11893 ;;
11894
11895 gnu*)
11896 version_type=linux
11897 need_lib_prefix=no
11898 need_version=no
11899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11900 soname_spec='${libname}${release}${shared_ext}$major'
11901 shlibpath_var=LD_LIBRARY_PATH
11902 hardcode_into_libs=yes
11903 ;;
11904
11905 hpux9* | hpux10* | hpux11*)
11906 # Give a soname corresponding to the major version so that dld.sl refuses to
11907 # link against other versions.
11908 version_type=sunos
11909 need_lib_prefix=no
11910 need_version=no
11911 case "$host_cpu" in
11912 ia64*)
11913 shrext_cmds='.so'
11914 hardcode_into_libs=yes
11915 dynamic_linker="$host_os dld.so"
11916 shlibpath_var=LD_LIBRARY_PATH
11917 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11919 soname_spec='${libname}${release}${shared_ext}$major'
11920 if test "X$HPUX_IA64_MODE" = X32; then
11921 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11922 else
11923 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11924 fi
11925 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11926 ;;
11927 hppa*64*)
11928 shrext_cmds='.sl'
11929 hardcode_into_libs=yes
11930 dynamic_linker="$host_os dld.sl"
11931 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11932 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11934 soname_spec='${libname}${release}${shared_ext}$major'
11935 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11936 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11937 ;;
11938 *)
11939 shrext_cmds='.sl'
11940 dynamic_linker="$host_os dld.sl"
11941 shlibpath_var=SHLIB_PATH
11942 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11944 soname_spec='${libname}${release}${shared_ext}$major'
11945 ;;
11946 esac
11947 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11948 postinstall_cmds='chmod 555 $lib'
11949 ;;
11950
11951 irix5* | irix6* | nonstopux*)
11952 case $host_os in
11953 nonstopux*) version_type=nonstopux ;;
11954 *)
11955 if test "$lt_cv_prog_gnu_ld" = yes; then
11956 version_type=linux
11957 else
11958 version_type=irix
11959 fi ;;
11960 esac
11961 need_lib_prefix=no
11962 need_version=no
11963 soname_spec='${libname}${release}${shared_ext}$major'
11964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11965 case $host_os in
11966 irix5* | nonstopux*)
11967 libsuff= shlibsuff=
11968 ;;
11969 *)
11970 case $LD in # libtool.m4 will add one of these switches to LD
11971 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11972 libsuff= shlibsuff= libmagic=32-bit;;
11973 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11974 libsuff=32 shlibsuff=N32 libmagic=N32;;
11975 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11976 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11977 *) libsuff= shlibsuff= libmagic=never-match;;
11978 esac
11979 ;;
11980 esac
11981 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11982 shlibpath_overrides_runpath=no
11983 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11984 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11985 hardcode_into_libs=yes
11986 ;;
11987
11988 # No shared lib support for Linux oldld, aout, or coff.
11989 linux*oldld* | linux*aout* | linux*coff*)
11990 dynamic_linker=no
11991 ;;
11992
11993 # This must be Linux ELF.
11994 linux*)
11995 version_type=linux
11996 need_lib_prefix=no
11997 need_version=no
11998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11999 soname_spec='${libname}${release}${shared_ext}$major'
12000 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12001 shlibpath_var=LD_LIBRARY_PATH
12002 shlibpath_overrides_runpath=no
12003 # This implies no fast_install, which is unacceptable.
12004 # Some rework will be needed to allow for fast_install
12005 # before this can be enabled.
12006 hardcode_into_libs=yes
12007
12008 # Append ld.so.conf contents to the search path
12009 if test -f /etc/ld.so.conf; then
12010 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
12011 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12012 fi
12013
12014 # We used to test for /lib/ld.so.1 and disable shared libraries on
12015 # powerpc, because MkLinux only supported shared libraries with the
12016 # GNU dynamic linker. Since this was broken with cross compilers,
12017 # most powerpc-linux boxes support dynamic linking these days and
12018 # people can always --disable-shared, the test was removed, and we
12019 # assume the GNU/Linux dynamic linker is in use.
12020 dynamic_linker='GNU/Linux ld.so'
12021 ;;
12022
12023 knetbsd*-gnu)
12024 version_type=linux
12025 need_lib_prefix=no
12026 need_version=no
12027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12028 soname_spec='${libname}${release}${shared_ext}$major'
12029 shlibpath_var=LD_LIBRARY_PATH
12030 shlibpath_overrides_runpath=no
12031 hardcode_into_libs=yes
12032 dynamic_linker='GNU ld.so'
12033 ;;
12034
12035 netbsd*)
12036 version_type=sunos
12037 need_lib_prefix=no
12038 need_version=no
12039 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12041 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12042 dynamic_linker='NetBSD (a.out) ld.so'
12043 else
12044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12045 soname_spec='${libname}${release}${shared_ext}$major'
12046 dynamic_linker='NetBSD ld.elf_so'
12047 fi
12048 shlibpath_var=LD_LIBRARY_PATH
12049 shlibpath_overrides_runpath=yes
12050 hardcode_into_libs=yes
12051 ;;
12052
12053 newsos6)
12054 version_type=linux
12055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12056 shlibpath_var=LD_LIBRARY_PATH
12057 shlibpath_overrides_runpath=yes
12058 ;;
12059
12060 nto-qnx*)
12061 version_type=linux
12062 need_lib_prefix=no
12063 need_version=no
12064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12065 soname_spec='${libname}${release}${shared_ext}$major'
12066 shlibpath_var=LD_LIBRARY_PATH
12067 shlibpath_overrides_runpath=yes
12068 ;;
12069
12070 openbsd*)
12071 version_type=sunos
12072 need_lib_prefix=no
12073 need_version=yes
12074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12075 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12076 shlibpath_var=LD_LIBRARY_PATH
12077 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12078 case $host_os in
12079 openbsd2.[89] | openbsd2.[89].*)
12080 shlibpath_overrides_runpath=no
12081 ;;
12082 *)
12083 shlibpath_overrides_runpath=yes
12084 ;;
12085 esac
12086 else
12087 shlibpath_overrides_runpath=yes
12088 fi
12089 ;;
12090
12091 os2*)
12092 libname_spec='$name'
12093 shrext_cmds=".dll"
12094 need_lib_prefix=no
12095 library_names_spec='$libname${shared_ext} $libname.a'
12096 dynamic_linker='OS/2 ld.exe'
12097 shlibpath_var=LIBPATH
12098 ;;
12099
12100 osf3* | osf4* | osf5*)
12101 version_type=osf
12102 need_lib_prefix=no
12103 need_version=no
12104 soname_spec='${libname}${release}${shared_ext}$major'
12105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12106 shlibpath_var=LD_LIBRARY_PATH
12107 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12108 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12109 ;;
12110
12111 sco3.2v5*)
12112 version_type=osf
12113 soname_spec='${libname}${release}${shared_ext}$major'
12114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12115 shlibpath_var=LD_LIBRARY_PATH
12116 ;;
12117
12118 solaris*)
12119 version_type=linux
12120 need_lib_prefix=no
12121 need_version=no
12122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12123 soname_spec='${libname}${release}${shared_ext}$major'
12124 shlibpath_var=LD_LIBRARY_PATH
12125 shlibpath_overrides_runpath=yes
12126 hardcode_into_libs=yes
12127 # ldd complains unless libraries are executable
12128 postinstall_cmds='chmod +x $lib'
12129 ;;
12130
12131 sunos4*)
12132 version_type=sunos
12133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12134 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12135 shlibpath_var=LD_LIBRARY_PATH
12136 shlibpath_overrides_runpath=yes
12137 if test "$with_gnu_ld" = yes; then
12138 need_lib_prefix=no
12139 fi
12140 need_version=yes
12141 ;;
12142
12143 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12144 version_type=linux
12145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12146 soname_spec='${libname}${release}${shared_ext}$major'
12147 shlibpath_var=LD_LIBRARY_PATH
12148 case $host_vendor in
12149 sni)
12150 shlibpath_overrides_runpath=no
12151 need_lib_prefix=no
12152 export_dynamic_flag_spec='${wl}-Blargedynsym'
12153 runpath_var=LD_RUN_PATH
12154 ;;
12155 siemens)
12156 need_lib_prefix=no
12157 ;;
12158 motorola)
12159 need_lib_prefix=no
12160 need_version=no
12161 shlibpath_overrides_runpath=no
12162 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12163 ;;
12164 esac
12165 ;;
12166
12167 sysv4*MP*)
12168 if test -d /usr/nec ;then
12169 version_type=linux
12170 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12171 soname_spec='$libname${shared_ext}.$major'
12172 shlibpath_var=LD_LIBRARY_PATH
12173 fi
12174 ;;
12175
12176 uts4*)
12177 version_type=linux
12178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12179 soname_spec='${libname}${release}${shared_ext}$major'
12180 shlibpath_var=LD_LIBRARY_PATH
12181 ;;
12182
12183 *)
12184 dynamic_linker=no
12185 ;;
12186 esac
12187 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12188 echo "${ECHO_T}$dynamic_linker" >&6
12189 test "$dynamic_linker" = no && can_build_shared=no
12190
12191 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12192 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12193 hardcode_action_CXX=
12194 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12195 test -n "$runpath_var CXX" || \
12196 test "X$hardcode_automatic_CXX"="Xyes" ; then
12197
12198 # We can hardcode non-existant directories.
12199 if test "$hardcode_direct_CXX" != no &&
12200 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12201 # have to relink, otherwise we might link with an installed library
12202 # when we should be linking with a yet-to-be-installed one
12203 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12204 test "$hardcode_minus_L_CXX" != no; then
12205 # Linking always hardcodes the temporary library directory.
12206 hardcode_action_CXX=relink
12207 else
12208 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12209 hardcode_action_CXX=immediate
12210 fi
12211 else
12212 # We cannot hardcode anything, or else we can only hardcode existing
12213 # directories.
12214 hardcode_action_CXX=unsupported
12215 fi
12216 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12217 echo "${ECHO_T}$hardcode_action_CXX" >&6
12218
12219 if test "$hardcode_action_CXX" = relink; then
12220 # Fast installation is not supported
12221 enable_fast_install=no
12222 elif test "$shlibpath_overrides_runpath" = yes ||
12223 test "$enable_shared" = no; then
12224 # Fast installation is not necessary
12225 enable_fast_install=needless
12226 fi
12227
12228 striplib=
12229 old_striplib=
12230 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12231 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12232 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12233 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12234 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12235 echo "$as_me:$LINENO: result: yes" >&5
12236 echo "${ECHO_T}yes" >&6
12237 else
12238 # FIXME - insert some real tests, host_os isn't really good enough
12239 case $host_os in
12240 darwin*)
12241 if test -n "$STRIP" ; then
12242 striplib="$STRIP -x"
12243 echo "$as_me:$LINENO: result: yes" >&5
12244 echo "${ECHO_T}yes" >&6
12245 else
12246 echo "$as_me:$LINENO: result: no" >&5
12247 echo "${ECHO_T}no" >&6
12248 fi
12249 ;;
12250 *)
12251 echo "$as_me:$LINENO: result: no" >&5
12252 echo "${ECHO_T}no" >&6
12253 ;;
12254 esac
12255 fi
12256
12257 if test "x$enable_dlopen" != xyes; then
12258 enable_dlopen=unknown
12259 enable_dlopen_self=unknown
12260 enable_dlopen_self_static=unknown
12261 else
12262 lt_cv_dlopen=no
12263 lt_cv_dlopen_libs=
12264
12265 case $host_os in
12266 beos*)
12267 lt_cv_dlopen="load_add_on"
12268 lt_cv_dlopen_libs=
12269 lt_cv_dlopen_self=yes
12270 ;;
12271
12272 mingw* | pw32*)
12273 lt_cv_dlopen="LoadLibrary"
12274 lt_cv_dlopen_libs=
12275 ;;
12276
12277 cygwin*)
12278 lt_cv_dlopen="dlopen"
12279 lt_cv_dlopen_libs=
12280 ;;
12281
12282 darwin*)
12283 # if libdl is installed we need to link against it
12284 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12285 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12286 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12287 echo $ECHO_N "(cached) $ECHO_C" >&6
12288 else
12289 ac_check_lib_save_LIBS=$LIBS
12290 LIBS="-ldl $LIBS"
12291 cat >conftest.$ac_ext <<_ACEOF
12292 /* confdefs.h. */
12293 _ACEOF
12294 cat confdefs.h >>conftest.$ac_ext
12295 cat >>conftest.$ac_ext <<_ACEOF
12296 /* end confdefs.h. */
12297
12298 /* Override any gcc2 internal prototype to avoid an error. */
12299 #ifdef __cplusplus
12300 extern "C"
12301 #endif
12302 /* We use char because int might match the return type of a gcc2
12303 builtin and then its argument prototype would still apply. */
12304 char dlopen ();
12305 int
12306 main ()
12307 {
12308 dlopen ();
12309 ;
12310 return 0;
12311 }
12312 _ACEOF
12313 rm -f conftest.$ac_objext conftest$ac_exeext
12314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12315 (eval $ac_link) 2>conftest.er1
12316 ac_status=$?
12317 grep -v '^ *+' conftest.er1 >conftest.err
12318 rm -f conftest.er1
12319 cat conftest.err >&5
12320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12321 (exit $ac_status); } &&
12322 { ac_try='test -z "$ac_cxx_werror_flag"
12323 || test ! -s conftest.err'
12324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12325 (eval $ac_try) 2>&5
12326 ac_status=$?
12327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12328 (exit $ac_status); }; } &&
12329 { ac_try='test -s conftest$ac_exeext'
12330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12331 (eval $ac_try) 2>&5
12332 ac_status=$?
12333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12334 (exit $ac_status); }; }; then
12335 ac_cv_lib_dl_dlopen=yes
12336 else
12337 echo "$as_me: failed program was:" >&5
12338 sed 's/^/| /' conftest.$ac_ext >&5
12339
12340 ac_cv_lib_dl_dlopen=no
12341 fi
12342 rm -f conftest.err conftest.$ac_objext \
12343 conftest$ac_exeext conftest.$ac_ext
12344 LIBS=$ac_check_lib_save_LIBS
12345 fi
12346 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12347 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12348 if test $ac_cv_lib_dl_dlopen = yes; then
12349 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12350 else
12351
12352 lt_cv_dlopen="dyld"
12353 lt_cv_dlopen_libs=
12354 lt_cv_dlopen_self=yes
12355
12356 fi
12357
12358 ;;
12359
12360 *)
12361 echo "$as_me:$LINENO: checking for shl_load" >&5
12362 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12363 if test "${ac_cv_func_shl_load+set}" = set; then
12364 echo $ECHO_N "(cached) $ECHO_C" >&6
12365 else
12366 cat >conftest.$ac_ext <<_ACEOF
12367 /* confdefs.h. */
12368 _ACEOF
12369 cat confdefs.h >>conftest.$ac_ext
12370 cat >>conftest.$ac_ext <<_ACEOF
12371 /* end confdefs.h. */
12372 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12373 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12374 #define shl_load innocuous_shl_load
12375
12376 /* System header to define __stub macros and hopefully few prototypes,
12377 which can conflict with char shl_load (); below.
12378 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12379 <limits.h> exists even on freestanding compilers. */
12380
12381 #ifdef __STDC__
12382 # include <limits.h>
12383 #else
12384 # include <assert.h>
12385 #endif
12386
12387 #undef shl_load
12388
12389 /* Override any gcc2 internal prototype to avoid an error. */
12390 #ifdef __cplusplus
12391 extern "C"
12392 {
12393 #endif
12394 /* We use char because int might match the return type of a gcc2
12395 builtin and then its argument prototype would still apply. */
12396 char shl_load ();
12397 /* The GNU C library defines this for functions which it implements
12398 to always fail with ENOSYS. Some functions are actually named
12399 something starting with __ and the normal name is an alias. */
12400 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12401 choke me
12402 #else
12403 char (*f) () = shl_load;
12404 #endif
12405 #ifdef __cplusplus
12406 }
12407 #endif
12408
12409 int
12410 main ()
12411 {
12412 return f != shl_load;
12413 ;
12414 return 0;
12415 }
12416 _ACEOF
12417 rm -f conftest.$ac_objext conftest$ac_exeext
12418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12419 (eval $ac_link) 2>conftest.er1
12420 ac_status=$?
12421 grep -v '^ *+' conftest.er1 >conftest.err
12422 rm -f conftest.er1
12423 cat conftest.err >&5
12424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425 (exit $ac_status); } &&
12426 { ac_try='test -z "$ac_cxx_werror_flag"
12427 || test ! -s conftest.err'
12428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12429 (eval $ac_try) 2>&5
12430 ac_status=$?
12431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432 (exit $ac_status); }; } &&
12433 { ac_try='test -s conftest$ac_exeext'
12434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12435 (eval $ac_try) 2>&5
12436 ac_status=$?
12437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438 (exit $ac_status); }; }; then
12439 ac_cv_func_shl_load=yes
12440 else
12441 echo "$as_me: failed program was:" >&5
12442 sed 's/^/| /' conftest.$ac_ext >&5
12443
12444 ac_cv_func_shl_load=no
12445 fi
12446 rm -f conftest.err conftest.$ac_objext \
12447 conftest$ac_exeext conftest.$ac_ext
12448 fi
12449 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12450 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12451 if test $ac_cv_func_shl_load = yes; then
12452 lt_cv_dlopen="shl_load"
12453 else
12454 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12455 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12456 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12457 echo $ECHO_N "(cached) $ECHO_C" >&6
12458 else
12459 ac_check_lib_save_LIBS=$LIBS
12460 LIBS="-ldld $LIBS"
12461 cat >conftest.$ac_ext <<_ACEOF
12462 /* confdefs.h. */
12463 _ACEOF
12464 cat confdefs.h >>conftest.$ac_ext
12465 cat >>conftest.$ac_ext <<_ACEOF
12466 /* end confdefs.h. */
12467
12468 /* Override any gcc2 internal prototype to avoid an error. */
12469 #ifdef __cplusplus
12470 extern "C"
12471 #endif
12472 /* We use char because int might match the return type of a gcc2
12473 builtin and then its argument prototype would still apply. */
12474 char shl_load ();
12475 int
12476 main ()
12477 {
12478 shl_load ();
12479 ;
12480 return 0;
12481 }
12482 _ACEOF
12483 rm -f conftest.$ac_objext conftest$ac_exeext
12484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12485 (eval $ac_link) 2>conftest.er1
12486 ac_status=$?
12487 grep -v '^ *+' conftest.er1 >conftest.err
12488 rm -f conftest.er1
12489 cat conftest.err >&5
12490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12491 (exit $ac_status); } &&
12492 { ac_try='test -z "$ac_cxx_werror_flag"
12493 || test ! -s conftest.err'
12494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12495 (eval $ac_try) 2>&5
12496 ac_status=$?
12497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12498 (exit $ac_status); }; } &&
12499 { ac_try='test -s conftest$ac_exeext'
12500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12501 (eval $ac_try) 2>&5
12502 ac_status=$?
12503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12504 (exit $ac_status); }; }; then
12505 ac_cv_lib_dld_shl_load=yes
12506 else
12507 echo "$as_me: failed program was:" >&5
12508 sed 's/^/| /' conftest.$ac_ext >&5
12509
12510 ac_cv_lib_dld_shl_load=no
12511 fi
12512 rm -f conftest.err conftest.$ac_objext \
12513 conftest$ac_exeext conftest.$ac_ext
12514 LIBS=$ac_check_lib_save_LIBS
12515 fi
12516 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12517 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12518 if test $ac_cv_lib_dld_shl_load = yes; then
12519 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12520 else
12521 echo "$as_me:$LINENO: checking for dlopen" >&5
12522 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12523 if test "${ac_cv_func_dlopen+set}" = set; then
12524 echo $ECHO_N "(cached) $ECHO_C" >&6
12525 else
12526 cat >conftest.$ac_ext <<_ACEOF
12527 /* confdefs.h. */
12528 _ACEOF
12529 cat confdefs.h >>conftest.$ac_ext
12530 cat >>conftest.$ac_ext <<_ACEOF
12531 /* end confdefs.h. */
12532 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12533 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12534 #define dlopen innocuous_dlopen
12535
12536 /* System header to define __stub macros and hopefully few prototypes,
12537 which can conflict with char dlopen (); below.
12538 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12539 <limits.h> exists even on freestanding compilers. */
12540
12541 #ifdef __STDC__
12542 # include <limits.h>
12543 #else
12544 # include <assert.h>
12545 #endif
12546
12547 #undef dlopen
12548
12549 /* Override any gcc2 internal prototype to avoid an error. */
12550 #ifdef __cplusplus
12551 extern "C"
12552 {
12553 #endif
12554 /* We use char because int might match the return type of a gcc2
12555 builtin and then its argument prototype would still apply. */
12556 char dlopen ();
12557 /* The GNU C library defines this for functions which it implements
12558 to always fail with ENOSYS. Some functions are actually named
12559 something starting with __ and the normal name is an alias. */
12560 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12561 choke me
12562 #else
12563 char (*f) () = dlopen;
12564 #endif
12565 #ifdef __cplusplus
12566 }
12567 #endif
12568
12569 int
12570 main ()
12571 {
12572 return f != dlopen;
12573 ;
12574 return 0;
12575 }
12576 _ACEOF
12577 rm -f conftest.$ac_objext conftest$ac_exeext
12578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12579 (eval $ac_link) 2>conftest.er1
12580 ac_status=$?
12581 grep -v '^ *+' conftest.er1 >conftest.err
12582 rm -f conftest.er1
12583 cat conftest.err >&5
12584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12585 (exit $ac_status); } &&
12586 { ac_try='test -z "$ac_cxx_werror_flag"
12587 || test ! -s conftest.err'
12588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12589 (eval $ac_try) 2>&5
12590 ac_status=$?
12591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592 (exit $ac_status); }; } &&
12593 { ac_try='test -s conftest$ac_exeext'
12594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12595 (eval $ac_try) 2>&5
12596 ac_status=$?
12597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598 (exit $ac_status); }; }; then
12599 ac_cv_func_dlopen=yes
12600 else
12601 echo "$as_me: failed program was:" >&5
12602 sed 's/^/| /' conftest.$ac_ext >&5
12603
12604 ac_cv_func_dlopen=no
12605 fi
12606 rm -f conftest.err conftest.$ac_objext \
12607 conftest$ac_exeext conftest.$ac_ext
12608 fi
12609 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12610 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12611 if test $ac_cv_func_dlopen = yes; then
12612 lt_cv_dlopen="dlopen"
12613 else
12614 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12615 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12616 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12617 echo $ECHO_N "(cached) $ECHO_C" >&6
12618 else
12619 ac_check_lib_save_LIBS=$LIBS
12620 LIBS="-ldl $LIBS"
12621 cat >conftest.$ac_ext <<_ACEOF
12622 /* confdefs.h. */
12623 _ACEOF
12624 cat confdefs.h >>conftest.$ac_ext
12625 cat >>conftest.$ac_ext <<_ACEOF
12626 /* end confdefs.h. */
12627
12628 /* Override any gcc2 internal prototype to avoid an error. */
12629 #ifdef __cplusplus
12630 extern "C"
12631 #endif
12632 /* We use char because int might match the return type of a gcc2
12633 builtin and then its argument prototype would still apply. */
12634 char dlopen ();
12635 int
12636 main ()
12637 {
12638 dlopen ();
12639 ;
12640 return 0;
12641 }
12642 _ACEOF
12643 rm -f conftest.$ac_objext conftest$ac_exeext
12644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12645 (eval $ac_link) 2>conftest.er1
12646 ac_status=$?
12647 grep -v '^ *+' conftest.er1 >conftest.err
12648 rm -f conftest.er1
12649 cat conftest.err >&5
12650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651 (exit $ac_status); } &&
12652 { ac_try='test -z "$ac_cxx_werror_flag"
12653 || test ! -s conftest.err'
12654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12655 (eval $ac_try) 2>&5
12656 ac_status=$?
12657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658 (exit $ac_status); }; } &&
12659 { ac_try='test -s conftest$ac_exeext'
12660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12661 (eval $ac_try) 2>&5
12662 ac_status=$?
12663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12664 (exit $ac_status); }; }; then
12665 ac_cv_lib_dl_dlopen=yes
12666 else
12667 echo "$as_me: failed program was:" >&5
12668 sed 's/^/| /' conftest.$ac_ext >&5
12669
12670 ac_cv_lib_dl_dlopen=no
12671 fi
12672 rm -f conftest.err conftest.$ac_objext \
12673 conftest$ac_exeext conftest.$ac_ext
12674 LIBS=$ac_check_lib_save_LIBS
12675 fi
12676 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12677 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12678 if test $ac_cv_lib_dl_dlopen = yes; then
12679 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12680 else
12681 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12682 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12683 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12684 echo $ECHO_N "(cached) $ECHO_C" >&6
12685 else
12686 ac_check_lib_save_LIBS=$LIBS
12687 LIBS="-lsvld $LIBS"
12688 cat >conftest.$ac_ext <<_ACEOF
12689 /* confdefs.h. */
12690 _ACEOF
12691 cat confdefs.h >>conftest.$ac_ext
12692 cat >>conftest.$ac_ext <<_ACEOF
12693 /* end confdefs.h. */
12694
12695 /* Override any gcc2 internal prototype to avoid an error. */
12696 #ifdef __cplusplus
12697 extern "C"
12698 #endif
12699 /* We use char because int might match the return type of a gcc2
12700 builtin and then its argument prototype would still apply. */
12701 char dlopen ();
12702 int
12703 main ()
12704 {
12705 dlopen ();
12706 ;
12707 return 0;
12708 }
12709 _ACEOF
12710 rm -f conftest.$ac_objext conftest$ac_exeext
12711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12712 (eval $ac_link) 2>conftest.er1
12713 ac_status=$?
12714 grep -v '^ *+' conftest.er1 >conftest.err
12715 rm -f conftest.er1
12716 cat conftest.err >&5
12717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718 (exit $ac_status); } &&
12719 { ac_try='test -z "$ac_cxx_werror_flag"
12720 || test ! -s conftest.err'
12721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12722 (eval $ac_try) 2>&5
12723 ac_status=$?
12724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12725 (exit $ac_status); }; } &&
12726 { ac_try='test -s conftest$ac_exeext'
12727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12728 (eval $ac_try) 2>&5
12729 ac_status=$?
12730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12731 (exit $ac_status); }; }; then
12732 ac_cv_lib_svld_dlopen=yes
12733 else
12734 echo "$as_me: failed program was:" >&5
12735 sed 's/^/| /' conftest.$ac_ext >&5
12736
12737 ac_cv_lib_svld_dlopen=no
12738 fi
12739 rm -f conftest.err conftest.$ac_objext \
12740 conftest$ac_exeext conftest.$ac_ext
12741 LIBS=$ac_check_lib_save_LIBS
12742 fi
12743 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12744 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12745 if test $ac_cv_lib_svld_dlopen = yes; then
12746 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12747 else
12748 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12749 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12750 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12751 echo $ECHO_N "(cached) $ECHO_C" >&6
12752 else
12753 ac_check_lib_save_LIBS=$LIBS
12754 LIBS="-ldld $LIBS"
12755 cat >conftest.$ac_ext <<_ACEOF
12756 /* confdefs.h. */
12757 _ACEOF
12758 cat confdefs.h >>conftest.$ac_ext
12759 cat >>conftest.$ac_ext <<_ACEOF
12760 /* end confdefs.h. */
12761
12762 /* Override any gcc2 internal prototype to avoid an error. */
12763 #ifdef __cplusplus
12764 extern "C"
12765 #endif
12766 /* We use char because int might match the return type of a gcc2
12767 builtin and then its argument prototype would still apply. */
12768 char dld_link ();
12769 int
12770 main ()
12771 {
12772 dld_link ();
12773 ;
12774 return 0;
12775 }
12776 _ACEOF
12777 rm -f conftest.$ac_objext conftest$ac_exeext
12778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12779 (eval $ac_link) 2>conftest.er1
12780 ac_status=$?
12781 grep -v '^ *+' conftest.er1 >conftest.err
12782 rm -f conftest.er1
12783 cat conftest.err >&5
12784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785 (exit $ac_status); } &&
12786 { ac_try='test -z "$ac_cxx_werror_flag"
12787 || test ! -s conftest.err'
12788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12789 (eval $ac_try) 2>&5
12790 ac_status=$?
12791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792 (exit $ac_status); }; } &&
12793 { ac_try='test -s conftest$ac_exeext'
12794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12795 (eval $ac_try) 2>&5
12796 ac_status=$?
12797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798 (exit $ac_status); }; }; then
12799 ac_cv_lib_dld_dld_link=yes
12800 else
12801 echo "$as_me: failed program was:" >&5
12802 sed 's/^/| /' conftest.$ac_ext >&5
12803
12804 ac_cv_lib_dld_dld_link=no
12805 fi
12806 rm -f conftest.err conftest.$ac_objext \
12807 conftest$ac_exeext conftest.$ac_ext
12808 LIBS=$ac_check_lib_save_LIBS
12809 fi
12810 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12811 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12812 if test $ac_cv_lib_dld_dld_link = yes; then
12813 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12814 fi
12815
12816
12817 fi
12818
12819
12820 fi
12821
12822
12823 fi
12824
12825
12826 fi
12827
12828
12829 fi
12830
12831 ;;
12832 esac
12833
12834 if test "x$lt_cv_dlopen" != xno; then
12835 enable_dlopen=yes
12836 else
12837 enable_dlopen=no
12838 fi
12839
12840 case $lt_cv_dlopen in
12841 dlopen)
12842 save_CPPFLAGS="$CPPFLAGS"
12843 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12844
12845 save_LDFLAGS="$LDFLAGS"
12846 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12847
12848 save_LIBS="$LIBS"
12849 LIBS="$lt_cv_dlopen_libs $LIBS"
12850
12851 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12852 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12853 if test "${lt_cv_dlopen_self+set}" = set; then
12854 echo $ECHO_N "(cached) $ECHO_C" >&6
12855 else
12856 if test "$cross_compiling" = yes; then :
12857 lt_cv_dlopen_self=cross
12858 else
12859 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12860 lt_status=$lt_dlunknown
12861 cat > conftest.$ac_ext <<EOF
12862 #line 12862 "configure"
12863 #include "confdefs.h"
12864
12865 #if HAVE_DLFCN_H
12866 #include <dlfcn.h>
12867 #endif
12868
12869 #include <stdio.h>
12870
12871 #ifdef RTLD_GLOBAL
12872 # define LT_DLGLOBAL RTLD_GLOBAL
12873 #else
12874 # ifdef DL_GLOBAL
12875 # define LT_DLGLOBAL DL_GLOBAL
12876 # else
12877 # define LT_DLGLOBAL 0
12878 # endif
12879 #endif
12880
12881 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12882 find out it does not work in some platform. */
12883 #ifndef LT_DLLAZY_OR_NOW
12884 # ifdef RTLD_LAZY
12885 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12886 # else
12887 # ifdef DL_LAZY
12888 # define LT_DLLAZY_OR_NOW DL_LAZY
12889 # else
12890 # ifdef RTLD_NOW
12891 # define LT_DLLAZY_OR_NOW RTLD_NOW
12892 # else
12893 # ifdef DL_NOW
12894 # define LT_DLLAZY_OR_NOW DL_NOW
12895 # else
12896 # define LT_DLLAZY_OR_NOW 0
12897 # endif
12898 # endif
12899 # endif
12900 # endif
12901 #endif
12902
12903 #ifdef __cplusplus
12904 extern "C" void exit (int);
12905 #endif
12906
12907 void fnord() { int i=42;}
12908 int main ()
12909 {
12910 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12911 int status = $lt_dlunknown;
12912
12913 if (self)
12914 {
12915 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12916 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12917 /* dlclose (self); */
12918 }
12919
12920 exit (status);
12921 }
12922 EOF
12923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12924 (eval $ac_link) 2>&5
12925 ac_status=$?
12926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12927 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12928 (./conftest; exit; ) 2>/dev/null
12929 lt_status=$?
12930 case x$lt_status in
12931 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12932 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12933 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12934 esac
12935 else :
12936 # compilation failed
12937 lt_cv_dlopen_self=no
12938 fi
12939 fi
12940 rm -fr conftest*
12941
12942
12943 fi
12944 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12945 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12946
12947 if test "x$lt_cv_dlopen_self" = xyes; then
12948 LDFLAGS="$LDFLAGS $link_static_flag"
12949 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12950 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12951 if test "${lt_cv_dlopen_self_static+set}" = set; then
12952 echo $ECHO_N "(cached) $ECHO_C" >&6
12953 else
12954 if test "$cross_compiling" = yes; then :
12955 lt_cv_dlopen_self_static=cross
12956 else
12957 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12958 lt_status=$lt_dlunknown
12959 cat > conftest.$ac_ext <<EOF
12960 #line 12960 "configure"
12961 #include "confdefs.h"
12962
12963 #if HAVE_DLFCN_H
12964 #include <dlfcn.h>
12965 #endif
12966
12967 #include <stdio.h>
12968
12969 #ifdef RTLD_GLOBAL
12970 # define LT_DLGLOBAL RTLD_GLOBAL
12971 #else
12972 # ifdef DL_GLOBAL
12973 # define LT_DLGLOBAL DL_GLOBAL
12974 # else
12975 # define LT_DLGLOBAL 0
12976 # endif
12977 #endif
12978
12979 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12980 find out it does not work in some platform. */
12981 #ifndef LT_DLLAZY_OR_NOW
12982 # ifdef RTLD_LAZY
12983 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12984 # else
12985 # ifdef DL_LAZY
12986 # define LT_DLLAZY_OR_NOW DL_LAZY
12987 # else
12988 # ifdef RTLD_NOW
12989 # define LT_DLLAZY_OR_NOW RTLD_NOW
12990 # else
12991 # ifdef DL_NOW
12992 # define LT_DLLAZY_OR_NOW DL_NOW
12993 # else
12994 # define LT_DLLAZY_OR_NOW 0
12995 # endif
12996 # endif
12997 # endif
12998 # endif
12999 #endif
13000
13001 #ifdef __cplusplus
13002 extern "C" void exit (int);
13003 #endif
13004
13005 void fnord() { int i=42;}
13006 int main ()
13007 {
13008 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13009 int status = $lt_dlunknown;
13010
13011 if (self)
13012 {
13013 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13014 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13015 /* dlclose (self); */
13016 }
13017
13018 exit (status);
13019 }
13020 EOF
13021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13022 (eval $ac_link) 2>&5
13023 ac_status=$?
13024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13026 (./conftest; exit; ) 2>/dev/null
13027 lt_status=$?
13028 case x$lt_status in
13029 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13030 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13031 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13032 esac
13033 else :
13034 # compilation failed
13035 lt_cv_dlopen_self_static=no
13036 fi
13037 fi
13038 rm -fr conftest*
13039
13040
13041 fi
13042 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13043 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13044 fi
13045
13046 CPPFLAGS="$save_CPPFLAGS"
13047 LDFLAGS="$save_LDFLAGS"
13048 LIBS="$save_LIBS"
13049 ;;
13050 esac
13051
13052 case $lt_cv_dlopen_self in
13053 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13054 *) enable_dlopen_self=unknown ;;
13055 esac
13056
13057 case $lt_cv_dlopen_self_static in
13058 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13059 *) enable_dlopen_self_static=unknown ;;
13060 esac
13061 fi
13062
13063
13064 # The else clause should only fire when bootstrapping the
13065 # libtool distribution, otherwise you forgot to ship ltmain.sh
13066 # with your package, and you will get complaints that there are
13067 # no rules to generate ltmain.sh.
13068 if test -f "$ltmain"; then
13069 # See if we are running on zsh, and set the options which allow our commands through
13070 # without removal of \ escapes.
13071 if test -n "${ZSH_VERSION+set}" ; then
13072 setopt NO_GLOB_SUBST
13073 fi
13074 # Now quote all the things that may contain metacharacters while being
13075 # careful not to overquote the AC_SUBSTed values. We take copies of the
13076 # variables and quote the copies for generation of the libtool script.
13077 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13078 SED SHELL STRIP \
13079 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13080 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13081 deplibs_check_method reload_flag reload_cmds need_locks \
13082 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13083 lt_cv_sys_global_symbol_to_c_name_address \
13084 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13085 old_postinstall_cmds old_postuninstall_cmds \
13086 compiler_CXX \
13087 CC_CXX \
13088 LD_CXX \
13089 lt_prog_compiler_wl_CXX \
13090 lt_prog_compiler_pic_CXX \
13091 lt_prog_compiler_static_CXX \
13092 lt_prog_compiler_no_builtin_flag_CXX \
13093 export_dynamic_flag_spec_CXX \
13094 thread_safe_flag_spec_CXX \
13095 whole_archive_flag_spec_CXX \
13096 enable_shared_with_static_runtimes_CXX \
13097 old_archive_cmds_CXX \
13098 old_archive_from_new_cmds_CXX \
13099 predep_objects_CXX \
13100 postdep_objects_CXX \
13101 predeps_CXX \
13102 postdeps_CXX \
13103 compiler_lib_search_path_CXX \
13104 archive_cmds_CXX \
13105 archive_expsym_cmds_CXX \
13106 postinstall_cmds_CXX \
13107 postuninstall_cmds_CXX \
13108 old_archive_from_expsyms_cmds_CXX \
13109 allow_undefined_flag_CXX \
13110 no_undefined_flag_CXX \
13111 export_symbols_cmds_CXX \
13112 hardcode_libdir_flag_spec_CXX \
13113 hardcode_libdir_flag_spec_ld_CXX \
13114 hardcode_libdir_separator_CXX \
13115 hardcode_automatic_CXX \
13116 module_cmds_CXX \
13117 module_expsym_cmds_CXX \
13118 lt_cv_prog_compiler_c_o_CXX \
13119 exclude_expsyms_CXX \
13120 include_expsyms_CXX; do
13121
13122 case $var in
13123 old_archive_cmds_CXX | \
13124 old_archive_from_new_cmds_CXX | \
13125 archive_cmds_CXX | \
13126 archive_expsym_cmds_CXX | \
13127 module_cmds_CXX | \
13128 module_expsym_cmds_CXX | \
13129 old_archive_from_expsyms_cmds_CXX | \
13130 export_symbols_cmds_CXX | \
13131 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13132 postinstall_cmds | postuninstall_cmds | \
13133 old_postinstall_cmds | old_postuninstall_cmds | \
13134 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13135 # Double-quote double-evaled strings.
13136 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13137 ;;
13138 *)
13139 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13140 ;;
13141 esac
13142 done
13143
13144 case $lt_echo in
13145 *'\$0 --fallback-echo"')
13146 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13147 ;;
13148 esac
13149
13150 cfgfile="$ofile"
13151
13152 cat <<__EOF__ >> "$cfgfile"
13153 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13154
13155 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13156
13157 # Shell to use when invoking shell scripts.
13158 SHELL=$lt_SHELL
13159
13160 # Whether or not to build shared libraries.
13161 build_libtool_libs=$enable_shared
13162
13163 # Whether or not to build static libraries.
13164 build_old_libs=$enable_static
13165
13166 # Whether or not to add -lc for building shared libraries.
13167 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13168
13169 # Whether or not to disallow shared libs when runtime libs are static
13170 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13171
13172 # Whether or not to optimize for fast installation.
13173 fast_install=$enable_fast_install
13174
13175 # The host system.
13176 host_alias=$host_alias
13177 host=$host
13178
13179 # An echo program that does not interpret backslashes.
13180 echo=$lt_echo
13181
13182 # The archiver.
13183 AR=$lt_AR
13184 AR_FLAGS=$lt_AR_FLAGS
13185
13186 # A C compiler.
13187 LTCC=$lt_LTCC
13188
13189 # A language-specific compiler.
13190 CC=$lt_compiler_CXX
13191
13192 # Is the compiler the GNU C compiler?
13193 with_gcc=$GCC_CXX
13194
13195 # An ERE matcher.
13196 EGREP=$lt_EGREP
13197
13198 # The linker used to build libraries.
13199 LD=$lt_LD_CXX
13200
13201 # Whether we need hard or soft links.
13202 LN_S=$lt_LN_S
13203
13204 # A BSD-compatible nm program.
13205 NM=$lt_NM
13206
13207 # A symbol stripping program
13208 STRIP=$lt_STRIP
13209
13210 # Used to examine libraries when file_magic_cmd begins "file"
13211 MAGIC_CMD=$MAGIC_CMD
13212
13213 # Used on cygwin: DLL creation program.
13214 DLLTOOL="$DLLTOOL"
13215
13216 # Used on cygwin: object dumper.
13217 OBJDUMP="$OBJDUMP"
13218
13219 # Used on cygwin: assembler.
13220 AS="$AS"
13221
13222 # The name of the directory that contains temporary libtool files.
13223 objdir=$objdir
13224
13225 # How to create reloadable object files.
13226 reload_flag=$lt_reload_flag
13227 reload_cmds=$lt_reload_cmds
13228
13229 # How to pass a linker flag through the compiler.
13230 wl=$lt_lt_prog_compiler_wl_CXX
13231
13232 # Object file suffix (normally "o").
13233 objext="$ac_objext"
13234
13235 # Old archive suffix (normally "a").
13236 libext="$libext"
13237
13238 # Shared library suffix (normally ".so").
13239 shrext_cmds='$shrext_cmds'
13240
13241 # Executable file suffix (normally "").
13242 exeext="$exeext"
13243
13244 # Additional compiler flags for building library objects.
13245 pic_flag=$lt_lt_prog_compiler_pic_CXX
13246 pic_mode=$pic_mode
13247
13248 # What is the maximum length of a command?
13249 max_cmd_len=$lt_cv_sys_max_cmd_len
13250
13251 # Does compiler simultaneously support -c and -o options?
13252 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13253
13254 # Must we lock files when doing compilation ?
13255 need_locks=$lt_need_locks
13256
13257 # Do we need the lib prefix for modules?
13258 need_lib_prefix=$need_lib_prefix
13259
13260 # Do we need a version for libraries?
13261 need_version=$need_version
13262
13263 # Whether dlopen is supported.
13264 dlopen_support=$enable_dlopen
13265
13266 # Whether dlopen of programs is supported.
13267 dlopen_self=$enable_dlopen_self
13268
13269 # Whether dlopen of statically linked programs is supported.
13270 dlopen_self_static=$enable_dlopen_self_static
13271
13272 # Compiler flag to prevent dynamic linking.
13273 link_static_flag=$lt_lt_prog_compiler_static_CXX
13274
13275 # Compiler flag to turn off builtin functions.
13276 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13277
13278 # Compiler flag to allow reflexive dlopens.
13279 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13280
13281 # Compiler flag to generate shared objects directly from archives.
13282 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13283
13284 # Compiler flag to generate thread-safe objects.
13285 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13286
13287 # Library versioning type.
13288 version_type=$version_type
13289
13290 # Format of library name prefix.
13291 libname_spec=$lt_libname_spec
13292
13293 # List of archive names. First name is the real one, the rest are links.
13294 # The last name is the one that the linker finds with -lNAME.
13295 library_names_spec=$lt_library_names_spec
13296
13297 # The coded name of the library, if different from the real name.
13298 soname_spec=$lt_soname_spec
13299
13300 # Commands used to build and install an old-style archive.
13301 RANLIB=$lt_RANLIB
13302 old_archive_cmds=$lt_old_archive_cmds_CXX
13303 old_postinstall_cmds=$lt_old_postinstall_cmds
13304 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13305
13306 # Create an old-style archive from a shared archive.
13307 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13308
13309 # Create a temporary old-style archive to link instead of a shared archive.
13310 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13311
13312 # Commands used to build and install a shared archive.
13313 archive_cmds=$lt_archive_cmds_CXX
13314 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13315 postinstall_cmds=$lt_postinstall_cmds
13316 postuninstall_cmds=$lt_postuninstall_cmds
13317
13318 # Commands used to build a loadable module (assumed same as above if empty)
13319 module_cmds=$lt_module_cmds_CXX
13320 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13321
13322 # Commands to strip libraries.
13323 old_striplib=$lt_old_striplib
13324 striplib=$lt_striplib
13325
13326 # Dependencies to place before the objects being linked to create a
13327 # shared library.
13328 predep_objects=$lt_predep_objects_CXX
13329
13330 # Dependencies to place after the objects being linked to create a
13331 # shared library.
13332 postdep_objects=$lt_postdep_objects_CXX
13333
13334 # Dependencies to place before the objects being linked to create a
13335 # shared library.
13336 predeps=$lt_predeps_CXX
13337
13338 # Dependencies to place after the objects being linked to create a
13339 # shared library.
13340 postdeps=$lt_postdeps_CXX
13341
13342 # The library search path used internally by the compiler when linking
13343 # a shared library.
13344 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13345
13346 # Method to check whether dependent libraries are shared objects.
13347 deplibs_check_method=$lt_deplibs_check_method
13348
13349 # Command to use when deplibs_check_method == file_magic.
13350 file_magic_cmd=$lt_file_magic_cmd
13351
13352 # Flag that allows shared libraries with undefined symbols to be built.
13353 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13354
13355 # Flag that forces no undefined symbols.
13356 no_undefined_flag=$lt_no_undefined_flag_CXX
13357
13358 # Commands used to finish a libtool library installation in a directory.
13359 finish_cmds=$lt_finish_cmds
13360
13361 # Same as above, but a single script fragment to be evaled but not shown.
13362 finish_eval=$lt_finish_eval
13363
13364 # Take the output of nm and produce a listing of raw symbols and C names.
13365 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13366
13367 # Transform the output of nm in a proper C declaration
13368 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13369
13370 # Transform the output of nm in a C name address pair
13371 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13372
13373 # This is the shared library runtime path variable.
13374 runpath_var=$runpath_var
13375
13376 # This is the shared library path variable.
13377 shlibpath_var=$shlibpath_var
13378
13379 # Is shlibpath searched before the hard-coded library search path?
13380 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13381
13382 # How to hardcode a shared library path into an executable.
13383 hardcode_action=$hardcode_action_CXX
13384
13385 # Whether we should hardcode library paths into libraries.
13386 hardcode_into_libs=$hardcode_into_libs
13387
13388 # Flag to hardcode \$libdir into a binary during linking.
13389 # This must work even if \$libdir does not exist.
13390 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13391
13392 # If ld is used when linking, flag to hardcode \$libdir into
13393 # a binary during linking. This must work even if \$libdir does
13394 # not exist.
13395 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13396
13397 # Whether we need a single -rpath flag with a separated argument.
13398 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13399
13400 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13401 # resulting binary.
13402 hardcode_direct=$hardcode_direct_CXX
13403
13404 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13405 # resulting binary.
13406 hardcode_minus_L=$hardcode_minus_L_CXX
13407
13408 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13409 # the resulting binary.
13410 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13411
13412 # Set to yes if building a shared library automatically hardcodes DIR into the library
13413 # and all subsequent libraries and executables linked against it.
13414 hardcode_automatic=$hardcode_automatic_CXX
13415
13416 # Variables whose values should be saved in libtool wrapper scripts and
13417 # restored at relink time.
13418 variables_saved_for_relink="$variables_saved_for_relink"
13419
13420 # Whether libtool must link a program against all its dependency libraries.
13421 link_all_deplibs=$link_all_deplibs_CXX
13422
13423 # Compile-time system search path for libraries
13424 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13425
13426 # Run-time system search path for libraries
13427 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13428
13429 # Fix the shell variable \$srcfile for the compiler.
13430 fix_srcfile_path="$fix_srcfile_path_CXX"
13431
13432 # Set to yes if exported symbols are required.
13433 always_export_symbols=$always_export_symbols_CXX
13434
13435 # The commands to list exported symbols.
13436 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13437
13438 # The commands to extract the exported symbol list from a shared archive.
13439 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13440
13441 # Symbols that should not be listed in the preloaded symbols.
13442 exclude_expsyms=$lt_exclude_expsyms_CXX
13443
13444 # Symbols that must always be exported.
13445 include_expsyms=$lt_include_expsyms_CXX
13446
13447 # ### END LIBTOOL TAG CONFIG: $tagname
13448
13449 __EOF__
13450
13451
13452 else
13453 # If there is no Makefile yet, we rely on a make rule to execute
13454 # `config.status --recheck' to rerun these tests and create the
13455 # libtool script then.
13456 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13457 if test -f "$ltmain_in"; then
13458 test -f Makefile && make "$ltmain"
13459 fi
13460 fi
13461
13462
13463 ac_ext=c
13464 ac_cpp='$CPP $CPPFLAGS'
13465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13468
13469 CC=$lt_save_CC
13470 LDCXX=$LD
13471 LD=$lt_save_LD
13472 GCC=$lt_save_GCC
13473 with_gnu_ldcxx=$with_gnu_ld
13474 with_gnu_ld=$lt_save_with_gnu_ld
13475 lt_cv_path_LDCXX=$lt_cv_path_LD
13476 lt_cv_path_LD=$lt_save_path_LD
13477 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13478 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13479
13480 else
13481 tagname=""
13482 fi
13483 ;;
13484
13485 F77)
13486 if test -n "$F77" && test "X$F77" != "Xno"; then
13487
13488 ac_ext=f
13489 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13490 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13491 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13492
13493
13494 archive_cmds_need_lc_F77=no
13495 allow_undefined_flag_F77=
13496 always_export_symbols_F77=no
13497 archive_expsym_cmds_F77=
13498 export_dynamic_flag_spec_F77=
13499 hardcode_direct_F77=no
13500 hardcode_libdir_flag_spec_F77=
13501 hardcode_libdir_flag_spec_ld_F77=
13502 hardcode_libdir_separator_F77=
13503 hardcode_minus_L_F77=no
13504 hardcode_automatic_F77=no
13505 module_cmds_F77=
13506 module_expsym_cmds_F77=
13507 link_all_deplibs_F77=unknown
13508 old_archive_cmds_F77=$old_archive_cmds
13509 no_undefined_flag_F77=
13510 whole_archive_flag_spec_F77=
13511 enable_shared_with_static_runtimes_F77=no
13512
13513 # Source file extension for f77 test sources.
13514 ac_ext=f
13515
13516 # Object file extension for compiled f77 test sources.
13517 objext=o
13518 objext_F77=$objext
13519
13520 # Code to be used in simple compile tests
13521 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13522
13523 # Code to be used in simple link tests
13524 lt_simple_link_test_code=" program t\n end\n"
13525
13526 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13527
13528 # If no C compiler was specified, use CC.
13529 LTCC=${LTCC-"$CC"}
13530
13531 # Allow CC to be a program name with arguments.
13532 compiler=$CC
13533
13534
13535 # Allow CC to be a program name with arguments.
13536 lt_save_CC="$CC"
13537 CC=${F77-"f77"}
13538 compiler=$CC
13539 compiler_F77=$CC
13540 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13541
13542 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13543 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13544 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13545 echo "${ECHO_T}$can_build_shared" >&6
13546
13547 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13548 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13549 test "$can_build_shared" = "no" && enable_shared=no
13550
13551 # On AIX, shared libraries and static libraries use the same namespace, and
13552 # are all built from PIC.
13553 case "$host_os" in
13554 aix3*)
13555 test "$enable_shared" = yes && enable_static=no
13556 if test -n "$RANLIB"; then
13557 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13558 postinstall_cmds='$RANLIB $lib'
13559 fi
13560 ;;
13561 aix4* | aix5*)
13562 test "$enable_shared" = yes && enable_static=no
13563 ;;
13564 esac
13565 echo "$as_me:$LINENO: result: $enable_shared" >&5
13566 echo "${ECHO_T}$enable_shared" >&6
13567
13568 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13569 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13570 # Make sure either enable_shared or enable_static is yes.
13571 test "$enable_shared" = yes || enable_static=yes
13572 echo "$as_me:$LINENO: result: $enable_static" >&5
13573 echo "${ECHO_T}$enable_static" >&6
13574
13575 test "$ld_shlibs_F77" = no && can_build_shared=no
13576
13577 GCC_F77="$G77"
13578 LD_F77="$LD"
13579
13580 lt_prog_compiler_wl_F77=
13581 lt_prog_compiler_pic_F77=
13582 lt_prog_compiler_static_F77=
13583
13584 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13585 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13586
13587 if test "$GCC" = yes; then
13588 lt_prog_compiler_wl_F77='-Wl,'
13589 lt_prog_compiler_static_F77='-static'
13590
13591 case $host_os in
13592 aix*)
13593 # All AIX code is PIC.
13594 if test "$host_cpu" = ia64; then
13595 # AIX 5 now supports IA64 processor
13596 lt_prog_compiler_static_F77='-Bstatic'
13597 fi
13598 ;;
13599
13600 amigaos*)
13601 # FIXME: we need at least 68020 code to build shared libraries, but
13602 # adding the `-m68020' flag to GCC prevents building anything better,
13603 # like `-m68040'.
13604 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13605 ;;
13606
13607 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13608 # PIC is the default for these OSes.
13609 ;;
13610
13611 mingw* | pw32* | os2*)
13612 # This hack is so that the source file can tell whether it is being
13613 # built for inclusion in a dll (and should export symbols for example).
13614 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13615 ;;
13616
13617 darwin* | rhapsody*)
13618 # PIC is the default on this platform
13619 # Common symbols not allowed in MH_DYLIB files
13620 lt_prog_compiler_pic_F77='-fno-common'
13621 ;;
13622
13623 msdosdjgpp*)
13624 # Just because we use GCC doesn't mean we suddenly get shared libraries
13625 # on systems that don't support them.
13626 lt_prog_compiler_can_build_shared_F77=no
13627 enable_shared=no
13628 ;;
13629
13630 sysv4*MP*)
13631 if test -d /usr/nec; then
13632 lt_prog_compiler_pic_F77=-Kconform_pic
13633 fi
13634 ;;
13635
13636 hpux*)
13637 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13638 # not for PA HP-UX.
13639 case "$host_cpu" in
13640 hppa*64*|ia64*)
13641 # +Z the default
13642 ;;
13643 *)
13644 lt_prog_compiler_pic_F77='-fPIC'
13645 ;;
13646 esac
13647 ;;
13648
13649 *)
13650 lt_prog_compiler_pic_F77='-fPIC'
13651 ;;
13652 esac
13653 else
13654 # PORTME Check for flag to pass linker flags through the system compiler.
13655 case $host_os in
13656 aix*)
13657 lt_prog_compiler_wl_F77='-Wl,'
13658 if test "$host_cpu" = ia64; then
13659 # AIX 5 now supports IA64 processor
13660 lt_prog_compiler_static_F77='-Bstatic'
13661 else
13662 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13663 fi
13664 ;;
13665
13666 mingw* | pw32* | os2*)
13667 # This hack is so that the source file can tell whether it is being
13668 # built for inclusion in a dll (and should export symbols for example).
13669 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13670 ;;
13671
13672 hpux9* | hpux10* | hpux11*)
13673 lt_prog_compiler_wl_F77='-Wl,'
13674 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13675 # not for PA HP-UX.
13676 case "$host_cpu" in
13677 hppa*64*|ia64*)
13678 # +Z the default
13679 ;;
13680 *)
13681 lt_prog_compiler_pic_F77='+Z'
13682 ;;
13683 esac
13684 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13685 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13686 ;;
13687
13688 irix5* | irix6* | nonstopux*)
13689 lt_prog_compiler_wl_F77='-Wl,'
13690 # PIC (with -KPIC) is the default.
13691 lt_prog_compiler_static_F77='-non_shared'
13692 ;;
13693
13694 newsos6)
13695 lt_prog_compiler_pic_F77='-KPIC'
13696 lt_prog_compiler_static_F77='-Bstatic'
13697 ;;
13698
13699 linux*)
13700 case $CC in
13701 icc* | ecc*)
13702 lt_prog_compiler_wl_F77='-Wl,'
13703 lt_prog_compiler_pic_F77='-KPIC'
13704 lt_prog_compiler_static_F77='-static'
13705 ;;
13706 ccc*)
13707 lt_prog_compiler_wl_F77='-Wl,'
13708 # All Alpha code is PIC.
13709 lt_prog_compiler_static_F77='-non_shared'
13710 ;;
13711 esac
13712 ;;
13713
13714 osf3* | osf4* | osf5*)
13715 lt_prog_compiler_wl_F77='-Wl,'
13716 # All OSF/1 code is PIC.
13717 lt_prog_compiler_static_F77='-non_shared'
13718 ;;
13719
13720 sco3.2v5*)
13721 lt_prog_compiler_pic_F77='-Kpic'
13722 lt_prog_compiler_static_F77='-dn'
13723 ;;
13724
13725 solaris*)
13726 lt_prog_compiler_wl_F77='-Wl,'
13727 lt_prog_compiler_pic_F77='-KPIC'
13728 lt_prog_compiler_static_F77='-Bstatic'
13729 ;;
13730
13731 sunos4*)
13732 lt_prog_compiler_wl_F77='-Qoption ld '
13733 lt_prog_compiler_pic_F77='-PIC'
13734 lt_prog_compiler_static_F77='-Bstatic'
13735 ;;
13736
13737 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13738 lt_prog_compiler_wl_F77='-Wl,'
13739 lt_prog_compiler_pic_F77='-KPIC'
13740 lt_prog_compiler_static_F77='-Bstatic'
13741 ;;
13742
13743 sysv4*MP*)
13744 if test -d /usr/nec ;then
13745 lt_prog_compiler_pic_F77='-Kconform_pic'
13746 lt_prog_compiler_static_F77='-Bstatic'
13747 fi
13748 ;;
13749
13750 uts4*)
13751 lt_prog_compiler_pic_F77='-pic'
13752 lt_prog_compiler_static_F77='-Bstatic'
13753 ;;
13754
13755 *)
13756 lt_prog_compiler_can_build_shared_F77=no
13757 ;;
13758 esac
13759 fi
13760
13761 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13762 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13763
13764 #
13765 # Check to make sure the PIC flag actually works.
13766 #
13767 if test -n "$lt_prog_compiler_pic_F77"; then
13768
13769 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13770 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13771 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13772 echo $ECHO_N "(cached) $ECHO_C" >&6
13773 else
13774 lt_prog_compiler_pic_works_F77=no
13775 ac_outfile=conftest.$ac_objext
13776 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13777 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13778 # Insert the option either (1) after the last *FLAGS variable, or
13779 # (2) before a word containing "conftest.", or (3) at the end.
13780 # Note that $ac_compile itself does not contain backslashes and begins
13781 # with a dollar sign (not a hyphen), so the echo should work correctly.
13782 # The option is referenced via a variable to avoid confusing sed.
13783 lt_compile=`echo "$ac_compile" | $SED \
13784 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13785 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13786 -e 's:$: $lt_compiler_flag:'`
13787 (eval echo "\"\$as_me:13787: $lt_compile\"" >&5)
13788 (eval "$lt_compile" 2>conftest.err)
13789 ac_status=$?
13790 cat conftest.err >&5
13791 echo "$as_me:13791: \$? = $ac_status" >&5
13792 if (exit $ac_status) && test -s "$ac_outfile"; then
13793 # The compiler can only warn and ignore the option if not recognized
13794 # So say no if there are warnings
13795 if test ! -s conftest.err; then
13796 lt_prog_compiler_pic_works_F77=yes
13797 fi
13798 fi
13799 $rm conftest*
13800
13801 fi
13802 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13803 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13804
13805 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13806 case $lt_prog_compiler_pic_F77 in
13807 "" | " "*) ;;
13808 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13809 esac
13810 else
13811 lt_prog_compiler_pic_F77=
13812 lt_prog_compiler_can_build_shared_F77=no
13813 fi
13814
13815 fi
13816 case "$host_os" in
13817 # For platforms which do not support PIC, -DPIC is meaningless:
13818 *djgpp*)
13819 lt_prog_compiler_pic_F77=
13820 ;;
13821 *)
13822 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13823 ;;
13824 esac
13825
13826 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13827 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13828 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13829 echo $ECHO_N "(cached) $ECHO_C" >&6
13830 else
13831 lt_cv_prog_compiler_c_o_F77=no
13832 $rm -r conftest 2>/dev/null
13833 mkdir conftest
13834 cd conftest
13835 mkdir out
13836 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13837
13838 lt_compiler_flag="-o out/conftest2.$ac_objext"
13839 # Insert the option either (1) after the last *FLAGS variable, or
13840 # (2) before a word containing "conftest.", or (3) at the end.
13841 # Note that $ac_compile itself does not contain backslashes and begins
13842 # with a dollar sign (not a hyphen), so the echo should work correctly.
13843 lt_compile=`echo "$ac_compile" | $SED \
13844 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13845 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13846 -e 's:$: $lt_compiler_flag:'`
13847 (eval echo "\"\$as_me:13847: $lt_compile\"" >&5)
13848 (eval "$lt_compile" 2>out/conftest.err)
13849 ac_status=$?
13850 cat out/conftest.err >&5
13851 echo "$as_me:13851: \$? = $ac_status" >&5
13852 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13853 then
13854 # The compiler can only warn and ignore the option if not recognized
13855 # So say no if there are warnings
13856 if test ! -s out/conftest.err; then
13857 lt_cv_prog_compiler_c_o_F77=yes
13858 fi
13859 fi
13860 chmod u+w .
13861 $rm conftest*
13862 # SGI C++ compiler will create directory out/ii_files/ for
13863 # template instantiation
13864 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13865 $rm out/* && rmdir out
13866 cd ..
13867 rmdir conftest
13868 $rm conftest*
13869
13870 fi
13871 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13872 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13873
13874
13875 hard_links="nottested"
13876 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13877 # do not overwrite the value of need_locks provided by the user
13878 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13879 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13880 hard_links=yes
13881 $rm conftest*
13882 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13883 touch conftest.a
13884 ln conftest.a conftest.b 2>&5 || hard_links=no
13885 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13886 echo "$as_me:$LINENO: result: $hard_links" >&5
13887 echo "${ECHO_T}$hard_links" >&6
13888 if test "$hard_links" = no; then
13889 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13890 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13891 need_locks=warn
13892 fi
13893 else
13894 need_locks=no
13895 fi
13896
13897 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13898 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13899
13900 runpath_var=
13901 allow_undefined_flag_F77=
13902 enable_shared_with_static_runtimes_F77=no
13903 archive_cmds_F77=
13904 archive_expsym_cmds_F77=
13905 old_archive_From_new_cmds_F77=
13906 old_archive_from_expsyms_cmds_F77=
13907 export_dynamic_flag_spec_F77=
13908 whole_archive_flag_spec_F77=
13909 thread_safe_flag_spec_F77=
13910 hardcode_libdir_flag_spec_F77=
13911 hardcode_libdir_flag_spec_ld_F77=
13912 hardcode_libdir_separator_F77=
13913 hardcode_direct_F77=no
13914 hardcode_minus_L_F77=no
13915 hardcode_shlibpath_var_F77=unsupported
13916 link_all_deplibs_F77=unknown
13917 hardcode_automatic_F77=no
13918 module_cmds_F77=
13919 module_expsym_cmds_F77=
13920 always_export_symbols_F77=no
13921 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13922 # include_expsyms should be a list of space-separated symbols to be *always*
13923 # included in the symbol list
13924 include_expsyms_F77=
13925 # exclude_expsyms can be an extended regexp of symbols to exclude
13926 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13927 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13928 # as well as any symbol that contains `d'.
13929 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13930 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13931 # platforms (ab)use it in PIC code, but their linkers get confused if
13932 # the symbol is explicitly referenced. Since portable code cannot
13933 # rely on this symbol name, it's probably fine to never include it in
13934 # preloaded symbol tables.
13935 extract_expsyms_cmds=
13936
13937 case $host_os in
13938 cygwin* | mingw* | pw32*)
13939 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13940 # When not using gcc, we currently assume that we are using
13941 # Microsoft Visual C++.
13942 if test "$GCC" != yes; then
13943 with_gnu_ld=no
13944 fi
13945 ;;
13946 openbsd*)
13947 with_gnu_ld=no
13948 ;;
13949 esac
13950
13951 ld_shlibs_F77=yes
13952 if test "$with_gnu_ld" = yes; then
13953 # If archive_cmds runs LD, not CC, wlarc should be empty
13954 wlarc='${wl}'
13955
13956 # See if GNU ld supports shared libraries.
13957 case $host_os in
13958 aix3* | aix4* | aix5*)
13959 # On AIX/PPC, the GNU linker is very broken
13960 if test "$host_cpu" != ia64; then
13961 ld_shlibs_F77=no
13962 cat <<EOF 1>&2
13963
13964 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13965 *** to be unable to reliably create shared libraries on AIX.
13966 *** Therefore, libtool is disabling shared libraries support. If you
13967 *** really care for shared libraries, you may want to modify your PATH
13968 *** so that a non-GNU linker is found, and then restart.
13969
13970 EOF
13971 fi
13972 ;;
13973
13974 amigaos*)
13975 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)'
13976 hardcode_libdir_flag_spec_F77='-L$libdir'
13977 hardcode_minus_L_F77=yes
13978
13979 # Samuel A. Falvo II <[email protected]> reports
13980 # that the semantics of dynamic libraries on AmigaOS, at least up
13981 # to version 4, is to share data among multiple programs linked
13982 # with the same dynamic library. Since this doesn't match the
13983 # behavior of shared libraries on other platforms, we can't use
13984 # them.
13985 ld_shlibs_F77=no
13986 ;;
13987
13988 beos*)
13989 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13990 allow_undefined_flag_F77=unsupported
13991 # Joseph Beckenbach <[email protected]> says some releases of gcc
13992 # support --undefined. This deserves some investigation. FIXME
13993 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13994 else
13995 ld_shlibs_F77=no
13996 fi
13997 ;;
13998
13999 cygwin* | mingw* | pw32*)
14000 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14001 # as there is no search path for DLLs.
14002 hardcode_libdir_flag_spec_F77='-L$libdir'
14003 allow_undefined_flag_F77=unsupported
14004 always_export_symbols_F77=no
14005 enable_shared_with_static_runtimes_F77=yes
14006 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14007
14008 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14009 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14010 # If the export-symbols file already is a .def file (1st line
14011 # is EXPORTS), use it as is; otherwise, prepend...
14012 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14013 cp $export_symbols $output_objdir/$soname.def;
14014 else
14015 echo EXPORTS > $output_objdir/$soname.def;
14016 cat $export_symbols >> $output_objdir/$soname.def;
14017 fi~
14018 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14019 else
14020 ld_shlibs=no
14021 fi
14022 ;;
14023
14024 netbsd*)
14025 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14026 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14027 wlarc=
14028 else
14029 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14030 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14031 fi
14032 ;;
14033
14034 solaris* | sysv5*)
14035 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14036 ld_shlibs_F77=no
14037 cat <<EOF 1>&2
14038
14039 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14040 *** create shared libraries on Solaris systems. Therefore, libtool
14041 *** is disabling shared libraries support. We urge you to upgrade GNU
14042 *** binutils to release 2.9.1 or newer. Another option is to modify
14043 *** your PATH or compiler configuration so that the native linker is
14044 *** used, and then restart.
14045
14046 EOF
14047 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14048 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14049 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14050 else
14051 ld_shlibs_F77=no
14052 fi
14053 ;;
14054
14055 sunos4*)
14056 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14057 wlarc=
14058 hardcode_direct_F77=yes
14059 hardcode_shlibpath_var_F77=no
14060 ;;
14061
14062 linux*)
14063 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14064 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14065 archive_cmds_F77="$tmp_archive_cmds"
14066 supports_anon_versioning=no
14067 case `$LD -v 2>/dev/null` in
14068 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14069 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14070 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14071 *\ 2.11.*) ;; # other 2.11 versions
14072 *) supports_anon_versioning=yes ;;
14073 esac
14074 if test $supports_anon_versioning = yes; then
14075 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14076 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14077 $echo "local: *; };" >> $output_objdir/$libname.ver~
14078 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14079 else
14080 archive_expsym_cmds_F77="$tmp_archive_cmds"
14081 fi
14082 else
14083 ld_shlibs_F77=no
14084 fi
14085 ;;
14086
14087 *)
14088 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14089 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14090 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14091 else
14092 ld_shlibs_F77=no
14093 fi
14094 ;;
14095 esac
14096
14097 if test "$ld_shlibs_F77" = yes; then
14098 runpath_var=LD_RUN_PATH
14099 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14100 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14101 # ancient GNU ld didn't support --whole-archive et. al.
14102 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14103 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14104 else
14105 whole_archive_flag_spec_F77=
14106 fi
14107 fi
14108 else
14109 # PORTME fill in a description of your system's linker (not GNU ld)
14110 case $host_os in
14111 aix3*)
14112 allow_undefined_flag_F77=unsupported
14113 always_export_symbols_F77=yes
14114 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'
14115 # Note: this linker hardcodes the directories in LIBPATH if there
14116 # are no directories specified by -L.
14117 hardcode_minus_L_F77=yes
14118 if test "$GCC" = yes && test -z "$link_static_flag"; then
14119 # Neither direct hardcoding nor static linking is supported with a
14120 # broken collect2.
14121 hardcode_direct_F77=unsupported
14122 fi
14123 ;;
14124
14125 aix4* | aix5*)
14126 if test "$host_cpu" = ia64; then
14127 # On IA64, the linker does run time linking by default, so we don't
14128 # have to do anything special.
14129 aix_use_runtimelinking=no
14130 exp_sym_flag='-Bexport'
14131 no_entry_flag=""
14132 else
14133 # If we're using GNU nm, then we don't want the "-C" option.
14134 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14135 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14136 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'
14137 else
14138 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'
14139 fi
14140 aix_use_runtimelinking=no
14141
14142 # Test if we are trying to use run time linking or normal
14143 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14144 # need to do runtime linking.
14145 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14146 for ld_flag in $LDFLAGS; do
14147 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14148 aix_use_runtimelinking=yes
14149 break
14150 fi
14151 done
14152 esac
14153
14154 exp_sym_flag='-bexport'
14155 no_entry_flag='-bnoentry'
14156 fi
14157
14158 # When large executables or shared objects are built, AIX ld can
14159 # have problems creating the table of contents. If linking a library
14160 # or program results in "error TOC overflow" add -mminimal-toc to
14161 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14162 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14163
14164 archive_cmds_F77=''
14165 hardcode_direct_F77=yes
14166 hardcode_libdir_separator_F77=':'
14167 link_all_deplibs_F77=yes
14168
14169 if test "$GCC" = yes; then
14170 case $host_os in aix4.012|aix4.012.*)
14171 # We only want to do this on AIX 4.2 and lower, the check
14172 # below for broken collect2 doesn't work under 4.3+
14173 collect2name=`${CC} -print-prog-name=collect2`
14174 if test -f "$collect2name" && \
14175 strings "$collect2name" | grep resolve_lib_name >/dev/null
14176 then
14177 # We have reworked collect2
14178 hardcode_direct_F77=yes
14179 else
14180 # We have old collect2
14181 hardcode_direct_F77=unsupported
14182 # It fails to find uninstalled libraries when the uninstalled
14183 # path is not listed in the libpath. Setting hardcode_minus_L
14184 # to unsupported forces relinking
14185 hardcode_minus_L_F77=yes
14186 hardcode_libdir_flag_spec_F77='-L$libdir'
14187 hardcode_libdir_separator_F77=
14188 fi
14189 esac
14190 shared_flag='-shared'
14191 else
14192 # not using gcc
14193 if test "$host_cpu" = ia64; then
14194 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14195 # chokes on -Wl,-G. The following line is correct:
14196 shared_flag='-G'
14197 else
14198 if test "$aix_use_runtimelinking" = yes; then
14199 shared_flag='${wl}-G'
14200 else
14201 shared_flag='${wl}-bM:SRE'
14202 fi
14203 fi
14204 fi
14205
14206 # It seems that -bexpall does not export symbols beginning with
14207 # underscore (_), so it is better to generate a list of symbols to export.
14208 always_export_symbols_F77=yes
14209 if test "$aix_use_runtimelinking" = yes; then
14210 # Warning - without using the other runtime loading flags (-brtl),
14211 # -berok will link without error, but may produce a broken library.
14212 allow_undefined_flag_F77='-berok'
14213 # Determine the default libpath from the value encoded in an empty executable.
14214 cat >conftest.$ac_ext <<_ACEOF
14215 program main
14216
14217 end
14218 _ACEOF
14219 rm -f conftest.$ac_objext conftest$ac_exeext
14220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14221 (eval $ac_link) 2>conftest.er1
14222 ac_status=$?
14223 grep -v '^ *+' conftest.er1 >conftest.err
14224 rm -f conftest.er1
14225 cat conftest.err >&5
14226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227 (exit $ac_status); } &&
14228 { ac_try='test -z "$ac_f77_werror_flag"
14229 || test ! -s conftest.err'
14230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14231 (eval $ac_try) 2>&5
14232 ac_status=$?
14233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234 (exit $ac_status); }; } &&
14235 { ac_try='test -s conftest$ac_exeext'
14236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14237 (eval $ac_try) 2>&5
14238 ac_status=$?
14239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14240 (exit $ac_status); }; }; then
14241
14242 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14243 }'`
14244 # Check for a 64-bit object if we didn't find anything.
14245 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; }
14246 }'`; fi
14247 else
14248 echo "$as_me: failed program was:" >&5
14249 sed 's/^/| /' conftest.$ac_ext >&5
14250
14251 fi
14252 rm -f conftest.err conftest.$ac_objext \
14253 conftest$ac_exeext conftest.$ac_ext
14254 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14255
14256 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14257 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14258 else
14259 if test "$host_cpu" = ia64; then
14260 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14261 allow_undefined_flag_F77="-z nodefs"
14262 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
14263 else
14264 # Determine the default libpath from the value encoded in an empty executable.
14265 cat >conftest.$ac_ext <<_ACEOF
14266 program main
14267
14268 end
14269 _ACEOF
14270 rm -f conftest.$ac_objext conftest$ac_exeext
14271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14272 (eval $ac_link) 2>conftest.er1
14273 ac_status=$?
14274 grep -v '^ *+' conftest.er1 >conftest.err
14275 rm -f conftest.er1
14276 cat conftest.err >&5
14277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278 (exit $ac_status); } &&
14279 { ac_try='test -z "$ac_f77_werror_flag"
14280 || test ! -s conftest.err'
14281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14282 (eval $ac_try) 2>&5
14283 ac_status=$?
14284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14285 (exit $ac_status); }; } &&
14286 { ac_try='test -s conftest$ac_exeext'
14287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14288 (eval $ac_try) 2>&5
14289 ac_status=$?
14290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14291 (exit $ac_status); }; }; then
14292
14293 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14294 }'`
14295 # Check for a 64-bit object if we didn't find anything.
14296 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; }
14297 }'`; fi
14298 else
14299 echo "$as_me: failed program was:" >&5
14300 sed 's/^/| /' conftest.$ac_ext >&5
14301
14302 fi
14303 rm -f conftest.err conftest.$ac_objext \
14304 conftest$ac_exeext conftest.$ac_ext
14305 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14306
14307 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14308 # Warning - without using the other run time loading flags,
14309 # -berok will link without error, but may produce a broken library.
14310 no_undefined_flag_F77=' ${wl}-bernotok'
14311 allow_undefined_flag_F77=' ${wl}-berok'
14312 # -bexpall does not export symbols beginning with underscore (_)
14313 always_export_symbols_F77=yes
14314 # Exported symbols can be pulled into shared objects from archives
14315 whole_archive_flag_spec_F77=' '
14316 archive_cmds_need_lc_F77=yes
14317 # This is similar to how AIX traditionally builds it's shared libraries.
14318 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14319 fi
14320 fi
14321 ;;
14322
14323 amigaos*)
14324 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)'
14325 hardcode_libdir_flag_spec_F77='-L$libdir'
14326 hardcode_minus_L_F77=yes
14327 # see comment about different semantics on the GNU ld section
14328 ld_shlibs_F77=no
14329 ;;
14330
14331 bsdi4*)
14332 export_dynamic_flag_spec_F77=-rdynamic
14333 ;;
14334
14335 cygwin* | mingw* | pw32*)
14336 # When not using gcc, we currently assume that we are using
14337 # Microsoft Visual C++.
14338 # hardcode_libdir_flag_spec is actually meaningless, as there is
14339 # no search path for DLLs.
14340 hardcode_libdir_flag_spec_F77=' '
14341 allow_undefined_flag_F77=unsupported
14342 # Tell ltmain to make .lib files, not .a files.
14343 libext=lib
14344 # Tell ltmain to make .dll files, not .so files.
14345 shrext_cmds=".dll"
14346 # FIXME: Setting linknames here is a bad hack.
14347 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14348 # The linker will automatically build a .lib file if we build a DLL.
14349 old_archive_From_new_cmds_F77='true'
14350 # FIXME: Should let the user specify the lib program.
14351 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14352 fix_srcfile_path='`cygpath -w "$srcfile"`'
14353 enable_shared_with_static_runtimes_F77=yes
14354 ;;
14355
14356 darwin* | rhapsody*)
14357 if test "$GXX" = yes ; then
14358 archive_cmds_need_lc_F77=no
14359 case "$host_os" in
14360 rhapsody* | darwin1.[012])
14361 allow_undefined_flag_F77='-undefined suppress'
14362 ;;
14363 *) # Darwin 1.3 on
14364 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14365 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14366 else
14367 case ${MACOSX_DEPLOYMENT_TARGET} in
14368 10.[012])
14369 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14370 ;;
14371 10.*)
14372 allow_undefined_flag_F77='-undefined dynamic_lookup'
14373 ;;
14374 esac
14375 fi
14376 ;;
14377 esac
14378 lt_int_apple_cc_single_mod=no
14379 output_verbose_link_cmd='echo'
14380 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14381 lt_int_apple_cc_single_mod=yes
14382 fi
14383 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14384 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14385 else
14386 archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14387 fi
14388 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14389 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14390 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14391 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14392 else
14393 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14394 fi
14395 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}'
14396 hardcode_direct_F77=no
14397 hardcode_automatic_F77=yes
14398 hardcode_shlibpath_var_F77=unsupported
14399 whole_archive_flag_spec_F77='-all_load $convenience'
14400 link_all_deplibs_F77=yes
14401 else
14402 ld_shlibs_F77=no
14403 fi
14404 ;;
14405
14406 dgux*)
14407 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14408 hardcode_libdir_flag_spec_F77='-L$libdir'
14409 hardcode_shlibpath_var_F77=no
14410 ;;
14411
14412 freebsd1*)
14413 ld_shlibs_F77=no
14414 ;;
14415
14416 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14417 # support. Future versions do this automatically, but an explicit c++rt0.o
14418 # does not break anything, and helps significantly (at the cost of a little
14419 # extra space).
14420 freebsd2.2*)
14421 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14422 hardcode_libdir_flag_spec_F77='-R$libdir'
14423 hardcode_direct_F77=yes
14424 hardcode_shlibpath_var_F77=no
14425 ;;
14426
14427 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14428 freebsd2*)
14429 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14430 hardcode_direct_F77=yes
14431 hardcode_minus_L_F77=yes
14432 hardcode_shlibpath_var_F77=no
14433 ;;
14434
14435 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14436 freebsd* | kfreebsd*-gnu)
14437 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14438 hardcode_libdir_flag_spec_F77='-R$libdir'
14439 hardcode_direct_F77=yes
14440 hardcode_shlibpath_var_F77=no
14441 ;;
14442
14443 hpux9*)
14444 if test "$GCC" = yes; then
14445 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'
14446 else
14447 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'
14448 fi
14449 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14450 hardcode_libdir_separator_F77=:
14451 hardcode_direct_F77=yes
14452
14453 # hardcode_minus_L: Not really in the search PATH,
14454 # but as the default location of the library.
14455 hardcode_minus_L_F77=yes
14456 export_dynamic_flag_spec_F77='${wl}-E'
14457 ;;
14458
14459 hpux10* | hpux11*)
14460 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14461 case "$host_cpu" in
14462 hppa*64*|ia64*)
14463 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14464 ;;
14465 *)
14466 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14467 ;;
14468 esac
14469 else
14470 case "$host_cpu" in
14471 hppa*64*|ia64*)
14472 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14473 ;;
14474 *)
14475 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14476 ;;
14477 esac
14478 fi
14479 if test "$with_gnu_ld" = no; then
14480 case "$host_cpu" in
14481 hppa*64*)
14482 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14483 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14484 hardcode_libdir_separator_F77=:
14485 hardcode_direct_F77=no
14486 hardcode_shlibpath_var_F77=no
14487 ;;
14488 ia64*)
14489 hardcode_libdir_flag_spec_F77='-L$libdir'
14490 hardcode_direct_F77=no
14491 hardcode_shlibpath_var_F77=no
14492
14493 # hardcode_minus_L: Not really in the search PATH,
14494 # but as the default location of the library.
14495 hardcode_minus_L_F77=yes
14496 ;;
14497 *)
14498 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14499 hardcode_libdir_separator_F77=:
14500 hardcode_direct_F77=yes
14501 export_dynamic_flag_spec_F77='${wl}-E'
14502
14503 # hardcode_minus_L: Not really in the search PATH,
14504 # but as the default location of the library.
14505 hardcode_minus_L_F77=yes
14506 ;;
14507 esac
14508 fi
14509 ;;
14510
14511 irix5* | irix6* | nonstopux*)
14512 if test "$GCC" = yes; then
14513 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'
14514 else
14515 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'
14516 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14517 fi
14518 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14519 hardcode_libdir_separator_F77=:
14520 link_all_deplibs_F77=yes
14521 ;;
14522
14523 netbsd*)
14524 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14525 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14526 else
14527 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14528 fi
14529 hardcode_libdir_flag_spec_F77='-R$libdir'
14530 hardcode_direct_F77=yes
14531 hardcode_shlibpath_var_F77=no
14532 ;;
14533
14534 newsos6)
14535 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14536 hardcode_direct_F77=yes
14537 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14538 hardcode_libdir_separator_F77=:
14539 hardcode_shlibpath_var_F77=no
14540 ;;
14541
14542 openbsd*)
14543 hardcode_direct_F77=yes
14544 hardcode_shlibpath_var_F77=no
14545 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14546 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14547 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14548 export_dynamic_flag_spec_F77='${wl}-E'
14549 else
14550 case $host_os in
14551 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14552 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14553 hardcode_libdir_flag_spec_F77='-R$libdir'
14554 ;;
14555 *)
14556 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14557 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14558 ;;
14559 esac
14560 fi
14561 ;;
14562
14563 os2*)
14564 hardcode_libdir_flag_spec_F77='-L$libdir'
14565 hardcode_minus_L_F77=yes
14566 allow_undefined_flag_F77=unsupported
14567 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'
14568 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14569 ;;
14570
14571 osf3*)
14572 if test "$GCC" = yes; then
14573 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14574 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'
14575 else
14576 allow_undefined_flag_F77=' -expect_unresolved \*'
14577 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'
14578 fi
14579 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14580 hardcode_libdir_separator_F77=:
14581 ;;
14582
14583 osf4* | osf5*) # as osf3* with the addition of -msym flag
14584 if test "$GCC" = yes; then
14585 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14586 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'
14587 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14588 else
14589 allow_undefined_flag_F77=' -expect_unresolved \*'
14590 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'
14591 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~
14592 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
14593
14594 # Both c and cxx compiler support -rpath directly
14595 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14596 fi
14597 hardcode_libdir_separator_F77=:
14598 ;;
14599
14600 sco3.2v5*)
14601 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14602 hardcode_shlibpath_var_F77=no
14603 export_dynamic_flag_spec_F77='${wl}-Bexport'
14604 runpath_var=LD_RUN_PATH
14605 hardcode_runpath_var=yes
14606 ;;
14607
14608 solaris*)
14609 no_undefined_flag_F77=' -z text'
14610 if test "$GCC" = yes; then
14611 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14612 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14613 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14614 else
14615 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14616 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14617 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14618 fi
14619 hardcode_libdir_flag_spec_F77='-R$libdir'
14620 hardcode_shlibpath_var_F77=no
14621 case $host_os in
14622 solaris2.[0-5] | solaris2.[0-5].*) ;;
14623 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14624 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14625 esac
14626 link_all_deplibs_F77=yes
14627 ;;
14628
14629 sunos4*)
14630 if test "x$host_vendor" = xsequent; then
14631 # Use $CC to link under sequent, because it throws in some extra .o
14632 # files that make .init and .fini sections work.
14633 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14634 else
14635 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14636 fi
14637 hardcode_libdir_flag_spec_F77='-L$libdir'
14638 hardcode_direct_F77=yes
14639 hardcode_minus_L_F77=yes
14640 hardcode_shlibpath_var_F77=no
14641 ;;
14642
14643 sysv4)
14644 case $host_vendor in
14645 sni)
14646 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14647 hardcode_direct_F77=yes # is this really true???
14648 ;;
14649 siemens)
14650 ## LD is ld it makes a PLAMLIB
14651 ## CC just makes a GrossModule.
14652 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14653 reload_cmds_F77='$CC -r -o $output$reload_objs'
14654 hardcode_direct_F77=no
14655 ;;
14656 motorola)
14657 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14658 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14659 ;;
14660 esac
14661 runpath_var='LD_RUN_PATH'
14662 hardcode_shlibpath_var_F77=no
14663 ;;
14664
14665 sysv4.3*)
14666 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14667 hardcode_shlibpath_var_F77=no
14668 export_dynamic_flag_spec_F77='-Bexport'
14669 ;;
14670
14671 sysv4*MP*)
14672 if test -d /usr/nec; then
14673 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14674 hardcode_shlibpath_var_F77=no
14675 runpath_var=LD_RUN_PATH
14676 hardcode_runpath_var=yes
14677 ld_shlibs_F77=yes
14678 fi
14679 ;;
14680
14681 sysv4.2uw2*)
14682 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14683 hardcode_direct_F77=yes
14684 hardcode_minus_L_F77=no
14685 hardcode_shlibpath_var_F77=no
14686 hardcode_runpath_var=yes
14687 runpath_var=LD_RUN_PATH
14688 ;;
14689
14690 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14691 no_undefined_flag_F77='${wl}-z ${wl}text'
14692 if test "$GCC" = yes; then
14693 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14694 else
14695 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14696 fi
14697 runpath_var='LD_RUN_PATH'
14698 hardcode_shlibpath_var_F77=no
14699 ;;
14700
14701 sysv5*)
14702 no_undefined_flag_F77=' -z text'
14703 # $CC -shared without GNU ld will not create a library from C++
14704 # object files and a static libstdc++, better avoid it by now
14705 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14706 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14707 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14708 hardcode_libdir_flag_spec_F77=
14709 hardcode_shlibpath_var_F77=no
14710 runpath_var='LD_RUN_PATH'
14711 ;;
14712
14713 uts4*)
14714 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14715 hardcode_libdir_flag_spec_F77='-L$libdir'
14716 hardcode_shlibpath_var_F77=no
14717 ;;
14718
14719 *)
14720 ld_shlibs_F77=no
14721 ;;
14722 esac
14723 fi
14724
14725 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14726 echo "${ECHO_T}$ld_shlibs_F77" >&6
14727 test "$ld_shlibs_F77" = no && can_build_shared=no
14728
14729 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14730 if test "$GCC" = yes; then
14731 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14732 fi
14733
14734 #
14735 # Do we need to explicitly link libc?
14736 #
14737 case "x$archive_cmds_need_lc_F77" in
14738 x|xyes)
14739 # Assume -lc should be added
14740 archive_cmds_need_lc_F77=yes
14741
14742 if test "$enable_shared" = yes && test "$GCC" = yes; then
14743 case $archive_cmds_F77 in
14744 *'~'*)
14745 # FIXME: we may have to deal with multi-command sequences.
14746 ;;
14747 '$CC '*)
14748 # Test whether the compiler implicitly links with -lc since on some
14749 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14750 # to ld, don't add -lc before -lgcc.
14751 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14752 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14753 $rm conftest*
14754 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14755
14756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14757 (eval $ac_compile) 2>&5
14758 ac_status=$?
14759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14760 (exit $ac_status); } 2>conftest.err; then
14761 soname=conftest
14762 lib=conftest
14763 libobjs=conftest.$ac_objext
14764 deplibs=
14765 wl=$lt_prog_compiler_wl_F77
14766 compiler_flags=-v
14767 linker_flags=-v
14768 verstring=
14769 output_objdir=.
14770 libname=conftest
14771 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14772 allow_undefined_flag_F77=
14773 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14774 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14775 ac_status=$?
14776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777 (exit $ac_status); }
14778 then
14779 archive_cmds_need_lc_F77=no
14780 else
14781 archive_cmds_need_lc_F77=yes
14782 fi
14783 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14784 else
14785 cat conftest.err 1>&5
14786 fi
14787 $rm conftest*
14788 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14789 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14790 ;;
14791 esac
14792 fi
14793 ;;
14794 esac
14795
14796 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14797 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14798 library_names_spec=
14799 libname_spec='lib$name'
14800 soname_spec=
14801 shrext_cmds=".so"
14802 postinstall_cmds=
14803 postuninstall_cmds=
14804 finish_cmds=
14805 finish_eval=
14806 shlibpath_var=
14807 shlibpath_overrides_runpath=unknown
14808 version_type=none
14809 dynamic_linker="$host_os ld.so"
14810 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14811 if test "$GCC" = yes; then
14812 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14813 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14814 # if the path contains ";" then we assume it to be the separator
14815 # otherwise default to the standard path separator (i.e. ":") - it is
14816 # assumed that no part of a normal pathname contains ";" but that should
14817 # okay in the real world where ";" in dirpaths is itself problematic.
14818 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14819 else
14820 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14821 fi
14822 else
14823 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14824 fi
14825 need_lib_prefix=unknown
14826 hardcode_into_libs=no
14827
14828 # when you set need_version to no, make sure it does not cause -set_version
14829 # flags to be left without arguments
14830 need_version=unknown
14831
14832 case $host_os in
14833 aix3*)
14834 version_type=linux
14835 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14836 shlibpath_var=LIBPATH
14837
14838 # AIX 3 has no versioning support, so we append a major version to the name.
14839 soname_spec='${libname}${release}${shared_ext}$major'
14840 ;;
14841
14842 aix4* | aix5*)
14843 version_type=linux
14844 need_lib_prefix=no
14845 need_version=no
14846 hardcode_into_libs=yes
14847 if test "$host_cpu" = ia64; then
14848 # AIX 5 supports IA64
14849 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14850 shlibpath_var=LD_LIBRARY_PATH
14851 else
14852 # With GCC up to 2.95.x, collect2 would create an import file
14853 # for dependence libraries. The import file would start with
14854 # the line `#! .'. This would cause the generated library to
14855 # depend on `.', always an invalid library. This was fixed in
14856 # development snapshots of GCC prior to 3.0.
14857 case $host_os in
14858 aix4 | aix4.[01] | aix4.[01].*)
14859 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14860 echo ' yes '
14861 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14862 :
14863 else
14864 can_build_shared=no
14865 fi
14866 ;;
14867 esac
14868 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14869 # soname into executable. Probably we can add versioning support to
14870 # collect2, so additional links can be useful in future.
14871 if test "$aix_use_runtimelinking" = yes; then
14872 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14873 # instead of lib<name>.a to let people know that these are not
14874 # typical AIX shared libraries.
14875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14876 else
14877 # We preserve .a as extension for shared libraries through AIX4.2
14878 # and later when we are not doing run time linking.
14879 library_names_spec='${libname}${release}.a $libname.a'
14880 soname_spec='${libname}${release}${shared_ext}$major'
14881 fi
14882 shlibpath_var=LIBPATH
14883 fi
14884 ;;
14885
14886 amigaos*)
14887 library_names_spec='$libname.ixlibrary $libname.a'
14888 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14889 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'
14890 ;;
14891
14892 beos*)
14893 library_names_spec='${libname}${shared_ext}'
14894 dynamic_linker="$host_os ld.so"
14895 shlibpath_var=LIBRARY_PATH
14896 ;;
14897
14898 bsdi4*)
14899 version_type=linux
14900 need_version=no
14901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14902 soname_spec='${libname}${release}${shared_ext}$major'
14903 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14904 shlibpath_var=LD_LIBRARY_PATH
14905 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14906 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14907 # the default ld.so.conf also contains /usr/contrib/lib and
14908 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14909 # libtool to hard-code these into programs
14910 ;;
14911
14912 cygwin* | mingw* | pw32*)
14913 version_type=windows
14914 shrext_cmds=".dll"
14915 need_version=no
14916 need_lib_prefix=no
14917
14918 case $GCC,$host_os in
14919 yes,cygwin* | yes,mingw* | yes,pw32*)
14920 library_names_spec='$libname.dll.a'
14921 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14922 postinstall_cmds='base_file=`basename \${file}`~
14923 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14924 dldir=$destdir/`dirname \$dlpath`~
14925 test -d \$dldir || mkdir -p \$dldir~
14926 $install_prog $dir/$dlname \$dldir/$dlname'
14927 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14928 dlpath=$dir/\$dldll~
14929 $rm \$dlpath'
14930 shlibpath_overrides_runpath=yes
14931
14932 case $host_os in
14933 cygwin*)
14934 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14935 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14936 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14937 ;;
14938 mingw*)
14939 # MinGW DLLs use traditional 'lib' prefix
14940 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14941 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14942 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14943 # It is most probably a Windows format PATH printed by
14944 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14945 # path with ; separators, and with drive letters. We can handle the
14946 # drive letters (cygwin fileutils understands them), so leave them,
14947 # especially as we might pass files found there to a mingw objdump,
14948 # which wouldn't understand a cygwinified path. Ahh.
14949 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14950 else
14951 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14952 fi
14953 ;;
14954 pw32*)
14955 # pw32 DLLs use 'pw' prefix rather than 'lib'
14956 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14957 ;;
14958 esac
14959 ;;
14960
14961 *)
14962 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14963 ;;
14964 esac
14965 dynamic_linker='Win32 ld.exe'
14966 # FIXME: first we should search . and the directory the executable is in
14967 shlibpath_var=PATH
14968 ;;
14969
14970 darwin* | rhapsody*)
14971 dynamic_linker="$host_os dyld"
14972 version_type=darwin
14973 need_lib_prefix=no
14974 need_version=no
14975 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14976 soname_spec='${libname}${release}${major}$shared_ext'
14977 shlibpath_overrides_runpath=yes
14978 shlibpath_var=DYLD_LIBRARY_PATH
14979 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14980 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14981 if test "$GCC" = yes; then
14982 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"`
14983 else
14984 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14985 fi
14986 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14987 ;;
14988
14989 dgux*)
14990 version_type=linux
14991 need_lib_prefix=no
14992 need_version=no
14993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14994 soname_spec='${libname}${release}${shared_ext}$major'
14995 shlibpath_var=LD_LIBRARY_PATH
14996 ;;
14997
14998 freebsd1*)
14999 dynamic_linker=no
15000 ;;
15001
15002 kfreebsd*-gnu)
15003 version_type=linux
15004 need_lib_prefix=no
15005 need_version=no
15006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15007 soname_spec='${libname}${release}${shared_ext}$major'
15008 shlibpath_var=LD_LIBRARY_PATH
15009 shlibpath_overrides_runpath=no
15010 hardcode_into_libs=yes
15011 dynamic_linker='GNU ld.so'
15012 ;;
15013
15014 freebsd*)
15015 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15016 version_type=freebsd-$objformat
15017 case $version_type in
15018 freebsd-elf*)
15019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15020 need_version=no
15021 need_lib_prefix=no
15022 ;;
15023 freebsd-*)
15024 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15025 need_version=yes
15026 ;;
15027 esac
15028 shlibpath_var=LD_LIBRARY_PATH
15029 case $host_os in
15030 freebsd2*)
15031 shlibpath_overrides_runpath=yes
15032 ;;
15033 freebsd3.01* | freebsdelf3.01*)
15034 shlibpath_overrides_runpath=yes
15035 hardcode_into_libs=yes
15036 ;;
15037 *) # from 3.2 on
15038 shlibpath_overrides_runpath=no
15039 hardcode_into_libs=yes
15040 ;;
15041 esac
15042 ;;
15043
15044 gnu*)
15045 version_type=linux
15046 need_lib_prefix=no
15047 need_version=no
15048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15049 soname_spec='${libname}${release}${shared_ext}$major'
15050 shlibpath_var=LD_LIBRARY_PATH
15051 hardcode_into_libs=yes
15052 ;;
15053
15054 hpux9* | hpux10* | hpux11*)
15055 # Give a soname corresponding to the major version so that dld.sl refuses to
15056 # link against other versions.
15057 version_type=sunos
15058 need_lib_prefix=no
15059 need_version=no
15060 case "$host_cpu" in
15061 ia64*)
15062 shrext_cmds='.so'
15063 hardcode_into_libs=yes
15064 dynamic_linker="$host_os dld.so"
15065 shlibpath_var=LD_LIBRARY_PATH
15066 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15068 soname_spec='${libname}${release}${shared_ext}$major'
15069 if test "X$HPUX_IA64_MODE" = X32; then
15070 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15071 else
15072 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15073 fi
15074 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15075 ;;
15076 hppa*64*)
15077 shrext_cmds='.sl'
15078 hardcode_into_libs=yes
15079 dynamic_linker="$host_os dld.sl"
15080 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15081 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15083 soname_spec='${libname}${release}${shared_ext}$major'
15084 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15085 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15086 ;;
15087 *)
15088 shrext_cmds='.sl'
15089 dynamic_linker="$host_os dld.sl"
15090 shlibpath_var=SHLIB_PATH
15091 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15093 soname_spec='${libname}${release}${shared_ext}$major'
15094 ;;
15095 esac
15096 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15097 postinstall_cmds='chmod 555 $lib'
15098 ;;
15099
15100 irix5* | irix6* | nonstopux*)
15101 case $host_os in
15102 nonstopux*) version_type=nonstopux ;;
15103 *)
15104 if test "$lt_cv_prog_gnu_ld" = yes; then
15105 version_type=linux
15106 else
15107 version_type=irix
15108 fi ;;
15109 esac
15110 need_lib_prefix=no
15111 need_version=no
15112 soname_spec='${libname}${release}${shared_ext}$major'
15113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15114 case $host_os in
15115 irix5* | nonstopux*)
15116 libsuff= shlibsuff=
15117 ;;
15118 *)
15119 case $LD in # libtool.m4 will add one of these switches to LD
15120 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15121 libsuff= shlibsuff= libmagic=32-bit;;
15122 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15123 libsuff=32 shlibsuff=N32 libmagic=N32;;
15124 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15125 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15126 *) libsuff= shlibsuff= libmagic=never-match;;
15127 esac
15128 ;;
15129 esac
15130 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15131 shlibpath_overrides_runpath=no
15132 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15133 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15134 hardcode_into_libs=yes
15135 ;;
15136
15137 # No shared lib support for Linux oldld, aout, or coff.
15138 linux*oldld* | linux*aout* | linux*coff*)
15139 dynamic_linker=no
15140 ;;
15141
15142 # This must be Linux ELF.
15143 linux*)
15144 version_type=linux
15145 need_lib_prefix=no
15146 need_version=no
15147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15148 soname_spec='${libname}${release}${shared_ext}$major'
15149 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15150 shlibpath_var=LD_LIBRARY_PATH
15151 shlibpath_overrides_runpath=no
15152 # This implies no fast_install, which is unacceptable.
15153 # Some rework will be needed to allow for fast_install
15154 # before this can be enabled.
15155 hardcode_into_libs=yes
15156
15157 # Append ld.so.conf contents to the search path
15158 if test -f /etc/ld.so.conf; then
15159 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
15160 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15161 fi
15162
15163 # We used to test for /lib/ld.so.1 and disable shared libraries on
15164 # powerpc, because MkLinux only supported shared libraries with the
15165 # GNU dynamic linker. Since this was broken with cross compilers,
15166 # most powerpc-linux boxes support dynamic linking these days and
15167 # people can always --disable-shared, the test was removed, and we
15168 # assume the GNU/Linux dynamic linker is in use.
15169 dynamic_linker='GNU/Linux ld.so'
15170 ;;
15171
15172 knetbsd*-gnu)
15173 version_type=linux
15174 need_lib_prefix=no
15175 need_version=no
15176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15177 soname_spec='${libname}${release}${shared_ext}$major'
15178 shlibpath_var=LD_LIBRARY_PATH
15179 shlibpath_overrides_runpath=no
15180 hardcode_into_libs=yes
15181 dynamic_linker='GNU ld.so'
15182 ;;
15183
15184 netbsd*)
15185 version_type=sunos
15186 need_lib_prefix=no
15187 need_version=no
15188 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15190 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15191 dynamic_linker='NetBSD (a.out) ld.so'
15192 else
15193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15194 soname_spec='${libname}${release}${shared_ext}$major'
15195 dynamic_linker='NetBSD ld.elf_so'
15196 fi
15197 shlibpath_var=LD_LIBRARY_PATH
15198 shlibpath_overrides_runpath=yes
15199 hardcode_into_libs=yes
15200 ;;
15201
15202 newsos6)
15203 version_type=linux
15204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15205 shlibpath_var=LD_LIBRARY_PATH
15206 shlibpath_overrides_runpath=yes
15207 ;;
15208
15209 nto-qnx*)
15210 version_type=linux
15211 need_lib_prefix=no
15212 need_version=no
15213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15214 soname_spec='${libname}${release}${shared_ext}$major'
15215 shlibpath_var=LD_LIBRARY_PATH
15216 shlibpath_overrides_runpath=yes
15217 ;;
15218
15219 openbsd*)
15220 version_type=sunos
15221 need_lib_prefix=no
15222 need_version=yes
15223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15224 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15225 shlibpath_var=LD_LIBRARY_PATH
15226 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15227 case $host_os in
15228 openbsd2.[89] | openbsd2.[89].*)
15229 shlibpath_overrides_runpath=no
15230 ;;
15231 *)
15232 shlibpath_overrides_runpath=yes
15233 ;;
15234 esac
15235 else
15236 shlibpath_overrides_runpath=yes
15237 fi
15238 ;;
15239
15240 os2*)
15241 libname_spec='$name'
15242 shrext_cmds=".dll"
15243 need_lib_prefix=no
15244 library_names_spec='$libname${shared_ext} $libname.a'
15245 dynamic_linker='OS/2 ld.exe'
15246 shlibpath_var=LIBPATH
15247 ;;
15248
15249 osf3* | osf4* | osf5*)
15250 version_type=osf
15251 need_lib_prefix=no
15252 need_version=no
15253 soname_spec='${libname}${release}${shared_ext}$major'
15254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15255 shlibpath_var=LD_LIBRARY_PATH
15256 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15257 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15258 ;;
15259
15260 sco3.2v5*)
15261 version_type=osf
15262 soname_spec='${libname}${release}${shared_ext}$major'
15263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15264 shlibpath_var=LD_LIBRARY_PATH
15265 ;;
15266
15267 solaris*)
15268 version_type=linux
15269 need_lib_prefix=no
15270 need_version=no
15271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15272 soname_spec='${libname}${release}${shared_ext}$major'
15273 shlibpath_var=LD_LIBRARY_PATH
15274 shlibpath_overrides_runpath=yes
15275 hardcode_into_libs=yes
15276 # ldd complains unless libraries are executable
15277 postinstall_cmds='chmod +x $lib'
15278 ;;
15279
15280 sunos4*)
15281 version_type=sunos
15282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15283 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15284 shlibpath_var=LD_LIBRARY_PATH
15285 shlibpath_overrides_runpath=yes
15286 if test "$with_gnu_ld" = yes; then
15287 need_lib_prefix=no
15288 fi
15289 need_version=yes
15290 ;;
15291
15292 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15293 version_type=linux
15294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15295 soname_spec='${libname}${release}${shared_ext}$major'
15296 shlibpath_var=LD_LIBRARY_PATH
15297 case $host_vendor in
15298 sni)
15299 shlibpath_overrides_runpath=no
15300 need_lib_prefix=no
15301 export_dynamic_flag_spec='${wl}-Blargedynsym'
15302 runpath_var=LD_RUN_PATH
15303 ;;
15304 siemens)
15305 need_lib_prefix=no
15306 ;;
15307 motorola)
15308 need_lib_prefix=no
15309 need_version=no
15310 shlibpath_overrides_runpath=no
15311 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15312 ;;
15313 esac
15314 ;;
15315
15316 sysv4*MP*)
15317 if test -d /usr/nec ;then
15318 version_type=linux
15319 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15320 soname_spec='$libname${shared_ext}.$major'
15321 shlibpath_var=LD_LIBRARY_PATH
15322 fi
15323 ;;
15324
15325 uts4*)
15326 version_type=linux
15327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15328 soname_spec='${libname}${release}${shared_ext}$major'
15329 shlibpath_var=LD_LIBRARY_PATH
15330 ;;
15331
15332 *)
15333 dynamic_linker=no
15334 ;;
15335 esac
15336 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15337 echo "${ECHO_T}$dynamic_linker" >&6
15338 test "$dynamic_linker" = no && can_build_shared=no
15339
15340 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15341 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15342 hardcode_action_F77=
15343 if test -n "$hardcode_libdir_flag_spec_F77" || \
15344 test -n "$runpath_var F77" || \
15345 test "X$hardcode_automatic_F77"="Xyes" ; then
15346
15347 # We can hardcode non-existant directories.
15348 if test "$hardcode_direct_F77" != no &&
15349 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15350 # have to relink, otherwise we might link with an installed library
15351 # when we should be linking with a yet-to-be-installed one
15352 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15353 test "$hardcode_minus_L_F77" != no; then
15354 # Linking always hardcodes the temporary library directory.
15355 hardcode_action_F77=relink
15356 else
15357 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15358 hardcode_action_F77=immediate
15359 fi
15360 else
15361 # We cannot hardcode anything, or else we can only hardcode existing
15362 # directories.
15363 hardcode_action_F77=unsupported
15364 fi
15365 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15366 echo "${ECHO_T}$hardcode_action_F77" >&6
15367
15368 if test "$hardcode_action_F77" = relink; then
15369 # Fast installation is not supported
15370 enable_fast_install=no
15371 elif test "$shlibpath_overrides_runpath" = yes ||
15372 test "$enable_shared" = no; then
15373 # Fast installation is not necessary
15374 enable_fast_install=needless
15375 fi
15376
15377 striplib=
15378 old_striplib=
15379 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15380 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15381 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15382 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15383 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15384 echo "$as_me:$LINENO: result: yes" >&5
15385 echo "${ECHO_T}yes" >&6
15386 else
15387 # FIXME - insert some real tests, host_os isn't really good enough
15388 case $host_os in
15389 darwin*)
15390 if test -n "$STRIP" ; then
15391 striplib="$STRIP -x"
15392 echo "$as_me:$LINENO: result: yes" >&5
15393 echo "${ECHO_T}yes" >&6
15394 else
15395 echo "$as_me:$LINENO: result: no" >&5
15396 echo "${ECHO_T}no" >&6
15397 fi
15398 ;;
15399 *)
15400 echo "$as_me:$LINENO: result: no" >&5
15401 echo "${ECHO_T}no" >&6
15402 ;;
15403 esac
15404 fi
15405
15406
15407
15408 # The else clause should only fire when bootstrapping the
15409 # libtool distribution, otherwise you forgot to ship ltmain.sh
15410 # with your package, and you will get complaints that there are
15411 # no rules to generate ltmain.sh.
15412 if test -f "$ltmain"; then
15413 # See if we are running on zsh, and set the options which allow our commands through
15414 # without removal of \ escapes.
15415 if test -n "${ZSH_VERSION+set}" ; then
15416 setopt NO_GLOB_SUBST
15417 fi
15418 # Now quote all the things that may contain metacharacters while being
15419 # careful not to overquote the AC_SUBSTed values. We take copies of the
15420 # variables and quote the copies for generation of the libtool script.
15421 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15422 SED SHELL STRIP \
15423 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15424 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15425 deplibs_check_method reload_flag reload_cmds need_locks \
15426 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15427 lt_cv_sys_global_symbol_to_c_name_address \
15428 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15429 old_postinstall_cmds old_postuninstall_cmds \
15430 compiler_F77 \
15431 CC_F77 \
15432 LD_F77 \
15433 lt_prog_compiler_wl_F77 \
15434 lt_prog_compiler_pic_F77 \
15435 lt_prog_compiler_static_F77 \
15436 lt_prog_compiler_no_builtin_flag_F77 \
15437 export_dynamic_flag_spec_F77 \
15438 thread_safe_flag_spec_F77 \
15439 whole_archive_flag_spec_F77 \
15440 enable_shared_with_static_runtimes_F77 \
15441 old_archive_cmds_F77 \
15442 old_archive_from_new_cmds_F77 \
15443 predep_objects_F77 \
15444 postdep_objects_F77 \
15445 predeps_F77 \
15446 postdeps_F77 \
15447 compiler_lib_search_path_F77 \
15448 archive_cmds_F77 \
15449 archive_expsym_cmds_F77 \
15450 postinstall_cmds_F77 \
15451 postuninstall_cmds_F77 \
15452 old_archive_from_expsyms_cmds_F77 \
15453 allow_undefined_flag_F77 \
15454 no_undefined_flag_F77 \
15455 export_symbols_cmds_F77 \
15456 hardcode_libdir_flag_spec_F77 \
15457 hardcode_libdir_flag_spec_ld_F77 \
15458 hardcode_libdir_separator_F77 \
15459 hardcode_automatic_F77 \
15460 module_cmds_F77 \
15461 module_expsym_cmds_F77 \
15462 lt_cv_prog_compiler_c_o_F77 \
15463 exclude_expsyms_F77 \
15464 include_expsyms_F77; do
15465
15466 case $var in
15467 old_archive_cmds_F77 | \
15468 old_archive_from_new_cmds_F77 | \
15469 archive_cmds_F77 | \
15470 archive_expsym_cmds_F77 | \
15471 module_cmds_F77 | \
15472 module_expsym_cmds_F77 | \
15473 old_archive_from_expsyms_cmds_F77 | \
15474 export_symbols_cmds_F77 | \
15475 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15476 postinstall_cmds | postuninstall_cmds | \
15477 old_postinstall_cmds | old_postuninstall_cmds | \
15478 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15479 # Double-quote double-evaled strings.
15480 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15481 ;;
15482 *)
15483 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15484 ;;
15485 esac
15486 done
15487
15488 case $lt_echo in
15489 *'\$0 --fallback-echo"')
15490 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15491 ;;
15492 esac
15493
15494 cfgfile="$ofile"
15495
15496 cat <<__EOF__ >> "$cfgfile"
15497 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15498
15499 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15500
15501 # Shell to use when invoking shell scripts.
15502 SHELL=$lt_SHELL
15503
15504 # Whether or not to build shared libraries.
15505 build_libtool_libs=$enable_shared
15506
15507 # Whether or not to build static libraries.
15508 build_old_libs=$enable_static
15509
15510 # Whether or not to add -lc for building shared libraries.
15511 build_libtool_need_lc=$archive_cmds_need_lc_F77
15512
15513 # Whether or not to disallow shared libs when runtime libs are static
15514 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15515
15516 # Whether or not to optimize for fast installation.
15517 fast_install=$enable_fast_install
15518
15519 # The host system.
15520 host_alias=$host_alias
15521 host=$host
15522
15523 # An echo program that does not interpret backslashes.
15524 echo=$lt_echo
15525
15526 # The archiver.
15527 AR=$lt_AR
15528 AR_FLAGS=$lt_AR_FLAGS
15529
15530 # A C compiler.
15531 LTCC=$lt_LTCC
15532
15533 # A language-specific compiler.
15534 CC=$lt_compiler_F77
15535
15536 # Is the compiler the GNU C compiler?
15537 with_gcc=$GCC_F77
15538
15539 # An ERE matcher.
15540 EGREP=$lt_EGREP
15541
15542 # The linker used to build libraries.
15543 LD=$lt_LD_F77
15544
15545 # Whether we need hard or soft links.
15546 LN_S=$lt_LN_S
15547
15548 # A BSD-compatible nm program.
15549 NM=$lt_NM
15550
15551 # A symbol stripping program
15552 STRIP=$lt_STRIP
15553
15554 # Used to examine libraries when file_magic_cmd begins "file"
15555 MAGIC_CMD=$MAGIC_CMD
15556
15557 # Used on cygwin: DLL creation program.
15558 DLLTOOL="$DLLTOOL"
15559
15560 # Used on cygwin: object dumper.
15561 OBJDUMP="$OBJDUMP"
15562
15563 # Used on cygwin: assembler.
15564 AS="$AS"
15565
15566 # The name of the directory that contains temporary libtool files.
15567 objdir=$objdir
15568
15569 # How to create reloadable object files.
15570 reload_flag=$lt_reload_flag
15571 reload_cmds=$lt_reload_cmds
15572
15573 # How to pass a linker flag through the compiler.
15574 wl=$lt_lt_prog_compiler_wl_F77
15575
15576 # Object file suffix (normally "o").
15577 objext="$ac_objext"
15578
15579 # Old archive suffix (normally "a").
15580 libext="$libext"
15581
15582 # Shared library suffix (normally ".so").
15583 shrext_cmds='$shrext_cmds'
15584
15585 # Executable file suffix (normally "").
15586 exeext="$exeext"
15587
15588 # Additional compiler flags for building library objects.
15589 pic_flag=$lt_lt_prog_compiler_pic_F77
15590 pic_mode=$pic_mode
15591
15592 # What is the maximum length of a command?
15593 max_cmd_len=$lt_cv_sys_max_cmd_len
15594
15595 # Does compiler simultaneously support -c and -o options?
15596 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15597
15598 # Must we lock files when doing compilation ?
15599 need_locks=$lt_need_locks
15600
15601 # Do we need the lib prefix for modules?
15602 need_lib_prefix=$need_lib_prefix
15603
15604 # Do we need a version for libraries?
15605 need_version=$need_version
15606
15607 # Whether dlopen is supported.
15608 dlopen_support=$enable_dlopen
15609
15610 # Whether dlopen of programs is supported.
15611 dlopen_self=$enable_dlopen_self
15612
15613 # Whether dlopen of statically linked programs is supported.
15614 dlopen_self_static=$enable_dlopen_self_static
15615
15616 # Compiler flag to prevent dynamic linking.
15617 link_static_flag=$lt_lt_prog_compiler_static_F77
15618
15619 # Compiler flag to turn off builtin functions.
15620 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15621
15622 # Compiler flag to allow reflexive dlopens.
15623 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15624
15625 # Compiler flag to generate shared objects directly from archives.
15626 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15627
15628 # Compiler flag to generate thread-safe objects.
15629 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15630
15631 # Library versioning type.
15632 version_type=$version_type
15633
15634 # Format of library name prefix.
15635 libname_spec=$lt_libname_spec
15636
15637 # List of archive names. First name is the real one, the rest are links.
15638 # The last name is the one that the linker finds with -lNAME.
15639 library_names_spec=$lt_library_names_spec
15640
15641 # The coded name of the library, if different from the real name.
15642 soname_spec=$lt_soname_spec
15643
15644 # Commands used to build and install an old-style archive.
15645 RANLIB=$lt_RANLIB
15646 old_archive_cmds=$lt_old_archive_cmds_F77
15647 old_postinstall_cmds=$lt_old_postinstall_cmds
15648 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15649
15650 # Create an old-style archive from a shared archive.
15651 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15652
15653 # Create a temporary old-style archive to link instead of a shared archive.
15654 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15655
15656 # Commands used to build and install a shared archive.
15657 archive_cmds=$lt_archive_cmds_F77
15658 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15659 postinstall_cmds=$lt_postinstall_cmds
15660 postuninstall_cmds=$lt_postuninstall_cmds
15661
15662 # Commands used to build a loadable module (assumed same as above if empty)
15663 module_cmds=$lt_module_cmds_F77
15664 module_expsym_cmds=$lt_module_expsym_cmds_F77
15665
15666 # Commands to strip libraries.
15667 old_striplib=$lt_old_striplib
15668 striplib=$lt_striplib
15669
15670 # Dependencies to place before the objects being linked to create a
15671 # shared library.
15672 predep_objects=$lt_predep_objects_F77
15673
15674 # Dependencies to place after the objects being linked to create a
15675 # shared library.
15676 postdep_objects=$lt_postdep_objects_F77
15677
15678 # Dependencies to place before the objects being linked to create a
15679 # shared library.
15680 predeps=$lt_predeps_F77
15681
15682 # Dependencies to place after the objects being linked to create a
15683 # shared library.
15684 postdeps=$lt_postdeps_F77
15685
15686 # The library search path used internally by the compiler when linking
15687 # a shared library.
15688 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15689
15690 # Method to check whether dependent libraries are shared objects.
15691 deplibs_check_method=$lt_deplibs_check_method
15692
15693 # Command to use when deplibs_check_method == file_magic.
15694 file_magic_cmd=$lt_file_magic_cmd
15695
15696 # Flag that allows shared libraries with undefined symbols to be built.
15697 allow_undefined_flag=$lt_allow_undefined_flag_F77
15698
15699 # Flag that forces no undefined symbols.
15700 no_undefined_flag=$lt_no_undefined_flag_F77
15701
15702 # Commands used to finish a libtool library installation in a directory.
15703 finish_cmds=$lt_finish_cmds
15704
15705 # Same as above, but a single script fragment to be evaled but not shown.
15706 finish_eval=$lt_finish_eval
15707
15708 # Take the output of nm and produce a listing of raw symbols and C names.
15709 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15710
15711 # Transform the output of nm in a proper C declaration
15712 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15713
15714 # Transform the output of nm in a C name address pair
15715 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15716
15717 # This is the shared library runtime path variable.
15718 runpath_var=$runpath_var
15719
15720 # This is the shared library path variable.
15721 shlibpath_var=$shlibpath_var
15722
15723 # Is shlibpath searched before the hard-coded library search path?
15724 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15725
15726 # How to hardcode a shared library path into an executable.
15727 hardcode_action=$hardcode_action_F77
15728
15729 # Whether we should hardcode library paths into libraries.
15730 hardcode_into_libs=$hardcode_into_libs
15731
15732 # Flag to hardcode \$libdir into a binary during linking.
15733 # This must work even if \$libdir does not exist.
15734 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15735
15736 # If ld is used when linking, flag to hardcode \$libdir into
15737 # a binary during linking. This must work even if \$libdir does
15738 # not exist.
15739 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15740
15741 # Whether we need a single -rpath flag with a separated argument.
15742 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15743
15744 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15745 # resulting binary.
15746 hardcode_direct=$hardcode_direct_F77
15747
15748 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15749 # resulting binary.
15750 hardcode_minus_L=$hardcode_minus_L_F77
15751
15752 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15753 # the resulting binary.
15754 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15755
15756 # Set to yes if building a shared library automatically hardcodes DIR into the library
15757 # and all subsequent libraries and executables linked against it.
15758 hardcode_automatic=$hardcode_automatic_F77
15759
15760 # Variables whose values should be saved in libtool wrapper scripts and
15761 # restored at relink time.
15762 variables_saved_for_relink="$variables_saved_for_relink"
15763
15764 # Whether libtool must link a program against all its dependency libraries.
15765 link_all_deplibs=$link_all_deplibs_F77
15766
15767 # Compile-time system search path for libraries
15768 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15769
15770 # Run-time system search path for libraries
15771 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15772
15773 # Fix the shell variable \$srcfile for the compiler.
15774 fix_srcfile_path="$fix_srcfile_path_F77"
15775
15776 # Set to yes if exported symbols are required.
15777 always_export_symbols=$always_export_symbols_F77
15778
15779 # The commands to list exported symbols.
15780 export_symbols_cmds=$lt_export_symbols_cmds_F77
15781
15782 # The commands to extract the exported symbol list from a shared archive.
15783 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15784
15785 # Symbols that should not be listed in the preloaded symbols.
15786 exclude_expsyms=$lt_exclude_expsyms_F77
15787
15788 # Symbols that must always be exported.
15789 include_expsyms=$lt_include_expsyms_F77
15790
15791 # ### END LIBTOOL TAG CONFIG: $tagname
15792
15793 __EOF__
15794
15795
15796 else
15797 # If there is no Makefile yet, we rely on a make rule to execute
15798 # `config.status --recheck' to rerun these tests and create the
15799 # libtool script then.
15800 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15801 if test -f "$ltmain_in"; then
15802 test -f Makefile && make "$ltmain"
15803 fi
15804 fi
15805
15806
15807 ac_ext=c
15808 ac_cpp='$CPP $CPPFLAGS'
15809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15812
15813 CC="$lt_save_CC"
15814
15815 else
15816 tagname=""
15817 fi
15818 ;;
15819
15820 GCJ)
15821 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15822
15823
15824
15825 # Source file extension for Java test sources.
15826 ac_ext=java
15827
15828 # Object file extension for compiled Java test sources.
15829 objext=o
15830 objext_GCJ=$objext
15831
15832 # Code to be used in simple compile tests
15833 lt_simple_compile_test_code="class foo {}\n"
15834
15835 # Code to be used in simple link tests
15836 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15837
15838 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15839
15840 # If no C compiler was specified, use CC.
15841 LTCC=${LTCC-"$CC"}
15842
15843 # Allow CC to be a program name with arguments.
15844 compiler=$CC
15845
15846
15847 # Allow CC to be a program name with arguments.
15848 lt_save_CC="$CC"
15849 CC=${GCJ-"gcj"}
15850 compiler=$CC
15851 compiler_GCJ=$CC
15852
15853 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15854 archive_cmds_need_lc_GCJ=no
15855
15856
15857 lt_prog_compiler_no_builtin_flag_GCJ=
15858
15859 if test "$GCC" = yes; then
15860 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15861
15862
15863 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15864 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15865 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15866 echo $ECHO_N "(cached) $ECHO_C" >&6
15867 else
15868 lt_cv_prog_compiler_rtti_exceptions=no
15869 ac_outfile=conftest.$ac_objext
15870 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15871 lt_compiler_flag="-fno-rtti -fno-exceptions"
15872 # Insert the option either (1) after the last *FLAGS variable, or
15873 # (2) before a word containing "conftest.", or (3) at the end.
15874 # Note that $ac_compile itself does not contain backslashes and begins
15875 # with a dollar sign (not a hyphen), so the echo should work correctly.
15876 # The option is referenced via a variable to avoid confusing sed.
15877 lt_compile=`echo "$ac_compile" | $SED \
15878 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15879 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15880 -e 's:$: $lt_compiler_flag:'`
15881 (eval echo "\"\$as_me:15881: $lt_compile\"" >&5)
15882 (eval "$lt_compile" 2>conftest.err)
15883 ac_status=$?
15884 cat conftest.err >&5
15885 echo "$as_me:15885: \$? = $ac_status" >&5
15886 if (exit $ac_status) && test -s "$ac_outfile"; then
15887 # The compiler can only warn and ignore the option if not recognized
15888 # So say no if there are warnings
15889 if test ! -s conftest.err; then
15890 lt_cv_prog_compiler_rtti_exceptions=yes
15891 fi
15892 fi
15893 $rm conftest*
15894
15895 fi
15896 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15897 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15898
15899 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15900 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15901 else
15902 :
15903 fi
15904
15905 fi
15906
15907 lt_prog_compiler_wl_GCJ=
15908 lt_prog_compiler_pic_GCJ=
15909 lt_prog_compiler_static_GCJ=
15910
15911 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15912 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15913
15914 if test "$GCC" = yes; then
15915 lt_prog_compiler_wl_GCJ='-Wl,'
15916 lt_prog_compiler_static_GCJ='-static'
15917
15918 case $host_os in
15919 aix*)
15920 # All AIX code is PIC.
15921 if test "$host_cpu" = ia64; then
15922 # AIX 5 now supports IA64 processor
15923 lt_prog_compiler_static_GCJ='-Bstatic'
15924 fi
15925 ;;
15926
15927 amigaos*)
15928 # FIXME: we need at least 68020 code to build shared libraries, but
15929 # adding the `-m68020' flag to GCC prevents building anything better,
15930 # like `-m68040'.
15931 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15932 ;;
15933
15934 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15935 # PIC is the default for these OSes.
15936 ;;
15937
15938 mingw* | pw32* | os2*)
15939 # This hack is so that the source file can tell whether it is being
15940 # built for inclusion in a dll (and should export symbols for example).
15941 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15942 ;;
15943
15944 darwin* | rhapsody*)
15945 # PIC is the default on this platform
15946 # Common symbols not allowed in MH_DYLIB files
15947 lt_prog_compiler_pic_GCJ='-fno-common'
15948 ;;
15949
15950 msdosdjgpp*)
15951 # Just because we use GCC doesn't mean we suddenly get shared libraries
15952 # on systems that don't support them.
15953 lt_prog_compiler_can_build_shared_GCJ=no
15954 enable_shared=no
15955 ;;
15956
15957 sysv4*MP*)
15958 if test -d /usr/nec; then
15959 lt_prog_compiler_pic_GCJ=-Kconform_pic
15960 fi
15961 ;;
15962
15963 hpux*)
15964 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15965 # not for PA HP-UX.
15966 case "$host_cpu" in
15967 hppa*64*|ia64*)
15968 # +Z the default
15969 ;;
15970 *)
15971 lt_prog_compiler_pic_GCJ='-fPIC'
15972 ;;
15973 esac
15974 ;;
15975
15976 *)
15977 lt_prog_compiler_pic_GCJ='-fPIC'
15978 ;;
15979 esac
15980 else
15981 # PORTME Check for flag to pass linker flags through the system compiler.
15982 case $host_os in
15983 aix*)
15984 lt_prog_compiler_wl_GCJ='-Wl,'
15985 if test "$host_cpu" = ia64; then
15986 # AIX 5 now supports IA64 processor
15987 lt_prog_compiler_static_GCJ='-Bstatic'
15988 else
15989 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15990 fi
15991 ;;
15992
15993 mingw* | pw32* | os2*)
15994 # This hack is so that the source file can tell whether it is being
15995 # built for inclusion in a dll (and should export symbols for example).
15996 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15997 ;;
15998
15999 hpux9* | hpux10* | hpux11*)
16000 lt_prog_compiler_wl_GCJ='-Wl,'
16001 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16002 # not for PA HP-UX.
16003 case "$host_cpu" in
16004 hppa*64*|ia64*)
16005 # +Z the default
16006 ;;
16007 *)
16008 lt_prog_compiler_pic_GCJ='+Z'
16009 ;;
16010 esac
16011 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16012 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16013 ;;
16014
16015 irix5* | irix6* | nonstopux*)
16016 lt_prog_compiler_wl_GCJ='-Wl,'
16017 # PIC (with -KPIC) is the default.
16018 lt_prog_compiler_static_GCJ='-non_shared'
16019 ;;
16020
16021 newsos6)
16022 lt_prog_compiler_pic_GCJ='-KPIC'
16023 lt_prog_compiler_static_GCJ='-Bstatic'
16024 ;;
16025
16026 linux*)
16027 case $CC in
16028 icc* | ecc*)
16029 lt_prog_compiler_wl_GCJ='-Wl,'
16030 lt_prog_compiler_pic_GCJ='-KPIC'
16031 lt_prog_compiler_static_GCJ='-static'
16032 ;;
16033 ccc*)
16034 lt_prog_compiler_wl_GCJ='-Wl,'
16035 # All Alpha code is PIC.
16036 lt_prog_compiler_static_GCJ='-non_shared'
16037 ;;
16038 esac
16039 ;;
16040
16041 osf3* | osf4* | osf5*)
16042 lt_prog_compiler_wl_GCJ='-Wl,'
16043 # All OSF/1 code is PIC.
16044 lt_prog_compiler_static_GCJ='-non_shared'
16045 ;;
16046
16047 sco3.2v5*)
16048 lt_prog_compiler_pic_GCJ='-Kpic'
16049 lt_prog_compiler_static_GCJ='-dn'
16050 ;;
16051
16052 solaris*)
16053 lt_prog_compiler_wl_GCJ='-Wl,'
16054 lt_prog_compiler_pic_GCJ='-KPIC'
16055 lt_prog_compiler_static_GCJ='-Bstatic'
16056 ;;
16057
16058 sunos4*)
16059 lt_prog_compiler_wl_GCJ='-Qoption ld '
16060 lt_prog_compiler_pic_GCJ='-PIC'
16061 lt_prog_compiler_static_GCJ='-Bstatic'
16062 ;;
16063
16064 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16065 lt_prog_compiler_wl_GCJ='-Wl,'
16066 lt_prog_compiler_pic_GCJ='-KPIC'
16067 lt_prog_compiler_static_GCJ='-Bstatic'
16068 ;;
16069
16070 sysv4*MP*)
16071 if test -d /usr/nec ;then
16072 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16073 lt_prog_compiler_static_GCJ='-Bstatic'
16074 fi
16075 ;;
16076
16077 uts4*)
16078 lt_prog_compiler_pic_GCJ='-pic'
16079 lt_prog_compiler_static_GCJ='-Bstatic'
16080 ;;
16081
16082 *)
16083 lt_prog_compiler_can_build_shared_GCJ=no
16084 ;;
16085 esac
16086 fi
16087
16088 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16089 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16090
16091 #
16092 # Check to make sure the PIC flag actually works.
16093 #
16094 if test -n "$lt_prog_compiler_pic_GCJ"; then
16095
16096 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16097 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16098 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16099 echo $ECHO_N "(cached) $ECHO_C" >&6
16100 else
16101 lt_prog_compiler_pic_works_GCJ=no
16102 ac_outfile=conftest.$ac_objext
16103 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16104 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16105 # Insert the option either (1) after the last *FLAGS variable, or
16106 # (2) before a word containing "conftest.", or (3) at the end.
16107 # Note that $ac_compile itself does not contain backslashes and begins
16108 # with a dollar sign (not a hyphen), so the echo should work correctly.
16109 # The option is referenced via a variable to avoid confusing sed.
16110 lt_compile=`echo "$ac_compile" | $SED \
16111 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16112 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16113 -e 's:$: $lt_compiler_flag:'`
16114 (eval echo "\"\$as_me:16114: $lt_compile\"" >&5)
16115 (eval "$lt_compile" 2>conftest.err)
16116 ac_status=$?
16117 cat conftest.err >&5
16118 echo "$as_me:16118: \$? = $ac_status" >&5
16119 if (exit $ac_status) && test -s "$ac_outfile"; then
16120 # The compiler can only warn and ignore the option if not recognized
16121 # So say no if there are warnings
16122 if test ! -s conftest.err; then
16123 lt_prog_compiler_pic_works_GCJ=yes
16124 fi
16125 fi
16126 $rm conftest*
16127
16128 fi
16129 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16130 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16131
16132 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16133 case $lt_prog_compiler_pic_GCJ in
16134 "" | " "*) ;;
16135 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16136 esac
16137 else
16138 lt_prog_compiler_pic_GCJ=
16139 lt_prog_compiler_can_build_shared_GCJ=no
16140 fi
16141
16142 fi
16143 case "$host_os" in
16144 # For platforms which do not support PIC, -DPIC is meaningless:
16145 *djgpp*)
16146 lt_prog_compiler_pic_GCJ=
16147 ;;
16148 *)
16149 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16150 ;;
16151 esac
16152
16153 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16154 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16155 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16156 echo $ECHO_N "(cached) $ECHO_C" >&6
16157 else
16158 lt_cv_prog_compiler_c_o_GCJ=no
16159 $rm -r conftest 2>/dev/null
16160 mkdir conftest
16161 cd conftest
16162 mkdir out
16163 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16164
16165 lt_compiler_flag="-o out/conftest2.$ac_objext"
16166 # Insert the option either (1) after the last *FLAGS variable, or
16167 # (2) before a word containing "conftest.", or (3) at the end.
16168 # Note that $ac_compile itself does not contain backslashes and begins
16169 # with a dollar sign (not a hyphen), so the echo should work correctly.
16170 lt_compile=`echo "$ac_compile" | $SED \
16171 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16172 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16173 -e 's:$: $lt_compiler_flag:'`
16174 (eval echo "\"\$as_me:16174: $lt_compile\"" >&5)
16175 (eval "$lt_compile" 2>out/conftest.err)
16176 ac_status=$?
16177 cat out/conftest.err >&5
16178 echo "$as_me:16178: \$? = $ac_status" >&5
16179 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16180 then
16181 # The compiler can only warn and ignore the option if not recognized
16182 # So say no if there are warnings
16183 if test ! -s out/conftest.err; then
16184 lt_cv_prog_compiler_c_o_GCJ=yes
16185 fi
16186 fi
16187 chmod u+w .
16188 $rm conftest*
16189 # SGI C++ compiler will create directory out/ii_files/ for
16190 # template instantiation
16191 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16192 $rm out/* && rmdir out
16193 cd ..
16194 rmdir conftest
16195 $rm conftest*
16196
16197 fi
16198 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16199 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16200
16201
16202 hard_links="nottested"
16203 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16204 # do not overwrite the value of need_locks provided by the user
16205 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16206 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16207 hard_links=yes
16208 $rm conftest*
16209 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16210 touch conftest.a
16211 ln conftest.a conftest.b 2>&5 || hard_links=no
16212 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16213 echo "$as_me:$LINENO: result: $hard_links" >&5
16214 echo "${ECHO_T}$hard_links" >&6
16215 if test "$hard_links" = no; then
16216 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16217 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16218 need_locks=warn
16219 fi
16220 else
16221 need_locks=no
16222 fi
16223
16224 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16225 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16226
16227 runpath_var=
16228 allow_undefined_flag_GCJ=
16229 enable_shared_with_static_runtimes_GCJ=no
16230 archive_cmds_GCJ=
16231 archive_expsym_cmds_GCJ=
16232 old_archive_From_new_cmds_GCJ=
16233 old_archive_from_expsyms_cmds_GCJ=
16234 export_dynamic_flag_spec_GCJ=
16235 whole_archive_flag_spec_GCJ=
16236 thread_safe_flag_spec_GCJ=
16237 hardcode_libdir_flag_spec_GCJ=
16238 hardcode_libdir_flag_spec_ld_GCJ=
16239 hardcode_libdir_separator_GCJ=
16240 hardcode_direct_GCJ=no
16241 hardcode_minus_L_GCJ=no
16242 hardcode_shlibpath_var_GCJ=unsupported
16243 link_all_deplibs_GCJ=unknown
16244 hardcode_automatic_GCJ=no
16245 module_cmds_GCJ=
16246 module_expsym_cmds_GCJ=
16247 always_export_symbols_GCJ=no
16248 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16249 # include_expsyms should be a list of space-separated symbols to be *always*
16250 # included in the symbol list
16251 include_expsyms_GCJ=
16252 # exclude_expsyms can be an extended regexp of symbols to exclude
16253 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16254 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16255 # as well as any symbol that contains `d'.
16256 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16257 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16258 # platforms (ab)use it in PIC code, but their linkers get confused if
16259 # the symbol is explicitly referenced. Since portable code cannot
16260 # rely on this symbol name, it's probably fine to never include it in
16261 # preloaded symbol tables.
16262 extract_expsyms_cmds=
16263
16264 case $host_os in
16265 cygwin* | mingw* | pw32*)
16266 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16267 # When not using gcc, we currently assume that we are using
16268 # Microsoft Visual C++.
16269 if test "$GCC" != yes; then
16270 with_gnu_ld=no
16271 fi
16272 ;;
16273 openbsd*)
16274 with_gnu_ld=no
16275 ;;
16276 esac
16277
16278 ld_shlibs_GCJ=yes
16279 if test "$with_gnu_ld" = yes; then
16280 # If archive_cmds runs LD, not CC, wlarc should be empty
16281 wlarc='${wl}'
16282
16283 # See if GNU ld supports shared libraries.
16284 case $host_os in
16285 aix3* | aix4* | aix5*)
16286 # On AIX/PPC, the GNU linker is very broken
16287 if test "$host_cpu" != ia64; then
16288 ld_shlibs_GCJ=no
16289 cat <<EOF 1>&2
16290
16291 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16292 *** to be unable to reliably create shared libraries on AIX.
16293 *** Therefore, libtool is disabling shared libraries support. If you
16294 *** really care for shared libraries, you may want to modify your PATH
16295 *** so that a non-GNU linker is found, and then restart.
16296
16297 EOF
16298 fi
16299 ;;
16300
16301 amigaos*)
16302 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)'
16303 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16304 hardcode_minus_L_GCJ=yes
16305
16306 # Samuel A. Falvo II <[email protected]> reports
16307 # that the semantics of dynamic libraries on AmigaOS, at least up
16308 # to version 4, is to share data among multiple programs linked
16309 # with the same dynamic library. Since this doesn't match the
16310 # behavior of shared libraries on other platforms, we can't use
16311 # them.
16312 ld_shlibs_GCJ=no
16313 ;;
16314
16315 beos*)
16316 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16317 allow_undefined_flag_GCJ=unsupported
16318 # Joseph Beckenbach <[email protected]> says some releases of gcc
16319 # support --undefined. This deserves some investigation. FIXME
16320 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16321 else
16322 ld_shlibs_GCJ=no
16323 fi
16324 ;;
16325
16326 cygwin* | mingw* | pw32*)
16327 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16328 # as there is no search path for DLLs.
16329 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16330 allow_undefined_flag_GCJ=unsupported
16331 always_export_symbols_GCJ=no
16332 enable_shared_with_static_runtimes_GCJ=yes
16333 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16334
16335 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16336 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16337 # If the export-symbols file already is a .def file (1st line
16338 # is EXPORTS), use it as is; otherwise, prepend...
16339 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16340 cp $export_symbols $output_objdir/$soname.def;
16341 else
16342 echo EXPORTS > $output_objdir/$soname.def;
16343 cat $export_symbols >> $output_objdir/$soname.def;
16344 fi~
16345 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16346 else
16347 ld_shlibs=no
16348 fi
16349 ;;
16350
16351 netbsd*)
16352 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16353 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16354 wlarc=
16355 else
16356 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16357 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16358 fi
16359 ;;
16360
16361 solaris* | sysv5*)
16362 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16363 ld_shlibs_GCJ=no
16364 cat <<EOF 1>&2
16365
16366 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16367 *** create shared libraries on Solaris systems. Therefore, libtool
16368 *** is disabling shared libraries support. We urge you to upgrade GNU
16369 *** binutils to release 2.9.1 or newer. Another option is to modify
16370 *** your PATH or compiler configuration so that the native linker is
16371 *** used, and then restart.
16372
16373 EOF
16374 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16375 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16376 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16377 else
16378 ld_shlibs_GCJ=no
16379 fi
16380 ;;
16381
16382 sunos4*)
16383 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16384 wlarc=
16385 hardcode_direct_GCJ=yes
16386 hardcode_shlibpath_var_GCJ=no
16387 ;;
16388
16389 linux*)
16390 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16391 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16392 archive_cmds_GCJ="$tmp_archive_cmds"
16393 supports_anon_versioning=no
16394 case `$LD -v 2>/dev/null` in
16395 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16396 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16397 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16398 *\ 2.11.*) ;; # other 2.11 versions
16399 *) supports_anon_versioning=yes ;;
16400 esac
16401 if test $supports_anon_versioning = yes; then
16402 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16403 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16404 $echo "local: *; };" >> $output_objdir/$libname.ver~
16405 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16406 else
16407 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16408 fi
16409 else
16410 ld_shlibs_GCJ=no
16411 fi
16412 ;;
16413
16414 *)
16415 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16416 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16417 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16418 else
16419 ld_shlibs_GCJ=no
16420 fi
16421 ;;
16422 esac
16423
16424 if test "$ld_shlibs_GCJ" = yes; then
16425 runpath_var=LD_RUN_PATH
16426 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16427 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16428 # ancient GNU ld didn't support --whole-archive et. al.
16429 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16430 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16431 else
16432 whole_archive_flag_spec_GCJ=
16433 fi
16434 fi
16435 else
16436 # PORTME fill in a description of your system's linker (not GNU ld)
16437 case $host_os in
16438 aix3*)
16439 allow_undefined_flag_GCJ=unsupported
16440 always_export_symbols_GCJ=yes
16441 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'
16442 # Note: this linker hardcodes the directories in LIBPATH if there
16443 # are no directories specified by -L.
16444 hardcode_minus_L_GCJ=yes
16445 if test "$GCC" = yes && test -z "$link_static_flag"; then
16446 # Neither direct hardcoding nor static linking is supported with a
16447 # broken collect2.
16448 hardcode_direct_GCJ=unsupported
16449 fi
16450 ;;
16451
16452 aix4* | aix5*)
16453 if test "$host_cpu" = ia64; then
16454 # On IA64, the linker does run time linking by default, so we don't
16455 # have to do anything special.
16456 aix_use_runtimelinking=no
16457 exp_sym_flag='-Bexport'
16458 no_entry_flag=""
16459 else
16460 # If we're using GNU nm, then we don't want the "-C" option.
16461 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16462 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16463 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'
16464 else
16465 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'
16466 fi
16467 aix_use_runtimelinking=no
16468
16469 # Test if we are trying to use run time linking or normal
16470 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16471 # need to do runtime linking.
16472 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16473 for ld_flag in $LDFLAGS; do
16474 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16475 aix_use_runtimelinking=yes
16476 break
16477 fi
16478 done
16479 esac
16480
16481 exp_sym_flag='-bexport'
16482 no_entry_flag='-bnoentry'
16483 fi
16484
16485 # When large executables or shared objects are built, AIX ld can
16486 # have problems creating the table of contents. If linking a library
16487 # or program results in "error TOC overflow" add -mminimal-toc to
16488 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16489 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16490
16491 archive_cmds_GCJ=''
16492 hardcode_direct_GCJ=yes
16493 hardcode_libdir_separator_GCJ=':'
16494 link_all_deplibs_GCJ=yes
16495
16496 if test "$GCC" = yes; then
16497 case $host_os in aix4.012|aix4.012.*)
16498 # We only want to do this on AIX 4.2 and lower, the check
16499 # below for broken collect2 doesn't work under 4.3+
16500 collect2name=`${CC} -print-prog-name=collect2`
16501 if test -f "$collect2name" && \
16502 strings "$collect2name" | grep resolve_lib_name >/dev/null
16503 then
16504 # We have reworked collect2
16505 hardcode_direct_GCJ=yes
16506 else
16507 # We have old collect2
16508 hardcode_direct_GCJ=unsupported
16509 # It fails to find uninstalled libraries when the uninstalled
16510 # path is not listed in the libpath. Setting hardcode_minus_L
16511 # to unsupported forces relinking
16512 hardcode_minus_L_GCJ=yes
16513 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16514 hardcode_libdir_separator_GCJ=
16515 fi
16516 esac
16517 shared_flag='-shared'
16518 else
16519 # not using gcc
16520 if test "$host_cpu" = ia64; then
16521 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16522 # chokes on -Wl,-G. The following line is correct:
16523 shared_flag='-G'
16524 else
16525 if test "$aix_use_runtimelinking" = yes; then
16526 shared_flag='${wl}-G'
16527 else
16528 shared_flag='${wl}-bM:SRE'
16529 fi
16530 fi
16531 fi
16532
16533 # It seems that -bexpall does not export symbols beginning with
16534 # underscore (_), so it is better to generate a list of symbols to export.
16535 always_export_symbols_GCJ=yes
16536 if test "$aix_use_runtimelinking" = yes; then
16537 # Warning - without using the other runtime loading flags (-brtl),
16538 # -berok will link without error, but may produce a broken library.
16539 allow_undefined_flag_GCJ='-berok'
16540 # Determine the default libpath from the value encoded in an empty executable.
16541 cat >conftest.$ac_ext <<_ACEOF
16542 /* confdefs.h. */
16543 _ACEOF
16544 cat confdefs.h >>conftest.$ac_ext
16545 cat >>conftest.$ac_ext <<_ACEOF
16546 /* end confdefs.h. */
16547
16548 int
16549 main ()
16550 {
16551
16552 ;
16553 return 0;
16554 }
16555 _ACEOF
16556 rm -f conftest.$ac_objext conftest$ac_exeext
16557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16558 (eval $ac_link) 2>conftest.er1
16559 ac_status=$?
16560 grep -v '^ *+' conftest.er1 >conftest.err
16561 rm -f conftest.er1
16562 cat conftest.err >&5
16563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16564 (exit $ac_status); } &&
16565 { ac_try='test -z "$ac_c_werror_flag"
16566 || test ! -s conftest.err'
16567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16568 (eval $ac_try) 2>&5
16569 ac_status=$?
16570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16571 (exit $ac_status); }; } &&
16572 { ac_try='test -s conftest$ac_exeext'
16573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16574 (eval $ac_try) 2>&5
16575 ac_status=$?
16576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16577 (exit $ac_status); }; }; then
16578
16579 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16580 }'`
16581 # Check for a 64-bit object if we didn't find anything.
16582 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; }
16583 }'`; fi
16584 else
16585 echo "$as_me: failed program was:" >&5
16586 sed 's/^/| /' conftest.$ac_ext >&5
16587
16588 fi
16589 rm -f conftest.err conftest.$ac_objext \
16590 conftest$ac_exeext conftest.$ac_ext
16591 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16592
16593 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16594 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16595 else
16596 if test "$host_cpu" = ia64; then
16597 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16598 allow_undefined_flag_GCJ="-z nodefs"
16599 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
16600 else
16601 # Determine the default libpath from the value encoded in an empty executable.
16602 cat >conftest.$ac_ext <<_ACEOF
16603 /* confdefs.h. */
16604 _ACEOF
16605 cat confdefs.h >>conftest.$ac_ext
16606 cat >>conftest.$ac_ext <<_ACEOF
16607 /* end confdefs.h. */
16608
16609 int
16610 main ()
16611 {
16612
16613 ;
16614 return 0;
16615 }
16616 _ACEOF
16617 rm -f conftest.$ac_objext conftest$ac_exeext
16618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16619 (eval $ac_link) 2>conftest.er1
16620 ac_status=$?
16621 grep -v '^ *+' conftest.er1 >conftest.err
16622 rm -f conftest.er1
16623 cat conftest.err >&5
16624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16625 (exit $ac_status); } &&
16626 { ac_try='test -z "$ac_c_werror_flag"
16627 || test ! -s conftest.err'
16628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16629 (eval $ac_try) 2>&5
16630 ac_status=$?
16631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16632 (exit $ac_status); }; } &&
16633 { ac_try='test -s conftest$ac_exeext'
16634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16635 (eval $ac_try) 2>&5
16636 ac_status=$?
16637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16638 (exit $ac_status); }; }; then
16639
16640 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16641 }'`
16642 # Check for a 64-bit object if we didn't find anything.
16643 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; }
16644 }'`; fi
16645 else
16646 echo "$as_me: failed program was:" >&5
16647 sed 's/^/| /' conftest.$ac_ext >&5
16648
16649 fi
16650 rm -f conftest.err conftest.$ac_objext \
16651 conftest$ac_exeext conftest.$ac_ext
16652 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16653
16654 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16655 # Warning - without using the other run time loading flags,
16656 # -berok will link without error, but may produce a broken library.
16657 no_undefined_flag_GCJ=' ${wl}-bernotok'
16658 allow_undefined_flag_GCJ=' ${wl}-berok'
16659 # -bexpall does not export symbols beginning with underscore (_)
16660 always_export_symbols_GCJ=yes
16661 # Exported symbols can be pulled into shared objects from archives
16662 whole_archive_flag_spec_GCJ=' '
16663 archive_cmds_need_lc_GCJ=yes
16664 # This is similar to how AIX traditionally builds it's shared libraries.
16665 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16666 fi
16667 fi
16668 ;;
16669
16670 amigaos*)
16671 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)'
16672 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16673 hardcode_minus_L_GCJ=yes
16674 # see comment about different semantics on the GNU ld section
16675 ld_shlibs_GCJ=no
16676 ;;
16677
16678 bsdi4*)
16679 export_dynamic_flag_spec_GCJ=-rdynamic
16680 ;;
16681
16682 cygwin* | mingw* | pw32*)
16683 # When not using gcc, we currently assume that we are using
16684 # Microsoft Visual C++.
16685 # hardcode_libdir_flag_spec is actually meaningless, as there is
16686 # no search path for DLLs.
16687 hardcode_libdir_flag_spec_GCJ=' '
16688 allow_undefined_flag_GCJ=unsupported
16689 # Tell ltmain to make .lib files, not .a files.
16690 libext=lib
16691 # Tell ltmain to make .dll files, not .so files.
16692 shrext_cmds=".dll"
16693 # FIXME: Setting linknames here is a bad hack.
16694 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16695 # The linker will automatically build a .lib file if we build a DLL.
16696 old_archive_From_new_cmds_GCJ='true'
16697 # FIXME: Should let the user specify the lib program.
16698 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16699 fix_srcfile_path='`cygpath -w "$srcfile"`'
16700 enable_shared_with_static_runtimes_GCJ=yes
16701 ;;
16702
16703 darwin* | rhapsody*)
16704 if test "$GXX" = yes ; then
16705 archive_cmds_need_lc_GCJ=no
16706 case "$host_os" in
16707 rhapsody* | darwin1.[012])
16708 allow_undefined_flag_GCJ='-undefined suppress'
16709 ;;
16710 *) # Darwin 1.3 on
16711 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16712 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16713 else
16714 case ${MACOSX_DEPLOYMENT_TARGET} in
16715 10.[012])
16716 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16717 ;;
16718 10.*)
16719 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16720 ;;
16721 esac
16722 fi
16723 ;;
16724 esac
16725 lt_int_apple_cc_single_mod=no
16726 output_verbose_link_cmd='echo'
16727 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16728 lt_int_apple_cc_single_mod=yes
16729 fi
16730 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16731 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16732 else
16733 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16734 fi
16735 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16736 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16737 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16738 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16739 else
16740 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16741 fi
16742 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}'
16743 hardcode_direct_GCJ=no
16744 hardcode_automatic_GCJ=yes
16745 hardcode_shlibpath_var_GCJ=unsupported
16746 whole_archive_flag_spec_GCJ='-all_load $convenience'
16747 link_all_deplibs_GCJ=yes
16748 else
16749 ld_shlibs_GCJ=no
16750 fi
16751 ;;
16752
16753 dgux*)
16754 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16755 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16756 hardcode_shlibpath_var_GCJ=no
16757 ;;
16758
16759 freebsd1*)
16760 ld_shlibs_GCJ=no
16761 ;;
16762
16763 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16764 # support. Future versions do this automatically, but an explicit c++rt0.o
16765 # does not break anything, and helps significantly (at the cost of a little
16766 # extra space).
16767 freebsd2.2*)
16768 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16769 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16770 hardcode_direct_GCJ=yes
16771 hardcode_shlibpath_var_GCJ=no
16772 ;;
16773
16774 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16775 freebsd2*)
16776 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16777 hardcode_direct_GCJ=yes
16778 hardcode_minus_L_GCJ=yes
16779 hardcode_shlibpath_var_GCJ=no
16780 ;;
16781
16782 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16783 freebsd* | kfreebsd*-gnu)
16784 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16785 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16786 hardcode_direct_GCJ=yes
16787 hardcode_shlibpath_var_GCJ=no
16788 ;;
16789
16790 hpux9*)
16791 if test "$GCC" = yes; then
16792 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'
16793 else
16794 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'
16795 fi
16796 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16797 hardcode_libdir_separator_GCJ=:
16798 hardcode_direct_GCJ=yes
16799
16800 # hardcode_minus_L: Not really in the search PATH,
16801 # but as the default location of the library.
16802 hardcode_minus_L_GCJ=yes
16803 export_dynamic_flag_spec_GCJ='${wl}-E'
16804 ;;
16805
16806 hpux10* | hpux11*)
16807 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16808 case "$host_cpu" in
16809 hppa*64*|ia64*)
16810 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16811 ;;
16812 *)
16813 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16814 ;;
16815 esac
16816 else
16817 case "$host_cpu" in
16818 hppa*64*|ia64*)
16819 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16820 ;;
16821 *)
16822 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16823 ;;
16824 esac
16825 fi
16826 if test "$with_gnu_ld" = no; then
16827 case "$host_cpu" in
16828 hppa*64*)
16829 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16830 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16831 hardcode_libdir_separator_GCJ=:
16832 hardcode_direct_GCJ=no
16833 hardcode_shlibpath_var_GCJ=no
16834 ;;
16835 ia64*)
16836 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16837 hardcode_direct_GCJ=no
16838 hardcode_shlibpath_var_GCJ=no
16839
16840 # hardcode_minus_L: Not really in the search PATH,
16841 # but as the default location of the library.
16842 hardcode_minus_L_GCJ=yes
16843 ;;
16844 *)
16845 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16846 hardcode_libdir_separator_GCJ=:
16847 hardcode_direct_GCJ=yes
16848 export_dynamic_flag_spec_GCJ='${wl}-E'
16849
16850 # hardcode_minus_L: Not really in the search PATH,
16851 # but as the default location of the library.
16852 hardcode_minus_L_GCJ=yes
16853 ;;
16854 esac
16855 fi
16856 ;;
16857
16858 irix5* | irix6* | nonstopux*)
16859 if test "$GCC" = yes; then
16860 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'
16861 else
16862 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'
16863 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16864 fi
16865 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16866 hardcode_libdir_separator_GCJ=:
16867 link_all_deplibs_GCJ=yes
16868 ;;
16869
16870 netbsd*)
16871 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16872 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16873 else
16874 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16875 fi
16876 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16877 hardcode_direct_GCJ=yes
16878 hardcode_shlibpath_var_GCJ=no
16879 ;;
16880
16881 newsos6)
16882 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16883 hardcode_direct_GCJ=yes
16884 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16885 hardcode_libdir_separator_GCJ=:
16886 hardcode_shlibpath_var_GCJ=no
16887 ;;
16888
16889 openbsd*)
16890 hardcode_direct_GCJ=yes
16891 hardcode_shlibpath_var_GCJ=no
16892 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16893 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16894 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16895 export_dynamic_flag_spec_GCJ='${wl}-E'
16896 else
16897 case $host_os in
16898 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16899 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16900 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16901 ;;
16902 *)
16903 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16904 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16905 ;;
16906 esac
16907 fi
16908 ;;
16909
16910 os2*)
16911 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16912 hardcode_minus_L_GCJ=yes
16913 allow_undefined_flag_GCJ=unsupported
16914 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'
16915 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16916 ;;
16917
16918 osf3*)
16919 if test "$GCC" = yes; then
16920 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16921 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'
16922 else
16923 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16924 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'
16925 fi
16926 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16927 hardcode_libdir_separator_GCJ=:
16928 ;;
16929
16930 osf4* | osf5*) # as osf3* with the addition of -msym flag
16931 if test "$GCC" = yes; then
16932 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16933 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'
16934 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16935 else
16936 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16937 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'
16938 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~
16939 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16940
16941 # Both c and cxx compiler support -rpath directly
16942 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16943 fi
16944 hardcode_libdir_separator_GCJ=:
16945 ;;
16946
16947 sco3.2v5*)
16948 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16949 hardcode_shlibpath_var_GCJ=no
16950 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16951 runpath_var=LD_RUN_PATH
16952 hardcode_runpath_var=yes
16953 ;;
16954
16955 solaris*)
16956 no_undefined_flag_GCJ=' -z text'
16957 if test "$GCC" = yes; then
16958 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16959 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16960 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16961 else
16962 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16963 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16964 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16965 fi
16966 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16967 hardcode_shlibpath_var_GCJ=no
16968 case $host_os in
16969 solaris2.[0-5] | solaris2.[0-5].*) ;;
16970 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16971 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16972 esac
16973 link_all_deplibs_GCJ=yes
16974 ;;
16975
16976 sunos4*)
16977 if test "x$host_vendor" = xsequent; then
16978 # Use $CC to link under sequent, because it throws in some extra .o
16979 # files that make .init and .fini sections work.
16980 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16981 else
16982 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16983 fi
16984 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16985 hardcode_direct_GCJ=yes
16986 hardcode_minus_L_GCJ=yes
16987 hardcode_shlibpath_var_GCJ=no
16988 ;;
16989
16990 sysv4)
16991 case $host_vendor in
16992 sni)
16993 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16994 hardcode_direct_GCJ=yes # is this really true???
16995 ;;
16996 siemens)
16997 ## LD is ld it makes a PLAMLIB
16998 ## CC just makes a GrossModule.
16999 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17000 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17001 hardcode_direct_GCJ=no
17002 ;;
17003 motorola)
17004 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17005 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17006 ;;
17007 esac
17008 runpath_var='LD_RUN_PATH'
17009 hardcode_shlibpath_var_GCJ=no
17010 ;;
17011
17012 sysv4.3*)
17013 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17014 hardcode_shlibpath_var_GCJ=no
17015 export_dynamic_flag_spec_GCJ='-Bexport'
17016 ;;
17017
17018 sysv4*MP*)
17019 if test -d /usr/nec; then
17020 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17021 hardcode_shlibpath_var_GCJ=no
17022 runpath_var=LD_RUN_PATH
17023 hardcode_runpath_var=yes
17024 ld_shlibs_GCJ=yes
17025 fi
17026 ;;
17027
17028 sysv4.2uw2*)
17029 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17030 hardcode_direct_GCJ=yes
17031 hardcode_minus_L_GCJ=no
17032 hardcode_shlibpath_var_GCJ=no
17033 hardcode_runpath_var=yes
17034 runpath_var=LD_RUN_PATH
17035 ;;
17036
17037 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17038 no_undefined_flag_GCJ='${wl}-z ${wl}text'
17039 if test "$GCC" = yes; then
17040 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17041 else
17042 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17043 fi
17044 runpath_var='LD_RUN_PATH'
17045 hardcode_shlibpath_var_GCJ=no
17046 ;;
17047
17048 sysv5*)
17049 no_undefined_flag_GCJ=' -z text'
17050 # $CC -shared without GNU ld will not create a library from C++
17051 # object files and a static libstdc++, better avoid it by now
17052 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17053 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17054 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17055 hardcode_libdir_flag_spec_GCJ=
17056 hardcode_shlibpath_var_GCJ=no
17057 runpath_var='LD_RUN_PATH'
17058 ;;
17059
17060 uts4*)
17061 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17062 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17063 hardcode_shlibpath_var_GCJ=no
17064 ;;
17065
17066 *)
17067 ld_shlibs_GCJ=no
17068 ;;
17069 esac
17070 fi
17071
17072 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17073 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17074 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17075
17076 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17077 if test "$GCC" = yes; then
17078 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17079 fi
17080
17081 #
17082 # Do we need to explicitly link libc?
17083 #
17084 case "x$archive_cmds_need_lc_GCJ" in
17085 x|xyes)
17086 # Assume -lc should be added
17087 archive_cmds_need_lc_GCJ=yes
17088
17089 if test "$enable_shared" = yes && test "$GCC" = yes; then
17090 case $archive_cmds_GCJ in
17091 *'~'*)
17092 # FIXME: we may have to deal with multi-command sequences.
17093 ;;
17094 '$CC '*)
17095 # Test whether the compiler implicitly links with -lc since on some
17096 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17097 # to ld, don't add -lc before -lgcc.
17098 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17099 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17100 $rm conftest*
17101 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17102
17103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17104 (eval $ac_compile) 2>&5
17105 ac_status=$?
17106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17107 (exit $ac_status); } 2>conftest.err; then
17108 soname=conftest
17109 lib=conftest
17110 libobjs=conftest.$ac_objext
17111 deplibs=
17112 wl=$lt_prog_compiler_wl_GCJ
17113 compiler_flags=-v
17114 linker_flags=-v
17115 verstring=
17116 output_objdir=.
17117 libname=conftest
17118 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17119 allow_undefined_flag_GCJ=
17120 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17121 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17122 ac_status=$?
17123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17124 (exit $ac_status); }
17125 then
17126 archive_cmds_need_lc_GCJ=no
17127 else
17128 archive_cmds_need_lc_GCJ=yes
17129 fi
17130 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17131 else
17132 cat conftest.err 1>&5
17133 fi
17134 $rm conftest*
17135 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17136 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17137 ;;
17138 esac
17139 fi
17140 ;;
17141 esac
17142
17143 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17144 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17145 library_names_spec=
17146 libname_spec='lib$name'
17147 soname_spec=
17148 shrext_cmds=".so"
17149 postinstall_cmds=
17150 postuninstall_cmds=
17151 finish_cmds=
17152 finish_eval=
17153 shlibpath_var=
17154 shlibpath_overrides_runpath=unknown
17155 version_type=none
17156 dynamic_linker="$host_os ld.so"
17157 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17158 if test "$GCC" = yes; then
17159 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17160 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17161 # if the path contains ";" then we assume it to be the separator
17162 # otherwise default to the standard path separator (i.e. ":") - it is
17163 # assumed that no part of a normal pathname contains ";" but that should
17164 # okay in the real world where ";" in dirpaths is itself problematic.
17165 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17166 else
17167 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17168 fi
17169 else
17170 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17171 fi
17172 need_lib_prefix=unknown
17173 hardcode_into_libs=no
17174
17175 # when you set need_version to no, make sure it does not cause -set_version
17176 # flags to be left without arguments
17177 need_version=unknown
17178
17179 case $host_os in
17180 aix3*)
17181 version_type=linux
17182 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17183 shlibpath_var=LIBPATH
17184
17185 # AIX 3 has no versioning support, so we append a major version to the name.
17186 soname_spec='${libname}${release}${shared_ext}$major'
17187 ;;
17188
17189 aix4* | aix5*)
17190 version_type=linux
17191 need_lib_prefix=no
17192 need_version=no
17193 hardcode_into_libs=yes
17194 if test "$host_cpu" = ia64; then
17195 # AIX 5 supports IA64
17196 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17197 shlibpath_var=LD_LIBRARY_PATH
17198 else
17199 # With GCC up to 2.95.x, collect2 would create an import file
17200 # for dependence libraries. The import file would start with
17201 # the line `#! .'. This would cause the generated library to
17202 # depend on `.', always an invalid library. This was fixed in
17203 # development snapshots of GCC prior to 3.0.
17204 case $host_os in
17205 aix4 | aix4.[01] | aix4.[01].*)
17206 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17207 echo ' yes '
17208 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17209 :
17210 else
17211 can_build_shared=no
17212 fi
17213 ;;
17214 esac
17215 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17216 # soname into executable. Probably we can add versioning support to
17217 # collect2, so additional links can be useful in future.
17218 if test "$aix_use_runtimelinking" = yes; then
17219 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17220 # instead of lib<name>.a to let people know that these are not
17221 # typical AIX shared libraries.
17222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17223 else
17224 # We preserve .a as extension for shared libraries through AIX4.2
17225 # and later when we are not doing run time linking.
17226 library_names_spec='${libname}${release}.a $libname.a'
17227 soname_spec='${libname}${release}${shared_ext}$major'
17228 fi
17229 shlibpath_var=LIBPATH
17230 fi
17231 ;;
17232
17233 amigaos*)
17234 library_names_spec='$libname.ixlibrary $libname.a'
17235 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17236 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'
17237 ;;
17238
17239 beos*)
17240 library_names_spec='${libname}${shared_ext}'
17241 dynamic_linker="$host_os ld.so"
17242 shlibpath_var=LIBRARY_PATH
17243 ;;
17244
17245 bsdi4*)
17246 version_type=linux
17247 need_version=no
17248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17249 soname_spec='${libname}${release}${shared_ext}$major'
17250 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17251 shlibpath_var=LD_LIBRARY_PATH
17252 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17253 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17254 # the default ld.so.conf also contains /usr/contrib/lib and
17255 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17256 # libtool to hard-code these into programs
17257 ;;
17258
17259 cygwin* | mingw* | pw32*)
17260 version_type=windows
17261 shrext_cmds=".dll"
17262 need_version=no
17263 need_lib_prefix=no
17264
17265 case $GCC,$host_os in
17266 yes,cygwin* | yes,mingw* | yes,pw32*)
17267 library_names_spec='$libname.dll.a'
17268 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17269 postinstall_cmds='base_file=`basename \${file}`~
17270 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17271 dldir=$destdir/`dirname \$dlpath`~
17272 test -d \$dldir || mkdir -p \$dldir~
17273 $install_prog $dir/$dlname \$dldir/$dlname'
17274 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17275 dlpath=$dir/\$dldll~
17276 $rm \$dlpath'
17277 shlibpath_overrides_runpath=yes
17278
17279 case $host_os in
17280 cygwin*)
17281 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17282 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17283 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17284 ;;
17285 mingw*)
17286 # MinGW DLLs use traditional 'lib' prefix
17287 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17288 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17289 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17290 # It is most probably a Windows format PATH printed by
17291 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17292 # path with ; separators, and with drive letters. We can handle the
17293 # drive letters (cygwin fileutils understands them), so leave them,
17294 # especially as we might pass files found there to a mingw objdump,
17295 # which wouldn't understand a cygwinified path. Ahh.
17296 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17297 else
17298 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17299 fi
17300 ;;
17301 pw32*)
17302 # pw32 DLLs use 'pw' prefix rather than 'lib'
17303 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17304 ;;
17305 esac
17306 ;;
17307
17308 *)
17309 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17310 ;;
17311 esac
17312 dynamic_linker='Win32 ld.exe'
17313 # FIXME: first we should search . and the directory the executable is in
17314 shlibpath_var=PATH
17315 ;;
17316
17317 darwin* | rhapsody*)
17318 dynamic_linker="$host_os dyld"
17319 version_type=darwin
17320 need_lib_prefix=no
17321 need_version=no
17322 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17323 soname_spec='${libname}${release}${major}$shared_ext'
17324 shlibpath_overrides_runpath=yes
17325 shlibpath_var=DYLD_LIBRARY_PATH
17326 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17327 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17328 if test "$GCC" = yes; then
17329 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"`
17330 else
17331 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17332 fi
17333 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17334 ;;
17335
17336 dgux*)
17337 version_type=linux
17338 need_lib_prefix=no
17339 need_version=no
17340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17341 soname_spec='${libname}${release}${shared_ext}$major'
17342 shlibpath_var=LD_LIBRARY_PATH
17343 ;;
17344
17345 freebsd1*)
17346 dynamic_linker=no
17347 ;;
17348
17349 kfreebsd*-gnu)
17350 version_type=linux
17351 need_lib_prefix=no
17352 need_version=no
17353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17354 soname_spec='${libname}${release}${shared_ext}$major'
17355 shlibpath_var=LD_LIBRARY_PATH
17356 shlibpath_overrides_runpath=no
17357 hardcode_into_libs=yes
17358 dynamic_linker='GNU ld.so'
17359 ;;
17360
17361 freebsd*)
17362 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17363 version_type=freebsd-$objformat
17364 case $version_type in
17365 freebsd-elf*)
17366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17367 need_version=no
17368 need_lib_prefix=no
17369 ;;
17370 freebsd-*)
17371 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17372 need_version=yes
17373 ;;
17374 esac
17375 shlibpath_var=LD_LIBRARY_PATH
17376 case $host_os in
17377 freebsd2*)
17378 shlibpath_overrides_runpath=yes
17379 ;;
17380 freebsd3.01* | freebsdelf3.01*)
17381 shlibpath_overrides_runpath=yes
17382 hardcode_into_libs=yes
17383 ;;
17384 *) # from 3.2 on
17385 shlibpath_overrides_runpath=no
17386 hardcode_into_libs=yes
17387 ;;
17388 esac
17389 ;;
17390
17391 gnu*)
17392 version_type=linux
17393 need_lib_prefix=no
17394 need_version=no
17395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17396 soname_spec='${libname}${release}${shared_ext}$major'
17397 shlibpath_var=LD_LIBRARY_PATH
17398 hardcode_into_libs=yes
17399 ;;
17400
17401 hpux9* | hpux10* | hpux11*)
17402 # Give a soname corresponding to the major version so that dld.sl refuses to
17403 # link against other versions.
17404 version_type=sunos
17405 need_lib_prefix=no
17406 need_version=no
17407 case "$host_cpu" in
17408 ia64*)
17409 shrext_cmds='.so'
17410 hardcode_into_libs=yes
17411 dynamic_linker="$host_os dld.so"
17412 shlibpath_var=LD_LIBRARY_PATH
17413 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17415 soname_spec='${libname}${release}${shared_ext}$major'
17416 if test "X$HPUX_IA64_MODE" = X32; then
17417 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17418 else
17419 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17420 fi
17421 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17422 ;;
17423 hppa*64*)
17424 shrext_cmds='.sl'
17425 hardcode_into_libs=yes
17426 dynamic_linker="$host_os dld.sl"
17427 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17428 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17430 soname_spec='${libname}${release}${shared_ext}$major'
17431 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17432 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17433 ;;
17434 *)
17435 shrext_cmds='.sl'
17436 dynamic_linker="$host_os dld.sl"
17437 shlibpath_var=SHLIB_PATH
17438 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17440 soname_spec='${libname}${release}${shared_ext}$major'
17441 ;;
17442 esac
17443 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17444 postinstall_cmds='chmod 555 $lib'
17445 ;;
17446
17447 irix5* | irix6* | nonstopux*)
17448 case $host_os in
17449 nonstopux*) version_type=nonstopux ;;
17450 *)
17451 if test "$lt_cv_prog_gnu_ld" = yes; then
17452 version_type=linux
17453 else
17454 version_type=irix
17455 fi ;;
17456 esac
17457 need_lib_prefix=no
17458 need_version=no
17459 soname_spec='${libname}${release}${shared_ext}$major'
17460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17461 case $host_os in
17462 irix5* | nonstopux*)
17463 libsuff= shlibsuff=
17464 ;;
17465 *)
17466 case $LD in # libtool.m4 will add one of these switches to LD
17467 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17468 libsuff= shlibsuff= libmagic=32-bit;;
17469 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17470 libsuff=32 shlibsuff=N32 libmagic=N32;;
17471 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17472 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17473 *) libsuff= shlibsuff= libmagic=never-match;;
17474 esac
17475 ;;
17476 esac
17477 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17478 shlibpath_overrides_runpath=no
17479 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17480 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17481 hardcode_into_libs=yes
17482 ;;
17483
17484 # No shared lib support for Linux oldld, aout, or coff.
17485 linux*oldld* | linux*aout* | linux*coff*)
17486 dynamic_linker=no
17487 ;;
17488
17489 # This must be Linux ELF.
17490 linux*)
17491 version_type=linux
17492 need_lib_prefix=no
17493 need_version=no
17494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17495 soname_spec='${libname}${release}${shared_ext}$major'
17496 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17497 shlibpath_var=LD_LIBRARY_PATH
17498 shlibpath_overrides_runpath=no
17499 # This implies no fast_install, which is unacceptable.
17500 # Some rework will be needed to allow for fast_install
17501 # before this can be enabled.
17502 hardcode_into_libs=yes
17503
17504 # Append ld.so.conf contents to the search path
17505 if test -f /etc/ld.so.conf; then
17506 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17507 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17508 fi
17509
17510 # We used to test for /lib/ld.so.1 and disable shared libraries on
17511 # powerpc, because MkLinux only supported shared libraries with the
17512 # GNU dynamic linker. Since this was broken with cross compilers,
17513 # most powerpc-linux boxes support dynamic linking these days and
17514 # people can always --disable-shared, the test was removed, and we
17515 # assume the GNU/Linux dynamic linker is in use.
17516 dynamic_linker='GNU/Linux ld.so'
17517 ;;
17518
17519 knetbsd*-gnu)
17520 version_type=linux
17521 need_lib_prefix=no
17522 need_version=no
17523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17524 soname_spec='${libname}${release}${shared_ext}$major'
17525 shlibpath_var=LD_LIBRARY_PATH
17526 shlibpath_overrides_runpath=no
17527 hardcode_into_libs=yes
17528 dynamic_linker='GNU ld.so'
17529 ;;
17530
17531 netbsd*)
17532 version_type=sunos
17533 need_lib_prefix=no
17534 need_version=no
17535 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17537 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17538 dynamic_linker='NetBSD (a.out) ld.so'
17539 else
17540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17541 soname_spec='${libname}${release}${shared_ext}$major'
17542 dynamic_linker='NetBSD ld.elf_so'
17543 fi
17544 shlibpath_var=LD_LIBRARY_PATH
17545 shlibpath_overrides_runpath=yes
17546 hardcode_into_libs=yes
17547 ;;
17548
17549 newsos6)
17550 version_type=linux
17551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17552 shlibpath_var=LD_LIBRARY_PATH
17553 shlibpath_overrides_runpath=yes
17554 ;;
17555
17556 nto-qnx*)
17557 version_type=linux
17558 need_lib_prefix=no
17559 need_version=no
17560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17561 soname_spec='${libname}${release}${shared_ext}$major'
17562 shlibpath_var=LD_LIBRARY_PATH
17563 shlibpath_overrides_runpath=yes
17564 ;;
17565
17566 openbsd*)
17567 version_type=sunos
17568 need_lib_prefix=no
17569 need_version=yes
17570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17571 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17572 shlibpath_var=LD_LIBRARY_PATH
17573 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17574 case $host_os in
17575 openbsd2.[89] | openbsd2.[89].*)
17576 shlibpath_overrides_runpath=no
17577 ;;
17578 *)
17579 shlibpath_overrides_runpath=yes
17580 ;;
17581 esac
17582 else
17583 shlibpath_overrides_runpath=yes
17584 fi
17585 ;;
17586
17587 os2*)
17588 libname_spec='$name'
17589 shrext_cmds=".dll"
17590 need_lib_prefix=no
17591 library_names_spec='$libname${shared_ext} $libname.a'
17592 dynamic_linker='OS/2 ld.exe'
17593 shlibpath_var=LIBPATH
17594 ;;
17595
17596 osf3* | osf4* | osf5*)
17597 version_type=osf
17598 need_lib_prefix=no
17599 need_version=no
17600 soname_spec='${libname}${release}${shared_ext}$major'
17601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17602 shlibpath_var=LD_LIBRARY_PATH
17603 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17604 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17605 ;;
17606
17607 sco3.2v5*)
17608 version_type=osf
17609 soname_spec='${libname}${release}${shared_ext}$major'
17610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17611 shlibpath_var=LD_LIBRARY_PATH
17612 ;;
17613
17614 solaris*)
17615 version_type=linux
17616 need_lib_prefix=no
17617 need_version=no
17618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17619 soname_spec='${libname}${release}${shared_ext}$major'
17620 shlibpath_var=LD_LIBRARY_PATH
17621 shlibpath_overrides_runpath=yes
17622 hardcode_into_libs=yes
17623 # ldd complains unless libraries are executable
17624 postinstall_cmds='chmod +x $lib'
17625 ;;
17626
17627 sunos4*)
17628 version_type=sunos
17629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17630 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17631 shlibpath_var=LD_LIBRARY_PATH
17632 shlibpath_overrides_runpath=yes
17633 if test "$with_gnu_ld" = yes; then
17634 need_lib_prefix=no
17635 fi
17636 need_version=yes
17637 ;;
17638
17639 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17640 version_type=linux
17641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17642 soname_spec='${libname}${release}${shared_ext}$major'
17643 shlibpath_var=LD_LIBRARY_PATH
17644 case $host_vendor in
17645 sni)
17646 shlibpath_overrides_runpath=no
17647 need_lib_prefix=no
17648 export_dynamic_flag_spec='${wl}-Blargedynsym'
17649 runpath_var=LD_RUN_PATH
17650 ;;
17651 siemens)
17652 need_lib_prefix=no
17653 ;;
17654 motorola)
17655 need_lib_prefix=no
17656 need_version=no
17657 shlibpath_overrides_runpath=no
17658 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17659 ;;
17660 esac
17661 ;;
17662
17663 sysv4*MP*)
17664 if test -d /usr/nec ;then
17665 version_type=linux
17666 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17667 soname_spec='$libname${shared_ext}.$major'
17668 shlibpath_var=LD_LIBRARY_PATH
17669 fi
17670 ;;
17671
17672 uts4*)
17673 version_type=linux
17674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17675 soname_spec='${libname}${release}${shared_ext}$major'
17676 shlibpath_var=LD_LIBRARY_PATH
17677 ;;
17678
17679 *)
17680 dynamic_linker=no
17681 ;;
17682 esac
17683 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17684 echo "${ECHO_T}$dynamic_linker" >&6
17685 test "$dynamic_linker" = no && can_build_shared=no
17686
17687 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17688 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17689 hardcode_action_GCJ=
17690 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17691 test -n "$runpath_var GCJ" || \
17692 test "X$hardcode_automatic_GCJ"="Xyes" ; then
17693
17694 # We can hardcode non-existant directories.
17695 if test "$hardcode_direct_GCJ" != no &&
17696 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17697 # have to relink, otherwise we might link with an installed library
17698 # when we should be linking with a yet-to-be-installed one
17699 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17700 test "$hardcode_minus_L_GCJ" != no; then
17701 # Linking always hardcodes the temporary library directory.
17702 hardcode_action_GCJ=relink
17703 else
17704 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17705 hardcode_action_GCJ=immediate
17706 fi
17707 else
17708 # We cannot hardcode anything, or else we can only hardcode existing
17709 # directories.
17710 hardcode_action_GCJ=unsupported
17711 fi
17712 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17713 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17714
17715 if test "$hardcode_action_GCJ" = relink; then
17716 # Fast installation is not supported
17717 enable_fast_install=no
17718 elif test "$shlibpath_overrides_runpath" = yes ||
17719 test "$enable_shared" = no; then
17720 # Fast installation is not necessary
17721 enable_fast_install=needless
17722 fi
17723
17724 striplib=
17725 old_striplib=
17726 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17727 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17728 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17729 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17730 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17731 echo "$as_me:$LINENO: result: yes" >&5
17732 echo "${ECHO_T}yes" >&6
17733 else
17734 # FIXME - insert some real tests, host_os isn't really good enough
17735 case $host_os in
17736 darwin*)
17737 if test -n "$STRIP" ; then
17738 striplib="$STRIP -x"
17739 echo "$as_me:$LINENO: result: yes" >&5
17740 echo "${ECHO_T}yes" >&6
17741 else
17742 echo "$as_me:$LINENO: result: no" >&5
17743 echo "${ECHO_T}no" >&6
17744 fi
17745 ;;
17746 *)
17747 echo "$as_me:$LINENO: result: no" >&5
17748 echo "${ECHO_T}no" >&6
17749 ;;
17750 esac
17751 fi
17752
17753 if test "x$enable_dlopen" != xyes; then
17754 enable_dlopen=unknown
17755 enable_dlopen_self=unknown
17756 enable_dlopen_self_static=unknown
17757 else
17758 lt_cv_dlopen=no
17759 lt_cv_dlopen_libs=
17760
17761 case $host_os in
17762 beos*)
17763 lt_cv_dlopen="load_add_on"
17764 lt_cv_dlopen_libs=
17765 lt_cv_dlopen_self=yes
17766 ;;
17767
17768 mingw* | pw32*)
17769 lt_cv_dlopen="LoadLibrary"
17770 lt_cv_dlopen_libs=
17771 ;;
17772
17773 cygwin*)
17774 lt_cv_dlopen="dlopen"
17775 lt_cv_dlopen_libs=
17776 ;;
17777
17778 darwin*)
17779 # if libdl is installed we need to link against it
17780 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17781 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17782 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17783 echo $ECHO_N "(cached) $ECHO_C" >&6
17784 else
17785 ac_check_lib_save_LIBS=$LIBS
17786 LIBS="-ldl $LIBS"
17787 cat >conftest.$ac_ext <<_ACEOF
17788 /* confdefs.h. */
17789 _ACEOF
17790 cat confdefs.h >>conftest.$ac_ext
17791 cat >>conftest.$ac_ext <<_ACEOF
17792 /* end confdefs.h. */
17793
17794 /* Override any gcc2 internal prototype to avoid an error. */
17795 #ifdef __cplusplus
17796 extern "C"
17797 #endif
17798 /* We use char because int might match the return type of a gcc2
17799 builtin and then its argument prototype would still apply. */
17800 char dlopen ();
17801 int
17802 main ()
17803 {
17804 dlopen ();
17805 ;
17806 return 0;
17807 }
17808 _ACEOF
17809 rm -f conftest.$ac_objext conftest$ac_exeext
17810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17811 (eval $ac_link) 2>conftest.er1
17812 ac_status=$?
17813 grep -v '^ *+' conftest.er1 >conftest.err
17814 rm -f conftest.er1
17815 cat conftest.err >&5
17816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17817 (exit $ac_status); } &&
17818 { ac_try='test -z "$ac_c_werror_flag"
17819 || test ! -s conftest.err'
17820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17821 (eval $ac_try) 2>&5
17822 ac_status=$?
17823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17824 (exit $ac_status); }; } &&
17825 { ac_try='test -s conftest$ac_exeext'
17826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17827 (eval $ac_try) 2>&5
17828 ac_status=$?
17829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17830 (exit $ac_status); }; }; then
17831 ac_cv_lib_dl_dlopen=yes
17832 else
17833 echo "$as_me: failed program was:" >&5
17834 sed 's/^/| /' conftest.$ac_ext >&5
17835
17836 ac_cv_lib_dl_dlopen=no
17837 fi
17838 rm -f conftest.err conftest.$ac_objext \
17839 conftest$ac_exeext conftest.$ac_ext
17840 LIBS=$ac_check_lib_save_LIBS
17841 fi
17842 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17843 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17844 if test $ac_cv_lib_dl_dlopen = yes; then
17845 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17846 else
17847
17848 lt_cv_dlopen="dyld"
17849 lt_cv_dlopen_libs=
17850 lt_cv_dlopen_self=yes
17851
17852 fi
17853
17854 ;;
17855
17856 *)
17857 echo "$as_me:$LINENO: checking for shl_load" >&5
17858 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17859 if test "${ac_cv_func_shl_load+set}" = set; then
17860 echo $ECHO_N "(cached) $ECHO_C" >&6
17861 else
17862 cat >conftest.$ac_ext <<_ACEOF
17863 /* confdefs.h. */
17864 _ACEOF
17865 cat confdefs.h >>conftest.$ac_ext
17866 cat >>conftest.$ac_ext <<_ACEOF
17867 /* end confdefs.h. */
17868 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17869 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17870 #define shl_load innocuous_shl_load
17871
17872 /* System header to define __stub macros and hopefully few prototypes,
17873 which can conflict with char shl_load (); below.
17874 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17875 <limits.h> exists even on freestanding compilers. */
17876
17877 #ifdef __STDC__
17878 # include <limits.h>
17879 #else
17880 # include <assert.h>
17881 #endif
17882
17883 #undef shl_load
17884
17885 /* Override any gcc2 internal prototype to avoid an error. */
17886 #ifdef __cplusplus
17887 extern "C"
17888 {
17889 #endif
17890 /* We use char because int might match the return type of a gcc2
17891 builtin and then its argument prototype would still apply. */
17892 char shl_load ();
17893 /* The GNU C library defines this for functions which it implements
17894 to always fail with ENOSYS. Some functions are actually named
17895 something starting with __ and the normal name is an alias. */
17896 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17897 choke me
17898 #else
17899 char (*f) () = shl_load;
17900 #endif
17901 #ifdef __cplusplus
17902 }
17903 #endif
17904
17905 int
17906 main ()
17907 {
17908 return f != shl_load;
17909 ;
17910 return 0;
17911 }
17912 _ACEOF
17913 rm -f conftest.$ac_objext conftest$ac_exeext
17914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17915 (eval $ac_link) 2>conftest.er1
17916 ac_status=$?
17917 grep -v '^ *+' conftest.er1 >conftest.err
17918 rm -f conftest.er1
17919 cat conftest.err >&5
17920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17921 (exit $ac_status); } &&
17922 { ac_try='test -z "$ac_c_werror_flag"
17923 || test ! -s conftest.err'
17924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17925 (eval $ac_try) 2>&5
17926 ac_status=$?
17927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17928 (exit $ac_status); }; } &&
17929 { ac_try='test -s conftest$ac_exeext'
17930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17931 (eval $ac_try) 2>&5
17932 ac_status=$?
17933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17934 (exit $ac_status); }; }; then
17935 ac_cv_func_shl_load=yes
17936 else
17937 echo "$as_me: failed program was:" >&5
17938 sed 's/^/| /' conftest.$ac_ext >&5
17939
17940 ac_cv_func_shl_load=no
17941 fi
17942 rm -f conftest.err conftest.$ac_objext \
17943 conftest$ac_exeext conftest.$ac_ext
17944 fi
17945 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17946 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17947 if test $ac_cv_func_shl_load = yes; then
17948 lt_cv_dlopen="shl_load"
17949 else
17950 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17951 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17952 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17953 echo $ECHO_N "(cached) $ECHO_C" >&6
17954 else
17955 ac_check_lib_save_LIBS=$LIBS
17956 LIBS="-ldld $LIBS"
17957 cat >conftest.$ac_ext <<_ACEOF
17958 /* confdefs.h. */
17959 _ACEOF
17960 cat confdefs.h >>conftest.$ac_ext
17961 cat >>conftest.$ac_ext <<_ACEOF
17962 /* end confdefs.h. */
17963
17964 /* Override any gcc2 internal prototype to avoid an error. */
17965 #ifdef __cplusplus
17966 extern "C"
17967 #endif
17968 /* We use char because int might match the return type of a gcc2
17969 builtin and then its argument prototype would still apply. */
17970 char shl_load ();
17971 int
17972 main ()
17973 {
17974 shl_load ();
17975 ;
17976 return 0;
17977 }
17978 _ACEOF
17979 rm -f conftest.$ac_objext conftest$ac_exeext
17980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17981 (eval $ac_link) 2>conftest.er1
17982 ac_status=$?
17983 grep -v '^ *+' conftest.er1 >conftest.err
17984 rm -f conftest.er1
17985 cat conftest.err >&5
17986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17987 (exit $ac_status); } &&
17988 { ac_try='test -z "$ac_c_werror_flag"
17989 || test ! -s conftest.err'
17990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17991 (eval $ac_try) 2>&5
17992 ac_status=$?
17993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17994 (exit $ac_status); }; } &&
17995 { ac_try='test -s conftest$ac_exeext'
17996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17997 (eval $ac_try) 2>&5
17998 ac_status=$?
17999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000 (exit $ac_status); }; }; then
18001 ac_cv_lib_dld_shl_load=yes
18002 else
18003 echo "$as_me: failed program was:" >&5
18004 sed 's/^/| /' conftest.$ac_ext >&5
18005
18006 ac_cv_lib_dld_shl_load=no
18007 fi
18008 rm -f conftest.err conftest.$ac_objext \
18009 conftest$ac_exeext conftest.$ac_ext
18010 LIBS=$ac_check_lib_save_LIBS
18011 fi
18012 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18013 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18014 if test $ac_cv_lib_dld_shl_load = yes; then
18015 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18016 else
18017 echo "$as_me:$LINENO: checking for dlopen" >&5
18018 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18019 if test "${ac_cv_func_dlopen+set}" = set; then
18020 echo $ECHO_N "(cached) $ECHO_C" >&6
18021 else
18022 cat >conftest.$ac_ext <<_ACEOF
18023 /* confdefs.h. */
18024 _ACEOF
18025 cat confdefs.h >>conftest.$ac_ext
18026 cat >>conftest.$ac_ext <<_ACEOF
18027 /* end confdefs.h. */
18028 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18029 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18030 #define dlopen innocuous_dlopen
18031
18032 /* System header to define __stub macros and hopefully few prototypes,
18033 which can conflict with char dlopen (); below.
18034 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18035 <limits.h> exists even on freestanding compilers. */
18036
18037 #ifdef __STDC__
18038 # include <limits.h>
18039 #else
18040 # include <assert.h>
18041 #endif
18042
18043 #undef dlopen
18044
18045 /* Override any gcc2 internal prototype to avoid an error. */
18046 #ifdef __cplusplus
18047 extern "C"
18048 {
18049 #endif
18050 /* We use char because int might match the return type of a gcc2
18051 builtin and then its argument prototype would still apply. */
18052 char dlopen ();
18053 /* The GNU C library defines this for functions which it implements
18054 to always fail with ENOSYS. Some functions are actually named
18055 something starting with __ and the normal name is an alias. */
18056 #if defined (__stub_dlopen) || defined (__stub___dlopen)
18057 choke me
18058 #else
18059 char (*f) () = dlopen;
18060 #endif
18061 #ifdef __cplusplus
18062 }
18063 #endif
18064
18065 int
18066 main ()
18067 {
18068 return f != dlopen;
18069 ;
18070 return 0;
18071 }
18072 _ACEOF
18073 rm -f conftest.$ac_objext conftest$ac_exeext
18074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18075 (eval $ac_link) 2>conftest.er1
18076 ac_status=$?
18077 grep -v '^ *+' conftest.er1 >conftest.err
18078 rm -f conftest.er1
18079 cat conftest.err >&5
18080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18081 (exit $ac_status); } &&
18082 { ac_try='test -z "$ac_c_werror_flag"
18083 || test ! -s conftest.err'
18084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18085 (eval $ac_try) 2>&5
18086 ac_status=$?
18087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18088 (exit $ac_status); }; } &&
18089 { ac_try='test -s conftest$ac_exeext'
18090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18091 (eval $ac_try) 2>&5
18092 ac_status=$?
18093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18094 (exit $ac_status); }; }; then
18095 ac_cv_func_dlopen=yes
18096 else
18097 echo "$as_me: failed program was:" >&5
18098 sed 's/^/| /' conftest.$ac_ext >&5
18099
18100 ac_cv_func_dlopen=no
18101 fi
18102 rm -f conftest.err conftest.$ac_objext \
18103 conftest$ac_exeext conftest.$ac_ext
18104 fi
18105 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18106 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18107 if test $ac_cv_func_dlopen = yes; then
18108 lt_cv_dlopen="dlopen"
18109 else
18110 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18111 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18112 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18113 echo $ECHO_N "(cached) $ECHO_C" >&6
18114 else
18115 ac_check_lib_save_LIBS=$LIBS
18116 LIBS="-ldl $LIBS"
18117 cat >conftest.$ac_ext <<_ACEOF
18118 /* confdefs.h. */
18119 _ACEOF
18120 cat confdefs.h >>conftest.$ac_ext
18121 cat >>conftest.$ac_ext <<_ACEOF
18122 /* end confdefs.h. */
18123
18124 /* Override any gcc2 internal prototype to avoid an error. */
18125 #ifdef __cplusplus
18126 extern "C"
18127 #endif
18128 /* We use char because int might match the return type of a gcc2
18129 builtin and then its argument prototype would still apply. */
18130 char dlopen ();
18131 int
18132 main ()
18133 {
18134 dlopen ();
18135 ;
18136 return 0;
18137 }
18138 _ACEOF
18139 rm -f conftest.$ac_objext conftest$ac_exeext
18140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18141 (eval $ac_link) 2>conftest.er1
18142 ac_status=$?
18143 grep -v '^ *+' conftest.er1 >conftest.err
18144 rm -f conftest.er1
18145 cat conftest.err >&5
18146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18147 (exit $ac_status); } &&
18148 { ac_try='test -z "$ac_c_werror_flag"
18149 || test ! -s conftest.err'
18150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18151 (eval $ac_try) 2>&5
18152 ac_status=$?
18153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18154 (exit $ac_status); }; } &&
18155 { ac_try='test -s conftest$ac_exeext'
18156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18157 (eval $ac_try) 2>&5
18158 ac_status=$?
18159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18160 (exit $ac_status); }; }; then
18161 ac_cv_lib_dl_dlopen=yes
18162 else
18163 echo "$as_me: failed program was:" >&5
18164 sed 's/^/| /' conftest.$ac_ext >&5
18165
18166 ac_cv_lib_dl_dlopen=no
18167 fi
18168 rm -f conftest.err conftest.$ac_objext \
18169 conftest$ac_exeext conftest.$ac_ext
18170 LIBS=$ac_check_lib_save_LIBS
18171 fi
18172 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18173 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18174 if test $ac_cv_lib_dl_dlopen = yes; then
18175 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18176 else
18177 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18178 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18179 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18180 echo $ECHO_N "(cached) $ECHO_C" >&6
18181 else
18182 ac_check_lib_save_LIBS=$LIBS
18183 LIBS="-lsvld $LIBS"
18184 cat >conftest.$ac_ext <<_ACEOF
18185 /* confdefs.h. */
18186 _ACEOF
18187 cat confdefs.h >>conftest.$ac_ext
18188 cat >>conftest.$ac_ext <<_ACEOF
18189 /* end confdefs.h. */
18190
18191 /* Override any gcc2 internal prototype to avoid an error. */
18192 #ifdef __cplusplus
18193 extern "C"
18194 #endif
18195 /* We use char because int might match the return type of a gcc2
18196 builtin and then its argument prototype would still apply. */
18197 char dlopen ();
18198 int
18199 main ()
18200 {
18201 dlopen ();
18202 ;
18203 return 0;
18204 }
18205 _ACEOF
18206 rm -f conftest.$ac_objext conftest$ac_exeext
18207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18208 (eval $ac_link) 2>conftest.er1
18209 ac_status=$?
18210 grep -v '^ *+' conftest.er1 >conftest.err
18211 rm -f conftest.er1
18212 cat conftest.err >&5
18213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18214 (exit $ac_status); } &&
18215 { ac_try='test -z "$ac_c_werror_flag"
18216 || test ! -s conftest.err'
18217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18218 (eval $ac_try) 2>&5
18219 ac_status=$?
18220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18221 (exit $ac_status); }; } &&
18222 { ac_try='test -s conftest$ac_exeext'
18223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18224 (eval $ac_try) 2>&5
18225 ac_status=$?
18226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18227 (exit $ac_status); }; }; then
18228 ac_cv_lib_svld_dlopen=yes
18229 else
18230 echo "$as_me: failed program was:" >&5
18231 sed 's/^/| /' conftest.$ac_ext >&5
18232
18233 ac_cv_lib_svld_dlopen=no
18234 fi
18235 rm -f conftest.err conftest.$ac_objext \
18236 conftest$ac_exeext conftest.$ac_ext
18237 LIBS=$ac_check_lib_save_LIBS
18238 fi
18239 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18240 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18241 if test $ac_cv_lib_svld_dlopen = yes; then
18242 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18243 else
18244 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18245 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18246 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18247 echo $ECHO_N "(cached) $ECHO_C" >&6
18248 else
18249 ac_check_lib_save_LIBS=$LIBS
18250 LIBS="-ldld $LIBS"
18251 cat >conftest.$ac_ext <<_ACEOF
18252 /* confdefs.h. */
18253 _ACEOF
18254 cat confdefs.h >>conftest.$ac_ext
18255 cat >>conftest.$ac_ext <<_ACEOF
18256 /* end confdefs.h. */
18257
18258 /* Override any gcc2 internal prototype to avoid an error. */
18259 #ifdef __cplusplus
18260 extern "C"
18261 #endif
18262 /* We use char because int might match the return type of a gcc2
18263 builtin and then its argument prototype would still apply. */
18264 char dld_link ();
18265 int
18266 main ()
18267 {
18268 dld_link ();
18269 ;
18270 return 0;
18271 }
18272 _ACEOF
18273 rm -f conftest.$ac_objext conftest$ac_exeext
18274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18275 (eval $ac_link) 2>conftest.er1
18276 ac_status=$?
18277 grep -v '^ *+' conftest.er1 >conftest.err
18278 rm -f conftest.er1
18279 cat conftest.err >&5
18280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18281 (exit $ac_status); } &&
18282 { ac_try='test -z "$ac_c_werror_flag"
18283 || test ! -s conftest.err'
18284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18285 (eval $ac_try) 2>&5
18286 ac_status=$?
18287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18288 (exit $ac_status); }; } &&
18289 { ac_try='test -s conftest$ac_exeext'
18290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18291 (eval $ac_try) 2>&5
18292 ac_status=$?
18293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18294 (exit $ac_status); }; }; then
18295 ac_cv_lib_dld_dld_link=yes
18296 else
18297 echo "$as_me: failed program was:" >&5
18298 sed 's/^/| /' conftest.$ac_ext >&5
18299
18300 ac_cv_lib_dld_dld_link=no
18301 fi
18302 rm -f conftest.err conftest.$ac_objext \
18303 conftest$ac_exeext conftest.$ac_ext
18304 LIBS=$ac_check_lib_save_LIBS
18305 fi
18306 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18307 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18308 if test $ac_cv_lib_dld_dld_link = yes; then
18309 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18310 fi
18311
18312
18313 fi
18314
18315
18316 fi
18317
18318
18319 fi
18320
18321
18322 fi
18323
18324
18325 fi
18326
18327 ;;
18328 esac
18329
18330 if test "x$lt_cv_dlopen" != xno; then
18331 enable_dlopen=yes
18332 else
18333 enable_dlopen=no
18334 fi
18335
18336 case $lt_cv_dlopen in
18337 dlopen)
18338 save_CPPFLAGS="$CPPFLAGS"
18339 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18340
18341 save_LDFLAGS="$LDFLAGS"
18342 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18343
18344 save_LIBS="$LIBS"
18345 LIBS="$lt_cv_dlopen_libs $LIBS"
18346
18347 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18348 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18349 if test "${lt_cv_dlopen_self+set}" = set; then
18350 echo $ECHO_N "(cached) $ECHO_C" >&6
18351 else
18352 if test "$cross_compiling" = yes; then :
18353 lt_cv_dlopen_self=cross
18354 else
18355 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18356 lt_status=$lt_dlunknown
18357 cat > conftest.$ac_ext <<EOF
18358 #line 18358 "configure"
18359 #include "confdefs.h"
18360
18361 #if HAVE_DLFCN_H
18362 #include <dlfcn.h>
18363 #endif
18364
18365 #include <stdio.h>
18366
18367 #ifdef RTLD_GLOBAL
18368 # define LT_DLGLOBAL RTLD_GLOBAL
18369 #else
18370 # ifdef DL_GLOBAL
18371 # define LT_DLGLOBAL DL_GLOBAL
18372 # else
18373 # define LT_DLGLOBAL 0
18374 # endif
18375 #endif
18376
18377 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18378 find out it does not work in some platform. */
18379 #ifndef LT_DLLAZY_OR_NOW
18380 # ifdef RTLD_LAZY
18381 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18382 # else
18383 # ifdef DL_LAZY
18384 # define LT_DLLAZY_OR_NOW DL_LAZY
18385 # else
18386 # ifdef RTLD_NOW
18387 # define LT_DLLAZY_OR_NOW RTLD_NOW
18388 # else
18389 # ifdef DL_NOW
18390 # define LT_DLLAZY_OR_NOW DL_NOW
18391 # else
18392 # define LT_DLLAZY_OR_NOW 0
18393 # endif
18394 # endif
18395 # endif
18396 # endif
18397 #endif
18398
18399 #ifdef __cplusplus
18400 extern "C" void exit (int);
18401 #endif
18402
18403 void fnord() { int i=42;}
18404 int main ()
18405 {
18406 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18407 int status = $lt_dlunknown;
18408
18409 if (self)
18410 {
18411 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18412 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18413 /* dlclose (self); */
18414 }
18415
18416 exit (status);
18417 }
18418 EOF
18419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18420 (eval $ac_link) 2>&5
18421 ac_status=$?
18422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18423 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18424 (./conftest; exit; ) 2>/dev/null
18425 lt_status=$?
18426 case x$lt_status in
18427 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18428 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18429 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18430 esac
18431 else :
18432 # compilation failed
18433 lt_cv_dlopen_self=no
18434 fi
18435 fi
18436 rm -fr conftest*
18437
18438
18439 fi
18440 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18441 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18442
18443 if test "x$lt_cv_dlopen_self" = xyes; then
18444 LDFLAGS="$LDFLAGS $link_static_flag"
18445 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18446 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18447 if test "${lt_cv_dlopen_self_static+set}" = set; then
18448 echo $ECHO_N "(cached) $ECHO_C" >&6
18449 else
18450 if test "$cross_compiling" = yes; then :
18451 lt_cv_dlopen_self_static=cross
18452 else
18453 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18454 lt_status=$lt_dlunknown
18455 cat > conftest.$ac_ext <<EOF
18456 #line 18456 "configure"
18457 #include "confdefs.h"
18458
18459 #if HAVE_DLFCN_H
18460 #include <dlfcn.h>
18461 #endif
18462
18463 #include <stdio.h>
18464
18465 #ifdef RTLD_GLOBAL
18466 # define LT_DLGLOBAL RTLD_GLOBAL
18467 #else
18468 # ifdef DL_GLOBAL
18469 # define LT_DLGLOBAL DL_GLOBAL
18470 # else
18471 # define LT_DLGLOBAL 0
18472 # endif
18473 #endif
18474
18475 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18476 find out it does not work in some platform. */
18477 #ifndef LT_DLLAZY_OR_NOW
18478 # ifdef RTLD_LAZY
18479 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18480 # else
18481 # ifdef DL_LAZY
18482 # define LT_DLLAZY_OR_NOW DL_LAZY
18483 # else
18484 # ifdef RTLD_NOW
18485 # define LT_DLLAZY_OR_NOW RTLD_NOW
18486 # else
18487 # ifdef DL_NOW
18488 # define LT_DLLAZY_OR_NOW DL_NOW
18489 # else
18490 # define LT_DLLAZY_OR_NOW 0
18491 # endif
18492 # endif
18493 # endif
18494 # endif
18495 #endif
18496
18497 #ifdef __cplusplus
18498 extern "C" void exit (int);
18499 #endif
18500
18501 void fnord() { int i=42;}
18502 int main ()
18503 {
18504 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18505 int status = $lt_dlunknown;
18506
18507 if (self)
18508 {
18509 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18510 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18511 /* dlclose (self); */
18512 }
18513
18514 exit (status);
18515 }
18516 EOF
18517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18518 (eval $ac_link) 2>&5
18519 ac_status=$?
18520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18521 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18522 (./conftest; exit; ) 2>/dev/null
18523 lt_status=$?
18524 case x$lt_status in
18525 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18526 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18527 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18528 esac
18529 else :
18530 # compilation failed
18531 lt_cv_dlopen_self_static=no
18532 fi
18533 fi
18534 rm -fr conftest*
18535
18536
18537 fi
18538 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18539 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18540 fi
18541
18542 CPPFLAGS="$save_CPPFLAGS"
18543 LDFLAGS="$save_LDFLAGS"
18544 LIBS="$save_LIBS"
18545 ;;
18546 esac
18547
18548 case $lt_cv_dlopen_self in
18549 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18550 *) enable_dlopen_self=unknown ;;
18551 esac
18552
18553 case $lt_cv_dlopen_self_static in
18554 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18555 *) enable_dlopen_self_static=unknown ;;
18556 esac
18557 fi
18558
18559
18560 # The else clause should only fire when bootstrapping the
18561 # libtool distribution, otherwise you forgot to ship ltmain.sh
18562 # with your package, and you will get complaints that there are
18563 # no rules to generate ltmain.sh.
18564 if test -f "$ltmain"; then
18565 # See if we are running on zsh, and set the options which allow our commands through
18566 # without removal of \ escapes.
18567 if test -n "${ZSH_VERSION+set}" ; then
18568 setopt NO_GLOB_SUBST
18569 fi
18570 # Now quote all the things that may contain metacharacters while being
18571 # careful not to overquote the AC_SUBSTed values. We take copies of the
18572 # variables and quote the copies for generation of the libtool script.
18573 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18574 SED SHELL STRIP \
18575 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18576 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18577 deplibs_check_method reload_flag reload_cmds need_locks \
18578 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18579 lt_cv_sys_global_symbol_to_c_name_address \
18580 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18581 old_postinstall_cmds old_postuninstall_cmds \
18582 compiler_GCJ \
18583 CC_GCJ \
18584 LD_GCJ \
18585 lt_prog_compiler_wl_GCJ \
18586 lt_prog_compiler_pic_GCJ \
18587 lt_prog_compiler_static_GCJ \
18588 lt_prog_compiler_no_builtin_flag_GCJ \
18589 export_dynamic_flag_spec_GCJ \
18590 thread_safe_flag_spec_GCJ \
18591 whole_archive_flag_spec_GCJ \
18592 enable_shared_with_static_runtimes_GCJ \
18593 old_archive_cmds_GCJ \
18594 old_archive_from_new_cmds_GCJ \
18595 predep_objects_GCJ \
18596 postdep_objects_GCJ \
18597 predeps_GCJ \
18598 postdeps_GCJ \
18599 compiler_lib_search_path_GCJ \
18600 archive_cmds_GCJ \
18601 archive_expsym_cmds_GCJ \
18602 postinstall_cmds_GCJ \
18603 postuninstall_cmds_GCJ \
18604 old_archive_from_expsyms_cmds_GCJ \
18605 allow_undefined_flag_GCJ \
18606 no_undefined_flag_GCJ \
18607 export_symbols_cmds_GCJ \
18608 hardcode_libdir_flag_spec_GCJ \
18609 hardcode_libdir_flag_spec_ld_GCJ \
18610 hardcode_libdir_separator_GCJ \
18611 hardcode_automatic_GCJ \
18612 module_cmds_GCJ \
18613 module_expsym_cmds_GCJ \
18614 lt_cv_prog_compiler_c_o_GCJ \
18615 exclude_expsyms_GCJ \
18616 include_expsyms_GCJ; do
18617
18618 case $var in
18619 old_archive_cmds_GCJ | \
18620 old_archive_from_new_cmds_GCJ | \
18621 archive_cmds_GCJ | \
18622 archive_expsym_cmds_GCJ | \
18623 module_cmds_GCJ | \
18624 module_expsym_cmds_GCJ | \
18625 old_archive_from_expsyms_cmds_GCJ | \
18626 export_symbols_cmds_GCJ | \
18627 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18628 postinstall_cmds | postuninstall_cmds | \
18629 old_postinstall_cmds | old_postuninstall_cmds | \
18630 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18631 # Double-quote double-evaled strings.
18632 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18633 ;;
18634 *)
18635 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18636 ;;
18637 esac
18638 done
18639
18640 case $lt_echo in
18641 *'\$0 --fallback-echo"')
18642 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18643 ;;
18644 esac
18645
18646 cfgfile="$ofile"
18647
18648 cat <<__EOF__ >> "$cfgfile"
18649 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18650
18651 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18652
18653 # Shell to use when invoking shell scripts.
18654 SHELL=$lt_SHELL
18655
18656 # Whether or not to build shared libraries.
18657 build_libtool_libs=$enable_shared
18658
18659 # Whether or not to build static libraries.
18660 build_old_libs=$enable_static
18661
18662 # Whether or not to add -lc for building shared libraries.
18663 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18664
18665 # Whether or not to disallow shared libs when runtime libs are static
18666 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18667
18668 # Whether or not to optimize for fast installation.
18669 fast_install=$enable_fast_install
18670
18671 # The host system.
18672 host_alias=$host_alias
18673 host=$host
18674
18675 # An echo program that does not interpret backslashes.
18676 echo=$lt_echo
18677
18678 # The archiver.
18679 AR=$lt_AR
18680 AR_FLAGS=$lt_AR_FLAGS
18681
18682 # A C compiler.
18683 LTCC=$lt_LTCC
18684
18685 # A language-specific compiler.
18686 CC=$lt_compiler_GCJ
18687
18688 # Is the compiler the GNU C compiler?
18689 with_gcc=$GCC_GCJ
18690
18691 # An ERE matcher.
18692 EGREP=$lt_EGREP
18693
18694 # The linker used to build libraries.
18695 LD=$lt_LD_GCJ
18696
18697 # Whether we need hard or soft links.
18698 LN_S=$lt_LN_S
18699
18700 # A BSD-compatible nm program.
18701 NM=$lt_NM
18702
18703 # A symbol stripping program
18704 STRIP=$lt_STRIP
18705
18706 # Used to examine libraries when file_magic_cmd begins "file"
18707 MAGIC_CMD=$MAGIC_CMD
18708
18709 # Used on cygwin: DLL creation program.
18710 DLLTOOL="$DLLTOOL"
18711
18712 # Used on cygwin: object dumper.
18713 OBJDUMP="$OBJDUMP"
18714
18715 # Used on cygwin: assembler.
18716 AS="$AS"
18717
18718 # The name of the directory that contains temporary libtool files.
18719 objdir=$objdir
18720
18721 # How to create reloadable object files.
18722 reload_flag=$lt_reload_flag
18723 reload_cmds=$lt_reload_cmds
18724
18725 # How to pass a linker flag through the compiler.
18726 wl=$lt_lt_prog_compiler_wl_GCJ
18727
18728 # Object file suffix (normally "o").
18729 objext="$ac_objext"
18730
18731 # Old archive suffix (normally "a").
18732 libext="$libext"
18733
18734 # Shared library suffix (normally ".so").
18735 shrext_cmds='$shrext_cmds'
18736
18737 # Executable file suffix (normally "").
18738 exeext="$exeext"
18739
18740 # Additional compiler flags for building library objects.
18741 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18742 pic_mode=$pic_mode
18743
18744 # What is the maximum length of a command?
18745 max_cmd_len=$lt_cv_sys_max_cmd_len
18746
18747 # Does compiler simultaneously support -c and -o options?
18748 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18749
18750 # Must we lock files when doing compilation ?
18751 need_locks=$lt_need_locks
18752
18753 # Do we need the lib prefix for modules?
18754 need_lib_prefix=$need_lib_prefix
18755
18756 # Do we need a version for libraries?
18757 need_version=$need_version
18758
18759 # Whether dlopen is supported.
18760 dlopen_support=$enable_dlopen
18761
18762 # Whether dlopen of programs is supported.
18763 dlopen_self=$enable_dlopen_self
18764
18765 # Whether dlopen of statically linked programs is supported.
18766 dlopen_self_static=$enable_dlopen_self_static
18767
18768 # Compiler flag to prevent dynamic linking.
18769 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18770
18771 # Compiler flag to turn off builtin functions.
18772 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18773
18774 # Compiler flag to allow reflexive dlopens.
18775 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18776
18777 # Compiler flag to generate shared objects directly from archives.
18778 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18779
18780 # Compiler flag to generate thread-safe objects.
18781 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18782
18783 # Library versioning type.
18784 version_type=$version_type
18785
18786 # Format of library name prefix.
18787 libname_spec=$lt_libname_spec
18788
18789 # List of archive names. First name is the real one, the rest are links.
18790 # The last name is the one that the linker finds with -lNAME.
18791 library_names_spec=$lt_library_names_spec
18792
18793 # The coded name of the library, if different from the real name.
18794 soname_spec=$lt_soname_spec
18795
18796 # Commands used to build and install an old-style archive.
18797 RANLIB=$lt_RANLIB
18798 old_archive_cmds=$lt_old_archive_cmds_GCJ
18799 old_postinstall_cmds=$lt_old_postinstall_cmds
18800 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18801
18802 # Create an old-style archive from a shared archive.
18803 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18804
18805 # Create a temporary old-style archive to link instead of a shared archive.
18806 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18807
18808 # Commands used to build and install a shared archive.
18809 archive_cmds=$lt_archive_cmds_GCJ
18810 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18811 postinstall_cmds=$lt_postinstall_cmds
18812 postuninstall_cmds=$lt_postuninstall_cmds
18813
18814 # Commands used to build a loadable module (assumed same as above if empty)
18815 module_cmds=$lt_module_cmds_GCJ
18816 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18817
18818 # Commands to strip libraries.
18819 old_striplib=$lt_old_striplib
18820 striplib=$lt_striplib
18821
18822 # Dependencies to place before the objects being linked to create a
18823 # shared library.
18824 predep_objects=$lt_predep_objects_GCJ
18825
18826 # Dependencies to place after the objects being linked to create a
18827 # shared library.
18828 postdep_objects=$lt_postdep_objects_GCJ
18829
18830 # Dependencies to place before the objects being linked to create a
18831 # shared library.
18832 predeps=$lt_predeps_GCJ
18833
18834 # Dependencies to place after the objects being linked to create a
18835 # shared library.
18836 postdeps=$lt_postdeps_GCJ
18837
18838 # The library search path used internally by the compiler when linking
18839 # a shared library.
18840 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18841
18842 # Method to check whether dependent libraries are shared objects.
18843 deplibs_check_method=$lt_deplibs_check_method
18844
18845 # Command to use when deplibs_check_method == file_magic.
18846 file_magic_cmd=$lt_file_magic_cmd
18847
18848 # Flag that allows shared libraries with undefined symbols to be built.
18849 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18850
18851 # Flag that forces no undefined symbols.
18852 no_undefined_flag=$lt_no_undefined_flag_GCJ
18853
18854 # Commands used to finish a libtool library installation in a directory.
18855 finish_cmds=$lt_finish_cmds
18856
18857 # Same as above, but a single script fragment to be evaled but not shown.
18858 finish_eval=$lt_finish_eval
18859
18860 # Take the output of nm and produce a listing of raw symbols and C names.
18861 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18862
18863 # Transform the output of nm in a proper C declaration
18864 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18865
18866 # Transform the output of nm in a C name address pair
18867 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18868
18869 # This is the shared library runtime path variable.
18870 runpath_var=$runpath_var
18871
18872 # This is the shared library path variable.
18873 shlibpath_var=$shlibpath_var
18874
18875 # Is shlibpath searched before the hard-coded library search path?
18876 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18877
18878 # How to hardcode a shared library path into an executable.
18879 hardcode_action=$hardcode_action_GCJ
18880
18881 # Whether we should hardcode library paths into libraries.
18882 hardcode_into_libs=$hardcode_into_libs
18883
18884 # Flag to hardcode \$libdir into a binary during linking.
18885 # This must work even if \$libdir does not exist.
18886 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18887
18888 # If ld is used when linking, flag to hardcode \$libdir into
18889 # a binary during linking. This must work even if \$libdir does
18890 # not exist.
18891 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18892
18893 # Whether we need a single -rpath flag with a separated argument.
18894 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18895
18896 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18897 # resulting binary.
18898 hardcode_direct=$hardcode_direct_GCJ
18899
18900 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18901 # resulting binary.
18902 hardcode_minus_L=$hardcode_minus_L_GCJ
18903
18904 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18905 # the resulting binary.
18906 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18907
18908 # Set to yes if building a shared library automatically hardcodes DIR into the library
18909 # and all subsequent libraries and executables linked against it.
18910 hardcode_automatic=$hardcode_automatic_GCJ
18911
18912 # Variables whose values should be saved in libtool wrapper scripts and
18913 # restored at relink time.
18914 variables_saved_for_relink="$variables_saved_for_relink"
18915
18916 # Whether libtool must link a program against all its dependency libraries.
18917 link_all_deplibs=$link_all_deplibs_GCJ
18918
18919 # Compile-time system search path for libraries
18920 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18921
18922 # Run-time system search path for libraries
18923 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18924
18925 # Fix the shell variable \$srcfile for the compiler.
18926 fix_srcfile_path="$fix_srcfile_path_GCJ"
18927
18928 # Set to yes if exported symbols are required.
18929 always_export_symbols=$always_export_symbols_GCJ
18930
18931 # The commands to list exported symbols.
18932 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18933
18934 # The commands to extract the exported symbol list from a shared archive.
18935 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18936
18937 # Symbols that should not be listed in the preloaded symbols.
18938 exclude_expsyms=$lt_exclude_expsyms_GCJ
18939
18940 # Symbols that must always be exported.
18941 include_expsyms=$lt_include_expsyms_GCJ
18942
18943 # ### END LIBTOOL TAG CONFIG: $tagname
18944
18945 __EOF__
18946
18947
18948 else
18949 # If there is no Makefile yet, we rely on a make rule to execute
18950 # `config.status --recheck' to rerun these tests and create the
18951 # libtool script then.
18952 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18953 if test -f "$ltmain_in"; then
18954 test -f Makefile && make "$ltmain"
18955 fi
18956 fi
18957
18958
18959 ac_ext=c
18960 ac_cpp='$CPP $CPPFLAGS'
18961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18964
18965 CC="$lt_save_CC"
18966
18967 else
18968 tagname=""
18969 fi
18970 ;;
18971
18972 RC)
18973
18974
18975
18976 # Source file extension for RC test sources.
18977 ac_ext=rc
18978
18979 # Object file extension for compiled RC test sources.
18980 objext=o
18981 objext_RC=$objext
18982
18983 # Code to be used in simple compile tests
18984 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18985
18986 # Code to be used in simple link tests
18987 lt_simple_link_test_code="$lt_simple_compile_test_code"
18988
18989 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18990
18991 # If no C compiler was specified, use CC.
18992 LTCC=${LTCC-"$CC"}
18993
18994 # Allow CC to be a program name with arguments.
18995 compiler=$CC
18996
18997
18998 # Allow CC to be a program name with arguments.
18999 lt_save_CC="$CC"
19000 CC=${RC-"windres"}
19001 compiler=$CC
19002 compiler_RC=$CC
19003 lt_cv_prog_compiler_c_o_RC=yes
19004
19005 # The else clause should only fire when bootstrapping the
19006 # libtool distribution, otherwise you forgot to ship ltmain.sh
19007 # with your package, and you will get complaints that there are
19008 # no rules to generate ltmain.sh.
19009 if test -f "$ltmain"; then
19010 # See if we are running on zsh, and set the options which allow our commands through
19011 # without removal of \ escapes.
19012 if test -n "${ZSH_VERSION+set}" ; then
19013 setopt NO_GLOB_SUBST
19014 fi
19015 # Now quote all the things that may contain metacharacters while being
19016 # careful not to overquote the AC_SUBSTed values. We take copies of the
19017 # variables and quote the copies for generation of the libtool script.
19018 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19019 SED SHELL STRIP \
19020 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19021 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19022 deplibs_check_method reload_flag reload_cmds need_locks \
19023 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19024 lt_cv_sys_global_symbol_to_c_name_address \
19025 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19026 old_postinstall_cmds old_postuninstall_cmds \
19027 compiler_RC \
19028 CC_RC \
19029 LD_RC \
19030 lt_prog_compiler_wl_RC \
19031 lt_prog_compiler_pic_RC \
19032 lt_prog_compiler_static_RC \
19033 lt_prog_compiler_no_builtin_flag_RC \
19034 export_dynamic_flag_spec_RC \
19035 thread_safe_flag_spec_RC \
19036 whole_archive_flag_spec_RC \
19037 enable_shared_with_static_runtimes_RC \
19038 old_archive_cmds_RC \
19039 old_archive_from_new_cmds_RC \
19040 predep_objects_RC \
19041 postdep_objects_RC \
19042 predeps_RC \
19043 postdeps_RC \
19044 compiler_lib_search_path_RC \
19045 archive_cmds_RC \
19046 archive_expsym_cmds_RC \
19047 postinstall_cmds_RC \
19048 postuninstall_cmds_RC \
19049 old_archive_from_expsyms_cmds_RC \
19050 allow_undefined_flag_RC \
19051 no_undefined_flag_RC \
19052 export_symbols_cmds_RC \
19053 hardcode_libdir_flag_spec_RC \
19054 hardcode_libdir_flag_spec_ld_RC \
19055 hardcode_libdir_separator_RC \
19056 hardcode_automatic_RC \
19057 module_cmds_RC \
19058 module_expsym_cmds_RC \
19059 lt_cv_prog_compiler_c_o_RC \
19060 exclude_expsyms_RC \
19061 include_expsyms_RC; do
19062
19063 case $var in
19064 old_archive_cmds_RC | \
19065 old_archive_from_new_cmds_RC | \
19066 archive_cmds_RC | \
19067 archive_expsym_cmds_RC | \
19068 module_cmds_RC | \
19069 module_expsym_cmds_RC | \
19070 old_archive_from_expsyms_cmds_RC | \
19071 export_symbols_cmds_RC | \
19072 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19073 postinstall_cmds | postuninstall_cmds | \
19074 old_postinstall_cmds | old_postuninstall_cmds | \
19075 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19076 # Double-quote double-evaled strings.
19077 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19078 ;;
19079 *)
19080 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19081 ;;
19082 esac
19083 done
19084
19085 case $lt_echo in
19086 *'\$0 --fallback-echo"')
19087 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19088 ;;
19089 esac
19090
19091 cfgfile="$ofile"
19092
19093 cat <<__EOF__ >> "$cfgfile"
19094 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19095
19096 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19097
19098 # Shell to use when invoking shell scripts.
19099 SHELL=$lt_SHELL
19100
19101 # Whether or not to build shared libraries.
19102 build_libtool_libs=$enable_shared
19103
19104 # Whether or not to build static libraries.
19105 build_old_libs=$enable_static
19106
19107 # Whether or not to add -lc for building shared libraries.
19108 build_libtool_need_lc=$archive_cmds_need_lc_RC
19109
19110 # Whether or not to disallow shared libs when runtime libs are static
19111 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19112
19113 # Whether or not to optimize for fast installation.
19114 fast_install=$enable_fast_install
19115
19116 # The host system.
19117 host_alias=$host_alias
19118 host=$host
19119
19120 # An echo program that does not interpret backslashes.
19121 echo=$lt_echo
19122
19123 # The archiver.
19124 AR=$lt_AR
19125 AR_FLAGS=$lt_AR_FLAGS
19126
19127 # A C compiler.
19128 LTCC=$lt_LTCC
19129
19130 # A language-specific compiler.
19131 CC=$lt_compiler_RC
19132
19133 # Is the compiler the GNU C compiler?
19134 with_gcc=$GCC_RC
19135
19136 # An ERE matcher.
19137 EGREP=$lt_EGREP
19138
19139 # The linker used to build libraries.
19140 LD=$lt_LD_RC
19141
19142 # Whether we need hard or soft links.
19143 LN_S=$lt_LN_S
19144
19145 # A BSD-compatible nm program.
19146 NM=$lt_NM
19147
19148 # A symbol stripping program
19149 STRIP=$lt_STRIP
19150
19151 # Used to examine libraries when file_magic_cmd begins "file"
19152 MAGIC_CMD=$MAGIC_CMD
19153
19154 # Used on cygwin: DLL creation program.
19155 DLLTOOL="$DLLTOOL"
19156
19157 # Used on cygwin: object dumper.
19158 OBJDUMP="$OBJDUMP"
19159
19160 # Used on cygwin: assembler.
19161 AS="$AS"
19162
19163 # The name of the directory that contains temporary libtool files.
19164 objdir=$objdir
19165
19166 # How to create reloadable object files.
19167 reload_flag=$lt_reload_flag
19168 reload_cmds=$lt_reload_cmds
19169
19170 # How to pass a linker flag through the compiler.
19171 wl=$lt_lt_prog_compiler_wl_RC
19172
19173 # Object file suffix (normally "o").
19174 objext="$ac_objext"
19175
19176 # Old archive suffix (normally "a").
19177 libext="$libext"
19178
19179 # Shared library suffix (normally ".so").
19180 shrext_cmds='$shrext_cmds'
19181
19182 # Executable file suffix (normally "").
19183 exeext="$exeext"
19184
19185 # Additional compiler flags for building library objects.
19186 pic_flag=$lt_lt_prog_compiler_pic_RC
19187 pic_mode=$pic_mode
19188
19189 # What is the maximum length of a command?
19190 max_cmd_len=$lt_cv_sys_max_cmd_len
19191
19192 # Does compiler simultaneously support -c and -o options?
19193 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19194
19195 # Must we lock files when doing compilation ?
19196 need_locks=$lt_need_locks
19197
19198 # Do we need the lib prefix for modules?
19199 need_lib_prefix=$need_lib_prefix
19200
19201 # Do we need a version for libraries?
19202 need_version=$need_version
19203
19204 # Whether dlopen is supported.
19205 dlopen_support=$enable_dlopen
19206
19207 # Whether dlopen of programs is supported.
19208 dlopen_self=$enable_dlopen_self
19209
19210 # Whether dlopen of statically linked programs is supported.
19211 dlopen_self_static=$enable_dlopen_self_static
19212
19213 # Compiler flag to prevent dynamic linking.
19214 link_static_flag=$lt_lt_prog_compiler_static_RC
19215
19216 # Compiler flag to turn off builtin functions.
19217 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19218
19219 # Compiler flag to allow reflexive dlopens.
19220 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19221
19222 # Compiler flag to generate shared objects directly from archives.
19223 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19224
19225 # Compiler flag to generate thread-safe objects.
19226 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19227
19228 # Library versioning type.
19229 version_type=$version_type
19230
19231 # Format of library name prefix.
19232 libname_spec=$lt_libname_spec
19233
19234 # List of archive names. First name is the real one, the rest are links.
19235 # The last name is the one that the linker finds with -lNAME.
19236 library_names_spec=$lt_library_names_spec
19237
19238 # The coded name of the library, if different from the real name.
19239 soname_spec=$lt_soname_spec
19240
19241 # Commands used to build and install an old-style archive.
19242 RANLIB=$lt_RANLIB
19243 old_archive_cmds=$lt_old_archive_cmds_RC
19244 old_postinstall_cmds=$lt_old_postinstall_cmds
19245 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19246
19247 # Create an old-style archive from a shared archive.
19248 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19249
19250 # Create a temporary old-style archive to link instead of a shared archive.
19251 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19252
19253 # Commands used to build and install a shared archive.
19254 archive_cmds=$lt_archive_cmds_RC
19255 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19256 postinstall_cmds=$lt_postinstall_cmds
19257 postuninstall_cmds=$lt_postuninstall_cmds
19258
19259 # Commands used to build a loadable module (assumed same as above if empty)
19260 module_cmds=$lt_module_cmds_RC
19261 module_expsym_cmds=$lt_module_expsym_cmds_RC
19262
19263 # Commands to strip libraries.
19264 old_striplib=$lt_old_striplib
19265 striplib=$lt_striplib
19266
19267 # Dependencies to place before the objects being linked to create a
19268 # shared library.
19269 predep_objects=$lt_predep_objects_RC
19270
19271 # Dependencies to place after the objects being linked to create a
19272 # shared library.
19273 postdep_objects=$lt_postdep_objects_RC
19274
19275 # Dependencies to place before the objects being linked to create a
19276 # shared library.
19277 predeps=$lt_predeps_RC
19278
19279 # Dependencies to place after the objects being linked to create a
19280 # shared library.
19281 postdeps=$lt_postdeps_RC
19282
19283 # The library search path used internally by the compiler when linking
19284 # a shared library.
19285 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19286
19287 # Method to check whether dependent libraries are shared objects.
19288 deplibs_check_method=$lt_deplibs_check_method
19289
19290 # Command to use when deplibs_check_method == file_magic.
19291 file_magic_cmd=$lt_file_magic_cmd
19292
19293 # Flag that allows shared libraries with undefined symbols to be built.
19294 allow_undefined_flag=$lt_allow_undefined_flag_RC
19295
19296 # Flag that forces no undefined symbols.
19297 no_undefined_flag=$lt_no_undefined_flag_RC
19298
19299 # Commands used to finish a libtool library installation in a directory.
19300 finish_cmds=$lt_finish_cmds
19301
19302 # Same as above, but a single script fragment to be evaled but not shown.
19303 finish_eval=$lt_finish_eval
19304
19305 # Take the output of nm and produce a listing of raw symbols and C names.
19306 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19307
19308 # Transform the output of nm in a proper C declaration
19309 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19310
19311 # Transform the output of nm in a C name address pair
19312 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19313
19314 # This is the shared library runtime path variable.
19315 runpath_var=$runpath_var
19316
19317 # This is the shared library path variable.
19318 shlibpath_var=$shlibpath_var
19319
19320 # Is shlibpath searched before the hard-coded library search path?
19321 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19322
19323 # How to hardcode a shared library path into an executable.
19324 hardcode_action=$hardcode_action_RC
19325
19326 # Whether we should hardcode library paths into libraries.
19327 hardcode_into_libs=$hardcode_into_libs
19328
19329 # Flag to hardcode \$libdir into a binary during linking.
19330 # This must work even if \$libdir does not exist.
19331 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19332
19333 # If ld is used when linking, flag to hardcode \$libdir into
19334 # a binary during linking. This must work even if \$libdir does
19335 # not exist.
19336 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19337
19338 # Whether we need a single -rpath flag with a separated argument.
19339 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19340
19341 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19342 # resulting binary.
19343 hardcode_direct=$hardcode_direct_RC
19344
19345 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19346 # resulting binary.
19347 hardcode_minus_L=$hardcode_minus_L_RC
19348
19349 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19350 # the resulting binary.
19351 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19352
19353 # Set to yes if building a shared library automatically hardcodes DIR into the library
19354 # and all subsequent libraries and executables linked against it.
19355 hardcode_automatic=$hardcode_automatic_RC
19356
19357 # Variables whose values should be saved in libtool wrapper scripts and
19358 # restored at relink time.
19359 variables_saved_for_relink="$variables_saved_for_relink"
19360
19361 # Whether libtool must link a program against all its dependency libraries.
19362 link_all_deplibs=$link_all_deplibs_RC
19363
19364 # Compile-time system search path for libraries
19365 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19366
19367 # Run-time system search path for libraries
19368 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19369
19370 # Fix the shell variable \$srcfile for the compiler.
19371 fix_srcfile_path="$fix_srcfile_path_RC"
19372
19373 # Set to yes if exported symbols are required.
19374 always_export_symbols=$always_export_symbols_RC
19375
19376 # The commands to list exported symbols.
19377 export_symbols_cmds=$lt_export_symbols_cmds_RC
19378
19379 # The commands to extract the exported symbol list from a shared archive.
19380 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19381
19382 # Symbols that should not be listed in the preloaded symbols.
19383 exclude_expsyms=$lt_exclude_expsyms_RC
19384
19385 # Symbols that must always be exported.
19386 include_expsyms=$lt_include_expsyms_RC
19387
19388 # ### END LIBTOOL TAG CONFIG: $tagname
19389
19390 __EOF__
19391
19392
19393 else
19394 # If there is no Makefile yet, we rely on a make rule to execute
19395 # `config.status --recheck' to rerun these tests and create the
19396 # libtool script then.
19397 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19398 if test -f "$ltmain_in"; then
19399 test -f Makefile && make "$ltmain"
19400 fi
19401 fi
19402
19403
19404 ac_ext=c
19405 ac_cpp='$CPP $CPPFLAGS'
19406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19409
19410 CC="$lt_save_CC"
19411
19412 ;;
19413
19414 *)
19415 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19416 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19417 { (exit 1); exit 1; }; }
19418 ;;
19419 esac
19420
19421 # Append the new tag name to the list of available tags.
19422 if test -n "$tagname" ; then
19423 available_tags="$available_tags $tagname"
19424 fi
19425 fi
19426 done
19427 IFS="$lt_save_ifs"
19428
19429 # Now substitute the updated list of available tags.
19430 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19431 mv "${ofile}T" "$ofile"
19432 chmod +x "$ofile"
19433 else
19434 rm -f "${ofile}T"
19435 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19436 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19437 { (exit 1); exit 1; }; }
19438 fi
19439 fi
19440
19441
19442
19443 # This can be used to rebuild libtool when needed
19444 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19445
19446 # Always use our own libtool.
19447 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19448
19449 # Prevent multiple expansion
19450
19451
19452
19453
19454
19455
19456
19457
19458
19459
19460
19461
19462
19463
19464
19465
19466
19467
19468
19469
19470
19471 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19472 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19473 if test "${ac_cv_header_stdc+set}" = set; then
19474 echo $ECHO_N "(cached) $ECHO_C" >&6
19475 else
19476 cat >conftest.$ac_ext <<_ACEOF
19477 /* confdefs.h. */
19478 _ACEOF
19479 cat confdefs.h >>conftest.$ac_ext
19480 cat >>conftest.$ac_ext <<_ACEOF
19481 /* end confdefs.h. */
19482 #include <stdlib.h>
19483 #include <stdarg.h>
19484 #include <string.h>
19485 #include <float.h>
19486
19487 int
19488 main ()
19489 {
19490
19491 ;
19492 return 0;
19493 }
19494 _ACEOF
19495 rm -f conftest.$ac_objext
19496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19497 (eval $ac_compile) 2>conftest.er1
19498 ac_status=$?
19499 grep -v '^ *+' conftest.er1 >conftest.err
19500 rm -f conftest.er1
19501 cat conftest.err >&5
19502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503 (exit $ac_status); } &&
19504 { ac_try='test -z "$ac_c_werror_flag"
19505 || test ! -s conftest.err'
19506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19507 (eval $ac_try) 2>&5
19508 ac_status=$?
19509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19510 (exit $ac_status); }; } &&
19511 { ac_try='test -s conftest.$ac_objext'
19512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19513 (eval $ac_try) 2>&5
19514 ac_status=$?
19515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19516 (exit $ac_status); }; }; then
19517 ac_cv_header_stdc=yes
19518 else
19519 echo "$as_me: failed program was:" >&5
19520 sed 's/^/| /' conftest.$ac_ext >&5
19521
19522 ac_cv_header_stdc=no
19523 fi
19524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19525
19526 if test $ac_cv_header_stdc = yes; then
19527 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19528 cat >conftest.$ac_ext <<_ACEOF
19529 /* confdefs.h. */
19530 _ACEOF
19531 cat confdefs.h >>conftest.$ac_ext
19532 cat >>conftest.$ac_ext <<_ACEOF
19533 /* end confdefs.h. */
19534 #include <string.h>
19535
19536 _ACEOF
19537 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19538 $EGREP "memchr" >/dev/null 2>&1; then
19539 :
19540 else
19541 ac_cv_header_stdc=no
19542 fi
19543 rm -f conftest*
19544
19545 fi
19546
19547 if test $ac_cv_header_stdc = yes; then
19548 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19549 cat >conftest.$ac_ext <<_ACEOF
19550 /* confdefs.h. */
19551 _ACEOF
19552 cat confdefs.h >>conftest.$ac_ext
19553 cat >>conftest.$ac_ext <<_ACEOF
19554 /* end confdefs.h. */
19555 #include <stdlib.h>
19556
19557 _ACEOF
19558 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19559 $EGREP "free" >/dev/null 2>&1; then
19560 :
19561 else
19562 ac_cv_header_stdc=no
19563 fi
19564 rm -f conftest*
19565
19566 fi
19567
19568 if test $ac_cv_header_stdc = yes; then
19569 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19570 if test "$cross_compiling" = yes; then
19571 :
19572 else
19573 cat >conftest.$ac_ext <<_ACEOF
19574 /* confdefs.h. */
19575 _ACEOF
19576 cat confdefs.h >>conftest.$ac_ext
19577 cat >>conftest.$ac_ext <<_ACEOF
19578 /* end confdefs.h. */
19579 #include <ctype.h>
19580 #if ((' ' & 0x0FF) == 0x020)
19581 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19582 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19583 #else
19584 # define ISLOWER(c) \
19585 (('a' <= (c) && (c) <= 'i') \
19586 || ('j' <= (c) && (c) <= 'r') \
19587 || ('s' <= (c) && (c) <= 'z'))
19588 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19589 #endif
19590
19591 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19592 int
19593 main ()
19594 {
19595 int i;
19596 for (i = 0; i < 256; i++)
19597 if (XOR (islower (i), ISLOWER (i))
19598 || toupper (i) != TOUPPER (i))
19599 exit(2);
19600 exit (0);
19601 }
19602 _ACEOF
19603 rm -f conftest$ac_exeext
19604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19605 (eval $ac_link) 2>&5
19606 ac_status=$?
19607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19608 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19610 (eval $ac_try) 2>&5
19611 ac_status=$?
19612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19613 (exit $ac_status); }; }; then
19614 :
19615 else
19616 echo "$as_me: program exited with status $ac_status" >&5
19617 echo "$as_me: failed program was:" >&5
19618 sed 's/^/| /' conftest.$ac_ext >&5
19619
19620 ( exit $ac_status )
19621 ac_cv_header_stdc=no
19622 fi
19623 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19624 fi
19625 fi
19626 fi
19627 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19628 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19629 if test $ac_cv_header_stdc = yes; then
19630
19631 cat >>confdefs.h <<\_ACEOF
19632 #define STDC_HEADERS 1
19633 _ACEOF
19634
19635 fi
19636
19637
19638 echo "$as_me:$LINENO: checking for getenv" >&5
19639 echo $ECHO_N "checking for getenv... $ECHO_C" >&6
19640 if test "${ac_cv_func_getenv+set}" = set; then
19641 echo $ECHO_N "(cached) $ECHO_C" >&6
19642 else
19643 cat >conftest.$ac_ext <<_ACEOF
19644 /* confdefs.h. */
19645 _ACEOF
19646 cat confdefs.h >>conftest.$ac_ext
19647 cat >>conftest.$ac_ext <<_ACEOF
19648 /* end confdefs.h. */
19649 /* Define getenv to an innocuous variant, in case <limits.h> declares getenv.
19650 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19651 #define getenv innocuous_getenv
19652
19653 /* System header to define __stub macros and hopefully few prototypes,
19654 which can conflict with char getenv (); below.
19655 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19656 <limits.h> exists even on freestanding compilers. */
19657
19658 #ifdef __STDC__
19659 # include <limits.h>
19660 #else
19661 # include <assert.h>
19662 #endif
19663
19664 #undef getenv
19665
19666 /* Override any gcc2 internal prototype to avoid an error. */
19667 #ifdef __cplusplus
19668 extern "C"
19669 {
19670 #endif
19671 /* We use char because int might match the return type of a gcc2
19672 builtin and then its argument prototype would still apply. */
19673 char getenv ();
19674 /* The GNU C library defines this for functions which it implements
19675 to always fail with ENOSYS. Some functions are actually named
19676 something starting with __ and the normal name is an alias. */
19677 #if defined (__stub_getenv) || defined (__stub___getenv)
19678 choke me
19679 #else
19680 char (*f) () = getenv;
19681 #endif
19682 #ifdef __cplusplus
19683 }
19684 #endif
19685
19686 int
19687 main ()
19688 {
19689 return f != getenv;
19690 ;
19691 return 0;
19692 }
19693 _ACEOF
19694 rm -f conftest.$ac_objext conftest$ac_exeext
19695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19696 (eval $ac_link) 2>conftest.er1
19697 ac_status=$?
19698 grep -v '^ *+' conftest.er1 >conftest.err
19699 rm -f conftest.er1
19700 cat conftest.err >&5
19701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19702 (exit $ac_status); } &&
19703 { ac_try='test -z "$ac_c_werror_flag"
19704 || test ! -s conftest.err'
19705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19706 (eval $ac_try) 2>&5
19707 ac_status=$?
19708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19709 (exit $ac_status); }; } &&
19710 { ac_try='test -s conftest$ac_exeext'
19711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19712 (eval $ac_try) 2>&5
19713 ac_status=$?
19714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19715 (exit $ac_status); }; }; then
19716 ac_cv_func_getenv=yes
19717 else
19718 echo "$as_me: failed program was:" >&5
19719 sed 's/^/| /' conftest.$ac_ext >&5
19720
19721 ac_cv_func_getenv=no
19722 fi
19723 rm -f conftest.err conftest.$ac_objext \
19724 conftest$ac_exeext conftest.$ac_ext
19725 fi
19726 echo "$as_me:$LINENO: result: $ac_cv_func_getenv" >&5
19727 echo "${ECHO_T}$ac_cv_func_getenv" >&6
19728
19729
19730 # GTK+-2.0 front-end configuration
19731 #
19732 aik_fe_gtk=check
19733
19734
19735 # Check whether --with-gtk or --without-gtk was given.
19736 if test "${with_gtk+set}" = set; then
19737 withval="$with_gtk"
19738
19739 if test "$withval" = "no"; then
19740 aik_fe_gtk=no
19741 else
19742 aik_fe_gtk=yes
19743 fi
19744
19745 fi;
19746
19747 GTK_CFLAGS=""
19748 GTK_LIBS=""
19749 GTK_DEFS=""
19750
19751 if test $aik_fe_gtk != no; then
19752
19753 succeeded=no
19754
19755 if test -z "$PKG_CONFIG"; then
19756 # Extract the first word of "pkg-config", so it can be a program name with args.
19757 set dummy pkg-config; ac_word=$2
19758 echo "$as_me:$LINENO: checking for $ac_word" >&5
19759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19760 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19761 echo $ECHO_N "(cached) $ECHO_C" >&6
19762 else
19763 case $PKG_CONFIG in
19764 [\\/]* | ?:[\\/]*)
19765 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19766 ;;
19767 *)
19768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19769 for as_dir in $PATH
19770 do
19771 IFS=$as_save_IFS
19772 test -z "$as_dir" && as_dir=.
19773 for ac_exec_ext in '' $ac_executable_extensions; do
19774 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19775 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19777 break 2
19778 fi
19779 done
19780 done
19781
19782 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19783 ;;
19784 esac
19785 fi
19786 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19787
19788 if test -n "$PKG_CONFIG"; then
19789 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19790 echo "${ECHO_T}$PKG_CONFIG" >&6
19791 else
19792 echo "$as_me:$LINENO: result: no" >&5
19793 echo "${ECHO_T}no" >&6
19794 fi
19795
19796 fi
19797
19798 if test "$PKG_CONFIG" = "no" ; then
19799 echo "*** The pkg-config script could not be found. Make sure it is"
19800 echo "*** in your path, or set the PKG_CONFIG environment variable"
19801 echo "*** to the full path to pkg-config."
19802 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
19803 else
19804 PKG_CONFIG_MIN_VERSION=0.9.0
19805 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19806 echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.0.0" >&5
19807 echo $ECHO_N "checking for gtk+-2.0 >= 2.0.0... $ECHO_C" >&6
19808
19809 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.0.0" ; then
19810 echo "$as_me:$LINENO: result: yes" >&5
19811 echo "${ECHO_T}yes" >&6
19812 succeeded=yes
19813
19814 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
19815 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
19816 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.0.0"`
19817 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
19818 echo "${ECHO_T}$GTK_CFLAGS" >&6
19819
19820 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
19821 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
19822 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.0.0"`
19823 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
19824 echo "${ECHO_T}$GTK_LIBS" >&6
19825 else
19826 GTK_CFLAGS=""
19827 GTK_LIBS=""
19828 ## If we have a custom action on failure, don't print errors, but
19829 ## do set a variable so people can do so.
19830 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.0.0"`
19831
19832 fi
19833
19834
19835
19836 else
19837 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19838 echo "*** See http://www.freedesktop.org/software/pkgconfig"
19839 fi
19840 fi
19841
19842 if test $succeeded = yes; then
19843
19844 aik_fe_gtk=yes
19845
19846 else
19847 if test $aik_fe_gtk = yes; then
19848 { { echo "$as_me:$LINENO: error: gtk+-2.0 >= 2.0.0 required for GTK+ front-end" >&5
19849 echo "$as_me: error: gtk+-2.0 >= 2.0.0 required for GTK+ front-end" >&2;}
19850 { (exit 1); exit 1; }; }
19851 fi
19852 aik_fe_gtk=no
19853
19854 fi
19855
19856 fi
19857
19858
19859
19860
19861
19862
19863
19864
19865 if test $aik_fe_gtk = yes; then
19866 AIK_FE_GTK_TRUE=
19867 AIK_FE_GTK_FALSE='#'
19868 else
19869 AIK_FE_GTK_TRUE='#'
19870 AIK_FE_GTK_FALSE=
19871 fi
19872
19873
19874
19875 #AC_CANONICAL_HOST
19876
19877 echo "$as_me:$LINENO: checking for some Win32 platform" >&5
19878 echo $ECHO_N "checking for some Win32 platform... $ECHO_C" >&6
19879 case "$host" in
19880 *-*-mingw*|*-*-cygwin*)
19881 platform_win32=yes
19882 ;;
19883 *)
19884 platform_win32=no
19885 ;;
19886 esac
19887 echo "$as_me:$LINENO: result: $platform_win32" >&5
19888 echo "${ECHO_T}$platform_win32" >&6
19889
19890
19891 if test "$platform_win32" = "yes"; then
19892 PLATFORM_WIN32_TRUE=
19893 PLATFORM_WIN32_FALSE='#'
19894 else
19895 PLATFORM_WIN32_TRUE='#'
19896 PLATFORM_WIN32_FALSE=
19897 fi
19898
19899
19900 # ========================================================================
19901
19902
19903
19904
19905 ac_config_files="$ac_config_files aiksaurus.spec Makefile base/aiksaurus-1.0.pc base/Makefile gtk/gaiksaurus-1.0.pc gtk/Makefile gtk/src/Makefile data/Makefile"
19906
19907 cat >confcache <<\_ACEOF
19908 # This file is a shell script that caches the results of configure
19909 # tests run on this system so they can be shared between configure
19910 # scripts and configure runs, see configure's option --config-cache.
19911 # It is not useful on other systems. If it contains results you don't
19912 # want to keep, you may remove or edit it.
19913 #
19914 # config.status only pays attention to the cache file if you give it
19915 # the --recheck option to rerun configure.
19916 #
19917 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19918 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19919 # following values.
19920
19921 _ACEOF
19922
19923 # The following way of writing the cache mishandles newlines in values,
19924 # but we know of no workaround that is simple, portable, and efficient.
19925 # So, don't put newlines in cache variables' values.
19926 # Ultrix sh set writes to stderr and can't be redirected directly,
19927 # and sets the high bit in the cache file unless we assign to the vars.
19928 {
19929 (set) 2>&1 |
19930 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19931 *ac_space=\ *)
19932 # `set' does not quote correctly, so add quotes (double-quote
19933 # substitution turns \\\\ into \\, and sed turns \\ into \).
19934 sed -n \
19935 "s/'/'\\\\''/g;
19936 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19937 ;;
19938 *)
19939 # `set' quotes correctly as required by POSIX, so do not add quotes.
19940 sed -n \
19941 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19942 ;;
19943 esac;
19944 } |
19945 sed '
19946 t clear
19947 : clear
19948 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19949 t end
19950 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19951 : end' >>confcache
19952 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19953 if test -w $cache_file; then
19954 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19955 cat confcache >$cache_file
19956 else
19957 echo "not updating unwritable cache $cache_file"
19958 fi
19959 fi
19960 rm -f confcache
19961
19962 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19963 # Let make expand exec_prefix.
19964 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19965
19966 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19967 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19968 # trailing colons and then remove the whole line if VPATH becomes empty
19969 # (actually we leave an empty line to preserve line numbers).
19970 if test "x$srcdir" = x.; then
19971 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19972 s/:*\$(srcdir):*/:/;
19973 s/:*\${srcdir}:*/:/;
19974 s/:*@srcdir@:*/:/;
19975 s/^\([^=]*=[ ]*\):*/\1/;
19976 s/:*$//;
19977 s/^[^=]*=[ ]*$//;
19978 }'
19979 fi
19980
19981 DEFS=-DHAVE_CONFIG_H
19982
19983 ac_libobjs=
19984 ac_ltlibobjs=
19985 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19986 # 1. Remove the extension, and $U if already installed.
19987 ac_i=`echo "$ac_i" |
19988 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19989 # 2. Add them.
19990 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19991 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19992 done
19993 LIBOBJS=$ac_libobjs
19994
19995 LTLIBOBJS=$ac_ltlibobjs
19996
19997
19998 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19999 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20000 Usually this means the macro was only invoked conditionally." >&5
20001 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20002 Usually this means the macro was only invoked conditionally." >&2;}
20003 { (exit 1); exit 1; }; }
20004 fi
20005 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20006 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20007 Usually this means the macro was only invoked conditionally." >&5
20008 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20009 Usually this means the macro was only invoked conditionally." >&2;}
20010 { (exit 1); exit 1; }; }
20011 fi
20012 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20013 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20014 Usually this means the macro was only invoked conditionally." >&5
20015 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20016 Usually this means the macro was only invoked conditionally." >&2;}
20017 { (exit 1); exit 1; }; }
20018 fi
20019 if test -z "${AIK_FE_GTK_TRUE}" && test -z "${AIK_FE_GTK_FALSE}"; then
20020 { { echo "$as_me:$LINENO: error: conditional \"AIK_FE_GTK\" was never defined.
20021 Usually this means the macro was only invoked conditionally." >&5
20022 echo "$as_me: error: conditional \"AIK_FE_GTK\" was never defined.
20023 Usually this means the macro was only invoked conditionally." >&2;}
20024 { (exit 1); exit 1; }; }
20025 fi
20026 if test -z "${PLATFORM_WIN32_TRUE}" && test -z "${PLATFORM_WIN32_FALSE}"; then
20027 { { echo "$as_me:$LINENO: error: conditional \"PLATFORM_WIN32\" was never defined.
20028 Usually this means the macro was only invoked conditionally." >&5
20029 echo "$as_me: error: conditional \"PLATFORM_WIN32\" was never defined.
20030 Usually this means the macro was only invoked conditionally." >&2;}
20031 { (exit 1); exit 1; }; }
20032 fi
20033
20034 : ${CONFIG_STATUS=./config.status}
20035 ac_clean_files_save=$ac_clean_files
20036 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20037 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20038 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20039 cat >$CONFIG_STATUS <<_ACEOF
20040 #! $SHELL
20041 # Generated by $as_me.
20042 # Run this file to recreate the current configuration.
20043 # Compiler output produced by configure, useful for debugging
20044 # configure, is in config.log if it exists.
20045
20046 debug=false
20047 ac_cs_recheck=false
20048 ac_cs_silent=false
20049 SHELL=\${CONFIG_SHELL-$SHELL}
20050 _ACEOF
20051
20052 cat >>$CONFIG_STATUS <<\_ACEOF
20053 ## --------------------- ##
20054 ## M4sh Initialization. ##
20055 ## --------------------- ##
20056
20057 # Be Bourne compatible
20058 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20059 emulate sh
20060 NULLCMD=:
20061 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20062 # is contrary to our usage. Disable this feature.
20063 alias -g '${1+"$@"}'='"$@"'
20064 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20065 set -o posix
20066 fi
20067 DUALCASE=1; export DUALCASE # for MKS sh
20068
20069 # Support unset when possible.
20070 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20071 as_unset=unset
20072 else
20073 as_unset=false
20074 fi
20075
20076
20077 # Work around bugs in pre-3.0 UWIN ksh.
20078 $as_unset ENV MAIL MAILPATH
20079 PS1='$ '
20080 PS2='> '
20081 PS4='+ '
20082
20083 # NLS nuisances.
20084 for as_var in \
20085 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20086 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20087 LC_TELEPHONE LC_TIME
20088 do
20089 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20090 eval $as_var=C; export $as_var
20091 else
20092 $as_unset $as_var
20093 fi
20094 done
20095
20096 # Required to use basename.
20097 if expr a : '\(a\)' >/dev/null 2>&1; then
20098 as_expr=expr
20099 else
20100 as_expr=false
20101 fi
20102
20103 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20104 as_basename=basename
20105 else
20106 as_basename=false
20107 fi
20108
20109
20110 # Name of the executable.
20111 as_me=`$as_basename "$0" ||
20112 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20113 X"$0" : 'X\(//\)$' \| \
20114 X"$0" : 'X\(/\)$' \| \
20115 . : '\(.\)' 2>/dev/null ||
20116 echo X/"$0" |
20117 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20118 /^X\/\(\/\/\)$/{ s//\1/; q; }
20119 /^X\/\(\/\).*/{ s//\1/; q; }
20120 s/.*/./; q'`
20121
20122
20123 # PATH needs CR, and LINENO needs CR and PATH.
20124 # Avoid depending upon Character Ranges.
20125 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20126 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20127 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20128 as_cr_digits='0123456789'
20129 as_cr_alnum=$as_cr_Letters$as_cr_digits
20130
20131 # The user is always right.
20132 if test "${PATH_SEPARATOR+set}" != set; then
20133 echo "#! /bin/sh" >conf$$.sh
20134 echo "exit 0" >>conf$$.sh
20135 chmod +x conf$$.sh
20136 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20137 PATH_SEPARATOR=';'
20138 else
20139 PATH_SEPARATOR=:
20140 fi
20141 rm -f conf$$.sh
20142 fi
20143
20144
20145 as_lineno_1=$LINENO
20146 as_lineno_2=$LINENO
20147 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20148 test "x$as_lineno_1" != "x$as_lineno_2" &&
20149 test "x$as_lineno_3" = "x$as_lineno_2" || {
20150 # Find who we are. Look in the path if we contain no path at all
20151 # relative or not.
20152 case $0 in
20153 *[\\/]* ) as_myself=$0 ;;
20154 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20155 for as_dir in $PATH
20156 do
20157 IFS=$as_save_IFS
20158 test -z "$as_dir" && as_dir=.
20159 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20160 done
20161
20162 ;;
20163 esac
20164 # We did not find ourselves, most probably we were run as `sh COMMAND'
20165 # in which case we are not to be found in the path.
20166 if test "x$as_myself" = x; then
20167 as_myself=$0
20168 fi
20169 if test ! -f "$as_myself"; then
20170 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20171 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20172 { (exit 1); exit 1; }; }
20173 fi
20174 case $CONFIG_SHELL in
20175 '')
20176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20177 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20178 do
20179 IFS=$as_save_IFS
20180 test -z "$as_dir" && as_dir=.
20181 for as_base in sh bash ksh sh5; do
20182 case $as_dir in
20183 /*)
20184 if ("$as_dir/$as_base" -c '
20185 as_lineno_1=$LINENO
20186 as_lineno_2=$LINENO
20187 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20188 test "x$as_lineno_1" != "x$as_lineno_2" &&
20189 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20190 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20191 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20192 CONFIG_SHELL=$as_dir/$as_base
20193 export CONFIG_SHELL
20194 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20195 fi;;
20196 esac
20197 done
20198 done
20199 ;;
20200 esac
20201
20202 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20203 # uniformly replaced by the line number. The first 'sed' inserts a
20204 # line-number line before each line; the second 'sed' does the real
20205 # work. The second script uses 'N' to pair each line-number line
20206 # with the numbered line, and appends trailing '-' during
20207 # substitution so that $LINENO is not a special case at line end.
20208 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20209 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20210 sed '=' <$as_myself |
20211 sed '
20212 N
20213 s,$,-,
20214 : loop
20215 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20216 t loop
20217 s,-$,,
20218 s,^['$as_cr_digits']*\n,,
20219 ' >$as_me.lineno &&
20220 chmod +x $as_me.lineno ||
20221 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20222 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20223 { (exit 1); exit 1; }; }
20224
20225 # Don't try to exec as it changes $[0], causing all sort of problems
20226 # (the dirname of $[0] is not the place where we might find the
20227 # original and so on. Autoconf is especially sensible to this).
20228 . ./$as_me.lineno
20229 # Exit status is that of the last command.
20230 exit
20231 }
20232
20233
20234 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20235 *c*,-n*) ECHO_N= ECHO_C='
20236 ' ECHO_T=' ' ;;
20237 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20238 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20239 esac
20240
20241 if expr a : '\(a\)' >/dev/null 2>&1; then
20242 as_expr=expr
20243 else
20244 as_expr=false
20245 fi
20246
20247 rm -f conf$$ conf$$.exe conf$$.file
20248 echo >conf$$.file
20249 if ln -s conf$$.file conf$$ 2>/dev/null; then
20250 # We could just check for DJGPP; but this test a) works b) is more generic
20251 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20252 if test -f conf$$.exe; then
20253 # Don't use ln at all; we don't have any links
20254 as_ln_s='cp -p'
20255 else
20256 as_ln_s='ln -s'
20257 fi
20258 elif ln conf$$.file conf$$ 2>/dev/null; then
20259 as_ln_s=ln
20260 else
20261 as_ln_s='cp -p'
20262 fi
20263 rm -f conf$$ conf$$.exe conf$$.file
20264
20265 if mkdir -p . 2>/dev/null; then
20266 as_mkdir_p=:
20267 else
20268 test -d ./-p && rmdir ./-p
20269 as_mkdir_p=false
20270 fi
20271
20272 as_executable_p="test -f"
20273
20274 # Sed expression to map a string onto a valid CPP name.
20275 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20276
20277 # Sed expression to map a string onto a valid variable name.
20278 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20279
20280
20281 # IFS
20282 # We need space, tab and new line, in precisely that order.
20283 as_nl='
20284 '
20285 IFS=" $as_nl"
20286
20287 # CDPATH.
20288 $as_unset CDPATH
20289
20290 exec 6>&1
20291
20292 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20293 # report actual input values of CONFIG_FILES etc. instead of their
20294 # values after options handling. Logging --version etc. is OK.
20295 exec 5>>config.log
20296 {
20297 echo
20298 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20299 ## Running $as_me. ##
20300 _ASBOX
20301 } >&5
20302 cat >&5 <<_CSEOF
20303
20304 This file was extended by aiksaurus $as_me 1.2, which was
20305 generated by GNU Autoconf 2.59. Invocation command line was
20306
20307 CONFIG_FILES = $CONFIG_FILES
20308 CONFIG_HEADERS = $CONFIG_HEADERS
20309 CONFIG_LINKS = $CONFIG_LINKS
20310 CONFIG_COMMANDS = $CONFIG_COMMANDS
20311 $ $0 $@
20312
20313 _CSEOF
20314 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20315 echo >&5
20316 _ACEOF
20317
20318 # Files that config.status was made for.
20319 if test -n "$ac_config_files"; then
20320 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20321 fi
20322
20323 if test -n "$ac_config_headers"; then
20324 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20325 fi
20326
20327 if test -n "$ac_config_links"; then
20328 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20329 fi
20330
20331 if test -n "$ac_config_commands"; then
20332 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20333 fi
20334
20335 cat >>$CONFIG_STATUS <<\_ACEOF
20336
20337 ac_cs_usage="\
20338 \`$as_me' instantiates files from templates according to the
20339 current configuration.
20340
20341 Usage: $0 [OPTIONS] [FILE]...
20342
20343 -h, --help print this help, then exit
20344 -V, --version print version number, then exit
20345 -q, --quiet do not print progress messages
20346 -d, --debug don't remove temporary files
20347 --recheck update $as_me by reconfiguring in the same conditions
20348 --file=FILE[:TEMPLATE]
20349 instantiate the configuration file FILE
20350 --header=FILE[:TEMPLATE]
20351 instantiate the configuration header FILE
20352
20353 Configuration files:
20354 $config_files
20355
20356 Configuration headers:
20357 $config_headers
20358
20359 Configuration commands:
20360 $config_commands
20361
20362 Report bugs to <[email protected]>."
20363 _ACEOF
20364
20365 cat >>$CONFIG_STATUS <<_ACEOF
20366 ac_cs_version="\\
20367 aiksaurus config.status 1.2
20368 configured by $0, generated by GNU Autoconf 2.59,
20369 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20370
20371 Copyright (C) 2003 Free Software Foundation, Inc.
20372 This config.status script is free software; the Free Software Foundation
20373 gives unlimited permission to copy, distribute and modify it."
20374 srcdir=$srcdir
20375 INSTALL="$INSTALL"
20376 _ACEOF
20377
20378 cat >>$CONFIG_STATUS <<\_ACEOF
20379 # If no file are specified by the user, then we need to provide default
20380 # value. By we need to know if files were specified by the user.
20381 ac_need_defaults=:
20382 while test $# != 0
20383 do
20384 case $1 in
20385 --*=*)
20386 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20387 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20388 ac_shift=:
20389 ;;
20390 -*)
20391 ac_option=$1
20392 ac_optarg=$2
20393 ac_shift=shift
20394 ;;
20395 *) # This is not an option, so the user has probably given explicit
20396 # arguments.
20397 ac_option=$1
20398 ac_need_defaults=false;;
20399 esac
20400
20401 case $ac_option in
20402 # Handling of the options.
20403 _ACEOF
20404 cat >>$CONFIG_STATUS <<\_ACEOF
20405 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20406 ac_cs_recheck=: ;;
20407 --version | --vers* | -V )
20408 echo "$ac_cs_version"; exit 0 ;;
20409 --he | --h)
20410 # Conflict between --help and --header
20411 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20412 Try \`$0 --help' for more information." >&5
20413 echo "$as_me: error: ambiguous option: $1
20414 Try \`$0 --help' for more information." >&2;}
20415 { (exit 1); exit 1; }; };;
20416 --help | --hel | -h )
20417 echo "$ac_cs_usage"; exit 0 ;;
20418 --debug | --d* | -d )
20419 debug=: ;;
20420 --file | --fil | --fi | --f )
20421 $ac_shift
20422 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20423 ac_need_defaults=false;;
20424 --header | --heade | --head | --hea )
20425 $ac_shift
20426 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20427 ac_need_defaults=false;;
20428 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20429 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20430 ac_cs_silent=: ;;
20431
20432 # This is an error.
20433 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20434 Try \`$0 --help' for more information." >&5
20435 echo "$as_me: error: unrecognized option: $1
20436 Try \`$0 --help' for more information." >&2;}
20437 { (exit 1); exit 1; }; } ;;
20438
20439 *) ac_config_targets="$ac_config_targets $1" ;;
20440
20441 esac
20442 shift
20443 done
20444
20445 ac_configure_extra_args=
20446
20447 if $ac_cs_silent; then
20448 exec 6>/dev/null
20449 ac_configure_extra_args="$ac_configure_extra_args --silent"
20450 fi
20451
20452 _ACEOF
20453 cat >>$CONFIG_STATUS <<_ACEOF
20454 if \$ac_cs_recheck; then
20455 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20456 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20457 fi
20458
20459 _ACEOF
20460
20461 cat >>$CONFIG_STATUS <<_ACEOF
20462 #
20463 # INIT-COMMANDS section.
20464 #
20465
20466 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20467
20468 _ACEOF
20469
20470
20471
20472 cat >>$CONFIG_STATUS <<\_ACEOF
20473 for ac_config_target in $ac_config_targets
20474 do
20475 case "$ac_config_target" in
20476 # Handling of arguments.
20477 "aiksaurus.spec" ) CONFIG_FILES="$CONFIG_FILES aiksaurus.spec" ;;
20478 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20479 "base/aiksaurus-1.0.pc" ) CONFIG_FILES="$CONFIG_FILES base/aiksaurus-1.0.pc" ;;
20480 "base/Makefile" ) CONFIG_FILES="$CONFIG_FILES base/Makefile" ;;
20481 "gtk/gaiksaurus-1.0.pc" ) CONFIG_FILES="$CONFIG_FILES gtk/gaiksaurus-1.0.pc" ;;
20482 "gtk/Makefile" ) CONFIG_FILES="$CONFIG_FILES gtk/Makefile" ;;
20483 "gtk/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES gtk/src/Makefile" ;;
20484 "data/Makefile" ) CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
20485 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20486 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20487 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20488 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20489 { (exit 1); exit 1; }; };;
20490 esac
20491 done
20492
20493 # If the user did not use the arguments to specify the items to instantiate,
20494 # then the envvar interface is used. Set only those that are not.
20495 # We use the long form for the default assignment because of an extremely
20496 # bizarre bug on SunOS 4.1.3.
20497 if $ac_need_defaults; then
20498 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20499 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20500 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20501 fi
20502
20503 # Have a temporary directory for convenience. Make it in the build tree
20504 # simply because there is no reason to put it here, and in addition,
20505 # creating and moving files from /tmp can sometimes cause problems.
20506 # Create a temporary directory, and hook for its removal unless debugging.
20507 $debug ||
20508 {
20509 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20510 trap '{ (exit 1); exit 1; }' 1 2 13 15
20511 }
20512
20513 # Create a (secure) tmp directory for tmp files.
20514
20515 {
20516 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20517 test -n "$tmp" && test -d "$tmp"
20518 } ||
20519 {
20520 tmp=./confstat$$-$RANDOM
20521 (umask 077 && mkdir $tmp)
20522 } ||
20523 {
20524 echo "$me: cannot create a temporary directory in ." >&2
20525 { (exit 1); exit 1; }
20526 }
20527
20528 _ACEOF
20529
20530 cat >>$CONFIG_STATUS <<_ACEOF
20531
20532 #
20533 # CONFIG_FILES section.
20534 #
20535
20536 # No need to generate the scripts if there are no CONFIG_FILES.
20537 # This happens for instance when ./config.status config.h
20538 if test -n "\$CONFIG_FILES"; then
20539 # Protect against being on the right side of a sed subst in config.status.
20540 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20541 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20542 s,@SHELL@,$SHELL,;t t
20543 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20544 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20545 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20546 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20547 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20548 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20549 s,@exec_prefix@,$exec_prefix,;t t
20550 s,@prefix@,$prefix,;t t
20551 s,@program_transform_name@,$program_transform_name,;t t
20552 s,@bindir@,$bindir,;t t
20553 s,@sbindir@,$sbindir,;t t
20554 s,@libexecdir@,$libexecdir,;t t
20555 s,@datadir@,$datadir,;t t
20556 s,@sysconfdir@,$sysconfdir,;t t
20557 s,@sharedstatedir@,$sharedstatedir,;t t
20558 s,@localstatedir@,$localstatedir,;t t
20559 s,@libdir@,$libdir,;t t
20560 s,@includedir@,$includedir,;t t
20561 s,@oldincludedir@,$oldincludedir,;t t
20562 s,@infodir@,$infodir,;t t
20563 s,@mandir@,$mandir,;t t
20564 s,@build_alias@,$build_alias,;t t
20565 s,@host_alias@,$host_alias,;t t
20566 s,@target_alias@,$target_alias,;t t
20567 s,@DEFS@,$DEFS,;t t
20568 s,@ECHO_C@,$ECHO_C,;t t
20569 s,@ECHO_N@,$ECHO_N,;t t
20570 s,@ECHO_T@,$ECHO_T,;t t
20571 s,@LIBS@,$LIBS,;t t
20572 s,@AIKSAURUS_VERSION@,$AIKSAURUS_VERSION,;t t
20573 s,@AIKSAURUS_RELEASE@,$AIKSAURUS_RELEASE,;t t
20574 s,@LT_RELEASE@,$LT_RELEASE,;t t
20575 s,@LT_AIK_VERSION_INFO@,$LT_AIK_VERSION_INFO,;t t
20576 s,@LT_AIKGTK_VERSION_INFO@,$LT_AIKGTK_VERSION_INFO,;t t
20577 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20578 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20579 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20580 s,@CYGPATH_W@,$CYGPATH_W,;t t
20581 s,@PACKAGE@,$PACKAGE,;t t
20582 s,@VERSION@,$VERSION,;t t
20583 s,@ACLOCAL@,$ACLOCAL,;t t
20584 s,@AUTOCONF@,$AUTOCONF,;t t
20585 s,@AUTOMAKE@,$AUTOMAKE,;t t
20586 s,@AUTOHEADER@,$AUTOHEADER,;t t
20587 s,@MAKEINFO@,$MAKEINFO,;t t
20588 s,@AMTAR@,$AMTAR,;t t
20589 s,@install_sh@,$install_sh,;t t
20590 s,@STRIP@,$STRIP,;t t
20591 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20592 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20593 s,@mkdir_p@,$mkdir_p,;t t
20594 s,@AWK@,$AWK,;t t
20595 s,@SET_MAKE@,$SET_MAKE,;t t
20596 s,@am__leading_dot@,$am__leading_dot,;t t
20597 s,@CC@,$CC,;t t
20598 s,@CFLAGS@,$CFLAGS,;t t
20599 s,@LDFLAGS@,$LDFLAGS,;t t
20600 s,@CPPFLAGS@,$CPPFLAGS,;t t
20601 s,@ac_ct_CC@,$ac_ct_CC,;t t
20602 s,@EXEEXT@,$EXEEXT,;t t
20603 s,@OBJEXT@,$OBJEXT,;t t
20604 s,@DEPDIR@,$DEPDIR,;t t
20605 s,@am__include@,$am__include,;t t
20606 s,@am__quote@,$am__quote,;t t
20607 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20608 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20609 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20610 s,@CCDEPMODE@,$CCDEPMODE,;t t
20611 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20612 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20613 s,@CPP@,$CPP,;t t
20614 s,@CXX@,$CXX,;t t
20615 s,@CXXFLAGS@,$CXXFLAGS,;t t
20616 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20617 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20618 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20619 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
20620 s,@LN_S@,$LN_S,;t t
20621 s,@build@,$build,;t t
20622 s,@build_cpu@,$build_cpu,;t t
20623 s,@build_vendor@,$build_vendor,;t t
20624 s,@build_os@,$build_os,;t t
20625 s,@host@,$host,;t t
20626 s,@host_cpu@,$host_cpu,;t t
20627 s,@host_vendor@,$host_vendor,;t t
20628 s,@host_os@,$host_os,;t t
20629 s,@EGREP@,$EGREP,;t t
20630 s,@ECHO@,$ECHO,;t t
20631 s,@AR@,$AR,;t t
20632 s,@ac_ct_AR@,$ac_ct_AR,;t t
20633 s,@RANLIB@,$RANLIB,;t t
20634 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20635 s,@DLLTOOL@,$DLLTOOL,;t t
20636 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
20637 s,@AS@,$AS,;t t
20638 s,@ac_ct_AS@,$ac_ct_AS,;t t
20639 s,@OBJDUMP@,$OBJDUMP,;t t
20640 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
20641 s,@CXXCPP@,$CXXCPP,;t t
20642 s,@F77@,$F77,;t t
20643 s,@FFLAGS@,$FFLAGS,;t t
20644 s,@ac_ct_F77@,$ac_ct_F77,;t t
20645 s,@LIBTOOL@,$LIBTOOL,;t t
20646 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
20647 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
20648 s,@GTK_LIBS@,$GTK_LIBS,;t t
20649 s,@GTK_DEFS@,$GTK_DEFS,;t t
20650 s,@AIK_FE_GTK_TRUE@,$AIK_FE_GTK_TRUE,;t t
20651 s,@AIK_FE_GTK_FALSE@,$AIK_FE_GTK_FALSE,;t t
20652 s,@PLATFORM_WIN32_TRUE@,$PLATFORM_WIN32_TRUE,;t t
20653 s,@PLATFORM_WIN32_FALSE@,$PLATFORM_WIN32_FALSE,;t t
20654 s,@LIBOBJS@,$LIBOBJS,;t t
20655 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20656 CEOF
20657
20658 _ACEOF
20659
20660 cat >>$CONFIG_STATUS <<\_ACEOF
20661 # Split the substitutions into bite-sized pieces for seds with
20662 # small command number limits, like on Digital OSF/1 and HP-UX.
20663 ac_max_sed_lines=48
20664 ac_sed_frag=1 # Number of current file.
20665 ac_beg=1 # First line for current file.
20666 ac_end=$ac_max_sed_lines # Line after last line for current file.
20667 ac_more_lines=:
20668 ac_sed_cmds=
20669 while $ac_more_lines; do
20670 if test $ac_beg -gt 1; then
20671 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20672 else
20673 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20674 fi
20675 if test ! -s $tmp/subs.frag; then
20676 ac_more_lines=false
20677 else
20678 # The purpose of the label and of the branching condition is to
20679 # speed up the sed processing (if there are no `@' at all, there
20680 # is no need to browse any of the substitutions).
20681 # These are the two extra sed commands mentioned above.
20682 (echo ':t
20683 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20684 if test -z "$ac_sed_cmds"; then
20685 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20686 else
20687 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20688 fi
20689 ac_sed_frag=`expr $ac_sed_frag + 1`
20690 ac_beg=$ac_end
20691 ac_end=`expr $ac_end + $ac_max_sed_lines`
20692 fi
20693 done
20694 if test -z "$ac_sed_cmds"; then
20695 ac_sed_cmds=cat
20696 fi
20697 fi # test -n "$CONFIG_FILES"
20698
20699 _ACEOF
20700 cat >>$CONFIG_STATUS <<\_ACEOF
20701 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20702 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20703 case $ac_file in
20704 - | *:- | *:-:* ) # input from stdin
20705 cat >$tmp/stdin
20706 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20707 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20708 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20709 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20710 * ) ac_file_in=$ac_file.in ;;
20711 esac
20712
20713 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20714 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20715 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20716 X"$ac_file" : 'X\(//\)[^/]' \| \
20717 X"$ac_file" : 'X\(//\)$' \| \
20718 X"$ac_file" : 'X\(/\)' \| \
20719 . : '\(.\)' 2>/dev/null ||
20720 echo X"$ac_file" |
20721 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20722 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20723 /^X\(\/\/\)$/{ s//\1/; q; }
20724 /^X\(\/\).*/{ s//\1/; q; }
20725 s/.*/./; q'`
20726 { if $as_mkdir_p; then
20727 mkdir -p "$ac_dir"
20728 else
20729 as_dir="$ac_dir"
20730 as_dirs=
20731 while test ! -d "$as_dir"; do
20732 as_dirs="$as_dir $as_dirs"
20733 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20734 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20735 X"$as_dir" : 'X\(//\)[^/]' \| \
20736 X"$as_dir" : 'X\(//\)$' \| \
20737 X"$as_dir" : 'X\(/\)' \| \
20738 . : '\(.\)' 2>/dev/null ||
20739 echo X"$as_dir" |
20740 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20741 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20742 /^X\(\/\/\)$/{ s//\1/; q; }
20743 /^X\(\/\).*/{ s//\1/; q; }
20744 s/.*/./; q'`
20745 done
20746 test ! -n "$as_dirs" || mkdir $as_dirs
20747 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20748 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20749 { (exit 1); exit 1; }; }; }
20750
20751 ac_builddir=.
20752
20753 if test "$ac_dir" != .; then
20754 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20755 # A "../" for each directory in $ac_dir_suffix.
20756 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20757 else
20758 ac_dir_suffix= ac_top_builddir=
20759 fi
20760
20761 case $srcdir in
20762 .) # No --srcdir option. We are building in place.
20763 ac_srcdir=.
20764 if test -z "$ac_top_builddir"; then
20765 ac_top_srcdir=.
20766 else
20767 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20768 fi ;;
20769 [\\/]* | ?:[\\/]* ) # Absolute path.
20770 ac_srcdir=$srcdir$ac_dir_suffix;
20771 ac_top_srcdir=$srcdir ;;
20772 *) # Relative path.
20773 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20774 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20775 esac
20776
20777 # Do not use `cd foo && pwd` to compute absolute paths, because
20778 # the directories may not exist.
20779 case `pwd` in
20780 .) ac_abs_builddir="$ac_dir";;
20781 *)
20782 case "$ac_dir" in
20783 .) ac_abs_builddir=`pwd`;;
20784 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20785 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20786 esac;;
20787 esac
20788 case $ac_abs_builddir in
20789 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20790 *)
20791 case ${ac_top_builddir}. in
20792 .) ac_abs_top_builddir=$ac_abs_builddir;;
20793 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20794 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20795 esac;;
20796 esac
20797 case $ac_abs_builddir in
20798 .) ac_abs_srcdir=$ac_srcdir;;
20799 *)
20800 case $ac_srcdir in
20801 .) ac_abs_srcdir=$ac_abs_builddir;;
20802 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20803 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20804 esac;;
20805 esac
20806 case $ac_abs_builddir in
20807 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20808 *)
20809 case $ac_top_srcdir in
20810 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20811 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20812 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20813 esac;;
20814 esac
20815
20816
20817 case $INSTALL in
20818 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20819 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20820 esac
20821
20822 if test x"$ac_file" != x-; then
20823 { echo "$as_me:$LINENO: creating $ac_file" >&5
20824 echo "$as_me: creating $ac_file" >&6;}
20825 rm -f "$ac_file"
20826 fi
20827 # Let's still pretend it is `configure' which instantiates (i.e., don't
20828 # use $as_me), people would be surprised to read:
20829 # /* config.h. Generated by config.status. */
20830 if test x"$ac_file" = x-; then
20831 configure_input=
20832 else
20833 configure_input="$ac_file. "
20834 fi
20835 configure_input=$configure_input"Generated from `echo $ac_file_in |
20836 sed 's,.*/,,'` by configure."
20837
20838 # First look for the input files in the build tree, otherwise in the
20839 # src tree.
20840 ac_file_inputs=`IFS=:
20841 for f in $ac_file_in; do
20842 case $f in
20843 -) echo $tmp/stdin ;;
20844 [\\/$]*)
20845 # Absolute (can't be DOS-style, as IFS=:)
20846 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20847 echo "$as_me: error: cannot find input file: $f" >&2;}
20848 { (exit 1); exit 1; }; }
20849 echo "$f";;
20850 *) # Relative
20851 if test -f "$f"; then
20852 # Build tree
20853 echo "$f"
20854 elif test -f "$srcdir/$f"; then
20855 # Source tree
20856 echo "$srcdir/$f"
20857 else
20858 # /dev/null tree
20859 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20860 echo "$as_me: error: cannot find input file: $f" >&2;}
20861 { (exit 1); exit 1; }; }
20862 fi;;
20863 esac
20864 done` || { (exit 1); exit 1; }
20865 _ACEOF
20866 cat >>$CONFIG_STATUS <<_ACEOF
20867 sed "$ac_vpsub
20868 $extrasub
20869 _ACEOF
20870 cat >>$CONFIG_STATUS <<\_ACEOF
20871 :t
20872 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20873 s,@configure_input@,$configure_input,;t t
20874 s,@srcdir@,$ac_srcdir,;t t
20875 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20876 s,@top_srcdir@,$ac_top_srcdir,;t t
20877 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20878 s,@builddir@,$ac_builddir,;t t
20879 s,@abs_builddir@,$ac_abs_builddir,;t t
20880 s,@top_builddir@,$ac_top_builddir,;t t
20881 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20882 s,@INSTALL@,$ac_INSTALL,;t t
20883 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20884 rm -f $tmp/stdin
20885 if test x"$ac_file" != x-; then
20886 mv $tmp/out $ac_file
20887 else
20888 cat $tmp/out
20889 rm -f $tmp/out
20890 fi
20891
20892 done
20893 _ACEOF
20894 cat >>$CONFIG_STATUS <<\_ACEOF
20895
20896 #
20897 # CONFIG_HEADER section.
20898 #
20899
20900 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20901 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20902 #
20903 # ac_d sets the value in "#define NAME VALUE" lines.
20904 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20905 ac_dB='[ ].*$,\1#\2'
20906 ac_dC=' '
20907 ac_dD=',;t'
20908 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20909 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20910 ac_uB='$,\1#\2define\3'
20911 ac_uC=' '
20912 ac_uD=',;t'
20913
20914 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20915 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20916 case $ac_file in
20917 - | *:- | *:-:* ) # input from stdin
20918 cat >$tmp/stdin
20919 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20920 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20921 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20922 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20923 * ) ac_file_in=$ac_file.in ;;
20924 esac
20925
20926 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20927 echo "$as_me: creating $ac_file" >&6;}
20928
20929 # First look for the input files in the build tree, otherwise in the
20930 # src tree.
20931 ac_file_inputs=`IFS=:
20932 for f in $ac_file_in; do
20933 case $f in
20934 -) echo $tmp/stdin ;;
20935 [\\/$]*)
20936 # Absolute (can't be DOS-style, as IFS=:)
20937 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20938 echo "$as_me: error: cannot find input file: $f" >&2;}
20939 { (exit 1); exit 1; }; }
20940 # Do quote $f, to prevent DOS paths from being IFS'd.
20941 echo "$f";;
20942 *) # Relative
20943 if test -f "$f"; then
20944 # Build tree
20945 echo "$f"
20946 elif test -f "$srcdir/$f"; then
20947 # Source tree
20948 echo "$srcdir/$f"
20949 else
20950 # /dev/null tree
20951 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20952 echo "$as_me: error: cannot find input file: $f" >&2;}
20953 { (exit 1); exit 1; }; }
20954 fi;;
20955 esac
20956 done` || { (exit 1); exit 1; }
20957 # Remove the trailing spaces.
20958 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20959
20960 _ACEOF
20961
20962 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20963 # `conftest.undefs', that substitutes the proper values into
20964 # config.h.in to produce config.h. The first handles `#define'
20965 # templates, and the second `#undef' templates.
20966 # And first: Protect against being on the right side of a sed subst in
20967 # config.status. Protect against being in an unquoted here document
20968 # in config.status.
20969 rm -f conftest.defines conftest.undefs
20970 # Using a here document instead of a string reduces the quoting nightmare.
20971 # Putting comments in sed scripts is not portable.
20972 #
20973 # `end' is used to avoid that the second main sed command (meant for
20974 # 0-ary CPP macros) applies to n-ary macro definitions.
20975 # See the Autoconf documentation for `clear'.
20976 cat >confdef2sed.sed <<\_ACEOF
20977 s/[\\&,]/\\&/g
20978 s,[\\$`],\\&,g
20979 t clear
20980 : clear
20981 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20982 t end
20983 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20984 : end
20985 _ACEOF
20986 # If some macros were called several times there might be several times
20987 # the same #defines, which is useless. Nevertheless, we may not want to
20988 # sort them, since we want the *last* AC-DEFINE to be honored.
20989 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20990 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20991 rm -f confdef2sed.sed
20992
20993 # This sed command replaces #undef with comments. This is necessary, for
20994 # example, in the case of _POSIX_SOURCE, which is predefined and required
20995 # on some systems where configure will not decide to define it.
20996 cat >>conftest.undefs <<\_ACEOF
20997 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20998 _ACEOF
20999
21000 # Break up conftest.defines because some shells have a limit on the size
21001 # of here documents, and old seds have small limits too (100 cmds).
21002 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21003 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21004 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21005 echo ' :' >>$CONFIG_STATUS
21006 rm -f conftest.tail
21007 while grep . conftest.defines >/dev/null
21008 do
21009 # Write a limited-size here document to $tmp/defines.sed.
21010 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21011 # Speed up: don't consider the non `#define' lines.
21012 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
21013 # Work around the forget-to-reset-the-flag bug.
21014 echo 't clr' >>$CONFIG_STATUS
21015 echo ': clr' >>$CONFIG_STATUS
21016 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21017 echo 'CEOF
21018 sed -f $tmp/defines.sed $tmp/in >$tmp/out
21019 rm -f $tmp/in
21020 mv $tmp/out $tmp/in
21021 ' >>$CONFIG_STATUS
21022 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21023 rm -f conftest.defines
21024 mv conftest.tail conftest.defines
21025 done
21026 rm -f conftest.defines
21027 echo ' fi # grep' >>$CONFIG_STATUS
21028 echo >>$CONFIG_STATUS
21029
21030 # Break up conftest.undefs because some shells have a limit on the size
21031 # of here documents, and old seds have small limits too (100 cmds).
21032 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
21033 rm -f conftest.tail
21034 while grep . conftest.undefs >/dev/null
21035 do
21036 # Write a limited-size here document to $tmp/undefs.sed.
21037 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21038 # Speed up: don't consider the non `#undef'
21039 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
21040 # Work around the forget-to-reset-the-flag bug.
21041 echo 't clr' >>$CONFIG_STATUS
21042 echo ': clr' >>$CONFIG_STATUS
21043 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21044 echo 'CEOF
21045 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21046 rm -f $tmp/in
21047 mv $tmp/out $tmp/in
21048 ' >>$CONFIG_STATUS
21049 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21050 rm -f conftest.undefs
21051 mv conftest.tail conftest.undefs
21052 done
21053 rm -f conftest.undefs
21054
21055 cat >>$CONFIG_STATUS <<\_ACEOF
21056 # Let's still pretend it is `configure' which instantiates (i.e., don't
21057 # use $as_me), people would be surprised to read:
21058 # /* config.h. Generated by config.status. */
21059 if test x"$ac_file" = x-; then
21060 echo "/* Generated by configure. */" >$tmp/config.h
21061 else
21062 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21063 fi
21064 cat $tmp/in >>$tmp/config.h
21065 rm -f $tmp/in
21066 if test x"$ac_file" != x-; then
21067 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21068 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21069 echo "$as_me: $ac_file is unchanged" >&6;}
21070 else
21071 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21072 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21073 X"$ac_file" : 'X\(//\)[^/]' \| \
21074 X"$ac_file" : 'X\(//\)$' \| \
21075 X"$ac_file" : 'X\(/\)' \| \
21076 . : '\(.\)' 2>/dev/null ||
21077 echo X"$ac_file" |
21078 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21079 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21080 /^X\(\/\/\)$/{ s//\1/; q; }
21081 /^X\(\/\).*/{ s//\1/; q; }
21082 s/.*/./; q'`
21083 { if $as_mkdir_p; then
21084 mkdir -p "$ac_dir"
21085 else
21086 as_dir="$ac_dir"
21087 as_dirs=
21088 while test ! -d "$as_dir"; do
21089 as_dirs="$as_dir $as_dirs"
21090 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21091 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21092 X"$as_dir" : 'X\(//\)[^/]' \| \
21093 X"$as_dir" : 'X\(//\)$' \| \
21094 X"$as_dir" : 'X\(/\)' \| \
21095 . : '\(.\)' 2>/dev/null ||
21096 echo X"$as_dir" |
21097 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21098 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21099 /^X\(\/\/\)$/{ s//\1/; q; }
21100 /^X\(\/\).*/{ s//\1/; q; }
21101 s/.*/./; q'`
21102 done
21103 test ! -n "$as_dirs" || mkdir $as_dirs
21104 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21105 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21106 { (exit 1); exit 1; }; }; }
21107
21108 rm -f $ac_file
21109 mv $tmp/config.h $ac_file
21110 fi
21111 else
21112 cat $tmp/config.h
21113 rm -f $tmp/config.h
21114 fi
21115 # Compute $ac_file's index in $config_headers.
21116 _am_stamp_count=1
21117 for _am_header in $config_headers :; do
21118 case $_am_header in
21119 $ac_file | $ac_file:* )
21120 break ;;
21121 * )
21122 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21123 esac
21124 done
21125 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21126 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21127 X$ac_file : 'X\(//\)[^/]' \| \
21128 X$ac_file : 'X\(//\)$' \| \
21129 X$ac_file : 'X\(/\)' \| \
21130 . : '\(.\)' 2>/dev/null ||
21131 echo X$ac_file |
21132 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21133 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21134 /^X\(\/\/\)$/{ s//\1/; q; }
21135 /^X\(\/\).*/{ s//\1/; q; }
21136 s/.*/./; q'`/stamp-h$_am_stamp_count
21137 done
21138 _ACEOF
21139 cat >>$CONFIG_STATUS <<\_ACEOF
21140
21141 #
21142 # CONFIG_COMMANDS section.
21143 #
21144 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21145 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21146 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21147 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21148 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21149 X"$ac_dest" : 'X\(//\)[^/]' \| \
21150 X"$ac_dest" : 'X\(//\)$' \| \
21151 X"$ac_dest" : 'X\(/\)' \| \
21152 . : '\(.\)' 2>/dev/null ||
21153 echo X"$ac_dest" |
21154 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21155 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21156 /^X\(\/\/\)$/{ s//\1/; q; }
21157 /^X\(\/\).*/{ s//\1/; q; }
21158 s/.*/./; q'`
21159 { if $as_mkdir_p; then
21160 mkdir -p "$ac_dir"
21161 else
21162 as_dir="$ac_dir"
21163 as_dirs=
21164 while test ! -d "$as_dir"; do
21165 as_dirs="$as_dir $as_dirs"
21166 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21167 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21168 X"$as_dir" : 'X\(//\)[^/]' \| \
21169 X"$as_dir" : 'X\(//\)$' \| \
21170 X"$as_dir" : 'X\(/\)' \| \
21171 . : '\(.\)' 2>/dev/null ||
21172 echo X"$as_dir" |
21173 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21174 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21175 /^X\(\/\/\)$/{ s//\1/; q; }
21176 /^X\(\/\).*/{ s//\1/; q; }
21177 s/.*/./; q'`
21178 done
21179 test ! -n "$as_dirs" || mkdir $as_dirs
21180 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21181 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21182 { (exit 1); exit 1; }; }; }
21183
21184 ac_builddir=.
21185
21186 if test "$ac_dir" != .; then
21187 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21188 # A "../" for each directory in $ac_dir_suffix.
21189 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21190 else
21191 ac_dir_suffix= ac_top_builddir=
21192 fi
21193
21194 case $srcdir in
21195 .) # No --srcdir option. We are building in place.
21196 ac_srcdir=.
21197 if test -z "$ac_top_builddir"; then
21198 ac_top_srcdir=.
21199 else
21200 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21201 fi ;;
21202 [\\/]* | ?:[\\/]* ) # Absolute path.
21203 ac_srcdir=$srcdir$ac_dir_suffix;
21204 ac_top_srcdir=$srcdir ;;
21205 *) # Relative path.
21206 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21207 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21208 esac
21209
21210 # Do not use `cd foo && pwd` to compute absolute paths, because
21211 # the directories may not exist.
21212 case `pwd` in
21213 .) ac_abs_builddir="$ac_dir";;
21214 *)
21215 case "$ac_dir" in
21216 .) ac_abs_builddir=`pwd`;;
21217 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21218 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21219 esac;;
21220 esac
21221 case $ac_abs_builddir in
21222 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21223 *)
21224 case ${ac_top_builddir}. in
21225 .) ac_abs_top_builddir=$ac_abs_builddir;;
21226 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21227 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21228 esac;;
21229 esac
21230 case $ac_abs_builddir in
21231 .) ac_abs_srcdir=$ac_srcdir;;
21232 *)
21233 case $ac_srcdir in
21234 .) ac_abs_srcdir=$ac_abs_builddir;;
21235 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21236 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21237 esac;;
21238 esac
21239 case $ac_abs_builddir in
21240 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21241 *)
21242 case $ac_top_srcdir in
21243 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21244 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21245 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21246 esac;;
21247 esac
21248
21249
21250 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21251 echo "$as_me: executing $ac_dest commands" >&6;}
21252 case $ac_dest in
21253 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21254 # Strip MF so we end up with the name of the file.
21255 mf=`echo "$mf" | sed -e 's/:.*$//'`
21256 # Check whether this is an Automake generated Makefile or not.
21257 # We used to match only the files named `Makefile.in', but
21258 # some people rename them; so instead we look at the file content.
21259 # Grep'ing the first line is not enough: some people post-process
21260 # each Makefile.in and add a new line on top of each file to say so.
21261 # So let's grep whole file.
21262 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21263 dirpart=`(dirname "$mf") 2>/dev/null ||
21264 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21265 X"$mf" : 'X\(//\)[^/]' \| \
21266 X"$mf" : 'X\(//\)$' \| \
21267 X"$mf" : 'X\(/\)' \| \
21268 . : '\(.\)' 2>/dev/null ||
21269 echo X"$mf" |
21270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21271 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21272 /^X\(\/\/\)$/{ s//\1/; q; }
21273 /^X\(\/\).*/{ s//\1/; q; }
21274 s/.*/./; q'`
21275 else
21276 continue
21277 fi
21278 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
21279 # Extract the definition of DEP_FILES from the Makefile without
21280 # running `make'.
21281 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21282 test -z "$DEPDIR" && continue
21283 # When using ansi2knr, U may be empty or an underscore; expand it
21284 U=`sed -n 's/^U = //p' < "$mf"`
21285 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
21286 # We invoke sed twice because it is the simplest approach to
21287 # changing $(DEPDIR) to its actual value in the expansion.
21288 for file in `sed -n '
21289 /^DEP_FILES = .*\\\\$/ {
21290 s/^DEP_FILES = //
21291 :loop
21292 s/\\\\$//
21293 p
21294 n
21295 /\\\\$/ b loop
21296 p
21297 }
21298 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
21299 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21300 # Make sure the directory exists.
21301 test -f "$dirpart/$file" && continue
21302 fdir=`(dirname "$file") 2>/dev/null ||
21303 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21304 X"$file" : 'X\(//\)[^/]' \| \
21305 X"$file" : 'X\(//\)$' \| \
21306 X"$file" : 'X\(/\)' \| \
21307 . : '\(.\)' 2>/dev/null ||
21308 echo X"$file" |
21309 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21310 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21311 /^X\(\/\/\)$/{ s//\1/; q; }
21312 /^X\(\/\).*/{ s//\1/; q; }
21313 s/.*/./; q'`
21314 { if $as_mkdir_p; then
21315 mkdir -p $dirpart/$fdir
21316 else
21317 as_dir=$dirpart/$fdir
21318 as_dirs=
21319 while test ! -d "$as_dir"; do
21320 as_dirs="$as_dir $as_dirs"
21321 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21322 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21323 X"$as_dir" : 'X\(//\)[^/]' \| \
21324 X"$as_dir" : 'X\(//\)$' \| \
21325 X"$as_dir" : 'X\(/\)' \| \
21326 . : '\(.\)' 2>/dev/null ||
21327 echo X"$as_dir" |
21328 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21329 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21330 /^X\(\/\/\)$/{ s//\1/; q; }
21331 /^X\(\/\).*/{ s//\1/; q; }
21332 s/.*/./; q'`
21333 done
21334 test ! -n "$as_dirs" || mkdir $as_dirs
21335 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21336 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21337 { (exit 1); exit 1; }; }; }
21338
21339 # echo "creating $dirpart/$file"
21340 echo '# dummy' > "$dirpart/$file"
21341 done
21342 done
21343 ;;
21344 esac
21345 done
21346 _ACEOF
21347
21348 cat >>$CONFIG_STATUS <<\_ACEOF
21349
21350 { (exit 0); exit 0; }
21351 _ACEOF
21352 chmod +x $CONFIG_STATUS
21353 ac_clean_files=$ac_clean_files_save
21354
21355
21356 # configure is writing to config.log, and then calls config.status.
21357 # config.status does its own redirection, appending to config.log.
21358 # Unfortunately, on DOS this fails, as config.log is still kept open
21359 # by configure, so config.status won't be able to write to it; its
21360 # output is simply discarded. So we exec the FD to /dev/null,
21361 # effectively closing config.log, so it can be properly (re)opened and
21362 # appended to by config.status. When coming back to configure, we
21363 # need to make the FD available again.
21364 if test "$no_create" != yes; then
21365 ac_cs_success=:
21366 ac_config_status_args=
21367 test "$silent" = yes &&
21368 ac_config_status_args="$ac_config_status_args --quiet"
21369 exec 5>/dev/null
21370 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21371 exec 5>>config.log
21372 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21373 # would make configure fail if this is the last instruction.
21374 $ac_cs_success || { (exit 1); exit 1; }
21375 fi
21376
21377
21378 echo ""
21379
21380 if test $aik_fe_gtk = yes; then
21381 echo "building GTK+-2.0 front end"
21382 else
21383 echo "not building GTK+-2.0 front end"
21384 fi
21385
21386 echo ""