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 # Factoring default headers for most tests.
427 ac_includes_default="\
428 #include <stdio.h>
429 #if HAVE_SYS_TYPES_H
430 # include <sys/types.h>
431 #endif
432 #if HAVE_SYS_STAT_H
433 # include <sys/stat.h>
434 #endif
435 #if STDC_HEADERS
436 # include <stdlib.h>
437 # include <stddef.h>
438 #else
439 # if HAVE_STDLIB_H
440 # include <stdlib.h>
441 # endif
442 #endif
443 #if HAVE_STRING_H
444 # if !STDC_HEADERS && HAVE_MEMORY_H
445 # include <memory.h>
446 # endif
447 # include <string.h>
448 #endif
449 #if HAVE_STRINGS_H
450 # include <strings.h>
451 #endif
452 #if HAVE_INTTYPES_H
453 # include <inttypes.h>
454 #else
455 # if HAVE_STDINT_H
456 # include <stdint.h>
457 # endif
458 #endif
459 #if HAVE_UNISTD_H
460 # include <unistd.h>
461 #endif"
463 ac_unique_file="packages/ti/ipc/MessageQ.h"
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 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 OMAP4430_TRUE OMAP4430_FALSE TCI6614_TRUE TCI6614_FALSE TCI6638_TRUE TCI6638_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-shared[=PKGS]
1027 build shared libraries [default=yes]
1028 --enable-static[=PKGS]
1029 build static libraries [default=yes]
1030 --enable-fast-install[=PKGS]
1031 optimize for fast installation [default=yes]
1032 --disable-dependency-tracking speeds up one-time build
1033 --enable-dependency-tracking do not reject slow dependency extractors
1034 --disable-libtool-lock avoid locking (might break parallel builds)
1036 Optional Packages:
1037 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1038 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1039 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1040 --with-pic try to use only PIC/non-PIC objects [default=use
1041 both]
1042 --with-tags[=TAGS]
1043 include additional configurations [automatic]
1045 Some influential environment variables:
1046 CC C compiler command
1047 CFLAGS C compiler flags
1048 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1049 nonstandard directory <lib dir>
1050 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1051 headers in a nonstandard directory <include dir>
1052 CPP C preprocessor
1053 CXX C++ compiler command
1054 CXXFLAGS C++ compiler flags
1055 CXXCPP C++ preprocessor
1056 PLATFORM Platform to build. Options are: 'omapl138' 'omap4330' 'tci6614'
1057 and 'tci6638'. If not defined all platforms will be built.
1058 CMEM_INSTALL_DIR
1059 Installation path directory to the CMEM libraries
1061 Use these variables to override the choices made by `configure' or to help
1062 it to find libraries and programs with nonstandard names/locations.
1064 _ACEOF
1065 fi
1067 if test "$ac_init_help" = "recursive"; then
1068 # If there are subdirs, report their specific --help.
1069 ac_popdir=`pwd`
1070 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1071 test -d $ac_dir || continue
1072 ac_builddir=.
1074 if test "$ac_dir" != .; then
1075 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1076 # A "../" for each directory in $ac_dir_suffix.
1077 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1078 else
1079 ac_dir_suffix= ac_top_builddir=
1080 fi
1082 case $srcdir in
1083 .) # No --srcdir option. We are building in place.
1084 ac_srcdir=.
1085 if test -z "$ac_top_builddir"; then
1086 ac_top_srcdir=.
1087 else
1088 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1089 fi ;;
1090 [\\/]* | ?:[\\/]* ) # Absolute path.
1091 ac_srcdir=$srcdir$ac_dir_suffix;
1092 ac_top_srcdir=$srcdir ;;
1093 *) # Relative path.
1094 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1095 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1096 esac
1098 # Do not use `cd foo && pwd` to compute absolute paths, because
1099 # the directories may not exist.
1100 case `pwd` in
1101 .) ac_abs_builddir="$ac_dir";;
1102 *)
1103 case "$ac_dir" in
1104 .) ac_abs_builddir=`pwd`;;
1105 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1106 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1107 esac;;
1108 esac
1109 case $ac_abs_builddir in
1110 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1111 *)
1112 case ${ac_top_builddir}. in
1113 .) ac_abs_top_builddir=$ac_abs_builddir;;
1114 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1115 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1116 esac;;
1117 esac
1118 case $ac_abs_builddir in
1119 .) ac_abs_srcdir=$ac_srcdir;;
1120 *)
1121 case $ac_srcdir in
1122 .) ac_abs_srcdir=$ac_abs_builddir;;
1123 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1124 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1125 esac;;
1126 esac
1127 case $ac_abs_builddir in
1128 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1129 *)
1130 case $ac_top_srcdir in
1131 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1132 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1133 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1134 esac;;
1135 esac
1137 cd $ac_dir
1138 # Check for guested configure; otherwise get Cygnus style configure.
1139 if test -f $ac_srcdir/configure.gnu; then
1140 echo
1141 $SHELL $ac_srcdir/configure.gnu --help=recursive
1142 elif test -f $ac_srcdir/configure; then
1143 echo
1144 $SHELL $ac_srcdir/configure --help=recursive
1145 elif test -f $ac_srcdir/configure.ac ||
1146 test -f $ac_srcdir/configure.in; then
1147 echo
1148 $ac_configure --help
1149 else
1150 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1151 fi
1152 cd $ac_popdir
1153 done
1154 fi
1156 test -n "$ac_init_help" && exit 0
1157 if $ac_init_version; then
1158 cat <<\_ACEOF
1159 TI IPC configure 3.0.0
1160 generated by GNU Autoconf 2.59
1162 Copyright (C) 2003 Free Software Foundation, Inc.
1163 This configure script is free software; the Free Software Foundation
1164 gives unlimited permission to copy, distribute and modify it.
1165 _ACEOF
1166 exit 0
1167 fi
1168 exec 5>config.log
1169 cat >&5 <<_ACEOF
1170 This file contains any messages produced by compilers while
1171 running configure, to aid debugging if configure makes a mistake.
1173 It was created by TI IPC $as_me 3.0.0, which was
1174 generated by GNU Autoconf 2.59. Invocation command line was
1176 $ $0 $@
1178 _ACEOF
1179 {
1180 cat <<_ASUNAME
1181 ## --------- ##
1182 ## Platform. ##
1183 ## --------- ##
1185 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1186 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1187 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1188 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1189 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1191 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1192 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1194 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1195 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1196 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1197 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1198 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1199 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1200 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1202 _ASUNAME
1204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1205 for as_dir in $PATH
1206 do
1207 IFS=$as_save_IFS
1208 test -z "$as_dir" && as_dir=.
1209 echo "PATH: $as_dir"
1210 done
1212 } >&5
1214 cat >&5 <<_ACEOF
1217 ## ----------- ##
1218 ## Core tests. ##
1219 ## ----------- ##
1221 _ACEOF
1224 # Keep a trace of the command line.
1225 # Strip out --no-create and --no-recursion so they do not pile up.
1226 # Strip out --silent because we don't want to record it for future runs.
1227 # Also quote any args containing shell meta-characters.
1228 # Make two passes to allow for proper duplicate-argument suppression.
1229 ac_configure_args=
1230 ac_configure_args0=
1231 ac_configure_args1=
1232 ac_sep=
1233 ac_must_keep_next=false
1234 for ac_pass in 1 2
1235 do
1236 for ac_arg
1237 do
1238 case $ac_arg in
1239 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1240 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1241 | -silent | --silent | --silen | --sile | --sil)
1242 continue ;;
1243 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1244 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1245 esac
1246 case $ac_pass in
1247 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1248 2)
1249 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1250 if test $ac_must_keep_next = true; then
1251 ac_must_keep_next=false # Got value, back to normal.
1252 else
1253 case $ac_arg in
1254 *=* | --config-cache | -C | -disable-* | --disable-* \
1255 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1256 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1257 | -with-* | --with-* | -without-* | --without-* | --x)
1258 case "$ac_configure_args0 " in
1259 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1260 esac
1261 ;;
1262 -* ) ac_must_keep_next=true ;;
1263 esac
1264 fi
1265 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1266 # Get rid of the leading space.
1267 ac_sep=" "
1268 ;;
1269 esac
1270 done
1271 done
1272 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1273 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1275 # When interrupted or exit'd, cleanup temporary files, and complete
1276 # config.log. We remove comments because anyway the quotes in there
1277 # would cause problems or look ugly.
1278 # WARNING: Be sure not to use single quotes in there, as some shells,
1279 # such as our DU 5.0 friend, will then `close' the trap.
1280 trap 'exit_status=$?
1281 # Save into config.log some information that might help in debugging.
1282 {
1283 echo
1285 cat <<\_ASBOX
1286 ## ---------------- ##
1287 ## Cache variables. ##
1288 ## ---------------- ##
1289 _ASBOX
1290 echo
1291 # The following way of writing the cache mishandles newlines in values,
1292 {
1293 (set) 2>&1 |
1294 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1295 *ac_space=\ *)
1296 sed -n \
1297 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1298 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1299 ;;
1300 *)
1301 sed -n \
1302 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1303 ;;
1304 esac;
1305 }
1306 echo
1308 cat <<\_ASBOX
1309 ## ----------------- ##
1310 ## Output variables. ##
1311 ## ----------------- ##
1312 _ASBOX
1313 echo
1314 for ac_var in $ac_subst_vars
1315 do
1316 eval ac_val=$`echo $ac_var`
1317 echo "$ac_var='"'"'$ac_val'"'"'"
1318 done | sort
1319 echo
1321 if test -n "$ac_subst_files"; then
1322 cat <<\_ASBOX
1323 ## ------------- ##
1324 ## Output files. ##
1325 ## ------------- ##
1326 _ASBOX
1327 echo
1328 for ac_var in $ac_subst_files
1329 do
1330 eval ac_val=$`echo $ac_var`
1331 echo "$ac_var='"'"'$ac_val'"'"'"
1332 done | sort
1333 echo
1334 fi
1336 if test -s confdefs.h; then
1337 cat <<\_ASBOX
1338 ## ----------- ##
1339 ## confdefs.h. ##
1340 ## ----------- ##
1341 _ASBOX
1342 echo
1343 sed "/^$/d" confdefs.h | sort
1344 echo
1345 fi
1346 test "$ac_signal" != 0 &&
1347 echo "$as_me: caught signal $ac_signal"
1348 echo "$as_me: exit $exit_status"
1349 } >&5
1350 rm -f core *.core &&
1351 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1352 exit $exit_status
1353 ' 0
1354 for ac_signal in 1 2 13 15; do
1355 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1356 done
1357 ac_signal=0
1359 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1360 rm -rf conftest* confdefs.h
1361 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1362 echo >confdefs.h
1364 # Predefined preprocessor variables.
1366 cat >>confdefs.h <<_ACEOF
1367 #define PACKAGE_NAME "$PACKAGE_NAME"
1368 _ACEOF
1371 cat >>confdefs.h <<_ACEOF
1372 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1373 _ACEOF
1376 cat >>confdefs.h <<_ACEOF
1377 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1378 _ACEOF
1381 cat >>confdefs.h <<_ACEOF
1382 #define PACKAGE_STRING "$PACKAGE_STRING"
1383 _ACEOF
1386 cat >>confdefs.h <<_ACEOF
1387 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1388 _ACEOF
1391 # Let the site file select an alternate cache file if it wants to.
1392 # Prefer explicitly selected file to automatically selected ones.
1393 if test -z "$CONFIG_SITE"; then
1394 if test "x$prefix" != xNONE; then
1395 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1396 else
1397 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1398 fi
1399 fi
1400 for ac_site_file in $CONFIG_SITE; do
1401 if test -r "$ac_site_file"; then
1402 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1403 echo "$as_me: loading site script $ac_site_file" >&6;}
1404 sed 's/^/| /' "$ac_site_file" >&5
1405 . "$ac_site_file"
1406 fi
1407 done
1409 if test -r "$cache_file"; then
1410 # Some versions of bash will fail to source /dev/null (special
1411 # files actually), so we avoid doing that.
1412 if test -f "$cache_file"; then
1413 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1414 echo "$as_me: loading cache $cache_file" >&6;}
1415 case $cache_file in
1416 [\\/]* | ?:[\\/]* ) . $cache_file;;
1417 *) . ./$cache_file;;
1418 esac
1419 fi
1420 else
1421 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1422 echo "$as_me: creating cache $cache_file" >&6;}
1423 >$cache_file
1424 fi
1426 # Check that the precious variables saved in the cache have kept the same
1427 # value.
1428 ac_cache_corrupted=false
1429 for ac_var in `(set) 2>&1 |
1430 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1431 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1432 eval ac_new_set=\$ac_env_${ac_var}_set
1433 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1434 eval ac_new_val="\$ac_env_${ac_var}_value"
1435 case $ac_old_set,$ac_new_set in
1436 set,)
1437 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1438 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1439 ac_cache_corrupted=: ;;
1440 ,set)
1441 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1442 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1443 ac_cache_corrupted=: ;;
1444 ,);;
1445 *)
1446 if test "x$ac_old_val" != "x$ac_new_val"; then
1447 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1448 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1449 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1450 echo "$as_me: former value: $ac_old_val" >&2;}
1451 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1452 echo "$as_me: current value: $ac_new_val" >&2;}
1453 ac_cache_corrupted=:
1454 fi;;
1455 esac
1456 # Pass precious variables to config.status.
1457 if test "$ac_new_set" = set; then
1458 case $ac_new_val in
1459 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1460 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1461 *) ac_arg=$ac_var=$ac_new_val ;;
1462 esac
1463 case " $ac_configure_args " in
1464 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1465 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1466 esac
1467 fi
1468 done
1469 if $ac_cache_corrupted; then
1470 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1471 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1472 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1473 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1474 { (exit 1); exit 1; }; }
1475 fi
1477 ac_ext=c
1478 ac_cpp='$CPP $CPPFLAGS'
1479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1510 # Initilize automake
1511 am__api_version="1.9"
1512 ac_aux_dir=
1513 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1514 if test -f $ac_dir/install-sh; then
1515 ac_aux_dir=$ac_dir
1516 ac_install_sh="$ac_aux_dir/install-sh -c"
1517 break
1518 elif test -f $ac_dir/install.sh; then
1519 ac_aux_dir=$ac_dir
1520 ac_install_sh="$ac_aux_dir/install.sh -c"
1521 break
1522 elif test -f $ac_dir/shtool; then
1523 ac_aux_dir=$ac_dir
1524 ac_install_sh="$ac_aux_dir/shtool install -c"
1525 break
1526 fi
1527 done
1528 if test -z "$ac_aux_dir"; then
1529 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1530 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1531 { (exit 1); exit 1; }; }
1532 fi
1533 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1534 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1535 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1537 # Find a good install program. We prefer a C program (faster),
1538 # so one script is as good as another. But avoid the broken or
1539 # incompatible versions:
1540 # SysV /etc/install, /usr/sbin/install
1541 # SunOS /usr/etc/install
1542 # IRIX /sbin/install
1543 # AIX /bin/install
1544 # AmigaOS /C/install, which installs bootblocks on floppy discs
1545 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1546 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1547 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1548 # OS/2's system install, which has a completely different semantic
1549 # ./install, which can be erroneously created by make from ./install.sh.
1550 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1551 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1552 if test -z "$INSTALL"; then
1553 if test "${ac_cv_path_install+set}" = set; then
1554 echo $ECHO_N "(cached) $ECHO_C" >&6
1555 else
1556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1557 for as_dir in $PATH
1558 do
1559 IFS=$as_save_IFS
1560 test -z "$as_dir" && as_dir=.
1561 # Account for people who put trailing slashes in PATH elements.
1562 case $as_dir/ in
1563 ./ | .// | /cC/* | \
1564 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1565 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1566 /usr/ucb/* ) ;;
1567 *)
1568 # OSF1 and SCO ODT 3.0 have their own names for install.
1569 # Don't use installbsd from OSF since it installs stuff as root
1570 # by default.
1571 for ac_prog in ginstall scoinst install; do
1572 for ac_exec_ext in '' $ac_executable_extensions; do
1573 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1574 if test $ac_prog = install &&
1575 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1576 # AIX install. It has an incompatible calling convention.
1577 :
1578 elif test $ac_prog = install &&
1579 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1580 # program-specific install script used by HP pwplus--don't use.
1581 :
1582 else
1583 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1584 break 3
1585 fi
1586 fi
1587 done
1588 done
1589 ;;
1590 esac
1591 done
1594 fi
1595 if test "${ac_cv_path_install+set}" = set; then
1596 INSTALL=$ac_cv_path_install
1597 else
1598 # As a last resort, use the slow shell script. We don't cache a
1599 # path for INSTALL within a source directory, because that will
1600 # break other packages using the cache if that directory is
1601 # removed, or if the path is relative.
1602 INSTALL=$ac_install_sh
1603 fi
1604 fi
1605 echo "$as_me:$LINENO: result: $INSTALL" >&5
1606 echo "${ECHO_T}$INSTALL" >&6
1608 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1609 # It thinks the first close brace ends the variable substitution.
1610 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1612 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1614 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1616 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1617 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1618 # Just in case
1619 sleep 1
1620 echo timestamp > conftest.file
1621 # Do `set' in a subshell so we don't clobber the current shell's
1622 # arguments. Must try -L first in case configure is actually a
1623 # symlink; some systems play weird games with the mod time of symlinks
1624 # (eg FreeBSD returns the mod time of the symlink's containing
1625 # directory).
1626 if (
1627 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1628 if test "$*" = "X"; then
1629 # -L didn't work.
1630 set X `ls -t $srcdir/configure conftest.file`
1631 fi
1632 rm -f conftest.file
1633 if test "$*" != "X $srcdir/configure conftest.file" \
1634 && test "$*" != "X conftest.file $srcdir/configure"; then
1636 # If neither matched, then we have a broken ls. This can happen
1637 # if, for instance, CONFIG_SHELL is bash and it inherits a
1638 # broken ls alias from the environment. This has actually
1639 # happened. Such a system could not be considered "sane".
1640 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1641 alias in your environment" >&5
1642 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1643 alias in your environment" >&2;}
1644 { (exit 1); exit 1; }; }
1645 fi
1647 test "$2" = conftest.file
1648 )
1649 then
1650 # Ok.
1651 :
1652 else
1653 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1654 Check your system clock" >&5
1655 echo "$as_me: error: newly created file is older than distributed files!
1656 Check your system clock" >&2;}
1657 { (exit 1); exit 1; }; }
1658 fi
1659 echo "$as_me:$LINENO: result: yes" >&5
1660 echo "${ECHO_T}yes" >&6
1661 test "$program_prefix" != NONE &&
1662 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1663 # Use a double $ so make ignores it.
1664 test "$program_suffix" != NONE &&
1665 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1666 # Double any \ or $. echo might interpret backslashes.
1667 # By default was `s,x,x', remove it if useless.
1668 cat <<\_ACEOF >conftest.sed
1669 s/[\\$]/&&/g;s/;s,x,x,$//
1670 _ACEOF
1671 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1672 rm conftest.sed
1674 # expand $ac_aux_dir to an absolute path
1675 am_aux_dir=`cd $ac_aux_dir && pwd`
1677 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1678 # Use eval to expand $SHELL
1679 if eval "$MISSING --run true"; then
1680 am_missing_run="$MISSING --run "
1681 else
1682 am_missing_run=
1683 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1684 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1685 fi
1687 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1688 # We used to keeping the `.' as first argument, in order to
1689 # allow $(mkdir_p) to be used without argument. As in
1690 # $(mkdir_p) $(somedir)
1691 # where $(somedir) is conditionally defined. However this is wrong
1692 # for two reasons:
1693 # 1. if the package is installed by a user who cannot write `.'
1694 # make install will fail,
1695 # 2. the above comment should most certainly read
1696 # $(mkdir_p) $(DESTDIR)$(somedir)
1697 # so it does not work when $(somedir) is undefined and
1698 # $(DESTDIR) is not.
1699 # To support the latter case, we have to write
1700 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1701 # so the `.' trick is pointless.
1702 mkdir_p='mkdir -p --'
1703 else
1704 # On NextStep and OpenStep, the `mkdir' command does not
1705 # recognize any option. It will interpret all options as
1706 # directories to create, and then abort because `.' already
1707 # exists.
1708 for d in ./-p ./--version;
1709 do
1710 test -d $d && rmdir $d
1711 done
1712 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1713 if test -f "$ac_aux_dir/mkinstalldirs"; then
1714 mkdir_p='$(mkinstalldirs)'
1715 else
1716 mkdir_p='$(install_sh) -d'
1717 fi
1718 fi
1720 for ac_prog in gawk mawk nawk awk
1721 do
1722 # Extract the first word of "$ac_prog", so it can be a program name with args.
1723 set dummy $ac_prog; ac_word=$2
1724 echo "$as_me:$LINENO: checking for $ac_word" >&5
1725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1726 if test "${ac_cv_prog_AWK+set}" = set; then
1727 echo $ECHO_N "(cached) $ECHO_C" >&6
1728 else
1729 if test -n "$AWK"; then
1730 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1731 else
1732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1733 for as_dir in $PATH
1734 do
1735 IFS=$as_save_IFS
1736 test -z "$as_dir" && as_dir=.
1737 for ac_exec_ext in '' $ac_executable_extensions; do
1738 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1739 ac_cv_prog_AWK="$ac_prog"
1740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1741 break 2
1742 fi
1743 done
1744 done
1746 fi
1747 fi
1748 AWK=$ac_cv_prog_AWK
1749 if test -n "$AWK"; then
1750 echo "$as_me:$LINENO: result: $AWK" >&5
1751 echo "${ECHO_T}$AWK" >&6
1752 else
1753 echo "$as_me:$LINENO: result: no" >&5
1754 echo "${ECHO_T}no" >&6
1755 fi
1757 test -n "$AWK" && break
1758 done
1760 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1761 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1762 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1763 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1764 echo $ECHO_N "(cached) $ECHO_C" >&6
1765 else
1766 cat >conftest.make <<\_ACEOF
1767 all:
1768 @echo 'ac_maketemp="$(MAKE)"'
1769 _ACEOF
1770 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1771 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1772 if test -n "$ac_maketemp"; then
1773 eval ac_cv_prog_make_${ac_make}_set=yes
1774 else
1775 eval ac_cv_prog_make_${ac_make}_set=no
1776 fi
1777 rm -f conftest.make
1778 fi
1779 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1780 echo "$as_me:$LINENO: result: yes" >&5
1781 echo "${ECHO_T}yes" >&6
1782 SET_MAKE=
1783 else
1784 echo "$as_me:$LINENO: result: no" >&5
1785 echo "${ECHO_T}no" >&6
1786 SET_MAKE="MAKE=${MAKE-make}"
1787 fi
1789 rm -rf .tst 2>/dev/null
1790 mkdir .tst 2>/dev/null
1791 if test -d .tst; then
1792 am__leading_dot=.
1793 else
1794 am__leading_dot=_
1795 fi
1796 rmdir .tst 2>/dev/null
1798 # test to see if srcdir already configured
1799 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1800 test -f $srcdir/config.status; then
1801 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1802 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1803 { (exit 1); exit 1; }; }
1804 fi
1806 # test whether we have cygpath
1807 if test -z "$CYGPATH_W"; then
1808 if (cygpath --version) >/dev/null 2>/dev/null; then
1809 CYGPATH_W='cygpath -w'
1810 else
1811 CYGPATH_W=echo
1812 fi
1813 fi
1816 # Define the identity of the package.
1817 PACKAGE='ti-ipc'
1818 VERSION='3.0.0'
1821 cat >>confdefs.h <<_ACEOF
1822 #define PACKAGE "$PACKAGE"
1823 _ACEOF
1826 cat >>confdefs.h <<_ACEOF
1827 #define VERSION "$VERSION"
1828 _ACEOF
1830 # Some tools Automake needs.
1832 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1835 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1838 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1841 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1844 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1846 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1848 # Installed binaries are usually stripped using `strip' when the user
1849 # run `make install-strip'. However `strip' might not be the right
1850 # tool to use in cross-compilation environments, therefore Automake
1851 # will honor the `STRIP' environment variable to overrule this program.
1852 if test "$cross_compiling" != no; then
1853 if test -n "$ac_tool_prefix"; then
1854 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1855 set dummy ${ac_tool_prefix}strip; ac_word=$2
1856 echo "$as_me:$LINENO: checking for $ac_word" >&5
1857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1858 if test "${ac_cv_prog_STRIP+set}" = set; then
1859 echo $ECHO_N "(cached) $ECHO_C" >&6
1860 else
1861 if test -n "$STRIP"; then
1862 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1863 else
1864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1865 for as_dir in $PATH
1866 do
1867 IFS=$as_save_IFS
1868 test -z "$as_dir" && as_dir=.
1869 for ac_exec_ext in '' $ac_executable_extensions; do
1870 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1871 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1873 break 2
1874 fi
1875 done
1876 done
1878 fi
1879 fi
1880 STRIP=$ac_cv_prog_STRIP
1881 if test -n "$STRIP"; then
1882 echo "$as_me:$LINENO: result: $STRIP" >&5
1883 echo "${ECHO_T}$STRIP" >&6
1884 else
1885 echo "$as_me:$LINENO: result: no" >&5
1886 echo "${ECHO_T}no" >&6
1887 fi
1889 fi
1890 if test -z "$ac_cv_prog_STRIP"; then
1891 ac_ct_STRIP=$STRIP
1892 # Extract the first word of "strip", so it can be a program name with args.
1893 set dummy strip; ac_word=$2
1894 echo "$as_me:$LINENO: checking for $ac_word" >&5
1895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1896 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1897 echo $ECHO_N "(cached) $ECHO_C" >&6
1898 else
1899 if test -n "$ac_ct_STRIP"; then
1900 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1901 else
1902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1903 for as_dir in $PATH
1904 do
1905 IFS=$as_save_IFS
1906 test -z "$as_dir" && as_dir=.
1907 for ac_exec_ext in '' $ac_executable_extensions; do
1908 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1909 ac_cv_prog_ac_ct_STRIP="strip"
1910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1911 break 2
1912 fi
1913 done
1914 done
1916 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1917 fi
1918 fi
1919 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1920 if test -n "$ac_ct_STRIP"; then
1921 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1922 echo "${ECHO_T}$ac_ct_STRIP" >&6
1923 else
1924 echo "$as_me:$LINENO: result: no" >&5
1925 echo "${ECHO_T}no" >&6
1926 fi
1928 STRIP=$ac_ct_STRIP
1929 else
1930 STRIP="$ac_cv_prog_STRIP"
1931 fi
1933 fi
1934 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1936 # We need awk for the "check" target. The system "awk" is bad on
1937 # some platforms.
1938 # Always define AMTAR for backward compatibility.
1940 AMTAR=${AMTAR-"${am_missing_run}tar"}
1942 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1949 # Initalize libtool but disable fortran check
1950 # Check whether --enable-shared or --disable-shared was given.
1951 if test "${enable_shared+set}" = set; then
1952 enableval="$enable_shared"
1953 p=${PACKAGE-default}
1954 case $enableval in
1955 yes) enable_shared=yes ;;
1956 no) enable_shared=no ;;
1957 *)
1958 enable_shared=no
1959 # Look at the argument we got. We use all the common list separators.
1960 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1961 for pkg in $enableval; do
1962 IFS="$lt_save_ifs"
1963 if test "X$pkg" = "X$p"; then
1964 enable_shared=yes
1965 fi
1966 done
1967 IFS="$lt_save_ifs"
1968 ;;
1969 esac
1970 else
1971 enable_shared=yes
1972 fi;
1974 # Check whether --enable-static or --disable-static was given.
1975 if test "${enable_static+set}" = set; then
1976 enableval="$enable_static"
1977 p=${PACKAGE-default}
1978 case $enableval in
1979 yes) enable_static=yes ;;
1980 no) enable_static=no ;;
1981 *)
1982 enable_static=no
1983 # Look at the argument we got. We use all the common list separators.
1984 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1985 for pkg in $enableval; do
1986 IFS="$lt_save_ifs"
1987 if test "X$pkg" = "X$p"; then
1988 enable_static=yes
1989 fi
1990 done
1991 IFS="$lt_save_ifs"
1992 ;;
1993 esac
1994 else
1995 enable_static=yes
1996 fi;
1998 # Check whether --enable-fast-install or --disable-fast-install was given.
1999 if test "${enable_fast_install+set}" = set; then
2000 enableval="$enable_fast_install"
2001 p=${PACKAGE-default}
2002 case $enableval in
2003 yes) enable_fast_install=yes ;;
2004 no) enable_fast_install=no ;;
2005 *)
2006 enable_fast_install=no
2007 # Look at the argument we got. We use all the common list separators.
2008 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2009 for pkg in $enableval; do
2010 IFS="$lt_save_ifs"
2011 if test "X$pkg" = "X$p"; then
2012 enable_fast_install=yes
2013 fi
2014 done
2015 IFS="$lt_save_ifs"
2016 ;;
2017 esac
2018 else
2019 enable_fast_install=yes
2020 fi;
2022 # Make sure we can run config.sub.
2023 $ac_config_sub sun4 >/dev/null 2>&1 ||
2024 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2025 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2026 { (exit 1); exit 1; }; }
2028 echo "$as_me:$LINENO: checking build system type" >&5
2029 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2030 if test "${ac_cv_build+set}" = set; then
2031 echo $ECHO_N "(cached) $ECHO_C" >&6
2032 else
2033 ac_cv_build_alias=$build_alias
2034 test -z "$ac_cv_build_alias" &&
2035 ac_cv_build_alias=`$ac_config_guess`
2036 test -z "$ac_cv_build_alias" &&
2037 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2038 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2039 { (exit 1); exit 1; }; }
2040 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2041 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2042 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2043 { (exit 1); exit 1; }; }
2045 fi
2046 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2047 echo "${ECHO_T}$ac_cv_build" >&6
2048 build=$ac_cv_build
2049 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2050 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2051 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2054 echo "$as_me:$LINENO: checking host system type" >&5
2055 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2056 if test "${ac_cv_host+set}" = set; then
2057 echo $ECHO_N "(cached) $ECHO_C" >&6
2058 else
2059 ac_cv_host_alias=$host_alias
2060 test -z "$ac_cv_host_alias" &&
2061 ac_cv_host_alias=$ac_cv_build_alias
2062 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2063 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2064 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2065 { (exit 1); exit 1; }; }
2067 fi
2068 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2069 echo "${ECHO_T}$ac_cv_host" >&6
2070 host=$ac_cv_host
2071 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2072 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2073 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2076 DEPDIR="${am__leading_dot}deps"
2078 ac_config_commands="$ac_config_commands depfiles"
2081 am_make=${MAKE-make}
2082 cat > confinc << 'END'
2083 am__doit:
2084 @echo done
2085 .PHONY: am__doit
2086 END
2087 # If we don't find an include directive, just comment out the code.
2088 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2089 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2090 am__include="#"
2091 am__quote=
2092 _am_result=none
2093 # First try GNU make style include.
2094 echo "include confinc" > confmf
2095 # We grep out `Entering directory' and `Leaving directory'
2096 # messages which can occur if `w' ends up in MAKEFLAGS.
2097 # In particular we don't look at `^make:' because GNU make might
2098 # be invoked under some other name (usually "gmake"), in which
2099 # case it prints its new name instead of `make'.
2100 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2101 am__include=include
2102 am__quote=
2103 _am_result=GNU
2104 fi
2105 # Now try BSD make style include.
2106 if test "$am__include" = "#"; then
2107 echo '.include "confinc"' > confmf
2108 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2109 am__include=.include
2110 am__quote="\""
2111 _am_result=BSD
2112 fi
2113 fi
2116 echo "$as_me:$LINENO: result: $_am_result" >&5
2117 echo "${ECHO_T}$_am_result" >&6
2118 rm -f confinc confmf
2120 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2121 if test "${enable_dependency_tracking+set}" = set; then
2122 enableval="$enable_dependency_tracking"
2124 fi;
2125 if test "x$enable_dependency_tracking" != xno; then
2126 am_depcomp="$ac_aux_dir/depcomp"
2127 AMDEPBACKSLASH='\'
2128 fi
2131 if test "x$enable_dependency_tracking" != xno; then
2132 AMDEP_TRUE=
2133 AMDEP_FALSE='#'
2134 else
2135 AMDEP_TRUE='#'
2136 AMDEP_FALSE=
2137 fi
2141 ac_ext=c
2142 ac_cpp='$CPP $CPPFLAGS'
2143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2146 if test -n "$ac_tool_prefix"; then
2147 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2148 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2149 echo "$as_me:$LINENO: checking for $ac_word" >&5
2150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2151 if test "${ac_cv_prog_CC+set}" = set; then
2152 echo $ECHO_N "(cached) $ECHO_C" >&6
2153 else
2154 if test -n "$CC"; then
2155 ac_cv_prog_CC="$CC" # Let the user override the test.
2156 else
2157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2158 for as_dir in $PATH
2159 do
2160 IFS=$as_save_IFS
2161 test -z "$as_dir" && as_dir=.
2162 for ac_exec_ext in '' $ac_executable_extensions; do
2163 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2164 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2166 break 2
2167 fi
2168 done
2169 done
2171 fi
2172 fi
2173 CC=$ac_cv_prog_CC
2174 if test -n "$CC"; then
2175 echo "$as_me:$LINENO: result: $CC" >&5
2176 echo "${ECHO_T}$CC" >&6
2177 else
2178 echo "$as_me:$LINENO: result: no" >&5
2179 echo "${ECHO_T}no" >&6
2180 fi
2182 fi
2183 if test -z "$ac_cv_prog_CC"; then
2184 ac_ct_CC=$CC
2185 # Extract the first word of "gcc", so it can be a program name with args.
2186 set dummy gcc; ac_word=$2
2187 echo "$as_me:$LINENO: checking for $ac_word" >&5
2188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2189 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2190 echo $ECHO_N "(cached) $ECHO_C" >&6
2191 else
2192 if test -n "$ac_ct_CC"; then
2193 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2194 else
2195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2196 for as_dir in $PATH
2197 do
2198 IFS=$as_save_IFS
2199 test -z "$as_dir" && as_dir=.
2200 for ac_exec_ext in '' $ac_executable_extensions; do
2201 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2202 ac_cv_prog_ac_ct_CC="gcc"
2203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2204 break 2
2205 fi
2206 done
2207 done
2209 fi
2210 fi
2211 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2212 if test -n "$ac_ct_CC"; then
2213 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2214 echo "${ECHO_T}$ac_ct_CC" >&6
2215 else
2216 echo "$as_me:$LINENO: result: no" >&5
2217 echo "${ECHO_T}no" >&6
2218 fi
2220 CC=$ac_ct_CC
2221 else
2222 CC="$ac_cv_prog_CC"
2223 fi
2225 if test -z "$CC"; then
2226 if test -n "$ac_tool_prefix"; then
2227 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2228 set dummy ${ac_tool_prefix}cc; ac_word=$2
2229 echo "$as_me:$LINENO: checking for $ac_word" >&5
2230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2231 if test "${ac_cv_prog_CC+set}" = set; then
2232 echo $ECHO_N "(cached) $ECHO_C" >&6
2233 else
2234 if test -n "$CC"; then
2235 ac_cv_prog_CC="$CC" # Let the user override the test.
2236 else
2237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2238 for as_dir in $PATH
2239 do
2240 IFS=$as_save_IFS
2241 test -z "$as_dir" && as_dir=.
2242 for ac_exec_ext in '' $ac_executable_extensions; do
2243 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2244 ac_cv_prog_CC="${ac_tool_prefix}cc"
2245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2246 break 2
2247 fi
2248 done
2249 done
2251 fi
2252 fi
2253 CC=$ac_cv_prog_CC
2254 if test -n "$CC"; then
2255 echo "$as_me:$LINENO: result: $CC" >&5
2256 echo "${ECHO_T}$CC" >&6
2257 else
2258 echo "$as_me:$LINENO: result: no" >&5
2259 echo "${ECHO_T}no" >&6
2260 fi
2262 fi
2263 if test -z "$ac_cv_prog_CC"; then
2264 ac_ct_CC=$CC
2265 # Extract the first word of "cc", so it can be a program name with args.
2266 set dummy cc; ac_word=$2
2267 echo "$as_me:$LINENO: checking for $ac_word" >&5
2268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2269 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2270 echo $ECHO_N "(cached) $ECHO_C" >&6
2271 else
2272 if test -n "$ac_ct_CC"; then
2273 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2274 else
2275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2276 for as_dir in $PATH
2277 do
2278 IFS=$as_save_IFS
2279 test -z "$as_dir" && as_dir=.
2280 for ac_exec_ext in '' $ac_executable_extensions; do
2281 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2282 ac_cv_prog_ac_ct_CC="cc"
2283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2284 break 2
2285 fi
2286 done
2287 done
2289 fi
2290 fi
2291 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2292 if test -n "$ac_ct_CC"; then
2293 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2294 echo "${ECHO_T}$ac_ct_CC" >&6
2295 else
2296 echo "$as_me:$LINENO: result: no" >&5
2297 echo "${ECHO_T}no" >&6
2298 fi
2300 CC=$ac_ct_CC
2301 else
2302 CC="$ac_cv_prog_CC"
2303 fi
2305 fi
2306 if test -z "$CC"; then
2307 # Extract the first word of "cc", so it can be a program name with args.
2308 set dummy cc; ac_word=$2
2309 echo "$as_me:$LINENO: checking for $ac_word" >&5
2310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2311 if test "${ac_cv_prog_CC+set}" = set; then
2312 echo $ECHO_N "(cached) $ECHO_C" >&6
2313 else
2314 if test -n "$CC"; then
2315 ac_cv_prog_CC="$CC" # Let the user override the test.
2316 else
2317 ac_prog_rejected=no
2318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2319 for as_dir in $PATH
2320 do
2321 IFS=$as_save_IFS
2322 test -z "$as_dir" && as_dir=.
2323 for ac_exec_ext in '' $ac_executable_extensions; do
2324 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2325 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2326 ac_prog_rejected=yes
2327 continue
2328 fi
2329 ac_cv_prog_CC="cc"
2330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2331 break 2
2332 fi
2333 done
2334 done
2336 if test $ac_prog_rejected = yes; then
2337 # We found a bogon in the path, so make sure we never use it.
2338 set dummy $ac_cv_prog_CC
2339 shift
2340 if test $# != 0; then
2341 # We chose a different compiler from the bogus one.
2342 # However, it has the same basename, so the bogon will be chosen
2343 # first if we set CC to just the basename; use the full file name.
2344 shift
2345 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2346 fi
2347 fi
2348 fi
2349 fi
2350 CC=$ac_cv_prog_CC
2351 if test -n "$CC"; then
2352 echo "$as_me:$LINENO: result: $CC" >&5
2353 echo "${ECHO_T}$CC" >&6
2354 else
2355 echo "$as_me:$LINENO: result: no" >&5
2356 echo "${ECHO_T}no" >&6
2357 fi
2359 fi
2360 if test -z "$CC"; then
2361 if test -n "$ac_tool_prefix"; then
2362 for ac_prog in cl
2363 do
2364 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2365 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2366 echo "$as_me:$LINENO: checking for $ac_word" >&5
2367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2368 if test "${ac_cv_prog_CC+set}" = set; then
2369 echo $ECHO_N "(cached) $ECHO_C" >&6
2370 else
2371 if test -n "$CC"; then
2372 ac_cv_prog_CC="$CC" # Let the user override the test.
2373 else
2374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2375 for as_dir in $PATH
2376 do
2377 IFS=$as_save_IFS
2378 test -z "$as_dir" && as_dir=.
2379 for ac_exec_ext in '' $ac_executable_extensions; do
2380 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2381 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2383 break 2
2384 fi
2385 done
2386 done
2388 fi
2389 fi
2390 CC=$ac_cv_prog_CC
2391 if test -n "$CC"; then
2392 echo "$as_me:$LINENO: result: $CC" >&5
2393 echo "${ECHO_T}$CC" >&6
2394 else
2395 echo "$as_me:$LINENO: result: no" >&5
2396 echo "${ECHO_T}no" >&6
2397 fi
2399 test -n "$CC" && break
2400 done
2401 fi
2402 if test -z "$CC"; then
2403 ac_ct_CC=$CC
2404 for ac_prog in cl
2405 do
2406 # Extract the first word of "$ac_prog", so it can be a program name with args.
2407 set dummy $ac_prog; ac_word=$2
2408 echo "$as_me:$LINENO: checking for $ac_word" >&5
2409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2410 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2411 echo $ECHO_N "(cached) $ECHO_C" >&6
2412 else
2413 if test -n "$ac_ct_CC"; then
2414 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2415 else
2416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2417 for as_dir in $PATH
2418 do
2419 IFS=$as_save_IFS
2420 test -z "$as_dir" && as_dir=.
2421 for ac_exec_ext in '' $ac_executable_extensions; do
2422 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2423 ac_cv_prog_ac_ct_CC="$ac_prog"
2424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2425 break 2
2426 fi
2427 done
2428 done
2430 fi
2431 fi
2432 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2433 if test -n "$ac_ct_CC"; then
2434 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2435 echo "${ECHO_T}$ac_ct_CC" >&6
2436 else
2437 echo "$as_me:$LINENO: result: no" >&5
2438 echo "${ECHO_T}no" >&6
2439 fi
2441 test -n "$ac_ct_CC" && break
2442 done
2444 CC=$ac_ct_CC
2445 fi
2447 fi
2450 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2451 See \`config.log' for more details." >&5
2452 echo "$as_me: error: no acceptable C compiler found in \$PATH
2453 See \`config.log' for more details." >&2;}
2454 { (exit 1); exit 1; }; }
2456 # Provide some information about the compiler.
2457 echo "$as_me:$LINENO:" \
2458 "checking for C compiler version" >&5
2459 ac_compiler=`set X $ac_compile; echo $2`
2460 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2461 (eval $ac_compiler --version </dev/null >&5) 2>&5
2462 ac_status=$?
2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464 (exit $ac_status); }
2465 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2466 (eval $ac_compiler -v </dev/null >&5) 2>&5
2467 ac_status=$?
2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469 (exit $ac_status); }
2470 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2471 (eval $ac_compiler -V </dev/null >&5) 2>&5
2472 ac_status=$?
2473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474 (exit $ac_status); }
2476 cat >conftest.$ac_ext <<_ACEOF
2477 /* confdefs.h. */
2478 _ACEOF
2479 cat confdefs.h >>conftest.$ac_ext
2480 cat >>conftest.$ac_ext <<_ACEOF
2481 /* end confdefs.h. */
2483 int
2484 main ()
2485 {
2487 ;
2488 return 0;
2489 }
2490 _ACEOF
2491 ac_clean_files_save=$ac_clean_files
2492 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2493 # Try to create an executable without -o first, disregard a.out.
2494 # It will help us diagnose broken compilers, and finding out an intuition
2495 # of exeext.
2496 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2497 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2498 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2499 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2500 (eval $ac_link_default) 2>&5
2501 ac_status=$?
2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503 (exit $ac_status); }; then
2504 # Find the output, starting from the most likely. This scheme is
2505 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2506 # resort.
2508 # Be careful to initialize this variable, since it used to be cached.
2509 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2510 ac_cv_exeext=
2511 # b.out is created by i960 compilers.
2512 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2513 do
2514 test -f "$ac_file" || continue
2515 case $ac_file in
2516 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2517 ;;
2518 conftest.$ac_ext )
2519 # This is the source file.
2520 ;;
2521 [ab].out )
2522 # We found the default executable, but exeext='' is most
2523 # certainly right.
2524 break;;
2525 *.* )
2526 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2527 # FIXME: I believe we export ac_cv_exeext for Libtool,
2528 # but it would be cool to find out if it's true. Does anybody
2529 # maintain Libtool? --akim.
2530 export ac_cv_exeext
2531 break;;
2532 * )
2533 break;;
2534 esac
2535 done
2536 else
2537 echo "$as_me: failed program was:" >&5
2538 sed 's/^/| /' conftest.$ac_ext >&5
2540 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2541 See \`config.log' for more details." >&5
2542 echo "$as_me: error: C compiler cannot create executables
2543 See \`config.log' for more details." >&2;}
2544 { (exit 77); exit 77; }; }
2545 fi
2547 ac_exeext=$ac_cv_exeext
2548 echo "$as_me:$LINENO: result: $ac_file" >&5
2549 echo "${ECHO_T}$ac_file" >&6
2551 # Check the compiler produces executables we can run. If not, either
2552 # the compiler is broken, or we cross compile.
2553 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2554 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2555 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2556 # If not cross compiling, check that we can run a simple program.
2557 if test "$cross_compiling" != yes; then
2558 if { ac_try='./$ac_file'
2559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2560 (eval $ac_try) 2>&5
2561 ac_status=$?
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); }; }; then
2564 cross_compiling=no
2565 else
2566 if test "$cross_compiling" = maybe; then
2567 cross_compiling=yes
2568 else
2569 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2570 If you meant to cross compile, use \`--host'.
2571 See \`config.log' for more details." >&5
2572 echo "$as_me: error: cannot run C compiled programs.
2573 If you meant to cross compile, use \`--host'.
2574 See \`config.log' for more details." >&2;}
2575 { (exit 1); exit 1; }; }
2576 fi
2577 fi
2578 fi
2579 echo "$as_me:$LINENO: result: yes" >&5
2580 echo "${ECHO_T}yes" >&6
2582 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2583 ac_clean_files=$ac_clean_files_save
2584 # Check the compiler produces executables we can run. If not, either
2585 # the compiler is broken, or we cross compile.
2586 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2587 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2588 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2589 echo "${ECHO_T}$cross_compiling" >&6
2591 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2592 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2594 (eval $ac_link) 2>&5
2595 ac_status=$?
2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597 (exit $ac_status); }; then
2598 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2599 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2600 # work properly (i.e., refer to `conftest.exe'), while it won't with
2601 # `rm'.
2602 for ac_file in conftest.exe conftest conftest.*; do
2603 test -f "$ac_file" || continue
2604 case $ac_file in
2605 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2606 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2607 export ac_cv_exeext
2608 break;;
2609 * ) break;;
2610 esac
2611 done
2612 else
2613 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2614 See \`config.log' for more details." >&5
2615 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2616 See \`config.log' for more details." >&2;}
2617 { (exit 1); exit 1; }; }
2618 fi
2620 rm -f conftest$ac_cv_exeext
2621 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2622 echo "${ECHO_T}$ac_cv_exeext" >&6
2624 rm -f conftest.$ac_ext
2625 EXEEXT=$ac_cv_exeext
2626 ac_exeext=$EXEEXT
2627 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2628 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2629 if test "${ac_cv_objext+set}" = set; then
2630 echo $ECHO_N "(cached) $ECHO_C" >&6
2631 else
2632 cat >conftest.$ac_ext <<_ACEOF
2633 /* confdefs.h. */
2634 _ACEOF
2635 cat confdefs.h >>conftest.$ac_ext
2636 cat >>conftest.$ac_ext <<_ACEOF
2637 /* end confdefs.h. */
2639 int
2640 main ()
2641 {
2643 ;
2644 return 0;
2645 }
2646 _ACEOF
2647 rm -f conftest.o conftest.obj
2648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2649 (eval $ac_compile) 2>&5
2650 ac_status=$?
2651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652 (exit $ac_status); }; then
2653 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2654 case $ac_file in
2655 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2656 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2657 break;;
2658 esac
2659 done
2660 else
2661 echo "$as_me: failed program was:" >&5
2662 sed 's/^/| /' conftest.$ac_ext >&5
2664 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2665 See \`config.log' for more details." >&5
2666 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2667 See \`config.log' for more details." >&2;}
2668 { (exit 1); exit 1; }; }
2669 fi
2671 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2672 fi
2673 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2674 echo "${ECHO_T}$ac_cv_objext" >&6
2675 OBJEXT=$ac_cv_objext
2676 ac_objext=$OBJEXT
2677 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2678 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2679 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2680 echo $ECHO_N "(cached) $ECHO_C" >&6
2681 else
2682 cat >conftest.$ac_ext <<_ACEOF
2683 /* confdefs.h. */
2684 _ACEOF
2685 cat confdefs.h >>conftest.$ac_ext
2686 cat >>conftest.$ac_ext <<_ACEOF
2687 /* end confdefs.h. */
2689 int
2690 main ()
2691 {
2692 #ifndef __GNUC__
2693 choke me
2694 #endif
2696 ;
2697 return 0;
2698 }
2699 _ACEOF
2700 rm -f conftest.$ac_objext
2701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2702 (eval $ac_compile) 2>conftest.er1
2703 ac_status=$?
2704 grep -v '^ *+' conftest.er1 >conftest.err
2705 rm -f conftest.er1
2706 cat conftest.err >&5
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); } &&
2709 { ac_try='test -z "$ac_c_werror_flag"
2710 || test ! -s conftest.err'
2711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2712 (eval $ac_try) 2>&5
2713 ac_status=$?
2714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715 (exit $ac_status); }; } &&
2716 { ac_try='test -s conftest.$ac_objext'
2717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2718 (eval $ac_try) 2>&5
2719 ac_status=$?
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); }; }; then
2722 ac_compiler_gnu=yes
2723 else
2724 echo "$as_me: failed program was:" >&5
2725 sed 's/^/| /' conftest.$ac_ext >&5
2727 ac_compiler_gnu=no
2728 fi
2729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2730 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2732 fi
2733 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2734 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2735 GCC=`test $ac_compiler_gnu = yes && echo yes`
2736 ac_test_CFLAGS=${CFLAGS+set}
2737 ac_save_CFLAGS=$CFLAGS
2738 CFLAGS="-g"
2739 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2740 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2741 if test "${ac_cv_prog_cc_g+set}" = set; then
2742 echo $ECHO_N "(cached) $ECHO_C" >&6
2743 else
2744 cat >conftest.$ac_ext <<_ACEOF
2745 /* confdefs.h. */
2746 _ACEOF
2747 cat confdefs.h >>conftest.$ac_ext
2748 cat >>conftest.$ac_ext <<_ACEOF
2749 /* end confdefs.h. */
2751 int
2752 main ()
2753 {
2755 ;
2756 return 0;
2757 }
2758 _ACEOF
2759 rm -f conftest.$ac_objext
2760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2761 (eval $ac_compile) 2>conftest.er1
2762 ac_status=$?
2763 grep -v '^ *+' conftest.er1 >conftest.err
2764 rm -f conftest.er1
2765 cat conftest.err >&5
2766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767 (exit $ac_status); } &&
2768 { ac_try='test -z "$ac_c_werror_flag"
2769 || test ! -s conftest.err'
2770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2771 (eval $ac_try) 2>&5
2772 ac_status=$?
2773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774 (exit $ac_status); }; } &&
2775 { ac_try='test -s conftest.$ac_objext'
2776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2777 (eval $ac_try) 2>&5
2778 ac_status=$?
2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780 (exit $ac_status); }; }; then
2781 ac_cv_prog_cc_g=yes
2782 else
2783 echo "$as_me: failed program was:" >&5
2784 sed 's/^/| /' conftest.$ac_ext >&5
2786 ac_cv_prog_cc_g=no
2787 fi
2788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2789 fi
2790 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2791 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2792 if test "$ac_test_CFLAGS" = set; then
2793 CFLAGS=$ac_save_CFLAGS
2794 elif test $ac_cv_prog_cc_g = yes; then
2795 if test "$GCC" = yes; then
2796 CFLAGS="-g -O2"
2797 else
2798 CFLAGS="-g"
2799 fi
2800 else
2801 if test "$GCC" = yes; then
2802 CFLAGS="-O2"
2803 else
2804 CFLAGS=
2805 fi
2806 fi
2807 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2808 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2809 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2810 echo $ECHO_N "(cached) $ECHO_C" >&6
2811 else
2812 ac_cv_prog_cc_stdc=no
2813 ac_save_CC=$CC
2814 cat >conftest.$ac_ext <<_ACEOF
2815 /* confdefs.h. */
2816 _ACEOF
2817 cat confdefs.h >>conftest.$ac_ext
2818 cat >>conftest.$ac_ext <<_ACEOF
2819 /* end confdefs.h. */
2820 #include <stdarg.h>
2821 #include <stdio.h>
2822 #include <sys/types.h>
2823 #include <sys/stat.h>
2824 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2825 struct buf { int x; };
2826 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2827 static char *e (p, i)
2828 char **p;
2829 int i;
2830 {
2831 return p[i];
2832 }
2833 static char *f (char * (*g) (char **, int), char **p, ...)
2834 {
2835 char *s;
2836 va_list v;
2837 va_start (v,p);
2838 s = g (p, va_arg (v,int));
2839 va_end (v);
2840 return s;
2841 }
2843 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2844 function prototypes and stuff, but not '\xHH' hex character constants.
2845 These don't provoke an error unfortunately, instead are silently treated
2846 as 'x'. The following induces an error, until -std1 is added to get
2847 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2848 array size at least. It's necessary to write '\x00'==0 to get something
2849 that's true only with -std1. */
2850 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2852 int test (int i, double x);
2853 struct s1 {int (*f) (int a);};
2854 struct s2 {int (*f) (double a);};
2855 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2856 int argc;
2857 char **argv;
2858 int
2859 main ()
2860 {
2861 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2862 ;
2863 return 0;
2864 }
2865 _ACEOF
2866 # Don't try gcc -ansi; that turns off useful extensions and
2867 # breaks some systems' header files.
2868 # AIX -qlanglvl=ansi
2869 # Ultrix and OSF/1 -std1
2870 # HP-UX 10.20 and later -Ae
2871 # HP-UX older versions -Aa -D_HPUX_SOURCE
2872 # SVR4 -Xc -D__EXTENSIONS__
2873 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2874 do
2875 CC="$ac_save_CC $ac_arg"
2876 rm -f conftest.$ac_objext
2877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2878 (eval $ac_compile) 2>conftest.er1
2879 ac_status=$?
2880 grep -v '^ *+' conftest.er1 >conftest.err
2881 rm -f conftest.er1
2882 cat conftest.err >&5
2883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884 (exit $ac_status); } &&
2885 { ac_try='test -z "$ac_c_werror_flag"
2886 || test ! -s conftest.err'
2887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2888 (eval $ac_try) 2>&5
2889 ac_status=$?
2890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891 (exit $ac_status); }; } &&
2892 { ac_try='test -s conftest.$ac_objext'
2893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2894 (eval $ac_try) 2>&5
2895 ac_status=$?
2896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897 (exit $ac_status); }; }; then
2898 ac_cv_prog_cc_stdc=$ac_arg
2899 break
2900 else
2901 echo "$as_me: failed program was:" >&5
2902 sed 's/^/| /' conftest.$ac_ext >&5
2904 fi
2905 rm -f conftest.err conftest.$ac_objext
2906 done
2907 rm -f conftest.$ac_ext conftest.$ac_objext
2908 CC=$ac_save_CC
2910 fi
2912 case "x$ac_cv_prog_cc_stdc" in
2913 x|xno)
2914 echo "$as_me:$LINENO: result: none needed" >&5
2915 echo "${ECHO_T}none needed" >&6 ;;
2916 *)
2917 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2918 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2919 CC="$CC $ac_cv_prog_cc_stdc" ;;
2920 esac
2922 # Some people use a C++ compiler to compile C. Since we use `exit',
2923 # in C++ we need to declare it. In case someone uses the same compiler
2924 # for both compiling C and C++ we need to have the C++ compiler decide
2925 # the declaration of exit, since it's the most demanding environment.
2926 cat >conftest.$ac_ext <<_ACEOF
2927 #ifndef __cplusplus
2928 choke me
2929 #endif
2930 _ACEOF
2931 rm -f conftest.$ac_objext
2932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2933 (eval $ac_compile) 2>conftest.er1
2934 ac_status=$?
2935 grep -v '^ *+' conftest.er1 >conftest.err
2936 rm -f conftest.er1
2937 cat conftest.err >&5
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); } &&
2940 { ac_try='test -z "$ac_c_werror_flag"
2941 || test ! -s conftest.err'
2942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2943 (eval $ac_try) 2>&5
2944 ac_status=$?
2945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946 (exit $ac_status); }; } &&
2947 { ac_try='test -s conftest.$ac_objext'
2948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2949 (eval $ac_try) 2>&5
2950 ac_status=$?
2951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952 (exit $ac_status); }; }; then
2953 for ac_declaration in \
2954 '' \
2955 'extern "C" void std::exit (int) throw (); using std::exit;' \
2956 'extern "C" void std::exit (int); using std::exit;' \
2957 'extern "C" void exit (int) throw ();' \
2958 'extern "C" void exit (int);' \
2959 'void exit (int);'
2960 do
2961 cat >conftest.$ac_ext <<_ACEOF
2962 /* confdefs.h. */
2963 _ACEOF
2964 cat confdefs.h >>conftest.$ac_ext
2965 cat >>conftest.$ac_ext <<_ACEOF
2966 /* end confdefs.h. */
2967 $ac_declaration
2968 #include <stdlib.h>
2969 int
2970 main ()
2971 {
2972 exit (42);
2973 ;
2974 return 0;
2975 }
2976 _ACEOF
2977 rm -f conftest.$ac_objext
2978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2979 (eval $ac_compile) 2>conftest.er1
2980 ac_status=$?
2981 grep -v '^ *+' conftest.er1 >conftest.err
2982 rm -f conftest.er1
2983 cat conftest.err >&5
2984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985 (exit $ac_status); } &&
2986 { ac_try='test -z "$ac_c_werror_flag"
2987 || test ! -s conftest.err'
2988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2989 (eval $ac_try) 2>&5
2990 ac_status=$?
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); }; } &&
2993 { ac_try='test -s conftest.$ac_objext'
2994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2995 (eval $ac_try) 2>&5
2996 ac_status=$?
2997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998 (exit $ac_status); }; }; then
2999 :
3000 else
3001 echo "$as_me: failed program was:" >&5
3002 sed 's/^/| /' conftest.$ac_ext >&5
3004 continue
3005 fi
3006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3007 cat >conftest.$ac_ext <<_ACEOF
3008 /* confdefs.h. */
3009 _ACEOF
3010 cat confdefs.h >>conftest.$ac_ext
3011 cat >>conftest.$ac_ext <<_ACEOF
3012 /* end confdefs.h. */
3013 $ac_declaration
3014 int
3015 main ()
3016 {
3017 exit (42);
3018 ;
3019 return 0;
3020 }
3021 _ACEOF
3022 rm -f conftest.$ac_objext
3023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3024 (eval $ac_compile) 2>conftest.er1
3025 ac_status=$?
3026 grep -v '^ *+' conftest.er1 >conftest.err
3027 rm -f conftest.er1
3028 cat conftest.err >&5
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); } &&
3031 { ac_try='test -z "$ac_c_werror_flag"
3032 || test ! -s conftest.err'
3033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3034 (eval $ac_try) 2>&5
3035 ac_status=$?
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); }; } &&
3038 { ac_try='test -s conftest.$ac_objext'
3039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3040 (eval $ac_try) 2>&5
3041 ac_status=$?
3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043 (exit $ac_status); }; }; then
3044 break
3045 else
3046 echo "$as_me: failed program was:" >&5
3047 sed 's/^/| /' conftest.$ac_ext >&5
3049 fi
3050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3051 done
3052 rm -f conftest*
3053 if test -n "$ac_declaration"; then
3054 echo '#ifdef __cplusplus' >>confdefs.h
3055 echo $ac_declaration >>confdefs.h
3056 echo '#endif' >>confdefs.h
3057 fi
3059 else
3060 echo "$as_me: failed program was:" >&5
3061 sed 's/^/| /' conftest.$ac_ext >&5
3063 fi
3064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3065 ac_ext=c
3066 ac_cpp='$CPP $CPPFLAGS'
3067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3071 depcc="$CC" am_compiler_list=
3073 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3074 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3075 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3076 echo $ECHO_N "(cached) $ECHO_C" >&6
3077 else
3078 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3079 # We make a subdir and do the tests there. Otherwise we can end up
3080 # making bogus files that we don't know about and never remove. For
3081 # instance it was reported that on HP-UX the gcc test will end up
3082 # making a dummy file named `D' -- because `-MD' means `put the output
3083 # in D'.
3084 mkdir conftest.dir
3085 # Copy depcomp to subdir because otherwise we won't find it if we're
3086 # using a relative directory.
3087 cp "$am_depcomp" conftest.dir
3088 cd conftest.dir
3089 # We will build objects and dependencies in a subdirectory because
3090 # it helps to detect inapplicable dependency modes. For instance
3091 # both Tru64's cc and ICC support -MD to output dependencies as a
3092 # side effect of compilation, but ICC will put the dependencies in
3093 # the current directory while Tru64 will put them in the object
3094 # directory.
3095 mkdir sub
3097 am_cv_CC_dependencies_compiler_type=none
3098 if test "$am_compiler_list" = ""; then
3099 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3100 fi
3101 for depmode in $am_compiler_list; do
3102 # Setup a source with many dependencies, because some compilers
3103 # like to wrap large dependency lists on column 80 (with \), and
3104 # we should not choose a depcomp mode which is confused by this.
3105 #
3106 # We need to recreate these files for each test, as the compiler may
3107 # overwrite some of them when testing with obscure command lines.
3108 # This happens at least with the AIX C compiler.
3109 : > sub/conftest.c
3110 for i in 1 2 3 4 5 6; do
3111 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3112 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3113 # Solaris 8's {/usr,}/bin/sh.
3114 touch sub/conftst$i.h
3115 done
3116 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3118 case $depmode in
3119 nosideeffect)
3120 # after this tag, mechanisms are not by side-effect, so they'll
3121 # only be used when explicitly requested
3122 if test "x$enable_dependency_tracking" = xyes; then
3123 continue
3124 else
3125 break
3126 fi
3127 ;;
3128 none) break ;;
3129 esac
3130 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3131 # mode. It turns out that the SunPro C++ compiler does not properly
3132 # handle `-M -o', and we need to detect this.
3133 if depmode=$depmode \
3134 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3135 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3136 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3137 >/dev/null 2>conftest.err &&
3138 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3139 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3140 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3141 # icc doesn't choke on unknown options, it will just issue warnings
3142 # or remarks (even with -Werror). So we grep stderr for any message
3143 # that says an option was ignored or not supported.
3144 # When given -MP, icc 7.0 and 7.1 complain thusly:
3145 # icc: Command line warning: ignoring option '-M'; no argument required
3146 # The diagnosis changed in icc 8.0:
3147 # icc: Command line remark: option '-MP' not supported
3148 if (grep 'ignoring option' conftest.err ||
3149 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3150 am_cv_CC_dependencies_compiler_type=$depmode
3151 break
3152 fi
3153 fi
3154 done
3156 cd ..
3157 rm -rf conftest.dir
3158 else
3159 am_cv_CC_dependencies_compiler_type=none
3160 fi
3162 fi
3163 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3164 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3165 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3169 if
3170 test "x$enable_dependency_tracking" != xno \
3171 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3172 am__fastdepCC_TRUE=
3173 am__fastdepCC_FALSE='#'
3174 else
3175 am__fastdepCC_TRUE='#'
3176 am__fastdepCC_FALSE=
3177 fi
3180 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3181 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3182 if test "${lt_cv_path_SED+set}" = set; then
3183 echo $ECHO_N "(cached) $ECHO_C" >&6
3184 else
3185 # Loop through the user's path and test for sed and gsed.
3186 # Then use that list of sed's as ones to test for truncation.
3187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3188 for as_dir in $PATH
3189 do
3190 IFS=$as_save_IFS
3191 test -z "$as_dir" && as_dir=.
3192 for lt_ac_prog in sed gsed; do
3193 for ac_exec_ext in '' $ac_executable_extensions; do
3194 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3195 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3196 fi
3197 done
3198 done
3199 done
3200 lt_ac_max=0
3201 lt_ac_count=0
3202 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3203 # along with /bin/sed that truncates output.
3204 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3205 test ! -f $lt_ac_sed && continue
3206 cat /dev/null > conftest.in
3207 lt_ac_count=0
3208 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3209 # Check for GNU sed and select it if it is found.
3210 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3211 lt_cv_path_SED=$lt_ac_sed
3212 break
3213 fi
3214 while true; do
3215 cat conftest.in conftest.in >conftest.tmp
3216 mv conftest.tmp conftest.in
3217 cp conftest.in conftest.nl
3218 echo >>conftest.nl
3219 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3220 cmp -s conftest.out conftest.nl || break
3221 # 10000 chars as input seems more than enough
3222 test $lt_ac_count -gt 10 && break
3223 lt_ac_count=`expr $lt_ac_count + 1`
3224 if test $lt_ac_count -gt $lt_ac_max; then
3225 lt_ac_max=$lt_ac_count
3226 lt_cv_path_SED=$lt_ac_sed
3227 fi
3228 done
3229 done
3231 fi
3233 SED=$lt_cv_path_SED
3234 echo "$as_me:$LINENO: result: $SED" >&5
3235 echo "${ECHO_T}$SED" >&6
3237 echo "$as_me:$LINENO: checking for egrep" >&5
3238 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3239 if test "${ac_cv_prog_egrep+set}" = set; then
3240 echo $ECHO_N "(cached) $ECHO_C" >&6
3241 else
3242 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3243 then ac_cv_prog_egrep='grep -E'
3244 else ac_cv_prog_egrep='egrep'
3245 fi
3246 fi
3247 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3248 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3249 EGREP=$ac_cv_prog_egrep
3253 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3254 if test "${with_gnu_ld+set}" = set; then
3255 withval="$with_gnu_ld"
3256 test "$withval" = no || with_gnu_ld=yes
3257 else
3258 with_gnu_ld=no
3259 fi;
3260 ac_prog=ld
3261 if test "$GCC" = yes; then
3262 # Check if gcc -print-prog-name=ld gives a path.
3263 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3264 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3265 case $host in
3266 *-*-mingw*)
3267 # gcc leaves a trailing carriage return which upsets mingw
3268 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3269 *)
3270 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3271 esac
3272 case $ac_prog in
3273 # Accept absolute paths.
3274 [\\/]* | ?:[\\/]*)
3275 re_direlt='/[^/][^/]*/\.\./'
3276 # Canonicalize the pathname of ld
3277 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3278 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3279 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3280 done
3281 test -z "$LD" && LD="$ac_prog"
3282 ;;
3283 "")
3284 # If it fails, then pretend we aren't using GCC.
3285 ac_prog=ld
3286 ;;
3287 *)
3288 # If it is relative, then search for the first ld in PATH.
3289 with_gnu_ld=unknown
3290 ;;
3291 esac
3292 elif test "$with_gnu_ld" = yes; then
3293 echo "$as_me:$LINENO: checking for GNU ld" >&5
3294 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3295 else
3296 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3297 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3298 fi
3299 if test "${lt_cv_path_LD+set}" = set; then
3300 echo $ECHO_N "(cached) $ECHO_C" >&6
3301 else
3302 if test -z "$LD"; then
3303 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3304 for ac_dir in $PATH; do
3305 IFS="$lt_save_ifs"
3306 test -z "$ac_dir" && ac_dir=.
3307 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3308 lt_cv_path_LD="$ac_dir/$ac_prog"
3309 # Check to see if the program is GNU ld. I'd rather use --version,
3310 # but apparently some variants of GNU ld only accept -v.
3311 # Break only if it was the GNU/non-GNU ld that we prefer.
3312 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3313 *GNU* | *'with BFD'*)
3314 test "$with_gnu_ld" != no && break
3315 ;;
3316 *)
3317 test "$with_gnu_ld" != yes && break
3318 ;;
3319 esac
3320 fi
3321 done
3322 IFS="$lt_save_ifs"
3323 else
3324 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3325 fi
3326 fi
3328 LD="$lt_cv_path_LD"
3329 if test -n "$LD"; then
3330 echo "$as_me:$LINENO: result: $LD" >&5
3331 echo "${ECHO_T}$LD" >&6
3332 else
3333 echo "$as_me:$LINENO: result: no" >&5
3334 echo "${ECHO_T}no" >&6
3335 fi
3336 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3337 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3338 { (exit 1); exit 1; }; }
3339 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3340 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3341 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3342 echo $ECHO_N "(cached) $ECHO_C" >&6
3343 else
3344 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3345 case `$LD -v 2>&1 </dev/null` in
3346 *GNU* | *'with BFD'*)
3347 lt_cv_prog_gnu_ld=yes
3348 ;;
3349 *)
3350 lt_cv_prog_gnu_ld=no
3351 ;;
3352 esac
3353 fi
3354 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3355 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3356 with_gnu_ld=$lt_cv_prog_gnu_ld
3359 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3360 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3361 if test "${lt_cv_ld_reload_flag+set}" = set; then
3362 echo $ECHO_N "(cached) $ECHO_C" >&6
3363 else
3364 lt_cv_ld_reload_flag='-r'
3365 fi
3366 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3367 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3368 reload_flag=$lt_cv_ld_reload_flag
3369 case $reload_flag in
3370 "" | " "*) ;;
3371 *) reload_flag=" $reload_flag" ;;
3372 esac
3373 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3374 case $host_os in
3375 darwin*)
3376 if test "$GCC" = yes; then
3377 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3378 else
3379 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3380 fi
3381 ;;
3382 esac
3384 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3385 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3386 if test "${lt_cv_path_NM+set}" = set; then
3387 echo $ECHO_N "(cached) $ECHO_C" >&6
3388 else
3389 if test -n "$NM"; then
3390 # Let the user override the test.
3391 lt_cv_path_NM="$NM"
3392 else
3393 lt_nm_to_check="${ac_tool_prefix}nm"
3394 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3395 lt_nm_to_check="$lt_nm_to_check nm"
3396 fi
3397 for lt_tmp_nm in $lt_nm_to_check; do
3398 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3399 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3400 IFS="$lt_save_ifs"
3401 test -z "$ac_dir" && ac_dir=.
3402 tmp_nm="$ac_dir/$lt_tmp_nm"
3403 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3404 # Check to see if the nm accepts a BSD-compat flag.
3405 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3406 # nm: unknown option "B" ignored
3407 # Tru64's nm complains that /dev/null is an invalid object file
3408 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3409 */dev/null* | *'Invalid file or object type'*)
3410 lt_cv_path_NM="$tmp_nm -B"
3411 break
3412 ;;
3413 *)
3414 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3415 */dev/null*)
3416 lt_cv_path_NM="$tmp_nm -p"
3417 break
3418 ;;
3419 *)
3420 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3421 continue # so that we can try to find one that supports BSD flags
3422 ;;
3423 esac
3424 ;;
3425 esac
3426 fi
3427 done
3428 IFS="$lt_save_ifs"
3429 done
3430 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3431 fi
3432 fi
3433 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3434 echo "${ECHO_T}$lt_cv_path_NM" >&6
3435 NM="$lt_cv_path_NM"
3437 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3438 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3439 LN_S=$as_ln_s
3440 if test "$LN_S" = "ln -s"; then
3441 echo "$as_me:$LINENO: result: yes" >&5
3442 echo "${ECHO_T}yes" >&6
3443 else
3444 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3445 echo "${ECHO_T}no, using $LN_S" >&6
3446 fi
3448 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3449 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3450 if test "${lt_cv_deplibs_check_method+set}" = set; then
3451 echo $ECHO_N "(cached) $ECHO_C" >&6
3452 else
3453 lt_cv_file_magic_cmd='$MAGIC_CMD'
3454 lt_cv_file_magic_test_file=
3455 lt_cv_deplibs_check_method='unknown'
3456 # Need to set the preceding variable on all platforms that support
3457 # interlibrary dependencies.
3458 # 'none' -- dependencies not supported.
3459 # `unknown' -- same as none, but documents that we really don't know.
3460 # 'pass_all' -- all dependencies passed with no checks.
3461 # 'test_compile' -- check by making test program.
3462 # 'file_magic [[regex]]' -- check by looking for files in library path
3463 # which responds to the $file_magic_cmd with a given extended regex.
3464 # If you have `file' or equivalent on your system and you're not sure
3465 # whether `pass_all' will *always* work, you probably want this one.
3467 case $host_os in
3468 aix4* | aix5*)
3469 lt_cv_deplibs_check_method=pass_all
3470 ;;
3472 beos*)
3473 lt_cv_deplibs_check_method=pass_all
3474 ;;
3476 bsdi[45]*)
3477 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3478 lt_cv_file_magic_cmd='/usr/bin/file -L'
3479 lt_cv_file_magic_test_file=/shlib/libc.so
3480 ;;
3482 cygwin*)
3483 # func_win32_libid is a shell function defined in ltmain.sh
3484 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3485 lt_cv_file_magic_cmd='func_win32_libid'
3486 ;;
3488 mingw* | pw32*)
3489 # Base MSYS/MinGW do not provide the 'file' command needed by
3490 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3491 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3492 lt_cv_file_magic_cmd='$OBJDUMP -f'
3493 ;;
3495 darwin* | rhapsody*)
3496 lt_cv_deplibs_check_method=pass_all
3497 ;;
3499 freebsd* | kfreebsd*-gnu | dragonfly*)
3500 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3501 case $host_cpu in
3502 i*86 )
3503 # Not sure whether the presence of OpenBSD here was a mistake.
3504 # Let's accept both of them until this is cleared up.
3505 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3506 lt_cv_file_magic_cmd=/usr/bin/file
3507 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3508 ;;
3509 esac
3510 else
3511 lt_cv_deplibs_check_method=pass_all
3512 fi
3513 ;;
3515 gnu*)
3516 lt_cv_deplibs_check_method=pass_all
3517 ;;
3519 hpux10.20* | hpux11*)
3520 lt_cv_file_magic_cmd=/usr/bin/file
3521 case $host_cpu in
3522 ia64*)
3523 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3524 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3525 ;;
3526 hppa*64*)
3527 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]'
3528 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3529 ;;
3530 *)
3531 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3532 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3533 ;;
3534 esac
3535 ;;
3537 interix3*)
3538 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3539 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3540 ;;
3542 irix5* | irix6* | nonstopux*)
3543 case $LD in
3544 *-32|*"-32 ") libmagic=32-bit;;
3545 *-n32|*"-n32 ") libmagic=N32;;
3546 *-64|*"-64 ") libmagic=64-bit;;
3547 *) libmagic=never-match;;
3548 esac
3549 lt_cv_deplibs_check_method=pass_all
3550 ;;
3552 # This must be Linux ELF.
3553 linux*)
3554 lt_cv_deplibs_check_method=pass_all
3555 ;;
3557 netbsd*)
3558 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3559 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3560 else
3561 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3562 fi
3563 ;;
3565 newos6*)
3566 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3567 lt_cv_file_magic_cmd=/usr/bin/file
3568 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3569 ;;
3571 nto-qnx*)
3572 lt_cv_deplibs_check_method=unknown
3573 ;;
3575 openbsd*)
3576 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3577 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3578 else
3579 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3580 fi
3581 ;;
3583 osf3* | osf4* | osf5*)
3584 lt_cv_deplibs_check_method=pass_all
3585 ;;
3587 solaris*)
3588 lt_cv_deplibs_check_method=pass_all
3589 ;;
3591 sysv4 | sysv4.3*)
3592 case $host_vendor in
3593 motorola)
3594 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]'
3595 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3596 ;;
3597 ncr)
3598 lt_cv_deplibs_check_method=pass_all
3599 ;;
3600 sequent)
3601 lt_cv_file_magic_cmd='/bin/file'
3602 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3603 ;;
3604 sni)
3605 lt_cv_file_magic_cmd='/bin/file'
3606 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3607 lt_cv_file_magic_test_file=/lib/libc.so
3608 ;;
3609 siemens)
3610 lt_cv_deplibs_check_method=pass_all
3611 ;;
3612 pc)
3613 lt_cv_deplibs_check_method=pass_all
3614 ;;
3615 esac
3616 ;;
3618 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3619 lt_cv_deplibs_check_method=pass_all
3620 ;;
3621 esac
3623 fi
3624 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3625 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3626 file_magic_cmd=$lt_cv_file_magic_cmd
3627 deplibs_check_method=$lt_cv_deplibs_check_method
3628 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3633 # If no C compiler was specified, use CC.
3634 LTCC=${LTCC-"$CC"}
3636 # If no C compiler flags were specified, use CFLAGS.
3637 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3639 # Allow CC to be a program name with arguments.
3640 compiler=$CC
3643 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3644 if test "${enable_libtool_lock+set}" = set; then
3645 enableval="$enable_libtool_lock"
3647 fi;
3648 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3650 # Some flags need to be propagated to the compiler or linker for good
3651 # libtool support.
3652 case $host in
3653 ia64-*-hpux*)
3654 # Find out which ABI we are using.
3655 echo 'int i;' > conftest.$ac_ext
3656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3657 (eval $ac_compile) 2>&5
3658 ac_status=$?
3659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660 (exit $ac_status); }; then
3661 case `/usr/bin/file conftest.$ac_objext` in
3662 *ELF-32*)
3663 HPUX_IA64_MODE="32"
3664 ;;
3665 *ELF-64*)
3666 HPUX_IA64_MODE="64"
3667 ;;
3668 esac
3669 fi
3670 rm -rf conftest*
3671 ;;
3672 *-*-irix6*)
3673 # Find out which ABI we are using.
3674 echo '#line 3674 "configure"' > conftest.$ac_ext
3675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3676 (eval $ac_compile) 2>&5
3677 ac_status=$?
3678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679 (exit $ac_status); }; then
3680 if test "$lt_cv_prog_gnu_ld" = yes; then
3681 case `/usr/bin/file conftest.$ac_objext` in
3682 *32-bit*)
3683 LD="${LD-ld} -melf32bsmip"
3684 ;;
3685 *N32*)
3686 LD="${LD-ld} -melf32bmipn32"
3687 ;;
3688 *64-bit*)
3689 LD="${LD-ld} -melf64bmip"
3690 ;;
3691 esac
3692 else
3693 case `/usr/bin/file conftest.$ac_objext` in
3694 *32-bit*)
3695 LD="${LD-ld} -32"
3696 ;;
3697 *N32*)
3698 LD="${LD-ld} -n32"
3699 ;;
3700 *64-bit*)
3701 LD="${LD-ld} -64"
3702 ;;
3703 esac
3704 fi
3705 fi
3706 rm -rf conftest*
3707 ;;
3709 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3710 # Find out which ABI we are using.
3711 echo 'int i;' > conftest.$ac_ext
3712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3713 (eval $ac_compile) 2>&5
3714 ac_status=$?
3715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716 (exit $ac_status); }; then
3717 case `/usr/bin/file conftest.o` in
3718 *32-bit*)
3719 case $host in
3720 x86_64-*linux*)
3721 LD="${LD-ld} -m elf_i386"
3722 ;;
3723 ppc64-*linux*|powerpc64-*linux*)
3724 LD="${LD-ld} -m elf32ppclinux"
3725 ;;
3726 s390x-*linux*)
3727 LD="${LD-ld} -m elf_s390"
3728 ;;
3729 sparc64-*linux*)
3730 LD="${LD-ld} -m elf32_sparc"
3731 ;;
3732 esac
3733 ;;
3734 *64-bit*)
3735 case $host in
3736 x86_64-*linux*)
3737 LD="${LD-ld} -m elf_x86_64"
3738 ;;
3739 ppc*-*linux*|powerpc*-*linux*)
3740 LD="${LD-ld} -m elf64ppc"
3741 ;;
3742 s390*-*linux*)
3743 LD="${LD-ld} -m elf64_s390"
3744 ;;
3745 sparc*-*linux*)
3746 LD="${LD-ld} -m elf64_sparc"
3747 ;;
3748 esac
3749 ;;
3750 esac
3751 fi
3752 rm -rf conftest*
3753 ;;
3755 *-*-sco3.2v5*)
3756 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3757 SAVE_CFLAGS="$CFLAGS"
3758 CFLAGS="$CFLAGS -belf"
3759 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3760 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3761 if test "${lt_cv_cc_needs_belf+set}" = set; then
3762 echo $ECHO_N "(cached) $ECHO_C" >&6
3763 else
3764 ac_ext=c
3765 ac_cpp='$CPP $CPPFLAGS'
3766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3770 cat >conftest.$ac_ext <<_ACEOF
3771 /* confdefs.h. */
3772 _ACEOF
3773 cat confdefs.h >>conftest.$ac_ext
3774 cat >>conftest.$ac_ext <<_ACEOF
3775 /* end confdefs.h. */
3777 int
3778 main ()
3779 {
3781 ;
3782 return 0;
3783 }
3784 _ACEOF
3785 rm -f conftest.$ac_objext conftest$ac_exeext
3786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3787 (eval $ac_link) 2>conftest.er1
3788 ac_status=$?
3789 grep -v '^ *+' conftest.er1 >conftest.err
3790 rm -f conftest.er1
3791 cat conftest.err >&5
3792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793 (exit $ac_status); } &&
3794 { ac_try='test -z "$ac_c_werror_flag"
3795 || test ! -s conftest.err'
3796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3797 (eval $ac_try) 2>&5
3798 ac_status=$?
3799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800 (exit $ac_status); }; } &&
3801 { ac_try='test -s conftest$ac_exeext'
3802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3803 (eval $ac_try) 2>&5
3804 ac_status=$?
3805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806 (exit $ac_status); }; }; then
3807 lt_cv_cc_needs_belf=yes
3808 else
3809 echo "$as_me: failed program was:" >&5
3810 sed 's/^/| /' conftest.$ac_ext >&5
3812 lt_cv_cc_needs_belf=no
3813 fi
3814 rm -f conftest.err conftest.$ac_objext \
3815 conftest$ac_exeext conftest.$ac_ext
3816 ac_ext=c
3817 ac_cpp='$CPP $CPPFLAGS'
3818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3822 fi
3823 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3824 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3825 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3826 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3827 CFLAGS="$SAVE_CFLAGS"
3828 fi
3829 ;;
3830 sparc*-*solaris*)
3831 # Find out which ABI we are using.
3832 echo 'int i;' > conftest.$ac_ext
3833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3834 (eval $ac_compile) 2>&5
3835 ac_status=$?
3836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837 (exit $ac_status); }; then
3838 case `/usr/bin/file conftest.o` in
3839 *64-bit*)
3840 case $lt_cv_prog_gnu_ld in
3841 yes*) LD="${LD-ld} -m elf64_sparc" ;;
3842 *) LD="${LD-ld} -64" ;;
3843 esac
3844 ;;
3845 esac
3846 fi
3847 rm -rf conftest*
3848 ;;
3851 esac
3853 need_locks="$enable_libtool_lock"
3856 ac_ext=c
3857 ac_cpp='$CPP $CPPFLAGS'
3858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3861 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3862 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3863 # On Suns, sometimes $CPP names a directory.
3864 if test -n "$CPP" && test -d "$CPP"; then
3865 CPP=
3866 fi
3867 if test -z "$CPP"; then
3868 if test "${ac_cv_prog_CPP+set}" = set; then
3869 echo $ECHO_N "(cached) $ECHO_C" >&6
3870 else
3871 # Double quotes because CPP needs to be expanded
3872 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3873 do
3874 ac_preproc_ok=false
3875 for ac_c_preproc_warn_flag in '' yes
3876 do
3877 # Use a header file that comes with gcc, so configuring glibc
3878 # with a fresh cross-compiler works.
3879 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3880 # <limits.h> exists even on freestanding compilers.
3881 # On the NeXT, cc -E runs the code through the compiler's parser,
3882 # not just through cpp. "Syntax error" is here to catch this case.
3883 cat >conftest.$ac_ext <<_ACEOF
3884 /* confdefs.h. */
3885 _ACEOF
3886 cat confdefs.h >>conftest.$ac_ext
3887 cat >>conftest.$ac_ext <<_ACEOF
3888 /* end confdefs.h. */
3889 #ifdef __STDC__
3890 # include <limits.h>
3891 #else
3892 # include <assert.h>
3893 #endif
3894 Syntax error
3895 _ACEOF
3896 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3897 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3898 ac_status=$?
3899 grep -v '^ *+' conftest.er1 >conftest.err
3900 rm -f conftest.er1
3901 cat conftest.err >&5
3902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903 (exit $ac_status); } >/dev/null; then
3904 if test -s conftest.err; then
3905 ac_cpp_err=$ac_c_preproc_warn_flag
3906 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3907 else
3908 ac_cpp_err=
3909 fi
3910 else
3911 ac_cpp_err=yes
3912 fi
3913 if test -z "$ac_cpp_err"; then
3914 :
3915 else
3916 echo "$as_me: failed program was:" >&5
3917 sed 's/^/| /' conftest.$ac_ext >&5
3919 # Broken: fails on valid input.
3920 continue
3921 fi
3922 rm -f conftest.err conftest.$ac_ext
3924 # OK, works on sane cases. Now check whether non-existent headers
3925 # can be detected and how.
3926 cat >conftest.$ac_ext <<_ACEOF
3927 /* confdefs.h. */
3928 _ACEOF
3929 cat confdefs.h >>conftest.$ac_ext
3930 cat >>conftest.$ac_ext <<_ACEOF
3931 /* end confdefs.h. */
3932 #include <ac_nonexistent.h>
3933 _ACEOF
3934 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3935 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3936 ac_status=$?
3937 grep -v '^ *+' conftest.er1 >conftest.err
3938 rm -f conftest.er1
3939 cat conftest.err >&5
3940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3941 (exit $ac_status); } >/dev/null; then
3942 if test -s conftest.err; then
3943 ac_cpp_err=$ac_c_preproc_warn_flag
3944 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3945 else
3946 ac_cpp_err=
3947 fi
3948 else
3949 ac_cpp_err=yes
3950 fi
3951 if test -z "$ac_cpp_err"; then
3952 # Broken: success on invalid input.
3953 continue
3954 else
3955 echo "$as_me: failed program was:" >&5
3956 sed 's/^/| /' conftest.$ac_ext >&5
3958 # Passes both tests.
3959 ac_preproc_ok=:
3960 break
3961 fi
3962 rm -f conftest.err conftest.$ac_ext
3964 done
3965 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3966 rm -f conftest.err conftest.$ac_ext
3967 if $ac_preproc_ok; then
3968 break
3969 fi
3971 done
3972 ac_cv_prog_CPP=$CPP
3974 fi
3975 CPP=$ac_cv_prog_CPP
3976 else
3977 ac_cv_prog_CPP=$CPP
3978 fi
3979 echo "$as_me:$LINENO: result: $CPP" >&5
3980 echo "${ECHO_T}$CPP" >&6
3981 ac_preproc_ok=false
3982 for ac_c_preproc_warn_flag in '' yes
3983 do
3984 # Use a header file that comes with gcc, so configuring glibc
3985 # with a fresh cross-compiler works.
3986 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3987 # <limits.h> exists even on freestanding compilers.
3988 # On the NeXT, cc -E runs the code through the compiler's parser,
3989 # not just through cpp. "Syntax error" is here to catch this case.
3990 cat >conftest.$ac_ext <<_ACEOF
3991 /* confdefs.h. */
3992 _ACEOF
3993 cat confdefs.h >>conftest.$ac_ext
3994 cat >>conftest.$ac_ext <<_ACEOF
3995 /* end confdefs.h. */
3996 #ifdef __STDC__
3997 # include <limits.h>
3998 #else
3999 # include <assert.h>
4000 #endif
4001 Syntax error
4002 _ACEOF
4003 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4004 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4005 ac_status=$?
4006 grep -v '^ *+' conftest.er1 >conftest.err
4007 rm -f conftest.er1
4008 cat conftest.err >&5
4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010 (exit $ac_status); } >/dev/null; then
4011 if test -s conftest.err; then
4012 ac_cpp_err=$ac_c_preproc_warn_flag
4013 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4014 else
4015 ac_cpp_err=
4016 fi
4017 else
4018 ac_cpp_err=yes
4019 fi
4020 if test -z "$ac_cpp_err"; then
4021 :
4022 else
4023 echo "$as_me: failed program was:" >&5
4024 sed 's/^/| /' conftest.$ac_ext >&5
4026 # Broken: fails on valid input.
4027 continue
4028 fi
4029 rm -f conftest.err conftest.$ac_ext
4031 # OK, works on sane cases. Now check whether non-existent headers
4032 # can be detected and how.
4033 cat >conftest.$ac_ext <<_ACEOF
4034 /* confdefs.h. */
4035 _ACEOF
4036 cat confdefs.h >>conftest.$ac_ext
4037 cat >>conftest.$ac_ext <<_ACEOF
4038 /* end confdefs.h. */
4039 #include <ac_nonexistent.h>
4040 _ACEOF
4041 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4042 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4043 ac_status=$?
4044 grep -v '^ *+' conftest.er1 >conftest.err
4045 rm -f conftest.er1
4046 cat conftest.err >&5
4047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048 (exit $ac_status); } >/dev/null; then
4049 if test -s conftest.err; then
4050 ac_cpp_err=$ac_c_preproc_warn_flag
4051 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4052 else
4053 ac_cpp_err=
4054 fi
4055 else
4056 ac_cpp_err=yes
4057 fi
4058 if test -z "$ac_cpp_err"; then
4059 # Broken: success on invalid input.
4060 continue
4061 else
4062 echo "$as_me: failed program was:" >&5
4063 sed 's/^/| /' conftest.$ac_ext >&5
4065 # Passes both tests.
4066 ac_preproc_ok=:
4067 break
4068 fi
4069 rm -f conftest.err conftest.$ac_ext
4071 done
4072 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4073 rm -f conftest.err conftest.$ac_ext
4074 if $ac_preproc_ok; then
4075 :
4076 else
4077 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4078 See \`config.log' for more details." >&5
4079 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4080 See \`config.log' for more details." >&2;}
4081 { (exit 1); exit 1; }; }
4082 fi
4084 ac_ext=c
4085 ac_cpp='$CPP $CPPFLAGS'
4086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4091 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4092 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4093 if test "${ac_cv_header_stdc+set}" = set; then
4094 echo $ECHO_N "(cached) $ECHO_C" >&6
4095 else
4096 cat >conftest.$ac_ext <<_ACEOF
4097 /* confdefs.h. */
4098 _ACEOF
4099 cat confdefs.h >>conftest.$ac_ext
4100 cat >>conftest.$ac_ext <<_ACEOF
4101 /* end confdefs.h. */
4102 #include <stdlib.h>
4103 #include <stdarg.h>
4104 #include <string.h>
4105 #include <float.h>
4107 int
4108 main ()
4109 {
4111 ;
4112 return 0;
4113 }
4114 _ACEOF
4115 rm -f conftest.$ac_objext
4116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4117 (eval $ac_compile) 2>conftest.er1
4118 ac_status=$?
4119 grep -v '^ *+' conftest.er1 >conftest.err
4120 rm -f conftest.er1
4121 cat conftest.err >&5
4122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123 (exit $ac_status); } &&
4124 { ac_try='test -z "$ac_c_werror_flag"
4125 || test ! -s conftest.err'
4126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4127 (eval $ac_try) 2>&5
4128 ac_status=$?
4129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130 (exit $ac_status); }; } &&
4131 { ac_try='test -s conftest.$ac_objext'
4132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4133 (eval $ac_try) 2>&5
4134 ac_status=$?
4135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136 (exit $ac_status); }; }; then
4137 ac_cv_header_stdc=yes
4138 else
4139 echo "$as_me: failed program was:" >&5
4140 sed 's/^/| /' conftest.$ac_ext >&5
4142 ac_cv_header_stdc=no
4143 fi
4144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4146 if test $ac_cv_header_stdc = yes; then
4147 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4148 cat >conftest.$ac_ext <<_ACEOF
4149 /* confdefs.h. */
4150 _ACEOF
4151 cat confdefs.h >>conftest.$ac_ext
4152 cat >>conftest.$ac_ext <<_ACEOF
4153 /* end confdefs.h. */
4154 #include <string.h>
4156 _ACEOF
4157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4158 $EGREP "memchr" >/dev/null 2>&1; then
4159 :
4160 else
4161 ac_cv_header_stdc=no
4162 fi
4163 rm -f conftest*
4165 fi
4167 if test $ac_cv_header_stdc = yes; then
4168 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4169 cat >conftest.$ac_ext <<_ACEOF
4170 /* confdefs.h. */
4171 _ACEOF
4172 cat confdefs.h >>conftest.$ac_ext
4173 cat >>conftest.$ac_ext <<_ACEOF
4174 /* end confdefs.h. */
4175 #include <stdlib.h>
4177 _ACEOF
4178 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4179 $EGREP "free" >/dev/null 2>&1; then
4180 :
4181 else
4182 ac_cv_header_stdc=no
4183 fi
4184 rm -f conftest*
4186 fi
4188 if test $ac_cv_header_stdc = yes; then
4189 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4190 if test "$cross_compiling" = yes; then
4191 :
4192 else
4193 cat >conftest.$ac_ext <<_ACEOF
4194 /* confdefs.h. */
4195 _ACEOF
4196 cat confdefs.h >>conftest.$ac_ext
4197 cat >>conftest.$ac_ext <<_ACEOF
4198 /* end confdefs.h. */
4199 #include <ctype.h>
4200 #if ((' ' & 0x0FF) == 0x020)
4201 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4202 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4203 #else
4204 # define ISLOWER(c) \
4205 (('a' <= (c) && (c) <= 'i') \
4206 || ('j' <= (c) && (c) <= 'r') \
4207 || ('s' <= (c) && (c) <= 'z'))
4208 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4209 #endif
4211 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4212 int
4213 main ()
4214 {
4215 int i;
4216 for (i = 0; i < 256; i++)
4217 if (XOR (islower (i), ISLOWER (i))
4218 || toupper (i) != TOUPPER (i))
4219 exit(2);
4220 exit (0);
4221 }
4222 _ACEOF
4223 rm -f conftest$ac_exeext
4224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4225 (eval $ac_link) 2>&5
4226 ac_status=$?
4227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4230 (eval $ac_try) 2>&5
4231 ac_status=$?
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); }; }; then
4234 :
4235 else
4236 echo "$as_me: program exited with status $ac_status" >&5
4237 echo "$as_me: failed program was:" >&5
4238 sed 's/^/| /' conftest.$ac_ext >&5
4240 ( exit $ac_status )
4241 ac_cv_header_stdc=no
4242 fi
4243 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4244 fi
4245 fi
4246 fi
4247 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4248 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4249 if test $ac_cv_header_stdc = yes; then
4251 cat >>confdefs.h <<\_ACEOF
4252 #define STDC_HEADERS 1
4253 _ACEOF
4255 fi
4257 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4267 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4268 inttypes.h stdint.h unistd.h
4269 do
4270 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4271 echo "$as_me:$LINENO: checking for $ac_header" >&5
4272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4273 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4274 echo $ECHO_N "(cached) $ECHO_C" >&6
4275 else
4276 cat >conftest.$ac_ext <<_ACEOF
4277 /* confdefs.h. */
4278 _ACEOF
4279 cat confdefs.h >>conftest.$ac_ext
4280 cat >>conftest.$ac_ext <<_ACEOF
4281 /* end confdefs.h. */
4282 $ac_includes_default
4284 #include <$ac_header>
4285 _ACEOF
4286 rm -f conftest.$ac_objext
4287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4288 (eval $ac_compile) 2>conftest.er1
4289 ac_status=$?
4290 grep -v '^ *+' conftest.er1 >conftest.err
4291 rm -f conftest.er1
4292 cat conftest.err >&5
4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294 (exit $ac_status); } &&
4295 { ac_try='test -z "$ac_c_werror_flag"
4296 || test ! -s conftest.err'
4297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4298 (eval $ac_try) 2>&5
4299 ac_status=$?
4300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301 (exit $ac_status); }; } &&
4302 { ac_try='test -s conftest.$ac_objext'
4303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4304 (eval $ac_try) 2>&5
4305 ac_status=$?
4306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307 (exit $ac_status); }; }; then
4308 eval "$as_ac_Header=yes"
4309 else
4310 echo "$as_me: failed program was:" >&5
4311 sed 's/^/| /' conftest.$ac_ext >&5
4313 eval "$as_ac_Header=no"
4314 fi
4315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4316 fi
4317 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4318 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4319 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4320 cat >>confdefs.h <<_ACEOF
4321 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4322 _ACEOF
4324 fi
4326 done
4330 for ac_header in dlfcn.h
4331 do
4332 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4333 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4334 echo "$as_me:$LINENO: checking for $ac_header" >&5
4335 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4336 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4337 echo $ECHO_N "(cached) $ECHO_C" >&6
4338 fi
4339 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4340 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4341 else
4342 # Is the header compilable?
4343 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4344 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4345 cat >conftest.$ac_ext <<_ACEOF
4346 /* confdefs.h. */
4347 _ACEOF
4348 cat confdefs.h >>conftest.$ac_ext
4349 cat >>conftest.$ac_ext <<_ACEOF
4350 /* end confdefs.h. */
4351 $ac_includes_default
4352 #include <$ac_header>
4353 _ACEOF
4354 rm -f conftest.$ac_objext
4355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4356 (eval $ac_compile) 2>conftest.er1
4357 ac_status=$?
4358 grep -v '^ *+' conftest.er1 >conftest.err
4359 rm -f conftest.er1
4360 cat conftest.err >&5
4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); } &&
4363 { ac_try='test -z "$ac_c_werror_flag"
4364 || test ! -s conftest.err'
4365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4366 (eval $ac_try) 2>&5
4367 ac_status=$?
4368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369 (exit $ac_status); }; } &&
4370 { ac_try='test -s conftest.$ac_objext'
4371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4372 (eval $ac_try) 2>&5
4373 ac_status=$?
4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375 (exit $ac_status); }; }; then
4376 ac_header_compiler=yes
4377 else
4378 echo "$as_me: failed program was:" >&5
4379 sed 's/^/| /' conftest.$ac_ext >&5
4381 ac_header_compiler=no
4382 fi
4383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4384 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4385 echo "${ECHO_T}$ac_header_compiler" >&6
4387 # Is the header present?
4388 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4389 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4390 cat >conftest.$ac_ext <<_ACEOF
4391 /* confdefs.h. */
4392 _ACEOF
4393 cat confdefs.h >>conftest.$ac_ext
4394 cat >>conftest.$ac_ext <<_ACEOF
4395 /* end confdefs.h. */
4396 #include <$ac_header>
4397 _ACEOF
4398 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4399 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4400 ac_status=$?
4401 grep -v '^ *+' conftest.er1 >conftest.err
4402 rm -f conftest.er1
4403 cat conftest.err >&5
4404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405 (exit $ac_status); } >/dev/null; then
4406 if test -s conftest.err; then
4407 ac_cpp_err=$ac_c_preproc_warn_flag
4408 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4409 else
4410 ac_cpp_err=
4411 fi
4412 else
4413 ac_cpp_err=yes
4414 fi
4415 if test -z "$ac_cpp_err"; then
4416 ac_header_preproc=yes
4417 else
4418 echo "$as_me: failed program was:" >&5
4419 sed 's/^/| /' conftest.$ac_ext >&5
4421 ac_header_preproc=no
4422 fi
4423 rm -f conftest.err conftest.$ac_ext
4424 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4425 echo "${ECHO_T}$ac_header_preproc" >&6
4427 # So? What about this header?
4428 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4429 yes:no: )
4430 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4431 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4433 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4434 ac_header_preproc=yes
4435 ;;
4436 no:yes:* )
4437 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4438 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4439 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4440 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4441 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4442 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4443 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4444 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4446 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4447 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4448 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4449 (
4450 cat <<\_ASBOX
4451 ## --------------------------------- ##
4452 ## Report this to the TI IPC lists. ##
4453 ## --------------------------------- ##
4454 _ASBOX
4455 ) |
4456 sed "s/^/$as_me: WARNING: /" >&2
4457 ;;
4458 esac
4459 echo "$as_me:$LINENO: checking for $ac_header" >&5
4460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4462 echo $ECHO_N "(cached) $ECHO_C" >&6
4463 else
4464 eval "$as_ac_Header=\$ac_header_preproc"
4465 fi
4466 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4467 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4469 fi
4470 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4471 cat >>confdefs.h <<_ACEOF
4472 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4473 _ACEOF
4475 fi
4477 done
4479 ac_ext=cc
4480 ac_cpp='$CXXCPP $CPPFLAGS'
4481 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4482 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4483 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4484 if test -n "$ac_tool_prefix"; then
4485 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4486 do
4487 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4488 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4489 echo "$as_me:$LINENO: checking for $ac_word" >&5
4490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4491 if test "${ac_cv_prog_CXX+set}" = set; then
4492 echo $ECHO_N "(cached) $ECHO_C" >&6
4493 else
4494 if test -n "$CXX"; then
4495 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4496 else
4497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4498 for as_dir in $PATH
4499 do
4500 IFS=$as_save_IFS
4501 test -z "$as_dir" && as_dir=.
4502 for ac_exec_ext in '' $ac_executable_extensions; do
4503 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4504 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4506 break 2
4507 fi
4508 done
4509 done
4511 fi
4512 fi
4513 CXX=$ac_cv_prog_CXX
4514 if test -n "$CXX"; then
4515 echo "$as_me:$LINENO: result: $CXX" >&5
4516 echo "${ECHO_T}$CXX" >&6
4517 else
4518 echo "$as_me:$LINENO: result: no" >&5
4519 echo "${ECHO_T}no" >&6
4520 fi
4522 test -n "$CXX" && break
4523 done
4524 fi
4525 if test -z "$CXX"; then
4526 ac_ct_CXX=$CXX
4527 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4528 do
4529 # Extract the first word of "$ac_prog", so it can be a program name with args.
4530 set dummy $ac_prog; ac_word=$2
4531 echo "$as_me:$LINENO: checking for $ac_word" >&5
4532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4533 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4534 echo $ECHO_N "(cached) $ECHO_C" >&6
4535 else
4536 if test -n "$ac_ct_CXX"; then
4537 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4538 else
4539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4540 for as_dir in $PATH
4541 do
4542 IFS=$as_save_IFS
4543 test -z "$as_dir" && as_dir=.
4544 for ac_exec_ext in '' $ac_executable_extensions; do
4545 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4546 ac_cv_prog_ac_ct_CXX="$ac_prog"
4547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4548 break 2
4549 fi
4550 done
4551 done
4553 fi
4554 fi
4555 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4556 if test -n "$ac_ct_CXX"; then
4557 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4558 echo "${ECHO_T}$ac_ct_CXX" >&6
4559 else
4560 echo "$as_me:$LINENO: result: no" >&5
4561 echo "${ECHO_T}no" >&6
4562 fi
4564 test -n "$ac_ct_CXX" && break
4565 done
4566 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4568 CXX=$ac_ct_CXX
4569 fi
4572 # Provide some information about the compiler.
4573 echo "$as_me:$LINENO:" \
4574 "checking for C++ compiler version" >&5
4575 ac_compiler=`set X $ac_compile; echo $2`
4576 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4577 (eval $ac_compiler --version </dev/null >&5) 2>&5
4578 ac_status=$?
4579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580 (exit $ac_status); }
4581 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4582 (eval $ac_compiler -v </dev/null >&5) 2>&5
4583 ac_status=$?
4584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585 (exit $ac_status); }
4586 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4587 (eval $ac_compiler -V </dev/null >&5) 2>&5
4588 ac_status=$?
4589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4590 (exit $ac_status); }
4592 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4593 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4594 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4595 echo $ECHO_N "(cached) $ECHO_C" >&6
4596 else
4597 cat >conftest.$ac_ext <<_ACEOF
4598 /* confdefs.h. */
4599 _ACEOF
4600 cat confdefs.h >>conftest.$ac_ext
4601 cat >>conftest.$ac_ext <<_ACEOF
4602 /* end confdefs.h. */
4604 int
4605 main ()
4606 {
4607 #ifndef __GNUC__
4608 choke me
4609 #endif
4611 ;
4612 return 0;
4613 }
4614 _ACEOF
4615 rm -f conftest.$ac_objext
4616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4617 (eval $ac_compile) 2>conftest.er1
4618 ac_status=$?
4619 grep -v '^ *+' conftest.er1 >conftest.err
4620 rm -f conftest.er1
4621 cat conftest.err >&5
4622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623 (exit $ac_status); } &&
4624 { ac_try='test -z "$ac_cxx_werror_flag"
4625 || test ! -s conftest.err'
4626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4627 (eval $ac_try) 2>&5
4628 ac_status=$?
4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630 (exit $ac_status); }; } &&
4631 { ac_try='test -s conftest.$ac_objext'
4632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4633 (eval $ac_try) 2>&5
4634 ac_status=$?
4635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636 (exit $ac_status); }; }; then
4637 ac_compiler_gnu=yes
4638 else
4639 echo "$as_me: failed program was:" >&5
4640 sed 's/^/| /' conftest.$ac_ext >&5
4642 ac_compiler_gnu=no
4643 fi
4644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4645 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4647 fi
4648 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4649 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4650 GXX=`test $ac_compiler_gnu = yes && echo yes`
4651 ac_test_CXXFLAGS=${CXXFLAGS+set}
4652 ac_save_CXXFLAGS=$CXXFLAGS
4653 CXXFLAGS="-g"
4654 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4655 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4656 if test "${ac_cv_prog_cxx_g+set}" = set; then
4657 echo $ECHO_N "(cached) $ECHO_C" >&6
4658 else
4659 cat >conftest.$ac_ext <<_ACEOF
4660 /* confdefs.h. */
4661 _ACEOF
4662 cat confdefs.h >>conftest.$ac_ext
4663 cat >>conftest.$ac_ext <<_ACEOF
4664 /* end confdefs.h. */
4666 int
4667 main ()
4668 {
4670 ;
4671 return 0;
4672 }
4673 _ACEOF
4674 rm -f conftest.$ac_objext
4675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4676 (eval $ac_compile) 2>conftest.er1
4677 ac_status=$?
4678 grep -v '^ *+' conftest.er1 >conftest.err
4679 rm -f conftest.er1
4680 cat conftest.err >&5
4681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682 (exit $ac_status); } &&
4683 { ac_try='test -z "$ac_cxx_werror_flag"
4684 || test ! -s conftest.err'
4685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4686 (eval $ac_try) 2>&5
4687 ac_status=$?
4688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689 (exit $ac_status); }; } &&
4690 { ac_try='test -s conftest.$ac_objext'
4691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4692 (eval $ac_try) 2>&5
4693 ac_status=$?
4694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695 (exit $ac_status); }; }; then
4696 ac_cv_prog_cxx_g=yes
4697 else
4698 echo "$as_me: failed program was:" >&5
4699 sed 's/^/| /' conftest.$ac_ext >&5
4701 ac_cv_prog_cxx_g=no
4702 fi
4703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4704 fi
4705 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4706 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4707 if test "$ac_test_CXXFLAGS" = set; then
4708 CXXFLAGS=$ac_save_CXXFLAGS
4709 elif test $ac_cv_prog_cxx_g = yes; then
4710 if test "$GXX" = yes; then
4711 CXXFLAGS="-g -O2"
4712 else
4713 CXXFLAGS="-g"
4714 fi
4715 else
4716 if test "$GXX" = yes; then
4717 CXXFLAGS="-O2"
4718 else
4719 CXXFLAGS=
4720 fi
4721 fi
4722 for ac_declaration in \
4723 '' \
4724 'extern "C" void std::exit (int) throw (); using std::exit;' \
4725 'extern "C" void std::exit (int); using std::exit;' \
4726 'extern "C" void exit (int) throw ();' \
4727 'extern "C" void exit (int);' \
4728 'void exit (int);'
4729 do
4730 cat >conftest.$ac_ext <<_ACEOF
4731 /* confdefs.h. */
4732 _ACEOF
4733 cat confdefs.h >>conftest.$ac_ext
4734 cat >>conftest.$ac_ext <<_ACEOF
4735 /* end confdefs.h. */
4736 $ac_declaration
4737 #include <stdlib.h>
4738 int
4739 main ()
4740 {
4741 exit (42);
4742 ;
4743 return 0;
4744 }
4745 _ACEOF
4746 rm -f conftest.$ac_objext
4747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4748 (eval $ac_compile) 2>conftest.er1
4749 ac_status=$?
4750 grep -v '^ *+' conftest.er1 >conftest.err
4751 rm -f conftest.er1
4752 cat conftest.err >&5
4753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754 (exit $ac_status); } &&
4755 { ac_try='test -z "$ac_cxx_werror_flag"
4756 || test ! -s conftest.err'
4757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4758 (eval $ac_try) 2>&5
4759 ac_status=$?
4760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761 (exit $ac_status); }; } &&
4762 { ac_try='test -s conftest.$ac_objext'
4763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4764 (eval $ac_try) 2>&5
4765 ac_status=$?
4766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767 (exit $ac_status); }; }; then
4768 :
4769 else
4770 echo "$as_me: failed program was:" >&5
4771 sed 's/^/| /' conftest.$ac_ext >&5
4773 continue
4774 fi
4775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4776 cat >conftest.$ac_ext <<_ACEOF
4777 /* confdefs.h. */
4778 _ACEOF
4779 cat confdefs.h >>conftest.$ac_ext
4780 cat >>conftest.$ac_ext <<_ACEOF
4781 /* end confdefs.h. */
4782 $ac_declaration
4783 int
4784 main ()
4785 {
4786 exit (42);
4787 ;
4788 return 0;
4789 }
4790 _ACEOF
4791 rm -f conftest.$ac_objext
4792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4793 (eval $ac_compile) 2>conftest.er1
4794 ac_status=$?
4795 grep -v '^ *+' conftest.er1 >conftest.err
4796 rm -f conftest.er1
4797 cat conftest.err >&5
4798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799 (exit $ac_status); } &&
4800 { ac_try='test -z "$ac_cxx_werror_flag"
4801 || test ! -s conftest.err'
4802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4803 (eval $ac_try) 2>&5
4804 ac_status=$?
4805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806 (exit $ac_status); }; } &&
4807 { ac_try='test -s conftest.$ac_objext'
4808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4809 (eval $ac_try) 2>&5
4810 ac_status=$?
4811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812 (exit $ac_status); }; }; then
4813 break
4814 else
4815 echo "$as_me: failed program was:" >&5
4816 sed 's/^/| /' conftest.$ac_ext >&5
4818 fi
4819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4820 done
4821 rm -f conftest*
4822 if test -n "$ac_declaration"; then
4823 echo '#ifdef __cplusplus' >>confdefs.h
4824 echo $ac_declaration >>confdefs.h
4825 echo '#endif' >>confdefs.h
4826 fi
4828 ac_ext=cc
4829 ac_cpp='$CXXCPP $CPPFLAGS'
4830 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4831 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4832 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4834 depcc="$CXX" am_compiler_list=
4836 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4837 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4838 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4839 echo $ECHO_N "(cached) $ECHO_C" >&6
4840 else
4841 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4842 # We make a subdir and do the tests there. Otherwise we can end up
4843 # making bogus files that we don't know about and never remove. For
4844 # instance it was reported that on HP-UX the gcc test will end up
4845 # making a dummy file named `D' -- because `-MD' means `put the output
4846 # in D'.
4847 mkdir conftest.dir
4848 # Copy depcomp to subdir because otherwise we won't find it if we're
4849 # using a relative directory.
4850 cp "$am_depcomp" conftest.dir
4851 cd conftest.dir
4852 # We will build objects and dependencies in a subdirectory because
4853 # it helps to detect inapplicable dependency modes. For instance
4854 # both Tru64's cc and ICC support -MD to output dependencies as a
4855 # side effect of compilation, but ICC will put the dependencies in
4856 # the current directory while Tru64 will put them in the object
4857 # directory.
4858 mkdir sub
4860 am_cv_CXX_dependencies_compiler_type=none
4861 if test "$am_compiler_list" = ""; then
4862 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4863 fi
4864 for depmode in $am_compiler_list; do
4865 # Setup a source with many dependencies, because some compilers
4866 # like to wrap large dependency lists on column 80 (with \), and
4867 # we should not choose a depcomp mode which is confused by this.
4868 #
4869 # We need to recreate these files for each test, as the compiler may
4870 # overwrite some of them when testing with obscure command lines.
4871 # This happens at least with the AIX C compiler.
4872 : > sub/conftest.c
4873 for i in 1 2 3 4 5 6; do
4874 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4875 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4876 # Solaris 8's {/usr,}/bin/sh.
4877 touch sub/conftst$i.h
4878 done
4879 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4881 case $depmode in
4882 nosideeffect)
4883 # after this tag, mechanisms are not by side-effect, so they'll
4884 # only be used when explicitly requested
4885 if test "x$enable_dependency_tracking" = xyes; then
4886 continue
4887 else
4888 break
4889 fi
4890 ;;
4891 none) break ;;
4892 esac
4893 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4894 # mode. It turns out that the SunPro C++ compiler does not properly
4895 # handle `-M -o', and we need to detect this.
4896 if depmode=$depmode \
4897 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4898 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4899 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4900 >/dev/null 2>conftest.err &&
4901 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4902 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4903 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4904 # icc doesn't choke on unknown options, it will just issue warnings
4905 # or remarks (even with -Werror). So we grep stderr for any message
4906 # that says an option was ignored or not supported.
4907 # When given -MP, icc 7.0 and 7.1 complain thusly:
4908 # icc: Command line warning: ignoring option '-M'; no argument required
4909 # The diagnosis changed in icc 8.0:
4910 # icc: Command line remark: option '-MP' not supported
4911 if (grep 'ignoring option' conftest.err ||
4912 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4913 am_cv_CXX_dependencies_compiler_type=$depmode
4914 break
4915 fi
4916 fi
4917 done
4919 cd ..
4920 rm -rf conftest.dir
4921 else
4922 am_cv_CXX_dependencies_compiler_type=none
4923 fi
4925 fi
4926 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4927 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4928 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4932 if
4933 test "x$enable_dependency_tracking" != xno \
4934 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4935 am__fastdepCXX_TRUE=
4936 am__fastdepCXX_FALSE='#'
4937 else
4938 am__fastdepCXX_TRUE='#'
4939 am__fastdepCXX_FALSE=
4940 fi
4945 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4946 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4947 (test "X$CXX" != "Xg++"))) ; then
4948 ac_ext=cc
4949 ac_cpp='$CXXCPP $CPPFLAGS'
4950 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4951 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4952 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4953 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4954 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4955 if test -z "$CXXCPP"; then
4956 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4957 echo $ECHO_N "(cached) $ECHO_C" >&6
4958 else
4959 # Double quotes because CXXCPP needs to be expanded
4960 for CXXCPP in "$CXX -E" "/lib/cpp"
4961 do
4962 ac_preproc_ok=false
4963 for ac_cxx_preproc_warn_flag in '' yes
4964 do
4965 # Use a header file that comes with gcc, so configuring glibc
4966 # with a fresh cross-compiler works.
4967 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4968 # <limits.h> exists even on freestanding compilers.
4969 # On the NeXT, cc -E runs the code through the compiler's parser,
4970 # not just through cpp. "Syntax error" is here to catch this case.
4971 cat >conftest.$ac_ext <<_ACEOF
4972 /* confdefs.h. */
4973 _ACEOF
4974 cat confdefs.h >>conftest.$ac_ext
4975 cat >>conftest.$ac_ext <<_ACEOF
4976 /* end confdefs.h. */
4977 #ifdef __STDC__
4978 # include <limits.h>
4979 #else
4980 # include <assert.h>
4981 #endif
4982 Syntax error
4983 _ACEOF
4984 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4985 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4986 ac_status=$?
4987 grep -v '^ *+' conftest.er1 >conftest.err
4988 rm -f conftest.er1
4989 cat conftest.err >&5
4990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991 (exit $ac_status); } >/dev/null; then
4992 if test -s conftest.err; then
4993 ac_cpp_err=$ac_cxx_preproc_warn_flag
4994 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4995 else
4996 ac_cpp_err=
4997 fi
4998 else
4999 ac_cpp_err=yes
5000 fi
5001 if test -z "$ac_cpp_err"; then
5002 :
5003 else
5004 echo "$as_me: failed program was:" >&5
5005 sed 's/^/| /' conftest.$ac_ext >&5
5007 # Broken: fails on valid input.
5008 continue
5009 fi
5010 rm -f conftest.err conftest.$ac_ext
5012 # OK, works on sane cases. Now check whether non-existent headers
5013 # can be detected and how.
5014 cat >conftest.$ac_ext <<_ACEOF
5015 /* confdefs.h. */
5016 _ACEOF
5017 cat confdefs.h >>conftest.$ac_ext
5018 cat >>conftest.$ac_ext <<_ACEOF
5019 /* end confdefs.h. */
5020 #include <ac_nonexistent.h>
5021 _ACEOF
5022 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5023 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5024 ac_status=$?
5025 grep -v '^ *+' conftest.er1 >conftest.err
5026 rm -f conftest.er1
5027 cat conftest.err >&5
5028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029 (exit $ac_status); } >/dev/null; then
5030 if test -s conftest.err; then
5031 ac_cpp_err=$ac_cxx_preproc_warn_flag
5032 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5033 else
5034 ac_cpp_err=
5035 fi
5036 else
5037 ac_cpp_err=yes
5038 fi
5039 if test -z "$ac_cpp_err"; then
5040 # Broken: success on invalid input.
5041 continue
5042 else
5043 echo "$as_me: failed program was:" >&5
5044 sed 's/^/| /' conftest.$ac_ext >&5
5046 # Passes both tests.
5047 ac_preproc_ok=:
5048 break
5049 fi
5050 rm -f conftest.err conftest.$ac_ext
5052 done
5053 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5054 rm -f conftest.err conftest.$ac_ext
5055 if $ac_preproc_ok; then
5056 break
5057 fi
5059 done
5060 ac_cv_prog_CXXCPP=$CXXCPP
5062 fi
5063 CXXCPP=$ac_cv_prog_CXXCPP
5064 else
5065 ac_cv_prog_CXXCPP=$CXXCPP
5066 fi
5067 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5068 echo "${ECHO_T}$CXXCPP" >&6
5069 ac_preproc_ok=false
5070 for ac_cxx_preproc_warn_flag in '' yes
5071 do
5072 # Use a header file that comes with gcc, so configuring glibc
5073 # with a fresh cross-compiler works.
5074 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5075 # <limits.h> exists even on freestanding compilers.
5076 # On the NeXT, cc -E runs the code through the compiler's parser,
5077 # not just through cpp. "Syntax error" is here to catch this case.
5078 cat >conftest.$ac_ext <<_ACEOF
5079 /* confdefs.h. */
5080 _ACEOF
5081 cat confdefs.h >>conftest.$ac_ext
5082 cat >>conftest.$ac_ext <<_ACEOF
5083 /* end confdefs.h. */
5084 #ifdef __STDC__
5085 # include <limits.h>
5086 #else
5087 # include <assert.h>
5088 #endif
5089 Syntax error
5090 _ACEOF
5091 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5092 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5093 ac_status=$?
5094 grep -v '^ *+' conftest.er1 >conftest.err
5095 rm -f conftest.er1
5096 cat conftest.err >&5
5097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098 (exit $ac_status); } >/dev/null; then
5099 if test -s conftest.err; then
5100 ac_cpp_err=$ac_cxx_preproc_warn_flag
5101 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5102 else
5103 ac_cpp_err=
5104 fi
5105 else
5106 ac_cpp_err=yes
5107 fi
5108 if test -z "$ac_cpp_err"; then
5109 :
5110 else
5111 echo "$as_me: failed program was:" >&5
5112 sed 's/^/| /' conftest.$ac_ext >&5
5114 # Broken: fails on valid input.
5115 continue
5116 fi
5117 rm -f conftest.err conftest.$ac_ext
5119 # OK, works on sane cases. Now check whether non-existent headers
5120 # can be detected and how.
5121 cat >conftest.$ac_ext <<_ACEOF
5122 /* confdefs.h. */
5123 _ACEOF
5124 cat confdefs.h >>conftest.$ac_ext
5125 cat >>conftest.$ac_ext <<_ACEOF
5126 /* end confdefs.h. */
5127 #include <ac_nonexistent.h>
5128 _ACEOF
5129 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5130 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5131 ac_status=$?
5132 grep -v '^ *+' conftest.er1 >conftest.err
5133 rm -f conftest.er1
5134 cat conftest.err >&5
5135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136 (exit $ac_status); } >/dev/null; then
5137 if test -s conftest.err; then
5138 ac_cpp_err=$ac_cxx_preproc_warn_flag
5139 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5140 else
5141 ac_cpp_err=
5142 fi
5143 else
5144 ac_cpp_err=yes
5145 fi
5146 if test -z "$ac_cpp_err"; then
5147 # Broken: success on invalid input.
5148 continue
5149 else
5150 echo "$as_me: failed program was:" >&5
5151 sed 's/^/| /' conftest.$ac_ext >&5
5153 # Passes both tests.
5154 ac_preproc_ok=:
5155 break
5156 fi
5157 rm -f conftest.err conftest.$ac_ext
5159 done
5160 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5161 rm -f conftest.err conftest.$ac_ext
5162 if $ac_preproc_ok; then
5163 :
5164 else
5165 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5166 See \`config.log' for more details." >&5
5167 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5168 See \`config.log' for more details." >&2;}
5169 { (exit 1); exit 1; }; }
5170 fi
5172 ac_ext=cc
5173 ac_cpp='$CXXCPP $CPPFLAGS'
5174 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5175 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5176 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5178 fi
5182 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5184 # find the maximum length of command line arguments
5185 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5186 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5187 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5188 echo $ECHO_N "(cached) $ECHO_C" >&6
5189 else
5190 i=0
5191 teststring="ABCD"
5193 case $build_os in
5194 msdosdjgpp*)
5195 # On DJGPP, this test can blow up pretty badly due to problems in libc
5196 # (any single argument exceeding 2000 bytes causes a buffer overrun
5197 # during glob expansion). Even if it were fixed, the result of this
5198 # check would be larger than it should be.
5199 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5200 ;;
5202 gnu*)
5203 # Under GNU Hurd, this test is not required because there is
5204 # no limit to the length of command line arguments.
5205 # Libtool will interpret -1 as no limit whatsoever
5206 lt_cv_sys_max_cmd_len=-1;
5207 ;;
5209 cygwin* | mingw*)
5210 # On Win9x/ME, this test blows up -- it succeeds, but takes
5211 # about 5 minutes as the teststring grows exponentially.
5212 # Worse, since 9x/ME are not pre-emptively multitasking,
5213 # you end up with a "frozen" computer, even though with patience
5214 # the test eventually succeeds (with a max line length of 256k).
5215 # Instead, let's just punt: use the minimum linelength reported by
5216 # all of the supported platforms: 8192 (on NT/2K/XP).
5217 lt_cv_sys_max_cmd_len=8192;
5218 ;;
5220 amigaos*)
5221 # On AmigaOS with pdksh, this test takes hours, literally.
5222 # So we just punt and use a minimum line length of 8192.
5223 lt_cv_sys_max_cmd_len=8192;
5224 ;;
5226 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5227 # This has been around since 386BSD, at least. Likely further.
5228 if test -x /sbin/sysctl; then
5229 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5230 elif test -x /usr/sbin/sysctl; then
5231 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5232 else
5233 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5234 fi
5235 # And add a safety zone
5236 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5237 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5238 ;;
5240 interix*)
5241 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5242 lt_cv_sys_max_cmd_len=196608
5243 ;;
5245 osf*)
5246 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5247 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5248 # nice to cause kernel panics so lets avoid the loop below.
5249 # First set a reasonable default.
5250 lt_cv_sys_max_cmd_len=16384
5251 #
5252 if test -x /sbin/sysconfig; then
5253 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5254 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5255 esac
5256 fi
5257 ;;
5258 sco3.2v5*)
5259 lt_cv_sys_max_cmd_len=102400
5260 ;;
5261 sysv5* | sco5v6* | sysv4.2uw2*)
5262 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5263 if test -n "$kargmax"; then
5264 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5265 else
5266 lt_cv_sys_max_cmd_len=32768
5267 fi
5268 ;;
5269 *)
5270 # If test is not a shell built-in, we'll probably end up computing a
5271 # maximum length that is only half of the actual maximum length, but
5272 # we can't tell.
5273 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5274 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5275 = "XX$teststring") >/dev/null 2>&1 &&
5276 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5277 lt_cv_sys_max_cmd_len=$new_result &&
5278 test $i != 17 # 1/2 MB should be enough
5279 do
5280 i=`expr $i + 1`
5281 teststring=$teststring$teststring
5282 done
5283 teststring=
5284 # Add a significant safety factor because C++ compilers can tack on massive
5285 # amounts of additional arguments before passing them to the linker.
5286 # It appears as though 1/2 is a usable value.
5287 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5288 ;;
5289 esac
5291 fi
5293 if test -n $lt_cv_sys_max_cmd_len ; then
5294 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5295 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5296 else
5297 echo "$as_me:$LINENO: result: none" >&5
5298 echo "${ECHO_T}none" >&6
5299 fi
5304 # Check for command to grab the raw symbol name followed by C symbol from nm.
5305 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5306 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5307 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5308 echo $ECHO_N "(cached) $ECHO_C" >&6
5309 else
5311 # These are sane defaults that work on at least a few old systems.
5312 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5314 # Character class describing NM global symbol codes.
5315 symcode='[BCDEGRST]'
5317 # Regexp to match symbols that can be accessed directly from C.
5318 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5320 # Transform an extracted symbol line into a proper C declaration
5321 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5323 # Transform an extracted symbol line into symbol name and symbol address
5324 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'"
5326 # Define system-specific variables.
5327 case $host_os in
5328 aix*)
5329 symcode='[BCDT]'
5330 ;;
5331 cygwin* | mingw* | pw32*)
5332 symcode='[ABCDGISTW]'
5333 ;;
5334 hpux*) # Its linker distinguishes data from code symbols
5335 if test "$host_cpu" = ia64; then
5336 symcode='[ABCDEGRST]'
5337 fi
5338 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5339 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'"
5340 ;;
5341 linux*)
5342 if test "$host_cpu" = ia64; then
5343 symcode='[ABCDGIRSTW]'
5344 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5345 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'"
5346 fi
5347 ;;
5348 irix* | nonstopux*)
5349 symcode='[BCDEGRST]'
5350 ;;
5351 osf*)
5352 symcode='[BCDEGQRST]'
5353 ;;
5354 solaris*)
5355 symcode='[BDRT]'
5356 ;;
5357 sco3.2v5*)
5358 symcode='[DT]'
5359 ;;
5360 sysv4.2uw2*)
5361 symcode='[DT]'
5362 ;;
5363 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5364 symcode='[ABDT]'
5365 ;;
5366 sysv4)
5367 symcode='[DFNSTU]'
5368 ;;
5369 esac
5371 # Handle CRLF in mingw tool chain
5372 opt_cr=
5373 case $build_os in
5374 mingw*)
5375 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5376 ;;
5377 esac
5379 # If we're using GNU nm, then use its standard symbol codes.
5380 case `$NM -V 2>&1` in
5381 *GNU* | *'with BFD'*)
5382 symcode='[ABCDGIRSTW]' ;;
5383 esac
5385 # Try without a prefix undercore, then with it.
5386 for ac_symprfx in "" "_"; do
5388 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5389 symxfrm="\\1 $ac_symprfx\\2 \\2"
5391 # Write the raw and C identifiers.
5392 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5394 # Check to see that the pipe works correctly.
5395 pipe_works=no
5397 rm -f conftest*
5398 cat > conftest.$ac_ext <<EOF
5399 #ifdef __cplusplus
5400 extern "C" {
5401 #endif
5402 char nm_test_var;
5403 void nm_test_func(){}
5404 #ifdef __cplusplus
5405 }
5406 #endif
5407 int main(){nm_test_var='a';nm_test_func();return(0);}
5408 EOF
5410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5411 (eval $ac_compile) 2>&5
5412 ac_status=$?
5413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414 (exit $ac_status); }; then
5415 # Now try to grab the symbols.
5416 nlist=conftest.nm
5417 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5418 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5419 ac_status=$?
5420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5421 (exit $ac_status); } && test -s "$nlist"; then
5422 # Try sorting and uniquifying the output.
5423 if sort "$nlist" | uniq > "$nlist"T; then
5424 mv -f "$nlist"T "$nlist"
5425 else
5426 rm -f "$nlist"T
5427 fi
5429 # Make sure that we snagged all the symbols we need.
5430 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5431 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5432 cat <<EOF > conftest.$ac_ext
5433 #ifdef __cplusplus
5434 extern "C" {
5435 #endif
5437 EOF
5438 # Now generate the symbol file.
5439 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5441 cat <<EOF >> conftest.$ac_ext
5442 #if defined (__STDC__) && __STDC__
5443 # define lt_ptr_t void *
5444 #else
5445 # define lt_ptr_t char *
5446 # define const
5447 #endif
5449 /* The mapping between symbol names and symbols. */
5450 const struct {
5451 const char *name;
5452 lt_ptr_t address;
5453 }
5454 lt_preloaded_symbols[] =
5455 {
5456 EOF
5457 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5458 cat <<\EOF >> conftest.$ac_ext
5459 {0, (lt_ptr_t) 0}
5460 };
5462 #ifdef __cplusplus
5463 }
5464 #endif
5465 EOF
5466 # Now try linking the two files.
5467 mv conftest.$ac_objext conftstm.$ac_objext
5468 lt_save_LIBS="$LIBS"
5469 lt_save_CFLAGS="$CFLAGS"
5470 LIBS="conftstm.$ac_objext"
5471 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5473 (eval $ac_link) 2>&5
5474 ac_status=$?
5475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5477 pipe_works=yes
5478 fi
5479 LIBS="$lt_save_LIBS"
5480 CFLAGS="$lt_save_CFLAGS"
5481 else
5482 echo "cannot find nm_test_func in $nlist" >&5
5483 fi
5484 else
5485 echo "cannot find nm_test_var in $nlist" >&5
5486 fi
5487 else
5488 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5489 fi
5490 else
5491 echo "$progname: failed program was:" >&5
5492 cat conftest.$ac_ext >&5
5493 fi
5494 rm -f conftest* conftst*
5496 # Do not use the global_symbol_pipe unless it works.
5497 if test "$pipe_works" = yes; then
5498 break
5499 else
5500 lt_cv_sys_global_symbol_pipe=
5501 fi
5502 done
5504 fi
5506 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5507 lt_cv_sys_global_symbol_to_cdecl=
5508 fi
5509 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5510 echo "$as_me:$LINENO: result: failed" >&5
5511 echo "${ECHO_T}failed" >&6
5512 else
5513 echo "$as_me:$LINENO: result: ok" >&5
5514 echo "${ECHO_T}ok" >&6
5515 fi
5517 echo "$as_me:$LINENO: checking for objdir" >&5
5518 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5519 if test "${lt_cv_objdir+set}" = set; then
5520 echo $ECHO_N "(cached) $ECHO_C" >&6
5521 else
5522 rm -f .libs 2>/dev/null
5523 mkdir .libs 2>/dev/null
5524 if test -d .libs; then
5525 lt_cv_objdir=.libs
5526 else
5527 # MS-DOS does not allow filenames that begin with a dot.
5528 lt_cv_objdir=_libs
5529 fi
5530 rmdir .libs 2>/dev/null
5531 fi
5532 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5533 echo "${ECHO_T}$lt_cv_objdir" >&6
5534 objdir=$lt_cv_objdir
5540 case $host_os in
5541 aix3*)
5542 # AIX sometimes has problems with the GCC collect2 program. For some
5543 # reason, if we set the COLLECT_NAMES environment variable, the problems
5544 # vanish in a puff of smoke.
5545 if test "X${COLLECT_NAMES+set}" != Xset; then
5546 COLLECT_NAMES=
5547 export COLLECT_NAMES
5548 fi
5549 ;;
5550 esac
5552 # Sed substitution that helps us do robust quoting. It backslashifies
5553 # metacharacters that are still active within double-quoted strings.
5554 Xsed='sed -e 1s/^X//'
5555 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5557 # Same as above, but do not quote variable references.
5558 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5560 # Sed substitution to delay expansion of an escaped shell variable in a
5561 # double_quote_subst'ed string.
5562 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5564 # Sed substitution to avoid accidental globbing in evaled expressions
5565 no_glob_subst='s/\*/\\\*/g'
5567 # Constants:
5568 rm="rm -f"
5570 # Global variables:
5571 default_ofile=libtool
5572 can_build_shared=yes
5574 # All known linkers require a `.a' archive for static linking (except MSVC,
5575 # which needs '.lib').
5576 libext=a
5577 ltmain="$ac_aux_dir/ltmain.sh"
5578 ofile="$default_ofile"
5579 with_gnu_ld="$lt_cv_prog_gnu_ld"
5581 if test -n "$ac_tool_prefix"; then
5582 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5583 set dummy ${ac_tool_prefix}ar; ac_word=$2
5584 echo "$as_me:$LINENO: checking for $ac_word" >&5
5585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5586 if test "${ac_cv_prog_AR+set}" = set; then
5587 echo $ECHO_N "(cached) $ECHO_C" >&6
5588 else
5589 if test -n "$AR"; then
5590 ac_cv_prog_AR="$AR" # Let the user override the test.
5591 else
5592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5593 for as_dir in $PATH
5594 do
5595 IFS=$as_save_IFS
5596 test -z "$as_dir" && as_dir=.
5597 for ac_exec_ext in '' $ac_executable_extensions; do
5598 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5599 ac_cv_prog_AR="${ac_tool_prefix}ar"
5600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5601 break 2
5602 fi
5603 done
5604 done
5606 fi
5607 fi
5608 AR=$ac_cv_prog_AR
5609 if test -n "$AR"; then
5610 echo "$as_me:$LINENO: result: $AR" >&5
5611 echo "${ECHO_T}$AR" >&6
5612 else
5613 echo "$as_me:$LINENO: result: no" >&5
5614 echo "${ECHO_T}no" >&6
5615 fi
5617 fi
5618 if test -z "$ac_cv_prog_AR"; then
5619 ac_ct_AR=$AR
5620 # Extract the first word of "ar", so it can be a program name with args.
5621 set dummy ar; ac_word=$2
5622 echo "$as_me:$LINENO: checking for $ac_word" >&5
5623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5624 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5625 echo $ECHO_N "(cached) $ECHO_C" >&6
5626 else
5627 if test -n "$ac_ct_AR"; then
5628 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5629 else
5630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5631 for as_dir in $PATH
5632 do
5633 IFS=$as_save_IFS
5634 test -z "$as_dir" && as_dir=.
5635 for ac_exec_ext in '' $ac_executable_extensions; do
5636 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5637 ac_cv_prog_ac_ct_AR="ar"
5638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5639 break 2
5640 fi
5641 done
5642 done
5644 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5645 fi
5646 fi
5647 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5648 if test -n "$ac_ct_AR"; then
5649 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5650 echo "${ECHO_T}$ac_ct_AR" >&6
5651 else
5652 echo "$as_me:$LINENO: result: no" >&5
5653 echo "${ECHO_T}no" >&6
5654 fi
5656 AR=$ac_ct_AR
5657 else
5658 AR="$ac_cv_prog_AR"
5659 fi
5661 if test -n "$ac_tool_prefix"; then
5662 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5663 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5664 echo "$as_me:$LINENO: checking for $ac_word" >&5
5665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5666 if test "${ac_cv_prog_RANLIB+set}" = set; then
5667 echo $ECHO_N "(cached) $ECHO_C" >&6
5668 else
5669 if test -n "$RANLIB"; then
5670 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5671 else
5672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5673 for as_dir in $PATH
5674 do
5675 IFS=$as_save_IFS
5676 test -z "$as_dir" && as_dir=.
5677 for ac_exec_ext in '' $ac_executable_extensions; do
5678 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5679 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5681 break 2
5682 fi
5683 done
5684 done
5686 fi
5687 fi
5688 RANLIB=$ac_cv_prog_RANLIB
5689 if test -n "$RANLIB"; then
5690 echo "$as_me:$LINENO: result: $RANLIB" >&5
5691 echo "${ECHO_T}$RANLIB" >&6
5692 else
5693 echo "$as_me:$LINENO: result: no" >&5
5694 echo "${ECHO_T}no" >&6
5695 fi
5697 fi
5698 if test -z "$ac_cv_prog_RANLIB"; then
5699 ac_ct_RANLIB=$RANLIB
5700 # Extract the first word of "ranlib", so it can be a program name with args.
5701 set dummy ranlib; ac_word=$2
5702 echo "$as_me:$LINENO: checking for $ac_word" >&5
5703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5704 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5705 echo $ECHO_N "(cached) $ECHO_C" >&6
5706 else
5707 if test -n "$ac_ct_RANLIB"; then
5708 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5709 else
5710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5711 for as_dir in $PATH
5712 do
5713 IFS=$as_save_IFS
5714 test -z "$as_dir" && as_dir=.
5715 for ac_exec_ext in '' $ac_executable_extensions; do
5716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5717 ac_cv_prog_ac_ct_RANLIB="ranlib"
5718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5719 break 2
5720 fi
5721 done
5722 done
5724 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5725 fi
5726 fi
5727 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5728 if test -n "$ac_ct_RANLIB"; then
5729 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5730 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5731 else
5732 echo "$as_me:$LINENO: result: no" >&5
5733 echo "${ECHO_T}no" >&6
5734 fi
5736 RANLIB=$ac_ct_RANLIB
5737 else
5738 RANLIB="$ac_cv_prog_RANLIB"
5739 fi
5741 if test -n "$ac_tool_prefix"; then
5742 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5743 set dummy ${ac_tool_prefix}strip; ac_word=$2
5744 echo "$as_me:$LINENO: checking for $ac_word" >&5
5745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5746 if test "${ac_cv_prog_STRIP+set}" = set; then
5747 echo $ECHO_N "(cached) $ECHO_C" >&6
5748 else
5749 if test -n "$STRIP"; then
5750 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5751 else
5752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5753 for as_dir in $PATH
5754 do
5755 IFS=$as_save_IFS
5756 test -z "$as_dir" && as_dir=.
5757 for ac_exec_ext in '' $ac_executable_extensions; do
5758 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5759 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5761 break 2
5762 fi
5763 done
5764 done
5766 fi
5767 fi
5768 STRIP=$ac_cv_prog_STRIP
5769 if test -n "$STRIP"; then
5770 echo "$as_me:$LINENO: result: $STRIP" >&5
5771 echo "${ECHO_T}$STRIP" >&6
5772 else
5773 echo "$as_me:$LINENO: result: no" >&5
5774 echo "${ECHO_T}no" >&6
5775 fi
5777 fi
5778 if test -z "$ac_cv_prog_STRIP"; then
5779 ac_ct_STRIP=$STRIP
5780 # Extract the first word of "strip", so it can be a program name with args.
5781 set dummy strip; ac_word=$2
5782 echo "$as_me:$LINENO: checking for $ac_word" >&5
5783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5784 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5785 echo $ECHO_N "(cached) $ECHO_C" >&6
5786 else
5787 if test -n "$ac_ct_STRIP"; then
5788 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5789 else
5790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5791 for as_dir in $PATH
5792 do
5793 IFS=$as_save_IFS
5794 test -z "$as_dir" && as_dir=.
5795 for ac_exec_ext in '' $ac_executable_extensions; do
5796 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5797 ac_cv_prog_ac_ct_STRIP="strip"
5798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5799 break 2
5800 fi
5801 done
5802 done
5804 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5805 fi
5806 fi
5807 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5808 if test -n "$ac_ct_STRIP"; then
5809 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5810 echo "${ECHO_T}$ac_ct_STRIP" >&6
5811 else
5812 echo "$as_me:$LINENO: result: no" >&5
5813 echo "${ECHO_T}no" >&6
5814 fi
5816 STRIP=$ac_ct_STRIP
5817 else
5818 STRIP="$ac_cv_prog_STRIP"
5819 fi
5822 old_CC="$CC"
5823 old_CFLAGS="$CFLAGS"
5825 # Set sane defaults for various variables
5826 test -z "$AR" && AR=ar
5827 test -z "$AR_FLAGS" && AR_FLAGS=cru
5828 test -z "$AS" && AS=as
5829 test -z "$CC" && CC=cc
5830 test -z "$LTCC" && LTCC=$CC
5831 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
5832 test -z "$DLLTOOL" && DLLTOOL=dlltool
5833 test -z "$LD" && LD=ld
5834 test -z "$LN_S" && LN_S="ln -s"
5835 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5836 test -z "$NM" && NM=nm
5837 test -z "$SED" && SED=sed
5838 test -z "$OBJDUMP" && OBJDUMP=objdump
5839 test -z "$RANLIB" && RANLIB=:
5840 test -z "$STRIP" && STRIP=:
5841 test -z "$ac_objext" && ac_objext=o
5843 # Determine commands to create old-style static archives.
5844 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5845 old_postinstall_cmds='chmod 644 $oldlib'
5846 old_postuninstall_cmds=
5848 if test -n "$RANLIB"; then
5849 case $host_os in
5850 openbsd*)
5851 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5852 ;;
5853 *)
5854 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5855 ;;
5856 esac
5857 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5858 fi
5860 for cc_temp in $compiler""; do
5861 case $cc_temp in
5862 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5863 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5864 \-*) ;;
5865 *) break;;
5866 esac
5867 done
5868 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
5871 # Only perform the check for file, if the check method requires it
5872 case $deplibs_check_method in
5873 file_magic*)
5874 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5875 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5876 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5877 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5878 echo $ECHO_N "(cached) $ECHO_C" >&6
5879 else
5880 case $MAGIC_CMD in
5881 [\\/*] | ?:[\\/]*)
5882 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5883 ;;
5884 *)
5885 lt_save_MAGIC_CMD="$MAGIC_CMD"
5886 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5887 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5888 for ac_dir in $ac_dummy; do
5889 IFS="$lt_save_ifs"
5890 test -z "$ac_dir" && ac_dir=.
5891 if test -f $ac_dir/${ac_tool_prefix}file; then
5892 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5893 if test -n "$file_magic_test_file"; then
5894 case $deplibs_check_method in
5895 "file_magic "*)
5896 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5897 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5898 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5899 $EGREP "$file_magic_regex" > /dev/null; then
5900 :
5901 else
5902 cat <<EOF 1>&2
5904 *** Warning: the command libtool uses to detect shared libraries,
5905 *** $file_magic_cmd, produces output that libtool cannot recognize.
5906 *** The result is that libtool may fail to recognize shared libraries
5907 *** as such. This will affect the creation of libtool libraries that
5908 *** depend on shared libraries, but programs linked with such libtool
5909 *** libraries will work regardless of this problem. Nevertheless, you
5910 *** may want to report the problem to your system manager and/or to
5911 *** bug-libtool@gnu.org
5913 EOF
5914 fi ;;
5915 esac
5916 fi
5917 break
5918 fi
5919 done
5920 IFS="$lt_save_ifs"
5921 MAGIC_CMD="$lt_save_MAGIC_CMD"
5922 ;;
5923 esac
5924 fi
5926 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5927 if test -n "$MAGIC_CMD"; then
5928 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5929 echo "${ECHO_T}$MAGIC_CMD" >&6
5930 else
5931 echo "$as_me:$LINENO: result: no" >&5
5932 echo "${ECHO_T}no" >&6
5933 fi
5935 if test -z "$lt_cv_path_MAGIC_CMD"; then
5936 if test -n "$ac_tool_prefix"; then
5937 echo "$as_me:$LINENO: checking for file" >&5
5938 echo $ECHO_N "checking for file... $ECHO_C" >&6
5939 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5940 echo $ECHO_N "(cached) $ECHO_C" >&6
5941 else
5942 case $MAGIC_CMD in
5943 [\\/*] | ?:[\\/]*)
5944 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5945 ;;
5946 *)
5947 lt_save_MAGIC_CMD="$MAGIC_CMD"
5948 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5949 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5950 for ac_dir in $ac_dummy; do
5951 IFS="$lt_save_ifs"
5952 test -z "$ac_dir" && ac_dir=.
5953 if test -f $ac_dir/file; then
5954 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5955 if test -n "$file_magic_test_file"; then
5956 case $deplibs_check_method in
5957 "file_magic "*)
5958 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5959 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5960 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5961 $EGREP "$file_magic_regex" > /dev/null; then
5962 :
5963 else
5964 cat <<EOF 1>&2
5966 *** Warning: the command libtool uses to detect shared libraries,
5967 *** $file_magic_cmd, produces output that libtool cannot recognize.
5968 *** The result is that libtool may fail to recognize shared libraries
5969 *** as such. This will affect the creation of libtool libraries that
5970 *** depend on shared libraries, but programs linked with such libtool
5971 *** libraries will work regardless of this problem. Nevertheless, you
5972 *** may want to report the problem to your system manager and/or to
5973 *** bug-libtool@gnu.org
5975 EOF
5976 fi ;;
5977 esac
5978 fi
5979 break
5980 fi
5981 done
5982 IFS="$lt_save_ifs"
5983 MAGIC_CMD="$lt_save_MAGIC_CMD"
5984 ;;
5985 esac
5986 fi
5988 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5989 if test -n "$MAGIC_CMD"; then
5990 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5991 echo "${ECHO_T}$MAGIC_CMD" >&6
5992 else
5993 echo "$as_me:$LINENO: result: no" >&5
5994 echo "${ECHO_T}no" >&6
5995 fi
5997 else
5998 MAGIC_CMD=:
5999 fi
6000 fi
6002 fi
6003 ;;
6004 esac
6006 enable_dlopen=no
6007 enable_win32_dll=no
6009 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6010 if test "${enable_libtool_lock+set}" = set; then
6011 enableval="$enable_libtool_lock"
6013 fi;
6014 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6017 # Check whether --with-pic or --without-pic was given.
6018 if test "${with_pic+set}" = set; then
6019 withval="$with_pic"
6020 pic_mode="$withval"
6021 else
6022 pic_mode=default
6023 fi;
6024 test -z "$pic_mode" && pic_mode=default
6026 # Use C for the default configuration in the libtool script
6027 tagname=
6028 lt_save_CC="$CC"
6029 ac_ext=c
6030 ac_cpp='$CPP $CPPFLAGS'
6031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6036 # Source file extension for C test sources.
6037 ac_ext=c
6039 # Object file extension for compiled C test sources.
6040 objext=o
6041 objext=$objext
6043 # Code to be used in simple compile tests
6044 lt_simple_compile_test_code="int some_variable = 0;\n"
6046 # Code to be used in simple link tests
6047 lt_simple_link_test_code='int main(){return(0);}\n'
6050 # If no C compiler was specified, use CC.
6051 LTCC=${LTCC-"$CC"}
6053 # If no C compiler flags were specified, use CFLAGS.
6054 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6056 # Allow CC to be a program name with arguments.
6057 compiler=$CC
6060 # save warnings/boilerplate of simple test code
6061 ac_outfile=conftest.$ac_objext
6062 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6063 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6064 _lt_compiler_boilerplate=`cat conftest.err`
6065 $rm conftest*
6067 ac_outfile=conftest.$ac_objext
6068 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6069 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6070 _lt_linker_boilerplate=`cat conftest.err`
6071 $rm conftest*
6075 lt_prog_compiler_no_builtin_flag=
6077 if test "$GCC" = yes; then
6078 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6081 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6082 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6083 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6084 echo $ECHO_N "(cached) $ECHO_C" >&6
6085 else
6086 lt_cv_prog_compiler_rtti_exceptions=no
6087 ac_outfile=conftest.$ac_objext
6088 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6089 lt_compiler_flag="-fno-rtti -fno-exceptions"
6090 # Insert the option either (1) after the last *FLAGS variable, or
6091 # (2) before a word containing "conftest.", or (3) at the end.
6092 # Note that $ac_compile itself does not contain backslashes and begins
6093 # with a dollar sign (not a hyphen), so the echo should work correctly.
6094 # The option is referenced via a variable to avoid confusing sed.
6095 lt_compile=`echo "$ac_compile" | $SED \
6096 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6097 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6098 -e 's:$: $lt_compiler_flag:'`
6099 (eval echo "\"\$as_me:6099: $lt_compile\"" >&5)
6100 (eval "$lt_compile" 2>conftest.err)
6101 ac_status=$?
6102 cat conftest.err >&5
6103 echo "$as_me:6103: \$? = $ac_status" >&5
6104 if (exit $ac_status) && test -s "$ac_outfile"; then
6105 # The compiler can only warn and ignore the option if not recognized
6106 # So say no if there are warnings other than the usual output.
6107 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6108 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6109 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6110 lt_cv_prog_compiler_rtti_exceptions=yes
6111 fi
6112 fi
6113 $rm conftest*
6115 fi
6116 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6117 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6119 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6120 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6121 else
6122 :
6123 fi
6125 fi
6127 lt_prog_compiler_wl=
6128 lt_prog_compiler_pic=
6129 lt_prog_compiler_static=
6131 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6132 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6134 if test "$GCC" = yes; then
6135 lt_prog_compiler_wl='-Wl,'
6136 lt_prog_compiler_static='-static'
6138 case $host_os in
6139 aix*)
6140 # All AIX code is PIC.
6141 if test "$host_cpu" = ia64; then
6142 # AIX 5 now supports IA64 processor
6143 lt_prog_compiler_static='-Bstatic'
6144 fi
6145 ;;
6147 amigaos*)
6148 # FIXME: we need at least 68020 code to build shared libraries, but
6149 # adding the `-m68020' flag to GCC prevents building anything better,
6150 # like `-m68040'.
6151 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6152 ;;
6154 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6155 # PIC is the default for these OSes.
6156 ;;
6158 mingw* | pw32* | os2*)
6159 # This hack is so that the source file can tell whether it is being
6160 # built for inclusion in a dll (and should export symbols for example).
6161 lt_prog_compiler_pic='-DDLL_EXPORT'
6162 ;;
6164 darwin* | rhapsody*)
6165 # PIC is the default on this platform
6166 # Common symbols not allowed in MH_DYLIB files
6167 lt_prog_compiler_pic='-fno-common'
6168 ;;
6170 interix3*)
6171 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6172 # Instead, we relocate shared libraries at runtime.
6173 ;;
6175 msdosdjgpp*)
6176 # Just because we use GCC doesn't mean we suddenly get shared libraries
6177 # on systems that don't support them.
6178 lt_prog_compiler_can_build_shared=no
6179 enable_shared=no
6180 ;;
6182 sysv4*MP*)
6183 if test -d /usr/nec; then
6184 lt_prog_compiler_pic=-Kconform_pic
6185 fi
6186 ;;
6188 hpux*)
6189 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6190 # not for PA HP-UX.
6191 case $host_cpu in
6192 hppa*64*|ia64*)
6193 # +Z the default
6194 ;;
6195 *)
6196 lt_prog_compiler_pic='-fPIC'
6197 ;;
6198 esac
6199 ;;
6201 *)
6202 lt_prog_compiler_pic='-fPIC'
6203 ;;
6204 esac
6205 else
6206 # PORTME Check for flag to pass linker flags through the system compiler.
6207 case $host_os in
6208 aix*)
6209 lt_prog_compiler_wl='-Wl,'
6210 if test "$host_cpu" = ia64; then
6211 # AIX 5 now supports IA64 processor
6212 lt_prog_compiler_static='-Bstatic'
6213 else
6214 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6215 fi
6216 ;;
6217 darwin*)
6218 # PIC is the default on this platform
6219 # Common symbols not allowed in MH_DYLIB files
6220 case $cc_basename in
6221 xlc*)
6222 lt_prog_compiler_pic='-qnocommon'
6223 lt_prog_compiler_wl='-Wl,'
6224 ;;
6225 esac
6226 ;;
6228 mingw* | pw32* | os2*)
6229 # This hack is so that the source file can tell whether it is being
6230 # built for inclusion in a dll (and should export symbols for example).
6231 lt_prog_compiler_pic='-DDLL_EXPORT'
6232 ;;
6234 hpux9* | hpux10* | hpux11*)
6235 lt_prog_compiler_wl='-Wl,'
6236 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6237 # not for PA HP-UX.
6238 case $host_cpu in
6239 hppa*64*|ia64*)
6240 # +Z the default
6241 ;;
6242 *)
6243 lt_prog_compiler_pic='+Z'
6244 ;;
6245 esac
6246 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6247 lt_prog_compiler_static='${wl}-a ${wl}archive'
6248 ;;
6250 irix5* | irix6* | nonstopux*)
6251 lt_prog_compiler_wl='-Wl,'
6252 # PIC (with -KPIC) is the default.
6253 lt_prog_compiler_static='-non_shared'
6254 ;;
6256 newsos6)
6257 lt_prog_compiler_pic='-KPIC'
6258 lt_prog_compiler_static='-Bstatic'
6259 ;;
6261 linux*)
6262 case $cc_basename in
6263 icc* | ecc*)
6264 lt_prog_compiler_wl='-Wl,'
6265 lt_prog_compiler_pic='-KPIC'
6266 lt_prog_compiler_static='-static'
6267 ;;
6268 pgcc* | pgf77* | pgf90* | pgf95*)
6269 # Portland Group compilers (*not* the Pentium gcc compiler,
6270 # which looks to be a dead project)
6271 lt_prog_compiler_wl='-Wl,'
6272 lt_prog_compiler_pic='-fpic'
6273 lt_prog_compiler_static='-Bstatic'
6274 ;;
6275 ccc*)
6276 lt_prog_compiler_wl='-Wl,'
6277 # All Alpha code is PIC.
6278 lt_prog_compiler_static='-non_shared'
6279 ;;
6280 esac
6281 ;;
6283 osf3* | osf4* | osf5*)
6284 lt_prog_compiler_wl='-Wl,'
6285 # All OSF/1 code is PIC.
6286 lt_prog_compiler_static='-non_shared'
6287 ;;
6289 solaris*)
6290 lt_prog_compiler_pic='-KPIC'
6291 lt_prog_compiler_static='-Bstatic'
6292 case $cc_basename in
6293 f77* | f90* | f95*)
6294 lt_prog_compiler_wl='-Qoption ld ';;
6295 *)
6296 lt_prog_compiler_wl='-Wl,';;
6297 esac
6298 ;;
6300 sunos4*)
6301 lt_prog_compiler_wl='-Qoption ld '
6302 lt_prog_compiler_pic='-PIC'
6303 lt_prog_compiler_static='-Bstatic'
6304 ;;
6306 sysv4 | sysv4.2uw2* | sysv4.3*)
6307 lt_prog_compiler_wl='-Wl,'
6308 lt_prog_compiler_pic='-KPIC'
6309 lt_prog_compiler_static='-Bstatic'
6310 ;;
6312 sysv4*MP*)
6313 if test -d /usr/nec ;then
6314 lt_prog_compiler_pic='-Kconform_pic'
6315 lt_prog_compiler_static='-Bstatic'
6316 fi
6317 ;;
6319 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6320 lt_prog_compiler_wl='-Wl,'
6321 lt_prog_compiler_pic='-KPIC'
6322 lt_prog_compiler_static='-Bstatic'
6323 ;;
6325 unicos*)
6326 lt_prog_compiler_wl='-Wl,'
6327 lt_prog_compiler_can_build_shared=no
6328 ;;
6330 uts4*)
6331 lt_prog_compiler_pic='-pic'
6332 lt_prog_compiler_static='-Bstatic'
6333 ;;
6335 *)
6336 lt_prog_compiler_can_build_shared=no
6337 ;;
6338 esac
6339 fi
6341 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6342 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6344 #
6345 # Check to make sure the PIC flag actually works.
6346 #
6347 if test -n "$lt_prog_compiler_pic"; then
6349 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6350 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6351 if test "${lt_prog_compiler_pic_works+set}" = set; then
6352 echo $ECHO_N "(cached) $ECHO_C" >&6
6353 else
6354 lt_prog_compiler_pic_works=no
6355 ac_outfile=conftest.$ac_objext
6356 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6357 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6358 # Insert the option either (1) after the last *FLAGS variable, or
6359 # (2) before a word containing "conftest.", or (3) at the end.
6360 # Note that $ac_compile itself does not contain backslashes and begins
6361 # with a dollar sign (not a hyphen), so the echo should work correctly.
6362 # The option is referenced via a variable to avoid confusing sed.
6363 lt_compile=`echo "$ac_compile" | $SED \
6364 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6365 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6366 -e 's:$: $lt_compiler_flag:'`
6367 (eval echo "\"\$as_me:6367: $lt_compile\"" >&5)
6368 (eval "$lt_compile" 2>conftest.err)
6369 ac_status=$?
6370 cat conftest.err >&5
6371 echo "$as_me:6371: \$? = $ac_status" >&5
6372 if (exit $ac_status) && test -s "$ac_outfile"; then
6373 # The compiler can only warn and ignore the option if not recognized
6374 # So say no if there are warnings other than the usual output.
6375 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6376 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6377 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6378 lt_prog_compiler_pic_works=yes
6379 fi
6380 fi
6381 $rm conftest*
6383 fi
6384 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6385 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6387 if test x"$lt_prog_compiler_pic_works" = xyes; then
6388 case $lt_prog_compiler_pic in
6389 "" | " "*) ;;
6390 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6391 esac
6392 else
6393 lt_prog_compiler_pic=
6394 lt_prog_compiler_can_build_shared=no
6395 fi
6397 fi
6398 case $host_os in
6399 # For platforms which do not support PIC, -DPIC is meaningless:
6400 *djgpp*)
6401 lt_prog_compiler_pic=
6402 ;;
6403 *)
6404 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6405 ;;
6406 esac
6408 #
6409 # Check to make sure the static flag actually works.
6410 #
6411 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6412 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6413 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6414 if test "${lt_prog_compiler_static_works+set}" = set; then
6415 echo $ECHO_N "(cached) $ECHO_C" >&6
6416 else
6417 lt_prog_compiler_static_works=no
6418 save_LDFLAGS="$LDFLAGS"
6419 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6420 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6421 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6422 # The linker can only warn and ignore the option if not recognized
6423 # So say no if there are warnings
6424 if test -s conftest.err; then
6425 # Append any errors to the config.log.
6426 cat conftest.err 1>&5
6427 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6428 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6429 if diff conftest.exp conftest.er2 >/dev/null; then
6430 lt_prog_compiler_static_works=yes
6431 fi
6432 else
6433 lt_prog_compiler_static_works=yes
6434 fi
6435 fi
6436 $rm conftest*
6437 LDFLAGS="$save_LDFLAGS"
6439 fi
6440 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6441 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6443 if test x"$lt_prog_compiler_static_works" = xyes; then
6444 :
6445 else
6446 lt_prog_compiler_static=
6447 fi
6450 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6451 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6452 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6453 echo $ECHO_N "(cached) $ECHO_C" >&6
6454 else
6455 lt_cv_prog_compiler_c_o=no
6456 $rm -r conftest 2>/dev/null
6457 mkdir conftest
6458 cd conftest
6459 mkdir out
6460 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6462 lt_compiler_flag="-o out/conftest2.$ac_objext"
6463 # Insert the option either (1) after the last *FLAGS variable, or
6464 # (2) before a word containing "conftest.", or (3) at the end.
6465 # Note that $ac_compile itself does not contain backslashes and begins
6466 # with a dollar sign (not a hyphen), so the echo should work correctly.
6467 lt_compile=`echo "$ac_compile" | $SED \
6468 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6469 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6470 -e 's:$: $lt_compiler_flag:'`
6471 (eval echo "\"\$as_me:6471: $lt_compile\"" >&5)
6472 (eval "$lt_compile" 2>out/conftest.err)
6473 ac_status=$?
6474 cat out/conftest.err >&5
6475 echo "$as_me:6475: \$? = $ac_status" >&5
6476 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6477 then
6478 # The compiler can only warn and ignore the option if not recognized
6479 # So say no if there are warnings
6480 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6481 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6482 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6483 lt_cv_prog_compiler_c_o=yes
6484 fi
6485 fi
6486 chmod u+w . 2>&5
6487 $rm conftest*
6488 # SGI C++ compiler will create directory out/ii_files/ for
6489 # template instantiation
6490 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6491 $rm out/* && rmdir out
6492 cd ..
6493 rmdir conftest
6494 $rm conftest*
6496 fi
6497 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6498 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6501 hard_links="nottested"
6502 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6503 # do not overwrite the value of need_locks provided by the user
6504 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6505 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6506 hard_links=yes
6507 $rm conftest*
6508 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6509 touch conftest.a
6510 ln conftest.a conftest.b 2>&5 || hard_links=no
6511 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6512 echo "$as_me:$LINENO: result: $hard_links" >&5
6513 echo "${ECHO_T}$hard_links" >&6
6514 if test "$hard_links" = no; then
6515 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6516 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6517 need_locks=warn
6518 fi
6519 else
6520 need_locks=no
6521 fi
6523 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6524 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6526 runpath_var=
6527 allow_undefined_flag=
6528 enable_shared_with_static_runtimes=no
6529 archive_cmds=
6530 archive_expsym_cmds=
6531 old_archive_From_new_cmds=
6532 old_archive_from_expsyms_cmds=
6533 export_dynamic_flag_spec=
6534 whole_archive_flag_spec=
6535 thread_safe_flag_spec=
6536 hardcode_libdir_flag_spec=
6537 hardcode_libdir_flag_spec_ld=
6538 hardcode_libdir_separator=
6539 hardcode_direct=no
6540 hardcode_minus_L=no
6541 hardcode_shlibpath_var=unsupported
6542 link_all_deplibs=unknown
6543 hardcode_automatic=no
6544 module_cmds=
6545 module_expsym_cmds=
6546 always_export_symbols=no
6547 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6548 # include_expsyms should be a list of space-separated symbols to be *always*
6549 # included in the symbol list
6550 include_expsyms=
6551 # exclude_expsyms can be an extended regexp of symbols to exclude
6552 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6553 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6554 # as well as any symbol that contains `d'.
6555 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6556 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6557 # platforms (ab)use it in PIC code, but their linkers get confused if
6558 # the symbol is explicitly referenced. Since portable code cannot
6559 # rely on this symbol name, it's probably fine to never include it in
6560 # preloaded symbol tables.
6561 extract_expsyms_cmds=
6562 # Just being paranoid about ensuring that cc_basename is set.
6563 for cc_temp in $compiler""; do
6564 case $cc_temp in
6565 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6566 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6567 \-*) ;;
6568 *) break;;
6569 esac
6570 done
6571 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6573 case $host_os in
6574 cygwin* | mingw* | pw32*)
6575 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6576 # When not using gcc, we currently assume that we are using
6577 # Microsoft Visual C++.
6578 if test "$GCC" != yes; then
6579 with_gnu_ld=no
6580 fi
6581 ;;
6582 interix*)
6583 # we just hope/assume this is gcc and not c89 (= MSVC++)
6584 with_gnu_ld=yes
6585 ;;
6586 openbsd*)
6587 with_gnu_ld=no
6588 ;;
6589 esac
6591 ld_shlibs=yes
6592 if test "$with_gnu_ld" = yes; then
6593 # If archive_cmds runs LD, not CC, wlarc should be empty
6594 wlarc='${wl}'
6596 # Set some defaults for GNU ld with shared library support. These
6597 # are reset later if shared libraries are not supported. Putting them
6598 # here allows them to be overridden if necessary.
6599 runpath_var=LD_RUN_PATH
6600 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6601 export_dynamic_flag_spec='${wl}--export-dynamic'
6602 # ancient GNU ld didn't support --whole-archive et. al.
6603 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6604 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6605 else
6606 whole_archive_flag_spec=
6607 fi
6608 supports_anon_versioning=no
6609 case `$LD -v 2>/dev/null` in
6610 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6611 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6612 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6613 *\ 2.11.*) ;; # other 2.11 versions
6614 *) supports_anon_versioning=yes ;;
6615 esac
6617 # See if GNU ld supports shared libraries.
6618 case $host_os in
6619 aix3* | aix4* | aix5*)
6620 # On AIX/PPC, the GNU linker is very broken
6621 if test "$host_cpu" != ia64; then
6622 ld_shlibs=no
6623 cat <<EOF 1>&2
6625 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6626 *** to be unable to reliably create shared libraries on AIX.
6627 *** Therefore, libtool is disabling shared libraries support. If you
6628 *** really care for shared libraries, you may want to modify your PATH
6629 *** so that a non-GNU linker is found, and then restart.
6631 EOF
6632 fi
6633 ;;
6635 amigaos*)
6636 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)'
6637 hardcode_libdir_flag_spec='-L$libdir'
6638 hardcode_minus_L=yes
6640 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6641 # that the semantics of dynamic libraries on AmigaOS, at least up
6642 # to version 4, is to share data among multiple programs linked
6643 # with the same dynamic library. Since this doesn't match the
6644 # behavior of shared libraries on other platforms, we can't use
6645 # them.
6646 ld_shlibs=no
6647 ;;
6649 beos*)
6650 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6651 allow_undefined_flag=unsupported
6652 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6653 # support --undefined. This deserves some investigation. FIXME
6654 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6655 else
6656 ld_shlibs=no
6657 fi
6658 ;;
6660 cygwin* | mingw* | pw32*)
6661 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6662 # as there is no search path for DLLs.
6663 hardcode_libdir_flag_spec='-L$libdir'
6664 allow_undefined_flag=unsupported
6665 always_export_symbols=no
6666 enable_shared_with_static_runtimes=yes
6667 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6669 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6670 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6671 # If the export-symbols file already is a .def file (1st line
6672 # is EXPORTS), use it as is; otherwise, prepend...
6673 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6674 cp $export_symbols $output_objdir/$soname.def;
6675 else
6676 echo EXPORTS > $output_objdir/$soname.def;
6677 cat $export_symbols >> $output_objdir/$soname.def;
6678 fi~
6679 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6680 else
6681 ld_shlibs=no
6682 fi
6683 ;;
6685 interix3*)
6686 hardcode_direct=no
6687 hardcode_shlibpath_var=no
6688 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6689 export_dynamic_flag_spec='${wl}-E'
6690 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6691 # Instead, shared libraries are loaded at an image base (0x10000000 by
6692 # default) and relocated if they conflict, which is a slow very memory
6693 # consuming and fragmenting process. To avoid this, we pick a random,
6694 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6695 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6696 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6697 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'
6698 ;;
6700 linux*)
6701 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6702 tmp_addflag=
6703 case $cc_basename,$host_cpu in
6704 pgcc*) # Portland Group C compiler
6705 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'
6706 tmp_addflag=' $pic_flag'
6707 ;;
6708 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
6709 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'
6710 tmp_addflag=' $pic_flag -Mnomain' ;;
6711 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6712 tmp_addflag=' -i_dynamic' ;;
6713 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6714 tmp_addflag=' -i_dynamic -nofor_main' ;;
6715 ifc* | ifort*) # Intel Fortran compiler
6716 tmp_addflag=' -nofor_main' ;;
6717 esac
6718 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6720 if test $supports_anon_versioning = yes; then
6721 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6722 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6723 $echo "local: *; };" >> $output_objdir/$libname.ver~
6724 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6725 fi
6726 else
6727 ld_shlibs=no
6728 fi
6729 ;;
6731 netbsd*)
6732 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6733 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6734 wlarc=
6735 else
6736 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6737 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6738 fi
6739 ;;
6741 solaris*)
6742 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6743 ld_shlibs=no
6744 cat <<EOF 1>&2
6746 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6747 *** create shared libraries on Solaris systems. Therefore, libtool
6748 *** is disabling shared libraries support. We urge you to upgrade GNU
6749 *** binutils to release 2.9.1 or newer. Another option is to modify
6750 *** your PATH or compiler configuration so that the native linker is
6751 *** used, and then restart.
6753 EOF
6754 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6755 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6756 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6757 else
6758 ld_shlibs=no
6759 fi
6760 ;;
6762 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6763 case `$LD -v 2>&1` in
6764 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
6765 ld_shlibs=no
6766 cat <<_LT_EOF 1>&2
6768 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6769 *** reliably create shared libraries on SCO systems. Therefore, libtool
6770 *** is disabling shared libraries support. We urge you to upgrade GNU
6771 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
6772 *** your PATH or compiler configuration so that the native linker is
6773 *** used, and then restart.
6775 _LT_EOF
6776 ;;
6777 *)
6778 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6779 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
6780 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
6781 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
6782 else
6783 ld_shlibs=no
6784 fi
6785 ;;
6786 esac
6787 ;;
6789 sunos4*)
6790 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6791 wlarc=
6792 hardcode_direct=yes
6793 hardcode_shlibpath_var=no
6794 ;;
6796 *)
6797 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6798 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6799 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6800 else
6801 ld_shlibs=no
6802 fi
6803 ;;
6804 esac
6806 if test "$ld_shlibs" = no; then
6807 runpath_var=
6808 hardcode_libdir_flag_spec=
6809 export_dynamic_flag_spec=
6810 whole_archive_flag_spec=
6811 fi
6812 else
6813 # PORTME fill in a description of your system's linker (not GNU ld)
6814 case $host_os in
6815 aix3*)
6816 allow_undefined_flag=unsupported
6817 always_export_symbols=yes
6818 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'
6819 # Note: this linker hardcodes the directories in LIBPATH if there
6820 # are no directories specified by -L.
6821 hardcode_minus_L=yes
6822 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
6823 # Neither direct hardcoding nor static linking is supported with a
6824 # broken collect2.
6825 hardcode_direct=unsupported
6826 fi
6827 ;;
6829 aix4* | aix5*)
6830 if test "$host_cpu" = ia64; then
6831 # On IA64, the linker does run time linking by default, so we don't
6832 # have to do anything special.
6833 aix_use_runtimelinking=no
6834 exp_sym_flag='-Bexport'
6835 no_entry_flag=""
6836 else
6837 # If we're using GNU nm, then we don't want the "-C" option.
6838 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6839 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6840 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'
6841 else
6842 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'
6843 fi
6844 aix_use_runtimelinking=no
6846 # Test if we are trying to use run time linking or normal
6847 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6848 # need to do runtime linking.
6849 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6850 for ld_flag in $LDFLAGS; do
6851 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6852 aix_use_runtimelinking=yes
6853 break
6854 fi
6855 done
6856 ;;
6857 esac
6859 exp_sym_flag='-bexport'
6860 no_entry_flag='-bnoentry'
6861 fi
6863 # When large executables or shared objects are built, AIX ld can
6864 # have problems creating the table of contents. If linking a library
6865 # or program results in "error TOC overflow" add -mminimal-toc to
6866 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6867 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6869 archive_cmds=''
6870 hardcode_direct=yes
6871 hardcode_libdir_separator=':'
6872 link_all_deplibs=yes
6874 if test "$GCC" = yes; then
6875 case $host_os in aix4.[012]|aix4.[012].*)
6876 # We only want to do this on AIX 4.2 and lower, the check
6877 # below for broken collect2 doesn't work under 4.3+
6878 collect2name=`${CC} -print-prog-name=collect2`
6879 if test -f "$collect2name" && \
6880 strings "$collect2name" | grep resolve_lib_name >/dev/null
6881 then
6882 # We have reworked collect2
6883 hardcode_direct=yes
6884 else
6885 # We have old collect2
6886 hardcode_direct=unsupported
6887 # It fails to find uninstalled libraries when the uninstalled
6888 # path is not listed in the libpath. Setting hardcode_minus_L
6889 # to unsupported forces relinking
6890 hardcode_minus_L=yes
6891 hardcode_libdir_flag_spec='-L$libdir'
6892 hardcode_libdir_separator=
6893 fi
6894 ;;
6895 esac
6896 shared_flag='-shared'
6897 if test "$aix_use_runtimelinking" = yes; then
6898 shared_flag="$shared_flag "'${wl}-G'
6899 fi
6900 else
6901 # not using gcc
6902 if test "$host_cpu" = ia64; then
6903 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6904 # chokes on -Wl,-G. The following line is correct:
6905 shared_flag='-G'
6906 else
6907 if test "$aix_use_runtimelinking" = yes; then
6908 shared_flag='${wl}-G'
6909 else
6910 shared_flag='${wl}-bM:SRE'
6911 fi
6912 fi
6913 fi
6915 # It seems that -bexpall does not export symbols beginning with
6916 # underscore (_), so it is better to generate a list of symbols to export.
6917 always_export_symbols=yes
6918 if test "$aix_use_runtimelinking" = yes; then
6919 # Warning - without using the other runtime loading flags (-brtl),
6920 # -berok will link without error, but may produce a broken library.
6921 allow_undefined_flag='-berok'
6922 # Determine the default libpath from the value encoded in an empty executable.
6923 cat >conftest.$ac_ext <<_ACEOF
6924 /* confdefs.h. */
6925 _ACEOF
6926 cat confdefs.h >>conftest.$ac_ext
6927 cat >>conftest.$ac_ext <<_ACEOF
6928 /* end confdefs.h. */
6930 int
6931 main ()
6932 {
6934 ;
6935 return 0;
6936 }
6937 _ACEOF
6938 rm -f conftest.$ac_objext conftest$ac_exeext
6939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6940 (eval $ac_link) 2>conftest.er1
6941 ac_status=$?
6942 grep -v '^ *+' conftest.er1 >conftest.err
6943 rm -f conftest.er1
6944 cat conftest.err >&5
6945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946 (exit $ac_status); } &&
6947 { ac_try='test -z "$ac_c_werror_flag"
6948 || test ! -s conftest.err'
6949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6950 (eval $ac_try) 2>&5
6951 ac_status=$?
6952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953 (exit $ac_status); }; } &&
6954 { ac_try='test -s conftest$ac_exeext'
6955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6956 (eval $ac_try) 2>&5
6957 ac_status=$?
6958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959 (exit $ac_status); }; }; then
6961 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6962 }'`
6963 # Check for a 64-bit object if we didn't find anything.
6964 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; }
6965 }'`; fi
6966 else
6967 echo "$as_me: failed program was:" >&5
6968 sed 's/^/| /' conftest.$ac_ext >&5
6970 fi
6971 rm -f conftest.err conftest.$ac_objext \
6972 conftest$ac_exeext conftest.$ac_ext
6973 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6975 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6976 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"
6977 else
6978 if test "$host_cpu" = ia64; then
6979 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6980 allow_undefined_flag="-z nodefs"
6981 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"
6982 else
6983 # Determine the default libpath from the value encoded in an empty executable.
6984 cat >conftest.$ac_ext <<_ACEOF
6985 /* confdefs.h. */
6986 _ACEOF
6987 cat confdefs.h >>conftest.$ac_ext
6988 cat >>conftest.$ac_ext <<_ACEOF
6989 /* end confdefs.h. */
6991 int
6992 main ()
6993 {
6995 ;
6996 return 0;
6997 }
6998 _ACEOF
6999 rm -f conftest.$ac_objext conftest$ac_exeext
7000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7001 (eval $ac_link) 2>conftest.er1
7002 ac_status=$?
7003 grep -v '^ *+' conftest.er1 >conftest.err
7004 rm -f conftest.er1
7005 cat conftest.err >&5
7006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7007 (exit $ac_status); } &&
7008 { ac_try='test -z "$ac_c_werror_flag"
7009 || test ! -s conftest.err'
7010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7011 (eval $ac_try) 2>&5
7012 ac_status=$?
7013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7014 (exit $ac_status); }; } &&
7015 { ac_try='test -s conftest$ac_exeext'
7016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7017 (eval $ac_try) 2>&5
7018 ac_status=$?
7019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020 (exit $ac_status); }; }; then
7022 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7023 }'`
7024 # Check for a 64-bit object if we didn't find anything.
7025 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; }
7026 }'`; fi
7027 else
7028 echo "$as_me: failed program was:" >&5
7029 sed 's/^/| /' conftest.$ac_ext >&5
7031 fi
7032 rm -f conftest.err conftest.$ac_objext \
7033 conftest$ac_exeext conftest.$ac_ext
7034 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7036 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7037 # Warning - without using the other run time loading flags,
7038 # -berok will link without error, but may produce a broken library.
7039 no_undefined_flag=' ${wl}-bernotok'
7040 allow_undefined_flag=' ${wl}-berok'
7041 # Exported symbols can be pulled into shared objects from archives
7042 whole_archive_flag_spec='$convenience'
7043 archive_cmds_need_lc=yes
7044 # This is similar to how AIX traditionally builds its shared libraries.
7045 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'
7046 fi
7047 fi
7048 ;;
7050 amigaos*)
7051 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)'
7052 hardcode_libdir_flag_spec='-L$libdir'
7053 hardcode_minus_L=yes
7054 # see comment about different semantics on the GNU ld section
7055 ld_shlibs=no
7056 ;;
7058 bsdi[45]*)
7059 export_dynamic_flag_spec=-rdynamic
7060 ;;
7062 cygwin* | mingw* | pw32*)
7063 # When not using gcc, we currently assume that we are using
7064 # Microsoft Visual C++.
7065 # hardcode_libdir_flag_spec is actually meaningless, as there is
7066 # no search path for DLLs.
7067 hardcode_libdir_flag_spec=' '
7068 allow_undefined_flag=unsupported
7069 # Tell ltmain to make .lib files, not .a files.
7070 libext=lib
7071 # Tell ltmain to make .dll files, not .so files.
7072 shrext_cmds=".dll"
7073 # FIXME: Setting linknames here is a bad hack.
7074 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7075 # The linker will automatically build a .lib file if we build a DLL.
7076 old_archive_From_new_cmds='true'
7077 # FIXME: Should let the user specify the lib program.
7078 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7079 fix_srcfile_path='`cygpath -w "$srcfile"`'
7080 enable_shared_with_static_runtimes=yes
7081 ;;
7083 darwin* | rhapsody*)
7084 case $host_os in
7085 rhapsody* | darwin1.[012])
7086 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7087 ;;
7088 *) # Darwin 1.3 on
7089 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7090 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7091 else
7092 case ${MACOSX_DEPLOYMENT_TARGET} in
7093 10.[012])
7094 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7095 ;;
7096 10.*)
7097 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7098 ;;
7099 esac
7100 fi
7101 ;;
7102 esac
7103 archive_cmds_need_lc=no
7104 hardcode_direct=no
7105 hardcode_automatic=yes
7106 hardcode_shlibpath_var=unsupported
7107 whole_archive_flag_spec=''
7108 link_all_deplibs=yes
7109 if test "$GCC" = yes ; then
7110 output_verbose_link_cmd='echo'
7111 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7112 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7113 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7114 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}'
7115 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}'
7116 else
7117 case $cc_basename in
7118 xlc*)
7119 output_verbose_link_cmd='echo'
7120 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7121 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7122 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7123 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}'
7124 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}'
7125 ;;
7126 *)
7127 ld_shlibs=no
7128 ;;
7129 esac
7130 fi
7131 ;;
7133 dgux*)
7134 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7135 hardcode_libdir_flag_spec='-L$libdir'
7136 hardcode_shlibpath_var=no
7137 ;;
7139 freebsd1*)
7140 ld_shlibs=no
7141 ;;
7143 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7144 # support. Future versions do this automatically, but an explicit c++rt0.o
7145 # does not break anything, and helps significantly (at the cost of a little
7146 # extra space).
7147 freebsd2.2*)
7148 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7149 hardcode_libdir_flag_spec='-R$libdir'
7150 hardcode_direct=yes
7151 hardcode_shlibpath_var=no
7152 ;;
7154 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7155 freebsd2*)
7156 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7157 hardcode_direct=yes
7158 hardcode_minus_L=yes
7159 hardcode_shlibpath_var=no
7160 ;;
7162 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7163 freebsd* | kfreebsd*-gnu | dragonfly*)
7164 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7165 hardcode_libdir_flag_spec='-R$libdir'
7166 hardcode_direct=yes
7167 hardcode_shlibpath_var=no
7168 ;;
7170 hpux9*)
7171 if test "$GCC" = yes; then
7172 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'
7173 else
7174 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'
7175 fi
7176 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7177 hardcode_libdir_separator=:
7178 hardcode_direct=yes
7180 # hardcode_minus_L: Not really in the search PATH,
7181 # but as the default location of the library.
7182 hardcode_minus_L=yes
7183 export_dynamic_flag_spec='${wl}-E'
7184 ;;
7186 hpux10*)
7187 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7188 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7189 else
7190 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7191 fi
7192 if test "$with_gnu_ld" = no; then
7193 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7194 hardcode_libdir_separator=:
7196 hardcode_direct=yes
7197 export_dynamic_flag_spec='${wl}-E'
7199 # hardcode_minus_L: Not really in the search PATH,
7200 # but as the default location of the library.
7201 hardcode_minus_L=yes
7202 fi
7203 ;;
7205 hpux11*)
7206 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7207 case $host_cpu in
7208 hppa*64*)
7209 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7210 ;;
7211 ia64*)
7212 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7213 ;;
7214 *)
7215 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7216 ;;
7217 esac
7218 else
7219 case $host_cpu in
7220 hppa*64*)
7221 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7222 ;;
7223 ia64*)
7224 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7225 ;;
7226 *)
7227 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7228 ;;
7229 esac
7230 fi
7231 if test "$with_gnu_ld" = no; then
7232 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7233 hardcode_libdir_separator=:
7235 case $host_cpu in
7236 hppa*64*|ia64*)
7237 hardcode_libdir_flag_spec_ld='+b $libdir'
7238 hardcode_direct=no
7239 hardcode_shlibpath_var=no
7240 ;;
7241 *)
7242 hardcode_direct=yes
7243 export_dynamic_flag_spec='${wl}-E'
7245 # hardcode_minus_L: Not really in the search PATH,
7246 # but as the default location of the library.
7247 hardcode_minus_L=yes
7248 ;;
7249 esac
7250 fi
7251 ;;
7253 irix5* | irix6* | nonstopux*)
7254 if test "$GCC" = yes; then
7255 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'
7256 else
7257 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'
7258 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7259 fi
7260 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7261 hardcode_libdir_separator=:
7262 link_all_deplibs=yes
7263 ;;
7265 netbsd*)
7266 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7267 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7268 else
7269 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7270 fi
7271 hardcode_libdir_flag_spec='-R$libdir'
7272 hardcode_direct=yes
7273 hardcode_shlibpath_var=no
7274 ;;
7276 newsos6)
7277 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7278 hardcode_direct=yes
7279 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7280 hardcode_libdir_separator=:
7281 hardcode_shlibpath_var=no
7282 ;;
7284 openbsd*)
7285 hardcode_direct=yes
7286 hardcode_shlibpath_var=no
7287 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7288 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7289 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7290 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7291 export_dynamic_flag_spec='${wl}-E'
7292 else
7293 case $host_os in
7294 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7295 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7296 hardcode_libdir_flag_spec='-R$libdir'
7297 ;;
7298 *)
7299 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7300 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7301 ;;
7302 esac
7303 fi
7304 ;;
7306 os2*)
7307 hardcode_libdir_flag_spec='-L$libdir'
7308 hardcode_minus_L=yes
7309 allow_undefined_flag=unsupported
7310 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'
7311 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7312 ;;
7314 osf3*)
7315 if test "$GCC" = yes; then
7316 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7317 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'
7318 else
7319 allow_undefined_flag=' -expect_unresolved \*'
7320 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'
7321 fi
7322 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7323 hardcode_libdir_separator=:
7324 ;;
7326 osf4* | osf5*) # as osf3* with the addition of -msym flag
7327 if test "$GCC" = yes; then
7328 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7329 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'
7330 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7331 else
7332 allow_undefined_flag=' -expect_unresolved \*'
7333 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'
7334 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7335 $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'
7337 # Both c and cxx compiler support -rpath directly
7338 hardcode_libdir_flag_spec='-rpath $libdir'
7339 fi
7340 hardcode_libdir_separator=:
7341 ;;
7343 solaris*)
7344 no_undefined_flag=' -z text'
7345 if test "$GCC" = yes; then
7346 wlarc='${wl}'
7347 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7348 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7349 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7350 else
7351 wlarc=''
7352 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7353 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7354 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7355 fi
7356 hardcode_libdir_flag_spec='-R$libdir'
7357 hardcode_shlibpath_var=no
7358 case $host_os in
7359 solaris2.[0-5] | solaris2.[0-5].*) ;;
7360 *)
7361 # The compiler driver will combine linker options so we
7362 # cannot just pass the convience library names through
7363 # without $wl, iff we do not link with $LD.
7364 # Luckily, gcc supports the same syntax we need for Sun Studio.
7365 # Supported since Solaris 2.6 (maybe 2.5.1?)
7366 case $wlarc in
7367 '')
7368 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7369 *)
7370 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' ;;
7371 esac ;;
7372 esac
7373 link_all_deplibs=yes
7374 ;;
7376 sunos4*)
7377 if test "x$host_vendor" = xsequent; then
7378 # Use $CC to link under sequent, because it throws in some extra .o
7379 # files that make .init and .fini sections work.
7380 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7381 else
7382 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7383 fi
7384 hardcode_libdir_flag_spec='-L$libdir'
7385 hardcode_direct=yes
7386 hardcode_minus_L=yes
7387 hardcode_shlibpath_var=no
7388 ;;
7390 sysv4)
7391 case $host_vendor in
7392 sni)
7393 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7394 hardcode_direct=yes # is this really true???
7395 ;;
7396 siemens)
7397 ## LD is ld it makes a PLAMLIB
7398 ## CC just makes a GrossModule.
7399 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7400 reload_cmds='$CC -r -o $output$reload_objs'
7401 hardcode_direct=no
7402 ;;
7403 motorola)
7404 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7405 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7406 ;;
7407 esac
7408 runpath_var='LD_RUN_PATH'
7409 hardcode_shlibpath_var=no
7410 ;;
7412 sysv4.3*)
7413 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7414 hardcode_shlibpath_var=no
7415 export_dynamic_flag_spec='-Bexport'
7416 ;;
7418 sysv4*MP*)
7419 if test -d /usr/nec; then
7420 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7421 hardcode_shlibpath_var=no
7422 runpath_var=LD_RUN_PATH
7423 hardcode_runpath_var=yes
7424 ld_shlibs=yes
7425 fi
7426 ;;
7428 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7429 no_undefined_flag='${wl}-z,text'
7430 archive_cmds_need_lc=no
7431 hardcode_shlibpath_var=no
7432 runpath_var='LD_RUN_PATH'
7434 if test "$GCC" = yes; then
7435 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7436 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7437 else
7438 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7439 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7440 fi
7441 ;;
7443 sysv5* | sco3.2v5* | sco5v6*)
7444 # Note: We can NOT use -z defs as we might desire, because we do not
7445 # link with -lc, and that would cause any symbols used from libc to
7446 # always be unresolved, which means just about no library would
7447 # ever link correctly. If we're not using GNU ld we use -z text
7448 # though, which does catch some bad symbols but isn't as heavy-handed
7449 # as -z defs.
7450 no_undefined_flag='${wl}-z,text'
7451 allow_undefined_flag='${wl}-z,nodefs'
7452 archive_cmds_need_lc=no
7453 hardcode_shlibpath_var=no
7454 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7455 hardcode_libdir_separator=':'
7456 link_all_deplibs=yes
7457 export_dynamic_flag_spec='${wl}-Bexport'
7458 runpath_var='LD_RUN_PATH'
7460 if test "$GCC" = yes; then
7461 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7462 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7463 else
7464 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7465 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7466 fi
7467 ;;
7469 uts4*)
7470 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7471 hardcode_libdir_flag_spec='-L$libdir'
7472 hardcode_shlibpath_var=no
7473 ;;
7475 *)
7476 ld_shlibs=no
7477 ;;
7478 esac
7479 fi
7481 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7482 echo "${ECHO_T}$ld_shlibs" >&6
7483 test "$ld_shlibs" = no && can_build_shared=no
7485 #
7486 # Do we need to explicitly link libc?
7487 #
7488 case "x$archive_cmds_need_lc" in
7489 x|xyes)
7490 # Assume -lc should be added
7491 archive_cmds_need_lc=yes
7493 if test "$enable_shared" = yes && test "$GCC" = yes; then
7494 case $archive_cmds in
7495 *'~'*)
7496 # FIXME: we may have to deal with multi-command sequences.
7497 ;;
7498 '$CC '*)
7499 # Test whether the compiler implicitly links with -lc since on some
7500 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7501 # to ld, don't add -lc before -lgcc.
7502 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7503 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7504 $rm conftest*
7505 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7508 (eval $ac_compile) 2>&5
7509 ac_status=$?
7510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7511 (exit $ac_status); } 2>conftest.err; then
7512 soname=conftest
7513 lib=conftest
7514 libobjs=conftest.$ac_objext
7515 deplibs=
7516 wl=$lt_prog_compiler_wl
7517 pic_flag=$lt_prog_compiler_pic
7518 compiler_flags=-v
7519 linker_flags=-v
7520 verstring=
7521 output_objdir=.
7522 libname=conftest
7523 lt_save_allow_undefined_flag=$allow_undefined_flag
7524 allow_undefined_flag=
7525 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7526 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7527 ac_status=$?
7528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7529 (exit $ac_status); }
7530 then
7531 archive_cmds_need_lc=no
7532 else
7533 archive_cmds_need_lc=yes
7534 fi
7535 allow_undefined_flag=$lt_save_allow_undefined_flag
7536 else
7537 cat conftest.err 1>&5
7538 fi
7539 $rm conftest*
7540 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7541 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7542 ;;
7543 esac
7544 fi
7545 ;;
7546 esac
7548 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7549 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7550 library_names_spec=
7551 libname_spec='lib$name'
7552 soname_spec=
7553 shrext_cmds=".so"
7554 postinstall_cmds=
7555 postuninstall_cmds=
7556 finish_cmds=
7557 finish_eval=
7558 shlibpath_var=
7559 shlibpath_overrides_runpath=unknown
7560 version_type=none
7561 dynamic_linker="$host_os ld.so"
7562 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7563 if test "$GCC" = yes; then
7564 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7565 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7566 # if the path contains ";" then we assume it to be the separator
7567 # otherwise default to the standard path separator (i.e. ":") - it is
7568 # assumed that no part of a normal pathname contains ";" but that should
7569 # okay in the real world where ";" in dirpaths is itself problematic.
7570 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7571 else
7572 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7573 fi
7574 else
7575 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7576 fi
7577 need_lib_prefix=unknown
7578 hardcode_into_libs=no
7580 # when you set need_version to no, make sure it does not cause -set_version
7581 # flags to be left without arguments
7582 need_version=unknown
7584 case $host_os in
7585 aix3*)
7586 version_type=linux
7587 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7588 shlibpath_var=LIBPATH
7590 # AIX 3 has no versioning support, so we append a major version to the name.
7591 soname_spec='${libname}${release}${shared_ext}$major'
7592 ;;
7594 aix4* | aix5*)
7595 version_type=linux
7596 need_lib_prefix=no
7597 need_version=no
7598 hardcode_into_libs=yes
7599 if test "$host_cpu" = ia64; then
7600 # AIX 5 supports IA64
7601 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7602 shlibpath_var=LD_LIBRARY_PATH
7603 else
7604 # With GCC up to 2.95.x, collect2 would create an import file
7605 # for dependence libraries. The import file would start with
7606 # the line `#! .'. This would cause the generated library to
7607 # depend on `.', always an invalid library. This was fixed in
7608 # development snapshots of GCC prior to 3.0.
7609 case $host_os in
7610 aix4 | aix4.[01] | aix4.[01].*)
7611 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7612 echo ' yes '
7613 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7614 :
7615 else
7616 can_build_shared=no
7617 fi
7618 ;;
7619 esac
7620 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7621 # soname into executable. Probably we can add versioning support to
7622 # collect2, so additional links can be useful in future.
7623 if test "$aix_use_runtimelinking" = yes; then
7624 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7625 # instead of lib<name>.a to let people know that these are not
7626 # typical AIX shared libraries.
7627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7628 else
7629 # We preserve .a as extension for shared libraries through AIX4.2
7630 # and later when we are not doing run time linking.
7631 library_names_spec='${libname}${release}.a $libname.a'
7632 soname_spec='${libname}${release}${shared_ext}$major'
7633 fi
7634 shlibpath_var=LIBPATH
7635 fi
7636 ;;
7638 amigaos*)
7639 library_names_spec='$libname.ixlibrary $libname.a'
7640 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7641 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'
7642 ;;
7644 beos*)
7645 library_names_spec='${libname}${shared_ext}'
7646 dynamic_linker="$host_os ld.so"
7647 shlibpath_var=LIBRARY_PATH
7648 ;;
7650 bsdi[45]*)
7651 version_type=linux
7652 need_version=no
7653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7654 soname_spec='${libname}${release}${shared_ext}$major'
7655 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7656 shlibpath_var=LD_LIBRARY_PATH
7657 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7658 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7659 # the default ld.so.conf also contains /usr/contrib/lib and
7660 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7661 # libtool to hard-code these into programs
7662 ;;
7664 cygwin* | mingw* | pw32*)
7665 version_type=windows
7666 shrext_cmds=".dll"
7667 need_version=no
7668 need_lib_prefix=no
7670 case $GCC,$host_os in
7671 yes,cygwin* | yes,mingw* | yes,pw32*)
7672 library_names_spec='$libname.dll.a'
7673 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7674 postinstall_cmds='base_file=`basename \${file}`~
7675 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7676 dldir=$destdir/`dirname \$dlpath`~
7677 test -d \$dldir || mkdir -p \$dldir~
7678 $install_prog $dir/$dlname \$dldir/$dlname~
7679 chmod a+x \$dldir/$dlname'
7680 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7681 dlpath=$dir/\$dldll~
7682 $rm \$dlpath'
7683 shlibpath_overrides_runpath=yes
7685 case $host_os in
7686 cygwin*)
7687 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7688 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7689 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7690 ;;
7691 mingw*)
7692 # MinGW DLLs use traditional 'lib' prefix
7693 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7694 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7695 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7696 # It is most probably a Windows format PATH printed by
7697 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7698 # path with ; separators, and with drive letters. We can handle the
7699 # drive letters (cygwin fileutils understands them), so leave them,
7700 # especially as we might pass files found there to a mingw objdump,
7701 # which wouldn't understand a cygwinified path. Ahh.
7702 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7703 else
7704 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7705 fi
7706 ;;
7707 pw32*)
7708 # pw32 DLLs use 'pw' prefix rather than 'lib'
7709 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7710 ;;
7711 esac
7712 ;;
7714 *)
7715 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7716 ;;
7717 esac
7718 dynamic_linker='Win32 ld.exe'
7719 # FIXME: first we should search . and the directory the executable is in
7720 shlibpath_var=PATH
7721 ;;
7723 darwin* | rhapsody*)
7724 dynamic_linker="$host_os dyld"
7725 version_type=darwin
7726 need_lib_prefix=no
7727 need_version=no
7728 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7729 soname_spec='${libname}${release}${major}$shared_ext'
7730 shlibpath_overrides_runpath=yes
7731 shlibpath_var=DYLD_LIBRARY_PATH
7732 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
7733 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7734 if test "$GCC" = yes; then
7735 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"`
7736 else
7737 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7738 fi
7739 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7740 ;;
7742 dgux*)
7743 version_type=linux
7744 need_lib_prefix=no
7745 need_version=no
7746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7747 soname_spec='${libname}${release}${shared_ext}$major'
7748 shlibpath_var=LD_LIBRARY_PATH
7749 ;;
7751 freebsd1*)
7752 dynamic_linker=no
7753 ;;
7755 kfreebsd*-gnu)
7756 version_type=linux
7757 need_lib_prefix=no
7758 need_version=no
7759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7760 soname_spec='${libname}${release}${shared_ext}$major'
7761 shlibpath_var=LD_LIBRARY_PATH
7762 shlibpath_overrides_runpath=no
7763 hardcode_into_libs=yes
7764 dynamic_linker='GNU ld.so'
7765 ;;
7767 freebsd* | dragonfly*)
7768 # DragonFly does not have aout. When/if they implement a new
7769 # versioning mechanism, adjust this.
7770 if test -x /usr/bin/objformat; then
7771 objformat=`/usr/bin/objformat`
7772 else
7773 case $host_os in
7774 freebsd[123]*) objformat=aout ;;
7775 *) objformat=elf ;;
7776 esac
7777 fi
7778 version_type=freebsd-$objformat
7779 case $version_type in
7780 freebsd-elf*)
7781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7782 need_version=no
7783 need_lib_prefix=no
7784 ;;
7785 freebsd-*)
7786 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7787 need_version=yes
7788 ;;
7789 esac
7790 shlibpath_var=LD_LIBRARY_PATH
7791 case $host_os in
7792 freebsd2*)
7793 shlibpath_overrides_runpath=yes
7794 ;;
7795 freebsd3.[01]* | freebsdelf3.[01]*)
7796 shlibpath_overrides_runpath=yes
7797 hardcode_into_libs=yes
7798 ;;
7799 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
7800 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
7801 shlibpath_overrides_runpath=no
7802 hardcode_into_libs=yes
7803 ;;
7804 freebsd*) # from 4.6 on
7805 shlibpath_overrides_runpath=yes
7806 hardcode_into_libs=yes
7807 ;;
7808 esac
7809 ;;
7811 gnu*)
7812 version_type=linux
7813 need_lib_prefix=no
7814 need_version=no
7815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7816 soname_spec='${libname}${release}${shared_ext}$major'
7817 shlibpath_var=LD_LIBRARY_PATH
7818 hardcode_into_libs=yes
7819 ;;
7821 hpux9* | hpux10* | hpux11*)
7822 # Give a soname corresponding to the major version so that dld.sl refuses to
7823 # link against other versions.
7824 version_type=sunos
7825 need_lib_prefix=no
7826 need_version=no
7827 case $host_cpu in
7828 ia64*)
7829 shrext_cmds='.so'
7830 hardcode_into_libs=yes
7831 dynamic_linker="$host_os dld.so"
7832 shlibpath_var=LD_LIBRARY_PATH
7833 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7835 soname_spec='${libname}${release}${shared_ext}$major'
7836 if test "X$HPUX_IA64_MODE" = X32; then
7837 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7838 else
7839 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7840 fi
7841 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7842 ;;
7843 hppa*64*)
7844 shrext_cmds='.sl'
7845 hardcode_into_libs=yes
7846 dynamic_linker="$host_os dld.sl"
7847 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7848 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7852 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7853 ;;
7854 *)
7855 shrext_cmds='.sl'
7856 dynamic_linker="$host_os dld.sl"
7857 shlibpath_var=SHLIB_PATH
7858 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7860 soname_spec='${libname}${release}${shared_ext}$major'
7861 ;;
7862 esac
7863 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7864 postinstall_cmds='chmod 555 $lib'
7865 ;;
7867 interix3*)
7868 version_type=linux
7869 need_lib_prefix=no
7870 need_version=no
7871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7872 soname_spec='${libname}${release}${shared_ext}$major'
7873 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
7874 shlibpath_var=LD_LIBRARY_PATH
7875 shlibpath_overrides_runpath=no
7876 hardcode_into_libs=yes
7877 ;;
7879 irix5* | irix6* | nonstopux*)
7880 case $host_os in
7881 nonstopux*) version_type=nonstopux ;;
7882 *)
7883 if test "$lt_cv_prog_gnu_ld" = yes; then
7884 version_type=linux
7885 else
7886 version_type=irix
7887 fi ;;
7888 esac
7889 need_lib_prefix=no
7890 need_version=no
7891 soname_spec='${libname}${release}${shared_ext}$major'
7892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7893 case $host_os in
7894 irix5* | nonstopux*)
7895 libsuff= shlibsuff=
7896 ;;
7897 *)
7898 case $LD in # libtool.m4 will add one of these switches to LD
7899 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7900 libsuff= shlibsuff= libmagic=32-bit;;
7901 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7902 libsuff=32 shlibsuff=N32 libmagic=N32;;
7903 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7904 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7905 *) libsuff= shlibsuff= libmagic=never-match;;
7906 esac
7907 ;;
7908 esac
7909 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7910 shlibpath_overrides_runpath=no
7911 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7912 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7913 hardcode_into_libs=yes
7914 ;;
7916 # No shared lib support for Linux oldld, aout, or coff.
7917 linux*oldld* | linux*aout* | linux*coff*)
7918 dynamic_linker=no
7919 ;;
7921 # This must be Linux ELF.
7922 linux*)
7923 version_type=linux
7924 need_lib_prefix=no
7925 need_version=no
7926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7927 soname_spec='${libname}${release}${shared_ext}$major'
7928 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7929 shlibpath_var=LD_LIBRARY_PATH
7930 shlibpath_overrides_runpath=no
7931 # This implies no fast_install, which is unacceptable.
7932 # Some rework will be needed to allow for fast_install
7933 # before this can be enabled.
7934 hardcode_into_libs=yes
7936 # Append ld.so.conf contents to the search path
7937 if test -f /etc/ld.so.conf; then
7938 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' ' '`
7939 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7940 fi
7942 # We used to test for /lib/ld.so.1 and disable shared libraries on
7943 # powerpc, because MkLinux only supported shared libraries with the
7944 # GNU dynamic linker. Since this was broken with cross compilers,
7945 # most powerpc-linux boxes support dynamic linking these days and
7946 # people can always --disable-shared, the test was removed, and we
7947 # assume the GNU/Linux dynamic linker is in use.
7948 dynamic_linker='GNU/Linux ld.so'
7949 ;;
7951 knetbsd*-gnu)
7952 version_type=linux
7953 need_lib_prefix=no
7954 need_version=no
7955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7956 soname_spec='${libname}${release}${shared_ext}$major'
7957 shlibpath_var=LD_LIBRARY_PATH
7958 shlibpath_overrides_runpath=no
7959 hardcode_into_libs=yes
7960 dynamic_linker='GNU ld.so'
7961 ;;
7963 netbsd*)
7964 version_type=sunos
7965 need_lib_prefix=no
7966 need_version=no
7967 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7969 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7970 dynamic_linker='NetBSD (a.out) ld.so'
7971 else
7972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7973 soname_spec='${libname}${release}${shared_ext}$major'
7974 dynamic_linker='NetBSD ld.elf_so'
7975 fi
7976 shlibpath_var=LD_LIBRARY_PATH
7977 shlibpath_overrides_runpath=yes
7978 hardcode_into_libs=yes
7979 ;;
7981 newsos6)
7982 version_type=linux
7983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7984 shlibpath_var=LD_LIBRARY_PATH
7985 shlibpath_overrides_runpath=yes
7986 ;;
7988 nto-qnx*)
7989 version_type=linux
7990 need_lib_prefix=no
7991 need_version=no
7992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7993 soname_spec='${libname}${release}${shared_ext}$major'
7994 shlibpath_var=LD_LIBRARY_PATH
7995 shlibpath_overrides_runpath=yes
7996 ;;
7998 openbsd*)
7999 version_type=sunos
8000 sys_lib_dlsearch_path_spec="/usr/lib"
8001 need_lib_prefix=no
8002 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8003 case $host_os in
8004 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8005 *) need_version=no ;;
8006 esac
8007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8008 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8009 shlibpath_var=LD_LIBRARY_PATH
8010 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8011 case $host_os in
8012 openbsd2.[89] | openbsd2.[89].*)
8013 shlibpath_overrides_runpath=no
8014 ;;
8015 *)
8016 shlibpath_overrides_runpath=yes
8017 ;;
8018 esac
8019 else
8020 shlibpath_overrides_runpath=yes
8021 fi
8022 ;;
8024 os2*)
8025 libname_spec='$name'
8026 shrext_cmds=".dll"
8027 need_lib_prefix=no
8028 library_names_spec='$libname${shared_ext} $libname.a'
8029 dynamic_linker='OS/2 ld.exe'
8030 shlibpath_var=LIBPATH
8031 ;;
8033 osf3* | osf4* | osf5*)
8034 version_type=osf
8035 need_lib_prefix=no
8036 need_version=no
8037 soname_spec='${libname}${release}${shared_ext}$major'
8038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8039 shlibpath_var=LD_LIBRARY_PATH
8040 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8041 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8042 ;;
8044 solaris*)
8045 version_type=linux
8046 need_lib_prefix=no
8047 need_version=no
8048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8049 soname_spec='${libname}${release}${shared_ext}$major'
8050 shlibpath_var=LD_LIBRARY_PATH
8051 shlibpath_overrides_runpath=yes
8052 hardcode_into_libs=yes
8053 # ldd complains unless libraries are executable
8054 postinstall_cmds='chmod +x $lib'
8055 ;;
8057 sunos4*)
8058 version_type=sunos
8059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8060 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8061 shlibpath_var=LD_LIBRARY_PATH
8062 shlibpath_overrides_runpath=yes
8063 if test "$with_gnu_ld" = yes; then
8064 need_lib_prefix=no
8065 fi
8066 need_version=yes
8067 ;;
8069 sysv4 | sysv4.3*)
8070 version_type=linux
8071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8072 soname_spec='${libname}${release}${shared_ext}$major'
8073 shlibpath_var=LD_LIBRARY_PATH
8074 case $host_vendor in
8075 sni)
8076 shlibpath_overrides_runpath=no
8077 need_lib_prefix=no
8078 export_dynamic_flag_spec='${wl}-Blargedynsym'
8079 runpath_var=LD_RUN_PATH
8080 ;;
8081 siemens)
8082 need_lib_prefix=no
8083 ;;
8084 motorola)
8085 need_lib_prefix=no
8086 need_version=no
8087 shlibpath_overrides_runpath=no
8088 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8089 ;;
8090 esac
8091 ;;
8093 sysv4*MP*)
8094 if test -d /usr/nec ;then
8095 version_type=linux
8096 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8097 soname_spec='$libname${shared_ext}.$major'
8098 shlibpath_var=LD_LIBRARY_PATH
8099 fi
8100 ;;
8102 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8103 version_type=freebsd-elf
8104 need_lib_prefix=no
8105 need_version=no
8106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8107 soname_spec='${libname}${release}${shared_ext}$major'
8108 shlibpath_var=LD_LIBRARY_PATH
8109 hardcode_into_libs=yes
8110 if test "$with_gnu_ld" = yes; then
8111 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8112 shlibpath_overrides_runpath=no
8113 else
8114 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8115 shlibpath_overrides_runpath=yes
8116 case $host_os in
8117 sco3.2v5*)
8118 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8119 ;;
8120 esac
8121 fi
8122 sys_lib_dlsearch_path_spec='/usr/lib'
8123 ;;
8125 uts4*)
8126 version_type=linux
8127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8128 soname_spec='${libname}${release}${shared_ext}$major'
8129 shlibpath_var=LD_LIBRARY_PATH
8130 ;;
8132 *)
8133 dynamic_linker=no
8134 ;;
8135 esac
8136 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8137 echo "${ECHO_T}$dynamic_linker" >&6
8138 test "$dynamic_linker" = no && can_build_shared=no
8140 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8141 if test "$GCC" = yes; then
8142 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8143 fi
8145 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8146 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8147 hardcode_action=
8148 if test -n "$hardcode_libdir_flag_spec" || \
8149 test -n "$runpath_var" || \
8150 test "X$hardcode_automatic" = "Xyes" ; then
8152 # We can hardcode non-existant directories.
8153 if test "$hardcode_direct" != no &&
8154 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8155 # have to relink, otherwise we might link with an installed library
8156 # when we should be linking with a yet-to-be-installed one
8157 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8158 test "$hardcode_minus_L" != no; then
8159 # Linking always hardcodes the temporary library directory.
8160 hardcode_action=relink
8161 else
8162 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8163 hardcode_action=immediate
8164 fi
8165 else
8166 # We cannot hardcode anything, or else we can only hardcode existing
8167 # directories.
8168 hardcode_action=unsupported
8169 fi
8170 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8171 echo "${ECHO_T}$hardcode_action" >&6
8173 if test "$hardcode_action" = relink; then
8174 # Fast installation is not supported
8175 enable_fast_install=no
8176 elif test "$shlibpath_overrides_runpath" = yes ||
8177 test "$enable_shared" = no; then
8178 # Fast installation is not necessary
8179 enable_fast_install=needless
8180 fi
8182 striplib=
8183 old_striplib=
8184 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8185 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8186 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8187 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8188 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8189 echo "$as_me:$LINENO: result: yes" >&5
8190 echo "${ECHO_T}yes" >&6
8191 else
8192 # FIXME - insert some real tests, host_os isn't really good enough
8193 case $host_os in
8194 darwin*)
8195 if test -n "$STRIP" ; then
8196 striplib="$STRIP -x"
8197 echo "$as_me:$LINENO: result: yes" >&5
8198 echo "${ECHO_T}yes" >&6
8199 else
8200 echo "$as_me:$LINENO: result: no" >&5
8201 echo "${ECHO_T}no" >&6
8202 fi
8203 ;;
8204 *)
8205 echo "$as_me:$LINENO: result: no" >&5
8206 echo "${ECHO_T}no" >&6
8207 ;;
8208 esac
8209 fi
8211 if test "x$enable_dlopen" != xyes; then
8212 enable_dlopen=unknown
8213 enable_dlopen_self=unknown
8214 enable_dlopen_self_static=unknown
8215 else
8216 lt_cv_dlopen=no
8217 lt_cv_dlopen_libs=
8219 case $host_os in
8220 beos*)
8221 lt_cv_dlopen="load_add_on"
8222 lt_cv_dlopen_libs=
8223 lt_cv_dlopen_self=yes
8224 ;;
8226 mingw* | pw32*)
8227 lt_cv_dlopen="LoadLibrary"
8228 lt_cv_dlopen_libs=
8229 ;;
8231 cygwin*)
8232 lt_cv_dlopen="dlopen"
8233 lt_cv_dlopen_libs=
8234 ;;
8236 darwin*)
8237 # if libdl is installed we need to link against it
8238 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8239 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8240 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8241 echo $ECHO_N "(cached) $ECHO_C" >&6
8242 else
8243 ac_check_lib_save_LIBS=$LIBS
8244 LIBS="-ldl $LIBS"
8245 cat >conftest.$ac_ext <<_ACEOF
8246 /* confdefs.h. */
8247 _ACEOF
8248 cat confdefs.h >>conftest.$ac_ext
8249 cat >>conftest.$ac_ext <<_ACEOF
8250 /* end confdefs.h. */
8252 /* Override any gcc2 internal prototype to avoid an error. */
8253 #ifdef __cplusplus
8254 extern "C"
8255 #endif
8256 /* We use char because int might match the return type of a gcc2
8257 builtin and then its argument prototype would still apply. */
8258 char dlopen ();
8259 int
8260 main ()
8261 {
8262 dlopen ();
8263 ;
8264 return 0;
8265 }
8266 _ACEOF
8267 rm -f conftest.$ac_objext conftest$ac_exeext
8268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8269 (eval $ac_link) 2>conftest.er1
8270 ac_status=$?
8271 grep -v '^ *+' conftest.er1 >conftest.err
8272 rm -f conftest.er1
8273 cat conftest.err >&5
8274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275 (exit $ac_status); } &&
8276 { ac_try='test -z "$ac_c_werror_flag"
8277 || test ! -s conftest.err'
8278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8279 (eval $ac_try) 2>&5
8280 ac_status=$?
8281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282 (exit $ac_status); }; } &&
8283 { ac_try='test -s conftest$ac_exeext'
8284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8285 (eval $ac_try) 2>&5
8286 ac_status=$?
8287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288 (exit $ac_status); }; }; then
8289 ac_cv_lib_dl_dlopen=yes
8290 else
8291 echo "$as_me: failed program was:" >&5
8292 sed 's/^/| /' conftest.$ac_ext >&5
8294 ac_cv_lib_dl_dlopen=no
8295 fi
8296 rm -f conftest.err conftest.$ac_objext \
8297 conftest$ac_exeext conftest.$ac_ext
8298 LIBS=$ac_check_lib_save_LIBS
8299 fi
8300 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8301 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8302 if test $ac_cv_lib_dl_dlopen = yes; then
8303 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8304 else
8306 lt_cv_dlopen="dyld"
8307 lt_cv_dlopen_libs=
8308 lt_cv_dlopen_self=yes
8310 fi
8312 ;;
8314 *)
8315 echo "$as_me:$LINENO: checking for shl_load" >&5
8316 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8317 if test "${ac_cv_func_shl_load+set}" = set; then
8318 echo $ECHO_N "(cached) $ECHO_C" >&6
8319 else
8320 cat >conftest.$ac_ext <<_ACEOF
8321 /* confdefs.h. */
8322 _ACEOF
8323 cat confdefs.h >>conftest.$ac_ext
8324 cat >>conftest.$ac_ext <<_ACEOF
8325 /* end confdefs.h. */
8326 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8327 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8328 #define shl_load innocuous_shl_load
8330 /* System header to define __stub macros and hopefully few prototypes,
8331 which can conflict with char shl_load (); below.
8332 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8333 <limits.h> exists even on freestanding compilers. */
8335 #ifdef __STDC__
8336 # include <limits.h>
8337 #else
8338 # include <assert.h>
8339 #endif
8341 #undef shl_load
8343 /* Override any gcc2 internal prototype to avoid an error. */
8344 #ifdef __cplusplus
8345 extern "C"
8346 {
8347 #endif
8348 /* We use char because int might match the return type of a gcc2
8349 builtin and then its argument prototype would still apply. */
8350 char shl_load ();
8351 /* The GNU C library defines this for functions which it implements
8352 to always fail with ENOSYS. Some functions are actually named
8353 something starting with __ and the normal name is an alias. */
8354 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8355 choke me
8356 #else
8357 char (*f) () = shl_load;
8358 #endif
8359 #ifdef __cplusplus
8360 }
8361 #endif
8363 int
8364 main ()
8365 {
8366 return f != shl_load;
8367 ;
8368 return 0;
8369 }
8370 _ACEOF
8371 rm -f conftest.$ac_objext conftest$ac_exeext
8372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8373 (eval $ac_link) 2>conftest.er1
8374 ac_status=$?
8375 grep -v '^ *+' conftest.er1 >conftest.err
8376 rm -f conftest.er1
8377 cat conftest.err >&5
8378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379 (exit $ac_status); } &&
8380 { ac_try='test -z "$ac_c_werror_flag"
8381 || test ! -s conftest.err'
8382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8383 (eval $ac_try) 2>&5
8384 ac_status=$?
8385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386 (exit $ac_status); }; } &&
8387 { ac_try='test -s conftest$ac_exeext'
8388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8389 (eval $ac_try) 2>&5
8390 ac_status=$?
8391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392 (exit $ac_status); }; }; then
8393 ac_cv_func_shl_load=yes
8394 else
8395 echo "$as_me: failed program was:" >&5
8396 sed 's/^/| /' conftest.$ac_ext >&5
8398 ac_cv_func_shl_load=no
8399 fi
8400 rm -f conftest.err conftest.$ac_objext \
8401 conftest$ac_exeext conftest.$ac_ext
8402 fi
8403 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8404 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8405 if test $ac_cv_func_shl_load = yes; then
8406 lt_cv_dlopen="shl_load"
8407 else
8408 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8409 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8410 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8411 echo $ECHO_N "(cached) $ECHO_C" >&6
8412 else
8413 ac_check_lib_save_LIBS=$LIBS
8414 LIBS="-ldld $LIBS"
8415 cat >conftest.$ac_ext <<_ACEOF
8416 /* confdefs.h. */
8417 _ACEOF
8418 cat confdefs.h >>conftest.$ac_ext
8419 cat >>conftest.$ac_ext <<_ACEOF
8420 /* end confdefs.h. */
8422 /* Override any gcc2 internal prototype to avoid an error. */
8423 #ifdef __cplusplus
8424 extern "C"
8425 #endif
8426 /* We use char because int might match the return type of a gcc2
8427 builtin and then its argument prototype would still apply. */
8428 char shl_load ();
8429 int
8430 main ()
8431 {
8432 shl_load ();
8433 ;
8434 return 0;
8435 }
8436 _ACEOF
8437 rm -f conftest.$ac_objext conftest$ac_exeext
8438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8439 (eval $ac_link) 2>conftest.er1
8440 ac_status=$?
8441 grep -v '^ *+' conftest.er1 >conftest.err
8442 rm -f conftest.er1
8443 cat conftest.err >&5
8444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445 (exit $ac_status); } &&
8446 { ac_try='test -z "$ac_c_werror_flag"
8447 || test ! -s conftest.err'
8448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8449 (eval $ac_try) 2>&5
8450 ac_status=$?
8451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452 (exit $ac_status); }; } &&
8453 { ac_try='test -s conftest$ac_exeext'
8454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8455 (eval $ac_try) 2>&5
8456 ac_status=$?
8457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8458 (exit $ac_status); }; }; then
8459 ac_cv_lib_dld_shl_load=yes
8460 else
8461 echo "$as_me: failed program was:" >&5
8462 sed 's/^/| /' conftest.$ac_ext >&5
8464 ac_cv_lib_dld_shl_load=no
8465 fi
8466 rm -f conftest.err conftest.$ac_objext \
8467 conftest$ac_exeext conftest.$ac_ext
8468 LIBS=$ac_check_lib_save_LIBS
8469 fi
8470 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8471 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8472 if test $ac_cv_lib_dld_shl_load = yes; then
8473 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8474 else
8475 echo "$as_me:$LINENO: checking for dlopen" >&5
8476 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8477 if test "${ac_cv_func_dlopen+set}" = set; then
8478 echo $ECHO_N "(cached) $ECHO_C" >&6
8479 else
8480 cat >conftest.$ac_ext <<_ACEOF
8481 /* confdefs.h. */
8482 _ACEOF
8483 cat confdefs.h >>conftest.$ac_ext
8484 cat >>conftest.$ac_ext <<_ACEOF
8485 /* end confdefs.h. */
8486 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8487 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8488 #define dlopen innocuous_dlopen
8490 /* System header to define __stub macros and hopefully few prototypes,
8491 which can conflict with char dlopen (); below.
8492 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8493 <limits.h> exists even on freestanding compilers. */
8495 #ifdef __STDC__
8496 # include <limits.h>
8497 #else
8498 # include <assert.h>
8499 #endif
8501 #undef dlopen
8503 /* Override any gcc2 internal prototype to avoid an error. */
8504 #ifdef __cplusplus
8505 extern "C"
8506 {
8507 #endif
8508 /* We use char because int might match the return type of a gcc2
8509 builtin and then its argument prototype would still apply. */
8510 char dlopen ();
8511 /* The GNU C library defines this for functions which it implements
8512 to always fail with ENOSYS. Some functions are actually named
8513 something starting with __ and the normal name is an alias. */
8514 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8515 choke me
8516 #else
8517 char (*f) () = dlopen;
8518 #endif
8519 #ifdef __cplusplus
8520 }
8521 #endif
8523 int
8524 main ()
8525 {
8526 return f != dlopen;
8527 ;
8528 return 0;
8529 }
8530 _ACEOF
8531 rm -f conftest.$ac_objext conftest$ac_exeext
8532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8533 (eval $ac_link) 2>conftest.er1
8534 ac_status=$?
8535 grep -v '^ *+' conftest.er1 >conftest.err
8536 rm -f conftest.er1
8537 cat conftest.err >&5
8538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539 (exit $ac_status); } &&
8540 { ac_try='test -z "$ac_c_werror_flag"
8541 || test ! -s conftest.err'
8542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8543 (eval $ac_try) 2>&5
8544 ac_status=$?
8545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546 (exit $ac_status); }; } &&
8547 { ac_try='test -s conftest$ac_exeext'
8548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8549 (eval $ac_try) 2>&5
8550 ac_status=$?
8551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552 (exit $ac_status); }; }; then
8553 ac_cv_func_dlopen=yes
8554 else
8555 echo "$as_me: failed program was:" >&5
8556 sed 's/^/| /' conftest.$ac_ext >&5
8558 ac_cv_func_dlopen=no
8559 fi
8560 rm -f conftest.err conftest.$ac_objext \
8561 conftest$ac_exeext conftest.$ac_ext
8562 fi
8563 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8564 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8565 if test $ac_cv_func_dlopen = yes; then
8566 lt_cv_dlopen="dlopen"
8567 else
8568 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8569 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8570 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8571 echo $ECHO_N "(cached) $ECHO_C" >&6
8572 else
8573 ac_check_lib_save_LIBS=$LIBS
8574 LIBS="-ldl $LIBS"
8575 cat >conftest.$ac_ext <<_ACEOF
8576 /* confdefs.h. */
8577 _ACEOF
8578 cat confdefs.h >>conftest.$ac_ext
8579 cat >>conftest.$ac_ext <<_ACEOF
8580 /* end confdefs.h. */
8582 /* Override any gcc2 internal prototype to avoid an error. */
8583 #ifdef __cplusplus
8584 extern "C"
8585 #endif
8586 /* We use char because int might match the return type of a gcc2
8587 builtin and then its argument prototype would still apply. */
8588 char dlopen ();
8589 int
8590 main ()
8591 {
8592 dlopen ();
8593 ;
8594 return 0;
8595 }
8596 _ACEOF
8597 rm -f conftest.$ac_objext conftest$ac_exeext
8598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8599 (eval $ac_link) 2>conftest.er1
8600 ac_status=$?
8601 grep -v '^ *+' conftest.er1 >conftest.err
8602 rm -f conftest.er1
8603 cat conftest.err >&5
8604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605 (exit $ac_status); } &&
8606 { ac_try='test -z "$ac_c_werror_flag"
8607 || test ! -s conftest.err'
8608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8609 (eval $ac_try) 2>&5
8610 ac_status=$?
8611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612 (exit $ac_status); }; } &&
8613 { ac_try='test -s conftest$ac_exeext'
8614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8615 (eval $ac_try) 2>&5
8616 ac_status=$?
8617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 (exit $ac_status); }; }; then
8619 ac_cv_lib_dl_dlopen=yes
8620 else
8621 echo "$as_me: failed program was:" >&5
8622 sed 's/^/| /' conftest.$ac_ext >&5
8624 ac_cv_lib_dl_dlopen=no
8625 fi
8626 rm -f conftest.err conftest.$ac_objext \
8627 conftest$ac_exeext conftest.$ac_ext
8628 LIBS=$ac_check_lib_save_LIBS
8629 fi
8630 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8631 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8632 if test $ac_cv_lib_dl_dlopen = yes; then
8633 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8634 else
8635 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8636 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8637 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8638 echo $ECHO_N "(cached) $ECHO_C" >&6
8639 else
8640 ac_check_lib_save_LIBS=$LIBS
8641 LIBS="-lsvld $LIBS"
8642 cat >conftest.$ac_ext <<_ACEOF
8643 /* confdefs.h. */
8644 _ACEOF
8645 cat confdefs.h >>conftest.$ac_ext
8646 cat >>conftest.$ac_ext <<_ACEOF
8647 /* end confdefs.h. */
8649 /* Override any gcc2 internal prototype to avoid an error. */
8650 #ifdef __cplusplus
8651 extern "C"
8652 #endif
8653 /* We use char because int might match the return type of a gcc2
8654 builtin and then its argument prototype would still apply. */
8655 char dlopen ();
8656 int
8657 main ()
8658 {
8659 dlopen ();
8660 ;
8661 return 0;
8662 }
8663 _ACEOF
8664 rm -f conftest.$ac_objext conftest$ac_exeext
8665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8666 (eval $ac_link) 2>conftest.er1
8667 ac_status=$?
8668 grep -v '^ *+' conftest.er1 >conftest.err
8669 rm -f conftest.er1
8670 cat conftest.err >&5
8671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8672 (exit $ac_status); } &&
8673 { ac_try='test -z "$ac_c_werror_flag"
8674 || test ! -s conftest.err'
8675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8676 (eval $ac_try) 2>&5
8677 ac_status=$?
8678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8679 (exit $ac_status); }; } &&
8680 { ac_try='test -s conftest$ac_exeext'
8681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8682 (eval $ac_try) 2>&5
8683 ac_status=$?
8684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685 (exit $ac_status); }; }; then
8686 ac_cv_lib_svld_dlopen=yes
8687 else
8688 echo "$as_me: failed program was:" >&5
8689 sed 's/^/| /' conftest.$ac_ext >&5
8691 ac_cv_lib_svld_dlopen=no
8692 fi
8693 rm -f conftest.err conftest.$ac_objext \
8694 conftest$ac_exeext conftest.$ac_ext
8695 LIBS=$ac_check_lib_save_LIBS
8696 fi
8697 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8698 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8699 if test $ac_cv_lib_svld_dlopen = yes; then
8700 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8701 else
8702 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8703 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8704 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8705 echo $ECHO_N "(cached) $ECHO_C" >&6
8706 else
8707 ac_check_lib_save_LIBS=$LIBS
8708 LIBS="-ldld $LIBS"
8709 cat >conftest.$ac_ext <<_ACEOF
8710 /* confdefs.h. */
8711 _ACEOF
8712 cat confdefs.h >>conftest.$ac_ext
8713 cat >>conftest.$ac_ext <<_ACEOF
8714 /* end confdefs.h. */
8716 /* Override any gcc2 internal prototype to avoid an error. */
8717 #ifdef __cplusplus
8718 extern "C"
8719 #endif
8720 /* We use char because int might match the return type of a gcc2
8721 builtin and then its argument prototype would still apply. */
8722 char dld_link ();
8723 int
8724 main ()
8725 {
8726 dld_link ();
8727 ;
8728 return 0;
8729 }
8730 _ACEOF
8731 rm -f conftest.$ac_objext conftest$ac_exeext
8732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8733 (eval $ac_link) 2>conftest.er1
8734 ac_status=$?
8735 grep -v '^ *+' conftest.er1 >conftest.err
8736 rm -f conftest.er1
8737 cat conftest.err >&5
8738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739 (exit $ac_status); } &&
8740 { ac_try='test -z "$ac_c_werror_flag"
8741 || test ! -s conftest.err'
8742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8743 (eval $ac_try) 2>&5
8744 ac_status=$?
8745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8746 (exit $ac_status); }; } &&
8747 { ac_try='test -s conftest$ac_exeext'
8748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8749 (eval $ac_try) 2>&5
8750 ac_status=$?
8751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752 (exit $ac_status); }; }; then
8753 ac_cv_lib_dld_dld_link=yes
8754 else
8755 echo "$as_me: failed program was:" >&5
8756 sed 's/^/| /' conftest.$ac_ext >&5
8758 ac_cv_lib_dld_dld_link=no
8759 fi
8760 rm -f conftest.err conftest.$ac_objext \
8761 conftest$ac_exeext conftest.$ac_ext
8762 LIBS=$ac_check_lib_save_LIBS
8763 fi
8764 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8765 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8766 if test $ac_cv_lib_dld_dld_link = yes; then
8767 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8768 fi
8771 fi
8774 fi
8777 fi
8780 fi
8783 fi
8785 ;;
8786 esac
8788 if test "x$lt_cv_dlopen" != xno; then
8789 enable_dlopen=yes
8790 else
8791 enable_dlopen=no
8792 fi
8794 case $lt_cv_dlopen in
8795 dlopen)
8796 save_CPPFLAGS="$CPPFLAGS"
8797 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8799 save_LDFLAGS="$LDFLAGS"
8800 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8802 save_LIBS="$LIBS"
8803 LIBS="$lt_cv_dlopen_libs $LIBS"
8805 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8806 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8807 if test "${lt_cv_dlopen_self+set}" = set; then
8808 echo $ECHO_N "(cached) $ECHO_C" >&6
8809 else
8810 if test "$cross_compiling" = yes; then :
8811 lt_cv_dlopen_self=cross
8812 else
8813 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8814 lt_status=$lt_dlunknown
8815 cat > conftest.$ac_ext <<EOF
8816 #line 8816 "configure"
8817 #include "confdefs.h"
8819 #if HAVE_DLFCN_H
8820 #include <dlfcn.h>
8821 #endif
8823 #include <stdio.h>
8825 #ifdef RTLD_GLOBAL
8826 # define LT_DLGLOBAL RTLD_GLOBAL
8827 #else
8828 # ifdef DL_GLOBAL
8829 # define LT_DLGLOBAL DL_GLOBAL
8830 # else
8831 # define LT_DLGLOBAL 0
8832 # endif
8833 #endif
8835 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8836 find out it does not work in some platform. */
8837 #ifndef LT_DLLAZY_OR_NOW
8838 # ifdef RTLD_LAZY
8839 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8840 # else
8841 # ifdef DL_LAZY
8842 # define LT_DLLAZY_OR_NOW DL_LAZY
8843 # else
8844 # ifdef RTLD_NOW
8845 # define LT_DLLAZY_OR_NOW RTLD_NOW
8846 # else
8847 # ifdef DL_NOW
8848 # define LT_DLLAZY_OR_NOW DL_NOW
8849 # else
8850 # define LT_DLLAZY_OR_NOW 0
8851 # endif
8852 # endif
8853 # endif
8854 # endif
8855 #endif
8857 #ifdef __cplusplus
8858 extern "C" void exit (int);
8859 #endif
8861 void fnord() { int i=42;}
8862 int main ()
8863 {
8864 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8865 int status = $lt_dlunknown;
8867 if (self)
8868 {
8869 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8870 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8871 /* dlclose (self); */
8872 }
8873 else
8874 puts (dlerror ());
8876 exit (status);
8877 }
8878 EOF
8879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8880 (eval $ac_link) 2>&5
8881 ac_status=$?
8882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8883 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8884 (./conftest; exit; ) >&5 2>/dev/null
8885 lt_status=$?
8886 case x$lt_status in
8887 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8888 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8889 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
8890 esac
8891 else :
8892 # compilation failed
8893 lt_cv_dlopen_self=no
8894 fi
8895 fi
8896 rm -fr conftest*
8899 fi
8900 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8901 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8903 if test "x$lt_cv_dlopen_self" = xyes; then
8904 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
8905 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8906 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8907 if test "${lt_cv_dlopen_self_static+set}" = set; then
8908 echo $ECHO_N "(cached) $ECHO_C" >&6
8909 else
8910 if test "$cross_compiling" = yes; then :
8911 lt_cv_dlopen_self_static=cross
8912 else
8913 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8914 lt_status=$lt_dlunknown
8915 cat > conftest.$ac_ext <<EOF
8916 #line 8916 "configure"
8917 #include "confdefs.h"
8919 #if HAVE_DLFCN_H
8920 #include <dlfcn.h>
8921 #endif
8923 #include <stdio.h>
8925 #ifdef RTLD_GLOBAL
8926 # define LT_DLGLOBAL RTLD_GLOBAL
8927 #else
8928 # ifdef DL_GLOBAL
8929 # define LT_DLGLOBAL DL_GLOBAL
8930 # else
8931 # define LT_DLGLOBAL 0
8932 # endif
8933 #endif
8935 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8936 find out it does not work in some platform. */
8937 #ifndef LT_DLLAZY_OR_NOW
8938 # ifdef RTLD_LAZY
8939 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8940 # else
8941 # ifdef DL_LAZY
8942 # define LT_DLLAZY_OR_NOW DL_LAZY
8943 # else
8944 # ifdef RTLD_NOW
8945 # define LT_DLLAZY_OR_NOW RTLD_NOW
8946 # else
8947 # ifdef DL_NOW
8948 # define LT_DLLAZY_OR_NOW DL_NOW
8949 # else
8950 # define LT_DLLAZY_OR_NOW 0
8951 # endif
8952 # endif
8953 # endif
8954 # endif
8955 #endif
8957 #ifdef __cplusplus
8958 extern "C" void exit (int);
8959 #endif
8961 void fnord() { int i=42;}
8962 int main ()
8963 {
8964 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8965 int status = $lt_dlunknown;
8967 if (self)
8968 {
8969 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8970 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8971 /* dlclose (self); */
8972 }
8973 else
8974 puts (dlerror ());
8976 exit (status);
8977 }
8978 EOF
8979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8980 (eval $ac_link) 2>&5
8981 ac_status=$?
8982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8984 (./conftest; exit; ) >&5 2>/dev/null
8985 lt_status=$?
8986 case x$lt_status in
8987 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8988 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8989 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
8990 esac
8991 else :
8992 # compilation failed
8993 lt_cv_dlopen_self_static=no
8994 fi
8995 fi
8996 rm -fr conftest*
8999 fi
9000 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9001 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9002 fi
9004 CPPFLAGS="$save_CPPFLAGS"
9005 LDFLAGS="$save_LDFLAGS"
9006 LIBS="$save_LIBS"
9007 ;;
9008 esac
9010 case $lt_cv_dlopen_self in
9011 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9012 *) enable_dlopen_self=unknown ;;
9013 esac
9015 case $lt_cv_dlopen_self_static in
9016 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9017 *) enable_dlopen_self_static=unknown ;;
9018 esac
9019 fi
9022 # Report which library types will actually be built
9023 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9024 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9025 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9026 echo "${ECHO_T}$can_build_shared" >&6
9028 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9029 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9030 test "$can_build_shared" = "no" && enable_shared=no
9032 # On AIX, shared libraries and static libraries use the same namespace, and
9033 # are all built from PIC.
9034 case $host_os in
9035 aix3*)
9036 test "$enable_shared" = yes && enable_static=no
9037 if test -n "$RANLIB"; then
9038 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9039 postinstall_cmds='$RANLIB $lib'
9040 fi
9041 ;;
9043 aix4* | aix5*)
9044 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9045 test "$enable_shared" = yes && enable_static=no
9046 fi
9047 ;;
9048 esac
9049 echo "$as_me:$LINENO: result: $enable_shared" >&5
9050 echo "${ECHO_T}$enable_shared" >&6
9052 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9053 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9054 # Make sure either enable_shared or enable_static is yes.
9055 test "$enable_shared" = yes || enable_static=yes
9056 echo "$as_me:$LINENO: result: $enable_static" >&5
9057 echo "${ECHO_T}$enable_static" >&6
9059 # The else clause should only fire when bootstrapping the
9060 # libtool distribution, otherwise you forgot to ship ltmain.sh
9061 # with your package, and you will get complaints that there are
9062 # no rules to generate ltmain.sh.
9063 if test -f "$ltmain"; then
9064 # See if we are running on zsh, and set the options which allow our commands through
9065 # without removal of \ escapes.
9066 if test -n "${ZSH_VERSION+set}" ; then
9067 setopt NO_GLOB_SUBST
9068 fi
9069 # Now quote all the things that may contain metacharacters while being
9070 # careful not to overquote the AC_SUBSTed values. We take copies of the
9071 # variables and quote the copies for generation of the libtool script.
9072 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9073 SED SHELL STRIP \
9074 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9075 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9076 deplibs_check_method reload_flag reload_cmds need_locks \
9077 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9078 lt_cv_sys_global_symbol_to_c_name_address \
9079 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9080 old_postinstall_cmds old_postuninstall_cmds \
9081 compiler \
9082 CC \
9083 LD \
9084 lt_prog_compiler_wl \
9085 lt_prog_compiler_pic \
9086 lt_prog_compiler_static \
9087 lt_prog_compiler_no_builtin_flag \
9088 export_dynamic_flag_spec \
9089 thread_safe_flag_spec \
9090 whole_archive_flag_spec \
9091 enable_shared_with_static_runtimes \
9092 old_archive_cmds \
9093 old_archive_from_new_cmds \
9094 predep_objects \
9095 postdep_objects \
9096 predeps \
9097 postdeps \
9098 compiler_lib_search_path \
9099 archive_cmds \
9100 archive_expsym_cmds \
9101 postinstall_cmds \
9102 postuninstall_cmds \
9103 old_archive_from_expsyms_cmds \
9104 allow_undefined_flag \
9105 no_undefined_flag \
9106 export_symbols_cmds \
9107 hardcode_libdir_flag_spec \
9108 hardcode_libdir_flag_spec_ld \
9109 hardcode_libdir_separator \
9110 hardcode_automatic \
9111 module_cmds \
9112 module_expsym_cmds \
9113 lt_cv_prog_compiler_c_o \
9114 exclude_expsyms \
9115 include_expsyms; do
9117 case $var in
9118 old_archive_cmds | \
9119 old_archive_from_new_cmds | \
9120 archive_cmds | \
9121 archive_expsym_cmds | \
9122 module_cmds | \
9123 module_expsym_cmds | \
9124 old_archive_from_expsyms_cmds | \
9125 export_symbols_cmds | \
9126 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9127 postinstall_cmds | postuninstall_cmds | \
9128 old_postinstall_cmds | old_postuninstall_cmds | \
9129 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9130 # Double-quote double-evaled strings.
9131 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9132 ;;
9133 *)
9134 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9135 ;;
9136 esac
9137 done
9139 case $lt_echo in
9140 *'\$0 --fallback-echo"')
9141 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9142 ;;
9143 esac
9145 cfgfile="${ofile}T"
9146 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9147 $rm -f "$cfgfile"
9148 { echo "$as_me:$LINENO: creating $ofile" >&5
9149 echo "$as_me: creating $ofile" >&6;}
9151 cat <<__EOF__ >> "$cfgfile"
9152 #! $SHELL
9154 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9155 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9156 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9157 #
9158 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9159 # Free Software Foundation, Inc.
9160 #
9161 # This file is part of GNU Libtool:
9162 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9163 #
9164 # This program is free software; you can redistribute it and/or modify
9165 # it under the terms of the GNU General Public License as published by
9166 # the Free Software Foundation; either version 2 of the License, or
9167 # (at your option) any later version.
9168 #
9169 # This program is distributed in the hope that it will be useful, but
9170 # WITHOUT ANY WARRANTY; without even the implied warranty of
9171 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9172 # General Public License for more details.
9173 #
9174 # You should have received a copy of the GNU General Public License
9175 # along with this program; if not, write to the Free Software
9176 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9177 #
9178 # As a special exception to the GNU General Public License, if you
9179 # distribute this file as part of a program that contains a
9180 # configuration script generated by Autoconf, you may include it under
9181 # the same distribution terms that you use for the rest of that program.
9183 # A sed program that does not truncate output.
9184 SED=$lt_SED
9186 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9187 Xsed="$SED -e 1s/^X//"
9189 # The HP-UX ksh and POSIX shell print the target directory to stdout
9190 # if CDPATH is set.
9191 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9193 # The names of the tagged configurations supported by this script.
9194 available_tags=
9196 # ### BEGIN LIBTOOL CONFIG
9198 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9200 # Shell to use when invoking shell scripts.
9201 SHELL=$lt_SHELL
9203 # Whether or not to build shared libraries.
9204 build_libtool_libs=$enable_shared
9206 # Whether or not to build static libraries.
9207 build_old_libs=$enable_static
9209 # Whether or not to add -lc for building shared libraries.
9210 build_libtool_need_lc=$archive_cmds_need_lc
9212 # Whether or not to disallow shared libs when runtime libs are static
9213 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9215 # Whether or not to optimize for fast installation.
9216 fast_install=$enable_fast_install
9218 # The host system.
9219 host_alias=$host_alias
9220 host=$host
9221 host_os=$host_os
9223 # The build system.
9224 build_alias=$build_alias
9225 build=$build
9226 build_os=$build_os
9228 # An echo program that does not interpret backslashes.
9229 echo=$lt_echo
9231 # The archiver.
9232 AR=$lt_AR
9233 AR_FLAGS=$lt_AR_FLAGS
9235 # A C compiler.
9236 LTCC=$lt_LTCC
9238 # LTCC compiler flags.
9239 LTCFLAGS=$lt_LTCFLAGS
9241 # A language-specific compiler.
9242 CC=$lt_compiler
9244 # Is the compiler the GNU C compiler?
9245 with_gcc=$GCC
9247 # An ERE matcher.
9248 EGREP=$lt_EGREP
9250 # The linker used to build libraries.
9251 LD=$lt_LD
9253 # Whether we need hard or soft links.
9254 LN_S=$lt_LN_S
9256 # A BSD-compatible nm program.
9257 NM=$lt_NM
9259 # A symbol stripping program
9260 STRIP=$lt_STRIP
9262 # Used to examine libraries when file_magic_cmd begins "file"
9263 MAGIC_CMD=$MAGIC_CMD
9265 # Used on cygwin: DLL creation program.
9266 DLLTOOL="$DLLTOOL"
9268 # Used on cygwin: object dumper.
9269 OBJDUMP="$OBJDUMP"
9271 # Used on cygwin: assembler.
9272 AS="$AS"
9274 # The name of the directory that contains temporary libtool files.
9275 objdir=$objdir
9277 # How to create reloadable object files.
9278 reload_flag=$lt_reload_flag
9279 reload_cmds=$lt_reload_cmds
9281 # How to pass a linker flag through the compiler.
9282 wl=$lt_lt_prog_compiler_wl
9284 # Object file suffix (normally "o").
9285 objext="$ac_objext"
9287 # Old archive suffix (normally "a").
9288 libext="$libext"
9290 # Shared library suffix (normally ".so").
9291 shrext_cmds='$shrext_cmds'
9293 # Executable file suffix (normally "").
9294 exeext="$exeext"
9296 # Additional compiler flags for building library objects.
9297 pic_flag=$lt_lt_prog_compiler_pic
9298 pic_mode=$pic_mode
9300 # What is the maximum length of a command?
9301 max_cmd_len=$lt_cv_sys_max_cmd_len
9303 # Does compiler simultaneously support -c and -o options?
9304 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9306 # Must we lock files when doing compilation?
9307 need_locks=$lt_need_locks
9309 # Do we need the lib prefix for modules?
9310 need_lib_prefix=$need_lib_prefix
9312 # Do we need a version for libraries?
9313 need_version=$need_version
9315 # Whether dlopen is supported.
9316 dlopen_support=$enable_dlopen
9318 # Whether dlopen of programs is supported.
9319 dlopen_self=$enable_dlopen_self
9321 # Whether dlopen of statically linked programs is supported.
9322 dlopen_self_static=$enable_dlopen_self_static
9324 # Compiler flag to prevent dynamic linking.
9325 link_static_flag=$lt_lt_prog_compiler_static
9327 # Compiler flag to turn off builtin functions.
9328 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9330 # Compiler flag to allow reflexive dlopens.
9331 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9333 # Compiler flag to generate shared objects directly from archives.
9334 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9336 # Compiler flag to generate thread-safe objects.
9337 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9339 # Library versioning type.
9340 version_type=$version_type
9342 # Format of library name prefix.
9343 libname_spec=$lt_libname_spec
9345 # List of archive names. First name is the real one, the rest are links.
9346 # The last name is the one that the linker finds with -lNAME.
9347 library_names_spec=$lt_library_names_spec
9349 # The coded name of the library, if different from the real name.
9350 soname_spec=$lt_soname_spec
9352 # Commands used to build and install an old-style archive.
9353 RANLIB=$lt_RANLIB
9354 old_archive_cmds=$lt_old_archive_cmds
9355 old_postinstall_cmds=$lt_old_postinstall_cmds
9356 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9358 # Create an old-style archive from a shared archive.
9359 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9361 # Create a temporary old-style archive to link instead of a shared archive.
9362 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9364 # Commands used to build and install a shared archive.
9365 archive_cmds=$lt_archive_cmds
9366 archive_expsym_cmds=$lt_archive_expsym_cmds
9367 postinstall_cmds=$lt_postinstall_cmds
9368 postuninstall_cmds=$lt_postuninstall_cmds
9370 # Commands used to build a loadable module (assumed same as above if empty)
9371 module_cmds=$lt_module_cmds
9372 module_expsym_cmds=$lt_module_expsym_cmds
9374 # Commands to strip libraries.
9375 old_striplib=$lt_old_striplib
9376 striplib=$lt_striplib
9378 # Dependencies to place before the objects being linked to create a
9379 # shared library.
9380 predep_objects=$lt_predep_objects
9382 # Dependencies to place after the objects being linked to create a
9383 # shared library.
9384 postdep_objects=$lt_postdep_objects
9386 # Dependencies to place before the objects being linked to create a
9387 # shared library.
9388 predeps=$lt_predeps
9390 # Dependencies to place after the objects being linked to create a
9391 # shared library.
9392 postdeps=$lt_postdeps
9394 # The library search path used internally by the compiler when linking
9395 # a shared library.
9396 compiler_lib_search_path=$lt_compiler_lib_search_path
9398 # Method to check whether dependent libraries are shared objects.
9399 deplibs_check_method=$lt_deplibs_check_method
9401 # Command to use when deplibs_check_method == file_magic.
9402 file_magic_cmd=$lt_file_magic_cmd
9404 # Flag that allows shared libraries with undefined symbols to be built.
9405 allow_undefined_flag=$lt_allow_undefined_flag
9407 # Flag that forces no undefined symbols.
9408 no_undefined_flag=$lt_no_undefined_flag
9410 # Commands used to finish a libtool library installation in a directory.
9411 finish_cmds=$lt_finish_cmds
9413 # Same as above, but a single script fragment to be evaled but not shown.
9414 finish_eval=$lt_finish_eval
9416 # Take the output of nm and produce a listing of raw symbols and C names.
9417 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9419 # Transform the output of nm in a proper C declaration
9420 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9422 # Transform the output of nm in a C name address pair
9423 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9425 # This is the shared library runtime path variable.
9426 runpath_var=$runpath_var
9428 # This is the shared library path variable.
9429 shlibpath_var=$shlibpath_var
9431 # Is shlibpath searched before the hard-coded library search path?
9432 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9434 # How to hardcode a shared library path into an executable.
9435 hardcode_action=$hardcode_action
9437 # Whether we should hardcode library paths into libraries.
9438 hardcode_into_libs=$hardcode_into_libs
9440 # Flag to hardcode \$libdir into a binary during linking.
9441 # This must work even if \$libdir does not exist.
9442 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9444 # If ld is used when linking, flag to hardcode \$libdir into
9445 # a binary during linking. This must work even if \$libdir does
9446 # not exist.
9447 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9449 # Whether we need a single -rpath flag with a separated argument.
9450 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9452 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9453 # resulting binary.
9454 hardcode_direct=$hardcode_direct
9456 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9457 # resulting binary.
9458 hardcode_minus_L=$hardcode_minus_L
9460 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9461 # the resulting binary.
9462 hardcode_shlibpath_var=$hardcode_shlibpath_var
9464 # Set to yes if building a shared library automatically hardcodes DIR into the library
9465 # and all subsequent libraries and executables linked against it.
9466 hardcode_automatic=$hardcode_automatic
9468 # Variables whose values should be saved in libtool wrapper scripts and
9469 # restored at relink time.
9470 variables_saved_for_relink="$variables_saved_for_relink"
9472 # Whether libtool must link a program against all its dependency libraries.
9473 link_all_deplibs=$link_all_deplibs
9475 # Compile-time system search path for libraries
9476 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9478 # Run-time system search path for libraries
9479 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9481 # Fix the shell variable \$srcfile for the compiler.
9482 fix_srcfile_path="$fix_srcfile_path"
9484 # Set to yes if exported symbols are required.
9485 always_export_symbols=$always_export_symbols
9487 # The commands to list exported symbols.
9488 export_symbols_cmds=$lt_export_symbols_cmds
9490 # The commands to extract the exported symbol list from a shared archive.
9491 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9493 # Symbols that should not be listed in the preloaded symbols.
9494 exclude_expsyms=$lt_exclude_expsyms
9496 # Symbols that must always be exported.
9497 include_expsyms=$lt_include_expsyms
9499 # ### END LIBTOOL CONFIG
9501 __EOF__
9504 case $host_os in
9505 aix3*)
9506 cat <<\EOF >> "$cfgfile"
9508 # AIX sometimes has problems with the GCC collect2 program. For some
9509 # reason, if we set the COLLECT_NAMES environment variable, the problems
9510 # vanish in a puff of smoke.
9511 if test "X${COLLECT_NAMES+set}" != Xset; then
9512 COLLECT_NAMES=
9513 export COLLECT_NAMES
9514 fi
9515 EOF
9516 ;;
9517 esac
9519 # We use sed instead of cat because bash on DJGPP gets confused if
9520 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9521 # text mode, it properly converts lines to CR/LF. This bash problem
9522 # is reportedly fixed, but why not run on old versions too?
9523 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9525 mv -f "$cfgfile" "$ofile" || \
9526 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9527 chmod +x "$ofile"
9529 else
9530 # If there is no Makefile yet, we rely on a make rule to execute
9531 # `config.status --recheck' to rerun these tests and create the
9532 # libtool script then.
9533 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9534 if test -f "$ltmain_in"; then
9535 test -f Makefile && make "$ltmain"
9536 fi
9537 fi
9540 ac_ext=c
9541 ac_cpp='$CPP $CPPFLAGS'
9542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9546 CC="$lt_save_CC"
9549 # Check whether --with-tags or --without-tags was given.
9550 if test "${with_tags+set}" = set; then
9551 withval="$with_tags"
9552 tagnames="$withval"
9553 fi;
9555 if test -f "$ltmain" && test -n "$tagnames"; then
9556 if test ! -f "${ofile}"; then
9557 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9558 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9559 fi
9561 if test -z "$LTCC"; then
9562 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9563 if test -z "$LTCC"; then
9564 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9565 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9566 else
9567 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9568 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9569 fi
9570 fi
9571 if test -z "$LTCFLAGS"; then
9572 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9573 fi
9575 # Extract list of available tagged configurations in $ofile.
9576 # Note that this assumes the entire list is on one line.
9577 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9579 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9580 for tagname in $tagnames; do
9581 IFS="$lt_save_ifs"
9582 # Check whether tagname contains only valid characters
9583 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9584 "") ;;
9585 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9586 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9587 { (exit 1); exit 1; }; }
9588 ;;
9589 esac
9591 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9592 then
9593 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9594 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9595 { (exit 1); exit 1; }; }
9596 fi
9598 # Update the list of available tags.
9599 if test -n "$tagname"; then
9600 echo appending configuration tag \"$tagname\" to $ofile
9602 case $tagname in
9603 CXX)
9604 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9605 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9606 (test "X$CXX" != "Xg++"))) ; then
9607 ac_ext=cc
9608 ac_cpp='$CXXCPP $CPPFLAGS'
9609 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9610 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9611 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9616 archive_cmds_need_lc_CXX=no
9617 allow_undefined_flag_CXX=
9618 always_export_symbols_CXX=no
9619 archive_expsym_cmds_CXX=
9620 export_dynamic_flag_spec_CXX=
9621 hardcode_direct_CXX=no
9622 hardcode_libdir_flag_spec_CXX=
9623 hardcode_libdir_flag_spec_ld_CXX=
9624 hardcode_libdir_separator_CXX=
9625 hardcode_minus_L_CXX=no
9626 hardcode_shlibpath_var_CXX=unsupported
9627 hardcode_automatic_CXX=no
9628 module_cmds_CXX=
9629 module_expsym_cmds_CXX=
9630 link_all_deplibs_CXX=unknown
9631 old_archive_cmds_CXX=$old_archive_cmds
9632 no_undefined_flag_CXX=
9633 whole_archive_flag_spec_CXX=
9634 enable_shared_with_static_runtimes_CXX=no
9636 # Dependencies to place before and after the object being linked:
9637 predep_objects_CXX=
9638 postdep_objects_CXX=
9639 predeps_CXX=
9640 postdeps_CXX=
9641 compiler_lib_search_path_CXX=
9643 # Source file extension for C++ test sources.
9644 ac_ext=cpp
9646 # Object file extension for compiled C++ test sources.
9647 objext=o
9648 objext_CXX=$objext
9650 # Code to be used in simple compile tests
9651 lt_simple_compile_test_code="int some_variable = 0;\n"
9653 # Code to be used in simple link tests
9654 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
9656 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9658 # If no C compiler was specified, use CC.
9659 LTCC=${LTCC-"$CC"}
9661 # If no C compiler flags were specified, use CFLAGS.
9662 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9664 # Allow CC to be a program name with arguments.
9665 compiler=$CC
9668 # save warnings/boilerplate of simple test code
9669 ac_outfile=conftest.$ac_objext
9670 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9671 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9672 _lt_compiler_boilerplate=`cat conftest.err`
9673 $rm conftest*
9675 ac_outfile=conftest.$ac_objext
9676 printf "$lt_simple_link_test_code" >conftest.$ac_ext
9677 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9678 _lt_linker_boilerplate=`cat conftest.err`
9679 $rm conftest*
9682 # Allow CC to be a program name with arguments.
9683 lt_save_CC=$CC
9684 lt_save_LD=$LD
9685 lt_save_GCC=$GCC
9686 GCC=$GXX
9687 lt_save_with_gnu_ld=$with_gnu_ld
9688 lt_save_path_LD=$lt_cv_path_LD
9689 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9690 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9691 else
9692 $as_unset lt_cv_prog_gnu_ld
9693 fi
9694 if test -n "${lt_cv_path_LDCXX+set}"; then
9695 lt_cv_path_LD=$lt_cv_path_LDCXX
9696 else
9697 $as_unset lt_cv_path_LD
9698 fi
9699 test -z "${LDCXX+set}" || LD=$LDCXX
9700 CC=${CXX-"c++"}
9701 compiler=$CC
9702 compiler_CXX=$CC
9703 for cc_temp in $compiler""; do
9704 case $cc_temp in
9705 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9706 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9707 \-*) ;;
9708 *) break;;
9709 esac
9710 done
9711 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9714 # We don't want -fno-exception wen compiling C++ code, so set the
9715 # no_builtin_flag separately
9716 if test "$GXX" = yes; then
9717 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9718 else
9719 lt_prog_compiler_no_builtin_flag_CXX=
9720 fi
9722 if test "$GXX" = yes; then
9723 # Set up default GNU C++ configuration
9726 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9727 if test "${with_gnu_ld+set}" = set; then
9728 withval="$with_gnu_ld"
9729 test "$withval" = no || with_gnu_ld=yes
9730 else
9731 with_gnu_ld=no
9732 fi;
9733 ac_prog=ld
9734 if test "$GCC" = yes; then
9735 # Check if gcc -print-prog-name=ld gives a path.
9736 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9737 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9738 case $host in
9739 *-*-mingw*)
9740 # gcc leaves a trailing carriage return which upsets mingw
9741 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9742 *)
9743 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9744 esac
9745 case $ac_prog in
9746 # Accept absolute paths.
9747 [\\/]* | ?:[\\/]*)
9748 re_direlt='/[^/][^/]*/\.\./'
9749 # Canonicalize the pathname of ld
9750 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9751 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9752 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9753 done
9754 test -z "$LD" && LD="$ac_prog"
9755 ;;
9756 "")
9757 # If it fails, then pretend we aren't using GCC.
9758 ac_prog=ld
9759 ;;
9760 *)
9761 # If it is relative, then search for the first ld in PATH.
9762 with_gnu_ld=unknown
9763 ;;
9764 esac
9765 elif test "$with_gnu_ld" = yes; then
9766 echo "$as_me:$LINENO: checking for GNU ld" >&5
9767 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9768 else
9769 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9770 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9771 fi
9772 if test "${lt_cv_path_LD+set}" = set; then
9773 echo $ECHO_N "(cached) $ECHO_C" >&6
9774 else
9775 if test -z "$LD"; then
9776 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9777 for ac_dir in $PATH; do
9778 IFS="$lt_save_ifs"
9779 test -z "$ac_dir" && ac_dir=.
9780 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9781 lt_cv_path_LD="$ac_dir/$ac_prog"
9782 # Check to see if the program is GNU ld. I'd rather use --version,
9783 # but apparently some variants of GNU ld only accept -v.
9784 # Break only if it was the GNU/non-GNU ld that we prefer.
9785 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9786 *GNU* | *'with BFD'*)
9787 test "$with_gnu_ld" != no && break
9788 ;;
9789 *)
9790 test "$with_gnu_ld" != yes && break
9791 ;;
9792 esac
9793 fi
9794 done
9795 IFS="$lt_save_ifs"
9796 else
9797 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9798 fi
9799 fi
9801 LD="$lt_cv_path_LD"
9802 if test -n "$LD"; then
9803 echo "$as_me:$LINENO: result: $LD" >&5
9804 echo "${ECHO_T}$LD" >&6
9805 else
9806 echo "$as_me:$LINENO: result: no" >&5
9807 echo "${ECHO_T}no" >&6
9808 fi
9809 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9810 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9811 { (exit 1); exit 1; }; }
9812 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9813 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9814 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9815 echo $ECHO_N "(cached) $ECHO_C" >&6
9816 else
9817 # I'd rather use --version here, but apparently some GNU lds only accept -v.
9818 case `$LD -v 2>&1 </dev/null` in
9819 *GNU* | *'with BFD'*)
9820 lt_cv_prog_gnu_ld=yes
9821 ;;
9822 *)
9823 lt_cv_prog_gnu_ld=no
9824 ;;
9825 esac
9826 fi
9827 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9828 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9829 with_gnu_ld=$lt_cv_prog_gnu_ld
9833 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9834 # archiving commands below assume that GNU ld is being used.
9835 if test "$with_gnu_ld" = yes; then
9836 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9837 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'
9839 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9840 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9842 # If archive_cmds runs LD, not CC, wlarc should be empty
9843 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9844 # investigate it a little bit more. (MM)
9845 wlarc='${wl}'
9847 # ancient GNU ld didn't support --whole-archive et. al.
9848 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9849 grep 'no-whole-archive' > /dev/null; then
9850 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9851 else
9852 whole_archive_flag_spec_CXX=
9853 fi
9854 else
9855 with_gnu_ld=no
9856 wlarc=
9858 # A generic and very simple default shared library creation
9859 # command for GNU C++ for the case where it uses the native
9860 # linker, instead of GNU ld. If possible, this setting should
9861 # overridden to take advantage of the native linker features on
9862 # the platform it is being used on.
9863 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9864 fi
9866 # Commands to make compiler produce verbose output that lists
9867 # what "hidden" libraries, object files and flags are used when
9868 # linking a shared library.
9869 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9871 else
9872 GXX=no
9873 with_gnu_ld=no
9874 wlarc=
9875 fi
9877 # PORTME: fill in a description of your system's C++ link characteristics
9878 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9879 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9880 ld_shlibs_CXX=yes
9881 case $host_os in
9882 aix3*)
9883 # FIXME: insert proper C++ library support
9884 ld_shlibs_CXX=no
9885 ;;
9886 aix4* | aix5*)
9887 if test "$host_cpu" = ia64; then
9888 # On IA64, the linker does run time linking by default, so we don't
9889 # have to do anything special.
9890 aix_use_runtimelinking=no
9891 exp_sym_flag='-Bexport'
9892 no_entry_flag=""
9893 else
9894 aix_use_runtimelinking=no
9896 # Test if we are trying to use run time linking or normal
9897 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9898 # need to do runtime linking.
9899 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9900 for ld_flag in $LDFLAGS; do
9901 case $ld_flag in
9902 *-brtl*)
9903 aix_use_runtimelinking=yes
9904 break
9905 ;;
9906 esac
9907 done
9908 ;;
9909 esac
9911 exp_sym_flag='-bexport'
9912 no_entry_flag='-bnoentry'
9913 fi
9915 # When large executables or shared objects are built, AIX ld can
9916 # have problems creating the table of contents. If linking a library
9917 # or program results in "error TOC overflow" add -mminimal-toc to
9918 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9919 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9921 archive_cmds_CXX=''
9922 hardcode_direct_CXX=yes
9923 hardcode_libdir_separator_CXX=':'
9924 link_all_deplibs_CXX=yes
9926 if test "$GXX" = yes; then
9927 case $host_os in aix4.[012]|aix4.[012].*)
9928 # We only want to do this on AIX 4.2 and lower, the check
9929 # below for broken collect2 doesn't work under 4.3+
9930 collect2name=`${CC} -print-prog-name=collect2`
9931 if test -f "$collect2name" && \
9932 strings "$collect2name" | grep resolve_lib_name >/dev/null
9933 then
9934 # We have reworked collect2
9935 hardcode_direct_CXX=yes
9936 else
9937 # We have old collect2
9938 hardcode_direct_CXX=unsupported
9939 # It fails to find uninstalled libraries when the uninstalled
9940 # path is not listed in the libpath. Setting hardcode_minus_L
9941 # to unsupported forces relinking
9942 hardcode_minus_L_CXX=yes
9943 hardcode_libdir_flag_spec_CXX='-L$libdir'
9944 hardcode_libdir_separator_CXX=
9945 fi
9946 ;;
9947 esac
9948 shared_flag='-shared'
9949 if test "$aix_use_runtimelinking" = yes; then
9950 shared_flag="$shared_flag "'${wl}-G'
9951 fi
9952 else
9953 # not using gcc
9954 if test "$host_cpu" = ia64; then
9955 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9956 # chokes on -Wl,-G. The following line is correct:
9957 shared_flag='-G'
9958 else
9959 if test "$aix_use_runtimelinking" = yes; then
9960 shared_flag='${wl}-G'
9961 else
9962 shared_flag='${wl}-bM:SRE'
9963 fi
9964 fi
9965 fi
9967 # It seems that -bexpall does not export symbols beginning with
9968 # underscore (_), so it is better to generate a list of symbols to export.
9969 always_export_symbols_CXX=yes
9970 if test "$aix_use_runtimelinking" = yes; then
9971 # Warning - without using the other runtime loading flags (-brtl),
9972 # -berok will link without error, but may produce a broken library.
9973 allow_undefined_flag_CXX='-berok'
9974 # Determine the default libpath from the value encoded in an empty executable.
9975 cat >conftest.$ac_ext <<_ACEOF
9976 /* confdefs.h. */
9977 _ACEOF
9978 cat confdefs.h >>conftest.$ac_ext
9979 cat >>conftest.$ac_ext <<_ACEOF
9980 /* end confdefs.h. */
9982 int
9983 main ()
9984 {
9986 ;
9987 return 0;
9988 }
9989 _ACEOF
9990 rm -f conftest.$ac_objext conftest$ac_exeext
9991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9992 (eval $ac_link) 2>conftest.er1
9993 ac_status=$?
9994 grep -v '^ *+' conftest.er1 >conftest.err
9995 rm -f conftest.er1
9996 cat conftest.err >&5
9997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998 (exit $ac_status); } &&
9999 { ac_try='test -z "$ac_cxx_werror_flag"
10000 || test ! -s conftest.err'
10001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10002 (eval $ac_try) 2>&5
10003 ac_status=$?
10004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10005 (exit $ac_status); }; } &&
10006 { ac_try='test -s conftest$ac_exeext'
10007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10008 (eval $ac_try) 2>&5
10009 ac_status=$?
10010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10011 (exit $ac_status); }; }; then
10013 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10014 }'`
10015 # Check for a 64-bit object if we didn't find anything.
10016 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; }
10017 }'`; fi
10018 else
10019 echo "$as_me: failed program was:" >&5
10020 sed 's/^/| /' conftest.$ac_ext >&5
10022 fi
10023 rm -f conftest.err conftest.$ac_objext \
10024 conftest$ac_exeext conftest.$ac_ext
10025 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10027 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10029 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"
10030 else
10031 if test "$host_cpu" = ia64; then
10032 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10033 allow_undefined_flag_CXX="-z nodefs"
10034 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"
10035 else
10036 # Determine the default libpath from the value encoded in an empty executable.
10037 cat >conftest.$ac_ext <<_ACEOF
10038 /* confdefs.h. */
10039 _ACEOF
10040 cat confdefs.h >>conftest.$ac_ext
10041 cat >>conftest.$ac_ext <<_ACEOF
10042 /* end confdefs.h. */
10044 int
10045 main ()
10046 {
10048 ;
10049 return 0;
10050 }
10051 _ACEOF
10052 rm -f conftest.$ac_objext conftest$ac_exeext
10053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10054 (eval $ac_link) 2>conftest.er1
10055 ac_status=$?
10056 grep -v '^ *+' conftest.er1 >conftest.err
10057 rm -f conftest.er1
10058 cat conftest.err >&5
10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 (exit $ac_status); } &&
10061 { ac_try='test -z "$ac_cxx_werror_flag"
10062 || test ! -s conftest.err'
10063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10064 (eval $ac_try) 2>&5
10065 ac_status=$?
10066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067 (exit $ac_status); }; } &&
10068 { ac_try='test -s conftest$ac_exeext'
10069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10070 (eval $ac_try) 2>&5
10071 ac_status=$?
10072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073 (exit $ac_status); }; }; then
10075 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10076 }'`
10077 # Check for a 64-bit object if we didn't find anything.
10078 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; }
10079 }'`; fi
10080 else
10081 echo "$as_me: failed program was:" >&5
10082 sed 's/^/| /' conftest.$ac_ext >&5
10084 fi
10085 rm -f conftest.err conftest.$ac_objext \
10086 conftest$ac_exeext conftest.$ac_ext
10087 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10089 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10090 # Warning - without using the other run time loading flags,
10091 # -berok will link without error, but may produce a broken library.
10092 no_undefined_flag_CXX=' ${wl}-bernotok'
10093 allow_undefined_flag_CXX=' ${wl}-berok'
10094 # Exported symbols can be pulled into shared objects from archives
10095 whole_archive_flag_spec_CXX='$convenience'
10096 archive_cmds_need_lc_CXX=yes
10097 # This is similar to how AIX traditionally builds its shared libraries.
10098 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'
10099 fi
10100 fi
10101 ;;
10103 beos*)
10104 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10105 allow_undefined_flag_CXX=unsupported
10106 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10107 # support --undefined. This deserves some investigation. FIXME
10108 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10109 else
10110 ld_shlibs_CXX=no
10111 fi
10112 ;;
10114 chorus*)
10115 case $cc_basename in
10116 *)
10117 # FIXME: insert proper C++ library support
10118 ld_shlibs_CXX=no
10119 ;;
10120 esac
10121 ;;
10123 cygwin* | mingw* | pw32*)
10124 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10125 # as there is no search path for DLLs.
10126 hardcode_libdir_flag_spec_CXX='-L$libdir'
10127 allow_undefined_flag_CXX=unsupported
10128 always_export_symbols_CXX=no
10129 enable_shared_with_static_runtimes_CXX=yes
10131 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10132 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'
10133 # If the export-symbols file already is a .def file (1st line
10134 # is EXPORTS), use it as is; otherwise, prepend...
10135 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10136 cp $export_symbols $output_objdir/$soname.def;
10137 else
10138 echo EXPORTS > $output_objdir/$soname.def;
10139 cat $export_symbols >> $output_objdir/$soname.def;
10140 fi~
10141 $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'
10142 else
10143 ld_shlibs_CXX=no
10144 fi
10145 ;;
10146 darwin* | rhapsody*)
10147 case $host_os in
10148 rhapsody* | darwin1.[012])
10149 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10150 ;;
10151 *) # Darwin 1.3 on
10152 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10153 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10154 else
10155 case ${MACOSX_DEPLOYMENT_TARGET} in
10156 10.[012])
10157 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10158 ;;
10159 10.*)
10160 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10161 ;;
10162 esac
10163 fi
10164 ;;
10165 esac
10166 archive_cmds_need_lc_CXX=no
10167 hardcode_direct_CXX=no
10168 hardcode_automatic_CXX=yes
10169 hardcode_shlibpath_var_CXX=unsupported
10170 whole_archive_flag_spec_CXX=''
10171 link_all_deplibs_CXX=yes
10173 if test "$GXX" = yes ; then
10174 lt_int_apple_cc_single_mod=no
10175 output_verbose_link_cmd='echo'
10176 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10177 lt_int_apple_cc_single_mod=yes
10178 fi
10179 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10180 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10181 else
10182 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'
10183 fi
10184 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10185 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10186 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10187 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}'
10188 else
10189 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}'
10190 fi
10191 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}'
10192 else
10193 case $cc_basename in
10194 xlc*)
10195 output_verbose_link_cmd='echo'
10196 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'
10197 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10198 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10199 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}'
10200 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}'
10201 ;;
10202 *)
10203 ld_shlibs_CXX=no
10204 ;;
10205 esac
10206 fi
10207 ;;
10209 dgux*)
10210 case $cc_basename in
10211 ec++*)
10212 # FIXME: insert proper C++ library support
10213 ld_shlibs_CXX=no
10214 ;;
10215 ghcx*)
10216 # Green Hills C++ Compiler
10217 # FIXME: insert proper C++ library support
10218 ld_shlibs_CXX=no
10219 ;;
10220 *)
10221 # FIXME: insert proper C++ library support
10222 ld_shlibs_CXX=no
10223 ;;
10224 esac
10225 ;;
10226 freebsd[12]*)
10227 # C++ shared libraries reported to be fairly broken before switch to ELF
10228 ld_shlibs_CXX=no
10229 ;;
10230 freebsd-elf*)
10231 archive_cmds_need_lc_CXX=no
10232 ;;
10233 freebsd* | kfreebsd*-gnu | dragonfly*)
10234 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10235 # conventions
10236 ld_shlibs_CXX=yes
10237 ;;
10238 gnu*)
10239 ;;
10240 hpux9*)
10241 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10242 hardcode_libdir_separator_CXX=:
10243 export_dynamic_flag_spec_CXX='${wl}-E'
10244 hardcode_direct_CXX=yes
10245 hardcode_minus_L_CXX=yes # Not in the search PATH,
10246 # but as the default
10247 # location of the library.
10249 case $cc_basename in
10250 CC*)
10251 # FIXME: insert proper C++ library support
10252 ld_shlibs_CXX=no
10253 ;;
10254 aCC*)
10255 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'
10256 # Commands to make compiler produce verbose output that lists
10257 # what "hidden" libraries, object files and flags are used when
10258 # linking a shared library.
10259 #
10260 # There doesn't appear to be a way to prevent this compiler from
10261 # explicitly linking system object files so we need to strip them
10262 # from the output so that they don't get included in the library
10263 # dependencies.
10264 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'
10265 ;;
10266 *)
10267 if test "$GXX" = yes; then
10268 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'
10269 else
10270 # FIXME: insert proper C++ library support
10271 ld_shlibs_CXX=no
10272 fi
10273 ;;
10274 esac
10275 ;;
10276 hpux10*|hpux11*)
10277 if test $with_gnu_ld = no; then
10278 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10279 hardcode_libdir_separator_CXX=:
10281 case $host_cpu in
10282 hppa*64*|ia64*)
10283 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10284 ;;
10285 *)
10286 export_dynamic_flag_spec_CXX='${wl}-E'
10287 ;;
10288 esac
10289 fi
10290 case $host_cpu in
10291 hppa*64*|ia64*)
10292 hardcode_direct_CXX=no
10293 hardcode_shlibpath_var_CXX=no
10294 ;;
10295 *)
10296 hardcode_direct_CXX=yes
10297 hardcode_minus_L_CXX=yes # Not in the search PATH,
10298 # but as the default
10299 # location of the library.
10300 ;;
10301 esac
10303 case $cc_basename in
10304 CC*)
10305 # FIXME: insert proper C++ library support
10306 ld_shlibs_CXX=no
10307 ;;
10308 aCC*)
10309 case $host_cpu in
10310 hppa*64*)
10311 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10312 ;;
10313 ia64*)
10314 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10315 ;;
10316 *)
10317 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10318 ;;
10319 esac
10320 # Commands to make compiler produce verbose output that lists
10321 # what "hidden" libraries, object files and flags are used when
10322 # linking a shared library.
10323 #
10324 # There doesn't appear to be a way to prevent this compiler from
10325 # explicitly linking system object files so we need to strip them
10326 # from the output so that they don't get included in the library
10327 # dependencies.
10328 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'
10329 ;;
10330 *)
10331 if test "$GXX" = yes; then
10332 if test $with_gnu_ld = no; then
10333 case $host_cpu in
10334 hppa*64*)
10335 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10336 ;;
10337 ia64*)
10338 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10339 ;;
10340 *)
10341 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'
10342 ;;
10343 esac
10344 fi
10345 else
10346 # FIXME: insert proper C++ library support
10347 ld_shlibs_CXX=no
10348 fi
10349 ;;
10350 esac
10351 ;;
10352 interix3*)
10353 hardcode_direct_CXX=no
10354 hardcode_shlibpath_var_CXX=no
10355 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10356 export_dynamic_flag_spec_CXX='${wl}-E'
10357 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10358 # Instead, shared libraries are loaded at an image base (0x10000000 by
10359 # default) and relocated if they conflict, which is a slow very memory
10360 # consuming and fragmenting process. To avoid this, we pick a random,
10361 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10362 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10363 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'
10364 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'
10365 ;;
10366 irix5* | irix6*)
10367 case $cc_basename in
10368 CC*)
10369 # SGI C++
10370 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'
10372 # Archives containing C++ object files must be created using
10373 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10374 # necessary to make sure instantiated templates are included
10375 # in the archive.
10376 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10377 ;;
10378 *)
10379 if test "$GXX" = yes; then
10380 if test "$with_gnu_ld" = no; then
10381 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'
10382 else
10383 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'
10384 fi
10385 fi
10386 link_all_deplibs_CXX=yes
10387 ;;
10388 esac
10389 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10390 hardcode_libdir_separator_CXX=:
10391 ;;
10392 linux*)
10393 case $cc_basename in
10394 KCC*)
10395 # Kuck and Associates, Inc. (KAI) C++ Compiler
10397 # KCC will only create a shared library if the output file
10398 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10399 # to its proper name (with version) after linking.
10400 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'
10401 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'
10402 # Commands to make compiler produce verbose output that lists
10403 # what "hidden" libraries, object files and flags are used when
10404 # linking a shared library.
10405 #
10406 # There doesn't appear to be a way to prevent this compiler from
10407 # explicitly linking system object files so we need to strip them
10408 # from the output so that they don't get included in the library
10409 # dependencies.
10410 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'
10412 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10413 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10415 # Archives containing C++ object files must be created using
10416 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10417 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10418 ;;
10419 icpc*)
10420 # Intel C++
10421 with_gnu_ld=yes
10422 # version 8.0 and above of icpc choke on multiply defined symbols
10423 # if we add $predep_objects and $postdep_objects, however 7.1 and
10424 # earlier do not add the objects themselves.
10425 case `$CC -V 2>&1` in
10426 *"Version 7."*)
10427 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10428 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'
10429 ;;
10430 *) # Version 8.0 or newer
10431 tmp_idyn=
10432 case $host_cpu in
10433 ia64*) tmp_idyn=' -i_dynamic';;
10434 esac
10435 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10436 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'
10437 ;;
10438 esac
10439 archive_cmds_need_lc_CXX=no
10440 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10441 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10442 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10443 ;;
10444 pgCC*)
10445 # Portland Group C++ compiler
10446 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10447 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'
10449 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10450 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10451 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'
10452 ;;
10453 cxx*)
10454 # Compaq C++
10455 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10456 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'
10458 runpath_var=LD_RUN_PATH
10459 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10460 hardcode_libdir_separator_CXX=:
10462 # Commands to make compiler produce verbose output that lists
10463 # what "hidden" libraries, object files and flags are used when
10464 # linking a shared library.
10465 #
10466 # There doesn't appear to be a way to prevent this compiler from
10467 # explicitly linking system object files so we need to strip them
10468 # from the output so that they don't get included in the library
10469 # dependencies.
10470 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'
10471 ;;
10472 esac
10473 ;;
10474 lynxos*)
10475 # FIXME: insert proper C++ library support
10476 ld_shlibs_CXX=no
10477 ;;
10478 m88k*)
10479 # FIXME: insert proper C++ library support
10480 ld_shlibs_CXX=no
10481 ;;
10482 mvs*)
10483 case $cc_basename in
10484 cxx*)
10485 # FIXME: insert proper C++ library support
10486 ld_shlibs_CXX=no
10487 ;;
10488 *)
10489 # FIXME: insert proper C++ library support
10490 ld_shlibs_CXX=no
10491 ;;
10492 esac
10493 ;;
10494 netbsd*)
10495 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10496 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10497 wlarc=
10498 hardcode_libdir_flag_spec_CXX='-R$libdir'
10499 hardcode_direct_CXX=yes
10500 hardcode_shlibpath_var_CXX=no
10501 fi
10502 # Workaround some broken pre-1.5 toolchains
10503 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10504 ;;
10505 openbsd2*)
10506 # C++ shared libraries are fairly broken
10507 ld_shlibs_CXX=no
10508 ;;
10509 openbsd*)
10510 hardcode_direct_CXX=yes
10511 hardcode_shlibpath_var_CXX=no
10512 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10513 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10514 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10515 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10516 export_dynamic_flag_spec_CXX='${wl}-E'
10517 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10518 fi
10519 output_verbose_link_cmd='echo'
10520 ;;
10521 osf3*)
10522 case $cc_basename in
10523 KCC*)
10524 # Kuck and Associates, Inc. (KAI) C++ Compiler
10526 # KCC will only create a shared library if the output file
10527 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10528 # to its proper name (with version) after linking.
10529 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'
10531 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10532 hardcode_libdir_separator_CXX=:
10534 # Archives containing C++ object files must be created using
10535 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10536 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10538 ;;
10539 RCC*)
10540 # Rational C++ 2.4.1
10541 # FIXME: insert proper C++ library support
10542 ld_shlibs_CXX=no
10543 ;;
10544 cxx*)
10545 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10546 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'
10548 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10549 hardcode_libdir_separator_CXX=:
10551 # Commands to make compiler produce verbose output that lists
10552 # what "hidden" libraries, object files and flags are used when
10553 # linking a shared library.
10554 #
10555 # There doesn't appear to be a way to prevent this compiler from
10556 # explicitly linking system object files so we need to strip them
10557 # from the output so that they don't get included in the library
10558 # dependencies.
10559 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'
10560 ;;
10561 *)
10562 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10563 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10564 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'
10566 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10567 hardcode_libdir_separator_CXX=:
10569 # Commands to make compiler produce verbose output that lists
10570 # what "hidden" libraries, object files and flags are used when
10571 # linking a shared library.
10572 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10574 else
10575 # FIXME: insert proper C++ library support
10576 ld_shlibs_CXX=no
10577 fi
10578 ;;
10579 esac
10580 ;;
10581 osf4* | osf5*)
10582 case $cc_basename in
10583 KCC*)
10584 # Kuck and Associates, Inc. (KAI) C++ Compiler
10586 # KCC will only create a shared library if the output file
10587 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10588 # to its proper name (with version) after linking.
10589 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'
10591 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10592 hardcode_libdir_separator_CXX=:
10594 # Archives containing C++ object files must be created using
10595 # the KAI C++ compiler.
10596 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10597 ;;
10598 RCC*)
10599 # Rational C++ 2.4.1
10600 # FIXME: insert proper C++ library support
10601 ld_shlibs_CXX=no
10602 ;;
10603 cxx*)
10604 allow_undefined_flag_CXX=' -expect_unresolved \*'
10605 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'
10606 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10607 echo "-hidden">> $lib.exp~
10608 $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~
10609 $rm $lib.exp'
10611 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10612 hardcode_libdir_separator_CXX=:
10614 # Commands to make compiler produce verbose output that lists
10615 # what "hidden" libraries, object files and flags are used when
10616 # linking a shared library.
10617 #
10618 # There doesn't appear to be a way to prevent this compiler from
10619 # explicitly linking system object files so we need to strip them
10620 # from the output so that they don't get included in the library
10621 # dependencies.
10622 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'
10623 ;;
10624 *)
10625 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10626 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10627 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'
10629 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10630 hardcode_libdir_separator_CXX=:
10632 # Commands to make compiler produce verbose output that lists
10633 # what "hidden" libraries, object files and flags are used when
10634 # linking a shared library.
10635 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10637 else
10638 # FIXME: insert proper C++ library support
10639 ld_shlibs_CXX=no
10640 fi
10641 ;;
10642 esac
10643 ;;
10644 psos*)
10645 # FIXME: insert proper C++ library support
10646 ld_shlibs_CXX=no
10647 ;;
10648 sunos4*)
10649 case $cc_basename in
10650 CC*)
10651 # Sun C++ 4.x
10652 # FIXME: insert proper C++ library support
10653 ld_shlibs_CXX=no
10654 ;;
10655 lcc*)
10656 # Lucid
10657 # FIXME: insert proper C++ library support
10658 ld_shlibs_CXX=no
10659 ;;
10660 *)
10661 # FIXME: insert proper C++ library support
10662 ld_shlibs_CXX=no
10663 ;;
10664 esac
10665 ;;
10666 solaris*)
10667 case $cc_basename in
10668 CC*)
10669 # Sun C++ 4.2, 5.x and Centerline C++
10670 archive_cmds_need_lc_CXX=yes
10671 no_undefined_flag_CXX=' -zdefs'
10672 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10673 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10674 $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'
10676 hardcode_libdir_flag_spec_CXX='-R$libdir'
10677 hardcode_shlibpath_var_CXX=no
10678 case $host_os in
10679 solaris2.[0-5] | solaris2.[0-5].*) ;;
10680 *)
10681 # The C++ compiler is used as linker so we must use $wl
10682 # flag to pass the commands to the underlying system
10683 # linker. We must also pass each convience library through
10684 # to the system linker between allextract/defaultextract.
10685 # The C++ compiler will combine linker options so we
10686 # cannot just pass the convience library names through
10687 # without $wl.
10688 # Supported since Solaris 2.6 (maybe 2.5.1?)
10689 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'
10690 ;;
10691 esac
10692 link_all_deplibs_CXX=yes
10694 output_verbose_link_cmd='echo'
10696 # Archives containing C++ object files must be created using
10697 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10698 # necessary to make sure instantiated templates are included
10699 # in the archive.
10700 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10701 ;;
10702 gcx*)
10703 # Green Hills C++ Compiler
10704 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10706 # The C++ compiler must be used to create the archive.
10707 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10708 ;;
10709 *)
10710 # GNU C++ compiler with Solaris linker
10711 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10712 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10713 if $CC --version | grep -v '^2\.7' > /dev/null; then
10714 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10715 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10716 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10718 # Commands to make compiler produce verbose output that lists
10719 # what "hidden" libraries, object files and flags are used when
10720 # linking a shared library.
10721 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10722 else
10723 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10724 # platform.
10725 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10726 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10727 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10729 # Commands to make compiler produce verbose output that lists
10730 # what "hidden" libraries, object files and flags are used when
10731 # linking a shared library.
10732 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10733 fi
10735 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10736 fi
10737 ;;
10738 esac
10739 ;;
10740 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10741 no_undefined_flag_CXX='${wl}-z,text'
10742 archive_cmds_need_lc_CXX=no
10743 hardcode_shlibpath_var_CXX=no
10744 runpath_var='LD_RUN_PATH'
10746 case $cc_basename in
10747 CC*)
10748 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10749 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10750 ;;
10751 *)
10752 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10753 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10754 ;;
10755 esac
10756 ;;
10757 sysv5* | sco3.2v5* | sco5v6*)
10758 # Note: We can NOT use -z defs as we might desire, because we do not
10759 # link with -lc, and that would cause any symbols used from libc to
10760 # always be unresolved, which means just about no library would
10761 # ever link correctly. If we're not using GNU ld we use -z text
10762 # though, which does catch some bad symbols but isn't as heavy-handed
10763 # as -z defs.
10764 # For security reasons, it is highly recommended that you always
10765 # use absolute paths for naming shared libraries, and exclude the
10766 # DT_RUNPATH tag from executables and libraries. But doing so
10767 # requires that you compile everything twice, which is a pain.
10768 # So that behaviour is only enabled if SCOABSPATH is set to a
10769 # non-empty value in the environment. Most likely only useful for
10770 # creating official distributions of packages.
10771 # This is a hack until libtool officially supports absolute path
10772 # names for shared libraries.
10773 no_undefined_flag_CXX='${wl}-z,text'
10774 allow_undefined_flag_CXX='${wl}-z,nodefs'
10775 archive_cmds_need_lc_CXX=no
10776 hardcode_shlibpath_var_CXX=no
10777 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10778 hardcode_libdir_separator_CXX=':'
10779 link_all_deplibs_CXX=yes
10780 export_dynamic_flag_spec_CXX='${wl}-Bexport'
10781 runpath_var='LD_RUN_PATH'
10783 case $cc_basename in
10784 CC*)
10785 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10786 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10787 ;;
10788 *)
10789 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10790 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10791 ;;
10792 esac
10793 ;;
10794 tandem*)
10795 case $cc_basename in
10796 NCC*)
10797 # NonStop-UX NCC 3.20
10798 # FIXME: insert proper C++ library support
10799 ld_shlibs_CXX=no
10800 ;;
10801 *)
10802 # FIXME: insert proper C++ library support
10803 ld_shlibs_CXX=no
10804 ;;
10805 esac
10806 ;;
10807 vxworks*)
10808 # FIXME: insert proper C++ library support
10809 ld_shlibs_CXX=no
10810 ;;
10811 *)
10812 # FIXME: insert proper C++ library support
10813 ld_shlibs_CXX=no
10814 ;;
10815 esac
10816 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10817 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10818 test "$ld_shlibs_CXX" = no && can_build_shared=no
10820 GCC_CXX="$GXX"
10821 LD_CXX="$LD"
10824 cat > conftest.$ac_ext <<EOF
10825 class Foo
10826 {
10827 public:
10828 Foo (void) { a = 0; }
10829 private:
10830 int a;
10831 };
10832 EOF
10834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10835 (eval $ac_compile) 2>&5
10836 ac_status=$?
10837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10838 (exit $ac_status); }; then
10839 # Parse the compiler output and extract the necessary
10840 # objects, libraries and library flags.
10842 # Sentinel used to keep track of whether or not we are before
10843 # the conftest object file.
10844 pre_test_object_deps_done=no
10846 # The `*' in the case matches for architectures that use `case' in
10847 # $output_verbose_cmd can trigger glob expansion during the loop
10848 # eval without this substitution.
10849 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
10851 for p in `eval $output_verbose_link_cmd`; do
10852 case $p in
10854 -L* | -R* | -l*)
10855 # Some compilers place space between "-{L,R}" and the path.
10856 # Remove the space.
10857 if test $p = "-L" \
10858 || test $p = "-R"; then
10859 prev=$p
10860 continue
10861 else
10862 prev=
10863 fi
10865 if test "$pre_test_object_deps_done" = no; then
10866 case $p in
10867 -L* | -R*)
10868 # Internal compiler library paths should come after those
10869 # provided the user. The postdeps already come after the
10870 # user supplied libs so there is no need to process them.
10871 if test -z "$compiler_lib_search_path_CXX"; then
10872 compiler_lib_search_path_CXX="${prev}${p}"
10873 else
10874 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10875 fi
10876 ;;
10877 # The "-l" case would never come before the object being
10878 # linked, so don't bother handling this case.
10879 esac
10880 else
10881 if test -z "$postdeps_CXX"; then
10882 postdeps_CXX="${prev}${p}"
10883 else
10884 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10885 fi
10886 fi
10887 ;;
10889 *.$objext)
10890 # This assumes that the test object file only shows up
10891 # once in the compiler output.
10892 if test "$p" = "conftest.$objext"; then
10893 pre_test_object_deps_done=yes
10894 continue
10895 fi
10897 if test "$pre_test_object_deps_done" = no; then
10898 if test -z "$predep_objects_CXX"; then
10899 predep_objects_CXX="$p"
10900 else
10901 predep_objects_CXX="$predep_objects_CXX $p"
10902 fi
10903 else
10904 if test -z "$postdep_objects_CXX"; then
10905 postdep_objects_CXX="$p"
10906 else
10907 postdep_objects_CXX="$postdep_objects_CXX $p"
10908 fi
10909 fi
10910 ;;
10912 *) ;; # Ignore the rest.
10914 esac
10915 done
10917 # Clean up.
10918 rm -f a.out a.exe
10919 else
10920 echo "libtool.m4: error: problem compiling CXX test program"
10921 fi
10923 $rm -f confest.$objext
10925 # PORTME: override above test on systems where it is broken
10926 case $host_os in
10927 interix3*)
10928 # Interix 3.5 installs completely hosed .la files for C++, so rather than
10929 # hack all around it, let's just trust "g++" to DTRT.
10930 predep_objects_CXX=
10931 postdep_objects_CXX=
10932 postdeps_CXX=
10933 ;;
10935 solaris*)
10936 case $cc_basename in
10937 CC*)
10938 # Adding this requires a known-good setup of shared libraries for
10939 # Sun compiler versions before 5.6, else PIC objects from an old
10940 # archive will be linked into the output, leading to subtle bugs.
10941 postdeps_CXX='-lCstd -lCrun'
10942 ;;
10943 esac
10944 ;;
10945 esac
10948 case " $postdeps_CXX " in
10949 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10950 esac
10952 lt_prog_compiler_wl_CXX=
10953 lt_prog_compiler_pic_CXX=
10954 lt_prog_compiler_static_CXX=
10956 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10957 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10959 # C++ specific cases for pic, static, wl, etc.
10960 if test "$GXX" = yes; then
10961 lt_prog_compiler_wl_CXX='-Wl,'
10962 lt_prog_compiler_static_CXX='-static'
10964 case $host_os in
10965 aix*)
10966 # All AIX code is PIC.
10967 if test "$host_cpu" = ia64; then
10968 # AIX 5 now supports IA64 processor
10969 lt_prog_compiler_static_CXX='-Bstatic'
10970 fi
10971 ;;
10972 amigaos*)
10973 # FIXME: we need at least 68020 code to build shared libraries, but
10974 # adding the `-m68020' flag to GCC prevents building anything better,
10975 # like `-m68040'.
10976 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10977 ;;
10978 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10979 # PIC is the default for these OSes.
10980 ;;
10981 mingw* | os2* | pw32*)
10982 # This hack is so that the source file can tell whether it is being
10983 # built for inclusion in a dll (and should export symbols for example).
10984 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10985 ;;
10986 darwin* | rhapsody*)
10987 # PIC is the default on this platform
10988 # Common symbols not allowed in MH_DYLIB files
10989 lt_prog_compiler_pic_CXX='-fno-common'
10990 ;;
10991 *djgpp*)
10992 # DJGPP does not support shared libraries at all
10993 lt_prog_compiler_pic_CXX=
10994 ;;
10995 interix3*)
10996 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10997 # Instead, we relocate shared libraries at runtime.
10998 ;;
10999 sysv4*MP*)
11000 if test -d /usr/nec; then
11001 lt_prog_compiler_pic_CXX=-Kconform_pic
11002 fi
11003 ;;
11004 hpux*)
11005 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11006 # not for PA HP-UX.
11007 case $host_cpu in
11008 hppa*64*|ia64*)
11009 ;;
11010 *)
11011 lt_prog_compiler_pic_CXX='-fPIC'
11012 ;;
11013 esac
11014 ;;
11015 *)
11016 lt_prog_compiler_pic_CXX='-fPIC'
11017 ;;
11018 esac
11019 else
11020 case $host_os in
11021 aix4* | aix5*)
11022 # All AIX code is PIC.
11023 if test "$host_cpu" = ia64; then
11024 # AIX 5 now supports IA64 processor
11025 lt_prog_compiler_static_CXX='-Bstatic'
11026 else
11027 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11028 fi
11029 ;;
11030 chorus*)
11031 case $cc_basename in
11032 cxch68*)
11033 # Green Hills C++ Compiler
11034 # _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"
11035 ;;
11036 esac
11037 ;;
11038 darwin*)
11039 # PIC is the default on this platform
11040 # Common symbols not allowed in MH_DYLIB files
11041 case $cc_basename in
11042 xlc*)
11043 lt_prog_compiler_pic_CXX='-qnocommon'
11044 lt_prog_compiler_wl_CXX='-Wl,'
11045 ;;
11046 esac
11047 ;;
11048 dgux*)
11049 case $cc_basename in
11050 ec++*)
11051 lt_prog_compiler_pic_CXX='-KPIC'
11052 ;;
11053 ghcx*)
11054 # Green Hills C++ Compiler
11055 lt_prog_compiler_pic_CXX='-pic'
11056 ;;
11057 *)
11058 ;;
11059 esac
11060 ;;
11061 freebsd* | kfreebsd*-gnu | dragonfly*)
11062 # FreeBSD uses GNU C++
11063 ;;
11064 hpux9* | hpux10* | hpux11*)
11065 case $cc_basename in
11066 CC*)
11067 lt_prog_compiler_wl_CXX='-Wl,'
11068 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11069 if test "$host_cpu" != ia64; then
11070 lt_prog_compiler_pic_CXX='+Z'
11071 fi
11072 ;;
11073 aCC*)
11074 lt_prog_compiler_wl_CXX='-Wl,'
11075 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11076 case $host_cpu in
11077 hppa*64*|ia64*)
11078 # +Z the default
11079 ;;
11080 *)
11081 lt_prog_compiler_pic_CXX='+Z'
11082 ;;
11083 esac
11084 ;;
11085 *)
11086 ;;
11087 esac
11088 ;;
11089 interix*)
11090 # This is c89, which is MS Visual C++ (no shared libs)
11091 # Anyone wants to do a port?
11092 ;;
11093 irix5* | irix6* | nonstopux*)
11094 case $cc_basename in
11095 CC*)
11096 lt_prog_compiler_wl_CXX='-Wl,'
11097 lt_prog_compiler_static_CXX='-non_shared'
11098 # CC pic flag -KPIC is the default.
11099 ;;
11100 *)
11101 ;;
11102 esac
11103 ;;
11104 linux*)
11105 case $cc_basename in
11106 KCC*)
11107 # KAI C++ Compiler
11108 lt_prog_compiler_wl_CXX='--backend -Wl,'
11109 lt_prog_compiler_pic_CXX='-fPIC'
11110 ;;
11111 icpc* | ecpc*)
11112 # Intel C++
11113 lt_prog_compiler_wl_CXX='-Wl,'
11114 lt_prog_compiler_pic_CXX='-KPIC'
11115 lt_prog_compiler_static_CXX='-static'
11116 ;;
11117 pgCC*)
11118 # Portland Group C++ compiler.
11119 lt_prog_compiler_wl_CXX='-Wl,'
11120 lt_prog_compiler_pic_CXX='-fpic'
11121 lt_prog_compiler_static_CXX='-Bstatic'
11122 ;;
11123 cxx*)
11124 # Compaq C++
11125 # Make sure the PIC flag is empty. It appears that all Alpha
11126 # Linux and Compaq Tru64 Unix objects are PIC.
11127 lt_prog_compiler_pic_CXX=
11128 lt_prog_compiler_static_CXX='-non_shared'
11129 ;;
11130 *)
11131 ;;
11132 esac
11133 ;;
11134 lynxos*)
11135 ;;
11136 m88k*)
11137 ;;
11138 mvs*)
11139 case $cc_basename in
11140 cxx*)
11141 lt_prog_compiler_pic_CXX='-W c,exportall'
11142 ;;
11143 *)
11144 ;;
11145 esac
11146 ;;
11147 netbsd*)
11148 ;;
11149 osf3* | osf4* | osf5*)
11150 case $cc_basename in
11151 KCC*)
11152 lt_prog_compiler_wl_CXX='--backend -Wl,'
11153 ;;
11154 RCC*)
11155 # Rational C++ 2.4.1
11156 lt_prog_compiler_pic_CXX='-pic'
11157 ;;
11158 cxx*)
11159 # Digital/Compaq C++
11160 lt_prog_compiler_wl_CXX='-Wl,'
11161 # Make sure the PIC flag is empty. It appears that all Alpha
11162 # Linux and Compaq Tru64 Unix objects are PIC.
11163 lt_prog_compiler_pic_CXX=
11164 lt_prog_compiler_static_CXX='-non_shared'
11165 ;;
11166 *)
11167 ;;
11168 esac
11169 ;;
11170 psos*)
11171 ;;
11172 solaris*)
11173 case $cc_basename in
11174 CC*)
11175 # Sun C++ 4.2, 5.x and Centerline C++
11176 lt_prog_compiler_pic_CXX='-KPIC'
11177 lt_prog_compiler_static_CXX='-Bstatic'
11178 lt_prog_compiler_wl_CXX='-Qoption ld '
11179 ;;
11180 gcx*)
11181 # Green Hills C++ Compiler
11182 lt_prog_compiler_pic_CXX='-PIC'
11183 ;;
11184 *)
11185 ;;
11186 esac
11187 ;;
11188 sunos4*)
11189 case $cc_basename in
11190 CC*)
11191 # Sun C++ 4.x
11192 lt_prog_compiler_pic_CXX='-pic'
11193 lt_prog_compiler_static_CXX='-Bstatic'
11194 ;;
11195 lcc*)
11196 # Lucid
11197 lt_prog_compiler_pic_CXX='-pic'
11198 ;;
11199 *)
11200 ;;
11201 esac
11202 ;;
11203 tandem*)
11204 case $cc_basename in
11205 NCC*)
11206 # NonStop-UX NCC 3.20
11207 lt_prog_compiler_pic_CXX='-KPIC'
11208 ;;
11209 *)
11210 ;;
11211 esac
11212 ;;
11213 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11214 case $cc_basename in
11215 CC*)
11216 lt_prog_compiler_wl_CXX='-Wl,'
11217 lt_prog_compiler_pic_CXX='-KPIC'
11218 lt_prog_compiler_static_CXX='-Bstatic'
11219 ;;
11220 esac
11221 ;;
11222 vxworks*)
11223 ;;
11224 *)
11225 lt_prog_compiler_can_build_shared_CXX=no
11226 ;;
11227 esac
11228 fi
11230 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11231 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11233 #
11234 # Check to make sure the PIC flag actually works.
11235 #
11236 if test -n "$lt_prog_compiler_pic_CXX"; then
11238 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11239 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11240 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11241 echo $ECHO_N "(cached) $ECHO_C" >&6
11242 else
11243 lt_prog_compiler_pic_works_CXX=no
11244 ac_outfile=conftest.$ac_objext
11245 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11246 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11247 # Insert the option either (1) after the last *FLAGS variable, or
11248 # (2) before a word containing "conftest.", or (3) at the end.
11249 # Note that $ac_compile itself does not contain backslashes and begins
11250 # with a dollar sign (not a hyphen), so the echo should work correctly.
11251 # The option is referenced via a variable to avoid confusing sed.
11252 lt_compile=`echo "$ac_compile" | $SED \
11253 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11254 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11255 -e 's:$: $lt_compiler_flag:'`
11256 (eval echo "\"\$as_me:11256: $lt_compile\"" >&5)
11257 (eval "$lt_compile" 2>conftest.err)
11258 ac_status=$?
11259 cat conftest.err >&5
11260 echo "$as_me:11260: \$? = $ac_status" >&5
11261 if (exit $ac_status) && test -s "$ac_outfile"; then
11262 # The compiler can only warn and ignore the option if not recognized
11263 # So say no if there are warnings other than the usual output.
11264 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11265 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11266 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11267 lt_prog_compiler_pic_works_CXX=yes
11268 fi
11269 fi
11270 $rm conftest*
11272 fi
11273 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11274 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11276 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11277 case $lt_prog_compiler_pic_CXX in
11278 "" | " "*) ;;
11279 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11280 esac
11281 else
11282 lt_prog_compiler_pic_CXX=
11283 lt_prog_compiler_can_build_shared_CXX=no
11284 fi
11286 fi
11287 case $host_os in
11288 # For platforms which do not support PIC, -DPIC is meaningless:
11289 *djgpp*)
11290 lt_prog_compiler_pic_CXX=
11291 ;;
11292 *)
11293 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11294 ;;
11295 esac
11297 #
11298 # Check to make sure the static flag actually works.
11299 #
11300 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11301 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11302 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11303 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11304 echo $ECHO_N "(cached) $ECHO_C" >&6
11305 else
11306 lt_prog_compiler_static_works_CXX=no
11307 save_LDFLAGS="$LDFLAGS"
11308 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11309 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11310 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11311 # The linker can only warn and ignore the option if not recognized
11312 # So say no if there are warnings
11313 if test -s conftest.err; then
11314 # Append any errors to the config.log.
11315 cat conftest.err 1>&5
11316 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11317 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11318 if diff conftest.exp conftest.er2 >/dev/null; then
11319 lt_prog_compiler_static_works_CXX=yes
11320 fi
11321 else
11322 lt_prog_compiler_static_works_CXX=yes
11323 fi
11324 fi
11325 $rm conftest*
11326 LDFLAGS="$save_LDFLAGS"
11328 fi
11329 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11330 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11332 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11333 :
11334 else
11335 lt_prog_compiler_static_CXX=
11336 fi
11339 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11340 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11341 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11342 echo $ECHO_N "(cached) $ECHO_C" >&6
11343 else
11344 lt_cv_prog_compiler_c_o_CXX=no
11345 $rm -r conftest 2>/dev/null
11346 mkdir conftest
11347 cd conftest
11348 mkdir out
11349 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11351 lt_compiler_flag="-o out/conftest2.$ac_objext"
11352 # Insert the option either (1) after the last *FLAGS variable, or
11353 # (2) before a word containing "conftest.", or (3) at the end.
11354 # Note that $ac_compile itself does not contain backslashes and begins
11355 # with a dollar sign (not a hyphen), so the echo should work correctly.
11356 lt_compile=`echo "$ac_compile" | $SED \
11357 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11358 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11359 -e 's:$: $lt_compiler_flag:'`
11360 (eval echo "\"\$as_me:11360: $lt_compile\"" >&5)
11361 (eval "$lt_compile" 2>out/conftest.err)
11362 ac_status=$?
11363 cat out/conftest.err >&5
11364 echo "$as_me:11364: \$? = $ac_status" >&5
11365 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11366 then
11367 # The compiler can only warn and ignore the option if not recognized
11368 # So say no if there are warnings
11369 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11370 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11371 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11372 lt_cv_prog_compiler_c_o_CXX=yes
11373 fi
11374 fi
11375 chmod u+w . 2>&5
11376 $rm conftest*
11377 # SGI C++ compiler will create directory out/ii_files/ for
11378 # template instantiation
11379 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11380 $rm out/* && rmdir out
11381 cd ..
11382 rmdir conftest
11383 $rm conftest*
11385 fi
11386 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11387 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11390 hard_links="nottested"
11391 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11392 # do not overwrite the value of need_locks provided by the user
11393 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11394 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11395 hard_links=yes
11396 $rm conftest*
11397 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11398 touch conftest.a
11399 ln conftest.a conftest.b 2>&5 || hard_links=no
11400 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11401 echo "$as_me:$LINENO: result: $hard_links" >&5
11402 echo "${ECHO_T}$hard_links" >&6
11403 if test "$hard_links" = no; then
11404 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11405 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11406 need_locks=warn
11407 fi
11408 else
11409 need_locks=no
11410 fi
11412 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11413 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11415 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11416 case $host_os in
11417 aix4* | aix5*)
11418 # If we're using GNU nm, then we don't want the "-C" option.
11419 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11420 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11421 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'
11422 else
11423 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'
11424 fi
11425 ;;
11426 pw32*)
11427 export_symbols_cmds_CXX="$ltdll_cmds"
11428 ;;
11429 cygwin* | mingw*)
11430 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'
11431 ;;
11432 *)
11433 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11434 ;;
11435 esac
11437 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11438 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11439 test "$ld_shlibs_CXX" = no && can_build_shared=no
11441 #
11442 # Do we need to explicitly link libc?
11443 #
11444 case "x$archive_cmds_need_lc_CXX" in
11445 x|xyes)
11446 # Assume -lc should be added
11447 archive_cmds_need_lc_CXX=yes
11449 if test "$enable_shared" = yes && test "$GCC" = yes; then
11450 case $archive_cmds_CXX in
11451 *'~'*)
11452 # FIXME: we may have to deal with multi-command sequences.
11453 ;;
11454 '$CC '*)
11455 # Test whether the compiler implicitly links with -lc since on some
11456 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11457 # to ld, don't add -lc before -lgcc.
11458 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11459 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11460 $rm conftest*
11461 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11464 (eval $ac_compile) 2>&5
11465 ac_status=$?
11466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11467 (exit $ac_status); } 2>conftest.err; then
11468 soname=conftest
11469 lib=conftest
11470 libobjs=conftest.$ac_objext
11471 deplibs=
11472 wl=$lt_prog_compiler_wl_CXX
11473 pic_flag=$lt_prog_compiler_pic_CXX
11474 compiler_flags=-v
11475 linker_flags=-v
11476 verstring=
11477 output_objdir=.
11478 libname=conftest
11479 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11480 allow_undefined_flag_CXX=
11481 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11482 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11483 ac_status=$?
11484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485 (exit $ac_status); }
11486 then
11487 archive_cmds_need_lc_CXX=no
11488 else
11489 archive_cmds_need_lc_CXX=yes
11490 fi
11491 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11492 else
11493 cat conftest.err 1>&5
11494 fi
11495 $rm conftest*
11496 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11497 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11498 ;;
11499 esac
11500 fi
11501 ;;
11502 esac
11504 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11505 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11506 library_names_spec=
11507 libname_spec='lib$name'
11508 soname_spec=
11509 shrext_cmds=".so"
11510 postinstall_cmds=
11511 postuninstall_cmds=
11512 finish_cmds=
11513 finish_eval=
11514 shlibpath_var=
11515 shlibpath_overrides_runpath=unknown
11516 version_type=none
11517 dynamic_linker="$host_os ld.so"
11518 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11519 if test "$GCC" = yes; then
11520 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11521 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11522 # if the path contains ";" then we assume it to be the separator
11523 # otherwise default to the standard path separator (i.e. ":") - it is
11524 # assumed that no part of a normal pathname contains ";" but that should
11525 # okay in the real world where ";" in dirpaths is itself problematic.
11526 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11527 else
11528 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11529 fi
11530 else
11531 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11532 fi
11533 need_lib_prefix=unknown
11534 hardcode_into_libs=no
11536 # when you set need_version to no, make sure it does not cause -set_version
11537 # flags to be left without arguments
11538 need_version=unknown
11540 case $host_os in
11541 aix3*)
11542 version_type=linux
11543 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11544 shlibpath_var=LIBPATH
11546 # AIX 3 has no versioning support, so we append a major version to the name.
11547 soname_spec='${libname}${release}${shared_ext}$major'
11548 ;;
11550 aix4* | aix5*)
11551 version_type=linux
11552 need_lib_prefix=no
11553 need_version=no
11554 hardcode_into_libs=yes
11555 if test "$host_cpu" = ia64; then
11556 # AIX 5 supports IA64
11557 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11558 shlibpath_var=LD_LIBRARY_PATH
11559 else
11560 # With GCC up to 2.95.x, collect2 would create an import file
11561 # for dependence libraries. The import file would start with
11562 # the line `#! .'. This would cause the generated library to
11563 # depend on `.', always an invalid library. This was fixed in
11564 # development snapshots of GCC prior to 3.0.
11565 case $host_os in
11566 aix4 | aix4.[01] | aix4.[01].*)
11567 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11568 echo ' yes '
11569 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11570 :
11571 else
11572 can_build_shared=no
11573 fi
11574 ;;
11575 esac
11576 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11577 # soname into executable. Probably we can add versioning support to
11578 # collect2, so additional links can be useful in future.
11579 if test "$aix_use_runtimelinking" = yes; then
11580 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11581 # instead of lib<name>.a to let people know that these are not
11582 # typical AIX shared libraries.
11583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11584 else
11585 # We preserve .a as extension for shared libraries through AIX4.2
11586 # and later when we are not doing run time linking.
11587 library_names_spec='${libname}${release}.a $libname.a'
11588 soname_spec='${libname}${release}${shared_ext}$major'
11589 fi
11590 shlibpath_var=LIBPATH
11591 fi
11592 ;;
11594 amigaos*)
11595 library_names_spec='$libname.ixlibrary $libname.a'
11596 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11597 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'
11598 ;;
11600 beos*)
11601 library_names_spec='${libname}${shared_ext}'
11602 dynamic_linker="$host_os ld.so"
11603 shlibpath_var=LIBRARY_PATH
11604 ;;
11606 bsdi[45]*)
11607 version_type=linux
11608 need_version=no
11609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11610 soname_spec='${libname}${release}${shared_ext}$major'
11611 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11612 shlibpath_var=LD_LIBRARY_PATH
11613 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11614 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11615 # the default ld.so.conf also contains /usr/contrib/lib and
11616 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11617 # libtool to hard-code these into programs
11618 ;;
11620 cygwin* | mingw* | pw32*)
11621 version_type=windows
11622 shrext_cmds=".dll"
11623 need_version=no
11624 need_lib_prefix=no
11626 case $GCC,$host_os in
11627 yes,cygwin* | yes,mingw* | yes,pw32*)
11628 library_names_spec='$libname.dll.a'
11629 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11630 postinstall_cmds='base_file=`basename \${file}`~
11631 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11632 dldir=$destdir/`dirname \$dlpath`~
11633 test -d \$dldir || mkdir -p \$dldir~
11634 $install_prog $dir/$dlname \$dldir/$dlname~
11635 chmod a+x \$dldir/$dlname'
11636 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11637 dlpath=$dir/\$dldll~
11638 $rm \$dlpath'
11639 shlibpath_overrides_runpath=yes
11641 case $host_os in
11642 cygwin*)
11643 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11644 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11645 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11646 ;;
11647 mingw*)
11648 # MinGW DLLs use traditional 'lib' prefix
11649 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11650 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11651 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11652 # It is most probably a Windows format PATH printed by
11653 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11654 # path with ; separators, and with drive letters. We can handle the
11655 # drive letters (cygwin fileutils understands them), so leave them,
11656 # especially as we might pass files found there to a mingw objdump,
11657 # which wouldn't understand a cygwinified path. Ahh.
11658 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11659 else
11660 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11661 fi
11662 ;;
11663 pw32*)
11664 # pw32 DLLs use 'pw' prefix rather than 'lib'
11665 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11666 ;;
11667 esac
11668 ;;
11670 *)
11671 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11672 ;;
11673 esac
11674 dynamic_linker='Win32 ld.exe'
11675 # FIXME: first we should search . and the directory the executable is in
11676 shlibpath_var=PATH
11677 ;;
11679 darwin* | rhapsody*)
11680 dynamic_linker="$host_os dyld"
11681 version_type=darwin
11682 need_lib_prefix=no
11683 need_version=no
11684 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11685 soname_spec='${libname}${release}${major}$shared_ext'
11686 shlibpath_overrides_runpath=yes
11687 shlibpath_var=DYLD_LIBRARY_PATH
11688 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11689 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11690 if test "$GCC" = yes; then
11691 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"`
11692 else
11693 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11694 fi
11695 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11696 ;;
11698 dgux*)
11699 version_type=linux
11700 need_lib_prefix=no
11701 need_version=no
11702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11703 soname_spec='${libname}${release}${shared_ext}$major'
11704 shlibpath_var=LD_LIBRARY_PATH
11705 ;;
11707 freebsd1*)
11708 dynamic_linker=no
11709 ;;
11711 kfreebsd*-gnu)
11712 version_type=linux
11713 need_lib_prefix=no
11714 need_version=no
11715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11716 soname_spec='${libname}${release}${shared_ext}$major'
11717 shlibpath_var=LD_LIBRARY_PATH
11718 shlibpath_overrides_runpath=no
11719 hardcode_into_libs=yes
11720 dynamic_linker='GNU ld.so'
11721 ;;
11723 freebsd* | dragonfly*)
11724 # DragonFly does not have aout. When/if they implement a new
11725 # versioning mechanism, adjust this.
11726 if test -x /usr/bin/objformat; then
11727 objformat=`/usr/bin/objformat`
11728 else
11729 case $host_os in
11730 freebsd[123]*) objformat=aout ;;
11731 *) objformat=elf ;;
11732 esac
11733 fi
11734 version_type=freebsd-$objformat
11735 case $version_type in
11736 freebsd-elf*)
11737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11738 need_version=no
11739 need_lib_prefix=no
11740 ;;
11741 freebsd-*)
11742 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11743 need_version=yes
11744 ;;
11745 esac
11746 shlibpath_var=LD_LIBRARY_PATH
11747 case $host_os in
11748 freebsd2*)
11749 shlibpath_overrides_runpath=yes
11750 ;;
11751 freebsd3.[01]* | freebsdelf3.[01]*)
11752 shlibpath_overrides_runpath=yes
11753 hardcode_into_libs=yes
11754 ;;
11755 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11756 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11757 shlibpath_overrides_runpath=no
11758 hardcode_into_libs=yes
11759 ;;
11760 freebsd*) # from 4.6 on
11761 shlibpath_overrides_runpath=yes
11762 hardcode_into_libs=yes
11763 ;;
11764 esac
11765 ;;
11767 gnu*)
11768 version_type=linux
11769 need_lib_prefix=no
11770 need_version=no
11771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11772 soname_spec='${libname}${release}${shared_ext}$major'
11773 shlibpath_var=LD_LIBRARY_PATH
11774 hardcode_into_libs=yes
11775 ;;
11777 hpux9* | hpux10* | hpux11*)
11778 # Give a soname corresponding to the major version so that dld.sl refuses to
11779 # link against other versions.
11780 version_type=sunos
11781 need_lib_prefix=no
11782 need_version=no
11783 case $host_cpu in
11784 ia64*)
11785 shrext_cmds='.so'
11786 hardcode_into_libs=yes
11787 dynamic_linker="$host_os dld.so"
11788 shlibpath_var=LD_LIBRARY_PATH
11789 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11791 soname_spec='${libname}${release}${shared_ext}$major'
11792 if test "X$HPUX_IA64_MODE" = X32; then
11793 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11794 else
11795 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11796 fi
11797 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11798 ;;
11799 hppa*64*)
11800 shrext_cmds='.sl'
11801 hardcode_into_libs=yes
11802 dynamic_linker="$host_os dld.sl"
11803 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11804 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11808 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11809 ;;
11810 *)
11811 shrext_cmds='.sl'
11812 dynamic_linker="$host_os dld.sl"
11813 shlibpath_var=SHLIB_PATH
11814 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11816 soname_spec='${libname}${release}${shared_ext}$major'
11817 ;;
11818 esac
11819 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11820 postinstall_cmds='chmod 555 $lib'
11821 ;;
11823 interix3*)
11824 version_type=linux
11825 need_lib_prefix=no
11826 need_version=no
11827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11828 soname_spec='${libname}${release}${shared_ext}$major'
11829 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11830 shlibpath_var=LD_LIBRARY_PATH
11831 shlibpath_overrides_runpath=no
11832 hardcode_into_libs=yes
11833 ;;
11835 irix5* | irix6* | nonstopux*)
11836 case $host_os in
11837 nonstopux*) version_type=nonstopux ;;
11838 *)
11839 if test "$lt_cv_prog_gnu_ld" = yes; then
11840 version_type=linux
11841 else
11842 version_type=irix
11843 fi ;;
11844 esac
11845 need_lib_prefix=no
11846 need_version=no
11847 soname_spec='${libname}${release}${shared_ext}$major'
11848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11849 case $host_os in
11850 irix5* | nonstopux*)
11851 libsuff= shlibsuff=
11852 ;;
11853 *)
11854 case $LD in # libtool.m4 will add one of these switches to LD
11855 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11856 libsuff= shlibsuff= libmagic=32-bit;;
11857 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11858 libsuff=32 shlibsuff=N32 libmagic=N32;;
11859 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11860 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11861 *) libsuff= shlibsuff= libmagic=never-match;;
11862 esac
11863 ;;
11864 esac
11865 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11866 shlibpath_overrides_runpath=no
11867 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11868 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11869 hardcode_into_libs=yes
11870 ;;
11872 # No shared lib support for Linux oldld, aout, or coff.
11873 linux*oldld* | linux*aout* | linux*coff*)
11874 dynamic_linker=no
11875 ;;
11877 # This must be Linux ELF.
11878 linux*)
11879 version_type=linux
11880 need_lib_prefix=no
11881 need_version=no
11882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11883 soname_spec='${libname}${release}${shared_ext}$major'
11884 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11885 shlibpath_var=LD_LIBRARY_PATH
11886 shlibpath_overrides_runpath=no
11887 # This implies no fast_install, which is unacceptable.
11888 # Some rework will be needed to allow for fast_install
11889 # before this can be enabled.
11890 hardcode_into_libs=yes
11892 # Append ld.so.conf contents to the search path
11893 if test -f /etc/ld.so.conf; then
11894 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' ' '`
11895 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11896 fi
11898 # We used to test for /lib/ld.so.1 and disable shared libraries on
11899 # powerpc, because MkLinux only supported shared libraries with the
11900 # GNU dynamic linker. Since this was broken with cross compilers,
11901 # most powerpc-linux boxes support dynamic linking these days and
11902 # people can always --disable-shared, the test was removed, and we
11903 # assume the GNU/Linux dynamic linker is in use.
11904 dynamic_linker='GNU/Linux ld.so'
11905 ;;
11907 knetbsd*-gnu)
11908 version_type=linux
11909 need_lib_prefix=no
11910 need_version=no
11911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11912 soname_spec='${libname}${release}${shared_ext}$major'
11913 shlibpath_var=LD_LIBRARY_PATH
11914 shlibpath_overrides_runpath=no
11915 hardcode_into_libs=yes
11916 dynamic_linker='GNU ld.so'
11917 ;;
11919 netbsd*)
11920 version_type=sunos
11921 need_lib_prefix=no
11922 need_version=no
11923 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11925 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11926 dynamic_linker='NetBSD (a.out) ld.so'
11927 else
11928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11929 soname_spec='${libname}${release}${shared_ext}$major'
11930 dynamic_linker='NetBSD ld.elf_so'
11931 fi
11932 shlibpath_var=LD_LIBRARY_PATH
11933 shlibpath_overrides_runpath=yes
11934 hardcode_into_libs=yes
11935 ;;
11937 newsos6)
11938 version_type=linux
11939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11940 shlibpath_var=LD_LIBRARY_PATH
11941 shlibpath_overrides_runpath=yes
11942 ;;
11944 nto-qnx*)
11945 version_type=linux
11946 need_lib_prefix=no
11947 need_version=no
11948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11949 soname_spec='${libname}${release}${shared_ext}$major'
11950 shlibpath_var=LD_LIBRARY_PATH
11951 shlibpath_overrides_runpath=yes
11952 ;;
11954 openbsd*)
11955 version_type=sunos
11956 sys_lib_dlsearch_path_spec="/usr/lib"
11957 need_lib_prefix=no
11958 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11959 case $host_os in
11960 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11961 *) need_version=no ;;
11962 esac
11963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11964 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11965 shlibpath_var=LD_LIBRARY_PATH
11966 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11967 case $host_os in
11968 openbsd2.[89] | openbsd2.[89].*)
11969 shlibpath_overrides_runpath=no
11970 ;;
11971 *)
11972 shlibpath_overrides_runpath=yes
11973 ;;
11974 esac
11975 else
11976 shlibpath_overrides_runpath=yes
11977 fi
11978 ;;
11980 os2*)
11981 libname_spec='$name'
11982 shrext_cmds=".dll"
11983 need_lib_prefix=no
11984 library_names_spec='$libname${shared_ext} $libname.a'
11985 dynamic_linker='OS/2 ld.exe'
11986 shlibpath_var=LIBPATH
11987 ;;
11989 osf3* | osf4* | osf5*)
11990 version_type=osf
11991 need_lib_prefix=no
11992 need_version=no
11993 soname_spec='${libname}${release}${shared_ext}$major'
11994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11995 shlibpath_var=LD_LIBRARY_PATH
11996 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11997 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11998 ;;
12000 solaris*)
12001 version_type=linux
12002 need_lib_prefix=no
12003 need_version=no
12004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12005 soname_spec='${libname}${release}${shared_ext}$major'
12006 shlibpath_var=LD_LIBRARY_PATH
12007 shlibpath_overrides_runpath=yes
12008 hardcode_into_libs=yes
12009 # ldd complains unless libraries are executable
12010 postinstall_cmds='chmod +x $lib'
12011 ;;
12013 sunos4*)
12014 version_type=sunos
12015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12016 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12017 shlibpath_var=LD_LIBRARY_PATH
12018 shlibpath_overrides_runpath=yes
12019 if test "$with_gnu_ld" = yes; then
12020 need_lib_prefix=no
12021 fi
12022 need_version=yes
12023 ;;
12025 sysv4 | sysv4.3*)
12026 version_type=linux
12027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12028 soname_spec='${libname}${release}${shared_ext}$major'
12029 shlibpath_var=LD_LIBRARY_PATH
12030 case $host_vendor in
12031 sni)
12032 shlibpath_overrides_runpath=no
12033 need_lib_prefix=no
12034 export_dynamic_flag_spec='${wl}-Blargedynsym'
12035 runpath_var=LD_RUN_PATH
12036 ;;
12037 siemens)
12038 need_lib_prefix=no
12039 ;;
12040 motorola)
12041 need_lib_prefix=no
12042 need_version=no
12043 shlibpath_overrides_runpath=no
12044 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12045 ;;
12046 esac
12047 ;;
12049 sysv4*MP*)
12050 if test -d /usr/nec ;then
12051 version_type=linux
12052 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12053 soname_spec='$libname${shared_ext}.$major'
12054 shlibpath_var=LD_LIBRARY_PATH
12055 fi
12056 ;;
12058 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12059 version_type=freebsd-elf
12060 need_lib_prefix=no
12061 need_version=no
12062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12063 soname_spec='${libname}${release}${shared_ext}$major'
12064 shlibpath_var=LD_LIBRARY_PATH
12065 hardcode_into_libs=yes
12066 if test "$with_gnu_ld" = yes; then
12067 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12068 shlibpath_overrides_runpath=no
12069 else
12070 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12071 shlibpath_overrides_runpath=yes
12072 case $host_os in
12073 sco3.2v5*)
12074 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12075 ;;
12076 esac
12077 fi
12078 sys_lib_dlsearch_path_spec='/usr/lib'
12079 ;;
12081 uts4*)
12082 version_type=linux
12083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12084 soname_spec='${libname}${release}${shared_ext}$major'
12085 shlibpath_var=LD_LIBRARY_PATH
12086 ;;
12088 *)
12089 dynamic_linker=no
12090 ;;
12091 esac
12092 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12093 echo "${ECHO_T}$dynamic_linker" >&6
12094 test "$dynamic_linker" = no && can_build_shared=no
12096 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12097 if test "$GCC" = yes; then
12098 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12099 fi
12101 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12102 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12103 hardcode_action_CXX=
12104 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12105 test -n "$runpath_var_CXX" || \
12106 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12108 # We can hardcode non-existant directories.
12109 if test "$hardcode_direct_CXX" != no &&
12110 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12111 # have to relink, otherwise we might link with an installed library
12112 # when we should be linking with a yet-to-be-installed one
12113 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12114 test "$hardcode_minus_L_CXX" != no; then
12115 # Linking always hardcodes the temporary library directory.
12116 hardcode_action_CXX=relink
12117 else
12118 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12119 hardcode_action_CXX=immediate
12120 fi
12121 else
12122 # We cannot hardcode anything, or else we can only hardcode existing
12123 # directories.
12124 hardcode_action_CXX=unsupported
12125 fi
12126 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12127 echo "${ECHO_T}$hardcode_action_CXX" >&6
12129 if test "$hardcode_action_CXX" = relink; then
12130 # Fast installation is not supported
12131 enable_fast_install=no
12132 elif test "$shlibpath_overrides_runpath" = yes ||
12133 test "$enable_shared" = no; then
12134 # Fast installation is not necessary
12135 enable_fast_install=needless
12136 fi
12139 # The else clause should only fire when bootstrapping the
12140 # libtool distribution, otherwise you forgot to ship ltmain.sh
12141 # with your package, and you will get complaints that there are
12142 # no rules to generate ltmain.sh.
12143 if test -f "$ltmain"; then
12144 # See if we are running on zsh, and set the options which allow our commands through
12145 # without removal of \ escapes.
12146 if test -n "${ZSH_VERSION+set}" ; then
12147 setopt NO_GLOB_SUBST
12148 fi
12149 # Now quote all the things that may contain metacharacters while being
12150 # careful not to overquote the AC_SUBSTed values. We take copies of the
12151 # variables and quote the copies for generation of the libtool script.
12152 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12153 SED SHELL STRIP \
12154 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12155 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12156 deplibs_check_method reload_flag reload_cmds need_locks \
12157 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12158 lt_cv_sys_global_symbol_to_c_name_address \
12159 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12160 old_postinstall_cmds old_postuninstall_cmds \
12161 compiler_CXX \
12162 CC_CXX \
12163 LD_CXX \
12164 lt_prog_compiler_wl_CXX \
12165 lt_prog_compiler_pic_CXX \
12166 lt_prog_compiler_static_CXX \
12167 lt_prog_compiler_no_builtin_flag_CXX \
12168 export_dynamic_flag_spec_CXX \
12169 thread_safe_flag_spec_CXX \
12170 whole_archive_flag_spec_CXX \
12171 enable_shared_with_static_runtimes_CXX \
12172 old_archive_cmds_CXX \
12173 old_archive_from_new_cmds_CXX \
12174 predep_objects_CXX \
12175 postdep_objects_CXX \
12176 predeps_CXX \
12177 postdeps_CXX \
12178 compiler_lib_search_path_CXX \
12179 archive_cmds_CXX \
12180 archive_expsym_cmds_CXX \
12181 postinstall_cmds_CXX \
12182 postuninstall_cmds_CXX \
12183 old_archive_from_expsyms_cmds_CXX \
12184 allow_undefined_flag_CXX \
12185 no_undefined_flag_CXX \
12186 export_symbols_cmds_CXX \
12187 hardcode_libdir_flag_spec_CXX \
12188 hardcode_libdir_flag_spec_ld_CXX \
12189 hardcode_libdir_separator_CXX \
12190 hardcode_automatic_CXX \
12191 module_cmds_CXX \
12192 module_expsym_cmds_CXX \
12193 lt_cv_prog_compiler_c_o_CXX \
12194 exclude_expsyms_CXX \
12195 include_expsyms_CXX; do
12197 case $var in
12198 old_archive_cmds_CXX | \
12199 old_archive_from_new_cmds_CXX | \
12200 archive_cmds_CXX | \
12201 archive_expsym_cmds_CXX | \
12202 module_cmds_CXX | \
12203 module_expsym_cmds_CXX | \
12204 old_archive_from_expsyms_cmds_CXX | \
12205 export_symbols_cmds_CXX | \
12206 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12207 postinstall_cmds | postuninstall_cmds | \
12208 old_postinstall_cmds | old_postuninstall_cmds | \
12209 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12210 # Double-quote double-evaled strings.
12211 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12212 ;;
12213 *)
12214 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12215 ;;
12216 esac
12217 done
12219 case $lt_echo in
12220 *'\$0 --fallback-echo"')
12221 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12222 ;;
12223 esac
12225 cfgfile="$ofile"
12227 cat <<__EOF__ >> "$cfgfile"
12228 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12230 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12232 # Shell to use when invoking shell scripts.
12233 SHELL=$lt_SHELL
12235 # Whether or not to build shared libraries.
12236 build_libtool_libs=$enable_shared
12238 # Whether or not to build static libraries.
12239 build_old_libs=$enable_static
12241 # Whether or not to add -lc for building shared libraries.
12242 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12244 # Whether or not to disallow shared libs when runtime libs are static
12245 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12247 # Whether or not to optimize for fast installation.
12248 fast_install=$enable_fast_install
12250 # The host system.
12251 host_alias=$host_alias
12252 host=$host
12253 host_os=$host_os
12255 # The build system.
12256 build_alias=$build_alias
12257 build=$build
12258 build_os=$build_os
12260 # An echo program that does not interpret backslashes.
12261 echo=$lt_echo
12263 # The archiver.
12264 AR=$lt_AR
12265 AR_FLAGS=$lt_AR_FLAGS
12267 # A C compiler.
12268 LTCC=$lt_LTCC
12270 # LTCC compiler flags.
12271 LTCFLAGS=$lt_LTCFLAGS
12273 # A language-specific compiler.
12274 CC=$lt_compiler_CXX
12276 # Is the compiler the GNU C compiler?
12277 with_gcc=$GCC_CXX
12279 # An ERE matcher.
12280 EGREP=$lt_EGREP
12282 # The linker used to build libraries.
12283 LD=$lt_LD_CXX
12285 # Whether we need hard or soft links.
12286 LN_S=$lt_LN_S
12288 # A BSD-compatible nm program.
12289 NM=$lt_NM
12291 # A symbol stripping program
12292 STRIP=$lt_STRIP
12294 # Used to examine libraries when file_magic_cmd begins "file"
12295 MAGIC_CMD=$MAGIC_CMD
12297 # Used on cygwin: DLL creation program.
12298 DLLTOOL="$DLLTOOL"
12300 # Used on cygwin: object dumper.
12301 OBJDUMP="$OBJDUMP"
12303 # Used on cygwin: assembler.
12304 AS="$AS"
12306 # The name of the directory that contains temporary libtool files.
12307 objdir=$objdir
12309 # How to create reloadable object files.
12310 reload_flag=$lt_reload_flag
12311 reload_cmds=$lt_reload_cmds
12313 # How to pass a linker flag through the compiler.
12314 wl=$lt_lt_prog_compiler_wl_CXX
12316 # Object file suffix (normally "o").
12317 objext="$ac_objext"
12319 # Old archive suffix (normally "a").
12320 libext="$libext"
12322 # Shared library suffix (normally ".so").
12323 shrext_cmds='$shrext_cmds'
12325 # Executable file suffix (normally "").
12326 exeext="$exeext"
12328 # Additional compiler flags for building library objects.
12329 pic_flag=$lt_lt_prog_compiler_pic_CXX
12330 pic_mode=$pic_mode
12332 # What is the maximum length of a command?
12333 max_cmd_len=$lt_cv_sys_max_cmd_len
12335 # Does compiler simultaneously support -c and -o options?
12336 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12338 # Must we lock files when doing compilation?
12339 need_locks=$lt_need_locks
12341 # Do we need the lib prefix for modules?
12342 need_lib_prefix=$need_lib_prefix
12344 # Do we need a version for libraries?
12345 need_version=$need_version
12347 # Whether dlopen is supported.
12348 dlopen_support=$enable_dlopen
12350 # Whether dlopen of programs is supported.
12351 dlopen_self=$enable_dlopen_self
12353 # Whether dlopen of statically linked programs is supported.
12354 dlopen_self_static=$enable_dlopen_self_static
12356 # Compiler flag to prevent dynamic linking.
12357 link_static_flag=$lt_lt_prog_compiler_static_CXX
12359 # Compiler flag to turn off builtin functions.
12360 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12362 # Compiler flag to allow reflexive dlopens.
12363 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12365 # Compiler flag to generate shared objects directly from archives.
12366 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12368 # Compiler flag to generate thread-safe objects.
12369 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12371 # Library versioning type.
12372 version_type=$version_type
12374 # Format of library name prefix.
12375 libname_spec=$lt_libname_spec
12377 # List of archive names. First name is the real one, the rest are links.
12378 # The last name is the one that the linker finds with -lNAME.
12379 library_names_spec=$lt_library_names_spec
12381 # The coded name of the library, if different from the real name.
12382 soname_spec=$lt_soname_spec
12384 # Commands used to build and install an old-style archive.
12385 RANLIB=$lt_RANLIB
12386 old_archive_cmds=$lt_old_archive_cmds_CXX
12387 old_postinstall_cmds=$lt_old_postinstall_cmds
12388 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12390 # Create an old-style archive from a shared archive.
12391 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12393 # Create a temporary old-style archive to link instead of a shared archive.
12394 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12396 # Commands used to build and install a shared archive.
12397 archive_cmds=$lt_archive_cmds_CXX
12398 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12399 postinstall_cmds=$lt_postinstall_cmds
12400 postuninstall_cmds=$lt_postuninstall_cmds
12402 # Commands used to build a loadable module (assumed same as above if empty)
12403 module_cmds=$lt_module_cmds_CXX
12404 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12406 # Commands to strip libraries.
12407 old_striplib=$lt_old_striplib
12408 striplib=$lt_striplib
12410 # Dependencies to place before the objects being linked to create a
12411 # shared library.
12412 predep_objects=$lt_predep_objects_CXX
12414 # Dependencies to place after the objects being linked to create a
12415 # shared library.
12416 postdep_objects=$lt_postdep_objects_CXX
12418 # Dependencies to place before the objects being linked to create a
12419 # shared library.
12420 predeps=$lt_predeps_CXX
12422 # Dependencies to place after the objects being linked to create a
12423 # shared library.
12424 postdeps=$lt_postdeps_CXX
12426 # The library search path used internally by the compiler when linking
12427 # a shared library.
12428 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12430 # Method to check whether dependent libraries are shared objects.
12431 deplibs_check_method=$lt_deplibs_check_method
12433 # Command to use when deplibs_check_method == file_magic.
12434 file_magic_cmd=$lt_file_magic_cmd
12436 # Flag that allows shared libraries with undefined symbols to be built.
12437 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12439 # Flag that forces no undefined symbols.
12440 no_undefined_flag=$lt_no_undefined_flag_CXX
12442 # Commands used to finish a libtool library installation in a directory.
12443 finish_cmds=$lt_finish_cmds
12445 # Same as above, but a single script fragment to be evaled but not shown.
12446 finish_eval=$lt_finish_eval
12448 # Take the output of nm and produce a listing of raw symbols and C names.
12449 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12451 # Transform the output of nm in a proper C declaration
12452 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12454 # Transform the output of nm in a C name address pair
12455 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12457 # This is the shared library runtime path variable.
12458 runpath_var=$runpath_var
12460 # This is the shared library path variable.
12461 shlibpath_var=$shlibpath_var
12463 # Is shlibpath searched before the hard-coded library search path?
12464 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12466 # How to hardcode a shared library path into an executable.
12467 hardcode_action=$hardcode_action_CXX
12469 # Whether we should hardcode library paths into libraries.
12470 hardcode_into_libs=$hardcode_into_libs
12472 # Flag to hardcode \$libdir into a binary during linking.
12473 # This must work even if \$libdir does not exist.
12474 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12476 # If ld is used when linking, flag to hardcode \$libdir into
12477 # a binary during linking. This must work even if \$libdir does
12478 # not exist.
12479 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12481 # Whether we need a single -rpath flag with a separated argument.
12482 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12484 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12485 # resulting binary.
12486 hardcode_direct=$hardcode_direct_CXX
12488 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12489 # resulting binary.
12490 hardcode_minus_L=$hardcode_minus_L_CXX
12492 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12493 # the resulting binary.
12494 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12496 # Set to yes if building a shared library automatically hardcodes DIR into the library
12497 # and all subsequent libraries and executables linked against it.
12498 hardcode_automatic=$hardcode_automatic_CXX
12500 # Variables whose values should be saved in libtool wrapper scripts and
12501 # restored at relink time.
12502 variables_saved_for_relink="$variables_saved_for_relink"
12504 # Whether libtool must link a program against all its dependency libraries.
12505 link_all_deplibs=$link_all_deplibs_CXX
12507 # Compile-time system search path for libraries
12508 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12510 # Run-time system search path for libraries
12511 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12513 # Fix the shell variable \$srcfile for the compiler.
12514 fix_srcfile_path="$fix_srcfile_path_CXX"
12516 # Set to yes if exported symbols are required.
12517 always_export_symbols=$always_export_symbols_CXX
12519 # The commands to list exported symbols.
12520 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12522 # The commands to extract the exported symbol list from a shared archive.
12523 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12525 # Symbols that should not be listed in the preloaded symbols.
12526 exclude_expsyms=$lt_exclude_expsyms_CXX
12528 # Symbols that must always be exported.
12529 include_expsyms=$lt_include_expsyms_CXX
12531 # ### END LIBTOOL TAG CONFIG: $tagname
12533 __EOF__
12536 else
12537 # If there is no Makefile yet, we rely on a make rule to execute
12538 # `config.status --recheck' to rerun these tests and create the
12539 # libtool script then.
12540 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12541 if test -f "$ltmain_in"; then
12542 test -f Makefile && make "$ltmain"
12543 fi
12544 fi
12547 ac_ext=c
12548 ac_cpp='$CPP $CPPFLAGS'
12549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12553 CC=$lt_save_CC
12554 LDCXX=$LD
12555 LD=$lt_save_LD
12556 GCC=$lt_save_GCC
12557 with_gnu_ldcxx=$with_gnu_ld
12558 with_gnu_ld=$lt_save_with_gnu_ld
12559 lt_cv_path_LDCXX=$lt_cv_path_LD
12560 lt_cv_path_LD=$lt_save_path_LD
12561 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12562 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12564 else
12565 tagname=""
12566 fi
12567 ;;
12569 F77)
12570 if test -n "$F77" && test "X$F77" != "Xno"; then
12571 :
12572 else
12573 tagname=""
12574 fi
12575 ;;
12577 GCJ)
12578 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
12582 # Source file extension for Java test sources.
12583 ac_ext=java
12585 # Object file extension for compiled Java test sources.
12586 objext=o
12587 objext_GCJ=$objext
12589 # Code to be used in simple compile tests
12590 lt_simple_compile_test_code="class foo {}\n"
12592 # Code to be used in simple link tests
12593 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
12595 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12597 # If no C compiler was specified, use CC.
12598 LTCC=${LTCC-"$CC"}
12600 # If no C compiler flags were specified, use CFLAGS.
12601 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12603 # Allow CC to be a program name with arguments.
12604 compiler=$CC
12607 # save warnings/boilerplate of simple test code
12608 ac_outfile=conftest.$ac_objext
12609 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12610 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12611 _lt_compiler_boilerplate=`cat conftest.err`
12612 $rm conftest*
12614 ac_outfile=conftest.$ac_objext
12615 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12616 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12617 _lt_linker_boilerplate=`cat conftest.err`
12618 $rm conftest*
12621 # Allow CC to be a program name with arguments.
12622 lt_save_CC="$CC"
12623 CC=${GCJ-"gcj"}
12624 compiler=$CC
12625 compiler_GCJ=$CC
12626 for cc_temp in $compiler""; do
12627 case $cc_temp in
12628 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12629 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12630 \-*) ;;
12631 *) break;;
12632 esac
12633 done
12634 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12637 # GCJ did not exist at the time GCC didn't implicitly link libc in.
12638 archive_cmds_need_lc_GCJ=no
12640 old_archive_cmds_GCJ=$old_archive_cmds
12643 lt_prog_compiler_no_builtin_flag_GCJ=
12645 if test "$GCC" = yes; then
12646 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
12649 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12650 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
12651 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
12652 echo $ECHO_N "(cached) $ECHO_C" >&6
12653 else
12654 lt_cv_prog_compiler_rtti_exceptions=no
12655 ac_outfile=conftest.$ac_objext
12656 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12657 lt_compiler_flag="-fno-rtti -fno-exceptions"
12658 # Insert the option either (1) after the last *FLAGS variable, or
12659 # (2) before a word containing "conftest.", or (3) at the end.
12660 # Note that $ac_compile itself does not contain backslashes and begins
12661 # with a dollar sign (not a hyphen), so the echo should work correctly.
12662 # The option is referenced via a variable to avoid confusing sed.
12663 lt_compile=`echo "$ac_compile" | $SED \
12664 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12665 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12666 -e 's:$: $lt_compiler_flag:'`
12667 (eval echo "\"\$as_me:12667: $lt_compile\"" >&5)
12668 (eval "$lt_compile" 2>conftest.err)
12669 ac_status=$?
12670 cat conftest.err >&5
12671 echo "$as_me:12671: \$? = $ac_status" >&5
12672 if (exit $ac_status) && test -s "$ac_outfile"; then
12673 # The compiler can only warn and ignore the option if not recognized
12674 # So say no if there are warnings other than the usual output.
12675 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12676 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12677 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12678 lt_cv_prog_compiler_rtti_exceptions=yes
12679 fi
12680 fi
12681 $rm conftest*
12683 fi
12684 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12685 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
12687 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12688 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
12689 else
12690 :
12691 fi
12693 fi
12695 lt_prog_compiler_wl_GCJ=
12696 lt_prog_compiler_pic_GCJ=
12697 lt_prog_compiler_static_GCJ=
12699 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12700 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12702 if test "$GCC" = yes; then
12703 lt_prog_compiler_wl_GCJ='-Wl,'
12704 lt_prog_compiler_static_GCJ='-static'
12706 case $host_os in
12707 aix*)
12708 # All AIX code is PIC.
12709 if test "$host_cpu" = ia64; then
12710 # AIX 5 now supports IA64 processor
12711 lt_prog_compiler_static_GCJ='-Bstatic'
12712 fi
12713 ;;
12715 amigaos*)
12716 # FIXME: we need at least 68020 code to build shared libraries, but
12717 # adding the `-m68020' flag to GCC prevents building anything better,
12718 # like `-m68040'.
12719 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
12720 ;;
12722 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12723 # PIC is the default for these OSes.
12724 ;;
12726 mingw* | pw32* | os2*)
12727 # This hack is so that the source file can tell whether it is being
12728 # built for inclusion in a dll (and should export symbols for example).
12729 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
12730 ;;
12732 darwin* | rhapsody*)
12733 # PIC is the default on this platform
12734 # Common symbols not allowed in MH_DYLIB files
12735 lt_prog_compiler_pic_GCJ='-fno-common'
12736 ;;
12738 interix3*)
12739 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12740 # Instead, we relocate shared libraries at runtime.
12741 ;;
12743 msdosdjgpp*)
12744 # Just because we use GCC doesn't mean we suddenly get shared libraries
12745 # on systems that don't support them.
12746 lt_prog_compiler_can_build_shared_GCJ=no
12747 enable_shared=no
12748 ;;
12750 sysv4*MP*)
12751 if test -d /usr/nec; then
12752 lt_prog_compiler_pic_GCJ=-Kconform_pic
12753 fi
12754 ;;
12756 hpux*)
12757 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12758 # not for PA HP-UX.
12759 case $host_cpu in
12760 hppa*64*|ia64*)
12761 # +Z the default
12762 ;;
12763 *)
12764 lt_prog_compiler_pic_GCJ='-fPIC'
12765 ;;
12766 esac
12767 ;;
12769 *)
12770 lt_prog_compiler_pic_GCJ='-fPIC'
12771 ;;
12772 esac
12773 else
12774 # PORTME Check for flag to pass linker flags through the system compiler.
12775 case $host_os in
12776 aix*)
12777 lt_prog_compiler_wl_GCJ='-Wl,'
12778 if test "$host_cpu" = ia64; then
12779 # AIX 5 now supports IA64 processor
12780 lt_prog_compiler_static_GCJ='-Bstatic'
12781 else
12782 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
12783 fi
12784 ;;
12785 darwin*)
12786 # PIC is the default on this platform
12787 # Common symbols not allowed in MH_DYLIB files
12788 case $cc_basename in
12789 xlc*)
12790 lt_prog_compiler_pic_GCJ='-qnocommon'
12791 lt_prog_compiler_wl_GCJ='-Wl,'
12792 ;;
12793 esac
12794 ;;
12796 mingw* | pw32* | os2*)
12797 # This hack is so that the source file can tell whether it is being
12798 # built for inclusion in a dll (and should export symbols for example).
12799 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
12800 ;;
12802 hpux9* | hpux10* | hpux11*)
12803 lt_prog_compiler_wl_GCJ='-Wl,'
12804 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12805 # not for PA HP-UX.
12806 case $host_cpu in
12807 hppa*64*|ia64*)
12808 # +Z the default
12809 ;;
12810 *)
12811 lt_prog_compiler_pic_GCJ='+Z'
12812 ;;
12813 esac
12814 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12815 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
12816 ;;
12818 irix5* | irix6* | nonstopux*)
12819 lt_prog_compiler_wl_GCJ='-Wl,'
12820 # PIC (with -KPIC) is the default.
12821 lt_prog_compiler_static_GCJ='-non_shared'
12822 ;;
12824 newsos6)
12825 lt_prog_compiler_pic_GCJ='-KPIC'
12826 lt_prog_compiler_static_GCJ='-Bstatic'
12827 ;;
12829 linux*)
12830 case $cc_basename in
12831 icc* | ecc*)
12832 lt_prog_compiler_wl_GCJ='-Wl,'
12833 lt_prog_compiler_pic_GCJ='-KPIC'
12834 lt_prog_compiler_static_GCJ='-static'
12835 ;;
12836 pgcc* | pgf77* | pgf90* | pgf95*)
12837 # Portland Group compilers (*not* the Pentium gcc compiler,
12838 # which looks to be a dead project)
12839 lt_prog_compiler_wl_GCJ='-Wl,'
12840 lt_prog_compiler_pic_GCJ='-fpic'
12841 lt_prog_compiler_static_GCJ='-Bstatic'
12842 ;;
12843 ccc*)
12844 lt_prog_compiler_wl_GCJ='-Wl,'
12845 # All Alpha code is PIC.
12846 lt_prog_compiler_static_GCJ='-non_shared'
12847 ;;
12848 esac
12849 ;;
12851 osf3* | osf4* | osf5*)
12852 lt_prog_compiler_wl_GCJ='-Wl,'
12853 # All OSF/1 code is PIC.
12854 lt_prog_compiler_static_GCJ='-non_shared'
12855 ;;
12857 solaris*)
12858 lt_prog_compiler_pic_GCJ='-KPIC'
12859 lt_prog_compiler_static_GCJ='-Bstatic'
12860 case $cc_basename in
12861 f77* | f90* | f95*)
12862 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
12863 *)
12864 lt_prog_compiler_wl_GCJ='-Wl,';;
12865 esac
12866 ;;
12868 sunos4*)
12869 lt_prog_compiler_wl_GCJ='-Qoption ld '
12870 lt_prog_compiler_pic_GCJ='-PIC'
12871 lt_prog_compiler_static_GCJ='-Bstatic'
12872 ;;
12874 sysv4 | sysv4.2uw2* | sysv4.3*)
12875 lt_prog_compiler_wl_GCJ='-Wl,'
12876 lt_prog_compiler_pic_GCJ='-KPIC'
12877 lt_prog_compiler_static_GCJ='-Bstatic'
12878 ;;
12880 sysv4*MP*)
12881 if test -d /usr/nec ;then
12882 lt_prog_compiler_pic_GCJ='-Kconform_pic'
12883 lt_prog_compiler_static_GCJ='-Bstatic'
12884 fi
12885 ;;
12887 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12888 lt_prog_compiler_wl_GCJ='-Wl,'
12889 lt_prog_compiler_pic_GCJ='-KPIC'
12890 lt_prog_compiler_static_GCJ='-Bstatic'
12891 ;;
12893 unicos*)
12894 lt_prog_compiler_wl_GCJ='-Wl,'
12895 lt_prog_compiler_can_build_shared_GCJ=no
12896 ;;
12898 uts4*)
12899 lt_prog_compiler_pic_GCJ='-pic'
12900 lt_prog_compiler_static_GCJ='-Bstatic'
12901 ;;
12903 *)
12904 lt_prog_compiler_can_build_shared_GCJ=no
12905 ;;
12906 esac
12907 fi
12909 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
12910 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
12912 #
12913 # Check to make sure the PIC flag actually works.
12914 #
12915 if test -n "$lt_prog_compiler_pic_GCJ"; then
12917 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
12918 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
12919 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
12920 echo $ECHO_N "(cached) $ECHO_C" >&6
12921 else
12922 lt_prog_compiler_pic_works_GCJ=no
12923 ac_outfile=conftest.$ac_objext
12924 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12925 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
12926 # Insert the option either (1) after the last *FLAGS variable, or
12927 # (2) before a word containing "conftest.", or (3) at the end.
12928 # Note that $ac_compile itself does not contain backslashes and begins
12929 # with a dollar sign (not a hyphen), so the echo should work correctly.
12930 # The option is referenced via a variable to avoid confusing sed.
12931 lt_compile=`echo "$ac_compile" | $SED \
12932 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12933 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12934 -e 's:$: $lt_compiler_flag:'`
12935 (eval echo "\"\$as_me:12935: $lt_compile\"" >&5)
12936 (eval "$lt_compile" 2>conftest.err)
12937 ac_status=$?
12938 cat conftest.err >&5
12939 echo "$as_me:12939: \$? = $ac_status" >&5
12940 if (exit $ac_status) && test -s "$ac_outfile"; then
12941 # The compiler can only warn and ignore the option if not recognized
12942 # So say no if there are warnings other than the usual output.
12943 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12944 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12945 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12946 lt_prog_compiler_pic_works_GCJ=yes
12947 fi
12948 fi
12949 $rm conftest*
12951 fi
12952 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
12953 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
12955 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
12956 case $lt_prog_compiler_pic_GCJ in
12957 "" | " "*) ;;
12958 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
12959 esac
12960 else
12961 lt_prog_compiler_pic_GCJ=
12962 lt_prog_compiler_can_build_shared_GCJ=no
12963 fi
12965 fi
12966 case $host_os in
12967 # For platforms which do not support PIC, -DPIC is meaningless:
12968 *djgpp*)
12969 lt_prog_compiler_pic_GCJ=
12970 ;;
12971 *)
12972 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
12973 ;;
12974 esac
12976 #
12977 # Check to make sure the static flag actually works.
12978 #
12979 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
12980 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12981 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
12982 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
12983 echo $ECHO_N "(cached) $ECHO_C" >&6
12984 else
12985 lt_prog_compiler_static_works_GCJ=no
12986 save_LDFLAGS="$LDFLAGS"
12987 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12988 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12989 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12990 # The linker can only warn and ignore the option if not recognized
12991 # So say no if there are warnings
12992 if test -s conftest.err; then
12993 # Append any errors to the config.log.
12994 cat conftest.err 1>&5
12995 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12996 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12997 if diff conftest.exp conftest.er2 >/dev/null; then
12998 lt_prog_compiler_static_works_GCJ=yes
12999 fi
13000 else
13001 lt_prog_compiler_static_works_GCJ=yes
13002 fi
13003 fi
13004 $rm conftest*
13005 LDFLAGS="$save_LDFLAGS"
13007 fi
13008 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
13009 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
13011 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
13012 :
13013 else
13014 lt_prog_compiler_static_GCJ=
13015 fi
13018 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13019 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13020 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
13021 echo $ECHO_N "(cached) $ECHO_C" >&6
13022 else
13023 lt_cv_prog_compiler_c_o_GCJ=no
13024 $rm -r conftest 2>/dev/null
13025 mkdir conftest
13026 cd conftest
13027 mkdir out
13028 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13030 lt_compiler_flag="-o out/conftest2.$ac_objext"
13031 # Insert the option either (1) after the last *FLAGS variable, or
13032 # (2) before a word containing "conftest.", or (3) at the end.
13033 # Note that $ac_compile itself does not contain backslashes and begins
13034 # with a dollar sign (not a hyphen), so the echo should work correctly.
13035 lt_compile=`echo "$ac_compile" | $SED \
13036 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13037 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13038 -e 's:$: $lt_compiler_flag:'`
13039 (eval echo "\"\$as_me:13039: $lt_compile\"" >&5)
13040 (eval "$lt_compile" 2>out/conftest.err)
13041 ac_status=$?
13042 cat out/conftest.err >&5
13043 echo "$as_me:13043: \$? = $ac_status" >&5
13044 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13045 then
13046 # The compiler can only warn and ignore the option if not recognized
13047 # So say no if there are warnings
13048 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13049 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13050 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13051 lt_cv_prog_compiler_c_o_GCJ=yes
13052 fi
13053 fi
13054 chmod u+w . 2>&5
13055 $rm conftest*
13056 # SGI C++ compiler will create directory out/ii_files/ for
13057 # template instantiation
13058 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13059 $rm out/* && rmdir out
13060 cd ..
13061 rmdir conftest
13062 $rm conftest*
13064 fi
13065 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
13066 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
13069 hard_links="nottested"
13070 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
13071 # do not overwrite the value of need_locks provided by the user
13072 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13073 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13074 hard_links=yes
13075 $rm conftest*
13076 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13077 touch conftest.a
13078 ln conftest.a conftest.b 2>&5 || hard_links=no
13079 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13080 echo "$as_me:$LINENO: result: $hard_links" >&5
13081 echo "${ECHO_T}$hard_links" >&6
13082 if test "$hard_links" = no; then
13083 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13084 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13085 need_locks=warn
13086 fi
13087 else
13088 need_locks=no
13089 fi
13091 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13092 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13094 runpath_var=
13095 allow_undefined_flag_GCJ=
13096 enable_shared_with_static_runtimes_GCJ=no
13097 archive_cmds_GCJ=
13098 archive_expsym_cmds_GCJ=
13099 old_archive_From_new_cmds_GCJ=
13100 old_archive_from_expsyms_cmds_GCJ=
13101 export_dynamic_flag_spec_GCJ=
13102 whole_archive_flag_spec_GCJ=
13103 thread_safe_flag_spec_GCJ=
13104 hardcode_libdir_flag_spec_GCJ=
13105 hardcode_libdir_flag_spec_ld_GCJ=
13106 hardcode_libdir_separator_GCJ=
13107 hardcode_direct_GCJ=no
13108 hardcode_minus_L_GCJ=no
13109 hardcode_shlibpath_var_GCJ=unsupported
13110 link_all_deplibs_GCJ=unknown
13111 hardcode_automatic_GCJ=no
13112 module_cmds_GCJ=
13113 module_expsym_cmds_GCJ=
13114 always_export_symbols_GCJ=no
13115 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13116 # include_expsyms should be a list of space-separated symbols to be *always*
13117 # included in the symbol list
13118 include_expsyms_GCJ=
13119 # exclude_expsyms can be an extended regexp of symbols to exclude
13120 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13121 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13122 # as well as any symbol that contains `d'.
13123 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
13124 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13125 # platforms (ab)use it in PIC code, but their linkers get confused if
13126 # the symbol is explicitly referenced. Since portable code cannot
13127 # rely on this symbol name, it's probably fine to never include it in
13128 # preloaded symbol tables.
13129 extract_expsyms_cmds=
13130 # Just being paranoid about ensuring that cc_basename is set.
13131 for cc_temp in $compiler""; do
13132 case $cc_temp in
13133 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13134 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13135 \-*) ;;
13136 *) break;;
13137 esac
13138 done
13139 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13141 case $host_os in
13142 cygwin* | mingw* | pw32*)
13143 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13144 # When not using gcc, we currently assume that we are using
13145 # Microsoft Visual C++.
13146 if test "$GCC" != yes; then
13147 with_gnu_ld=no
13148 fi
13149 ;;
13150 interix*)
13151 # we just hope/assume this is gcc and not c89 (= MSVC++)
13152 with_gnu_ld=yes
13153 ;;
13154 openbsd*)
13155 with_gnu_ld=no
13156 ;;
13157 esac
13159 ld_shlibs_GCJ=yes
13160 if test "$with_gnu_ld" = yes; then
13161 # If archive_cmds runs LD, not CC, wlarc should be empty
13162 wlarc='${wl}'
13164 # Set some defaults for GNU ld with shared library support. These
13165 # are reset later if shared libraries are not supported. Putting them
13166 # here allows them to be overridden if necessary.
13167 runpath_var=LD_RUN_PATH
13168 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
13169 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
13170 # ancient GNU ld didn't support --whole-archive et. al.
13171 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13172 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13173 else
13174 whole_archive_flag_spec_GCJ=
13175 fi
13176 supports_anon_versioning=no
13177 case `$LD -v 2>/dev/null` in
13178 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13179 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13180 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13181 *\ 2.11.*) ;; # other 2.11 versions
13182 *) supports_anon_versioning=yes ;;
13183 esac
13185 # See if GNU ld supports shared libraries.
13186 case $host_os in
13187 aix3* | aix4* | aix5*)
13188 # On AIX/PPC, the GNU linker is very broken
13189 if test "$host_cpu" != ia64; then
13190 ld_shlibs_GCJ=no
13191 cat <<EOF 1>&2
13193 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13194 *** to be unable to reliably create shared libraries on AIX.
13195 *** Therefore, libtool is disabling shared libraries support. If you
13196 *** really care for shared libraries, you may want to modify your PATH
13197 *** so that a non-GNU linker is found, and then restart.
13199 EOF
13200 fi
13201 ;;
13203 amigaos*)
13204 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)'
13205 hardcode_libdir_flag_spec_GCJ='-L$libdir'
13206 hardcode_minus_L_GCJ=yes
13208 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13209 # that the semantics of dynamic libraries on AmigaOS, at least up
13210 # to version 4, is to share data among multiple programs linked
13211 # with the same dynamic library. Since this doesn't match the
13212 # behavior of shared libraries on other platforms, we can't use
13213 # them.
13214 ld_shlibs_GCJ=no
13215 ;;
13217 beos*)
13218 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13219 allow_undefined_flag_GCJ=unsupported
13220 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13221 # support --undefined. This deserves some investigation. FIXME
13222 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13223 else
13224 ld_shlibs_GCJ=no
13225 fi
13226 ;;
13228 cygwin* | mingw* | pw32*)
13229 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
13230 # as there is no search path for DLLs.
13231 hardcode_libdir_flag_spec_GCJ='-L$libdir'
13232 allow_undefined_flag_GCJ=unsupported
13233 always_export_symbols_GCJ=no
13234 enable_shared_with_static_runtimes_GCJ=yes
13235 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13237 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13238 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13239 # If the export-symbols file already is a .def file (1st line
13240 # is EXPORTS), use it as is; otherwise, prepend...
13241 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13242 cp $export_symbols $output_objdir/$soname.def;
13243 else
13244 echo EXPORTS > $output_objdir/$soname.def;
13245 cat $export_symbols >> $output_objdir/$soname.def;
13246 fi~
13247 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13248 else
13249 ld_shlibs_GCJ=no
13250 fi
13251 ;;
13253 interix3*)
13254 hardcode_direct_GCJ=no
13255 hardcode_shlibpath_var_GCJ=no
13256 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
13257 export_dynamic_flag_spec_GCJ='${wl}-E'
13258 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13259 # Instead, shared libraries are loaded at an image base (0x10000000 by
13260 # default) and relocated if they conflict, which is a slow very memory
13261 # consuming and fragmenting process. To avoid this, we pick a random,
13262 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13263 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13264 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'
13265 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'
13266 ;;
13268 linux*)
13269 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13270 tmp_addflag=
13271 case $cc_basename,$host_cpu in
13272 pgcc*) # Portland Group C compiler
13273 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'
13274 tmp_addflag=' $pic_flag'
13275 ;;
13276 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13277 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'
13278 tmp_addflag=' $pic_flag -Mnomain' ;;
13279 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13280 tmp_addflag=' -i_dynamic' ;;
13281 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13282 tmp_addflag=' -i_dynamic -nofor_main' ;;
13283 ifc* | ifort*) # Intel Fortran compiler
13284 tmp_addflag=' -nofor_main' ;;
13285 esac
13286 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13288 if test $supports_anon_versioning = yes; then
13289 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
13290 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13291 $echo "local: *; };" >> $output_objdir/$libname.ver~
13292 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13293 fi
13294 else
13295 ld_shlibs_GCJ=no
13296 fi
13297 ;;
13299 netbsd*)
13300 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13301 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13302 wlarc=
13303 else
13304 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13305 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13306 fi
13307 ;;
13309 solaris*)
13310 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13311 ld_shlibs_GCJ=no
13312 cat <<EOF 1>&2
13314 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13315 *** create shared libraries on Solaris systems. Therefore, libtool
13316 *** is disabling shared libraries support. We urge you to upgrade GNU
13317 *** binutils to release 2.9.1 or newer. Another option is to modify
13318 *** your PATH or compiler configuration so that the native linker is
13319 *** used, and then restart.
13321 EOF
13322 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13323 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13324 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13325 else
13326 ld_shlibs_GCJ=no
13327 fi
13328 ;;
13330 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13331 case `$LD -v 2>&1` in
13332 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13333 ld_shlibs_GCJ=no
13334 cat <<_LT_EOF 1>&2
13336 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13337 *** reliably create shared libraries on SCO systems. Therefore, libtool
13338 *** is disabling shared libraries support. We urge you to upgrade GNU
13339 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13340 *** your PATH or compiler configuration so that the native linker is
13341 *** used, and then restart.
13343 _LT_EOF
13344 ;;
13345 *)
13346 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13347 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13348 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13349 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13350 else
13351 ld_shlibs_GCJ=no
13352 fi
13353 ;;
13354 esac
13355 ;;
13357 sunos4*)
13358 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13359 wlarc=
13360 hardcode_direct_GCJ=yes
13361 hardcode_shlibpath_var_GCJ=no
13362 ;;
13364 *)
13365 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13366 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13367 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13368 else
13369 ld_shlibs_GCJ=no
13370 fi
13371 ;;
13372 esac
13374 if test "$ld_shlibs_GCJ" = no; then
13375 runpath_var=
13376 hardcode_libdir_flag_spec_GCJ=
13377 export_dynamic_flag_spec_GCJ=
13378 whole_archive_flag_spec_GCJ=
13379 fi
13380 else
13381 # PORTME fill in a description of your system's linker (not GNU ld)
13382 case $host_os in
13383 aix3*)
13384 allow_undefined_flag_GCJ=unsupported
13385 always_export_symbols_GCJ=yes
13386 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'
13387 # Note: this linker hardcodes the directories in LIBPATH if there
13388 # are no directories specified by -L.
13389 hardcode_minus_L_GCJ=yes
13390 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13391 # Neither direct hardcoding nor static linking is supported with a
13392 # broken collect2.
13393 hardcode_direct_GCJ=unsupported
13394 fi
13395 ;;
13397 aix4* | aix5*)
13398 if test "$host_cpu" = ia64; then
13399 # On IA64, the linker does run time linking by default, so we don't
13400 # have to do anything special.
13401 aix_use_runtimelinking=no
13402 exp_sym_flag='-Bexport'
13403 no_entry_flag=""
13404 else
13405 # If we're using GNU nm, then we don't want the "-C" option.
13406 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13407 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13408 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'
13409 else
13410 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'
13411 fi
13412 aix_use_runtimelinking=no
13414 # Test if we are trying to use run time linking or normal
13415 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13416 # need to do runtime linking.
13417 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13418 for ld_flag in $LDFLAGS; do
13419 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13420 aix_use_runtimelinking=yes
13421 break
13422 fi
13423 done
13424 ;;
13425 esac
13427 exp_sym_flag='-bexport'
13428 no_entry_flag='-bnoentry'
13429 fi
13431 # When large executables or shared objects are built, AIX ld can
13432 # have problems creating the table of contents. If linking a library
13433 # or program results in "error TOC overflow" add -mminimal-toc to
13434 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13435 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13437 archive_cmds_GCJ=''
13438 hardcode_direct_GCJ=yes
13439 hardcode_libdir_separator_GCJ=':'
13440 link_all_deplibs_GCJ=yes
13442 if test "$GCC" = yes; then
13443 case $host_os in aix4.[012]|aix4.[012].*)
13444 # We only want to do this on AIX 4.2 and lower, the check
13445 # below for broken collect2 doesn't work under 4.3+
13446 collect2name=`${CC} -print-prog-name=collect2`
13447 if test -f "$collect2name" && \
13448 strings "$collect2name" | grep resolve_lib_name >/dev/null
13449 then
13450 # We have reworked collect2
13451 hardcode_direct_GCJ=yes
13452 else
13453 # We have old collect2
13454 hardcode_direct_GCJ=unsupported
13455 # It fails to find uninstalled libraries when the uninstalled
13456 # path is not listed in the libpath. Setting hardcode_minus_L
13457 # to unsupported forces relinking
13458 hardcode_minus_L_GCJ=yes
13459 hardcode_libdir_flag_spec_GCJ='-L$libdir'
13460 hardcode_libdir_separator_GCJ=
13461 fi
13462 ;;
13463 esac
13464 shared_flag='-shared'
13465 if test "$aix_use_runtimelinking" = yes; then
13466 shared_flag="$shared_flag "'${wl}-G'
13467 fi
13468 else
13469 # not using gcc
13470 if test "$host_cpu" = ia64; then
13471 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13472 # chokes on -Wl,-G. The following line is correct:
13473 shared_flag='-G'
13474 else
13475 if test "$aix_use_runtimelinking" = yes; then
13476 shared_flag='${wl}-G'
13477 else
13478 shared_flag='${wl}-bM:SRE'
13479 fi
13480 fi
13481 fi
13483 # It seems that -bexpall does not export symbols beginning with
13484 # underscore (_), so it is better to generate a list of symbols to export.
13485 always_export_symbols_GCJ=yes
13486 if test "$aix_use_runtimelinking" = yes; then
13487 # Warning - without using the other runtime loading flags (-brtl),
13488 # -berok will link without error, but may produce a broken library.
13489 allow_undefined_flag_GCJ='-berok'
13490 # Determine the default libpath from the value encoded in an empty executable.
13491 cat >conftest.$ac_ext <<_ACEOF
13492 /* confdefs.h. */
13493 _ACEOF
13494 cat confdefs.h >>conftest.$ac_ext
13495 cat >>conftest.$ac_ext <<_ACEOF
13496 /* end confdefs.h. */
13498 int
13499 main ()
13500 {
13502 ;
13503 return 0;
13504 }
13505 _ACEOF
13506 rm -f conftest.$ac_objext conftest$ac_exeext
13507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13508 (eval $ac_link) 2>conftest.er1
13509 ac_status=$?
13510 grep -v '^ *+' conftest.er1 >conftest.err
13511 rm -f conftest.er1
13512 cat conftest.err >&5
13513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13514 (exit $ac_status); } &&
13515 { ac_try='test -z "$ac_c_werror_flag"
13516 || test ! -s conftest.err'
13517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13518 (eval $ac_try) 2>&5
13519 ac_status=$?
13520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13521 (exit $ac_status); }; } &&
13522 { ac_try='test -s conftest$ac_exeext'
13523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13524 (eval $ac_try) 2>&5
13525 ac_status=$?
13526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527 (exit $ac_status); }; }; then
13529 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13530 }'`
13531 # Check for a 64-bit object if we didn't find anything.
13532 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; }
13533 }'`; fi
13534 else
13535 echo "$as_me: failed program was:" >&5
13536 sed 's/^/| /' conftest.$ac_ext >&5
13538 fi
13539 rm -f conftest.err conftest.$ac_objext \
13540 conftest$ac_exeext conftest.$ac_ext
13541 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13543 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
13544 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"
13545 else
13546 if test "$host_cpu" = ia64; then
13547 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
13548 allow_undefined_flag_GCJ="-z nodefs"
13549 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"
13550 else
13551 # Determine the default libpath from the value encoded in an empty executable.
13552 cat >conftest.$ac_ext <<_ACEOF
13553 /* confdefs.h. */
13554 _ACEOF
13555 cat confdefs.h >>conftest.$ac_ext
13556 cat >>conftest.$ac_ext <<_ACEOF
13557 /* end confdefs.h. */
13559 int
13560 main ()
13561 {
13563 ;
13564 return 0;
13565 }
13566 _ACEOF
13567 rm -f conftest.$ac_objext conftest$ac_exeext
13568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13569 (eval $ac_link) 2>conftest.er1
13570 ac_status=$?
13571 grep -v '^ *+' conftest.er1 >conftest.err
13572 rm -f conftest.er1
13573 cat conftest.err >&5
13574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575 (exit $ac_status); } &&
13576 { ac_try='test -z "$ac_c_werror_flag"
13577 || test ! -s conftest.err'
13578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13579 (eval $ac_try) 2>&5
13580 ac_status=$?
13581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13582 (exit $ac_status); }; } &&
13583 { ac_try='test -s conftest$ac_exeext'
13584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13585 (eval $ac_try) 2>&5
13586 ac_status=$?
13587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13588 (exit $ac_status); }; }; then
13590 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13591 }'`
13592 # Check for a 64-bit object if we didn't find anything.
13593 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; }
13594 }'`; fi
13595 else
13596 echo "$as_me: failed program was:" >&5
13597 sed 's/^/| /' conftest.$ac_ext >&5
13599 fi
13600 rm -f conftest.err conftest.$ac_objext \
13601 conftest$ac_exeext conftest.$ac_ext
13602 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13604 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
13605 # Warning - without using the other run time loading flags,
13606 # -berok will link without error, but may produce a broken library.
13607 no_undefined_flag_GCJ=' ${wl}-bernotok'
13608 allow_undefined_flag_GCJ=' ${wl}-berok'
13609 # Exported symbols can be pulled into shared objects from archives
13610 whole_archive_flag_spec_GCJ='$convenience'
13611 archive_cmds_need_lc_GCJ=yes
13612 # This is similar to how AIX traditionally builds its shared libraries.
13613 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'
13614 fi
13615 fi
13616 ;;
13618 amigaos*)
13619 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)'
13620 hardcode_libdir_flag_spec_GCJ='-L$libdir'
13621 hardcode_minus_L_GCJ=yes
13622 # see comment about different semantics on the GNU ld section
13623 ld_shlibs_GCJ=no
13624 ;;
13626 bsdi[45]*)
13627 export_dynamic_flag_spec_GCJ=-rdynamic
13628 ;;
13630 cygwin* | mingw* | pw32*)
13631 # When not using gcc, we currently assume that we are using
13632 # Microsoft Visual C++.
13633 # hardcode_libdir_flag_spec is actually meaningless, as there is
13634 # no search path for DLLs.
13635 hardcode_libdir_flag_spec_GCJ=' '
13636 allow_undefined_flag_GCJ=unsupported
13637 # Tell ltmain to make .lib files, not .a files.
13638 libext=lib
13639 # Tell ltmain to make .dll files, not .so files.
13640 shrext_cmds=".dll"
13641 # FIXME: Setting linknames here is a bad hack.
13642 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13643 # The linker will automatically build a .lib file if we build a DLL.
13644 old_archive_From_new_cmds_GCJ='true'
13645 # FIXME: Should let the user specify the lib program.
13646 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
13647 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
13648 enable_shared_with_static_runtimes_GCJ=yes
13649 ;;
13651 darwin* | rhapsody*)
13652 case $host_os in
13653 rhapsody* | darwin1.[012])
13654 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
13655 ;;
13656 *) # Darwin 1.3 on
13657 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13658 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13659 else
13660 case ${MACOSX_DEPLOYMENT_TARGET} in
13661 10.[012])
13662 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13663 ;;
13664 10.*)
13665 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
13666 ;;
13667 esac
13668 fi
13669 ;;
13670 esac
13671 archive_cmds_need_lc_GCJ=no
13672 hardcode_direct_GCJ=no
13673 hardcode_automatic_GCJ=yes
13674 hardcode_shlibpath_var_GCJ=unsupported
13675 whole_archive_flag_spec_GCJ=''
13676 link_all_deplibs_GCJ=yes
13677 if test "$GCC" = yes ; then
13678 output_verbose_link_cmd='echo'
13679 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13680 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13681 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13682 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}'
13683 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}'
13684 else
13685 case $cc_basename in
13686 xlc*)
13687 output_verbose_link_cmd='echo'
13688 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13689 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13690 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13691 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}'
13692 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}'
13693 ;;
13694 *)
13695 ld_shlibs_GCJ=no
13696 ;;
13697 esac
13698 fi
13699 ;;
13701 dgux*)
13702 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13703 hardcode_libdir_flag_spec_GCJ='-L$libdir'
13704 hardcode_shlibpath_var_GCJ=no
13705 ;;
13707 freebsd1*)
13708 ld_shlibs_GCJ=no
13709 ;;
13711 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13712 # support. Future versions do this automatically, but an explicit c++rt0.o
13713 # does not break anything, and helps significantly (at the cost of a little
13714 # extra space).
13715 freebsd2.2*)
13716 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13717 hardcode_libdir_flag_spec_GCJ='-R$libdir'
13718 hardcode_direct_GCJ=yes
13719 hardcode_shlibpath_var_GCJ=no
13720 ;;
13722 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13723 freebsd2*)
13724 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13725 hardcode_direct_GCJ=yes
13726 hardcode_minus_L_GCJ=yes
13727 hardcode_shlibpath_var_GCJ=no
13728 ;;
13730 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13731 freebsd* | kfreebsd*-gnu | dragonfly*)
13732 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13733 hardcode_libdir_flag_spec_GCJ='-R$libdir'
13734 hardcode_direct_GCJ=yes
13735 hardcode_shlibpath_var_GCJ=no
13736 ;;
13738 hpux9*)
13739 if test "$GCC" = yes; then
13740 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'
13741 else
13742 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'
13743 fi
13744 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
13745 hardcode_libdir_separator_GCJ=:
13746 hardcode_direct_GCJ=yes
13748 # hardcode_minus_L: Not really in the search PATH,
13749 # but as the default location of the library.
13750 hardcode_minus_L_GCJ=yes
13751 export_dynamic_flag_spec_GCJ='${wl}-E'
13752 ;;
13754 hpux10*)
13755 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13756 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13757 else
13758 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13759 fi
13760 if test "$with_gnu_ld" = no; then
13761 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
13762 hardcode_libdir_separator_GCJ=:
13764 hardcode_direct_GCJ=yes
13765 export_dynamic_flag_spec_GCJ='${wl}-E'
13767 # hardcode_minus_L: Not really in the search PATH,
13768 # but as the default location of the library.
13769 hardcode_minus_L_GCJ=yes
13770 fi
13771 ;;
13773 hpux11*)
13774 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13775 case $host_cpu in
13776 hppa*64*)
13777 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13778 ;;
13779 ia64*)
13780 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13781 ;;
13782 *)
13783 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13784 ;;
13785 esac
13786 else
13787 case $host_cpu in
13788 hppa*64*)
13789 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13790 ;;
13791 ia64*)
13792 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13793 ;;
13794 *)
13795 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13796 ;;
13797 esac
13798 fi
13799 if test "$with_gnu_ld" = no; then
13800 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
13801 hardcode_libdir_separator_GCJ=:
13803 case $host_cpu in
13804 hppa*64*|ia64*)
13805 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
13806 hardcode_direct_GCJ=no
13807 hardcode_shlibpath_var_GCJ=no
13808 ;;
13809 *)
13810 hardcode_direct_GCJ=yes
13811 export_dynamic_flag_spec_GCJ='${wl}-E'
13813 # hardcode_minus_L: Not really in the search PATH,
13814 # but as the default location of the library.
13815 hardcode_minus_L_GCJ=yes
13816 ;;
13817 esac
13818 fi
13819 ;;
13821 irix5* | irix6* | nonstopux*)
13822 if test "$GCC" = yes; then
13823 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'
13824 else
13825 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'
13826 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
13827 fi
13828 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
13829 hardcode_libdir_separator_GCJ=:
13830 link_all_deplibs_GCJ=yes
13831 ;;
13833 netbsd*)
13834 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13835 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13836 else
13837 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13838 fi
13839 hardcode_libdir_flag_spec_GCJ='-R$libdir'
13840 hardcode_direct_GCJ=yes
13841 hardcode_shlibpath_var_GCJ=no
13842 ;;
13844 newsos6)
13845 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13846 hardcode_direct_GCJ=yes
13847 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
13848 hardcode_libdir_separator_GCJ=:
13849 hardcode_shlibpath_var_GCJ=no
13850 ;;
13852 openbsd*)
13853 hardcode_direct_GCJ=yes
13854 hardcode_shlibpath_var_GCJ=no
13855 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13856 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13857 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13858 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
13859 export_dynamic_flag_spec_GCJ='${wl}-E'
13860 else
13861 case $host_os in
13862 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13863 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13864 hardcode_libdir_flag_spec_GCJ='-R$libdir'
13865 ;;
13866 *)
13867 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13868 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
13869 ;;
13870 esac
13871 fi
13872 ;;
13874 os2*)
13875 hardcode_libdir_flag_spec_GCJ='-L$libdir'
13876 hardcode_minus_L_GCJ=yes
13877 allow_undefined_flag_GCJ=unsupported
13878 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'
13879 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13880 ;;
13882 osf3*)
13883 if test "$GCC" = yes; then
13884 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
13885 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'
13886 else
13887 allow_undefined_flag_GCJ=' -expect_unresolved \*'
13888 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'
13889 fi
13890 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
13891 hardcode_libdir_separator_GCJ=:
13892 ;;
13894 osf4* | osf5*) # as osf3* with the addition of -msym flag
13895 if test "$GCC" = yes; then
13896 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
13897 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'
13898 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
13899 else
13900 allow_undefined_flag_GCJ=' -expect_unresolved \*'
13901 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'
13902 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~
13903 $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'
13905 # Both c and cxx compiler support -rpath directly
13906 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
13907 fi
13908 hardcode_libdir_separator_GCJ=:
13909 ;;
13911 solaris*)
13912 no_undefined_flag_GCJ=' -z text'
13913 if test "$GCC" = yes; then
13914 wlarc='${wl}'
13915 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13916 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13917 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13918 else
13919 wlarc=''
13920 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13921 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13922 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13923 fi
13924 hardcode_libdir_flag_spec_GCJ='-R$libdir'
13925 hardcode_shlibpath_var_GCJ=no
13926 case $host_os in
13927 solaris2.[0-5] | solaris2.[0-5].*) ;;
13928 *)
13929 # The compiler driver will combine linker options so we
13930 # cannot just pass the convience library names through
13931 # without $wl, iff we do not link with $LD.
13932 # Luckily, gcc supports the same syntax we need for Sun Studio.
13933 # Supported since Solaris 2.6 (maybe 2.5.1?)
13934 case $wlarc in
13935 '')
13936 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
13937 *)
13938 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' ;;
13939 esac ;;
13940 esac
13941 link_all_deplibs_GCJ=yes
13942 ;;
13944 sunos4*)
13945 if test "x$host_vendor" = xsequent; then
13946 # Use $CC to link under sequent, because it throws in some extra .o
13947 # files that make .init and .fini sections work.
13948 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13949 else
13950 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13951 fi
13952 hardcode_libdir_flag_spec_GCJ='-L$libdir'
13953 hardcode_direct_GCJ=yes
13954 hardcode_minus_L_GCJ=yes
13955 hardcode_shlibpath_var_GCJ=no
13956 ;;
13958 sysv4)
13959 case $host_vendor in
13960 sni)
13961 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13962 hardcode_direct_GCJ=yes # is this really true???
13963 ;;
13964 siemens)
13965 ## LD is ld it makes a PLAMLIB
13966 ## CC just makes a GrossModule.
13967 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13968 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
13969 hardcode_direct_GCJ=no
13970 ;;
13971 motorola)
13972 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13973 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
13974 ;;
13975 esac
13976 runpath_var='LD_RUN_PATH'
13977 hardcode_shlibpath_var_GCJ=no
13978 ;;
13980 sysv4.3*)
13981 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13982 hardcode_shlibpath_var_GCJ=no
13983 export_dynamic_flag_spec_GCJ='-Bexport'
13984 ;;
13986 sysv4*MP*)
13987 if test -d /usr/nec; then
13988 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13989 hardcode_shlibpath_var_GCJ=no
13990 runpath_var=LD_RUN_PATH
13991 hardcode_runpath_var=yes
13992 ld_shlibs_GCJ=yes
13993 fi
13994 ;;
13996 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
13997 no_undefined_flag_GCJ='${wl}-z,text'
13998 archive_cmds_need_lc_GCJ=no
13999 hardcode_shlibpath_var_GCJ=no
14000 runpath_var='LD_RUN_PATH'
14002 if test "$GCC" = yes; then
14003 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14004 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14005 else
14006 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14007 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14008 fi
14009 ;;
14011 sysv5* | sco3.2v5* | sco5v6*)
14012 # Note: We can NOT use -z defs as we might desire, because we do not
14013 # link with -lc, and that would cause any symbols used from libc to
14014 # always be unresolved, which means just about no library would
14015 # ever link correctly. If we're not using GNU ld we use -z text
14016 # though, which does catch some bad symbols but isn't as heavy-handed
14017 # as -z defs.
14018 no_undefined_flag_GCJ='${wl}-z,text'
14019 allow_undefined_flag_GCJ='${wl}-z,nodefs'
14020 archive_cmds_need_lc_GCJ=no
14021 hardcode_shlibpath_var_GCJ=no
14022 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14023 hardcode_libdir_separator_GCJ=':'
14024 link_all_deplibs_GCJ=yes
14025 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
14026 runpath_var='LD_RUN_PATH'
14028 if test "$GCC" = yes; then
14029 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14030 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14031 else
14032 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14033 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14034 fi
14035 ;;
14037 uts4*)
14038 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14039 hardcode_libdir_flag_spec_GCJ='-L$libdir'
14040 hardcode_shlibpath_var_GCJ=no
14041 ;;
14043 *)
14044 ld_shlibs_GCJ=no
14045 ;;
14046 esac
14047 fi
14049 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
14050 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
14051 test "$ld_shlibs_GCJ" = no && can_build_shared=no
14053 #
14054 # Do we need to explicitly link libc?
14055 #
14056 case "x$archive_cmds_need_lc_GCJ" in
14057 x|xyes)
14058 # Assume -lc should be added
14059 archive_cmds_need_lc_GCJ=yes
14061 if test "$enable_shared" = yes && test "$GCC" = yes; then
14062 case $archive_cmds_GCJ in
14063 *'~'*)
14064 # FIXME: we may have to deal with multi-command sequences.
14065 ;;
14066 '$CC '*)
14067 # Test whether the compiler implicitly links with -lc since on some
14068 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14069 # to ld, don't add -lc before -lgcc.
14070 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14071 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14072 $rm conftest*
14073 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14076 (eval $ac_compile) 2>&5
14077 ac_status=$?
14078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14079 (exit $ac_status); } 2>conftest.err; then
14080 soname=conftest
14081 lib=conftest
14082 libobjs=conftest.$ac_objext
14083 deplibs=
14084 wl=$lt_prog_compiler_wl_GCJ
14085 pic_flag=$lt_prog_compiler_pic_GCJ
14086 compiler_flags=-v
14087 linker_flags=-v
14088 verstring=
14089 output_objdir=.
14090 libname=conftest
14091 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
14092 allow_undefined_flag_GCJ=
14093 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14094 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14095 ac_status=$?
14096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14097 (exit $ac_status); }
14098 then
14099 archive_cmds_need_lc_GCJ=no
14100 else
14101 archive_cmds_need_lc_GCJ=yes
14102 fi
14103 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
14104 else
14105 cat conftest.err 1>&5
14106 fi
14107 $rm conftest*
14108 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
14109 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
14110 ;;
14111 esac
14112 fi
14113 ;;
14114 esac
14116 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14117 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14118 library_names_spec=
14119 libname_spec='lib$name'
14120 soname_spec=
14121 shrext_cmds=".so"
14122 postinstall_cmds=
14123 postuninstall_cmds=
14124 finish_cmds=
14125 finish_eval=
14126 shlibpath_var=
14127 shlibpath_overrides_runpath=unknown
14128 version_type=none
14129 dynamic_linker="$host_os ld.so"
14130 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14131 if test "$GCC" = yes; then
14132 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14133 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14134 # if the path contains ";" then we assume it to be the separator
14135 # otherwise default to the standard path separator (i.e. ":") - it is
14136 # assumed that no part of a normal pathname contains ";" but that should
14137 # okay in the real world where ";" in dirpaths is itself problematic.
14138 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14139 else
14140 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14141 fi
14142 else
14143 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14144 fi
14145 need_lib_prefix=unknown
14146 hardcode_into_libs=no
14148 # when you set need_version to no, make sure it does not cause -set_version
14149 # flags to be left without arguments
14150 need_version=unknown
14152 case $host_os in
14153 aix3*)
14154 version_type=linux
14155 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14156 shlibpath_var=LIBPATH
14158 # AIX 3 has no versioning support, so we append a major version to the name.
14159 soname_spec='${libname}${release}${shared_ext}$major'
14160 ;;
14162 aix4* | aix5*)
14163 version_type=linux
14164 need_lib_prefix=no
14165 need_version=no
14166 hardcode_into_libs=yes
14167 if test "$host_cpu" = ia64; then
14168 # AIX 5 supports IA64
14169 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14170 shlibpath_var=LD_LIBRARY_PATH
14171 else
14172 # With GCC up to 2.95.x, collect2 would create an import file
14173 # for dependence libraries. The import file would start with
14174 # the line `#! .'. This would cause the generated library to
14175 # depend on `.', always an invalid library. This was fixed in
14176 # development snapshots of GCC prior to 3.0.
14177 case $host_os in
14178 aix4 | aix4.[01] | aix4.[01].*)
14179 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14180 echo ' yes '
14181 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14182 :
14183 else
14184 can_build_shared=no
14185 fi
14186 ;;
14187 esac
14188 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14189 # soname into executable. Probably we can add versioning support to
14190 # collect2, so additional links can be useful in future.
14191 if test "$aix_use_runtimelinking" = yes; then
14192 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14193 # instead of lib<name>.a to let people know that these are not
14194 # typical AIX shared libraries.
14195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14196 else
14197 # We preserve .a as extension for shared libraries through AIX4.2
14198 # and later when we are not doing run time linking.
14199 library_names_spec='${libname}${release}.a $libname.a'
14200 soname_spec='${libname}${release}${shared_ext}$major'
14201 fi
14202 shlibpath_var=LIBPATH
14203 fi
14204 ;;
14206 amigaos*)
14207 library_names_spec='$libname.ixlibrary $libname.a'
14208 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14209 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'
14210 ;;
14212 beos*)
14213 library_names_spec='${libname}${shared_ext}'
14214 dynamic_linker="$host_os ld.so"
14215 shlibpath_var=LIBRARY_PATH
14216 ;;
14218 bsdi[45]*)
14219 version_type=linux
14220 need_version=no
14221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14222 soname_spec='${libname}${release}${shared_ext}$major'
14223 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14224 shlibpath_var=LD_LIBRARY_PATH
14225 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14226 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14227 # the default ld.so.conf also contains /usr/contrib/lib and
14228 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14229 # libtool to hard-code these into programs
14230 ;;
14232 cygwin* | mingw* | pw32*)
14233 version_type=windows
14234 shrext_cmds=".dll"
14235 need_version=no
14236 need_lib_prefix=no
14238 case $GCC,$host_os in
14239 yes,cygwin* | yes,mingw* | yes,pw32*)
14240 library_names_spec='$libname.dll.a'
14241 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14242 postinstall_cmds='base_file=`basename \${file}`~
14243 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14244 dldir=$destdir/`dirname \$dlpath`~
14245 test -d \$dldir || mkdir -p \$dldir~
14246 $install_prog $dir/$dlname \$dldir/$dlname~
14247 chmod a+x \$dldir/$dlname'
14248 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14249 dlpath=$dir/\$dldll~
14250 $rm \$dlpath'
14251 shlibpath_overrides_runpath=yes
14253 case $host_os in
14254 cygwin*)
14255 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14256 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14257 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14258 ;;
14259 mingw*)
14260 # MinGW DLLs use traditional 'lib' prefix
14261 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14262 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14263 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14264 # It is most probably a Windows format PATH printed by
14265 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14266 # path with ; separators, and with drive letters. We can handle the
14267 # drive letters (cygwin fileutils understands them), so leave them,
14268 # especially as we might pass files found there to a mingw objdump,
14269 # which wouldn't understand a cygwinified path. Ahh.
14270 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14271 else
14272 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14273 fi
14274 ;;
14275 pw32*)
14276 # pw32 DLLs use 'pw' prefix rather than 'lib'
14277 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14278 ;;
14279 esac
14280 ;;
14282 *)
14283 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14284 ;;
14285 esac
14286 dynamic_linker='Win32 ld.exe'
14287 # FIXME: first we should search . and the directory the executable is in
14288 shlibpath_var=PATH
14289 ;;
14291 darwin* | rhapsody*)
14292 dynamic_linker="$host_os dyld"
14293 version_type=darwin
14294 need_lib_prefix=no
14295 need_version=no
14296 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14297 soname_spec='${libname}${release}${major}$shared_ext'
14298 shlibpath_overrides_runpath=yes
14299 shlibpath_var=DYLD_LIBRARY_PATH
14300 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14301 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14302 if test "$GCC" = yes; then
14303 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"`
14304 else
14305 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14306 fi
14307 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14308 ;;
14310 dgux*)
14311 version_type=linux
14312 need_lib_prefix=no
14313 need_version=no
14314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14315 soname_spec='${libname}${release}${shared_ext}$major'
14316 shlibpath_var=LD_LIBRARY_PATH
14317 ;;
14319 freebsd1*)
14320 dynamic_linker=no
14321 ;;
14323 kfreebsd*-gnu)
14324 version_type=linux
14325 need_lib_prefix=no
14326 need_version=no
14327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14328 soname_spec='${libname}${release}${shared_ext}$major'
14329 shlibpath_var=LD_LIBRARY_PATH
14330 shlibpath_overrides_runpath=no
14331 hardcode_into_libs=yes
14332 dynamic_linker='GNU ld.so'
14333 ;;
14335 freebsd* | dragonfly*)
14336 # DragonFly does not have aout. When/if they implement a new
14337 # versioning mechanism, adjust this.
14338 if test -x /usr/bin/objformat; then
14339 objformat=`/usr/bin/objformat`
14340 else
14341 case $host_os in
14342 freebsd[123]*) objformat=aout ;;
14343 *) objformat=elf ;;
14344 esac
14345 fi
14346 version_type=freebsd-$objformat
14347 case $version_type in
14348 freebsd-elf*)
14349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14350 need_version=no
14351 need_lib_prefix=no
14352 ;;
14353 freebsd-*)
14354 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14355 need_version=yes
14356 ;;
14357 esac
14358 shlibpath_var=LD_LIBRARY_PATH
14359 case $host_os in
14360 freebsd2*)
14361 shlibpath_overrides_runpath=yes
14362 ;;
14363 freebsd3.[01]* | freebsdelf3.[01]*)
14364 shlibpath_overrides_runpath=yes
14365 hardcode_into_libs=yes
14366 ;;
14367 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14368 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14369 shlibpath_overrides_runpath=no
14370 hardcode_into_libs=yes
14371 ;;
14372 freebsd*) # from 4.6 on
14373 shlibpath_overrides_runpath=yes
14374 hardcode_into_libs=yes
14375 ;;
14376 esac
14377 ;;
14379 gnu*)
14380 version_type=linux
14381 need_lib_prefix=no
14382 need_version=no
14383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14384 soname_spec='${libname}${release}${shared_ext}$major'
14385 shlibpath_var=LD_LIBRARY_PATH
14386 hardcode_into_libs=yes
14387 ;;
14389 hpux9* | hpux10* | hpux11*)
14390 # Give a soname corresponding to the major version so that dld.sl refuses to
14391 # link against other versions.
14392 version_type=sunos
14393 need_lib_prefix=no
14394 need_version=no
14395 case $host_cpu in
14396 ia64*)
14397 shrext_cmds='.so'
14398 hardcode_into_libs=yes
14399 dynamic_linker="$host_os dld.so"
14400 shlibpath_var=LD_LIBRARY_PATH
14401 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14403 soname_spec='${libname}${release}${shared_ext}$major'
14404 if test "X$HPUX_IA64_MODE" = X32; then
14405 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14406 else
14407 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14408 fi
14409 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14410 ;;
14411 hppa*64*)
14412 shrext_cmds='.sl'
14413 hardcode_into_libs=yes
14414 dynamic_linker="$host_os dld.sl"
14415 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14416 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14420 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14421 ;;
14422 *)
14423 shrext_cmds='.sl'
14424 dynamic_linker="$host_os dld.sl"
14425 shlibpath_var=SHLIB_PATH
14426 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14428 soname_spec='${libname}${release}${shared_ext}$major'
14429 ;;
14430 esac
14431 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14432 postinstall_cmds='chmod 555 $lib'
14433 ;;
14435 interix3*)
14436 version_type=linux
14437 need_lib_prefix=no
14438 need_version=no
14439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14440 soname_spec='${libname}${release}${shared_ext}$major'
14441 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14442 shlibpath_var=LD_LIBRARY_PATH
14443 shlibpath_overrides_runpath=no
14444 hardcode_into_libs=yes
14445 ;;
14447 irix5* | irix6* | nonstopux*)
14448 case $host_os in
14449 nonstopux*) version_type=nonstopux ;;
14450 *)
14451 if test "$lt_cv_prog_gnu_ld" = yes; then
14452 version_type=linux
14453 else
14454 version_type=irix
14455 fi ;;
14456 esac
14457 need_lib_prefix=no
14458 need_version=no
14459 soname_spec='${libname}${release}${shared_ext}$major'
14460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14461 case $host_os in
14462 irix5* | nonstopux*)
14463 libsuff= shlibsuff=
14464 ;;
14465 *)
14466 case $LD in # libtool.m4 will add one of these switches to LD
14467 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14468 libsuff= shlibsuff= libmagic=32-bit;;
14469 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14470 libsuff=32 shlibsuff=N32 libmagic=N32;;
14471 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14472 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14473 *) libsuff= shlibsuff= libmagic=never-match;;
14474 esac
14475 ;;
14476 esac
14477 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14478 shlibpath_overrides_runpath=no
14479 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14480 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14481 hardcode_into_libs=yes
14482 ;;
14484 # No shared lib support for Linux oldld, aout, or coff.
14485 linux*oldld* | linux*aout* | linux*coff*)
14486 dynamic_linker=no
14487 ;;
14489 # This must be Linux ELF.
14490 linux*)
14491 version_type=linux
14492 need_lib_prefix=no
14493 need_version=no
14494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14495 soname_spec='${libname}${release}${shared_ext}$major'
14496 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14497 shlibpath_var=LD_LIBRARY_PATH
14498 shlibpath_overrides_runpath=no
14499 # This implies no fast_install, which is unacceptable.
14500 # Some rework will be needed to allow for fast_install
14501 # before this can be enabled.
14502 hardcode_into_libs=yes
14504 # Append ld.so.conf contents to the search path
14505 if test -f /etc/ld.so.conf; then
14506 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' ' '`
14507 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14508 fi
14510 # We used to test for /lib/ld.so.1 and disable shared libraries on
14511 # powerpc, because MkLinux only supported shared libraries with the
14512 # GNU dynamic linker. Since this was broken with cross compilers,
14513 # most powerpc-linux boxes support dynamic linking these days and
14514 # people can always --disable-shared, the test was removed, and we
14515 # assume the GNU/Linux dynamic linker is in use.
14516 dynamic_linker='GNU/Linux ld.so'
14517 ;;
14519 knetbsd*-gnu)
14520 version_type=linux
14521 need_lib_prefix=no
14522 need_version=no
14523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14524 soname_spec='${libname}${release}${shared_ext}$major'
14525 shlibpath_var=LD_LIBRARY_PATH
14526 shlibpath_overrides_runpath=no
14527 hardcode_into_libs=yes
14528 dynamic_linker='GNU ld.so'
14529 ;;
14531 netbsd*)
14532 version_type=sunos
14533 need_lib_prefix=no
14534 need_version=no
14535 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14537 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14538 dynamic_linker='NetBSD (a.out) ld.so'
14539 else
14540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14541 soname_spec='${libname}${release}${shared_ext}$major'
14542 dynamic_linker='NetBSD ld.elf_so'
14543 fi
14544 shlibpath_var=LD_LIBRARY_PATH
14545 shlibpath_overrides_runpath=yes
14546 hardcode_into_libs=yes
14547 ;;
14549 newsos6)
14550 version_type=linux
14551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14552 shlibpath_var=LD_LIBRARY_PATH
14553 shlibpath_overrides_runpath=yes
14554 ;;
14556 nto-qnx*)
14557 version_type=linux
14558 need_lib_prefix=no
14559 need_version=no
14560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14561 soname_spec='${libname}${release}${shared_ext}$major'
14562 shlibpath_var=LD_LIBRARY_PATH
14563 shlibpath_overrides_runpath=yes
14564 ;;
14566 openbsd*)
14567 version_type=sunos
14568 sys_lib_dlsearch_path_spec="/usr/lib"
14569 need_lib_prefix=no
14570 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14571 case $host_os in
14572 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14573 *) need_version=no ;;
14574 esac
14575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14576 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14577 shlibpath_var=LD_LIBRARY_PATH
14578 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14579 case $host_os in
14580 openbsd2.[89] | openbsd2.[89].*)
14581 shlibpath_overrides_runpath=no
14582 ;;
14583 *)
14584 shlibpath_overrides_runpath=yes
14585 ;;
14586 esac
14587 else
14588 shlibpath_overrides_runpath=yes
14589 fi
14590 ;;
14592 os2*)
14593 libname_spec='$name'
14594 shrext_cmds=".dll"
14595 need_lib_prefix=no
14596 library_names_spec='$libname${shared_ext} $libname.a'
14597 dynamic_linker='OS/2 ld.exe'
14598 shlibpath_var=LIBPATH
14599 ;;
14601 osf3* | osf4* | osf5*)
14602 version_type=osf
14603 need_lib_prefix=no
14604 need_version=no
14605 soname_spec='${libname}${release}${shared_ext}$major'
14606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14607 shlibpath_var=LD_LIBRARY_PATH
14608 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14609 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14610 ;;
14612 solaris*)
14613 version_type=linux
14614 need_lib_prefix=no
14615 need_version=no
14616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14617 soname_spec='${libname}${release}${shared_ext}$major'
14618 shlibpath_var=LD_LIBRARY_PATH
14619 shlibpath_overrides_runpath=yes
14620 hardcode_into_libs=yes
14621 # ldd complains unless libraries are executable
14622 postinstall_cmds='chmod +x $lib'
14623 ;;
14625 sunos4*)
14626 version_type=sunos
14627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14628 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14629 shlibpath_var=LD_LIBRARY_PATH
14630 shlibpath_overrides_runpath=yes
14631 if test "$with_gnu_ld" = yes; then
14632 need_lib_prefix=no
14633 fi
14634 need_version=yes
14635 ;;
14637 sysv4 | sysv4.3*)
14638 version_type=linux
14639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14640 soname_spec='${libname}${release}${shared_ext}$major'
14641 shlibpath_var=LD_LIBRARY_PATH
14642 case $host_vendor in
14643 sni)
14644 shlibpath_overrides_runpath=no
14645 need_lib_prefix=no
14646 export_dynamic_flag_spec='${wl}-Blargedynsym'
14647 runpath_var=LD_RUN_PATH
14648 ;;
14649 siemens)
14650 need_lib_prefix=no
14651 ;;
14652 motorola)
14653 need_lib_prefix=no
14654 need_version=no
14655 shlibpath_overrides_runpath=no
14656 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14657 ;;
14658 esac
14659 ;;
14661 sysv4*MP*)
14662 if test -d /usr/nec ;then
14663 version_type=linux
14664 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14665 soname_spec='$libname${shared_ext}.$major'
14666 shlibpath_var=LD_LIBRARY_PATH
14667 fi
14668 ;;
14670 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14671 version_type=freebsd-elf
14672 need_lib_prefix=no
14673 need_version=no
14674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14675 soname_spec='${libname}${release}${shared_ext}$major'
14676 shlibpath_var=LD_LIBRARY_PATH
14677 hardcode_into_libs=yes
14678 if test "$with_gnu_ld" = yes; then
14679 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14680 shlibpath_overrides_runpath=no
14681 else
14682 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14683 shlibpath_overrides_runpath=yes
14684 case $host_os in
14685 sco3.2v5*)
14686 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14687 ;;
14688 esac
14689 fi
14690 sys_lib_dlsearch_path_spec='/usr/lib'
14691 ;;
14693 uts4*)
14694 version_type=linux
14695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14696 soname_spec='${libname}${release}${shared_ext}$major'
14697 shlibpath_var=LD_LIBRARY_PATH
14698 ;;
14700 *)
14701 dynamic_linker=no
14702 ;;
14703 esac
14704 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14705 echo "${ECHO_T}$dynamic_linker" >&6
14706 test "$dynamic_linker" = no && can_build_shared=no
14708 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14709 if test "$GCC" = yes; then
14710 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14711 fi
14713 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14714 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14715 hardcode_action_GCJ=
14716 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
14717 test -n "$runpath_var_GCJ" || \
14718 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
14720 # We can hardcode non-existant directories.
14721 if test "$hardcode_direct_GCJ" != no &&
14722 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14723 # have to relink, otherwise we might link with an installed library
14724 # when we should be linking with a yet-to-be-installed one
14725 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
14726 test "$hardcode_minus_L_GCJ" != no; then
14727 # Linking always hardcodes the temporary library directory.
14728 hardcode_action_GCJ=relink
14729 else
14730 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14731 hardcode_action_GCJ=immediate
14732 fi
14733 else
14734 # We cannot hardcode anything, or else we can only hardcode existing
14735 # directories.
14736 hardcode_action_GCJ=unsupported
14737 fi
14738 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
14739 echo "${ECHO_T}$hardcode_action_GCJ" >&6
14741 if test "$hardcode_action_GCJ" = relink; then
14742 # Fast installation is not supported
14743 enable_fast_install=no
14744 elif test "$shlibpath_overrides_runpath" = yes ||
14745 test "$enable_shared" = no; then
14746 # Fast installation is not necessary
14747 enable_fast_install=needless
14748 fi
14751 # The else clause should only fire when bootstrapping the
14752 # libtool distribution, otherwise you forgot to ship ltmain.sh
14753 # with your package, and you will get complaints that there are
14754 # no rules to generate ltmain.sh.
14755 if test -f "$ltmain"; then
14756 # See if we are running on zsh, and set the options which allow our commands through
14757 # without removal of \ escapes.
14758 if test -n "${ZSH_VERSION+set}" ; then
14759 setopt NO_GLOB_SUBST
14760 fi
14761 # Now quote all the things that may contain metacharacters while being
14762 # careful not to overquote the AC_SUBSTed values. We take copies of the
14763 # variables and quote the copies for generation of the libtool script.
14764 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14765 SED SHELL STRIP \
14766 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14767 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14768 deplibs_check_method reload_flag reload_cmds need_locks \
14769 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14770 lt_cv_sys_global_symbol_to_c_name_address \
14771 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14772 old_postinstall_cmds old_postuninstall_cmds \
14773 compiler_GCJ \
14774 CC_GCJ \
14775 LD_GCJ \
14776 lt_prog_compiler_wl_GCJ \
14777 lt_prog_compiler_pic_GCJ \
14778 lt_prog_compiler_static_GCJ \
14779 lt_prog_compiler_no_builtin_flag_GCJ \
14780 export_dynamic_flag_spec_GCJ \
14781 thread_safe_flag_spec_GCJ \
14782 whole_archive_flag_spec_GCJ \
14783 enable_shared_with_static_runtimes_GCJ \
14784 old_archive_cmds_GCJ \
14785 old_archive_from_new_cmds_GCJ \
14786 predep_objects_GCJ \
14787 postdep_objects_GCJ \
14788 predeps_GCJ \
14789 postdeps_GCJ \
14790 compiler_lib_search_path_GCJ \
14791 archive_cmds_GCJ \
14792 archive_expsym_cmds_GCJ \
14793 postinstall_cmds_GCJ \
14794 postuninstall_cmds_GCJ \
14795 old_archive_from_expsyms_cmds_GCJ \
14796 allow_undefined_flag_GCJ \
14797 no_undefined_flag_GCJ \
14798 export_symbols_cmds_GCJ \
14799 hardcode_libdir_flag_spec_GCJ \
14800 hardcode_libdir_flag_spec_ld_GCJ \
14801 hardcode_libdir_separator_GCJ \
14802 hardcode_automatic_GCJ \
14803 module_cmds_GCJ \
14804 module_expsym_cmds_GCJ \
14805 lt_cv_prog_compiler_c_o_GCJ \
14806 exclude_expsyms_GCJ \
14807 include_expsyms_GCJ; do
14809 case $var in
14810 old_archive_cmds_GCJ | \
14811 old_archive_from_new_cmds_GCJ | \
14812 archive_cmds_GCJ | \
14813 archive_expsym_cmds_GCJ | \
14814 module_cmds_GCJ | \
14815 module_expsym_cmds_GCJ | \
14816 old_archive_from_expsyms_cmds_GCJ | \
14817 export_symbols_cmds_GCJ | \
14818 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14819 postinstall_cmds | postuninstall_cmds | \
14820 old_postinstall_cmds | old_postuninstall_cmds | \
14821 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14822 # Double-quote double-evaled strings.
14823 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14824 ;;
14825 *)
14826 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14827 ;;
14828 esac
14829 done
14831 case $lt_echo in
14832 *'\$0 --fallback-echo"')
14833 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14834 ;;
14835 esac
14837 cfgfile="$ofile"
14839 cat <<__EOF__ >> "$cfgfile"
14840 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14842 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14844 # Shell to use when invoking shell scripts.
14845 SHELL=$lt_SHELL
14847 # Whether or not to build shared libraries.
14848 build_libtool_libs=$enable_shared
14850 # Whether or not to build static libraries.
14851 build_old_libs=$enable_static
14853 # Whether or not to add -lc for building shared libraries.
14854 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
14856 # Whether or not to disallow shared libs when runtime libs are static
14857 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
14859 # Whether or not to optimize for fast installation.
14860 fast_install=$enable_fast_install
14862 # The host system.
14863 host_alias=$host_alias
14864 host=$host
14865 host_os=$host_os
14867 # The build system.
14868 build_alias=$build_alias
14869 build=$build
14870 build_os=$build_os
14872 # An echo program that does not interpret backslashes.
14873 echo=$lt_echo
14875 # The archiver.
14876 AR=$lt_AR
14877 AR_FLAGS=$lt_AR_FLAGS
14879 # A C compiler.
14880 LTCC=$lt_LTCC
14882 # LTCC compiler flags.
14883 LTCFLAGS=$lt_LTCFLAGS
14885 # A language-specific compiler.
14886 CC=$lt_compiler_GCJ
14888 # Is the compiler the GNU C compiler?
14889 with_gcc=$GCC_GCJ
14891 # An ERE matcher.
14892 EGREP=$lt_EGREP
14894 # The linker used to build libraries.
14895 LD=$lt_LD_GCJ
14897 # Whether we need hard or soft links.
14898 LN_S=$lt_LN_S
14900 # A BSD-compatible nm program.
14901 NM=$lt_NM
14903 # A symbol stripping program
14904 STRIP=$lt_STRIP
14906 # Used to examine libraries when file_magic_cmd begins "file"
14907 MAGIC_CMD=$MAGIC_CMD
14909 # Used on cygwin: DLL creation program.
14910 DLLTOOL="$DLLTOOL"
14912 # Used on cygwin: object dumper.
14913 OBJDUMP="$OBJDUMP"
14915 # Used on cygwin: assembler.
14916 AS="$AS"
14918 # The name of the directory that contains temporary libtool files.
14919 objdir=$objdir
14921 # How to create reloadable object files.
14922 reload_flag=$lt_reload_flag
14923 reload_cmds=$lt_reload_cmds
14925 # How to pass a linker flag through the compiler.
14926 wl=$lt_lt_prog_compiler_wl_GCJ
14928 # Object file suffix (normally "o").
14929 objext="$ac_objext"
14931 # Old archive suffix (normally "a").
14932 libext="$libext"
14934 # Shared library suffix (normally ".so").
14935 shrext_cmds='$shrext_cmds'
14937 # Executable file suffix (normally "").
14938 exeext="$exeext"
14940 # Additional compiler flags for building library objects.
14941 pic_flag=$lt_lt_prog_compiler_pic_GCJ
14942 pic_mode=$pic_mode
14944 # What is the maximum length of a command?
14945 max_cmd_len=$lt_cv_sys_max_cmd_len
14947 # Does compiler simultaneously support -c and -o options?
14948 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
14950 # Must we lock files when doing compilation?
14951 need_locks=$lt_need_locks
14953 # Do we need the lib prefix for modules?
14954 need_lib_prefix=$need_lib_prefix
14956 # Do we need a version for libraries?
14957 need_version=$need_version
14959 # Whether dlopen is supported.
14960 dlopen_support=$enable_dlopen
14962 # Whether dlopen of programs is supported.
14963 dlopen_self=$enable_dlopen_self
14965 # Whether dlopen of statically linked programs is supported.
14966 dlopen_self_static=$enable_dlopen_self_static
14968 # Compiler flag to prevent dynamic linking.
14969 link_static_flag=$lt_lt_prog_compiler_static_GCJ
14971 # Compiler flag to turn off builtin functions.
14972 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
14974 # Compiler flag to allow reflexive dlopens.
14975 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
14977 # Compiler flag to generate shared objects directly from archives.
14978 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
14980 # Compiler flag to generate thread-safe objects.
14981 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
14983 # Library versioning type.
14984 version_type=$version_type
14986 # Format of library name prefix.
14987 libname_spec=$lt_libname_spec
14989 # List of archive names. First name is the real one, the rest are links.
14990 # The last name is the one that the linker finds with -lNAME.
14991 library_names_spec=$lt_library_names_spec
14993 # The coded name of the library, if different from the real name.
14994 soname_spec=$lt_soname_spec
14996 # Commands used to build and install an old-style archive.
14997 RANLIB=$lt_RANLIB
14998 old_archive_cmds=$lt_old_archive_cmds_GCJ
14999 old_postinstall_cmds=$lt_old_postinstall_cmds
15000 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15002 # Create an old-style archive from a shared archive.
15003 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
15005 # Create a temporary old-style archive to link instead of a shared archive.
15006 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
15008 # Commands used to build and install a shared archive.
15009 archive_cmds=$lt_archive_cmds_GCJ
15010 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
15011 postinstall_cmds=$lt_postinstall_cmds
15012 postuninstall_cmds=$lt_postuninstall_cmds
15014 # Commands used to build a loadable module (assumed same as above if empty)
15015 module_cmds=$lt_module_cmds_GCJ
15016 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
15018 # Commands to strip libraries.
15019 old_striplib=$lt_old_striplib
15020 striplib=$lt_striplib
15022 # Dependencies to place before the objects being linked to create a
15023 # shared library.
15024 predep_objects=$lt_predep_objects_GCJ
15026 # Dependencies to place after the objects being linked to create a
15027 # shared library.
15028 postdep_objects=$lt_postdep_objects_GCJ
15030 # Dependencies to place before the objects being linked to create a
15031 # shared library.
15032 predeps=$lt_predeps_GCJ
15034 # Dependencies to place after the objects being linked to create a
15035 # shared library.
15036 postdeps=$lt_postdeps_GCJ
15038 # The library search path used internally by the compiler when linking
15039 # a shared library.
15040 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
15042 # Method to check whether dependent libraries are shared objects.
15043 deplibs_check_method=$lt_deplibs_check_method
15045 # Command to use when deplibs_check_method == file_magic.
15046 file_magic_cmd=$lt_file_magic_cmd
15048 # Flag that allows shared libraries with undefined symbols to be built.
15049 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
15051 # Flag that forces no undefined symbols.
15052 no_undefined_flag=$lt_no_undefined_flag_GCJ
15054 # Commands used to finish a libtool library installation in a directory.
15055 finish_cmds=$lt_finish_cmds
15057 # Same as above, but a single script fragment to be evaled but not shown.
15058 finish_eval=$lt_finish_eval
15060 # Take the output of nm and produce a listing of raw symbols and C names.
15061 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15063 # Transform the output of nm in a proper C declaration
15064 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15066 # Transform the output of nm in a C name address pair
15067 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15069 # This is the shared library runtime path variable.
15070 runpath_var=$runpath_var
15072 # This is the shared library path variable.
15073 shlibpath_var=$shlibpath_var
15075 # Is shlibpath searched before the hard-coded library search path?
15076 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15078 # How to hardcode a shared library path into an executable.
15079 hardcode_action=$hardcode_action_GCJ
15081 # Whether we should hardcode library paths into libraries.
15082 hardcode_into_libs=$hardcode_into_libs
15084 # Flag to hardcode \$libdir into a binary during linking.
15085 # This must work even if \$libdir does not exist.
15086 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
15088 # If ld is used when linking, flag to hardcode \$libdir into
15089 # a binary during linking. This must work even if \$libdir does
15090 # not exist.
15091 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
15093 # Whether we need a single -rpath flag with a separated argument.
15094 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
15096 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15097 # resulting binary.
15098 hardcode_direct=$hardcode_direct_GCJ
15100 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15101 # resulting binary.
15102 hardcode_minus_L=$hardcode_minus_L_GCJ
15104 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15105 # the resulting binary.
15106 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
15108 # Set to yes if building a shared library automatically hardcodes DIR into the library
15109 # and all subsequent libraries and executables linked against it.
15110 hardcode_automatic=$hardcode_automatic_GCJ
15112 # Variables whose values should be saved in libtool wrapper scripts and
15113 # restored at relink time.
15114 variables_saved_for_relink="$variables_saved_for_relink"
15116 # Whether libtool must link a program against all its dependency libraries.
15117 link_all_deplibs=$link_all_deplibs_GCJ
15119 # Compile-time system search path for libraries
15120 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15122 # Run-time system search path for libraries
15123 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15125 # Fix the shell variable \$srcfile for the compiler.
15126 fix_srcfile_path="$fix_srcfile_path_GCJ"
15128 # Set to yes if exported symbols are required.
15129 always_export_symbols=$always_export_symbols_GCJ
15131 # The commands to list exported symbols.
15132 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
15134 # The commands to extract the exported symbol list from a shared archive.
15135 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15137 # Symbols that should not be listed in the preloaded symbols.
15138 exclude_expsyms=$lt_exclude_expsyms_GCJ
15140 # Symbols that must always be exported.
15141 include_expsyms=$lt_include_expsyms_GCJ
15143 # ### END LIBTOOL TAG CONFIG: $tagname
15145 __EOF__
15148 else
15149 # If there is no Makefile yet, we rely on a make rule to execute
15150 # `config.status --recheck' to rerun these tests and create the
15151 # libtool script then.
15152 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15153 if test -f "$ltmain_in"; then
15154 test -f Makefile && make "$ltmain"
15155 fi
15156 fi
15159 ac_ext=c
15160 ac_cpp='$CPP $CPPFLAGS'
15161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15165 CC="$lt_save_CC"
15167 else
15168 tagname=""
15169 fi
15170 ;;
15172 RC)
15176 # Source file extension for RC test sources.
15177 ac_ext=rc
15179 # Object file extension for compiled RC test sources.
15180 objext=o
15181 objext_RC=$objext
15183 # Code to be used in simple compile tests
15184 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
15186 # Code to be used in simple link tests
15187 lt_simple_link_test_code="$lt_simple_compile_test_code"
15189 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15191 # If no C compiler was specified, use CC.
15192 LTCC=${LTCC-"$CC"}
15194 # If no C compiler flags were specified, use CFLAGS.
15195 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15197 # Allow CC to be a program name with arguments.
15198 compiler=$CC
15201 # save warnings/boilerplate of simple test code
15202 ac_outfile=conftest.$ac_objext
15203 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15204 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15205 _lt_compiler_boilerplate=`cat conftest.err`
15206 $rm conftest*
15208 ac_outfile=conftest.$ac_objext
15209 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15210 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15211 _lt_linker_boilerplate=`cat conftest.err`
15212 $rm conftest*
15215 # Allow CC to be a program name with arguments.
15216 lt_save_CC="$CC"
15217 CC=${RC-"windres"}
15218 compiler=$CC
15219 compiler_RC=$CC
15220 for cc_temp in $compiler""; do
15221 case $cc_temp in
15222 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15223 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15224 \-*) ;;
15225 *) break;;
15226 esac
15227 done
15228 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15230 lt_cv_prog_compiler_c_o_RC=yes
15232 # The else clause should only fire when bootstrapping the
15233 # libtool distribution, otherwise you forgot to ship ltmain.sh
15234 # with your package, and you will get complaints that there are
15235 # no rules to generate ltmain.sh.
15236 if test -f "$ltmain"; then
15237 # See if we are running on zsh, and set the options which allow our commands through
15238 # without removal of \ escapes.
15239 if test -n "${ZSH_VERSION+set}" ; then
15240 setopt NO_GLOB_SUBST
15241 fi
15242 # Now quote all the things that may contain metacharacters while being
15243 # careful not to overquote the AC_SUBSTed values. We take copies of the
15244 # variables and quote the copies for generation of the libtool script.
15245 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15246 SED SHELL STRIP \
15247 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15248 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15249 deplibs_check_method reload_flag reload_cmds need_locks \
15250 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15251 lt_cv_sys_global_symbol_to_c_name_address \
15252 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15253 old_postinstall_cmds old_postuninstall_cmds \
15254 compiler_RC \
15255 CC_RC \
15256 LD_RC \
15257 lt_prog_compiler_wl_RC \
15258 lt_prog_compiler_pic_RC \
15259 lt_prog_compiler_static_RC \
15260 lt_prog_compiler_no_builtin_flag_RC \
15261 export_dynamic_flag_spec_RC \
15262 thread_safe_flag_spec_RC \
15263 whole_archive_flag_spec_RC \
15264 enable_shared_with_static_runtimes_RC \
15265 old_archive_cmds_RC \
15266 old_archive_from_new_cmds_RC \
15267 predep_objects_RC \
15268 postdep_objects_RC \
15269 predeps_RC \
15270 postdeps_RC \
15271 compiler_lib_search_path_RC \
15272 archive_cmds_RC \
15273 archive_expsym_cmds_RC \
15274 postinstall_cmds_RC \
15275 postuninstall_cmds_RC \
15276 old_archive_from_expsyms_cmds_RC \
15277 allow_undefined_flag_RC \
15278 no_undefined_flag_RC \
15279 export_symbols_cmds_RC \
15280 hardcode_libdir_flag_spec_RC \
15281 hardcode_libdir_flag_spec_ld_RC \
15282 hardcode_libdir_separator_RC \
15283 hardcode_automatic_RC \
15284 module_cmds_RC \
15285 module_expsym_cmds_RC \
15286 lt_cv_prog_compiler_c_o_RC \
15287 exclude_expsyms_RC \
15288 include_expsyms_RC; do
15290 case $var in
15291 old_archive_cmds_RC | \
15292 old_archive_from_new_cmds_RC | \
15293 archive_cmds_RC | \
15294 archive_expsym_cmds_RC | \
15295 module_cmds_RC | \
15296 module_expsym_cmds_RC | \
15297 old_archive_from_expsyms_cmds_RC | \
15298 export_symbols_cmds_RC | \
15299 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15300 postinstall_cmds | postuninstall_cmds | \
15301 old_postinstall_cmds | old_postuninstall_cmds | \
15302 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15303 # Double-quote double-evaled strings.
15304 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15305 ;;
15306 *)
15307 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15308 ;;
15309 esac
15310 done
15312 case $lt_echo in
15313 *'\$0 --fallback-echo"')
15314 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15315 ;;
15316 esac
15318 cfgfile="$ofile"
15320 cat <<__EOF__ >> "$cfgfile"
15321 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15323 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15325 # Shell to use when invoking shell scripts.
15326 SHELL=$lt_SHELL
15328 # Whether or not to build shared libraries.
15329 build_libtool_libs=$enable_shared
15331 # Whether or not to build static libraries.
15332 build_old_libs=$enable_static
15334 # Whether or not to add -lc for building shared libraries.
15335 build_libtool_need_lc=$archive_cmds_need_lc_RC
15337 # Whether or not to disallow shared libs when runtime libs are static
15338 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
15340 # Whether or not to optimize for fast installation.
15341 fast_install=$enable_fast_install
15343 # The host system.
15344 host_alias=$host_alias
15345 host=$host
15346 host_os=$host_os
15348 # The build system.
15349 build_alias=$build_alias
15350 build=$build
15351 build_os=$build_os
15353 # An echo program that does not interpret backslashes.
15354 echo=$lt_echo
15356 # The archiver.
15357 AR=$lt_AR
15358 AR_FLAGS=$lt_AR_FLAGS
15360 # A C compiler.
15361 LTCC=$lt_LTCC
15363 # LTCC compiler flags.
15364 LTCFLAGS=$lt_LTCFLAGS
15366 # A language-specific compiler.
15367 CC=$lt_compiler_RC
15369 # Is the compiler the GNU C compiler?
15370 with_gcc=$GCC_RC
15372 # An ERE matcher.
15373 EGREP=$lt_EGREP
15375 # The linker used to build libraries.
15376 LD=$lt_LD_RC
15378 # Whether we need hard or soft links.
15379 LN_S=$lt_LN_S
15381 # A BSD-compatible nm program.
15382 NM=$lt_NM
15384 # A symbol stripping program
15385 STRIP=$lt_STRIP
15387 # Used to examine libraries when file_magic_cmd begins "file"
15388 MAGIC_CMD=$MAGIC_CMD
15390 # Used on cygwin: DLL creation program.
15391 DLLTOOL="$DLLTOOL"
15393 # Used on cygwin: object dumper.
15394 OBJDUMP="$OBJDUMP"
15396 # Used on cygwin: assembler.
15397 AS="$AS"
15399 # The name of the directory that contains temporary libtool files.
15400 objdir=$objdir
15402 # How to create reloadable object files.
15403 reload_flag=$lt_reload_flag
15404 reload_cmds=$lt_reload_cmds
15406 # How to pass a linker flag through the compiler.
15407 wl=$lt_lt_prog_compiler_wl_RC
15409 # Object file suffix (normally "o").
15410 objext="$ac_objext"
15412 # Old archive suffix (normally "a").
15413 libext="$libext"
15415 # Shared library suffix (normally ".so").
15416 shrext_cmds='$shrext_cmds'
15418 # Executable file suffix (normally "").
15419 exeext="$exeext"
15421 # Additional compiler flags for building library objects.
15422 pic_flag=$lt_lt_prog_compiler_pic_RC
15423 pic_mode=$pic_mode
15425 # What is the maximum length of a command?
15426 max_cmd_len=$lt_cv_sys_max_cmd_len
15428 # Does compiler simultaneously support -c and -o options?
15429 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
15431 # Must we lock files when doing compilation?
15432 need_locks=$lt_need_locks
15434 # Do we need the lib prefix for modules?
15435 need_lib_prefix=$need_lib_prefix
15437 # Do we need a version for libraries?
15438 need_version=$need_version
15440 # Whether dlopen is supported.
15441 dlopen_support=$enable_dlopen
15443 # Whether dlopen of programs is supported.
15444 dlopen_self=$enable_dlopen_self
15446 # Whether dlopen of statically linked programs is supported.
15447 dlopen_self_static=$enable_dlopen_self_static
15449 # Compiler flag to prevent dynamic linking.
15450 link_static_flag=$lt_lt_prog_compiler_static_RC
15452 # Compiler flag to turn off builtin functions.
15453 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
15455 # Compiler flag to allow reflexive dlopens.
15456 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
15458 # Compiler flag to generate shared objects directly from archives.
15459 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
15461 # Compiler flag to generate thread-safe objects.
15462 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
15464 # Library versioning type.
15465 version_type=$version_type
15467 # Format of library name prefix.
15468 libname_spec=$lt_libname_spec
15470 # List of archive names. First name is the real one, the rest are links.
15471 # The last name is the one that the linker finds with -lNAME.
15472 library_names_spec=$lt_library_names_spec
15474 # The coded name of the library, if different from the real name.
15475 soname_spec=$lt_soname_spec
15477 # Commands used to build and install an old-style archive.
15478 RANLIB=$lt_RANLIB
15479 old_archive_cmds=$lt_old_archive_cmds_RC
15480 old_postinstall_cmds=$lt_old_postinstall_cmds
15481 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15483 # Create an old-style archive from a shared archive.
15484 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
15486 # Create a temporary old-style archive to link instead of a shared archive.
15487 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
15489 # Commands used to build and install a shared archive.
15490 archive_cmds=$lt_archive_cmds_RC
15491 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
15492 postinstall_cmds=$lt_postinstall_cmds
15493 postuninstall_cmds=$lt_postuninstall_cmds
15495 # Commands used to build a loadable module (assumed same as above if empty)
15496 module_cmds=$lt_module_cmds_RC
15497 module_expsym_cmds=$lt_module_expsym_cmds_RC
15499 # Commands to strip libraries.
15500 old_striplib=$lt_old_striplib
15501 striplib=$lt_striplib
15503 # Dependencies to place before the objects being linked to create a
15504 # shared library.
15505 predep_objects=$lt_predep_objects_RC
15507 # Dependencies to place after the objects being linked to create a
15508 # shared library.
15509 postdep_objects=$lt_postdep_objects_RC
15511 # Dependencies to place before the objects being linked to create a
15512 # shared library.
15513 predeps=$lt_predeps_RC
15515 # Dependencies to place after the objects being linked to create a
15516 # shared library.
15517 postdeps=$lt_postdeps_RC
15519 # The library search path used internally by the compiler when linking
15520 # a shared library.
15521 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
15523 # Method to check whether dependent libraries are shared objects.
15524 deplibs_check_method=$lt_deplibs_check_method
15526 # Command to use when deplibs_check_method == file_magic.
15527 file_magic_cmd=$lt_file_magic_cmd
15529 # Flag that allows shared libraries with undefined symbols to be built.
15530 allow_undefined_flag=$lt_allow_undefined_flag_RC
15532 # Flag that forces no undefined symbols.
15533 no_undefined_flag=$lt_no_undefined_flag_RC
15535 # Commands used to finish a libtool library installation in a directory.
15536 finish_cmds=$lt_finish_cmds
15538 # Same as above, but a single script fragment to be evaled but not shown.
15539 finish_eval=$lt_finish_eval
15541 # Take the output of nm and produce a listing of raw symbols and C names.
15542 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15544 # Transform the output of nm in a proper C declaration
15545 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15547 # Transform the output of nm in a C name address pair
15548 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15550 # This is the shared library runtime path variable.
15551 runpath_var=$runpath_var
15553 # This is the shared library path variable.
15554 shlibpath_var=$shlibpath_var
15556 # Is shlibpath searched before the hard-coded library search path?
15557 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15559 # How to hardcode a shared library path into an executable.
15560 hardcode_action=$hardcode_action_RC
15562 # Whether we should hardcode library paths into libraries.
15563 hardcode_into_libs=$hardcode_into_libs
15565 # Flag to hardcode \$libdir into a binary during linking.
15566 # This must work even if \$libdir does not exist.
15567 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
15569 # If ld is used when linking, flag to hardcode \$libdir into
15570 # a binary during linking. This must work even if \$libdir does
15571 # not exist.
15572 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
15574 # Whether we need a single -rpath flag with a separated argument.
15575 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
15577 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15578 # resulting binary.
15579 hardcode_direct=$hardcode_direct_RC
15581 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15582 # resulting binary.
15583 hardcode_minus_L=$hardcode_minus_L_RC
15585 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15586 # the resulting binary.
15587 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
15589 # Set to yes if building a shared library automatically hardcodes DIR into the library
15590 # and all subsequent libraries and executables linked against it.
15591 hardcode_automatic=$hardcode_automatic_RC
15593 # Variables whose values should be saved in libtool wrapper scripts and
15594 # restored at relink time.
15595 variables_saved_for_relink="$variables_saved_for_relink"
15597 # Whether libtool must link a program against all its dependency libraries.
15598 link_all_deplibs=$link_all_deplibs_RC
15600 # Compile-time system search path for libraries
15601 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15603 # Run-time system search path for libraries
15604 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15606 # Fix the shell variable \$srcfile for the compiler.
15607 fix_srcfile_path="$fix_srcfile_path_RC"
15609 # Set to yes if exported symbols are required.
15610 always_export_symbols=$always_export_symbols_RC
15612 # The commands to list exported symbols.
15613 export_symbols_cmds=$lt_export_symbols_cmds_RC
15615 # The commands to extract the exported symbol list from a shared archive.
15616 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15618 # Symbols that should not be listed in the preloaded symbols.
15619 exclude_expsyms=$lt_exclude_expsyms_RC
15621 # Symbols that must always be exported.
15622 include_expsyms=$lt_include_expsyms_RC
15624 # ### END LIBTOOL TAG CONFIG: $tagname
15626 __EOF__
15629 else
15630 # If there is no Makefile yet, we rely on a make rule to execute
15631 # `config.status --recheck' to rerun these tests and create the
15632 # libtool script then.
15633 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15634 if test -f "$ltmain_in"; then
15635 test -f Makefile && make "$ltmain"
15636 fi
15637 fi
15640 ac_ext=c
15641 ac_cpp='$CPP $CPPFLAGS'
15642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15646 CC="$lt_save_CC"
15648 ;;
15650 *)
15651 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
15652 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
15653 { (exit 1); exit 1; }; }
15654 ;;
15655 esac
15657 # Append the new tag name to the list of available tags.
15658 if test -n "$tagname" ; then
15659 available_tags="$available_tags $tagname"
15660 fi
15661 fi
15662 done
15663 IFS="$lt_save_ifs"
15665 # Now substitute the updated list of available tags.
15666 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
15667 mv "${ofile}T" "$ofile"
15668 chmod +x "$ofile"
15669 else
15670 rm -f "${ofile}T"
15671 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
15672 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
15673 { (exit 1); exit 1; }; }
15674 fi
15675 fi
15679 # This can be used to rebuild libtool when needed
15680 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
15682 # Always use our own libtool.
15683 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15685 # Prevent multiple expansion
15702 # Check common src files to ensure integrity of the package
15705 # Checks for programs.
15706 ac_ext=c
15707 ac_cpp='$CPP $CPPFLAGS'
15708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15711 if test -n "$ac_tool_prefix"; then
15712 for ac_prog in gcc
15713 do
15714 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15715 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15716 echo "$as_me:$LINENO: checking for $ac_word" >&5
15717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15718 if test "${ac_cv_prog_CC+set}" = set; then
15719 echo $ECHO_N "(cached) $ECHO_C" >&6
15720 else
15721 if test -n "$CC"; then
15722 ac_cv_prog_CC="$CC" # Let the user override the test.
15723 else
15724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15725 for as_dir in $PATH
15726 do
15727 IFS=$as_save_IFS
15728 test -z "$as_dir" && as_dir=.
15729 for ac_exec_ext in '' $ac_executable_extensions; do
15730 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15731 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
15732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15733 break 2
15734 fi
15735 done
15736 done
15738 fi
15739 fi
15740 CC=$ac_cv_prog_CC
15741 if test -n "$CC"; then
15742 echo "$as_me:$LINENO: result: $CC" >&5
15743 echo "${ECHO_T}$CC" >&6
15744 else
15745 echo "$as_me:$LINENO: result: no" >&5
15746 echo "${ECHO_T}no" >&6
15747 fi
15749 test -n "$CC" && break
15750 done
15751 fi
15752 if test -z "$CC"; then
15753 ac_ct_CC=$CC
15754 for ac_prog in gcc
15755 do
15756 # Extract the first word of "$ac_prog", so it can be a program name with args.
15757 set dummy $ac_prog; ac_word=$2
15758 echo "$as_me:$LINENO: checking for $ac_word" >&5
15759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15760 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
15761 echo $ECHO_N "(cached) $ECHO_C" >&6
15762 else
15763 if test -n "$ac_ct_CC"; then
15764 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
15765 else
15766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15767 for as_dir in $PATH
15768 do
15769 IFS=$as_save_IFS
15770 test -z "$as_dir" && as_dir=.
15771 for ac_exec_ext in '' $ac_executable_extensions; do
15772 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15773 ac_cv_prog_ac_ct_CC="$ac_prog"
15774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15775 break 2
15776 fi
15777 done
15778 done
15780 fi
15781 fi
15782 ac_ct_CC=$ac_cv_prog_ac_ct_CC
15783 if test -n "$ac_ct_CC"; then
15784 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
15785 echo "${ECHO_T}$ac_ct_CC" >&6
15786 else
15787 echo "$as_me:$LINENO: result: no" >&5
15788 echo "${ECHO_T}no" >&6
15789 fi
15791 test -n "$ac_ct_CC" && break
15792 done
15794 CC=$ac_ct_CC
15795 fi
15798 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
15799 See \`config.log' for more details." >&5
15800 echo "$as_me: error: no acceptable C compiler found in \$PATH
15801 See \`config.log' for more details." >&2;}
15802 { (exit 1); exit 1; }; }
15804 # Provide some information about the compiler.
15805 echo "$as_me:$LINENO:" \
15806 "checking for C compiler version" >&5
15807 ac_compiler=`set X $ac_compile; echo $2`
15808 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
15809 (eval $ac_compiler --version </dev/null >&5) 2>&5
15810 ac_status=$?
15811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15812 (exit $ac_status); }
15813 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
15814 (eval $ac_compiler -v </dev/null >&5) 2>&5
15815 ac_status=$?
15816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15817 (exit $ac_status); }
15818 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
15819 (eval $ac_compiler -V </dev/null >&5) 2>&5
15820 ac_status=$?
15821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15822 (exit $ac_status); }
15824 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
15825 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
15826 if test "${ac_cv_c_compiler_gnu+set}" = set; then
15827 echo $ECHO_N "(cached) $ECHO_C" >&6
15828 else
15829 cat >conftest.$ac_ext <<_ACEOF
15830 /* confdefs.h. */
15831 _ACEOF
15832 cat confdefs.h >>conftest.$ac_ext
15833 cat >>conftest.$ac_ext <<_ACEOF
15834 /* end confdefs.h. */
15836 int
15837 main ()
15838 {
15839 #ifndef __GNUC__
15840 choke me
15841 #endif
15843 ;
15844 return 0;
15845 }
15846 _ACEOF
15847 rm -f conftest.$ac_objext
15848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15849 (eval $ac_compile) 2>conftest.er1
15850 ac_status=$?
15851 grep -v '^ *+' conftest.er1 >conftest.err
15852 rm -f conftest.er1
15853 cat conftest.err >&5
15854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15855 (exit $ac_status); } &&
15856 { ac_try='test -z "$ac_c_werror_flag"
15857 || test ! -s conftest.err'
15858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15859 (eval $ac_try) 2>&5
15860 ac_status=$?
15861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15862 (exit $ac_status); }; } &&
15863 { ac_try='test -s conftest.$ac_objext'
15864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15865 (eval $ac_try) 2>&5
15866 ac_status=$?
15867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15868 (exit $ac_status); }; }; then
15869 ac_compiler_gnu=yes
15870 else
15871 echo "$as_me: failed program was:" >&5
15872 sed 's/^/| /' conftest.$ac_ext >&5
15874 ac_compiler_gnu=no
15875 fi
15876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15877 ac_cv_c_compiler_gnu=$ac_compiler_gnu
15879 fi
15880 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
15881 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
15882 GCC=`test $ac_compiler_gnu = yes && echo yes`
15883 ac_test_CFLAGS=${CFLAGS+set}
15884 ac_save_CFLAGS=$CFLAGS
15885 CFLAGS="-g"
15886 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
15887 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
15888 if test "${ac_cv_prog_cc_g+set}" = set; then
15889 echo $ECHO_N "(cached) $ECHO_C" >&6
15890 else
15891 cat >conftest.$ac_ext <<_ACEOF
15892 /* confdefs.h. */
15893 _ACEOF
15894 cat confdefs.h >>conftest.$ac_ext
15895 cat >>conftest.$ac_ext <<_ACEOF
15896 /* end confdefs.h. */
15898 int
15899 main ()
15900 {
15902 ;
15903 return 0;
15904 }
15905 _ACEOF
15906 rm -f conftest.$ac_objext
15907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15908 (eval $ac_compile) 2>conftest.er1
15909 ac_status=$?
15910 grep -v '^ *+' conftest.er1 >conftest.err
15911 rm -f conftest.er1
15912 cat conftest.err >&5
15913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15914 (exit $ac_status); } &&
15915 { ac_try='test -z "$ac_c_werror_flag"
15916 || test ! -s conftest.err'
15917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15918 (eval $ac_try) 2>&5
15919 ac_status=$?
15920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15921 (exit $ac_status); }; } &&
15922 { ac_try='test -s conftest.$ac_objext'
15923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15924 (eval $ac_try) 2>&5
15925 ac_status=$?
15926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15927 (exit $ac_status); }; }; then
15928 ac_cv_prog_cc_g=yes
15929 else
15930 echo "$as_me: failed program was:" >&5
15931 sed 's/^/| /' conftest.$ac_ext >&5
15933 ac_cv_prog_cc_g=no
15934 fi
15935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15936 fi
15937 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
15938 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
15939 if test "$ac_test_CFLAGS" = set; then
15940 CFLAGS=$ac_save_CFLAGS
15941 elif test $ac_cv_prog_cc_g = yes; then
15942 if test "$GCC" = yes; then
15943 CFLAGS="-g -O2"
15944 else
15945 CFLAGS="-g"
15946 fi
15947 else
15948 if test "$GCC" = yes; then
15949 CFLAGS="-O2"
15950 else
15951 CFLAGS=
15952 fi
15953 fi
15954 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
15955 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
15956 if test "${ac_cv_prog_cc_stdc+set}" = set; then
15957 echo $ECHO_N "(cached) $ECHO_C" >&6
15958 else
15959 ac_cv_prog_cc_stdc=no
15960 ac_save_CC=$CC
15961 cat >conftest.$ac_ext <<_ACEOF
15962 /* confdefs.h. */
15963 _ACEOF
15964 cat confdefs.h >>conftest.$ac_ext
15965 cat >>conftest.$ac_ext <<_ACEOF
15966 /* end confdefs.h. */
15967 #include <stdarg.h>
15968 #include <stdio.h>
15969 #include <sys/types.h>
15970 #include <sys/stat.h>
15971 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
15972 struct buf { int x; };
15973 FILE * (*rcsopen) (struct buf *, struct stat *, int);
15974 static char *e (p, i)
15975 char **p;
15976 int i;
15977 {
15978 return p[i];
15979 }
15980 static char *f (char * (*g) (char **, int), char **p, ...)
15981 {
15982 char *s;
15983 va_list v;
15984 va_start (v,p);
15985 s = g (p, va_arg (v,int));
15986 va_end (v);
15987 return s;
15988 }
15990 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
15991 function prototypes and stuff, but not '\xHH' hex character constants.
15992 These don't provoke an error unfortunately, instead are silently treated
15993 as 'x'. The following induces an error, until -std1 is added to get
15994 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
15995 array size at least. It's necessary to write '\x00'==0 to get something
15996 that's true only with -std1. */
15997 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
15999 int test (int i, double x);
16000 struct s1 {int (*f) (int a);};
16001 struct s2 {int (*f) (double a);};
16002 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
16003 int argc;
16004 char **argv;
16005 int
16006 main ()
16007 {
16008 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
16009 ;
16010 return 0;
16011 }
16012 _ACEOF
16013 # Don't try gcc -ansi; that turns off useful extensions and
16014 # breaks some systems' header files.
16015 # AIX -qlanglvl=ansi
16016 # Ultrix and OSF/1 -std1
16017 # HP-UX 10.20 and later -Ae
16018 # HP-UX older versions -Aa -D_HPUX_SOURCE
16019 # SVR4 -Xc -D__EXTENSIONS__
16020 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
16021 do
16022 CC="$ac_save_CC $ac_arg"
16023 rm -f conftest.$ac_objext
16024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16025 (eval $ac_compile) 2>conftest.er1
16026 ac_status=$?
16027 grep -v '^ *+' conftest.er1 >conftest.err
16028 rm -f conftest.er1
16029 cat conftest.err >&5
16030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16031 (exit $ac_status); } &&
16032 { ac_try='test -z "$ac_c_werror_flag"
16033 || test ! -s conftest.err'
16034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16035 (eval $ac_try) 2>&5
16036 ac_status=$?
16037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16038 (exit $ac_status); }; } &&
16039 { ac_try='test -s conftest.$ac_objext'
16040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16041 (eval $ac_try) 2>&5
16042 ac_status=$?
16043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16044 (exit $ac_status); }; }; then
16045 ac_cv_prog_cc_stdc=$ac_arg
16046 break
16047 else
16048 echo "$as_me: failed program was:" >&5
16049 sed 's/^/| /' conftest.$ac_ext >&5
16051 fi
16052 rm -f conftest.err conftest.$ac_objext
16053 done
16054 rm -f conftest.$ac_ext conftest.$ac_objext
16055 CC=$ac_save_CC
16057 fi
16059 case "x$ac_cv_prog_cc_stdc" in
16060 x|xno)
16061 echo "$as_me:$LINENO: result: none needed" >&5
16062 echo "${ECHO_T}none needed" >&6 ;;
16063 *)
16064 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
16065 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
16066 CC="$CC $ac_cv_prog_cc_stdc" ;;
16067 esac
16069 # Some people use a C++ compiler to compile C. Since we use `exit',
16070 # in C++ we need to declare it. In case someone uses the same compiler
16071 # for both compiling C and C++ we need to have the C++ compiler decide
16072 # the declaration of exit, since it's the most demanding environment.
16073 cat >conftest.$ac_ext <<_ACEOF
16074 #ifndef __cplusplus
16075 choke me
16076 #endif
16077 _ACEOF
16078 rm -f conftest.$ac_objext
16079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16080 (eval $ac_compile) 2>conftest.er1
16081 ac_status=$?
16082 grep -v '^ *+' conftest.er1 >conftest.err
16083 rm -f conftest.er1
16084 cat conftest.err >&5
16085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16086 (exit $ac_status); } &&
16087 { ac_try='test -z "$ac_c_werror_flag"
16088 || test ! -s conftest.err'
16089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16090 (eval $ac_try) 2>&5
16091 ac_status=$?
16092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16093 (exit $ac_status); }; } &&
16094 { ac_try='test -s conftest.$ac_objext'
16095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16096 (eval $ac_try) 2>&5
16097 ac_status=$?
16098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16099 (exit $ac_status); }; }; then
16100 for ac_declaration in \
16101 '' \
16102 'extern "C" void std::exit (int) throw (); using std::exit;' \
16103 'extern "C" void std::exit (int); using std::exit;' \
16104 'extern "C" void exit (int) throw ();' \
16105 'extern "C" void exit (int);' \
16106 'void exit (int);'
16107 do
16108 cat >conftest.$ac_ext <<_ACEOF
16109 /* confdefs.h. */
16110 _ACEOF
16111 cat confdefs.h >>conftest.$ac_ext
16112 cat >>conftest.$ac_ext <<_ACEOF
16113 /* end confdefs.h. */
16114 $ac_declaration
16115 #include <stdlib.h>
16116 int
16117 main ()
16118 {
16119 exit (42);
16120 ;
16121 return 0;
16122 }
16123 _ACEOF
16124 rm -f conftest.$ac_objext
16125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16126 (eval $ac_compile) 2>conftest.er1
16127 ac_status=$?
16128 grep -v '^ *+' conftest.er1 >conftest.err
16129 rm -f conftest.er1
16130 cat conftest.err >&5
16131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16132 (exit $ac_status); } &&
16133 { ac_try='test -z "$ac_c_werror_flag"
16134 || test ! -s conftest.err'
16135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16136 (eval $ac_try) 2>&5
16137 ac_status=$?
16138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16139 (exit $ac_status); }; } &&
16140 { ac_try='test -s conftest.$ac_objext'
16141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16142 (eval $ac_try) 2>&5
16143 ac_status=$?
16144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16145 (exit $ac_status); }; }; then
16146 :
16147 else
16148 echo "$as_me: failed program was:" >&5
16149 sed 's/^/| /' conftest.$ac_ext >&5
16151 continue
16152 fi
16153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16154 cat >conftest.$ac_ext <<_ACEOF
16155 /* confdefs.h. */
16156 _ACEOF
16157 cat confdefs.h >>conftest.$ac_ext
16158 cat >>conftest.$ac_ext <<_ACEOF
16159 /* end confdefs.h. */
16160 $ac_declaration
16161 int
16162 main ()
16163 {
16164 exit (42);
16165 ;
16166 return 0;
16167 }
16168 _ACEOF
16169 rm -f conftest.$ac_objext
16170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16171 (eval $ac_compile) 2>conftest.er1
16172 ac_status=$?
16173 grep -v '^ *+' conftest.er1 >conftest.err
16174 rm -f conftest.er1
16175 cat conftest.err >&5
16176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16177 (exit $ac_status); } &&
16178 { ac_try='test -z "$ac_c_werror_flag"
16179 || test ! -s conftest.err'
16180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16181 (eval $ac_try) 2>&5
16182 ac_status=$?
16183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16184 (exit $ac_status); }; } &&
16185 { ac_try='test -s conftest.$ac_objext'
16186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16187 (eval $ac_try) 2>&5
16188 ac_status=$?
16189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16190 (exit $ac_status); }; }; then
16191 break
16192 else
16193 echo "$as_me: failed program was:" >&5
16194 sed 's/^/| /' conftest.$ac_ext >&5
16196 fi
16197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16198 done
16199 rm -f conftest*
16200 if test -n "$ac_declaration"; then
16201 echo '#ifdef __cplusplus' >>confdefs.h
16202 echo $ac_declaration >>confdefs.h
16203 echo '#endif' >>confdefs.h
16204 fi
16206 else
16207 echo "$as_me: failed program was:" >&5
16208 sed 's/^/| /' conftest.$ac_ext >&5
16210 fi
16211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16212 ac_ext=c
16213 ac_cpp='$CPP $CPPFLAGS'
16214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16218 depcc="$CC" am_compiler_list=
16220 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
16221 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
16222 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
16223 echo $ECHO_N "(cached) $ECHO_C" >&6
16224 else
16225 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16226 # We make a subdir and do the tests there. Otherwise we can end up
16227 # making bogus files that we don't know about and never remove. For
16228 # instance it was reported that on HP-UX the gcc test will end up
16229 # making a dummy file named `D' -- because `-MD' means `put the output
16230 # in D'.
16231 mkdir conftest.dir
16232 # Copy depcomp to subdir because otherwise we won't find it if we're
16233 # using a relative directory.
16234 cp "$am_depcomp" conftest.dir
16235 cd conftest.dir
16236 # We will build objects and dependencies in a subdirectory because
16237 # it helps to detect inapplicable dependency modes. For instance
16238 # both Tru64's cc and ICC support -MD to output dependencies as a
16239 # side effect of compilation, but ICC will put the dependencies in
16240 # the current directory while Tru64 will put them in the object
16241 # directory.
16242 mkdir sub
16244 am_cv_CC_dependencies_compiler_type=none
16245 if test "$am_compiler_list" = ""; then
16246 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16247 fi
16248 for depmode in $am_compiler_list; do
16249 # Setup a source with many dependencies, because some compilers
16250 # like to wrap large dependency lists on column 80 (with \), and
16251 # we should not choose a depcomp mode which is confused by this.
16252 #
16253 # We need to recreate these files for each test, as the compiler may
16254 # overwrite some of them when testing with obscure command lines.
16255 # This happens at least with the AIX C compiler.
16256 : > sub/conftest.c
16257 for i in 1 2 3 4 5 6; do
16258 echo '#include "conftst'$i'.h"' >> sub/conftest.c
16259 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
16260 # Solaris 8's {/usr,}/bin/sh.
16261 touch sub/conftst$i.h
16262 done
16263 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16265 case $depmode in
16266 nosideeffect)
16267 # after this tag, mechanisms are not by side-effect, so they'll
16268 # only be used when explicitly requested
16269 if test "x$enable_dependency_tracking" = xyes; then
16270 continue
16271 else
16272 break
16273 fi
16274 ;;
16275 none) break ;;
16276 esac
16277 # We check with `-c' and `-o' for the sake of the "dashmstdout"
16278 # mode. It turns out that the SunPro C++ compiler does not properly
16279 # handle `-M -o', and we need to detect this.
16280 if depmode=$depmode \
16281 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
16282 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
16283 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
16284 >/dev/null 2>conftest.err &&
16285 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
16286 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
16287 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16288 # icc doesn't choke on unknown options, it will just issue warnings
16289 # or remarks (even with -Werror). So we grep stderr for any message
16290 # that says an option was ignored or not supported.
16291 # When given -MP, icc 7.0 and 7.1 complain thusly:
16292 # icc: Command line warning: ignoring option '-M'; no argument required
16293 # The diagnosis changed in icc 8.0:
16294 # icc: Command line remark: option '-MP' not supported
16295 if (grep 'ignoring option' conftest.err ||
16296 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
16297 am_cv_CC_dependencies_compiler_type=$depmode
16298 break
16299 fi
16300 fi
16301 done
16303 cd ..
16304 rm -rf conftest.dir
16305 else
16306 am_cv_CC_dependencies_compiler_type=none
16307 fi
16309 fi
16310 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
16311 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
16312 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
16316 if
16317 test "x$enable_dependency_tracking" != xno \
16318 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
16319 am__fastdepCC_TRUE=
16320 am__fastdepCC_FALSE='#'
16321 else
16322 am__fastdepCC_TRUE='#'
16323 am__fastdepCC_FALSE=
16324 fi
16327 # Find a good install program. We prefer a C program (faster),
16328 # so one script is as good as another. But avoid the broken or
16329 # incompatible versions:
16330 # SysV /etc/install, /usr/sbin/install
16331 # SunOS /usr/etc/install
16332 # IRIX /sbin/install
16333 # AIX /bin/install
16334 # AmigaOS /C/install, which installs bootblocks on floppy discs
16335 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
16336 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
16337 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
16338 # OS/2's system install, which has a completely different semantic
16339 # ./install, which can be erroneously created by make from ./install.sh.
16340 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
16341 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
16342 if test -z "$INSTALL"; then
16343 if test "${ac_cv_path_install+set}" = set; then
16344 echo $ECHO_N "(cached) $ECHO_C" >&6
16345 else
16346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16347 for as_dir in $PATH
16348 do
16349 IFS=$as_save_IFS
16350 test -z "$as_dir" && as_dir=.
16351 # Account for people who put trailing slashes in PATH elements.
16352 case $as_dir/ in
16353 ./ | .// | /cC/* | \
16354 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
16355 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
16356 /usr/ucb/* ) ;;
16357 *)
16358 # OSF1 and SCO ODT 3.0 have their own names for install.
16359 # Don't use installbsd from OSF since it installs stuff as root
16360 # by default.
16361 for ac_prog in ginstall scoinst install; do
16362 for ac_exec_ext in '' $ac_executable_extensions; do
16363 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
16364 if test $ac_prog = install &&
16365 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
16366 # AIX install. It has an incompatible calling convention.
16367 :
16368 elif test $ac_prog = install &&
16369 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
16370 # program-specific install script used by HP pwplus--don't use.
16371 :
16372 else
16373 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
16374 break 3
16375 fi
16376 fi
16377 done
16378 done
16379 ;;
16380 esac
16381 done
16384 fi
16385 if test "${ac_cv_path_install+set}" = set; then
16386 INSTALL=$ac_cv_path_install
16387 else
16388 # As a last resort, use the slow shell script. We don't cache a
16389 # path for INSTALL within a source directory, because that will
16390 # break other packages using the cache if that directory is
16391 # removed, or if the path is relative.
16392 INSTALL=$ac_install_sh
16393 fi
16394 fi
16395 echo "$as_me:$LINENO: result: $INSTALL" >&5
16396 echo "${ECHO_T}$INSTALL" >&6
16398 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
16399 # It thinks the first close brace ends the variable substitution.
16400 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
16402 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
16404 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
16407 # Checks for header files.
16408 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
16409 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
16410 if test "${ac_cv_header_stdc+set}" = set; then
16411 echo $ECHO_N "(cached) $ECHO_C" >&6
16412 else
16413 cat >conftest.$ac_ext <<_ACEOF
16414 /* confdefs.h. */
16415 _ACEOF
16416 cat confdefs.h >>conftest.$ac_ext
16417 cat >>conftest.$ac_ext <<_ACEOF
16418 /* end confdefs.h. */
16419 #include <stdlib.h>
16420 #include <stdarg.h>
16421 #include <string.h>
16422 #include <float.h>
16424 int
16425 main ()
16426 {
16428 ;
16429 return 0;
16430 }
16431 _ACEOF
16432 rm -f conftest.$ac_objext
16433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16434 (eval $ac_compile) 2>conftest.er1
16435 ac_status=$?
16436 grep -v '^ *+' conftest.er1 >conftest.err
16437 rm -f conftest.er1
16438 cat conftest.err >&5
16439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16440 (exit $ac_status); } &&
16441 { ac_try='test -z "$ac_c_werror_flag"
16442 || test ! -s conftest.err'
16443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16444 (eval $ac_try) 2>&5
16445 ac_status=$?
16446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16447 (exit $ac_status); }; } &&
16448 { ac_try='test -s conftest.$ac_objext'
16449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16450 (eval $ac_try) 2>&5
16451 ac_status=$?
16452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16453 (exit $ac_status); }; }; then
16454 ac_cv_header_stdc=yes
16455 else
16456 echo "$as_me: failed program was:" >&5
16457 sed 's/^/| /' conftest.$ac_ext >&5
16459 ac_cv_header_stdc=no
16460 fi
16461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16463 if test $ac_cv_header_stdc = yes; then
16464 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16465 cat >conftest.$ac_ext <<_ACEOF
16466 /* confdefs.h. */
16467 _ACEOF
16468 cat confdefs.h >>conftest.$ac_ext
16469 cat >>conftest.$ac_ext <<_ACEOF
16470 /* end confdefs.h. */
16471 #include <string.h>
16473 _ACEOF
16474 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16475 $EGREP "memchr" >/dev/null 2>&1; then
16476 :
16477 else
16478 ac_cv_header_stdc=no
16479 fi
16480 rm -f conftest*
16482 fi
16484 if test $ac_cv_header_stdc = yes; then
16485 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16486 cat >conftest.$ac_ext <<_ACEOF
16487 /* confdefs.h. */
16488 _ACEOF
16489 cat confdefs.h >>conftest.$ac_ext
16490 cat >>conftest.$ac_ext <<_ACEOF
16491 /* end confdefs.h. */
16492 #include <stdlib.h>
16494 _ACEOF
16495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16496 $EGREP "free" >/dev/null 2>&1; then
16497 :
16498 else
16499 ac_cv_header_stdc=no
16500 fi
16501 rm -f conftest*
16503 fi
16505 if test $ac_cv_header_stdc = yes; then
16506 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16507 if test "$cross_compiling" = yes; then
16508 :
16509 else
16510 cat >conftest.$ac_ext <<_ACEOF
16511 /* confdefs.h. */
16512 _ACEOF
16513 cat confdefs.h >>conftest.$ac_ext
16514 cat >>conftest.$ac_ext <<_ACEOF
16515 /* end confdefs.h. */
16516 #include <ctype.h>
16517 #if ((' ' & 0x0FF) == 0x020)
16518 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16519 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16520 #else
16521 # define ISLOWER(c) \
16522 (('a' <= (c) && (c) <= 'i') \
16523 || ('j' <= (c) && (c) <= 'r') \
16524 || ('s' <= (c) && (c) <= 'z'))
16525 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16526 #endif
16528 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16529 int
16530 main ()
16531 {
16532 int i;
16533 for (i = 0; i < 256; i++)
16534 if (XOR (islower (i), ISLOWER (i))
16535 || toupper (i) != TOUPPER (i))
16536 exit(2);
16537 exit (0);
16538 }
16539 _ACEOF
16540 rm -f conftest$ac_exeext
16541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16542 (eval $ac_link) 2>&5
16543 ac_status=$?
16544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16545 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16547 (eval $ac_try) 2>&5
16548 ac_status=$?
16549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16550 (exit $ac_status); }; }; then
16551 :
16552 else
16553 echo "$as_me: program exited with status $ac_status" >&5
16554 echo "$as_me: failed program was:" >&5
16555 sed 's/^/| /' conftest.$ac_ext >&5
16557 ( exit $ac_status )
16558 ac_cv_header_stdc=no
16559 fi
16560 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16561 fi
16562 fi
16563 fi
16564 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
16565 echo "${ECHO_T}$ac_cv_header_stdc" >&6
16566 if test $ac_cv_header_stdc = yes; then
16568 cat >>confdefs.h <<\_ACEOF
16569 #define STDC_HEADERS 1
16570 _ACEOF
16572 fi
16581 for ac_header in fcntl.h stdlib.h string.h sys/param.h sys/socket.h sys/time.h unistd.h
16582 do
16583 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16584 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16585 echo "$as_me:$LINENO: checking for $ac_header" >&5
16586 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16587 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16588 echo $ECHO_N "(cached) $ECHO_C" >&6
16589 fi
16590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16591 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16592 else
16593 # Is the header compilable?
16594 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16595 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16596 cat >conftest.$ac_ext <<_ACEOF
16597 /* confdefs.h. */
16598 _ACEOF
16599 cat confdefs.h >>conftest.$ac_ext
16600 cat >>conftest.$ac_ext <<_ACEOF
16601 /* end confdefs.h. */
16602 $ac_includes_default
16603 #include <$ac_header>
16604 _ACEOF
16605 rm -f conftest.$ac_objext
16606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16607 (eval $ac_compile) 2>conftest.er1
16608 ac_status=$?
16609 grep -v '^ *+' conftest.er1 >conftest.err
16610 rm -f conftest.er1
16611 cat conftest.err >&5
16612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16613 (exit $ac_status); } &&
16614 { ac_try='test -z "$ac_c_werror_flag"
16615 || test ! -s conftest.err'
16616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16617 (eval $ac_try) 2>&5
16618 ac_status=$?
16619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16620 (exit $ac_status); }; } &&
16621 { ac_try='test -s conftest.$ac_objext'
16622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16623 (eval $ac_try) 2>&5
16624 ac_status=$?
16625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16626 (exit $ac_status); }; }; then
16627 ac_header_compiler=yes
16628 else
16629 echo "$as_me: failed program was:" >&5
16630 sed 's/^/| /' conftest.$ac_ext >&5
16632 ac_header_compiler=no
16633 fi
16634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16635 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16636 echo "${ECHO_T}$ac_header_compiler" >&6
16638 # Is the header present?
16639 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16640 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16641 cat >conftest.$ac_ext <<_ACEOF
16642 /* confdefs.h. */
16643 _ACEOF
16644 cat confdefs.h >>conftest.$ac_ext
16645 cat >>conftest.$ac_ext <<_ACEOF
16646 /* end confdefs.h. */
16647 #include <$ac_header>
16648 _ACEOF
16649 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16650 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16651 ac_status=$?
16652 grep -v '^ *+' conftest.er1 >conftest.err
16653 rm -f conftest.er1
16654 cat conftest.err >&5
16655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16656 (exit $ac_status); } >/dev/null; then
16657 if test -s conftest.err; then
16658 ac_cpp_err=$ac_c_preproc_warn_flag
16659 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16660 else
16661 ac_cpp_err=
16662 fi
16663 else
16664 ac_cpp_err=yes
16665 fi
16666 if test -z "$ac_cpp_err"; then
16667 ac_header_preproc=yes
16668 else
16669 echo "$as_me: failed program was:" >&5
16670 sed 's/^/| /' conftest.$ac_ext >&5
16672 ac_header_preproc=no
16673 fi
16674 rm -f conftest.err conftest.$ac_ext
16675 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16676 echo "${ECHO_T}$ac_header_preproc" >&6
16678 # So? What about this header?
16679 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16680 yes:no: )
16681 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16682 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16684 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16685 ac_header_preproc=yes
16686 ;;
16687 no:yes:* )
16688 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16689 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16690 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16691 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16692 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16693 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16694 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16695 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16696 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16697 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16698 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16699 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16700 (
16701 cat <<\_ASBOX
16702 ## --------------------------------- ##
16703 ## Report this to the TI IPC lists. ##
16704 ## --------------------------------- ##
16705 _ASBOX
16706 ) |
16707 sed "s/^/$as_me: WARNING: /" >&2
16708 ;;
16709 esac
16710 echo "$as_me:$LINENO: checking for $ac_header" >&5
16711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16712 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16713 echo $ECHO_N "(cached) $ECHO_C" >&6
16714 else
16715 eval "$as_ac_Header=\$ac_header_preproc"
16716 fi
16717 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16718 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16720 fi
16721 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16722 cat >>confdefs.h <<_ACEOF
16723 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16724 _ACEOF
16726 fi
16728 done
16731 # Export CFLAGS and LDFLAGS to Makefile(s)
16735 # Add config variables/options and check them
16739 # Test platform variable for setting
16740 if test "x$PLATFORM" = "xomapl138"; then
16741 { echo "$as_me:$LINENO: PLATFORM is set to ${PLATFORM}" >&5
16742 echo "$as_me: PLATFORM is set to ${PLATFORM}" >&6;}
16743 else
16744 if test "x$PLATFORM" = "xomap4430"; then
16745 { echo "$as_me:$LINENO: PLATFORM is set to ${PLATFORM}" >&5
16746 echo "$as_me: PLATFORM is set to ${PLATFORM}" >&6;}
16747 else
16748 if test "x$PLATFORM" = "xtci6614"; then
16749 { echo "$as_me:$LINENO: PLATFORM is set to ${PLATFORM}" >&5
16750 echo "$as_me: PLATFORM is set to ${PLATFORM}" >&6;}
16751 else
16752 if test "x$PLATFORM" = "xtci6638"; then
16753 { echo "$as_me:$LINENO: PLATFORM is set to ${PLATFORM}" >&5
16754 echo "$as_me: PLATFORM is set to ${PLATFORM}" >&6;}
16755 else
16756 if test "x$PLATFORM" = "x"; then
16757 { echo "$as_me:$LINENO: PLATFORM is not set. All supported platforms will be built ...." >&5
16758 echo "$as_me: PLATFORM is not set. All supported platforms will be built ...." >&6;}
16759 else
16760 { { echo "$as_me:$LINENO: error: PLATFORM is set to \"${PLATFORM}\": run ./configure --help for available PLATFORM options" >&5
16761 echo "$as_me: error: PLATFORM is set to \"${PLATFORM}\": run ./configure --help for available PLATFORM options" >&2;}
16762 { (exit 1); exit 1; }; }
16763 fi
16765 fi
16767 fi
16769 fi
16771 fi
16774 # Export optional user variable to Makefile(s)
16778 # Define specific variables to be used in Makefile.am
16781 if test "x$PLATFORM" = "xomapl138"; then
16782 OMAPL138_TRUE=
16783 OMAPL138_FALSE='#'
16784 else
16785 OMAPL138_TRUE='#'
16786 OMAPL138_FALSE=
16787 fi
16791 if test "x$PLATFORM" = "xomap4430"; then
16792 OMAP4430_TRUE=
16793 OMAP4430_FALSE='#'
16794 else
16795 OMAP4430_TRUE='#'
16796 OMAP4430_FALSE=
16797 fi
16801 if test "x$PLATFORM" = "xtci6614"; then
16802 TCI6614_TRUE=
16803 TCI6614_FALSE='#'
16804 else
16805 TCI6614_TRUE='#'
16806 TCI6614_FALSE=
16807 fi
16811 if test "x$PLATFORM" = "xtci6638"; then
16812 TCI6638_TRUE=
16813 TCI6638_FALSE='#'
16814 else
16815 TCI6638_TRUE='#'
16816 TCI6638_FALSE=
16817 fi
16822 if test "x$CMEM_INSTALL_DIR" != "x"; then
16823 CMEM_TRUE=
16824 CMEM_FALSE='#'
16825 else
16826 CMEM_TRUE='#'
16827 CMEM_FALSE=
16828 fi
16831 # Generate Makefile(s)
16832 ac_config_files="$ac_config_files Makefile"
16834 ac_config_files="$ac_config_files linux/etc/Makefile"
16836 ac_config_files="$ac_config_files linux/src/utils/Makefile"
16838 ac_config_files="$ac_config_files linux/src/api/Makefile"
16840 ac_config_files="$ac_config_files linux/src/family/Makefile"
16842 ac_config_files="$ac_config_files linux/src/daemon/Makefile"
16844 ac_config_files="$ac_config_files linux/src/tests/Makefile"
16846 cat >confcache <<\_ACEOF
16847 # This file is a shell script that caches the results of configure
16848 # tests run on this system so they can be shared between configure
16849 # scripts and configure runs, see configure's option --config-cache.
16850 # It is not useful on other systems. If it contains results you don't
16851 # want to keep, you may remove or edit it.
16852 #
16853 # config.status only pays attention to the cache file if you give it
16854 # the --recheck option to rerun configure.
16855 #
16856 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16857 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16858 # following values.
16860 _ACEOF
16862 # The following way of writing the cache mishandles newlines in values,
16863 # but we know of no workaround that is simple, portable, and efficient.
16864 # So, don't put newlines in cache variables' values.
16865 # Ultrix sh set writes to stderr and can't be redirected directly,
16866 # and sets the high bit in the cache file unless we assign to the vars.
16867 {
16868 (set) 2>&1 |
16869 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16870 *ac_space=\ *)
16871 # `set' does not quote correctly, so add quotes (double-quote
16872 # substitution turns \\\\ into \\, and sed turns \\ into \).
16873 sed -n \
16874 "s/'/'\\\\''/g;
16875 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16876 ;;
16877 *)
16878 # `set' quotes correctly as required by POSIX, so do not add quotes.
16879 sed -n \
16880 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16881 ;;
16882 esac;
16883 } |
16884 sed '
16885 t clear
16886 : clear
16887 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16888 t end
16889 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16890 : end' >>confcache
16891 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16892 if test -w $cache_file; then
16893 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16894 cat confcache >$cache_file
16895 else
16896 echo "not updating unwritable cache $cache_file"
16897 fi
16898 fi
16899 rm -f confcache
16901 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16902 # Let make expand exec_prefix.
16903 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16905 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16906 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16907 # trailing colons and then remove the whole line if VPATH becomes empty
16908 # (actually we leave an empty line to preserve line numbers).
16909 if test "x$srcdir" = x.; then
16910 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16911 s/:*\$(srcdir):*/:/;
16912 s/:*\${srcdir}:*/:/;
16913 s/:*@srcdir@:*/:/;
16914 s/^\([^=]*=[ ]*\):*/\1/;
16915 s/:*$//;
16916 s/^[^=]*=[ ]*$//;
16917 }'
16918 fi
16920 # Transform confdefs.h into DEFS.
16921 # Protect against shell expansion while executing Makefile rules.
16922 # Protect against Makefile macro expansion.
16923 #
16924 # If the first sed substitution is executed (which looks for macros that
16925 # take arguments), then we branch to the quote section. Otherwise,
16926 # look for a macro that doesn't take arguments.
16927 cat >confdef2opt.sed <<\_ACEOF
16928 t clear
16929 : clear
16930 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
16931 t quote
16932 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
16933 t quote
16934 d
16935 : quote
16936 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
16937 s,\[,\\&,g
16938 s,\],\\&,g
16939 s,\$,$$,g
16940 p
16941 _ACEOF
16942 # We use echo to avoid assuming a particular line-breaking character.
16943 # The extra dot is to prevent the shell from consuming trailing
16944 # line-breaks from the sub-command output. A line-break within
16945 # single-quotes doesn't work because, if this script is created in a
16946 # platform that uses two characters for line-breaks (e.g., DOS), tr
16947 # would break.
16948 ac_LF_and_DOT=`echo; echo .`
16949 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
16950 rm -f confdef2opt.sed
16953 ac_libobjs=
16954 ac_ltlibobjs=
16955 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16956 # 1. Remove the extension, and $U if already installed.
16957 ac_i=`echo "$ac_i" |
16958 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16959 # 2. Add them.
16960 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16961 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16962 done
16963 LIBOBJS=$ac_libobjs
16965 LTLIBOBJS=$ac_ltlibobjs
16968 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16969 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
16970 Usually this means the macro was only invoked conditionally." >&5
16971 echo "$as_me: error: conditional \"AMDEP\" was never defined.
16972 Usually this means the macro was only invoked conditionally." >&2;}
16973 { (exit 1); exit 1; }; }
16974 fi
16975 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16976 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16977 Usually this means the macro was only invoked conditionally." >&5
16978 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16979 Usually this means the macro was only invoked conditionally." >&2;}
16980 { (exit 1); exit 1; }; }
16981 fi
16982 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16983 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
16984 Usually this means the macro was only invoked conditionally." >&5
16985 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
16986 Usually this means the macro was only invoked conditionally." >&2;}
16987 { (exit 1); exit 1; }; }
16988 fi
16989 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16990 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16991 Usually this means the macro was only invoked conditionally." >&5
16992 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16993 Usually this means the macro was only invoked conditionally." >&2;}
16994 { (exit 1); exit 1; }; }
16995 fi
16996 if test -z "${OMAPL138_TRUE}" && test -z "${OMAPL138_FALSE}"; then
16997 { { echo "$as_me:$LINENO: error: conditional \"OMAPL138\" was never defined.
16998 Usually this means the macro was only invoked conditionally." >&5
16999 echo "$as_me: error: conditional \"OMAPL138\" was never defined.
17000 Usually this means the macro was only invoked conditionally." >&2;}
17001 { (exit 1); exit 1; }; }
17002 fi
17003 if test -z "${OMAP4430_TRUE}" && test -z "${OMAP4430_FALSE}"; then
17004 { { echo "$as_me:$LINENO: error: conditional \"OMAP4430\" was never defined.
17005 Usually this means the macro was only invoked conditionally." >&5
17006 echo "$as_me: error: conditional \"OMAP4430\" was never defined.
17007 Usually this means the macro was only invoked conditionally." >&2;}
17008 { (exit 1); exit 1; }; }
17009 fi
17010 if test -z "${TCI6614_TRUE}" && test -z "${TCI6614_FALSE}"; then
17011 { { echo "$as_me:$LINENO: error: conditional \"TCI6614\" was never defined.
17012 Usually this means the macro was only invoked conditionally." >&5
17013 echo "$as_me: error: conditional \"TCI6614\" was never defined.
17014 Usually this means the macro was only invoked conditionally." >&2;}
17015 { (exit 1); exit 1; }; }
17016 fi
17017 if test -z "${TCI6638_TRUE}" && test -z "${TCI6638_FALSE}"; then
17018 { { echo "$as_me:$LINENO: error: conditional \"TCI6638\" was never defined.
17019 Usually this means the macro was only invoked conditionally." >&5
17020 echo "$as_me: error: conditional \"TCI6638\" was never defined.
17021 Usually this means the macro was only invoked conditionally." >&2;}
17022 { (exit 1); exit 1; }; }
17023 fi
17024 if test -z "${CMEM_TRUE}" && test -z "${CMEM_FALSE}"; then
17025 { { echo "$as_me:$LINENO: error: conditional \"CMEM\" was never defined.
17026 Usually this means the macro was only invoked conditionally." >&5
17027 echo "$as_me: error: conditional \"CMEM\" was never defined.
17028 Usually this means the macro was only invoked conditionally." >&2;}
17029 { (exit 1); exit 1; }; }
17030 fi
17032 : ${CONFIG_STATUS=./config.status}
17033 ac_clean_files_save=$ac_clean_files
17034 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17035 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17036 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17037 cat >$CONFIG_STATUS <<_ACEOF
17038 #! $SHELL
17039 # Generated by $as_me.
17040 # Run this file to recreate the current configuration.
17041 # Compiler output produced by configure, useful for debugging
17042 # configure, is in config.log if it exists.
17044 debug=false
17045 ac_cs_recheck=false
17046 ac_cs_silent=false
17047 SHELL=\${CONFIG_SHELL-$SHELL}
17048 _ACEOF
17050 cat >>$CONFIG_STATUS <<\_ACEOF
17051 ## --------------------- ##
17052 ## M4sh Initialization. ##
17053 ## --------------------- ##
17055 # Be Bourne compatible
17056 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17057 emulate sh
17058 NULLCMD=:
17059 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17060 # is contrary to our usage. Disable this feature.
17061 alias -g '${1+"$@"}'='"$@"'
17062 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17063 set -o posix
17064 fi
17065 DUALCASE=1; export DUALCASE # for MKS sh
17067 # Support unset when possible.
17068 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17069 as_unset=unset
17070 else
17071 as_unset=false
17072 fi
17075 # Work around bugs in pre-3.0 UWIN ksh.
17076 $as_unset ENV MAIL MAILPATH
17077 PS1='$ '
17078 PS2='> '
17079 PS4='+ '
17081 # NLS nuisances.
17082 for as_var in \
17083 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17084 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17085 LC_TELEPHONE LC_TIME
17086 do
17087 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17088 eval $as_var=C; export $as_var
17089 else
17090 $as_unset $as_var
17091 fi
17092 done
17094 # Required to use basename.
17095 if expr a : '\(a\)' >/dev/null 2>&1; then
17096 as_expr=expr
17097 else
17098 as_expr=false
17099 fi
17101 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17102 as_basename=basename
17103 else
17104 as_basename=false
17105 fi
17108 # Name of the executable.
17109 as_me=`$as_basename "$0" ||
17110 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17111 X"$0" : 'X\(//\)$' \| \
17112 X"$0" : 'X\(/\)$' \| \
17113 . : '\(.\)' 2>/dev/null ||
17114 echo X/"$0" |
17115 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17116 /^X\/\(\/\/\)$/{ s//\1/; q; }
17117 /^X\/\(\/\).*/{ s//\1/; q; }
17118 s/.*/./; q'`
17121 # PATH needs CR, and LINENO needs CR and PATH.
17122 # Avoid depending upon Character Ranges.
17123 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17124 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17125 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17126 as_cr_digits='0123456789'
17127 as_cr_alnum=$as_cr_Letters$as_cr_digits
17129 # The user is always right.
17130 if test "${PATH_SEPARATOR+set}" != set; then
17131 echo "#! /bin/sh" >conf$$.sh
17132 echo "exit 0" >>conf$$.sh
17133 chmod +x conf$$.sh
17134 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17135 PATH_SEPARATOR=';'
17136 else
17137 PATH_SEPARATOR=:
17138 fi
17139 rm -f conf$$.sh
17140 fi
17143 as_lineno_1=$LINENO
17144 as_lineno_2=$LINENO
17145 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17146 test "x$as_lineno_1" != "x$as_lineno_2" &&
17147 test "x$as_lineno_3" = "x$as_lineno_2" || {
17148 # Find who we are. Look in the path if we contain no path at all
17149 # relative or not.
17150 case $0 in
17151 *[\\/]* ) as_myself=$0 ;;
17152 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17153 for as_dir in $PATH
17154 do
17155 IFS=$as_save_IFS
17156 test -z "$as_dir" && as_dir=.
17157 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17158 done
17160 ;;
17161 esac
17162 # We did not find ourselves, most probably we were run as `sh COMMAND'
17163 # in which case we are not to be found in the path.
17164 if test "x$as_myself" = x; then
17165 as_myself=$0
17166 fi
17167 if test ! -f "$as_myself"; then
17168 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17169 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17170 { (exit 1); exit 1; }; }
17171 fi
17172 case $CONFIG_SHELL in
17173 '')
17174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17175 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17176 do
17177 IFS=$as_save_IFS
17178 test -z "$as_dir" && as_dir=.
17179 for as_base in sh bash ksh sh5; do
17180 case $as_dir in
17181 /*)
17182 if ("$as_dir/$as_base" -c '
17183 as_lineno_1=$LINENO
17184 as_lineno_2=$LINENO
17185 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17186 test "x$as_lineno_1" != "x$as_lineno_2" &&
17187 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17188 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17189 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17190 CONFIG_SHELL=$as_dir/$as_base
17191 export CONFIG_SHELL
17192 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17193 fi;;
17194 esac
17195 done
17196 done
17197 ;;
17198 esac
17200 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17201 # uniformly replaced by the line number. The first 'sed' inserts a
17202 # line-number line before each line; the second 'sed' does the real
17203 # work. The second script uses 'N' to pair each line-number line
17204 # with the numbered line, and appends trailing '-' during
17205 # substitution so that $LINENO is not a special case at line end.
17206 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17207 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17208 sed '=' <$as_myself |
17209 sed '
17210 N
17211 s,$,-,
17212 : loop
17213 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17214 t loop
17215 s,-$,,
17216 s,^['$as_cr_digits']*\n,,
17217 ' >$as_me.lineno &&
17218 chmod +x $as_me.lineno ||
17219 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17220 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17221 { (exit 1); exit 1; }; }
17223 # Don't try to exec as it changes $[0], causing all sort of problems
17224 # (the dirname of $[0] is not the place where we might find the
17225 # original and so on. Autoconf is especially sensible to this).
17226 . ./$as_me.lineno
17227 # Exit status is that of the last command.
17228 exit
17229 }
17232 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17233 *c*,-n*) ECHO_N= ECHO_C='
17234 ' ECHO_T=' ' ;;
17235 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17236 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17237 esac
17239 if expr a : '\(a\)' >/dev/null 2>&1; then
17240 as_expr=expr
17241 else
17242 as_expr=false
17243 fi
17245 rm -f conf$$ conf$$.exe conf$$.file
17246 echo >conf$$.file
17247 if ln -s conf$$.file conf$$ 2>/dev/null; then
17248 # We could just check for DJGPP; but this test a) works b) is more generic
17249 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17250 if test -f conf$$.exe; then
17251 # Don't use ln at all; we don't have any links
17252 as_ln_s='cp -p'
17253 else
17254 as_ln_s='ln -s'
17255 fi
17256 elif ln conf$$.file conf$$ 2>/dev/null; then
17257 as_ln_s=ln
17258 else
17259 as_ln_s='cp -p'
17260 fi
17261 rm -f conf$$ conf$$.exe conf$$.file
17263 if mkdir -p . 2>/dev/null; then
17264 as_mkdir_p=:
17265 else
17266 test -d ./-p && rmdir ./-p
17267 as_mkdir_p=false
17268 fi
17270 as_executable_p="test -f"
17272 # Sed expression to map a string onto a valid CPP name.
17273 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17275 # Sed expression to map a string onto a valid variable name.
17276 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17279 # IFS
17280 # We need space, tab and new line, in precisely that order.
17281 as_nl='
17282 '
17283 IFS=" $as_nl"
17285 # CDPATH.
17286 $as_unset CDPATH
17288 exec 6>&1
17290 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17291 # report actual input values of CONFIG_FILES etc. instead of their
17292 # values after options handling. Logging --version etc. is OK.
17293 exec 5>>config.log
17294 {
17295 echo
17296 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17297 ## Running $as_me. ##
17298 _ASBOX
17299 } >&5
17300 cat >&5 <<_CSEOF
17302 This file was extended by TI IPC $as_me 3.0.0, which was
17303 generated by GNU Autoconf 2.59. Invocation command line was
17305 CONFIG_FILES = $CONFIG_FILES
17306 CONFIG_HEADERS = $CONFIG_HEADERS
17307 CONFIG_LINKS = $CONFIG_LINKS
17308 CONFIG_COMMANDS = $CONFIG_COMMANDS
17309 $ $0 $@
17311 _CSEOF
17312 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17313 echo >&5
17314 _ACEOF
17316 # Files that config.status was made for.
17317 if test -n "$ac_config_files"; then
17318 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17319 fi
17321 if test -n "$ac_config_headers"; then
17322 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17323 fi
17325 if test -n "$ac_config_links"; then
17326 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17327 fi
17329 if test -n "$ac_config_commands"; then
17330 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17331 fi
17333 cat >>$CONFIG_STATUS <<\_ACEOF
17335 ac_cs_usage="\
17336 \`$as_me' instantiates files from templates according to the
17337 current configuration.
17339 Usage: $0 [OPTIONS] [FILE]...
17341 -h, --help print this help, then exit
17342 -V, --version print version number, then exit
17343 -q, --quiet do not print progress messages
17344 -d, --debug don't remove temporary files
17345 --recheck update $as_me by reconfiguring in the same conditions
17346 --file=FILE[:TEMPLATE]
17347 instantiate the configuration file FILE
17349 Configuration files:
17350 $config_files
17352 Configuration commands:
17353 $config_commands
17355 Report bugs to <bug-autoconf@gnu.org>."
17356 _ACEOF
17358 cat >>$CONFIG_STATUS <<_ACEOF
17359 ac_cs_version="\\
17360 TI IPC config.status 3.0.0
17361 configured by $0, generated by GNU Autoconf 2.59,
17362 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17364 Copyright (C) 2003 Free Software Foundation, Inc.
17365 This config.status script is free software; the Free Software Foundation
17366 gives unlimited permission to copy, distribute and modify it."
17367 srcdir=$srcdir
17368 INSTALL="$INSTALL"
17369 _ACEOF
17371 cat >>$CONFIG_STATUS <<\_ACEOF
17372 # If no file are specified by the user, then we need to provide default
17373 # value. By we need to know if files were specified by the user.
17374 ac_need_defaults=:
17375 while test $# != 0
17376 do
17377 case $1 in
17378 --*=*)
17379 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17380 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17381 ac_shift=:
17382 ;;
17383 -*)
17384 ac_option=$1
17385 ac_optarg=$2
17386 ac_shift=shift
17387 ;;
17388 *) # This is not an option, so the user has probably given explicit
17389 # arguments.
17390 ac_option=$1
17391 ac_need_defaults=false;;
17392 esac
17394 case $ac_option in
17395 # Handling of the options.
17396 _ACEOF
17397 cat >>$CONFIG_STATUS <<\_ACEOF
17398 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17399 ac_cs_recheck=: ;;
17400 --version | --vers* | -V )
17401 echo "$ac_cs_version"; exit 0 ;;
17402 --he | --h)
17403 # Conflict between --help and --header
17404 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17405 Try \`$0 --help' for more information." >&5
17406 echo "$as_me: error: ambiguous option: $1
17407 Try \`$0 --help' for more information." >&2;}
17408 { (exit 1); exit 1; }; };;
17409 --help | --hel | -h )
17410 echo "$ac_cs_usage"; exit 0 ;;
17411 --debug | --d* | -d )
17412 debug=: ;;
17413 --file | --fil | --fi | --f )
17414 $ac_shift
17415 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17416 ac_need_defaults=false;;
17417 --header | --heade | --head | --hea )
17418 $ac_shift
17419 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17420 ac_need_defaults=false;;
17421 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17422 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17423 ac_cs_silent=: ;;
17425 # This is an error.
17426 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17427 Try \`$0 --help' for more information." >&5
17428 echo "$as_me: error: unrecognized option: $1
17429 Try \`$0 --help' for more information." >&2;}
17430 { (exit 1); exit 1; }; } ;;
17432 *) ac_config_targets="$ac_config_targets $1" ;;
17434 esac
17435 shift
17436 done
17438 ac_configure_extra_args=
17440 if $ac_cs_silent; then
17441 exec 6>/dev/null
17442 ac_configure_extra_args="$ac_configure_extra_args --silent"
17443 fi
17445 _ACEOF
17446 cat >>$CONFIG_STATUS <<_ACEOF
17447 if \$ac_cs_recheck; then
17448 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17449 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17450 fi
17452 _ACEOF
17454 cat >>$CONFIG_STATUS <<_ACEOF
17455 #
17456 # INIT-COMMANDS section.
17457 #
17459 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17461 _ACEOF
17465 cat >>$CONFIG_STATUS <<\_ACEOF
17466 for ac_config_target in $ac_config_targets
17467 do
17468 case "$ac_config_target" in
17469 # Handling of arguments.
17470 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17471 "linux/etc/Makefile" ) CONFIG_FILES="$CONFIG_FILES linux/etc/Makefile" ;;
17472 "linux/src/utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES linux/src/utils/Makefile" ;;
17473 "linux/src/api/Makefile" ) CONFIG_FILES="$CONFIG_FILES linux/src/api/Makefile" ;;
17474 "linux/src/family/Makefile" ) CONFIG_FILES="$CONFIG_FILES linux/src/family/Makefile" ;;
17475 "linux/src/daemon/Makefile" ) CONFIG_FILES="$CONFIG_FILES linux/src/daemon/Makefile" ;;
17476 "linux/src/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES linux/src/tests/Makefile" ;;
17477 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17478 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17479 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17480 { (exit 1); exit 1; }; };;
17481 esac
17482 done
17484 # If the user did not use the arguments to specify the items to instantiate,
17485 # then the envvar interface is used. Set only those that are not.
17486 # We use the long form for the default assignment because of an extremely
17487 # bizarre bug on SunOS 4.1.3.
17488 if $ac_need_defaults; then
17489 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17490 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17491 fi
17493 # Have a temporary directory for convenience. Make it in the build tree
17494 # simply because there is no reason to put it here, and in addition,
17495 # creating and moving files from /tmp can sometimes cause problems.
17496 # Create a temporary directory, and hook for its removal unless debugging.
17497 $debug ||
17498 {
17499 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17500 trap '{ (exit 1); exit 1; }' 1 2 13 15
17501 }
17503 # Create a (secure) tmp directory for tmp files.
17505 {
17506 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17507 test -n "$tmp" && test -d "$tmp"
17508 } ||
17509 {
17510 tmp=./confstat$$-$RANDOM
17511 (umask 077 && mkdir $tmp)
17512 } ||
17513 {
17514 echo "$me: cannot create a temporary directory in ." >&2
17515 { (exit 1); exit 1; }
17516 }
17518 _ACEOF
17520 cat >>$CONFIG_STATUS <<_ACEOF
17522 #
17523 # CONFIG_FILES section.
17524 #
17526 # No need to generate the scripts if there are no CONFIG_FILES.
17527 # This happens for instance when ./config.status config.h
17528 if test -n "\$CONFIG_FILES"; then
17529 # Protect against being on the right side of a sed subst in config.status.
17530 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17531 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17532 s,@SHELL@,$SHELL,;t t
17533 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17534 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17535 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17536 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17537 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17538 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17539 s,@exec_prefix@,$exec_prefix,;t t
17540 s,@prefix@,$prefix,;t t
17541 s,@program_transform_name@,$program_transform_name,;t t
17542 s,@bindir@,$bindir,;t t
17543 s,@sbindir@,$sbindir,;t t
17544 s,@libexecdir@,$libexecdir,;t t
17545 s,@datadir@,$datadir,;t t
17546 s,@sysconfdir@,$sysconfdir,;t t
17547 s,@sharedstatedir@,$sharedstatedir,;t t
17548 s,@localstatedir@,$localstatedir,;t t
17549 s,@libdir@,$libdir,;t t
17550 s,@includedir@,$includedir,;t t
17551 s,@oldincludedir@,$oldincludedir,;t t
17552 s,@infodir@,$infodir,;t t
17553 s,@mandir@,$mandir,;t t
17554 s,@build_alias@,$build_alias,;t t
17555 s,@host_alias@,$host_alias,;t t
17556 s,@target_alias@,$target_alias,;t t
17557 s,@DEFS@,$DEFS,;t t
17558 s,@ECHO_C@,$ECHO_C,;t t
17559 s,@ECHO_N@,$ECHO_N,;t t
17560 s,@ECHO_T@,$ECHO_T,;t t
17561 s,@LIBS@,$LIBS,;t t
17562 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17563 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17564 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17565 s,@CYGPATH_W@,$CYGPATH_W,;t t
17566 s,@PACKAGE@,$PACKAGE,;t t
17567 s,@VERSION@,$VERSION,;t t
17568 s,@ACLOCAL@,$ACLOCAL,;t t
17569 s,@AUTOCONF@,$AUTOCONF,;t t
17570 s,@AUTOMAKE@,$AUTOMAKE,;t t
17571 s,@AUTOHEADER@,$AUTOHEADER,;t t
17572 s,@MAKEINFO@,$MAKEINFO,;t t
17573 s,@install_sh@,$install_sh,;t t
17574 s,@STRIP@,$STRIP,;t t
17575 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17576 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
17577 s,@mkdir_p@,$mkdir_p,;t t
17578 s,@AWK@,$AWK,;t t
17579 s,@SET_MAKE@,$SET_MAKE,;t t
17580 s,@am__leading_dot@,$am__leading_dot,;t t
17581 s,@AMTAR@,$AMTAR,;t t
17582 s,@am__tar@,$am__tar,;t t
17583 s,@am__untar@,$am__untar,;t t
17584 s,@build@,$build,;t t
17585 s,@build_cpu@,$build_cpu,;t t
17586 s,@build_vendor@,$build_vendor,;t t
17587 s,@build_os@,$build_os,;t t
17588 s,@host@,$host,;t t
17589 s,@host_cpu@,$host_cpu,;t t
17590 s,@host_vendor@,$host_vendor,;t t
17591 s,@host_os@,$host_os,;t t
17592 s,@CC@,$CC,;t t
17593 s,@CFLAGS@,$CFLAGS,;t t
17594 s,@LDFLAGS@,$LDFLAGS,;t t
17595 s,@CPPFLAGS@,$CPPFLAGS,;t t
17596 s,@ac_ct_CC@,$ac_ct_CC,;t t
17597 s,@EXEEXT@,$EXEEXT,;t t
17598 s,@OBJEXT@,$OBJEXT,;t t
17599 s,@DEPDIR@,$DEPDIR,;t t
17600 s,@am__include@,$am__include,;t t
17601 s,@am__quote@,$am__quote,;t t
17602 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
17603 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
17604 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
17605 s,@CCDEPMODE@,$CCDEPMODE,;t t
17606 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
17607 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
17608 s,@EGREP@,$EGREP,;t t
17609 s,@LN_S@,$LN_S,;t t
17610 s,@ECHO@,$ECHO,;t t
17611 s,@AR@,$AR,;t t
17612 s,@ac_ct_AR@,$ac_ct_AR,;t t
17613 s,@RANLIB@,$RANLIB,;t t
17614 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17615 s,@CPP@,$CPP,;t t
17616 s,@CXX@,$CXX,;t t
17617 s,@CXXFLAGS@,$CXXFLAGS,;t t
17618 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17619 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
17620 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
17621 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
17622 s,@CXXCPP@,$CXXCPP,;t t
17623 s,@LIBTOOL@,$LIBTOOL,;t t
17624 s,@AM_CFLAGS@,$AM_CFLAGS,;t t
17625 s,@AM_LDFLAGS@,$AM_LDFLAGS,;t t
17626 s,@PLATFORM@,$PLATFORM,;t t
17627 s,@CMEM_INSTALL_DIR@,$CMEM_INSTALL_DIR,;t t
17628 s,@OMAPL138_TRUE@,$OMAPL138_TRUE,;t t
17629 s,@OMAPL138_FALSE@,$OMAPL138_FALSE,;t t
17630 s,@OMAP4430_TRUE@,$OMAP4430_TRUE,;t t
17631 s,@OMAP4430_FALSE@,$OMAP4430_FALSE,;t t
17632 s,@TCI6614_TRUE@,$TCI6614_TRUE,;t t
17633 s,@TCI6614_FALSE@,$TCI6614_FALSE,;t t
17634 s,@TCI6638_TRUE@,$TCI6638_TRUE,;t t
17635 s,@TCI6638_FALSE@,$TCI6638_FALSE,;t t
17636 s,@CMEM_TRUE@,$CMEM_TRUE,;t t
17637 s,@CMEM_FALSE@,$CMEM_FALSE,;t t
17638 s,@LIBOBJS@,$LIBOBJS,;t t
17639 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17640 CEOF
17642 _ACEOF
17644 cat >>$CONFIG_STATUS <<\_ACEOF
17645 # Split the substitutions into bite-sized pieces for seds with
17646 # small command number limits, like on Digital OSF/1 and HP-UX.
17647 ac_max_sed_lines=48
17648 ac_sed_frag=1 # Number of current file.
17649 ac_beg=1 # First line for current file.
17650 ac_end=$ac_max_sed_lines # Line after last line for current file.
17651 ac_more_lines=:
17652 ac_sed_cmds=
17653 while $ac_more_lines; do
17654 if test $ac_beg -gt 1; then
17655 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17656 else
17657 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17658 fi
17659 if test ! -s $tmp/subs.frag; then
17660 ac_more_lines=false
17661 else
17662 # The purpose of the label and of the branching condition is to
17663 # speed up the sed processing (if there are no `@' at all, there
17664 # is no need to browse any of the substitutions).
17665 # These are the two extra sed commands mentioned above.
17666 (echo ':t
17667 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17668 if test -z "$ac_sed_cmds"; then
17669 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17670 else
17671 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17672 fi
17673 ac_sed_frag=`expr $ac_sed_frag + 1`
17674 ac_beg=$ac_end
17675 ac_end=`expr $ac_end + $ac_max_sed_lines`
17676 fi
17677 done
17678 if test -z "$ac_sed_cmds"; then
17679 ac_sed_cmds=cat
17680 fi
17681 fi # test -n "$CONFIG_FILES"
17683 _ACEOF
17684 cat >>$CONFIG_STATUS <<\_ACEOF
17685 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17686 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17687 case $ac_file in
17688 - | *:- | *:-:* ) # input from stdin
17689 cat >$tmp/stdin
17690 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17691 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17692 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17693 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17694 * ) ac_file_in=$ac_file.in ;;
17695 esac
17697 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17698 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17699 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17700 X"$ac_file" : 'X\(//\)[^/]' \| \
17701 X"$ac_file" : 'X\(//\)$' \| \
17702 X"$ac_file" : 'X\(/\)' \| \
17703 . : '\(.\)' 2>/dev/null ||
17704 echo X"$ac_file" |
17705 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17706 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17707 /^X\(\/\/\)$/{ s//\1/; q; }
17708 /^X\(\/\).*/{ s//\1/; q; }
17709 s/.*/./; q'`
17710 { if $as_mkdir_p; then
17711 mkdir -p "$ac_dir"
17712 else
17713 as_dir="$ac_dir"
17714 as_dirs=
17715 while test ! -d "$as_dir"; do
17716 as_dirs="$as_dir $as_dirs"
17717 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17718 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17719 X"$as_dir" : 'X\(//\)[^/]' \| \
17720 X"$as_dir" : 'X\(//\)$' \| \
17721 X"$as_dir" : 'X\(/\)' \| \
17722 . : '\(.\)' 2>/dev/null ||
17723 echo X"$as_dir" |
17724 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17725 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17726 /^X\(\/\/\)$/{ s//\1/; q; }
17727 /^X\(\/\).*/{ s//\1/; q; }
17728 s/.*/./; q'`
17729 done
17730 test ! -n "$as_dirs" || mkdir $as_dirs
17731 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17732 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17733 { (exit 1); exit 1; }; }; }
17735 ac_builddir=.
17737 if test "$ac_dir" != .; then
17738 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17739 # A "../" for each directory in $ac_dir_suffix.
17740 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17741 else
17742 ac_dir_suffix= ac_top_builddir=
17743 fi
17745 case $srcdir in
17746 .) # No --srcdir option. We are building in place.
17747 ac_srcdir=.
17748 if test -z "$ac_top_builddir"; then
17749 ac_top_srcdir=.
17750 else
17751 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17752 fi ;;
17753 [\\/]* | ?:[\\/]* ) # Absolute path.
17754 ac_srcdir=$srcdir$ac_dir_suffix;
17755 ac_top_srcdir=$srcdir ;;
17756 *) # Relative path.
17757 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17758 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17759 esac
17761 # Do not use `cd foo && pwd` to compute absolute paths, because
17762 # the directories may not exist.
17763 case `pwd` in
17764 .) ac_abs_builddir="$ac_dir";;
17765 *)
17766 case "$ac_dir" in
17767 .) ac_abs_builddir=`pwd`;;
17768 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17769 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17770 esac;;
17771 esac
17772 case $ac_abs_builddir in
17773 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17774 *)
17775 case ${ac_top_builddir}. in
17776 .) ac_abs_top_builddir=$ac_abs_builddir;;
17777 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17778 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17779 esac;;
17780 esac
17781 case $ac_abs_builddir in
17782 .) ac_abs_srcdir=$ac_srcdir;;
17783 *)
17784 case $ac_srcdir in
17785 .) ac_abs_srcdir=$ac_abs_builddir;;
17786 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17787 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17788 esac;;
17789 esac
17790 case $ac_abs_builddir in
17791 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17792 *)
17793 case $ac_top_srcdir in
17794 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17795 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17796 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17797 esac;;
17798 esac
17801 case $INSTALL in
17802 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17803 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17804 esac
17806 if test x"$ac_file" != x-; then
17807 { echo "$as_me:$LINENO: creating $ac_file" >&5
17808 echo "$as_me: creating $ac_file" >&6;}
17809 rm -f "$ac_file"
17810 fi
17811 # Let's still pretend it is `configure' which instantiates (i.e., don't
17812 # use $as_me), people would be surprised to read:
17813 # /* config.h. Generated by config.status. */
17814 if test x"$ac_file" = x-; then
17815 configure_input=
17816 else
17817 configure_input="$ac_file. "
17818 fi
17819 configure_input=$configure_input"Generated from `echo $ac_file_in |
17820 sed 's,.*/,,'` by configure."
17822 # First look for the input files in the build tree, otherwise in the
17823 # src tree.
17824 ac_file_inputs=`IFS=:
17825 for f in $ac_file_in; do
17826 case $f in
17827 -) echo $tmp/stdin ;;
17828 [\\/$]*)
17829 # Absolute (can't be DOS-style, as IFS=:)
17830 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17831 echo "$as_me: error: cannot find input file: $f" >&2;}
17832 { (exit 1); exit 1; }; }
17833 echo "$f";;
17834 *) # Relative
17835 if test -f "$f"; then
17836 # Build tree
17837 echo "$f"
17838 elif test -f "$srcdir/$f"; then
17839 # Source tree
17840 echo "$srcdir/$f"
17841 else
17842 # /dev/null tree
17843 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17844 echo "$as_me: error: cannot find input file: $f" >&2;}
17845 { (exit 1); exit 1; }; }
17846 fi;;
17847 esac
17848 done` || { (exit 1); exit 1; }
17849 _ACEOF
17850 cat >>$CONFIG_STATUS <<_ACEOF
17851 sed "$ac_vpsub
17852 $extrasub
17853 _ACEOF
17854 cat >>$CONFIG_STATUS <<\_ACEOF
17855 :t
17856 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17857 s,@configure_input@,$configure_input,;t t
17858 s,@srcdir@,$ac_srcdir,;t t
17859 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17860 s,@top_srcdir@,$ac_top_srcdir,;t t
17861 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17862 s,@builddir@,$ac_builddir,;t t
17863 s,@abs_builddir@,$ac_abs_builddir,;t t
17864 s,@top_builddir@,$ac_top_builddir,;t t
17865 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17866 s,@INSTALL@,$ac_INSTALL,;t t
17867 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17868 rm -f $tmp/stdin
17869 if test x"$ac_file" != x-; then
17870 mv $tmp/out $ac_file
17871 else
17872 cat $tmp/out
17873 rm -f $tmp/out
17874 fi
17876 done
17877 _ACEOF
17878 cat >>$CONFIG_STATUS <<\_ACEOF
17880 #
17881 # CONFIG_COMMANDS section.
17882 #
17883 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17884 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17885 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17886 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17887 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17888 X"$ac_dest" : 'X\(//\)[^/]' \| \
17889 X"$ac_dest" : 'X\(//\)$' \| \
17890 X"$ac_dest" : 'X\(/\)' \| \
17891 . : '\(.\)' 2>/dev/null ||
17892 echo X"$ac_dest" |
17893 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17894 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17895 /^X\(\/\/\)$/{ s//\1/; q; }
17896 /^X\(\/\).*/{ s//\1/; q; }
17897 s/.*/./; q'`
17898 { if $as_mkdir_p; then
17899 mkdir -p "$ac_dir"
17900 else
17901 as_dir="$ac_dir"
17902 as_dirs=
17903 while test ! -d "$as_dir"; do
17904 as_dirs="$as_dir $as_dirs"
17905 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17906 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17907 X"$as_dir" : 'X\(//\)[^/]' \| \
17908 X"$as_dir" : 'X\(//\)$' \| \
17909 X"$as_dir" : 'X\(/\)' \| \
17910 . : '\(.\)' 2>/dev/null ||
17911 echo X"$as_dir" |
17912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17913 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17914 /^X\(\/\/\)$/{ s//\1/; q; }
17915 /^X\(\/\).*/{ s//\1/; q; }
17916 s/.*/./; q'`
17917 done
17918 test ! -n "$as_dirs" || mkdir $as_dirs
17919 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17920 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17921 { (exit 1); exit 1; }; }; }
17923 ac_builddir=.
17925 if test "$ac_dir" != .; then
17926 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17927 # A "../" for each directory in $ac_dir_suffix.
17928 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17929 else
17930 ac_dir_suffix= ac_top_builddir=
17931 fi
17933 case $srcdir in
17934 .) # No --srcdir option. We are building in place.
17935 ac_srcdir=.
17936 if test -z "$ac_top_builddir"; then
17937 ac_top_srcdir=.
17938 else
17939 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17940 fi ;;
17941 [\\/]* | ?:[\\/]* ) # Absolute path.
17942 ac_srcdir=$srcdir$ac_dir_suffix;
17943 ac_top_srcdir=$srcdir ;;
17944 *) # Relative path.
17945 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17946 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17947 esac
17949 # Do not use `cd foo && pwd` to compute absolute paths, because
17950 # the directories may not exist.
17951 case `pwd` in
17952 .) ac_abs_builddir="$ac_dir";;
17953 *)
17954 case "$ac_dir" in
17955 .) ac_abs_builddir=`pwd`;;
17956 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17957 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17958 esac;;
17959 esac
17960 case $ac_abs_builddir in
17961 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17962 *)
17963 case ${ac_top_builddir}. in
17964 .) ac_abs_top_builddir=$ac_abs_builddir;;
17965 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17966 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17967 esac;;
17968 esac
17969 case $ac_abs_builddir in
17970 .) ac_abs_srcdir=$ac_srcdir;;
17971 *)
17972 case $ac_srcdir in
17973 .) ac_abs_srcdir=$ac_abs_builddir;;
17974 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17975 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17976 esac;;
17977 esac
17978 case $ac_abs_builddir in
17979 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17980 *)
17981 case $ac_top_srcdir in
17982 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17983 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17984 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17985 esac;;
17986 esac
17989 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17990 echo "$as_me: executing $ac_dest commands" >&6;}
17991 case $ac_dest in
17992 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
17993 # Strip MF so we end up with the name of the file.
17994 mf=`echo "$mf" | sed -e 's/:.*$//'`
17995 # Check whether this is an Automake generated Makefile or not.
17996 # We used to match only the files named `Makefile.in', but
17997 # some people rename them; so instead we look at the file content.
17998 # Grep'ing the first line is not enough: some people post-process
17999 # each Makefile.in and add a new line on top of each file to say so.
18000 # So let's grep whole file.
18001 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
18002 dirpart=`(dirname "$mf") 2>/dev/null ||
18003 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18004 X"$mf" : 'X\(//\)[^/]' \| \
18005 X"$mf" : 'X\(//\)$' \| \
18006 X"$mf" : 'X\(/\)' \| \
18007 . : '\(.\)' 2>/dev/null ||
18008 echo X"$mf" |
18009 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18010 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18011 /^X\(\/\/\)$/{ s//\1/; q; }
18012 /^X\(\/\).*/{ s//\1/; q; }
18013 s/.*/./; q'`
18014 else
18015 continue
18016 fi
18017 # Extract the definition of DEPDIR, am__include, and am__quote
18018 # from the Makefile without running `make'.
18019 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18020 test -z "$DEPDIR" && continue
18021 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18022 test -z "am__include" && continue
18023 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18024 # When using ansi2knr, U may be empty or an underscore; expand it
18025 U=`sed -n 's/^U = //p' < "$mf"`
18026 # Find all dependency output files, they are included files with
18027 # $(DEPDIR) in their names. We invoke sed twice because it is the
18028 # simplest approach to changing $(DEPDIR) to its actual value in the
18029 # expansion.
18030 for file in `sed -n "
18031 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18032 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18033 # Make sure the directory exists.
18034 test -f "$dirpart/$file" && continue
18035 fdir=`(dirname "$file") 2>/dev/null ||
18036 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18037 X"$file" : 'X\(//\)[^/]' \| \
18038 X"$file" : 'X\(//\)$' \| \
18039 X"$file" : 'X\(/\)' \| \
18040 . : '\(.\)' 2>/dev/null ||
18041 echo X"$file" |
18042 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18043 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18044 /^X\(\/\/\)$/{ s//\1/; q; }
18045 /^X\(\/\).*/{ s//\1/; q; }
18046 s/.*/./; q'`
18047 { if $as_mkdir_p; then
18048 mkdir -p $dirpart/$fdir
18049 else
18050 as_dir=$dirpart/$fdir
18051 as_dirs=
18052 while test ! -d "$as_dir"; do
18053 as_dirs="$as_dir $as_dirs"
18054 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18055 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18056 X"$as_dir" : 'X\(//\)[^/]' \| \
18057 X"$as_dir" : 'X\(//\)$' \| \
18058 X"$as_dir" : 'X\(/\)' \| \
18059 . : '\(.\)' 2>/dev/null ||
18060 echo X"$as_dir" |
18061 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18062 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18063 /^X\(\/\/\)$/{ s//\1/; q; }
18064 /^X\(\/\).*/{ s//\1/; q; }
18065 s/.*/./; q'`
18066 done
18067 test ! -n "$as_dirs" || mkdir $as_dirs
18068 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
18069 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
18070 { (exit 1); exit 1; }; }; }
18072 # echo "creating $dirpart/$file"
18073 echo '# dummy' > "$dirpart/$file"
18074 done
18075 done
18076 ;;
18077 esac
18078 done
18079 _ACEOF
18081 cat >>$CONFIG_STATUS <<\_ACEOF
18083 { (exit 0); exit 0; }
18084 _ACEOF
18085 chmod +x $CONFIG_STATUS
18086 ac_clean_files=$ac_clean_files_save
18089 # configure is writing to config.log, and then calls config.status.
18090 # config.status does its own redirection, appending to config.log.
18091 # Unfortunately, on DOS this fails, as config.log is still kept open
18092 # by configure, so config.status won't be able to write to it; its
18093 # output is simply discarded. So we exec the FD to /dev/null,
18094 # effectively closing config.log, so it can be properly (re)opened and
18095 # appended to by config.status. When coming back to configure, we
18096 # need to make the FD available again.
18097 if test "$no_create" != yes; then
18098 ac_cs_success=:
18099 ac_config_status_args=
18100 test "$silent" = yes &&
18101 ac_config_status_args="$ac_config_status_args --quiet"
18102 exec 5>/dev/null
18103 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18104 exec 5>>config.log
18105 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18106 # would make configure fail if this is the last instruction.
18107 $ac_cs_success || { (exit 1); exit 1; }
18108 fi
18111 echo \
18112 "-----------------------------------------------------------
18114 Thank you for installing the Linux ${PACKAGE_NAME} package
18116 Installation directory prefix: '${prefix}'.
18117 Compilation command: '${CC} ${CFLAGS} ${CPPFLAGS}'
18119 You have configured to build for the '${PLATFORM}' platform
18121 Your CMEM installation is at:
18122 '${CMEM_INSTALL_DIR}'
18124 Now type 'make; sudo make install' to generate the program
18125 and install it to your system.
18127 ------------------------------------------------------------"