1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for TI IPC 3.0.0.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43 do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97 fi
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
153 ;;
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184 }
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
248 case X$ECHO in
249 X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
252 ;;
253 esac
255 echo=${ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
259 elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
261 :
262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $echo works!
264 :
265 else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
268 fi
270 if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
272 shift
273 cat <<EOF
274 $*
275 EOF
276 exit 0
277 fi
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 # if CDPATH is set.
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
283 if test -z "$ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
289 echo_test_string=`eval $cmd` &&
290 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
291 then
292 break
293 fi
294 done
295 fi
297 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299 test "X$echo_testing_string" = "X$echo_test_string"; then
300 :
301 else
302 # The Solaris, AIX, and Digital Unix default echo programs unquote
303 # backslashes. This makes it impossible to quote backslashes using
304 # echo "$something" | sed 's/\\/\\\\/g'
305 #
306 # So, first we look for a working echo in the user's PATH.
308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309 for dir in $PATH /usr/ucb; do
310 IFS="$lt_save_ifs"
311 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314 test "X$echo_testing_string" = "X$echo_test_string"; then
315 echo="$dir/echo"
316 break
317 fi
318 done
319 IFS="$lt_save_ifs"
321 if test "X$echo" = Xecho; then
322 # We didn't find a better echo, so look for alternatives.
323 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325 test "X$echo_testing_string" = "X$echo_test_string"; then
326 # This shell has a builtin print -r that does the trick.
327 echo='print -r'
328 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329 test "X$CONFIG_SHELL" != X/bin/ksh; then
330 # If we have ksh, try running configure again with it.
331 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332 export ORIGINAL_CONFIG_SHELL
333 CONFIG_SHELL=/bin/ksh
334 export CONFIG_SHELL
335 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
336 else
337 # Try using printf.
338 echo='printf %s\n'
339 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341 test "X$echo_testing_string" = "X$echo_test_string"; then
342 # Cool, printf works
343 :
344 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345 test "X$echo_testing_string" = 'X\t' &&
346 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347 test "X$echo_testing_string" = "X$echo_test_string"; then
348 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349 export CONFIG_SHELL
350 SHELL="$CONFIG_SHELL"
351 export SHELL
352 echo="$CONFIG_SHELL $0 --fallback-echo"
353 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354 test "X$echo_testing_string" = 'X\t' &&
355 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356 test "X$echo_testing_string" = "X$echo_test_string"; then
357 echo="$CONFIG_SHELL $0 --fallback-echo"
358 else
359 # maybe with a smaller string...
360 prev=:
362 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
364 then
365 break
366 fi
367 prev="$cmd"
368 done
370 if test "$prev" != 'sed 50q "$0"'; then
371 echo_test_string=`eval $prev`
372 export echo_test_string
373 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374 else
375 # Oops. We lost completely, so just stick with echo.
376 echo=echo
377 fi
378 fi
379 fi
380 fi
381 fi
382 fi
384 # Copy echo and quote the copy suitably for passing to libtool from
385 # the Makefile, instead of quoting the original, which is used later.
386 ECHO=$echo
387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
389 fi
394 tagnames=${tagnames+${tagnames},}CXX
396 # Name of the host.
397 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
398 # so uname gets run too.
399 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
401 exec 6>&1
403 #
404 # Initializations.
405 #
406 ac_default_prefix=/usr/local
407 ac_config_libobj_dir=.
408 cross_compiling=no
409 subdirs=
410 MFLAGS=
411 MAKEFLAGS=
412 SHELL=${CONFIG_SHELL-/bin/sh}
414 # Maximum number of lines to put in a shell here document.
415 # This variable seems obsolete. It should probably be removed, and
416 # only ac_max_sed_lines should be used.
417 : ${ac_max_here_lines=38}
419 # Identity of this package.
420 PACKAGE_NAME='TI IPC'
421 PACKAGE_TARNAME='ti-ipc'
422 PACKAGE_VERSION='3.0.0'
423 PACKAGE_STRING='TI IPC 3.0.0'
424 PACKAGE_BUGREPORT=''
426 ac_unique_file="packages/ti/ipc/MessageQ.h"
427 # Factoring default headers for most tests.
428 ac_includes_default="\
429 #include <stdio.h>
430 #if HAVE_SYS_TYPES_H
431 # include <sys/types.h>
432 #endif
433 #if HAVE_SYS_STAT_H
434 # include <sys/stat.h>
435 #endif
436 #if STDC_HEADERS
437 # include <stdlib.h>
438 # include <stddef.h>
439 #else
440 # if HAVE_STDLIB_H
441 # include <stdlib.h>
442 # endif
443 #endif
444 #if HAVE_STRING_H
445 # if !STDC_HEADERS && HAVE_MEMORY_H
446 # include <memory.h>
447 # endif
448 # include <string.h>
449 #endif
450 #if HAVE_STRINGS_H
451 # include <strings.h>
452 #endif
453 #if HAVE_INTTYPES_H
454 # include <inttypes.h>
455 #else
456 # if HAVE_STDINT_H
457 # include <stdint.h>
458 # endif
459 #endif
460 #if HAVE_UNISTD_H
461 # include <unistd.h>
462 #endif"
464 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os 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 EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL AM_CFLAGS AM_LDFLAGS PLATFORM CMEM_INSTALL_DIR OMAPL138_TRUE OMAPL138_FALSE TCI6614_TRUE TCI6614_FALSE TCI6638_TRUE TCI6638_FALSE OMAP54XX_SMP_TRUE OMAP54XX_SMP_FALSE CMEM_TRUE CMEM_FALSE LIBOBJS LTLIBOBJS'
465 ac_subst_files=''
467 # Initialize some variables set by options.
468 ac_init_help=
469 ac_init_version=false
470 # The variables have the same names as the options, with
471 # dashes changed to underlines.
472 cache_file=/dev/null
473 exec_prefix=NONE
474 no_create=
475 no_recursion=
476 prefix=NONE
477 program_prefix=NONE
478 program_suffix=NONE
479 program_transform_name=s,x,x,
480 silent=
481 site=
482 srcdir=
483 verbose=
484 x_includes=NONE
485 x_libraries=NONE
487 # Installation directory options.
488 # These are left unexpanded so users can "make install exec_prefix=/foo"
489 # and all the variables that are supposed to be based on exec_prefix
490 # by default will actually change.
491 # Use braces instead of parens because sh, perl, etc. also accept them.
492 bindir='${exec_prefix}/bin'
493 sbindir='${exec_prefix}/sbin'
494 libexecdir='${exec_prefix}/libexec'
495 datadir='${prefix}/share'
496 sysconfdir='${prefix}/etc'
497 sharedstatedir='${prefix}/com'
498 localstatedir='${prefix}/var'
499 libdir='${exec_prefix}/lib'
500 includedir='${prefix}/include'
501 oldincludedir='/usr/include'
502 infodir='${prefix}/info'
503 mandir='${prefix}/man'
505 ac_prev=
506 for ac_option
507 do
508 # If the previous option needs an argument, assign it.
509 if test -n "$ac_prev"; then
510 eval "$ac_prev=\$ac_option"
511 ac_prev=
512 continue
513 fi
515 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
517 # Accept the important Cygnus configure options, so we can diagnose typos.
519 case $ac_option in
521 -bindir | --bindir | --bindi | --bind | --bin | --bi)
522 ac_prev=bindir ;;
523 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
524 bindir=$ac_optarg ;;
526 -build | --build | --buil | --bui | --bu)
527 ac_prev=build_alias ;;
528 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
529 build_alias=$ac_optarg ;;
531 -cache-file | --cache-file | --cache-fil | --cache-fi \
532 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
533 ac_prev=cache_file ;;
534 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
535 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
536 cache_file=$ac_optarg ;;
538 --config-cache | -C)
539 cache_file=config.cache ;;
541 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
542 ac_prev=datadir ;;
543 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
544 | --da=*)
545 datadir=$ac_optarg ;;
547 -disable-* | --disable-*)
548 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
549 # Reject names that are not valid shell variable names.
550 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
551 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
552 { (exit 1); exit 1; }; }
553 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
554 eval "enable_$ac_feature=no" ;;
556 -enable-* | --enable-*)
557 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
558 # Reject names that are not valid shell variable names.
559 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
560 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
561 { (exit 1); exit 1; }; }
562 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
563 case $ac_option in
564 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
565 *) ac_optarg=yes ;;
566 esac
567 eval "enable_$ac_feature='$ac_optarg'" ;;
569 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
570 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
571 | --exec | --exe | --ex)
572 ac_prev=exec_prefix ;;
573 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
574 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
575 | --exec=* | --exe=* | --ex=*)
576 exec_prefix=$ac_optarg ;;
578 -gas | --gas | --ga | --g)
579 # Obsolete; use --with-gas.
580 with_gas=yes ;;
582 -help | --help | --hel | --he | -h)
583 ac_init_help=long ;;
584 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
585 ac_init_help=recursive ;;
586 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
587 ac_init_help=short ;;
589 -host | --host | --hos | --ho)
590 ac_prev=host_alias ;;
591 -host=* | --host=* | --hos=* | --ho=*)
592 host_alias=$ac_optarg ;;
594 -includedir | --includedir | --includedi | --included | --include \
595 | --includ | --inclu | --incl | --inc)
596 ac_prev=includedir ;;
597 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
598 | --includ=* | --inclu=* | --incl=* | --inc=*)
599 includedir=$ac_optarg ;;
601 -infodir | --infodir | --infodi | --infod | --info | --inf)
602 ac_prev=infodir ;;
603 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
604 infodir=$ac_optarg ;;
606 -libdir | --libdir | --libdi | --libd)
607 ac_prev=libdir ;;
608 -libdir=* | --libdir=* | --libdi=* | --libd=*)
609 libdir=$ac_optarg ;;
611 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
612 | --libexe | --libex | --libe)
613 ac_prev=libexecdir ;;
614 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
615 | --libexe=* | --libex=* | --libe=*)
616 libexecdir=$ac_optarg ;;
618 -localstatedir | --localstatedir | --localstatedi | --localstated \
619 | --localstate | --localstat | --localsta | --localst \
620 | --locals | --local | --loca | --loc | --lo)
621 ac_prev=localstatedir ;;
622 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
623 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
624 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
625 localstatedir=$ac_optarg ;;
627 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
628 ac_prev=mandir ;;
629 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
630 mandir=$ac_optarg ;;
632 -nfp | --nfp | --nf)
633 # Obsolete; use --without-fp.
634 with_fp=no ;;
636 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
637 | --no-cr | --no-c | -n)
638 no_create=yes ;;
640 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
641 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
642 no_recursion=yes ;;
644 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
645 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
646 | --oldin | --oldi | --old | --ol | --o)
647 ac_prev=oldincludedir ;;
648 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
649 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
650 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
651 oldincludedir=$ac_optarg ;;
653 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
654 ac_prev=prefix ;;
655 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
656 prefix=$ac_optarg ;;
658 -program-prefix | --program-prefix | --program-prefi | --program-pref \
659 | --program-pre | --program-pr | --program-p)
660 ac_prev=program_prefix ;;
661 -program-prefix=* | --program-prefix=* | --program-prefi=* \
662 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
663 program_prefix=$ac_optarg ;;
665 -program-suffix | --program-suffix | --program-suffi | --program-suff \
666 | --program-suf | --program-su | --program-s)
667 ac_prev=program_suffix ;;
668 -program-suffix=* | --program-suffix=* | --program-suffi=* \
669 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
670 program_suffix=$ac_optarg ;;
672 -program-transform-name | --program-transform-name \
673 | --program-transform-nam | --program-transform-na \
674 | --program-transform-n | --program-transform- \
675 | --program-transform | --program-transfor \
676 | --program-transfo | --program-transf \
677 | --program-trans | --program-tran \
678 | --progr-tra | --program-tr | --program-t)
679 ac_prev=program_transform_name ;;
680 -program-transform-name=* | --program-transform-name=* \
681 | --program-transform-nam=* | --program-transform-na=* \
682 | --program-transform-n=* | --program-transform-=* \
683 | --program-transform=* | --program-transfor=* \
684 | --program-transfo=* | --program-transf=* \
685 | --program-trans=* | --program-tran=* \
686 | --progr-tra=* | --program-tr=* | --program-t=*)
687 program_transform_name=$ac_optarg ;;
689 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
690 | -silent | --silent | --silen | --sile | --sil)
691 silent=yes ;;
693 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
694 ac_prev=sbindir ;;
695 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
696 | --sbi=* | --sb=*)
697 sbindir=$ac_optarg ;;
699 -sharedstatedir | --sharedstatedir | --sharedstatedi \
700 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
701 | --sharedst | --shareds | --shared | --share | --shar \
702 | --sha | --sh)
703 ac_prev=sharedstatedir ;;
704 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
705 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
706 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
707 | --sha=* | --sh=*)
708 sharedstatedir=$ac_optarg ;;
710 -site | --site | --sit)
711 ac_prev=site ;;
712 -site=* | --site=* | --sit=*)
713 site=$ac_optarg ;;
715 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
716 ac_prev=srcdir ;;
717 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
718 srcdir=$ac_optarg ;;
720 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
721 | --syscon | --sysco | --sysc | --sys | --sy)
722 ac_prev=sysconfdir ;;
723 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
724 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
725 sysconfdir=$ac_optarg ;;
727 -target | --target | --targe | --targ | --tar | --ta | --t)
728 ac_prev=target_alias ;;
729 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
730 target_alias=$ac_optarg ;;
732 -v | -verbose | --verbose | --verbos | --verbo | --verb)
733 verbose=yes ;;
735 -version | --version | --versio | --versi | --vers | -V)
736 ac_init_version=: ;;
738 -with-* | --with-*)
739 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
740 # Reject names that are not valid shell variable names.
741 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
742 { echo "$as_me: error: invalid package name: $ac_package" >&2
743 { (exit 1); exit 1; }; }
744 ac_package=`echo $ac_package| sed 's/-/_/g'`
745 case $ac_option in
746 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
747 *) ac_optarg=yes ;;
748 esac
749 eval "with_$ac_package='$ac_optarg'" ;;
751 -without-* | --without-*)
752 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
753 # Reject names that are not valid shell variable names.
754 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
755 { echo "$as_me: error: invalid package name: $ac_package" >&2
756 { (exit 1); exit 1; }; }
757 ac_package=`echo $ac_package | sed 's/-/_/g'`
758 eval "with_$ac_package=no" ;;
760 --x)
761 # Obsolete; use --with-x.
762 with_x=yes ;;
764 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
765 | --x-incl | --x-inc | --x-in | --x-i)
766 ac_prev=x_includes ;;
767 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
768 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
769 x_includes=$ac_optarg ;;
771 -x-libraries | --x-libraries | --x-librarie | --x-librari \
772 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
773 ac_prev=x_libraries ;;
774 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
775 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
776 x_libraries=$ac_optarg ;;
778 -*) { echo "$as_me: error: unrecognized option: $ac_option
779 Try \`$0 --help' for more information." >&2
780 { (exit 1); exit 1; }; }
781 ;;
783 *=*)
784 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
785 # Reject names that are not valid shell variable names.
786 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
787 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
788 { (exit 1); exit 1; }; }
789 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
790 eval "$ac_envvar='$ac_optarg'"
791 export $ac_envvar ;;
793 *)
794 # FIXME: should be removed in autoconf 3.0.
795 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
796 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
797 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
798 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
799 ;;
801 esac
802 done
804 if test -n "$ac_prev"; then
805 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
806 { echo "$as_me: error: missing argument to $ac_option" >&2
807 { (exit 1); exit 1; }; }
808 fi
810 # Be sure to have absolute paths.
811 for ac_var in exec_prefix prefix
812 do
813 eval ac_val=$`echo $ac_var`
814 case $ac_val in
815 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
816 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
817 { (exit 1); exit 1; }; };;
818 esac
819 done
821 # Be sure to have absolute paths.
822 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
823 localstatedir libdir includedir oldincludedir infodir mandir
824 do
825 eval ac_val=$`echo $ac_var`
826 case $ac_val in
827 [\\/$]* | ?:[\\/]* ) ;;
828 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
829 { (exit 1); exit 1; }; };;
830 esac
831 done
833 # There might be people who depend on the old broken behavior: `$host'
834 # used to hold the argument of --host etc.
835 # FIXME: To remove some day.
836 build=$build_alias
837 host=$host_alias
838 target=$target_alias
840 # FIXME: To remove some day.
841 if test "x$host_alias" != x; then
842 if test "x$build_alias" = x; then
843 cross_compiling=maybe
844 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
845 If a cross compiler is detected then cross compile mode will be used." >&2
846 elif test "x$build_alias" != "x$host_alias"; then
847 cross_compiling=yes
848 fi
849 fi
851 ac_tool_prefix=
852 test -n "$host_alias" && ac_tool_prefix=$host_alias-
854 test "$silent" = yes && exec 6>/dev/null
857 # Find the source files, if location was not specified.
858 if test -z "$srcdir"; then
859 ac_srcdir_defaulted=yes
860 # Try the directory containing this script, then its parent.
861 ac_confdir=`(dirname "$0") 2>/dev/null ||
862 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
863 X"$0" : 'X\(//\)[^/]' \| \
864 X"$0" : 'X\(//\)$' \| \
865 X"$0" : 'X\(/\)' \| \
866 . : '\(.\)' 2>/dev/null ||
867 echo X"$0" |
868 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
869 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
870 /^X\(\/\/\)$/{ s//\1/; q; }
871 /^X\(\/\).*/{ s//\1/; q; }
872 s/.*/./; q'`
873 srcdir=$ac_confdir
874 if test ! -r $srcdir/$ac_unique_file; then
875 srcdir=..
876 fi
877 else
878 ac_srcdir_defaulted=no
879 fi
880 if test ! -r $srcdir/$ac_unique_file; then
881 if test "$ac_srcdir_defaulted" = yes; then
882 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
883 { (exit 1); exit 1; }; }
884 else
885 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
886 { (exit 1); exit 1; }; }
887 fi
888 fi
889 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
890 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
891 { (exit 1); exit 1; }; }
892 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
893 ac_env_build_alias_set=${build_alias+set}
894 ac_env_build_alias_value=$build_alias
895 ac_cv_env_build_alias_set=${build_alias+set}
896 ac_cv_env_build_alias_value=$build_alias
897 ac_env_host_alias_set=${host_alias+set}
898 ac_env_host_alias_value=$host_alias
899 ac_cv_env_host_alias_set=${host_alias+set}
900 ac_cv_env_host_alias_value=$host_alias
901 ac_env_target_alias_set=${target_alias+set}
902 ac_env_target_alias_value=$target_alias
903 ac_cv_env_target_alias_set=${target_alias+set}
904 ac_cv_env_target_alias_value=$target_alias
905 ac_env_CC_set=${CC+set}
906 ac_env_CC_value=$CC
907 ac_cv_env_CC_set=${CC+set}
908 ac_cv_env_CC_value=$CC
909 ac_env_CFLAGS_set=${CFLAGS+set}
910 ac_env_CFLAGS_value=$CFLAGS
911 ac_cv_env_CFLAGS_set=${CFLAGS+set}
912 ac_cv_env_CFLAGS_value=$CFLAGS
913 ac_env_LDFLAGS_set=${LDFLAGS+set}
914 ac_env_LDFLAGS_value=$LDFLAGS
915 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
916 ac_cv_env_LDFLAGS_value=$LDFLAGS
917 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
918 ac_env_CPPFLAGS_value=$CPPFLAGS
919 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
920 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
921 ac_env_CPP_set=${CPP+set}
922 ac_env_CPP_value=$CPP
923 ac_cv_env_CPP_set=${CPP+set}
924 ac_cv_env_CPP_value=$CPP
925 ac_env_CXX_set=${CXX+set}
926 ac_env_CXX_value=$CXX
927 ac_cv_env_CXX_set=${CXX+set}
928 ac_cv_env_CXX_value=$CXX
929 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
930 ac_env_CXXFLAGS_value=$CXXFLAGS
931 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
932 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
933 ac_env_CXXCPP_set=${CXXCPP+set}
934 ac_env_CXXCPP_value=$CXXCPP
935 ac_cv_env_CXXCPP_set=${CXXCPP+set}
936 ac_cv_env_CXXCPP_value=$CXXCPP
937 ac_env_PLATFORM_set=${PLATFORM+set}
938 ac_env_PLATFORM_value=$PLATFORM
939 ac_cv_env_PLATFORM_set=${PLATFORM+set}
940 ac_cv_env_PLATFORM_value=$PLATFORM
941 ac_env_CMEM_INSTALL_DIR_set=${CMEM_INSTALL_DIR+set}
942 ac_env_CMEM_INSTALL_DIR_value=$CMEM_INSTALL_DIR
943 ac_cv_env_CMEM_INSTALL_DIR_set=${CMEM_INSTALL_DIR+set}
944 ac_cv_env_CMEM_INSTALL_DIR_value=$CMEM_INSTALL_DIR
946 #
947 # Report the --help message.
948 #
949 if test "$ac_init_help" = "long"; then
950 # Omit some internal or obsolete options to make the list less imposing.
951 # This message is too long to be a string in the A/UX 3.1 sh.
952 cat <<_ACEOF
953 \`configure' configures TI IPC 3.0.0 to adapt to many kinds of systems.
955 Usage: $0 [OPTION]... [VAR=VALUE]...
957 To assign environment variables (e.g., CC, CFLAGS...), specify them as
958 VAR=VALUE. See below for descriptions of some of the useful variables.
960 Defaults for the options are specified in brackets.
962 Configuration:
963 -h, --help display this help and exit
964 --help=short display options specific to this package
965 --help=recursive display the short help of all the included packages
966 -V, --version display version information and exit
967 -q, --quiet, --silent do not print \`checking...' messages
968 --cache-file=FILE cache test results in FILE [disabled]
969 -C, --config-cache alias for \`--cache-file=config.cache'
970 -n, --no-create do not create output files
971 --srcdir=DIR find the sources in DIR [configure dir or \`..']
973 _ACEOF
975 cat <<_ACEOF
976 Installation directories:
977 --prefix=PREFIX install architecture-independent files in PREFIX
978 [$ac_default_prefix]
979 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
980 [PREFIX]
982 By default, \`make install' will install all the files in
983 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
984 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
985 for instance \`--prefix=\$HOME'.
987 For better control, use the options below.
989 Fine tuning of the installation directories:
990 --bindir=DIR user executables [EPREFIX/bin]
991 --sbindir=DIR system admin executables [EPREFIX/sbin]
992 --libexecdir=DIR program executables [EPREFIX/libexec]
993 --datadir=DIR read-only architecture-independent data [PREFIX/share]
994 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
995 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
996 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
997 --libdir=DIR object code libraries [EPREFIX/lib]
998 --includedir=DIR C header files [PREFIX/include]
999 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1000 --infodir=DIR info documentation [PREFIX/info]
1001 --mandir=DIR man documentation [PREFIX/man]
1002 _ACEOF
1004 cat <<\_ACEOF
1006 Program names:
1007 --program-prefix=PREFIX prepend PREFIX to installed program names
1008 --program-suffix=SUFFIX append SUFFIX to installed program names
1009 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1011 System types:
1012 --build=BUILD configure for building on BUILD [guessed]
1013 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1014 _ACEOF
1015 fi
1017 if test -n "$ac_init_help"; then
1018 case $ac_init_help in
1019 short | recursive ) echo "Configuration of TI IPC 3.0.0:";;
1020 esac
1021 cat <<\_ACEOF
1023 Optional Features:
1024 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1025 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1026 --enable-maintainer-mode enable make rules and dependencies not useful
1027 (and sometimes confusing) to the casual installer
1028 --enable-shared[=PKGS]
1029 build shared libraries [default=yes]
1030 --enable-static[=PKGS]
1031 build static libraries [default=yes]
1032 --enable-fast-install[=PKGS]
1033 optimize for fast installation [default=yes]
1034 --disable-dependency-tracking speeds up one-time build
1035 --enable-dependency-tracking do not reject slow dependency extractors
1036 --disable-libtool-lock avoid locking (might break parallel builds)
1038 Optional Packages:
1039 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1040 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1041 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1042 --with-pic try to use only PIC/non-PIC objects [default=use
1043 both]
1044 --with-tags[=TAGS]
1045 include additional configurations [automatic]
1047 Some influential environment variables:
1048 CC C compiler command
1049 CFLAGS C compiler flags
1050 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1051 nonstandard directory <lib dir>
1052 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1053 headers in a nonstandard directory <include dir>
1054 CPP C preprocessor
1055 CXX C++ compiler command
1056 CXXFLAGS C++ compiler flags
1057 CXXCPP C++ preprocessor
1058 PLATFORM Platform to build. Options are: 'omapl138' 'omap54xx_smp'
1059 'tci6614' and 'tci6638'. If not defined all platforms will be
1060 built.
1061 CMEM_INSTALL_DIR
1062 Installation path directory to the CMEM libraries
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.
1067 _ACEOF
1068 fi
1070 if test "$ac_init_help" = "recursive"; then
1071 # If there are subdirs, report their specific --help.
1072 ac_popdir=`pwd`
1073 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1074 test -d $ac_dir || continue
1075 ac_builddir=.
1077 if test "$ac_dir" != .; then
1078 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1079 # A "../" for each directory in $ac_dir_suffix.
1080 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1081 else
1082 ac_dir_suffix= ac_top_builddir=
1083 fi
1085 case $srcdir in
1086 .) # No --srcdir option. We are building in place.
1087 ac_srcdir=.
1088 if test -z "$ac_top_builddir"; then
1089 ac_top_srcdir=.
1090 else
1091 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1092 fi ;;
1093 [\\/]* | ?:[\\/]* ) # Absolute path.
1094 ac_srcdir=$srcdir$ac_dir_suffix;
1095 ac_top_srcdir=$srcdir ;;
1096 *) # Relative path.
1097 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1098 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1099 esac
1101 # Do not use `cd foo && pwd` to compute absolute paths, because
1102 # the directories may not exist.
1103 case `pwd` in
1104 .) ac_abs_builddir="$ac_dir";;
1105 *)
1106 case "$ac_dir" in
1107 .) ac_abs_builddir=`pwd`;;
1108 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1109 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1110 esac;;
1111 esac
1112 case $ac_abs_builddir in
1113 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1114 *)
1115 case ${ac_top_builddir}. in
1116 .) ac_abs_top_builddir=$ac_abs_builddir;;
1117 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1118 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1119 esac;;
1120 esac
1121 case $ac_abs_builddir in
1122 .) ac_abs_srcdir=$ac_srcdir;;
1123 *)
1124 case $ac_srcdir in
1125 .) ac_abs_srcdir=$ac_abs_builddir;;
1126 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1127 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1128 esac;;
1129 esac
1130 case $ac_abs_builddir in
1131 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1132 *)
1133 case $ac_top_srcdir in
1134 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1135 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1136 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1137 esac;;
1138 esac
1140 cd $ac_dir
1141 # Check for guested configure; otherwise get Cygnus style configure.
1142 if test -f $ac_srcdir/configure.gnu; then
1143 echo
1144 $SHELL $ac_srcdir/configure.gnu --help=recursive
1145 elif test -f $ac_srcdir/configure; then
1146 echo
1147 $SHELL $ac_srcdir/configure --help=recursive
1148 elif test -f $ac_srcdir/configure.ac ||
1149 test -f $ac_srcdir/configure.in; then
1150 echo
1151 $ac_configure --help
1152 else
1153 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1154 fi
1155 cd $ac_popdir
1156 done
1157 fi
1159 test -n "$ac_init_help" && exit 0
1160 if $ac_init_version; then
1161 cat <<\_ACEOF
1162 TI IPC configure 3.0.0
1163 generated by GNU Autoconf 2.59
1165 Copyright (C) 2003 Free Software Foundation, Inc.
1166 This configure script is free software; the Free Software Foundation
1167 gives unlimited permission to copy, distribute and modify it.
1168 _ACEOF
1169 exit 0
1170 fi
1171 exec 5>config.log
1172 cat >&5 <<_ACEOF
1173 This file contains any messages produced by compilers while
1174 running configure, to aid debugging if configure makes a mistake.
1176 It was created by TI IPC $as_me 3.0.0, which was
1177 generated by GNU Autoconf 2.59. Invocation command line was
1179 $ $0 $@
1181 _ACEOF
1182 {
1183 cat <<_ASUNAME
1184 ## --------- ##
1185 ## Platform. ##
1186 ## --------- ##
1188 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1189 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1190 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1191 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1192 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1194 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1195 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1197 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1198 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1199 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1200 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1201 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1202 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1203 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1205 _ASUNAME
1207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1208 for as_dir in $PATH
1209 do
1210 IFS=$as_save_IFS
1211 test -z "$as_dir" && as_dir=.
1212 echo "PATH: $as_dir"
1213 done
1215 } >&5
1217 cat >&5 <<_ACEOF
1220 ## ----------- ##
1221 ## Core tests. ##
1222 ## ----------- ##
1224 _ACEOF
1227 # Keep a trace of the command line.
1228 # Strip out --no-create and --no-recursion so they do not pile up.
1229 # Strip out --silent because we don't want to record it for future runs.
1230 # Also quote any args containing shell meta-characters.
1231 # Make two passes to allow for proper duplicate-argument suppression.
1232 ac_configure_args=
1233 ac_configure_args0=
1234 ac_configure_args1=
1235 ac_sep=
1236 ac_must_keep_next=false
1237 for ac_pass in 1 2
1238 do
1239 for ac_arg
1240 do
1241 case $ac_arg in
1242 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1243 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1244 | -silent | --silent | --silen | --sile | --sil)
1245 continue ;;
1246 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1247 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1248 esac
1249 case $ac_pass in
1250 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1251 2)
1252 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1253 if test $ac_must_keep_next = true; then
1254 ac_must_keep_next=false # Got value, back to normal.
1255 else
1256 case $ac_arg in
1257 *=* | --config-cache | -C | -disable-* | --disable-* \
1258 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1259 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1260 | -with-* | --with-* | -without-* | --without-* | --x)
1261 case "$ac_configure_args0 " in
1262 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1263 esac
1264 ;;
1265 -* ) ac_must_keep_next=true ;;
1266 esac
1267 fi
1268 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1269 # Get rid of the leading space.
1270 ac_sep=" "
1271 ;;
1272 esac
1273 done
1274 done
1275 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1276 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1278 # When interrupted or exit'd, cleanup temporary files, and complete
1279 # config.log. We remove comments because anyway the quotes in there
1280 # would cause problems or look ugly.
1281 # WARNING: Be sure not to use single quotes in there, as some shells,
1282 # such as our DU 5.0 friend, will then `close' the trap.
1283 trap 'exit_status=$?
1284 # Save into config.log some information that might help in debugging.
1285 {
1286 echo
1288 cat <<\_ASBOX
1289 ## ---------------- ##
1290 ## Cache variables. ##
1291 ## ---------------- ##
1292 _ASBOX
1293 echo
1294 # The following way of writing the cache mishandles newlines in values,
1295 {
1296 (set) 2>&1 |
1297 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1298 *ac_space=\ *)
1299 sed -n \
1300 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1301 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1302 ;;
1303 *)
1304 sed -n \
1305 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1306 ;;
1307 esac;
1308 }
1309 echo
1311 cat <<\_ASBOX
1312 ## ----------------- ##
1313 ## Output variables. ##
1314 ## ----------------- ##
1315 _ASBOX
1316 echo
1317 for ac_var in $ac_subst_vars
1318 do
1319 eval ac_val=$`echo $ac_var`
1320 echo "$ac_var='"'"'$ac_val'"'"'"
1321 done | sort
1322 echo
1324 if test -n "$ac_subst_files"; then
1325 cat <<\_ASBOX
1326 ## ------------- ##
1327 ## Output files. ##
1328 ## ------------- ##
1329 _ASBOX
1330 echo
1331 for ac_var in $ac_subst_files
1332 do
1333 eval ac_val=$`echo $ac_var`
1334 echo "$ac_var='"'"'$ac_val'"'"'"
1335 done | sort
1336 echo
1337 fi
1339 if test -s confdefs.h; then
1340 cat <<\_ASBOX
1341 ## ----------- ##
1342 ## confdefs.h. ##
1343 ## ----------- ##
1344 _ASBOX
1345 echo
1346 sed "/^$/d" confdefs.h | sort
1347 echo
1348 fi
1349 test "$ac_signal" != 0 &&
1350 echo "$as_me: caught signal $ac_signal"
1351 echo "$as_me: exit $exit_status"
1352 } >&5
1353 rm -f core *.core &&
1354 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1355 exit $exit_status
1356 ' 0
1357 for ac_signal in 1 2 13 15; do
1358 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1359 done
1360 ac_signal=0
1362 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1363 rm -rf conftest* confdefs.h
1364 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1365 echo >confdefs.h
1367 # Predefined preprocessor variables.
1369 cat >>confdefs.h <<_ACEOF
1370 #define PACKAGE_NAME "$PACKAGE_NAME"
1371 _ACEOF
1374 cat >>confdefs.h <<_ACEOF
1375 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1376 _ACEOF
1379 cat >>confdefs.h <<_ACEOF
1380 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1381 _ACEOF
1384 cat >>confdefs.h <<_ACEOF
1385 #define PACKAGE_STRING "$PACKAGE_STRING"
1386 _ACEOF
1389 cat >>confdefs.h <<_ACEOF
1390 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1391 _ACEOF
1394 # Let the site file select an alternate cache file if it wants to.
1395 # Prefer explicitly selected file to automatically selected ones.
1396 if test -z "$CONFIG_SITE"; then
1397 if test "x$prefix" != xNONE; then
1398 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1399 else
1400 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1401 fi
1402 fi
1403 for ac_site_file in $CONFIG_SITE; do
1404 if test -r "$ac_site_file"; then
1405 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1406 echo "$as_me: loading site script $ac_site_file" >&6;}
1407 sed 's/^/| /' "$ac_site_file" >&5
1408 . "$ac_site_file"
1409 fi
1410 done
1412 if test -r "$cache_file"; then
1413 # Some versions of bash will fail to source /dev/null (special
1414 # files actually), so we avoid doing that.
1415 if test -f "$cache_file"; then
1416 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1417 echo "$as_me: loading cache $cache_file" >&6;}
1418 case $cache_file in
1419 [\\/]* | ?:[\\/]* ) . $cache_file;;
1420 *) . ./$cache_file;;
1421 esac
1422 fi
1423 else
1424 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1425 echo "$as_me: creating cache $cache_file" >&6;}
1426 >$cache_file
1427 fi
1429 # Check that the precious variables saved in the cache have kept the same
1430 # value.
1431 ac_cache_corrupted=false
1432 for ac_var in `(set) 2>&1 |
1433 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1434 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1435 eval ac_new_set=\$ac_env_${ac_var}_set
1436 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1437 eval ac_new_val="\$ac_env_${ac_var}_value"
1438 case $ac_old_set,$ac_new_set in
1439 set,)
1440 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1441 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1442 ac_cache_corrupted=: ;;
1443 ,set)
1444 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1445 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1446 ac_cache_corrupted=: ;;
1447 ,);;
1448 *)
1449 if test "x$ac_old_val" != "x$ac_new_val"; then
1450 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1451 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1452 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1453 echo "$as_me: former value: $ac_old_val" >&2;}
1454 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1455 echo "$as_me: current value: $ac_new_val" >&2;}
1456 ac_cache_corrupted=:
1457 fi;;
1458 esac
1459 # Pass precious variables to config.status.
1460 if test "$ac_new_set" = set; then
1461 case $ac_new_val in
1462 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1463 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1464 *) ac_arg=$ac_var=$ac_new_val ;;
1465 esac
1466 case " $ac_configure_args " in
1467 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1468 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1469 esac
1470 fi
1471 done
1472 if $ac_cache_corrupted; then
1473 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1474 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1475 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1476 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1477 { (exit 1); exit 1; }; }
1478 fi
1480 ac_ext=c
1481 ac_cpp='$CPP $CPPFLAGS'
1482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1513 # Check common src files to ensure integrity of the package
1516 # Set auxiliary build tools directory
1517 ac_aux_dir=
1518 for ac_dir in linux/build-aux $srcdir/linux/build-aux; do
1519 if test -f $ac_dir/install-sh; then
1520 ac_aux_dir=$ac_dir
1521 ac_install_sh="$ac_aux_dir/install-sh -c"
1522 break
1523 elif test -f $ac_dir/install.sh; then
1524 ac_aux_dir=$ac_dir
1525 ac_install_sh="$ac_aux_dir/install.sh -c"
1526 break
1527 elif test -f $ac_dir/shtool; then
1528 ac_aux_dir=$ac_dir
1529 ac_install_sh="$ac_aux_dir/shtool install -c"
1530 break
1531 fi
1532 done
1533 if test -z "$ac_aux_dir"; then
1534 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in linux/build-aux $srcdir/linux/build-aux" >&5
1535 echo "$as_me: error: cannot find install-sh or install.sh in linux/build-aux $srcdir/linux/build-aux" >&2;}
1536 { (exit 1); exit 1; }; }
1537 fi
1538 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1539 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1540 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1543 # Initilize automake
1544 am__api_version="1.9"
1545 # Find a good install program. We prefer a C program (faster),
1546 # so one script is as good as another. But avoid the broken or
1547 # incompatible versions:
1548 # SysV /etc/install, /usr/sbin/install
1549 # SunOS /usr/etc/install
1550 # IRIX /sbin/install
1551 # AIX /bin/install
1552 # AmigaOS /C/install, which installs bootblocks on floppy discs
1553 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1554 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1555 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1556 # OS/2's system install, which has a completely different semantic
1557 # ./install, which can be erroneously created by make from ./install.sh.
1558 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1559 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1560 if test -z "$INSTALL"; then
1561 if test "${ac_cv_path_install+set}" = set; then
1562 echo $ECHO_N "(cached) $ECHO_C" >&6
1563 else
1564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1565 for as_dir in $PATH
1566 do
1567 IFS=$as_save_IFS
1568 test -z "$as_dir" && as_dir=.
1569 # Account for people who put trailing slashes in PATH elements.
1570 case $as_dir/ in
1571 ./ | .// | /cC/* | \
1572 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1573 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1574 /usr/ucb/* ) ;;
1575 *)
1576 # OSF1 and SCO ODT 3.0 have their own names for install.
1577 # Don't use installbsd from OSF since it installs stuff as root
1578 # by default.
1579 for ac_prog in ginstall scoinst install; do
1580 for ac_exec_ext in '' $ac_executable_extensions; do
1581 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1582 if test $ac_prog = install &&
1583 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1584 # AIX install. It has an incompatible calling convention.
1585 :
1586 elif test $ac_prog = install &&
1587 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1588 # program-specific install script used by HP pwplus--don't use.
1589 :
1590 else
1591 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1592 break 3
1593 fi
1594 fi
1595 done
1596 done
1597 ;;
1598 esac
1599 done
1602 fi
1603 if test "${ac_cv_path_install+set}" = set; then
1604 INSTALL=$ac_cv_path_install
1605 else
1606 # As a last resort, use the slow shell script. We don't cache a
1607 # path for INSTALL within a source directory, because that will
1608 # break other packages using the cache if that directory is
1609 # removed, or if the path is relative.
1610 INSTALL=$ac_install_sh
1611 fi
1612 fi
1613 echo "$as_me:$LINENO: result: $INSTALL" >&5
1614 echo "${ECHO_T}$INSTALL" >&6
1616 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1617 # It thinks the first close brace ends the variable substitution.
1618 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1620 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1622 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1624 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1625 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1626 # Just in case
1627 sleep 1
1628 echo timestamp > conftest.file
1629 # Do `set' in a subshell so we don't clobber the current shell's
1630 # arguments. Must try -L first in case configure is actually a
1631 # symlink; some systems play weird games with the mod time of symlinks
1632 # (eg FreeBSD returns the mod time of the symlink's containing
1633 # directory).
1634 if (
1635 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1636 if test "$*" = "X"; then
1637 # -L didn't work.
1638 set X `ls -t $srcdir/configure conftest.file`
1639 fi
1640 rm -f conftest.file
1641 if test "$*" != "X $srcdir/configure conftest.file" \
1642 && test "$*" != "X conftest.file $srcdir/configure"; then
1644 # If neither matched, then we have a broken ls. This can happen
1645 # if, for instance, CONFIG_SHELL is bash and it inherits a
1646 # broken ls alias from the environment. This has actually
1647 # happened. Such a system could not be considered "sane".
1648 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1649 alias in your environment" >&5
1650 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1651 alias in your environment" >&2;}
1652 { (exit 1); exit 1; }; }
1653 fi
1655 test "$2" = conftest.file
1656 )
1657 then
1658 # Ok.
1659 :
1660 else
1661 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1662 Check your system clock" >&5
1663 echo "$as_me: error: newly created file is older than distributed files!
1664 Check your system clock" >&2;}
1665 { (exit 1); exit 1; }; }
1666 fi
1667 echo "$as_me:$LINENO: result: yes" >&5
1668 echo "${ECHO_T}yes" >&6
1669 test "$program_prefix" != NONE &&
1670 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1671 # Use a double $ so make ignores it.
1672 test "$program_suffix" != NONE &&
1673 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1674 # Double any \ or $. echo might interpret backslashes.
1675 # By default was `s,x,x', remove it if useless.
1676 cat <<\_ACEOF >conftest.sed
1677 s/[\\$]/&&/g;s/;s,x,x,$//
1678 _ACEOF
1679 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1680 rm conftest.sed
1682 # expand $ac_aux_dir to an absolute path
1683 am_aux_dir=`cd $ac_aux_dir && pwd`
1685 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1686 # Use eval to expand $SHELL
1687 if eval "$MISSING --run true"; then
1688 am_missing_run="$MISSING --run "
1689 else
1690 am_missing_run=
1691 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1692 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1693 fi
1695 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1696 # We used to keeping the `.' as first argument, in order to
1697 # allow $(mkdir_p) to be used without argument. As in
1698 # $(mkdir_p) $(somedir)
1699 # where $(somedir) is conditionally defined. However this is wrong
1700 # for two reasons:
1701 # 1. if the package is installed by a user who cannot write `.'
1702 # make install will fail,
1703 # 2. the above comment should most certainly read
1704 # $(mkdir_p) $(DESTDIR)$(somedir)
1705 # so it does not work when $(somedir) is undefined and
1706 # $(DESTDIR) is not.
1707 # To support the latter case, we have to write
1708 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1709 # so the `.' trick is pointless.
1710 mkdir_p='mkdir -p --'
1711 else
1712 # On NextStep and OpenStep, the `mkdir' command does not
1713 # recognize any option. It will interpret all options as
1714 # directories to create, and then abort because `.' already
1715 # exists.
1716 for d in ./-p ./--version;
1717 do
1718 test -d $d && rmdir $d
1719 done
1720 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1721 if test -f "$ac_aux_dir/mkinstalldirs"; then
1722 mkdir_p='$(mkinstalldirs)'
1723 else
1724 mkdir_p='$(install_sh) -d'
1725 fi
1726 fi
1728 for ac_prog in gawk mawk nawk awk
1729 do
1730 # Extract the first word of "$ac_prog", so it can be a program name with args.
1731 set dummy $ac_prog; ac_word=$2
1732 echo "$as_me:$LINENO: checking for $ac_word" >&5
1733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1734 if test "${ac_cv_prog_AWK+set}" = set; then
1735 echo $ECHO_N "(cached) $ECHO_C" >&6
1736 else
1737 if test -n "$AWK"; then
1738 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1739 else
1740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1741 for as_dir in $PATH
1742 do
1743 IFS=$as_save_IFS
1744 test -z "$as_dir" && as_dir=.
1745 for ac_exec_ext in '' $ac_executable_extensions; do
1746 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1747 ac_cv_prog_AWK="$ac_prog"
1748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1749 break 2
1750 fi
1751 done
1752 done
1754 fi
1755 fi
1756 AWK=$ac_cv_prog_AWK
1757 if test -n "$AWK"; then
1758 echo "$as_me:$LINENO: result: $AWK" >&5
1759 echo "${ECHO_T}$AWK" >&6
1760 else
1761 echo "$as_me:$LINENO: result: no" >&5
1762 echo "${ECHO_T}no" >&6
1763 fi
1765 test -n "$AWK" && break
1766 done
1768 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1769 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1770 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1771 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1772 echo $ECHO_N "(cached) $ECHO_C" >&6
1773 else
1774 cat >conftest.make <<\_ACEOF
1775 all:
1776 @echo 'ac_maketemp="$(MAKE)"'
1777 _ACEOF
1778 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1779 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1780 if test -n "$ac_maketemp"; then
1781 eval ac_cv_prog_make_${ac_make}_set=yes
1782 else
1783 eval ac_cv_prog_make_${ac_make}_set=no
1784 fi
1785 rm -f conftest.make
1786 fi
1787 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1788 echo "$as_me:$LINENO: result: yes" >&5
1789 echo "${ECHO_T}yes" >&6
1790 SET_MAKE=
1791 else
1792 echo "$as_me:$LINENO: result: no" >&5
1793 echo "${ECHO_T}no" >&6
1794 SET_MAKE="MAKE=${MAKE-make}"
1795 fi
1797 rm -rf .tst 2>/dev/null
1798 mkdir .tst 2>/dev/null
1799 if test -d .tst; then
1800 am__leading_dot=.
1801 else
1802 am__leading_dot=_
1803 fi
1804 rmdir .tst 2>/dev/null
1806 # test to see if srcdir already configured
1807 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1808 test -f $srcdir/config.status; then
1809 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1810 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1811 { (exit 1); exit 1; }; }
1812 fi
1814 # test whether we have cygpath
1815 if test -z "$CYGPATH_W"; then
1816 if (cygpath --version) >/dev/null 2>/dev/null; then
1817 CYGPATH_W='cygpath -w'
1818 else
1819 CYGPATH_W=echo
1820 fi
1821 fi
1824 # Define the identity of the package.
1825 PACKAGE='ti-ipc'
1826 VERSION='3.0.0'
1829 cat >>confdefs.h <<_ACEOF
1830 #define PACKAGE "$PACKAGE"
1831 _ACEOF
1834 cat >>confdefs.h <<_ACEOF
1835 #define VERSION "$VERSION"
1836 _ACEOF
1838 # Some tools Automake needs.
1840 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1843 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1846 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1849 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1852 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1854 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1856 # Installed binaries are usually stripped using `strip' when the user
1857 # run `make install-strip'. However `strip' might not be the right
1858 # tool to use in cross-compilation environments, therefore Automake
1859 # will honor the `STRIP' environment variable to overrule this program.
1860 if test "$cross_compiling" != no; then
1861 if test -n "$ac_tool_prefix"; then
1862 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1863 set dummy ${ac_tool_prefix}strip; ac_word=$2
1864 echo "$as_me:$LINENO: checking for $ac_word" >&5
1865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1866 if test "${ac_cv_prog_STRIP+set}" = set; then
1867 echo $ECHO_N "(cached) $ECHO_C" >&6
1868 else
1869 if test -n "$STRIP"; then
1870 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1871 else
1872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1873 for as_dir in $PATH
1874 do
1875 IFS=$as_save_IFS
1876 test -z "$as_dir" && as_dir=.
1877 for ac_exec_ext in '' $ac_executable_extensions; do
1878 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1879 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1881 break 2
1882 fi
1883 done
1884 done
1886 fi
1887 fi
1888 STRIP=$ac_cv_prog_STRIP
1889 if test -n "$STRIP"; then
1890 echo "$as_me:$LINENO: result: $STRIP" >&5
1891 echo "${ECHO_T}$STRIP" >&6
1892 else
1893 echo "$as_me:$LINENO: result: no" >&5
1894 echo "${ECHO_T}no" >&6
1895 fi
1897 fi
1898 if test -z "$ac_cv_prog_STRIP"; then
1899 ac_ct_STRIP=$STRIP
1900 # Extract the first word of "strip", so it can be a program name with args.
1901 set dummy strip; ac_word=$2
1902 echo "$as_me:$LINENO: checking for $ac_word" >&5
1903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1904 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1905 echo $ECHO_N "(cached) $ECHO_C" >&6
1906 else
1907 if test -n "$ac_ct_STRIP"; then
1908 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1909 else
1910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1911 for as_dir in $PATH
1912 do
1913 IFS=$as_save_IFS
1914 test -z "$as_dir" && as_dir=.
1915 for ac_exec_ext in '' $ac_executable_extensions; do
1916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1917 ac_cv_prog_ac_ct_STRIP="strip"
1918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1919 break 2
1920 fi
1921 done
1922 done
1924 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1925 fi
1926 fi
1927 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1928 if test -n "$ac_ct_STRIP"; then
1929 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1930 echo "${ECHO_T}$ac_ct_STRIP" >&6
1931 else
1932 echo "$as_me:$LINENO: result: no" >&5
1933 echo "${ECHO_T}no" >&6
1934 fi
1936 STRIP=$ac_ct_STRIP
1937 else
1938 STRIP="$ac_cv_prog_STRIP"
1939 fi
1941 fi
1942 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1944 # We need awk for the "check" target. The system "awk" is bad on
1945 # some platforms.
1946 # Always define AMTAR for backward compatibility.
1948 AMTAR=${AMTAR-"${am_missing_run}tar"}
1950 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1957 # Disabling maintainer mode to prevent rebuild of configure script
1958 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1959 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1960 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1961 if test "${enable_maintainer_mode+set}" = set; then
1962 enableval="$enable_maintainer_mode"
1963 USE_MAINTAINER_MODE=$enableval
1964 else
1965 USE_MAINTAINER_MODE=no
1966 fi;
1967 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1968 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1971 if test $USE_MAINTAINER_MODE = yes; then
1972 MAINTAINER_MODE_TRUE=
1973 MAINTAINER_MODE_FALSE='#'
1974 else
1975 MAINTAINER_MODE_TRUE='#'
1976 MAINTAINER_MODE_FALSE=
1977 fi
1979 MAINT=$MAINTAINER_MODE_TRUE
1983 # Initalize libtool but disable fortran check
1984 # Check whether --enable-shared or --disable-shared was given.
1985 if test "${enable_shared+set}" = set; then
1986 enableval="$enable_shared"
1987 p=${PACKAGE-default}
1988 case $enableval in
1989 yes) enable_shared=yes ;;
1990 no) enable_shared=no ;;
1991 *)
1992 enable_shared=no
1993 # Look at the argument we got. We use all the common list separators.
1994 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1995 for pkg in $enableval; do
1996 IFS="$lt_save_ifs"
1997 if test "X$pkg" = "X$p"; then
1998 enable_shared=yes
1999 fi
2000 done
2001 IFS="$lt_save_ifs"
2002 ;;
2003 esac
2004 else
2005 enable_shared=yes
2006 fi;
2008 # Check whether --enable-static or --disable-static was given.
2009 if test "${enable_static+set}" = set; then
2010 enableval="$enable_static"
2011 p=${PACKAGE-default}
2012 case $enableval in
2013 yes) enable_static=yes ;;
2014 no) enable_static=no ;;
2015 *)
2016 enable_static=no
2017 # Look at the argument we got. We use all the common list separators.
2018 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2019 for pkg in $enableval; do
2020 IFS="$lt_save_ifs"
2021 if test "X$pkg" = "X$p"; then
2022 enable_static=yes
2023 fi
2024 done
2025 IFS="$lt_save_ifs"
2026 ;;
2027 esac
2028 else
2029 enable_static=yes
2030 fi;
2032 # Check whether --enable-fast-install or --disable-fast-install was given.
2033 if test "${enable_fast_install+set}" = set; then
2034 enableval="$enable_fast_install"
2035 p=${PACKAGE-default}
2036 case $enableval in
2037 yes) enable_fast_install=yes ;;
2038 no) enable_fast_install=no ;;
2039 *)
2040 enable_fast_install=no
2041 # Look at the argument we got. We use all the common list separators.
2042 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2043 for pkg in $enableval; do
2044 IFS="$lt_save_ifs"
2045 if test "X$pkg" = "X$p"; then
2046 enable_fast_install=yes
2047 fi
2048 done
2049 IFS="$lt_save_ifs"
2050 ;;
2051 esac
2052 else
2053 enable_fast_install=yes
2054 fi;
2056 # Make sure we can run config.sub.
2057 $ac_config_sub sun4 >/dev/null 2>&1 ||
2058 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2059 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2060 { (exit 1); exit 1; }; }
2062 echo "$as_me:$LINENO: checking build system type" >&5
2063 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2064 if test "${ac_cv_build+set}" = set; then
2065 echo $ECHO_N "(cached) $ECHO_C" >&6
2066 else
2067 ac_cv_build_alias=$build_alias
2068 test -z "$ac_cv_build_alias" &&
2069 ac_cv_build_alias=`$ac_config_guess`
2070 test -z "$ac_cv_build_alias" &&
2071 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2072 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2073 { (exit 1); exit 1; }; }
2074 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2075 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2076 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2077 { (exit 1); exit 1; }; }
2079 fi
2080 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2081 echo "${ECHO_T}$ac_cv_build" >&6
2082 build=$ac_cv_build
2083 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2084 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2085 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2088 echo "$as_me:$LINENO: checking host system type" >&5
2089 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2090 if test "${ac_cv_host+set}" = set; then
2091 echo $ECHO_N "(cached) $ECHO_C" >&6
2092 else
2093 ac_cv_host_alias=$host_alias
2094 test -z "$ac_cv_host_alias" &&
2095 ac_cv_host_alias=$ac_cv_build_alias
2096 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2097 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2098 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2099 { (exit 1); exit 1; }; }
2101 fi
2102 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2103 echo "${ECHO_T}$ac_cv_host" >&6
2104 host=$ac_cv_host
2105 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2106 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2107 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2110 DEPDIR="${am__leading_dot}deps"
2112 ac_config_commands="$ac_config_commands depfiles"
2115 am_make=${MAKE-make}
2116 cat > confinc << 'END'
2117 am__doit:
2118 @echo done
2119 .PHONY: am__doit
2120 END
2121 # If we don't find an include directive, just comment out the code.
2122 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2123 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2124 am__include="#"
2125 am__quote=
2126 _am_result=none
2127 # First try GNU make style include.
2128 echo "include confinc" > confmf
2129 # We grep out `Entering directory' and `Leaving directory'
2130 # messages which can occur if `w' ends up in MAKEFLAGS.
2131 # In particular we don't look at `^make:' because GNU make might
2132 # be invoked under some other name (usually "gmake"), in which
2133 # case it prints its new name instead of `make'.
2134 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2135 am__include=include
2136 am__quote=
2137 _am_result=GNU
2138 fi
2139 # Now try BSD make style include.
2140 if test "$am__include" = "#"; then
2141 echo '.include "confinc"' > confmf
2142 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2143 am__include=.include
2144 am__quote="\""
2145 _am_result=BSD
2146 fi
2147 fi
2150 echo "$as_me:$LINENO: result: $_am_result" >&5
2151 echo "${ECHO_T}$_am_result" >&6
2152 rm -f confinc confmf
2154 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2155 if test "${enable_dependency_tracking+set}" = set; then
2156 enableval="$enable_dependency_tracking"
2158 fi;
2159 if test "x$enable_dependency_tracking" != xno; then
2160 am_depcomp="$ac_aux_dir/depcomp"
2161 AMDEPBACKSLASH='\'
2162 fi
2165 if test "x$enable_dependency_tracking" != xno; then
2166 AMDEP_TRUE=
2167 AMDEP_FALSE='#'
2168 else
2169 AMDEP_TRUE='#'
2170 AMDEP_FALSE=
2171 fi
2175 ac_ext=c
2176 ac_cpp='$CPP $CPPFLAGS'
2177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2180 if test -n "$ac_tool_prefix"; then
2181 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2182 set dummy ${ac_tool_prefix}gcc; 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 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2192 for as_dir in $PATH
2193 do
2194 IFS=$as_save_IFS
2195 test -z "$as_dir" && as_dir=.
2196 for ac_exec_ext in '' $ac_executable_extensions; do
2197 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2198 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2200 break 2
2201 fi
2202 done
2203 done
2205 fi
2206 fi
2207 CC=$ac_cv_prog_CC
2208 if test -n "$CC"; then
2209 echo "$as_me:$LINENO: result: $CC" >&5
2210 echo "${ECHO_T}$CC" >&6
2211 else
2212 echo "$as_me:$LINENO: result: no" >&5
2213 echo "${ECHO_T}no" >&6
2214 fi
2216 fi
2217 if test -z "$ac_cv_prog_CC"; then
2218 ac_ct_CC=$CC
2219 # Extract the first word of "gcc", so it can be a program name with args.
2220 set dummy gcc; ac_word=$2
2221 echo "$as_me:$LINENO: checking for $ac_word" >&5
2222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2223 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2224 echo $ECHO_N "(cached) $ECHO_C" >&6
2225 else
2226 if test -n "$ac_ct_CC"; then
2227 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2228 else
2229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2230 for as_dir in $PATH
2231 do
2232 IFS=$as_save_IFS
2233 test -z "$as_dir" && as_dir=.
2234 for ac_exec_ext in '' $ac_executable_extensions; do
2235 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2236 ac_cv_prog_ac_ct_CC="gcc"
2237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2238 break 2
2239 fi
2240 done
2241 done
2243 fi
2244 fi
2245 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2246 if test -n "$ac_ct_CC"; then
2247 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2248 echo "${ECHO_T}$ac_ct_CC" >&6
2249 else
2250 echo "$as_me:$LINENO: result: no" >&5
2251 echo "${ECHO_T}no" >&6
2252 fi
2254 CC=$ac_ct_CC
2255 else
2256 CC="$ac_cv_prog_CC"
2257 fi
2259 if test -z "$CC"; then
2260 if test -n "$ac_tool_prefix"; then
2261 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2262 set dummy ${ac_tool_prefix}cc; ac_word=$2
2263 echo "$as_me:$LINENO: checking for $ac_word" >&5
2264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2265 if test "${ac_cv_prog_CC+set}" = set; then
2266 echo $ECHO_N "(cached) $ECHO_C" >&6
2267 else
2268 if test -n "$CC"; then
2269 ac_cv_prog_CC="$CC" # Let the user override the test.
2270 else
2271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2272 for as_dir in $PATH
2273 do
2274 IFS=$as_save_IFS
2275 test -z "$as_dir" && as_dir=.
2276 for ac_exec_ext in '' $ac_executable_extensions; do
2277 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2278 ac_cv_prog_CC="${ac_tool_prefix}cc"
2279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2280 break 2
2281 fi
2282 done
2283 done
2285 fi
2286 fi
2287 CC=$ac_cv_prog_CC
2288 if test -n "$CC"; then
2289 echo "$as_me:$LINENO: result: $CC" >&5
2290 echo "${ECHO_T}$CC" >&6
2291 else
2292 echo "$as_me:$LINENO: result: no" >&5
2293 echo "${ECHO_T}no" >&6
2294 fi
2296 fi
2297 if test -z "$ac_cv_prog_CC"; then
2298 ac_ct_CC=$CC
2299 # Extract the first word of "cc", so it can be a program name with args.
2300 set dummy cc; ac_word=$2
2301 echo "$as_me:$LINENO: checking for $ac_word" >&5
2302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2303 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2304 echo $ECHO_N "(cached) $ECHO_C" >&6
2305 else
2306 if test -n "$ac_ct_CC"; then
2307 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2308 else
2309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2310 for as_dir in $PATH
2311 do
2312 IFS=$as_save_IFS
2313 test -z "$as_dir" && as_dir=.
2314 for ac_exec_ext in '' $ac_executable_extensions; do
2315 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2316 ac_cv_prog_ac_ct_CC="cc"
2317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2318 break 2
2319 fi
2320 done
2321 done
2323 fi
2324 fi
2325 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2326 if test -n "$ac_ct_CC"; then
2327 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2328 echo "${ECHO_T}$ac_ct_CC" >&6
2329 else
2330 echo "$as_me:$LINENO: result: no" >&5
2331 echo "${ECHO_T}no" >&6
2332 fi
2334 CC=$ac_ct_CC
2335 else
2336 CC="$ac_cv_prog_CC"
2337 fi
2339 fi
2340 if test -z "$CC"; then
2341 # Extract the first word of "cc", so it can be a program name with args.
2342 set dummy cc; ac_word=$2
2343 echo "$as_me:$LINENO: checking for $ac_word" >&5
2344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2345 if test "${ac_cv_prog_CC+set}" = set; then
2346 echo $ECHO_N "(cached) $ECHO_C" >&6
2347 else
2348 if test -n "$CC"; then
2349 ac_cv_prog_CC="$CC" # Let the user override the test.
2350 else
2351 ac_prog_rejected=no
2352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2353 for as_dir in $PATH
2354 do
2355 IFS=$as_save_IFS
2356 test -z "$as_dir" && as_dir=.
2357 for ac_exec_ext in '' $ac_executable_extensions; do
2358 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2359 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2360 ac_prog_rejected=yes
2361 continue
2362 fi
2363 ac_cv_prog_CC="cc"
2364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2365 break 2
2366 fi
2367 done
2368 done
2370 if test $ac_prog_rejected = yes; then
2371 # We found a bogon in the path, so make sure we never use it.
2372 set dummy $ac_cv_prog_CC
2373 shift
2374 if test $# != 0; then
2375 # We chose a different compiler from the bogus one.
2376 # However, it has the same basename, so the bogon will be chosen
2377 # first if we set CC to just the basename; use the full file name.
2378 shift
2379 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2380 fi
2381 fi
2382 fi
2383 fi
2384 CC=$ac_cv_prog_CC
2385 if test -n "$CC"; then
2386 echo "$as_me:$LINENO: result: $CC" >&5
2387 echo "${ECHO_T}$CC" >&6
2388 else
2389 echo "$as_me:$LINENO: result: no" >&5
2390 echo "${ECHO_T}no" >&6
2391 fi
2393 fi
2394 if test -z "$CC"; then
2395 if test -n "$ac_tool_prefix"; then
2396 for ac_prog in cl
2397 do
2398 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2399 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2400 echo "$as_me:$LINENO: checking for $ac_word" >&5
2401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2402 if test "${ac_cv_prog_CC+set}" = set; then
2403 echo $ECHO_N "(cached) $ECHO_C" >&6
2404 else
2405 if test -n "$CC"; then
2406 ac_cv_prog_CC="$CC" # Let the user override the test.
2407 else
2408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2409 for as_dir in $PATH
2410 do
2411 IFS=$as_save_IFS
2412 test -z "$as_dir" && as_dir=.
2413 for ac_exec_ext in '' $ac_executable_extensions; do
2414 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2415 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2417 break 2
2418 fi
2419 done
2420 done
2422 fi
2423 fi
2424 CC=$ac_cv_prog_CC
2425 if test -n "$CC"; then
2426 echo "$as_me:$LINENO: result: $CC" >&5
2427 echo "${ECHO_T}$CC" >&6
2428 else
2429 echo "$as_me:$LINENO: result: no" >&5
2430 echo "${ECHO_T}no" >&6
2431 fi
2433 test -n "$CC" && break
2434 done
2435 fi
2436 if test -z "$CC"; then
2437 ac_ct_CC=$CC
2438 for ac_prog in cl
2439 do
2440 # Extract the first word of "$ac_prog", so it can be a program name with args.
2441 set dummy $ac_prog; ac_word=$2
2442 echo "$as_me:$LINENO: checking for $ac_word" >&5
2443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2444 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2445 echo $ECHO_N "(cached) $ECHO_C" >&6
2446 else
2447 if test -n "$ac_ct_CC"; then
2448 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2449 else
2450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2451 for as_dir in $PATH
2452 do
2453 IFS=$as_save_IFS
2454 test -z "$as_dir" && as_dir=.
2455 for ac_exec_ext in '' $ac_executable_extensions; do
2456 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2457 ac_cv_prog_ac_ct_CC="$ac_prog"
2458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2459 break 2
2460 fi
2461 done
2462 done
2464 fi
2465 fi
2466 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2467 if test -n "$ac_ct_CC"; then
2468 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2469 echo "${ECHO_T}$ac_ct_CC" >&6
2470 else
2471 echo "$as_me:$LINENO: result: no" >&5
2472 echo "${ECHO_T}no" >&6
2473 fi
2475 test -n "$ac_ct_CC" && break
2476 done
2478 CC=$ac_ct_CC
2479 fi
2481 fi
2484 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2485 See \`config.log' for more details." >&5
2486 echo "$as_me: error: no acceptable C compiler found in \$PATH
2487 See \`config.log' for more details." >&2;}
2488 { (exit 1); exit 1; }; }
2490 # Provide some information about the compiler.
2491 echo "$as_me:$LINENO:" \
2492 "checking for C compiler version" >&5
2493 ac_compiler=`set X $ac_compile; echo $2`
2494 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2495 (eval $ac_compiler --version </dev/null >&5) 2>&5
2496 ac_status=$?
2497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498 (exit $ac_status); }
2499 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2500 (eval $ac_compiler -v </dev/null >&5) 2>&5
2501 ac_status=$?
2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503 (exit $ac_status); }
2504 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2505 (eval $ac_compiler -V </dev/null >&5) 2>&5
2506 ac_status=$?
2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); }
2510 cat >conftest.$ac_ext <<_ACEOF
2511 /* confdefs.h. */
2512 _ACEOF
2513 cat confdefs.h >>conftest.$ac_ext
2514 cat >>conftest.$ac_ext <<_ACEOF
2515 /* end confdefs.h. */
2517 int
2518 main ()
2519 {
2521 ;
2522 return 0;
2523 }
2524 _ACEOF
2525 ac_clean_files_save=$ac_clean_files
2526 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2527 # Try to create an executable without -o first, disregard a.out.
2528 # It will help us diagnose broken compilers, and finding out an intuition
2529 # of exeext.
2530 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2531 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2532 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2533 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2534 (eval $ac_link_default) 2>&5
2535 ac_status=$?
2536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537 (exit $ac_status); }; then
2538 # Find the output, starting from the most likely. This scheme is
2539 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2540 # resort.
2542 # Be careful to initialize this variable, since it used to be cached.
2543 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2544 ac_cv_exeext=
2545 # b.out is created by i960 compilers.
2546 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2547 do
2548 test -f "$ac_file" || continue
2549 case $ac_file in
2550 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2551 ;;
2552 conftest.$ac_ext )
2553 # This is the source file.
2554 ;;
2555 [ab].out )
2556 # We found the default executable, but exeext='' is most
2557 # certainly right.
2558 break;;
2559 *.* )
2560 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2561 # FIXME: I believe we export ac_cv_exeext for Libtool,
2562 # but it would be cool to find out if it's true. Does anybody
2563 # maintain Libtool? --akim.
2564 export ac_cv_exeext
2565 break;;
2566 * )
2567 break;;
2568 esac
2569 done
2570 else
2571 echo "$as_me: failed program was:" >&5
2572 sed 's/^/| /' conftest.$ac_ext >&5
2574 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2575 See \`config.log' for more details." >&5
2576 echo "$as_me: error: C compiler cannot create executables
2577 See \`config.log' for more details." >&2;}
2578 { (exit 77); exit 77; }; }
2579 fi
2581 ac_exeext=$ac_cv_exeext
2582 echo "$as_me:$LINENO: result: $ac_file" >&5
2583 echo "${ECHO_T}$ac_file" >&6
2585 # Check the compiler produces executables we can run. If not, either
2586 # the compiler is broken, or we cross compile.
2587 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2588 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2589 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2590 # If not cross compiling, check that we can run a simple program.
2591 if test "$cross_compiling" != yes; then
2592 if { ac_try='./$ac_file'
2593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2594 (eval $ac_try) 2>&5
2595 ac_status=$?
2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597 (exit $ac_status); }; }; then
2598 cross_compiling=no
2599 else
2600 if test "$cross_compiling" = maybe; then
2601 cross_compiling=yes
2602 else
2603 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2604 If you meant to cross compile, use \`--host'.
2605 See \`config.log' for more details." >&5
2606 echo "$as_me: error: cannot run C compiled programs.
2607 If you meant to cross compile, use \`--host'.
2608 See \`config.log' for more details." >&2;}
2609 { (exit 1); exit 1; }; }
2610 fi
2611 fi
2612 fi
2613 echo "$as_me:$LINENO: result: yes" >&5
2614 echo "${ECHO_T}yes" >&6
2616 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2617 ac_clean_files=$ac_clean_files_save
2618 # Check the compiler produces executables we can run. If not, either
2619 # the compiler is broken, or we cross compile.
2620 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2621 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2622 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2623 echo "${ECHO_T}$cross_compiling" >&6
2625 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2626 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2628 (eval $ac_link) 2>&5
2629 ac_status=$?
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); }; then
2632 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2633 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2634 # work properly (i.e., refer to `conftest.exe'), while it won't with
2635 # `rm'.
2636 for ac_file in conftest.exe conftest conftest.*; do
2637 test -f "$ac_file" || continue
2638 case $ac_file in
2639 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2640 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2641 export ac_cv_exeext
2642 break;;
2643 * ) break;;
2644 esac
2645 done
2646 else
2647 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2648 See \`config.log' for more details." >&5
2649 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2650 See \`config.log' for more details." >&2;}
2651 { (exit 1); exit 1; }; }
2652 fi
2654 rm -f conftest$ac_cv_exeext
2655 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2656 echo "${ECHO_T}$ac_cv_exeext" >&6
2658 rm -f conftest.$ac_ext
2659 EXEEXT=$ac_cv_exeext
2660 ac_exeext=$EXEEXT
2661 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2662 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2663 if test "${ac_cv_objext+set}" = set; then
2664 echo $ECHO_N "(cached) $ECHO_C" >&6
2665 else
2666 cat >conftest.$ac_ext <<_ACEOF
2667 /* confdefs.h. */
2668 _ACEOF
2669 cat confdefs.h >>conftest.$ac_ext
2670 cat >>conftest.$ac_ext <<_ACEOF
2671 /* end confdefs.h. */
2673 int
2674 main ()
2675 {
2677 ;
2678 return 0;
2679 }
2680 _ACEOF
2681 rm -f conftest.o conftest.obj
2682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2683 (eval $ac_compile) 2>&5
2684 ac_status=$?
2685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686 (exit $ac_status); }; then
2687 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2688 case $ac_file in
2689 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2690 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2691 break;;
2692 esac
2693 done
2694 else
2695 echo "$as_me: failed program was:" >&5
2696 sed 's/^/| /' conftest.$ac_ext >&5
2698 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2699 See \`config.log' for more details." >&5
2700 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2701 See \`config.log' for more details." >&2;}
2702 { (exit 1); exit 1; }; }
2703 fi
2705 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2706 fi
2707 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2708 echo "${ECHO_T}$ac_cv_objext" >&6
2709 OBJEXT=$ac_cv_objext
2710 ac_objext=$OBJEXT
2711 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2712 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2713 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2714 echo $ECHO_N "(cached) $ECHO_C" >&6
2715 else
2716 cat >conftest.$ac_ext <<_ACEOF
2717 /* confdefs.h. */
2718 _ACEOF
2719 cat confdefs.h >>conftest.$ac_ext
2720 cat >>conftest.$ac_ext <<_ACEOF
2721 /* end confdefs.h. */
2723 int
2724 main ()
2725 {
2726 #ifndef __GNUC__
2727 choke me
2728 #endif
2730 ;
2731 return 0;
2732 }
2733 _ACEOF
2734 rm -f conftest.$ac_objext
2735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2736 (eval $ac_compile) 2>conftest.er1
2737 ac_status=$?
2738 grep -v '^ *+' conftest.er1 >conftest.err
2739 rm -f conftest.er1
2740 cat conftest.err >&5
2741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742 (exit $ac_status); } &&
2743 { ac_try='test -z "$ac_c_werror_flag"
2744 || test ! -s conftest.err'
2745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2746 (eval $ac_try) 2>&5
2747 ac_status=$?
2748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749 (exit $ac_status); }; } &&
2750 { ac_try='test -s conftest.$ac_objext'
2751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2752 (eval $ac_try) 2>&5
2753 ac_status=$?
2754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755 (exit $ac_status); }; }; then
2756 ac_compiler_gnu=yes
2757 else
2758 echo "$as_me: failed program was:" >&5
2759 sed 's/^/| /' conftest.$ac_ext >&5
2761 ac_compiler_gnu=no
2762 fi
2763 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2764 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2766 fi
2767 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2768 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2769 GCC=`test $ac_compiler_gnu = yes && echo yes`
2770 ac_test_CFLAGS=${CFLAGS+set}
2771 ac_save_CFLAGS=$CFLAGS
2772 CFLAGS="-g"
2773 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2774 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2775 if test "${ac_cv_prog_cc_g+set}" = set; then
2776 echo $ECHO_N "(cached) $ECHO_C" >&6
2777 else
2778 cat >conftest.$ac_ext <<_ACEOF
2779 /* confdefs.h. */
2780 _ACEOF
2781 cat confdefs.h >>conftest.$ac_ext
2782 cat >>conftest.$ac_ext <<_ACEOF
2783 /* end confdefs.h. */
2785 int
2786 main ()
2787 {
2789 ;
2790 return 0;
2791 }
2792 _ACEOF
2793 rm -f conftest.$ac_objext
2794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2795 (eval $ac_compile) 2>conftest.er1
2796 ac_status=$?
2797 grep -v '^ *+' conftest.er1 >conftest.err
2798 rm -f conftest.er1
2799 cat conftest.err >&5
2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801 (exit $ac_status); } &&
2802 { ac_try='test -z "$ac_c_werror_flag"
2803 || test ! -s conftest.err'
2804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2805 (eval $ac_try) 2>&5
2806 ac_status=$?
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); }; } &&
2809 { ac_try='test -s conftest.$ac_objext'
2810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2811 (eval $ac_try) 2>&5
2812 ac_status=$?
2813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814 (exit $ac_status); }; }; then
2815 ac_cv_prog_cc_g=yes
2816 else
2817 echo "$as_me: failed program was:" >&5
2818 sed 's/^/| /' conftest.$ac_ext >&5
2820 ac_cv_prog_cc_g=no
2821 fi
2822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2823 fi
2824 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2825 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2826 if test "$ac_test_CFLAGS" = set; then
2827 CFLAGS=$ac_save_CFLAGS
2828 elif test $ac_cv_prog_cc_g = yes; then
2829 if test "$GCC" = yes; then
2830 CFLAGS="-g -O2"
2831 else
2832 CFLAGS="-g"
2833 fi
2834 else
2835 if test "$GCC" = yes; then
2836 CFLAGS="-O2"
2837 else
2838 CFLAGS=
2839 fi
2840 fi
2841 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2842 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2843 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2844 echo $ECHO_N "(cached) $ECHO_C" >&6
2845 else
2846 ac_cv_prog_cc_stdc=no
2847 ac_save_CC=$CC
2848 cat >conftest.$ac_ext <<_ACEOF
2849 /* confdefs.h. */
2850 _ACEOF
2851 cat confdefs.h >>conftest.$ac_ext
2852 cat >>conftest.$ac_ext <<_ACEOF
2853 /* end confdefs.h. */
2854 #include <stdarg.h>
2855 #include <stdio.h>
2856 #include <sys/types.h>
2857 #include <sys/stat.h>
2858 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2859 struct buf { int x; };
2860 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2861 static char *e (p, i)
2862 char **p;
2863 int i;
2864 {
2865 return p[i];
2866 }
2867 static char *f (char * (*g) (char **, int), char **p, ...)
2868 {
2869 char *s;
2870 va_list v;
2871 va_start (v,p);
2872 s = g (p, va_arg (v,int));
2873 va_end (v);
2874 return s;
2875 }
2877 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2878 function prototypes and stuff, but not '\xHH' hex character constants.
2879 These don't provoke an error unfortunately, instead are silently treated
2880 as 'x'. The following induces an error, until -std1 is added to get
2881 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2882 array size at least. It's necessary to write '\x00'==0 to get something
2883 that's true only with -std1. */
2884 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2886 int test (int i, double x);
2887 struct s1 {int (*f) (int a);};
2888 struct s2 {int (*f) (double a);};
2889 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2890 int argc;
2891 char **argv;
2892 int
2893 main ()
2894 {
2895 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2896 ;
2897 return 0;
2898 }
2899 _ACEOF
2900 # Don't try gcc -ansi; that turns off useful extensions and
2901 # breaks some systems' header files.
2902 # AIX -qlanglvl=ansi
2903 # Ultrix and OSF/1 -std1
2904 # HP-UX 10.20 and later -Ae
2905 # HP-UX older versions -Aa -D_HPUX_SOURCE
2906 # SVR4 -Xc -D__EXTENSIONS__
2907 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2908 do
2909 CC="$ac_save_CC $ac_arg"
2910 rm -f conftest.$ac_objext
2911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2912 (eval $ac_compile) 2>conftest.er1
2913 ac_status=$?
2914 grep -v '^ *+' conftest.er1 >conftest.err
2915 rm -f conftest.er1
2916 cat conftest.err >&5
2917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918 (exit $ac_status); } &&
2919 { ac_try='test -z "$ac_c_werror_flag"
2920 || test ! -s conftest.err'
2921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2922 (eval $ac_try) 2>&5
2923 ac_status=$?
2924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925 (exit $ac_status); }; } &&
2926 { ac_try='test -s conftest.$ac_objext'
2927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2928 (eval $ac_try) 2>&5
2929 ac_status=$?
2930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931 (exit $ac_status); }; }; then
2932 ac_cv_prog_cc_stdc=$ac_arg
2933 break
2934 else
2935 echo "$as_me: failed program was:" >&5
2936 sed 's/^/| /' conftest.$ac_ext >&5
2938 fi
2939 rm -f conftest.err conftest.$ac_objext
2940 done
2941 rm -f conftest.$ac_ext conftest.$ac_objext
2942 CC=$ac_save_CC
2944 fi
2946 case "x$ac_cv_prog_cc_stdc" in
2947 x|xno)
2948 echo "$as_me:$LINENO: result: none needed" >&5
2949 echo "${ECHO_T}none needed" >&6 ;;
2950 *)
2951 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2952 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2953 CC="$CC $ac_cv_prog_cc_stdc" ;;
2954 esac
2956 # Some people use a C++ compiler to compile C. Since we use `exit',
2957 # in C++ we need to declare it. In case someone uses the same compiler
2958 # for both compiling C and C++ we need to have the C++ compiler decide
2959 # the declaration of exit, since it's the most demanding environment.
2960 cat >conftest.$ac_ext <<_ACEOF
2961 #ifndef __cplusplus
2962 choke me
2963 #endif
2964 _ACEOF
2965 rm -f conftest.$ac_objext
2966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2967 (eval $ac_compile) 2>conftest.er1
2968 ac_status=$?
2969 grep -v '^ *+' conftest.er1 >conftest.err
2970 rm -f conftest.er1
2971 cat conftest.err >&5
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); } &&
2974 { ac_try='test -z "$ac_c_werror_flag"
2975 || test ! -s conftest.err'
2976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2977 (eval $ac_try) 2>&5
2978 ac_status=$?
2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980 (exit $ac_status); }; } &&
2981 { ac_try='test -s conftest.$ac_objext'
2982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2983 (eval $ac_try) 2>&5
2984 ac_status=$?
2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986 (exit $ac_status); }; }; then
2987 for ac_declaration in \
2988 '' \
2989 'extern "C" void std::exit (int) throw (); using std::exit;' \
2990 'extern "C" void std::exit (int); using std::exit;' \
2991 'extern "C" void exit (int) throw ();' \
2992 'extern "C" void exit (int);' \
2993 'void exit (int);'
2994 do
2995 cat >conftest.$ac_ext <<_ACEOF
2996 /* confdefs.h. */
2997 _ACEOF
2998 cat confdefs.h >>conftest.$ac_ext
2999 cat >>conftest.$ac_ext <<_ACEOF
3000 /* end confdefs.h. */
3001 $ac_declaration
3002 #include <stdlib.h>
3003 int
3004 main ()
3005 {
3006 exit (42);
3007 ;
3008 return 0;
3009 }
3010 _ACEOF
3011 rm -f conftest.$ac_objext
3012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3013 (eval $ac_compile) 2>conftest.er1
3014 ac_status=$?
3015 grep -v '^ *+' conftest.er1 >conftest.err
3016 rm -f conftest.er1
3017 cat conftest.err >&5
3018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019 (exit $ac_status); } &&
3020 { ac_try='test -z "$ac_c_werror_flag"
3021 || test ! -s conftest.err'
3022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3023 (eval $ac_try) 2>&5
3024 ac_status=$?
3025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026 (exit $ac_status); }; } &&
3027 { ac_try='test -s conftest.$ac_objext'
3028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3029 (eval $ac_try) 2>&5
3030 ac_status=$?
3031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032 (exit $ac_status); }; }; then
3033 :
3034 else
3035 echo "$as_me: failed program was:" >&5
3036 sed 's/^/| /' conftest.$ac_ext >&5
3038 continue
3039 fi
3040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3041 cat >conftest.$ac_ext <<_ACEOF
3042 /* confdefs.h. */
3043 _ACEOF
3044 cat confdefs.h >>conftest.$ac_ext
3045 cat >>conftest.$ac_ext <<_ACEOF
3046 /* end confdefs.h. */
3047 $ac_declaration
3048 int
3049 main ()
3050 {
3051 exit (42);
3052 ;
3053 return 0;
3054 }
3055 _ACEOF
3056 rm -f conftest.$ac_objext
3057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3058 (eval $ac_compile) 2>conftest.er1
3059 ac_status=$?
3060 grep -v '^ *+' conftest.er1 >conftest.err
3061 rm -f conftest.er1
3062 cat conftest.err >&5
3063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064 (exit $ac_status); } &&
3065 { ac_try='test -z "$ac_c_werror_flag"
3066 || test ! -s conftest.err'
3067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3068 (eval $ac_try) 2>&5
3069 ac_status=$?
3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); }; } &&
3072 { ac_try='test -s conftest.$ac_objext'
3073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3074 (eval $ac_try) 2>&5
3075 ac_status=$?
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); }; }; then
3078 break
3079 else
3080 echo "$as_me: failed program was:" >&5
3081 sed 's/^/| /' conftest.$ac_ext >&5
3083 fi
3084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3085 done
3086 rm -f conftest*
3087 if test -n "$ac_declaration"; then
3088 echo '#ifdef __cplusplus' >>confdefs.h
3089 echo $ac_declaration >>confdefs.h
3090 echo '#endif' >>confdefs.h
3091 fi
3093 else
3094 echo "$as_me: failed program was:" >&5
3095 sed 's/^/| /' conftest.$ac_ext >&5
3097 fi
3098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3099 ac_ext=c
3100 ac_cpp='$CPP $CPPFLAGS'
3101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3105 depcc="$CC" am_compiler_list=
3107 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3108 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3109 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3110 echo $ECHO_N "(cached) $ECHO_C" >&6
3111 else
3112 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3113 # We make a subdir and do the tests there. Otherwise we can end up
3114 # making bogus files that we don't know about and never remove. For
3115 # instance it was reported that on HP-UX the gcc test will end up
3116 # making a dummy file named `D' -- because `-MD' means `put the output
3117 # in D'.
3118 mkdir conftest.dir
3119 # Copy depcomp to subdir because otherwise we won't find it if we're
3120 # using a relative directory.
3121 cp "$am_depcomp" conftest.dir
3122 cd conftest.dir
3123 # We will build objects and dependencies in a subdirectory because
3124 # it helps to detect inapplicable dependency modes. For instance
3125 # both Tru64's cc and ICC support -MD to output dependencies as a
3126 # side effect of compilation, but ICC will put the dependencies in
3127 # the current directory while Tru64 will put them in the object
3128 # directory.
3129 mkdir sub
3131 am_cv_CC_dependencies_compiler_type=none
3132 if test "$am_compiler_list" = ""; then
3133 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3134 fi
3135 for depmode in $am_compiler_list; do
3136 # Setup a source with many dependencies, because some compilers
3137 # like to wrap large dependency lists on column 80 (with \), and
3138 # we should not choose a depcomp mode which is confused by this.
3139 #
3140 # We need to recreate these files for each test, as the compiler may
3141 # overwrite some of them when testing with obscure command lines.
3142 # This happens at least with the AIX C compiler.
3143 : > sub/conftest.c
3144 for i in 1 2 3 4 5 6; do
3145 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3146 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3147 # Solaris 8's {/usr,}/bin/sh.
3148 touch sub/conftst$i.h
3149 done
3150 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3152 case $depmode in
3153 nosideeffect)
3154 # after this tag, mechanisms are not by side-effect, so they'll
3155 # only be used when explicitly requested
3156 if test "x$enable_dependency_tracking" = xyes; then
3157 continue
3158 else
3159 break
3160 fi
3161 ;;
3162 none) break ;;
3163 esac
3164 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3165 # mode. It turns out that the SunPro C++ compiler does not properly
3166 # handle `-M -o', and we need to detect this.
3167 if depmode=$depmode \
3168 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3169 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3170 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3171 >/dev/null 2>conftest.err &&
3172 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3173 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3174 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3175 # icc doesn't choke on unknown options, it will just issue warnings
3176 # or remarks (even with -Werror). So we grep stderr for any message
3177 # that says an option was ignored or not supported.
3178 # When given -MP, icc 7.0 and 7.1 complain thusly:
3179 # icc: Command line warning: ignoring option '-M'; no argument required
3180 # The diagnosis changed in icc 8.0:
3181 # icc: Command line remark: option '-MP' not supported
3182 if (grep 'ignoring option' conftest.err ||
3183 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3184 am_cv_CC_dependencies_compiler_type=$depmode
3185 break
3186 fi
3187 fi
3188 done
3190 cd ..
3191 rm -rf conftest.dir
3192 else
3193 am_cv_CC_dependencies_compiler_type=none
3194 fi
3196 fi
3197 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3198 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3199 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3203 if
3204 test "x$enable_dependency_tracking" != xno \
3205 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3206 am__fastdepCC_TRUE=
3207 am__fastdepCC_FALSE='#'
3208 else
3209 am__fastdepCC_TRUE='#'
3210 am__fastdepCC_FALSE=
3211 fi
3214 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3215 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3216 if test "${lt_cv_path_SED+set}" = set; then
3217 echo $ECHO_N "(cached) $ECHO_C" >&6
3218 else
3219 # Loop through the user's path and test for sed and gsed.
3220 # Then use that list of sed's as ones to test for truncation.
3221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3222 for as_dir in $PATH
3223 do
3224 IFS=$as_save_IFS
3225 test -z "$as_dir" && as_dir=.
3226 for lt_ac_prog in sed gsed; do
3227 for ac_exec_ext in '' $ac_executable_extensions; do
3228 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3229 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3230 fi
3231 done
3232 done
3233 done
3234 lt_ac_max=0
3235 lt_ac_count=0
3236 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3237 # along with /bin/sed that truncates output.
3238 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3239 test ! -f $lt_ac_sed && continue
3240 cat /dev/null > conftest.in
3241 lt_ac_count=0
3242 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3243 # Check for GNU sed and select it if it is found.
3244 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3245 lt_cv_path_SED=$lt_ac_sed
3246 break
3247 fi
3248 while true; do
3249 cat conftest.in conftest.in >conftest.tmp
3250 mv conftest.tmp conftest.in
3251 cp conftest.in conftest.nl
3252 echo >>conftest.nl
3253 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3254 cmp -s conftest.out conftest.nl || break
3255 # 10000 chars as input seems more than enough
3256 test $lt_ac_count -gt 10 && break
3257 lt_ac_count=`expr $lt_ac_count + 1`
3258 if test $lt_ac_count -gt $lt_ac_max; then
3259 lt_ac_max=$lt_ac_count
3260 lt_cv_path_SED=$lt_ac_sed
3261 fi
3262 done
3263 done
3265 fi
3267 SED=$lt_cv_path_SED
3268 echo "$as_me:$LINENO: result: $SED" >&5
3269 echo "${ECHO_T}$SED" >&6
3271 echo "$as_me:$LINENO: checking for egrep" >&5
3272 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3273 if test "${ac_cv_prog_egrep+set}" = set; then
3274 echo $ECHO_N "(cached) $ECHO_C" >&6
3275 else
3276 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3277 then ac_cv_prog_egrep='grep -E'
3278 else ac_cv_prog_egrep='egrep'
3279 fi
3280 fi
3281 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3282 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3283 EGREP=$ac_cv_prog_egrep
3287 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3288 if test "${with_gnu_ld+set}" = set; then
3289 withval="$with_gnu_ld"
3290 test "$withval" = no || with_gnu_ld=yes
3291 else
3292 with_gnu_ld=no
3293 fi;
3294 ac_prog=ld
3295 if test "$GCC" = yes; then
3296 # Check if gcc -print-prog-name=ld gives a path.
3297 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3298 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3299 case $host in
3300 *-*-mingw*)
3301 # gcc leaves a trailing carriage return which upsets mingw
3302 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3303 *)
3304 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3305 esac
3306 case $ac_prog in
3307 # Accept absolute paths.
3308 [\\/]* | ?:[\\/]*)
3309 re_direlt='/[^/][^/]*/\.\./'
3310 # Canonicalize the pathname of ld
3311 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3312 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3313 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3314 done
3315 test -z "$LD" && LD="$ac_prog"
3316 ;;
3317 "")
3318 # If it fails, then pretend we aren't using GCC.
3319 ac_prog=ld
3320 ;;
3321 *)
3322 # If it is relative, then search for the first ld in PATH.
3323 with_gnu_ld=unknown
3324 ;;
3325 esac
3326 elif test "$with_gnu_ld" = yes; then
3327 echo "$as_me:$LINENO: checking for GNU ld" >&5
3328 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3329 else
3330 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3331 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3332 fi
3333 if test "${lt_cv_path_LD+set}" = set; then
3334 echo $ECHO_N "(cached) $ECHO_C" >&6
3335 else
3336 if test -z "$LD"; then
3337 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3338 for ac_dir in $PATH; do
3339 IFS="$lt_save_ifs"
3340 test -z "$ac_dir" && ac_dir=.
3341 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3342 lt_cv_path_LD="$ac_dir/$ac_prog"
3343 # Check to see if the program is GNU ld. I'd rather use --version,
3344 # but apparently some variants of GNU ld only accept -v.
3345 # Break only if it was the GNU/non-GNU ld that we prefer.
3346 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3347 *GNU* | *'with BFD'*)
3348 test "$with_gnu_ld" != no && break
3349 ;;
3350 *)
3351 test "$with_gnu_ld" != yes && break
3352 ;;
3353 esac
3354 fi
3355 done
3356 IFS="$lt_save_ifs"
3357 else
3358 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3359 fi
3360 fi
3362 LD="$lt_cv_path_LD"
3363 if test -n "$LD"; then
3364 echo "$as_me:$LINENO: result: $LD" >&5
3365 echo "${ECHO_T}$LD" >&6
3366 else
3367 echo "$as_me:$LINENO: result: no" >&5
3368 echo "${ECHO_T}no" >&6
3369 fi
3370 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3371 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3372 { (exit 1); exit 1; }; }
3373 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3374 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3375 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3376 echo $ECHO_N "(cached) $ECHO_C" >&6
3377 else
3378 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3379 case `$LD -v 2>&1 </dev/null` in
3380 *GNU* | *'with BFD'*)
3381 lt_cv_prog_gnu_ld=yes
3382 ;;
3383 *)
3384 lt_cv_prog_gnu_ld=no
3385 ;;
3386 esac
3387 fi
3388 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3389 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3390 with_gnu_ld=$lt_cv_prog_gnu_ld
3393 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3394 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3395 if test "${lt_cv_ld_reload_flag+set}" = set; then
3396 echo $ECHO_N "(cached) $ECHO_C" >&6
3397 else
3398 lt_cv_ld_reload_flag='-r'
3399 fi
3400 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3401 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3402 reload_flag=$lt_cv_ld_reload_flag
3403 case $reload_flag in
3404 "" | " "*) ;;
3405 *) reload_flag=" $reload_flag" ;;
3406 esac
3407 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3408 case $host_os in
3409 darwin*)
3410 if test "$GCC" = yes; then
3411 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3412 else
3413 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3414 fi
3415 ;;
3416 esac
3418 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3419 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3420 if test "${lt_cv_path_NM+set}" = set; then
3421 echo $ECHO_N "(cached) $ECHO_C" >&6
3422 else
3423 if test -n "$NM"; then
3424 # Let the user override the test.
3425 lt_cv_path_NM="$NM"
3426 else
3427 lt_nm_to_check="${ac_tool_prefix}nm"
3428 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3429 lt_nm_to_check="$lt_nm_to_check nm"
3430 fi
3431 for lt_tmp_nm in $lt_nm_to_check; do
3432 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3433 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3434 IFS="$lt_save_ifs"
3435 test -z "$ac_dir" && ac_dir=.
3436 tmp_nm="$ac_dir/$lt_tmp_nm"
3437 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3438 # Check to see if the nm accepts a BSD-compat flag.
3439 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3440 # nm: unknown option "B" ignored
3441 # Tru64's nm complains that /dev/null is an invalid object file
3442 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3443 */dev/null* | *'Invalid file or object type'*)
3444 lt_cv_path_NM="$tmp_nm -B"
3445 break
3446 ;;
3447 *)
3448 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3449 */dev/null*)
3450 lt_cv_path_NM="$tmp_nm -p"
3451 break
3452 ;;
3453 *)
3454 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3455 continue # so that we can try to find one that supports BSD flags
3456 ;;
3457 esac
3458 ;;
3459 esac
3460 fi
3461 done
3462 IFS="$lt_save_ifs"
3463 done
3464 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3465 fi
3466 fi
3467 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3468 echo "${ECHO_T}$lt_cv_path_NM" >&6
3469 NM="$lt_cv_path_NM"
3471 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3472 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3473 LN_S=$as_ln_s
3474 if test "$LN_S" = "ln -s"; then
3475 echo "$as_me:$LINENO: result: yes" >&5
3476 echo "${ECHO_T}yes" >&6
3477 else
3478 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3479 echo "${ECHO_T}no, using $LN_S" >&6
3480 fi
3482 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3483 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3484 if test "${lt_cv_deplibs_check_method+set}" = set; then
3485 echo $ECHO_N "(cached) $ECHO_C" >&6
3486 else
3487 lt_cv_file_magic_cmd='$MAGIC_CMD'
3488 lt_cv_file_magic_test_file=
3489 lt_cv_deplibs_check_method='unknown'
3490 # Need to set the preceding variable on all platforms that support
3491 # interlibrary dependencies.
3492 # 'none' -- dependencies not supported.
3493 # `unknown' -- same as none, but documents that we really don't know.
3494 # 'pass_all' -- all dependencies passed with no checks.
3495 # 'test_compile' -- check by making test program.
3496 # 'file_magic [[regex]]' -- check by looking for files in library path
3497 # which responds to the $file_magic_cmd with a given extended regex.
3498 # If you have `file' or equivalent on your system and you're not sure
3499 # whether `pass_all' will *always* work, you probably want this one.
3501 case $host_os in
3502 aix4* | aix5*)
3503 lt_cv_deplibs_check_method=pass_all
3504 ;;
3506 beos*)
3507 lt_cv_deplibs_check_method=pass_all
3508 ;;
3510 bsdi[45]*)
3511 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3512 lt_cv_file_magic_cmd='/usr/bin/file -L'
3513 lt_cv_file_magic_test_file=/shlib/libc.so
3514 ;;
3516 cygwin*)
3517 # func_win32_libid is a shell function defined in ltmain.sh
3518 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3519 lt_cv_file_magic_cmd='func_win32_libid'
3520 ;;
3522 mingw* | pw32*)
3523 # Base MSYS/MinGW do not provide the 'file' command needed by
3524 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3525 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3526 lt_cv_file_magic_cmd='$OBJDUMP -f'
3527 ;;
3529 darwin* | rhapsody*)
3530 lt_cv_deplibs_check_method=pass_all
3531 ;;
3533 freebsd* | kfreebsd*-gnu | dragonfly*)
3534 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3535 case $host_cpu in
3536 i*86 )
3537 # Not sure whether the presence of OpenBSD here was a mistake.
3538 # Let's accept both of them until this is cleared up.
3539 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3540 lt_cv_file_magic_cmd=/usr/bin/file
3541 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3542 ;;
3543 esac
3544 else
3545 lt_cv_deplibs_check_method=pass_all
3546 fi
3547 ;;
3549 gnu*)
3550 lt_cv_deplibs_check_method=pass_all
3551 ;;
3553 hpux10.20* | hpux11*)
3554 lt_cv_file_magic_cmd=/usr/bin/file
3555 case $host_cpu in
3556 ia64*)
3557 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3558 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3559 ;;
3560 hppa*64*)
3561 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]'
3562 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3563 ;;
3564 *)
3565 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3566 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3567 ;;
3568 esac
3569 ;;
3571 interix3*)
3572 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3573 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3574 ;;
3576 irix5* | irix6* | nonstopux*)
3577 case $LD in
3578 *-32|*"-32 ") libmagic=32-bit;;
3579 *-n32|*"-n32 ") libmagic=N32;;
3580 *-64|*"-64 ") libmagic=64-bit;;
3581 *) libmagic=never-match;;
3582 esac
3583 lt_cv_deplibs_check_method=pass_all
3584 ;;
3586 # This must be Linux ELF.
3587 linux*)
3588 lt_cv_deplibs_check_method=pass_all
3589 ;;
3591 netbsd*)
3592 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3593 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3594 else
3595 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3596 fi
3597 ;;
3599 newos6*)
3600 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3601 lt_cv_file_magic_cmd=/usr/bin/file
3602 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3603 ;;
3605 nto-qnx*)
3606 lt_cv_deplibs_check_method=unknown
3607 ;;
3609 openbsd*)
3610 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3611 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3612 else
3613 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3614 fi
3615 ;;
3617 osf3* | osf4* | osf5*)
3618 lt_cv_deplibs_check_method=pass_all
3619 ;;
3621 solaris*)
3622 lt_cv_deplibs_check_method=pass_all
3623 ;;
3625 sysv4 | sysv4.3*)
3626 case $host_vendor in
3627 motorola)
3628 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]'
3629 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3630 ;;
3631 ncr)
3632 lt_cv_deplibs_check_method=pass_all
3633 ;;
3634 sequent)
3635 lt_cv_file_magic_cmd='/bin/file'
3636 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3637 ;;
3638 sni)
3639 lt_cv_file_magic_cmd='/bin/file'
3640 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3641 lt_cv_file_magic_test_file=/lib/libc.so
3642 ;;
3643 siemens)
3644 lt_cv_deplibs_check_method=pass_all
3645 ;;
3646 pc)
3647 lt_cv_deplibs_check_method=pass_all
3648 ;;
3649 esac
3650 ;;
3652 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3653 lt_cv_deplibs_check_method=pass_all
3654 ;;
3655 esac
3657 fi
3658 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3659 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3660 file_magic_cmd=$lt_cv_file_magic_cmd
3661 deplibs_check_method=$lt_cv_deplibs_check_method
3662 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3667 # If no C compiler was specified, use CC.
3668 LTCC=${LTCC-"$CC"}
3670 # If no C compiler flags were specified, use CFLAGS.
3671 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3673 # Allow CC to be a program name with arguments.
3674 compiler=$CC
3677 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3678 if test "${enable_libtool_lock+set}" = set; then
3679 enableval="$enable_libtool_lock"
3681 fi;
3682 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3684 # Some flags need to be propagated to the compiler or linker for good
3685 # libtool support.
3686 case $host in
3687 ia64-*-hpux*)
3688 # Find out which ABI we are using.
3689 echo 'int i;' > conftest.$ac_ext
3690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3691 (eval $ac_compile) 2>&5
3692 ac_status=$?
3693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694 (exit $ac_status); }; then
3695 case `/usr/bin/file conftest.$ac_objext` in
3696 *ELF-32*)
3697 HPUX_IA64_MODE="32"
3698 ;;
3699 *ELF-64*)
3700 HPUX_IA64_MODE="64"
3701 ;;
3702 esac
3703 fi
3704 rm -rf conftest*
3705 ;;
3706 *-*-irix6*)
3707 # Find out which ABI we are using.
3708 echo '#line 3708 "configure"' > conftest.$ac_ext
3709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3710 (eval $ac_compile) 2>&5
3711 ac_status=$?
3712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713 (exit $ac_status); }; then
3714 if test "$lt_cv_prog_gnu_ld" = yes; then
3715 case `/usr/bin/file conftest.$ac_objext` in
3716 *32-bit*)
3717 LD="${LD-ld} -melf32bsmip"
3718 ;;
3719 *N32*)
3720 LD="${LD-ld} -melf32bmipn32"
3721 ;;
3722 *64-bit*)
3723 LD="${LD-ld} -melf64bmip"
3724 ;;
3725 esac
3726 else
3727 case `/usr/bin/file conftest.$ac_objext` in
3728 *32-bit*)
3729 LD="${LD-ld} -32"
3730 ;;
3731 *N32*)
3732 LD="${LD-ld} -n32"
3733 ;;
3734 *64-bit*)
3735 LD="${LD-ld} -64"
3736 ;;
3737 esac
3738 fi
3739 fi
3740 rm -rf conftest*
3741 ;;
3743 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3744 # Find out which ABI we are using.
3745 echo 'int i;' > conftest.$ac_ext
3746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3747 (eval $ac_compile) 2>&5
3748 ac_status=$?
3749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750 (exit $ac_status); }; then
3751 case `/usr/bin/file conftest.o` in
3752 *32-bit*)
3753 case $host in
3754 x86_64-*linux*)
3755 LD="${LD-ld} -m elf_i386"
3756 ;;
3757 ppc64-*linux*|powerpc64-*linux*)
3758 LD="${LD-ld} -m elf32ppclinux"
3759 ;;
3760 s390x-*linux*)
3761 LD="${LD-ld} -m elf_s390"
3762 ;;
3763 sparc64-*linux*)
3764 LD="${LD-ld} -m elf32_sparc"
3765 ;;
3766 esac
3767 ;;
3768 *64-bit*)
3769 case $host in
3770 x86_64-*linux*)
3771 LD="${LD-ld} -m elf_x86_64"
3772 ;;
3773 ppc*-*linux*|powerpc*-*linux*)
3774 LD="${LD-ld} -m elf64ppc"
3775 ;;
3776 s390*-*linux*)
3777 LD="${LD-ld} -m elf64_s390"
3778 ;;
3779 sparc*-*linux*)
3780 LD="${LD-ld} -m elf64_sparc"
3781 ;;
3782 esac
3783 ;;
3784 esac
3785 fi
3786 rm -rf conftest*
3787 ;;
3789 *-*-sco3.2v5*)
3790 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3791 SAVE_CFLAGS="$CFLAGS"
3792 CFLAGS="$CFLAGS -belf"
3793 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3794 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3795 if test "${lt_cv_cc_needs_belf+set}" = set; then
3796 echo $ECHO_N "(cached) $ECHO_C" >&6
3797 else
3798 ac_ext=c
3799 ac_cpp='$CPP $CPPFLAGS'
3800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3804 cat >conftest.$ac_ext <<_ACEOF
3805 /* confdefs.h. */
3806 _ACEOF
3807 cat confdefs.h >>conftest.$ac_ext
3808 cat >>conftest.$ac_ext <<_ACEOF
3809 /* end confdefs.h. */
3811 int
3812 main ()
3813 {
3815 ;
3816 return 0;
3817 }
3818 _ACEOF
3819 rm -f conftest.$ac_objext conftest$ac_exeext
3820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3821 (eval $ac_link) 2>conftest.er1
3822 ac_status=$?
3823 grep -v '^ *+' conftest.er1 >conftest.err
3824 rm -f conftest.er1
3825 cat conftest.err >&5
3826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827 (exit $ac_status); } &&
3828 { ac_try='test -z "$ac_c_werror_flag"
3829 || test ! -s conftest.err'
3830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3831 (eval $ac_try) 2>&5
3832 ac_status=$?
3833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834 (exit $ac_status); }; } &&
3835 { ac_try='test -s conftest$ac_exeext'
3836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3837 (eval $ac_try) 2>&5
3838 ac_status=$?
3839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840 (exit $ac_status); }; }; then
3841 lt_cv_cc_needs_belf=yes
3842 else
3843 echo "$as_me: failed program was:" >&5
3844 sed 's/^/| /' conftest.$ac_ext >&5
3846 lt_cv_cc_needs_belf=no
3847 fi
3848 rm -f conftest.err conftest.$ac_objext \
3849 conftest$ac_exeext conftest.$ac_ext
3850 ac_ext=c
3851 ac_cpp='$CPP $CPPFLAGS'
3852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3856 fi
3857 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3858 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3859 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3860 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3861 CFLAGS="$SAVE_CFLAGS"
3862 fi
3863 ;;
3864 sparc*-*solaris*)
3865 # Find out which ABI we are using.
3866 echo 'int i;' > conftest.$ac_ext
3867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3868 (eval $ac_compile) 2>&5
3869 ac_status=$?
3870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871 (exit $ac_status); }; then
3872 case `/usr/bin/file conftest.o` in
3873 *64-bit*)
3874 case $lt_cv_prog_gnu_ld in
3875 yes*) LD="${LD-ld} -m elf64_sparc" ;;
3876 *) LD="${LD-ld} -64" ;;
3877 esac
3878 ;;
3879 esac
3880 fi
3881 rm -rf conftest*
3882 ;;
3885 esac
3887 need_locks="$enable_libtool_lock"
3890 ac_ext=c
3891 ac_cpp='$CPP $CPPFLAGS'
3892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3895 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3896 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3897 # On Suns, sometimes $CPP names a directory.
3898 if test -n "$CPP" && test -d "$CPP"; then
3899 CPP=
3900 fi
3901 if test -z "$CPP"; then
3902 if test "${ac_cv_prog_CPP+set}" = set; then
3903 echo $ECHO_N "(cached) $ECHO_C" >&6
3904 else
3905 # Double quotes because CPP needs to be expanded
3906 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3907 do
3908 ac_preproc_ok=false
3909 for ac_c_preproc_warn_flag in '' yes
3910 do
3911 # Use a header file that comes with gcc, so configuring glibc
3912 # with a fresh cross-compiler works.
3913 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3914 # <limits.h> exists even on freestanding compilers.
3915 # On the NeXT, cc -E runs the code through the compiler's parser,
3916 # not just through cpp. "Syntax error" is here to catch this case.
3917 cat >conftest.$ac_ext <<_ACEOF
3918 /* confdefs.h. */
3919 _ACEOF
3920 cat confdefs.h >>conftest.$ac_ext
3921 cat >>conftest.$ac_ext <<_ACEOF
3922 /* end confdefs.h. */
3923 #ifdef __STDC__
3924 # include <limits.h>
3925 #else
3926 # include <assert.h>
3927 #endif
3928 Syntax error
3929 _ACEOF
3930 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3931 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3932 ac_status=$?
3933 grep -v '^ *+' conftest.er1 >conftest.err
3934 rm -f conftest.er1
3935 cat conftest.err >&5
3936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937 (exit $ac_status); } >/dev/null; then
3938 if test -s conftest.err; then
3939 ac_cpp_err=$ac_c_preproc_warn_flag
3940 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3941 else
3942 ac_cpp_err=
3943 fi
3944 else
3945 ac_cpp_err=yes
3946 fi
3947 if test -z "$ac_cpp_err"; then
3948 :
3949 else
3950 echo "$as_me: failed program was:" >&5
3951 sed 's/^/| /' conftest.$ac_ext >&5
3953 # Broken: fails on valid input.
3954 continue
3955 fi
3956 rm -f conftest.err conftest.$ac_ext
3958 # OK, works on sane cases. Now check whether non-existent headers
3959 # can be detected and how.
3960 cat >conftest.$ac_ext <<_ACEOF
3961 /* confdefs.h. */
3962 _ACEOF
3963 cat confdefs.h >>conftest.$ac_ext
3964 cat >>conftest.$ac_ext <<_ACEOF
3965 /* end confdefs.h. */
3966 #include <ac_nonexistent.h>
3967 _ACEOF
3968 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3969 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3970 ac_status=$?
3971 grep -v '^ *+' conftest.er1 >conftest.err
3972 rm -f conftest.er1
3973 cat conftest.err >&5
3974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975 (exit $ac_status); } >/dev/null; then
3976 if test -s conftest.err; then
3977 ac_cpp_err=$ac_c_preproc_warn_flag
3978 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3979 else
3980 ac_cpp_err=
3981 fi
3982 else
3983 ac_cpp_err=yes
3984 fi
3985 if test -z "$ac_cpp_err"; then
3986 # Broken: success on invalid input.
3987 continue
3988 else
3989 echo "$as_me: failed program was:" >&5
3990 sed 's/^/| /' conftest.$ac_ext >&5
3992 # Passes both tests.
3993 ac_preproc_ok=:
3994 break
3995 fi
3996 rm -f conftest.err conftest.$ac_ext
3998 done
3999 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4000 rm -f conftest.err conftest.$ac_ext
4001 if $ac_preproc_ok; then
4002 break
4003 fi
4005 done
4006 ac_cv_prog_CPP=$CPP
4008 fi
4009 CPP=$ac_cv_prog_CPP
4010 else
4011 ac_cv_prog_CPP=$CPP
4012 fi
4013 echo "$as_me:$LINENO: result: $CPP" >&5
4014 echo "${ECHO_T}$CPP" >&6
4015 ac_preproc_ok=false
4016 for ac_c_preproc_warn_flag in '' yes
4017 do
4018 # Use a header file that comes with gcc, so configuring glibc
4019 # with a fresh cross-compiler works.
4020 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4021 # <limits.h> exists even on freestanding compilers.
4022 # On the NeXT, cc -E runs the code through the compiler's parser,
4023 # not just through cpp. "Syntax error" is here to catch this case.
4024 cat >conftest.$ac_ext <<_ACEOF
4025 /* confdefs.h. */
4026 _ACEOF
4027 cat confdefs.h >>conftest.$ac_ext
4028 cat >>conftest.$ac_ext <<_ACEOF
4029 /* end confdefs.h. */
4030 #ifdef __STDC__
4031 # include <limits.h>
4032 #else
4033 # include <assert.h>
4034 #endif
4035 Syntax error
4036 _ACEOF
4037 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4038 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4039 ac_status=$?
4040 grep -v '^ *+' conftest.er1 >conftest.err
4041 rm -f conftest.er1
4042 cat conftest.err >&5
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); } >/dev/null; then
4045 if test -s conftest.err; then
4046 ac_cpp_err=$ac_c_preproc_warn_flag
4047 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4048 else
4049 ac_cpp_err=
4050 fi
4051 else
4052 ac_cpp_err=yes
4053 fi
4054 if test -z "$ac_cpp_err"; then
4055 :
4056 else
4057 echo "$as_me: failed program was:" >&5
4058 sed 's/^/| /' conftest.$ac_ext >&5
4060 # Broken: fails on valid input.
4061 continue
4062 fi
4063 rm -f conftest.err conftest.$ac_ext
4065 # OK, works on sane cases. Now check whether non-existent headers
4066 # can be detected and how.
4067 cat >conftest.$ac_ext <<_ACEOF
4068 /* confdefs.h. */
4069 _ACEOF
4070 cat confdefs.h >>conftest.$ac_ext
4071 cat >>conftest.$ac_ext <<_ACEOF
4072 /* end confdefs.h. */
4073 #include <ac_nonexistent.h>
4074 _ACEOF
4075 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4076 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4077 ac_status=$?
4078 grep -v '^ *+' conftest.er1 >conftest.err
4079 rm -f conftest.er1
4080 cat conftest.err >&5
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); } >/dev/null; then
4083 if test -s conftest.err; then
4084 ac_cpp_err=$ac_c_preproc_warn_flag
4085 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4086 else
4087 ac_cpp_err=
4088 fi
4089 else
4090 ac_cpp_err=yes
4091 fi
4092 if test -z "$ac_cpp_err"; then
4093 # Broken: success on invalid input.
4094 continue
4095 else
4096 echo "$as_me: failed program was:" >&5
4097 sed 's/^/| /' conftest.$ac_ext >&5
4099 # Passes both tests.
4100 ac_preproc_ok=:
4101 break
4102 fi
4103 rm -f conftest.err conftest.$ac_ext
4105 done
4106 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4107 rm -f conftest.err conftest.$ac_ext
4108 if $ac_preproc_ok; then
4109 :
4110 else
4111 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4112 See \`config.log' for more details." >&5
4113 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4114 See \`config.log' for more details." >&2;}
4115 { (exit 1); exit 1; }; }
4116 fi
4118 ac_ext=c
4119 ac_cpp='$CPP $CPPFLAGS'
4120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4125 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4126 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4127 if test "${ac_cv_header_stdc+set}" = set; then
4128 echo $ECHO_N "(cached) $ECHO_C" >&6
4129 else
4130 cat >conftest.$ac_ext <<_ACEOF
4131 /* confdefs.h. */
4132 _ACEOF
4133 cat confdefs.h >>conftest.$ac_ext
4134 cat >>conftest.$ac_ext <<_ACEOF
4135 /* end confdefs.h. */
4136 #include <stdlib.h>
4137 #include <stdarg.h>
4138 #include <string.h>
4139 #include <float.h>
4141 int
4142 main ()
4143 {
4145 ;
4146 return 0;
4147 }
4148 _ACEOF
4149 rm -f conftest.$ac_objext
4150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4151 (eval $ac_compile) 2>conftest.er1
4152 ac_status=$?
4153 grep -v '^ *+' conftest.er1 >conftest.err
4154 rm -f conftest.er1
4155 cat conftest.err >&5
4156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157 (exit $ac_status); } &&
4158 { ac_try='test -z "$ac_c_werror_flag"
4159 || test ! -s conftest.err'
4160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4161 (eval $ac_try) 2>&5
4162 ac_status=$?
4163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164 (exit $ac_status); }; } &&
4165 { ac_try='test -s conftest.$ac_objext'
4166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4167 (eval $ac_try) 2>&5
4168 ac_status=$?
4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170 (exit $ac_status); }; }; then
4171 ac_cv_header_stdc=yes
4172 else
4173 echo "$as_me: failed program was:" >&5
4174 sed 's/^/| /' conftest.$ac_ext >&5
4176 ac_cv_header_stdc=no
4177 fi
4178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4180 if test $ac_cv_header_stdc = yes; then
4181 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4182 cat >conftest.$ac_ext <<_ACEOF
4183 /* confdefs.h. */
4184 _ACEOF
4185 cat confdefs.h >>conftest.$ac_ext
4186 cat >>conftest.$ac_ext <<_ACEOF
4187 /* end confdefs.h. */
4188 #include <string.h>
4190 _ACEOF
4191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4192 $EGREP "memchr" >/dev/null 2>&1; then
4193 :
4194 else
4195 ac_cv_header_stdc=no
4196 fi
4197 rm -f conftest*
4199 fi
4201 if test $ac_cv_header_stdc = yes; then
4202 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4203 cat >conftest.$ac_ext <<_ACEOF
4204 /* confdefs.h. */
4205 _ACEOF
4206 cat confdefs.h >>conftest.$ac_ext
4207 cat >>conftest.$ac_ext <<_ACEOF
4208 /* end confdefs.h. */
4209 #include <stdlib.h>
4211 _ACEOF
4212 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4213 $EGREP "free" >/dev/null 2>&1; then
4214 :
4215 else
4216 ac_cv_header_stdc=no
4217 fi
4218 rm -f conftest*
4220 fi
4222 if test $ac_cv_header_stdc = yes; then
4223 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4224 if test "$cross_compiling" = yes; then
4225 :
4226 else
4227 cat >conftest.$ac_ext <<_ACEOF
4228 /* confdefs.h. */
4229 _ACEOF
4230 cat confdefs.h >>conftest.$ac_ext
4231 cat >>conftest.$ac_ext <<_ACEOF
4232 /* end confdefs.h. */
4233 #include <ctype.h>
4234 #if ((' ' & 0x0FF) == 0x020)
4235 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4236 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4237 #else
4238 # define ISLOWER(c) \
4239 (('a' <= (c) && (c) <= 'i') \
4240 || ('j' <= (c) && (c) <= 'r') \
4241 || ('s' <= (c) && (c) <= 'z'))
4242 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4243 #endif
4245 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4246 int
4247 main ()
4248 {
4249 int i;
4250 for (i = 0; i < 256; i++)
4251 if (XOR (islower (i), ISLOWER (i))
4252 || toupper (i) != TOUPPER (i))
4253 exit(2);
4254 exit (0);
4255 }
4256 _ACEOF
4257 rm -f conftest$ac_exeext
4258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4259 (eval $ac_link) 2>&5
4260 ac_status=$?
4261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4264 (eval $ac_try) 2>&5
4265 ac_status=$?
4266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267 (exit $ac_status); }; }; then
4268 :
4269 else
4270 echo "$as_me: program exited with status $ac_status" >&5
4271 echo "$as_me: failed program was:" >&5
4272 sed 's/^/| /' conftest.$ac_ext >&5
4274 ( exit $ac_status )
4275 ac_cv_header_stdc=no
4276 fi
4277 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4278 fi
4279 fi
4280 fi
4281 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4282 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4283 if test $ac_cv_header_stdc = yes; then
4285 cat >>confdefs.h <<\_ACEOF
4286 #define STDC_HEADERS 1
4287 _ACEOF
4289 fi
4291 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4301 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4302 inttypes.h stdint.h unistd.h
4303 do
4304 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4305 echo "$as_me:$LINENO: checking for $ac_header" >&5
4306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4307 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4308 echo $ECHO_N "(cached) $ECHO_C" >&6
4309 else
4310 cat >conftest.$ac_ext <<_ACEOF
4311 /* confdefs.h. */
4312 _ACEOF
4313 cat confdefs.h >>conftest.$ac_ext
4314 cat >>conftest.$ac_ext <<_ACEOF
4315 /* end confdefs.h. */
4316 $ac_includes_default
4318 #include <$ac_header>
4319 _ACEOF
4320 rm -f conftest.$ac_objext
4321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4322 (eval $ac_compile) 2>conftest.er1
4323 ac_status=$?
4324 grep -v '^ *+' conftest.er1 >conftest.err
4325 rm -f conftest.er1
4326 cat conftest.err >&5
4327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328 (exit $ac_status); } &&
4329 { ac_try='test -z "$ac_c_werror_flag"
4330 || test ! -s conftest.err'
4331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4332 (eval $ac_try) 2>&5
4333 ac_status=$?
4334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335 (exit $ac_status); }; } &&
4336 { ac_try='test -s conftest.$ac_objext'
4337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4338 (eval $ac_try) 2>&5
4339 ac_status=$?
4340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341 (exit $ac_status); }; }; then
4342 eval "$as_ac_Header=yes"
4343 else
4344 echo "$as_me: failed program was:" >&5
4345 sed 's/^/| /' conftest.$ac_ext >&5
4347 eval "$as_ac_Header=no"
4348 fi
4349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4350 fi
4351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4352 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4353 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4354 cat >>confdefs.h <<_ACEOF
4355 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4356 _ACEOF
4358 fi
4360 done
4364 for ac_header in dlfcn.h
4365 do
4366 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4367 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4368 echo "$as_me:$LINENO: checking for $ac_header" >&5
4369 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4370 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4371 echo $ECHO_N "(cached) $ECHO_C" >&6
4372 fi
4373 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4374 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4375 else
4376 # Is the header compilable?
4377 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4378 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4379 cat >conftest.$ac_ext <<_ACEOF
4380 /* confdefs.h. */
4381 _ACEOF
4382 cat confdefs.h >>conftest.$ac_ext
4383 cat >>conftest.$ac_ext <<_ACEOF
4384 /* end confdefs.h. */
4385 $ac_includes_default
4386 #include <$ac_header>
4387 _ACEOF
4388 rm -f conftest.$ac_objext
4389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4390 (eval $ac_compile) 2>conftest.er1
4391 ac_status=$?
4392 grep -v '^ *+' conftest.er1 >conftest.err
4393 rm -f conftest.er1
4394 cat conftest.err >&5
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); } &&
4397 { ac_try='test -z "$ac_c_werror_flag"
4398 || test ! -s conftest.err'
4399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4400 (eval $ac_try) 2>&5
4401 ac_status=$?
4402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403 (exit $ac_status); }; } &&
4404 { ac_try='test -s conftest.$ac_objext'
4405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4406 (eval $ac_try) 2>&5
4407 ac_status=$?
4408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409 (exit $ac_status); }; }; then
4410 ac_header_compiler=yes
4411 else
4412 echo "$as_me: failed program was:" >&5
4413 sed 's/^/| /' conftest.$ac_ext >&5
4415 ac_header_compiler=no
4416 fi
4417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4418 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4419 echo "${ECHO_T}$ac_header_compiler" >&6
4421 # Is the header present?
4422 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4423 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4424 cat >conftest.$ac_ext <<_ACEOF
4425 /* confdefs.h. */
4426 _ACEOF
4427 cat confdefs.h >>conftest.$ac_ext
4428 cat >>conftest.$ac_ext <<_ACEOF
4429 /* end confdefs.h. */
4430 #include <$ac_header>
4431 _ACEOF
4432 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4433 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4434 ac_status=$?
4435 grep -v '^ *+' conftest.er1 >conftest.err
4436 rm -f conftest.er1
4437 cat conftest.err >&5
4438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439 (exit $ac_status); } >/dev/null; then
4440 if test -s conftest.err; then
4441 ac_cpp_err=$ac_c_preproc_warn_flag
4442 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4443 else
4444 ac_cpp_err=
4445 fi
4446 else
4447 ac_cpp_err=yes
4448 fi
4449 if test -z "$ac_cpp_err"; then
4450 ac_header_preproc=yes
4451 else
4452 echo "$as_me: failed program was:" >&5
4453 sed 's/^/| /' conftest.$ac_ext >&5
4455 ac_header_preproc=no
4456 fi
4457 rm -f conftest.err conftest.$ac_ext
4458 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4459 echo "${ECHO_T}$ac_header_preproc" >&6
4461 # So? What about this header?
4462 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4463 yes:no: )
4464 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4465 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4467 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4468 ac_header_preproc=yes
4469 ;;
4470 no:yes:* )
4471 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4472 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4473 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4474 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4475 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4476 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4477 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4478 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4480 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4481 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4482 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4483 (
4484 cat <<\_ASBOX
4485 ## --------------------------------- ##
4486 ## Report this to the TI IPC lists. ##
4487 ## --------------------------------- ##
4488 _ASBOX
4489 ) |
4490 sed "s/^/$as_me: WARNING: /" >&2
4491 ;;
4492 esac
4493 echo "$as_me:$LINENO: checking for $ac_header" >&5
4494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4495 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4496 echo $ECHO_N "(cached) $ECHO_C" >&6
4497 else
4498 eval "$as_ac_Header=\$ac_header_preproc"
4499 fi
4500 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4501 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4503 fi
4504 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4505 cat >>confdefs.h <<_ACEOF
4506 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4507 _ACEOF
4509 fi
4511 done
4513 ac_ext=cc
4514 ac_cpp='$CXXCPP $CPPFLAGS'
4515 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4516 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4517 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4518 if test -n "$ac_tool_prefix"; then
4519 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4520 do
4521 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4522 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4523 echo "$as_me:$LINENO: checking for $ac_word" >&5
4524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4525 if test "${ac_cv_prog_CXX+set}" = set; then
4526 echo $ECHO_N "(cached) $ECHO_C" >&6
4527 else
4528 if test -n "$CXX"; then
4529 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4530 else
4531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4532 for as_dir in $PATH
4533 do
4534 IFS=$as_save_IFS
4535 test -z "$as_dir" && as_dir=.
4536 for ac_exec_ext in '' $ac_executable_extensions; do
4537 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4538 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4540 break 2
4541 fi
4542 done
4543 done
4545 fi
4546 fi
4547 CXX=$ac_cv_prog_CXX
4548 if test -n "$CXX"; then
4549 echo "$as_me:$LINENO: result: $CXX" >&5
4550 echo "${ECHO_T}$CXX" >&6
4551 else
4552 echo "$as_me:$LINENO: result: no" >&5
4553 echo "${ECHO_T}no" >&6
4554 fi
4556 test -n "$CXX" && break
4557 done
4558 fi
4559 if test -z "$CXX"; then
4560 ac_ct_CXX=$CXX
4561 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4562 do
4563 # Extract the first word of "$ac_prog", so it can be a program name with args.
4564 set dummy $ac_prog; ac_word=$2
4565 echo "$as_me:$LINENO: checking for $ac_word" >&5
4566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4567 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4568 echo $ECHO_N "(cached) $ECHO_C" >&6
4569 else
4570 if test -n "$ac_ct_CXX"; then
4571 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4572 else
4573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4574 for as_dir in $PATH
4575 do
4576 IFS=$as_save_IFS
4577 test -z "$as_dir" && as_dir=.
4578 for ac_exec_ext in '' $ac_executable_extensions; do
4579 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4580 ac_cv_prog_ac_ct_CXX="$ac_prog"
4581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4582 break 2
4583 fi
4584 done
4585 done
4587 fi
4588 fi
4589 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4590 if test -n "$ac_ct_CXX"; then
4591 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4592 echo "${ECHO_T}$ac_ct_CXX" >&6
4593 else
4594 echo "$as_me:$LINENO: result: no" >&5
4595 echo "${ECHO_T}no" >&6
4596 fi
4598 test -n "$ac_ct_CXX" && break
4599 done
4600 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4602 CXX=$ac_ct_CXX
4603 fi
4606 # Provide some information about the compiler.
4607 echo "$as_me:$LINENO:" \
4608 "checking for C++ compiler version" >&5
4609 ac_compiler=`set X $ac_compile; echo $2`
4610 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4611 (eval $ac_compiler --version </dev/null >&5) 2>&5
4612 ac_status=$?
4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614 (exit $ac_status); }
4615 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4616 (eval $ac_compiler -v </dev/null >&5) 2>&5
4617 ac_status=$?
4618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619 (exit $ac_status); }
4620 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4621 (eval $ac_compiler -V </dev/null >&5) 2>&5
4622 ac_status=$?
4623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624 (exit $ac_status); }
4626 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4627 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4628 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4629 echo $ECHO_N "(cached) $ECHO_C" >&6
4630 else
4631 cat >conftest.$ac_ext <<_ACEOF
4632 /* confdefs.h. */
4633 _ACEOF
4634 cat confdefs.h >>conftest.$ac_ext
4635 cat >>conftest.$ac_ext <<_ACEOF
4636 /* end confdefs.h. */
4638 int
4639 main ()
4640 {
4641 #ifndef __GNUC__
4642 choke me
4643 #endif
4645 ;
4646 return 0;
4647 }
4648 _ACEOF
4649 rm -f conftest.$ac_objext
4650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4651 (eval $ac_compile) 2>conftest.er1
4652 ac_status=$?
4653 grep -v '^ *+' conftest.er1 >conftest.err
4654 rm -f conftest.er1
4655 cat conftest.err >&5
4656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657 (exit $ac_status); } &&
4658 { ac_try='test -z "$ac_cxx_werror_flag"
4659 || test ! -s conftest.err'
4660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4661 (eval $ac_try) 2>&5
4662 ac_status=$?
4663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664 (exit $ac_status); }; } &&
4665 { ac_try='test -s conftest.$ac_objext'
4666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4667 (eval $ac_try) 2>&5
4668 ac_status=$?
4669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670 (exit $ac_status); }; }; then
4671 ac_compiler_gnu=yes
4672 else
4673 echo "$as_me: failed program was:" >&5
4674 sed 's/^/| /' conftest.$ac_ext >&5
4676 ac_compiler_gnu=no
4677 fi
4678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4679 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4681 fi
4682 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4683 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4684 GXX=`test $ac_compiler_gnu = yes && echo yes`
4685 ac_test_CXXFLAGS=${CXXFLAGS+set}
4686 ac_save_CXXFLAGS=$CXXFLAGS
4687 CXXFLAGS="-g"
4688 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4689 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4690 if test "${ac_cv_prog_cxx_g+set}" = set; then
4691 echo $ECHO_N "(cached) $ECHO_C" >&6
4692 else
4693 cat >conftest.$ac_ext <<_ACEOF
4694 /* confdefs.h. */
4695 _ACEOF
4696 cat confdefs.h >>conftest.$ac_ext
4697 cat >>conftest.$ac_ext <<_ACEOF
4698 /* end confdefs.h. */
4700 int
4701 main ()
4702 {
4704 ;
4705 return 0;
4706 }
4707 _ACEOF
4708 rm -f conftest.$ac_objext
4709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4710 (eval $ac_compile) 2>conftest.er1
4711 ac_status=$?
4712 grep -v '^ *+' conftest.er1 >conftest.err
4713 rm -f conftest.er1
4714 cat conftest.err >&5
4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716 (exit $ac_status); } &&
4717 { ac_try='test -z "$ac_cxx_werror_flag"
4718 || test ! -s conftest.err'
4719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4720 (eval $ac_try) 2>&5
4721 ac_status=$?
4722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723 (exit $ac_status); }; } &&
4724 { ac_try='test -s conftest.$ac_objext'
4725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4726 (eval $ac_try) 2>&5
4727 ac_status=$?
4728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729 (exit $ac_status); }; }; then
4730 ac_cv_prog_cxx_g=yes
4731 else
4732 echo "$as_me: failed program was:" >&5
4733 sed 's/^/| /' conftest.$ac_ext >&5
4735 ac_cv_prog_cxx_g=no
4736 fi
4737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4738 fi
4739 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4740 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4741 if test "$ac_test_CXXFLAGS" = set; then
4742 CXXFLAGS=$ac_save_CXXFLAGS
4743 elif test $ac_cv_prog_cxx_g = yes; then
4744 if test "$GXX" = yes; then
4745 CXXFLAGS="-g -O2"
4746 else
4747 CXXFLAGS="-g"
4748 fi
4749 else
4750 if test "$GXX" = yes; then
4751 CXXFLAGS="-O2"
4752 else
4753 CXXFLAGS=
4754 fi
4755 fi
4756 for ac_declaration in \
4757 '' \
4758 'extern "C" void std::exit (int) throw (); using std::exit;' \
4759 'extern "C" void std::exit (int); using std::exit;' \
4760 'extern "C" void exit (int) throw ();' \
4761 'extern "C" void exit (int);' \
4762 'void exit (int);'
4763 do
4764 cat >conftest.$ac_ext <<_ACEOF
4765 /* confdefs.h. */
4766 _ACEOF
4767 cat confdefs.h >>conftest.$ac_ext
4768 cat >>conftest.$ac_ext <<_ACEOF
4769 /* end confdefs.h. */
4770 $ac_declaration
4771 #include <stdlib.h>
4772 int
4773 main ()
4774 {
4775 exit (42);
4776 ;
4777 return 0;
4778 }
4779 _ACEOF
4780 rm -f conftest.$ac_objext
4781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4782 (eval $ac_compile) 2>conftest.er1
4783 ac_status=$?
4784 grep -v '^ *+' conftest.er1 >conftest.err
4785 rm -f conftest.er1
4786 cat conftest.err >&5
4787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788 (exit $ac_status); } &&
4789 { ac_try='test -z "$ac_cxx_werror_flag"
4790 || test ! -s conftest.err'
4791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4792 (eval $ac_try) 2>&5
4793 ac_status=$?
4794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795 (exit $ac_status); }; } &&
4796 { ac_try='test -s conftest.$ac_objext'
4797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4798 (eval $ac_try) 2>&5
4799 ac_status=$?
4800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801 (exit $ac_status); }; }; then
4802 :
4803 else
4804 echo "$as_me: failed program was:" >&5
4805 sed 's/^/| /' conftest.$ac_ext >&5
4807 continue
4808 fi
4809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4810 cat >conftest.$ac_ext <<_ACEOF
4811 /* confdefs.h. */
4812 _ACEOF
4813 cat confdefs.h >>conftest.$ac_ext
4814 cat >>conftest.$ac_ext <<_ACEOF
4815 /* end confdefs.h. */
4816 $ac_declaration
4817 int
4818 main ()
4819 {
4820 exit (42);
4821 ;
4822 return 0;
4823 }
4824 _ACEOF
4825 rm -f conftest.$ac_objext
4826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4827 (eval $ac_compile) 2>conftest.er1
4828 ac_status=$?
4829 grep -v '^ *+' conftest.er1 >conftest.err
4830 rm -f conftest.er1
4831 cat conftest.err >&5
4832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833 (exit $ac_status); } &&
4834 { ac_try='test -z "$ac_cxx_werror_flag"
4835 || test ! -s conftest.err'
4836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4837 (eval $ac_try) 2>&5
4838 ac_status=$?
4839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840 (exit $ac_status); }; } &&
4841 { ac_try='test -s conftest.$ac_objext'
4842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4843 (eval $ac_try) 2>&5
4844 ac_status=$?
4845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846 (exit $ac_status); }; }; then
4847 break
4848 else
4849 echo "$as_me: failed program was:" >&5
4850 sed 's/^/| /' conftest.$ac_ext >&5
4852 fi
4853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4854 done
4855 rm -f conftest*
4856 if test -n "$ac_declaration"; then
4857 echo '#ifdef __cplusplus' >>confdefs.h
4858 echo $ac_declaration >>confdefs.h
4859 echo '#endif' >>confdefs.h
4860 fi
4862 ac_ext=cc
4863 ac_cpp='$CXXCPP $CPPFLAGS'
4864 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4865 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4866 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4868 depcc="$CXX" am_compiler_list=
4870 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4871 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4872 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4873 echo $ECHO_N "(cached) $ECHO_C" >&6
4874 else
4875 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4876 # We make a subdir and do the tests there. Otherwise we can end up
4877 # making bogus files that we don't know about and never remove. For
4878 # instance it was reported that on HP-UX the gcc test will end up
4879 # making a dummy file named `D' -- because `-MD' means `put the output
4880 # in D'.
4881 mkdir conftest.dir
4882 # Copy depcomp to subdir because otherwise we won't find it if we're
4883 # using a relative directory.
4884 cp "$am_depcomp" conftest.dir
4885 cd conftest.dir
4886 # We will build objects and dependencies in a subdirectory because
4887 # it helps to detect inapplicable dependency modes. For instance
4888 # both Tru64's cc and ICC support -MD to output dependencies as a
4889 # side effect of compilation, but ICC will put the dependencies in
4890 # the current directory while Tru64 will put them in the object
4891 # directory.
4892 mkdir sub
4894 am_cv_CXX_dependencies_compiler_type=none
4895 if test "$am_compiler_list" = ""; then
4896 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4897 fi
4898 for depmode in $am_compiler_list; do
4899 # Setup a source with many dependencies, because some compilers
4900 # like to wrap large dependency lists on column 80 (with \), and
4901 # we should not choose a depcomp mode which is confused by this.
4902 #
4903 # We need to recreate these files for each test, as the compiler may
4904 # overwrite some of them when testing with obscure command lines.
4905 # This happens at least with the AIX C compiler.
4906 : > sub/conftest.c
4907 for i in 1 2 3 4 5 6; do
4908 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4909 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4910 # Solaris 8's {/usr,}/bin/sh.
4911 touch sub/conftst$i.h
4912 done
4913 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4915 case $depmode in
4916 nosideeffect)
4917 # after this tag, mechanisms are not by side-effect, so they'll
4918 # only be used when explicitly requested
4919 if test "x$enable_dependency_tracking" = xyes; then
4920 continue
4921 else
4922 break
4923 fi
4924 ;;
4925 none) break ;;
4926 esac
4927 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4928 # mode. It turns out that the SunPro C++ compiler does not properly
4929 # handle `-M -o', and we need to detect this.
4930 if depmode=$depmode \
4931 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4932 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4933 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4934 >/dev/null 2>conftest.err &&
4935 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4936 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4937 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4938 # icc doesn't choke on unknown options, it will just issue warnings
4939 # or remarks (even with -Werror). So we grep stderr for any message
4940 # that says an option was ignored or not supported.
4941 # When given -MP, icc 7.0 and 7.1 complain thusly:
4942 # icc: Command line warning: ignoring option '-M'; no argument required
4943 # The diagnosis changed in icc 8.0:
4944 # icc: Command line remark: option '-MP' not supported
4945 if (grep 'ignoring option' conftest.err ||
4946 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4947 am_cv_CXX_dependencies_compiler_type=$depmode
4948 break
4949 fi
4950 fi
4951 done
4953 cd ..
4954 rm -rf conftest.dir
4955 else
4956 am_cv_CXX_dependencies_compiler_type=none
4957 fi
4959 fi
4960 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4961 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4962 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4966 if
4967 test "x$enable_dependency_tracking" != xno \
4968 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4969 am__fastdepCXX_TRUE=
4970 am__fastdepCXX_FALSE='#'
4971 else
4972 am__fastdepCXX_TRUE='#'
4973 am__fastdepCXX_FALSE=
4974 fi
4979 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4980 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4981 (test "X$CXX" != "Xg++"))) ; then
4982 ac_ext=cc
4983 ac_cpp='$CXXCPP $CPPFLAGS'
4984 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4985 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4986 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4987 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4988 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4989 if test -z "$CXXCPP"; then
4990 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4991 echo $ECHO_N "(cached) $ECHO_C" >&6
4992 else
4993 # Double quotes because CXXCPP needs to be expanded
4994 for CXXCPP in "$CXX -E" "/lib/cpp"
4995 do
4996 ac_preproc_ok=false
4997 for ac_cxx_preproc_warn_flag in '' yes
4998 do
4999 # Use a header file that comes with gcc, so configuring glibc
5000 # with a fresh cross-compiler works.
5001 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5002 # <limits.h> exists even on freestanding compilers.
5003 # On the NeXT, cc -E runs the code through the compiler's parser,
5004 # not just through cpp. "Syntax error" is here to catch this case.
5005 cat >conftest.$ac_ext <<_ACEOF
5006 /* confdefs.h. */
5007 _ACEOF
5008 cat confdefs.h >>conftest.$ac_ext
5009 cat >>conftest.$ac_ext <<_ACEOF
5010 /* end confdefs.h. */
5011 #ifdef __STDC__
5012 # include <limits.h>
5013 #else
5014 # include <assert.h>
5015 #endif
5016 Syntax error
5017 _ACEOF
5018 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5019 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5020 ac_status=$?
5021 grep -v '^ *+' conftest.er1 >conftest.err
5022 rm -f conftest.er1
5023 cat conftest.err >&5
5024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025 (exit $ac_status); } >/dev/null; then
5026 if test -s conftest.err; then
5027 ac_cpp_err=$ac_cxx_preproc_warn_flag
5028 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5029 else
5030 ac_cpp_err=
5031 fi
5032 else
5033 ac_cpp_err=yes
5034 fi
5035 if test -z "$ac_cpp_err"; then
5036 :
5037 else
5038 echo "$as_me: failed program was:" >&5
5039 sed 's/^/| /' conftest.$ac_ext >&5
5041 # Broken: fails on valid input.
5042 continue
5043 fi
5044 rm -f conftest.err conftest.$ac_ext
5046 # OK, works on sane cases. Now check whether non-existent headers
5047 # can be detected and how.
5048 cat >conftest.$ac_ext <<_ACEOF
5049 /* confdefs.h. */
5050 _ACEOF
5051 cat confdefs.h >>conftest.$ac_ext
5052 cat >>conftest.$ac_ext <<_ACEOF
5053 /* end confdefs.h. */
5054 #include <ac_nonexistent.h>
5055 _ACEOF
5056 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5057 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5058 ac_status=$?
5059 grep -v '^ *+' conftest.er1 >conftest.err
5060 rm -f conftest.er1
5061 cat conftest.err >&5
5062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063 (exit $ac_status); } >/dev/null; then
5064 if test -s conftest.err; then
5065 ac_cpp_err=$ac_cxx_preproc_warn_flag
5066 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5067 else
5068 ac_cpp_err=
5069 fi
5070 else
5071 ac_cpp_err=yes
5072 fi
5073 if test -z "$ac_cpp_err"; then
5074 # Broken: success on invalid input.
5075 continue
5076 else
5077 echo "$as_me: failed program was:" >&5
5078 sed 's/^/| /' conftest.$ac_ext >&5
5080 # Passes both tests.
5081 ac_preproc_ok=:
5082 break
5083 fi
5084 rm -f conftest.err conftest.$ac_ext
5086 done
5087 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5088 rm -f conftest.err conftest.$ac_ext
5089 if $ac_preproc_ok; then
5090 break
5091 fi
5093 done
5094 ac_cv_prog_CXXCPP=$CXXCPP
5096 fi
5097 CXXCPP=$ac_cv_prog_CXXCPP
5098 else
5099 ac_cv_prog_CXXCPP=$CXXCPP
5100 fi
5101 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5102 echo "${ECHO_T}$CXXCPP" >&6
5103 ac_preproc_ok=false
5104 for ac_cxx_preproc_warn_flag in '' yes
5105 do
5106 # Use a header file that comes with gcc, so configuring glibc
5107 # with a fresh cross-compiler works.
5108 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5109 # <limits.h> exists even on freestanding compilers.
5110 # On the NeXT, cc -E runs the code through the compiler's parser,
5111 # not just through cpp. "Syntax error" is here to catch this case.
5112 cat >conftest.$ac_ext <<_ACEOF
5113 /* confdefs.h. */
5114 _ACEOF
5115 cat confdefs.h >>conftest.$ac_ext
5116 cat >>conftest.$ac_ext <<_ACEOF
5117 /* end confdefs.h. */
5118 #ifdef __STDC__
5119 # include <limits.h>
5120 #else
5121 # include <assert.h>
5122 #endif
5123 Syntax error
5124 _ACEOF
5125 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5126 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5127 ac_status=$?
5128 grep -v '^ *+' conftest.er1 >conftest.err
5129 rm -f conftest.er1
5130 cat conftest.err >&5
5131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132 (exit $ac_status); } >/dev/null; then
5133 if test -s conftest.err; then
5134 ac_cpp_err=$ac_cxx_preproc_warn_flag
5135 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5136 else
5137 ac_cpp_err=
5138 fi
5139 else
5140 ac_cpp_err=yes
5141 fi
5142 if test -z "$ac_cpp_err"; then
5143 :
5144 else
5145 echo "$as_me: failed program was:" >&5
5146 sed 's/^/| /' conftest.$ac_ext >&5
5148 # Broken: fails on valid input.
5149 continue
5150 fi
5151 rm -f conftest.err conftest.$ac_ext
5153 # OK, works on sane cases. Now check whether non-existent headers
5154 # can be detected and how.
5155 cat >conftest.$ac_ext <<_ACEOF
5156 /* confdefs.h. */
5157 _ACEOF
5158 cat confdefs.h >>conftest.$ac_ext
5159 cat >>conftest.$ac_ext <<_ACEOF
5160 /* end confdefs.h. */
5161 #include <ac_nonexistent.h>
5162 _ACEOF
5163 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5164 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5165 ac_status=$?
5166 grep -v '^ *+' conftest.er1 >conftest.err
5167 rm -f conftest.er1
5168 cat conftest.err >&5
5169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170 (exit $ac_status); } >/dev/null; then
5171 if test -s conftest.err; then
5172 ac_cpp_err=$ac_cxx_preproc_warn_flag
5173 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5174 else
5175 ac_cpp_err=
5176 fi
5177 else
5178 ac_cpp_err=yes
5179 fi
5180 if test -z "$ac_cpp_err"; then
5181 # Broken: success on invalid input.
5182 continue
5183 else
5184 echo "$as_me: failed program was:" >&5
5185 sed 's/^/| /' conftest.$ac_ext >&5
5187 # Passes both tests.
5188 ac_preproc_ok=:
5189 break
5190 fi
5191 rm -f conftest.err conftest.$ac_ext
5193 done
5194 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5195 rm -f conftest.err conftest.$ac_ext
5196 if $ac_preproc_ok; then
5197 :
5198 else
5199 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5200 See \`config.log' for more details." >&5
5201 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5202 See \`config.log' for more details." >&2;}
5203 { (exit 1); exit 1; }; }
5204 fi
5206 ac_ext=cc
5207 ac_cpp='$CXXCPP $CPPFLAGS'
5208 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5209 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5210 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5212 fi
5216 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5218 # find the maximum length of command line arguments
5219 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5220 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5221 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5222 echo $ECHO_N "(cached) $ECHO_C" >&6
5223 else
5224 i=0
5225 teststring="ABCD"
5227 case $build_os in
5228 msdosdjgpp*)
5229 # On DJGPP, this test can blow up pretty badly due to problems in libc
5230 # (any single argument exceeding 2000 bytes causes a buffer overrun
5231 # during glob expansion). Even if it were fixed, the result of this
5232 # check would be larger than it should be.
5233 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5234 ;;
5236 gnu*)
5237 # Under GNU Hurd, this test is not required because there is
5238 # no limit to the length of command line arguments.
5239 # Libtool will interpret -1 as no limit whatsoever
5240 lt_cv_sys_max_cmd_len=-1;
5241 ;;
5243 cygwin* | mingw*)
5244 # On Win9x/ME, this test blows up -- it succeeds, but takes
5245 # about 5 minutes as the teststring grows exponentially.
5246 # Worse, since 9x/ME are not pre-emptively multitasking,
5247 # you end up with a "frozen" computer, even though with patience
5248 # the test eventually succeeds (with a max line length of 256k).
5249 # Instead, let's just punt: use the minimum linelength reported by
5250 # all of the supported platforms: 8192 (on NT/2K/XP).
5251 lt_cv_sys_max_cmd_len=8192;
5252 ;;
5254 amigaos*)
5255 # On AmigaOS with pdksh, this test takes hours, literally.
5256 # So we just punt and use a minimum line length of 8192.
5257 lt_cv_sys_max_cmd_len=8192;
5258 ;;
5260 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5261 # This has been around since 386BSD, at least. Likely further.
5262 if test -x /sbin/sysctl; then
5263 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5264 elif test -x /usr/sbin/sysctl; then
5265 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5266 else
5267 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5268 fi
5269 # And add a safety zone
5270 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5271 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5272 ;;
5274 interix*)
5275 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5276 lt_cv_sys_max_cmd_len=196608
5277 ;;
5279 osf*)
5280 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5281 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5282 # nice to cause kernel panics so lets avoid the loop below.
5283 # First set a reasonable default.
5284 lt_cv_sys_max_cmd_len=16384
5285 #
5286 if test -x /sbin/sysconfig; then
5287 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5288 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5289 esac
5290 fi
5291 ;;
5292 sco3.2v5*)
5293 lt_cv_sys_max_cmd_len=102400
5294 ;;
5295 sysv5* | sco5v6* | sysv4.2uw2*)
5296 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5297 if test -n "$kargmax"; then
5298 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5299 else
5300 lt_cv_sys_max_cmd_len=32768
5301 fi
5302 ;;
5303 *)
5304 # If test is not a shell built-in, we'll probably end up computing a
5305 # maximum length that is only half of the actual maximum length, but
5306 # we can't tell.
5307 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5308 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5309 = "XX$teststring") >/dev/null 2>&1 &&
5310 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5311 lt_cv_sys_max_cmd_len=$new_result &&
5312 test $i != 17 # 1/2 MB should be enough
5313 do
5314 i=`expr $i + 1`
5315 teststring=$teststring$teststring
5316 done
5317 teststring=
5318 # Add a significant safety factor because C++ compilers can tack on massive
5319 # amounts of additional arguments before passing them to the linker.
5320 # It appears as though 1/2 is a usable value.
5321 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5322 ;;
5323 esac
5325 fi
5327 if test -n $lt_cv_sys_max_cmd_len ; then
5328 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5329 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5330 else
5331 echo "$as_me:$LINENO: result: none" >&5
5332 echo "${ECHO_T}none" >&6
5333 fi
5338 # Check for command to grab the raw symbol name followed by C symbol from nm.
5339 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5340 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5341 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5342 echo $ECHO_N "(cached) $ECHO_C" >&6
5343 else
5345 # These are sane defaults that work on at least a few old systems.
5346 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5348 # Character class describing NM global symbol codes.
5349 symcode='[BCDEGRST]'
5351 # Regexp to match symbols that can be accessed directly from C.
5352 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5354 # Transform an extracted symbol line into a proper C declaration
5355 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5357 # Transform an extracted symbol line into symbol name and symbol address
5358 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'"
5360 # Define system-specific variables.
5361 case $host_os in
5362 aix*)
5363 symcode='[BCDT]'
5364 ;;
5365 cygwin* | mingw* | pw32*)
5366 symcode='[ABCDGISTW]'
5367 ;;
5368 hpux*) # Its linker distinguishes data from code symbols
5369 if test "$host_cpu" = ia64; then
5370 symcode='[ABCDEGRST]'
5371 fi
5372 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5373 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'"
5374 ;;
5375 linux*)
5376 if test "$host_cpu" = ia64; then
5377 symcode='[ABCDGIRSTW]'
5378 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5379 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'"
5380 fi
5381 ;;
5382 irix* | nonstopux*)
5383 symcode='[BCDEGRST]'
5384 ;;
5385 osf*)
5386 symcode='[BCDEGQRST]'
5387 ;;
5388 solaris*)
5389 symcode='[BDRT]'
5390 ;;
5391 sco3.2v5*)
5392 symcode='[DT]'
5393 ;;
5394 sysv4.2uw2*)
5395 symcode='[DT]'
5396 ;;
5397 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5398 symcode='[ABDT]'
5399 ;;
5400 sysv4)
5401 symcode='[DFNSTU]'
5402 ;;
5403 esac
5405 # Handle CRLF in mingw tool chain
5406 opt_cr=
5407 case $build_os in
5408 mingw*)
5409 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5410 ;;
5411 esac
5413 # If we're using GNU nm, then use its standard symbol codes.
5414 case `$NM -V 2>&1` in
5415 *GNU* | *'with BFD'*)
5416 symcode='[ABCDGIRSTW]' ;;
5417 esac
5419 # Try without a prefix undercore, then with it.
5420 for ac_symprfx in "" "_"; do
5422 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5423 symxfrm="\\1 $ac_symprfx\\2 \\2"
5425 # Write the raw and C identifiers.
5426 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5428 # Check to see that the pipe works correctly.
5429 pipe_works=no
5431 rm -f conftest*
5432 cat > conftest.$ac_ext <<EOF
5433 #ifdef __cplusplus
5434 extern "C" {
5435 #endif
5436 char nm_test_var;
5437 void nm_test_func(){}
5438 #ifdef __cplusplus
5439 }
5440 #endif
5441 int main(){nm_test_var='a';nm_test_func();return(0);}
5442 EOF
5444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5445 (eval $ac_compile) 2>&5
5446 ac_status=$?
5447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448 (exit $ac_status); }; then
5449 # Now try to grab the symbols.
5450 nlist=conftest.nm
5451 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5452 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5453 ac_status=$?
5454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455 (exit $ac_status); } && test -s "$nlist"; then
5456 # Try sorting and uniquifying the output.
5457 if sort "$nlist" | uniq > "$nlist"T; then
5458 mv -f "$nlist"T "$nlist"
5459 else
5460 rm -f "$nlist"T
5461 fi
5463 # Make sure that we snagged all the symbols we need.
5464 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5465 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5466 cat <<EOF > conftest.$ac_ext
5467 #ifdef __cplusplus
5468 extern "C" {
5469 #endif
5471 EOF
5472 # Now generate the symbol file.
5473 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5475 cat <<EOF >> conftest.$ac_ext
5476 #if defined (__STDC__) && __STDC__
5477 # define lt_ptr_t void *
5478 #else
5479 # define lt_ptr_t char *
5480 # define const
5481 #endif
5483 /* The mapping between symbol names and symbols. */
5484 const struct {
5485 const char *name;
5486 lt_ptr_t address;
5487 }
5488 lt_preloaded_symbols[] =
5489 {
5490 EOF
5491 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5492 cat <<\EOF >> conftest.$ac_ext
5493 {0, (lt_ptr_t) 0}
5494 };
5496 #ifdef __cplusplus
5497 }
5498 #endif
5499 EOF
5500 # Now try linking the two files.
5501 mv conftest.$ac_objext conftstm.$ac_objext
5502 lt_save_LIBS="$LIBS"
5503 lt_save_CFLAGS="$CFLAGS"
5504 LIBS="conftstm.$ac_objext"
5505 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5507 (eval $ac_link) 2>&5
5508 ac_status=$?
5509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5511 pipe_works=yes
5512 fi
5513 LIBS="$lt_save_LIBS"
5514 CFLAGS="$lt_save_CFLAGS"
5515 else
5516 echo "cannot find nm_test_func in $nlist" >&5
5517 fi
5518 else
5519 echo "cannot find nm_test_var in $nlist" >&5
5520 fi
5521 else
5522 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5523 fi
5524 else
5525 echo "$progname: failed program was:" >&5
5526 cat conftest.$ac_ext >&5
5527 fi
5528 rm -f conftest* conftst*
5530 # Do not use the global_symbol_pipe unless it works.
5531 if test "$pipe_works" = yes; then
5532 break
5533 else
5534 lt_cv_sys_global_symbol_pipe=
5535 fi
5536 done
5538 fi
5540 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5541 lt_cv_sys_global_symbol_to_cdecl=
5542 fi
5543 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5544 echo "$as_me:$LINENO: result: failed" >&5
5545 echo "${ECHO_T}failed" >&6
5546 else
5547 echo "$as_me:$LINENO: result: ok" >&5
5548 echo "${ECHO_T}ok" >&6
5549 fi
5551 echo "$as_me:$LINENO: checking for objdir" >&5
5552 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5553 if test "${lt_cv_objdir+set}" = set; then
5554 echo $ECHO_N "(cached) $ECHO_C" >&6
5555 else
5556 rm -f .libs 2>/dev/null
5557 mkdir .libs 2>/dev/null
5558 if test -d .libs; then
5559 lt_cv_objdir=.libs
5560 else
5561 # MS-DOS does not allow filenames that begin with a dot.
5562 lt_cv_objdir=_libs
5563 fi
5564 rmdir .libs 2>/dev/null
5565 fi
5566 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5567 echo "${ECHO_T}$lt_cv_objdir" >&6
5568 objdir=$lt_cv_objdir
5574 case $host_os in
5575 aix3*)
5576 # AIX sometimes has problems with the GCC collect2 program. For some
5577 # reason, if we set the COLLECT_NAMES environment variable, the problems
5578 # vanish in a puff of smoke.
5579 if test "X${COLLECT_NAMES+set}" != Xset; then
5580 COLLECT_NAMES=
5581 export COLLECT_NAMES
5582 fi
5583 ;;
5584 esac
5586 # Sed substitution that helps us do robust quoting. It backslashifies
5587 # metacharacters that are still active within double-quoted strings.
5588 Xsed='sed -e 1s/^X//'
5589 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5591 # Same as above, but do not quote variable references.
5592 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5594 # Sed substitution to delay expansion of an escaped shell variable in a
5595 # double_quote_subst'ed string.
5596 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5598 # Sed substitution to avoid accidental globbing in evaled expressions
5599 no_glob_subst='s/\*/\\\*/g'
5601 # Constants:
5602 rm="rm -f"
5604 # Global variables:
5605 default_ofile=libtool
5606 can_build_shared=yes
5608 # All known linkers require a `.a' archive for static linking (except MSVC,
5609 # which needs '.lib').
5610 libext=a
5611 ltmain="$ac_aux_dir/ltmain.sh"
5612 ofile="$default_ofile"
5613 with_gnu_ld="$lt_cv_prog_gnu_ld"
5615 if test -n "$ac_tool_prefix"; then
5616 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5617 set dummy ${ac_tool_prefix}ar; ac_word=$2
5618 echo "$as_me:$LINENO: checking for $ac_word" >&5
5619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5620 if test "${ac_cv_prog_AR+set}" = set; then
5621 echo $ECHO_N "(cached) $ECHO_C" >&6
5622 else
5623 if test -n "$AR"; then
5624 ac_cv_prog_AR="$AR" # Let the user override the test.
5625 else
5626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5627 for as_dir in $PATH
5628 do
5629 IFS=$as_save_IFS
5630 test -z "$as_dir" && as_dir=.
5631 for ac_exec_ext in '' $ac_executable_extensions; do
5632 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5633 ac_cv_prog_AR="${ac_tool_prefix}ar"
5634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5635 break 2
5636 fi
5637 done
5638 done
5640 fi
5641 fi
5642 AR=$ac_cv_prog_AR
5643 if test -n "$AR"; then
5644 echo "$as_me:$LINENO: result: $AR" >&5
5645 echo "${ECHO_T}$AR" >&6
5646 else
5647 echo "$as_me:$LINENO: result: no" >&5
5648 echo "${ECHO_T}no" >&6
5649 fi
5651 fi
5652 if test -z "$ac_cv_prog_AR"; then
5653 ac_ct_AR=$AR
5654 # Extract the first word of "ar", so it can be a program name with args.
5655 set dummy ar; ac_word=$2
5656 echo "$as_me:$LINENO: checking for $ac_word" >&5
5657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5658 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5659 echo $ECHO_N "(cached) $ECHO_C" >&6
5660 else
5661 if test -n "$ac_ct_AR"; then
5662 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5663 else
5664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5665 for as_dir in $PATH
5666 do
5667 IFS=$as_save_IFS
5668 test -z "$as_dir" && as_dir=.
5669 for ac_exec_ext in '' $ac_executable_extensions; do
5670 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5671 ac_cv_prog_ac_ct_AR="ar"
5672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5673 break 2
5674 fi
5675 done
5676 done
5678 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5679 fi
5680 fi
5681 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5682 if test -n "$ac_ct_AR"; then
5683 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5684 echo "${ECHO_T}$ac_ct_AR" >&6
5685 else
5686 echo "$as_me:$LINENO: result: no" >&5
5687 echo "${ECHO_T}no" >&6
5688 fi
5690 AR=$ac_ct_AR
5691 else
5692 AR="$ac_cv_prog_AR"
5693 fi
5695 if test -n "$ac_tool_prefix"; then
5696 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5697 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5698 echo "$as_me:$LINENO: checking for $ac_word" >&5
5699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5700 if test "${ac_cv_prog_RANLIB+set}" = set; then
5701 echo $ECHO_N "(cached) $ECHO_C" >&6
5702 else
5703 if test -n "$RANLIB"; then
5704 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5705 else
5706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5707 for as_dir in $PATH
5708 do
5709 IFS=$as_save_IFS
5710 test -z "$as_dir" && as_dir=.
5711 for ac_exec_ext in '' $ac_executable_extensions; do
5712 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5713 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5715 break 2
5716 fi
5717 done
5718 done
5720 fi
5721 fi
5722 RANLIB=$ac_cv_prog_RANLIB
5723 if test -n "$RANLIB"; then
5724 echo "$as_me:$LINENO: result: $RANLIB" >&5
5725 echo "${ECHO_T}$RANLIB" >&6
5726 else
5727 echo "$as_me:$LINENO: result: no" >&5
5728 echo "${ECHO_T}no" >&6
5729 fi
5731 fi
5732 if test -z "$ac_cv_prog_RANLIB"; then
5733 ac_ct_RANLIB=$RANLIB
5734 # Extract the first word of "ranlib", so it can be a program name with args.
5735 set dummy ranlib; ac_word=$2
5736 echo "$as_me:$LINENO: checking for $ac_word" >&5
5737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5738 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5739 echo $ECHO_N "(cached) $ECHO_C" >&6
5740 else
5741 if test -n "$ac_ct_RANLIB"; then
5742 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5743 else
5744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5745 for as_dir in $PATH
5746 do
5747 IFS=$as_save_IFS
5748 test -z "$as_dir" && as_dir=.
5749 for ac_exec_ext in '' $ac_executable_extensions; do
5750 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5751 ac_cv_prog_ac_ct_RANLIB="ranlib"
5752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5753 break 2
5754 fi
5755 done
5756 done
5758 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5759 fi
5760 fi
5761 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5762 if test -n "$ac_ct_RANLIB"; then
5763 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5764 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5765 else
5766 echo "$as_me:$LINENO: result: no" >&5
5767 echo "${ECHO_T}no" >&6
5768 fi
5770 RANLIB=$ac_ct_RANLIB
5771 else
5772 RANLIB="$ac_cv_prog_RANLIB"
5773 fi
5775 if test -n "$ac_tool_prefix"; then
5776 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5777 set dummy ${ac_tool_prefix}strip; ac_word=$2
5778 echo "$as_me:$LINENO: checking for $ac_word" >&5
5779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5780 if test "${ac_cv_prog_STRIP+set}" = set; then
5781 echo $ECHO_N "(cached) $ECHO_C" >&6
5782 else
5783 if test -n "$STRIP"; then
5784 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5785 else
5786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5787 for as_dir in $PATH
5788 do
5789 IFS=$as_save_IFS
5790 test -z "$as_dir" && as_dir=.
5791 for ac_exec_ext in '' $ac_executable_extensions; do
5792 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5793 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5795 break 2
5796 fi
5797 done
5798 done
5800 fi
5801 fi
5802 STRIP=$ac_cv_prog_STRIP
5803 if test -n "$STRIP"; then
5804 echo "$as_me:$LINENO: result: $STRIP" >&5
5805 echo "${ECHO_T}$STRIP" >&6
5806 else
5807 echo "$as_me:$LINENO: result: no" >&5
5808 echo "${ECHO_T}no" >&6
5809 fi
5811 fi
5812 if test -z "$ac_cv_prog_STRIP"; then
5813 ac_ct_STRIP=$STRIP
5814 # Extract the first word of "strip", so it can be a program name with args.
5815 set dummy strip; ac_word=$2
5816 echo "$as_me:$LINENO: checking for $ac_word" >&5
5817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5818 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5819 echo $ECHO_N "(cached) $ECHO_C" >&6
5820 else
5821 if test -n "$ac_ct_STRIP"; then
5822 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5823 else
5824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5825 for as_dir in $PATH
5826 do
5827 IFS=$as_save_IFS
5828 test -z "$as_dir" && as_dir=.
5829 for ac_exec_ext in '' $ac_executable_extensions; do
5830 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5831 ac_cv_prog_ac_ct_STRIP="strip"
5832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5833 break 2
5834 fi
5835 done
5836 done
5838 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5839 fi
5840 fi
5841 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5842 if test -n "$ac_ct_STRIP"; then
5843 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5844 echo "${ECHO_T}$ac_ct_STRIP" >&6
5845 else
5846 echo "$as_me:$LINENO: result: no" >&5
5847 echo "${ECHO_T}no" >&6
5848 fi
5850 STRIP=$ac_ct_STRIP
5851 else
5852 STRIP="$ac_cv_prog_STRIP"
5853 fi
5856 old_CC="$CC"
5857 old_CFLAGS="$CFLAGS"
5859 # Set sane defaults for various variables
5860 test -z "$AR" && AR=ar
5861 test -z "$AR_FLAGS" && AR_FLAGS=cru
5862 test -z "$AS" && AS=as
5863 test -z "$CC" && CC=cc
5864 test -z "$LTCC" && LTCC=$CC
5865 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
5866 test -z "$DLLTOOL" && DLLTOOL=dlltool
5867 test -z "$LD" && LD=ld
5868 test -z "$LN_S" && LN_S="ln -s"
5869 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5870 test -z "$NM" && NM=nm
5871 test -z "$SED" && SED=sed
5872 test -z "$OBJDUMP" && OBJDUMP=objdump
5873 test -z "$RANLIB" && RANLIB=:
5874 test -z "$STRIP" && STRIP=:
5875 test -z "$ac_objext" && ac_objext=o
5877 # Determine commands to create old-style static archives.
5878 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5879 old_postinstall_cmds='chmod 644 $oldlib'
5880 old_postuninstall_cmds=
5882 if test -n "$RANLIB"; then
5883 case $host_os in
5884 openbsd*)
5885 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5886 ;;
5887 *)
5888 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5889 ;;
5890 esac
5891 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5892 fi
5894 for cc_temp in $compiler""; do
5895 case $cc_temp in
5896 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5897 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5898 \-*) ;;
5899 *) break;;
5900 esac
5901 done
5902 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
5905 # Only perform the check for file, if the check method requires it
5906 case $deplibs_check_method in
5907 file_magic*)
5908 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5909 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5910 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5911 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5912 echo $ECHO_N "(cached) $ECHO_C" >&6
5913 else
5914 case $MAGIC_CMD in
5915 [\\/*] | ?:[\\/]*)
5916 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5917 ;;
5918 *)
5919 lt_save_MAGIC_CMD="$MAGIC_CMD"
5920 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5921 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5922 for ac_dir in $ac_dummy; do
5923 IFS="$lt_save_ifs"
5924 test -z "$ac_dir" && ac_dir=.
5925 if test -f $ac_dir/${ac_tool_prefix}file; then
5926 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5927 if test -n "$file_magic_test_file"; then
5928 case $deplibs_check_method in
5929 "file_magic "*)
5930 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5931 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5932 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5933 $EGREP "$file_magic_regex" > /dev/null; then
5934 :
5935 else
5936 cat <<EOF 1>&2
5938 *** Warning: the command libtool uses to detect shared libraries,
5939 *** $file_magic_cmd, produces output that libtool cannot recognize.
5940 *** The result is that libtool may fail to recognize shared libraries
5941 *** as such. This will affect the creation of libtool libraries that
5942 *** depend on shared libraries, but programs linked with such libtool
5943 *** libraries will work regardless of this problem. Nevertheless, you
5944 *** may want to report the problem to your system manager and/or to
5945 *** bug-libtool@gnu.org
5947 EOF
5948 fi ;;
5949 esac
5950 fi
5951 break
5952 fi
5953 done
5954 IFS="$lt_save_ifs"
5955 MAGIC_CMD="$lt_save_MAGIC_CMD"
5956 ;;
5957 esac
5958 fi
5960 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5961 if test -n "$MAGIC_CMD"; then
5962 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5963 echo "${ECHO_T}$MAGIC_CMD" >&6
5964 else
5965 echo "$as_me:$LINENO: result: no" >&5
5966 echo "${ECHO_T}no" >&6
5967 fi
5969 if test -z "$lt_cv_path_MAGIC_CMD"; then
5970 if test -n "$ac_tool_prefix"; then
5971 echo "$as_me:$LINENO: checking for file" >&5
5972 echo $ECHO_N "checking for file... $ECHO_C" >&6
5973 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5974 echo $ECHO_N "(cached) $ECHO_C" >&6
5975 else
5976 case $MAGIC_CMD in
5977 [\\/*] | ?:[\\/]*)
5978 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5979 ;;
5980 *)
5981 lt_save_MAGIC_CMD="$MAGIC_CMD"
5982 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5983 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5984 for ac_dir in $ac_dummy; do
5985 IFS="$lt_save_ifs"
5986 test -z "$ac_dir" && ac_dir=.
5987 if test -f $ac_dir/file; then
5988 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5989 if test -n "$file_magic_test_file"; then
5990 case $deplibs_check_method in
5991 "file_magic "*)
5992 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5993 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5994 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5995 $EGREP "$file_magic_regex" > /dev/null; then
5996 :
5997 else
5998 cat <<EOF 1>&2
6000 *** Warning: the command libtool uses to detect shared libraries,
6001 *** $file_magic_cmd, produces output that libtool cannot recognize.
6002 *** The result is that libtool may fail to recognize shared libraries
6003 *** as such. This will affect the creation of libtool libraries that
6004 *** depend on shared libraries, but programs linked with such libtool
6005 *** libraries will work regardless of this problem. Nevertheless, you
6006 *** may want to report the problem to your system manager and/or to
6007 *** bug-libtool@gnu.org
6009 EOF
6010 fi ;;
6011 esac
6012 fi
6013 break
6014 fi
6015 done
6016 IFS="$lt_save_ifs"
6017 MAGIC_CMD="$lt_save_MAGIC_CMD"
6018 ;;
6019 esac
6020 fi
6022 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6023 if test -n "$MAGIC_CMD"; then
6024 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6025 echo "${ECHO_T}$MAGIC_CMD" >&6
6026 else
6027 echo "$as_me:$LINENO: result: no" >&5
6028 echo "${ECHO_T}no" >&6
6029 fi
6031 else
6032 MAGIC_CMD=:
6033 fi
6034 fi
6036 fi
6037 ;;
6038 esac
6040 enable_dlopen=no
6041 enable_win32_dll=no
6043 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6044 if test "${enable_libtool_lock+set}" = set; then
6045 enableval="$enable_libtool_lock"
6047 fi;
6048 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6051 # Check whether --with-pic or --without-pic was given.
6052 if test "${with_pic+set}" = set; then
6053 withval="$with_pic"
6054 pic_mode="$withval"
6055 else
6056 pic_mode=default
6057 fi;
6058 test -z "$pic_mode" && pic_mode=default
6060 # Use C for the default configuration in the libtool script
6061 tagname=
6062 lt_save_CC="$CC"
6063 ac_ext=c
6064 ac_cpp='$CPP $CPPFLAGS'
6065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6070 # Source file extension for C test sources.
6071 ac_ext=c
6073 # Object file extension for compiled C test sources.
6074 objext=o
6075 objext=$objext
6077 # Code to be used in simple compile tests
6078 lt_simple_compile_test_code="int some_variable = 0;\n"
6080 # Code to be used in simple link tests
6081 lt_simple_link_test_code='int main(){return(0);}\n'
6084 # If no C compiler was specified, use CC.
6085 LTCC=${LTCC-"$CC"}
6087 # If no C compiler flags were specified, use CFLAGS.
6088 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6090 # Allow CC to be a program name with arguments.
6091 compiler=$CC
6094 # save warnings/boilerplate of simple test code
6095 ac_outfile=conftest.$ac_objext
6096 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6097 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6098 _lt_compiler_boilerplate=`cat conftest.err`
6099 $rm conftest*
6101 ac_outfile=conftest.$ac_objext
6102 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6103 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6104 _lt_linker_boilerplate=`cat conftest.err`
6105 $rm conftest*
6109 lt_prog_compiler_no_builtin_flag=
6111 if test "$GCC" = yes; then
6112 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6115 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6116 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6117 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6118 echo $ECHO_N "(cached) $ECHO_C" >&6
6119 else
6120 lt_cv_prog_compiler_rtti_exceptions=no
6121 ac_outfile=conftest.$ac_objext
6122 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6123 lt_compiler_flag="-fno-rtti -fno-exceptions"
6124 # Insert the option either (1) after the last *FLAGS variable, or
6125 # (2) before a word containing "conftest.", or (3) at the end.
6126 # Note that $ac_compile itself does not contain backslashes and begins
6127 # with a dollar sign (not a hyphen), so the echo should work correctly.
6128 # The option is referenced via a variable to avoid confusing sed.
6129 lt_compile=`echo "$ac_compile" | $SED \
6130 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6131 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6132 -e 's:$: $lt_compiler_flag:'`
6133 (eval echo "\"\$as_me:6133: $lt_compile\"" >&5)
6134 (eval "$lt_compile" 2>conftest.err)
6135 ac_status=$?
6136 cat conftest.err >&5
6137 echo "$as_me:6137: \$? = $ac_status" >&5
6138 if (exit $ac_status) && test -s "$ac_outfile"; then
6139 # The compiler can only warn and ignore the option if not recognized
6140 # So say no if there are warnings other than the usual output.
6141 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6142 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6143 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6144 lt_cv_prog_compiler_rtti_exceptions=yes
6145 fi
6146 fi
6147 $rm conftest*
6149 fi
6150 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6151 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6153 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6154 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6155 else
6156 :
6157 fi
6159 fi
6161 lt_prog_compiler_wl=
6162 lt_prog_compiler_pic=
6163 lt_prog_compiler_static=
6165 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6166 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6168 if test "$GCC" = yes; then
6169 lt_prog_compiler_wl='-Wl,'
6170 lt_prog_compiler_static='-static'
6172 case $host_os in
6173 aix*)
6174 # All AIX code is PIC.
6175 if test "$host_cpu" = ia64; then
6176 # AIX 5 now supports IA64 processor
6177 lt_prog_compiler_static='-Bstatic'
6178 fi
6179 ;;
6181 amigaos*)
6182 # FIXME: we need at least 68020 code to build shared libraries, but
6183 # adding the `-m68020' flag to GCC prevents building anything better,
6184 # like `-m68040'.
6185 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6186 ;;
6188 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6189 # PIC is the default for these OSes.
6190 ;;
6192 mingw* | pw32* | os2*)
6193 # This hack is so that the source file can tell whether it is being
6194 # built for inclusion in a dll (and should export symbols for example).
6195 lt_prog_compiler_pic='-DDLL_EXPORT'
6196 ;;
6198 darwin* | rhapsody*)
6199 # PIC is the default on this platform
6200 # Common symbols not allowed in MH_DYLIB files
6201 lt_prog_compiler_pic='-fno-common'
6202 ;;
6204 interix3*)
6205 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6206 # Instead, we relocate shared libraries at runtime.
6207 ;;
6209 msdosdjgpp*)
6210 # Just because we use GCC doesn't mean we suddenly get shared libraries
6211 # on systems that don't support them.
6212 lt_prog_compiler_can_build_shared=no
6213 enable_shared=no
6214 ;;
6216 sysv4*MP*)
6217 if test -d /usr/nec; then
6218 lt_prog_compiler_pic=-Kconform_pic
6219 fi
6220 ;;
6222 hpux*)
6223 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6224 # not for PA HP-UX.
6225 case $host_cpu in
6226 hppa*64*|ia64*)
6227 # +Z the default
6228 ;;
6229 *)
6230 lt_prog_compiler_pic='-fPIC'
6231 ;;
6232 esac
6233 ;;
6235 *)
6236 lt_prog_compiler_pic='-fPIC'
6237 ;;
6238 esac
6239 else
6240 # PORTME Check for flag to pass linker flags through the system compiler.
6241 case $host_os in
6242 aix*)
6243 lt_prog_compiler_wl='-Wl,'
6244 if test "$host_cpu" = ia64; then
6245 # AIX 5 now supports IA64 processor
6246 lt_prog_compiler_static='-Bstatic'
6247 else
6248 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6249 fi
6250 ;;
6251 darwin*)
6252 # PIC is the default on this platform
6253 # Common symbols not allowed in MH_DYLIB files
6254 case $cc_basename in
6255 xlc*)
6256 lt_prog_compiler_pic='-qnocommon'
6257 lt_prog_compiler_wl='-Wl,'
6258 ;;
6259 esac
6260 ;;
6262 mingw* | pw32* | os2*)
6263 # This hack is so that the source file can tell whether it is being
6264 # built for inclusion in a dll (and should export symbols for example).
6265 lt_prog_compiler_pic='-DDLL_EXPORT'
6266 ;;
6268 hpux9* | hpux10* | hpux11*)
6269 lt_prog_compiler_wl='-Wl,'
6270 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6271 # not for PA HP-UX.
6272 case $host_cpu in
6273 hppa*64*|ia64*)
6274 # +Z the default
6275 ;;
6276 *)
6277 lt_prog_compiler_pic='+Z'
6278 ;;
6279 esac
6280 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6281 lt_prog_compiler_static='${wl}-a ${wl}archive'
6282 ;;
6284 irix5* | irix6* | nonstopux*)
6285 lt_prog_compiler_wl='-Wl,'
6286 # PIC (with -KPIC) is the default.
6287 lt_prog_compiler_static='-non_shared'
6288 ;;
6290 newsos6)
6291 lt_prog_compiler_pic='-KPIC'
6292 lt_prog_compiler_static='-Bstatic'
6293 ;;
6295 linux*)
6296 case $cc_basename in
6297 icc* | ecc*)
6298 lt_prog_compiler_wl='-Wl,'
6299 lt_prog_compiler_pic='-KPIC'
6300 lt_prog_compiler_static='-static'
6301 ;;
6302 pgcc* | pgf77* | pgf90* | pgf95*)
6303 # Portland Group compilers (*not* the Pentium gcc compiler,
6304 # which looks to be a dead project)
6305 lt_prog_compiler_wl='-Wl,'
6306 lt_prog_compiler_pic='-fpic'
6307 lt_prog_compiler_static='-Bstatic'
6308 ;;
6309 ccc*)
6310 lt_prog_compiler_wl='-Wl,'
6311 # All Alpha code is PIC.
6312 lt_prog_compiler_static='-non_shared'
6313 ;;
6314 esac
6315 ;;
6317 osf3* | osf4* | osf5*)
6318 lt_prog_compiler_wl='-Wl,'
6319 # All OSF/1 code is PIC.
6320 lt_prog_compiler_static='-non_shared'
6321 ;;
6323 solaris*)
6324 lt_prog_compiler_pic='-KPIC'
6325 lt_prog_compiler_static='-Bstatic'
6326 case $cc_basename in
6327 f77* | f90* | f95*)
6328 lt_prog_compiler_wl='-Qoption ld ';;
6329 *)
6330 lt_prog_compiler_wl='-Wl,';;
6331 esac
6332 ;;
6334 sunos4*)
6335 lt_prog_compiler_wl='-Qoption ld '
6336 lt_prog_compiler_pic='-PIC'
6337 lt_prog_compiler_static='-Bstatic'
6338 ;;
6340 sysv4 | sysv4.2uw2* | sysv4.3*)
6341 lt_prog_compiler_wl='-Wl,'
6342 lt_prog_compiler_pic='-KPIC'
6343 lt_prog_compiler_static='-Bstatic'
6344 ;;
6346 sysv4*MP*)
6347 if test -d /usr/nec ;then
6348 lt_prog_compiler_pic='-Kconform_pic'
6349 lt_prog_compiler_static='-Bstatic'
6350 fi
6351 ;;
6353 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6354 lt_prog_compiler_wl='-Wl,'
6355 lt_prog_compiler_pic='-KPIC'
6356 lt_prog_compiler_static='-Bstatic'
6357 ;;
6359 unicos*)
6360 lt_prog_compiler_wl='-Wl,'
6361 lt_prog_compiler_can_build_shared=no
6362 ;;
6364 uts4*)
6365 lt_prog_compiler_pic='-pic'
6366 lt_prog_compiler_static='-Bstatic'
6367 ;;
6369 *)
6370 lt_prog_compiler_can_build_shared=no
6371 ;;
6372 esac
6373 fi
6375 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6376 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6378 #
6379 # Check to make sure the PIC flag actually works.
6380 #
6381 if test -n "$lt_prog_compiler_pic"; then
6383 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6384 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6385 if test "${lt_prog_compiler_pic_works+set}" = set; then
6386 echo $ECHO_N "(cached) $ECHO_C" >&6
6387 else
6388 lt_prog_compiler_pic_works=no
6389 ac_outfile=conftest.$ac_objext
6390 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6391 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6392 # Insert the option either (1) after the last *FLAGS variable, or
6393 # (2) before a word containing "conftest.", or (3) at the end.
6394 # Note that $ac_compile itself does not contain backslashes and begins
6395 # with a dollar sign (not a hyphen), so the echo should work correctly.
6396 # The option is referenced via a variable to avoid confusing sed.
6397 lt_compile=`echo "$ac_compile" | $SED \
6398 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6399 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6400 -e 's:$: $lt_compiler_flag:'`
6401 (eval echo "\"\$as_me:6401: $lt_compile\"" >&5)
6402 (eval "$lt_compile" 2>conftest.err)
6403 ac_status=$?
6404 cat conftest.err >&5
6405 echo "$as_me:6405: \$? = $ac_status" >&5
6406 if (exit $ac_status) && test -s "$ac_outfile"; then
6407 # The compiler can only warn and ignore the option if not recognized
6408 # So say no if there are warnings other than the usual output.
6409 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6410 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6411 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6412 lt_prog_compiler_pic_works=yes
6413 fi
6414 fi
6415 $rm conftest*
6417 fi
6418 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6419 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6421 if test x"$lt_prog_compiler_pic_works" = xyes; then
6422 case $lt_prog_compiler_pic in
6423 "" | " "*) ;;
6424 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6425 esac
6426 else
6427 lt_prog_compiler_pic=
6428 lt_prog_compiler_can_build_shared=no
6429 fi
6431 fi
6432 case $host_os in
6433 # For platforms which do not support PIC, -DPIC is meaningless:
6434 *djgpp*)
6435 lt_prog_compiler_pic=
6436 ;;
6437 *)
6438 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6439 ;;
6440 esac
6442 #
6443 # Check to make sure the static flag actually works.
6444 #
6445 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6446 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6447 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6448 if test "${lt_prog_compiler_static_works+set}" = set; then
6449 echo $ECHO_N "(cached) $ECHO_C" >&6
6450 else
6451 lt_prog_compiler_static_works=no
6452 save_LDFLAGS="$LDFLAGS"
6453 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6454 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6455 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6456 # The linker can only warn and ignore the option if not recognized
6457 # So say no if there are warnings
6458 if test -s conftest.err; then
6459 # Append any errors to the config.log.
6460 cat conftest.err 1>&5
6461 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6462 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6463 if diff conftest.exp conftest.er2 >/dev/null; then
6464 lt_prog_compiler_static_works=yes
6465 fi
6466 else
6467 lt_prog_compiler_static_works=yes
6468 fi
6469 fi
6470 $rm conftest*
6471 LDFLAGS="$save_LDFLAGS"
6473 fi
6474 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6475 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6477 if test x"$lt_prog_compiler_static_works" = xyes; then
6478 :
6479 else
6480 lt_prog_compiler_static=
6481 fi
6484 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6485 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6486 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6487 echo $ECHO_N "(cached) $ECHO_C" >&6
6488 else
6489 lt_cv_prog_compiler_c_o=no
6490 $rm -r conftest 2>/dev/null
6491 mkdir conftest
6492 cd conftest
6493 mkdir out
6494 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6496 lt_compiler_flag="-o out/conftest2.$ac_objext"
6497 # Insert the option either (1) after the last *FLAGS variable, or
6498 # (2) before a word containing "conftest.", or (3) at the end.
6499 # Note that $ac_compile itself does not contain backslashes and begins
6500 # with a dollar sign (not a hyphen), so the echo should work correctly.
6501 lt_compile=`echo "$ac_compile" | $SED \
6502 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6503 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6504 -e 's:$: $lt_compiler_flag:'`
6505 (eval echo "\"\$as_me:6505: $lt_compile\"" >&5)
6506 (eval "$lt_compile" 2>out/conftest.err)
6507 ac_status=$?
6508 cat out/conftest.err >&5
6509 echo "$as_me:6509: \$? = $ac_status" >&5
6510 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6511 then
6512 # The compiler can only warn and ignore the option if not recognized
6513 # So say no if there are warnings
6514 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6515 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6516 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6517 lt_cv_prog_compiler_c_o=yes
6518 fi
6519 fi
6520 chmod u+w . 2>&5
6521 $rm conftest*
6522 # SGI C++ compiler will create directory out/ii_files/ for
6523 # template instantiation
6524 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6525 $rm out/* && rmdir out
6526 cd ..
6527 rmdir conftest
6528 $rm conftest*
6530 fi
6531 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6532 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6535 hard_links="nottested"
6536 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6537 # do not overwrite the value of need_locks provided by the user
6538 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6539 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6540 hard_links=yes
6541 $rm conftest*
6542 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6543 touch conftest.a
6544 ln conftest.a conftest.b 2>&5 || hard_links=no
6545 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6546 echo "$as_me:$LINENO: result: $hard_links" >&5
6547 echo "${ECHO_T}$hard_links" >&6
6548 if test "$hard_links" = no; then
6549 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6550 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6551 need_locks=warn
6552 fi
6553 else
6554 need_locks=no
6555 fi
6557 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6558 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6560 runpath_var=
6561 allow_undefined_flag=
6562 enable_shared_with_static_runtimes=no
6563 archive_cmds=
6564 archive_expsym_cmds=
6565 old_archive_From_new_cmds=
6566 old_archive_from_expsyms_cmds=
6567 export_dynamic_flag_spec=
6568 whole_archive_flag_spec=
6569 thread_safe_flag_spec=
6570 hardcode_libdir_flag_spec=
6571 hardcode_libdir_flag_spec_ld=
6572 hardcode_libdir_separator=
6573 hardcode_direct=no
6574 hardcode_minus_L=no
6575 hardcode_shlibpath_var=unsupported
6576 link_all_deplibs=unknown
6577 hardcode_automatic=no
6578 module_cmds=
6579 module_expsym_cmds=
6580 always_export_symbols=no
6581 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6582 # include_expsyms should be a list of space-separated symbols to be *always*
6583 # included in the symbol list
6584 include_expsyms=
6585 # exclude_expsyms can be an extended regexp of symbols to exclude
6586 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6587 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6588 # as well as any symbol that contains `d'.
6589 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6590 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6591 # platforms (ab)use it in PIC code, but their linkers get confused if
6592 # the symbol is explicitly referenced. Since portable code cannot
6593 # rely on this symbol name, it's probably fine to never include it in
6594 # preloaded symbol tables.
6595 extract_expsyms_cmds=
6596 # Just being paranoid about ensuring that cc_basename is set.
6597 for cc_temp in $compiler""; do
6598 case $cc_temp in
6599 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6600 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6601 \-*) ;;
6602 *) break;;
6603 esac
6604 done
6605 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6607 case $host_os in
6608 cygwin* | mingw* | pw32*)
6609 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6610 # When not using gcc, we currently assume that we are using
6611 # Microsoft Visual C++.
6612 if test "$GCC" != yes; then
6613 with_gnu_ld=no
6614 fi
6615 ;;
6616 interix*)
6617 # we just hope/assume this is gcc and not c89 (= MSVC++)
6618 with_gnu_ld=yes
6619 ;;
6620 openbsd*)
6621 with_gnu_ld=no
6622 ;;
6623 esac
6625 ld_shlibs=yes
6626 if test "$with_gnu_ld" = yes; then
6627 # If archive_cmds runs LD, not CC, wlarc should be empty
6628 wlarc='${wl}'
6630 # Set some defaults for GNU ld with shared library support. These
6631 # are reset later if shared libraries are not supported. Putting them
6632 # here allows them to be overridden if necessary.
6633 runpath_var=LD_RUN_PATH
6634 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6635 export_dynamic_flag_spec='${wl}--export-dynamic'
6636 # ancient GNU ld didn't support --whole-archive et. al.
6637 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6638 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6639 else
6640 whole_archive_flag_spec=
6641 fi
6642 supports_anon_versioning=no
6643 case `$LD -v 2>/dev/null` in
6644 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6645 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6646 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6647 *\ 2.11.*) ;; # other 2.11 versions
6648 *) supports_anon_versioning=yes ;;
6649 esac
6651 # See if GNU ld supports shared libraries.
6652 case $host_os in
6653 aix3* | aix4* | aix5*)
6654 # On AIX/PPC, the GNU linker is very broken
6655 if test "$host_cpu" != ia64; then
6656 ld_shlibs=no
6657 cat <<EOF 1>&2
6659 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6660 *** to be unable to reliably create shared libraries on AIX.
6661 *** Therefore, libtool is disabling shared libraries support. If you
6662 *** really care for shared libraries, you may want to modify your PATH
6663 *** so that a non-GNU linker is found, and then restart.
6665 EOF
6666 fi
6667 ;;
6669 amigaos*)
6670 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)'
6671 hardcode_libdir_flag_spec='-L$libdir'
6672 hardcode_minus_L=yes
6674 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6675 # that the semantics of dynamic libraries on AmigaOS, at least up
6676 # to version 4, is to share data among multiple programs linked
6677 # with the same dynamic library. Since this doesn't match the
6678 # behavior of shared libraries on other platforms, we can't use
6679 # them.
6680 ld_shlibs=no
6681 ;;
6683 beos*)
6684 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6685 allow_undefined_flag=unsupported
6686 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6687 # support --undefined. This deserves some investigation. FIXME
6688 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6689 else
6690 ld_shlibs=no
6691 fi
6692 ;;
6694 cygwin* | mingw* | pw32*)
6695 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6696 # as there is no search path for DLLs.
6697 hardcode_libdir_flag_spec='-L$libdir'
6698 allow_undefined_flag=unsupported
6699 always_export_symbols=no
6700 enable_shared_with_static_runtimes=yes
6701 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6703 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6704 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6705 # If the export-symbols file already is a .def file (1st line
6706 # is EXPORTS), use it as is; otherwise, prepend...
6707 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6708 cp $export_symbols $output_objdir/$soname.def;
6709 else
6710 echo EXPORTS > $output_objdir/$soname.def;
6711 cat $export_symbols >> $output_objdir/$soname.def;
6712 fi~
6713 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6714 else
6715 ld_shlibs=no
6716 fi
6717 ;;
6719 interix3*)
6720 hardcode_direct=no
6721 hardcode_shlibpath_var=no
6722 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6723 export_dynamic_flag_spec='${wl}-E'
6724 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6725 # Instead, shared libraries are loaded at an image base (0x10000000 by
6726 # default) and relocated if they conflict, which is a slow very memory
6727 # consuming and fragmenting process. To avoid this, we pick a random,
6728 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6729 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6730 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6731 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6732 ;;
6734 linux*)
6735 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6736 tmp_addflag=
6737 case $cc_basename,$host_cpu in
6738 pgcc*) # Portland Group C compiler
6739 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6740 tmp_addflag=' $pic_flag'
6741 ;;
6742 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
6743 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6744 tmp_addflag=' $pic_flag -Mnomain' ;;
6745 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6746 tmp_addflag=' -i_dynamic' ;;
6747 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6748 tmp_addflag=' -i_dynamic -nofor_main' ;;
6749 ifc* | ifort*) # Intel Fortran compiler
6750 tmp_addflag=' -nofor_main' ;;
6751 esac
6752 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6754 if test $supports_anon_versioning = yes; then
6755 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6756 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6757 $echo "local: *; };" >> $output_objdir/$libname.ver~
6758 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6759 fi
6760 else
6761 ld_shlibs=no
6762 fi
6763 ;;
6765 netbsd*)
6766 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6767 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6768 wlarc=
6769 else
6770 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6771 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6772 fi
6773 ;;
6775 solaris*)
6776 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6777 ld_shlibs=no
6778 cat <<EOF 1>&2
6780 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6781 *** create shared libraries on Solaris systems. Therefore, libtool
6782 *** is disabling shared libraries support. We urge you to upgrade GNU
6783 *** binutils to release 2.9.1 or newer. Another option is to modify
6784 *** your PATH or compiler configuration so that the native linker is
6785 *** used, and then restart.
6787 EOF
6788 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6789 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6790 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6791 else
6792 ld_shlibs=no
6793 fi
6794 ;;
6796 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6797 case `$LD -v 2>&1` in
6798 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
6799 ld_shlibs=no
6800 cat <<_LT_EOF 1>&2
6802 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6803 *** reliably create shared libraries on SCO systems. Therefore, libtool
6804 *** is disabling shared libraries support. We urge you to upgrade GNU
6805 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
6806 *** your PATH or compiler configuration so that the native linker is
6807 *** used, and then restart.
6809 _LT_EOF
6810 ;;
6811 *)
6812 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6813 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
6814 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
6815 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
6816 else
6817 ld_shlibs=no
6818 fi
6819 ;;
6820 esac
6821 ;;
6823 sunos4*)
6824 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6825 wlarc=
6826 hardcode_direct=yes
6827 hardcode_shlibpath_var=no
6828 ;;
6830 *)
6831 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6832 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6833 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6834 else
6835 ld_shlibs=no
6836 fi
6837 ;;
6838 esac
6840 if test "$ld_shlibs" = no; then
6841 runpath_var=
6842 hardcode_libdir_flag_spec=
6843 export_dynamic_flag_spec=
6844 whole_archive_flag_spec=
6845 fi
6846 else
6847 # PORTME fill in a description of your system's linker (not GNU ld)
6848 case $host_os in
6849 aix3*)
6850 allow_undefined_flag=unsupported
6851 always_export_symbols=yes
6852 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'
6853 # Note: this linker hardcodes the directories in LIBPATH if there
6854 # are no directories specified by -L.
6855 hardcode_minus_L=yes
6856 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
6857 # Neither direct hardcoding nor static linking is supported with a
6858 # broken collect2.
6859 hardcode_direct=unsupported
6860 fi
6861 ;;
6863 aix4* | aix5*)
6864 if test "$host_cpu" = ia64; then
6865 # On IA64, the linker does run time linking by default, so we don't
6866 # have to do anything special.
6867 aix_use_runtimelinking=no
6868 exp_sym_flag='-Bexport'
6869 no_entry_flag=""
6870 else
6871 # If we're using GNU nm, then we don't want the "-C" option.
6872 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6873 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6874 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'
6875 else
6876 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'
6877 fi
6878 aix_use_runtimelinking=no
6880 # Test if we are trying to use run time linking or normal
6881 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6882 # need to do runtime linking.
6883 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6884 for ld_flag in $LDFLAGS; do
6885 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6886 aix_use_runtimelinking=yes
6887 break
6888 fi
6889 done
6890 ;;
6891 esac
6893 exp_sym_flag='-bexport'
6894 no_entry_flag='-bnoentry'
6895 fi
6897 # When large executables or shared objects are built, AIX ld can
6898 # have problems creating the table of contents. If linking a library
6899 # or program results in "error TOC overflow" add -mminimal-toc to
6900 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6901 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6903 archive_cmds=''
6904 hardcode_direct=yes
6905 hardcode_libdir_separator=':'
6906 link_all_deplibs=yes
6908 if test "$GCC" = yes; then
6909 case $host_os in aix4.[012]|aix4.[012].*)
6910 # We only want to do this on AIX 4.2 and lower, the check
6911 # below for broken collect2 doesn't work under 4.3+
6912 collect2name=`${CC} -print-prog-name=collect2`
6913 if test -f "$collect2name" && \
6914 strings "$collect2name" | grep resolve_lib_name >/dev/null
6915 then
6916 # We have reworked collect2
6917 hardcode_direct=yes
6918 else
6919 # We have old collect2
6920 hardcode_direct=unsupported
6921 # It fails to find uninstalled libraries when the uninstalled
6922 # path is not listed in the libpath. Setting hardcode_minus_L
6923 # to unsupported forces relinking
6924 hardcode_minus_L=yes
6925 hardcode_libdir_flag_spec='-L$libdir'
6926 hardcode_libdir_separator=
6927 fi
6928 ;;
6929 esac
6930 shared_flag='-shared'
6931 if test "$aix_use_runtimelinking" = yes; then
6932 shared_flag="$shared_flag "'${wl}-G'
6933 fi
6934 else
6935 # not using gcc
6936 if test "$host_cpu" = ia64; then
6937 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6938 # chokes on -Wl,-G. The following line is correct:
6939 shared_flag='-G'
6940 else
6941 if test "$aix_use_runtimelinking" = yes; then
6942 shared_flag='${wl}-G'
6943 else
6944 shared_flag='${wl}-bM:SRE'
6945 fi
6946 fi
6947 fi
6949 # It seems that -bexpall does not export symbols beginning with
6950 # underscore (_), so it is better to generate a list of symbols to export.
6951 always_export_symbols=yes
6952 if test "$aix_use_runtimelinking" = yes; then
6953 # Warning - without using the other runtime loading flags (-brtl),
6954 # -berok will link without error, but may produce a broken library.
6955 allow_undefined_flag='-berok'
6956 # Determine the default libpath from the value encoded in an empty executable.
6957 cat >conftest.$ac_ext <<_ACEOF
6958 /* confdefs.h. */
6959 _ACEOF
6960 cat confdefs.h >>conftest.$ac_ext
6961 cat >>conftest.$ac_ext <<_ACEOF
6962 /* end confdefs.h. */
6964 int
6965 main ()
6966 {
6968 ;
6969 return 0;
6970 }
6971 _ACEOF
6972 rm -f conftest.$ac_objext conftest$ac_exeext
6973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6974 (eval $ac_link) 2>conftest.er1
6975 ac_status=$?
6976 grep -v '^ *+' conftest.er1 >conftest.err
6977 rm -f conftest.er1
6978 cat conftest.err >&5
6979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6980 (exit $ac_status); } &&
6981 { ac_try='test -z "$ac_c_werror_flag"
6982 || test ! -s conftest.err'
6983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6984 (eval $ac_try) 2>&5
6985 ac_status=$?
6986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6987 (exit $ac_status); }; } &&
6988 { ac_try='test -s conftest$ac_exeext'
6989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6990 (eval $ac_try) 2>&5
6991 ac_status=$?
6992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993 (exit $ac_status); }; }; then
6995 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6996 }'`
6997 # Check for a 64-bit object if we didn't find anything.
6998 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; }
6999 }'`; fi
7000 else
7001 echo "$as_me: failed program was:" >&5
7002 sed 's/^/| /' conftest.$ac_ext >&5
7004 fi
7005 rm -f conftest.err conftest.$ac_objext \
7006 conftest$ac_exeext conftest.$ac_ext
7007 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7009 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7010 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7011 else
7012 if test "$host_cpu" = ia64; then
7013 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7014 allow_undefined_flag="-z nodefs"
7015 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7016 else
7017 # Determine the default libpath from the value encoded in an empty executable.
7018 cat >conftest.$ac_ext <<_ACEOF
7019 /* confdefs.h. */
7020 _ACEOF
7021 cat confdefs.h >>conftest.$ac_ext
7022 cat >>conftest.$ac_ext <<_ACEOF
7023 /* end confdefs.h. */
7025 int
7026 main ()
7027 {
7029 ;
7030 return 0;
7031 }
7032 _ACEOF
7033 rm -f conftest.$ac_objext conftest$ac_exeext
7034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7035 (eval $ac_link) 2>conftest.er1
7036 ac_status=$?
7037 grep -v '^ *+' conftest.er1 >conftest.err
7038 rm -f conftest.er1
7039 cat conftest.err >&5
7040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7041 (exit $ac_status); } &&
7042 { ac_try='test -z "$ac_c_werror_flag"
7043 || test ! -s conftest.err'
7044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7045 (eval $ac_try) 2>&5
7046 ac_status=$?
7047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7048 (exit $ac_status); }; } &&
7049 { ac_try='test -s conftest$ac_exeext'
7050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7051 (eval $ac_try) 2>&5
7052 ac_status=$?
7053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054 (exit $ac_status); }; }; then
7056 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7057 }'`
7058 # Check for a 64-bit object if we didn't find anything.
7059 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; }
7060 }'`; fi
7061 else
7062 echo "$as_me: failed program was:" >&5
7063 sed 's/^/| /' conftest.$ac_ext >&5
7065 fi
7066 rm -f conftest.err conftest.$ac_objext \
7067 conftest$ac_exeext conftest.$ac_ext
7068 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7070 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7071 # Warning - without using the other run time loading flags,
7072 # -berok will link without error, but may produce a broken library.
7073 no_undefined_flag=' ${wl}-bernotok'
7074 allow_undefined_flag=' ${wl}-berok'
7075 # Exported symbols can be pulled into shared objects from archives
7076 whole_archive_flag_spec='$convenience'
7077 archive_cmds_need_lc=yes
7078 # This is similar to how AIX traditionally builds its shared libraries.
7079 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7080 fi
7081 fi
7082 ;;
7084 amigaos*)
7085 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)'
7086 hardcode_libdir_flag_spec='-L$libdir'
7087 hardcode_minus_L=yes
7088 # see comment about different semantics on the GNU ld section
7089 ld_shlibs=no
7090 ;;
7092 bsdi[45]*)
7093 export_dynamic_flag_spec=-rdynamic
7094 ;;
7096 cygwin* | mingw* | pw32*)
7097 # When not using gcc, we currently assume that we are using
7098 # Microsoft Visual C++.
7099 # hardcode_libdir_flag_spec is actually meaningless, as there is
7100 # no search path for DLLs.
7101 hardcode_libdir_flag_spec=' '
7102 allow_undefined_flag=unsupported
7103 # Tell ltmain to make .lib files, not .a files.
7104 libext=lib
7105 # Tell ltmain to make .dll files, not .so files.
7106 shrext_cmds=".dll"
7107 # FIXME: Setting linknames here is a bad hack.
7108 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7109 # The linker will automatically build a .lib file if we build a DLL.
7110 old_archive_From_new_cmds='true'
7111 # FIXME: Should let the user specify the lib program.
7112 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7113 fix_srcfile_path='`cygpath -w "$srcfile"`'
7114 enable_shared_with_static_runtimes=yes
7115 ;;
7117 darwin* | rhapsody*)
7118 case $host_os in
7119 rhapsody* | darwin1.[012])
7120 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7121 ;;
7122 *) # Darwin 1.3 on
7123 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7124 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7125 else
7126 case ${MACOSX_DEPLOYMENT_TARGET} in
7127 10.[012])
7128 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7129 ;;
7130 10.*)
7131 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7132 ;;
7133 esac
7134 fi
7135 ;;
7136 esac
7137 archive_cmds_need_lc=no
7138 hardcode_direct=no
7139 hardcode_automatic=yes
7140 hardcode_shlibpath_var=unsupported
7141 whole_archive_flag_spec=''
7142 link_all_deplibs=yes
7143 if test "$GCC" = yes ; then
7144 output_verbose_link_cmd='echo'
7145 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7146 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7147 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7148 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}'
7149 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}'
7150 else
7151 case $cc_basename in
7152 xlc*)
7153 output_verbose_link_cmd='echo'
7154 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7155 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7156 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7157 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7158 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}'
7159 ;;
7160 *)
7161 ld_shlibs=no
7162 ;;
7163 esac
7164 fi
7165 ;;
7167 dgux*)
7168 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7169 hardcode_libdir_flag_spec='-L$libdir'
7170 hardcode_shlibpath_var=no
7171 ;;
7173 freebsd1*)
7174 ld_shlibs=no
7175 ;;
7177 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7178 # support. Future versions do this automatically, but an explicit c++rt0.o
7179 # does not break anything, and helps significantly (at the cost of a little
7180 # extra space).
7181 freebsd2.2*)
7182 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7183 hardcode_libdir_flag_spec='-R$libdir'
7184 hardcode_direct=yes
7185 hardcode_shlibpath_var=no
7186 ;;
7188 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7189 freebsd2*)
7190 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7191 hardcode_direct=yes
7192 hardcode_minus_L=yes
7193 hardcode_shlibpath_var=no
7194 ;;
7196 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7197 freebsd* | kfreebsd*-gnu | dragonfly*)
7198 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7199 hardcode_libdir_flag_spec='-R$libdir'
7200 hardcode_direct=yes
7201 hardcode_shlibpath_var=no
7202 ;;
7204 hpux9*)
7205 if test "$GCC" = yes; then
7206 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'
7207 else
7208 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'
7209 fi
7210 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7211 hardcode_libdir_separator=:
7212 hardcode_direct=yes
7214 # hardcode_minus_L: Not really in the search PATH,
7215 # but as the default location of the library.
7216 hardcode_minus_L=yes
7217 export_dynamic_flag_spec='${wl}-E'
7218 ;;
7220 hpux10*)
7221 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7222 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7223 else
7224 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7225 fi
7226 if test "$with_gnu_ld" = no; then
7227 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7228 hardcode_libdir_separator=:
7230 hardcode_direct=yes
7231 export_dynamic_flag_spec='${wl}-E'
7233 # hardcode_minus_L: Not really in the search PATH,
7234 # but as the default location of the library.
7235 hardcode_minus_L=yes
7236 fi
7237 ;;
7239 hpux11*)
7240 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7241 case $host_cpu in
7242 hppa*64*)
7243 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7244 ;;
7245 ia64*)
7246 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7247 ;;
7248 *)
7249 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7250 ;;
7251 esac
7252 else
7253 case $host_cpu in
7254 hppa*64*)
7255 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7256 ;;
7257 ia64*)
7258 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7259 ;;
7260 *)
7261 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7262 ;;
7263 esac
7264 fi
7265 if test "$with_gnu_ld" = no; then
7266 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7267 hardcode_libdir_separator=:
7269 case $host_cpu in
7270 hppa*64*|ia64*)
7271 hardcode_libdir_flag_spec_ld='+b $libdir'
7272 hardcode_direct=no
7273 hardcode_shlibpath_var=no
7274 ;;
7275 *)
7276 hardcode_direct=yes
7277 export_dynamic_flag_spec='${wl}-E'
7279 # hardcode_minus_L: Not really in the search PATH,
7280 # but as the default location of the library.
7281 hardcode_minus_L=yes
7282 ;;
7283 esac
7284 fi
7285 ;;
7287 irix5* | irix6* | nonstopux*)
7288 if test "$GCC" = yes; then
7289 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'
7290 else
7291 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'
7292 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7293 fi
7294 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7295 hardcode_libdir_separator=:
7296 link_all_deplibs=yes
7297 ;;
7299 netbsd*)
7300 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7301 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7302 else
7303 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7304 fi
7305 hardcode_libdir_flag_spec='-R$libdir'
7306 hardcode_direct=yes
7307 hardcode_shlibpath_var=no
7308 ;;
7310 newsos6)
7311 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7312 hardcode_direct=yes
7313 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7314 hardcode_libdir_separator=:
7315 hardcode_shlibpath_var=no
7316 ;;
7318 openbsd*)
7319 hardcode_direct=yes
7320 hardcode_shlibpath_var=no
7321 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7322 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7323 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7324 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7325 export_dynamic_flag_spec='${wl}-E'
7326 else
7327 case $host_os in
7328 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7329 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7330 hardcode_libdir_flag_spec='-R$libdir'
7331 ;;
7332 *)
7333 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7334 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7335 ;;
7336 esac
7337 fi
7338 ;;
7340 os2*)
7341 hardcode_libdir_flag_spec='-L$libdir'
7342 hardcode_minus_L=yes
7343 allow_undefined_flag=unsupported
7344 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'
7345 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7346 ;;
7348 osf3*)
7349 if test "$GCC" = yes; then
7350 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7351 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'
7352 else
7353 allow_undefined_flag=' -expect_unresolved \*'
7354 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'
7355 fi
7356 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7357 hardcode_libdir_separator=:
7358 ;;
7360 osf4* | osf5*) # as osf3* with the addition of -msym flag
7361 if test "$GCC" = yes; then
7362 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7363 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'
7364 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7365 else
7366 allow_undefined_flag=' -expect_unresolved \*'
7367 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'
7368 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7369 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7371 # Both c and cxx compiler support -rpath directly
7372 hardcode_libdir_flag_spec='-rpath $libdir'
7373 fi
7374 hardcode_libdir_separator=:
7375 ;;
7377 solaris*)
7378 no_undefined_flag=' -z text'
7379 if test "$GCC" = yes; then
7380 wlarc='${wl}'
7381 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7382 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7383 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7384 else
7385 wlarc=''
7386 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7387 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7388 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7389 fi
7390 hardcode_libdir_flag_spec='-R$libdir'
7391 hardcode_shlibpath_var=no
7392 case $host_os in
7393 solaris2.[0-5] | solaris2.[0-5].*) ;;
7394 *)
7395 # The compiler driver will combine linker options so we
7396 # cannot just pass the convience library names through
7397 # without $wl, iff we do not link with $LD.
7398 # Luckily, gcc supports the same syntax we need for Sun Studio.
7399 # Supported since Solaris 2.6 (maybe 2.5.1?)
7400 case $wlarc in
7401 '')
7402 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7403 *)
7404 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7405 esac ;;
7406 esac
7407 link_all_deplibs=yes
7408 ;;
7410 sunos4*)
7411 if test "x$host_vendor" = xsequent; then
7412 # Use $CC to link under sequent, because it throws in some extra .o
7413 # files that make .init and .fini sections work.
7414 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7415 else
7416 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7417 fi
7418 hardcode_libdir_flag_spec='-L$libdir'
7419 hardcode_direct=yes
7420 hardcode_minus_L=yes
7421 hardcode_shlibpath_var=no
7422 ;;
7424 sysv4)
7425 case $host_vendor in
7426 sni)
7427 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7428 hardcode_direct=yes # is this really true???
7429 ;;
7430 siemens)
7431 ## LD is ld it makes a PLAMLIB
7432 ## CC just makes a GrossModule.
7433 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7434 reload_cmds='$CC -r -o $output$reload_objs'
7435 hardcode_direct=no
7436 ;;
7437 motorola)
7438 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7439 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7440 ;;
7441 esac
7442 runpath_var='LD_RUN_PATH'
7443 hardcode_shlibpath_var=no
7444 ;;
7446 sysv4.3*)
7447 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7448 hardcode_shlibpath_var=no
7449 export_dynamic_flag_spec='-Bexport'
7450 ;;
7452 sysv4*MP*)
7453 if test -d /usr/nec; then
7454 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7455 hardcode_shlibpath_var=no
7456 runpath_var=LD_RUN_PATH
7457 hardcode_runpath_var=yes
7458 ld_shlibs=yes
7459 fi
7460 ;;
7462 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7463 no_undefined_flag='${wl}-z,text'
7464 archive_cmds_need_lc=no
7465 hardcode_shlibpath_var=no
7466 runpath_var='LD_RUN_PATH'
7468 if test "$GCC" = yes; then
7469 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7470 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7471 else
7472 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7473 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7474 fi
7475 ;;
7477 sysv5* | sco3.2v5* | sco5v6*)
7478 # Note: We can NOT use -z defs as we might desire, because we do not
7479 # link with -lc, and that would cause any symbols used from libc to
7480 # always be unresolved, which means just about no library would
7481 # ever link correctly. If we're not using GNU ld we use -z text
7482 # though, which does catch some bad symbols but isn't as heavy-handed
7483 # as -z defs.
7484 no_undefined_flag='${wl}-z,text'
7485 allow_undefined_flag='${wl}-z,nodefs'
7486 archive_cmds_need_lc=no
7487 hardcode_shlibpath_var=no
7488 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7489 hardcode_libdir_separator=':'
7490 link_all_deplibs=yes
7491 export_dynamic_flag_spec='${wl}-Bexport'
7492 runpath_var='LD_RUN_PATH'
7494 if test "$GCC" = yes; then
7495 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7496 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7497 else
7498 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7499 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7500 fi
7501 ;;
7503 uts4*)
7504 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7505 hardcode_libdir_flag_spec='-L$libdir'
7506 hardcode_shlibpath_var=no
7507 ;;
7509 *)
7510 ld_shlibs=no
7511 ;;
7512 esac
7513 fi
7515 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7516 echo "${ECHO_T}$ld_shlibs" >&6
7517 test "$ld_shlibs" = no && can_build_shared=no
7519 #
7520 # Do we need to explicitly link libc?
7521 #
7522 case "x$archive_cmds_need_lc" in
7523 x|xyes)
7524 # Assume -lc should be added
7525 archive_cmds_need_lc=yes
7527 if test "$enable_shared" = yes && test "$GCC" = yes; then
7528 case $archive_cmds in
7529 *'~'*)
7530 # FIXME: we may have to deal with multi-command sequences.
7531 ;;
7532 '$CC '*)
7533 # Test whether the compiler implicitly links with -lc since on some
7534 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7535 # to ld, don't add -lc before -lgcc.
7536 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7537 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7538 $rm conftest*
7539 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7542 (eval $ac_compile) 2>&5
7543 ac_status=$?
7544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545 (exit $ac_status); } 2>conftest.err; then
7546 soname=conftest
7547 lib=conftest
7548 libobjs=conftest.$ac_objext
7549 deplibs=
7550 wl=$lt_prog_compiler_wl
7551 pic_flag=$lt_prog_compiler_pic
7552 compiler_flags=-v
7553 linker_flags=-v
7554 verstring=
7555 output_objdir=.
7556 libname=conftest
7557 lt_save_allow_undefined_flag=$allow_undefined_flag
7558 allow_undefined_flag=
7559 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7560 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7561 ac_status=$?
7562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563 (exit $ac_status); }
7564 then
7565 archive_cmds_need_lc=no
7566 else
7567 archive_cmds_need_lc=yes
7568 fi
7569 allow_undefined_flag=$lt_save_allow_undefined_flag
7570 else
7571 cat conftest.err 1>&5
7572 fi
7573 $rm conftest*
7574 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7575 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7576 ;;
7577 esac
7578 fi
7579 ;;
7580 esac
7582 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7583 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7584 library_names_spec=
7585 libname_spec='lib$name'
7586 soname_spec=
7587 shrext_cmds=".so"
7588 postinstall_cmds=
7589 postuninstall_cmds=
7590 finish_cmds=
7591 finish_eval=
7592 shlibpath_var=
7593 shlibpath_overrides_runpath=unknown
7594 version_type=none
7595 dynamic_linker="$host_os ld.so"
7596 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7597 if test "$GCC" = yes; then
7598 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7599 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7600 # if the path contains ";" then we assume it to be the separator
7601 # otherwise default to the standard path separator (i.e. ":") - it is
7602 # assumed that no part of a normal pathname contains ";" but that should
7603 # okay in the real world where ";" in dirpaths is itself problematic.
7604 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7605 else
7606 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7607 fi
7608 else
7609 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7610 fi
7611 need_lib_prefix=unknown
7612 hardcode_into_libs=no
7614 # when you set need_version to no, make sure it does not cause -set_version
7615 # flags to be left without arguments
7616 need_version=unknown
7618 case $host_os in
7619 aix3*)
7620 version_type=linux
7621 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7622 shlibpath_var=LIBPATH
7624 # AIX 3 has no versioning support, so we append a major version to the name.
7625 soname_spec='${libname}${release}${shared_ext}$major'
7626 ;;
7628 aix4* | aix5*)
7629 version_type=linux
7630 need_lib_prefix=no
7631 need_version=no
7632 hardcode_into_libs=yes
7633 if test "$host_cpu" = ia64; then
7634 # AIX 5 supports IA64
7635 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7636 shlibpath_var=LD_LIBRARY_PATH
7637 else
7638 # With GCC up to 2.95.x, collect2 would create an import file
7639 # for dependence libraries. The import file would start with
7640 # the line `#! .'. This would cause the generated library to
7641 # depend on `.', always an invalid library. This was fixed in
7642 # development snapshots of GCC prior to 3.0.
7643 case $host_os in
7644 aix4 | aix4.[01] | aix4.[01].*)
7645 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7646 echo ' yes '
7647 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7648 :
7649 else
7650 can_build_shared=no
7651 fi
7652 ;;
7653 esac
7654 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7655 # soname into executable. Probably we can add versioning support to
7656 # collect2, so additional links can be useful in future.
7657 if test "$aix_use_runtimelinking" = yes; then
7658 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7659 # instead of lib<name>.a to let people know that these are not
7660 # typical AIX shared libraries.
7661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7662 else
7663 # We preserve .a as extension for shared libraries through AIX4.2
7664 # and later when we are not doing run time linking.
7665 library_names_spec='${libname}${release}.a $libname.a'
7666 soname_spec='${libname}${release}${shared_ext}$major'
7667 fi
7668 shlibpath_var=LIBPATH
7669 fi
7670 ;;
7672 amigaos*)
7673 library_names_spec='$libname.ixlibrary $libname.a'
7674 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7675 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'
7676 ;;
7678 beos*)
7679 library_names_spec='${libname}${shared_ext}'
7680 dynamic_linker="$host_os ld.so"
7681 shlibpath_var=LIBRARY_PATH
7682 ;;
7684 bsdi[45]*)
7685 version_type=linux
7686 need_version=no
7687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7688 soname_spec='${libname}${release}${shared_ext}$major'
7689 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7690 shlibpath_var=LD_LIBRARY_PATH
7691 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7692 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7693 # the default ld.so.conf also contains /usr/contrib/lib and
7694 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7695 # libtool to hard-code these into programs
7696 ;;
7698 cygwin* | mingw* | pw32*)
7699 version_type=windows
7700 shrext_cmds=".dll"
7701 need_version=no
7702 need_lib_prefix=no
7704 case $GCC,$host_os in
7705 yes,cygwin* | yes,mingw* | yes,pw32*)
7706 library_names_spec='$libname.dll.a'
7707 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7708 postinstall_cmds='base_file=`basename \${file}`~
7709 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7710 dldir=$destdir/`dirname \$dlpath`~
7711 test -d \$dldir || mkdir -p \$dldir~
7712 $install_prog $dir/$dlname \$dldir/$dlname~
7713 chmod a+x \$dldir/$dlname'
7714 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7715 dlpath=$dir/\$dldll~
7716 $rm \$dlpath'
7717 shlibpath_overrides_runpath=yes
7719 case $host_os in
7720 cygwin*)
7721 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7722 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7723 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7724 ;;
7725 mingw*)
7726 # MinGW DLLs use traditional 'lib' prefix
7727 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7728 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7729 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7730 # It is most probably a Windows format PATH printed by
7731 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7732 # path with ; separators, and with drive letters. We can handle the
7733 # drive letters (cygwin fileutils understands them), so leave them,
7734 # especially as we might pass files found there to a mingw objdump,
7735 # which wouldn't understand a cygwinified path. Ahh.
7736 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7737 else
7738 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7739 fi
7740 ;;
7741 pw32*)
7742 # pw32 DLLs use 'pw' prefix rather than 'lib'
7743 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7744 ;;
7745 esac
7746 ;;
7748 *)
7749 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7750 ;;
7751 esac
7752 dynamic_linker='Win32 ld.exe'
7753 # FIXME: first we should search . and the directory the executable is in
7754 shlibpath_var=PATH
7755 ;;
7757 darwin* | rhapsody*)
7758 dynamic_linker="$host_os dyld"
7759 version_type=darwin
7760 need_lib_prefix=no
7761 need_version=no
7762 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7763 soname_spec='${libname}${release}${major}$shared_ext'
7764 shlibpath_overrides_runpath=yes
7765 shlibpath_var=DYLD_LIBRARY_PATH
7766 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
7767 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7768 if test "$GCC" = yes; then
7769 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"`
7770 else
7771 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7772 fi
7773 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7774 ;;
7776 dgux*)
7777 version_type=linux
7778 need_lib_prefix=no
7779 need_version=no
7780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7781 soname_spec='${libname}${release}${shared_ext}$major'
7782 shlibpath_var=LD_LIBRARY_PATH
7783 ;;
7785 freebsd1*)
7786 dynamic_linker=no
7787 ;;
7789 kfreebsd*-gnu)
7790 version_type=linux
7791 need_lib_prefix=no
7792 need_version=no
7793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7794 soname_spec='${libname}${release}${shared_ext}$major'
7795 shlibpath_var=LD_LIBRARY_PATH
7796 shlibpath_overrides_runpath=no
7797 hardcode_into_libs=yes
7798 dynamic_linker='GNU ld.so'
7799 ;;
7801 freebsd* | dragonfly*)
7802 # DragonFly does not have aout. When/if they implement a new
7803 # versioning mechanism, adjust this.
7804 if test -x /usr/bin/objformat; then
7805 objformat=`/usr/bin/objformat`
7806 else
7807 case $host_os in
7808 freebsd[123]*) objformat=aout ;;
7809 *) objformat=elf ;;
7810 esac
7811 fi
7812 version_type=freebsd-$objformat
7813 case $version_type in
7814 freebsd-elf*)
7815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7816 need_version=no
7817 need_lib_prefix=no
7818 ;;
7819 freebsd-*)
7820 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7821 need_version=yes
7822 ;;
7823 esac
7824 shlibpath_var=LD_LIBRARY_PATH
7825 case $host_os in
7826 freebsd2*)
7827 shlibpath_overrides_runpath=yes
7828 ;;
7829 freebsd3.[01]* | freebsdelf3.[01]*)
7830 shlibpath_overrides_runpath=yes
7831 hardcode_into_libs=yes
7832 ;;
7833 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
7834 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
7835 shlibpath_overrides_runpath=no
7836 hardcode_into_libs=yes
7837 ;;
7838 freebsd*) # from 4.6 on
7839 shlibpath_overrides_runpath=yes
7840 hardcode_into_libs=yes
7841 ;;
7842 esac
7843 ;;
7845 gnu*)
7846 version_type=linux
7847 need_lib_prefix=no
7848 need_version=no
7849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7850 soname_spec='${libname}${release}${shared_ext}$major'
7851 shlibpath_var=LD_LIBRARY_PATH
7852 hardcode_into_libs=yes
7853 ;;
7855 hpux9* | hpux10* | hpux11*)
7856 # Give a soname corresponding to the major version so that dld.sl refuses to
7857 # link against other versions.
7858 version_type=sunos
7859 need_lib_prefix=no
7860 need_version=no
7861 case $host_cpu in
7862 ia64*)
7863 shrext_cmds='.so'
7864 hardcode_into_libs=yes
7865 dynamic_linker="$host_os dld.so"
7866 shlibpath_var=LD_LIBRARY_PATH
7867 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7869 soname_spec='${libname}${release}${shared_ext}$major'
7870 if test "X$HPUX_IA64_MODE" = X32; then
7871 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7872 else
7873 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7874 fi
7875 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7876 ;;
7877 hppa*64*)
7878 shrext_cmds='.sl'
7879 hardcode_into_libs=yes
7880 dynamic_linker="$host_os dld.sl"
7881 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7882 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7884 soname_spec='${libname}${release}${shared_ext}$major'
7885 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7886 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7887 ;;
7888 *)
7889 shrext_cmds='.sl'
7890 dynamic_linker="$host_os dld.sl"
7891 shlibpath_var=SHLIB_PATH
7892 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7894 soname_spec='${libname}${release}${shared_ext}$major'
7895 ;;
7896 esac
7897 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7898 postinstall_cmds='chmod 555 $lib'
7899 ;;
7901 interix3*)
7902 version_type=linux
7903 need_lib_prefix=no
7904 need_version=no
7905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7906 soname_spec='${libname}${release}${shared_ext}$major'
7907 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
7908 shlibpath_var=LD_LIBRARY_PATH
7909 shlibpath_overrides_runpath=no
7910 hardcode_into_libs=yes
7911 ;;
7913 irix5* | irix6* | nonstopux*)
7914 case $host_os in
7915 nonstopux*) version_type=nonstopux ;;
7916 *)
7917 if test "$lt_cv_prog_gnu_ld" = yes; then
7918 version_type=linux
7919 else
7920 version_type=irix
7921 fi ;;
7922 esac
7923 need_lib_prefix=no
7924 need_version=no
7925 soname_spec='${libname}${release}${shared_ext}$major'
7926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7927 case $host_os in
7928 irix5* | nonstopux*)
7929 libsuff= shlibsuff=
7930 ;;
7931 *)
7932 case $LD in # libtool.m4 will add one of these switches to LD
7933 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7934 libsuff= shlibsuff= libmagic=32-bit;;
7935 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7936 libsuff=32 shlibsuff=N32 libmagic=N32;;
7937 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7938 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7939 *) libsuff= shlibsuff= libmagic=never-match;;
7940 esac
7941 ;;
7942 esac
7943 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7944 shlibpath_overrides_runpath=no
7945 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7946 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7947 hardcode_into_libs=yes
7948 ;;
7950 # No shared lib support for Linux oldld, aout, or coff.
7951 linux*oldld* | linux*aout* | linux*coff*)
7952 dynamic_linker=no
7953 ;;
7955 # This must be Linux ELF.
7956 linux*)
7957 version_type=linux
7958 need_lib_prefix=no
7959 need_version=no
7960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7961 soname_spec='${libname}${release}${shared_ext}$major'
7962 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7963 shlibpath_var=LD_LIBRARY_PATH
7964 shlibpath_overrides_runpath=no
7965 # This implies no fast_install, which is unacceptable.
7966 # Some rework will be needed to allow for fast_install
7967 # before this can be enabled.
7968 hardcode_into_libs=yes
7970 # Append ld.so.conf contents to the search path
7971 if test -f /etc/ld.so.conf; then
7972 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
7973 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7974 fi
7976 # We used to test for /lib/ld.so.1 and disable shared libraries on
7977 # powerpc, because MkLinux only supported shared libraries with the
7978 # GNU dynamic linker. Since this was broken with cross compilers,
7979 # most powerpc-linux boxes support dynamic linking these days and
7980 # people can always --disable-shared, the test was removed, and we
7981 # assume the GNU/Linux dynamic linker is in use.
7982 dynamic_linker='GNU/Linux ld.so'
7983 ;;
7985 knetbsd*-gnu)
7986 version_type=linux
7987 need_lib_prefix=no
7988 need_version=no
7989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7990 soname_spec='${libname}${release}${shared_ext}$major'
7991 shlibpath_var=LD_LIBRARY_PATH
7992 shlibpath_overrides_runpath=no
7993 hardcode_into_libs=yes
7994 dynamic_linker='GNU ld.so'
7995 ;;
7997 netbsd*)
7998 version_type=sunos
7999 need_lib_prefix=no
8000 need_version=no
8001 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8003 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8004 dynamic_linker='NetBSD (a.out) ld.so'
8005 else
8006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8007 soname_spec='${libname}${release}${shared_ext}$major'
8008 dynamic_linker='NetBSD ld.elf_so'
8009 fi
8010 shlibpath_var=LD_LIBRARY_PATH
8011 shlibpath_overrides_runpath=yes
8012 hardcode_into_libs=yes
8013 ;;
8015 newsos6)
8016 version_type=linux
8017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8018 shlibpath_var=LD_LIBRARY_PATH
8019 shlibpath_overrides_runpath=yes
8020 ;;
8022 nto-qnx*)
8023 version_type=linux
8024 need_lib_prefix=no
8025 need_version=no
8026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8027 soname_spec='${libname}${release}${shared_ext}$major'
8028 shlibpath_var=LD_LIBRARY_PATH
8029 shlibpath_overrides_runpath=yes
8030 ;;
8032 openbsd*)
8033 version_type=sunos
8034 sys_lib_dlsearch_path_spec="/usr/lib"
8035 need_lib_prefix=no
8036 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8037 case $host_os in
8038 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8039 *) need_version=no ;;
8040 esac
8041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8042 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8043 shlibpath_var=LD_LIBRARY_PATH
8044 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8045 case $host_os in
8046 openbsd2.[89] | openbsd2.[89].*)
8047 shlibpath_overrides_runpath=no
8048 ;;
8049 *)
8050 shlibpath_overrides_runpath=yes
8051 ;;
8052 esac
8053 else
8054 shlibpath_overrides_runpath=yes
8055 fi
8056 ;;
8058 os2*)
8059 libname_spec='$name'
8060 shrext_cmds=".dll"
8061 need_lib_prefix=no
8062 library_names_spec='$libname${shared_ext} $libname.a'
8063 dynamic_linker='OS/2 ld.exe'
8064 shlibpath_var=LIBPATH
8065 ;;
8067 osf3* | osf4* | osf5*)
8068 version_type=osf
8069 need_lib_prefix=no
8070 need_version=no
8071 soname_spec='${libname}${release}${shared_ext}$major'
8072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8073 shlibpath_var=LD_LIBRARY_PATH
8074 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8075 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8076 ;;
8078 solaris*)
8079 version_type=linux
8080 need_lib_prefix=no
8081 need_version=no
8082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8083 soname_spec='${libname}${release}${shared_ext}$major'
8084 shlibpath_var=LD_LIBRARY_PATH
8085 shlibpath_overrides_runpath=yes
8086 hardcode_into_libs=yes
8087 # ldd complains unless libraries are executable
8088 postinstall_cmds='chmod +x $lib'
8089 ;;
8091 sunos4*)
8092 version_type=sunos
8093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8094 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8095 shlibpath_var=LD_LIBRARY_PATH
8096 shlibpath_overrides_runpath=yes
8097 if test "$with_gnu_ld" = yes; then
8098 need_lib_prefix=no
8099 fi
8100 need_version=yes
8101 ;;
8103 sysv4 | sysv4.3*)
8104 version_type=linux
8105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8106 soname_spec='${libname}${release}${shared_ext}$major'
8107 shlibpath_var=LD_LIBRARY_PATH
8108 case $host_vendor in
8109 sni)
8110 shlibpath_overrides_runpath=no
8111 need_lib_prefix=no
8112 export_dynamic_flag_spec='${wl}-Blargedynsym'
8113 runpath_var=LD_RUN_PATH
8114 ;;
8115 siemens)
8116 need_lib_prefix=no
8117 ;;
8118 motorola)
8119 need_lib_prefix=no
8120 need_version=no
8121 shlibpath_overrides_runpath=no
8122 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8123 ;;
8124 esac
8125 ;;
8127 sysv4*MP*)
8128 if test -d /usr/nec ;then
8129 version_type=linux
8130 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8131 soname_spec='$libname${shared_ext}.$major'
8132 shlibpath_var=LD_LIBRARY_PATH
8133 fi
8134 ;;
8136 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8137 version_type=freebsd-elf
8138 need_lib_prefix=no
8139 need_version=no
8140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8141 soname_spec='${libname}${release}${shared_ext}$major'
8142 shlibpath_var=LD_LIBRARY_PATH
8143 hardcode_into_libs=yes
8144 if test "$with_gnu_ld" = yes; then
8145 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8146 shlibpath_overrides_runpath=no
8147 else
8148 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8149 shlibpath_overrides_runpath=yes
8150 case $host_os in
8151 sco3.2v5*)
8152 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8153 ;;
8154 esac
8155 fi
8156 sys_lib_dlsearch_path_spec='/usr/lib'
8157 ;;
8159 uts4*)
8160 version_type=linux
8161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8162 soname_spec='${libname}${release}${shared_ext}$major'
8163 shlibpath_var=LD_LIBRARY_PATH
8164 ;;
8166 *)
8167 dynamic_linker=no
8168 ;;
8169 esac
8170 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8171 echo "${ECHO_T}$dynamic_linker" >&6
8172 test "$dynamic_linker" = no && can_build_shared=no
8174 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8175 if test "$GCC" = yes; then
8176 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8177 fi
8179 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8180 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8181 hardcode_action=
8182 if test -n "$hardcode_libdir_flag_spec" || \
8183 test -n "$runpath_var" || \
8184 test "X$hardcode_automatic" = "Xyes" ; then
8186 # We can hardcode non-existant directories.
8187 if test "$hardcode_direct" != no &&
8188 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8189 # have to relink, otherwise we might link with an installed library
8190 # when we should be linking with a yet-to-be-installed one
8191 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8192 test "$hardcode_minus_L" != no; then
8193 # Linking always hardcodes the temporary library directory.
8194 hardcode_action=relink
8195 else
8196 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8197 hardcode_action=immediate
8198 fi
8199 else
8200 # We cannot hardcode anything, or else we can only hardcode existing
8201 # directories.
8202 hardcode_action=unsupported
8203 fi
8204 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8205 echo "${ECHO_T}$hardcode_action" >&6
8207 if test "$hardcode_action" = relink; then
8208 # Fast installation is not supported
8209 enable_fast_install=no
8210 elif test "$shlibpath_overrides_runpath" = yes ||
8211 test "$enable_shared" = no; then
8212 # Fast installation is not necessary
8213 enable_fast_install=needless
8214 fi
8216 striplib=
8217 old_striplib=
8218 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8219 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8220 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8221 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8222 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8223 echo "$as_me:$LINENO: result: yes" >&5
8224 echo "${ECHO_T}yes" >&6
8225 else
8226 # FIXME - insert some real tests, host_os isn't really good enough
8227 case $host_os in
8228 darwin*)
8229 if test -n "$STRIP" ; then
8230 striplib="$STRIP -x"
8231 echo "$as_me:$LINENO: result: yes" >&5
8232 echo "${ECHO_T}yes" >&6
8233 else
8234 echo "$as_me:$LINENO: result: no" >&5
8235 echo "${ECHO_T}no" >&6
8236 fi
8237 ;;
8238 *)
8239 echo "$as_me:$LINENO: result: no" >&5
8240 echo "${ECHO_T}no" >&6
8241 ;;
8242 esac
8243 fi
8245 if test "x$enable_dlopen" != xyes; then
8246 enable_dlopen=unknown
8247 enable_dlopen_self=unknown
8248 enable_dlopen_self_static=unknown
8249 else
8250 lt_cv_dlopen=no
8251 lt_cv_dlopen_libs=
8253 case $host_os in
8254 beos*)
8255 lt_cv_dlopen="load_add_on"
8256 lt_cv_dlopen_libs=
8257 lt_cv_dlopen_self=yes
8258 ;;
8260 mingw* | pw32*)
8261 lt_cv_dlopen="LoadLibrary"
8262 lt_cv_dlopen_libs=
8263 ;;
8265 cygwin*)
8266 lt_cv_dlopen="dlopen"
8267 lt_cv_dlopen_libs=
8268 ;;
8270 darwin*)
8271 # if libdl is installed we need to link against it
8272 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8273 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8274 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8275 echo $ECHO_N "(cached) $ECHO_C" >&6
8276 else
8277 ac_check_lib_save_LIBS=$LIBS
8278 LIBS="-ldl $LIBS"
8279 cat >conftest.$ac_ext <<_ACEOF
8280 /* confdefs.h. */
8281 _ACEOF
8282 cat confdefs.h >>conftest.$ac_ext
8283 cat >>conftest.$ac_ext <<_ACEOF
8284 /* end confdefs.h. */
8286 /* Override any gcc2 internal prototype to avoid an error. */
8287 #ifdef __cplusplus
8288 extern "C"
8289 #endif
8290 /* We use char because int might match the return type of a gcc2
8291 builtin and then its argument prototype would still apply. */
8292 char dlopen ();
8293 int
8294 main ()
8295 {
8296 dlopen ();
8297 ;
8298 return 0;
8299 }
8300 _ACEOF
8301 rm -f conftest.$ac_objext conftest$ac_exeext
8302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8303 (eval $ac_link) 2>conftest.er1
8304 ac_status=$?
8305 grep -v '^ *+' conftest.er1 >conftest.err
8306 rm -f conftest.er1
8307 cat conftest.err >&5
8308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309 (exit $ac_status); } &&
8310 { ac_try='test -z "$ac_c_werror_flag"
8311 || test ! -s conftest.err'
8312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8313 (eval $ac_try) 2>&5
8314 ac_status=$?
8315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316 (exit $ac_status); }; } &&
8317 { ac_try='test -s conftest$ac_exeext'
8318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8319 (eval $ac_try) 2>&5
8320 ac_status=$?
8321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322 (exit $ac_status); }; }; then
8323 ac_cv_lib_dl_dlopen=yes
8324 else
8325 echo "$as_me: failed program was:" >&5
8326 sed 's/^/| /' conftest.$ac_ext >&5
8328 ac_cv_lib_dl_dlopen=no
8329 fi
8330 rm -f conftest.err conftest.$ac_objext \
8331 conftest$ac_exeext conftest.$ac_ext
8332 LIBS=$ac_check_lib_save_LIBS
8333 fi
8334 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8335 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8336 if test $ac_cv_lib_dl_dlopen = yes; then
8337 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8338 else
8340 lt_cv_dlopen="dyld"
8341 lt_cv_dlopen_libs=
8342 lt_cv_dlopen_self=yes
8344 fi
8346 ;;
8348 *)
8349 echo "$as_me:$LINENO: checking for shl_load" >&5
8350 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8351 if test "${ac_cv_func_shl_load+set}" = set; then
8352 echo $ECHO_N "(cached) $ECHO_C" >&6
8353 else
8354 cat >conftest.$ac_ext <<_ACEOF
8355 /* confdefs.h. */
8356 _ACEOF
8357 cat confdefs.h >>conftest.$ac_ext
8358 cat >>conftest.$ac_ext <<_ACEOF
8359 /* end confdefs.h. */
8360 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8361 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8362 #define shl_load innocuous_shl_load
8364 /* System header to define __stub macros and hopefully few prototypes,
8365 which can conflict with char shl_load (); below.
8366 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8367 <limits.h> exists even on freestanding compilers. */
8369 #ifdef __STDC__
8370 # include <limits.h>
8371 #else
8372 # include <assert.h>
8373 #endif
8375 #undef shl_load
8377 /* Override any gcc2 internal prototype to avoid an error. */
8378 #ifdef __cplusplus
8379 extern "C"
8380 {
8381 #endif
8382 /* We use char because int might match the return type of a gcc2
8383 builtin and then its argument prototype would still apply. */
8384 char shl_load ();
8385 /* The GNU C library defines this for functions which it implements
8386 to always fail with ENOSYS. Some functions are actually named
8387 something starting with __ and the normal name is an alias. */
8388 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8389 choke me
8390 #else
8391 char (*f) () = shl_load;
8392 #endif
8393 #ifdef __cplusplus
8394 }
8395 #endif
8397 int
8398 main ()
8399 {
8400 return f != shl_load;
8401 ;
8402 return 0;
8403 }
8404 _ACEOF
8405 rm -f conftest.$ac_objext conftest$ac_exeext
8406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8407 (eval $ac_link) 2>conftest.er1
8408 ac_status=$?
8409 grep -v '^ *+' conftest.er1 >conftest.err
8410 rm -f conftest.er1
8411 cat conftest.err >&5
8412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413 (exit $ac_status); } &&
8414 { ac_try='test -z "$ac_c_werror_flag"
8415 || test ! -s conftest.err'
8416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8417 (eval $ac_try) 2>&5
8418 ac_status=$?
8419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420 (exit $ac_status); }; } &&
8421 { ac_try='test -s conftest$ac_exeext'
8422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8423 (eval $ac_try) 2>&5
8424 ac_status=$?
8425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8426 (exit $ac_status); }; }; then
8427 ac_cv_func_shl_load=yes
8428 else
8429 echo "$as_me: failed program was:" >&5
8430 sed 's/^/| /' conftest.$ac_ext >&5
8432 ac_cv_func_shl_load=no
8433 fi
8434 rm -f conftest.err conftest.$ac_objext \
8435 conftest$ac_exeext conftest.$ac_ext
8436 fi
8437 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8438 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8439 if test $ac_cv_func_shl_load = yes; then
8440 lt_cv_dlopen="shl_load"
8441 else
8442 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8443 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8444 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8445 echo $ECHO_N "(cached) $ECHO_C" >&6
8446 else
8447 ac_check_lib_save_LIBS=$LIBS
8448 LIBS="-ldld $LIBS"
8449 cat >conftest.$ac_ext <<_ACEOF
8450 /* confdefs.h. */
8451 _ACEOF
8452 cat confdefs.h >>conftest.$ac_ext
8453 cat >>conftest.$ac_ext <<_ACEOF
8454 /* end confdefs.h. */
8456 /* Override any gcc2 internal prototype to avoid an error. */
8457 #ifdef __cplusplus
8458 extern "C"
8459 #endif
8460 /* We use char because int might match the return type of a gcc2
8461 builtin and then its argument prototype would still apply. */
8462 char shl_load ();
8463 int
8464 main ()
8465 {
8466 shl_load ();
8467 ;
8468 return 0;
8469 }
8470 _ACEOF
8471 rm -f conftest.$ac_objext conftest$ac_exeext
8472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8473 (eval $ac_link) 2>conftest.er1
8474 ac_status=$?
8475 grep -v '^ *+' conftest.er1 >conftest.err
8476 rm -f conftest.er1
8477 cat conftest.err >&5
8478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479 (exit $ac_status); } &&
8480 { ac_try='test -z "$ac_c_werror_flag"
8481 || test ! -s conftest.err'
8482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8483 (eval $ac_try) 2>&5
8484 ac_status=$?
8485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8486 (exit $ac_status); }; } &&
8487 { ac_try='test -s conftest$ac_exeext'
8488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8489 (eval $ac_try) 2>&5
8490 ac_status=$?
8491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492 (exit $ac_status); }; }; then
8493 ac_cv_lib_dld_shl_load=yes
8494 else
8495 echo "$as_me: failed program was:" >&5
8496 sed 's/^/| /' conftest.$ac_ext >&5
8498 ac_cv_lib_dld_shl_load=no
8499 fi
8500 rm -f conftest.err conftest.$ac_objext \
8501 conftest$ac_exeext conftest.$ac_ext
8502 LIBS=$ac_check_lib_save_LIBS
8503 fi
8504 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8505 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8506 if test $ac_cv_lib_dld_shl_load = yes; then
8507 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8508 else
8509 echo "$as_me:$LINENO: checking for dlopen" >&5
8510 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8511 if test "${ac_cv_func_dlopen+set}" = set; then
8512 echo $ECHO_N "(cached) $ECHO_C" >&6
8513 else
8514 cat >conftest.$ac_ext <<_ACEOF
8515 /* confdefs.h. */
8516 _ACEOF
8517 cat confdefs.h >>conftest.$ac_ext
8518 cat >>conftest.$ac_ext <<_ACEOF
8519 /* end confdefs.h. */
8520 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8521 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8522 #define dlopen innocuous_dlopen
8524 /* System header to define __stub macros and hopefully few prototypes,
8525 which can conflict with char dlopen (); below.
8526 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8527 <limits.h> exists even on freestanding compilers. */
8529 #ifdef __STDC__
8530 # include <limits.h>
8531 #else
8532 # include <assert.h>
8533 #endif
8535 #undef dlopen
8537 /* Override any gcc2 internal prototype to avoid an error. */
8538 #ifdef __cplusplus
8539 extern "C"
8540 {
8541 #endif
8542 /* We use char because int might match the return type of a gcc2
8543 builtin and then its argument prototype would still apply. */
8544 char dlopen ();
8545 /* The GNU C library defines this for functions which it implements
8546 to always fail with ENOSYS. Some functions are actually named
8547 something starting with __ and the normal name is an alias. */
8548 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8549 choke me
8550 #else
8551 char (*f) () = dlopen;
8552 #endif
8553 #ifdef __cplusplus
8554 }
8555 #endif
8557 int
8558 main ()
8559 {
8560 return f != dlopen;
8561 ;
8562 return 0;
8563 }
8564 _ACEOF
8565 rm -f conftest.$ac_objext conftest$ac_exeext
8566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8567 (eval $ac_link) 2>conftest.er1
8568 ac_status=$?
8569 grep -v '^ *+' conftest.er1 >conftest.err
8570 rm -f conftest.er1
8571 cat conftest.err >&5
8572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573 (exit $ac_status); } &&
8574 { ac_try='test -z "$ac_c_werror_flag"
8575 || test ! -s conftest.err'
8576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8577 (eval $ac_try) 2>&5
8578 ac_status=$?
8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580 (exit $ac_status); }; } &&
8581 { ac_try='test -s conftest$ac_exeext'
8582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8583 (eval $ac_try) 2>&5
8584 ac_status=$?
8585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586 (exit $ac_status); }; }; then
8587 ac_cv_func_dlopen=yes
8588 else
8589 echo "$as_me: failed program was:" >&5
8590 sed 's/^/| /' conftest.$ac_ext >&5
8592 ac_cv_func_dlopen=no
8593 fi
8594 rm -f conftest.err conftest.$ac_objext \
8595 conftest$ac_exeext conftest.$ac_ext
8596 fi
8597 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8598 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8599 if test $ac_cv_func_dlopen = yes; then
8600 lt_cv_dlopen="dlopen"
8601 else
8602 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8603 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8604 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8605 echo $ECHO_N "(cached) $ECHO_C" >&6
8606 else
8607 ac_check_lib_save_LIBS=$LIBS
8608 LIBS="-ldl $LIBS"
8609 cat >conftest.$ac_ext <<_ACEOF
8610 /* confdefs.h. */
8611 _ACEOF
8612 cat confdefs.h >>conftest.$ac_ext
8613 cat >>conftest.$ac_ext <<_ACEOF
8614 /* end confdefs.h. */
8616 /* Override any gcc2 internal prototype to avoid an error. */
8617 #ifdef __cplusplus
8618 extern "C"
8619 #endif
8620 /* We use char because int might match the return type of a gcc2
8621 builtin and then its argument prototype would still apply. */
8622 char dlopen ();
8623 int
8624 main ()
8625 {
8626 dlopen ();
8627 ;
8628 return 0;
8629 }
8630 _ACEOF
8631 rm -f conftest.$ac_objext conftest$ac_exeext
8632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8633 (eval $ac_link) 2>conftest.er1
8634 ac_status=$?
8635 grep -v '^ *+' conftest.er1 >conftest.err
8636 rm -f conftest.er1
8637 cat conftest.err >&5
8638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639 (exit $ac_status); } &&
8640 { ac_try='test -z "$ac_c_werror_flag"
8641 || test ! -s conftest.err'
8642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8643 (eval $ac_try) 2>&5
8644 ac_status=$?
8645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646 (exit $ac_status); }; } &&
8647 { ac_try='test -s conftest$ac_exeext'
8648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8649 (eval $ac_try) 2>&5
8650 ac_status=$?
8651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652 (exit $ac_status); }; }; then
8653 ac_cv_lib_dl_dlopen=yes
8654 else
8655 echo "$as_me: failed program was:" >&5
8656 sed 's/^/| /' conftest.$ac_ext >&5
8658 ac_cv_lib_dl_dlopen=no
8659 fi
8660 rm -f conftest.err conftest.$ac_objext \
8661 conftest$ac_exeext conftest.$ac_ext
8662 LIBS=$ac_check_lib_save_LIBS
8663 fi
8664 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8665 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8666 if test $ac_cv_lib_dl_dlopen = yes; then
8667 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8668 else
8669 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8670 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8671 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8672 echo $ECHO_N "(cached) $ECHO_C" >&6
8673 else
8674 ac_check_lib_save_LIBS=$LIBS
8675 LIBS="-lsvld $LIBS"
8676 cat >conftest.$ac_ext <<_ACEOF
8677 /* confdefs.h. */
8678 _ACEOF
8679 cat confdefs.h >>conftest.$ac_ext
8680 cat >>conftest.$ac_ext <<_ACEOF
8681 /* end confdefs.h. */
8683 /* Override any gcc2 internal prototype to avoid an error. */
8684 #ifdef __cplusplus
8685 extern "C"
8686 #endif
8687 /* We use char because int might match the return type of a gcc2
8688 builtin and then its argument prototype would still apply. */
8689 char dlopen ();
8690 int
8691 main ()
8692 {
8693 dlopen ();
8694 ;
8695 return 0;
8696 }
8697 _ACEOF
8698 rm -f conftest.$ac_objext conftest$ac_exeext
8699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8700 (eval $ac_link) 2>conftest.er1
8701 ac_status=$?
8702 grep -v '^ *+' conftest.er1 >conftest.err
8703 rm -f conftest.er1
8704 cat conftest.err >&5
8705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706 (exit $ac_status); } &&
8707 { ac_try='test -z "$ac_c_werror_flag"
8708 || test ! -s conftest.err'
8709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8710 (eval $ac_try) 2>&5
8711 ac_status=$?
8712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713 (exit $ac_status); }; } &&
8714 { ac_try='test -s conftest$ac_exeext'
8715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8716 (eval $ac_try) 2>&5
8717 ac_status=$?
8718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719 (exit $ac_status); }; }; then
8720 ac_cv_lib_svld_dlopen=yes
8721 else
8722 echo "$as_me: failed program was:" >&5
8723 sed 's/^/| /' conftest.$ac_ext >&5
8725 ac_cv_lib_svld_dlopen=no
8726 fi
8727 rm -f conftest.err conftest.$ac_objext \
8728 conftest$ac_exeext conftest.$ac_ext
8729 LIBS=$ac_check_lib_save_LIBS
8730 fi
8731 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8732 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8733 if test $ac_cv_lib_svld_dlopen = yes; then
8734 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8735 else
8736 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8737 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8738 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8739 echo $ECHO_N "(cached) $ECHO_C" >&6
8740 else
8741 ac_check_lib_save_LIBS=$LIBS
8742 LIBS="-ldld $LIBS"
8743 cat >conftest.$ac_ext <<_ACEOF
8744 /* confdefs.h. */
8745 _ACEOF
8746 cat confdefs.h >>conftest.$ac_ext
8747 cat >>conftest.$ac_ext <<_ACEOF
8748 /* end confdefs.h. */
8750 /* Override any gcc2 internal prototype to avoid an error. */
8751 #ifdef __cplusplus
8752 extern "C"
8753 #endif
8754 /* We use char because int might match the return type of a gcc2
8755 builtin and then its argument prototype would still apply. */
8756 char dld_link ();
8757 int
8758 main ()
8759 {
8760 dld_link ();
8761 ;
8762 return 0;
8763 }
8764 _ACEOF
8765 rm -f conftest.$ac_objext conftest$ac_exeext
8766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8767 (eval $ac_link) 2>conftest.er1
8768 ac_status=$?
8769 grep -v '^ *+' conftest.er1 >conftest.err
8770 rm -f conftest.er1
8771 cat conftest.err >&5
8772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773 (exit $ac_status); } &&
8774 { ac_try='test -z "$ac_c_werror_flag"
8775 || test ! -s conftest.err'
8776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8777 (eval $ac_try) 2>&5
8778 ac_status=$?
8779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780 (exit $ac_status); }; } &&
8781 { ac_try='test -s conftest$ac_exeext'
8782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8783 (eval $ac_try) 2>&5
8784 ac_status=$?
8785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8786 (exit $ac_status); }; }; then
8787 ac_cv_lib_dld_dld_link=yes
8788 else
8789 echo "$as_me: failed program was:" >&5
8790 sed 's/^/| /' conftest.$ac_ext >&5
8792 ac_cv_lib_dld_dld_link=no
8793 fi
8794 rm -f conftest.err conftest.$ac_objext \
8795 conftest$ac_exeext conftest.$ac_ext
8796 LIBS=$ac_check_lib_save_LIBS
8797 fi
8798 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8799 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8800 if test $ac_cv_lib_dld_dld_link = yes; then
8801 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8802 fi
8805 fi
8808 fi
8811 fi
8814 fi
8817 fi
8819 ;;
8820 esac
8822 if test "x$lt_cv_dlopen" != xno; then
8823 enable_dlopen=yes
8824 else
8825 enable_dlopen=no
8826 fi
8828 case $lt_cv_dlopen in
8829 dlopen)
8830 save_CPPFLAGS="$CPPFLAGS"
8831 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8833 save_LDFLAGS="$LDFLAGS"
8834 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8836 save_LIBS="$LIBS"
8837 LIBS="$lt_cv_dlopen_libs $LIBS"
8839 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8840 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8841 if test "${lt_cv_dlopen_self+set}" = set; then
8842 echo $ECHO_N "(cached) $ECHO_C" >&6
8843 else
8844 if test "$cross_compiling" = yes; then :
8845 lt_cv_dlopen_self=cross
8846 else
8847 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8848 lt_status=$lt_dlunknown
8849 cat > conftest.$ac_ext <<EOF
8850 #line 8850 "configure"
8851 #include "confdefs.h"
8853 #if HAVE_DLFCN_H
8854 #include <dlfcn.h>
8855 #endif
8857 #include <stdio.h>
8859 #ifdef RTLD_GLOBAL
8860 # define LT_DLGLOBAL RTLD_GLOBAL
8861 #else
8862 # ifdef DL_GLOBAL
8863 # define LT_DLGLOBAL DL_GLOBAL
8864 # else
8865 # define LT_DLGLOBAL 0
8866 # endif
8867 #endif
8869 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8870 find out it does not work in some platform. */
8871 #ifndef LT_DLLAZY_OR_NOW
8872 # ifdef RTLD_LAZY
8873 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8874 # else
8875 # ifdef DL_LAZY
8876 # define LT_DLLAZY_OR_NOW DL_LAZY
8877 # else
8878 # ifdef RTLD_NOW
8879 # define LT_DLLAZY_OR_NOW RTLD_NOW
8880 # else
8881 # ifdef DL_NOW
8882 # define LT_DLLAZY_OR_NOW DL_NOW
8883 # else
8884 # define LT_DLLAZY_OR_NOW 0
8885 # endif
8886 # endif
8887 # endif
8888 # endif
8889 #endif
8891 #ifdef __cplusplus
8892 extern "C" void exit (int);
8893 #endif
8895 void fnord() { int i=42;}
8896 int main ()
8897 {
8898 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8899 int status = $lt_dlunknown;
8901 if (self)
8902 {
8903 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8904 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8905 /* dlclose (self); */
8906 }
8907 else
8908 puts (dlerror ());
8910 exit (status);
8911 }
8912 EOF
8913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8914 (eval $ac_link) 2>&5
8915 ac_status=$?
8916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8918 (./conftest; exit; ) >&5 2>/dev/null
8919 lt_status=$?
8920 case x$lt_status in
8921 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8922 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8923 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
8924 esac
8925 else :
8926 # compilation failed
8927 lt_cv_dlopen_self=no
8928 fi
8929 fi
8930 rm -fr conftest*
8933 fi
8934 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8935 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8937 if test "x$lt_cv_dlopen_self" = xyes; then
8938 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
8939 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8940 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8941 if test "${lt_cv_dlopen_self_static+set}" = set; then
8942 echo $ECHO_N "(cached) $ECHO_C" >&6
8943 else
8944 if test "$cross_compiling" = yes; then :
8945 lt_cv_dlopen_self_static=cross
8946 else
8947 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8948 lt_status=$lt_dlunknown
8949 cat > conftest.$ac_ext <<EOF
8950 #line 8950 "configure"
8951 #include "confdefs.h"
8953 #if HAVE_DLFCN_H
8954 #include <dlfcn.h>
8955 #endif
8957 #include <stdio.h>
8959 #ifdef RTLD_GLOBAL
8960 # define LT_DLGLOBAL RTLD_GLOBAL
8961 #else
8962 # ifdef DL_GLOBAL
8963 # define LT_DLGLOBAL DL_GLOBAL
8964 # else
8965 # define LT_DLGLOBAL 0
8966 # endif
8967 #endif
8969 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8970 find out it does not work in some platform. */
8971 #ifndef LT_DLLAZY_OR_NOW
8972 # ifdef RTLD_LAZY
8973 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8974 # else
8975 # ifdef DL_LAZY
8976 # define LT_DLLAZY_OR_NOW DL_LAZY
8977 # else
8978 # ifdef RTLD_NOW
8979 # define LT_DLLAZY_OR_NOW RTLD_NOW
8980 # else
8981 # ifdef DL_NOW
8982 # define LT_DLLAZY_OR_NOW DL_NOW
8983 # else
8984 # define LT_DLLAZY_OR_NOW 0
8985 # endif
8986 # endif
8987 # endif
8988 # endif
8989 #endif
8991 #ifdef __cplusplus
8992 extern "C" void exit (int);
8993 #endif
8995 void fnord() { int i=42;}
8996 int main ()
8997 {
8998 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8999 int status = $lt_dlunknown;
9001 if (self)
9002 {
9003 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9004 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9005 /* dlclose (self); */
9006 }
9007 else
9008 puts (dlerror ());
9010 exit (status);
9011 }
9012 EOF
9013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9014 (eval $ac_link) 2>&5
9015 ac_status=$?
9016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9018 (./conftest; exit; ) >&5 2>/dev/null
9019 lt_status=$?
9020 case x$lt_status in
9021 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9022 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9023 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9024 esac
9025 else :
9026 # compilation failed
9027 lt_cv_dlopen_self_static=no
9028 fi
9029 fi
9030 rm -fr conftest*
9033 fi
9034 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9035 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9036 fi
9038 CPPFLAGS="$save_CPPFLAGS"
9039 LDFLAGS="$save_LDFLAGS"
9040 LIBS="$save_LIBS"
9041 ;;
9042 esac
9044 case $lt_cv_dlopen_self in
9045 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9046 *) enable_dlopen_self=unknown ;;
9047 esac
9049 case $lt_cv_dlopen_self_static in
9050 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9051 *) enable_dlopen_self_static=unknown ;;
9052 esac
9053 fi
9056 # Report which library types will actually be built
9057 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9058 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9059 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9060 echo "${ECHO_T}$can_build_shared" >&6
9062 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9063 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9064 test "$can_build_shared" = "no" && enable_shared=no
9066 # On AIX, shared libraries and static libraries use the same namespace, and
9067 # are all built from PIC.
9068 case $host_os in
9069 aix3*)
9070 test "$enable_shared" = yes && enable_static=no
9071 if test -n "$RANLIB"; then
9072 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9073 postinstall_cmds='$RANLIB $lib'
9074 fi
9075 ;;
9077 aix4* | aix5*)
9078 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9079 test "$enable_shared" = yes && enable_static=no
9080 fi
9081 ;;
9082 esac
9083 echo "$as_me:$LINENO: result: $enable_shared" >&5
9084 echo "${ECHO_T}$enable_shared" >&6
9086 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9087 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9088 # Make sure either enable_shared or enable_static is yes.
9089 test "$enable_shared" = yes || enable_static=yes
9090 echo "$as_me:$LINENO: result: $enable_static" >&5
9091 echo "${ECHO_T}$enable_static" >&6
9093 # The else clause should only fire when bootstrapping the
9094 # libtool distribution, otherwise you forgot to ship ltmain.sh
9095 # with your package, and you will get complaints that there are
9096 # no rules to generate ltmain.sh.
9097 if test -f "$ltmain"; then
9098 # See if we are running on zsh, and set the options which allow our commands through
9099 # without removal of \ escapes.
9100 if test -n "${ZSH_VERSION+set}" ; then
9101 setopt NO_GLOB_SUBST
9102 fi
9103 # Now quote all the things that may contain metacharacters while being
9104 # careful not to overquote the AC_SUBSTed values. We take copies of the
9105 # variables and quote the copies for generation of the libtool script.
9106 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9107 SED SHELL STRIP \
9108 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9109 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9110 deplibs_check_method reload_flag reload_cmds need_locks \
9111 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9112 lt_cv_sys_global_symbol_to_c_name_address \
9113 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9114 old_postinstall_cmds old_postuninstall_cmds \
9115 compiler \
9116 CC \
9117 LD \
9118 lt_prog_compiler_wl \
9119 lt_prog_compiler_pic \
9120 lt_prog_compiler_static \
9121 lt_prog_compiler_no_builtin_flag \
9122 export_dynamic_flag_spec \
9123 thread_safe_flag_spec \
9124 whole_archive_flag_spec \
9125 enable_shared_with_static_runtimes \
9126 old_archive_cmds \
9127 old_archive_from_new_cmds \
9128 predep_objects \
9129 postdep_objects \
9130 predeps \
9131 postdeps \
9132 compiler_lib_search_path \
9133 archive_cmds \
9134 archive_expsym_cmds \
9135 postinstall_cmds \
9136 postuninstall_cmds \
9137 old_archive_from_expsyms_cmds \
9138 allow_undefined_flag \
9139 no_undefined_flag \
9140 export_symbols_cmds \
9141 hardcode_libdir_flag_spec \
9142 hardcode_libdir_flag_spec_ld \
9143 hardcode_libdir_separator \
9144 hardcode_automatic \
9145 module_cmds \
9146 module_expsym_cmds \
9147 lt_cv_prog_compiler_c_o \
9148 exclude_expsyms \
9149 include_expsyms; do
9151 case $var in
9152 old_archive_cmds | \
9153 old_archive_from_new_cmds | \
9154 archive_cmds | \
9155 archive_expsym_cmds | \
9156 module_cmds | \
9157 module_expsym_cmds | \
9158 old_archive_from_expsyms_cmds | \
9159 export_symbols_cmds | \
9160 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9161 postinstall_cmds | postuninstall_cmds | \
9162 old_postinstall_cmds | old_postuninstall_cmds | \
9163 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9164 # Double-quote double-evaled strings.
9165 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9166 ;;
9167 *)
9168 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9169 ;;
9170 esac
9171 done
9173 case $lt_echo in
9174 *'\$0 --fallback-echo"')
9175 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9176 ;;
9177 esac
9179 cfgfile="${ofile}T"
9180 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9181 $rm -f "$cfgfile"
9182 { echo "$as_me:$LINENO: creating $ofile" >&5
9183 echo "$as_me: creating $ofile" >&6;}
9185 cat <<__EOF__ >> "$cfgfile"
9186 #! $SHELL
9188 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9189 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9190 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9191 #
9192 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9193 # Free Software Foundation, Inc.
9194 #
9195 # This file is part of GNU Libtool:
9196 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9197 #
9198 # This program is free software; you can redistribute it and/or modify
9199 # it under the terms of the GNU General Public License as published by
9200 # the Free Software Foundation; either version 2 of the License, or
9201 # (at your option) any later version.
9202 #
9203 # This program is distributed in the hope that it will be useful, but
9204 # WITHOUT ANY WARRANTY; without even the implied warranty of
9205 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9206 # General Public License for more details.
9207 #
9208 # You should have received a copy of the GNU General Public License
9209 # along with this program; if not, write to the Free Software
9210 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9211 #
9212 # As a special exception to the GNU General Public License, if you
9213 # distribute this file as part of a program that contains a
9214 # configuration script generated by Autoconf, you may include it under
9215 # the same distribution terms that you use for the rest of that program.
9217 # A sed program that does not truncate output.
9218 SED=$lt_SED
9220 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9221 Xsed="$SED -e 1s/^X//"
9223 # The HP-UX ksh and POSIX shell print the target directory to stdout
9224 # if CDPATH is set.
9225 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9227 # The names of the tagged configurations supported by this script.
9228 available_tags=
9230 # ### BEGIN LIBTOOL CONFIG
9232 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9234 # Shell to use when invoking shell scripts.
9235 SHELL=$lt_SHELL
9237 # Whether or not to build shared libraries.
9238 build_libtool_libs=$enable_shared
9240 # Whether or not to build static libraries.
9241 build_old_libs=$enable_static
9243 # Whether or not to add -lc for building shared libraries.
9244 build_libtool_need_lc=$archive_cmds_need_lc
9246 # Whether or not to disallow shared libs when runtime libs are static
9247 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9249 # Whether or not to optimize for fast installation.
9250 fast_install=$enable_fast_install
9252 # The host system.
9253 host_alias=$host_alias
9254 host=$host
9255 host_os=$host_os
9257 # The build system.
9258 build_alias=$build_alias
9259 build=$build
9260 build_os=$build_os
9262 # An echo program that does not interpret backslashes.
9263 echo=$lt_echo
9265 # The archiver.
9266 AR=$lt_AR
9267 AR_FLAGS=$lt_AR_FLAGS
9269 # A C compiler.
9270 LTCC=$lt_LTCC
9272 # LTCC compiler flags.
9273 LTCFLAGS=$lt_LTCFLAGS
9275 # A language-specific compiler.
9276 CC=$lt_compiler
9278 # Is the compiler the GNU C compiler?
9279 with_gcc=$GCC
9281 # An ERE matcher.
9282 EGREP=$lt_EGREP
9284 # The linker used to build libraries.
9285 LD=$lt_LD
9287 # Whether we need hard or soft links.
9288 LN_S=$lt_LN_S
9290 # A BSD-compatible nm program.
9291 NM=$lt_NM
9293 # A symbol stripping program
9294 STRIP=$lt_STRIP
9296 # Used to examine libraries when file_magic_cmd begins "file"
9297 MAGIC_CMD=$MAGIC_CMD
9299 # Used on cygwin: DLL creation program.
9300 DLLTOOL="$DLLTOOL"
9302 # Used on cygwin: object dumper.
9303 OBJDUMP="$OBJDUMP"
9305 # Used on cygwin: assembler.
9306 AS="$AS"
9308 # The name of the directory that contains temporary libtool files.
9309 objdir=$objdir
9311 # How to create reloadable object files.
9312 reload_flag=$lt_reload_flag
9313 reload_cmds=$lt_reload_cmds
9315 # How to pass a linker flag through the compiler.
9316 wl=$lt_lt_prog_compiler_wl
9318 # Object file suffix (normally "o").
9319 objext="$ac_objext"
9321 # Old archive suffix (normally "a").
9322 libext="$libext"
9324 # Shared library suffix (normally ".so").
9325 shrext_cmds='$shrext_cmds'
9327 # Executable file suffix (normally "").
9328 exeext="$exeext"
9330 # Additional compiler flags for building library objects.
9331 pic_flag=$lt_lt_prog_compiler_pic
9332 pic_mode=$pic_mode
9334 # What is the maximum length of a command?
9335 max_cmd_len=$lt_cv_sys_max_cmd_len
9337 # Does compiler simultaneously support -c and -o options?
9338 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9340 # Must we lock files when doing compilation?
9341 need_locks=$lt_need_locks
9343 # Do we need the lib prefix for modules?
9344 need_lib_prefix=$need_lib_prefix
9346 # Do we need a version for libraries?
9347 need_version=$need_version
9349 # Whether dlopen is supported.
9350 dlopen_support=$enable_dlopen
9352 # Whether dlopen of programs is supported.
9353 dlopen_self=$enable_dlopen_self
9355 # Whether dlopen of statically linked programs is supported.
9356 dlopen_self_static=$enable_dlopen_self_static
9358 # Compiler flag to prevent dynamic linking.
9359 link_static_flag=$lt_lt_prog_compiler_static
9361 # Compiler flag to turn off builtin functions.
9362 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9364 # Compiler flag to allow reflexive dlopens.
9365 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9367 # Compiler flag to generate shared objects directly from archives.
9368 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9370 # Compiler flag to generate thread-safe objects.
9371 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9373 # Library versioning type.
9374 version_type=$version_type
9376 # Format of library name prefix.
9377 libname_spec=$lt_libname_spec
9379 # List of archive names. First name is the real one, the rest are links.
9380 # The last name is the one that the linker finds with -lNAME.
9381 library_names_spec=$lt_library_names_spec
9383 # The coded name of the library, if different from the real name.
9384 soname_spec=$lt_soname_spec
9386 # Commands used to build and install an old-style archive.
9387 RANLIB=$lt_RANLIB
9388 old_archive_cmds=$lt_old_archive_cmds
9389 old_postinstall_cmds=$lt_old_postinstall_cmds
9390 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9392 # Create an old-style archive from a shared archive.
9393 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9395 # Create a temporary old-style archive to link instead of a shared archive.
9396 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9398 # Commands used to build and install a shared archive.
9399 archive_cmds=$lt_archive_cmds
9400 archive_expsym_cmds=$lt_archive_expsym_cmds
9401 postinstall_cmds=$lt_postinstall_cmds
9402 postuninstall_cmds=$lt_postuninstall_cmds
9404 # Commands used to build a loadable module (assumed same as above if empty)
9405 module_cmds=$lt_module_cmds
9406 module_expsym_cmds=$lt_module_expsym_cmds
9408 # Commands to strip libraries.
9409 old_striplib=$lt_old_striplib
9410 striplib=$lt_striplib
9412 # Dependencies to place before the objects being linked to create a
9413 # shared library.
9414 predep_objects=$lt_predep_objects
9416 # Dependencies to place after the objects being linked to create a
9417 # shared library.
9418 postdep_objects=$lt_postdep_objects
9420 # Dependencies to place before the objects being linked to create a
9421 # shared library.
9422 predeps=$lt_predeps
9424 # Dependencies to place after the objects being linked to create a
9425 # shared library.
9426 postdeps=$lt_postdeps
9428 # The library search path used internally by the compiler when linking
9429 # a shared library.
9430 compiler_lib_search_path=$lt_compiler_lib_search_path
9432 # Method to check whether dependent libraries are shared objects.
9433 deplibs_check_method=$lt_deplibs_check_method
9435 # Command to use when deplibs_check_method == file_magic.
9436 file_magic_cmd=$lt_file_magic_cmd
9438 # Flag that allows shared libraries with undefined symbols to be built.
9439 allow_undefined_flag=$lt_allow_undefined_flag
9441 # Flag that forces no undefined symbols.
9442 no_undefined_flag=$lt_no_undefined_flag
9444 # Commands used to finish a libtool library installation in a directory.
9445 finish_cmds=$lt_finish_cmds
9447 # Same as above, but a single script fragment to be evaled but not shown.
9448 finish_eval=$lt_finish_eval
9450 # Take the output of nm and produce a listing of raw symbols and C names.
9451 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9453 # Transform the output of nm in a proper C declaration
9454 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9456 # Transform the output of nm in a C name address pair
9457 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9459 # This is the shared library runtime path variable.
9460 runpath_var=$runpath_var
9462 # This is the shared library path variable.
9463 shlibpath_var=$shlibpath_var
9465 # Is shlibpath searched before the hard-coded library search path?
9466 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9468 # How to hardcode a shared library path into an executable.
9469 hardcode_action=$hardcode_action
9471 # Whether we should hardcode library paths into libraries.
9472 hardcode_into_libs=$hardcode_into_libs
9474 # Flag to hardcode \$libdir into a binary during linking.
9475 # This must work even if \$libdir does not exist.
9476 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9478 # If ld is used when linking, flag to hardcode \$libdir into
9479 # a binary during linking. This must work even if \$libdir does
9480 # not exist.
9481 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9483 # Whether we need a single -rpath flag with a separated argument.
9484 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9486 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9487 # resulting binary.
9488 hardcode_direct=$hardcode_direct
9490 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9491 # resulting binary.
9492 hardcode_minus_L=$hardcode_minus_L
9494 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9495 # the resulting binary.
9496 hardcode_shlibpath_var=$hardcode_shlibpath_var
9498 # Set to yes if building a shared library automatically hardcodes DIR into the library
9499 # and all subsequent libraries and executables linked against it.
9500 hardcode_automatic=$hardcode_automatic
9502 # Variables whose values should be saved in libtool wrapper scripts and
9503 # restored at relink time.
9504 variables_saved_for_relink="$variables_saved_for_relink"
9506 # Whether libtool must link a program against all its dependency libraries.
9507 link_all_deplibs=$link_all_deplibs
9509 # Compile-time system search path for libraries
9510 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9512 # Run-time system search path for libraries
9513 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9515 # Fix the shell variable \$srcfile for the compiler.
9516 fix_srcfile_path="$fix_srcfile_path"
9518 # Set to yes if exported symbols are required.
9519 always_export_symbols=$always_export_symbols
9521 # The commands to list exported symbols.
9522 export_symbols_cmds=$lt_export_symbols_cmds
9524 # The commands to extract the exported symbol list from a shared archive.
9525 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9527 # Symbols that should not be listed in the preloaded symbols.
9528 exclude_expsyms=$lt_exclude_expsyms
9530 # Symbols that must always be exported.
9531 include_expsyms=$lt_include_expsyms
9533 # ### END LIBTOOL CONFIG
9535 __EOF__
9538 case $host_os in
9539 aix3*)
9540 cat <<\EOF >> "$cfgfile"
9542 # AIX sometimes has problems with the GCC collect2 program. For some
9543 # reason, if we set the COLLECT_NAMES environment variable, the problems
9544 # vanish in a puff of smoke.
9545 if test "X${COLLECT_NAMES+set}" != Xset; then
9546 COLLECT_NAMES=
9547 export COLLECT_NAMES
9548 fi
9549 EOF
9550 ;;
9551 esac
9553 # We use sed instead of cat because bash on DJGPP gets confused if
9554 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9555 # text mode, it properly converts lines to CR/LF. This bash problem
9556 # is reportedly fixed, but why not run on old versions too?
9557 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9559 mv -f "$cfgfile" "$ofile" || \
9560 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9561 chmod +x "$ofile"
9563 else
9564 # If there is no Makefile yet, we rely on a make rule to execute
9565 # `config.status --recheck' to rerun these tests and create the
9566 # libtool script then.
9567 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9568 if test -f "$ltmain_in"; then
9569 test -f Makefile && make "$ltmain"
9570 fi
9571 fi
9574 ac_ext=c
9575 ac_cpp='$CPP $CPPFLAGS'
9576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9580 CC="$lt_save_CC"
9583 # Check whether --with-tags or --without-tags was given.
9584 if test "${with_tags+set}" = set; then
9585 withval="$with_tags"
9586 tagnames="$withval"
9587 fi;
9589 if test -f "$ltmain" && test -n "$tagnames"; then
9590 if test ! -f "${ofile}"; then
9591 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9592 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9593 fi
9595 if test -z "$LTCC"; then
9596 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9597 if test -z "$LTCC"; then
9598 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9599 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9600 else
9601 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9602 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9603 fi
9604 fi
9605 if test -z "$LTCFLAGS"; then
9606 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9607 fi
9609 # Extract list of available tagged configurations in $ofile.
9610 # Note that this assumes the entire list is on one line.
9611 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9613 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9614 for tagname in $tagnames; do
9615 IFS="$lt_save_ifs"
9616 # Check whether tagname contains only valid characters
9617 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9618 "") ;;
9619 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9620 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9621 { (exit 1); exit 1; }; }
9622 ;;
9623 esac
9625 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9626 then
9627 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9628 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9629 { (exit 1); exit 1; }; }
9630 fi
9632 # Update the list of available tags.
9633 if test -n "$tagname"; then
9634 echo appending configuration tag \"$tagname\" to $ofile
9636 case $tagname in
9637 CXX)
9638 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9639 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9640 (test "X$CXX" != "Xg++"))) ; then
9641 ac_ext=cc
9642 ac_cpp='$CXXCPP $CPPFLAGS'
9643 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9644 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9645 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9650 archive_cmds_need_lc_CXX=no
9651 allow_undefined_flag_CXX=
9652 always_export_symbols_CXX=no
9653 archive_expsym_cmds_CXX=
9654 export_dynamic_flag_spec_CXX=
9655 hardcode_direct_CXX=no
9656 hardcode_libdir_flag_spec_CXX=
9657 hardcode_libdir_flag_spec_ld_CXX=
9658 hardcode_libdir_separator_CXX=
9659 hardcode_minus_L_CXX=no
9660 hardcode_shlibpath_var_CXX=unsupported
9661 hardcode_automatic_CXX=no
9662 module_cmds_CXX=
9663 module_expsym_cmds_CXX=
9664 link_all_deplibs_CXX=unknown
9665 old_archive_cmds_CXX=$old_archive_cmds
9666 no_undefined_flag_CXX=
9667 whole_archive_flag_spec_CXX=
9668 enable_shared_with_static_runtimes_CXX=no
9670 # Dependencies to place before and after the object being linked:
9671 predep_objects_CXX=
9672 postdep_objects_CXX=
9673 predeps_CXX=
9674 postdeps_CXX=
9675 compiler_lib_search_path_CXX=
9677 # Source file extension for C++ test sources.
9678 ac_ext=cpp
9680 # Object file extension for compiled C++ test sources.
9681 objext=o
9682 objext_CXX=$objext
9684 # Code to be used in simple compile tests
9685 lt_simple_compile_test_code="int some_variable = 0;\n"
9687 # Code to be used in simple link tests
9688 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
9690 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9692 # If no C compiler was specified, use CC.
9693 LTCC=${LTCC-"$CC"}
9695 # If no C compiler flags were specified, use CFLAGS.
9696 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9698 # Allow CC to be a program name with arguments.
9699 compiler=$CC
9702 # save warnings/boilerplate of simple test code
9703 ac_outfile=conftest.$ac_objext
9704 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9705 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9706 _lt_compiler_boilerplate=`cat conftest.err`
9707 $rm conftest*
9709 ac_outfile=conftest.$ac_objext
9710 printf "$lt_simple_link_test_code" >conftest.$ac_ext
9711 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9712 _lt_linker_boilerplate=`cat conftest.err`
9713 $rm conftest*
9716 # Allow CC to be a program name with arguments.
9717 lt_save_CC=$CC
9718 lt_save_LD=$LD
9719 lt_save_GCC=$GCC
9720 GCC=$GXX
9721 lt_save_with_gnu_ld=$with_gnu_ld
9722 lt_save_path_LD=$lt_cv_path_LD
9723 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9724 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9725 else
9726 $as_unset lt_cv_prog_gnu_ld
9727 fi
9728 if test -n "${lt_cv_path_LDCXX+set}"; then
9729 lt_cv_path_LD=$lt_cv_path_LDCXX
9730 else
9731 $as_unset lt_cv_path_LD
9732 fi
9733 test -z "${LDCXX+set}" || LD=$LDCXX
9734 CC=${CXX-"c++"}
9735 compiler=$CC
9736 compiler_CXX=$CC
9737 for cc_temp in $compiler""; do
9738 case $cc_temp in
9739 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9740 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9741 \-*) ;;
9742 *) break;;
9743 esac
9744 done
9745 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9748 # We don't want -fno-exception wen compiling C++ code, so set the
9749 # no_builtin_flag separately
9750 if test "$GXX" = yes; then
9751 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9752 else
9753 lt_prog_compiler_no_builtin_flag_CXX=
9754 fi
9756 if test "$GXX" = yes; then
9757 # Set up default GNU C++ configuration
9760 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9761 if test "${with_gnu_ld+set}" = set; then
9762 withval="$with_gnu_ld"
9763 test "$withval" = no || with_gnu_ld=yes
9764 else
9765 with_gnu_ld=no
9766 fi;
9767 ac_prog=ld
9768 if test "$GCC" = yes; then
9769 # Check if gcc -print-prog-name=ld gives a path.
9770 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9771 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9772 case $host in
9773 *-*-mingw*)
9774 # gcc leaves a trailing carriage return which upsets mingw
9775 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9776 *)
9777 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9778 esac
9779 case $ac_prog in
9780 # Accept absolute paths.
9781 [\\/]* | ?:[\\/]*)
9782 re_direlt='/[^/][^/]*/\.\./'
9783 # Canonicalize the pathname of ld
9784 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9785 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9786 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9787 done
9788 test -z "$LD" && LD="$ac_prog"
9789 ;;
9790 "")
9791 # If it fails, then pretend we aren't using GCC.
9792 ac_prog=ld
9793 ;;
9794 *)
9795 # If it is relative, then search for the first ld in PATH.
9796 with_gnu_ld=unknown
9797 ;;
9798 esac
9799 elif test "$with_gnu_ld" = yes; then
9800 echo "$as_me:$LINENO: checking for GNU ld" >&5
9801 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9802 else
9803 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9804 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9805 fi
9806 if test "${lt_cv_path_LD+set}" = set; then
9807 echo $ECHO_N "(cached) $ECHO_C" >&6
9808 else
9809 if test -z "$LD"; then
9810 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9811 for ac_dir in $PATH; do
9812 IFS="$lt_save_ifs"
9813 test -z "$ac_dir" && ac_dir=.
9814 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9815 lt_cv_path_LD="$ac_dir/$ac_prog"
9816 # Check to see if the program is GNU ld. I'd rather use --version,
9817 # but apparently some variants of GNU ld only accept -v.
9818 # Break only if it was the GNU/non-GNU ld that we prefer.
9819 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9820 *GNU* | *'with BFD'*)
9821 test "$with_gnu_ld" != no && break
9822 ;;
9823 *)
9824 test "$with_gnu_ld" != yes && break
9825 ;;
9826 esac
9827 fi
9828 done
9829 IFS="$lt_save_ifs"
9830 else
9831 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9832 fi
9833 fi
9835 LD="$lt_cv_path_LD"
9836 if test -n "$LD"; then
9837 echo "$as_me:$LINENO: result: $LD" >&5
9838 echo "${ECHO_T}$LD" >&6
9839 else
9840 echo "$as_me:$LINENO: result: no" >&5
9841 echo "${ECHO_T}no" >&6
9842 fi
9843 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9844 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9845 { (exit 1); exit 1; }; }
9846 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9847 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9848 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9849 echo $ECHO_N "(cached) $ECHO_C" >&6
9850 else
9851 # I'd rather use --version here, but apparently some GNU lds only accept -v.
9852 case `$LD -v 2>&1 </dev/null` in
9853 *GNU* | *'with BFD'*)
9854 lt_cv_prog_gnu_ld=yes
9855 ;;
9856 *)
9857 lt_cv_prog_gnu_ld=no
9858 ;;
9859 esac
9860 fi
9861 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9862 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9863 with_gnu_ld=$lt_cv_prog_gnu_ld
9867 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9868 # archiving commands below assume that GNU ld is being used.
9869 if test "$with_gnu_ld" = yes; then
9870 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9871 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'
9873 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9874 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9876 # If archive_cmds runs LD, not CC, wlarc should be empty
9877 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9878 # investigate it a little bit more. (MM)
9879 wlarc='${wl}'
9881 # ancient GNU ld didn't support --whole-archive et. al.
9882 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9883 grep 'no-whole-archive' > /dev/null; then
9884 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9885 else
9886 whole_archive_flag_spec_CXX=
9887 fi
9888 else
9889 with_gnu_ld=no
9890 wlarc=
9892 # A generic and very simple default shared library creation
9893 # command for GNU C++ for the case where it uses the native
9894 # linker, instead of GNU ld. If possible, this setting should
9895 # overridden to take advantage of the native linker features on
9896 # the platform it is being used on.
9897 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9898 fi
9900 # Commands to make compiler produce verbose output that lists
9901 # what "hidden" libraries, object files and flags are used when
9902 # linking a shared library.
9903 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9905 else
9906 GXX=no
9907 with_gnu_ld=no
9908 wlarc=
9909 fi
9911 # PORTME: fill in a description of your system's C++ link characteristics
9912 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9913 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9914 ld_shlibs_CXX=yes
9915 case $host_os in
9916 aix3*)
9917 # FIXME: insert proper C++ library support
9918 ld_shlibs_CXX=no
9919 ;;
9920 aix4* | aix5*)
9921 if test "$host_cpu" = ia64; then
9922 # On IA64, the linker does run time linking by default, so we don't
9923 # have to do anything special.
9924 aix_use_runtimelinking=no
9925 exp_sym_flag='-Bexport'
9926 no_entry_flag=""
9927 else
9928 aix_use_runtimelinking=no
9930 # Test if we are trying to use run time linking or normal
9931 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9932 # need to do runtime linking.
9933 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9934 for ld_flag in $LDFLAGS; do
9935 case $ld_flag in
9936 *-brtl*)
9937 aix_use_runtimelinking=yes
9938 break
9939 ;;
9940 esac
9941 done
9942 ;;
9943 esac
9945 exp_sym_flag='-bexport'
9946 no_entry_flag='-bnoentry'
9947 fi
9949 # When large executables or shared objects are built, AIX ld can
9950 # have problems creating the table of contents. If linking a library
9951 # or program results in "error TOC overflow" add -mminimal-toc to
9952 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9953 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9955 archive_cmds_CXX=''
9956 hardcode_direct_CXX=yes
9957 hardcode_libdir_separator_CXX=':'
9958 link_all_deplibs_CXX=yes
9960 if test "$GXX" = yes; then
9961 case $host_os in aix4.[012]|aix4.[012].*)
9962 # We only want to do this on AIX 4.2 and lower, the check
9963 # below for broken collect2 doesn't work under 4.3+
9964 collect2name=`${CC} -print-prog-name=collect2`
9965 if test -f "$collect2name" && \
9966 strings "$collect2name" | grep resolve_lib_name >/dev/null
9967 then
9968 # We have reworked collect2
9969 hardcode_direct_CXX=yes
9970 else
9971 # We have old collect2
9972 hardcode_direct_CXX=unsupported
9973 # It fails to find uninstalled libraries when the uninstalled
9974 # path is not listed in the libpath. Setting hardcode_minus_L
9975 # to unsupported forces relinking
9976 hardcode_minus_L_CXX=yes
9977 hardcode_libdir_flag_spec_CXX='-L$libdir'
9978 hardcode_libdir_separator_CXX=
9979 fi
9980 ;;
9981 esac
9982 shared_flag='-shared'
9983 if test "$aix_use_runtimelinking" = yes; then
9984 shared_flag="$shared_flag "'${wl}-G'
9985 fi
9986 else
9987 # not using gcc
9988 if test "$host_cpu" = ia64; then
9989 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9990 # chokes on -Wl,-G. The following line is correct:
9991 shared_flag='-G'
9992 else
9993 if test "$aix_use_runtimelinking" = yes; then
9994 shared_flag='${wl}-G'
9995 else
9996 shared_flag='${wl}-bM:SRE'
9997 fi
9998 fi
9999 fi
10001 # It seems that -bexpall does not export symbols beginning with
10002 # underscore (_), so it is better to generate a list of symbols to export.
10003 always_export_symbols_CXX=yes
10004 if test "$aix_use_runtimelinking" = yes; then
10005 # Warning - without using the other runtime loading flags (-brtl),
10006 # -berok will link without error, but may produce a broken library.
10007 allow_undefined_flag_CXX='-berok'
10008 # Determine the default libpath from the value encoded in an empty executable.
10009 cat >conftest.$ac_ext <<_ACEOF
10010 /* confdefs.h. */
10011 _ACEOF
10012 cat confdefs.h >>conftest.$ac_ext
10013 cat >>conftest.$ac_ext <<_ACEOF
10014 /* end confdefs.h. */
10016 int
10017 main ()
10018 {
10020 ;
10021 return 0;
10022 }
10023 _ACEOF
10024 rm -f conftest.$ac_objext conftest$ac_exeext
10025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10026 (eval $ac_link) 2>conftest.er1
10027 ac_status=$?
10028 grep -v '^ *+' conftest.er1 >conftest.err
10029 rm -f conftest.er1
10030 cat conftest.err >&5
10031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032 (exit $ac_status); } &&
10033 { ac_try='test -z "$ac_cxx_werror_flag"
10034 || test ! -s conftest.err'
10035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10036 (eval $ac_try) 2>&5
10037 ac_status=$?
10038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039 (exit $ac_status); }; } &&
10040 { ac_try='test -s conftest$ac_exeext'
10041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10042 (eval $ac_try) 2>&5
10043 ac_status=$?
10044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045 (exit $ac_status); }; }; then
10047 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10048 }'`
10049 # Check for a 64-bit object if we didn't find anything.
10050 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; }
10051 }'`; fi
10052 else
10053 echo "$as_me: failed program was:" >&5
10054 sed 's/^/| /' conftest.$ac_ext >&5
10056 fi
10057 rm -f conftest.err conftest.$ac_objext \
10058 conftest$ac_exeext conftest.$ac_ext
10059 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10061 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10063 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10064 else
10065 if test "$host_cpu" = ia64; then
10066 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10067 allow_undefined_flag_CXX="-z nodefs"
10068 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10069 else
10070 # Determine the default libpath from the value encoded in an empty executable.
10071 cat >conftest.$ac_ext <<_ACEOF
10072 /* confdefs.h. */
10073 _ACEOF
10074 cat confdefs.h >>conftest.$ac_ext
10075 cat >>conftest.$ac_ext <<_ACEOF
10076 /* end confdefs.h. */
10078 int
10079 main ()
10080 {
10082 ;
10083 return 0;
10084 }
10085 _ACEOF
10086 rm -f conftest.$ac_objext conftest$ac_exeext
10087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10088 (eval $ac_link) 2>conftest.er1
10089 ac_status=$?
10090 grep -v '^ *+' conftest.er1 >conftest.err
10091 rm -f conftest.er1
10092 cat conftest.err >&5
10093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094 (exit $ac_status); } &&
10095 { ac_try='test -z "$ac_cxx_werror_flag"
10096 || test ! -s conftest.err'
10097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10098 (eval $ac_try) 2>&5
10099 ac_status=$?
10100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101 (exit $ac_status); }; } &&
10102 { ac_try='test -s conftest$ac_exeext'
10103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10104 (eval $ac_try) 2>&5
10105 ac_status=$?
10106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107 (exit $ac_status); }; }; then
10109 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10110 }'`
10111 # Check for a 64-bit object if we didn't find anything.
10112 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; }
10113 }'`; fi
10114 else
10115 echo "$as_me: failed program was:" >&5
10116 sed 's/^/| /' conftest.$ac_ext >&5
10118 fi
10119 rm -f conftest.err conftest.$ac_objext \
10120 conftest$ac_exeext conftest.$ac_ext
10121 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10123 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10124 # Warning - without using the other run time loading flags,
10125 # -berok will link without error, but may produce a broken library.
10126 no_undefined_flag_CXX=' ${wl}-bernotok'
10127 allow_undefined_flag_CXX=' ${wl}-berok'
10128 # Exported symbols can be pulled into shared objects from archives
10129 whole_archive_flag_spec_CXX='$convenience'
10130 archive_cmds_need_lc_CXX=yes
10131 # This is similar to how AIX traditionally builds its shared libraries.
10132 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10133 fi
10134 fi
10135 ;;
10137 beos*)
10138 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10139 allow_undefined_flag_CXX=unsupported
10140 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10141 # support --undefined. This deserves some investigation. FIXME
10142 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10143 else
10144 ld_shlibs_CXX=no
10145 fi
10146 ;;
10148 chorus*)
10149 case $cc_basename in
10150 *)
10151 # FIXME: insert proper C++ library support
10152 ld_shlibs_CXX=no
10153 ;;
10154 esac
10155 ;;
10157 cygwin* | mingw* | pw32*)
10158 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10159 # as there is no search path for DLLs.
10160 hardcode_libdir_flag_spec_CXX='-L$libdir'
10161 allow_undefined_flag_CXX=unsupported
10162 always_export_symbols_CXX=no
10163 enable_shared_with_static_runtimes_CXX=yes
10165 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10166 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10167 # If the export-symbols file already is a .def file (1st line
10168 # is EXPORTS), use it as is; otherwise, prepend...
10169 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10170 cp $export_symbols $output_objdir/$soname.def;
10171 else
10172 echo EXPORTS > $output_objdir/$soname.def;
10173 cat $export_symbols >> $output_objdir/$soname.def;
10174 fi~
10175 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10176 else
10177 ld_shlibs_CXX=no
10178 fi
10179 ;;
10180 darwin* | rhapsody*)
10181 case $host_os in
10182 rhapsody* | darwin1.[012])
10183 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10184 ;;
10185 *) # Darwin 1.3 on
10186 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10187 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10188 else
10189 case ${MACOSX_DEPLOYMENT_TARGET} in
10190 10.[012])
10191 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10192 ;;
10193 10.*)
10194 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10195 ;;
10196 esac
10197 fi
10198 ;;
10199 esac
10200 archive_cmds_need_lc_CXX=no
10201 hardcode_direct_CXX=no
10202 hardcode_automatic_CXX=yes
10203 hardcode_shlibpath_var_CXX=unsupported
10204 whole_archive_flag_spec_CXX=''
10205 link_all_deplibs_CXX=yes
10207 if test "$GXX" = yes ; then
10208 lt_int_apple_cc_single_mod=no
10209 output_verbose_link_cmd='echo'
10210 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10211 lt_int_apple_cc_single_mod=yes
10212 fi
10213 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10214 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10215 else
10216 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10217 fi
10218 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10219 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10220 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10221 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}'
10222 else
10223 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10224 fi
10225 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}'
10226 else
10227 case $cc_basename in
10228 xlc*)
10229 output_verbose_link_cmd='echo'
10230 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10231 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10232 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10233 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10234 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}'
10235 ;;
10236 *)
10237 ld_shlibs_CXX=no
10238 ;;
10239 esac
10240 fi
10241 ;;
10243 dgux*)
10244 case $cc_basename in
10245 ec++*)
10246 # FIXME: insert proper C++ library support
10247 ld_shlibs_CXX=no
10248 ;;
10249 ghcx*)
10250 # Green Hills C++ Compiler
10251 # FIXME: insert proper C++ library support
10252 ld_shlibs_CXX=no
10253 ;;
10254 *)
10255 # FIXME: insert proper C++ library support
10256 ld_shlibs_CXX=no
10257 ;;
10258 esac
10259 ;;
10260 freebsd[12]*)
10261 # C++ shared libraries reported to be fairly broken before switch to ELF
10262 ld_shlibs_CXX=no
10263 ;;
10264 freebsd-elf*)
10265 archive_cmds_need_lc_CXX=no
10266 ;;
10267 freebsd* | kfreebsd*-gnu | dragonfly*)
10268 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10269 # conventions
10270 ld_shlibs_CXX=yes
10271 ;;
10272 gnu*)
10273 ;;
10274 hpux9*)
10275 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10276 hardcode_libdir_separator_CXX=:
10277 export_dynamic_flag_spec_CXX='${wl}-E'
10278 hardcode_direct_CXX=yes
10279 hardcode_minus_L_CXX=yes # Not in the search PATH,
10280 # but as the default
10281 # location of the library.
10283 case $cc_basename in
10284 CC*)
10285 # FIXME: insert proper C++ library support
10286 ld_shlibs_CXX=no
10287 ;;
10288 aCC*)
10289 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'
10290 # Commands to make compiler produce verbose output that lists
10291 # what "hidden" libraries, object files and flags are used when
10292 # linking a shared library.
10293 #
10294 # There doesn't appear to be a way to prevent this compiler from
10295 # explicitly linking system object files so we need to strip them
10296 # from the output so that they don't get included in the library
10297 # dependencies.
10298 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'
10299 ;;
10300 *)
10301 if test "$GXX" = yes; then
10302 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'
10303 else
10304 # FIXME: insert proper C++ library support
10305 ld_shlibs_CXX=no
10306 fi
10307 ;;
10308 esac
10309 ;;
10310 hpux10*|hpux11*)
10311 if test $with_gnu_ld = no; then
10312 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10313 hardcode_libdir_separator_CXX=:
10315 case $host_cpu in
10316 hppa*64*|ia64*)
10317 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10318 ;;
10319 *)
10320 export_dynamic_flag_spec_CXX='${wl}-E'
10321 ;;
10322 esac
10323 fi
10324 case $host_cpu in
10325 hppa*64*|ia64*)
10326 hardcode_direct_CXX=no
10327 hardcode_shlibpath_var_CXX=no
10328 ;;
10329 *)
10330 hardcode_direct_CXX=yes
10331 hardcode_minus_L_CXX=yes # Not in the search PATH,
10332 # but as the default
10333 # location of the library.
10334 ;;
10335 esac
10337 case $cc_basename in
10338 CC*)
10339 # FIXME: insert proper C++ library support
10340 ld_shlibs_CXX=no
10341 ;;
10342 aCC*)
10343 case $host_cpu in
10344 hppa*64*)
10345 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10346 ;;
10347 ia64*)
10348 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10349 ;;
10350 *)
10351 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10352 ;;
10353 esac
10354 # Commands to make compiler produce verbose output that lists
10355 # what "hidden" libraries, object files and flags are used when
10356 # linking a shared library.
10357 #
10358 # There doesn't appear to be a way to prevent this compiler from
10359 # explicitly linking system object files so we need to strip them
10360 # from the output so that they don't get included in the library
10361 # dependencies.
10362 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'
10363 ;;
10364 *)
10365 if test "$GXX" = yes; then
10366 if test $with_gnu_ld = no; then
10367 case $host_cpu in
10368 hppa*64*)
10369 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10370 ;;
10371 ia64*)
10372 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10373 ;;
10374 *)
10375 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'
10376 ;;
10377 esac
10378 fi
10379 else
10380 # FIXME: insert proper C++ library support
10381 ld_shlibs_CXX=no
10382 fi
10383 ;;
10384 esac
10385 ;;
10386 interix3*)
10387 hardcode_direct_CXX=no
10388 hardcode_shlibpath_var_CXX=no
10389 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10390 export_dynamic_flag_spec_CXX='${wl}-E'
10391 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10392 # Instead, shared libraries are loaded at an image base (0x10000000 by
10393 # default) and relocated if they conflict, which is a slow very memory
10394 # consuming and fragmenting process. To avoid this, we pick a random,
10395 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10396 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10397 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10398 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10399 ;;
10400 irix5* | irix6*)
10401 case $cc_basename in
10402 CC*)
10403 # SGI C++
10404 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10406 # Archives containing C++ object files must be created using
10407 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10408 # necessary to make sure instantiated templates are included
10409 # in the archive.
10410 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10411 ;;
10412 *)
10413 if test "$GXX" = yes; then
10414 if test "$with_gnu_ld" = no; then
10415 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10416 else
10417 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'
10418 fi
10419 fi
10420 link_all_deplibs_CXX=yes
10421 ;;
10422 esac
10423 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10424 hardcode_libdir_separator_CXX=:
10425 ;;
10426 linux*)
10427 case $cc_basename in
10428 KCC*)
10429 # Kuck and Associates, Inc. (KAI) C++ Compiler
10431 # KCC will only create a shared library if the output file
10432 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10433 # to its proper name (with version) after linking.
10434 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'
10435 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'
10436 # Commands to make compiler produce verbose output that lists
10437 # what "hidden" libraries, object files and flags are used when
10438 # linking a shared library.
10439 #
10440 # There doesn't appear to be a way to prevent this compiler from
10441 # explicitly linking system object files so we need to strip them
10442 # from the output so that they don't get included in the library
10443 # dependencies.
10444 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'
10446 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10447 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10449 # Archives containing C++ object files must be created using
10450 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10451 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10452 ;;
10453 icpc*)
10454 # Intel C++
10455 with_gnu_ld=yes
10456 # version 8.0 and above of icpc choke on multiply defined symbols
10457 # if we add $predep_objects and $postdep_objects, however 7.1 and
10458 # earlier do not add the objects themselves.
10459 case `$CC -V 2>&1` in
10460 *"Version 7."*)
10461 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10462 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'
10463 ;;
10464 *) # Version 8.0 or newer
10465 tmp_idyn=
10466 case $host_cpu in
10467 ia64*) tmp_idyn=' -i_dynamic';;
10468 esac
10469 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10470 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10471 ;;
10472 esac
10473 archive_cmds_need_lc_CXX=no
10474 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10475 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10476 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10477 ;;
10478 pgCC*)
10479 # Portland Group C++ compiler
10480 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10481 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
10483 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10484 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10485 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10486 ;;
10487 cxx*)
10488 # Compaq C++
10489 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10490 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'
10492 runpath_var=LD_RUN_PATH
10493 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10494 hardcode_libdir_separator_CXX=:
10496 # Commands to make compiler produce verbose output that lists
10497 # what "hidden" libraries, object files and flags are used when
10498 # linking a shared library.
10499 #
10500 # There doesn't appear to be a way to prevent this compiler from
10501 # explicitly linking system object files so we need to strip them
10502 # from the output so that they don't get included in the library
10503 # dependencies.
10504 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'
10505 ;;
10506 esac
10507 ;;
10508 lynxos*)
10509 # FIXME: insert proper C++ library support
10510 ld_shlibs_CXX=no
10511 ;;
10512 m88k*)
10513 # FIXME: insert proper C++ library support
10514 ld_shlibs_CXX=no
10515 ;;
10516 mvs*)
10517 case $cc_basename in
10518 cxx*)
10519 # FIXME: insert proper C++ library support
10520 ld_shlibs_CXX=no
10521 ;;
10522 *)
10523 # FIXME: insert proper C++ library support
10524 ld_shlibs_CXX=no
10525 ;;
10526 esac
10527 ;;
10528 netbsd*)
10529 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10530 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10531 wlarc=
10532 hardcode_libdir_flag_spec_CXX='-R$libdir'
10533 hardcode_direct_CXX=yes
10534 hardcode_shlibpath_var_CXX=no
10535 fi
10536 # Workaround some broken pre-1.5 toolchains
10537 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10538 ;;
10539 openbsd2*)
10540 # C++ shared libraries are fairly broken
10541 ld_shlibs_CXX=no
10542 ;;
10543 openbsd*)
10544 hardcode_direct_CXX=yes
10545 hardcode_shlibpath_var_CXX=no
10546 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10547 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10548 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10549 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10550 export_dynamic_flag_spec_CXX='${wl}-E'
10551 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10552 fi
10553 output_verbose_link_cmd='echo'
10554 ;;
10555 osf3*)
10556 case $cc_basename in
10557 KCC*)
10558 # Kuck and Associates, Inc. (KAI) C++ Compiler
10560 # KCC will only create a shared library if the output file
10561 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10562 # to its proper name (with version) after linking.
10563 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'
10565 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10566 hardcode_libdir_separator_CXX=:
10568 # Archives containing C++ object files must be created using
10569 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10570 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10572 ;;
10573 RCC*)
10574 # Rational C++ 2.4.1
10575 # FIXME: insert proper C++ library support
10576 ld_shlibs_CXX=no
10577 ;;
10578 cxx*)
10579 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10580 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10582 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10583 hardcode_libdir_separator_CXX=:
10585 # Commands to make compiler produce verbose output that lists
10586 # what "hidden" libraries, object files and flags are used when
10587 # linking a shared library.
10588 #
10589 # There doesn't appear to be a way to prevent this compiler from
10590 # explicitly linking system object files so we need to strip them
10591 # from the output so that they don't get included in the library
10592 # dependencies.
10593 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'
10594 ;;
10595 *)
10596 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10597 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10598 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10600 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10601 hardcode_libdir_separator_CXX=:
10603 # Commands to make compiler produce verbose output that lists
10604 # what "hidden" libraries, object files and flags are used when
10605 # linking a shared library.
10606 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10608 else
10609 # FIXME: insert proper C++ library support
10610 ld_shlibs_CXX=no
10611 fi
10612 ;;
10613 esac
10614 ;;
10615 osf4* | osf5*)
10616 case $cc_basename in
10617 KCC*)
10618 # Kuck and Associates, Inc. (KAI) C++ Compiler
10620 # KCC will only create a shared library if the output file
10621 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10622 # to its proper name (with version) after linking.
10623 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'
10625 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10626 hardcode_libdir_separator_CXX=:
10628 # Archives containing C++ object files must be created using
10629 # the KAI C++ compiler.
10630 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10631 ;;
10632 RCC*)
10633 # Rational C++ 2.4.1
10634 # FIXME: insert proper C++ library support
10635 ld_shlibs_CXX=no
10636 ;;
10637 cxx*)
10638 allow_undefined_flag_CXX=' -expect_unresolved \*'
10639 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10640 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10641 echo "-hidden">> $lib.exp~
10642 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
10643 $rm $lib.exp'
10645 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10646 hardcode_libdir_separator_CXX=:
10648 # Commands to make compiler produce verbose output that lists
10649 # what "hidden" libraries, object files and flags are used when
10650 # linking a shared library.
10651 #
10652 # There doesn't appear to be a way to prevent this compiler from
10653 # explicitly linking system object files so we need to strip them
10654 # from the output so that they don't get included in the library
10655 # dependencies.
10656 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'
10657 ;;
10658 *)
10659 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10660 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10661 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10663 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10664 hardcode_libdir_separator_CXX=:
10666 # Commands to make compiler produce verbose output that lists
10667 # what "hidden" libraries, object files and flags are used when
10668 # linking a shared library.
10669 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10671 else
10672 # FIXME: insert proper C++ library support
10673 ld_shlibs_CXX=no
10674 fi
10675 ;;
10676 esac
10677 ;;
10678 psos*)
10679 # FIXME: insert proper C++ library support
10680 ld_shlibs_CXX=no
10681 ;;
10682 sunos4*)
10683 case $cc_basename in
10684 CC*)
10685 # Sun C++ 4.x
10686 # FIXME: insert proper C++ library support
10687 ld_shlibs_CXX=no
10688 ;;
10689 lcc*)
10690 # Lucid
10691 # FIXME: insert proper C++ library support
10692 ld_shlibs_CXX=no
10693 ;;
10694 *)
10695 # FIXME: insert proper C++ library support
10696 ld_shlibs_CXX=no
10697 ;;
10698 esac
10699 ;;
10700 solaris*)
10701 case $cc_basename in
10702 CC*)
10703 # Sun C++ 4.2, 5.x and Centerline C++
10704 archive_cmds_need_lc_CXX=yes
10705 no_undefined_flag_CXX=' -zdefs'
10706 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10707 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10708 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10710 hardcode_libdir_flag_spec_CXX='-R$libdir'
10711 hardcode_shlibpath_var_CXX=no
10712 case $host_os in
10713 solaris2.[0-5] | solaris2.[0-5].*) ;;
10714 *)
10715 # The C++ compiler is used as linker so we must use $wl
10716 # flag to pass the commands to the underlying system
10717 # linker. We must also pass each convience library through
10718 # to the system linker between allextract/defaultextract.
10719 # The C++ compiler will combine linker options so we
10720 # cannot just pass the convience library names through
10721 # without $wl.
10722 # Supported since Solaris 2.6 (maybe 2.5.1?)
10723 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
10724 ;;
10725 esac
10726 link_all_deplibs_CXX=yes
10728 output_verbose_link_cmd='echo'
10730 # Archives containing C++ object files must be created using
10731 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10732 # necessary to make sure instantiated templates are included
10733 # in the archive.
10734 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10735 ;;
10736 gcx*)
10737 # Green Hills C++ Compiler
10738 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10740 # The C++ compiler must be used to create the archive.
10741 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10742 ;;
10743 *)
10744 # GNU C++ compiler with Solaris linker
10745 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10746 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10747 if $CC --version | grep -v '^2\.7' > /dev/null; then
10748 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10749 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10750 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10752 # Commands to make compiler produce verbose output that lists
10753 # what "hidden" libraries, object files and flags are used when
10754 # linking a shared library.
10755 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10756 else
10757 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10758 # platform.
10759 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10760 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10761 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10763 # Commands to make compiler produce verbose output that lists
10764 # what "hidden" libraries, object files and flags are used when
10765 # linking a shared library.
10766 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10767 fi
10769 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10770 fi
10771 ;;
10772 esac
10773 ;;
10774 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10775 no_undefined_flag_CXX='${wl}-z,text'
10776 archive_cmds_need_lc_CXX=no
10777 hardcode_shlibpath_var_CXX=no
10778 runpath_var='LD_RUN_PATH'
10780 case $cc_basename in
10781 CC*)
10782 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10783 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10784 ;;
10785 *)
10786 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10787 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10788 ;;
10789 esac
10790 ;;
10791 sysv5* | sco3.2v5* | sco5v6*)
10792 # Note: We can NOT use -z defs as we might desire, because we do not
10793 # link with -lc, and that would cause any symbols used from libc to
10794 # always be unresolved, which means just about no library would
10795 # ever link correctly. If we're not using GNU ld we use -z text
10796 # though, which does catch some bad symbols but isn't as heavy-handed
10797 # as -z defs.
10798 # For security reasons, it is highly recommended that you always
10799 # use absolute paths for naming shared libraries, and exclude the
10800 # DT_RUNPATH tag from executables and libraries. But doing so
10801 # requires that you compile everything twice, which is a pain.
10802 # So that behaviour is only enabled if SCOABSPATH is set to a
10803 # non-empty value in the environment. Most likely only useful for
10804 # creating official distributions of packages.
10805 # This is a hack until libtool officially supports absolute path
10806 # names for shared libraries.
10807 no_undefined_flag_CXX='${wl}-z,text'
10808 allow_undefined_flag_CXX='${wl}-z,nodefs'
10809 archive_cmds_need_lc_CXX=no
10810 hardcode_shlibpath_var_CXX=no
10811 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10812 hardcode_libdir_separator_CXX=':'
10813 link_all_deplibs_CXX=yes
10814 export_dynamic_flag_spec_CXX='${wl}-Bexport'
10815 runpath_var='LD_RUN_PATH'
10817 case $cc_basename in
10818 CC*)
10819 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10820 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10821 ;;
10822 *)
10823 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10824 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10825 ;;
10826 esac
10827 ;;
10828 tandem*)
10829 case $cc_basename in
10830 NCC*)
10831 # NonStop-UX NCC 3.20
10832 # FIXME: insert proper C++ library support
10833 ld_shlibs_CXX=no
10834 ;;
10835 *)
10836 # FIXME: insert proper C++ library support
10837 ld_shlibs_CXX=no
10838 ;;
10839 esac
10840 ;;
10841 vxworks*)
10842 # FIXME: insert proper C++ library support
10843 ld_shlibs_CXX=no
10844 ;;
10845 *)
10846 # FIXME: insert proper C++ library support
10847 ld_shlibs_CXX=no
10848 ;;
10849 esac
10850 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10851 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10852 test "$ld_shlibs_CXX" = no && can_build_shared=no
10854 GCC_CXX="$GXX"
10855 LD_CXX="$LD"
10858 cat > conftest.$ac_ext <<EOF
10859 class Foo
10860 {
10861 public:
10862 Foo (void) { a = 0; }
10863 private:
10864 int a;
10865 };
10866 EOF
10868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10869 (eval $ac_compile) 2>&5
10870 ac_status=$?
10871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872 (exit $ac_status); }; then
10873 # Parse the compiler output and extract the necessary
10874 # objects, libraries and library flags.
10876 # Sentinel used to keep track of whether or not we are before
10877 # the conftest object file.
10878 pre_test_object_deps_done=no
10880 # The `*' in the case matches for architectures that use `case' in
10881 # $output_verbose_cmd can trigger glob expansion during the loop
10882 # eval without this substitution.
10883 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
10885 for p in `eval $output_verbose_link_cmd`; do
10886 case $p in
10888 -L* | -R* | -l*)
10889 # Some compilers place space between "-{L,R}" and the path.
10890 # Remove the space.
10891 if test $p = "-L" \
10892 || test $p = "-R"; then
10893 prev=$p
10894 continue
10895 else
10896 prev=
10897 fi
10899 if test "$pre_test_object_deps_done" = no; then
10900 case $p in
10901 -L* | -R*)
10902 # Internal compiler library paths should come after those
10903 # provided the user. The postdeps already come after the
10904 # user supplied libs so there is no need to process them.
10905 if test -z "$compiler_lib_search_path_CXX"; then
10906 compiler_lib_search_path_CXX="${prev}${p}"
10907 else
10908 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10909 fi
10910 ;;
10911 # The "-l" case would never come before the object being
10912 # linked, so don't bother handling this case.
10913 esac
10914 else
10915 if test -z "$postdeps_CXX"; then
10916 postdeps_CXX="${prev}${p}"
10917 else
10918 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10919 fi
10920 fi
10921 ;;
10923 *.$objext)
10924 # This assumes that the test object file only shows up
10925 # once in the compiler output.
10926 if test "$p" = "conftest.$objext"; then
10927 pre_test_object_deps_done=yes
10928 continue
10929 fi
10931 if test "$pre_test_object_deps_done" = no; then
10932 if test -z "$predep_objects_CXX"; then
10933 predep_objects_CXX="$p"
10934 else
10935 predep_objects_CXX="$predep_objects_CXX $p"
10936 fi
10937 else
10938 if test -z "$postdep_objects_CXX"; then
10939 postdep_objects_CXX="$p"
10940 else
10941 postdep_objects_CXX="$postdep_objects_CXX $p"
10942 fi
10943 fi
10944 ;;
10946 *) ;; # Ignore the rest.
10948 esac
10949 done
10951 # Clean up.
10952 rm -f a.out a.exe
10953 else
10954 echo "libtool.m4: error: problem compiling CXX test program"
10955 fi
10957 $rm -f confest.$objext
10959 # PORTME: override above test on systems where it is broken
10960 case $host_os in
10961 interix3*)
10962 # Interix 3.5 installs completely hosed .la files for C++, so rather than
10963 # hack all around it, let's just trust "g++" to DTRT.
10964 predep_objects_CXX=
10965 postdep_objects_CXX=
10966 postdeps_CXX=
10967 ;;
10969 solaris*)
10970 case $cc_basename in
10971 CC*)
10972 # Adding this requires a known-good setup of shared libraries for
10973 # Sun compiler versions before 5.6, else PIC objects from an old
10974 # archive will be linked into the output, leading to subtle bugs.
10975 postdeps_CXX='-lCstd -lCrun'
10976 ;;
10977 esac
10978 ;;
10979 esac
10982 case " $postdeps_CXX " in
10983 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10984 esac
10986 lt_prog_compiler_wl_CXX=
10987 lt_prog_compiler_pic_CXX=
10988 lt_prog_compiler_static_CXX=
10990 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10991 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10993 # C++ specific cases for pic, static, wl, etc.
10994 if test "$GXX" = yes; then
10995 lt_prog_compiler_wl_CXX='-Wl,'
10996 lt_prog_compiler_static_CXX='-static'
10998 case $host_os in
10999 aix*)
11000 # All AIX code is PIC.
11001 if test "$host_cpu" = ia64; then
11002 # AIX 5 now supports IA64 processor
11003 lt_prog_compiler_static_CXX='-Bstatic'
11004 fi
11005 ;;
11006 amigaos*)
11007 # FIXME: we need at least 68020 code to build shared libraries, but
11008 # adding the `-m68020' flag to GCC prevents building anything better,
11009 # like `-m68040'.
11010 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11011 ;;
11012 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11013 # PIC is the default for these OSes.
11014 ;;
11015 mingw* | os2* | pw32*)
11016 # This hack is so that the source file can tell whether it is being
11017 # built for inclusion in a dll (and should export symbols for example).
11018 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11019 ;;
11020 darwin* | rhapsody*)
11021 # PIC is the default on this platform
11022 # Common symbols not allowed in MH_DYLIB files
11023 lt_prog_compiler_pic_CXX='-fno-common'
11024 ;;
11025 *djgpp*)
11026 # DJGPP does not support shared libraries at all
11027 lt_prog_compiler_pic_CXX=
11028 ;;
11029 interix3*)
11030 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11031 # Instead, we relocate shared libraries at runtime.
11032 ;;
11033 sysv4*MP*)
11034 if test -d /usr/nec; then
11035 lt_prog_compiler_pic_CXX=-Kconform_pic
11036 fi
11037 ;;
11038 hpux*)
11039 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11040 # not for PA HP-UX.
11041 case $host_cpu in
11042 hppa*64*|ia64*)
11043 ;;
11044 *)
11045 lt_prog_compiler_pic_CXX='-fPIC'
11046 ;;
11047 esac
11048 ;;
11049 *)
11050 lt_prog_compiler_pic_CXX='-fPIC'
11051 ;;
11052 esac
11053 else
11054 case $host_os in
11055 aix4* | aix5*)
11056 # All AIX code is PIC.
11057 if test "$host_cpu" = ia64; then
11058 # AIX 5 now supports IA64 processor
11059 lt_prog_compiler_static_CXX='-Bstatic'
11060 else
11061 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11062 fi
11063 ;;
11064 chorus*)
11065 case $cc_basename in
11066 cxch68*)
11067 # Green Hills C++ Compiler
11068 # _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"
11069 ;;
11070 esac
11071 ;;
11072 darwin*)
11073 # PIC is the default on this platform
11074 # Common symbols not allowed in MH_DYLIB files
11075 case $cc_basename in
11076 xlc*)
11077 lt_prog_compiler_pic_CXX='-qnocommon'
11078 lt_prog_compiler_wl_CXX='-Wl,'
11079 ;;
11080 esac
11081 ;;
11082 dgux*)
11083 case $cc_basename in
11084 ec++*)
11085 lt_prog_compiler_pic_CXX='-KPIC'
11086 ;;
11087 ghcx*)
11088 # Green Hills C++ Compiler
11089 lt_prog_compiler_pic_CXX='-pic'
11090 ;;
11091 *)
11092 ;;
11093 esac
11094 ;;
11095 freebsd* | kfreebsd*-gnu | dragonfly*)
11096 # FreeBSD uses GNU C++
11097 ;;
11098 hpux9* | hpux10* | hpux11*)
11099 case $cc_basename in
11100 CC*)
11101 lt_prog_compiler_wl_CXX='-Wl,'
11102 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11103 if test "$host_cpu" != ia64; then
11104 lt_prog_compiler_pic_CXX='+Z'
11105 fi
11106 ;;
11107 aCC*)
11108 lt_prog_compiler_wl_CXX='-Wl,'
11109 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11110 case $host_cpu in
11111 hppa*64*|ia64*)
11112 # +Z the default
11113 ;;
11114 *)
11115 lt_prog_compiler_pic_CXX='+Z'
11116 ;;
11117 esac
11118 ;;
11119 *)
11120 ;;
11121 esac
11122 ;;
11123 interix*)
11124 # This is c89, which is MS Visual C++ (no shared libs)
11125 # Anyone wants to do a port?
11126 ;;
11127 irix5* | irix6* | nonstopux*)
11128 case $cc_basename in
11129 CC*)
11130 lt_prog_compiler_wl_CXX='-Wl,'
11131 lt_prog_compiler_static_CXX='-non_shared'
11132 # CC pic flag -KPIC is the default.
11133 ;;
11134 *)
11135 ;;
11136 esac
11137 ;;
11138 linux*)
11139 case $cc_basename in
11140 KCC*)
11141 # KAI C++ Compiler
11142 lt_prog_compiler_wl_CXX='--backend -Wl,'
11143 lt_prog_compiler_pic_CXX='-fPIC'
11144 ;;
11145 icpc* | ecpc*)
11146 # Intel C++
11147 lt_prog_compiler_wl_CXX='-Wl,'
11148 lt_prog_compiler_pic_CXX='-KPIC'
11149 lt_prog_compiler_static_CXX='-static'
11150 ;;
11151 pgCC*)
11152 # Portland Group C++ compiler.
11153 lt_prog_compiler_wl_CXX='-Wl,'
11154 lt_prog_compiler_pic_CXX='-fpic'
11155 lt_prog_compiler_static_CXX='-Bstatic'
11156 ;;
11157 cxx*)
11158 # Compaq C++
11159 # Make sure the PIC flag is empty. It appears that all Alpha
11160 # Linux and Compaq Tru64 Unix objects are PIC.
11161 lt_prog_compiler_pic_CXX=
11162 lt_prog_compiler_static_CXX='-non_shared'
11163 ;;
11164 *)
11165 ;;
11166 esac
11167 ;;
11168 lynxos*)
11169 ;;
11170 m88k*)
11171 ;;
11172 mvs*)
11173 case $cc_basename in
11174 cxx*)
11175 lt_prog_compiler_pic_CXX='-W c,exportall'
11176 ;;
11177 *)
11178 ;;
11179 esac
11180 ;;
11181 netbsd*)
11182 ;;
11183 osf3* | osf4* | osf5*)
11184 case $cc_basename in
11185 KCC*)
11186 lt_prog_compiler_wl_CXX='--backend -Wl,'
11187 ;;
11188 RCC*)
11189 # Rational C++ 2.4.1
11190 lt_prog_compiler_pic_CXX='-pic'
11191 ;;
11192 cxx*)
11193 # Digital/Compaq C++
11194 lt_prog_compiler_wl_CXX='-Wl,'
11195 # Make sure the PIC flag is empty. It appears that all Alpha
11196 # Linux and Compaq Tru64 Unix objects are PIC.
11197 lt_prog_compiler_pic_CXX=
11198 lt_prog_compiler_static_CXX='-non_shared'
11199 ;;
11200 *)
11201 ;;
11202 esac
11203 ;;
11204 psos*)
11205 ;;
11206 solaris*)
11207 case $cc_basename in
11208 CC*)
11209 # Sun C++ 4.2, 5.x and Centerline C++
11210 lt_prog_compiler_pic_CXX='-KPIC'
11211 lt_prog_compiler_static_CXX='-Bstatic'
11212 lt_prog_compiler_wl_CXX='-Qoption ld '
11213 ;;
11214 gcx*)
11215 # Green Hills C++ Compiler
11216 lt_prog_compiler_pic_CXX='-PIC'
11217 ;;
11218 *)
11219 ;;
11220 esac
11221 ;;
11222 sunos4*)
11223 case $cc_basename in
11224 CC*)
11225 # Sun C++ 4.x
11226 lt_prog_compiler_pic_CXX='-pic'
11227 lt_prog_compiler_static_CXX='-Bstatic'
11228 ;;
11229 lcc*)
11230 # Lucid
11231 lt_prog_compiler_pic_CXX='-pic'
11232 ;;
11233 *)
11234 ;;
11235 esac
11236 ;;
11237 tandem*)
11238 case $cc_basename in
11239 NCC*)
11240 # NonStop-UX NCC 3.20
11241 lt_prog_compiler_pic_CXX='-KPIC'
11242 ;;
11243 *)
11244 ;;
11245 esac
11246 ;;
11247 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11248 case $cc_basename in
11249 CC*)
11250 lt_prog_compiler_wl_CXX='-Wl,'
11251 lt_prog_compiler_pic_CXX='-KPIC'
11252 lt_prog_compiler_static_CXX='-Bstatic'
11253 ;;
11254 esac
11255 ;;
11256 vxworks*)
11257 ;;
11258 *)
11259 lt_prog_compiler_can_build_shared_CXX=no
11260 ;;
11261 esac
11262 fi
11264 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11265 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11267 #
11268 # Check to make sure the PIC flag actually works.
11269 #
11270 if test -n "$lt_prog_compiler_pic_CXX"; then
11272 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11273 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11274 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11275 echo $ECHO_N "(cached) $ECHO_C" >&6
11276 else
11277 lt_prog_compiler_pic_works_CXX=no
11278 ac_outfile=conftest.$ac_objext
11279 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11280 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11281 # Insert the option either (1) after the last *FLAGS variable, or
11282 # (2) before a word containing "conftest.", or (3) at the end.
11283 # Note that $ac_compile itself does not contain backslashes and begins
11284 # with a dollar sign (not a hyphen), so the echo should work correctly.
11285 # The option is referenced via a variable to avoid confusing sed.
11286 lt_compile=`echo "$ac_compile" | $SED \
11287 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11288 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11289 -e 's:$: $lt_compiler_flag:'`
11290 (eval echo "\"\$as_me:11290: $lt_compile\"" >&5)
11291 (eval "$lt_compile" 2>conftest.err)
11292 ac_status=$?
11293 cat conftest.err >&5
11294 echo "$as_me:11294: \$? = $ac_status" >&5
11295 if (exit $ac_status) && test -s "$ac_outfile"; then
11296 # The compiler can only warn and ignore the option if not recognized
11297 # So say no if there are warnings other than the usual output.
11298 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11299 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11300 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11301 lt_prog_compiler_pic_works_CXX=yes
11302 fi
11303 fi
11304 $rm conftest*
11306 fi
11307 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11308 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11310 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11311 case $lt_prog_compiler_pic_CXX in
11312 "" | " "*) ;;
11313 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11314 esac
11315 else
11316 lt_prog_compiler_pic_CXX=
11317 lt_prog_compiler_can_build_shared_CXX=no
11318 fi
11320 fi
11321 case $host_os in
11322 # For platforms which do not support PIC, -DPIC is meaningless:
11323 *djgpp*)
11324 lt_prog_compiler_pic_CXX=
11325 ;;
11326 *)
11327 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11328 ;;
11329 esac
11331 #
11332 # Check to make sure the static flag actually works.
11333 #
11334 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11335 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11336 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11337 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11338 echo $ECHO_N "(cached) $ECHO_C" >&6
11339 else
11340 lt_prog_compiler_static_works_CXX=no
11341 save_LDFLAGS="$LDFLAGS"
11342 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11343 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11344 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11345 # The linker can only warn and ignore the option if not recognized
11346 # So say no if there are warnings
11347 if test -s conftest.err; then
11348 # Append any errors to the config.log.
11349 cat conftest.err 1>&5
11350 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11351 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11352 if diff conftest.exp conftest.er2 >/dev/null; then
11353 lt_prog_compiler_static_works_CXX=yes
11354 fi
11355 else
11356 lt_prog_compiler_static_works_CXX=yes
11357 fi
11358 fi
11359 $rm conftest*
11360 LDFLAGS="$save_LDFLAGS"
11362 fi
11363 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11364 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11366 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11367 :
11368 else
11369 lt_prog_compiler_static_CXX=
11370 fi
11373 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11374 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11375 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11376 echo $ECHO_N "(cached) $ECHO_C" >&6
11377 else
11378 lt_cv_prog_compiler_c_o_CXX=no
11379 $rm -r conftest 2>/dev/null
11380 mkdir conftest
11381 cd conftest
11382 mkdir out
11383 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11385 lt_compiler_flag="-o out/conftest2.$ac_objext"
11386 # Insert the option either (1) after the last *FLAGS variable, or
11387 # (2) before a word containing "conftest.", or (3) at the end.
11388 # Note that $ac_compile itself does not contain backslashes and begins
11389 # with a dollar sign (not a hyphen), so the echo should work correctly.
11390 lt_compile=`echo "$ac_compile" | $SED \
11391 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11392 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11393 -e 's:$: $lt_compiler_flag:'`
11394 (eval echo "\"\$as_me:11394: $lt_compile\"" >&5)
11395 (eval "$lt_compile" 2>out/conftest.err)
11396 ac_status=$?
11397 cat out/conftest.err >&5
11398 echo "$as_me:11398: \$? = $ac_status" >&5
11399 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11400 then
11401 # The compiler can only warn and ignore the option if not recognized
11402 # So say no if there are warnings
11403 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11404 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11405 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11406 lt_cv_prog_compiler_c_o_CXX=yes
11407 fi
11408 fi
11409 chmod u+w . 2>&5
11410 $rm conftest*
11411 # SGI C++ compiler will create directory out/ii_files/ for
11412 # template instantiation
11413 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11414 $rm out/* && rmdir out
11415 cd ..
11416 rmdir conftest
11417 $rm conftest*
11419 fi
11420 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11421 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11424 hard_links="nottested"
11425 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11426 # do not overwrite the value of need_locks provided by the user
11427 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11428 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11429 hard_links=yes
11430 $rm conftest*
11431 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11432 touch conftest.a
11433 ln conftest.a conftest.b 2>&5 || hard_links=no
11434 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11435 echo "$as_me:$LINENO: result: $hard_links" >&5
11436 echo "${ECHO_T}$hard_links" >&6
11437 if test "$hard_links" = no; then
11438 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11439 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11440 need_locks=warn
11441 fi
11442 else
11443 need_locks=no
11444 fi
11446 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11447 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11449 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11450 case $host_os in
11451 aix4* | aix5*)
11452 # If we're using GNU nm, then we don't want the "-C" option.
11453 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11454 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11455 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'
11456 else
11457 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'
11458 fi
11459 ;;
11460 pw32*)
11461 export_symbols_cmds_CXX="$ltdll_cmds"
11462 ;;
11463 cygwin* | mingw*)
11464 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11465 ;;
11466 *)
11467 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11468 ;;
11469 esac
11471 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11472 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11473 test "$ld_shlibs_CXX" = no && can_build_shared=no
11475 #
11476 # Do we need to explicitly link libc?
11477 #
11478 case "x$archive_cmds_need_lc_CXX" in
11479 x|xyes)
11480 # Assume -lc should be added
11481 archive_cmds_need_lc_CXX=yes
11483 if test "$enable_shared" = yes && test "$GCC" = yes; then
11484 case $archive_cmds_CXX in
11485 *'~'*)
11486 # FIXME: we may have to deal with multi-command sequences.
11487 ;;
11488 '$CC '*)
11489 # Test whether the compiler implicitly links with -lc since on some
11490 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11491 # to ld, don't add -lc before -lgcc.
11492 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11493 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11494 $rm conftest*
11495 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11498 (eval $ac_compile) 2>&5
11499 ac_status=$?
11500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11501 (exit $ac_status); } 2>conftest.err; then
11502 soname=conftest
11503 lib=conftest
11504 libobjs=conftest.$ac_objext
11505 deplibs=
11506 wl=$lt_prog_compiler_wl_CXX
11507 pic_flag=$lt_prog_compiler_pic_CXX
11508 compiler_flags=-v
11509 linker_flags=-v
11510 verstring=
11511 output_objdir=.
11512 libname=conftest
11513 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11514 allow_undefined_flag_CXX=
11515 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11516 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11517 ac_status=$?
11518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519 (exit $ac_status); }
11520 then
11521 archive_cmds_need_lc_CXX=no
11522 else
11523 archive_cmds_need_lc_CXX=yes
11524 fi
11525 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11526 else
11527 cat conftest.err 1>&5
11528 fi
11529 $rm conftest*
11530 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11531 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11532 ;;
11533 esac
11534 fi
11535 ;;
11536 esac
11538 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11539 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11540 library_names_spec=
11541 libname_spec='lib$name'
11542 soname_spec=
11543 shrext_cmds=".so"
11544 postinstall_cmds=
11545 postuninstall_cmds=
11546 finish_cmds=
11547 finish_eval=
11548 shlibpath_var=
11549 shlibpath_overrides_runpath=unknown
11550 version_type=none
11551 dynamic_linker="$host_os ld.so"
11552 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11553 if test "$GCC" = yes; then
11554 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11555 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11556 # if the path contains ";" then we assume it to be the separator
11557 # otherwise default to the standard path separator (i.e. ":") - it is
11558 # assumed that no part of a normal pathname contains ";" but that should
11559 # okay in the real world where ";" in dirpaths is itself problematic.
11560 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11561 else
11562 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11563 fi
11564 else
11565 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11566 fi
11567 need_lib_prefix=unknown
11568 hardcode_into_libs=no
11570 # when you set need_version to no, make sure it does not cause -set_version
11571 # flags to be left without arguments
11572 need_version=unknown
11574 case $host_os in
11575 aix3*)
11576 version_type=linux
11577 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11578 shlibpath_var=LIBPATH
11580 # AIX 3 has no versioning support, so we append a major version to the name.
11581 soname_spec='${libname}${release}${shared_ext}$major'
11582 ;;
11584 aix4* | aix5*)
11585 version_type=linux
11586 need_lib_prefix=no
11587 need_version=no
11588 hardcode_into_libs=yes
11589 if test "$host_cpu" = ia64; then
11590 # AIX 5 supports IA64
11591 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11592 shlibpath_var=LD_LIBRARY_PATH
11593 else
11594 # With GCC up to 2.95.x, collect2 would create an import file
11595 # for dependence libraries. The import file would start with
11596 # the line `#! .'. This would cause the generated library to
11597 # depend on `.', always an invalid library. This was fixed in
11598 # development snapshots of GCC prior to 3.0.
11599 case $host_os in
11600 aix4 | aix4.[01] | aix4.[01].*)
11601 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11602 echo ' yes '
11603 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11604 :
11605 else
11606 can_build_shared=no
11607 fi
11608 ;;
11609 esac
11610 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11611 # soname into executable. Probably we can add versioning support to
11612 # collect2, so additional links can be useful in future.
11613 if test "$aix_use_runtimelinking" = yes; then
11614 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11615 # instead of lib<name>.a to let people know that these are not
11616 # typical AIX shared libraries.
11617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11618 else
11619 # We preserve .a as extension for shared libraries through AIX4.2
11620 # and later when we are not doing run time linking.
11621 library_names_spec='${libname}${release}.a $libname.a'
11622 soname_spec='${libname}${release}${shared_ext}$major'
11623 fi
11624 shlibpath_var=LIBPATH
11625 fi
11626 ;;
11628 amigaos*)
11629 library_names_spec='$libname.ixlibrary $libname.a'
11630 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11631 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'
11632 ;;
11634 beos*)
11635 library_names_spec='${libname}${shared_ext}'
11636 dynamic_linker="$host_os ld.so"
11637 shlibpath_var=LIBRARY_PATH
11638 ;;
11640 bsdi[45]*)
11641 version_type=linux
11642 need_version=no
11643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11644 soname_spec='${libname}${release}${shared_ext}$major'
11645 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11646 shlibpath_var=LD_LIBRARY_PATH
11647 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11648 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11649 # the default ld.so.conf also contains /usr/contrib/lib and
11650 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11651 # libtool to hard-code these into programs
11652 ;;
11654 cygwin* | mingw* | pw32*)
11655 version_type=windows
11656 shrext_cmds=".dll"
11657 need_version=no
11658 need_lib_prefix=no
11660 case $GCC,$host_os in
11661 yes,cygwin* | yes,mingw* | yes,pw32*)
11662 library_names_spec='$libname.dll.a'
11663 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11664 postinstall_cmds='base_file=`basename \${file}`~
11665 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11666 dldir=$destdir/`dirname \$dlpath`~
11667 test -d \$dldir || mkdir -p \$dldir~
11668 $install_prog $dir/$dlname \$dldir/$dlname~
11669 chmod a+x \$dldir/$dlname'
11670 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11671 dlpath=$dir/\$dldll~
11672 $rm \$dlpath'
11673 shlibpath_overrides_runpath=yes
11675 case $host_os in
11676 cygwin*)
11677 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11678 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11679 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11680 ;;
11681 mingw*)
11682 # MinGW DLLs use traditional 'lib' prefix
11683 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11684 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11685 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11686 # It is most probably a Windows format PATH printed by
11687 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11688 # path with ; separators, and with drive letters. We can handle the
11689 # drive letters (cygwin fileutils understands them), so leave them,
11690 # especially as we might pass files found there to a mingw objdump,
11691 # which wouldn't understand a cygwinified path. Ahh.
11692 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11693 else
11694 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11695 fi
11696 ;;
11697 pw32*)
11698 # pw32 DLLs use 'pw' prefix rather than 'lib'
11699 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11700 ;;
11701 esac
11702 ;;
11704 *)
11705 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11706 ;;
11707 esac
11708 dynamic_linker='Win32 ld.exe'
11709 # FIXME: first we should search . and the directory the executable is in
11710 shlibpath_var=PATH
11711 ;;
11713 darwin* | rhapsody*)
11714 dynamic_linker="$host_os dyld"
11715 version_type=darwin
11716 need_lib_prefix=no
11717 need_version=no
11718 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11719 soname_spec='${libname}${release}${major}$shared_ext'
11720 shlibpath_overrides_runpath=yes
11721 shlibpath_var=DYLD_LIBRARY_PATH
11722 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11723 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11724 if test "$GCC" = yes; then
11725 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"`
11726 else
11727 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11728 fi
11729 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11730 ;;
11732 dgux*)
11733 version_type=linux
11734 need_lib_prefix=no
11735 need_version=no
11736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11737 soname_spec='${libname}${release}${shared_ext}$major'
11738 shlibpath_var=LD_LIBRARY_PATH
11739 ;;
11741 freebsd1*)
11742 dynamic_linker=no
11743 ;;
11745 kfreebsd*-gnu)
11746 version_type=linux
11747 need_lib_prefix=no
11748 need_version=no
11749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11750 soname_spec='${libname}${release}${shared_ext}$major'
11751 shlibpath_var=LD_LIBRARY_PATH
11752 shlibpath_overrides_runpath=no
11753 hardcode_into_libs=yes
11754 dynamic_linker='GNU ld.so'
11755 ;;
11757 freebsd* | dragonfly*)
11758 # DragonFly does not have aout. When/if they implement a new
11759 # versioning mechanism, adjust this.
11760 if test -x /usr/bin/objformat; then
11761 objformat=`/usr/bin/objformat`
11762 else
11763 case $host_os in
11764 freebsd[123]*) objformat=aout ;;
11765 *) objformat=elf ;;
11766 esac
11767 fi
11768 version_type=freebsd-$objformat
11769 case $version_type in
11770 freebsd-elf*)
11771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11772 need_version=no
11773 need_lib_prefix=no
11774 ;;
11775 freebsd-*)
11776 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11777 need_version=yes
11778 ;;
11779 esac
11780 shlibpath_var=LD_LIBRARY_PATH
11781 case $host_os in
11782 freebsd2*)
11783 shlibpath_overrides_runpath=yes
11784 ;;
11785 freebsd3.[01]* | freebsdelf3.[01]*)
11786 shlibpath_overrides_runpath=yes
11787 hardcode_into_libs=yes
11788 ;;
11789 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11790 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11791 shlibpath_overrides_runpath=no
11792 hardcode_into_libs=yes
11793 ;;
11794 freebsd*) # from 4.6 on
11795 shlibpath_overrides_runpath=yes
11796 hardcode_into_libs=yes
11797 ;;
11798 esac
11799 ;;
11801 gnu*)
11802 version_type=linux
11803 need_lib_prefix=no
11804 need_version=no
11805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11806 soname_spec='${libname}${release}${shared_ext}$major'
11807 shlibpath_var=LD_LIBRARY_PATH
11808 hardcode_into_libs=yes
11809 ;;
11811 hpux9* | hpux10* | hpux11*)
11812 # Give a soname corresponding to the major version so that dld.sl refuses to
11813 # link against other versions.
11814 version_type=sunos
11815 need_lib_prefix=no
11816 need_version=no
11817 case $host_cpu in
11818 ia64*)
11819 shrext_cmds='.so'
11820 hardcode_into_libs=yes
11821 dynamic_linker="$host_os dld.so"
11822 shlibpath_var=LD_LIBRARY_PATH
11823 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11825 soname_spec='${libname}${release}${shared_ext}$major'
11826 if test "X$HPUX_IA64_MODE" = X32; then
11827 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11828 else
11829 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11830 fi
11831 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11832 ;;
11833 hppa*64*)
11834 shrext_cmds='.sl'
11835 hardcode_into_libs=yes
11836 dynamic_linker="$host_os dld.sl"
11837 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11838 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11840 soname_spec='${libname}${release}${shared_ext}$major'
11841 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11842 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11843 ;;
11844 *)
11845 shrext_cmds='.sl'
11846 dynamic_linker="$host_os dld.sl"
11847 shlibpath_var=SHLIB_PATH
11848 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11850 soname_spec='${libname}${release}${shared_ext}$major'
11851 ;;
11852 esac
11853 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11854 postinstall_cmds='chmod 555 $lib'
11855 ;;
11857 interix3*)
11858 version_type=linux
11859 need_lib_prefix=no
11860 need_version=no
11861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11862 soname_spec='${libname}${release}${shared_ext}$major'
11863 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11864 shlibpath_var=LD_LIBRARY_PATH
11865 shlibpath_overrides_runpath=no
11866 hardcode_into_libs=yes
11867 ;;
11869 irix5* | irix6* | nonstopux*)
11870 case $host_os in
11871 nonstopux*) version_type=nonstopux ;;
11872 *)
11873 if test "$lt_cv_prog_gnu_ld" = yes; then
11874 version_type=linux
11875 else
11876 version_type=irix
11877 fi ;;
11878 esac
11879 need_lib_prefix=no
11880 need_version=no
11881 soname_spec='${libname}${release}${shared_ext}$major'
11882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11883 case $host_os in
11884 irix5* | nonstopux*)
11885 libsuff= shlibsuff=
11886 ;;
11887 *)
11888 case $LD in # libtool.m4 will add one of these switches to LD
11889 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11890 libsuff= shlibsuff= libmagic=32-bit;;
11891 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11892 libsuff=32 shlibsuff=N32 libmagic=N32;;
11893 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11894 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11895 *) libsuff= shlibsuff= libmagic=never-match;;
11896 esac
11897 ;;
11898 esac
11899 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11900 shlibpath_overrides_runpath=no
11901 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11902 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11903 hardcode_into_libs=yes
11904 ;;
11906 # No shared lib support for Linux oldld, aout, or coff.
11907 linux*oldld* | linux*aout* | linux*coff*)
11908 dynamic_linker=no
11909 ;;
11911 # This must be Linux ELF.
11912 linux*)
11913 version_type=linux
11914 need_lib_prefix=no
11915 need_version=no
11916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11917 soname_spec='${libname}${release}${shared_ext}$major'
11918 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11919 shlibpath_var=LD_LIBRARY_PATH
11920 shlibpath_overrides_runpath=no
11921 # This implies no fast_install, which is unacceptable.
11922 # Some rework will be needed to allow for fast_install
11923 # before this can be enabled.
11924 hardcode_into_libs=yes
11926 # Append ld.so.conf contents to the search path
11927 if test -f /etc/ld.so.conf; then
11928 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11929 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11930 fi
11932 # We used to test for /lib/ld.so.1 and disable shared libraries on
11933 # powerpc, because MkLinux only supported shared libraries with the
11934 # GNU dynamic linker. Since this was broken with cross compilers,
11935 # most powerpc-linux boxes support dynamic linking these days and
11936 # people can always --disable-shared, the test was removed, and we
11937 # assume the GNU/Linux dynamic linker is in use.
11938 dynamic_linker='GNU/Linux ld.so'
11939 ;;
11941 knetbsd*-gnu)
11942 version_type=linux
11943 need_lib_prefix=no
11944 need_version=no
11945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11946 soname_spec='${libname}${release}${shared_ext}$major'
11947 shlibpath_var=LD_LIBRARY_PATH
11948 shlibpath_overrides_runpath=no
11949 hardcode_into_libs=yes
11950 dynamic_linker='GNU ld.so'
11951 ;;
11953 netbsd*)
11954 version_type=sunos
11955 need_lib_prefix=no
11956 need_version=no
11957 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11959 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11960 dynamic_linker='NetBSD (a.out) ld.so'
11961 else
11962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11963 soname_spec='${libname}${release}${shared_ext}$major'
11964 dynamic_linker='NetBSD ld.elf_so'
11965 fi
11966 shlibpath_var=LD_LIBRARY_PATH
11967 shlibpath_overrides_runpath=yes
11968 hardcode_into_libs=yes
11969 ;;
11971 newsos6)
11972 version_type=linux
11973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11974 shlibpath_var=LD_LIBRARY_PATH
11975 shlibpath_overrides_runpath=yes
11976 ;;
11978 nto-qnx*)
11979 version_type=linux
11980 need_lib_prefix=no
11981 need_version=no
11982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11983 soname_spec='${libname}${release}${shared_ext}$major'
11984 shlibpath_var=LD_LIBRARY_PATH
11985 shlibpath_overrides_runpath=yes
11986 ;;
11988 openbsd*)
11989 version_type=sunos
11990 sys_lib_dlsearch_path_spec="/usr/lib"
11991 need_lib_prefix=no
11992 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11993 case $host_os in
11994 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11995 *) need_version=no ;;
11996 esac
11997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11998 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11999 shlibpath_var=LD_LIBRARY_PATH
12000 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12001 case $host_os in
12002 openbsd2.[89] | openbsd2.[89].*)
12003 shlibpath_overrides_runpath=no
12004 ;;
12005 *)
12006 shlibpath_overrides_runpath=yes
12007 ;;
12008 esac
12009 else
12010 shlibpath_overrides_runpath=yes
12011 fi
12012 ;;
12014 os2*)
12015 libname_spec='$name'
12016 shrext_cmds=".dll"
12017 need_lib_prefix=no
12018 library_names_spec='$libname${shared_ext} $libname.a'
12019 dynamic_linker='OS/2 ld.exe'
12020 shlibpath_var=LIBPATH
12021 ;;
12023 osf3* | osf4* | osf5*)
12024 version_type=osf
12025 need_lib_prefix=no
12026 need_version=no
12027 soname_spec='${libname}${release}${shared_ext}$major'
12028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12029 shlibpath_var=LD_LIBRARY_PATH
12030 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12031 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12032 ;;
12034 solaris*)
12035 version_type=linux
12036 need_lib_prefix=no
12037 need_version=no
12038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12039 soname_spec='${libname}${release}${shared_ext}$major'
12040 shlibpath_var=LD_LIBRARY_PATH
12041 shlibpath_overrides_runpath=yes
12042 hardcode_into_libs=yes
12043 # ldd complains unless libraries are executable
12044 postinstall_cmds='chmod +x $lib'
12045 ;;
12047 sunos4*)
12048 version_type=sunos
12049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12050 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12051 shlibpath_var=LD_LIBRARY_PATH
12052 shlibpath_overrides_runpath=yes
12053 if test "$with_gnu_ld" = yes; then
12054 need_lib_prefix=no
12055 fi
12056 need_version=yes
12057 ;;
12059 sysv4 | sysv4.3*)
12060 version_type=linux
12061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12062 soname_spec='${libname}${release}${shared_ext}$major'
12063 shlibpath_var=LD_LIBRARY_PATH
12064 case $host_vendor in
12065 sni)
12066 shlibpath_overrides_runpath=no
12067 need_lib_prefix=no
12068 export_dynamic_flag_spec='${wl}-Blargedynsym'
12069 runpath_var=LD_RUN_PATH
12070 ;;
12071 siemens)
12072 need_lib_prefix=no
12073 ;;
12074 motorola)
12075 need_lib_prefix=no
12076 need_version=no
12077 shlibpath_overrides_runpath=no
12078 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12079 ;;
12080 esac
12081 ;;
12083 sysv4*MP*)
12084 if test -d /usr/nec ;then
12085 version_type=linux
12086 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12087 soname_spec='$libname${shared_ext}.$major'
12088 shlibpath_var=LD_LIBRARY_PATH
12089 fi
12090 ;;
12092 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12093 version_type=freebsd-elf
12094 need_lib_prefix=no
12095 need_version=no
12096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12097 soname_spec='${libname}${release}${shared_ext}$major'
12098 shlibpath_var=LD_LIBRARY_PATH
12099 hardcode_into_libs=yes
12100 if test "$with_gnu_ld" = yes; then
12101 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12102 shlibpath_overrides_runpath=no
12103 else
12104 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12105 shlibpath_overrides_runpath=yes
12106 case $host_os in
12107 sco3.2v5*)
12108 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12109 ;;
12110 esac
12111 fi
12112 sys_lib_dlsearch_path_spec='/usr/lib'
12113 ;;
12115 uts4*)
12116 version_type=linux
12117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12118 soname_spec='${libname}${release}${shared_ext}$major'
12119 shlibpath_var=LD_LIBRARY_PATH
12120 ;;
12122 *)
12123 dynamic_linker=no
12124 ;;
12125 esac
12126 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12127 echo "${ECHO_T}$dynamic_linker" >&6
12128 test "$dynamic_linker" = no && can_build_shared=no
12130 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12131 if test "$GCC" = yes; then
12132 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12133 fi
12135 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12136 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12137 hardcode_action_CXX=
12138 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12139 test -n "$runpath_var_CXX" || \
12140 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12142 # We can hardcode non-existant directories.
12143 if test "$hardcode_direct_CXX" != no &&
12144 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12145 # have to relink, otherwise we might link with an installed library
12146 # when we should be linking with a yet-to-be-installed one
12147 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12148 test "$hardcode_minus_L_CXX" != no; then
12149 # Linking always hardcodes the temporary library directory.
12150 hardcode_action_CXX=relink
12151 else
12152 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12153 hardcode_action_CXX=immediate
12154 fi
12155 else
12156 # We cannot hardcode anything, or else we can only hardcode existing
12157 # directories.
12158 hardcode_action_CXX=unsupported
12159 fi
12160 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12161 echo "${ECHO_T}$hardcode_action_CXX" >&6
12163 if test "$hardcode_action_CXX" = relink; then
12164 # Fast installation is not supported
12165 enable_fast_install=no
12166 elif test "$shlibpath_overrides_runpath" = yes ||
12167 test "$enable_shared" = no; then
12168 # Fast installation is not necessary
12169 enable_fast_install=needless
12170 fi
12173 # The else clause should only fire when bootstrapping the
12174 # libtool distribution, otherwise you forgot to ship ltmain.sh
12175 # with your package, and you will get complaints that there are
12176 # no rules to generate ltmain.sh.
12177 if test -f "$ltmain"; then
12178 # See if we are running on zsh, and set the options which allow our commands through
12179 # without removal of \ escapes.
12180 if test -n "${ZSH_VERSION+set}" ; then
12181 setopt NO_GLOB_SUBST
12182 fi
12183 # Now quote all the things that may contain metacharacters while being
12184 # careful not to overquote the AC_SUBSTed values. We take copies of the
12185 # variables and quote the copies for generation of the libtool script.
12186 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12187 SED SHELL STRIP \
12188 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12189 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12190 deplibs_check_method reload_flag reload_cmds need_locks \
12191 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12192 lt_cv_sys_global_symbol_to_c_name_address \
12193 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12194 old_postinstall_cmds old_postuninstall_cmds \
12195 compiler_CXX \
12196 CC_CXX \
12197 LD_CXX \
12198 lt_prog_compiler_wl_CXX \
12199 lt_prog_compiler_pic_CXX \
12200 lt_prog_compiler_static_CXX \
12201 lt_prog_compiler_no_builtin_flag_CXX \
12202 export_dynamic_flag_spec_CXX \
12203 thread_safe_flag_spec_CXX \
12204 whole_archive_flag_spec_CXX \
12205 enable_shared_with_static_runtimes_CXX \
12206 old_archive_cmds_CXX \
12207 old_archive_from_new_cmds_CXX \
12208 predep_objects_CXX \
12209 postdep_objects_CXX \
12210 predeps_CXX \
12211 postdeps_CXX \
12212 compiler_lib_search_path_CXX \
12213 archive_cmds_CXX \
12214 archive_expsym_cmds_CXX \
12215 postinstall_cmds_CXX \
12216 postuninstall_cmds_CXX \
12217 old_archive_from_expsyms_cmds_CXX \
12218 allow_undefined_flag_CXX \
12219 no_undefined_flag_CXX \
12220 export_symbols_cmds_CXX \
12221 hardcode_libdir_flag_spec_CXX \
12222 hardcode_libdir_flag_spec_ld_CXX \
12223 hardcode_libdir_separator_CXX \
12224 hardcode_automatic_CXX \
12225 module_cmds_CXX \
12226 module_expsym_cmds_CXX \
12227 lt_cv_prog_compiler_c_o_CXX \
12228 exclude_expsyms_CXX \
12229 include_expsyms_CXX; do
12231 case $var in
12232 old_archive_cmds_CXX | \
12233 old_archive_from_new_cmds_CXX | \
12234 archive_cmds_CXX | \
12235 archive_expsym_cmds_CXX | \
12236 module_cmds_CXX | \
12237 module_expsym_cmds_CXX | \
12238 old_archive_from_expsyms_cmds_CXX | \
12239 export_symbols_cmds_CXX | \
12240 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12241 postinstall_cmds | postuninstall_cmds | \
12242 old_postinstall_cmds | old_postuninstall_cmds | \
12243 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12244 # Double-quote double-evaled strings.
12245 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12246 ;;
12247 *)
12248 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12249 ;;
12250 esac
12251 done
12253 case $lt_echo in
12254 *'\$0 --fallback-echo"')
12255 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12256 ;;
12257 esac
12259 cfgfile="$ofile"
12261 cat <<__EOF__ >> "$cfgfile"
12262 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12264 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12266 # Shell to use when invoking shell scripts.
12267 SHELL=$lt_SHELL
12269 # Whether or not to build shared libraries.
12270 build_libtool_libs=$enable_shared
12272 # Whether or not to build static libraries.
12273 build_old_libs=$enable_static
12275 # Whether or not to add -lc for building shared libraries.
12276 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12278 # Whether or not to disallow shared libs when runtime libs are static
12279 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12281 # Whether or not to optimize for fast installation.
12282 fast_install=$enable_fast_install
12284 # The host system.
12285 host_alias=$host_alias
12286 host=$host
12287 host_os=$host_os
12289 # The build system.
12290 build_alias=$build_alias
12291 build=$build
12292 build_os=$build_os
12294 # An echo program that does not interpret backslashes.
12295 echo=$lt_echo
12297 # The archiver.
12298 AR=$lt_AR
12299 AR_FLAGS=$lt_AR_FLAGS
12301 # A C compiler.
12302 LTCC=$lt_LTCC
12304 # LTCC compiler flags.
12305 LTCFLAGS=$lt_LTCFLAGS
12307 # A language-specific compiler.
12308 CC=$lt_compiler_CXX
12310 # Is the compiler the GNU C compiler?
12311 with_gcc=$GCC_CXX
12313 # An ERE matcher.
12314 EGREP=$lt_EGREP
12316 # The linker used to build libraries.
12317 LD=$lt_LD_CXX
12319 # Whether we need hard or soft links.
12320 LN_S=$lt_LN_S
12322 # A BSD-compatible nm program.
12323 NM=$lt_NM
12325 # A symbol stripping program
12326 STRIP=$lt_STRIP
12328 # Used to examine libraries when file_magic_cmd begins "file"
12329 MAGIC_CMD=$MAGIC_CMD
12331 # Used on cygwin: DLL creation program.
12332 DLLTOOL="$DLLTOOL"
12334 # Used on cygwin: object dumper.
12335 OBJDUMP="$OBJDUMP"
12337 # Used on cygwin: assembler.
12338 AS="$AS"
12340 # The name of the directory that contains temporary libtool files.
12341 objdir=$objdir
12343 # How to create reloadable object files.
12344 reload_flag=$lt_reload_flag
12345 reload_cmds=$lt_reload_cmds
12347 # How to pass a linker flag through the compiler.
12348 wl=$lt_lt_prog_compiler_wl_CXX
12350 # Object file suffix (normally "o").
12351 objext="$ac_objext"
12353 # Old archive suffix (normally "a").
12354 libext="$libext"
12356 # Shared library suffix (normally ".so").
12357 shrext_cmds='$shrext_cmds'
12359 # Executable file suffix (normally "").
12360 exeext="$exeext"
12362 # Additional compiler flags for building library objects.
12363 pic_flag=$lt_lt_prog_compiler_pic_CXX
12364 pic_mode=$pic_mode
12366 # What is the maximum length of a command?
12367 max_cmd_len=$lt_cv_sys_max_cmd_len
12369 # Does compiler simultaneously support -c and -o options?
12370 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12372 # Must we lock files when doing compilation?
12373 need_locks=$lt_need_locks
12375 # Do we need the lib prefix for modules?
12376 need_lib_prefix=$need_lib_prefix
12378 # Do we need a version for libraries?
12379 need_version=$need_version
12381 # Whether dlopen is supported.
12382 dlopen_support=$enable_dlopen
12384 # Whether dlopen of programs is supported.
12385 dlopen_self=$enable_dlopen_self
12387 # Whether dlopen of statically linked programs is supported.
12388 dlopen_self_static=$enable_dlopen_self_static
12390 # Compiler flag to prevent dynamic linking.
12391 link_static_flag=$lt_lt_prog_compiler_static_CXX
12393 # Compiler flag to turn off builtin functions.
12394 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12396 # Compiler flag to allow reflexive dlopens.
12397 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12399 # Compiler flag to generate shared objects directly from archives.
12400 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12402 # Compiler flag to generate thread-safe objects.
12403 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12405 # Library versioning type.
12406 version_type=$version_type
12408 # Format of library name prefix.
12409 libname_spec=$lt_libname_spec
12411 # List of archive names. First name is the real one, the rest are links.
12412 # The last name is the one that the linker finds with -lNAME.
12413 library_names_spec=$lt_library_names_spec
12415 # The coded name of the library, if different from the real name.
12416 soname_spec=$lt_soname_spec
12418 # Commands used to build and install an old-style archive.
12419 RANLIB=$lt_RANLIB
12420 old_archive_cmds=$lt_old_archive_cmds_CXX
12421 old_postinstall_cmds=$lt_old_postinstall_cmds
12422 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12424 # Create an old-style archive from a shared archive.
12425 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12427 # Create a temporary old-style archive to link instead of a shared archive.
12428 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12430 # Commands used to build and install a shared archive.
12431 archive_cmds=$lt_archive_cmds_CXX
12432 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12433 postinstall_cmds=$lt_postinstall_cmds
12434 postuninstall_cmds=$lt_postuninstall_cmds
12436 # Commands used to build a loadable module (assumed same as above if empty)
12437 module_cmds=$lt_module_cmds_CXX
12438 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12440 # Commands to strip libraries.
12441 old_striplib=$lt_old_striplib
12442 striplib=$lt_striplib
12444 # Dependencies to place before the objects being linked to create a
12445 # shared library.
12446 predep_objects=$lt_predep_objects_CXX
12448 # Dependencies to place after the objects being linked to create a
12449 # shared library.
12450 postdep_objects=$lt_postdep_objects_CXX
12452 # Dependencies to place before the objects being linked to create a
12453 # shared library.
12454 predeps=$lt_predeps_CXX
12456 # Dependencies to place after the objects being linked to create a
12457 # shared library.
12458 postdeps=$lt_postdeps_CXX
12460 # The library search path used internally by the compiler when linking
12461 # a shared library.
12462 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12464 # Method to check whether dependent libraries are shared objects.
12465 deplibs_check_method=$lt_deplibs_check_method
12467 # Command to use when deplibs_check_method == file_magic.
12468 file_magic_cmd=$lt_file_magic_cmd
12470 # Flag that allows shared libraries with undefined symbols to be built.
12471 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12473 # Flag that forces no undefined symbols.
12474 no_undefined_flag=$lt_no_undefined_flag_CXX
12476 # Commands used to finish a libtool library installation in a directory.
12477 finish_cmds=$lt_finish_cmds
12479 # Same as above, but a single script fragment to be evaled but not shown.
12480 finish_eval=$lt_finish_eval
12482 # Take the output of nm and produce a listing of raw symbols and C names.
12483 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12485 # Transform the output of nm in a proper C declaration
12486 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12488 # Transform the output of nm in a C name address pair
12489 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12491 # This is the shared library runtime path variable.
12492 runpath_var=$runpath_var
12494 # This is the shared library path variable.
12495 shlibpath_var=$shlibpath_var
12497 # Is shlibpath searched before the hard-coded library search path?
12498 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12500 # How to hardcode a shared library path into an executable.
12501 hardcode_action=$hardcode_action_CXX
12503 # Whether we should hardcode library paths into libraries.
12504 hardcode_into_libs=$hardcode_into_libs
12506 # Flag to hardcode \$libdir into a binary during linking.
12507 # This must work even if \$libdir does not exist.
12508 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12510 # If ld is used when linking, flag to hardcode \$libdir into
12511 # a binary during linking. This must work even if \$libdir does
12512 # not exist.
12513 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12515 # Whether we need a single -rpath flag with a separated argument.
12516 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12518 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12519 # resulting binary.
12520 hardcode_direct=$hardcode_direct_CXX
12522 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12523 # resulting binary.
12524 hardcode_minus_L=$hardcode_minus_L_CXX
12526 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12527 # the resulting binary.
12528 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12530 # Set to yes if building a shared library automatically hardcodes DIR into the library
12531 # and all subsequent libraries and executables linked against it.
12532 hardcode_automatic=$hardcode_automatic_CXX
12534 # Variables whose values should be saved in libtool wrapper scripts and
12535 # restored at relink time.
12536 variables_saved_for_relink="$variables_saved_for_relink"
12538 # Whether libtool must link a program against all its dependency libraries.
12539 link_all_deplibs=$link_all_deplibs_CXX
12541 # Compile-time system search path for libraries
12542 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12544 # Run-time system search path for libraries
12545 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12547 # Fix the shell variable \$srcfile for the compiler.
12548 fix_srcfile_path="$fix_srcfile_path_CXX"
12550 # Set to yes if exported symbols are required.
12551 always_export_symbols=$always_export_symbols_CXX
12553 # The commands to list exported symbols.
12554 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12556 # The commands to extract the exported symbol list from a shared archive.
12557 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12559 # Symbols that should not be listed in the preloaded symbols.
12560 exclude_expsyms=$lt_exclude_expsyms_CXX
12562 # Symbols that must always be exported.
12563 include_expsyms=$lt_include_expsyms_CXX
12565 # ### END LIBTOOL TAG CONFIG: $tagname
12567 __EOF__
12570 else
12571 # If there is no Makefile yet, we rely on a make rule to execute
12572 # `config.status --recheck' to rerun these tests and create the
12573 # libtool script then.
12574 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12575 if test -f "$ltmain_in"; then
12576 test -f Makefile && make "$ltmain"
12577 fi
12578 fi
12581 ac_ext=c
12582 ac_cpp='$CPP $CPPFLAGS'
12583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12587 CC=$lt_save_CC
12588 LDCXX=$LD
12589 LD=$lt_save_LD
12590 GCC=$lt_save_GCC
12591 with_gnu_ldcxx=$with_gnu_ld
12592 with_gnu_ld=$lt_save_with_gnu_ld
12593 lt_cv_path_LDCXX=$lt_cv_path_LD
12594 lt_cv_path_LD=$lt_save_path_LD
12595 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12596 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12598 else
12599 tagname=""
12600 fi
12601 ;;
12603 F77)
12604 if test -n "$F77" && test "X$F77" != "Xno"; then
12605 :
12606 else
12607 tagname=""
12608 fi
12609 ;;
12611 GCJ)
12612 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
12616 # Source file extension for Java test sources.
12617 ac_ext=java
12619 # Object file extension for compiled Java test sources.
12620 objext=o
12621 objext_GCJ=$objext
12623 # Code to be used in simple compile tests
12624 lt_simple_compile_test_code="class foo {}\n"
12626 # Code to be used in simple link tests
12627 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
12629 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12631 # If no C compiler was specified, use CC.
12632 LTCC=${LTCC-"$CC"}
12634 # If no C compiler flags were specified, use CFLAGS.
12635 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12637 # Allow CC to be a program name with arguments.
12638 compiler=$CC
12641 # save warnings/boilerplate of simple test code
12642 ac_outfile=conftest.$ac_objext
12643 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12644 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12645 _lt_compiler_boilerplate=`cat conftest.err`
12646 $rm conftest*
12648 ac_outfile=conftest.$ac_objext
12649 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12650 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12651 _lt_linker_boilerplate=`cat conftest.err`
12652 $rm conftest*
12655 # Allow CC to be a program name with arguments.
12656 lt_save_CC="$CC"
12657 CC=${GCJ-"gcj"}
12658 compiler=$CC
12659 compiler_GCJ=$CC
12660 for cc_temp in $compiler""; do
12661 case $cc_temp in
12662 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12663 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12664 \-*) ;;
12665 *) break;;
12666 esac
12667 done
12668 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12671 # GCJ did not exist at the time GCC didn't implicitly link libc in.
12672 archive_cmds_need_lc_GCJ=no
12674 old_archive_cmds_GCJ=$old_archive_cmds
12677 lt_prog_compiler_no_builtin_flag_GCJ=
12679 if test "$GCC" = yes; then
12680 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
12683 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12684 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
12685 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
12686 echo $ECHO_N "(cached) $ECHO_C" >&6
12687 else
12688 lt_cv_prog_compiler_rtti_exceptions=no
12689 ac_outfile=conftest.$ac_objext
12690 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12691 lt_compiler_flag="-fno-rtti -fno-exceptions"
12692 # Insert the option either (1) after the last *FLAGS variable, or
12693 # (2) before a word containing "conftest.", or (3) at the end.
12694 # Note that $ac_compile itself does not contain backslashes and begins
12695 # with a dollar sign (not a hyphen), so the echo should work correctly.
12696 # The option is referenced via a variable to avoid confusing sed.
12697 lt_compile=`echo "$ac_compile" | $SED \
12698 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12699 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12700 -e 's:$: $lt_compiler_flag:'`
12701 (eval echo "\"\$as_me:12701: $lt_compile\"" >&5)
12702 (eval "$lt_compile" 2>conftest.err)
12703 ac_status=$?
12704 cat conftest.err >&5
12705 echo "$as_me:12705: \$? = $ac_status" >&5
12706 if (exit $ac_status) && test -s "$ac_outfile"; then
12707 # The compiler can only warn and ignore the option if not recognized
12708 # So say no if there are warnings other than the usual output.
12709 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12710 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12711 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12712 lt_cv_prog_compiler_rtti_exceptions=yes
12713 fi
12714 fi
12715 $rm conftest*
12717 fi
12718 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12719 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
12721 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12722 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
12723 else
12724 :
12725 fi
12727 fi
12729 lt_prog_compiler_wl_GCJ=
12730 lt_prog_compiler_pic_GCJ=
12731 lt_prog_compiler_static_GCJ=
12733 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12734 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12736 if test "$GCC" = yes; then
12737 lt_prog_compiler_wl_GCJ='-Wl,'
12738 lt_prog_compiler_static_GCJ='-static'
12740 case $host_os in
12741 aix*)
12742 # All AIX code is PIC.
12743 if test "$host_cpu" = ia64; then
12744 # AIX 5 now supports IA64 processor
12745 lt_prog_compiler_static_GCJ='-Bstatic'
12746 fi
12747 ;;
12749 amigaos*)
12750 # FIXME: we need at least 68020 code to build shared libraries, but
12751 # adding the `-m68020' flag to GCC prevents building anything better,
12752 # like `-m68040'.
12753 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
12754 ;;
12756 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12757 # PIC is the default for these OSes.
12758 ;;
12760 mingw* | pw32* | os2*)
12761 # This hack is so that the source file can tell whether it is being
12762 # built for inclusion in a dll (and should export symbols for example).
12763 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
12764 ;;
12766 darwin* | rhapsody*)
12767 # PIC is the default on this platform
12768 # Common symbols not allowed in MH_DYLIB files
12769 lt_prog_compiler_pic_GCJ='-fno-common'
12770 ;;
12772 interix3*)
12773 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12774 # Instead, we relocate shared libraries at runtime.
12775 ;;
12777 msdosdjgpp*)
12778 # Just because we use GCC doesn't mean we suddenly get shared libraries
12779 # on systems that don't support them.
12780 lt_prog_compiler_can_build_shared_GCJ=no
12781 enable_shared=no
12782 ;;
12784 sysv4*MP*)
12785 if test -d /usr/nec; then
12786 lt_prog_compiler_pic_GCJ=-Kconform_pic
12787 fi
12788 ;;
12790 hpux*)
12791 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12792 # not for PA HP-UX.
12793 case $host_cpu in
12794 hppa*64*|ia64*)
12795 # +Z the default
12796 ;;
12797 *)
12798 lt_prog_compiler_pic_GCJ='-fPIC'
12799 ;;
12800 esac
12801 ;;
12803 *)
12804 lt_prog_compiler_pic_GCJ='-fPIC'
12805 ;;
12806 esac
12807 else
12808 # PORTME Check for flag to pass linker flags through the system compiler.
12809 case $host_os in
12810 aix*)
12811 lt_prog_compiler_wl_GCJ='-Wl,'
12812 if test "$host_cpu" = ia64; then
12813 # AIX 5 now supports IA64 processor
12814 lt_prog_compiler_static_GCJ='-Bstatic'
12815 else
12816 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
12817 fi
12818 ;;
12819 darwin*)
12820 # PIC is the default on this platform
12821 # Common symbols not allowed in MH_DYLIB files
12822 case $cc_basename in
12823 xlc*)
12824 lt_prog_compiler_pic_GCJ='-qnocommon'
12825 lt_prog_compiler_wl_GCJ='-Wl,'
12826 ;;
12827 esac
12828 ;;
12830 mingw* | pw32* | os2*)
12831 # This hack is so that the source file can tell whether it is being
12832 # built for inclusion in a dll (and should export symbols for example).
12833 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
12834 ;;
12836 hpux9* | hpux10* | hpux11*)
12837 lt_prog_compiler_wl_GCJ='-Wl,'
12838 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12839 # not for PA HP-UX.
12840 case $host_cpu in
12841 hppa*64*|ia64*)
12842 # +Z the default
12843 ;;
12844 *)
12845 lt_prog_compiler_pic_GCJ='+Z'
12846 ;;
12847 esac
12848 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12849 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
12850 ;;
12852 irix5* | irix6* | nonstopux*)
12853 lt_prog_compiler_wl_GCJ='-Wl,'
12854 # PIC (with -KPIC) is the default.
12855 lt_prog_compiler_static_GCJ='-non_shared'
12856 ;;
12858 newsos6)
12859 lt_prog_compiler_pic_GCJ='-KPIC'
12860 lt_prog_compiler_static_GCJ='-Bstatic'
12861 ;;
12863 linux*)
12864 case $cc_basename in
12865 icc* | ecc*)
12866 lt_prog_compiler_wl_GCJ='-Wl,'
12867 lt_prog_compiler_pic_GCJ='-KPIC'
12868 lt_prog_compiler_static_GCJ='-static'
12869 ;;
12870 pgcc* | pgf77* | pgf90* | pgf95*)
12871 # Portland Group compilers (*not* the Pentium gcc compiler,
12872 # which looks to be a dead project)
12873 lt_prog_compiler_wl_GCJ='-Wl,'
12874 lt_prog_compiler_pic_GCJ='-fpic'
12875 lt_prog_compiler_static_GCJ='-Bstatic'
12876 ;;
12877 ccc*)
12878 lt_prog_compiler_wl_GCJ='-Wl,'
12879 # All Alpha code is PIC.
12880 lt_prog_compiler_static_GCJ='-non_shared'
12881 ;;
12882 esac
12883 ;;
12885 osf3* | osf4* | osf5*)
12886 lt_prog_compiler_wl_GCJ='-Wl,'
12887 # All OSF/1 code is PIC.
12888 lt_prog_compiler_static_GCJ='-non_shared'
12889 ;;
12891 solaris*)
12892 lt_prog_compiler_pic_GCJ='-KPIC'
12893 lt_prog_compiler_static_GCJ='-Bstatic'
12894 case $cc_basename in
12895 f77* | f90* | f95*)
12896 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
12897 *)
12898 lt_prog_compiler_wl_GCJ='-Wl,';;
12899 esac
12900 ;;
12902 sunos4*)
12903 lt_prog_compiler_wl_GCJ='-Qoption ld '
12904 lt_prog_compiler_pic_GCJ='-PIC'
12905 lt_prog_compiler_static_GCJ='-Bstatic'
12906 ;;
12908 sysv4 | sysv4.2uw2* | sysv4.3*)
12909 lt_prog_compiler_wl_GCJ='-Wl,'
12910 lt_prog_compiler_pic_GCJ='-KPIC'
12911 lt_prog_compiler_static_GCJ='-Bstatic'
12912 ;;
12914 sysv4*MP*)
12915 if test -d /usr/nec ;then
12916 lt_prog_compiler_pic_GCJ='-Kconform_pic'
12917 lt_prog_compiler_static_GCJ='-Bstatic'
12918 fi
12919 ;;
12921 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12922 lt_prog_compiler_wl_GCJ='-Wl,'
12923 lt_prog_compiler_pic_GCJ='-KPIC'
12924 lt_prog_compiler_static_GCJ='-Bstatic'
12925 ;;
12927 unicos*)
12928 lt_prog_compiler_wl_GCJ='-Wl,'
12929 lt_prog_compiler_can_build_shared_GCJ=no
12930 ;;
12932 uts4*)
12933 lt_prog_compiler_pic_GCJ='-pic'
12934 lt_prog_compiler_static_GCJ='-Bstatic'
12935 ;;
12937 *)
12938 lt_prog_compiler_can_build_shared_GCJ=no
12939 ;;
12940 esac
12941 fi
12943 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
12944 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
12946 #
12947 # Check to make sure the PIC flag actually works.
12948 #
12949 if test -n "$lt_prog_compiler_pic_GCJ"; then
12951 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
12952 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
12953 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
12954 echo $ECHO_N "(cached) $ECHO_C" >&6
12955 else
12956 lt_prog_compiler_pic_works_GCJ=no
12957 ac_outfile=conftest.$ac_objext
12958 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12959 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
12960 # Insert the option either (1) after the last *FLAGS variable, or
12961 # (2) before a word containing "conftest.", or (3) at the end.
12962 # Note that $ac_compile itself does not contain backslashes and begins
12963 # with a dollar sign (not a hyphen), so the echo should work correctly.
12964 # The option is referenced via a variable to avoid confusing sed.
12965 lt_compile=`echo "$ac_compile" | $SED \
12966 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12967 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12968 -e 's:$: $lt_compiler_flag:'`
12969 (eval echo "\"\$as_me:12969: $lt_compile\"" >&5)
12970 (eval "$lt_compile" 2>conftest.err)
12971 ac_status=$?
12972 cat conftest.err >&5
12973 echo "$as_me:12973: \$? = $ac_status" >&5
12974 if (exit $ac_status) && test -s "$ac_outfile"; then
12975 # The compiler can only warn and ignore the option if not recognized
12976 # So say no if there are warnings other than the usual output.
12977 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12978 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12979 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12980 lt_prog_compiler_pic_works_GCJ=yes
12981 fi
12982 fi
12983 $rm conftest*
12985 fi
12986 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
12987 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
12989 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
12990 case $lt_prog_compiler_pic_GCJ in
12991 "" | " "*) ;;
12992 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
12993 esac
12994 else
12995 lt_prog_compiler_pic_GCJ=
12996 lt_prog_compiler_can_build_shared_GCJ=no
12997 fi
12999 fi
13000 case $host_os in
13001 # For platforms which do not support PIC, -DPIC is meaningless:
13002 *djgpp*)
13003 lt_prog_compiler_pic_GCJ=
13004 ;;
13005 *)
13006 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
13007 ;;
13008 esac
13010 #
13011 # Check to make sure the static flag actually works.
13012 #
13013 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
13014 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13015 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13016 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
13017 echo $ECHO_N "(cached) $ECHO_C" >&6
13018 else
13019 lt_prog_compiler_static_works_GCJ=no
13020 save_LDFLAGS="$LDFLAGS"
13021 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13022 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13023 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13024 # The linker can only warn and ignore the option if not recognized
13025 # So say no if there are warnings
13026 if test -s conftest.err; then
13027 # Append any errors to the config.log.
13028 cat conftest.err 1>&5
13029 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13030 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13031 if diff conftest.exp conftest.er2 >/dev/null; then
13032 lt_prog_compiler_static_works_GCJ=yes
13033 fi
13034 else
13035 lt_prog_compiler_static_works_GCJ=yes
13036 fi
13037 fi
13038 $rm conftest*
13039 LDFLAGS="$save_LDFLAGS"
13041 fi
13042 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
13043 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
13045 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
13046 :
13047 else
13048 lt_prog_compiler_static_GCJ=
13049 fi
13052 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13053 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13054 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
13055 echo $ECHO_N "(cached) $ECHO_C" >&6
13056 else
13057 lt_cv_prog_compiler_c_o_GCJ=no
13058 $rm -r conftest 2>/dev/null
13059 mkdir conftest
13060 cd conftest
13061 mkdir out
13062 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13064 lt_compiler_flag="-o out/conftest2.$ac_objext"
13065 # Insert the option either (1) after the last *FLAGS variable, or
13066 # (2) before a word containing "conftest.", or (3) at the end.
13067 # Note that $ac_compile itself does not contain backslashes and begins
13068 # with a dollar sign (not a hyphen), so the echo should work correctly.
13069 lt_compile=`echo "$ac_compile" | $SED \
13070 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13071 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13072 -e 's:$: $lt_compiler_flag:'`
13073 (eval echo "\"\$as_me:13073: $lt_compile\"" >&5)
13074 (eval "$lt_compile" 2>out/conftest.err)
13075 ac_status=$?
13076 cat out/conftest.err >&5
13077 echo "$as_me:13077: \$? = $ac_status" >&5
13078 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13079 then
13080 # The compiler can only warn and ignore the option if not recognized
13081 # So say no if there are warnings
13082 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13083 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13084 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13085 lt_cv_prog_compiler_c_o_GCJ=yes
13086 fi
13087 fi
13088 chmod u+w . 2>&5
13089 $rm conftest*
13090 # SGI C++ compiler will create directory out/ii_files/ for
13091 # template instantiation
13092 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13093 $rm out/* && rmdir out
13094 cd ..
13095 rmdir conftest
13096 $rm conftest*
13098 fi
13099 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
13100 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
13103 hard_links="nottested"
13104 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
13105 # do not overwrite the value of need_locks provided by the user
13106 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13107 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13108 hard_links=yes
13109 $rm conftest*
13110 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13111 touch conftest.a
13112 ln conftest.a conftest.b 2>&5 || hard_links=no
13113 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13114 echo "$as_me:$LINENO: result: $hard_links" >&5
13115 echo "${ECHO_T}$hard_links" >&6
13116 if test "$hard_links" = no; then
13117 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13118 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13119 need_locks=warn
13120 fi
13121 else
13122 need_locks=no
13123 fi
13125 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13126 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13128 runpath_var=
13129 allow_undefined_flag_GCJ=
13130 enable_shared_with_static_runtimes_GCJ=no
13131 archive_cmds_GCJ=
13132 archive_expsym_cmds_GCJ=
13133 old_archive_From_new_cmds_GCJ=
13134 old_archive_from_expsyms_cmds_GCJ=
13135 export_dynamic_flag_spec_GCJ=
13136 whole_archive_flag_spec_GCJ=
13137 thread_safe_flag_spec_GCJ=
13138 hardcode_libdir_flag_spec_GCJ=
13139 hardcode_libdir_flag_spec_ld_GCJ=
13140 hardcode_libdir_separator_GCJ=
13141 hardcode_direct_GCJ=no
13142 hardcode_minus_L_GCJ=no
13143 hardcode_shlibpath_var_GCJ=unsupported
13144 link_all_deplibs_GCJ=unknown
13145 hardcode_automatic_GCJ=no
13146 module_cmds_GCJ=
13147 module_expsym_cmds_GCJ=
13148 always_export_symbols_GCJ=no
13149 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13150 # include_expsyms should be a list of space-separated symbols to be *always*
13151 # included in the symbol list
13152 include_expsyms_GCJ=
13153 # exclude_expsyms can be an extended regexp of symbols to exclude
13154 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13155 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13156 # as well as any symbol that contains `d'.
13157 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
13158 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13159 # platforms (ab)use it in PIC code, but their linkers get confused if
13160 # the symbol is explicitly referenced. Since portable code cannot
13161 # rely on this symbol name, it's probably fine to never include it in
13162 # preloaded symbol tables.
13163 extract_expsyms_cmds=
13164 # Just being paranoid about ensuring that cc_basename is set.
13165 for cc_temp in $compiler""; do
13166 case $cc_temp in
13167 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13168 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13169 \-*) ;;
13170 *) break;;
13171 esac
13172 done
13173 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13175 case $host_os in
13176 cygwin* | mingw* | pw32*)
13177 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13178 # When not using gcc, we currently assume that we are using
13179 # Microsoft Visual C++.
13180 if test "$GCC" != yes; then
13181 with_gnu_ld=no
13182 fi
13183 ;;
13184 interix*)
13185 # we just hope/assume this is gcc and not c89 (= MSVC++)
13186 with_gnu_ld=yes
13187 ;;
13188 openbsd*)
13189 with_gnu_ld=no
13190 ;;
13191 esac
13193 ld_shlibs_GCJ=yes
13194 if test "$with_gnu_ld" = yes; then
13195 # If archive_cmds runs LD, not CC, wlarc should be empty
13196 wlarc='${wl}'
13198 # Set some defaults for GNU ld with shared library support. These
13199 # are reset later if shared libraries are not supported. Putting them
13200 # here allows them to be overridden if necessary.
13201 runpath_var=LD_RUN_PATH
13202 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
13203 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
13204 # ancient GNU ld didn't support --whole-archive et. al.
13205 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13206 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13207 else
13208 whole_archive_flag_spec_GCJ=
13209 fi
13210 supports_anon_versioning=no
13211 case `$LD -v 2>/dev/null` in
13212 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13213 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13214 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13215 *\ 2.11.*) ;; # other 2.11 versions
13216 *) supports_anon_versioning=yes ;;
13217 esac
13219 # See if GNU ld supports shared libraries.
13220 case $host_os in
13221 aix3* | aix4* | aix5*)
13222 # On AIX/PPC, the GNU linker is very broken
13223 if test "$host_cpu" != ia64; then
13224 ld_shlibs_GCJ=no
13225 cat <<EOF 1>&2
13227 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13228 *** to be unable to reliably create shared libraries on AIX.
13229 *** Therefore, libtool is disabling shared libraries support. If you
13230 *** really care for shared libraries, you may want to modify your PATH
13231 *** so that a non-GNU linker is found, and then restart.
13233 EOF
13234 fi
13235 ;;
13237 amigaos*)
13238 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)'
13239 hardcode_libdir_flag_spec_GCJ='-L$libdir'
13240 hardcode_minus_L_GCJ=yes
13242 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13243 # that the semantics of dynamic libraries on AmigaOS, at least up
13244 # to version 4, is to share data among multiple programs linked
13245 # with the same dynamic library. Since this doesn't match the
13246 # behavior of shared libraries on other platforms, we can't use
13247 # them.
13248 ld_shlibs_GCJ=no
13249 ;;
13251 beos*)
13252 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13253 allow_undefined_flag_GCJ=unsupported
13254 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13255 # support --undefined. This deserves some investigation. FIXME
13256 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13257 else
13258 ld_shlibs_GCJ=no
13259 fi
13260 ;;
13262 cygwin* | mingw* | pw32*)
13263 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
13264 # as there is no search path for DLLs.
13265 hardcode_libdir_flag_spec_GCJ='-L$libdir'
13266 allow_undefined_flag_GCJ=unsupported
13267 always_export_symbols_GCJ=no
13268 enable_shared_with_static_runtimes_GCJ=yes
13269 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13271 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13272 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13273 # If the export-symbols file already is a .def file (1st line
13274 # is EXPORTS), use it as is; otherwise, prepend...
13275 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13276 cp $export_symbols $output_objdir/$soname.def;
13277 else
13278 echo EXPORTS > $output_objdir/$soname.def;
13279 cat $export_symbols >> $output_objdir/$soname.def;
13280 fi~
13281 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13282 else
13283 ld_shlibs_GCJ=no
13284 fi
13285 ;;
13287 interix3*)
13288 hardcode_direct_GCJ=no
13289 hardcode_shlibpath_var_GCJ=no
13290 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
13291 export_dynamic_flag_spec_GCJ='${wl}-E'
13292 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13293 # Instead, shared libraries are loaded at an image base (0x10000000 by
13294 # default) and relocated if they conflict, which is a slow very memory
13295 # consuming and fragmenting process. To avoid this, we pick a random,
13296 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13297 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13298 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13299 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13300 ;;
13302 linux*)
13303 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13304 tmp_addflag=
13305 case $cc_basename,$host_cpu in
13306 pgcc*) # Portland Group C compiler
13307 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13308 tmp_addflag=' $pic_flag'
13309 ;;
13310 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13311 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13312 tmp_addflag=' $pic_flag -Mnomain' ;;
13313 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13314 tmp_addflag=' -i_dynamic' ;;
13315 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13316 tmp_addflag=' -i_dynamic -nofor_main' ;;
13317 ifc* | ifort*) # Intel Fortran compiler
13318 tmp_addflag=' -nofor_main' ;;
13319 esac
13320 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13322 if test $supports_anon_versioning = yes; then
13323 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
13324 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13325 $echo "local: *; };" >> $output_objdir/$libname.ver~
13326 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13327 fi
13328 else
13329 ld_shlibs_GCJ=no
13330 fi
13331 ;;
13333 netbsd*)
13334 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13335 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13336 wlarc=
13337 else
13338 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13339 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13340 fi
13341 ;;
13343 solaris*)
13344 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13345 ld_shlibs_GCJ=no
13346 cat <<EOF 1>&2
13348 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13349 *** create shared libraries on Solaris systems. Therefore, libtool
13350 *** is disabling shared libraries support. We urge you to upgrade GNU
13351 *** binutils to release 2.9.1 or newer. Another option is to modify
13352 *** your PATH or compiler configuration so that the native linker is
13353 *** used, and then restart.
13355 EOF
13356 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13357 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13358 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13359 else
13360 ld_shlibs_GCJ=no
13361 fi
13362 ;;
13364 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13365 case `$LD -v 2>&1` in
13366 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13367 ld_shlibs_GCJ=no
13368 cat <<_LT_EOF 1>&2
13370 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13371 *** reliably create shared libraries on SCO systems. Therefore, libtool
13372 *** is disabling shared libraries support. We urge you to upgrade GNU
13373 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13374 *** your PATH or compiler configuration so that the native linker is
13375 *** used, and then restart.
13377 _LT_EOF
13378 ;;
13379 *)
13380 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13381 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13382 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13383 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13384 else
13385 ld_shlibs_GCJ=no
13386 fi
13387 ;;
13388 esac
13389 ;;
13391 sunos4*)
13392 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13393 wlarc=
13394 hardcode_direct_GCJ=yes
13395 hardcode_shlibpath_var_GCJ=no
13396 ;;
13398 *)
13399 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13400 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13401 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13402 else
13403 ld_shlibs_GCJ=no
13404 fi
13405 ;;
13406 esac
13408 if test "$ld_shlibs_GCJ" = no; then
13409 runpath_var=
13410 hardcode_libdir_flag_spec_GCJ=
13411 export_dynamic_flag_spec_GCJ=
13412 whole_archive_flag_spec_GCJ=
13413 fi
13414 else
13415 # PORTME fill in a description of your system's linker (not GNU ld)
13416 case $host_os in
13417 aix3*)
13418 allow_undefined_flag_GCJ=unsupported
13419 always_export_symbols_GCJ=yes
13420 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'
13421 # Note: this linker hardcodes the directories in LIBPATH if there
13422 # are no directories specified by -L.
13423 hardcode_minus_L_GCJ=yes
13424 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13425 # Neither direct hardcoding nor static linking is supported with a
13426 # broken collect2.
13427 hardcode_direct_GCJ=unsupported
13428 fi
13429 ;;
13431 aix4* | aix5*)
13432 if test "$host_cpu" = ia64; then
13433 # On IA64, the linker does run time linking by default, so we don't
13434 # have to do anything special.
13435 aix_use_runtimelinking=no
13436 exp_sym_flag='-Bexport'
13437 no_entry_flag=""
13438 else
13439 # If we're using GNU nm, then we don't want the "-C" option.
13440 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13441 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13442 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'
13443 else
13444 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'
13445 fi
13446 aix_use_runtimelinking=no
13448 # Test if we are trying to use run time linking or normal
13449 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13450 # need to do runtime linking.
13451 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13452 for ld_flag in $LDFLAGS; do
13453 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13454 aix_use_runtimelinking=yes
13455 break
13456 fi
13457 done
13458 ;;
13459 esac
13461 exp_sym_flag='-bexport'
13462 no_entry_flag='-bnoentry'
13463 fi
13465 # When large executables or shared objects are built, AIX ld can
13466 # have problems creating the table of contents. If linking a library
13467 # or program results in "error TOC overflow" add -mminimal-toc to
13468 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13469 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13471 archive_cmds_GCJ=''
13472 hardcode_direct_GCJ=yes
13473 hardcode_libdir_separator_GCJ=':'
13474 link_all_deplibs_GCJ=yes
13476 if test "$GCC" = yes; then
13477 case $host_os in aix4.[012]|aix4.[012].*)
13478 # We only want to do this on AIX 4.2 and lower, the check
13479 # below for broken collect2 doesn't work under 4.3+
13480 collect2name=`${CC} -print-prog-name=collect2`
13481 if test -f "$collect2name" && \
13482 strings "$collect2name" | grep resolve_lib_name >/dev/null
13483 then
13484 # We have reworked collect2
13485 hardcode_direct_GCJ=yes
13486 else
13487 # We have old collect2
13488 hardcode_direct_GCJ=unsupported
13489 # It fails to find uninstalled libraries when the uninstalled
13490 # path is not listed in the libpath. Setting hardcode_minus_L
13491 # to unsupported forces relinking
13492 hardcode_minus_L_GCJ=yes
13493 hardcode_libdir_flag_spec_GCJ='-L$libdir'
13494 hardcode_libdir_separator_GCJ=
13495 fi
13496 ;;
13497 esac
13498 shared_flag='-shared'
13499 if test "$aix_use_runtimelinking" = yes; then
13500 shared_flag="$shared_flag "'${wl}-G'
13501 fi
13502 else
13503 # not using gcc
13504 if test "$host_cpu" = ia64; then
13505 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13506 # chokes on -Wl,-G. The following line is correct:
13507 shared_flag='-G'
13508 else
13509 if test "$aix_use_runtimelinking" = yes; then
13510 shared_flag='${wl}-G'
13511 else
13512 shared_flag='${wl}-bM:SRE'
13513 fi
13514 fi
13515 fi
13517 # It seems that -bexpall does not export symbols beginning with
13518 # underscore (_), so it is better to generate a list of symbols to export.
13519 always_export_symbols_GCJ=yes
13520 if test "$aix_use_runtimelinking" = yes; then
13521 # Warning - without using the other runtime loading flags (-brtl),
13522 # -berok will link without error, but may produce a broken library.
13523 allow_undefined_flag_GCJ='-berok'
13524 # Determine the default libpath from the value encoded in an empty executable.
13525 cat >conftest.$ac_ext <<_ACEOF
13526 /* confdefs.h. */
13527 _ACEOF
13528 cat confdefs.h >>conftest.$ac_ext
13529 cat >>conftest.$ac_ext <<_ACEOF
13530 /* end confdefs.h. */
13532 int
13533 main ()
13534 {
13536 ;
13537 return 0;
13538 }
13539 _ACEOF
13540 rm -f conftest.$ac_objext conftest$ac_exeext
13541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13542 (eval $ac_link) 2>conftest.er1
13543 ac_status=$?
13544 grep -v '^ *+' conftest.er1 >conftest.err
13545 rm -f conftest.er1
13546 cat conftest.err >&5
13547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548 (exit $ac_status); } &&
13549 { ac_try='test -z "$ac_c_werror_flag"
13550 || test ! -s conftest.err'
13551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13552 (eval $ac_try) 2>&5
13553 ac_status=$?
13554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13555 (exit $ac_status); }; } &&
13556 { ac_try='test -s conftest$ac_exeext'
13557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13558 (eval $ac_try) 2>&5
13559 ac_status=$?
13560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13561 (exit $ac_status); }; }; then
13563 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13564 }'`
13565 # Check for a 64-bit object if we didn't find anything.
13566 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; }
13567 }'`; fi
13568 else
13569 echo "$as_me: failed program was:" >&5
13570 sed 's/^/| /' conftest.$ac_ext >&5
13572 fi
13573 rm -f conftest.err conftest.$ac_objext \
13574 conftest$ac_exeext conftest.$ac_ext
13575 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13577 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
13578 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13579 else
13580 if test "$host_cpu" = ia64; then
13581 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
13582 allow_undefined_flag_GCJ="-z nodefs"
13583 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
13584 else
13585 # Determine the default libpath from the value encoded in an empty executable.
13586 cat >conftest.$ac_ext <<_ACEOF
13587 /* confdefs.h. */
13588 _ACEOF
13589 cat confdefs.h >>conftest.$ac_ext
13590 cat >>conftest.$ac_ext <<_ACEOF
13591 /* end confdefs.h. */
13593 int
13594 main ()
13595 {
13597 ;
13598 return 0;
13599 }
13600 _ACEOF
13601 rm -f conftest.$ac_objext conftest$ac_exeext
13602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13603 (eval $ac_link) 2>conftest.er1
13604 ac_status=$?
13605 grep -v '^ *+' conftest.er1 >conftest.err
13606 rm -f conftest.er1
13607 cat conftest.err >&5
13608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609 (exit $ac_status); } &&
13610 { ac_try='test -z "$ac_c_werror_flag"
13611 || test ! -s conftest.err'
13612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13613 (eval $ac_try) 2>&5
13614 ac_status=$?
13615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616 (exit $ac_status); }; } &&
13617 { ac_try='test -s conftest$ac_exeext'
13618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13619 (eval $ac_try) 2>&5
13620 ac_status=$?
13621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622 (exit $ac_status); }; }; then
13624 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13625 }'`
13626 # Check for a 64-bit object if we didn't find anything.
13627 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; }
13628 }'`; fi
13629 else
13630 echo "$as_me: failed program was:" >&5
13631 sed 's/^/| /' conftest.$ac_ext >&5
13633 fi
13634 rm -f conftest.err conftest.$ac_objext \
13635 conftest$ac_exeext conftest.$ac_ext
13636 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13638 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
13639 # Warning - without using the other run time loading flags,
13640 # -berok will link without error, but may produce a broken library.
13641 no_undefined_flag_GCJ=' ${wl}-bernotok'
13642 allow_undefined_flag_GCJ=' ${wl}-berok'
13643 # Exported symbols can be pulled into shared objects from archives
13644 whole_archive_flag_spec_GCJ='$convenience'
13645 archive_cmds_need_lc_GCJ=yes
13646 # This is similar to how AIX traditionally builds its shared libraries.
13647 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13648 fi
13649 fi
13650 ;;
13652 amigaos*)
13653 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)'
13654 hardcode_libdir_flag_spec_GCJ='-L$libdir'
13655 hardcode_minus_L_GCJ=yes
13656 # see comment about different semantics on the GNU ld section
13657 ld_shlibs_GCJ=no
13658 ;;
13660 bsdi[45]*)
13661 export_dynamic_flag_spec_GCJ=-rdynamic
13662 ;;
13664 cygwin* | mingw* | pw32*)
13665 # When not using gcc, we currently assume that we are using
13666 # Microsoft Visual C++.
13667 # hardcode_libdir_flag_spec is actually meaningless, as there is
13668 # no search path for DLLs.
13669 hardcode_libdir_flag_spec_GCJ=' '
13670 allow_undefined_flag_GCJ=unsupported
13671 # Tell ltmain to make .lib files, not .a files.
13672 libext=lib
13673 # Tell ltmain to make .dll files, not .so files.
13674 shrext_cmds=".dll"
13675 # FIXME: Setting linknames here is a bad hack.
13676 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13677 # The linker will automatically build a .lib file if we build a DLL.
13678 old_archive_From_new_cmds_GCJ='true'
13679 # FIXME: Should let the user specify the lib program.
13680 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
13681 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
13682 enable_shared_with_static_runtimes_GCJ=yes
13683 ;;
13685 darwin* | rhapsody*)
13686 case $host_os in
13687 rhapsody* | darwin1.[012])
13688 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
13689 ;;
13690 *) # Darwin 1.3 on
13691 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13692 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13693 else
13694 case ${MACOSX_DEPLOYMENT_TARGET} in
13695 10.[012])
13696 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13697 ;;
13698 10.*)
13699 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
13700 ;;
13701 esac
13702 fi
13703 ;;
13704 esac
13705 archive_cmds_need_lc_GCJ=no
13706 hardcode_direct_GCJ=no
13707 hardcode_automatic_GCJ=yes
13708 hardcode_shlibpath_var_GCJ=unsupported
13709 whole_archive_flag_spec_GCJ=''
13710 link_all_deplibs_GCJ=yes
13711 if test "$GCC" = yes ; then
13712 output_verbose_link_cmd='echo'
13713 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13714 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13715 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13716 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13717 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}'
13718 else
13719 case $cc_basename in
13720 xlc*)
13721 output_verbose_link_cmd='echo'
13722 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13723 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13724 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13725 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13726 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}'
13727 ;;
13728 *)
13729 ld_shlibs_GCJ=no
13730 ;;
13731 esac
13732 fi
13733 ;;
13735 dgux*)
13736 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13737 hardcode_libdir_flag_spec_GCJ='-L$libdir'
13738 hardcode_shlibpath_var_GCJ=no
13739 ;;
13741 freebsd1*)
13742 ld_shlibs_GCJ=no
13743 ;;
13745 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13746 # support. Future versions do this automatically, but an explicit c++rt0.o
13747 # does not break anything, and helps significantly (at the cost of a little
13748 # extra space).
13749 freebsd2.2*)
13750 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13751 hardcode_libdir_flag_spec_GCJ='-R$libdir'
13752 hardcode_direct_GCJ=yes
13753 hardcode_shlibpath_var_GCJ=no
13754 ;;
13756 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13757 freebsd2*)
13758 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13759 hardcode_direct_GCJ=yes
13760 hardcode_minus_L_GCJ=yes
13761 hardcode_shlibpath_var_GCJ=no
13762 ;;
13764 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13765 freebsd* | kfreebsd*-gnu | dragonfly*)
13766 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13767 hardcode_libdir_flag_spec_GCJ='-R$libdir'
13768 hardcode_direct_GCJ=yes
13769 hardcode_shlibpath_var_GCJ=no
13770 ;;
13772 hpux9*)
13773 if test "$GCC" = yes; then
13774 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'
13775 else
13776 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'
13777 fi
13778 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
13779 hardcode_libdir_separator_GCJ=:
13780 hardcode_direct_GCJ=yes
13782 # hardcode_minus_L: Not really in the search PATH,
13783 # but as the default location of the library.
13784 hardcode_minus_L_GCJ=yes
13785 export_dynamic_flag_spec_GCJ='${wl}-E'
13786 ;;
13788 hpux10*)
13789 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13790 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13791 else
13792 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13793 fi
13794 if test "$with_gnu_ld" = no; then
13795 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
13796 hardcode_libdir_separator_GCJ=:
13798 hardcode_direct_GCJ=yes
13799 export_dynamic_flag_spec_GCJ='${wl}-E'
13801 # hardcode_minus_L: Not really in the search PATH,
13802 # but as the default location of the library.
13803 hardcode_minus_L_GCJ=yes
13804 fi
13805 ;;
13807 hpux11*)
13808 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13809 case $host_cpu in
13810 hppa*64*)
13811 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13812 ;;
13813 ia64*)
13814 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13815 ;;
13816 *)
13817 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13818 ;;
13819 esac
13820 else
13821 case $host_cpu in
13822 hppa*64*)
13823 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13824 ;;
13825 ia64*)
13826 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13827 ;;
13828 *)
13829 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13830 ;;
13831 esac
13832 fi
13833 if test "$with_gnu_ld" = no; then
13834 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
13835 hardcode_libdir_separator_GCJ=:
13837 case $host_cpu in
13838 hppa*64*|ia64*)
13839 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
13840 hardcode_direct_GCJ=no
13841 hardcode_shlibpath_var_GCJ=no
13842 ;;
13843 *)
13844 hardcode_direct_GCJ=yes
13845 export_dynamic_flag_spec_GCJ='${wl}-E'
13847 # hardcode_minus_L: Not really in the search PATH,
13848 # but as the default location of the library.
13849 hardcode_minus_L_GCJ=yes
13850 ;;
13851 esac
13852 fi
13853 ;;
13855 irix5* | irix6* | nonstopux*)
13856 if test "$GCC" = yes; then
13857 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'
13858 else
13859 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'
13860 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
13861 fi
13862 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
13863 hardcode_libdir_separator_GCJ=:
13864 link_all_deplibs_GCJ=yes
13865 ;;
13867 netbsd*)
13868 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13869 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13870 else
13871 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13872 fi
13873 hardcode_libdir_flag_spec_GCJ='-R$libdir'
13874 hardcode_direct_GCJ=yes
13875 hardcode_shlibpath_var_GCJ=no
13876 ;;
13878 newsos6)
13879 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13880 hardcode_direct_GCJ=yes
13881 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
13882 hardcode_libdir_separator_GCJ=:
13883 hardcode_shlibpath_var_GCJ=no
13884 ;;
13886 openbsd*)
13887 hardcode_direct_GCJ=yes
13888 hardcode_shlibpath_var_GCJ=no
13889 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13890 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13891 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13892 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
13893 export_dynamic_flag_spec_GCJ='${wl}-E'
13894 else
13895 case $host_os in
13896 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13897 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13898 hardcode_libdir_flag_spec_GCJ='-R$libdir'
13899 ;;
13900 *)
13901 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13902 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
13903 ;;
13904 esac
13905 fi
13906 ;;
13908 os2*)
13909 hardcode_libdir_flag_spec_GCJ='-L$libdir'
13910 hardcode_minus_L_GCJ=yes
13911 allow_undefined_flag_GCJ=unsupported
13912 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'
13913 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13914 ;;
13916 osf3*)
13917 if test "$GCC" = yes; then
13918 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
13919 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'
13920 else
13921 allow_undefined_flag_GCJ=' -expect_unresolved \*'
13922 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'
13923 fi
13924 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
13925 hardcode_libdir_separator_GCJ=:
13926 ;;
13928 osf4* | osf5*) # as osf3* with the addition of -msym flag
13929 if test "$GCC" = yes; then
13930 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
13931 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'
13932 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
13933 else
13934 allow_undefined_flag_GCJ=' -expect_unresolved \*'
13935 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'
13936 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~
13937 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
13939 # Both c and cxx compiler support -rpath directly
13940 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
13941 fi
13942 hardcode_libdir_separator_GCJ=:
13943 ;;
13945 solaris*)
13946 no_undefined_flag_GCJ=' -z text'
13947 if test "$GCC" = yes; then
13948 wlarc='${wl}'
13949 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13950 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13951 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13952 else
13953 wlarc=''
13954 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13955 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13956 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13957 fi
13958 hardcode_libdir_flag_spec_GCJ='-R$libdir'
13959 hardcode_shlibpath_var_GCJ=no
13960 case $host_os in
13961 solaris2.[0-5] | solaris2.[0-5].*) ;;
13962 *)
13963 # The compiler driver will combine linker options so we
13964 # cannot just pass the convience library names through
13965 # without $wl, iff we do not link with $LD.
13966 # Luckily, gcc supports the same syntax we need for Sun Studio.
13967 # Supported since Solaris 2.6 (maybe 2.5.1?)
13968 case $wlarc in
13969 '')
13970 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
13971 *)
13972 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
13973 esac ;;
13974 esac
13975 link_all_deplibs_GCJ=yes
13976 ;;
13978 sunos4*)
13979 if test "x$host_vendor" = xsequent; then
13980 # Use $CC to link under sequent, because it throws in some extra .o
13981 # files that make .init and .fini sections work.
13982 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13983 else
13984 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13985 fi
13986 hardcode_libdir_flag_spec_GCJ='-L$libdir'
13987 hardcode_direct_GCJ=yes
13988 hardcode_minus_L_GCJ=yes
13989 hardcode_shlibpath_var_GCJ=no
13990 ;;
13992 sysv4)
13993 case $host_vendor in
13994 sni)
13995 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13996 hardcode_direct_GCJ=yes # is this really true???
13997 ;;
13998 siemens)
13999 ## LD is ld it makes a PLAMLIB
14000 ## CC just makes a GrossModule.
14001 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14002 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
14003 hardcode_direct_GCJ=no
14004 ;;
14005 motorola)
14006 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14007 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
14008 ;;
14009 esac
14010 runpath_var='LD_RUN_PATH'
14011 hardcode_shlibpath_var_GCJ=no
14012 ;;
14014 sysv4.3*)
14015 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14016 hardcode_shlibpath_var_GCJ=no
14017 export_dynamic_flag_spec_GCJ='-Bexport'
14018 ;;
14020 sysv4*MP*)
14021 if test -d /usr/nec; then
14022 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14023 hardcode_shlibpath_var_GCJ=no
14024 runpath_var=LD_RUN_PATH
14025 hardcode_runpath_var=yes
14026 ld_shlibs_GCJ=yes
14027 fi
14028 ;;
14030 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14031 no_undefined_flag_GCJ='${wl}-z,text'
14032 archive_cmds_need_lc_GCJ=no
14033 hardcode_shlibpath_var_GCJ=no
14034 runpath_var='LD_RUN_PATH'
14036 if test "$GCC" = yes; then
14037 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14038 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14039 else
14040 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14041 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14042 fi
14043 ;;
14045 sysv5* | sco3.2v5* | sco5v6*)
14046 # Note: We can NOT use -z defs as we might desire, because we do not
14047 # link with -lc, and that would cause any symbols used from libc to
14048 # always be unresolved, which means just about no library would
14049 # ever link correctly. If we're not using GNU ld we use -z text
14050 # though, which does catch some bad symbols but isn't as heavy-handed
14051 # as -z defs.
14052 no_undefined_flag_GCJ='${wl}-z,text'
14053 allow_undefined_flag_GCJ='${wl}-z,nodefs'
14054 archive_cmds_need_lc_GCJ=no
14055 hardcode_shlibpath_var_GCJ=no
14056 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14057 hardcode_libdir_separator_GCJ=':'
14058 link_all_deplibs_GCJ=yes
14059 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
14060 runpath_var='LD_RUN_PATH'
14062 if test "$GCC" = yes; then
14063 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14064 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14065 else
14066 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14067 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14068 fi
14069 ;;
14071 uts4*)
14072 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14073 hardcode_libdir_flag_spec_GCJ='-L$libdir'
14074 hardcode_shlibpath_var_GCJ=no
14075 ;;
14077 *)
14078 ld_shlibs_GCJ=no
14079 ;;
14080 esac
14081 fi
14083 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
14084 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
14085 test "$ld_shlibs_GCJ" = no && can_build_shared=no
14087 #
14088 # Do we need to explicitly link libc?
14089 #
14090 case "x$archive_cmds_need_lc_GCJ" in
14091 x|xyes)
14092 # Assume -lc should be added
14093 archive_cmds_need_lc_GCJ=yes
14095 if test "$enable_shared" = yes && test "$GCC" = yes; then
14096 case $archive_cmds_GCJ in
14097 *'~'*)
14098 # FIXME: we may have to deal with multi-command sequences.
14099 ;;
14100 '$CC '*)
14101 # Test whether the compiler implicitly links with -lc since on some
14102 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14103 # to ld, don't add -lc before -lgcc.
14104 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14105 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14106 $rm conftest*
14107 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14110 (eval $ac_compile) 2>&5
14111 ac_status=$?
14112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14113 (exit $ac_status); } 2>conftest.err; then
14114 soname=conftest
14115 lib=conftest
14116 libobjs=conftest.$ac_objext
14117 deplibs=
14118 wl=$lt_prog_compiler_wl_GCJ
14119 pic_flag=$lt_prog_compiler_pic_GCJ
14120 compiler_flags=-v
14121 linker_flags=-v
14122 verstring=
14123 output_objdir=.
14124 libname=conftest
14125 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
14126 allow_undefined_flag_GCJ=
14127 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14128 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14129 ac_status=$?
14130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14131 (exit $ac_status); }
14132 then
14133 archive_cmds_need_lc_GCJ=no
14134 else
14135 archive_cmds_need_lc_GCJ=yes
14136 fi
14137 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
14138 else
14139 cat conftest.err 1>&5
14140 fi
14141 $rm conftest*
14142 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
14143 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
14144 ;;
14145 esac
14146 fi
14147 ;;
14148 esac
14150 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14151 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14152 library_names_spec=
14153 libname_spec='lib$name'
14154 soname_spec=
14155 shrext_cmds=".so"
14156 postinstall_cmds=
14157 postuninstall_cmds=
14158 finish_cmds=
14159 finish_eval=
14160 shlibpath_var=
14161 shlibpath_overrides_runpath=unknown
14162 version_type=none
14163 dynamic_linker="$host_os ld.so"
14164 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14165 if test "$GCC" = yes; then
14166 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14167 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14168 # if the path contains ";" then we assume it to be the separator
14169 # otherwise default to the standard path separator (i.e. ":") - it is
14170 # assumed that no part of a normal pathname contains ";" but that should
14171 # okay in the real world where ";" in dirpaths is itself problematic.
14172 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14173 else
14174 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14175 fi
14176 else
14177 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14178 fi
14179 need_lib_prefix=unknown
14180 hardcode_into_libs=no
14182 # when you set need_version to no, make sure it does not cause -set_version
14183 # flags to be left without arguments
14184 need_version=unknown
14186 case $host_os in
14187 aix3*)
14188 version_type=linux
14189 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14190 shlibpath_var=LIBPATH
14192 # AIX 3 has no versioning support, so we append a major version to the name.
14193 soname_spec='${libname}${release}${shared_ext}$major'
14194 ;;
14196 aix4* | aix5*)
14197 version_type=linux
14198 need_lib_prefix=no
14199 need_version=no
14200 hardcode_into_libs=yes
14201 if test "$host_cpu" = ia64; then
14202 # AIX 5 supports IA64
14203 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14204 shlibpath_var=LD_LIBRARY_PATH
14205 else
14206 # With GCC up to 2.95.x, collect2 would create an import file
14207 # for dependence libraries. The import file would start with
14208 # the line `#! .'. This would cause the generated library to
14209 # depend on `.', always an invalid library. This was fixed in
14210 # development snapshots of GCC prior to 3.0.
14211 case $host_os in
14212 aix4 | aix4.[01] | aix4.[01].*)
14213 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14214 echo ' yes '
14215 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14216 :
14217 else
14218 can_build_shared=no
14219 fi
14220 ;;
14221 esac
14222 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14223 # soname into executable. Probably we can add versioning support to
14224 # collect2, so additional links can be useful in future.
14225 if test "$aix_use_runtimelinking" = yes; then
14226 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14227 # instead of lib<name>.a to let people know that these are not
14228 # typical AIX shared libraries.
14229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14230 else
14231 # We preserve .a as extension for shared libraries through AIX4.2
14232 # and later when we are not doing run time linking.
14233 library_names_spec='${libname}${release}.a $libname.a'
14234 soname_spec='${libname}${release}${shared_ext}$major'
14235 fi
14236 shlibpath_var=LIBPATH
14237 fi
14238 ;;
14240 amigaos*)
14241 library_names_spec='$libname.ixlibrary $libname.a'
14242 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14243 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'
14244 ;;
14246 beos*)
14247 library_names_spec='${libname}${shared_ext}'
14248 dynamic_linker="$host_os ld.so"
14249 shlibpath_var=LIBRARY_PATH
14250 ;;
14252 bsdi[45]*)
14253 version_type=linux
14254 need_version=no
14255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14256 soname_spec='${libname}${release}${shared_ext}$major'
14257 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14258 shlibpath_var=LD_LIBRARY_PATH
14259 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14260 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14261 # the default ld.so.conf also contains /usr/contrib/lib and
14262 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14263 # libtool to hard-code these into programs
14264 ;;
14266 cygwin* | mingw* | pw32*)
14267 version_type=windows
14268 shrext_cmds=".dll"
14269 need_version=no
14270 need_lib_prefix=no
14272 case $GCC,$host_os in
14273 yes,cygwin* | yes,mingw* | yes,pw32*)
14274 library_names_spec='$libname.dll.a'
14275 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14276 postinstall_cmds='base_file=`basename \${file}`~
14277 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14278 dldir=$destdir/`dirname \$dlpath`~
14279 test -d \$dldir || mkdir -p \$dldir~
14280 $install_prog $dir/$dlname \$dldir/$dlname~
14281 chmod a+x \$dldir/$dlname'
14282 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14283 dlpath=$dir/\$dldll~
14284 $rm \$dlpath'
14285 shlibpath_overrides_runpath=yes
14287 case $host_os in
14288 cygwin*)
14289 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14290 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14291 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14292 ;;
14293 mingw*)
14294 # MinGW DLLs use traditional 'lib' prefix
14295 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14296 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14297 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14298 # It is most probably a Windows format PATH printed by
14299 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14300 # path with ; separators, and with drive letters. We can handle the
14301 # drive letters (cygwin fileutils understands them), so leave them,
14302 # especially as we might pass files found there to a mingw objdump,
14303 # which wouldn't understand a cygwinified path. Ahh.
14304 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14305 else
14306 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14307 fi
14308 ;;
14309 pw32*)
14310 # pw32 DLLs use 'pw' prefix rather than 'lib'
14311 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14312 ;;
14313 esac
14314 ;;
14316 *)
14317 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14318 ;;
14319 esac
14320 dynamic_linker='Win32 ld.exe'
14321 # FIXME: first we should search . and the directory the executable is in
14322 shlibpath_var=PATH
14323 ;;
14325 darwin* | rhapsody*)
14326 dynamic_linker="$host_os dyld"
14327 version_type=darwin
14328 need_lib_prefix=no
14329 need_version=no
14330 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14331 soname_spec='${libname}${release}${major}$shared_ext'
14332 shlibpath_overrides_runpath=yes
14333 shlibpath_var=DYLD_LIBRARY_PATH
14334 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14335 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14336 if test "$GCC" = yes; then
14337 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"`
14338 else
14339 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14340 fi
14341 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14342 ;;
14344 dgux*)
14345 version_type=linux
14346 need_lib_prefix=no
14347 need_version=no
14348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14349 soname_spec='${libname}${release}${shared_ext}$major'
14350 shlibpath_var=LD_LIBRARY_PATH
14351 ;;
14353 freebsd1*)
14354 dynamic_linker=no
14355 ;;
14357 kfreebsd*-gnu)
14358 version_type=linux
14359 need_lib_prefix=no
14360 need_version=no
14361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14362 soname_spec='${libname}${release}${shared_ext}$major'
14363 shlibpath_var=LD_LIBRARY_PATH
14364 shlibpath_overrides_runpath=no
14365 hardcode_into_libs=yes
14366 dynamic_linker='GNU ld.so'
14367 ;;
14369 freebsd* | dragonfly*)
14370 # DragonFly does not have aout. When/if they implement a new
14371 # versioning mechanism, adjust this.
14372 if test -x /usr/bin/objformat; then
14373 objformat=`/usr/bin/objformat`
14374 else
14375 case $host_os in
14376 freebsd[123]*) objformat=aout ;;
14377 *) objformat=elf ;;
14378 esac
14379 fi
14380 version_type=freebsd-$objformat
14381 case $version_type in
14382 freebsd-elf*)
14383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14384 need_version=no
14385 need_lib_prefix=no
14386 ;;
14387 freebsd-*)
14388 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14389 need_version=yes
14390 ;;
14391 esac
14392 shlibpath_var=LD_LIBRARY_PATH
14393 case $host_os in
14394 freebsd2*)
14395 shlibpath_overrides_runpath=yes
14396 ;;
14397 freebsd3.[01]* | freebsdelf3.[01]*)
14398 shlibpath_overrides_runpath=yes
14399 hardcode_into_libs=yes
14400 ;;
14401 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14402 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14403 shlibpath_overrides_runpath=no
14404 hardcode_into_libs=yes
14405 ;;
14406 freebsd*) # from 4.6 on
14407 shlibpath_overrides_runpath=yes
14408 hardcode_into_libs=yes
14409 ;;
14410 esac
14411 ;;
14413 gnu*)
14414 version_type=linux
14415 need_lib_prefix=no
14416 need_version=no
14417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14418 soname_spec='${libname}${release}${shared_ext}$major'
14419 shlibpath_var=LD_LIBRARY_PATH
14420 hardcode_into_libs=yes
14421 ;;
14423 hpux9* | hpux10* | hpux11*)
14424 # Give a soname corresponding to the major version so that dld.sl refuses to
14425 # link against other versions.
14426 version_type=sunos
14427 need_lib_prefix=no
14428 need_version=no
14429 case $host_cpu in
14430 ia64*)
14431 shrext_cmds='.so'
14432 hardcode_into_libs=yes
14433 dynamic_linker="$host_os dld.so"
14434 shlibpath_var=LD_LIBRARY_PATH
14435 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14437 soname_spec='${libname}${release}${shared_ext}$major'
14438 if test "X$HPUX_IA64_MODE" = X32; then
14439 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14440 else
14441 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14442 fi
14443 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14444 ;;
14445 hppa*64*)
14446 shrext_cmds='.sl'
14447 hardcode_into_libs=yes
14448 dynamic_linker="$host_os dld.sl"
14449 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14450 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14452 soname_spec='${libname}${release}${shared_ext}$major'
14453 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14454 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14455 ;;
14456 *)
14457 shrext_cmds='.sl'
14458 dynamic_linker="$host_os dld.sl"
14459 shlibpath_var=SHLIB_PATH
14460 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14462 soname_spec='${libname}${release}${shared_ext}$major'
14463 ;;
14464 esac
14465 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14466 postinstall_cmds='chmod 555 $lib'
14467 ;;
14469 interix3*)
14470 version_type=linux
14471 need_lib_prefix=no
14472 need_version=no
14473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14474 soname_spec='${libname}${release}${shared_ext}$major'
14475 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14476 shlibpath_var=LD_LIBRARY_PATH
14477 shlibpath_overrides_runpath=no
14478 hardcode_into_libs=yes
14479 ;;
14481 irix5* | irix6* | nonstopux*)
14482 case $host_os in
14483 nonstopux*) version_type=nonstopux ;;
14484 *)
14485 if test "$lt_cv_prog_gnu_ld" = yes; then
14486 version_type=linux
14487 else
14488 version_type=irix
14489 fi ;;
14490 esac
14491 need_lib_prefix=no
14492 need_version=no
14493 soname_spec='${libname}${release}${shared_ext}$major'
14494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14495 case $host_os in
14496 irix5* | nonstopux*)
14497 libsuff= shlibsuff=
14498 ;;
14499 *)
14500 case $LD in # libtool.m4 will add one of these switches to LD
14501 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14502 libsuff= shlibsuff= libmagic=32-bit;;
14503 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14504 libsuff=32 shlibsuff=N32 libmagic=N32;;
14505 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14506 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14507 *) libsuff= shlibsuff= libmagic=never-match;;
14508 esac
14509 ;;
14510 esac
14511 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14512 shlibpath_overrides_runpath=no
14513 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14514 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14515 hardcode_into_libs=yes
14516 ;;
14518 # No shared lib support for Linux oldld, aout, or coff.
14519 linux*oldld* | linux*aout* | linux*coff*)
14520 dynamic_linker=no
14521 ;;
14523 # This must be Linux ELF.
14524 linux*)
14525 version_type=linux
14526 need_lib_prefix=no
14527 need_version=no
14528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14529 soname_spec='${libname}${release}${shared_ext}$major'
14530 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14531 shlibpath_var=LD_LIBRARY_PATH
14532 shlibpath_overrides_runpath=no
14533 # This implies no fast_install, which is unacceptable.
14534 # Some rework will be needed to allow for fast_install
14535 # before this can be enabled.
14536 hardcode_into_libs=yes
14538 # Append ld.so.conf contents to the search path
14539 if test -f /etc/ld.so.conf; then
14540 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14541 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14542 fi
14544 # We used to test for /lib/ld.so.1 and disable shared libraries on
14545 # powerpc, because MkLinux only supported shared libraries with the
14546 # GNU dynamic linker. Since this was broken with cross compilers,
14547 # most powerpc-linux boxes support dynamic linking these days and
14548 # people can always --disable-shared, the test was removed, and we
14549 # assume the GNU/Linux dynamic linker is in use.
14550 dynamic_linker='GNU/Linux ld.so'
14551 ;;
14553 knetbsd*-gnu)
14554 version_type=linux
14555 need_lib_prefix=no
14556 need_version=no
14557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14558 soname_spec='${libname}${release}${shared_ext}$major'
14559 shlibpath_var=LD_LIBRARY_PATH
14560 shlibpath_overrides_runpath=no
14561 hardcode_into_libs=yes
14562 dynamic_linker='GNU ld.so'
14563 ;;
14565 netbsd*)
14566 version_type=sunos
14567 need_lib_prefix=no
14568 need_version=no
14569 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14571 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14572 dynamic_linker='NetBSD (a.out) ld.so'
14573 else
14574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14575 soname_spec='${libname}${release}${shared_ext}$major'
14576 dynamic_linker='NetBSD ld.elf_so'
14577 fi
14578 shlibpath_var=LD_LIBRARY_PATH
14579 shlibpath_overrides_runpath=yes
14580 hardcode_into_libs=yes
14581 ;;
14583 newsos6)
14584 version_type=linux
14585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14586 shlibpath_var=LD_LIBRARY_PATH
14587 shlibpath_overrides_runpath=yes
14588 ;;
14590 nto-qnx*)
14591 version_type=linux
14592 need_lib_prefix=no
14593 need_version=no
14594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14595 soname_spec='${libname}${release}${shared_ext}$major'
14596 shlibpath_var=LD_LIBRARY_PATH
14597 shlibpath_overrides_runpath=yes
14598 ;;
14600 openbsd*)
14601 version_type=sunos
14602 sys_lib_dlsearch_path_spec="/usr/lib"
14603 need_lib_prefix=no
14604 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14605 case $host_os in
14606 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14607 *) need_version=no ;;
14608 esac
14609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14610 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14611 shlibpath_var=LD_LIBRARY_PATH
14612 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14613 case $host_os in
14614 openbsd2.[89] | openbsd2.[89].*)
14615 shlibpath_overrides_runpath=no
14616 ;;
14617 *)
14618 shlibpath_overrides_runpath=yes
14619 ;;
14620 esac
14621 else
14622 shlibpath_overrides_runpath=yes
14623 fi
14624 ;;
14626 os2*)
14627 libname_spec='$name'
14628 shrext_cmds=".dll"
14629 need_lib_prefix=no
14630 library_names_spec='$libname${shared_ext} $libname.a'
14631 dynamic_linker='OS/2 ld.exe'
14632 shlibpath_var=LIBPATH
14633 ;;
14635 osf3* | osf4* | osf5*)
14636 version_type=osf
14637 need_lib_prefix=no
14638 need_version=no
14639 soname_spec='${libname}${release}${shared_ext}$major'
14640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14641 shlibpath_var=LD_LIBRARY_PATH
14642 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14643 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14644 ;;
14646 solaris*)
14647 version_type=linux
14648 need_lib_prefix=no
14649 need_version=no
14650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14651 soname_spec='${libname}${release}${shared_ext}$major'
14652 shlibpath_var=LD_LIBRARY_PATH
14653 shlibpath_overrides_runpath=yes
14654 hardcode_into_libs=yes
14655 # ldd complains unless libraries are executable
14656 postinstall_cmds='chmod +x $lib'
14657 ;;
14659 sunos4*)
14660 version_type=sunos
14661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14662 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14663 shlibpath_var=LD_LIBRARY_PATH
14664 shlibpath_overrides_runpath=yes
14665 if test "$with_gnu_ld" = yes; then
14666 need_lib_prefix=no
14667 fi
14668 need_version=yes
14669 ;;
14671 sysv4 | sysv4.3*)
14672 version_type=linux
14673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14674 soname_spec='${libname}${release}${shared_ext}$major'
14675 shlibpath_var=LD_LIBRARY_PATH
14676 case $host_vendor in
14677 sni)
14678 shlibpath_overrides_runpath=no
14679 need_lib_prefix=no
14680 export_dynamic_flag_spec='${wl}-Blargedynsym'
14681 runpath_var=LD_RUN_PATH
14682 ;;
14683 siemens)
14684 need_lib_prefix=no
14685 ;;
14686 motorola)
14687 need_lib_prefix=no
14688 need_version=no
14689 shlibpath_overrides_runpath=no
14690 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14691 ;;
14692 esac
14693 ;;
14695 sysv4*MP*)
14696 if test -d /usr/nec ;then
14697 version_type=linux
14698 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14699 soname_spec='$libname${shared_ext}.$major'
14700 shlibpath_var=LD_LIBRARY_PATH
14701 fi
14702 ;;
14704 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14705 version_type=freebsd-elf
14706 need_lib_prefix=no
14707 need_version=no
14708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14709 soname_spec='${libname}${release}${shared_ext}$major'
14710 shlibpath_var=LD_LIBRARY_PATH
14711 hardcode_into_libs=yes
14712 if test "$with_gnu_ld" = yes; then
14713 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14714 shlibpath_overrides_runpath=no
14715 else
14716 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14717 shlibpath_overrides_runpath=yes
14718 case $host_os in
14719 sco3.2v5*)
14720 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14721 ;;
14722 esac
14723 fi
14724 sys_lib_dlsearch_path_spec='/usr/lib'
14725 ;;
14727 uts4*)
14728 version_type=linux
14729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14730 soname_spec='${libname}${release}${shared_ext}$major'
14731 shlibpath_var=LD_LIBRARY_PATH
14732 ;;
14734 *)
14735 dynamic_linker=no
14736 ;;
14737 esac
14738 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14739 echo "${ECHO_T}$dynamic_linker" >&6
14740 test "$dynamic_linker" = no && can_build_shared=no
14742 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14743 if test "$GCC" = yes; then
14744 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14745 fi
14747 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14748 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14749 hardcode_action_GCJ=
14750 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
14751 test -n "$runpath_var_GCJ" || \
14752 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
14754 # We can hardcode non-existant directories.
14755 if test "$hardcode_direct_GCJ" != no &&
14756 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14757 # have to relink, otherwise we might link with an installed library
14758 # when we should be linking with a yet-to-be-installed one
14759 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
14760 test "$hardcode_minus_L_GCJ" != no; then
14761 # Linking always hardcodes the temporary library directory.
14762 hardcode_action_GCJ=relink
14763 else
14764 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14765 hardcode_action_GCJ=immediate
14766 fi
14767 else
14768 # We cannot hardcode anything, or else we can only hardcode existing
14769 # directories.
14770 hardcode_action_GCJ=unsupported
14771 fi
14772 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
14773 echo "${ECHO_T}$hardcode_action_GCJ" >&6
14775 if test "$hardcode_action_GCJ" = relink; then
14776 # Fast installation is not supported
14777 enable_fast_install=no
14778 elif test "$shlibpath_overrides_runpath" = yes ||
14779 test "$enable_shared" = no; then
14780 # Fast installation is not necessary
14781 enable_fast_install=needless
14782 fi
14785 # The else clause should only fire when bootstrapping the
14786 # libtool distribution, otherwise you forgot to ship ltmain.sh
14787 # with your package, and you will get complaints that there are
14788 # no rules to generate ltmain.sh.
14789 if test -f "$ltmain"; then
14790 # See if we are running on zsh, and set the options which allow our commands through
14791 # without removal of \ escapes.
14792 if test -n "${ZSH_VERSION+set}" ; then
14793 setopt NO_GLOB_SUBST
14794 fi
14795 # Now quote all the things that may contain metacharacters while being
14796 # careful not to overquote the AC_SUBSTed values. We take copies of the
14797 # variables and quote the copies for generation of the libtool script.
14798 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14799 SED SHELL STRIP \
14800 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14801 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14802 deplibs_check_method reload_flag reload_cmds need_locks \
14803 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14804 lt_cv_sys_global_symbol_to_c_name_address \
14805 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14806 old_postinstall_cmds old_postuninstall_cmds \
14807 compiler_GCJ \
14808 CC_GCJ \
14809 LD_GCJ \
14810 lt_prog_compiler_wl_GCJ \
14811 lt_prog_compiler_pic_GCJ \
14812 lt_prog_compiler_static_GCJ \
14813 lt_prog_compiler_no_builtin_flag_GCJ \
14814 export_dynamic_flag_spec_GCJ \
14815 thread_safe_flag_spec_GCJ \
14816 whole_archive_flag_spec_GCJ \
14817 enable_shared_with_static_runtimes_GCJ \
14818 old_archive_cmds_GCJ \
14819 old_archive_from_new_cmds_GCJ \
14820 predep_objects_GCJ \
14821 postdep_objects_GCJ \
14822 predeps_GCJ \
14823 postdeps_GCJ \
14824 compiler_lib_search_path_GCJ \
14825 archive_cmds_GCJ \
14826 archive_expsym_cmds_GCJ \
14827 postinstall_cmds_GCJ \
14828 postuninstall_cmds_GCJ \
14829 old_archive_from_expsyms_cmds_GCJ \
14830 allow_undefined_flag_GCJ \
14831 no_undefined_flag_GCJ \
14832 export_symbols_cmds_GCJ \
14833 hardcode_libdir_flag_spec_GCJ \
14834 hardcode_libdir_flag_spec_ld_GCJ \
14835 hardcode_libdir_separator_GCJ \
14836 hardcode_automatic_GCJ \
14837 module_cmds_GCJ \
14838 module_expsym_cmds_GCJ \
14839 lt_cv_prog_compiler_c_o_GCJ \
14840 exclude_expsyms_GCJ \
14841 include_expsyms_GCJ; do
14843 case $var in
14844 old_archive_cmds_GCJ | \
14845 old_archive_from_new_cmds_GCJ | \
14846 archive_cmds_GCJ | \
14847 archive_expsym_cmds_GCJ | \
14848 module_cmds_GCJ | \
14849 module_expsym_cmds_GCJ | \
14850 old_archive_from_expsyms_cmds_GCJ | \
14851 export_symbols_cmds_GCJ | \
14852 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14853 postinstall_cmds | postuninstall_cmds | \
14854 old_postinstall_cmds | old_postuninstall_cmds | \
14855 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14856 # Double-quote double-evaled strings.
14857 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14858 ;;
14859 *)
14860 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14861 ;;
14862 esac
14863 done
14865 case $lt_echo in
14866 *'\$0 --fallback-echo"')
14867 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14868 ;;
14869 esac
14871 cfgfile="$ofile"
14873 cat <<__EOF__ >> "$cfgfile"
14874 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14876 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14878 # Shell to use when invoking shell scripts.
14879 SHELL=$lt_SHELL
14881 # Whether or not to build shared libraries.
14882 build_libtool_libs=$enable_shared
14884 # Whether or not to build static libraries.
14885 build_old_libs=$enable_static
14887 # Whether or not to add -lc for building shared libraries.
14888 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
14890 # Whether or not to disallow shared libs when runtime libs are static
14891 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
14893 # Whether or not to optimize for fast installation.
14894 fast_install=$enable_fast_install
14896 # The host system.
14897 host_alias=$host_alias
14898 host=$host
14899 host_os=$host_os
14901 # The build system.
14902 build_alias=$build_alias
14903 build=$build
14904 build_os=$build_os
14906 # An echo program that does not interpret backslashes.
14907 echo=$lt_echo
14909 # The archiver.
14910 AR=$lt_AR
14911 AR_FLAGS=$lt_AR_FLAGS
14913 # A C compiler.
14914 LTCC=$lt_LTCC
14916 # LTCC compiler flags.
14917 LTCFLAGS=$lt_LTCFLAGS
14919 # A language-specific compiler.
14920 CC=$lt_compiler_GCJ
14922 # Is the compiler the GNU C compiler?
14923 with_gcc=$GCC_GCJ
14925 # An ERE matcher.
14926 EGREP=$lt_EGREP
14928 # The linker used to build libraries.
14929 LD=$lt_LD_GCJ
14931 # Whether we need hard or soft links.
14932 LN_S=$lt_LN_S
14934 # A BSD-compatible nm program.
14935 NM=$lt_NM
14937 # A symbol stripping program
14938 STRIP=$lt_STRIP
14940 # Used to examine libraries when file_magic_cmd begins "file"
14941 MAGIC_CMD=$MAGIC_CMD
14943 # Used on cygwin: DLL creation program.
14944 DLLTOOL="$DLLTOOL"
14946 # Used on cygwin: object dumper.
14947 OBJDUMP="$OBJDUMP"
14949 # Used on cygwin: assembler.
14950 AS="$AS"
14952 # The name of the directory that contains temporary libtool files.
14953 objdir=$objdir
14955 # How to create reloadable object files.
14956 reload_flag=$lt_reload_flag
14957 reload_cmds=$lt_reload_cmds
14959 # How to pass a linker flag through the compiler.
14960 wl=$lt_lt_prog_compiler_wl_GCJ
14962 # Object file suffix (normally "o").
14963 objext="$ac_objext"
14965 # Old archive suffix (normally "a").
14966 libext="$libext"
14968 # Shared library suffix (normally ".so").
14969 shrext_cmds='$shrext_cmds'
14971 # Executable file suffix (normally "").
14972 exeext="$exeext"
14974 # Additional compiler flags for building library objects.
14975 pic_flag=$lt_lt_prog_compiler_pic_GCJ
14976 pic_mode=$pic_mode
14978 # What is the maximum length of a command?
14979 max_cmd_len=$lt_cv_sys_max_cmd_len
14981 # Does compiler simultaneously support -c and -o options?
14982 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
14984 # Must we lock files when doing compilation?
14985 need_locks=$lt_need_locks
14987 # Do we need the lib prefix for modules?
14988 need_lib_prefix=$need_lib_prefix
14990 # Do we need a version for libraries?
14991 need_version=$need_version
14993 # Whether dlopen is supported.
14994 dlopen_support=$enable_dlopen
14996 # Whether dlopen of programs is supported.
14997 dlopen_self=$enable_dlopen_self
14999 # Whether dlopen of statically linked programs is supported.
15000 dlopen_self_static=$enable_dlopen_self_static
15002 # Compiler flag to prevent dynamic linking.
15003 link_static_flag=$lt_lt_prog_compiler_static_GCJ
15005 # Compiler flag to turn off builtin functions.
15006 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
15008 # Compiler flag to allow reflexive dlopens.
15009 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
15011 # Compiler flag to generate shared objects directly from archives.
15012 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
15014 # Compiler flag to generate thread-safe objects.
15015 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
15017 # Library versioning type.
15018 version_type=$version_type
15020 # Format of library name prefix.
15021 libname_spec=$lt_libname_spec
15023 # List of archive names. First name is the real one, the rest are links.
15024 # The last name is the one that the linker finds with -lNAME.
15025 library_names_spec=$lt_library_names_spec
15027 # The coded name of the library, if different from the real name.
15028 soname_spec=$lt_soname_spec
15030 # Commands used to build and install an old-style archive.
15031 RANLIB=$lt_RANLIB
15032 old_archive_cmds=$lt_old_archive_cmds_GCJ
15033 old_postinstall_cmds=$lt_old_postinstall_cmds
15034 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15036 # Create an old-style archive from a shared archive.
15037 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
15039 # Create a temporary old-style archive to link instead of a shared archive.
15040 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
15042 # Commands used to build and install a shared archive.
15043 archive_cmds=$lt_archive_cmds_GCJ
15044 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
15045 postinstall_cmds=$lt_postinstall_cmds
15046 postuninstall_cmds=$lt_postuninstall_cmds
15048 # Commands used to build a loadable module (assumed same as above if empty)
15049 module_cmds=$lt_module_cmds_GCJ
15050 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
15052 # Commands to strip libraries.
15053 old_striplib=$lt_old_striplib
15054 striplib=$lt_striplib
15056 # Dependencies to place before the objects being linked to create a
15057 # shared library.
15058 predep_objects=$lt_predep_objects_GCJ
15060 # Dependencies to place after the objects being linked to create a
15061 # shared library.
15062 postdep_objects=$lt_postdep_objects_GCJ
15064 # Dependencies to place before the objects being linked to create a
15065 # shared library.
15066 predeps=$lt_predeps_GCJ
15068 # Dependencies to place after the objects being linked to create a
15069 # shared library.
15070 postdeps=$lt_postdeps_GCJ
15072 # The library search path used internally by the compiler when linking
15073 # a shared library.
15074 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
15076 # Method to check whether dependent libraries are shared objects.
15077 deplibs_check_method=$lt_deplibs_check_method
15079 # Command to use when deplibs_check_method == file_magic.
15080 file_magic_cmd=$lt_file_magic_cmd
15082 # Flag that allows shared libraries with undefined symbols to be built.
15083 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
15085 # Flag that forces no undefined symbols.
15086 no_undefined_flag=$lt_no_undefined_flag_GCJ
15088 # Commands used to finish a libtool library installation in a directory.
15089 finish_cmds=$lt_finish_cmds
15091 # Same as above, but a single script fragment to be evaled but not shown.
15092 finish_eval=$lt_finish_eval
15094 # Take the output of nm and produce a listing of raw symbols and C names.
15095 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15097 # Transform the output of nm in a proper C declaration
15098 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15100 # Transform the output of nm in a C name address pair
15101 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15103 # This is the shared library runtime path variable.
15104 runpath_var=$runpath_var
15106 # This is the shared library path variable.
15107 shlibpath_var=$shlibpath_var
15109 # Is shlibpath searched before the hard-coded library search path?
15110 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15112 # How to hardcode a shared library path into an executable.
15113 hardcode_action=$hardcode_action_GCJ
15115 # Whether we should hardcode library paths into libraries.
15116 hardcode_into_libs=$hardcode_into_libs
15118 # Flag to hardcode \$libdir into a binary during linking.
15119 # This must work even if \$libdir does not exist.
15120 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
15122 # If ld is used when linking, flag to hardcode \$libdir into
15123 # a binary during linking. This must work even if \$libdir does
15124 # not exist.
15125 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
15127 # Whether we need a single -rpath flag with a separated argument.
15128 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
15130 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15131 # resulting binary.
15132 hardcode_direct=$hardcode_direct_GCJ
15134 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15135 # resulting binary.
15136 hardcode_minus_L=$hardcode_minus_L_GCJ
15138 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15139 # the resulting binary.
15140 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
15142 # Set to yes if building a shared library automatically hardcodes DIR into the library
15143 # and all subsequent libraries and executables linked against it.
15144 hardcode_automatic=$hardcode_automatic_GCJ
15146 # Variables whose values should be saved in libtool wrapper scripts and
15147 # restored at relink time.
15148 variables_saved_for_relink="$variables_saved_for_relink"
15150 # Whether libtool must link a program against all its dependency libraries.
15151 link_all_deplibs=$link_all_deplibs_GCJ
15153 # Compile-time system search path for libraries
15154 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15156 # Run-time system search path for libraries
15157 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15159 # Fix the shell variable \$srcfile for the compiler.
15160 fix_srcfile_path="$fix_srcfile_path_GCJ"
15162 # Set to yes if exported symbols are required.
15163 always_export_symbols=$always_export_symbols_GCJ
15165 # The commands to list exported symbols.
15166 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
15168 # The commands to extract the exported symbol list from a shared archive.
15169 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15171 # Symbols that should not be listed in the preloaded symbols.
15172 exclude_expsyms=$lt_exclude_expsyms_GCJ
15174 # Symbols that must always be exported.
15175 include_expsyms=$lt_include_expsyms_GCJ
15177 # ### END LIBTOOL TAG CONFIG: $tagname
15179 __EOF__
15182 else
15183 # If there is no Makefile yet, we rely on a make rule to execute
15184 # `config.status --recheck' to rerun these tests and create the
15185 # libtool script then.
15186 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15187 if test -f "$ltmain_in"; then
15188 test -f Makefile && make "$ltmain"
15189 fi
15190 fi
15193 ac_ext=c
15194 ac_cpp='$CPP $CPPFLAGS'
15195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15199 CC="$lt_save_CC"
15201 else
15202 tagname=""
15203 fi
15204 ;;
15206 RC)
15210 # Source file extension for RC test sources.
15211 ac_ext=rc
15213 # Object file extension for compiled RC test sources.
15214 objext=o
15215 objext_RC=$objext
15217 # Code to be used in simple compile tests
15218 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
15220 # Code to be used in simple link tests
15221 lt_simple_link_test_code="$lt_simple_compile_test_code"
15223 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15225 # If no C compiler was specified, use CC.
15226 LTCC=${LTCC-"$CC"}
15228 # If no C compiler flags were specified, use CFLAGS.
15229 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15231 # Allow CC to be a program name with arguments.
15232 compiler=$CC
15235 # save warnings/boilerplate of simple test code
15236 ac_outfile=conftest.$ac_objext
15237 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15238 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15239 _lt_compiler_boilerplate=`cat conftest.err`
15240 $rm conftest*
15242 ac_outfile=conftest.$ac_objext
15243 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15244 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15245 _lt_linker_boilerplate=`cat conftest.err`
15246 $rm conftest*
15249 # Allow CC to be a program name with arguments.
15250 lt_save_CC="$CC"
15251 CC=${RC-"windres"}
15252 compiler=$CC
15253 compiler_RC=$CC
15254 for cc_temp in $compiler""; do
15255 case $cc_temp in
15256 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15257 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15258 \-*) ;;
15259 *) break;;
15260 esac
15261 done
15262 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15264 lt_cv_prog_compiler_c_o_RC=yes
15266 # The else clause should only fire when bootstrapping the
15267 # libtool distribution, otherwise you forgot to ship ltmain.sh
15268 # with your package, and you will get complaints that there are
15269 # no rules to generate ltmain.sh.
15270 if test -f "$ltmain"; then
15271 # See if we are running on zsh, and set the options which allow our commands through
15272 # without removal of \ escapes.
15273 if test -n "${ZSH_VERSION+set}" ; then
15274 setopt NO_GLOB_SUBST
15275 fi
15276 # Now quote all the things that may contain metacharacters while being
15277 # careful not to overquote the AC_SUBSTed values. We take copies of the
15278 # variables and quote the copies for generation of the libtool script.
15279 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15280 SED SHELL STRIP \
15281 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15282 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15283 deplibs_check_method reload_flag reload_cmds need_locks \
15284 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15285 lt_cv_sys_global_symbol_to_c_name_address \
15286 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15287 old_postinstall_cmds old_postuninstall_cmds \
15288 compiler_RC \
15289 CC_RC \
15290 LD_RC \
15291 lt_prog_compiler_wl_RC \
15292 lt_prog_compiler_pic_RC \
15293 lt_prog_compiler_static_RC \
15294 lt_prog_compiler_no_builtin_flag_RC \
15295 export_dynamic_flag_spec_RC \
15296 thread_safe_flag_spec_RC \
15297 whole_archive_flag_spec_RC \
15298 enable_shared_with_static_runtimes_RC \
15299 old_archive_cmds_RC \
15300 old_archive_from_new_cmds_RC \
15301 predep_objects_RC \
15302 postdep_objects_RC \
15303 predeps_RC \
15304 postdeps_RC \
15305 compiler_lib_search_path_RC \
15306 archive_cmds_RC \
15307 archive_expsym_cmds_RC \
15308 postinstall_cmds_RC \
15309 postuninstall_cmds_RC \
15310 old_archive_from_expsyms_cmds_RC \
15311 allow_undefined_flag_RC \
15312 no_undefined_flag_RC \
15313 export_symbols_cmds_RC \
15314 hardcode_libdir_flag_spec_RC \
15315 hardcode_libdir_flag_spec_ld_RC \
15316 hardcode_libdir_separator_RC \
15317 hardcode_automatic_RC \
15318 module_cmds_RC \
15319 module_expsym_cmds_RC \
15320 lt_cv_prog_compiler_c_o_RC \
15321 exclude_expsyms_RC \
15322 include_expsyms_RC; do
15324 case $var in
15325 old_archive_cmds_RC | \
15326 old_archive_from_new_cmds_RC | \
15327 archive_cmds_RC | \
15328 archive_expsym_cmds_RC | \
15329 module_cmds_RC | \
15330 module_expsym_cmds_RC | \
15331 old_archive_from_expsyms_cmds_RC | \
15332 export_symbols_cmds_RC | \
15333 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15334 postinstall_cmds | postuninstall_cmds | \
15335 old_postinstall_cmds | old_postuninstall_cmds | \
15336 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15337 # Double-quote double-evaled strings.
15338 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15339 ;;
15340 *)
15341 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15342 ;;
15343 esac
15344 done
15346 case $lt_echo in
15347 *'\$0 --fallback-echo"')
15348 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15349 ;;
15350 esac
15352 cfgfile="$ofile"
15354 cat <<__EOF__ >> "$cfgfile"
15355 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15357 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15359 # Shell to use when invoking shell scripts.
15360 SHELL=$lt_SHELL
15362 # Whether or not to build shared libraries.
15363 build_libtool_libs=$enable_shared
15365 # Whether or not to build static libraries.
15366 build_old_libs=$enable_static
15368 # Whether or not to add -lc for building shared libraries.
15369 build_libtool_need_lc=$archive_cmds_need_lc_RC
15371 # Whether or not to disallow shared libs when runtime libs are static
15372 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
15374 # Whether or not to optimize for fast installation.
15375 fast_install=$enable_fast_install
15377 # The host system.
15378 host_alias=$host_alias
15379 host=$host
15380 host_os=$host_os
15382 # The build system.
15383 build_alias=$build_alias
15384 build=$build
15385 build_os=$build_os
15387 # An echo program that does not interpret backslashes.
15388 echo=$lt_echo
15390 # The archiver.
15391 AR=$lt_AR
15392 AR_FLAGS=$lt_AR_FLAGS
15394 # A C compiler.
15395 LTCC=$lt_LTCC
15397 # LTCC compiler flags.
15398 LTCFLAGS=$lt_LTCFLAGS
15400 # A language-specific compiler.
15401 CC=$lt_compiler_RC
15403 # Is the compiler the GNU C compiler?
15404 with_gcc=$GCC_RC
15406 # An ERE matcher.
15407 EGREP=$lt_EGREP
15409 # The linker used to build libraries.
15410 LD=$lt_LD_RC
15412 # Whether we need hard or soft links.
15413 LN_S=$lt_LN_S
15415 # A BSD-compatible nm program.
15416 NM=$lt_NM
15418 # A symbol stripping program
15419 STRIP=$lt_STRIP
15421 # Used to examine libraries when file_magic_cmd begins "file"
15422 MAGIC_CMD=$MAGIC_CMD
15424 # Used on cygwin: DLL creation program.
15425 DLLTOOL="$DLLTOOL"
15427 # Used on cygwin: object dumper.
15428 OBJDUMP="$OBJDUMP"
15430 # Used on cygwin: assembler.
15431 AS="$AS"
15433 # The name of the directory that contains temporary libtool files.
15434 objdir=$objdir
15436 # How to create reloadable object files.
15437 reload_flag=$lt_reload_flag
15438 reload_cmds=$lt_reload_cmds
15440 # How to pass a linker flag through the compiler.
15441 wl=$lt_lt_prog_compiler_wl_RC
15443 # Object file suffix (normally "o").
15444 objext="$ac_objext"
15446 # Old archive suffix (normally "a").
15447 libext="$libext"
15449 # Shared library suffix (normally ".so").
15450 shrext_cmds='$shrext_cmds'
15452 # Executable file suffix (normally "").
15453 exeext="$exeext"
15455 # Additional compiler flags for building library objects.
15456 pic_flag=$lt_lt_prog_compiler_pic_RC
15457 pic_mode=$pic_mode
15459 # What is the maximum length of a command?
15460 max_cmd_len=$lt_cv_sys_max_cmd_len
15462 # Does compiler simultaneously support -c and -o options?
15463 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
15465 # Must we lock files when doing compilation?
15466 need_locks=$lt_need_locks
15468 # Do we need the lib prefix for modules?
15469 need_lib_prefix=$need_lib_prefix
15471 # Do we need a version for libraries?
15472 need_version=$need_version
15474 # Whether dlopen is supported.
15475 dlopen_support=$enable_dlopen
15477 # Whether dlopen of programs is supported.
15478 dlopen_self=$enable_dlopen_self
15480 # Whether dlopen of statically linked programs is supported.
15481 dlopen_self_static=$enable_dlopen_self_static
15483 # Compiler flag to prevent dynamic linking.
15484 link_static_flag=$lt_lt_prog_compiler_static_RC
15486 # Compiler flag to turn off builtin functions.
15487 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
15489 # Compiler flag to allow reflexive dlopens.
15490 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
15492 # Compiler flag to generate shared objects directly from archives.
15493 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
15495 # Compiler flag to generate thread-safe objects.
15496 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
15498 # Library versioning type.
15499 version_type=$version_type
15501 # Format of library name prefix.
15502 libname_spec=$lt_libname_spec
15504 # List of archive names. First name is the real one, the rest are links.
15505 # The last name is the one that the linker finds with -lNAME.
15506 library_names_spec=$lt_library_names_spec
15508 # The coded name of the library, if different from the real name.
15509 soname_spec=$lt_soname_spec
15511 # Commands used to build and install an old-style archive.
15512 RANLIB=$lt_RANLIB
15513 old_archive_cmds=$lt_old_archive_cmds_RC
15514 old_postinstall_cmds=$lt_old_postinstall_cmds
15515 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15517 # Create an old-style archive from a shared archive.
15518 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
15520 # Create a temporary old-style archive to link instead of a shared archive.
15521 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
15523 # Commands used to build and install a shared archive.
15524 archive_cmds=$lt_archive_cmds_RC
15525 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
15526 postinstall_cmds=$lt_postinstall_cmds
15527 postuninstall_cmds=$lt_postuninstall_cmds
15529 # Commands used to build a loadable module (assumed same as above if empty)
15530 module_cmds=$lt_module_cmds_RC
15531 module_expsym_cmds=$lt_module_expsym_cmds_RC
15533 # Commands to strip libraries.
15534 old_striplib=$lt_old_striplib
15535 striplib=$lt_striplib
15537 # Dependencies to place before the objects being linked to create a
15538 # shared library.
15539 predep_objects=$lt_predep_objects_RC
15541 # Dependencies to place after the objects being linked to create a
15542 # shared library.
15543 postdep_objects=$lt_postdep_objects_RC
15545 # Dependencies to place before the objects being linked to create a
15546 # shared library.
15547 predeps=$lt_predeps_RC
15549 # Dependencies to place after the objects being linked to create a
15550 # shared library.
15551 postdeps=$lt_postdeps_RC
15553 # The library search path used internally by the compiler when linking
15554 # a shared library.
15555 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
15557 # Method to check whether dependent libraries are shared objects.
15558 deplibs_check_method=$lt_deplibs_check_method
15560 # Command to use when deplibs_check_method == file_magic.
15561 file_magic_cmd=$lt_file_magic_cmd
15563 # Flag that allows shared libraries with undefined symbols to be built.
15564 allow_undefined_flag=$lt_allow_undefined_flag_RC
15566 # Flag that forces no undefined symbols.
15567 no_undefined_flag=$lt_no_undefined_flag_RC
15569 # Commands used to finish a libtool library installation in a directory.
15570 finish_cmds=$lt_finish_cmds
15572 # Same as above, but a single script fragment to be evaled but not shown.
15573 finish_eval=$lt_finish_eval
15575 # Take the output of nm and produce a listing of raw symbols and C names.
15576 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15578 # Transform the output of nm in a proper C declaration
15579 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15581 # Transform the output of nm in a C name address pair
15582 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15584 # This is the shared library runtime path variable.
15585 runpath_var=$runpath_var
15587 # This is the shared library path variable.
15588 shlibpath_var=$shlibpath_var
15590 # Is shlibpath searched before the hard-coded library search path?
15591 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15593 # How to hardcode a shared library path into an executable.
15594 hardcode_action=$hardcode_action_RC
15596 # Whether we should hardcode library paths into libraries.
15597 hardcode_into_libs=$hardcode_into_libs
15599 # Flag to hardcode \$libdir into a binary during linking.
15600 # This must work even if \$libdir does not exist.
15601 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
15603 # If ld is used when linking, flag to hardcode \$libdir into
15604 # a binary during linking. This must work even if \$libdir does
15605 # not exist.
15606 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
15608 # Whether we need a single -rpath flag with a separated argument.
15609 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
15611 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15612 # resulting binary.
15613 hardcode_direct=$hardcode_direct_RC
15615 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15616 # resulting binary.
15617 hardcode_minus_L=$hardcode_minus_L_RC
15619 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15620 # the resulting binary.
15621 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
15623 # Set to yes if building a shared library automatically hardcodes DIR into the library
15624 # and all subsequent libraries and executables linked against it.
15625 hardcode_automatic=$hardcode_automatic_RC
15627 # Variables whose values should be saved in libtool wrapper scripts and
15628 # restored at relink time.
15629 variables_saved_for_relink="$variables_saved_for_relink"
15631 # Whether libtool must link a program against all its dependency libraries.
15632 link_all_deplibs=$link_all_deplibs_RC
15634 # Compile-time system search path for libraries
15635 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15637 # Run-time system search path for libraries
15638 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15640 # Fix the shell variable \$srcfile for the compiler.
15641 fix_srcfile_path="$fix_srcfile_path_RC"
15643 # Set to yes if exported symbols are required.
15644 always_export_symbols=$always_export_symbols_RC
15646 # The commands to list exported symbols.
15647 export_symbols_cmds=$lt_export_symbols_cmds_RC
15649 # The commands to extract the exported symbol list from a shared archive.
15650 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15652 # Symbols that should not be listed in the preloaded symbols.
15653 exclude_expsyms=$lt_exclude_expsyms_RC
15655 # Symbols that must always be exported.
15656 include_expsyms=$lt_include_expsyms_RC
15658 # ### END LIBTOOL TAG CONFIG: $tagname
15660 __EOF__
15663 else
15664 # If there is no Makefile yet, we rely on a make rule to execute
15665 # `config.status --recheck' to rerun these tests and create the
15666 # libtool script then.
15667 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15668 if test -f "$ltmain_in"; then
15669 test -f Makefile && make "$ltmain"
15670 fi
15671 fi
15674 ac_ext=c
15675 ac_cpp='$CPP $CPPFLAGS'
15676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15680 CC="$lt_save_CC"
15682 ;;
15684 *)
15685 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
15686 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
15687 { (exit 1); exit 1; }; }
15688 ;;
15689 esac
15691 # Append the new tag name to the list of available tags.
15692 if test -n "$tagname" ; then
15693 available_tags="$available_tags $tagname"
15694 fi
15695 fi
15696 done
15697 IFS="$lt_save_ifs"
15699 # Now substitute the updated list of available tags.
15700 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
15701 mv "${ofile}T" "$ofile"
15702 chmod +x "$ofile"
15703 else
15704 rm -f "${ofile}T"
15705 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
15706 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
15707 { (exit 1); exit 1; }; }
15708 fi
15709 fi
15713 # This can be used to rebuild libtool when needed
15714 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
15716 # Always use our own libtool.
15717 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15719 # Prevent multiple expansion
15736 # Checks for programs.
15737 ac_ext=c
15738 ac_cpp='$CPP $CPPFLAGS'
15739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15742 if test -n "$ac_tool_prefix"; then
15743 for ac_prog in gcc
15744 do
15745 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15746 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15747 echo "$as_me:$LINENO: checking for $ac_word" >&5
15748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15749 if test "${ac_cv_prog_CC+set}" = set; then
15750 echo $ECHO_N "(cached) $ECHO_C" >&6
15751 else
15752 if test -n "$CC"; then
15753 ac_cv_prog_CC="$CC" # Let the user override the test.
15754 else
15755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15756 for as_dir in $PATH
15757 do
15758 IFS=$as_save_IFS
15759 test -z "$as_dir" && as_dir=.
15760 for ac_exec_ext in '' $ac_executable_extensions; do
15761 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15762 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
15763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15764 break 2
15765 fi
15766 done
15767 done
15769 fi
15770 fi
15771 CC=$ac_cv_prog_CC
15772 if test -n "$CC"; then
15773 echo "$as_me:$LINENO: result: $CC" >&5
15774 echo "${ECHO_T}$CC" >&6
15775 else
15776 echo "$as_me:$LINENO: result: no" >&5
15777 echo "${ECHO_T}no" >&6
15778 fi
15780 test -n "$CC" && break
15781 done
15782 fi
15783 if test -z "$CC"; then
15784 ac_ct_CC=$CC
15785 for ac_prog in gcc
15786 do
15787 # Extract the first word of "$ac_prog", so it can be a program name with args.
15788 set dummy $ac_prog; ac_word=$2
15789 echo "$as_me:$LINENO: checking for $ac_word" >&5
15790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15791 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
15792 echo $ECHO_N "(cached) $ECHO_C" >&6
15793 else
15794 if test -n "$ac_ct_CC"; then
15795 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
15796 else
15797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15798 for as_dir in $PATH
15799 do
15800 IFS=$as_save_IFS
15801 test -z "$as_dir" && as_dir=.
15802 for ac_exec_ext in '' $ac_executable_extensions; do
15803 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15804 ac_cv_prog_ac_ct_CC="$ac_prog"
15805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15806 break 2
15807 fi
15808 done
15809 done
15811 fi
15812 fi
15813 ac_ct_CC=$ac_cv_prog_ac_ct_CC
15814 if test -n "$ac_ct_CC"; then
15815 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
15816 echo "${ECHO_T}$ac_ct_CC" >&6
15817 else
15818 echo "$as_me:$LINENO: result: no" >&5
15819 echo "${ECHO_T}no" >&6
15820 fi
15822 test -n "$ac_ct_CC" && break
15823 done
15825 CC=$ac_ct_CC
15826 fi
15829 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
15830 See \`config.log' for more details." >&5
15831 echo "$as_me: error: no acceptable C compiler found in \$PATH
15832 See \`config.log' for more details." >&2;}
15833 { (exit 1); exit 1; }; }
15835 # Provide some information about the compiler.
15836 echo "$as_me:$LINENO:" \
15837 "checking for C compiler version" >&5
15838 ac_compiler=`set X $ac_compile; echo $2`
15839 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
15840 (eval $ac_compiler --version </dev/null >&5) 2>&5
15841 ac_status=$?
15842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15843 (exit $ac_status); }
15844 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
15845 (eval $ac_compiler -v </dev/null >&5) 2>&5
15846 ac_status=$?
15847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848 (exit $ac_status); }
15849 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
15850 (eval $ac_compiler -V </dev/null >&5) 2>&5
15851 ac_status=$?
15852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15853 (exit $ac_status); }
15855 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
15856 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
15857 if test "${ac_cv_c_compiler_gnu+set}" = set; then
15858 echo $ECHO_N "(cached) $ECHO_C" >&6
15859 else
15860 cat >conftest.$ac_ext <<_ACEOF
15861 /* confdefs.h. */
15862 _ACEOF
15863 cat confdefs.h >>conftest.$ac_ext
15864 cat >>conftest.$ac_ext <<_ACEOF
15865 /* end confdefs.h. */
15867 int
15868 main ()
15869 {
15870 #ifndef __GNUC__
15871 choke me
15872 #endif
15874 ;
15875 return 0;
15876 }
15877 _ACEOF
15878 rm -f conftest.$ac_objext
15879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15880 (eval $ac_compile) 2>conftest.er1
15881 ac_status=$?
15882 grep -v '^ *+' conftest.er1 >conftest.err
15883 rm -f conftest.er1
15884 cat conftest.err >&5
15885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15886 (exit $ac_status); } &&
15887 { ac_try='test -z "$ac_c_werror_flag"
15888 || test ! -s conftest.err'
15889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15890 (eval $ac_try) 2>&5
15891 ac_status=$?
15892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15893 (exit $ac_status); }; } &&
15894 { ac_try='test -s conftest.$ac_objext'
15895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15896 (eval $ac_try) 2>&5
15897 ac_status=$?
15898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15899 (exit $ac_status); }; }; then
15900 ac_compiler_gnu=yes
15901 else
15902 echo "$as_me: failed program was:" >&5
15903 sed 's/^/| /' conftest.$ac_ext >&5
15905 ac_compiler_gnu=no
15906 fi
15907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15908 ac_cv_c_compiler_gnu=$ac_compiler_gnu
15910 fi
15911 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
15912 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
15913 GCC=`test $ac_compiler_gnu = yes && echo yes`
15914 ac_test_CFLAGS=${CFLAGS+set}
15915 ac_save_CFLAGS=$CFLAGS
15916 CFLAGS="-g"
15917 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
15918 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
15919 if test "${ac_cv_prog_cc_g+set}" = set; then
15920 echo $ECHO_N "(cached) $ECHO_C" >&6
15921 else
15922 cat >conftest.$ac_ext <<_ACEOF
15923 /* confdefs.h. */
15924 _ACEOF
15925 cat confdefs.h >>conftest.$ac_ext
15926 cat >>conftest.$ac_ext <<_ACEOF
15927 /* end confdefs.h. */
15929 int
15930 main ()
15931 {
15933 ;
15934 return 0;
15935 }
15936 _ACEOF
15937 rm -f conftest.$ac_objext
15938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15939 (eval $ac_compile) 2>conftest.er1
15940 ac_status=$?
15941 grep -v '^ *+' conftest.er1 >conftest.err
15942 rm -f conftest.er1
15943 cat conftest.err >&5
15944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15945 (exit $ac_status); } &&
15946 { ac_try='test -z "$ac_c_werror_flag"
15947 || test ! -s conftest.err'
15948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15949 (eval $ac_try) 2>&5
15950 ac_status=$?
15951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952 (exit $ac_status); }; } &&
15953 { ac_try='test -s conftest.$ac_objext'
15954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15955 (eval $ac_try) 2>&5
15956 ac_status=$?
15957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15958 (exit $ac_status); }; }; then
15959 ac_cv_prog_cc_g=yes
15960 else
15961 echo "$as_me: failed program was:" >&5
15962 sed 's/^/| /' conftest.$ac_ext >&5
15964 ac_cv_prog_cc_g=no
15965 fi
15966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15967 fi
15968 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
15969 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
15970 if test "$ac_test_CFLAGS" = set; then
15971 CFLAGS=$ac_save_CFLAGS
15972 elif test $ac_cv_prog_cc_g = yes; then
15973 if test "$GCC" = yes; then
15974 CFLAGS="-g -O2"
15975 else
15976 CFLAGS="-g"
15977 fi
15978 else
15979 if test "$GCC" = yes; then
15980 CFLAGS="-O2"
15981 else
15982 CFLAGS=
15983 fi
15984 fi
15985 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
15986 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
15987 if test "${ac_cv_prog_cc_stdc+set}" = set; then
15988 echo $ECHO_N "(cached) $ECHO_C" >&6
15989 else
15990 ac_cv_prog_cc_stdc=no
15991 ac_save_CC=$CC
15992 cat >conftest.$ac_ext <<_ACEOF
15993 /* confdefs.h. */
15994 _ACEOF
15995 cat confdefs.h >>conftest.$ac_ext
15996 cat >>conftest.$ac_ext <<_ACEOF
15997 /* end confdefs.h. */
15998 #include <stdarg.h>
15999 #include <stdio.h>
16000 #include <sys/types.h>
16001 #include <sys/stat.h>
16002 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
16003 struct buf { int x; };
16004 FILE * (*rcsopen) (struct buf *, struct stat *, int);
16005 static char *e (p, i)
16006 char **p;
16007 int i;
16008 {
16009 return p[i];
16010 }
16011 static char *f (char * (*g) (char **, int), char **p, ...)
16012 {
16013 char *s;
16014 va_list v;
16015 va_start (v,p);
16016 s = g (p, va_arg (v,int));
16017 va_end (v);
16018 return s;
16019 }
16021 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
16022 function prototypes and stuff, but not '\xHH' hex character constants.
16023 These don't provoke an error unfortunately, instead are silently treated
16024 as 'x'. The following induces an error, until -std1 is added to get
16025 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
16026 array size at least. It's necessary to write '\x00'==0 to get something
16027 that's true only with -std1. */
16028 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
16030 int test (int i, double x);
16031 struct s1 {int (*f) (int a);};
16032 struct s2 {int (*f) (double a);};
16033 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
16034 int argc;
16035 char **argv;
16036 int
16037 main ()
16038 {
16039 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
16040 ;
16041 return 0;
16042 }
16043 _ACEOF
16044 # Don't try gcc -ansi; that turns off useful extensions and
16045 # breaks some systems' header files.
16046 # AIX -qlanglvl=ansi
16047 # Ultrix and OSF/1 -std1
16048 # HP-UX 10.20 and later -Ae
16049 # HP-UX older versions -Aa -D_HPUX_SOURCE
16050 # SVR4 -Xc -D__EXTENSIONS__
16051 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
16052 do
16053 CC="$ac_save_CC $ac_arg"
16054 rm -f conftest.$ac_objext
16055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16056 (eval $ac_compile) 2>conftest.er1
16057 ac_status=$?
16058 grep -v '^ *+' conftest.er1 >conftest.err
16059 rm -f conftest.er1
16060 cat conftest.err >&5
16061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16062 (exit $ac_status); } &&
16063 { ac_try='test -z "$ac_c_werror_flag"
16064 || test ! -s conftest.err'
16065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16066 (eval $ac_try) 2>&5
16067 ac_status=$?
16068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16069 (exit $ac_status); }; } &&
16070 { ac_try='test -s conftest.$ac_objext'
16071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16072 (eval $ac_try) 2>&5
16073 ac_status=$?
16074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16075 (exit $ac_status); }; }; then
16076 ac_cv_prog_cc_stdc=$ac_arg
16077 break
16078 else
16079 echo "$as_me: failed program was:" >&5
16080 sed 's/^/| /' conftest.$ac_ext >&5
16082 fi
16083 rm -f conftest.err conftest.$ac_objext
16084 done
16085 rm -f conftest.$ac_ext conftest.$ac_objext
16086 CC=$ac_save_CC
16088 fi
16090 case "x$ac_cv_prog_cc_stdc" in
16091 x|xno)
16092 echo "$as_me:$LINENO: result: none needed" >&5
16093 echo "${ECHO_T}none needed" >&6 ;;
16094 *)
16095 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
16096 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
16097 CC="$CC $ac_cv_prog_cc_stdc" ;;
16098 esac
16100 # Some people use a C++ compiler to compile C. Since we use `exit',
16101 # in C++ we need to declare it. In case someone uses the same compiler
16102 # for both compiling C and C++ we need to have the C++ compiler decide
16103 # the declaration of exit, since it's the most demanding environment.
16104 cat >conftest.$ac_ext <<_ACEOF
16105 #ifndef __cplusplus
16106 choke me
16107 #endif
16108 _ACEOF
16109 rm -f conftest.$ac_objext
16110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16111 (eval $ac_compile) 2>conftest.er1
16112 ac_status=$?
16113 grep -v '^ *+' conftest.er1 >conftest.err
16114 rm -f conftest.er1
16115 cat conftest.err >&5
16116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16117 (exit $ac_status); } &&
16118 { ac_try='test -z "$ac_c_werror_flag"
16119 || test ! -s conftest.err'
16120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16121 (eval $ac_try) 2>&5
16122 ac_status=$?
16123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16124 (exit $ac_status); }; } &&
16125 { ac_try='test -s conftest.$ac_objext'
16126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16127 (eval $ac_try) 2>&5
16128 ac_status=$?
16129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16130 (exit $ac_status); }; }; then
16131 for ac_declaration in \
16132 '' \
16133 'extern "C" void std::exit (int) throw (); using std::exit;' \
16134 'extern "C" void std::exit (int); using std::exit;' \
16135 'extern "C" void exit (int) throw ();' \
16136 'extern "C" void exit (int);' \
16137 'void exit (int);'
16138 do
16139 cat >conftest.$ac_ext <<_ACEOF
16140 /* confdefs.h. */
16141 _ACEOF
16142 cat confdefs.h >>conftest.$ac_ext
16143 cat >>conftest.$ac_ext <<_ACEOF
16144 /* end confdefs.h. */
16145 $ac_declaration
16146 #include <stdlib.h>
16147 int
16148 main ()
16149 {
16150 exit (42);
16151 ;
16152 return 0;
16153 }
16154 _ACEOF
16155 rm -f conftest.$ac_objext
16156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16157 (eval $ac_compile) 2>conftest.er1
16158 ac_status=$?
16159 grep -v '^ *+' conftest.er1 >conftest.err
16160 rm -f conftest.er1
16161 cat conftest.err >&5
16162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16163 (exit $ac_status); } &&
16164 { ac_try='test -z "$ac_c_werror_flag"
16165 || test ! -s conftest.err'
16166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16167 (eval $ac_try) 2>&5
16168 ac_status=$?
16169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16170 (exit $ac_status); }; } &&
16171 { ac_try='test -s conftest.$ac_objext'
16172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16173 (eval $ac_try) 2>&5
16174 ac_status=$?
16175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16176 (exit $ac_status); }; }; then
16177 :
16178 else
16179 echo "$as_me: failed program was:" >&5
16180 sed 's/^/| /' conftest.$ac_ext >&5
16182 continue
16183 fi
16184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16185 cat >conftest.$ac_ext <<_ACEOF
16186 /* confdefs.h. */
16187 _ACEOF
16188 cat confdefs.h >>conftest.$ac_ext
16189 cat >>conftest.$ac_ext <<_ACEOF
16190 /* end confdefs.h. */
16191 $ac_declaration
16192 int
16193 main ()
16194 {
16195 exit (42);
16196 ;
16197 return 0;
16198 }
16199 _ACEOF
16200 rm -f conftest.$ac_objext
16201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16202 (eval $ac_compile) 2>conftest.er1
16203 ac_status=$?
16204 grep -v '^ *+' conftest.er1 >conftest.err
16205 rm -f conftest.er1
16206 cat conftest.err >&5
16207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208 (exit $ac_status); } &&
16209 { ac_try='test -z "$ac_c_werror_flag"
16210 || test ! -s conftest.err'
16211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16212 (eval $ac_try) 2>&5
16213 ac_status=$?
16214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16215 (exit $ac_status); }; } &&
16216 { ac_try='test -s conftest.$ac_objext'
16217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16218 (eval $ac_try) 2>&5
16219 ac_status=$?
16220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16221 (exit $ac_status); }; }; then
16222 break
16223 else
16224 echo "$as_me: failed program was:" >&5
16225 sed 's/^/| /' conftest.$ac_ext >&5
16227 fi
16228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16229 done
16230 rm -f conftest*
16231 if test -n "$ac_declaration"; then
16232 echo '#ifdef __cplusplus' >>confdefs.h
16233 echo $ac_declaration >>confdefs.h
16234 echo '#endif' >>confdefs.h
16235 fi
16237 else
16238 echo "$as_me: failed program was:" >&5
16239 sed 's/^/| /' conftest.$ac_ext >&5
16241 fi
16242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16243 ac_ext=c
16244 ac_cpp='$CPP $CPPFLAGS'
16245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16249 depcc="$CC" am_compiler_list=
16251 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
16252 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
16253 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
16254 echo $ECHO_N "(cached) $ECHO_C" >&6
16255 else
16256 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16257 # We make a subdir and do the tests there. Otherwise we can end up
16258 # making bogus files that we don't know about and never remove. For
16259 # instance it was reported that on HP-UX the gcc test will end up
16260 # making a dummy file named `D' -- because `-MD' means `put the output
16261 # in D'.
16262 mkdir conftest.dir
16263 # Copy depcomp to subdir because otherwise we won't find it if we're
16264 # using a relative directory.
16265 cp "$am_depcomp" conftest.dir
16266 cd conftest.dir
16267 # We will build objects and dependencies in a subdirectory because
16268 # it helps to detect inapplicable dependency modes. For instance
16269 # both Tru64's cc and ICC support -MD to output dependencies as a
16270 # side effect of compilation, but ICC will put the dependencies in
16271 # the current directory while Tru64 will put them in the object
16272 # directory.
16273 mkdir sub
16275 am_cv_CC_dependencies_compiler_type=none
16276 if test "$am_compiler_list" = ""; then
16277 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16278 fi
16279 for depmode in $am_compiler_list; do
16280 # Setup a source with many dependencies, because some compilers
16281 # like to wrap large dependency lists on column 80 (with \), and
16282 # we should not choose a depcomp mode which is confused by this.
16283 #
16284 # We need to recreate these files for each test, as the compiler may
16285 # overwrite some of them when testing with obscure command lines.
16286 # This happens at least with the AIX C compiler.
16287 : > sub/conftest.c
16288 for i in 1 2 3 4 5 6; do
16289 echo '#include "conftst'$i'.h"' >> sub/conftest.c
16290 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
16291 # Solaris 8's {/usr,}/bin/sh.
16292 touch sub/conftst$i.h
16293 done
16294 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16296 case $depmode in
16297 nosideeffect)
16298 # after this tag, mechanisms are not by side-effect, so they'll
16299 # only be used when explicitly requested
16300 if test "x$enable_dependency_tracking" = xyes; then
16301 continue
16302 else
16303 break
16304 fi
16305 ;;
16306 none) break ;;
16307 esac
16308 # We check with `-c' and `-o' for the sake of the "dashmstdout"
16309 # mode. It turns out that the SunPro C++ compiler does not properly
16310 # handle `-M -o', and we need to detect this.
16311 if depmode=$depmode \
16312 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
16313 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
16314 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
16315 >/dev/null 2>conftest.err &&
16316 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
16317 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
16318 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16319 # icc doesn't choke on unknown options, it will just issue warnings
16320 # or remarks (even with -Werror). So we grep stderr for any message
16321 # that says an option was ignored or not supported.
16322 # When given -MP, icc 7.0 and 7.1 complain thusly:
16323 # icc: Command line warning: ignoring option '-M'; no argument required
16324 # The diagnosis changed in icc 8.0:
16325 # icc: Command line remark: option '-MP' not supported
16326 if (grep 'ignoring option' conftest.err ||
16327 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
16328 am_cv_CC_dependencies_compiler_type=$depmode
16329 break
16330 fi
16331 fi
16332 done
16334 cd ..
16335 rm -rf conftest.dir
16336 else
16337 am_cv_CC_dependencies_compiler_type=none
16338 fi
16340 fi
16341 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
16342 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
16343 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
16347 if
16348 test "x$enable_dependency_tracking" != xno \
16349 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
16350 am__fastdepCC_TRUE=
16351 am__fastdepCC_FALSE='#'
16352 else
16353 am__fastdepCC_TRUE='#'
16354 am__fastdepCC_FALSE=
16355 fi
16358 # Find a good install program. We prefer a C program (faster),
16359 # so one script is as good as another. But avoid the broken or
16360 # incompatible versions:
16361 # SysV /etc/install, /usr/sbin/install
16362 # SunOS /usr/etc/install
16363 # IRIX /sbin/install
16364 # AIX /bin/install
16365 # AmigaOS /C/install, which installs bootblocks on floppy discs
16366 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
16367 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
16368 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
16369 # OS/2's system install, which has a completely different semantic
16370 # ./install, which can be erroneously created by make from ./install.sh.
16371 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
16372 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
16373 if test -z "$INSTALL"; then
16374 if test "${ac_cv_path_install+set}" = set; then
16375 echo $ECHO_N "(cached) $ECHO_C" >&6
16376 else
16377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16378 for as_dir in $PATH
16379 do
16380 IFS=$as_save_IFS
16381 test -z "$as_dir" && as_dir=.
16382 # Account for people who put trailing slashes in PATH elements.
16383 case $as_dir/ in
16384 ./ | .// | /cC/* | \
16385 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
16386 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
16387 /usr/ucb/* ) ;;
16388 *)
16389 # OSF1 and SCO ODT 3.0 have their own names for install.
16390 # Don't use installbsd from OSF since it installs stuff as root
16391 # by default.
16392 for ac_prog in ginstall scoinst install; do
16393 for ac_exec_ext in '' $ac_executable_extensions; do
16394 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
16395 if test $ac_prog = install &&
16396 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
16397 # AIX install. It has an incompatible calling convention.
16398 :
16399 elif test $ac_prog = install &&
16400 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
16401 # program-specific install script used by HP pwplus--don't use.
16402 :
16403 else
16404 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
16405 break 3
16406 fi
16407 fi
16408 done
16409 done
16410 ;;
16411 esac
16412 done
16415 fi
16416 if test "${ac_cv_path_install+set}" = set; then
16417 INSTALL=$ac_cv_path_install
16418 else
16419 # As a last resort, use the slow shell script. We don't cache a
16420 # path for INSTALL within a source directory, because that will
16421 # break other packages using the cache if that directory is
16422 # removed, or if the path is relative.
16423 INSTALL=$ac_install_sh
16424 fi
16425 fi
16426 echo "$as_me:$LINENO: result: $INSTALL" >&5
16427 echo "${ECHO_T}$INSTALL" >&6
16429 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
16430 # It thinks the first close brace ends the variable substitution.
16431 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
16433 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
16435 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
16438 # Checks for header files.
16439 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
16440 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
16441 if test "${ac_cv_header_stdc+set}" = set; then
16442 echo $ECHO_N "(cached) $ECHO_C" >&6
16443 else
16444 cat >conftest.$ac_ext <<_ACEOF
16445 /* confdefs.h. */
16446 _ACEOF
16447 cat confdefs.h >>conftest.$ac_ext
16448 cat >>conftest.$ac_ext <<_ACEOF
16449 /* end confdefs.h. */
16450 #include <stdlib.h>
16451 #include <stdarg.h>
16452 #include <string.h>
16453 #include <float.h>
16455 int
16456 main ()
16457 {
16459 ;
16460 return 0;
16461 }
16462 _ACEOF
16463 rm -f conftest.$ac_objext
16464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16465 (eval $ac_compile) 2>conftest.er1
16466 ac_status=$?
16467 grep -v '^ *+' conftest.er1 >conftest.err
16468 rm -f conftest.er1
16469 cat conftest.err >&5
16470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16471 (exit $ac_status); } &&
16472 { ac_try='test -z "$ac_c_werror_flag"
16473 || test ! -s conftest.err'
16474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16475 (eval $ac_try) 2>&5
16476 ac_status=$?
16477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16478 (exit $ac_status); }; } &&
16479 { ac_try='test -s conftest.$ac_objext'
16480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16481 (eval $ac_try) 2>&5
16482 ac_status=$?
16483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16484 (exit $ac_status); }; }; then
16485 ac_cv_header_stdc=yes
16486 else
16487 echo "$as_me: failed program was:" >&5
16488 sed 's/^/| /' conftest.$ac_ext >&5
16490 ac_cv_header_stdc=no
16491 fi
16492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16494 if test $ac_cv_header_stdc = yes; then
16495 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16496 cat >conftest.$ac_ext <<_ACEOF
16497 /* confdefs.h. */
16498 _ACEOF
16499 cat confdefs.h >>conftest.$ac_ext
16500 cat >>conftest.$ac_ext <<_ACEOF
16501 /* end confdefs.h. */
16502 #include <string.h>
16504 _ACEOF
16505 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16506 $EGREP "memchr" >/dev/null 2>&1; then
16507 :
16508 else
16509 ac_cv_header_stdc=no
16510 fi
16511 rm -f conftest*
16513 fi
16515 if test $ac_cv_header_stdc = yes; then
16516 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16517 cat >conftest.$ac_ext <<_ACEOF
16518 /* confdefs.h. */
16519 _ACEOF
16520 cat confdefs.h >>conftest.$ac_ext
16521 cat >>conftest.$ac_ext <<_ACEOF
16522 /* end confdefs.h. */
16523 #include <stdlib.h>
16525 _ACEOF
16526 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16527 $EGREP "free" >/dev/null 2>&1; then
16528 :
16529 else
16530 ac_cv_header_stdc=no
16531 fi
16532 rm -f conftest*
16534 fi
16536 if test $ac_cv_header_stdc = yes; then
16537 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16538 if test "$cross_compiling" = yes; then
16539 :
16540 else
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 #include <ctype.h>
16548 #if ((' ' & 0x0FF) == 0x020)
16549 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16550 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16551 #else
16552 # define ISLOWER(c) \
16553 (('a' <= (c) && (c) <= 'i') \
16554 || ('j' <= (c) && (c) <= 'r') \
16555 || ('s' <= (c) && (c) <= 'z'))
16556 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16557 #endif
16559 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16560 int
16561 main ()
16562 {
16563 int i;
16564 for (i = 0; i < 256; i++)
16565 if (XOR (islower (i), ISLOWER (i))
16566 || toupper (i) != TOUPPER (i))
16567 exit(2);
16568 exit (0);
16569 }
16570 _ACEOF
16571 rm -f conftest$ac_exeext
16572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16573 (eval $ac_link) 2>&5
16574 ac_status=$?
16575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16576 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16578 (eval $ac_try) 2>&5
16579 ac_status=$?
16580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16581 (exit $ac_status); }; }; then
16582 :
16583 else
16584 echo "$as_me: program exited with status $ac_status" >&5
16585 echo "$as_me: failed program was:" >&5
16586 sed 's/^/| /' conftest.$ac_ext >&5
16588 ( exit $ac_status )
16589 ac_cv_header_stdc=no
16590 fi
16591 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16592 fi
16593 fi
16594 fi
16595 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
16596 echo "${ECHO_T}$ac_cv_header_stdc" >&6
16597 if test $ac_cv_header_stdc = yes; then
16599 cat >>confdefs.h <<\_ACEOF
16600 #define STDC_HEADERS 1
16601 _ACEOF
16603 fi
16612 for ac_header in fcntl.h stdlib.h string.h sys/param.h sys/socket.h sys/time.h unistd.h
16613 do
16614 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16615 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16616 echo "$as_me:$LINENO: checking for $ac_header" >&5
16617 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16618 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16619 echo $ECHO_N "(cached) $ECHO_C" >&6
16620 fi
16621 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16622 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16623 else
16624 # Is the header compilable?
16625 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16626 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16627 cat >conftest.$ac_ext <<_ACEOF
16628 /* confdefs.h. */
16629 _ACEOF
16630 cat confdefs.h >>conftest.$ac_ext
16631 cat >>conftest.$ac_ext <<_ACEOF
16632 /* end confdefs.h. */
16633 $ac_includes_default
16634 #include <$ac_header>
16635 _ACEOF
16636 rm -f conftest.$ac_objext
16637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16638 (eval $ac_compile) 2>conftest.er1
16639 ac_status=$?
16640 grep -v '^ *+' conftest.er1 >conftest.err
16641 rm -f conftest.er1
16642 cat conftest.err >&5
16643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16644 (exit $ac_status); } &&
16645 { ac_try='test -z "$ac_c_werror_flag"
16646 || test ! -s conftest.err'
16647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16648 (eval $ac_try) 2>&5
16649 ac_status=$?
16650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16651 (exit $ac_status); }; } &&
16652 { ac_try='test -s conftest.$ac_objext'
16653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16654 (eval $ac_try) 2>&5
16655 ac_status=$?
16656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16657 (exit $ac_status); }; }; then
16658 ac_header_compiler=yes
16659 else
16660 echo "$as_me: failed program was:" >&5
16661 sed 's/^/| /' conftest.$ac_ext >&5
16663 ac_header_compiler=no
16664 fi
16665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16666 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16667 echo "${ECHO_T}$ac_header_compiler" >&6
16669 # Is the header present?
16670 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16671 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16672 cat >conftest.$ac_ext <<_ACEOF
16673 /* confdefs.h. */
16674 _ACEOF
16675 cat confdefs.h >>conftest.$ac_ext
16676 cat >>conftest.$ac_ext <<_ACEOF
16677 /* end confdefs.h. */
16678 #include <$ac_header>
16679 _ACEOF
16680 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16681 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16682 ac_status=$?
16683 grep -v '^ *+' conftest.er1 >conftest.err
16684 rm -f conftest.er1
16685 cat conftest.err >&5
16686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16687 (exit $ac_status); } >/dev/null; then
16688 if test -s conftest.err; then
16689 ac_cpp_err=$ac_c_preproc_warn_flag
16690 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16691 else
16692 ac_cpp_err=
16693 fi
16694 else
16695 ac_cpp_err=yes
16696 fi
16697 if test -z "$ac_cpp_err"; then
16698 ac_header_preproc=yes
16699 else
16700 echo "$as_me: failed program was:" >&5
16701 sed 's/^/| /' conftest.$ac_ext >&5
16703 ac_header_preproc=no
16704 fi
16705 rm -f conftest.err conftest.$ac_ext
16706 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16707 echo "${ECHO_T}$ac_header_preproc" >&6
16709 # So? What about this header?
16710 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16711 yes:no: )
16712 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16713 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16714 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16715 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16716 ac_header_preproc=yes
16717 ;;
16718 no:yes:* )
16719 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16720 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16721 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16722 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16723 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16724 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16725 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16726 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16727 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16728 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16729 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16730 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16731 (
16732 cat <<\_ASBOX
16733 ## --------------------------------- ##
16734 ## Report this to the TI IPC lists. ##
16735 ## --------------------------------- ##
16736 _ASBOX
16737 ) |
16738 sed "s/^/$as_me: WARNING: /" >&2
16739 ;;
16740 esac
16741 echo "$as_me:$LINENO: checking for $ac_header" >&5
16742 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16743 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16744 echo $ECHO_N "(cached) $ECHO_C" >&6
16745 else
16746 eval "$as_ac_Header=\$ac_header_preproc"
16747 fi
16748 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16749 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16751 fi
16752 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16753 cat >>confdefs.h <<_ACEOF
16754 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16755 _ACEOF
16757 fi
16759 done
16762 # Export CFLAGS and LDFLAGS to Makefile(s)
16766 # Add config variables/options and check them
16770 # Test platform variable for setting
16771 if test "x$PLATFORM" = "xomapl138"; then
16772 { echo "$as_me:$LINENO: PLATFORM is set to ${PLATFORM}" >&5
16773 echo "$as_me: PLATFORM is set to ${PLATFORM}" >&6;}
16774 else
16775 if test "x$PLATFORM" = "xtci6614"; then
16776 { echo "$as_me:$LINENO: PLATFORM is set to ${PLATFORM}" >&5
16777 echo "$as_me: PLATFORM is set to ${PLATFORM}" >&6;}
16778 else
16779 if test "x$PLATFORM" = "xtci6638"; then
16780 { echo "$as_me:$LINENO: PLATFORM is set to ${PLATFORM}" >&5
16781 echo "$as_me: PLATFORM is set to ${PLATFORM}" >&6;}
16782 else
16783 if test "x$PLATFORM" = "xomap54xx_smp"; then
16784 { echo "$as_me:$LINENO: PLATFORM is set to ${PLATFORM}" >&5
16785 echo "$as_me: PLATFORM is set to ${PLATFORM}" >&6;}
16786 else
16787 if test "x$PLATFORM" = "x"; then
16788 { echo "$as_me:$LINENO: PLATFORM is not set. All supported platforms will be built ...." >&5
16789 echo "$as_me: PLATFORM is not set. All supported platforms will be built ...." >&6;}
16790 else
16791 { { echo "$as_me:$LINENO: error: PLATFORM is set to \"${PLATFORM}\": run ./configure --help for available PLATFORM options" >&5
16792 echo "$as_me: error: PLATFORM is set to \"${PLATFORM}\": run ./configure --help for available PLATFORM options" >&2;}
16793 { (exit 1); exit 1; }; }
16794 fi
16796 fi
16798 fi
16800 fi
16802 fi
16805 # Export optional user variable to Makefile(s)
16809 # Define specific variables to be used in Makefile.am
16812 if test "x$PLATFORM" = "xomapl138"; then
16813 OMAPL138_TRUE=
16814 OMAPL138_FALSE='#'
16815 else
16816 OMAPL138_TRUE='#'
16817 OMAPL138_FALSE=
16818 fi
16822 if test "x$PLATFORM" = "xtci6614"; then
16823 TCI6614_TRUE=
16824 TCI6614_FALSE='#'
16825 else
16826 TCI6614_TRUE='#'
16827 TCI6614_FALSE=
16828 fi
16832 if test "x$PLATFORM" = "xtci6638"; then
16833 TCI6638_TRUE=
16834 TCI6638_FALSE='#'
16835 else
16836 TCI6638_TRUE='#'
16837 TCI6638_FALSE=
16838 fi
16842 if test "x$PLATFORM" = "xomap54xx_smp"; then
16843 OMAP54XX_SMP_TRUE=
16844 OMAP54XX_SMP_FALSE='#'
16845 else
16846 OMAP54XX_SMP_TRUE='#'
16847 OMAP54XX_SMP_FALSE=
16848 fi
16852 if test "x$CMEM_INSTALL_DIR" != "x"; then
16853 CMEM_TRUE=
16854 CMEM_FALSE='#'
16855 else
16856 CMEM_TRUE='#'
16857 CMEM_FALSE=
16858 fi
16861 # Generate Makefile(s)
16862 ac_config_files="$ac_config_files Makefile"
16864 ac_config_files="$ac_config_files linux/etc/Makefile"
16866 ac_config_files="$ac_config_files linux/src/utils/Makefile"
16868 ac_config_files="$ac_config_files linux/src/api/Makefile"
16870 ac_config_files="$ac_config_files linux/src/family/Makefile"
16872 ac_config_files="$ac_config_files linux/src/daemon/Makefile"
16874 ac_config_files="$ac_config_files linux/src/tests/Makefile"
16876 ac_config_files="$ac_config_files linux/src/mm/Makefile"
16878 cat >confcache <<\_ACEOF
16879 # This file is a shell script that caches the results of configure
16880 # tests run on this system so they can be shared between configure
16881 # scripts and configure runs, see configure's option --config-cache.
16882 # It is not useful on other systems. If it contains results you don't
16883 # want to keep, you may remove or edit it.
16884 #
16885 # config.status only pays attention to the cache file if you give it
16886 # the --recheck option to rerun configure.
16887 #
16888 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16889 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16890 # following values.
16892 _ACEOF
16894 # The following way of writing the cache mishandles newlines in values,
16895 # but we know of no workaround that is simple, portable, and efficient.
16896 # So, don't put newlines in cache variables' values.
16897 # Ultrix sh set writes to stderr and can't be redirected directly,
16898 # and sets the high bit in the cache file unless we assign to the vars.
16899 {
16900 (set) 2>&1 |
16901 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16902 *ac_space=\ *)
16903 # `set' does not quote correctly, so add quotes (double-quote
16904 # substitution turns \\\\ into \\, and sed turns \\ into \).
16905 sed -n \
16906 "s/'/'\\\\''/g;
16907 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16908 ;;
16909 *)
16910 # `set' quotes correctly as required by POSIX, so do not add quotes.
16911 sed -n \
16912 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16913 ;;
16914 esac;
16915 } |
16916 sed '
16917 t clear
16918 : clear
16919 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16920 t end
16921 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16922 : end' >>confcache
16923 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16924 if test -w $cache_file; then
16925 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16926 cat confcache >$cache_file
16927 else
16928 echo "not updating unwritable cache $cache_file"
16929 fi
16930 fi
16931 rm -f confcache
16933 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16934 # Let make expand exec_prefix.
16935 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16937 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16938 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16939 # trailing colons and then remove the whole line if VPATH becomes empty
16940 # (actually we leave an empty line to preserve line numbers).
16941 if test "x$srcdir" = x.; then
16942 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16943 s/:*\$(srcdir):*/:/;
16944 s/:*\${srcdir}:*/:/;
16945 s/:*@srcdir@:*/:/;
16946 s/^\([^=]*=[ ]*\):*/\1/;
16947 s/:*$//;
16948 s/^[^=]*=[ ]*$//;
16949 }'
16950 fi
16952 # Transform confdefs.h into DEFS.
16953 # Protect against shell expansion while executing Makefile rules.
16954 # Protect against Makefile macro expansion.
16955 #
16956 # If the first sed substitution is executed (which looks for macros that
16957 # take arguments), then we branch to the quote section. Otherwise,
16958 # look for a macro that doesn't take arguments.
16959 cat >confdef2opt.sed <<\_ACEOF
16960 t clear
16961 : clear
16962 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
16963 t quote
16964 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
16965 t quote
16966 d
16967 : quote
16968 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
16969 s,\[,\\&,g
16970 s,\],\\&,g
16971 s,\$,$$,g
16972 p
16973 _ACEOF
16974 # We use echo to avoid assuming a particular line-breaking character.
16975 # The extra dot is to prevent the shell from consuming trailing
16976 # line-breaks from the sub-command output. A line-break within
16977 # single-quotes doesn't work because, if this script is created in a
16978 # platform that uses two characters for line-breaks (e.g., DOS), tr
16979 # would break.
16980 ac_LF_and_DOT=`echo; echo .`
16981 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
16982 rm -f confdef2opt.sed
16985 ac_libobjs=
16986 ac_ltlibobjs=
16987 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16988 # 1. Remove the extension, and $U if already installed.
16989 ac_i=`echo "$ac_i" |
16990 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16991 # 2. Add them.
16992 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16993 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16994 done
16995 LIBOBJS=$ac_libobjs
16997 LTLIBOBJS=$ac_ltlibobjs
17000 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17001 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
17002 Usually this means the macro was only invoked conditionally." >&5
17003 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
17004 Usually this means the macro was only invoked conditionally." >&2;}
17005 { (exit 1); exit 1; }; }
17006 fi
17007 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17008 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
17009 Usually this means the macro was only invoked conditionally." >&5
17010 echo "$as_me: error: conditional \"AMDEP\" was never defined.
17011 Usually this means the macro was only invoked conditionally." >&2;}
17012 { (exit 1); exit 1; }; }
17013 fi
17014 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17015 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
17016 Usually this means the macro was only invoked conditionally." >&5
17017 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
17018 Usually this means the macro was only invoked conditionally." >&2;}
17019 { (exit 1); exit 1; }; }
17020 fi
17021 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17022 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
17023 Usually this means the macro was only invoked conditionally." >&5
17024 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
17025 Usually this means the macro was only invoked conditionally." >&2;}
17026 { (exit 1); exit 1; }; }
17027 fi
17028 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17029 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
17030 Usually this means the macro was only invoked conditionally." >&5
17031 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
17032 Usually this means the macro was only invoked conditionally." >&2;}
17033 { (exit 1); exit 1; }; }
17034 fi
17035 if test -z "${OMAPL138_TRUE}" && test -z "${OMAPL138_FALSE}"; then
17036 { { echo "$as_me:$LINENO: error: conditional \"OMAPL138\" was never defined.
17037 Usually this means the macro was only invoked conditionally." >&5
17038 echo "$as_me: error: conditional \"OMAPL138\" was never defined.
17039 Usually this means the macro was only invoked conditionally." >&2;}
17040 { (exit 1); exit 1; }; }
17041 fi
17042 if test -z "${TCI6614_TRUE}" && test -z "${TCI6614_FALSE}"; then
17043 { { echo "$as_me:$LINENO: error: conditional \"TCI6614\" was never defined.
17044 Usually this means the macro was only invoked conditionally." >&5
17045 echo "$as_me: error: conditional \"TCI6614\" was never defined.
17046 Usually this means the macro was only invoked conditionally." >&2;}
17047 { (exit 1); exit 1; }; }
17048 fi
17049 if test -z "${TCI6638_TRUE}" && test -z "${TCI6638_FALSE}"; then
17050 { { echo "$as_me:$LINENO: error: conditional \"TCI6638\" was never defined.
17051 Usually this means the macro was only invoked conditionally." >&5
17052 echo "$as_me: error: conditional \"TCI6638\" was never defined.
17053 Usually this means the macro was only invoked conditionally." >&2;}
17054 { (exit 1); exit 1; }; }
17055 fi
17056 if test -z "${OMAP54XX_SMP_TRUE}" && test -z "${OMAP54XX_SMP_FALSE}"; then
17057 { { echo "$as_me:$LINENO: error: conditional \"OMAP54XX_SMP\" was never defined.
17058 Usually this means the macro was only invoked conditionally." >&5
17059 echo "$as_me: error: conditional \"OMAP54XX_SMP\" was never defined.
17060 Usually this means the macro was only invoked conditionally." >&2;}
17061 { (exit 1); exit 1; }; }
17062 fi
17063 if test -z "${CMEM_TRUE}" && test -z "${CMEM_FALSE}"; then
17064 { { echo "$as_me:$LINENO: error: conditional \"CMEM\" was never defined.
17065 Usually this means the macro was only invoked conditionally." >&5
17066 echo "$as_me: error: conditional \"CMEM\" was never defined.
17067 Usually this means the macro was only invoked conditionally." >&2;}
17068 { (exit 1); exit 1; }; }
17069 fi
17071 : ${CONFIG_STATUS=./config.status}
17072 ac_clean_files_save=$ac_clean_files
17073 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17074 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17075 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17076 cat >$CONFIG_STATUS <<_ACEOF
17077 #! $SHELL
17078 # Generated by $as_me.
17079 # Run this file to recreate the current configuration.
17080 # Compiler output produced by configure, useful for debugging
17081 # configure, is in config.log if it exists.
17083 debug=false
17084 ac_cs_recheck=false
17085 ac_cs_silent=false
17086 SHELL=\${CONFIG_SHELL-$SHELL}
17087 _ACEOF
17089 cat >>$CONFIG_STATUS <<\_ACEOF
17090 ## --------------------- ##
17091 ## M4sh Initialization. ##
17092 ## --------------------- ##
17094 # Be Bourne compatible
17095 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17096 emulate sh
17097 NULLCMD=:
17098 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17099 # is contrary to our usage. Disable this feature.
17100 alias -g '${1+"$@"}'='"$@"'
17101 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17102 set -o posix
17103 fi
17104 DUALCASE=1; export DUALCASE # for MKS sh
17106 # Support unset when possible.
17107 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17108 as_unset=unset
17109 else
17110 as_unset=false
17111 fi
17114 # Work around bugs in pre-3.0 UWIN ksh.
17115 $as_unset ENV MAIL MAILPATH
17116 PS1='$ '
17117 PS2='> '
17118 PS4='+ '
17120 # NLS nuisances.
17121 for as_var in \
17122 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17123 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17124 LC_TELEPHONE LC_TIME
17125 do
17126 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17127 eval $as_var=C; export $as_var
17128 else
17129 $as_unset $as_var
17130 fi
17131 done
17133 # Required to use basename.
17134 if expr a : '\(a\)' >/dev/null 2>&1; then
17135 as_expr=expr
17136 else
17137 as_expr=false
17138 fi
17140 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17141 as_basename=basename
17142 else
17143 as_basename=false
17144 fi
17147 # Name of the executable.
17148 as_me=`$as_basename "$0" ||
17149 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17150 X"$0" : 'X\(//\)$' \| \
17151 X"$0" : 'X\(/\)$' \| \
17152 . : '\(.\)' 2>/dev/null ||
17153 echo X/"$0" |
17154 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17155 /^X\/\(\/\/\)$/{ s//\1/; q; }
17156 /^X\/\(\/\).*/{ s//\1/; q; }
17157 s/.*/./; q'`
17160 # PATH needs CR, and LINENO needs CR and PATH.
17161 # Avoid depending upon Character Ranges.
17162 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17163 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17164 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17165 as_cr_digits='0123456789'
17166 as_cr_alnum=$as_cr_Letters$as_cr_digits
17168 # The user is always right.
17169 if test "${PATH_SEPARATOR+set}" != set; then
17170 echo "#! /bin/sh" >conf$$.sh
17171 echo "exit 0" >>conf$$.sh
17172 chmod +x conf$$.sh
17173 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17174 PATH_SEPARATOR=';'
17175 else
17176 PATH_SEPARATOR=:
17177 fi
17178 rm -f conf$$.sh
17179 fi
17182 as_lineno_1=$LINENO
17183 as_lineno_2=$LINENO
17184 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17185 test "x$as_lineno_1" != "x$as_lineno_2" &&
17186 test "x$as_lineno_3" = "x$as_lineno_2" || {
17187 # Find who we are. Look in the path if we contain no path at all
17188 # relative or not.
17189 case $0 in
17190 *[\\/]* ) as_myself=$0 ;;
17191 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17192 for as_dir in $PATH
17193 do
17194 IFS=$as_save_IFS
17195 test -z "$as_dir" && as_dir=.
17196 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17197 done
17199 ;;
17200 esac
17201 # We did not find ourselves, most probably we were run as `sh COMMAND'
17202 # in which case we are not to be found in the path.
17203 if test "x$as_myself" = x; then
17204 as_myself=$0
17205 fi
17206 if test ! -f "$as_myself"; then
17207 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17208 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17209 { (exit 1); exit 1; }; }
17210 fi
17211 case $CONFIG_SHELL in
17212 '')
17213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17214 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17215 do
17216 IFS=$as_save_IFS
17217 test -z "$as_dir" && as_dir=.
17218 for as_base in sh bash ksh sh5; do
17219 case $as_dir in
17220 /*)
17221 if ("$as_dir/$as_base" -c '
17222 as_lineno_1=$LINENO
17223 as_lineno_2=$LINENO
17224 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17225 test "x$as_lineno_1" != "x$as_lineno_2" &&
17226 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17227 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17228 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17229 CONFIG_SHELL=$as_dir/$as_base
17230 export CONFIG_SHELL
17231 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17232 fi;;
17233 esac
17234 done
17235 done
17236 ;;
17237 esac
17239 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17240 # uniformly replaced by the line number. The first 'sed' inserts a
17241 # line-number line before each line; the second 'sed' does the real
17242 # work. The second script uses 'N' to pair each line-number line
17243 # with the numbered line, and appends trailing '-' during
17244 # substitution so that $LINENO is not a special case at line end.
17245 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17246 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17247 sed '=' <$as_myself |
17248 sed '
17249 N
17250 s,$,-,
17251 : loop
17252 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17253 t loop
17254 s,-$,,
17255 s,^['$as_cr_digits']*\n,,
17256 ' >$as_me.lineno &&
17257 chmod +x $as_me.lineno ||
17258 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17259 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17260 { (exit 1); exit 1; }; }
17262 # Don't try to exec as it changes $[0], causing all sort of problems
17263 # (the dirname of $[0] is not the place where we might find the
17264 # original and so on. Autoconf is especially sensible to this).
17265 . ./$as_me.lineno
17266 # Exit status is that of the last command.
17267 exit
17268 }
17271 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17272 *c*,-n*) ECHO_N= ECHO_C='
17273 ' ECHO_T=' ' ;;
17274 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17275 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17276 esac
17278 if expr a : '\(a\)' >/dev/null 2>&1; then
17279 as_expr=expr
17280 else
17281 as_expr=false
17282 fi
17284 rm -f conf$$ conf$$.exe conf$$.file
17285 echo >conf$$.file
17286 if ln -s conf$$.file conf$$ 2>/dev/null; then
17287 # We could just check for DJGPP; but this test a) works b) is more generic
17288 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17289 if test -f conf$$.exe; then
17290 # Don't use ln at all; we don't have any links
17291 as_ln_s='cp -p'
17292 else
17293 as_ln_s='ln -s'
17294 fi
17295 elif ln conf$$.file conf$$ 2>/dev/null; then
17296 as_ln_s=ln
17297 else
17298 as_ln_s='cp -p'
17299 fi
17300 rm -f conf$$ conf$$.exe conf$$.file
17302 if mkdir -p . 2>/dev/null; then
17303 as_mkdir_p=:
17304 else
17305 test -d ./-p && rmdir ./-p
17306 as_mkdir_p=false
17307 fi
17309 as_executable_p="test -f"
17311 # Sed expression to map a string onto a valid CPP name.
17312 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17314 # Sed expression to map a string onto a valid variable name.
17315 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17318 # IFS
17319 # We need space, tab and new line, in precisely that order.
17320 as_nl='
17321 '
17322 IFS=" $as_nl"
17324 # CDPATH.
17325 $as_unset CDPATH
17327 exec 6>&1
17329 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17330 # report actual input values of CONFIG_FILES etc. instead of their
17331 # values after options handling. Logging --version etc. is OK.
17332 exec 5>>config.log
17333 {
17334 echo
17335 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17336 ## Running $as_me. ##
17337 _ASBOX
17338 } >&5
17339 cat >&5 <<_CSEOF
17341 This file was extended by TI IPC $as_me 3.0.0, which was
17342 generated by GNU Autoconf 2.59. Invocation command line was
17344 CONFIG_FILES = $CONFIG_FILES
17345 CONFIG_HEADERS = $CONFIG_HEADERS
17346 CONFIG_LINKS = $CONFIG_LINKS
17347 CONFIG_COMMANDS = $CONFIG_COMMANDS
17348 $ $0 $@
17350 _CSEOF
17351 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17352 echo >&5
17353 _ACEOF
17355 # Files that config.status was made for.
17356 if test -n "$ac_config_files"; then
17357 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17358 fi
17360 if test -n "$ac_config_headers"; then
17361 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17362 fi
17364 if test -n "$ac_config_links"; then
17365 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17366 fi
17368 if test -n "$ac_config_commands"; then
17369 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17370 fi
17372 cat >>$CONFIG_STATUS <<\_ACEOF
17374 ac_cs_usage="\
17375 \`$as_me' instantiates files from templates according to the
17376 current configuration.
17378 Usage: $0 [OPTIONS] [FILE]...
17380 -h, --help print this help, then exit
17381 -V, --version print version number, then exit
17382 -q, --quiet do not print progress messages
17383 -d, --debug don't remove temporary files
17384 --recheck update $as_me by reconfiguring in the same conditions
17385 --file=FILE[:TEMPLATE]
17386 instantiate the configuration file FILE
17388 Configuration files:
17389 $config_files
17391 Configuration commands:
17392 $config_commands
17394 Report bugs to <bug-autoconf@gnu.org>."
17395 _ACEOF
17397 cat >>$CONFIG_STATUS <<_ACEOF
17398 ac_cs_version="\\
17399 TI IPC config.status 3.0.0
17400 configured by $0, generated by GNU Autoconf 2.59,
17401 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17403 Copyright (C) 2003 Free Software Foundation, Inc.
17404 This config.status script is free software; the Free Software Foundation
17405 gives unlimited permission to copy, distribute and modify it."
17406 srcdir=$srcdir
17407 INSTALL="$INSTALL"
17408 _ACEOF
17410 cat >>$CONFIG_STATUS <<\_ACEOF
17411 # If no file are specified by the user, then we need to provide default
17412 # value. By we need to know if files were specified by the user.
17413 ac_need_defaults=:
17414 while test $# != 0
17415 do
17416 case $1 in
17417 --*=*)
17418 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17419 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17420 ac_shift=:
17421 ;;
17422 -*)
17423 ac_option=$1
17424 ac_optarg=$2
17425 ac_shift=shift
17426 ;;
17427 *) # This is not an option, so the user has probably given explicit
17428 # arguments.
17429 ac_option=$1
17430 ac_need_defaults=false;;
17431 esac
17433 case $ac_option in
17434 # Handling of the options.
17435 _ACEOF
17436 cat >>$CONFIG_STATUS <<\_ACEOF
17437 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17438 ac_cs_recheck=: ;;
17439 --version | --vers* | -V )
17440 echo "$ac_cs_version"; exit 0 ;;
17441 --he | --h)
17442 # Conflict between --help and --header
17443 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17444 Try \`$0 --help' for more information." >&5
17445 echo "$as_me: error: ambiguous option: $1
17446 Try \`$0 --help' for more information." >&2;}
17447 { (exit 1); exit 1; }; };;
17448 --help | --hel | -h )
17449 echo "$ac_cs_usage"; exit 0 ;;
17450 --debug | --d* | -d )
17451 debug=: ;;
17452 --file | --fil | --fi | --f )
17453 $ac_shift
17454 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17455 ac_need_defaults=false;;
17456 --header | --heade | --head | --hea )
17457 $ac_shift
17458 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17459 ac_need_defaults=false;;
17460 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17461 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17462 ac_cs_silent=: ;;
17464 # This is an error.
17465 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17466 Try \`$0 --help' for more information." >&5
17467 echo "$as_me: error: unrecognized option: $1
17468 Try \`$0 --help' for more information." >&2;}
17469 { (exit 1); exit 1; }; } ;;
17471 *) ac_config_targets="$ac_config_targets $1" ;;
17473 esac
17474 shift
17475 done
17477 ac_configure_extra_args=
17479 if $ac_cs_silent; then
17480 exec 6>/dev/null
17481 ac_configure_extra_args="$ac_configure_extra_args --silent"
17482 fi
17484 _ACEOF
17485 cat >>$CONFIG_STATUS <<_ACEOF
17486 if \$ac_cs_recheck; then
17487 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17488 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17489 fi
17491 _ACEOF
17493 cat >>$CONFIG_STATUS <<_ACEOF
17494 #
17495 # INIT-COMMANDS section.
17496 #
17498 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17500 _ACEOF
17504 cat >>$CONFIG_STATUS <<\_ACEOF
17505 for ac_config_target in $ac_config_targets
17506 do
17507 case "$ac_config_target" in
17508 # Handling of arguments.
17509 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17510 "linux/etc/Makefile" ) CONFIG_FILES="$CONFIG_FILES linux/etc/Makefile" ;;
17511 "linux/src/utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES linux/src/utils/Makefile" ;;
17512 "linux/src/api/Makefile" ) CONFIG_FILES="$CONFIG_FILES linux/src/api/Makefile" ;;
17513 "linux/src/family/Makefile" ) CONFIG_FILES="$CONFIG_FILES linux/src/family/Makefile" ;;
17514 "linux/src/daemon/Makefile" ) CONFIG_FILES="$CONFIG_FILES linux/src/daemon/Makefile" ;;
17515 "linux/src/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES linux/src/tests/Makefile" ;;
17516 "linux/src/mm/Makefile" ) CONFIG_FILES="$CONFIG_FILES linux/src/mm/Makefile" ;;
17517 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17518 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17519 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17520 { (exit 1); exit 1; }; };;
17521 esac
17522 done
17524 # If the user did not use the arguments to specify the items to instantiate,
17525 # then the envvar interface is used. Set only those that are not.
17526 # We use the long form for the default assignment because of an extremely
17527 # bizarre bug on SunOS 4.1.3.
17528 if $ac_need_defaults; then
17529 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17530 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17531 fi
17533 # Have a temporary directory for convenience. Make it in the build tree
17534 # simply because there is no reason to put it here, and in addition,
17535 # creating and moving files from /tmp can sometimes cause problems.
17536 # Create a temporary directory, and hook for its removal unless debugging.
17537 $debug ||
17538 {
17539 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17540 trap '{ (exit 1); exit 1; }' 1 2 13 15
17541 }
17543 # Create a (secure) tmp directory for tmp files.
17545 {
17546 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17547 test -n "$tmp" && test -d "$tmp"
17548 } ||
17549 {
17550 tmp=./confstat$$-$RANDOM
17551 (umask 077 && mkdir $tmp)
17552 } ||
17553 {
17554 echo "$me: cannot create a temporary directory in ." >&2
17555 { (exit 1); exit 1; }
17556 }
17558 _ACEOF
17560 cat >>$CONFIG_STATUS <<_ACEOF
17562 #
17563 # CONFIG_FILES section.
17564 #
17566 # No need to generate the scripts if there are no CONFIG_FILES.
17567 # This happens for instance when ./config.status config.h
17568 if test -n "\$CONFIG_FILES"; then
17569 # Protect against being on the right side of a sed subst in config.status.
17570 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17571 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17572 s,@SHELL@,$SHELL,;t t
17573 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17574 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17575 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17576 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17577 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17578 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17579 s,@exec_prefix@,$exec_prefix,;t t
17580 s,@prefix@,$prefix,;t t
17581 s,@program_transform_name@,$program_transform_name,;t t
17582 s,@bindir@,$bindir,;t t
17583 s,@sbindir@,$sbindir,;t t
17584 s,@libexecdir@,$libexecdir,;t t
17585 s,@datadir@,$datadir,;t t
17586 s,@sysconfdir@,$sysconfdir,;t t
17587 s,@sharedstatedir@,$sharedstatedir,;t t
17588 s,@localstatedir@,$localstatedir,;t t
17589 s,@libdir@,$libdir,;t t
17590 s,@includedir@,$includedir,;t t
17591 s,@oldincludedir@,$oldincludedir,;t t
17592 s,@infodir@,$infodir,;t t
17593 s,@mandir@,$mandir,;t t
17594 s,@build_alias@,$build_alias,;t t
17595 s,@host_alias@,$host_alias,;t t
17596 s,@target_alias@,$target_alias,;t t
17597 s,@DEFS@,$DEFS,;t t
17598 s,@ECHO_C@,$ECHO_C,;t t
17599 s,@ECHO_N@,$ECHO_N,;t t
17600 s,@ECHO_T@,$ECHO_T,;t t
17601 s,@LIBS@,$LIBS,;t t
17602 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17603 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17604 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17605 s,@CYGPATH_W@,$CYGPATH_W,;t t
17606 s,@PACKAGE@,$PACKAGE,;t t
17607 s,@VERSION@,$VERSION,;t t
17608 s,@ACLOCAL@,$ACLOCAL,;t t
17609 s,@AUTOCONF@,$AUTOCONF,;t t
17610 s,@AUTOMAKE@,$AUTOMAKE,;t t
17611 s,@AUTOHEADER@,$AUTOHEADER,;t t
17612 s,@MAKEINFO@,$MAKEINFO,;t t
17613 s,@install_sh@,$install_sh,;t t
17614 s,@STRIP@,$STRIP,;t t
17615 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17616 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
17617 s,@mkdir_p@,$mkdir_p,;t t
17618 s,@AWK@,$AWK,;t t
17619 s,@SET_MAKE@,$SET_MAKE,;t t
17620 s,@am__leading_dot@,$am__leading_dot,;t t
17621 s,@AMTAR@,$AMTAR,;t t
17622 s,@am__tar@,$am__tar,;t t
17623 s,@am__untar@,$am__untar,;t t
17624 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
17625 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
17626 s,@MAINT@,$MAINT,;t t
17627 s,@build@,$build,;t t
17628 s,@build_cpu@,$build_cpu,;t t
17629 s,@build_vendor@,$build_vendor,;t t
17630 s,@build_os@,$build_os,;t t
17631 s,@host@,$host,;t t
17632 s,@host_cpu@,$host_cpu,;t t
17633 s,@host_vendor@,$host_vendor,;t t
17634 s,@host_os@,$host_os,;t t
17635 s,@CC@,$CC,;t t
17636 s,@CFLAGS@,$CFLAGS,;t t
17637 s,@LDFLAGS@,$LDFLAGS,;t t
17638 s,@CPPFLAGS@,$CPPFLAGS,;t t
17639 s,@ac_ct_CC@,$ac_ct_CC,;t t
17640 s,@EXEEXT@,$EXEEXT,;t t
17641 s,@OBJEXT@,$OBJEXT,;t t
17642 s,@DEPDIR@,$DEPDIR,;t t
17643 s,@am__include@,$am__include,;t t
17644 s,@am__quote@,$am__quote,;t t
17645 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
17646 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
17647 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
17648 s,@CCDEPMODE@,$CCDEPMODE,;t t
17649 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
17650 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
17651 s,@EGREP@,$EGREP,;t t
17652 s,@LN_S@,$LN_S,;t t
17653 s,@ECHO@,$ECHO,;t t
17654 s,@AR@,$AR,;t t
17655 s,@ac_ct_AR@,$ac_ct_AR,;t t
17656 s,@RANLIB@,$RANLIB,;t t
17657 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17658 s,@CPP@,$CPP,;t t
17659 s,@CXX@,$CXX,;t t
17660 s,@CXXFLAGS@,$CXXFLAGS,;t t
17661 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17662 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
17663 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
17664 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
17665 s,@CXXCPP@,$CXXCPP,;t t
17666 s,@LIBTOOL@,$LIBTOOL,;t t
17667 s,@AM_CFLAGS@,$AM_CFLAGS,;t t
17668 s,@AM_LDFLAGS@,$AM_LDFLAGS,;t t
17669 s,@PLATFORM@,$PLATFORM,;t t
17670 s,@CMEM_INSTALL_DIR@,$CMEM_INSTALL_DIR,;t t
17671 s,@OMAPL138_TRUE@,$OMAPL138_TRUE,;t t
17672 s,@OMAPL138_FALSE@,$OMAPL138_FALSE,;t t
17673 s,@TCI6614_TRUE@,$TCI6614_TRUE,;t t
17674 s,@TCI6614_FALSE@,$TCI6614_FALSE,;t t
17675 s,@TCI6638_TRUE@,$TCI6638_TRUE,;t t
17676 s,@TCI6638_FALSE@,$TCI6638_FALSE,;t t
17677 s,@OMAP54XX_SMP_TRUE@,$OMAP54XX_SMP_TRUE,;t t
17678 s,@OMAP54XX_SMP_FALSE@,$OMAP54XX_SMP_FALSE,;t t
17679 s,@CMEM_TRUE@,$CMEM_TRUE,;t t
17680 s,@CMEM_FALSE@,$CMEM_FALSE,;t t
17681 s,@LIBOBJS@,$LIBOBJS,;t t
17682 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17683 CEOF
17685 _ACEOF
17687 cat >>$CONFIG_STATUS <<\_ACEOF
17688 # Split the substitutions into bite-sized pieces for seds with
17689 # small command number limits, like on Digital OSF/1 and HP-UX.
17690 ac_max_sed_lines=48
17691 ac_sed_frag=1 # Number of current file.
17692 ac_beg=1 # First line for current file.
17693 ac_end=$ac_max_sed_lines # Line after last line for current file.
17694 ac_more_lines=:
17695 ac_sed_cmds=
17696 while $ac_more_lines; do
17697 if test $ac_beg -gt 1; then
17698 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17699 else
17700 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17701 fi
17702 if test ! -s $tmp/subs.frag; then
17703 ac_more_lines=false
17704 else
17705 # The purpose of the label and of the branching condition is to
17706 # speed up the sed processing (if there are no `@' at all, there
17707 # is no need to browse any of the substitutions).
17708 # These are the two extra sed commands mentioned above.
17709 (echo ':t
17710 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17711 if test -z "$ac_sed_cmds"; then
17712 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17713 else
17714 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17715 fi
17716 ac_sed_frag=`expr $ac_sed_frag + 1`
17717 ac_beg=$ac_end
17718 ac_end=`expr $ac_end + $ac_max_sed_lines`
17719 fi
17720 done
17721 if test -z "$ac_sed_cmds"; then
17722 ac_sed_cmds=cat
17723 fi
17724 fi # test -n "$CONFIG_FILES"
17726 _ACEOF
17727 cat >>$CONFIG_STATUS <<\_ACEOF
17728 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17729 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17730 case $ac_file in
17731 - | *:- | *:-:* ) # input from stdin
17732 cat >$tmp/stdin
17733 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17734 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17735 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17736 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17737 * ) ac_file_in=$ac_file.in ;;
17738 esac
17740 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17741 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17742 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17743 X"$ac_file" : 'X\(//\)[^/]' \| \
17744 X"$ac_file" : 'X\(//\)$' \| \
17745 X"$ac_file" : 'X\(/\)' \| \
17746 . : '\(.\)' 2>/dev/null ||
17747 echo X"$ac_file" |
17748 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17749 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17750 /^X\(\/\/\)$/{ s//\1/; q; }
17751 /^X\(\/\).*/{ s//\1/; q; }
17752 s/.*/./; q'`
17753 { if $as_mkdir_p; then
17754 mkdir -p "$ac_dir"
17755 else
17756 as_dir="$ac_dir"
17757 as_dirs=
17758 while test ! -d "$as_dir"; do
17759 as_dirs="$as_dir $as_dirs"
17760 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17761 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17762 X"$as_dir" : 'X\(//\)[^/]' \| \
17763 X"$as_dir" : 'X\(//\)$' \| \
17764 X"$as_dir" : 'X\(/\)' \| \
17765 . : '\(.\)' 2>/dev/null ||
17766 echo X"$as_dir" |
17767 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17768 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17769 /^X\(\/\/\)$/{ s//\1/; q; }
17770 /^X\(\/\).*/{ s//\1/; q; }
17771 s/.*/./; q'`
17772 done
17773 test ! -n "$as_dirs" || mkdir $as_dirs
17774 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17775 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17776 { (exit 1); exit 1; }; }; }
17778 ac_builddir=.
17780 if test "$ac_dir" != .; then
17781 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17782 # A "../" for each directory in $ac_dir_suffix.
17783 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17784 else
17785 ac_dir_suffix= ac_top_builddir=
17786 fi
17788 case $srcdir in
17789 .) # No --srcdir option. We are building in place.
17790 ac_srcdir=.
17791 if test -z "$ac_top_builddir"; then
17792 ac_top_srcdir=.
17793 else
17794 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17795 fi ;;
17796 [\\/]* | ?:[\\/]* ) # Absolute path.
17797 ac_srcdir=$srcdir$ac_dir_suffix;
17798 ac_top_srcdir=$srcdir ;;
17799 *) # Relative path.
17800 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17801 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17802 esac
17804 # Do not use `cd foo && pwd` to compute absolute paths, because
17805 # the directories may not exist.
17806 case `pwd` in
17807 .) ac_abs_builddir="$ac_dir";;
17808 *)
17809 case "$ac_dir" in
17810 .) ac_abs_builddir=`pwd`;;
17811 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17812 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17813 esac;;
17814 esac
17815 case $ac_abs_builddir in
17816 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17817 *)
17818 case ${ac_top_builddir}. in
17819 .) ac_abs_top_builddir=$ac_abs_builddir;;
17820 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17821 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17822 esac;;
17823 esac
17824 case $ac_abs_builddir in
17825 .) ac_abs_srcdir=$ac_srcdir;;
17826 *)
17827 case $ac_srcdir in
17828 .) ac_abs_srcdir=$ac_abs_builddir;;
17829 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17830 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17831 esac;;
17832 esac
17833 case $ac_abs_builddir in
17834 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17835 *)
17836 case $ac_top_srcdir in
17837 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17838 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17839 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17840 esac;;
17841 esac
17844 case $INSTALL in
17845 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17846 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17847 esac
17849 if test x"$ac_file" != x-; then
17850 { echo "$as_me:$LINENO: creating $ac_file" >&5
17851 echo "$as_me: creating $ac_file" >&6;}
17852 rm -f "$ac_file"
17853 fi
17854 # Let's still pretend it is `configure' which instantiates (i.e., don't
17855 # use $as_me), people would be surprised to read:
17856 # /* config.h. Generated by config.status. */
17857 if test x"$ac_file" = x-; then
17858 configure_input=
17859 else
17860 configure_input="$ac_file. "
17861 fi
17862 configure_input=$configure_input"Generated from `echo $ac_file_in |
17863 sed 's,.*/,,'` by configure."
17865 # First look for the input files in the build tree, otherwise in the
17866 # src tree.
17867 ac_file_inputs=`IFS=:
17868 for f in $ac_file_in; do
17869 case $f in
17870 -) echo $tmp/stdin ;;
17871 [\\/$]*)
17872 # Absolute (can't be DOS-style, as IFS=:)
17873 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17874 echo "$as_me: error: cannot find input file: $f" >&2;}
17875 { (exit 1); exit 1; }; }
17876 echo "$f";;
17877 *) # Relative
17878 if test -f "$f"; then
17879 # Build tree
17880 echo "$f"
17881 elif test -f "$srcdir/$f"; then
17882 # Source tree
17883 echo "$srcdir/$f"
17884 else
17885 # /dev/null tree
17886 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17887 echo "$as_me: error: cannot find input file: $f" >&2;}
17888 { (exit 1); exit 1; }; }
17889 fi;;
17890 esac
17891 done` || { (exit 1); exit 1; }
17892 _ACEOF
17893 cat >>$CONFIG_STATUS <<_ACEOF
17894 sed "$ac_vpsub
17895 $extrasub
17896 _ACEOF
17897 cat >>$CONFIG_STATUS <<\_ACEOF
17898 :t
17899 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17900 s,@configure_input@,$configure_input,;t t
17901 s,@srcdir@,$ac_srcdir,;t t
17902 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17903 s,@top_srcdir@,$ac_top_srcdir,;t t
17904 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17905 s,@builddir@,$ac_builddir,;t t
17906 s,@abs_builddir@,$ac_abs_builddir,;t t
17907 s,@top_builddir@,$ac_top_builddir,;t t
17908 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17909 s,@INSTALL@,$ac_INSTALL,;t t
17910 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17911 rm -f $tmp/stdin
17912 if test x"$ac_file" != x-; then
17913 mv $tmp/out $ac_file
17914 else
17915 cat $tmp/out
17916 rm -f $tmp/out
17917 fi
17919 done
17920 _ACEOF
17921 cat >>$CONFIG_STATUS <<\_ACEOF
17923 #
17924 # CONFIG_COMMANDS section.
17925 #
17926 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17927 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17928 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17929 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17930 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17931 X"$ac_dest" : 'X\(//\)[^/]' \| \
17932 X"$ac_dest" : 'X\(//\)$' \| \
17933 X"$ac_dest" : 'X\(/\)' \| \
17934 . : '\(.\)' 2>/dev/null ||
17935 echo X"$ac_dest" |
17936 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17937 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17938 /^X\(\/\/\)$/{ s//\1/; q; }
17939 /^X\(\/\).*/{ s//\1/; q; }
17940 s/.*/./; q'`
17941 { if $as_mkdir_p; then
17942 mkdir -p "$ac_dir"
17943 else
17944 as_dir="$ac_dir"
17945 as_dirs=
17946 while test ! -d "$as_dir"; do
17947 as_dirs="$as_dir $as_dirs"
17948 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17949 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17950 X"$as_dir" : 'X\(//\)[^/]' \| \
17951 X"$as_dir" : 'X\(//\)$' \| \
17952 X"$as_dir" : 'X\(/\)' \| \
17953 . : '\(.\)' 2>/dev/null ||
17954 echo X"$as_dir" |
17955 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17956 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17957 /^X\(\/\/\)$/{ s//\1/; q; }
17958 /^X\(\/\).*/{ s//\1/; q; }
17959 s/.*/./; q'`
17960 done
17961 test ! -n "$as_dirs" || mkdir $as_dirs
17962 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17963 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17964 { (exit 1); exit 1; }; }; }
17966 ac_builddir=.
17968 if test "$ac_dir" != .; then
17969 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17970 # A "../" for each directory in $ac_dir_suffix.
17971 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17972 else
17973 ac_dir_suffix= ac_top_builddir=
17974 fi
17976 case $srcdir in
17977 .) # No --srcdir option. We are building in place.
17978 ac_srcdir=.
17979 if test -z "$ac_top_builddir"; then
17980 ac_top_srcdir=.
17981 else
17982 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17983 fi ;;
17984 [\\/]* | ?:[\\/]* ) # Absolute path.
17985 ac_srcdir=$srcdir$ac_dir_suffix;
17986 ac_top_srcdir=$srcdir ;;
17987 *) # Relative path.
17988 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17989 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17990 esac
17992 # Do not use `cd foo && pwd` to compute absolute paths, because
17993 # the directories may not exist.
17994 case `pwd` in
17995 .) ac_abs_builddir="$ac_dir";;
17996 *)
17997 case "$ac_dir" in
17998 .) ac_abs_builddir=`pwd`;;
17999 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18000 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18001 esac;;
18002 esac
18003 case $ac_abs_builddir in
18004 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18005 *)
18006 case ${ac_top_builddir}. in
18007 .) ac_abs_top_builddir=$ac_abs_builddir;;
18008 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18009 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18010 esac;;
18011 esac
18012 case $ac_abs_builddir in
18013 .) ac_abs_srcdir=$ac_srcdir;;
18014 *)
18015 case $ac_srcdir in
18016 .) ac_abs_srcdir=$ac_abs_builddir;;
18017 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18018 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18019 esac;;
18020 esac
18021 case $ac_abs_builddir in
18022 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18023 *)
18024 case $ac_top_srcdir in
18025 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18026 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18027 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18028 esac;;
18029 esac
18032 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18033 echo "$as_me: executing $ac_dest commands" >&6;}
18034 case $ac_dest in
18035 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
18036 # Strip MF so we end up with the name of the file.
18037 mf=`echo "$mf" | sed -e 's/:.*$//'`
18038 # Check whether this is an Automake generated Makefile or not.
18039 # We used to match only the files named `Makefile.in', but
18040 # some people rename them; so instead we look at the file content.
18041 # Grep'ing the first line is not enough: some people post-process
18042 # each Makefile.in and add a new line on top of each file to say so.
18043 # So let's grep whole file.
18044 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
18045 dirpart=`(dirname "$mf") 2>/dev/null ||
18046 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18047 X"$mf" : 'X\(//\)[^/]' \| \
18048 X"$mf" : 'X\(//\)$' \| \
18049 X"$mf" : 'X\(/\)' \| \
18050 . : '\(.\)' 2>/dev/null ||
18051 echo X"$mf" |
18052 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18053 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18054 /^X\(\/\/\)$/{ s//\1/; q; }
18055 /^X\(\/\).*/{ s//\1/; q; }
18056 s/.*/./; q'`
18057 else
18058 continue
18059 fi
18060 # Extract the definition of DEPDIR, am__include, and am__quote
18061 # from the Makefile without running `make'.
18062 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18063 test -z "$DEPDIR" && continue
18064 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18065 test -z "am__include" && continue
18066 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18067 # When using ansi2knr, U may be empty or an underscore; expand it
18068 U=`sed -n 's/^U = //p' < "$mf"`
18069 # Find all dependency output files, they are included files with
18070 # $(DEPDIR) in their names. We invoke sed twice because it is the
18071 # simplest approach to changing $(DEPDIR) to its actual value in the
18072 # expansion.
18073 for file in `sed -n "
18074 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18075 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18076 # Make sure the directory exists.
18077 test -f "$dirpart/$file" && continue
18078 fdir=`(dirname "$file") 2>/dev/null ||
18079 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18080 X"$file" : 'X\(//\)[^/]' \| \
18081 X"$file" : 'X\(//\)$' \| \
18082 X"$file" : 'X\(/\)' \| \
18083 . : '\(.\)' 2>/dev/null ||
18084 echo X"$file" |
18085 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18086 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18087 /^X\(\/\/\)$/{ s//\1/; q; }
18088 /^X\(\/\).*/{ s//\1/; q; }
18089 s/.*/./; q'`
18090 { if $as_mkdir_p; then
18091 mkdir -p $dirpart/$fdir
18092 else
18093 as_dir=$dirpart/$fdir
18094 as_dirs=
18095 while test ! -d "$as_dir"; do
18096 as_dirs="$as_dir $as_dirs"
18097 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18098 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18099 X"$as_dir" : 'X\(//\)[^/]' \| \
18100 X"$as_dir" : 'X\(//\)$' \| \
18101 X"$as_dir" : 'X\(/\)' \| \
18102 . : '\(.\)' 2>/dev/null ||
18103 echo X"$as_dir" |
18104 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18105 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18106 /^X\(\/\/\)$/{ s//\1/; q; }
18107 /^X\(\/\).*/{ s//\1/; q; }
18108 s/.*/./; q'`
18109 done
18110 test ! -n "$as_dirs" || mkdir $as_dirs
18111 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
18112 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
18113 { (exit 1); exit 1; }; }; }
18115 # echo "creating $dirpart/$file"
18116 echo '# dummy' > "$dirpart/$file"
18117 done
18118 done
18119 ;;
18120 esac
18121 done
18122 _ACEOF
18124 cat >>$CONFIG_STATUS <<\_ACEOF
18126 { (exit 0); exit 0; }
18127 _ACEOF
18128 chmod +x $CONFIG_STATUS
18129 ac_clean_files=$ac_clean_files_save
18132 # configure is writing to config.log, and then calls config.status.
18133 # config.status does its own redirection, appending to config.log.
18134 # Unfortunately, on DOS this fails, as config.log is still kept open
18135 # by configure, so config.status won't be able to write to it; its
18136 # output is simply discarded. So we exec the FD to /dev/null,
18137 # effectively closing config.log, so it can be properly (re)opened and
18138 # appended to by config.status. When coming back to configure, we
18139 # need to make the FD available again.
18140 if test "$no_create" != yes; then
18141 ac_cs_success=:
18142 ac_config_status_args=
18143 test "$silent" = yes &&
18144 ac_config_status_args="$ac_config_status_args --quiet"
18145 exec 5>/dev/null
18146 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18147 exec 5>>config.log
18148 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18149 # would make configure fail if this is the last instruction.
18150 $ac_cs_success || { (exit 1); exit 1; }
18151 fi
18154 echo \
18155 "-----------------------------------------------------------
18157 Thank you for installing the Linux ${PACKAGE_NAME} package
18159 Installation directory prefix: '${prefix}'.
18160 Compilation command: '${CC} ${CFLAGS} ${CPPFLAGS}'
18162 You have configured to build for the '${PLATFORM}' platform
18164 Your CMEM installation is at:
18165 '${CMEM_INSTALL_DIR}'
18167 Now type 'make; sudo make install' to generate the program
18168 and install it to your system.
18170 ------------------------------------------------------------"