]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - ipc/ipcdev.git/blob - configure
Remoteproc patches for OMAPL138 on Linux v3.8.0
[ipc/ipcdev.git] / configure
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
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='
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
404 # Initializations.
406 ac_default_prefix=/usr/local
407 ac_config_libobj_dir=.
408 cross_compiling=no
409 subdirs=
410 MFLAGS=
411 MAKEFLAGS=
412 SHELL=${CONFIG_SHELL-/bin/sh}
414 # Maximum number of lines to put in a shell here document.
415 # This variable seems obsolete.  It should probably be removed, and
416 # only ac_max_sed_lines should be used.
417 : ${ac_max_here_lines=38}
419 # Identity of this package.
420 PACKAGE_NAME='TI IPC'
421 PACKAGE_TARNAME='ti-ipc'
422 PACKAGE_VERSION='3.0.0'
423 PACKAGE_STRING='TI IPC 3.0.0'
424 PACKAGE_BUGREPORT=''
426 ac_unique_file="packages/ti/ipc/MessageQ.h"
427 # Factoring default headers for most tests.
428 ac_includes_default="\
429 #include <stdio.h>
430 #if HAVE_SYS_TYPES_H
431 # include <sys/types.h>
432 #endif
433 #if HAVE_SYS_STAT_H
434 # include <sys/stat.h>
435 #endif
436 #if STDC_HEADERS
437 # include <stdlib.h>
438 # include <stddef.h>
439 #else
440 # if HAVE_STDLIB_H
441 #  include <stdlib.h>
442 # endif
443 #endif
444 #if HAVE_STRING_H
445 # if !STDC_HEADERS && HAVE_MEMORY_H
446 #  include <memory.h>
447 # endif
448 # include <string.h>
449 #endif
450 #if HAVE_STRINGS_H
451 # include <strings.h>
452 #endif
453 #if HAVE_INTTYPES_H
454 # include <inttypes.h>
455 #else
456 # if HAVE_STDINT_H
457 #  include <stdint.h>
458 # endif
459 #endif
460 #if HAVE_UNISTD_H
461 # include <unistd.h>
462 #endif"
464 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL AM_CFLAGS AM_LDFLAGS PLATFORM CMEM_INSTALL_DIR OMAPL138_TRUE OMAPL138_FALSE 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
947 # Report the --help message.
949 if test "$ac_init_help" = "long"; then
950   # Omit some internal or obsolete options to make the list less imposing.
951   # This message is too long to be a string in the A/UX 3.1 sh.
952   cat <<_ACEOF
953 \`configure' configures TI IPC 3.0.0 to adapt to many kinds of systems.
955 Usage: $0 [OPTION]... [VAR=VALUE]...
957 To assign environment variables (e.g., CC, CFLAGS...), specify them as
958 VAR=VALUE.  See below for descriptions of some of the useful variables.
960 Defaults for the options are specified in brackets.
962 Configuration:
963   -h, --help              display this help and exit
964       --help=short        display options specific to this package
965       --help=recursive    display the short help of all the included packages
966   -V, --version           display version information and exit
967   -q, --quiet, --silent   do not print \`checking...' messages
968       --cache-file=FILE   cache test results in FILE [disabled]
969   -C, --config-cache      alias for \`--cache-file=config.cache'
970   -n, --no-create         do not create output files
971       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
973 _ACEOF
975   cat <<_ACEOF
976 Installation directories:
977   --prefix=PREFIX         install architecture-independent files in PREFIX
978                           [$ac_default_prefix]
979   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
980                           [PREFIX]
982 By default, \`make install' will install all the files in
983 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
984 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
985 for instance \`--prefix=\$HOME'.
987 For better control, use the options below.
989 Fine tuning of the installation directories:
990   --bindir=DIR           user executables [EPREFIX/bin]
991   --sbindir=DIR          system admin executables [EPREFIX/sbin]
992   --libexecdir=DIR       program executables [EPREFIX/libexec]
993   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
994   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
995   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
996   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
997   --libdir=DIR           object code libraries [EPREFIX/lib]
998   --includedir=DIR       C header files [PREFIX/include]
999   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1000   --infodir=DIR          info documentation [PREFIX/info]
1001   --mandir=DIR           man documentation [PREFIX/man]
1002 _ACEOF
1004   cat <<\_ACEOF
1006 Program names:
1007   --program-prefix=PREFIX            prepend PREFIX to installed program names
1008   --program-suffix=SUFFIX            append SUFFIX to installed program names
1009   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1011 System types:
1012   --build=BUILD     configure for building on BUILD [guessed]
1013   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1014 _ACEOF
1015 fi
1017 if test -n "$ac_init_help"; then
1018   case $ac_init_help in
1019      short | recursive ) echo "Configuration of TI IPC 3.0.0:";;
1020    esac
1021   cat <<\_ACEOF
1023 Optional Features:
1024   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1025   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1026   --enable-maintainer-mode  enable make rules and dependencies not useful
1027                           (and sometimes confusing) to the casual installer
1028   --enable-shared[=PKGS]
1029                           build shared libraries [default=yes]
1030   --enable-static[=PKGS]
1031                           build static libraries [default=yes]
1032   --enable-fast-install[=PKGS]
1033                           optimize for fast installation [default=yes]
1034   --disable-dependency-tracking  speeds up one-time build
1035   --enable-dependency-tracking   do not reject slow dependency extractors
1036   --disable-libtool-lock  avoid locking (might break parallel builds)
1038 Optional Packages:
1039   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1040   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1041   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1042   --with-pic              try to use only PIC/non-PIC objects [default=use
1043                           both]
1044   --with-tags[=TAGS]
1045                           include additional configurations [automatic]
1047 Some influential environment variables:
1048   CC          C compiler command
1049   CFLAGS      C compiler flags
1050   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1051               nonstandard directory <lib dir>
1052   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1053               headers in a nonstandard directory <include dir>
1054   CPP         C preprocessor
1055   CXX         C++ compiler command
1056   CXXFLAGS    C++ compiler flags
1057   CXXCPP      C++ preprocessor
1058   PLATFORM    Platform to build. Options are: 'omapl138' 'omap4330' 'tci6614'
1059               and 'tci6638'. If not defined all platforms will be built.
1060   CMEM_INSTALL_DIR
1061               Installation path directory to the CMEM libraries
1063 Use these variables to override the choices made by `configure' or to help
1064 it to find libraries and programs with nonstandard names/locations.
1066 _ACEOF
1067 fi
1069 if test "$ac_init_help" = "recursive"; then
1070   # If there are subdirs, report their specific --help.
1071   ac_popdir=`pwd`
1072   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1073     test -d $ac_dir || continue
1074     ac_builddir=.
1076 if test "$ac_dir" != .; then
1077   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1078   # A "../" for each directory in $ac_dir_suffix.
1079   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1080 else
1081   ac_dir_suffix= ac_top_builddir=
1082 fi
1084 case $srcdir in
1085   .)  # No --srcdir option.  We are building in place.
1086     ac_srcdir=.
1087     if test -z "$ac_top_builddir"; then
1088        ac_top_srcdir=.
1089     else
1090        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1091     fi ;;
1092   [\\/]* | ?:[\\/]* )  # Absolute path.
1093     ac_srcdir=$srcdir$ac_dir_suffix;
1094     ac_top_srcdir=$srcdir ;;
1095   *) # Relative path.
1096     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1097     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1098 esac
1100 # Do not use `cd foo && pwd` to compute absolute paths, because
1101 # the directories may not exist.
1102 case `pwd` in
1103 .) ac_abs_builddir="$ac_dir";;
1104 *)
1105   case "$ac_dir" in
1106   .) ac_abs_builddir=`pwd`;;
1107   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1108   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1109   esac;;
1110 esac
1111 case $ac_abs_builddir in
1112 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1113 *)
1114   case ${ac_top_builddir}. in
1115   .) ac_abs_top_builddir=$ac_abs_builddir;;
1116   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1117   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1118   esac;;
1119 esac
1120 case $ac_abs_builddir in
1121 .) ac_abs_srcdir=$ac_srcdir;;
1122 *)
1123   case $ac_srcdir in
1124   .) ac_abs_srcdir=$ac_abs_builddir;;
1125   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1126   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1127   esac;;
1128 esac
1129 case $ac_abs_builddir in
1130 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1131 *)
1132   case $ac_top_srcdir in
1133   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1134   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1135   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1136   esac;;
1137 esac
1139     cd $ac_dir
1140     # Check for guested configure; otherwise get Cygnus style configure.
1141     if test -f $ac_srcdir/configure.gnu; then
1142       echo
1143       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1144     elif test -f $ac_srcdir/configure; then
1145       echo
1146       $SHELL $ac_srcdir/configure  --help=recursive
1147     elif test -f $ac_srcdir/configure.ac ||
1148            test -f $ac_srcdir/configure.in; then
1149       echo
1150       $ac_configure --help
1151     else
1152       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1153     fi
1154     cd $ac_popdir
1155   done
1156 fi
1158 test -n "$ac_init_help" && exit 0
1159 if $ac_init_version; then
1160   cat <<\_ACEOF
1161 TI IPC configure 3.0.0
1162 generated by GNU Autoconf 2.59
1164 Copyright (C) 2003 Free Software Foundation, Inc.
1165 This configure script is free software; the Free Software Foundation
1166 gives unlimited permission to copy, distribute and modify it.
1167 _ACEOF
1168   exit 0
1169 fi
1170 exec 5>config.log
1171 cat >&5 <<_ACEOF
1172 This file contains any messages produced by compilers while
1173 running configure, to aid debugging if configure makes a mistake.
1175 It was created by TI IPC $as_me 3.0.0, which was
1176 generated by GNU Autoconf 2.59.  Invocation command line was
1178   $ $0 $@
1180 _ACEOF
1182 cat <<_ASUNAME
1183 ## --------- ##
1184 ## Platform. ##
1185 ## --------- ##
1187 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1188 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1189 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1190 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1191 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1193 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1194 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1196 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1197 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1198 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1199 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1200 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1201 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1202 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1204 _ASUNAME
1206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1207 for as_dir in $PATH
1208 do
1209   IFS=$as_save_IFS
1210   test -z "$as_dir" && as_dir=.
1211   echo "PATH: $as_dir"
1212 done
1214 } >&5
1216 cat >&5 <<_ACEOF
1219 ## ----------- ##
1220 ## Core tests. ##
1221 ## ----------- ##
1223 _ACEOF
1226 # Keep a trace of the command line.
1227 # Strip out --no-create and --no-recursion so they do not pile up.
1228 # Strip out --silent because we don't want to record it for future runs.
1229 # Also quote any args containing shell meta-characters.
1230 # Make two passes to allow for proper duplicate-argument suppression.
1231 ac_configure_args=
1232 ac_configure_args0=
1233 ac_configure_args1=
1234 ac_sep=
1235 ac_must_keep_next=false
1236 for ac_pass in 1 2
1237 do
1238   for ac_arg
1239   do
1240     case $ac_arg in
1241     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1242     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1243     | -silent | --silent | --silen | --sile | --sil)
1244       continue ;;
1245     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1246       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1247     esac
1248     case $ac_pass in
1249     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1250     2)
1251       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1252       if test $ac_must_keep_next = true; then
1253         ac_must_keep_next=false # Got value, back to normal.
1254       else
1255         case $ac_arg in
1256           *=* | --config-cache | -C | -disable-* | --disable-* \
1257           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1258           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1259           | -with-* | --with-* | -without-* | --without-* | --x)
1260             case "$ac_configure_args0 " in
1261               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1262             esac
1263             ;;
1264           -* ) ac_must_keep_next=true ;;
1265         esac
1266       fi
1267       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1268       # Get rid of the leading space.
1269       ac_sep=" "
1270       ;;
1271     esac
1272   done
1273 done
1274 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1275 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1277 # When interrupted or exit'd, cleanup temporary files, and complete
1278 # config.log.  We remove comments because anyway the quotes in there
1279 # would cause problems or look ugly.
1280 # WARNING: Be sure not to use single quotes in there, as some shells,
1281 # such as our DU 5.0 friend, will then `close' the trap.
1282 trap 'exit_status=$?
1283   # Save into config.log some information that might help in debugging.
1284   {
1285     echo
1287     cat <<\_ASBOX
1288 ## ---------------- ##
1289 ## Cache variables. ##
1290 ## ---------------- ##
1291 _ASBOX
1292     echo
1293     # The following way of writing the cache mishandles newlines in values,
1295   (set) 2>&1 |
1296     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1297     *ac_space=\ *)
1298       sed -n \
1299         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1300           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1301       ;;
1302     *)
1303       sed -n \
1304         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1305       ;;
1306     esac;
1308     echo
1310     cat <<\_ASBOX
1311 ## ----------------- ##
1312 ## Output variables. ##
1313 ## ----------------- ##
1314 _ASBOX
1315     echo
1316     for ac_var in $ac_subst_vars
1317     do
1318       eval ac_val=$`echo $ac_var`
1319       echo "$ac_var='"'"'$ac_val'"'"'"
1320     done | sort
1321     echo
1323     if test -n "$ac_subst_files"; then
1324       cat <<\_ASBOX
1325 ## ------------- ##
1326 ## Output files. ##
1327 ## ------------- ##
1328 _ASBOX
1329       echo
1330       for ac_var in $ac_subst_files
1331       do
1332         eval ac_val=$`echo $ac_var`
1333         echo "$ac_var='"'"'$ac_val'"'"'"
1334       done | sort
1335       echo
1336     fi
1338     if test -s confdefs.h; then
1339       cat <<\_ASBOX
1340 ## ----------- ##
1341 ## confdefs.h. ##
1342 ## ----------- ##
1343 _ASBOX
1344       echo
1345       sed "/^$/d" confdefs.h | sort
1346       echo
1347     fi
1348     test "$ac_signal" != 0 &&
1349       echo "$as_me: caught signal $ac_signal"
1350     echo "$as_me: exit $exit_status"
1351   } >&5
1352   rm -f core *.core &&
1353   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1354     exit $exit_status
1355      ' 0
1356 for ac_signal in 1 2 13 15; do
1357   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1358 done
1359 ac_signal=0
1361 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1362 rm -rf conftest* confdefs.h
1363 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1364 echo >confdefs.h
1366 # Predefined preprocessor variables.
1368 cat >>confdefs.h <<_ACEOF
1369 #define PACKAGE_NAME "$PACKAGE_NAME"
1370 _ACEOF
1373 cat >>confdefs.h <<_ACEOF
1374 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1375 _ACEOF
1378 cat >>confdefs.h <<_ACEOF
1379 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1380 _ACEOF
1383 cat >>confdefs.h <<_ACEOF
1384 #define PACKAGE_STRING "$PACKAGE_STRING"
1385 _ACEOF
1388 cat >>confdefs.h <<_ACEOF
1389 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1390 _ACEOF
1393 # Let the site file select an alternate cache file if it wants to.
1394 # Prefer explicitly selected file to automatically selected ones.
1395 if test -z "$CONFIG_SITE"; then
1396   if test "x$prefix" != xNONE; then
1397     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1398   else
1399     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1400   fi
1401 fi
1402 for ac_site_file in $CONFIG_SITE; do
1403   if test -r "$ac_site_file"; then
1404     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1405 echo "$as_me: loading site script $ac_site_file" >&6;}
1406     sed 's/^/| /' "$ac_site_file" >&5
1407     . "$ac_site_file"
1408   fi
1409 done
1411 if test -r "$cache_file"; then
1412   # Some versions of bash will fail to source /dev/null (special
1413   # files actually), so we avoid doing that.
1414   if test -f "$cache_file"; then
1415     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1416 echo "$as_me: loading cache $cache_file" >&6;}
1417     case $cache_file in
1418       [\\/]* | ?:[\\/]* ) . $cache_file;;
1419       *)                      . ./$cache_file;;
1420     esac
1421   fi
1422 else
1423   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1424 echo "$as_me: creating cache $cache_file" >&6;}
1425   >$cache_file
1426 fi
1428 # Check that the precious variables saved in the cache have kept the same
1429 # value.
1430 ac_cache_corrupted=false
1431 for ac_var in `(set) 2>&1 |
1432                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1433   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1434   eval ac_new_set=\$ac_env_${ac_var}_set
1435   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1436   eval ac_new_val="\$ac_env_${ac_var}_value"
1437   case $ac_old_set,$ac_new_set in
1438     set,)
1439       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1440 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1441       ac_cache_corrupted=: ;;
1442     ,set)
1443       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1444 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1445       ac_cache_corrupted=: ;;
1446     ,);;
1447     *)
1448       if test "x$ac_old_val" != "x$ac_new_val"; then
1449         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1450 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1451         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1452 echo "$as_me:   former value:  $ac_old_val" >&2;}
1453         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1454 echo "$as_me:   current value: $ac_new_val" >&2;}
1455         ac_cache_corrupted=:
1456       fi;;
1457   esac
1458   # Pass precious variables to config.status.
1459   if test "$ac_new_set" = set; then
1460     case $ac_new_val in
1461     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1462       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1463     *) ac_arg=$ac_var=$ac_new_val ;;
1464     esac
1465     case " $ac_configure_args " in
1466       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1467       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1468     esac
1469   fi
1470 done
1471 if $ac_cache_corrupted; then
1472   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1473 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1474   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1475 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1476    { (exit 1); exit 1; }; }
1477 fi
1479 ac_ext=c
1480 ac_cpp='$CPP $CPPFLAGS'
1481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1512 # Check common src files to ensure integrity of the package
1515 # Set auxiliary build tools directory
1516 ac_aux_dir=
1517 for ac_dir in linux/build-aux $srcdir/linux/build-aux; do
1518   if 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/install.sh; then
1523     ac_aux_dir=$ac_dir
1524     ac_install_sh="$ac_aux_dir/install.sh -c"
1525     break
1526   elif test -f $ac_dir/shtool; then
1527     ac_aux_dir=$ac_dir
1528     ac_install_sh="$ac_aux_dir/shtool install -c"
1529     break
1530   fi
1531 done
1532 if test -z "$ac_aux_dir"; then
1533   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in linux/build-aux $srcdir/linux/build-aux" >&5
1534 echo "$as_me: error: cannot find install-sh or install.sh in linux/build-aux $srcdir/linux/build-aux" >&2;}
1535    { (exit 1); exit 1; }; }
1536 fi
1537 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1538 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1539 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1542 # Initilize automake
1543 am__api_version="1.9"
1544 # Find a good install program.  We prefer a C program (faster),
1545 # so one script is as good as another.  But avoid the broken or
1546 # incompatible versions:
1547 # SysV /etc/install, /usr/sbin/install
1548 # SunOS /usr/etc/install
1549 # IRIX /sbin/install
1550 # AIX /bin/install
1551 # AmigaOS /C/install, which installs bootblocks on floppy discs
1552 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1553 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1554 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1555 # OS/2's system install, which has a completely different semantic
1556 # ./install, which can be erroneously created by make from ./install.sh.
1557 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1558 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1559 if test -z "$INSTALL"; then
1560 if test "${ac_cv_path_install+set}" = set; then
1561   echo $ECHO_N "(cached) $ECHO_C" >&6
1562 else
1563   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1564 for as_dir in $PATH
1565 do
1566   IFS=$as_save_IFS
1567   test -z "$as_dir" && as_dir=.
1568   # Account for people who put trailing slashes in PATH elements.
1569 case $as_dir/ in
1570   ./ | .// | /cC/* | \
1571   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1572   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1573   /usr/ucb/* ) ;;
1574   *)
1575     # OSF1 and SCO ODT 3.0 have their own names for install.
1576     # Don't use installbsd from OSF since it installs stuff as root
1577     # by default.
1578     for ac_prog in ginstall scoinst install; do
1579       for ac_exec_ext in '' $ac_executable_extensions; do
1580         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1581           if test $ac_prog = install &&
1582             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1583             # AIX install.  It has an incompatible calling convention.
1584             :
1585           elif test $ac_prog = install &&
1586             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1587             # program-specific install script used by HP pwplus--don't use.
1588             :
1589           else
1590             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1591             break 3
1592           fi
1593         fi
1594       done
1595     done
1596     ;;
1597 esac
1598 done
1601 fi
1602   if test "${ac_cv_path_install+set}" = set; then
1603     INSTALL=$ac_cv_path_install
1604   else
1605     # As a last resort, use the slow shell script.  We don't cache a
1606     # path for INSTALL within a source directory, because that will
1607     # break other packages using the cache if that directory is
1608     # removed, or if the path is relative.
1609     INSTALL=$ac_install_sh
1610   fi
1611 fi
1612 echo "$as_me:$LINENO: result: $INSTALL" >&5
1613 echo "${ECHO_T}$INSTALL" >&6
1615 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1616 # It thinks the first close brace ends the variable substitution.
1617 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1619 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1621 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1623 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1624 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1625 # Just in case
1626 sleep 1
1627 echo timestamp > conftest.file
1628 # Do `set' in a subshell so we don't clobber the current shell's
1629 # arguments.  Must try -L first in case configure is actually a
1630 # symlink; some systems play weird games with the mod time of symlinks
1631 # (eg FreeBSD returns the mod time of the symlink's containing
1632 # directory).
1633 if (
1634    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1635    if test "$*" = "X"; then
1636       # -L didn't work.
1637       set X `ls -t $srcdir/configure conftest.file`
1638    fi
1639    rm -f conftest.file
1640    if test "$*" != "X $srcdir/configure conftest.file" \
1641       && test "$*" != "X conftest.file $srcdir/configure"; then
1643       # If neither matched, then we have a broken ls.  This can happen
1644       # if, for instance, CONFIG_SHELL is bash and it inherits a
1645       # broken ls alias from the environment.  This has actually
1646       # happened.  Such a system could not be considered "sane".
1647       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1648 alias in your environment" >&5
1649 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1650 alias in your environment" >&2;}
1651    { (exit 1); exit 1; }; }
1652    fi
1654    test "$2" = conftest.file
1655    )
1656 then
1657    # Ok.
1658    :
1659 else
1660    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1661 Check your system clock" >&5
1662 echo "$as_me: error: newly created file is older than distributed files!
1663 Check your system clock" >&2;}
1664    { (exit 1); exit 1; }; }
1665 fi
1666 echo "$as_me:$LINENO: result: yes" >&5
1667 echo "${ECHO_T}yes" >&6
1668 test "$program_prefix" != NONE &&
1669   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1670 # Use a double $ so make ignores it.
1671 test "$program_suffix" != NONE &&
1672   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1673 # Double any \ or $.  echo might interpret backslashes.
1674 # By default was `s,x,x', remove it if useless.
1675 cat <<\_ACEOF >conftest.sed
1676 s/[\\$]/&&/g;s/;s,x,x,$//
1677 _ACEOF
1678 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1679 rm conftest.sed
1681 # expand $ac_aux_dir to an absolute path
1682 am_aux_dir=`cd $ac_aux_dir && pwd`
1684 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1685 # Use eval to expand $SHELL
1686 if eval "$MISSING --run true"; then
1687   am_missing_run="$MISSING --run "
1688 else
1689   am_missing_run=
1690   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1691 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1692 fi
1694 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1695   # We used to keeping the `.' as first argument, in order to
1696   # allow $(mkdir_p) to be used without argument.  As in
1697   #   $(mkdir_p) $(somedir)
1698   # where $(somedir) is conditionally defined.  However this is wrong
1699   # for two reasons:
1700   #  1. if the package is installed by a user who cannot write `.'
1701   #     make install will fail,
1702   #  2. the above comment should most certainly read
1703   #     $(mkdir_p) $(DESTDIR)$(somedir)
1704   #     so it does not work when $(somedir) is undefined and
1705   #     $(DESTDIR) is not.
1706   #  To support the latter case, we have to write
1707   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1708   #  so the `.' trick is pointless.
1709   mkdir_p='mkdir -p --'
1710 else
1711   # On NextStep and OpenStep, the `mkdir' command does not
1712   # recognize any option.  It will interpret all options as
1713   # directories to create, and then abort because `.' already
1714   # exists.
1715   for d in ./-p ./--version;
1716   do
1717     test -d $d && rmdir $d
1718   done
1719   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1720   if test -f "$ac_aux_dir/mkinstalldirs"; then
1721     mkdir_p='$(mkinstalldirs)'
1722   else
1723     mkdir_p='$(install_sh) -d'
1724   fi
1725 fi
1727 for ac_prog in gawk mawk nawk awk
1728 do
1729   # Extract the first word of "$ac_prog", so it can be a program name with args.
1730 set dummy $ac_prog; ac_word=$2
1731 echo "$as_me:$LINENO: checking for $ac_word" >&5
1732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1733 if test "${ac_cv_prog_AWK+set}" = set; then
1734   echo $ECHO_N "(cached) $ECHO_C" >&6
1735 else
1736   if test -n "$AWK"; then
1737   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1738 else
1739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1740 for as_dir in $PATH
1741 do
1742   IFS=$as_save_IFS
1743   test -z "$as_dir" && as_dir=.
1744   for ac_exec_ext in '' $ac_executable_extensions; do
1745   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1746     ac_cv_prog_AWK="$ac_prog"
1747     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1748     break 2
1749   fi
1750 done
1751 done
1753 fi
1754 fi
1755 AWK=$ac_cv_prog_AWK
1756 if test -n "$AWK"; then
1757   echo "$as_me:$LINENO: result: $AWK" >&5
1758 echo "${ECHO_T}$AWK" >&6
1759 else
1760   echo "$as_me:$LINENO: result: no" >&5
1761 echo "${ECHO_T}no" >&6
1762 fi
1764   test -n "$AWK" && break
1765 done
1767 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1768 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1769 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1770 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1771   echo $ECHO_N "(cached) $ECHO_C" >&6
1772 else
1773   cat >conftest.make <<\_ACEOF
1774 all:
1775         @echo 'ac_maketemp="$(MAKE)"'
1776 _ACEOF
1777 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1778 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1779 if test -n "$ac_maketemp"; then
1780   eval ac_cv_prog_make_${ac_make}_set=yes
1781 else
1782   eval ac_cv_prog_make_${ac_make}_set=no
1783 fi
1784 rm -f conftest.make
1785 fi
1786 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1787   echo "$as_me:$LINENO: result: yes" >&5
1788 echo "${ECHO_T}yes" >&6
1789   SET_MAKE=
1790 else
1791   echo "$as_me:$LINENO: result: no" >&5
1792 echo "${ECHO_T}no" >&6
1793   SET_MAKE="MAKE=${MAKE-make}"
1794 fi
1796 rm -rf .tst 2>/dev/null
1797 mkdir .tst 2>/dev/null
1798 if test -d .tst; then
1799   am__leading_dot=.
1800 else
1801   am__leading_dot=_
1802 fi
1803 rmdir .tst 2>/dev/null
1805 # test to see if srcdir already configured
1806 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1807    test -f $srcdir/config.status; then
1808   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1809 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1810    { (exit 1); exit 1; }; }
1811 fi
1813 # test whether we have cygpath
1814 if test -z "$CYGPATH_W"; then
1815   if (cygpath --version) >/dev/null 2>/dev/null; then
1816     CYGPATH_W='cygpath -w'
1817   else
1818     CYGPATH_W=echo
1819   fi
1820 fi
1823 # Define the identity of the package.
1824  PACKAGE='ti-ipc'
1825  VERSION='3.0.0'
1828 cat >>confdefs.h <<_ACEOF
1829 #define PACKAGE "$PACKAGE"
1830 _ACEOF
1833 cat >>confdefs.h <<_ACEOF
1834 #define VERSION "$VERSION"
1835 _ACEOF
1837 # Some tools Automake needs.
1839 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1842 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1845 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1848 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1851 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1853 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1855 # Installed binaries are usually stripped using `strip' when the user
1856 # run `make install-strip'.  However `strip' might not be the right
1857 # tool to use in cross-compilation environments, therefore Automake
1858 # will honor the `STRIP' environment variable to overrule this program.
1859 if test "$cross_compiling" != no; then
1860   if test -n "$ac_tool_prefix"; then
1861   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1862 set dummy ${ac_tool_prefix}strip; ac_word=$2
1863 echo "$as_me:$LINENO: checking for $ac_word" >&5
1864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1865 if test "${ac_cv_prog_STRIP+set}" = set; then
1866   echo $ECHO_N "(cached) $ECHO_C" >&6
1867 else
1868   if test -n "$STRIP"; then
1869   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1870 else
1871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1872 for as_dir in $PATH
1873 do
1874   IFS=$as_save_IFS
1875   test -z "$as_dir" && as_dir=.
1876   for ac_exec_ext in '' $ac_executable_extensions; do
1877   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1878     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1879     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1880     break 2
1881   fi
1882 done
1883 done
1885 fi
1886 fi
1887 STRIP=$ac_cv_prog_STRIP
1888 if test -n "$STRIP"; then
1889   echo "$as_me:$LINENO: result: $STRIP" >&5
1890 echo "${ECHO_T}$STRIP" >&6
1891 else
1892   echo "$as_me:$LINENO: result: no" >&5
1893 echo "${ECHO_T}no" >&6
1894 fi
1896 fi
1897 if test -z "$ac_cv_prog_STRIP"; then
1898   ac_ct_STRIP=$STRIP
1899   # Extract the first word of "strip", so it can be a program name with args.
1900 set dummy strip; ac_word=$2
1901 echo "$as_me:$LINENO: checking for $ac_word" >&5
1902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1903 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1904   echo $ECHO_N "(cached) $ECHO_C" >&6
1905 else
1906   if test -n "$ac_ct_STRIP"; then
1907   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1908 else
1909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1910 for as_dir in $PATH
1911 do
1912   IFS=$as_save_IFS
1913   test -z "$as_dir" && as_dir=.
1914   for ac_exec_ext in '' $ac_executable_extensions; do
1915   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1916     ac_cv_prog_ac_ct_STRIP="strip"
1917     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1918     break 2
1919   fi
1920 done
1921 done
1923   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1924 fi
1925 fi
1926 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1927 if test -n "$ac_ct_STRIP"; then
1928   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1929 echo "${ECHO_T}$ac_ct_STRIP" >&6
1930 else
1931   echo "$as_me:$LINENO: result: no" >&5
1932 echo "${ECHO_T}no" >&6
1933 fi
1935   STRIP=$ac_ct_STRIP
1936 else
1937   STRIP="$ac_cv_prog_STRIP"
1938 fi
1940 fi
1941 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1943 # We need awk for the "check" target.  The system "awk" is bad on
1944 # some platforms.
1945 # Always define AMTAR for backward compatibility.
1947 AMTAR=${AMTAR-"${am_missing_run}tar"}
1949 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1956 # Disabling maintainer mode to prevent rebuild of configure script
1957 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1958 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1959     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1960 if test "${enable_maintainer_mode+set}" = set; then
1961   enableval="$enable_maintainer_mode"
1962   USE_MAINTAINER_MODE=$enableval
1963 else
1964   USE_MAINTAINER_MODE=no
1965 fi;
1966   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1967 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1970 if test $USE_MAINTAINER_MODE = yes; then
1971   MAINTAINER_MODE_TRUE=
1972   MAINTAINER_MODE_FALSE='#'
1973 else
1974   MAINTAINER_MODE_TRUE='#'
1975   MAINTAINER_MODE_FALSE=
1976 fi
1978   MAINT=$MAINTAINER_MODE_TRUE
1982 # Initalize libtool but disable fortran check
1983 # Check whether --enable-shared or --disable-shared was given.
1984 if test "${enable_shared+set}" = set; then
1985   enableval="$enable_shared"
1986   p=${PACKAGE-default}
1987     case $enableval in
1988     yes) enable_shared=yes ;;
1989     no) enable_shared=no ;;
1990     *)
1991       enable_shared=no
1992       # Look at the argument we got.  We use all the common list separators.
1993       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1994       for pkg in $enableval; do
1995         IFS="$lt_save_ifs"
1996         if test "X$pkg" = "X$p"; then
1997           enable_shared=yes
1998         fi
1999       done
2000       IFS="$lt_save_ifs"
2001       ;;
2002     esac
2003 else
2004   enable_shared=yes
2005 fi;
2007 # Check whether --enable-static or --disable-static was given.
2008 if test "${enable_static+set}" = set; then
2009   enableval="$enable_static"
2010   p=${PACKAGE-default}
2011     case $enableval in
2012     yes) enable_static=yes ;;
2013     no) enable_static=no ;;
2014     *)
2015      enable_static=no
2016       # Look at the argument we got.  We use all the common list separators.
2017       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2018       for pkg in $enableval; do
2019         IFS="$lt_save_ifs"
2020         if test "X$pkg" = "X$p"; then
2021           enable_static=yes
2022         fi
2023       done
2024       IFS="$lt_save_ifs"
2025       ;;
2026     esac
2027 else
2028   enable_static=yes
2029 fi;
2031 # Check whether --enable-fast-install or --disable-fast-install was given.
2032 if test "${enable_fast_install+set}" = set; then
2033   enableval="$enable_fast_install"
2034   p=${PACKAGE-default}
2035     case $enableval in
2036     yes) enable_fast_install=yes ;;
2037     no) enable_fast_install=no ;;
2038     *)
2039       enable_fast_install=no
2040       # Look at the argument we got.  We use all the common list separators.
2041       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2042       for pkg in $enableval; do
2043         IFS="$lt_save_ifs"
2044         if test "X$pkg" = "X$p"; then
2045           enable_fast_install=yes
2046         fi
2047       done
2048       IFS="$lt_save_ifs"
2049       ;;
2050     esac
2051 else
2052   enable_fast_install=yes
2053 fi;
2055 # Make sure we can run config.sub.
2056 $ac_config_sub sun4 >/dev/null 2>&1 ||
2057   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2058 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2059    { (exit 1); exit 1; }; }
2061 echo "$as_me:$LINENO: checking build system type" >&5
2062 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2063 if test "${ac_cv_build+set}" = set; then
2064   echo $ECHO_N "(cached) $ECHO_C" >&6
2065 else
2066   ac_cv_build_alias=$build_alias
2067 test -z "$ac_cv_build_alias" &&
2068   ac_cv_build_alias=`$ac_config_guess`
2069 test -z "$ac_cv_build_alias" &&
2070   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2071 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2072    { (exit 1); exit 1; }; }
2073 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2074   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2075 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2076    { (exit 1); exit 1; }; }
2078 fi
2079 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2080 echo "${ECHO_T}$ac_cv_build" >&6
2081 build=$ac_cv_build
2082 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2083 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2084 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2087 echo "$as_me:$LINENO: checking host system type" >&5
2088 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2089 if test "${ac_cv_host+set}" = set; then
2090   echo $ECHO_N "(cached) $ECHO_C" >&6
2091 else
2092   ac_cv_host_alias=$host_alias
2093 test -z "$ac_cv_host_alias" &&
2094   ac_cv_host_alias=$ac_cv_build_alias
2095 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2096   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2097 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2098    { (exit 1); exit 1; }; }
2100 fi
2101 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2102 echo "${ECHO_T}$ac_cv_host" >&6
2103 host=$ac_cv_host
2104 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2105 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2106 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2109 DEPDIR="${am__leading_dot}deps"
2111           ac_config_commands="$ac_config_commands depfiles"
2114 am_make=${MAKE-make}
2115 cat > confinc << 'END'
2116 am__doit:
2117         @echo done
2118 .PHONY: am__doit
2119 END
2120 # If we don't find an include directive, just comment out the code.
2121 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2122 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2123 am__include="#"
2124 am__quote=
2125 _am_result=none
2126 # First try GNU make style include.
2127 echo "include confinc" > confmf
2128 # We grep out `Entering directory' and `Leaving directory'
2129 # messages which can occur if `w' ends up in MAKEFLAGS.
2130 # In particular we don't look at `^make:' because GNU make might
2131 # be invoked under some other name (usually "gmake"), in which
2132 # case it prints its new name instead of `make'.
2133 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2134    am__include=include
2135    am__quote=
2136    _am_result=GNU
2137 fi
2138 # Now try BSD make style include.
2139 if test "$am__include" = "#"; then
2140    echo '.include "confinc"' > confmf
2141    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2142       am__include=.include
2143       am__quote="\""
2144       _am_result=BSD
2145    fi
2146 fi
2149 echo "$as_me:$LINENO: result: $_am_result" >&5
2150 echo "${ECHO_T}$_am_result" >&6
2151 rm -f confinc confmf
2153 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2154 if test "${enable_dependency_tracking+set}" = set; then
2155   enableval="$enable_dependency_tracking"
2157 fi;
2158 if test "x$enable_dependency_tracking" != xno; then
2159   am_depcomp="$ac_aux_dir/depcomp"
2160   AMDEPBACKSLASH='\'
2161 fi
2164 if test "x$enable_dependency_tracking" != xno; then
2165   AMDEP_TRUE=
2166   AMDEP_FALSE='#'
2167 else
2168   AMDEP_TRUE='#'
2169   AMDEP_FALSE=
2170 fi
2174 ac_ext=c
2175 ac_cpp='$CPP $CPPFLAGS'
2176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2179 if test -n "$ac_tool_prefix"; then
2180   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2181 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2182 echo "$as_me:$LINENO: checking for $ac_word" >&5
2183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2184 if test "${ac_cv_prog_CC+set}" = set; then
2185   echo $ECHO_N "(cached) $ECHO_C" >&6
2186 else
2187   if test -n "$CC"; then
2188   ac_cv_prog_CC="$CC" # Let the user override the test.
2189 else
2190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2191 for as_dir in $PATH
2192 do
2193   IFS=$as_save_IFS
2194   test -z "$as_dir" && as_dir=.
2195   for ac_exec_ext in '' $ac_executable_extensions; do
2196   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2197     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2198     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2199     break 2
2200   fi
2201 done
2202 done
2204 fi
2205 fi
2206 CC=$ac_cv_prog_CC
2207 if test -n "$CC"; then
2208   echo "$as_me:$LINENO: result: $CC" >&5
2209 echo "${ECHO_T}$CC" >&6
2210 else
2211   echo "$as_me:$LINENO: result: no" >&5
2212 echo "${ECHO_T}no" >&6
2213 fi
2215 fi
2216 if test -z "$ac_cv_prog_CC"; then
2217   ac_ct_CC=$CC
2218   # Extract the first word of "gcc", so it can be a program name with args.
2219 set dummy gcc; ac_word=$2
2220 echo "$as_me:$LINENO: checking for $ac_word" >&5
2221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2222 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2223   echo $ECHO_N "(cached) $ECHO_C" >&6
2224 else
2225   if test -n "$ac_ct_CC"; then
2226   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2227 else
2228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2229 for as_dir in $PATH
2230 do
2231   IFS=$as_save_IFS
2232   test -z "$as_dir" && as_dir=.
2233   for ac_exec_ext in '' $ac_executable_extensions; do
2234   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2235     ac_cv_prog_ac_ct_CC="gcc"
2236     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2237     break 2
2238   fi
2239 done
2240 done
2242 fi
2243 fi
2244 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2245 if test -n "$ac_ct_CC"; then
2246   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2247 echo "${ECHO_T}$ac_ct_CC" >&6
2248 else
2249   echo "$as_me:$LINENO: result: no" >&5
2250 echo "${ECHO_T}no" >&6
2251 fi
2253   CC=$ac_ct_CC
2254 else
2255   CC="$ac_cv_prog_CC"
2256 fi
2258 if test -z "$CC"; then
2259   if test -n "$ac_tool_prefix"; then
2260   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2261 set dummy ${ac_tool_prefix}cc; ac_word=$2
2262 echo "$as_me:$LINENO: checking for $ac_word" >&5
2263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2264 if test "${ac_cv_prog_CC+set}" = set; then
2265   echo $ECHO_N "(cached) $ECHO_C" >&6
2266 else
2267   if test -n "$CC"; then
2268   ac_cv_prog_CC="$CC" # Let the user override the test.
2269 else
2270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2271 for as_dir in $PATH
2272 do
2273   IFS=$as_save_IFS
2274   test -z "$as_dir" && as_dir=.
2275   for ac_exec_ext in '' $ac_executable_extensions; do
2276   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2277     ac_cv_prog_CC="${ac_tool_prefix}cc"
2278     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2279     break 2
2280   fi
2281 done
2282 done
2284 fi
2285 fi
2286 CC=$ac_cv_prog_CC
2287 if test -n "$CC"; then
2288   echo "$as_me:$LINENO: result: $CC" >&5
2289 echo "${ECHO_T}$CC" >&6
2290 else
2291   echo "$as_me:$LINENO: result: no" >&5
2292 echo "${ECHO_T}no" >&6
2293 fi
2295 fi
2296 if test -z "$ac_cv_prog_CC"; then
2297   ac_ct_CC=$CC
2298   # Extract the first word of "cc", so it can be a program name with args.
2299 set dummy cc; ac_word=$2
2300 echo "$as_me:$LINENO: checking for $ac_word" >&5
2301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2302 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2303   echo $ECHO_N "(cached) $ECHO_C" >&6
2304 else
2305   if test -n "$ac_ct_CC"; then
2306   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2307 else
2308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2309 for as_dir in $PATH
2310 do
2311   IFS=$as_save_IFS
2312   test -z "$as_dir" && as_dir=.
2313   for ac_exec_ext in '' $ac_executable_extensions; do
2314   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2315     ac_cv_prog_ac_ct_CC="cc"
2316     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2317     break 2
2318   fi
2319 done
2320 done
2322 fi
2323 fi
2324 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2325 if test -n "$ac_ct_CC"; then
2326   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2327 echo "${ECHO_T}$ac_ct_CC" >&6
2328 else
2329   echo "$as_me:$LINENO: result: no" >&5
2330 echo "${ECHO_T}no" >&6
2331 fi
2333   CC=$ac_ct_CC
2334 else
2335   CC="$ac_cv_prog_CC"
2336 fi
2338 fi
2339 if test -z "$CC"; then
2340   # Extract the first word of "cc", so it can be a program name with args.
2341 set dummy cc; ac_word=$2
2342 echo "$as_me:$LINENO: checking for $ac_word" >&5
2343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2344 if test "${ac_cv_prog_CC+set}" = set; then
2345   echo $ECHO_N "(cached) $ECHO_C" >&6
2346 else
2347   if test -n "$CC"; then
2348   ac_cv_prog_CC="$CC" # Let the user override the test.
2349 else
2350   ac_prog_rejected=no
2351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2352 for as_dir in $PATH
2353 do
2354   IFS=$as_save_IFS
2355   test -z "$as_dir" && as_dir=.
2356   for ac_exec_ext in '' $ac_executable_extensions; do
2357   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2358     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2359        ac_prog_rejected=yes
2360        continue
2361      fi
2362     ac_cv_prog_CC="cc"
2363     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2364     break 2
2365   fi
2366 done
2367 done
2369 if test $ac_prog_rejected = yes; then
2370   # We found a bogon in the path, so make sure we never use it.
2371   set dummy $ac_cv_prog_CC
2372   shift
2373   if test $# != 0; then
2374     # We chose a different compiler from the bogus one.
2375     # However, it has the same basename, so the bogon will be chosen
2376     # first if we set CC to just the basename; use the full file name.
2377     shift
2378     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2379   fi
2380 fi
2381 fi
2382 fi
2383 CC=$ac_cv_prog_CC
2384 if test -n "$CC"; then
2385   echo "$as_me:$LINENO: result: $CC" >&5
2386 echo "${ECHO_T}$CC" >&6
2387 else
2388   echo "$as_me:$LINENO: result: no" >&5
2389 echo "${ECHO_T}no" >&6
2390 fi
2392 fi
2393 if test -z "$CC"; then
2394   if test -n "$ac_tool_prefix"; then
2395   for ac_prog in cl
2396   do
2397     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2398 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2399 echo "$as_me:$LINENO: checking for $ac_word" >&5
2400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2401 if test "${ac_cv_prog_CC+set}" = set; then
2402   echo $ECHO_N "(cached) $ECHO_C" >&6
2403 else
2404   if test -n "$CC"; then
2405   ac_cv_prog_CC="$CC" # Let the user override the test.
2406 else
2407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2408 for as_dir in $PATH
2409 do
2410   IFS=$as_save_IFS
2411   test -z "$as_dir" && as_dir=.
2412   for ac_exec_ext in '' $ac_executable_extensions; do
2413   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2414     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2415     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2416     break 2
2417   fi
2418 done
2419 done
2421 fi
2422 fi
2423 CC=$ac_cv_prog_CC
2424 if test -n "$CC"; then
2425   echo "$as_me:$LINENO: result: $CC" >&5
2426 echo "${ECHO_T}$CC" >&6
2427 else
2428   echo "$as_me:$LINENO: result: no" >&5
2429 echo "${ECHO_T}no" >&6
2430 fi
2432     test -n "$CC" && break
2433   done
2434 fi
2435 if test -z "$CC"; then
2436   ac_ct_CC=$CC
2437   for ac_prog in cl
2438 do
2439   # Extract the first word of "$ac_prog", so it can be a program name with args.
2440 set dummy $ac_prog; ac_word=$2
2441 echo "$as_me:$LINENO: checking for $ac_word" >&5
2442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2443 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2444   echo $ECHO_N "(cached) $ECHO_C" >&6
2445 else
2446   if test -n "$ac_ct_CC"; then
2447   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2448 else
2449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2450 for as_dir in $PATH
2451 do
2452   IFS=$as_save_IFS
2453   test -z "$as_dir" && as_dir=.
2454   for ac_exec_ext in '' $ac_executable_extensions; do
2455   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2456     ac_cv_prog_ac_ct_CC="$ac_prog"
2457     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2458     break 2
2459   fi
2460 done
2461 done
2463 fi
2464 fi
2465 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2466 if test -n "$ac_ct_CC"; then
2467   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2468 echo "${ECHO_T}$ac_ct_CC" >&6
2469 else
2470   echo "$as_me:$LINENO: result: no" >&5
2471 echo "${ECHO_T}no" >&6
2472 fi
2474   test -n "$ac_ct_CC" && break
2475 done
2477   CC=$ac_ct_CC
2478 fi
2480 fi
2483 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2484 See \`config.log' for more details." >&5
2485 echo "$as_me: error: no acceptable C compiler found in \$PATH
2486 See \`config.log' for more details." >&2;}
2487    { (exit 1); exit 1; }; }
2489 # Provide some information about the compiler.
2490 echo "$as_me:$LINENO:" \
2491      "checking for C compiler version" >&5
2492 ac_compiler=`set X $ac_compile; echo $2`
2493 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2494   (eval $ac_compiler --version </dev/null >&5) 2>&5
2495   ac_status=$?
2496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497   (exit $ac_status); }
2498 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2499   (eval $ac_compiler -v </dev/null >&5) 2>&5
2500   ac_status=$?
2501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502   (exit $ac_status); }
2503 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2504   (eval $ac_compiler -V </dev/null >&5) 2>&5
2505   ac_status=$?
2506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507   (exit $ac_status); }
2509 cat >conftest.$ac_ext <<_ACEOF
2510 /* confdefs.h.  */
2511 _ACEOF
2512 cat confdefs.h >>conftest.$ac_ext
2513 cat >>conftest.$ac_ext <<_ACEOF
2514 /* end confdefs.h.  */
2516 int
2517 main ()
2520   ;
2521   return 0;
2523 _ACEOF
2524 ac_clean_files_save=$ac_clean_files
2525 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2526 # Try to create an executable without -o first, disregard a.out.
2527 # It will help us diagnose broken compilers, and finding out an intuition
2528 # of exeext.
2529 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2530 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2531 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2532 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2533   (eval $ac_link_default) 2>&5
2534   ac_status=$?
2535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536   (exit $ac_status); }; then
2537   # Find the output, starting from the most likely.  This scheme is
2538 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2539 # resort.
2541 # Be careful to initialize this variable, since it used to be cached.
2542 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2543 ac_cv_exeext=
2544 # b.out is created by i960 compilers.
2545 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2546 do
2547   test -f "$ac_file" || continue
2548   case $ac_file in
2549     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2550         ;;
2551     conftest.$ac_ext )
2552         # This is the source file.
2553         ;;
2554     [ab].out )
2555         # We found the default executable, but exeext='' is most
2556         # certainly right.
2557         break;;
2558     *.* )
2559         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2560         # FIXME: I believe we export ac_cv_exeext for Libtool,
2561         # but it would be cool to find out if it's true.  Does anybody
2562         # maintain Libtool? --akim.
2563         export ac_cv_exeext
2564         break;;
2565     * )
2566         break;;
2567   esac
2568 done
2569 else
2570   echo "$as_me: failed program was:" >&5
2571 sed 's/^/| /' conftest.$ac_ext >&5
2573 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2574 See \`config.log' for more details." >&5
2575 echo "$as_me: error: C compiler cannot create executables
2576 See \`config.log' for more details." >&2;}
2577    { (exit 77); exit 77; }; }
2578 fi
2580 ac_exeext=$ac_cv_exeext
2581 echo "$as_me:$LINENO: result: $ac_file" >&5
2582 echo "${ECHO_T}$ac_file" >&6
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 the C compiler works" >&5
2587 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2588 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2589 # If not cross compiling, check that we can run a simple program.
2590 if test "$cross_compiling" != yes; then
2591   if { ac_try='./$ac_file'
2592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2593   (eval $ac_try) 2>&5
2594   ac_status=$?
2595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596   (exit $ac_status); }; }; then
2597     cross_compiling=no
2598   else
2599     if test "$cross_compiling" = maybe; then
2600         cross_compiling=yes
2601     else
2602         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2603 If you meant to cross compile, use \`--host'.
2604 See \`config.log' for more details." >&5
2605 echo "$as_me: error: cannot run C compiled programs.
2606 If you meant to cross compile, use \`--host'.
2607 See \`config.log' for more details." >&2;}
2608    { (exit 1); exit 1; }; }
2609     fi
2610   fi
2611 fi
2612 echo "$as_me:$LINENO: result: yes" >&5
2613 echo "${ECHO_T}yes" >&6
2615 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2616 ac_clean_files=$ac_clean_files_save
2617 # Check the compiler produces executables we can run.  If not, either
2618 # the compiler is broken, or we cross compile.
2619 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2620 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2621 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2622 echo "${ECHO_T}$cross_compiling" >&6
2624 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2625 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2627   (eval $ac_link) 2>&5
2628   ac_status=$?
2629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630   (exit $ac_status); }; then
2631   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2632 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2633 # work properly (i.e., refer to `conftest.exe'), while it won't with
2634 # `rm'.
2635 for ac_file in conftest.exe conftest conftest.*; do
2636   test -f "$ac_file" || continue
2637   case $ac_file in
2638     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2639     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2640           export ac_cv_exeext
2641           break;;
2642     * ) break;;
2643   esac
2644 done
2645 else
2646   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2647 See \`config.log' for more details." >&5
2648 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2649 See \`config.log' for more details." >&2;}
2650    { (exit 1); exit 1; }; }
2651 fi
2653 rm -f conftest$ac_cv_exeext
2654 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2655 echo "${ECHO_T}$ac_cv_exeext" >&6
2657 rm -f conftest.$ac_ext
2658 EXEEXT=$ac_cv_exeext
2659 ac_exeext=$EXEEXT
2660 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2661 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2662 if test "${ac_cv_objext+set}" = set; then
2663   echo $ECHO_N "(cached) $ECHO_C" >&6
2664 else
2665   cat >conftest.$ac_ext <<_ACEOF
2666 /* confdefs.h.  */
2667 _ACEOF
2668 cat confdefs.h >>conftest.$ac_ext
2669 cat >>conftest.$ac_ext <<_ACEOF
2670 /* end confdefs.h.  */
2672 int
2673 main ()
2676   ;
2677   return 0;
2679 _ACEOF
2680 rm -f conftest.o conftest.obj
2681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2682   (eval $ac_compile) 2>&5
2683   ac_status=$?
2684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685   (exit $ac_status); }; then
2686   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2687   case $ac_file in
2688     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2689     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2690        break;;
2691   esac
2692 done
2693 else
2694   echo "$as_me: failed program was:" >&5
2695 sed 's/^/| /' conftest.$ac_ext >&5
2697 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2698 See \`config.log' for more details." >&5
2699 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2700 See \`config.log' for more details." >&2;}
2701    { (exit 1); exit 1; }; }
2702 fi
2704 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2705 fi
2706 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2707 echo "${ECHO_T}$ac_cv_objext" >&6
2708 OBJEXT=$ac_cv_objext
2709 ac_objext=$OBJEXT
2710 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2711 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2712 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2713   echo $ECHO_N "(cached) $ECHO_C" >&6
2714 else
2715   cat >conftest.$ac_ext <<_ACEOF
2716 /* confdefs.h.  */
2717 _ACEOF
2718 cat confdefs.h >>conftest.$ac_ext
2719 cat >>conftest.$ac_ext <<_ACEOF
2720 /* end confdefs.h.  */
2722 int
2723 main ()
2725 #ifndef __GNUC__
2726        choke me
2727 #endif
2729   ;
2730   return 0;
2732 _ACEOF
2733 rm -f conftest.$ac_objext
2734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2735   (eval $ac_compile) 2>conftest.er1
2736   ac_status=$?
2737   grep -v '^ *+' conftest.er1 >conftest.err
2738   rm -f conftest.er1
2739   cat conftest.err >&5
2740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741   (exit $ac_status); } &&
2742          { ac_try='test -z "$ac_c_werror_flag"
2743                          || test ! -s conftest.err'
2744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2745   (eval $ac_try) 2>&5
2746   ac_status=$?
2747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748   (exit $ac_status); }; } &&
2749          { ac_try='test -s conftest.$ac_objext'
2750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2751   (eval $ac_try) 2>&5
2752   ac_status=$?
2753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754   (exit $ac_status); }; }; then
2755   ac_compiler_gnu=yes
2756 else
2757   echo "$as_me: failed program was:" >&5
2758 sed 's/^/| /' conftest.$ac_ext >&5
2760 ac_compiler_gnu=no
2761 fi
2762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2763 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2765 fi
2766 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2767 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2768 GCC=`test $ac_compiler_gnu = yes && echo yes`
2769 ac_test_CFLAGS=${CFLAGS+set}
2770 ac_save_CFLAGS=$CFLAGS
2771 CFLAGS="-g"
2772 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2773 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2774 if test "${ac_cv_prog_cc_g+set}" = set; then
2775   echo $ECHO_N "(cached) $ECHO_C" >&6
2776 else
2777   cat >conftest.$ac_ext <<_ACEOF
2778 /* confdefs.h.  */
2779 _ACEOF
2780 cat confdefs.h >>conftest.$ac_ext
2781 cat >>conftest.$ac_ext <<_ACEOF
2782 /* end confdefs.h.  */
2784 int
2785 main ()
2788   ;
2789   return 0;
2791 _ACEOF
2792 rm -f conftest.$ac_objext
2793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2794   (eval $ac_compile) 2>conftest.er1
2795   ac_status=$?
2796   grep -v '^ *+' conftest.er1 >conftest.err
2797   rm -f conftest.er1
2798   cat conftest.err >&5
2799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800   (exit $ac_status); } &&
2801          { ac_try='test -z "$ac_c_werror_flag"
2802                          || test ! -s conftest.err'
2803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2804   (eval $ac_try) 2>&5
2805   ac_status=$?
2806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807   (exit $ac_status); }; } &&
2808          { ac_try='test -s conftest.$ac_objext'
2809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2810   (eval $ac_try) 2>&5
2811   ac_status=$?
2812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813   (exit $ac_status); }; }; then
2814   ac_cv_prog_cc_g=yes
2815 else
2816   echo "$as_me: failed program was:" >&5
2817 sed 's/^/| /' conftest.$ac_ext >&5
2819 ac_cv_prog_cc_g=no
2820 fi
2821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2822 fi
2823 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2824 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2825 if test "$ac_test_CFLAGS" = set; then
2826   CFLAGS=$ac_save_CFLAGS
2827 elif test $ac_cv_prog_cc_g = yes; then
2828   if test "$GCC" = yes; then
2829     CFLAGS="-g -O2"
2830   else
2831     CFLAGS="-g"
2832   fi
2833 else
2834   if test "$GCC" = yes; then
2835     CFLAGS="-O2"
2836   else
2837     CFLAGS=
2838   fi
2839 fi
2840 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2841 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2842 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2843   echo $ECHO_N "(cached) $ECHO_C" >&6
2844 else
2845   ac_cv_prog_cc_stdc=no
2846 ac_save_CC=$CC
2847 cat >conftest.$ac_ext <<_ACEOF
2848 /* confdefs.h.  */
2849 _ACEOF
2850 cat confdefs.h >>conftest.$ac_ext
2851 cat >>conftest.$ac_ext <<_ACEOF
2852 /* end confdefs.h.  */
2853 #include <stdarg.h>
2854 #include <stdio.h>
2855 #include <sys/types.h>
2856 #include <sys/stat.h>
2857 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2858 struct buf { int x; };
2859 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2860 static char *e (p, i)
2861      char **p;
2862      int i;
2864   return p[i];
2866 static char *f (char * (*g) (char **, int), char **p, ...)
2868   char *s;
2869   va_list v;
2870   va_start (v,p);
2871   s = g (p, va_arg (v,int));
2872   va_end (v);
2873   return s;
2876 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2877    function prototypes and stuff, but not '\xHH' hex character constants.
2878    These don't provoke an error unfortunately, instead are silently treated
2879    as 'x'.  The following induces an error, until -std1 is added to get
2880    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2881    array size at least.  It's necessary to write '\x00'==0 to get something
2882    that's true only with -std1.  */
2883 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2885 int test (int i, double x);
2886 struct s1 {int (*f) (int a);};
2887 struct s2 {int (*f) (double a);};
2888 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2889 int argc;
2890 char **argv;
2891 int
2892 main ()
2894 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2895   ;
2896   return 0;
2898 _ACEOF
2899 # Don't try gcc -ansi; that turns off useful extensions and
2900 # breaks some systems' header files.
2901 # AIX                   -qlanglvl=ansi
2902 # Ultrix and OSF/1      -std1
2903 # HP-UX 10.20 and later -Ae
2904 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2905 # SVR4                  -Xc -D__EXTENSIONS__
2906 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2907 do
2908   CC="$ac_save_CC $ac_arg"
2909   rm -f conftest.$ac_objext
2910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2911   (eval $ac_compile) 2>conftest.er1
2912   ac_status=$?
2913   grep -v '^ *+' conftest.er1 >conftest.err
2914   rm -f conftest.er1
2915   cat conftest.err >&5
2916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917   (exit $ac_status); } &&
2918          { ac_try='test -z "$ac_c_werror_flag"
2919                          || test ! -s conftest.err'
2920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2921   (eval $ac_try) 2>&5
2922   ac_status=$?
2923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924   (exit $ac_status); }; } &&
2925          { ac_try='test -s conftest.$ac_objext'
2926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2927   (eval $ac_try) 2>&5
2928   ac_status=$?
2929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930   (exit $ac_status); }; }; then
2931   ac_cv_prog_cc_stdc=$ac_arg
2932 break
2933 else
2934   echo "$as_me: failed program was:" >&5
2935 sed 's/^/| /' conftest.$ac_ext >&5
2937 fi
2938 rm -f conftest.err conftest.$ac_objext
2939 done
2940 rm -f conftest.$ac_ext conftest.$ac_objext
2941 CC=$ac_save_CC
2943 fi
2945 case "x$ac_cv_prog_cc_stdc" in
2946   x|xno)
2947     echo "$as_me:$LINENO: result: none needed" >&5
2948 echo "${ECHO_T}none needed" >&6 ;;
2949   *)
2950     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2951 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2952     CC="$CC $ac_cv_prog_cc_stdc" ;;
2953 esac
2955 # Some people use a C++ compiler to compile C.  Since we use `exit',
2956 # in C++ we need to declare it.  In case someone uses the same compiler
2957 # for both compiling C and C++ we need to have the C++ compiler decide
2958 # the declaration of exit, since it's the most demanding environment.
2959 cat >conftest.$ac_ext <<_ACEOF
2960 #ifndef __cplusplus
2961   choke me
2962 #endif
2963 _ACEOF
2964 rm -f conftest.$ac_objext
2965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2966   (eval $ac_compile) 2>conftest.er1
2967   ac_status=$?
2968   grep -v '^ *+' conftest.er1 >conftest.err
2969   rm -f conftest.er1
2970   cat conftest.err >&5
2971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972   (exit $ac_status); } &&
2973          { ac_try='test -z "$ac_c_werror_flag"
2974                          || test ! -s conftest.err'
2975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2976   (eval $ac_try) 2>&5
2977   ac_status=$?
2978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979   (exit $ac_status); }; } &&
2980          { ac_try='test -s conftest.$ac_objext'
2981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2982   (eval $ac_try) 2>&5
2983   ac_status=$?
2984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985   (exit $ac_status); }; }; then
2986   for ac_declaration in \
2987    '' \
2988    'extern "C" void std::exit (int) throw (); using std::exit;' \
2989    'extern "C" void std::exit (int); using std::exit;' \
2990    'extern "C" void exit (int) throw ();' \
2991    'extern "C" void exit (int);' \
2992    'void exit (int);'
2993 do
2994   cat >conftest.$ac_ext <<_ACEOF
2995 /* confdefs.h.  */
2996 _ACEOF
2997 cat confdefs.h >>conftest.$ac_ext
2998 cat >>conftest.$ac_ext <<_ACEOF
2999 /* end confdefs.h.  */
3000 $ac_declaration
3001 #include <stdlib.h>
3002 int
3003 main ()
3005 exit (42);
3006   ;
3007   return 0;
3009 _ACEOF
3010 rm -f conftest.$ac_objext
3011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3012   (eval $ac_compile) 2>conftest.er1
3013   ac_status=$?
3014   grep -v '^ *+' conftest.er1 >conftest.err
3015   rm -f conftest.er1
3016   cat conftest.err >&5
3017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018   (exit $ac_status); } &&
3019          { ac_try='test -z "$ac_c_werror_flag"
3020                          || test ! -s conftest.err'
3021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3022   (eval $ac_try) 2>&5
3023   ac_status=$?
3024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025   (exit $ac_status); }; } &&
3026          { ac_try='test -s conftest.$ac_objext'
3027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3028   (eval $ac_try) 2>&5
3029   ac_status=$?
3030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031   (exit $ac_status); }; }; then
3032   :
3033 else
3034   echo "$as_me: failed program was:" >&5
3035 sed 's/^/| /' conftest.$ac_ext >&5
3037 continue
3038 fi
3039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3040   cat >conftest.$ac_ext <<_ACEOF
3041 /* confdefs.h.  */
3042 _ACEOF
3043 cat confdefs.h >>conftest.$ac_ext
3044 cat >>conftest.$ac_ext <<_ACEOF
3045 /* end confdefs.h.  */
3046 $ac_declaration
3047 int
3048 main ()
3050 exit (42);
3051   ;
3052   return 0;
3054 _ACEOF
3055 rm -f conftest.$ac_objext
3056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3057   (eval $ac_compile) 2>conftest.er1
3058   ac_status=$?
3059   grep -v '^ *+' conftest.er1 >conftest.err
3060   rm -f conftest.er1
3061   cat conftest.err >&5
3062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063   (exit $ac_status); } &&
3064          { ac_try='test -z "$ac_c_werror_flag"
3065                          || test ! -s conftest.err'
3066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3067   (eval $ac_try) 2>&5
3068   ac_status=$?
3069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070   (exit $ac_status); }; } &&
3071          { ac_try='test -s conftest.$ac_objext'
3072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3073   (eval $ac_try) 2>&5
3074   ac_status=$?
3075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076   (exit $ac_status); }; }; then
3077   break
3078 else
3079   echo "$as_me: failed program was:" >&5
3080 sed 's/^/| /' conftest.$ac_ext >&5
3082 fi
3083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3084 done
3085 rm -f conftest*
3086 if test -n "$ac_declaration"; then
3087   echo '#ifdef __cplusplus' >>confdefs.h
3088   echo $ac_declaration      >>confdefs.h
3089   echo '#endif'             >>confdefs.h
3090 fi
3092 else
3093   echo "$as_me: failed program was:" >&5
3094 sed 's/^/| /' conftest.$ac_ext >&5
3096 fi
3097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3098 ac_ext=c
3099 ac_cpp='$CPP $CPPFLAGS'
3100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3104 depcc="$CC"   am_compiler_list=
3106 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3107 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3108 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3109   echo $ECHO_N "(cached) $ECHO_C" >&6
3110 else
3111   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3112   # We make a subdir and do the tests there.  Otherwise we can end up
3113   # making bogus files that we don't know about and never remove.  For
3114   # instance it was reported that on HP-UX the gcc test will end up
3115   # making a dummy file named `D' -- because `-MD' means `put the output
3116   # in D'.
3117   mkdir conftest.dir
3118   # Copy depcomp to subdir because otherwise we won't find it if we're
3119   # using a relative directory.
3120   cp "$am_depcomp" conftest.dir
3121   cd conftest.dir
3122   # We will build objects and dependencies in a subdirectory because
3123   # it helps to detect inapplicable dependency modes.  For instance
3124   # both Tru64's cc and ICC support -MD to output dependencies as a
3125   # side effect of compilation, but ICC will put the dependencies in
3126   # the current directory while Tru64 will put them in the object
3127   # directory.
3128   mkdir sub
3130   am_cv_CC_dependencies_compiler_type=none
3131   if test "$am_compiler_list" = ""; then
3132      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3133   fi
3134   for depmode in $am_compiler_list; do
3135     # Setup a source with many dependencies, because some compilers
3136     # like to wrap large dependency lists on column 80 (with \), and
3137     # we should not choose a depcomp mode which is confused by this.
3138     #
3139     # We need to recreate these files for each test, as the compiler may
3140     # overwrite some of them when testing with obscure command lines.
3141     # This happens at least with the AIX C compiler.
3142     : > sub/conftest.c
3143     for i in 1 2 3 4 5 6; do
3144       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3145       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3146       # Solaris 8's {/usr,}/bin/sh.
3147       touch sub/conftst$i.h
3148     done
3149     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3151     case $depmode in
3152     nosideeffect)
3153       # after this tag, mechanisms are not by side-effect, so they'll
3154       # only be used when explicitly requested
3155       if test "x$enable_dependency_tracking" = xyes; then
3156         continue
3157       else
3158         break
3159       fi
3160       ;;
3161     none) break ;;
3162     esac
3163     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3164     # mode.  It turns out that the SunPro C++ compiler does not properly
3165     # handle `-M -o', and we need to detect this.
3166     if depmode=$depmode \
3167        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3168        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3169        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3170          >/dev/null 2>conftest.err &&
3171        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3172        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3173        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3174       # icc doesn't choke on unknown options, it will just issue warnings
3175       # or remarks (even with -Werror).  So we grep stderr for any message
3176       # that says an option was ignored or not supported.
3177       # When given -MP, icc 7.0 and 7.1 complain thusly:
3178       #   icc: Command line warning: ignoring option '-M'; no argument required
3179       # The diagnosis changed in icc 8.0:
3180       #   icc: Command line remark: option '-MP' not supported
3181       if (grep 'ignoring option' conftest.err ||
3182           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3183         am_cv_CC_dependencies_compiler_type=$depmode
3184         break
3185       fi
3186     fi
3187   done
3189   cd ..
3190   rm -rf conftest.dir
3191 else
3192   am_cv_CC_dependencies_compiler_type=none
3193 fi
3195 fi
3196 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3197 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3198 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3202 if
3203   test "x$enable_dependency_tracking" != xno \
3204   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3205   am__fastdepCC_TRUE=
3206   am__fastdepCC_FALSE='#'
3207 else
3208   am__fastdepCC_TRUE='#'
3209   am__fastdepCC_FALSE=
3210 fi
3213 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3214 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3215 if test "${lt_cv_path_SED+set}" = set; then
3216   echo $ECHO_N "(cached) $ECHO_C" >&6
3217 else
3218   # Loop through the user's path and test for sed and gsed.
3219 # Then use that list of sed's as ones to test for truncation.
3220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3221 for as_dir in $PATH
3222 do
3223   IFS=$as_save_IFS
3224   test -z "$as_dir" && as_dir=.
3225   for lt_ac_prog in sed gsed; do
3226     for ac_exec_ext in '' $ac_executable_extensions; do
3227       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3228         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3229       fi
3230     done
3231   done
3232 done
3233 lt_ac_max=0
3234 lt_ac_count=0
3235 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3236 # along with /bin/sed that truncates output.
3237 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3238   test ! -f $lt_ac_sed && continue
3239   cat /dev/null > conftest.in
3240   lt_ac_count=0
3241   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3242   # Check for GNU sed and select it if it is found.
3243   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3244     lt_cv_path_SED=$lt_ac_sed
3245     break
3246   fi
3247   while true; do
3248     cat conftest.in conftest.in >conftest.tmp
3249     mv conftest.tmp conftest.in
3250     cp conftest.in conftest.nl
3251     echo >>conftest.nl
3252     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3253     cmp -s conftest.out conftest.nl || break
3254     # 10000 chars as input seems more than enough
3255     test $lt_ac_count -gt 10 && break
3256     lt_ac_count=`expr $lt_ac_count + 1`
3257     if test $lt_ac_count -gt $lt_ac_max; then
3258       lt_ac_max=$lt_ac_count
3259       lt_cv_path_SED=$lt_ac_sed
3260     fi
3261   done
3262 done
3264 fi
3266 SED=$lt_cv_path_SED
3267 echo "$as_me:$LINENO: result: $SED" >&5
3268 echo "${ECHO_T}$SED" >&6
3270 echo "$as_me:$LINENO: checking for egrep" >&5
3271 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3272 if test "${ac_cv_prog_egrep+set}" = set; then
3273   echo $ECHO_N "(cached) $ECHO_C" >&6
3274 else
3275   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3276     then ac_cv_prog_egrep='grep -E'
3277     else ac_cv_prog_egrep='egrep'
3278     fi
3279 fi
3280 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3281 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3282  EGREP=$ac_cv_prog_egrep
3286 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3287 if test "${with_gnu_ld+set}" = set; then
3288   withval="$with_gnu_ld"
3289   test "$withval" = no || with_gnu_ld=yes
3290 else
3291   with_gnu_ld=no
3292 fi;
3293 ac_prog=ld
3294 if test "$GCC" = yes; then
3295   # Check if gcc -print-prog-name=ld gives a path.
3296   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3297 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3298   case $host in
3299   *-*-mingw*)
3300     # gcc leaves a trailing carriage return which upsets mingw
3301     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3302   *)
3303     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3304   esac
3305   case $ac_prog in
3306     # Accept absolute paths.
3307     [\\/]* | ?:[\\/]*)
3308       re_direlt='/[^/][^/]*/\.\./'
3309       # Canonicalize the pathname of ld
3310       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3311       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3312         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3313       done
3314       test -z "$LD" && LD="$ac_prog"
3315       ;;
3316   "")
3317     # If it fails, then pretend we aren't using GCC.
3318     ac_prog=ld
3319     ;;
3320   *)
3321     # If it is relative, then search for the first ld in PATH.
3322     with_gnu_ld=unknown
3323     ;;
3324   esac
3325 elif test "$with_gnu_ld" = yes; then
3326   echo "$as_me:$LINENO: checking for GNU ld" >&5
3327 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3328 else
3329   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3330 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3331 fi
3332 if test "${lt_cv_path_LD+set}" = set; then
3333   echo $ECHO_N "(cached) $ECHO_C" >&6
3334 else
3335   if test -z "$LD"; then
3336   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3337   for ac_dir in $PATH; do
3338     IFS="$lt_save_ifs"
3339     test -z "$ac_dir" && ac_dir=.
3340     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3341       lt_cv_path_LD="$ac_dir/$ac_prog"
3342       # Check to see if the program is GNU ld.  I'd rather use --version,
3343       # but apparently some variants of GNU ld only accept -v.
3344       # Break only if it was the GNU/non-GNU ld that we prefer.
3345       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3346       *GNU* | *'with BFD'*)
3347         test "$with_gnu_ld" != no && break
3348         ;;
3349       *)
3350         test "$with_gnu_ld" != yes && break
3351         ;;
3352       esac
3353     fi
3354   done
3355   IFS="$lt_save_ifs"
3356 else
3357   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3358 fi
3359 fi
3361 LD="$lt_cv_path_LD"
3362 if test -n "$LD"; then
3363   echo "$as_me:$LINENO: result: $LD" >&5
3364 echo "${ECHO_T}$LD" >&6
3365 else
3366   echo "$as_me:$LINENO: result: no" >&5
3367 echo "${ECHO_T}no" >&6
3368 fi
3369 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3370 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3371    { (exit 1); exit 1; }; }
3372 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3373 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3374 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3375   echo $ECHO_N "(cached) $ECHO_C" >&6
3376 else
3377   # I'd rather use --version here, but apparently some GNU lds only accept -v.
3378 case `$LD -v 2>&1 </dev/null` in
3379 *GNU* | *'with BFD'*)
3380   lt_cv_prog_gnu_ld=yes
3381   ;;
3382 *)
3383   lt_cv_prog_gnu_ld=no
3384   ;;
3385 esac
3386 fi
3387 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3388 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3389 with_gnu_ld=$lt_cv_prog_gnu_ld
3392 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3393 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3394 if test "${lt_cv_ld_reload_flag+set}" = set; then
3395   echo $ECHO_N "(cached) $ECHO_C" >&6
3396 else
3397   lt_cv_ld_reload_flag='-r'
3398 fi
3399 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3400 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3401 reload_flag=$lt_cv_ld_reload_flag
3402 case $reload_flag in
3403 "" | " "*) ;;
3404 *) reload_flag=" $reload_flag" ;;
3405 esac
3406 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3407 case $host_os in
3408   darwin*)
3409     if test "$GCC" = yes; then
3410       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3411     else
3412       reload_cmds='$LD$reload_flag -o $output$reload_objs'
3413     fi
3414     ;;
3415 esac
3417 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3418 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3419 if test "${lt_cv_path_NM+set}" = set; then
3420   echo $ECHO_N "(cached) $ECHO_C" >&6
3421 else
3422   if test -n "$NM"; then
3423   # Let the user override the test.
3424   lt_cv_path_NM="$NM"
3425 else
3426   lt_nm_to_check="${ac_tool_prefix}nm"
3427   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3428     lt_nm_to_check="$lt_nm_to_check nm"
3429   fi
3430   for lt_tmp_nm in $lt_nm_to_check; do
3431     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3432     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3433       IFS="$lt_save_ifs"
3434       test -z "$ac_dir" && ac_dir=.
3435       tmp_nm="$ac_dir/$lt_tmp_nm"
3436       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3437         # Check to see if the nm accepts a BSD-compat flag.
3438         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3439         #   nm: unknown option "B" ignored
3440         # Tru64's nm complains that /dev/null is an invalid object file
3441         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3442         */dev/null* | *'Invalid file or object type'*)
3443           lt_cv_path_NM="$tmp_nm -B"
3444           break
3445           ;;
3446         *)
3447           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3448           */dev/null*)
3449             lt_cv_path_NM="$tmp_nm -p"
3450             break
3451             ;;
3452           *)
3453             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3454             continue # so that we can try to find one that supports BSD flags
3455             ;;
3456           esac
3457           ;;
3458         esac
3459       fi
3460     done
3461     IFS="$lt_save_ifs"
3462   done
3463   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3464 fi
3465 fi
3466 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3467 echo "${ECHO_T}$lt_cv_path_NM" >&6
3468 NM="$lt_cv_path_NM"
3470 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3471 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3472 LN_S=$as_ln_s
3473 if test "$LN_S" = "ln -s"; then
3474   echo "$as_me:$LINENO: result: yes" >&5
3475 echo "${ECHO_T}yes" >&6
3476 else
3477   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3478 echo "${ECHO_T}no, using $LN_S" >&6
3479 fi
3481 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3482 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3483 if test "${lt_cv_deplibs_check_method+set}" = set; then
3484   echo $ECHO_N "(cached) $ECHO_C" >&6
3485 else
3486   lt_cv_file_magic_cmd='$MAGIC_CMD'
3487 lt_cv_file_magic_test_file=
3488 lt_cv_deplibs_check_method='unknown'
3489 # Need to set the preceding variable on all platforms that support
3490 # interlibrary dependencies.
3491 # 'none' -- dependencies not supported.
3492 # `unknown' -- same as none, but documents that we really don't know.
3493 # 'pass_all' -- all dependencies passed with no checks.
3494 # 'test_compile' -- check by making test program.
3495 # 'file_magic [[regex]]' -- check by looking for files in library path
3496 # which responds to the $file_magic_cmd with a given extended regex.
3497 # If you have `file' or equivalent on your system and you're not sure
3498 # whether `pass_all' will *always* work, you probably want this one.
3500 case $host_os in
3501 aix4* | aix5*)
3502   lt_cv_deplibs_check_method=pass_all
3503   ;;
3505 beos*)
3506   lt_cv_deplibs_check_method=pass_all
3507   ;;
3509 bsdi[45]*)
3510   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3511   lt_cv_file_magic_cmd='/usr/bin/file -L'
3512   lt_cv_file_magic_test_file=/shlib/libc.so
3513   ;;
3515 cygwin*)
3516   # func_win32_libid is a shell function defined in ltmain.sh
3517   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3518   lt_cv_file_magic_cmd='func_win32_libid'
3519   ;;
3521 mingw* | pw32*)
3522   # Base MSYS/MinGW do not provide the 'file' command needed by
3523   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3524   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3525   lt_cv_file_magic_cmd='$OBJDUMP -f'
3526   ;;
3528 darwin* | rhapsody*)
3529   lt_cv_deplibs_check_method=pass_all
3530   ;;
3532 freebsd* | kfreebsd*-gnu | dragonfly*)
3533   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3534     case $host_cpu in
3535     i*86 )
3536       # Not sure whether the presence of OpenBSD here was a mistake.
3537       # Let's accept both of them until this is cleared up.
3538       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3539       lt_cv_file_magic_cmd=/usr/bin/file
3540       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3541       ;;
3542     esac
3543   else
3544     lt_cv_deplibs_check_method=pass_all
3545   fi
3546   ;;
3548 gnu*)
3549   lt_cv_deplibs_check_method=pass_all
3550   ;;
3552 hpux10.20* | hpux11*)
3553   lt_cv_file_magic_cmd=/usr/bin/file
3554   case $host_cpu in
3555   ia64*)
3556     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3557     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3558     ;;
3559   hppa*64*)
3560     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]'
3561     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3562     ;;
3563   *)
3564     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3565     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3566     ;;
3567   esac
3568   ;;
3570 interix3*)
3571   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3572   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3573   ;;
3575 irix5* | irix6* | nonstopux*)
3576   case $LD in
3577   *-32|*"-32 ") libmagic=32-bit;;
3578   *-n32|*"-n32 ") libmagic=N32;;
3579   *-64|*"-64 ") libmagic=64-bit;;
3580   *) libmagic=never-match;;
3581   esac
3582   lt_cv_deplibs_check_method=pass_all
3583   ;;
3585 # This must be Linux ELF.
3586 linux*)
3587   lt_cv_deplibs_check_method=pass_all
3588   ;;
3590 netbsd*)
3591   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3592     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3593   else
3594     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3595   fi
3596   ;;
3598 newos6*)
3599   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3600   lt_cv_file_magic_cmd=/usr/bin/file
3601   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3602   ;;
3604 nto-qnx*)
3605   lt_cv_deplibs_check_method=unknown
3606   ;;
3608 openbsd*)
3609   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3610     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3611   else
3612     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3613   fi
3614   ;;
3616 osf3* | osf4* | osf5*)
3617   lt_cv_deplibs_check_method=pass_all
3618   ;;
3620 solaris*)
3621   lt_cv_deplibs_check_method=pass_all
3622   ;;
3624 sysv4 | sysv4.3*)
3625   case $host_vendor in
3626   motorola)
3627     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]'
3628     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3629     ;;
3630   ncr)
3631     lt_cv_deplibs_check_method=pass_all
3632     ;;
3633   sequent)
3634     lt_cv_file_magic_cmd='/bin/file'
3635     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3636     ;;
3637   sni)
3638     lt_cv_file_magic_cmd='/bin/file'
3639     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3640     lt_cv_file_magic_test_file=/lib/libc.so
3641     ;;
3642   siemens)
3643     lt_cv_deplibs_check_method=pass_all
3644     ;;
3645   pc)
3646     lt_cv_deplibs_check_method=pass_all
3647     ;;
3648   esac
3649   ;;
3651 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3652   lt_cv_deplibs_check_method=pass_all
3653   ;;
3654 esac
3656 fi
3657 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3658 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3659 file_magic_cmd=$lt_cv_file_magic_cmd
3660 deplibs_check_method=$lt_cv_deplibs_check_method
3661 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3666 # If no C compiler was specified, use CC.
3667 LTCC=${LTCC-"$CC"}
3669 # If no C compiler flags were specified, use CFLAGS.
3670 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3672 # Allow CC to be a program name with arguments.
3673 compiler=$CC
3676 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3677 if test "${enable_libtool_lock+set}" = set; then
3678   enableval="$enable_libtool_lock"
3680 fi;
3681 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3683 # Some flags need to be propagated to the compiler or linker for good
3684 # libtool support.
3685 case $host in
3686 ia64-*-hpux*)
3687   # Find out which ABI we are using.
3688   echo 'int i;' > conftest.$ac_ext
3689   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3690   (eval $ac_compile) 2>&5
3691   ac_status=$?
3692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693   (exit $ac_status); }; then
3694     case `/usr/bin/file conftest.$ac_objext` in
3695     *ELF-32*)
3696       HPUX_IA64_MODE="32"
3697       ;;
3698     *ELF-64*)
3699       HPUX_IA64_MODE="64"
3700       ;;
3701     esac
3702   fi
3703   rm -rf conftest*
3704   ;;
3705 *-*-irix6*)
3706   # Find out which ABI we are using.
3707   echo '#line 3707 "configure"' > conftest.$ac_ext
3708   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3709   (eval $ac_compile) 2>&5
3710   ac_status=$?
3711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3712   (exit $ac_status); }; then
3713    if test "$lt_cv_prog_gnu_ld" = yes; then
3714     case `/usr/bin/file conftest.$ac_objext` in
3715     *32-bit*)
3716       LD="${LD-ld} -melf32bsmip"
3717       ;;
3718     *N32*)
3719       LD="${LD-ld} -melf32bmipn32"
3720       ;;
3721     *64-bit*)
3722       LD="${LD-ld} -melf64bmip"
3723       ;;
3724     esac
3725    else
3726     case `/usr/bin/file conftest.$ac_objext` in
3727     *32-bit*)
3728       LD="${LD-ld} -32"
3729       ;;
3730     *N32*)
3731       LD="${LD-ld} -n32"
3732       ;;
3733     *64-bit*)
3734       LD="${LD-ld} -64"
3735       ;;
3736     esac
3737    fi
3738   fi
3739   rm -rf conftest*
3740   ;;
3742 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3743   # Find out which ABI we are using.
3744   echo 'int i;' > conftest.$ac_ext
3745   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3746   (eval $ac_compile) 2>&5
3747   ac_status=$?
3748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3749   (exit $ac_status); }; then
3750     case `/usr/bin/file conftest.o` in
3751     *32-bit*)
3752       case $host in
3753         x86_64-*linux*)
3754           LD="${LD-ld} -m elf_i386"
3755           ;;
3756         ppc64-*linux*|powerpc64-*linux*)
3757           LD="${LD-ld} -m elf32ppclinux"
3758           ;;
3759         s390x-*linux*)
3760           LD="${LD-ld} -m elf_s390"
3761           ;;
3762         sparc64-*linux*)
3763           LD="${LD-ld} -m elf32_sparc"
3764           ;;
3765       esac
3766       ;;
3767     *64-bit*)
3768       case $host in
3769         x86_64-*linux*)
3770           LD="${LD-ld} -m elf_x86_64"
3771           ;;
3772         ppc*-*linux*|powerpc*-*linux*)
3773           LD="${LD-ld} -m elf64ppc"
3774           ;;
3775         s390*-*linux*)
3776           LD="${LD-ld} -m elf64_s390"
3777           ;;
3778         sparc*-*linux*)
3779           LD="${LD-ld} -m elf64_sparc"
3780           ;;
3781       esac
3782       ;;
3783     esac
3784   fi
3785   rm -rf conftest*
3786   ;;
3788 *-*-sco3.2v5*)
3789   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3790   SAVE_CFLAGS="$CFLAGS"
3791   CFLAGS="$CFLAGS -belf"
3792   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3793 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3794 if test "${lt_cv_cc_needs_belf+set}" = set; then
3795   echo $ECHO_N "(cached) $ECHO_C" >&6
3796 else
3797   ac_ext=c
3798 ac_cpp='$CPP $CPPFLAGS'
3799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3803      cat >conftest.$ac_ext <<_ACEOF
3804 /* confdefs.h.  */
3805 _ACEOF
3806 cat confdefs.h >>conftest.$ac_ext
3807 cat >>conftest.$ac_ext <<_ACEOF
3808 /* end confdefs.h.  */
3810 int
3811 main ()
3814   ;
3815   return 0;
3817 _ACEOF
3818 rm -f conftest.$ac_objext conftest$ac_exeext
3819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3820   (eval $ac_link) 2>conftest.er1
3821   ac_status=$?
3822   grep -v '^ *+' conftest.er1 >conftest.err
3823   rm -f conftest.er1
3824   cat conftest.err >&5
3825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826   (exit $ac_status); } &&
3827          { ac_try='test -z "$ac_c_werror_flag"
3828                          || test ! -s conftest.err'
3829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3830   (eval $ac_try) 2>&5
3831   ac_status=$?
3832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833   (exit $ac_status); }; } &&
3834          { ac_try='test -s conftest$ac_exeext'
3835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3836   (eval $ac_try) 2>&5
3837   ac_status=$?
3838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839   (exit $ac_status); }; }; then
3840   lt_cv_cc_needs_belf=yes
3841 else
3842   echo "$as_me: failed program was:" >&5
3843 sed 's/^/| /' conftest.$ac_ext >&5
3845 lt_cv_cc_needs_belf=no
3846 fi
3847 rm -f conftest.err conftest.$ac_objext \
3848       conftest$ac_exeext conftest.$ac_ext
3849      ac_ext=c
3850 ac_cpp='$CPP $CPPFLAGS'
3851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3855 fi
3856 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3857 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3858   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3859     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3860     CFLAGS="$SAVE_CFLAGS"
3861   fi
3862   ;;
3863 sparc*-*solaris*)
3864   # Find out which ABI we are using.
3865   echo 'int i;' > conftest.$ac_ext
3866   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3867   (eval $ac_compile) 2>&5
3868   ac_status=$?
3869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870   (exit $ac_status); }; then
3871     case `/usr/bin/file conftest.o` in
3872     *64-bit*)
3873       case $lt_cv_prog_gnu_ld in
3874       yes*) LD="${LD-ld} -m elf64_sparc" ;;
3875       *)    LD="${LD-ld} -64" ;;
3876       esac
3877       ;;
3878     esac
3879   fi
3880   rm -rf conftest*
3881   ;;
3884 esac
3886 need_locks="$enable_libtool_lock"
3889 ac_ext=c
3890 ac_cpp='$CPP $CPPFLAGS'
3891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3894 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3895 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3896 # On Suns, sometimes $CPP names a directory.
3897 if test -n "$CPP" && test -d "$CPP"; then
3898   CPP=
3899 fi
3900 if test -z "$CPP"; then
3901   if test "${ac_cv_prog_CPP+set}" = set; then
3902   echo $ECHO_N "(cached) $ECHO_C" >&6
3903 else
3904       # Double quotes because CPP needs to be expanded
3905     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3906     do
3907       ac_preproc_ok=false
3908 for ac_c_preproc_warn_flag in '' yes
3909 do
3910   # Use a header file that comes with gcc, so configuring glibc
3911   # with a fresh cross-compiler works.
3912   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3913   # <limits.h> exists even on freestanding compilers.
3914   # On the NeXT, cc -E runs the code through the compiler's parser,
3915   # not just through cpp. "Syntax error" is here to catch this case.
3916   cat >conftest.$ac_ext <<_ACEOF
3917 /* confdefs.h.  */
3918 _ACEOF
3919 cat confdefs.h >>conftest.$ac_ext
3920 cat >>conftest.$ac_ext <<_ACEOF
3921 /* end confdefs.h.  */
3922 #ifdef __STDC__
3923 # include <limits.h>
3924 #else
3925 # include <assert.h>
3926 #endif
3927                      Syntax error
3928 _ACEOF
3929 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3930   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3931   ac_status=$?
3932   grep -v '^ *+' conftest.er1 >conftest.err
3933   rm -f conftest.er1
3934   cat conftest.err >&5
3935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936   (exit $ac_status); } >/dev/null; then
3937   if test -s conftest.err; then
3938     ac_cpp_err=$ac_c_preproc_warn_flag
3939     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3940   else
3941     ac_cpp_err=
3942   fi
3943 else
3944   ac_cpp_err=yes
3945 fi
3946 if test -z "$ac_cpp_err"; then
3947   :
3948 else
3949   echo "$as_me: failed program was:" >&5
3950 sed 's/^/| /' conftest.$ac_ext >&5
3952   # Broken: fails on valid input.
3953 continue
3954 fi
3955 rm -f conftest.err conftest.$ac_ext
3957   # OK, works on sane cases.  Now check whether non-existent headers
3958   # can be detected and how.
3959   cat >conftest.$ac_ext <<_ACEOF
3960 /* confdefs.h.  */
3961 _ACEOF
3962 cat confdefs.h >>conftest.$ac_ext
3963 cat >>conftest.$ac_ext <<_ACEOF
3964 /* end confdefs.h.  */
3965 #include <ac_nonexistent.h>
3966 _ACEOF
3967 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3968   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3969   ac_status=$?
3970   grep -v '^ *+' conftest.er1 >conftest.err
3971   rm -f conftest.er1
3972   cat conftest.err >&5
3973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974   (exit $ac_status); } >/dev/null; then
3975   if test -s conftest.err; then
3976     ac_cpp_err=$ac_c_preproc_warn_flag
3977     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3978   else
3979     ac_cpp_err=
3980   fi
3981 else
3982   ac_cpp_err=yes
3983 fi
3984 if test -z "$ac_cpp_err"; then
3985   # Broken: success on invalid input.
3986 continue
3987 else
3988   echo "$as_me: failed program was:" >&5
3989 sed 's/^/| /' conftest.$ac_ext >&5
3991   # Passes both tests.
3992 ac_preproc_ok=:
3993 break
3994 fi
3995 rm -f conftest.err conftest.$ac_ext
3997 done
3998 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3999 rm -f conftest.err conftest.$ac_ext
4000 if $ac_preproc_ok; then
4001   break
4002 fi
4004     done
4005     ac_cv_prog_CPP=$CPP
4007 fi
4008   CPP=$ac_cv_prog_CPP
4009 else
4010   ac_cv_prog_CPP=$CPP
4011 fi
4012 echo "$as_me:$LINENO: result: $CPP" >&5
4013 echo "${ECHO_T}$CPP" >&6
4014 ac_preproc_ok=false
4015 for ac_c_preproc_warn_flag in '' yes
4016 do
4017   # Use a header file that comes with gcc, so configuring glibc
4018   # with a fresh cross-compiler works.
4019   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4020   # <limits.h> exists even on freestanding compilers.
4021   # On the NeXT, cc -E runs the code through the compiler's parser,
4022   # not just through cpp. "Syntax error" is here to catch this case.
4023   cat >conftest.$ac_ext <<_ACEOF
4024 /* confdefs.h.  */
4025 _ACEOF
4026 cat confdefs.h >>conftest.$ac_ext
4027 cat >>conftest.$ac_ext <<_ACEOF
4028 /* end confdefs.h.  */
4029 #ifdef __STDC__
4030 # include <limits.h>
4031 #else
4032 # include <assert.h>
4033 #endif
4034                      Syntax error
4035 _ACEOF
4036 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4037   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4038   ac_status=$?
4039   grep -v '^ *+' conftest.er1 >conftest.err
4040   rm -f conftest.er1
4041   cat conftest.err >&5
4042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043   (exit $ac_status); } >/dev/null; then
4044   if test -s conftest.err; then
4045     ac_cpp_err=$ac_c_preproc_warn_flag
4046     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4047   else
4048     ac_cpp_err=
4049   fi
4050 else
4051   ac_cpp_err=yes
4052 fi
4053 if test -z "$ac_cpp_err"; then
4054   :
4055 else
4056   echo "$as_me: failed program was:" >&5
4057 sed 's/^/| /' conftest.$ac_ext >&5
4059   # Broken: fails on valid input.
4060 continue
4061 fi
4062 rm -f conftest.err conftest.$ac_ext
4064   # OK, works on sane cases.  Now check whether non-existent headers
4065   # can be detected and how.
4066   cat >conftest.$ac_ext <<_ACEOF
4067 /* confdefs.h.  */
4068 _ACEOF
4069 cat confdefs.h >>conftest.$ac_ext
4070 cat >>conftest.$ac_ext <<_ACEOF
4071 /* end confdefs.h.  */
4072 #include <ac_nonexistent.h>
4073 _ACEOF
4074 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4075   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4076   ac_status=$?
4077   grep -v '^ *+' conftest.er1 >conftest.err
4078   rm -f conftest.er1
4079   cat conftest.err >&5
4080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081   (exit $ac_status); } >/dev/null; then
4082   if test -s conftest.err; then
4083     ac_cpp_err=$ac_c_preproc_warn_flag
4084     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4085   else
4086     ac_cpp_err=
4087   fi
4088 else
4089   ac_cpp_err=yes
4090 fi
4091 if test -z "$ac_cpp_err"; then
4092   # Broken: success on invalid input.
4093 continue
4094 else
4095   echo "$as_me: failed program was:" >&5
4096 sed 's/^/| /' conftest.$ac_ext >&5
4098   # Passes both tests.
4099 ac_preproc_ok=:
4100 break
4101 fi
4102 rm -f conftest.err conftest.$ac_ext
4104 done
4105 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4106 rm -f conftest.err conftest.$ac_ext
4107 if $ac_preproc_ok; then
4108   :
4109 else
4110   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4111 See \`config.log' for more details." >&5
4112 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4113 See \`config.log' for more details." >&2;}
4114    { (exit 1); exit 1; }; }
4115 fi
4117 ac_ext=c
4118 ac_cpp='$CPP $CPPFLAGS'
4119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4124 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4125 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4126 if test "${ac_cv_header_stdc+set}" = set; then
4127   echo $ECHO_N "(cached) $ECHO_C" >&6
4128 else
4129   cat >conftest.$ac_ext <<_ACEOF
4130 /* confdefs.h.  */
4131 _ACEOF
4132 cat confdefs.h >>conftest.$ac_ext
4133 cat >>conftest.$ac_ext <<_ACEOF
4134 /* end confdefs.h.  */
4135 #include <stdlib.h>
4136 #include <stdarg.h>
4137 #include <string.h>
4138 #include <float.h>
4140 int
4141 main ()
4144   ;
4145   return 0;
4147 _ACEOF
4148 rm -f conftest.$ac_objext
4149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4150   (eval $ac_compile) 2>conftest.er1
4151   ac_status=$?
4152   grep -v '^ *+' conftest.er1 >conftest.err
4153   rm -f conftest.er1
4154   cat conftest.err >&5
4155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156   (exit $ac_status); } &&
4157          { ac_try='test -z "$ac_c_werror_flag"
4158                          || test ! -s conftest.err'
4159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4160   (eval $ac_try) 2>&5
4161   ac_status=$?
4162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163   (exit $ac_status); }; } &&
4164          { ac_try='test -s conftest.$ac_objext'
4165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4166   (eval $ac_try) 2>&5
4167   ac_status=$?
4168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169   (exit $ac_status); }; }; then
4170   ac_cv_header_stdc=yes
4171 else
4172   echo "$as_me: failed program was:" >&5
4173 sed 's/^/| /' conftest.$ac_ext >&5
4175 ac_cv_header_stdc=no
4176 fi
4177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4179 if test $ac_cv_header_stdc = yes; then
4180   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4181   cat >conftest.$ac_ext <<_ACEOF
4182 /* confdefs.h.  */
4183 _ACEOF
4184 cat confdefs.h >>conftest.$ac_ext
4185 cat >>conftest.$ac_ext <<_ACEOF
4186 /* end confdefs.h.  */
4187 #include <string.h>
4189 _ACEOF
4190 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4191   $EGREP "memchr" >/dev/null 2>&1; then
4192   :
4193 else
4194   ac_cv_header_stdc=no
4195 fi
4196 rm -f conftest*
4198 fi
4200 if test $ac_cv_header_stdc = yes; then
4201   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4202   cat >conftest.$ac_ext <<_ACEOF
4203 /* confdefs.h.  */
4204 _ACEOF
4205 cat confdefs.h >>conftest.$ac_ext
4206 cat >>conftest.$ac_ext <<_ACEOF
4207 /* end confdefs.h.  */
4208 #include <stdlib.h>
4210 _ACEOF
4211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4212   $EGREP "free" >/dev/null 2>&1; then
4213   :
4214 else
4215   ac_cv_header_stdc=no
4216 fi
4217 rm -f conftest*
4219 fi
4221 if test $ac_cv_header_stdc = yes; then
4222   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4223   if test "$cross_compiling" = yes; then
4224   :
4225 else
4226   cat >conftest.$ac_ext <<_ACEOF
4227 /* confdefs.h.  */
4228 _ACEOF
4229 cat confdefs.h >>conftest.$ac_ext
4230 cat >>conftest.$ac_ext <<_ACEOF
4231 /* end confdefs.h.  */
4232 #include <ctype.h>
4233 #if ((' ' & 0x0FF) == 0x020)
4234 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4235 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4236 #else
4237 # define ISLOWER(c) \
4238                    (('a' <= (c) && (c) <= 'i') \
4239                      || ('j' <= (c) && (c) <= 'r') \
4240                      || ('s' <= (c) && (c) <= 'z'))
4241 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4242 #endif
4244 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4245 int
4246 main ()
4248   int i;
4249   for (i = 0; i < 256; i++)
4250     if (XOR (islower (i), ISLOWER (i))
4251         || toupper (i) != TOUPPER (i))
4252       exit(2);
4253   exit (0);
4255 _ACEOF
4256 rm -f conftest$ac_exeext
4257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4258   (eval $ac_link) 2>&5
4259   ac_status=$?
4260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4263   (eval $ac_try) 2>&5
4264   ac_status=$?
4265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266   (exit $ac_status); }; }; then
4267   :
4268 else
4269   echo "$as_me: program exited with status $ac_status" >&5
4270 echo "$as_me: failed program was:" >&5
4271 sed 's/^/| /' conftest.$ac_ext >&5
4273 ( exit $ac_status )
4274 ac_cv_header_stdc=no
4275 fi
4276 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4277 fi
4278 fi
4279 fi
4280 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4281 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4282 if test $ac_cv_header_stdc = yes; then
4284 cat >>confdefs.h <<\_ACEOF
4285 #define STDC_HEADERS 1
4286 _ACEOF
4288 fi
4290 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4300 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4301                   inttypes.h stdint.h unistd.h
4302 do
4303 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4304 echo "$as_me:$LINENO: checking for $ac_header" >&5
4305 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4306 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4307   echo $ECHO_N "(cached) $ECHO_C" >&6
4308 else
4309   cat >conftest.$ac_ext <<_ACEOF
4310 /* confdefs.h.  */
4311 _ACEOF
4312 cat confdefs.h >>conftest.$ac_ext
4313 cat >>conftest.$ac_ext <<_ACEOF
4314 /* end confdefs.h.  */
4315 $ac_includes_default
4317 #include <$ac_header>
4318 _ACEOF
4319 rm -f conftest.$ac_objext
4320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4321   (eval $ac_compile) 2>conftest.er1
4322   ac_status=$?
4323   grep -v '^ *+' conftest.er1 >conftest.err
4324   rm -f conftest.er1
4325   cat conftest.err >&5
4326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4327   (exit $ac_status); } &&
4328          { ac_try='test -z "$ac_c_werror_flag"
4329                          || test ! -s conftest.err'
4330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4331   (eval $ac_try) 2>&5
4332   ac_status=$?
4333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334   (exit $ac_status); }; } &&
4335          { ac_try='test -s conftest.$ac_objext'
4336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4337   (eval $ac_try) 2>&5
4338   ac_status=$?
4339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340   (exit $ac_status); }; }; then
4341   eval "$as_ac_Header=yes"
4342 else
4343   echo "$as_me: failed program was:" >&5
4344 sed 's/^/| /' conftest.$ac_ext >&5
4346 eval "$as_ac_Header=no"
4347 fi
4348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4349 fi
4350 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4351 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4352 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4353   cat >>confdefs.h <<_ACEOF
4354 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4355 _ACEOF
4357 fi
4359 done
4363 for ac_header in dlfcn.h
4364 do
4365 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4366 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4367   echo "$as_me:$LINENO: checking for $ac_header" >&5
4368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4370   echo $ECHO_N "(cached) $ECHO_C" >&6
4371 fi
4372 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4373 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4374 else
4375   # Is the header compilable?
4376 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4377 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4378 cat >conftest.$ac_ext <<_ACEOF
4379 /* confdefs.h.  */
4380 _ACEOF
4381 cat confdefs.h >>conftest.$ac_ext
4382 cat >>conftest.$ac_ext <<_ACEOF
4383 /* end confdefs.h.  */
4384 $ac_includes_default
4385 #include <$ac_header>
4386 _ACEOF
4387 rm -f conftest.$ac_objext
4388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4389   (eval $ac_compile) 2>conftest.er1
4390   ac_status=$?
4391   grep -v '^ *+' conftest.er1 >conftest.err
4392   rm -f conftest.er1
4393   cat conftest.err >&5
4394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395   (exit $ac_status); } &&
4396          { ac_try='test -z "$ac_c_werror_flag"
4397                          || test ! -s conftest.err'
4398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4399   (eval $ac_try) 2>&5
4400   ac_status=$?
4401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402   (exit $ac_status); }; } &&
4403          { ac_try='test -s conftest.$ac_objext'
4404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4405   (eval $ac_try) 2>&5
4406   ac_status=$?
4407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408   (exit $ac_status); }; }; then
4409   ac_header_compiler=yes
4410 else
4411   echo "$as_me: failed program was:" >&5
4412 sed 's/^/| /' conftest.$ac_ext >&5
4414 ac_header_compiler=no
4415 fi
4416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4417 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4418 echo "${ECHO_T}$ac_header_compiler" >&6
4420 # Is the header present?
4421 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4422 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4423 cat >conftest.$ac_ext <<_ACEOF
4424 /* confdefs.h.  */
4425 _ACEOF
4426 cat confdefs.h >>conftest.$ac_ext
4427 cat >>conftest.$ac_ext <<_ACEOF
4428 /* end confdefs.h.  */
4429 #include <$ac_header>
4430 _ACEOF
4431 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4432   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4433   ac_status=$?
4434   grep -v '^ *+' conftest.er1 >conftest.err
4435   rm -f conftest.er1
4436   cat conftest.err >&5
4437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4438   (exit $ac_status); } >/dev/null; then
4439   if test -s conftest.err; then
4440     ac_cpp_err=$ac_c_preproc_warn_flag
4441     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4442   else
4443     ac_cpp_err=
4444   fi
4445 else
4446   ac_cpp_err=yes
4447 fi
4448 if test -z "$ac_cpp_err"; then
4449   ac_header_preproc=yes
4450 else
4451   echo "$as_me: failed program was:" >&5
4452 sed 's/^/| /' conftest.$ac_ext >&5
4454   ac_header_preproc=no
4455 fi
4456 rm -f conftest.err conftest.$ac_ext
4457 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4458 echo "${ECHO_T}$ac_header_preproc" >&6
4460 # So?  What about this header?
4461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4462   yes:no: )
4463     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4464 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4465     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4466 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4467     ac_header_preproc=yes
4468     ;;
4469   no:yes:* )
4470     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4471 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4472     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4473 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4474     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4475 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4476     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4477 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4478     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4479 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4480     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4481 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4482     (
4483       cat <<\_ASBOX
4484 ## --------------------------------- ##
4485 ## Report this to the TI IPC lists.  ##
4486 ## --------------------------------- ##
4487 _ASBOX
4488     ) |
4489       sed "s/^/$as_me: WARNING:     /" >&2
4490     ;;
4491 esac
4492 echo "$as_me:$LINENO: checking for $ac_header" >&5
4493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4494 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4495   echo $ECHO_N "(cached) $ECHO_C" >&6
4496 else
4497   eval "$as_ac_Header=\$ac_header_preproc"
4498 fi
4499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4500 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4502 fi
4503 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4504   cat >>confdefs.h <<_ACEOF
4505 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4506 _ACEOF
4508 fi
4510 done
4512 ac_ext=cc
4513 ac_cpp='$CXXCPP $CPPFLAGS'
4514 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4515 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4516 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4517 if test -n "$ac_tool_prefix"; then
4518   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4519   do
4520     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4521 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4522 echo "$as_me:$LINENO: checking for $ac_word" >&5
4523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4524 if test "${ac_cv_prog_CXX+set}" = set; then
4525   echo $ECHO_N "(cached) $ECHO_C" >&6
4526 else
4527   if test -n "$CXX"; then
4528   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4529 else
4530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4531 for as_dir in $PATH
4532 do
4533   IFS=$as_save_IFS
4534   test -z "$as_dir" && as_dir=.
4535   for ac_exec_ext in '' $ac_executable_extensions; do
4536   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4537     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4538     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4539     break 2
4540   fi
4541 done
4542 done
4544 fi
4545 fi
4546 CXX=$ac_cv_prog_CXX
4547 if test -n "$CXX"; then
4548   echo "$as_me:$LINENO: result: $CXX" >&5
4549 echo "${ECHO_T}$CXX" >&6
4550 else
4551   echo "$as_me:$LINENO: result: no" >&5
4552 echo "${ECHO_T}no" >&6
4553 fi
4555     test -n "$CXX" && break
4556   done
4557 fi
4558 if test -z "$CXX"; then
4559   ac_ct_CXX=$CXX
4560   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4561 do
4562   # Extract the first word of "$ac_prog", so it can be a program name with args.
4563 set dummy $ac_prog; ac_word=$2
4564 echo "$as_me:$LINENO: checking for $ac_word" >&5
4565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4566 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4567   echo $ECHO_N "(cached) $ECHO_C" >&6
4568 else
4569   if test -n "$ac_ct_CXX"; then
4570   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4571 else
4572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4573 for as_dir in $PATH
4574 do
4575   IFS=$as_save_IFS
4576   test -z "$as_dir" && as_dir=.
4577   for ac_exec_ext in '' $ac_executable_extensions; do
4578   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4579     ac_cv_prog_ac_ct_CXX="$ac_prog"
4580     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4581     break 2
4582   fi
4583 done
4584 done
4586 fi
4587 fi
4588 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4589 if test -n "$ac_ct_CXX"; then
4590   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4591 echo "${ECHO_T}$ac_ct_CXX" >&6
4592 else
4593   echo "$as_me:$LINENO: result: no" >&5
4594 echo "${ECHO_T}no" >&6
4595 fi
4597   test -n "$ac_ct_CXX" && break
4598 done
4599 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4601   CXX=$ac_ct_CXX
4602 fi
4605 # Provide some information about the compiler.
4606 echo "$as_me:$LINENO:" \
4607      "checking for C++ compiler version" >&5
4608 ac_compiler=`set X $ac_compile; echo $2`
4609 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4610   (eval $ac_compiler --version </dev/null >&5) 2>&5
4611   ac_status=$?
4612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613   (exit $ac_status); }
4614 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4615   (eval $ac_compiler -v </dev/null >&5) 2>&5
4616   ac_status=$?
4617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618   (exit $ac_status); }
4619 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4620   (eval $ac_compiler -V </dev/null >&5) 2>&5
4621   ac_status=$?
4622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623   (exit $ac_status); }
4625 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4626 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4627 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4628   echo $ECHO_N "(cached) $ECHO_C" >&6
4629 else
4630   cat >conftest.$ac_ext <<_ACEOF
4631 /* confdefs.h.  */
4632 _ACEOF
4633 cat confdefs.h >>conftest.$ac_ext
4634 cat >>conftest.$ac_ext <<_ACEOF
4635 /* end confdefs.h.  */
4637 int
4638 main ()
4640 #ifndef __GNUC__
4641        choke me
4642 #endif
4644   ;
4645   return 0;
4647 _ACEOF
4648 rm -f conftest.$ac_objext
4649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4650   (eval $ac_compile) 2>conftest.er1
4651   ac_status=$?
4652   grep -v '^ *+' conftest.er1 >conftest.err
4653   rm -f conftest.er1
4654   cat conftest.err >&5
4655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656   (exit $ac_status); } &&
4657          { ac_try='test -z "$ac_cxx_werror_flag"
4658                          || test ! -s conftest.err'
4659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4660   (eval $ac_try) 2>&5
4661   ac_status=$?
4662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663   (exit $ac_status); }; } &&
4664          { ac_try='test -s conftest.$ac_objext'
4665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4666   (eval $ac_try) 2>&5
4667   ac_status=$?
4668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669   (exit $ac_status); }; }; then
4670   ac_compiler_gnu=yes
4671 else
4672   echo "$as_me: failed program was:" >&5
4673 sed 's/^/| /' conftest.$ac_ext >&5
4675 ac_compiler_gnu=no
4676 fi
4677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4678 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4680 fi
4681 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4682 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4683 GXX=`test $ac_compiler_gnu = yes && echo yes`
4684 ac_test_CXXFLAGS=${CXXFLAGS+set}
4685 ac_save_CXXFLAGS=$CXXFLAGS
4686 CXXFLAGS="-g"
4687 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4688 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4689 if test "${ac_cv_prog_cxx_g+set}" = set; then
4690   echo $ECHO_N "(cached) $ECHO_C" >&6
4691 else
4692   cat >conftest.$ac_ext <<_ACEOF
4693 /* confdefs.h.  */
4694 _ACEOF
4695 cat confdefs.h >>conftest.$ac_ext
4696 cat >>conftest.$ac_ext <<_ACEOF
4697 /* end confdefs.h.  */
4699 int
4700 main ()
4703   ;
4704   return 0;
4706 _ACEOF
4707 rm -f conftest.$ac_objext
4708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4709   (eval $ac_compile) 2>conftest.er1
4710   ac_status=$?
4711   grep -v '^ *+' conftest.er1 >conftest.err
4712   rm -f conftest.er1
4713   cat conftest.err >&5
4714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715   (exit $ac_status); } &&
4716          { ac_try='test -z "$ac_cxx_werror_flag"
4717                          || test ! -s conftest.err'
4718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4719   (eval $ac_try) 2>&5
4720   ac_status=$?
4721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722   (exit $ac_status); }; } &&
4723          { ac_try='test -s conftest.$ac_objext'
4724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4725   (eval $ac_try) 2>&5
4726   ac_status=$?
4727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728   (exit $ac_status); }; }; then
4729   ac_cv_prog_cxx_g=yes
4730 else
4731   echo "$as_me: failed program was:" >&5
4732 sed 's/^/| /' conftest.$ac_ext >&5
4734 ac_cv_prog_cxx_g=no
4735 fi
4736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4737 fi
4738 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4739 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4740 if test "$ac_test_CXXFLAGS" = set; then
4741   CXXFLAGS=$ac_save_CXXFLAGS
4742 elif test $ac_cv_prog_cxx_g = yes; then
4743   if test "$GXX" = yes; then
4744     CXXFLAGS="-g -O2"
4745   else
4746     CXXFLAGS="-g"
4747   fi
4748 else
4749   if test "$GXX" = yes; then
4750     CXXFLAGS="-O2"
4751   else
4752     CXXFLAGS=
4753   fi
4754 fi
4755 for ac_declaration in \
4756    '' \
4757    'extern "C" void std::exit (int) throw (); using std::exit;' \
4758    'extern "C" void std::exit (int); using std::exit;' \
4759    'extern "C" void exit (int) throw ();' \
4760    'extern "C" void exit (int);' \
4761    'void exit (int);'
4762 do
4763   cat >conftest.$ac_ext <<_ACEOF
4764 /* confdefs.h.  */
4765 _ACEOF
4766 cat confdefs.h >>conftest.$ac_ext
4767 cat >>conftest.$ac_ext <<_ACEOF
4768 /* end confdefs.h.  */
4769 $ac_declaration
4770 #include <stdlib.h>
4771 int
4772 main ()
4774 exit (42);
4775   ;
4776   return 0;
4778 _ACEOF
4779 rm -f conftest.$ac_objext
4780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4781   (eval $ac_compile) 2>conftest.er1
4782   ac_status=$?
4783   grep -v '^ *+' conftest.er1 >conftest.err
4784   rm -f conftest.er1
4785   cat conftest.err >&5
4786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787   (exit $ac_status); } &&
4788          { ac_try='test -z "$ac_cxx_werror_flag"
4789                          || test ! -s conftest.err'
4790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4791   (eval $ac_try) 2>&5
4792   ac_status=$?
4793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794   (exit $ac_status); }; } &&
4795          { ac_try='test -s conftest.$ac_objext'
4796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4797   (eval $ac_try) 2>&5
4798   ac_status=$?
4799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800   (exit $ac_status); }; }; then
4801   :
4802 else
4803   echo "$as_me: failed program was:" >&5
4804 sed 's/^/| /' conftest.$ac_ext >&5
4806 continue
4807 fi
4808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4809   cat >conftest.$ac_ext <<_ACEOF
4810 /* confdefs.h.  */
4811 _ACEOF
4812 cat confdefs.h >>conftest.$ac_ext
4813 cat >>conftest.$ac_ext <<_ACEOF
4814 /* end confdefs.h.  */
4815 $ac_declaration
4816 int
4817 main ()
4819 exit (42);
4820   ;
4821   return 0;
4823 _ACEOF
4824 rm -f conftest.$ac_objext
4825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4826   (eval $ac_compile) 2>conftest.er1
4827   ac_status=$?
4828   grep -v '^ *+' conftest.er1 >conftest.err
4829   rm -f conftest.er1
4830   cat conftest.err >&5
4831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4832   (exit $ac_status); } &&
4833          { ac_try='test -z "$ac_cxx_werror_flag"
4834                          || test ! -s conftest.err'
4835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4836   (eval $ac_try) 2>&5
4837   ac_status=$?
4838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839   (exit $ac_status); }; } &&
4840          { ac_try='test -s conftest.$ac_objext'
4841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4842   (eval $ac_try) 2>&5
4843   ac_status=$?
4844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4845   (exit $ac_status); }; }; then
4846   break
4847 else
4848   echo "$as_me: failed program was:" >&5
4849 sed 's/^/| /' conftest.$ac_ext >&5
4851 fi
4852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4853 done
4854 rm -f conftest*
4855 if test -n "$ac_declaration"; then
4856   echo '#ifdef __cplusplus' >>confdefs.h
4857   echo $ac_declaration      >>confdefs.h
4858   echo '#endif'             >>confdefs.h
4859 fi
4861 ac_ext=cc
4862 ac_cpp='$CXXCPP $CPPFLAGS'
4863 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4864 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4865 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4867 depcc="$CXX"  am_compiler_list=
4869 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4870 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4871 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4872   echo $ECHO_N "(cached) $ECHO_C" >&6
4873 else
4874   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4875   # We make a subdir and do the tests there.  Otherwise we can end up
4876   # making bogus files that we don't know about and never remove.  For
4877   # instance it was reported that on HP-UX the gcc test will end up
4878   # making a dummy file named `D' -- because `-MD' means `put the output
4879   # in D'.
4880   mkdir conftest.dir
4881   # Copy depcomp to subdir because otherwise we won't find it if we're
4882   # using a relative directory.
4883   cp "$am_depcomp" conftest.dir
4884   cd conftest.dir
4885   # We will build objects and dependencies in a subdirectory because
4886   # it helps to detect inapplicable dependency modes.  For instance
4887   # both Tru64's cc and ICC support -MD to output dependencies as a
4888   # side effect of compilation, but ICC will put the dependencies in
4889   # the current directory while Tru64 will put them in the object
4890   # directory.
4891   mkdir sub
4893   am_cv_CXX_dependencies_compiler_type=none
4894   if test "$am_compiler_list" = ""; then
4895      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4896   fi
4897   for depmode in $am_compiler_list; do
4898     # Setup a source with many dependencies, because some compilers
4899     # like to wrap large dependency lists on column 80 (with \), and
4900     # we should not choose a depcomp mode which is confused by this.
4901     #
4902     # We need to recreate these files for each test, as the compiler may
4903     # overwrite some of them when testing with obscure command lines.
4904     # This happens at least with the AIX C compiler.
4905     : > sub/conftest.c
4906     for i in 1 2 3 4 5 6; do
4907       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4908       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4909       # Solaris 8's {/usr,}/bin/sh.
4910       touch sub/conftst$i.h
4911     done
4912     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4914     case $depmode in
4915     nosideeffect)
4916       # after this tag, mechanisms are not by side-effect, so they'll
4917       # only be used when explicitly requested
4918       if test "x$enable_dependency_tracking" = xyes; then
4919         continue
4920       else
4921         break
4922       fi
4923       ;;
4924     none) break ;;
4925     esac
4926     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4927     # mode.  It turns out that the SunPro C++ compiler does not properly
4928     # handle `-M -o', and we need to detect this.
4929     if depmode=$depmode \
4930        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4931        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4932        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4933          >/dev/null 2>conftest.err &&
4934        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4935        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4936        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4937       # icc doesn't choke on unknown options, it will just issue warnings
4938       # or remarks (even with -Werror).  So we grep stderr for any message
4939       # that says an option was ignored or not supported.
4940       # When given -MP, icc 7.0 and 7.1 complain thusly:
4941       #   icc: Command line warning: ignoring option '-M'; no argument required
4942       # The diagnosis changed in icc 8.0:
4943       #   icc: Command line remark: option '-MP' not supported
4944       if (grep 'ignoring option' conftest.err ||
4945           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4946         am_cv_CXX_dependencies_compiler_type=$depmode
4947         break
4948       fi
4949     fi
4950   done
4952   cd ..
4953   rm -rf conftest.dir
4954 else
4955   am_cv_CXX_dependencies_compiler_type=none
4956 fi
4958 fi
4959 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4960 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4961 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4965 if
4966   test "x$enable_dependency_tracking" != xno \
4967   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4968   am__fastdepCXX_TRUE=
4969   am__fastdepCXX_FALSE='#'
4970 else
4971   am__fastdepCXX_TRUE='#'
4972   am__fastdepCXX_FALSE=
4973 fi
4978 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4979     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4980     (test "X$CXX" != "Xg++"))) ; then
4981   ac_ext=cc
4982 ac_cpp='$CXXCPP $CPPFLAGS'
4983 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4984 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4985 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4986 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4987 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4988 if test -z "$CXXCPP"; then
4989   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4990   echo $ECHO_N "(cached) $ECHO_C" >&6
4991 else
4992       # Double quotes because CXXCPP needs to be expanded
4993     for CXXCPP in "$CXX -E" "/lib/cpp"
4994     do
4995       ac_preproc_ok=false
4996 for ac_cxx_preproc_warn_flag in '' yes
4997 do
4998   # Use a header file that comes with gcc, so configuring glibc
4999   # with a fresh cross-compiler works.
5000   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5001   # <limits.h> exists even on freestanding compilers.
5002   # On the NeXT, cc -E runs the code through the compiler's parser,
5003   # not just through cpp. "Syntax error" is here to catch this case.
5004   cat >conftest.$ac_ext <<_ACEOF
5005 /* confdefs.h.  */
5006 _ACEOF
5007 cat confdefs.h >>conftest.$ac_ext
5008 cat >>conftest.$ac_ext <<_ACEOF
5009 /* end confdefs.h.  */
5010 #ifdef __STDC__
5011 # include <limits.h>
5012 #else
5013 # include <assert.h>
5014 #endif
5015                      Syntax error
5016 _ACEOF
5017 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5018   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5019   ac_status=$?
5020   grep -v '^ *+' conftest.er1 >conftest.err
5021   rm -f conftest.er1
5022   cat conftest.err >&5
5023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024   (exit $ac_status); } >/dev/null; then
5025   if test -s conftest.err; then
5026     ac_cpp_err=$ac_cxx_preproc_warn_flag
5027     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5028   else
5029     ac_cpp_err=
5030   fi
5031 else
5032   ac_cpp_err=yes
5033 fi
5034 if test -z "$ac_cpp_err"; then
5035   :
5036 else
5037   echo "$as_me: failed program was:" >&5
5038 sed 's/^/| /' conftest.$ac_ext >&5
5040   # Broken: fails on valid input.
5041 continue
5042 fi
5043 rm -f conftest.err conftest.$ac_ext
5045   # OK, works on sane cases.  Now check whether non-existent headers
5046   # can be detected and how.
5047   cat >conftest.$ac_ext <<_ACEOF
5048 /* confdefs.h.  */
5049 _ACEOF
5050 cat confdefs.h >>conftest.$ac_ext
5051 cat >>conftest.$ac_ext <<_ACEOF
5052 /* end confdefs.h.  */
5053 #include <ac_nonexistent.h>
5054 _ACEOF
5055 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5056   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5057   ac_status=$?
5058   grep -v '^ *+' conftest.er1 >conftest.err
5059   rm -f conftest.er1
5060   cat conftest.err >&5
5061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062   (exit $ac_status); } >/dev/null; then
5063   if test -s conftest.err; then
5064     ac_cpp_err=$ac_cxx_preproc_warn_flag
5065     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5066   else
5067     ac_cpp_err=
5068   fi
5069 else
5070   ac_cpp_err=yes
5071 fi
5072 if test -z "$ac_cpp_err"; then
5073   # Broken: success on invalid input.
5074 continue
5075 else
5076   echo "$as_me: failed program was:" >&5
5077 sed 's/^/| /' conftest.$ac_ext >&5
5079   # Passes both tests.
5080 ac_preproc_ok=:
5081 break
5082 fi
5083 rm -f conftest.err conftest.$ac_ext
5085 done
5086 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5087 rm -f conftest.err conftest.$ac_ext
5088 if $ac_preproc_ok; then
5089   break
5090 fi
5092     done
5093     ac_cv_prog_CXXCPP=$CXXCPP
5095 fi
5096   CXXCPP=$ac_cv_prog_CXXCPP
5097 else
5098   ac_cv_prog_CXXCPP=$CXXCPP
5099 fi
5100 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5101 echo "${ECHO_T}$CXXCPP" >&6
5102 ac_preproc_ok=false
5103 for ac_cxx_preproc_warn_flag in '' yes
5104 do
5105   # Use a header file that comes with gcc, so configuring glibc
5106   # with a fresh cross-compiler works.
5107   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5108   # <limits.h> exists even on freestanding compilers.
5109   # On the NeXT, cc -E runs the code through the compiler's parser,
5110   # not just through cpp. "Syntax error" is here to catch this case.
5111   cat >conftest.$ac_ext <<_ACEOF
5112 /* confdefs.h.  */
5113 _ACEOF
5114 cat confdefs.h >>conftest.$ac_ext
5115 cat >>conftest.$ac_ext <<_ACEOF
5116 /* end confdefs.h.  */
5117 #ifdef __STDC__
5118 # include <limits.h>
5119 #else
5120 # include <assert.h>
5121 #endif
5122                      Syntax error
5123 _ACEOF
5124 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5125   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5126   ac_status=$?
5127   grep -v '^ *+' conftest.er1 >conftest.err
5128   rm -f conftest.er1
5129   cat conftest.err >&5
5130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131   (exit $ac_status); } >/dev/null; then
5132   if test -s conftest.err; then
5133     ac_cpp_err=$ac_cxx_preproc_warn_flag
5134     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5135   else
5136     ac_cpp_err=
5137   fi
5138 else
5139   ac_cpp_err=yes
5140 fi
5141 if test -z "$ac_cpp_err"; then
5142   :
5143 else
5144   echo "$as_me: failed program was:" >&5
5145 sed 's/^/| /' conftest.$ac_ext >&5
5147   # Broken: fails on valid input.
5148 continue
5149 fi
5150 rm -f conftest.err conftest.$ac_ext
5152   # OK, works on sane cases.  Now check whether non-existent headers
5153   # can be detected and how.
5154   cat >conftest.$ac_ext <<_ACEOF
5155 /* confdefs.h.  */
5156 _ACEOF
5157 cat confdefs.h >>conftest.$ac_ext
5158 cat >>conftest.$ac_ext <<_ACEOF
5159 /* end confdefs.h.  */
5160 #include <ac_nonexistent.h>
5161 _ACEOF
5162 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5163   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5164   ac_status=$?
5165   grep -v '^ *+' conftest.er1 >conftest.err
5166   rm -f conftest.er1
5167   cat conftest.err >&5
5168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169   (exit $ac_status); } >/dev/null; then
5170   if test -s conftest.err; then
5171     ac_cpp_err=$ac_cxx_preproc_warn_flag
5172     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5173   else
5174     ac_cpp_err=
5175   fi
5176 else
5177   ac_cpp_err=yes
5178 fi
5179 if test -z "$ac_cpp_err"; then
5180   # Broken: success on invalid input.
5181 continue
5182 else
5183   echo "$as_me: failed program was:" >&5
5184 sed 's/^/| /' conftest.$ac_ext >&5
5186   # Passes both tests.
5187 ac_preproc_ok=:
5188 break
5189 fi
5190 rm -f conftest.err conftest.$ac_ext
5192 done
5193 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5194 rm -f conftest.err conftest.$ac_ext
5195 if $ac_preproc_ok; then
5196   :
5197 else
5198   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5199 See \`config.log' for more details." >&5
5200 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5201 See \`config.log' for more details." >&2;}
5202    { (exit 1); exit 1; }; }
5203 fi
5205 ac_ext=cc
5206 ac_cpp='$CXXCPP $CPPFLAGS'
5207 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5208 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5209 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5211 fi
5215 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5217 # find the maximum length of command line arguments
5218 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5219 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5220 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5221   echo $ECHO_N "(cached) $ECHO_C" >&6
5222 else
5223     i=0
5224   teststring="ABCD"
5226   case $build_os in
5227   msdosdjgpp*)
5228     # On DJGPP, this test can blow up pretty badly due to problems in libc
5229     # (any single argument exceeding 2000 bytes causes a buffer overrun
5230     # during glob expansion).  Even if it were fixed, the result of this
5231     # check would be larger than it should be.
5232     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5233     ;;
5235   gnu*)
5236     # Under GNU Hurd, this test is not required because there is
5237     # no limit to the length of command line arguments.
5238     # Libtool will interpret -1 as no limit whatsoever
5239     lt_cv_sys_max_cmd_len=-1;
5240     ;;
5242   cygwin* | mingw*)
5243     # On Win9x/ME, this test blows up -- it succeeds, but takes
5244     # about 5 minutes as the teststring grows exponentially.
5245     # Worse, since 9x/ME are not pre-emptively multitasking,
5246     # you end up with a "frozen" computer, even though with patience
5247     # the test eventually succeeds (with a max line length of 256k).
5248     # Instead, let's just punt: use the minimum linelength reported by
5249     # all of the supported platforms: 8192 (on NT/2K/XP).
5250     lt_cv_sys_max_cmd_len=8192;
5251     ;;
5253   amigaos*)
5254     # On AmigaOS with pdksh, this test takes hours, literally.
5255     # So we just punt and use a minimum line length of 8192.
5256     lt_cv_sys_max_cmd_len=8192;
5257     ;;
5259   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5260     # This has been around since 386BSD, at least.  Likely further.
5261     if test -x /sbin/sysctl; then
5262       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5263     elif test -x /usr/sbin/sysctl; then
5264       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5265     else
5266       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5267     fi
5268     # And add a safety zone
5269     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5270     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5271     ;;
5273   interix*)
5274     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5275     lt_cv_sys_max_cmd_len=196608
5276     ;;
5278   osf*)
5279     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5280     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5281     # nice to cause kernel panics so lets avoid the loop below.
5282     # First set a reasonable default.
5283     lt_cv_sys_max_cmd_len=16384
5284     #
5285     if test -x /sbin/sysconfig; then
5286       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5287         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5288       esac
5289     fi
5290     ;;
5291   sco3.2v5*)
5292     lt_cv_sys_max_cmd_len=102400
5293     ;;
5294   sysv5* | sco5v6* | sysv4.2uw2*)
5295     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5296     if test -n "$kargmax"; then
5297       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
5298     else
5299       lt_cv_sys_max_cmd_len=32768
5300     fi
5301     ;;
5302   *)
5303     # If test is not a shell built-in, we'll probably end up computing a
5304     # maximum length that is only half of the actual maximum length, but
5305     # we can't tell.
5306     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5307     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5308                = "XX$teststring") >/dev/null 2>&1 &&
5309             new_result=`expr "X$teststring" : ".*" 2>&1` &&
5310             lt_cv_sys_max_cmd_len=$new_result &&
5311             test $i != 17 # 1/2 MB should be enough
5312     do
5313       i=`expr $i + 1`
5314       teststring=$teststring$teststring
5315     done
5316     teststring=
5317     # Add a significant safety factor because C++ compilers can tack on massive
5318     # amounts of additional arguments before passing them to the linker.
5319     # It appears as though 1/2 is a usable value.
5320     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5321     ;;
5322   esac
5324 fi
5326 if test -n $lt_cv_sys_max_cmd_len ; then
5327   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5328 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5329 else
5330   echo "$as_me:$LINENO: result: none" >&5
5331 echo "${ECHO_T}none" >&6
5332 fi
5337 # Check for command to grab the raw symbol name followed by C symbol from nm.
5338 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5339 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5340 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5341   echo $ECHO_N "(cached) $ECHO_C" >&6
5342 else
5344 # These are sane defaults that work on at least a few old systems.
5345 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5347 # Character class describing NM global symbol codes.
5348 symcode='[BCDEGRST]'
5350 # Regexp to match symbols that can be accessed directly from C.
5351 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5353 # Transform an extracted symbol line into a proper C declaration
5354 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5356 # Transform an extracted symbol line into symbol name and symbol address
5357 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'"
5359 # Define system-specific variables.
5360 case $host_os in
5361 aix*)
5362   symcode='[BCDT]'
5363   ;;
5364 cygwin* | mingw* | pw32*)
5365   symcode='[ABCDGISTW]'
5366   ;;
5367 hpux*) # Its linker distinguishes data from code symbols
5368   if test "$host_cpu" = ia64; then
5369     symcode='[ABCDEGRST]'
5370   fi
5371   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5372   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'"
5373   ;;
5374 linux*)
5375   if test "$host_cpu" = ia64; then
5376     symcode='[ABCDGIRSTW]'
5377     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5378     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'"
5379   fi
5380   ;;
5381 irix* | nonstopux*)
5382   symcode='[BCDEGRST]'
5383   ;;
5384 osf*)
5385   symcode='[BCDEGQRST]'
5386   ;;
5387 solaris*)
5388   symcode='[BDRT]'
5389   ;;
5390 sco3.2v5*)
5391   symcode='[DT]'
5392   ;;
5393 sysv4.2uw2*)
5394   symcode='[DT]'
5395   ;;
5396 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5397   symcode='[ABDT]'
5398   ;;
5399 sysv4)
5400   symcode='[DFNSTU]'
5401   ;;
5402 esac
5404 # Handle CRLF in mingw tool chain
5405 opt_cr=
5406 case $build_os in
5407 mingw*)
5408   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5409   ;;
5410 esac
5412 # If we're using GNU nm, then use its standard symbol codes.
5413 case `$NM -V 2>&1` in
5414 *GNU* | *'with BFD'*)
5415   symcode='[ABCDGIRSTW]' ;;
5416 esac
5418 # Try without a prefix undercore, then with it.
5419 for ac_symprfx in "" "_"; do
5421   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5422   symxfrm="\\1 $ac_symprfx\\2 \\2"
5424   # Write the raw and C identifiers.
5425   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5427   # Check to see that the pipe works correctly.
5428   pipe_works=no
5430   rm -f conftest*
5431   cat > conftest.$ac_ext <<EOF
5432 #ifdef __cplusplus
5433 extern "C" {
5434 #endif
5435 char nm_test_var;
5436 void nm_test_func(){}
5437 #ifdef __cplusplus
5439 #endif
5440 int main(){nm_test_var='a';nm_test_func();return(0);}
5441 EOF
5443   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5444   (eval $ac_compile) 2>&5
5445   ac_status=$?
5446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447   (exit $ac_status); }; then
5448     # Now try to grab the symbols.
5449     nlist=conftest.nm
5450     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5451   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5452   ac_status=$?
5453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454   (exit $ac_status); } && test -s "$nlist"; then
5455       # Try sorting and uniquifying the output.
5456       if sort "$nlist" | uniq > "$nlist"T; then
5457         mv -f "$nlist"T "$nlist"
5458       else
5459         rm -f "$nlist"T
5460       fi
5462       # Make sure that we snagged all the symbols we need.
5463       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5464         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5465           cat <<EOF > conftest.$ac_ext
5466 #ifdef __cplusplus
5467 extern "C" {
5468 #endif
5470 EOF
5471           # Now generate the symbol file.
5472           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5474           cat <<EOF >> conftest.$ac_ext
5475 #if defined (__STDC__) && __STDC__
5476 # define lt_ptr_t void *
5477 #else
5478 # define lt_ptr_t char *
5479 # define const
5480 #endif
5482 /* The mapping between symbol names and symbols. */
5483 const struct {
5484   const char *name;
5485   lt_ptr_t address;
5487 lt_preloaded_symbols[] =
5489 EOF
5490           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5491           cat <<\EOF >> conftest.$ac_ext
5492   {0, (lt_ptr_t) 0}
5493 };
5495 #ifdef __cplusplus
5497 #endif
5498 EOF
5499           # Now try linking the two files.
5500           mv conftest.$ac_objext conftstm.$ac_objext
5501           lt_save_LIBS="$LIBS"
5502           lt_save_CFLAGS="$CFLAGS"
5503           LIBS="conftstm.$ac_objext"
5504           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5505           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5506   (eval $ac_link) 2>&5
5507   ac_status=$?
5508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5510             pipe_works=yes
5511           fi
5512           LIBS="$lt_save_LIBS"
5513           CFLAGS="$lt_save_CFLAGS"
5514         else
5515           echo "cannot find nm_test_func in $nlist" >&5
5516         fi
5517       else
5518         echo "cannot find nm_test_var in $nlist" >&5
5519       fi
5520     else
5521       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5522     fi
5523   else
5524     echo "$progname: failed program was:" >&5
5525     cat conftest.$ac_ext >&5
5526   fi
5527   rm -f conftest* conftst*
5529   # Do not use the global_symbol_pipe unless it works.
5530   if test "$pipe_works" = yes; then
5531     break
5532   else
5533     lt_cv_sys_global_symbol_pipe=
5534   fi
5535 done
5537 fi
5539 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5540   lt_cv_sys_global_symbol_to_cdecl=
5541 fi
5542 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5543   echo "$as_me:$LINENO: result: failed" >&5
5544 echo "${ECHO_T}failed" >&6
5545 else
5546   echo "$as_me:$LINENO: result: ok" >&5
5547 echo "${ECHO_T}ok" >&6
5548 fi
5550 echo "$as_me:$LINENO: checking for objdir" >&5
5551 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5552 if test "${lt_cv_objdir+set}" = set; then
5553   echo $ECHO_N "(cached) $ECHO_C" >&6
5554 else
5555   rm -f .libs 2>/dev/null
5556 mkdir .libs 2>/dev/null
5557 if test -d .libs; then
5558   lt_cv_objdir=.libs
5559 else
5560   # MS-DOS does not allow filenames that begin with a dot.
5561   lt_cv_objdir=_libs
5562 fi
5563 rmdir .libs 2>/dev/null
5564 fi
5565 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5566 echo "${ECHO_T}$lt_cv_objdir" >&6
5567 objdir=$lt_cv_objdir
5573 case $host_os in
5574 aix3*)
5575   # AIX sometimes has problems with the GCC collect2 program.  For some
5576   # reason, if we set the COLLECT_NAMES environment variable, the problems
5577   # vanish in a puff of smoke.
5578   if test "X${COLLECT_NAMES+set}" != Xset; then
5579     COLLECT_NAMES=
5580     export COLLECT_NAMES
5581   fi
5582   ;;
5583 esac
5585 # Sed substitution that helps us do robust quoting.  It backslashifies
5586 # metacharacters that are still active within double-quoted strings.
5587 Xsed='sed -e 1s/^X//'
5588 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5590 # Same as above, but do not quote variable references.
5591 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5593 # Sed substitution to delay expansion of an escaped shell variable in a
5594 # double_quote_subst'ed string.
5595 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5597 # Sed substitution to avoid accidental globbing in evaled expressions
5598 no_glob_subst='s/\*/\\\*/g'
5600 # Constants:
5601 rm="rm -f"
5603 # Global variables:
5604 default_ofile=libtool
5605 can_build_shared=yes
5607 # All known linkers require a `.a' archive for static linking (except MSVC,
5608 # which needs '.lib').
5609 libext=a
5610 ltmain="$ac_aux_dir/ltmain.sh"
5611 ofile="$default_ofile"
5612 with_gnu_ld="$lt_cv_prog_gnu_ld"
5614 if test -n "$ac_tool_prefix"; then
5615   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5616 set dummy ${ac_tool_prefix}ar; ac_word=$2
5617 echo "$as_me:$LINENO: checking for $ac_word" >&5
5618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5619 if test "${ac_cv_prog_AR+set}" = set; then
5620   echo $ECHO_N "(cached) $ECHO_C" >&6
5621 else
5622   if test -n "$AR"; then
5623   ac_cv_prog_AR="$AR" # Let the user override the test.
5624 else
5625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5626 for as_dir in $PATH
5627 do
5628   IFS=$as_save_IFS
5629   test -z "$as_dir" && as_dir=.
5630   for ac_exec_ext in '' $ac_executable_extensions; do
5631   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5632     ac_cv_prog_AR="${ac_tool_prefix}ar"
5633     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5634     break 2
5635   fi
5636 done
5637 done
5639 fi
5640 fi
5641 AR=$ac_cv_prog_AR
5642 if test -n "$AR"; then
5643   echo "$as_me:$LINENO: result: $AR" >&5
5644 echo "${ECHO_T}$AR" >&6
5645 else
5646   echo "$as_me:$LINENO: result: no" >&5
5647 echo "${ECHO_T}no" >&6
5648 fi
5650 fi
5651 if test -z "$ac_cv_prog_AR"; then
5652   ac_ct_AR=$AR
5653   # Extract the first word of "ar", so it can be a program name with args.
5654 set dummy ar; ac_word=$2
5655 echo "$as_me:$LINENO: checking for $ac_word" >&5
5656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5657 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5658   echo $ECHO_N "(cached) $ECHO_C" >&6
5659 else
5660   if test -n "$ac_ct_AR"; then
5661   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5662 else
5663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5664 for as_dir in $PATH
5665 do
5666   IFS=$as_save_IFS
5667   test -z "$as_dir" && as_dir=.
5668   for ac_exec_ext in '' $ac_executable_extensions; do
5669   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5670     ac_cv_prog_ac_ct_AR="ar"
5671     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5672     break 2
5673   fi
5674 done
5675 done
5677   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5678 fi
5679 fi
5680 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5681 if test -n "$ac_ct_AR"; then
5682   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5683 echo "${ECHO_T}$ac_ct_AR" >&6
5684 else
5685   echo "$as_me:$LINENO: result: no" >&5
5686 echo "${ECHO_T}no" >&6
5687 fi
5689   AR=$ac_ct_AR
5690 else
5691   AR="$ac_cv_prog_AR"
5692 fi
5694 if test -n "$ac_tool_prefix"; then
5695   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5696 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5697 echo "$as_me:$LINENO: checking for $ac_word" >&5
5698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5699 if test "${ac_cv_prog_RANLIB+set}" = set; then
5700   echo $ECHO_N "(cached) $ECHO_C" >&6
5701 else
5702   if test -n "$RANLIB"; then
5703   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5704 else
5705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5706 for as_dir in $PATH
5707 do
5708   IFS=$as_save_IFS
5709   test -z "$as_dir" && as_dir=.
5710   for ac_exec_ext in '' $ac_executable_extensions; do
5711   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5712     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5713     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5714     break 2
5715   fi
5716 done
5717 done
5719 fi
5720 fi
5721 RANLIB=$ac_cv_prog_RANLIB
5722 if test -n "$RANLIB"; then
5723   echo "$as_me:$LINENO: result: $RANLIB" >&5
5724 echo "${ECHO_T}$RANLIB" >&6
5725 else
5726   echo "$as_me:$LINENO: result: no" >&5
5727 echo "${ECHO_T}no" >&6
5728 fi
5730 fi
5731 if test -z "$ac_cv_prog_RANLIB"; then
5732   ac_ct_RANLIB=$RANLIB
5733   # Extract the first word of "ranlib", so it can be a program name with args.
5734 set dummy ranlib; ac_word=$2
5735 echo "$as_me:$LINENO: checking for $ac_word" >&5
5736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5737 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5738   echo $ECHO_N "(cached) $ECHO_C" >&6
5739 else
5740   if test -n "$ac_ct_RANLIB"; then
5741   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5742 else
5743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5744 for as_dir in $PATH
5745 do
5746   IFS=$as_save_IFS
5747   test -z "$as_dir" && as_dir=.
5748   for ac_exec_ext in '' $ac_executable_extensions; do
5749   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5750     ac_cv_prog_ac_ct_RANLIB="ranlib"
5751     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5752     break 2
5753   fi
5754 done
5755 done
5757   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5758 fi
5759 fi
5760 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5761 if test -n "$ac_ct_RANLIB"; then
5762   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5763 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5764 else
5765   echo "$as_me:$LINENO: result: no" >&5
5766 echo "${ECHO_T}no" >&6
5767 fi
5769   RANLIB=$ac_ct_RANLIB
5770 else
5771   RANLIB="$ac_cv_prog_RANLIB"
5772 fi
5774 if test -n "$ac_tool_prefix"; then
5775   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5776 set dummy ${ac_tool_prefix}strip; ac_word=$2
5777 echo "$as_me:$LINENO: checking for $ac_word" >&5
5778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5779 if test "${ac_cv_prog_STRIP+set}" = set; then
5780   echo $ECHO_N "(cached) $ECHO_C" >&6
5781 else
5782   if test -n "$STRIP"; then
5783   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5784 else
5785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5786 for as_dir in $PATH
5787 do
5788   IFS=$as_save_IFS
5789   test -z "$as_dir" && as_dir=.
5790   for ac_exec_ext in '' $ac_executable_extensions; do
5791   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5792     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5793     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5794     break 2
5795   fi
5796 done
5797 done
5799 fi
5800 fi
5801 STRIP=$ac_cv_prog_STRIP
5802 if test -n "$STRIP"; then
5803   echo "$as_me:$LINENO: result: $STRIP" >&5
5804 echo "${ECHO_T}$STRIP" >&6
5805 else
5806   echo "$as_me:$LINENO: result: no" >&5
5807 echo "${ECHO_T}no" >&6
5808 fi
5810 fi
5811 if test -z "$ac_cv_prog_STRIP"; then
5812   ac_ct_STRIP=$STRIP
5813   # Extract the first word of "strip", so it can be a program name with args.
5814 set dummy strip; ac_word=$2
5815 echo "$as_me:$LINENO: checking for $ac_word" >&5
5816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5817 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5818   echo $ECHO_N "(cached) $ECHO_C" >&6
5819 else
5820   if test -n "$ac_ct_STRIP"; then
5821   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5822 else
5823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5824 for as_dir in $PATH
5825 do
5826   IFS=$as_save_IFS
5827   test -z "$as_dir" && as_dir=.
5828   for ac_exec_ext in '' $ac_executable_extensions; do
5829   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5830     ac_cv_prog_ac_ct_STRIP="strip"
5831     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5832     break 2
5833   fi
5834 done
5835 done
5837   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5838 fi
5839 fi
5840 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5841 if test -n "$ac_ct_STRIP"; then
5842   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5843 echo "${ECHO_T}$ac_ct_STRIP" >&6
5844 else
5845   echo "$as_me:$LINENO: result: no" >&5
5846 echo "${ECHO_T}no" >&6
5847 fi
5849   STRIP=$ac_ct_STRIP
5850 else
5851   STRIP="$ac_cv_prog_STRIP"
5852 fi
5855 old_CC="$CC"
5856 old_CFLAGS="$CFLAGS"
5858 # Set sane defaults for various variables
5859 test -z "$AR" && AR=ar
5860 test -z "$AR_FLAGS" && AR_FLAGS=cru
5861 test -z "$AS" && AS=as
5862 test -z "$CC" && CC=cc
5863 test -z "$LTCC" && LTCC=$CC
5864 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
5865 test -z "$DLLTOOL" && DLLTOOL=dlltool
5866 test -z "$LD" && LD=ld
5867 test -z "$LN_S" && LN_S="ln -s"
5868 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5869 test -z "$NM" && NM=nm
5870 test -z "$SED" && SED=sed
5871 test -z "$OBJDUMP" && OBJDUMP=objdump
5872 test -z "$RANLIB" && RANLIB=:
5873 test -z "$STRIP" && STRIP=:
5874 test -z "$ac_objext" && ac_objext=o
5876 # Determine commands to create old-style static archives.
5877 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5878 old_postinstall_cmds='chmod 644 $oldlib'
5879 old_postuninstall_cmds=
5881 if test -n "$RANLIB"; then
5882   case $host_os in
5883   openbsd*)
5884     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5885     ;;
5886   *)
5887     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5888     ;;
5889   esac
5890   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5891 fi
5893 for cc_temp in $compiler""; do
5894   case $cc_temp in
5895     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5896     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5897     \-*) ;;
5898     *) break;;
5899   esac
5900 done
5901 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
5904 # Only perform the check for file, if the check method requires it
5905 case $deplibs_check_method in
5906 file_magic*)
5907   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5908     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5909 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5910 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5911   echo $ECHO_N "(cached) $ECHO_C" >&6
5912 else
5913   case $MAGIC_CMD in
5914 [\\/*] |  ?:[\\/]*)
5915   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5916   ;;
5917 *)
5918   lt_save_MAGIC_CMD="$MAGIC_CMD"
5919   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5920   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5921   for ac_dir in $ac_dummy; do
5922     IFS="$lt_save_ifs"
5923     test -z "$ac_dir" && ac_dir=.
5924     if test -f $ac_dir/${ac_tool_prefix}file; then
5925       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5926       if test -n "$file_magic_test_file"; then
5927         case $deplibs_check_method in
5928         "file_magic "*)
5929           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5930           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5931           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5932             $EGREP "$file_magic_regex" > /dev/null; then
5933             :
5934           else
5935             cat <<EOF 1>&2
5937 *** Warning: the command libtool uses to detect shared libraries,
5938 *** $file_magic_cmd, produces output that libtool cannot recognize.
5939 *** The result is that libtool may fail to recognize shared libraries
5940 *** as such.  This will affect the creation of libtool libraries that
5941 *** depend on shared libraries, but programs linked with such libtool
5942 *** libraries will work regardless of this problem.  Nevertheless, you
5943 *** may want to report the problem to your system manager and/or to
5944 *** bug-libtool@gnu.org
5946 EOF
5947           fi ;;
5948         esac
5949       fi
5950       break
5951     fi
5952   done
5953   IFS="$lt_save_ifs"
5954   MAGIC_CMD="$lt_save_MAGIC_CMD"
5955   ;;
5956 esac
5957 fi
5959 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5960 if test -n "$MAGIC_CMD"; then
5961   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5962 echo "${ECHO_T}$MAGIC_CMD" >&6
5963 else
5964   echo "$as_me:$LINENO: result: no" >&5
5965 echo "${ECHO_T}no" >&6
5966 fi
5968 if test -z "$lt_cv_path_MAGIC_CMD"; then
5969   if test -n "$ac_tool_prefix"; then
5970     echo "$as_me:$LINENO: checking for file" >&5
5971 echo $ECHO_N "checking for file... $ECHO_C" >&6
5972 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5973   echo $ECHO_N "(cached) $ECHO_C" >&6
5974 else
5975   case $MAGIC_CMD in
5976 [\\/*] |  ?:[\\/]*)
5977   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5978   ;;
5979 *)
5980   lt_save_MAGIC_CMD="$MAGIC_CMD"
5981   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5982   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5983   for ac_dir in $ac_dummy; do
5984     IFS="$lt_save_ifs"
5985     test -z "$ac_dir" && ac_dir=.
5986     if test -f $ac_dir/file; then
5987       lt_cv_path_MAGIC_CMD="$ac_dir/file"
5988       if test -n "$file_magic_test_file"; then
5989         case $deplibs_check_method in
5990         "file_magic "*)
5991           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5992           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5993           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5994             $EGREP "$file_magic_regex" > /dev/null; then
5995             :
5996           else
5997             cat <<EOF 1>&2
5999 *** Warning: the command libtool uses to detect shared libraries,
6000 *** $file_magic_cmd, produces output that libtool cannot recognize.
6001 *** The result is that libtool may fail to recognize shared libraries
6002 *** as such.  This will affect the creation of libtool libraries that
6003 *** depend on shared libraries, but programs linked with such libtool
6004 *** libraries will work regardless of this problem.  Nevertheless, you
6005 *** may want to report the problem to your system manager and/or to
6006 *** bug-libtool@gnu.org
6008 EOF
6009           fi ;;
6010         esac
6011       fi
6012       break
6013     fi
6014   done
6015   IFS="$lt_save_ifs"
6016   MAGIC_CMD="$lt_save_MAGIC_CMD"
6017   ;;
6018 esac
6019 fi
6021 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6022 if test -n "$MAGIC_CMD"; then
6023   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6024 echo "${ECHO_T}$MAGIC_CMD" >&6
6025 else
6026   echo "$as_me:$LINENO: result: no" >&5
6027 echo "${ECHO_T}no" >&6
6028 fi
6030   else
6031     MAGIC_CMD=:
6032   fi
6033 fi
6035   fi
6036   ;;
6037 esac
6039 enable_dlopen=no
6040 enable_win32_dll=no
6042 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6043 if test "${enable_libtool_lock+set}" = set; then
6044   enableval="$enable_libtool_lock"
6046 fi;
6047 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6050 # Check whether --with-pic or --without-pic was given.
6051 if test "${with_pic+set}" = set; then
6052   withval="$with_pic"
6053   pic_mode="$withval"
6054 else
6055   pic_mode=default
6056 fi;
6057 test -z "$pic_mode" && pic_mode=default
6059 # Use C for the default configuration in the libtool script
6060 tagname=
6061 lt_save_CC="$CC"
6062 ac_ext=c
6063 ac_cpp='$CPP $CPPFLAGS'
6064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6069 # Source file extension for C test sources.
6070 ac_ext=c
6072 # Object file extension for compiled C test sources.
6073 objext=o
6074 objext=$objext
6076 # Code to be used in simple compile tests
6077 lt_simple_compile_test_code="int some_variable = 0;\n"
6079 # Code to be used in simple link tests
6080 lt_simple_link_test_code='int main(){return(0);}\n'
6083 # If no C compiler was specified, use CC.
6084 LTCC=${LTCC-"$CC"}
6086 # If no C compiler flags were specified, use CFLAGS.
6087 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6089 # Allow CC to be a program name with arguments.
6090 compiler=$CC
6093 # save warnings/boilerplate of simple test code
6094 ac_outfile=conftest.$ac_objext
6095 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6096 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6097 _lt_compiler_boilerplate=`cat conftest.err`
6098 $rm conftest*
6100 ac_outfile=conftest.$ac_objext
6101 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6102 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6103 _lt_linker_boilerplate=`cat conftest.err`
6104 $rm conftest*
6108 lt_prog_compiler_no_builtin_flag=
6110 if test "$GCC" = yes; then
6111   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6114 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6115 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6116 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6117   echo $ECHO_N "(cached) $ECHO_C" >&6
6118 else
6119   lt_cv_prog_compiler_rtti_exceptions=no
6120   ac_outfile=conftest.$ac_objext
6121    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6122    lt_compiler_flag="-fno-rtti -fno-exceptions"
6123    # Insert the option either (1) after the last *FLAGS variable, or
6124    # (2) before a word containing "conftest.", or (3) at the end.
6125    # Note that $ac_compile itself does not contain backslashes and begins
6126    # with a dollar sign (not a hyphen), so the echo should work correctly.
6127    # The option is referenced via a variable to avoid confusing sed.
6128    lt_compile=`echo "$ac_compile" | $SED \
6129    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6130    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6131    -e 's:$: $lt_compiler_flag:'`
6132    (eval echo "\"\$as_me:6132: $lt_compile\"" >&5)
6133    (eval "$lt_compile" 2>conftest.err)
6134    ac_status=$?
6135    cat conftest.err >&5
6136    echo "$as_me:6136: \$? = $ac_status" >&5
6137    if (exit $ac_status) && test -s "$ac_outfile"; then
6138      # The compiler can only warn and ignore the option if not recognized
6139      # So say no if there are warnings other than the usual output.
6140      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6141      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6142      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6143        lt_cv_prog_compiler_rtti_exceptions=yes
6144      fi
6145    fi
6146    $rm conftest*
6148 fi
6149 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6150 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6152 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6153     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6154 else
6155     :
6156 fi
6158 fi
6160 lt_prog_compiler_wl=
6161 lt_prog_compiler_pic=
6162 lt_prog_compiler_static=
6164 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6165 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6167   if test "$GCC" = yes; then
6168     lt_prog_compiler_wl='-Wl,'
6169     lt_prog_compiler_static='-static'
6171     case $host_os in
6172       aix*)
6173       # All AIX code is PIC.
6174       if test "$host_cpu" = ia64; then
6175         # AIX 5 now supports IA64 processor
6176         lt_prog_compiler_static='-Bstatic'
6177       fi
6178       ;;
6180     amigaos*)
6181       # FIXME: we need at least 68020 code to build shared libraries, but
6182       # adding the `-m68020' flag to GCC prevents building anything better,
6183       # like `-m68040'.
6184       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6185       ;;
6187     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6188       # PIC is the default for these OSes.
6189       ;;
6191     mingw* | pw32* | os2*)
6192       # This hack is so that the source file can tell whether it is being
6193       # built for inclusion in a dll (and should export symbols for example).
6194       lt_prog_compiler_pic='-DDLL_EXPORT'
6195       ;;
6197     darwin* | rhapsody*)
6198       # PIC is the default on this platform
6199       # Common symbols not allowed in MH_DYLIB files
6200       lt_prog_compiler_pic='-fno-common'
6201       ;;
6203     interix3*)
6204       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6205       # Instead, we relocate shared libraries at runtime.
6206       ;;
6208     msdosdjgpp*)
6209       # Just because we use GCC doesn't mean we suddenly get shared libraries
6210       # on systems that don't support them.
6211       lt_prog_compiler_can_build_shared=no
6212       enable_shared=no
6213       ;;
6215     sysv4*MP*)
6216       if test -d /usr/nec; then
6217         lt_prog_compiler_pic=-Kconform_pic
6218       fi
6219       ;;
6221     hpux*)
6222       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6223       # not for PA HP-UX.
6224       case $host_cpu in
6225       hppa*64*|ia64*)
6226         # +Z the default
6227         ;;
6228       *)
6229         lt_prog_compiler_pic='-fPIC'
6230         ;;
6231       esac
6232       ;;
6234     *)
6235       lt_prog_compiler_pic='-fPIC'
6236       ;;
6237     esac
6238   else
6239     # PORTME Check for flag to pass linker flags through the system compiler.
6240     case $host_os in
6241     aix*)
6242       lt_prog_compiler_wl='-Wl,'
6243       if test "$host_cpu" = ia64; then
6244         # AIX 5 now supports IA64 processor
6245         lt_prog_compiler_static='-Bstatic'
6246       else
6247         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6248       fi
6249       ;;
6250       darwin*)
6251         # PIC is the default on this platform
6252         # Common symbols not allowed in MH_DYLIB files
6253        case $cc_basename in
6254          xlc*)
6255          lt_prog_compiler_pic='-qnocommon'
6256          lt_prog_compiler_wl='-Wl,'
6257          ;;
6258        esac
6259        ;;
6261     mingw* | pw32* | os2*)
6262       # This hack is so that the source file can tell whether it is being
6263       # built for inclusion in a dll (and should export symbols for example).
6264       lt_prog_compiler_pic='-DDLL_EXPORT'
6265       ;;
6267     hpux9* | hpux10* | hpux11*)
6268       lt_prog_compiler_wl='-Wl,'
6269       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6270       # not for PA HP-UX.
6271       case $host_cpu in
6272       hppa*64*|ia64*)
6273         # +Z the default
6274         ;;
6275       *)
6276         lt_prog_compiler_pic='+Z'
6277         ;;
6278       esac
6279       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6280       lt_prog_compiler_static='${wl}-a ${wl}archive'
6281       ;;
6283     irix5* | irix6* | nonstopux*)
6284       lt_prog_compiler_wl='-Wl,'
6285       # PIC (with -KPIC) is the default.
6286       lt_prog_compiler_static='-non_shared'
6287       ;;
6289     newsos6)
6290       lt_prog_compiler_pic='-KPIC'
6291       lt_prog_compiler_static='-Bstatic'
6292       ;;
6294     linux*)
6295       case $cc_basename in
6296       icc* | ecc*)
6297         lt_prog_compiler_wl='-Wl,'
6298         lt_prog_compiler_pic='-KPIC'
6299         lt_prog_compiler_static='-static'
6300         ;;
6301       pgcc* | pgf77* | pgf90* | pgf95*)
6302         # Portland Group compilers (*not* the Pentium gcc compiler,
6303         # which looks to be a dead project)
6304         lt_prog_compiler_wl='-Wl,'
6305         lt_prog_compiler_pic='-fpic'
6306         lt_prog_compiler_static='-Bstatic'
6307         ;;
6308       ccc*)
6309         lt_prog_compiler_wl='-Wl,'
6310         # All Alpha code is PIC.
6311         lt_prog_compiler_static='-non_shared'
6312         ;;
6313       esac
6314       ;;
6316     osf3* | osf4* | osf5*)
6317       lt_prog_compiler_wl='-Wl,'
6318       # All OSF/1 code is PIC.
6319       lt_prog_compiler_static='-non_shared'
6320       ;;
6322     solaris*)
6323       lt_prog_compiler_pic='-KPIC'
6324       lt_prog_compiler_static='-Bstatic'
6325       case $cc_basename in
6326       f77* | f90* | f95*)
6327         lt_prog_compiler_wl='-Qoption ld ';;
6328       *)
6329         lt_prog_compiler_wl='-Wl,';;
6330       esac
6331       ;;
6333     sunos4*)
6334       lt_prog_compiler_wl='-Qoption ld '
6335       lt_prog_compiler_pic='-PIC'
6336       lt_prog_compiler_static='-Bstatic'
6337       ;;
6339     sysv4 | sysv4.2uw2* | sysv4.3*)
6340       lt_prog_compiler_wl='-Wl,'
6341       lt_prog_compiler_pic='-KPIC'
6342       lt_prog_compiler_static='-Bstatic'
6343       ;;
6345     sysv4*MP*)
6346       if test -d /usr/nec ;then
6347         lt_prog_compiler_pic='-Kconform_pic'
6348         lt_prog_compiler_static='-Bstatic'
6349       fi
6350       ;;
6352     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6353       lt_prog_compiler_wl='-Wl,'
6354       lt_prog_compiler_pic='-KPIC'
6355       lt_prog_compiler_static='-Bstatic'
6356       ;;
6358     unicos*)
6359       lt_prog_compiler_wl='-Wl,'
6360       lt_prog_compiler_can_build_shared=no
6361       ;;
6363     uts4*)
6364       lt_prog_compiler_pic='-pic'
6365       lt_prog_compiler_static='-Bstatic'
6366       ;;
6368     *)
6369       lt_prog_compiler_can_build_shared=no
6370       ;;
6371     esac
6372   fi
6374 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6375 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6378 # Check to make sure the PIC flag actually works.
6380 if test -n "$lt_prog_compiler_pic"; then
6382 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6383 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6384 if test "${lt_prog_compiler_pic_works+set}" = set; then
6385   echo $ECHO_N "(cached) $ECHO_C" >&6
6386 else
6387   lt_prog_compiler_pic_works=no
6388   ac_outfile=conftest.$ac_objext
6389    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6390    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6391    # Insert the option either (1) after the last *FLAGS variable, or
6392    # (2) before a word containing "conftest.", or (3) at the end.
6393    # Note that $ac_compile itself does not contain backslashes and begins
6394    # with a dollar sign (not a hyphen), so the echo should work correctly.
6395    # The option is referenced via a variable to avoid confusing sed.
6396    lt_compile=`echo "$ac_compile" | $SED \
6397    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6398    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6399    -e 's:$: $lt_compiler_flag:'`
6400    (eval echo "\"\$as_me:6400: $lt_compile\"" >&5)
6401    (eval "$lt_compile" 2>conftest.err)
6402    ac_status=$?
6403    cat conftest.err >&5
6404    echo "$as_me:6404: \$? = $ac_status" >&5
6405    if (exit $ac_status) && test -s "$ac_outfile"; then
6406      # The compiler can only warn and ignore the option if not recognized
6407      # So say no if there are warnings other than the usual output.
6408      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6409      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6410      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6411        lt_prog_compiler_pic_works=yes
6412      fi
6413    fi
6414    $rm conftest*
6416 fi
6417 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6418 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6420 if test x"$lt_prog_compiler_pic_works" = xyes; then
6421     case $lt_prog_compiler_pic in
6422      "" | " "*) ;;
6423      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6424      esac
6425 else
6426     lt_prog_compiler_pic=
6427      lt_prog_compiler_can_build_shared=no
6428 fi
6430 fi
6431 case $host_os in
6432   # For platforms which do not support PIC, -DPIC is meaningless:
6433   *djgpp*)
6434     lt_prog_compiler_pic=
6435     ;;
6436   *)
6437     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6438     ;;
6439 esac
6442 # Check to make sure the static flag actually works.
6444 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6445 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6446 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6447 if test "${lt_prog_compiler_static_works+set}" = set; then
6448   echo $ECHO_N "(cached) $ECHO_C" >&6
6449 else
6450   lt_prog_compiler_static_works=no
6451    save_LDFLAGS="$LDFLAGS"
6452    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6453    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6454    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6455      # The linker can only warn and ignore the option if not recognized
6456      # So say no if there are warnings
6457      if test -s conftest.err; then
6458        # Append any errors to the config.log.
6459        cat conftest.err 1>&5
6460        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6461        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6462        if diff conftest.exp conftest.er2 >/dev/null; then
6463          lt_prog_compiler_static_works=yes
6464        fi
6465      else
6466        lt_prog_compiler_static_works=yes
6467      fi
6468    fi
6469    $rm conftest*
6470    LDFLAGS="$save_LDFLAGS"
6472 fi
6473 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6474 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6476 if test x"$lt_prog_compiler_static_works" = xyes; then
6477     :
6478 else
6479     lt_prog_compiler_static=
6480 fi
6483 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6484 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6485 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6486   echo $ECHO_N "(cached) $ECHO_C" >&6
6487 else
6488   lt_cv_prog_compiler_c_o=no
6489    $rm -r conftest 2>/dev/null
6490    mkdir conftest
6491    cd conftest
6492    mkdir out
6493    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6495    lt_compiler_flag="-o out/conftest2.$ac_objext"
6496    # Insert the option either (1) after the last *FLAGS variable, or
6497    # (2) before a word containing "conftest.", or (3) at the end.
6498    # Note that $ac_compile itself does not contain backslashes and begins
6499    # with a dollar sign (not a hyphen), so the echo should work correctly.
6500    lt_compile=`echo "$ac_compile" | $SED \
6501    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6502    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6503    -e 's:$: $lt_compiler_flag:'`
6504    (eval echo "\"\$as_me:6504: $lt_compile\"" >&5)
6505    (eval "$lt_compile" 2>out/conftest.err)
6506    ac_status=$?
6507    cat out/conftest.err >&5
6508    echo "$as_me:6508: \$? = $ac_status" >&5
6509    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6510    then
6511      # The compiler can only warn and ignore the option if not recognized
6512      # So say no if there are warnings
6513      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6514      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6515      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6516        lt_cv_prog_compiler_c_o=yes
6517      fi
6518    fi
6519    chmod u+w . 2>&5
6520    $rm conftest*
6521    # SGI C++ compiler will create directory out/ii_files/ for
6522    # template instantiation
6523    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6524    $rm out/* && rmdir out
6525    cd ..
6526    rmdir conftest
6527    $rm conftest*
6529 fi
6530 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6531 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6534 hard_links="nottested"
6535 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6536   # do not overwrite the value of need_locks provided by the user
6537   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6538 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6539   hard_links=yes
6540   $rm conftest*
6541   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6542   touch conftest.a
6543   ln conftest.a conftest.b 2>&5 || hard_links=no
6544   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6545   echo "$as_me:$LINENO: result: $hard_links" >&5
6546 echo "${ECHO_T}$hard_links" >&6
6547   if test "$hard_links" = no; then
6548     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6549 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6550     need_locks=warn
6551   fi
6552 else
6553   need_locks=no
6554 fi
6556 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6557 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6559   runpath_var=
6560   allow_undefined_flag=
6561   enable_shared_with_static_runtimes=no
6562   archive_cmds=
6563   archive_expsym_cmds=
6564   old_archive_From_new_cmds=
6565   old_archive_from_expsyms_cmds=
6566   export_dynamic_flag_spec=
6567   whole_archive_flag_spec=
6568   thread_safe_flag_spec=
6569   hardcode_libdir_flag_spec=
6570   hardcode_libdir_flag_spec_ld=
6571   hardcode_libdir_separator=
6572   hardcode_direct=no
6573   hardcode_minus_L=no
6574   hardcode_shlibpath_var=unsupported
6575   link_all_deplibs=unknown
6576   hardcode_automatic=no
6577   module_cmds=
6578   module_expsym_cmds=
6579   always_export_symbols=no
6580   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6581   # include_expsyms should be a list of space-separated symbols to be *always*
6582   # included in the symbol list
6583   include_expsyms=
6584   # exclude_expsyms can be an extended regexp of symbols to exclude
6585   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6586   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6587   # as well as any symbol that contains `d'.
6588   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6589   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6590   # platforms (ab)use it in PIC code, but their linkers get confused if
6591   # the symbol is explicitly referenced.  Since portable code cannot
6592   # rely on this symbol name, it's probably fine to never include it in
6593   # preloaded symbol tables.
6594   extract_expsyms_cmds=
6595   # Just being paranoid about ensuring that cc_basename is set.
6596   for cc_temp in $compiler""; do
6597   case $cc_temp in
6598     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6599     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6600     \-*) ;;
6601     *) break;;
6602   esac
6603 done
6604 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6606   case $host_os in
6607   cygwin* | mingw* | pw32*)
6608     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6609     # When not using gcc, we currently assume that we are using
6610     # Microsoft Visual C++.
6611     if test "$GCC" != yes; then
6612       with_gnu_ld=no
6613     fi
6614     ;;
6615   interix*)
6616     # we just hope/assume this is gcc and not c89 (= MSVC++)
6617     with_gnu_ld=yes
6618     ;;
6619   openbsd*)
6620     with_gnu_ld=no
6621     ;;
6622   esac
6624   ld_shlibs=yes
6625   if test "$with_gnu_ld" = yes; then
6626     # If archive_cmds runs LD, not CC, wlarc should be empty
6627     wlarc='${wl}'
6629     # Set some defaults for GNU ld with shared library support. These
6630     # are reset later if shared libraries are not supported. Putting them
6631     # here allows them to be overridden if necessary.
6632     runpath_var=LD_RUN_PATH
6633     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6634     export_dynamic_flag_spec='${wl}--export-dynamic'
6635     # ancient GNU ld didn't support --whole-archive et. al.
6636     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6637         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6638       else
6639         whole_archive_flag_spec=
6640     fi
6641     supports_anon_versioning=no
6642     case `$LD -v 2>/dev/null` in
6643       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6644       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6645       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6646       *\ 2.11.*) ;; # other 2.11 versions
6647       *) supports_anon_versioning=yes ;;
6648     esac
6650     # See if GNU ld supports shared libraries.
6651     case $host_os in
6652     aix3* | aix4* | aix5*)
6653       # On AIX/PPC, the GNU linker is very broken
6654       if test "$host_cpu" != ia64; then
6655         ld_shlibs=no
6656         cat <<EOF 1>&2
6658 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6659 *** to be unable to reliably create shared libraries on AIX.
6660 *** Therefore, libtool is disabling shared libraries support.  If you
6661 *** really care for shared libraries, you may want to modify your PATH
6662 *** so that a non-GNU linker is found, and then restart.
6664 EOF
6665       fi
6666       ;;
6668     amigaos*)
6669       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)'
6670       hardcode_libdir_flag_spec='-L$libdir'
6671       hardcode_minus_L=yes
6673       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6674       # that the semantics of dynamic libraries on AmigaOS, at least up
6675       # to version 4, is to share data among multiple programs linked
6676       # with the same dynamic library.  Since this doesn't match the
6677       # behavior of shared libraries on other platforms, we can't use
6678       # them.
6679       ld_shlibs=no
6680       ;;
6682     beos*)
6683       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6684         allow_undefined_flag=unsupported
6685         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6686         # support --undefined.  This deserves some investigation.  FIXME
6687         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6688       else
6689         ld_shlibs=no
6690       fi
6691       ;;
6693     cygwin* | mingw* | pw32*)
6694       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6695       # as there is no search path for DLLs.
6696       hardcode_libdir_flag_spec='-L$libdir'
6697       allow_undefined_flag=unsupported
6698       always_export_symbols=no
6699       enable_shared_with_static_runtimes=yes
6700       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6702       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6703         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6704         # If the export-symbols file already is a .def file (1st line
6705         # is EXPORTS), use it as is; otherwise, prepend...
6706         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6707           cp $export_symbols $output_objdir/$soname.def;
6708         else
6709           echo EXPORTS > $output_objdir/$soname.def;
6710           cat $export_symbols >> $output_objdir/$soname.def;
6711         fi~
6712         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6713       else
6714         ld_shlibs=no
6715       fi
6716       ;;
6718     interix3*)
6719       hardcode_direct=no
6720       hardcode_shlibpath_var=no
6721       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6722       export_dynamic_flag_spec='${wl}-E'
6723       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6724       # Instead, shared libraries are loaded at an image base (0x10000000 by
6725       # default) and relocated if they conflict, which is a slow very memory
6726       # consuming and fragmenting process.  To avoid this, we pick a random,
6727       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6728       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
6729       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6730       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'
6731       ;;
6733     linux*)
6734       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6735         tmp_addflag=
6736         case $cc_basename,$host_cpu in
6737         pgcc*)                          # Portland Group C compiler
6738           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'
6739           tmp_addflag=' $pic_flag'
6740           ;;
6741         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
6742           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'
6743           tmp_addflag=' $pic_flag -Mnomain' ;;
6744         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
6745           tmp_addflag=' -i_dynamic' ;;
6746         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
6747           tmp_addflag=' -i_dynamic -nofor_main' ;;
6748         ifc* | ifort*)                  # Intel Fortran compiler
6749           tmp_addflag=' -nofor_main' ;;
6750         esac
6751         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6753         if test $supports_anon_versioning = yes; then
6754           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6755   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6756   $echo "local: *; };" >> $output_objdir/$libname.ver~
6757           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6758         fi
6759       else
6760         ld_shlibs=no
6761       fi
6762       ;;
6764     netbsd*)
6765       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6766         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6767         wlarc=
6768       else
6769         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6770         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6771       fi
6772       ;;
6774     solaris*)
6775       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6776         ld_shlibs=no
6777         cat <<EOF 1>&2
6779 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6780 *** create shared libraries on Solaris systems.  Therefore, libtool
6781 *** is disabling shared libraries support.  We urge you to upgrade GNU
6782 *** binutils to release 2.9.1 or newer.  Another option is to modify
6783 *** your PATH or compiler configuration so that the native linker is
6784 *** used, and then restart.
6786 EOF
6787       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6788         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6789         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6790       else
6791         ld_shlibs=no
6792       fi
6793       ;;
6795     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6796       case `$LD -v 2>&1` in
6797         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
6798         ld_shlibs=no
6799         cat <<_LT_EOF 1>&2
6801 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6802 *** reliably create shared libraries on SCO systems.  Therefore, libtool
6803 *** is disabling shared libraries support.  We urge you to upgrade GNU
6804 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
6805 *** your PATH or compiler configuration so that the native linker is
6806 *** used, and then restart.
6808 _LT_EOF
6809         ;;
6810         *)
6811           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6812             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
6813             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
6814             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
6815           else
6816             ld_shlibs=no
6817           fi
6818         ;;
6819       esac
6820       ;;
6822     sunos4*)
6823       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6824       wlarc=
6825       hardcode_direct=yes
6826       hardcode_shlibpath_var=no
6827       ;;
6829     *)
6830       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6831         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6832         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6833       else
6834         ld_shlibs=no
6835       fi
6836       ;;
6837     esac
6839     if test "$ld_shlibs" = no; then
6840       runpath_var=
6841       hardcode_libdir_flag_spec=
6842       export_dynamic_flag_spec=
6843       whole_archive_flag_spec=
6844     fi
6845   else
6846     # PORTME fill in a description of your system's linker (not GNU ld)
6847     case $host_os in
6848     aix3*)
6849       allow_undefined_flag=unsupported
6850       always_export_symbols=yes
6851       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'
6852       # Note: this linker hardcodes the directories in LIBPATH if there
6853       # are no directories specified by -L.
6854       hardcode_minus_L=yes
6855       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
6856         # Neither direct hardcoding nor static linking is supported with a
6857         # broken collect2.
6858         hardcode_direct=unsupported
6859       fi
6860       ;;
6862     aix4* | aix5*)
6863       if test "$host_cpu" = ia64; then
6864         # On IA64, the linker does run time linking by default, so we don't
6865         # have to do anything special.
6866         aix_use_runtimelinking=no
6867         exp_sym_flag='-Bexport'
6868         no_entry_flag=""
6869       else
6870         # If we're using GNU nm, then we don't want the "-C" option.
6871         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6872         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6873           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'
6874         else
6875           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'
6876         fi
6877         aix_use_runtimelinking=no
6879         # Test if we are trying to use run time linking or normal
6880         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6881         # need to do runtime linking.
6882         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6883           for ld_flag in $LDFLAGS; do
6884           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6885             aix_use_runtimelinking=yes
6886             break
6887           fi
6888           done
6889           ;;
6890         esac
6892         exp_sym_flag='-bexport'
6893         no_entry_flag='-bnoentry'
6894       fi
6896       # When large executables or shared objects are built, AIX ld can
6897       # have problems creating the table of contents.  If linking a library
6898       # or program results in "error TOC overflow" add -mminimal-toc to
6899       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6900       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6902       archive_cmds=''
6903       hardcode_direct=yes
6904       hardcode_libdir_separator=':'
6905       link_all_deplibs=yes
6907       if test "$GCC" = yes; then
6908         case $host_os in aix4.[012]|aix4.[012].*)
6909         # We only want to do this on AIX 4.2 and lower, the check
6910         # below for broken collect2 doesn't work under 4.3+
6911           collect2name=`${CC} -print-prog-name=collect2`
6912           if test -f "$collect2name" && \
6913            strings "$collect2name" | grep resolve_lib_name >/dev/null
6914           then
6915           # We have reworked collect2
6916           hardcode_direct=yes
6917           else
6918           # We have old collect2
6919           hardcode_direct=unsupported
6920           # It fails to find uninstalled libraries when the uninstalled
6921           # path is not listed in the libpath.  Setting hardcode_minus_L
6922           # to unsupported forces relinking
6923           hardcode_minus_L=yes
6924           hardcode_libdir_flag_spec='-L$libdir'
6925           hardcode_libdir_separator=
6926           fi
6927           ;;
6928         esac
6929         shared_flag='-shared'
6930         if test "$aix_use_runtimelinking" = yes; then
6931           shared_flag="$shared_flag "'${wl}-G'
6932         fi
6933       else
6934         # not using gcc
6935         if test "$host_cpu" = ia64; then
6936         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6937         # chokes on -Wl,-G. The following line is correct:
6938           shared_flag='-G'
6939         else
6940           if test "$aix_use_runtimelinking" = yes; then
6941             shared_flag='${wl}-G'
6942           else
6943             shared_flag='${wl}-bM:SRE'
6944           fi
6945         fi
6946       fi
6948       # It seems that -bexpall does not export symbols beginning with
6949       # underscore (_), so it is better to generate a list of symbols to export.
6950       always_export_symbols=yes
6951       if test "$aix_use_runtimelinking" = yes; then
6952         # Warning - without using the other runtime loading flags (-brtl),
6953         # -berok will link without error, but may produce a broken library.
6954         allow_undefined_flag='-berok'
6955        # Determine the default libpath from the value encoded in an empty executable.
6956        cat >conftest.$ac_ext <<_ACEOF
6957 /* confdefs.h.  */
6958 _ACEOF
6959 cat confdefs.h >>conftest.$ac_ext
6960 cat >>conftest.$ac_ext <<_ACEOF
6961 /* end confdefs.h.  */
6963 int
6964 main ()
6967   ;
6968   return 0;
6970 _ACEOF
6971 rm -f conftest.$ac_objext conftest$ac_exeext
6972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6973   (eval $ac_link) 2>conftest.er1
6974   ac_status=$?
6975   grep -v '^ *+' conftest.er1 >conftest.err
6976   rm -f conftest.er1
6977   cat conftest.err >&5
6978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6979   (exit $ac_status); } &&
6980          { ac_try='test -z "$ac_c_werror_flag"
6981                          || test ! -s conftest.err'
6982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6983   (eval $ac_try) 2>&5
6984   ac_status=$?
6985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986   (exit $ac_status); }; } &&
6987          { ac_try='test -s conftest$ac_exeext'
6988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6989   (eval $ac_try) 2>&5
6990   ac_status=$?
6991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992   (exit $ac_status); }; }; then
6994 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6995 }'`
6996 # Check for a 64-bit object if we didn't find anything.
6997 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; }
6998 }'`; fi
6999 else
7000   echo "$as_me: failed program was:" >&5
7001 sed 's/^/| /' conftest.$ac_ext >&5
7003 fi
7004 rm -f conftest.err conftest.$ac_objext \
7005       conftest$ac_exeext conftest.$ac_ext
7006 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7008        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7009         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"
7010        else
7011         if test "$host_cpu" = ia64; then
7012           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7013           allow_undefined_flag="-z nodefs"
7014           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"
7015         else
7016          # Determine the default libpath from the value encoded in an empty executable.
7017          cat >conftest.$ac_ext <<_ACEOF
7018 /* confdefs.h.  */
7019 _ACEOF
7020 cat confdefs.h >>conftest.$ac_ext
7021 cat >>conftest.$ac_ext <<_ACEOF
7022 /* end confdefs.h.  */
7024 int
7025 main ()
7028   ;
7029   return 0;
7031 _ACEOF
7032 rm -f conftest.$ac_objext conftest$ac_exeext
7033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7034   (eval $ac_link) 2>conftest.er1
7035   ac_status=$?
7036   grep -v '^ *+' conftest.er1 >conftest.err
7037   rm -f conftest.er1
7038   cat conftest.err >&5
7039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7040   (exit $ac_status); } &&
7041          { ac_try='test -z "$ac_c_werror_flag"
7042                          || test ! -s conftest.err'
7043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7044   (eval $ac_try) 2>&5
7045   ac_status=$?
7046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7047   (exit $ac_status); }; } &&
7048          { ac_try='test -s conftest$ac_exeext'
7049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7050   (eval $ac_try) 2>&5
7051   ac_status=$?
7052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7053   (exit $ac_status); }; }; then
7055 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7056 }'`
7057 # Check for a 64-bit object if we didn't find anything.
7058 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; }
7059 }'`; fi
7060 else
7061   echo "$as_me: failed program was:" >&5
7062 sed 's/^/| /' conftest.$ac_ext >&5
7064 fi
7065 rm -f conftest.err conftest.$ac_objext \
7066       conftest$ac_exeext conftest.$ac_ext
7067 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7069          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7070           # Warning - without using the other run time loading flags,
7071           # -berok will link without error, but may produce a broken library.
7072           no_undefined_flag=' ${wl}-bernotok'
7073           allow_undefined_flag=' ${wl}-berok'
7074           # Exported symbols can be pulled into shared objects from archives
7075           whole_archive_flag_spec='$convenience'
7076           archive_cmds_need_lc=yes
7077           # This is similar to how AIX traditionally builds its shared libraries.
7078           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'
7079         fi
7080       fi
7081       ;;
7083     amigaos*)
7084       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)'
7085       hardcode_libdir_flag_spec='-L$libdir'
7086       hardcode_minus_L=yes
7087       # see comment about different semantics on the GNU ld section
7088       ld_shlibs=no
7089       ;;
7091     bsdi[45]*)
7092       export_dynamic_flag_spec=-rdynamic
7093       ;;
7095     cygwin* | mingw* | pw32*)
7096       # When not using gcc, we currently assume that we are using
7097       # Microsoft Visual C++.
7098       # hardcode_libdir_flag_spec is actually meaningless, as there is
7099       # no search path for DLLs.
7100       hardcode_libdir_flag_spec=' '
7101       allow_undefined_flag=unsupported
7102       # Tell ltmain to make .lib files, not .a files.
7103       libext=lib
7104       # Tell ltmain to make .dll files, not .so files.
7105       shrext_cmds=".dll"
7106       # FIXME: Setting linknames here is a bad hack.
7107       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7108       # The linker will automatically build a .lib file if we build a DLL.
7109       old_archive_From_new_cmds='true'
7110       # FIXME: Should let the user specify the lib program.
7111       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7112       fix_srcfile_path='`cygpath -w "$srcfile"`'
7113       enable_shared_with_static_runtimes=yes
7114       ;;
7116     darwin* | rhapsody*)
7117       case $host_os in
7118         rhapsody* | darwin1.[012])
7119          allow_undefined_flag='${wl}-undefined ${wl}suppress'
7120          ;;
7121        *) # Darwin 1.3 on
7122          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7123            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7124          else
7125            case ${MACOSX_DEPLOYMENT_TARGET} in
7126              10.[012])
7127                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7128                ;;
7129              10.*)
7130                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7131                ;;
7132            esac
7133          fi
7134          ;;
7135       esac
7136       archive_cmds_need_lc=no
7137       hardcode_direct=no
7138       hardcode_automatic=yes
7139       hardcode_shlibpath_var=unsupported
7140       whole_archive_flag_spec=''
7141       link_all_deplibs=yes
7142     if test "$GCC" = yes ; then
7143         output_verbose_link_cmd='echo'
7144         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7145       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7146       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7147       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}'
7148       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}'
7149     else
7150       case $cc_basename in
7151         xlc*)
7152          output_verbose_link_cmd='echo'
7153          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7154          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7155           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7156          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}'
7157           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}'
7158           ;;
7159        *)
7160          ld_shlibs=no
7161           ;;
7162       esac
7163     fi
7164       ;;
7166     dgux*)
7167       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7168       hardcode_libdir_flag_spec='-L$libdir'
7169       hardcode_shlibpath_var=no
7170       ;;
7172     freebsd1*)
7173       ld_shlibs=no
7174       ;;
7176     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7177     # support.  Future versions do this automatically, but an explicit c++rt0.o
7178     # does not break anything, and helps significantly (at the cost of a little
7179     # extra space).
7180     freebsd2.2*)
7181       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7182       hardcode_libdir_flag_spec='-R$libdir'
7183       hardcode_direct=yes
7184       hardcode_shlibpath_var=no
7185       ;;
7187     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7188     freebsd2*)
7189       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7190       hardcode_direct=yes
7191       hardcode_minus_L=yes
7192       hardcode_shlibpath_var=no
7193       ;;
7195     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7196     freebsd* | kfreebsd*-gnu | dragonfly*)
7197       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7198       hardcode_libdir_flag_spec='-R$libdir'
7199       hardcode_direct=yes
7200       hardcode_shlibpath_var=no
7201       ;;
7203     hpux9*)
7204       if test "$GCC" = yes; then
7205         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'
7206       else
7207         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'
7208       fi
7209       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7210       hardcode_libdir_separator=:
7211       hardcode_direct=yes
7213       # hardcode_minus_L: Not really in the search PATH,
7214       # but as the default location of the library.
7215       hardcode_minus_L=yes
7216       export_dynamic_flag_spec='${wl}-E'
7217       ;;
7219     hpux10*)
7220       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7221         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7222       else
7223         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7224       fi
7225       if test "$with_gnu_ld" = no; then
7226         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7227         hardcode_libdir_separator=:
7229         hardcode_direct=yes
7230         export_dynamic_flag_spec='${wl}-E'
7232         # hardcode_minus_L: Not really in the search PATH,
7233         # but as the default location of the library.
7234         hardcode_minus_L=yes
7235       fi
7236       ;;
7238     hpux11*)
7239       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7240         case $host_cpu in
7241         hppa*64*)
7242           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7243           ;;
7244         ia64*)
7245           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7246           ;;
7247         *)
7248           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7249           ;;
7250         esac
7251       else
7252         case $host_cpu in
7253         hppa*64*)
7254           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7255           ;;
7256         ia64*)
7257           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7258           ;;
7259         *)
7260           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7261           ;;
7262         esac
7263       fi
7264       if test "$with_gnu_ld" = no; then
7265         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7266         hardcode_libdir_separator=:
7268         case $host_cpu in
7269         hppa*64*|ia64*)
7270           hardcode_libdir_flag_spec_ld='+b $libdir'
7271           hardcode_direct=no
7272           hardcode_shlibpath_var=no
7273           ;;
7274         *)
7275           hardcode_direct=yes
7276           export_dynamic_flag_spec='${wl}-E'
7278           # hardcode_minus_L: Not really in the search PATH,
7279           # but as the default location of the library.
7280           hardcode_minus_L=yes
7281           ;;
7282         esac
7283       fi
7284       ;;
7286     irix5* | irix6* | nonstopux*)
7287       if test "$GCC" = yes; then
7288         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'
7289       else
7290         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'
7291         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7292       fi
7293       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7294       hardcode_libdir_separator=:
7295       link_all_deplibs=yes
7296       ;;
7298     netbsd*)
7299       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7300         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7301       else
7302         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7303       fi
7304       hardcode_libdir_flag_spec='-R$libdir'
7305       hardcode_direct=yes
7306       hardcode_shlibpath_var=no
7307       ;;
7309     newsos6)
7310       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7311       hardcode_direct=yes
7312       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7313       hardcode_libdir_separator=:
7314       hardcode_shlibpath_var=no
7315       ;;
7317     openbsd*)
7318       hardcode_direct=yes
7319       hardcode_shlibpath_var=no
7320       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7321         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7322         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7323         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7324         export_dynamic_flag_spec='${wl}-E'
7325       else
7326        case $host_os in
7327          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7328            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7329            hardcode_libdir_flag_spec='-R$libdir'
7330            ;;
7331          *)
7332            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7333            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7334            ;;
7335        esac
7336       fi
7337       ;;
7339     os2*)
7340       hardcode_libdir_flag_spec='-L$libdir'
7341       hardcode_minus_L=yes
7342       allow_undefined_flag=unsupported
7343       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'
7344       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7345       ;;
7347     osf3*)
7348       if test "$GCC" = yes; then
7349         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7350         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'
7351       else
7352         allow_undefined_flag=' -expect_unresolved \*'
7353         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'
7354       fi
7355       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7356       hardcode_libdir_separator=:
7357       ;;
7359     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7360       if test "$GCC" = yes; then
7361         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7362         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'
7363         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7364       else
7365         allow_undefined_flag=' -expect_unresolved \*'
7366         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'
7367         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7368         $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'
7370         # Both c and cxx compiler support -rpath directly
7371         hardcode_libdir_flag_spec='-rpath $libdir'
7372       fi
7373       hardcode_libdir_separator=:
7374       ;;
7376     solaris*)
7377       no_undefined_flag=' -z text'
7378       if test "$GCC" = yes; then
7379         wlarc='${wl}'
7380         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7381         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7382           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7383       else
7384         wlarc=''
7385         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7386         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7387         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7388       fi
7389       hardcode_libdir_flag_spec='-R$libdir'
7390       hardcode_shlibpath_var=no
7391       case $host_os in
7392       solaris2.[0-5] | solaris2.[0-5].*) ;;
7393       *)
7394         # The compiler driver will combine linker options so we
7395         # cannot just pass the convience library names through
7396         # without $wl, iff we do not link with $LD.
7397         # Luckily, gcc supports the same syntax we need for Sun Studio.
7398         # Supported since Solaris 2.6 (maybe 2.5.1?)
7399         case $wlarc in
7400         '')
7401           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7402         *)
7403           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' ;;
7404         esac ;;
7405       esac
7406       link_all_deplibs=yes
7407       ;;
7409     sunos4*)
7410       if test "x$host_vendor" = xsequent; then
7411         # Use $CC to link under sequent, because it throws in some extra .o
7412         # files that make .init and .fini sections work.
7413         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7414       else
7415         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7416       fi
7417       hardcode_libdir_flag_spec='-L$libdir'
7418       hardcode_direct=yes
7419       hardcode_minus_L=yes
7420       hardcode_shlibpath_var=no
7421       ;;
7423     sysv4)
7424       case $host_vendor in
7425         sni)
7426           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7427           hardcode_direct=yes # is this really true???
7428         ;;
7429         siemens)
7430           ## LD is ld it makes a PLAMLIB
7431           ## CC just makes a GrossModule.
7432           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7433           reload_cmds='$CC -r -o $output$reload_objs'
7434           hardcode_direct=no
7435         ;;
7436         motorola)
7437           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7438           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7439         ;;
7440       esac
7441       runpath_var='LD_RUN_PATH'
7442       hardcode_shlibpath_var=no
7443       ;;
7445     sysv4.3*)
7446       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7447       hardcode_shlibpath_var=no
7448       export_dynamic_flag_spec='-Bexport'
7449       ;;
7451     sysv4*MP*)
7452       if test -d /usr/nec; then
7453         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7454         hardcode_shlibpath_var=no
7455         runpath_var=LD_RUN_PATH
7456         hardcode_runpath_var=yes
7457         ld_shlibs=yes
7458       fi
7459       ;;
7461     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7462       no_undefined_flag='${wl}-z,text'
7463       archive_cmds_need_lc=no
7464       hardcode_shlibpath_var=no
7465       runpath_var='LD_RUN_PATH'
7467       if test "$GCC" = yes; then
7468         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7469         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7470       else
7471         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7472         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7473       fi
7474       ;;
7476     sysv5* | sco3.2v5* | sco5v6*)
7477       # Note: We can NOT use -z defs as we might desire, because we do not
7478       # link with -lc, and that would cause any symbols used from libc to
7479       # always be unresolved, which means just about no library would
7480       # ever link correctly.  If we're not using GNU ld we use -z text
7481       # though, which does catch some bad symbols but isn't as heavy-handed
7482       # as -z defs.
7483       no_undefined_flag='${wl}-z,text'
7484       allow_undefined_flag='${wl}-z,nodefs'
7485       archive_cmds_need_lc=no
7486       hardcode_shlibpath_var=no
7487       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7488       hardcode_libdir_separator=':'
7489       link_all_deplibs=yes
7490       export_dynamic_flag_spec='${wl}-Bexport'
7491       runpath_var='LD_RUN_PATH'
7493       if test "$GCC" = yes; then
7494         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7495         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7496       else
7497         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7498         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7499       fi
7500       ;;
7502     uts4*)
7503       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7504       hardcode_libdir_flag_spec='-L$libdir'
7505       hardcode_shlibpath_var=no
7506       ;;
7508     *)
7509       ld_shlibs=no
7510       ;;
7511     esac
7512   fi
7514 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7515 echo "${ECHO_T}$ld_shlibs" >&6
7516 test "$ld_shlibs" = no && can_build_shared=no
7519 # Do we need to explicitly link libc?
7521 case "x$archive_cmds_need_lc" in
7522 x|xyes)
7523   # Assume -lc should be added
7524   archive_cmds_need_lc=yes
7526   if test "$enable_shared" = yes && test "$GCC" = yes; then
7527     case $archive_cmds in
7528     *'~'*)
7529       # FIXME: we may have to deal with multi-command sequences.
7530       ;;
7531     '$CC '*)
7532       # Test whether the compiler implicitly links with -lc since on some
7533       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7534       # to ld, don't add -lc before -lgcc.
7535       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7536 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7537       $rm conftest*
7538       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7540       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7541   (eval $ac_compile) 2>&5
7542   ac_status=$?
7543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7544   (exit $ac_status); } 2>conftest.err; then
7545         soname=conftest
7546         lib=conftest
7547         libobjs=conftest.$ac_objext
7548         deplibs=
7549         wl=$lt_prog_compiler_wl
7550         pic_flag=$lt_prog_compiler_pic
7551         compiler_flags=-v
7552         linker_flags=-v
7553         verstring=
7554         output_objdir=.
7555         libname=conftest
7556         lt_save_allow_undefined_flag=$allow_undefined_flag
7557         allow_undefined_flag=
7558         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7559   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7560   ac_status=$?
7561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7562   (exit $ac_status); }
7563         then
7564           archive_cmds_need_lc=no
7565         else
7566           archive_cmds_need_lc=yes
7567         fi
7568         allow_undefined_flag=$lt_save_allow_undefined_flag
7569       else
7570         cat conftest.err 1>&5
7571       fi
7572       $rm conftest*
7573       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7574 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7575       ;;
7576     esac
7577   fi
7578   ;;
7579 esac
7581 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7582 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7583 library_names_spec=
7584 libname_spec='lib$name'
7585 soname_spec=
7586 shrext_cmds=".so"
7587 postinstall_cmds=
7588 postuninstall_cmds=
7589 finish_cmds=
7590 finish_eval=
7591 shlibpath_var=
7592 shlibpath_overrides_runpath=unknown
7593 version_type=none
7594 dynamic_linker="$host_os ld.so"
7595 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7596 if test "$GCC" = yes; then
7597   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7598   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7599     # if the path contains ";" then we assume it to be the separator
7600     # otherwise default to the standard path separator (i.e. ":") - it is
7601     # assumed that no part of a normal pathname contains ";" but that should
7602     # okay in the real world where ";" in dirpaths is itself problematic.
7603     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7604   else
7605     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7606   fi
7607 else
7608   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7609 fi
7610 need_lib_prefix=unknown
7611 hardcode_into_libs=no
7613 # when you set need_version to no, make sure it does not cause -set_version
7614 # flags to be left without arguments
7615 need_version=unknown
7617 case $host_os in
7618 aix3*)
7619   version_type=linux
7620   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7621   shlibpath_var=LIBPATH
7623   # AIX 3 has no versioning support, so we append a major version to the name.
7624   soname_spec='${libname}${release}${shared_ext}$major'
7625   ;;
7627 aix4* | aix5*)
7628   version_type=linux
7629   need_lib_prefix=no
7630   need_version=no
7631   hardcode_into_libs=yes
7632   if test "$host_cpu" = ia64; then
7633     # AIX 5 supports IA64
7634     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7635     shlibpath_var=LD_LIBRARY_PATH
7636   else
7637     # With GCC up to 2.95.x, collect2 would create an import file
7638     # for dependence libraries.  The import file would start with
7639     # the line `#! .'.  This would cause the generated library to
7640     # depend on `.', always an invalid library.  This was fixed in
7641     # development snapshots of GCC prior to 3.0.
7642     case $host_os in
7643       aix4 | aix4.[01] | aix4.[01].*)
7644       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7645            echo ' yes '
7646            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7647         :
7648       else
7649         can_build_shared=no
7650       fi
7651       ;;
7652     esac
7653     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7654     # soname into executable. Probably we can add versioning support to
7655     # collect2, so additional links can be useful in future.
7656     if test "$aix_use_runtimelinking" = yes; then
7657       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7658       # instead of lib<name>.a to let people know that these are not
7659       # typical AIX shared libraries.
7660       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7661     else
7662       # We preserve .a as extension for shared libraries through AIX4.2
7663       # and later when we are not doing run time linking.
7664       library_names_spec='${libname}${release}.a $libname.a'
7665       soname_spec='${libname}${release}${shared_ext}$major'
7666     fi
7667     shlibpath_var=LIBPATH
7668   fi
7669   ;;
7671 amigaos*)
7672   library_names_spec='$libname.ixlibrary $libname.a'
7673   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7674   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'
7675   ;;
7677 beos*)
7678   library_names_spec='${libname}${shared_ext}'
7679   dynamic_linker="$host_os ld.so"
7680   shlibpath_var=LIBRARY_PATH
7681   ;;
7683 bsdi[45]*)
7684   version_type=linux
7685   need_version=no
7686   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7687   soname_spec='${libname}${release}${shared_ext}$major'
7688   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7689   shlibpath_var=LD_LIBRARY_PATH
7690   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7691   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7692   # the default ld.so.conf also contains /usr/contrib/lib and
7693   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7694   # libtool to hard-code these into programs
7695   ;;
7697 cygwin* | mingw* | pw32*)
7698   version_type=windows
7699   shrext_cmds=".dll"
7700   need_version=no
7701   need_lib_prefix=no
7703   case $GCC,$host_os in
7704   yes,cygwin* | yes,mingw* | yes,pw32*)
7705     library_names_spec='$libname.dll.a'
7706     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7707     postinstall_cmds='base_file=`basename \${file}`~
7708       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7709       dldir=$destdir/`dirname \$dlpath`~
7710       test -d \$dldir || mkdir -p \$dldir~
7711       $install_prog $dir/$dlname \$dldir/$dlname~
7712       chmod a+x \$dldir/$dlname'
7713     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7714       dlpath=$dir/\$dldll~
7715        $rm \$dlpath'
7716     shlibpath_overrides_runpath=yes
7718     case $host_os in
7719     cygwin*)
7720       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7721       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7722       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7723       ;;
7724     mingw*)
7725       # MinGW DLLs use traditional 'lib' prefix
7726       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7727       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7728       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7729         # It is most probably a Windows format PATH printed by
7730         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7731         # path with ; separators, and with drive letters. We can handle the
7732         # drive letters (cygwin fileutils understands them), so leave them,
7733         # especially as we might pass files found there to a mingw objdump,
7734         # which wouldn't understand a cygwinified path. Ahh.
7735         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7736       else
7737         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7738       fi
7739       ;;
7740     pw32*)
7741       # pw32 DLLs use 'pw' prefix rather than 'lib'
7742       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7743       ;;
7744     esac
7745     ;;
7747   *)
7748     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7749     ;;
7750   esac
7751   dynamic_linker='Win32 ld.exe'
7752   # FIXME: first we should search . and the directory the executable is in
7753   shlibpath_var=PATH
7754   ;;
7756 darwin* | rhapsody*)
7757   dynamic_linker="$host_os dyld"
7758   version_type=darwin
7759   need_lib_prefix=no
7760   need_version=no
7761   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7762   soname_spec='${libname}${release}${major}$shared_ext'
7763   shlibpath_overrides_runpath=yes
7764   shlibpath_var=DYLD_LIBRARY_PATH
7765   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
7766   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7767   if test "$GCC" = yes; then
7768     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"`
7769   else
7770     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7771   fi
7772   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7773   ;;
7775 dgux*)
7776   version_type=linux
7777   need_lib_prefix=no
7778   need_version=no
7779   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7780   soname_spec='${libname}${release}${shared_ext}$major'
7781   shlibpath_var=LD_LIBRARY_PATH
7782   ;;
7784 freebsd1*)
7785   dynamic_linker=no
7786   ;;
7788 kfreebsd*-gnu)
7789   version_type=linux
7790   need_lib_prefix=no
7791   need_version=no
7792   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7793   soname_spec='${libname}${release}${shared_ext}$major'
7794   shlibpath_var=LD_LIBRARY_PATH
7795   shlibpath_overrides_runpath=no
7796   hardcode_into_libs=yes
7797   dynamic_linker='GNU ld.so'
7798   ;;
7800 freebsd* | dragonfly*)
7801   # DragonFly does not have aout.  When/if they implement a new
7802   # versioning mechanism, adjust this.
7803   if test -x /usr/bin/objformat; then
7804     objformat=`/usr/bin/objformat`
7805   else
7806     case $host_os in
7807     freebsd[123]*) objformat=aout ;;
7808     *) objformat=elf ;;
7809     esac
7810   fi
7811   version_type=freebsd-$objformat
7812   case $version_type in
7813     freebsd-elf*)
7814       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7815       need_version=no
7816       need_lib_prefix=no
7817       ;;
7818     freebsd-*)
7819       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7820       need_version=yes
7821       ;;
7822   esac
7823   shlibpath_var=LD_LIBRARY_PATH
7824   case $host_os in
7825   freebsd2*)
7826     shlibpath_overrides_runpath=yes
7827     ;;
7828   freebsd3.[01]* | freebsdelf3.[01]*)
7829     shlibpath_overrides_runpath=yes
7830     hardcode_into_libs=yes
7831     ;;
7832   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
7833   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
7834     shlibpath_overrides_runpath=no
7835     hardcode_into_libs=yes
7836     ;;
7837   freebsd*) # from 4.6 on
7838     shlibpath_overrides_runpath=yes
7839     hardcode_into_libs=yes
7840     ;;
7841   esac
7842   ;;
7844 gnu*)
7845   version_type=linux
7846   need_lib_prefix=no
7847   need_version=no
7848   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7849   soname_spec='${libname}${release}${shared_ext}$major'
7850   shlibpath_var=LD_LIBRARY_PATH
7851   hardcode_into_libs=yes
7852   ;;
7854 hpux9* | hpux10* | hpux11*)
7855   # Give a soname corresponding to the major version so that dld.sl refuses to
7856   # link against other versions.
7857   version_type=sunos
7858   need_lib_prefix=no
7859   need_version=no
7860   case $host_cpu in
7861   ia64*)
7862     shrext_cmds='.so'
7863     hardcode_into_libs=yes
7864     dynamic_linker="$host_os dld.so"
7865     shlibpath_var=LD_LIBRARY_PATH
7866     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7867     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7868     soname_spec='${libname}${release}${shared_ext}$major'
7869     if test "X$HPUX_IA64_MODE" = X32; then
7870       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7871     else
7872       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7873     fi
7874     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7875     ;;
7876    hppa*64*)
7877      shrext_cmds='.sl'
7878      hardcode_into_libs=yes
7879      dynamic_linker="$host_os dld.sl"
7880      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7881      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7882      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7883      soname_spec='${libname}${release}${shared_ext}$major'
7884      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7885      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7886      ;;
7887    *)
7888     shrext_cmds='.sl'
7889     dynamic_linker="$host_os dld.sl"
7890     shlibpath_var=SHLIB_PATH
7891     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7892     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7893     soname_spec='${libname}${release}${shared_ext}$major'
7894     ;;
7895   esac
7896   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7897   postinstall_cmds='chmod 555 $lib'
7898   ;;
7900 interix3*)
7901   version_type=linux
7902   need_lib_prefix=no
7903   need_version=no
7904   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7905   soname_spec='${libname}${release}${shared_ext}$major'
7906   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
7907   shlibpath_var=LD_LIBRARY_PATH
7908   shlibpath_overrides_runpath=no
7909   hardcode_into_libs=yes
7910   ;;
7912 irix5* | irix6* | nonstopux*)
7913   case $host_os in
7914     nonstopux*) version_type=nonstopux ;;
7915     *)
7916         if test "$lt_cv_prog_gnu_ld" = yes; then
7917                 version_type=linux
7918         else
7919                 version_type=irix
7920         fi ;;
7921   esac
7922   need_lib_prefix=no
7923   need_version=no
7924   soname_spec='${libname}${release}${shared_ext}$major'
7925   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7926   case $host_os in
7927   irix5* | nonstopux*)
7928     libsuff= shlibsuff=
7929     ;;
7930   *)
7931     case $LD in # libtool.m4 will add one of these switches to LD
7932     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7933       libsuff= shlibsuff= libmagic=32-bit;;
7934     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7935       libsuff=32 shlibsuff=N32 libmagic=N32;;
7936     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7937       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7938     *) libsuff= shlibsuff= libmagic=never-match;;
7939     esac
7940     ;;
7941   esac
7942   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7943   shlibpath_overrides_runpath=no
7944   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7945   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7946   hardcode_into_libs=yes
7947   ;;
7949 # No shared lib support for Linux oldld, aout, or coff.
7950 linux*oldld* | linux*aout* | linux*coff*)
7951   dynamic_linker=no
7952   ;;
7954 # This must be Linux ELF.
7955 linux*)
7956   version_type=linux
7957   need_lib_prefix=no
7958   need_version=no
7959   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7960   soname_spec='${libname}${release}${shared_ext}$major'
7961   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7962   shlibpath_var=LD_LIBRARY_PATH
7963   shlibpath_overrides_runpath=no
7964   # This implies no fast_install, which is unacceptable.
7965   # Some rework will be needed to allow for fast_install
7966   # before this can be enabled.
7967   hardcode_into_libs=yes
7969   # Append ld.so.conf contents to the search path
7970   if test -f /etc/ld.so.conf; then
7971     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' ' '`
7972     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7973   fi
7975   # We used to test for /lib/ld.so.1 and disable shared libraries on
7976   # powerpc, because MkLinux only supported shared libraries with the
7977   # GNU dynamic linker.  Since this was broken with cross compilers,
7978   # most powerpc-linux boxes support dynamic linking these days and
7979   # people can always --disable-shared, the test was removed, and we
7980   # assume the GNU/Linux dynamic linker is in use.
7981   dynamic_linker='GNU/Linux ld.so'
7982   ;;
7984 knetbsd*-gnu)
7985   version_type=linux
7986   need_lib_prefix=no
7987   need_version=no
7988   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7989   soname_spec='${libname}${release}${shared_ext}$major'
7990   shlibpath_var=LD_LIBRARY_PATH
7991   shlibpath_overrides_runpath=no
7992   hardcode_into_libs=yes
7993   dynamic_linker='GNU ld.so'
7994   ;;
7996 netbsd*)
7997   version_type=sunos
7998   need_lib_prefix=no
7999   need_version=no
8000   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8001     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8002     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8003     dynamic_linker='NetBSD (a.out) ld.so'
8004   else
8005     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8006     soname_spec='${libname}${release}${shared_ext}$major'
8007     dynamic_linker='NetBSD ld.elf_so'
8008   fi
8009   shlibpath_var=LD_LIBRARY_PATH
8010   shlibpath_overrides_runpath=yes
8011   hardcode_into_libs=yes
8012   ;;
8014 newsos6)
8015   version_type=linux
8016   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8017   shlibpath_var=LD_LIBRARY_PATH
8018   shlibpath_overrides_runpath=yes
8019   ;;
8021 nto-qnx*)
8022   version_type=linux
8023   need_lib_prefix=no
8024   need_version=no
8025   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8026   soname_spec='${libname}${release}${shared_ext}$major'
8027   shlibpath_var=LD_LIBRARY_PATH
8028   shlibpath_overrides_runpath=yes
8029   ;;
8031 openbsd*)
8032   version_type=sunos
8033   sys_lib_dlsearch_path_spec="/usr/lib"
8034   need_lib_prefix=no
8035   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8036   case $host_os in
8037     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8038     *)                         need_version=no  ;;
8039   esac
8040   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8041   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8042   shlibpath_var=LD_LIBRARY_PATH
8043   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8044     case $host_os in
8045       openbsd2.[89] | openbsd2.[89].*)
8046         shlibpath_overrides_runpath=no
8047         ;;
8048       *)
8049         shlibpath_overrides_runpath=yes
8050         ;;
8051       esac
8052   else
8053     shlibpath_overrides_runpath=yes
8054   fi
8055   ;;
8057 os2*)
8058   libname_spec='$name'
8059   shrext_cmds=".dll"
8060   need_lib_prefix=no
8061   library_names_spec='$libname${shared_ext} $libname.a'
8062   dynamic_linker='OS/2 ld.exe'
8063   shlibpath_var=LIBPATH
8064   ;;
8066 osf3* | osf4* | osf5*)
8067   version_type=osf
8068   need_lib_prefix=no
8069   need_version=no
8070   soname_spec='${libname}${release}${shared_ext}$major'
8071   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8072   shlibpath_var=LD_LIBRARY_PATH
8073   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8074   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8075   ;;
8077 solaris*)
8078   version_type=linux
8079   need_lib_prefix=no
8080   need_version=no
8081   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8082   soname_spec='${libname}${release}${shared_ext}$major'
8083   shlibpath_var=LD_LIBRARY_PATH
8084   shlibpath_overrides_runpath=yes
8085   hardcode_into_libs=yes
8086   # ldd complains unless libraries are executable
8087   postinstall_cmds='chmod +x $lib'
8088   ;;
8090 sunos4*)
8091   version_type=sunos
8092   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8093   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8094   shlibpath_var=LD_LIBRARY_PATH
8095   shlibpath_overrides_runpath=yes
8096   if test "$with_gnu_ld" = yes; then
8097     need_lib_prefix=no
8098   fi
8099   need_version=yes
8100   ;;
8102 sysv4 | sysv4.3*)
8103   version_type=linux
8104   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8105   soname_spec='${libname}${release}${shared_ext}$major'
8106   shlibpath_var=LD_LIBRARY_PATH
8107   case $host_vendor in
8108     sni)
8109       shlibpath_overrides_runpath=no
8110       need_lib_prefix=no
8111       export_dynamic_flag_spec='${wl}-Blargedynsym'
8112       runpath_var=LD_RUN_PATH
8113       ;;
8114     siemens)
8115       need_lib_prefix=no
8116       ;;
8117     motorola)
8118       need_lib_prefix=no
8119       need_version=no
8120       shlibpath_overrides_runpath=no
8121       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8122       ;;
8123   esac
8124   ;;
8126 sysv4*MP*)
8127   if test -d /usr/nec ;then
8128     version_type=linux
8129     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8130     soname_spec='$libname${shared_ext}.$major'
8131     shlibpath_var=LD_LIBRARY_PATH
8132   fi
8133   ;;
8135 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8136   version_type=freebsd-elf
8137   need_lib_prefix=no
8138   need_version=no
8139   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8140   soname_spec='${libname}${release}${shared_ext}$major'
8141   shlibpath_var=LD_LIBRARY_PATH
8142   hardcode_into_libs=yes
8143   if test "$with_gnu_ld" = yes; then
8144     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8145     shlibpath_overrides_runpath=no
8146   else
8147     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8148     shlibpath_overrides_runpath=yes
8149     case $host_os in
8150       sco3.2v5*)
8151         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8152         ;;
8153     esac
8154   fi
8155   sys_lib_dlsearch_path_spec='/usr/lib'
8156   ;;
8158 uts4*)
8159   version_type=linux
8160   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8161   soname_spec='${libname}${release}${shared_ext}$major'
8162   shlibpath_var=LD_LIBRARY_PATH
8163   ;;
8165 *)
8166   dynamic_linker=no
8167   ;;
8168 esac
8169 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8170 echo "${ECHO_T}$dynamic_linker" >&6
8171 test "$dynamic_linker" = no && can_build_shared=no
8173 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8174 if test "$GCC" = yes; then
8175   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8176 fi
8178 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8179 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8180 hardcode_action=
8181 if test -n "$hardcode_libdir_flag_spec" || \
8182    test -n "$runpath_var" || \
8183    test "X$hardcode_automatic" = "Xyes" ; then
8185   # We can hardcode non-existant directories.
8186   if test "$hardcode_direct" != no &&
8187      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8188      # have to relink, otherwise we might link with an installed library
8189      # when we should be linking with a yet-to-be-installed one
8190      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8191      test "$hardcode_minus_L" != no; then
8192     # Linking always hardcodes the temporary library directory.
8193     hardcode_action=relink
8194   else
8195     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8196     hardcode_action=immediate
8197   fi
8198 else
8199   # We cannot hardcode anything, or else we can only hardcode existing
8200   # directories.
8201   hardcode_action=unsupported
8202 fi
8203 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8204 echo "${ECHO_T}$hardcode_action" >&6
8206 if test "$hardcode_action" = relink; then
8207   # Fast installation is not supported
8208   enable_fast_install=no
8209 elif test "$shlibpath_overrides_runpath" = yes ||
8210      test "$enable_shared" = no; then
8211   # Fast installation is not necessary
8212   enable_fast_install=needless
8213 fi
8215 striplib=
8216 old_striplib=
8217 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8218 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8219 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8220   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8221   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8222   echo "$as_me:$LINENO: result: yes" >&5
8223 echo "${ECHO_T}yes" >&6
8224 else
8225 # FIXME - insert some real tests, host_os isn't really good enough
8226   case $host_os in
8227    darwin*)
8228        if test -n "$STRIP" ; then
8229          striplib="$STRIP -x"
8230          echo "$as_me:$LINENO: result: yes" >&5
8231 echo "${ECHO_T}yes" >&6
8232        else
8233   echo "$as_me:$LINENO: result: no" >&5
8234 echo "${ECHO_T}no" >&6
8235 fi
8236        ;;
8237    *)
8238   echo "$as_me:$LINENO: result: no" >&5
8239 echo "${ECHO_T}no" >&6
8240     ;;
8241   esac
8242 fi
8244 if test "x$enable_dlopen" != xyes; then
8245   enable_dlopen=unknown
8246   enable_dlopen_self=unknown
8247   enable_dlopen_self_static=unknown
8248 else
8249   lt_cv_dlopen=no
8250   lt_cv_dlopen_libs=
8252   case $host_os in
8253   beos*)
8254     lt_cv_dlopen="load_add_on"
8255     lt_cv_dlopen_libs=
8256     lt_cv_dlopen_self=yes
8257     ;;
8259   mingw* | pw32*)
8260     lt_cv_dlopen="LoadLibrary"
8261     lt_cv_dlopen_libs=
8262    ;;
8264   cygwin*)
8265     lt_cv_dlopen="dlopen"
8266     lt_cv_dlopen_libs=
8267    ;;
8269   darwin*)
8270   # if libdl is installed we need to link against it
8271     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8272 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8273 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8274   echo $ECHO_N "(cached) $ECHO_C" >&6
8275 else
8276   ac_check_lib_save_LIBS=$LIBS
8277 LIBS="-ldl  $LIBS"
8278 cat >conftest.$ac_ext <<_ACEOF
8279 /* confdefs.h.  */
8280 _ACEOF
8281 cat confdefs.h >>conftest.$ac_ext
8282 cat >>conftest.$ac_ext <<_ACEOF
8283 /* end confdefs.h.  */
8285 /* Override any gcc2 internal prototype to avoid an error.  */
8286 #ifdef __cplusplus
8287 extern "C"
8288 #endif
8289 /* We use char because int might match the return type of a gcc2
8290    builtin and then its argument prototype would still apply.  */
8291 char dlopen ();
8292 int
8293 main ()
8295 dlopen ();
8296   ;
8297   return 0;
8299 _ACEOF
8300 rm -f conftest.$ac_objext conftest$ac_exeext
8301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8302   (eval $ac_link) 2>conftest.er1
8303   ac_status=$?
8304   grep -v '^ *+' conftest.er1 >conftest.err
8305   rm -f conftest.er1
8306   cat conftest.err >&5
8307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308   (exit $ac_status); } &&
8309          { ac_try='test -z "$ac_c_werror_flag"
8310                          || test ! -s conftest.err'
8311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8312   (eval $ac_try) 2>&5
8313   ac_status=$?
8314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315   (exit $ac_status); }; } &&
8316          { ac_try='test -s conftest$ac_exeext'
8317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8318   (eval $ac_try) 2>&5
8319   ac_status=$?
8320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321   (exit $ac_status); }; }; then
8322   ac_cv_lib_dl_dlopen=yes
8323 else
8324   echo "$as_me: failed program was:" >&5
8325 sed 's/^/| /' conftest.$ac_ext >&5
8327 ac_cv_lib_dl_dlopen=no
8328 fi
8329 rm -f conftest.err conftest.$ac_objext \
8330       conftest$ac_exeext conftest.$ac_ext
8331 LIBS=$ac_check_lib_save_LIBS
8332 fi
8333 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8334 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8335 if test $ac_cv_lib_dl_dlopen = yes; then
8336   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8337 else
8339     lt_cv_dlopen="dyld"
8340     lt_cv_dlopen_libs=
8341     lt_cv_dlopen_self=yes
8343 fi
8345    ;;
8347   *)
8348     echo "$as_me:$LINENO: checking for shl_load" >&5
8349 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8350 if test "${ac_cv_func_shl_load+set}" = set; then
8351   echo $ECHO_N "(cached) $ECHO_C" >&6
8352 else
8353   cat >conftest.$ac_ext <<_ACEOF
8354 /* confdefs.h.  */
8355 _ACEOF
8356 cat confdefs.h >>conftest.$ac_ext
8357 cat >>conftest.$ac_ext <<_ACEOF
8358 /* end confdefs.h.  */
8359 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8360    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8361 #define shl_load innocuous_shl_load
8363 /* System header to define __stub macros and hopefully few prototypes,
8364     which can conflict with char shl_load (); below.
8365     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8366     <limits.h> exists even on freestanding compilers.  */
8368 #ifdef __STDC__
8369 # include <limits.h>
8370 #else
8371 # include <assert.h>
8372 #endif
8374 #undef shl_load
8376 /* Override any gcc2 internal prototype to avoid an error.  */
8377 #ifdef __cplusplus
8378 extern "C"
8380 #endif
8381 /* We use char because int might match the return type of a gcc2
8382    builtin and then its argument prototype would still apply.  */
8383 char shl_load ();
8384 /* The GNU C library defines this for functions which it implements
8385     to always fail with ENOSYS.  Some functions are actually named
8386     something starting with __ and the normal name is an alias.  */
8387 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8388 choke me
8389 #else
8390 char (*f) () = shl_load;
8391 #endif
8392 #ifdef __cplusplus
8394 #endif
8396 int
8397 main ()
8399 return f != shl_load;
8400   ;
8401   return 0;
8403 _ACEOF
8404 rm -f conftest.$ac_objext conftest$ac_exeext
8405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8406   (eval $ac_link) 2>conftest.er1
8407   ac_status=$?
8408   grep -v '^ *+' conftest.er1 >conftest.err
8409   rm -f conftest.er1
8410   cat conftest.err >&5
8411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412   (exit $ac_status); } &&
8413          { ac_try='test -z "$ac_c_werror_flag"
8414                          || test ! -s conftest.err'
8415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8416   (eval $ac_try) 2>&5
8417   ac_status=$?
8418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419   (exit $ac_status); }; } &&
8420          { ac_try='test -s conftest$ac_exeext'
8421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8422   (eval $ac_try) 2>&5
8423   ac_status=$?
8424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425   (exit $ac_status); }; }; then
8426   ac_cv_func_shl_load=yes
8427 else
8428   echo "$as_me: failed program was:" >&5
8429 sed 's/^/| /' conftest.$ac_ext >&5
8431 ac_cv_func_shl_load=no
8432 fi
8433 rm -f conftest.err conftest.$ac_objext \
8434       conftest$ac_exeext conftest.$ac_ext
8435 fi
8436 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8437 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8438 if test $ac_cv_func_shl_load = yes; then
8439   lt_cv_dlopen="shl_load"
8440 else
8441   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8442 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8443 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8444   echo $ECHO_N "(cached) $ECHO_C" >&6
8445 else
8446   ac_check_lib_save_LIBS=$LIBS
8447 LIBS="-ldld  $LIBS"
8448 cat >conftest.$ac_ext <<_ACEOF
8449 /* confdefs.h.  */
8450 _ACEOF
8451 cat confdefs.h >>conftest.$ac_ext
8452 cat >>conftest.$ac_ext <<_ACEOF
8453 /* end confdefs.h.  */
8455 /* Override any gcc2 internal prototype to avoid an error.  */
8456 #ifdef __cplusplus
8457 extern "C"
8458 #endif
8459 /* We use char because int might match the return type of a gcc2
8460    builtin and then its argument prototype would still apply.  */
8461 char shl_load ();
8462 int
8463 main ()
8465 shl_load ();
8466   ;
8467   return 0;
8469 _ACEOF
8470 rm -f conftest.$ac_objext conftest$ac_exeext
8471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8472   (eval $ac_link) 2>conftest.er1
8473   ac_status=$?
8474   grep -v '^ *+' conftest.er1 >conftest.err
8475   rm -f conftest.er1
8476   cat conftest.err >&5
8477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478   (exit $ac_status); } &&
8479          { ac_try='test -z "$ac_c_werror_flag"
8480                          || test ! -s conftest.err'
8481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8482   (eval $ac_try) 2>&5
8483   ac_status=$?
8484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485   (exit $ac_status); }; } &&
8486          { ac_try='test -s conftest$ac_exeext'
8487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8488   (eval $ac_try) 2>&5
8489   ac_status=$?
8490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491   (exit $ac_status); }; }; then
8492   ac_cv_lib_dld_shl_load=yes
8493 else
8494   echo "$as_me: failed program was:" >&5
8495 sed 's/^/| /' conftest.$ac_ext >&5
8497 ac_cv_lib_dld_shl_load=no
8498 fi
8499 rm -f conftest.err conftest.$ac_objext \
8500       conftest$ac_exeext conftest.$ac_ext
8501 LIBS=$ac_check_lib_save_LIBS
8502 fi
8503 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8504 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8505 if test $ac_cv_lib_dld_shl_load = yes; then
8506   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8507 else
8508   echo "$as_me:$LINENO: checking for dlopen" >&5
8509 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8510 if test "${ac_cv_func_dlopen+set}" = set; then
8511   echo $ECHO_N "(cached) $ECHO_C" >&6
8512 else
8513   cat >conftest.$ac_ext <<_ACEOF
8514 /* confdefs.h.  */
8515 _ACEOF
8516 cat confdefs.h >>conftest.$ac_ext
8517 cat >>conftest.$ac_ext <<_ACEOF
8518 /* end confdefs.h.  */
8519 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8520    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8521 #define dlopen innocuous_dlopen
8523 /* System header to define __stub macros and hopefully few prototypes,
8524     which can conflict with char dlopen (); below.
8525     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8526     <limits.h> exists even on freestanding compilers.  */
8528 #ifdef __STDC__
8529 # include <limits.h>
8530 #else
8531 # include <assert.h>
8532 #endif
8534 #undef dlopen
8536 /* Override any gcc2 internal prototype to avoid an error.  */
8537 #ifdef __cplusplus
8538 extern "C"
8540 #endif
8541 /* We use char because int might match the return type of a gcc2
8542    builtin and then its argument prototype would still apply.  */
8543 char dlopen ();
8544 /* The GNU C library defines this for functions which it implements
8545     to always fail with ENOSYS.  Some functions are actually named
8546     something starting with __ and the normal name is an alias.  */
8547 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8548 choke me
8549 #else
8550 char (*f) () = dlopen;
8551 #endif
8552 #ifdef __cplusplus
8554 #endif
8556 int
8557 main ()
8559 return f != dlopen;
8560   ;
8561   return 0;
8563 _ACEOF
8564 rm -f conftest.$ac_objext conftest$ac_exeext
8565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8566   (eval $ac_link) 2>conftest.er1
8567   ac_status=$?
8568   grep -v '^ *+' conftest.er1 >conftest.err
8569   rm -f conftest.er1
8570   cat conftest.err >&5
8571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572   (exit $ac_status); } &&
8573          { ac_try='test -z "$ac_c_werror_flag"
8574                          || test ! -s conftest.err'
8575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8576   (eval $ac_try) 2>&5
8577   ac_status=$?
8578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579   (exit $ac_status); }; } &&
8580          { ac_try='test -s conftest$ac_exeext'
8581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8582   (eval $ac_try) 2>&5
8583   ac_status=$?
8584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585   (exit $ac_status); }; }; then
8586   ac_cv_func_dlopen=yes
8587 else
8588   echo "$as_me: failed program was:" >&5
8589 sed 's/^/| /' conftest.$ac_ext >&5
8591 ac_cv_func_dlopen=no
8592 fi
8593 rm -f conftest.err conftest.$ac_objext \
8594       conftest$ac_exeext conftest.$ac_ext
8595 fi
8596 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8597 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8598 if test $ac_cv_func_dlopen = yes; then
8599   lt_cv_dlopen="dlopen"
8600 else
8601   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8602 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8603 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8604   echo $ECHO_N "(cached) $ECHO_C" >&6
8605 else
8606   ac_check_lib_save_LIBS=$LIBS
8607 LIBS="-ldl  $LIBS"
8608 cat >conftest.$ac_ext <<_ACEOF
8609 /* confdefs.h.  */
8610 _ACEOF
8611 cat confdefs.h >>conftest.$ac_ext
8612 cat >>conftest.$ac_ext <<_ACEOF
8613 /* end confdefs.h.  */
8615 /* Override any gcc2 internal prototype to avoid an error.  */
8616 #ifdef __cplusplus
8617 extern "C"
8618 #endif
8619 /* We use char because int might match the return type of a gcc2
8620    builtin and then its argument prototype would still apply.  */
8621 char dlopen ();
8622 int
8623 main ()
8625 dlopen ();
8626   ;
8627   return 0;
8629 _ACEOF
8630 rm -f conftest.$ac_objext conftest$ac_exeext
8631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8632   (eval $ac_link) 2>conftest.er1
8633   ac_status=$?
8634   grep -v '^ *+' conftest.er1 >conftest.err
8635   rm -f conftest.er1
8636   cat conftest.err >&5
8637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638   (exit $ac_status); } &&
8639          { ac_try='test -z "$ac_c_werror_flag"
8640                          || test ! -s conftest.err'
8641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8642   (eval $ac_try) 2>&5
8643   ac_status=$?
8644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645   (exit $ac_status); }; } &&
8646          { ac_try='test -s conftest$ac_exeext'
8647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8648   (eval $ac_try) 2>&5
8649   ac_status=$?
8650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8651   (exit $ac_status); }; }; then
8652   ac_cv_lib_dl_dlopen=yes
8653 else
8654   echo "$as_me: failed program was:" >&5
8655 sed 's/^/| /' conftest.$ac_ext >&5
8657 ac_cv_lib_dl_dlopen=no
8658 fi
8659 rm -f conftest.err conftest.$ac_objext \
8660       conftest$ac_exeext conftest.$ac_ext
8661 LIBS=$ac_check_lib_save_LIBS
8662 fi
8663 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8664 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8665 if test $ac_cv_lib_dl_dlopen = yes; then
8666   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8667 else
8668   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8669 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8670 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8671   echo $ECHO_N "(cached) $ECHO_C" >&6
8672 else
8673   ac_check_lib_save_LIBS=$LIBS
8674 LIBS="-lsvld  $LIBS"
8675 cat >conftest.$ac_ext <<_ACEOF
8676 /* confdefs.h.  */
8677 _ACEOF
8678 cat confdefs.h >>conftest.$ac_ext
8679 cat >>conftest.$ac_ext <<_ACEOF
8680 /* end confdefs.h.  */
8682 /* Override any gcc2 internal prototype to avoid an error.  */
8683 #ifdef __cplusplus
8684 extern "C"
8685 #endif
8686 /* We use char because int might match the return type of a gcc2
8687    builtin and then its argument prototype would still apply.  */
8688 char dlopen ();
8689 int
8690 main ()
8692 dlopen ();
8693   ;
8694   return 0;
8696 _ACEOF
8697 rm -f conftest.$ac_objext conftest$ac_exeext
8698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8699   (eval $ac_link) 2>conftest.er1
8700   ac_status=$?
8701   grep -v '^ *+' conftest.er1 >conftest.err
8702   rm -f conftest.er1
8703   cat conftest.err >&5
8704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705   (exit $ac_status); } &&
8706          { ac_try='test -z "$ac_c_werror_flag"
8707                          || test ! -s conftest.err'
8708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8709   (eval $ac_try) 2>&5
8710   ac_status=$?
8711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712   (exit $ac_status); }; } &&
8713          { ac_try='test -s conftest$ac_exeext'
8714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8715   (eval $ac_try) 2>&5
8716   ac_status=$?
8717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8718   (exit $ac_status); }; }; then
8719   ac_cv_lib_svld_dlopen=yes
8720 else
8721   echo "$as_me: failed program was:" >&5
8722 sed 's/^/| /' conftest.$ac_ext >&5
8724 ac_cv_lib_svld_dlopen=no
8725 fi
8726 rm -f conftest.err conftest.$ac_objext \
8727       conftest$ac_exeext conftest.$ac_ext
8728 LIBS=$ac_check_lib_save_LIBS
8729 fi
8730 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8731 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8732 if test $ac_cv_lib_svld_dlopen = yes; then
8733   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8734 else
8735   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8736 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8737 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8738   echo $ECHO_N "(cached) $ECHO_C" >&6
8739 else
8740   ac_check_lib_save_LIBS=$LIBS
8741 LIBS="-ldld  $LIBS"
8742 cat >conftest.$ac_ext <<_ACEOF
8743 /* confdefs.h.  */
8744 _ACEOF
8745 cat confdefs.h >>conftest.$ac_ext
8746 cat >>conftest.$ac_ext <<_ACEOF
8747 /* end confdefs.h.  */
8749 /* Override any gcc2 internal prototype to avoid an error.  */
8750 #ifdef __cplusplus
8751 extern "C"
8752 #endif
8753 /* We use char because int might match the return type of a gcc2
8754    builtin and then its argument prototype would still apply.  */
8755 char dld_link ();
8756 int
8757 main ()
8759 dld_link ();
8760   ;
8761   return 0;
8763 _ACEOF
8764 rm -f conftest.$ac_objext conftest$ac_exeext
8765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8766   (eval $ac_link) 2>conftest.er1
8767   ac_status=$?
8768   grep -v '^ *+' conftest.er1 >conftest.err
8769   rm -f conftest.er1
8770   cat conftest.err >&5
8771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772   (exit $ac_status); } &&
8773          { ac_try='test -z "$ac_c_werror_flag"
8774                          || test ! -s conftest.err'
8775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8776   (eval $ac_try) 2>&5
8777   ac_status=$?
8778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8779   (exit $ac_status); }; } &&
8780          { ac_try='test -s conftest$ac_exeext'
8781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8782   (eval $ac_try) 2>&5
8783   ac_status=$?
8784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785   (exit $ac_status); }; }; then
8786   ac_cv_lib_dld_dld_link=yes
8787 else
8788   echo "$as_me: failed program was:" >&5
8789 sed 's/^/| /' conftest.$ac_ext >&5
8791 ac_cv_lib_dld_dld_link=no
8792 fi
8793 rm -f conftest.err conftest.$ac_objext \
8794       conftest$ac_exeext conftest.$ac_ext
8795 LIBS=$ac_check_lib_save_LIBS
8796 fi
8797 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8798 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8799 if test $ac_cv_lib_dld_dld_link = yes; then
8800   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8801 fi
8804 fi
8807 fi
8810 fi
8813 fi
8816 fi
8818     ;;
8819   esac
8821   if test "x$lt_cv_dlopen" != xno; then
8822     enable_dlopen=yes
8823   else
8824     enable_dlopen=no
8825   fi
8827   case $lt_cv_dlopen in
8828   dlopen)
8829     save_CPPFLAGS="$CPPFLAGS"
8830     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8832     save_LDFLAGS="$LDFLAGS"
8833     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8835     save_LIBS="$LIBS"
8836     LIBS="$lt_cv_dlopen_libs $LIBS"
8838     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8839 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8840 if test "${lt_cv_dlopen_self+set}" = set; then
8841   echo $ECHO_N "(cached) $ECHO_C" >&6
8842 else
8843           if test "$cross_compiling" = yes; then :
8844   lt_cv_dlopen_self=cross
8845 else
8846   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8847   lt_status=$lt_dlunknown
8848   cat > conftest.$ac_ext <<EOF
8849 #line 8849 "configure"
8850 #include "confdefs.h"
8852 #if HAVE_DLFCN_H
8853 #include <dlfcn.h>
8854 #endif
8856 #include <stdio.h>
8858 #ifdef RTLD_GLOBAL
8859 #  define LT_DLGLOBAL           RTLD_GLOBAL
8860 #else
8861 #  ifdef DL_GLOBAL
8862 #    define LT_DLGLOBAL         DL_GLOBAL
8863 #  else
8864 #    define LT_DLGLOBAL         0
8865 #  endif
8866 #endif
8868 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8869    find out it does not work in some platform. */
8870 #ifndef LT_DLLAZY_OR_NOW
8871 #  ifdef RTLD_LAZY
8872 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8873 #  else
8874 #    ifdef DL_LAZY
8875 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8876 #    else
8877 #      ifdef RTLD_NOW
8878 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8879 #      else
8880 #        ifdef DL_NOW
8881 #          define LT_DLLAZY_OR_NOW      DL_NOW
8882 #        else
8883 #          define LT_DLLAZY_OR_NOW      0
8884 #        endif
8885 #      endif
8886 #    endif
8887 #  endif
8888 #endif
8890 #ifdef __cplusplus
8891 extern "C" void exit (int);
8892 #endif
8894 void fnord() { int i=42;}
8895 int main ()
8897   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8898   int status = $lt_dlunknown;
8900   if (self)
8901     {
8902       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8903       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8904       /* dlclose (self); */
8905     }
8906   else
8907     puts (dlerror ());
8909     exit (status);
8911 EOF
8912   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8913   (eval $ac_link) 2>&5
8914   ac_status=$?
8915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8917     (./conftest; exit; ) >&5 2>/dev/null
8918     lt_status=$?
8919     case x$lt_status in
8920       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8921       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8922       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
8923     esac
8924   else :
8925     # compilation failed
8926     lt_cv_dlopen_self=no
8927   fi
8928 fi
8929 rm -fr conftest*
8932 fi
8933 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8934 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8936     if test "x$lt_cv_dlopen_self" = xyes; then
8937       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
8938       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8939 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8940 if test "${lt_cv_dlopen_self_static+set}" = set; then
8941   echo $ECHO_N "(cached) $ECHO_C" >&6
8942 else
8943           if test "$cross_compiling" = yes; then :
8944   lt_cv_dlopen_self_static=cross
8945 else
8946   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8947   lt_status=$lt_dlunknown
8948   cat > conftest.$ac_ext <<EOF
8949 #line 8949 "configure"
8950 #include "confdefs.h"
8952 #if HAVE_DLFCN_H
8953 #include <dlfcn.h>
8954 #endif
8956 #include <stdio.h>
8958 #ifdef RTLD_GLOBAL
8959 #  define LT_DLGLOBAL           RTLD_GLOBAL
8960 #else
8961 #  ifdef DL_GLOBAL
8962 #    define LT_DLGLOBAL         DL_GLOBAL
8963 #  else
8964 #    define LT_DLGLOBAL         0
8965 #  endif
8966 #endif
8968 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8969    find out it does not work in some platform. */
8970 #ifndef LT_DLLAZY_OR_NOW
8971 #  ifdef RTLD_LAZY
8972 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8973 #  else
8974 #    ifdef DL_LAZY
8975 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8976 #    else
8977 #      ifdef RTLD_NOW
8978 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8979 #      else
8980 #        ifdef DL_NOW
8981 #          define LT_DLLAZY_OR_NOW      DL_NOW
8982 #        else
8983 #          define LT_DLLAZY_OR_NOW      0
8984 #        endif
8985 #      endif
8986 #    endif
8987 #  endif
8988 #endif
8990 #ifdef __cplusplus
8991 extern "C" void exit (int);
8992 #endif
8994 void fnord() { int i=42;}
8995 int main ()
8997   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8998   int status = $lt_dlunknown;
9000   if (self)
9001     {
9002       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9003       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9004       /* dlclose (self); */
9005     }
9006   else
9007     puts (dlerror ());
9009     exit (status);
9011 EOF
9012   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9013   (eval $ac_link) 2>&5
9014   ac_status=$?
9015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9017     (./conftest; exit; ) >&5 2>/dev/null
9018     lt_status=$?
9019     case x$lt_status in
9020       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9021       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9022       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9023     esac
9024   else :
9025     # compilation failed
9026     lt_cv_dlopen_self_static=no
9027   fi
9028 fi
9029 rm -fr conftest*
9032 fi
9033 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9034 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9035     fi
9037     CPPFLAGS="$save_CPPFLAGS"
9038     LDFLAGS="$save_LDFLAGS"
9039     LIBS="$save_LIBS"
9040     ;;
9041   esac
9043   case $lt_cv_dlopen_self in
9044   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9045   *) enable_dlopen_self=unknown ;;
9046   esac
9048   case $lt_cv_dlopen_self_static in
9049   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9050   *) enable_dlopen_self_static=unknown ;;
9051   esac
9052 fi
9055 # Report which library types will actually be built
9056 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9057 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9058 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9059 echo "${ECHO_T}$can_build_shared" >&6
9061 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9062 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9063 test "$can_build_shared" = "no" && enable_shared=no
9065 # On AIX, shared libraries and static libraries use the same namespace, and
9066 # are all built from PIC.
9067 case $host_os in
9068 aix3*)
9069   test "$enable_shared" = yes && enable_static=no
9070   if test -n "$RANLIB"; then
9071     archive_cmds="$archive_cmds~\$RANLIB \$lib"
9072     postinstall_cmds='$RANLIB $lib'
9073   fi
9074   ;;
9076 aix4* | aix5*)
9077   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9078     test "$enable_shared" = yes && enable_static=no
9079   fi
9080     ;;
9081 esac
9082 echo "$as_me:$LINENO: result: $enable_shared" >&5
9083 echo "${ECHO_T}$enable_shared" >&6
9085 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9086 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9087 # Make sure either enable_shared or enable_static is yes.
9088 test "$enable_shared" = yes || enable_static=yes
9089 echo "$as_me:$LINENO: result: $enable_static" >&5
9090 echo "${ECHO_T}$enable_static" >&6
9092 # The else clause should only fire when bootstrapping the
9093 # libtool distribution, otherwise you forgot to ship ltmain.sh
9094 # with your package, and you will get complaints that there are
9095 # no rules to generate ltmain.sh.
9096 if test -f "$ltmain"; then
9097   # See if we are running on zsh, and set the options which allow our commands through
9098   # without removal of \ escapes.
9099   if test -n "${ZSH_VERSION+set}" ; then
9100     setopt NO_GLOB_SUBST
9101   fi
9102   # Now quote all the things that may contain metacharacters while being
9103   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9104   # variables and quote the copies for generation of the libtool script.
9105   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9106     SED SHELL STRIP \
9107     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9108     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9109     deplibs_check_method reload_flag reload_cmds need_locks \
9110     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9111     lt_cv_sys_global_symbol_to_c_name_address \
9112     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9113     old_postinstall_cmds old_postuninstall_cmds \
9114     compiler \
9115     CC \
9116     LD \
9117     lt_prog_compiler_wl \
9118     lt_prog_compiler_pic \
9119     lt_prog_compiler_static \
9120     lt_prog_compiler_no_builtin_flag \
9121     export_dynamic_flag_spec \
9122     thread_safe_flag_spec \
9123     whole_archive_flag_spec \
9124     enable_shared_with_static_runtimes \
9125     old_archive_cmds \
9126     old_archive_from_new_cmds \
9127     predep_objects \
9128     postdep_objects \
9129     predeps \
9130     postdeps \
9131     compiler_lib_search_path \
9132     archive_cmds \
9133     archive_expsym_cmds \
9134     postinstall_cmds \
9135     postuninstall_cmds \
9136     old_archive_from_expsyms_cmds \
9137     allow_undefined_flag \
9138     no_undefined_flag \
9139     export_symbols_cmds \
9140     hardcode_libdir_flag_spec \
9141     hardcode_libdir_flag_spec_ld \
9142     hardcode_libdir_separator \
9143     hardcode_automatic \
9144     module_cmds \
9145     module_expsym_cmds \
9146     lt_cv_prog_compiler_c_o \
9147     exclude_expsyms \
9148     include_expsyms; do
9150     case $var in
9151     old_archive_cmds | \
9152     old_archive_from_new_cmds | \
9153     archive_cmds | \
9154     archive_expsym_cmds | \
9155     module_cmds | \
9156     module_expsym_cmds | \
9157     old_archive_from_expsyms_cmds | \
9158     export_symbols_cmds | \
9159     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9160     postinstall_cmds | postuninstall_cmds | \
9161     old_postinstall_cmds | old_postuninstall_cmds | \
9162     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9163       # Double-quote double-evaled strings.
9164       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9165       ;;
9166     *)
9167       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9168       ;;
9169     esac
9170   done
9172   case $lt_echo in
9173   *'\$0 --fallback-echo"')
9174     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9175     ;;
9176   esac
9178 cfgfile="${ofile}T"
9179   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9180   $rm -f "$cfgfile"
9181   { echo "$as_me:$LINENO: creating $ofile" >&5
9182 echo "$as_me: creating $ofile" >&6;}
9184   cat <<__EOF__ >> "$cfgfile"
9185 #! $SHELL
9187 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9188 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9189 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9191 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9192 # Free Software Foundation, Inc.
9194 # This file is part of GNU Libtool:
9195 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9197 # This program is free software; you can redistribute it and/or modify
9198 # it under the terms of the GNU General Public License as published by
9199 # the Free Software Foundation; either version 2 of the License, or
9200 # (at your option) any later version.
9202 # This program is distributed in the hope that it will be useful, but
9203 # WITHOUT ANY WARRANTY; without even the implied warranty of
9204 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9205 # General Public License for more details.
9207 # You should have received a copy of the GNU General Public License
9208 # along with this program; if not, write to the Free Software
9209 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9211 # As a special exception to the GNU General Public License, if you
9212 # distribute this file as part of a program that contains a
9213 # configuration script generated by Autoconf, you may include it under
9214 # the same distribution terms that you use for the rest of that program.
9216 # A sed program that does not truncate output.
9217 SED=$lt_SED
9219 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9220 Xsed="$SED -e 1s/^X//"
9222 # The HP-UX ksh and POSIX shell print the target directory to stdout
9223 # if CDPATH is set.
9224 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9226 # The names of the tagged configurations supported by this script.
9227 available_tags=
9229 # ### BEGIN LIBTOOL CONFIG
9231 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9233 # Shell to use when invoking shell scripts.
9234 SHELL=$lt_SHELL
9236 # Whether or not to build shared libraries.
9237 build_libtool_libs=$enable_shared
9239 # Whether or not to build static libraries.
9240 build_old_libs=$enable_static
9242 # Whether or not to add -lc for building shared libraries.
9243 build_libtool_need_lc=$archive_cmds_need_lc
9245 # Whether or not to disallow shared libs when runtime libs are static
9246 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9248 # Whether or not to optimize for fast installation.
9249 fast_install=$enable_fast_install
9251 # The host system.
9252 host_alias=$host_alias
9253 host=$host
9254 host_os=$host_os
9256 # The build system.
9257 build_alias=$build_alias
9258 build=$build
9259 build_os=$build_os
9261 # An echo program that does not interpret backslashes.
9262 echo=$lt_echo
9264 # The archiver.
9265 AR=$lt_AR
9266 AR_FLAGS=$lt_AR_FLAGS
9268 # A C compiler.
9269 LTCC=$lt_LTCC
9271 # LTCC compiler flags.
9272 LTCFLAGS=$lt_LTCFLAGS
9274 # A language-specific compiler.
9275 CC=$lt_compiler
9277 # Is the compiler the GNU C compiler?
9278 with_gcc=$GCC
9280 # An ERE matcher.
9281 EGREP=$lt_EGREP
9283 # The linker used to build libraries.
9284 LD=$lt_LD
9286 # Whether we need hard or soft links.
9287 LN_S=$lt_LN_S
9289 # A BSD-compatible nm program.
9290 NM=$lt_NM
9292 # A symbol stripping program
9293 STRIP=$lt_STRIP
9295 # Used to examine libraries when file_magic_cmd begins "file"
9296 MAGIC_CMD=$MAGIC_CMD
9298 # Used on cygwin: DLL creation program.
9299 DLLTOOL="$DLLTOOL"
9301 # Used on cygwin: object dumper.
9302 OBJDUMP="$OBJDUMP"
9304 # Used on cygwin: assembler.
9305 AS="$AS"
9307 # The name of the directory that contains temporary libtool files.
9308 objdir=$objdir
9310 # How to create reloadable object files.
9311 reload_flag=$lt_reload_flag
9312 reload_cmds=$lt_reload_cmds
9314 # How to pass a linker flag through the compiler.
9315 wl=$lt_lt_prog_compiler_wl
9317 # Object file suffix (normally "o").
9318 objext="$ac_objext"
9320 # Old archive suffix (normally "a").
9321 libext="$libext"
9323 # Shared library suffix (normally ".so").
9324 shrext_cmds='$shrext_cmds'
9326 # Executable file suffix (normally "").
9327 exeext="$exeext"
9329 # Additional compiler flags for building library objects.
9330 pic_flag=$lt_lt_prog_compiler_pic
9331 pic_mode=$pic_mode
9333 # What is the maximum length of a command?
9334 max_cmd_len=$lt_cv_sys_max_cmd_len
9336 # Does compiler simultaneously support -c and -o options?
9337 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9339 # Must we lock files when doing compilation?
9340 need_locks=$lt_need_locks
9342 # Do we need the lib prefix for modules?
9343 need_lib_prefix=$need_lib_prefix
9345 # Do we need a version for libraries?
9346 need_version=$need_version
9348 # Whether dlopen is supported.
9349 dlopen_support=$enable_dlopen
9351 # Whether dlopen of programs is supported.
9352 dlopen_self=$enable_dlopen_self
9354 # Whether dlopen of statically linked programs is supported.
9355 dlopen_self_static=$enable_dlopen_self_static
9357 # Compiler flag to prevent dynamic linking.
9358 link_static_flag=$lt_lt_prog_compiler_static
9360 # Compiler flag to turn off builtin functions.
9361 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9363 # Compiler flag to allow reflexive dlopens.
9364 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9366 # Compiler flag to generate shared objects directly from archives.
9367 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9369 # Compiler flag to generate thread-safe objects.
9370 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9372 # Library versioning type.
9373 version_type=$version_type
9375 # Format of library name prefix.
9376 libname_spec=$lt_libname_spec
9378 # List of archive names.  First name is the real one, the rest are links.
9379 # The last name is the one that the linker finds with -lNAME.
9380 library_names_spec=$lt_library_names_spec
9382 # The coded name of the library, if different from the real name.
9383 soname_spec=$lt_soname_spec
9385 # Commands used to build and install an old-style archive.
9386 RANLIB=$lt_RANLIB
9387 old_archive_cmds=$lt_old_archive_cmds
9388 old_postinstall_cmds=$lt_old_postinstall_cmds
9389 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9391 # Create an old-style archive from a shared archive.
9392 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9394 # Create a temporary old-style archive to link instead of a shared archive.
9395 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9397 # Commands used to build and install a shared archive.
9398 archive_cmds=$lt_archive_cmds
9399 archive_expsym_cmds=$lt_archive_expsym_cmds
9400 postinstall_cmds=$lt_postinstall_cmds
9401 postuninstall_cmds=$lt_postuninstall_cmds
9403 # Commands used to build a loadable module (assumed same as above if empty)
9404 module_cmds=$lt_module_cmds
9405 module_expsym_cmds=$lt_module_expsym_cmds
9407 # Commands to strip libraries.
9408 old_striplib=$lt_old_striplib
9409 striplib=$lt_striplib
9411 # Dependencies to place before the objects being linked to create a
9412 # shared library.
9413 predep_objects=$lt_predep_objects
9415 # Dependencies to place after the objects being linked to create a
9416 # shared library.
9417 postdep_objects=$lt_postdep_objects
9419 # Dependencies to place before the objects being linked to create a
9420 # shared library.
9421 predeps=$lt_predeps
9423 # Dependencies to place after the objects being linked to create a
9424 # shared library.
9425 postdeps=$lt_postdeps
9427 # The library search path used internally by the compiler when linking
9428 # a shared library.
9429 compiler_lib_search_path=$lt_compiler_lib_search_path
9431 # Method to check whether dependent libraries are shared objects.
9432 deplibs_check_method=$lt_deplibs_check_method
9434 # Command to use when deplibs_check_method == file_magic.
9435 file_magic_cmd=$lt_file_magic_cmd
9437 # Flag that allows shared libraries with undefined symbols to be built.
9438 allow_undefined_flag=$lt_allow_undefined_flag
9440 # Flag that forces no undefined symbols.
9441 no_undefined_flag=$lt_no_undefined_flag
9443 # Commands used to finish a libtool library installation in a directory.
9444 finish_cmds=$lt_finish_cmds
9446 # Same as above, but a single script fragment to be evaled but not shown.
9447 finish_eval=$lt_finish_eval
9449 # Take the output of nm and produce a listing of raw symbols and C names.
9450 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9452 # Transform the output of nm in a proper C declaration
9453 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9455 # Transform the output of nm in a C name address pair
9456 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9458 # This is the shared library runtime path variable.
9459 runpath_var=$runpath_var
9461 # This is the shared library path variable.
9462 shlibpath_var=$shlibpath_var
9464 # Is shlibpath searched before the hard-coded library search path?
9465 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9467 # How to hardcode a shared library path into an executable.
9468 hardcode_action=$hardcode_action
9470 # Whether we should hardcode library paths into libraries.
9471 hardcode_into_libs=$hardcode_into_libs
9473 # Flag to hardcode \$libdir into a binary during linking.
9474 # This must work even if \$libdir does not exist.
9475 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9477 # If ld is used when linking, flag to hardcode \$libdir into
9478 # a binary during linking. This must work even if \$libdir does
9479 # not exist.
9480 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9482 # Whether we need a single -rpath flag with a separated argument.
9483 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9485 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9486 # resulting binary.
9487 hardcode_direct=$hardcode_direct
9489 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9490 # resulting binary.
9491 hardcode_minus_L=$hardcode_minus_L
9493 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9494 # the resulting binary.
9495 hardcode_shlibpath_var=$hardcode_shlibpath_var
9497 # Set to yes if building a shared library automatically hardcodes DIR into the library
9498 # and all subsequent libraries and executables linked against it.
9499 hardcode_automatic=$hardcode_automatic
9501 # Variables whose values should be saved in libtool wrapper scripts and
9502 # restored at relink time.
9503 variables_saved_for_relink="$variables_saved_for_relink"
9505 # Whether libtool must link a program against all its dependency libraries.
9506 link_all_deplibs=$link_all_deplibs
9508 # Compile-time system search path for libraries
9509 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9511 # Run-time system search path for libraries
9512 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9514 # Fix the shell variable \$srcfile for the compiler.
9515 fix_srcfile_path="$fix_srcfile_path"
9517 # Set to yes if exported symbols are required.
9518 always_export_symbols=$always_export_symbols
9520 # The commands to list exported symbols.
9521 export_symbols_cmds=$lt_export_symbols_cmds
9523 # The commands to extract the exported symbol list from a shared archive.
9524 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9526 # Symbols that should not be listed in the preloaded symbols.
9527 exclude_expsyms=$lt_exclude_expsyms
9529 # Symbols that must always be exported.
9530 include_expsyms=$lt_include_expsyms
9532 # ### END LIBTOOL CONFIG
9534 __EOF__
9537   case $host_os in
9538   aix3*)
9539     cat <<\EOF >> "$cfgfile"
9541 # AIX sometimes has problems with the GCC collect2 program.  For some
9542 # reason, if we set the COLLECT_NAMES environment variable, the problems
9543 # vanish in a puff of smoke.
9544 if test "X${COLLECT_NAMES+set}" != Xset; then
9545   COLLECT_NAMES=
9546   export COLLECT_NAMES
9547 fi
9548 EOF
9549     ;;
9550   esac
9552   # We use sed instead of cat because bash on DJGPP gets confused if
9553   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9554   # text mode, it properly converts lines to CR/LF.  This bash problem
9555   # is reportedly fixed, but why not run on old versions too?
9556   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9558   mv -f "$cfgfile" "$ofile" || \
9559     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9560   chmod +x "$ofile"
9562 else
9563   # If there is no Makefile yet, we rely on a make rule to execute
9564   # `config.status --recheck' to rerun these tests and create the
9565   # libtool script then.
9566   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9567   if test -f "$ltmain_in"; then
9568     test -f Makefile && make "$ltmain"
9569   fi
9570 fi
9573 ac_ext=c
9574 ac_cpp='$CPP $CPPFLAGS'
9575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9579 CC="$lt_save_CC"
9582 # Check whether --with-tags or --without-tags was given.
9583 if test "${with_tags+set}" = set; then
9584   withval="$with_tags"
9585   tagnames="$withval"
9586 fi;
9588 if test -f "$ltmain" && test -n "$tagnames"; then
9589   if test ! -f "${ofile}"; then
9590     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9591 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9592   fi
9594   if test -z "$LTCC"; then
9595     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9596     if test -z "$LTCC"; then
9597       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9598 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9599     else
9600       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9601 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9602     fi
9603   fi
9604   if test -z "$LTCFLAGS"; then
9605     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9606   fi
9608   # Extract list of available tagged configurations in $ofile.
9609   # Note that this assumes the entire list is on one line.
9610   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9612   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9613   for tagname in $tagnames; do
9614     IFS="$lt_save_ifs"
9615     # Check whether tagname contains only valid characters
9616     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9617     "") ;;
9618     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9619 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9620    { (exit 1); exit 1; }; }
9621         ;;
9622     esac
9624     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9625     then
9626       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9627 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9628    { (exit 1); exit 1; }; }
9629     fi
9631     # Update the list of available tags.
9632     if test -n "$tagname"; then
9633       echo appending configuration tag \"$tagname\" to $ofile
9635       case $tagname in
9636       CXX)
9637         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9638             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9639             (test "X$CXX" != "Xg++"))) ; then
9640           ac_ext=cc
9641 ac_cpp='$CXXCPP $CPPFLAGS'
9642 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9643 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9644 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9649 archive_cmds_need_lc_CXX=no
9650 allow_undefined_flag_CXX=
9651 always_export_symbols_CXX=no
9652 archive_expsym_cmds_CXX=
9653 export_dynamic_flag_spec_CXX=
9654 hardcode_direct_CXX=no
9655 hardcode_libdir_flag_spec_CXX=
9656 hardcode_libdir_flag_spec_ld_CXX=
9657 hardcode_libdir_separator_CXX=
9658 hardcode_minus_L_CXX=no
9659 hardcode_shlibpath_var_CXX=unsupported
9660 hardcode_automatic_CXX=no
9661 module_cmds_CXX=
9662 module_expsym_cmds_CXX=
9663 link_all_deplibs_CXX=unknown
9664 old_archive_cmds_CXX=$old_archive_cmds
9665 no_undefined_flag_CXX=
9666 whole_archive_flag_spec_CXX=
9667 enable_shared_with_static_runtimes_CXX=no
9669 # Dependencies to place before and after the object being linked:
9670 predep_objects_CXX=
9671 postdep_objects_CXX=
9672 predeps_CXX=
9673 postdeps_CXX=
9674 compiler_lib_search_path_CXX=
9676 # Source file extension for C++ test sources.
9677 ac_ext=cpp
9679 # Object file extension for compiled C++ test sources.
9680 objext=o
9681 objext_CXX=$objext
9683 # Code to be used in simple compile tests
9684 lt_simple_compile_test_code="int some_variable = 0;\n"
9686 # Code to be used in simple link tests
9687 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
9689 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9691 # If no C compiler was specified, use CC.
9692 LTCC=${LTCC-"$CC"}
9694 # If no C compiler flags were specified, use CFLAGS.
9695 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9697 # Allow CC to be a program name with arguments.
9698 compiler=$CC
9701 # save warnings/boilerplate of simple test code
9702 ac_outfile=conftest.$ac_objext
9703 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9704 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9705 _lt_compiler_boilerplate=`cat conftest.err`
9706 $rm conftest*
9708 ac_outfile=conftest.$ac_objext
9709 printf "$lt_simple_link_test_code" >conftest.$ac_ext
9710 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9711 _lt_linker_boilerplate=`cat conftest.err`
9712 $rm conftest*
9715 # Allow CC to be a program name with arguments.
9716 lt_save_CC=$CC
9717 lt_save_LD=$LD
9718 lt_save_GCC=$GCC
9719 GCC=$GXX
9720 lt_save_with_gnu_ld=$with_gnu_ld
9721 lt_save_path_LD=$lt_cv_path_LD
9722 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9723   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9724 else
9725   $as_unset lt_cv_prog_gnu_ld
9726 fi
9727 if test -n "${lt_cv_path_LDCXX+set}"; then
9728   lt_cv_path_LD=$lt_cv_path_LDCXX
9729 else
9730   $as_unset lt_cv_path_LD
9731 fi
9732 test -z "${LDCXX+set}" || LD=$LDCXX
9733 CC=${CXX-"c++"}
9734 compiler=$CC
9735 compiler_CXX=$CC
9736 for cc_temp in $compiler""; do
9737   case $cc_temp in
9738     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9739     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9740     \-*) ;;
9741     *) break;;
9742   esac
9743 done
9744 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9747 # We don't want -fno-exception wen compiling C++ code, so set the
9748 # no_builtin_flag separately
9749 if test "$GXX" = yes; then
9750   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9751 else
9752   lt_prog_compiler_no_builtin_flag_CXX=
9753 fi
9755 if test "$GXX" = yes; then
9756   # Set up default GNU C++ configuration
9759 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9760 if test "${with_gnu_ld+set}" = set; then
9761   withval="$with_gnu_ld"
9762   test "$withval" = no || with_gnu_ld=yes
9763 else
9764   with_gnu_ld=no
9765 fi;
9766 ac_prog=ld
9767 if test "$GCC" = yes; then
9768   # Check if gcc -print-prog-name=ld gives a path.
9769   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9770 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9771   case $host in
9772   *-*-mingw*)
9773     # gcc leaves a trailing carriage return which upsets mingw
9774     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9775   *)
9776     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9777   esac
9778   case $ac_prog in
9779     # Accept absolute paths.
9780     [\\/]* | ?:[\\/]*)
9781       re_direlt='/[^/][^/]*/\.\./'
9782       # Canonicalize the pathname of ld
9783       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9784       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9785         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9786       done
9787       test -z "$LD" && LD="$ac_prog"
9788       ;;
9789   "")
9790     # If it fails, then pretend we aren't using GCC.
9791     ac_prog=ld
9792     ;;
9793   *)
9794     # If it is relative, then search for the first ld in PATH.
9795     with_gnu_ld=unknown
9796     ;;
9797   esac
9798 elif test "$with_gnu_ld" = yes; then
9799   echo "$as_me:$LINENO: checking for GNU ld" >&5
9800 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9801 else
9802   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9803 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9804 fi
9805 if test "${lt_cv_path_LD+set}" = set; then
9806   echo $ECHO_N "(cached) $ECHO_C" >&6
9807 else
9808   if test -z "$LD"; then
9809   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9810   for ac_dir in $PATH; do
9811     IFS="$lt_save_ifs"
9812     test -z "$ac_dir" && ac_dir=.
9813     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9814       lt_cv_path_LD="$ac_dir/$ac_prog"
9815       # Check to see if the program is GNU ld.  I'd rather use --version,
9816       # but apparently some variants of GNU ld only accept -v.
9817       # Break only if it was the GNU/non-GNU ld that we prefer.
9818       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9819       *GNU* | *'with BFD'*)
9820         test "$with_gnu_ld" != no && break
9821         ;;
9822       *)
9823         test "$with_gnu_ld" != yes && break
9824         ;;
9825       esac
9826     fi
9827   done
9828   IFS="$lt_save_ifs"
9829 else
9830   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9831 fi
9832 fi
9834 LD="$lt_cv_path_LD"
9835 if test -n "$LD"; then
9836   echo "$as_me:$LINENO: result: $LD" >&5
9837 echo "${ECHO_T}$LD" >&6
9838 else
9839   echo "$as_me:$LINENO: result: no" >&5
9840 echo "${ECHO_T}no" >&6
9841 fi
9842 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9843 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9844    { (exit 1); exit 1; }; }
9845 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9846 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9847 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9848   echo $ECHO_N "(cached) $ECHO_C" >&6
9849 else
9850   # I'd rather use --version here, but apparently some GNU lds only accept -v.
9851 case `$LD -v 2>&1 </dev/null` in
9852 *GNU* | *'with BFD'*)
9853   lt_cv_prog_gnu_ld=yes
9854   ;;
9855 *)
9856   lt_cv_prog_gnu_ld=no
9857   ;;
9858 esac
9859 fi
9860 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9861 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9862 with_gnu_ld=$lt_cv_prog_gnu_ld
9866   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9867   # archiving commands below assume that GNU ld is being used.
9868   if test "$with_gnu_ld" = yes; then
9869     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9870     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'
9872     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9873     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9875     # If archive_cmds runs LD, not CC, wlarc should be empty
9876     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9877     #     investigate it a little bit more. (MM)
9878     wlarc='${wl}'
9880     # ancient GNU ld didn't support --whole-archive et. al.
9881     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9882         grep 'no-whole-archive' > /dev/null; then
9883       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9884     else
9885       whole_archive_flag_spec_CXX=
9886     fi
9887   else
9888     with_gnu_ld=no
9889     wlarc=
9891     # A generic and very simple default shared library creation
9892     # command for GNU C++ for the case where it uses the native
9893     # linker, instead of GNU ld.  If possible, this setting should
9894     # overridden to take advantage of the native linker features on
9895     # the platform it is being used on.
9896     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9897   fi
9899   # Commands to make compiler produce verbose output that lists
9900   # what "hidden" libraries, object files and flags are used when
9901   # linking a shared library.
9902   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9904 else
9905   GXX=no
9906   with_gnu_ld=no
9907   wlarc=
9908 fi
9910 # PORTME: fill in a description of your system's C++ link characteristics
9911 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9912 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9913 ld_shlibs_CXX=yes
9914 case $host_os in
9915   aix3*)
9916     # FIXME: insert proper C++ library support
9917     ld_shlibs_CXX=no
9918     ;;
9919   aix4* | aix5*)
9920     if test "$host_cpu" = ia64; then
9921       # On IA64, the linker does run time linking by default, so we don't
9922       # have to do anything special.
9923       aix_use_runtimelinking=no
9924       exp_sym_flag='-Bexport'
9925       no_entry_flag=""
9926     else
9927       aix_use_runtimelinking=no
9929       # Test if we are trying to use run time linking or normal
9930       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9931       # need to do runtime linking.
9932       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9933         for ld_flag in $LDFLAGS; do
9934           case $ld_flag in
9935           *-brtl*)
9936             aix_use_runtimelinking=yes
9937             break
9938             ;;
9939           esac
9940         done
9941         ;;
9942       esac
9944       exp_sym_flag='-bexport'
9945       no_entry_flag='-bnoentry'
9946     fi
9948     # When large executables or shared objects are built, AIX ld can
9949     # have problems creating the table of contents.  If linking a library
9950     # or program results in "error TOC overflow" add -mminimal-toc to
9951     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9952     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9954     archive_cmds_CXX=''
9955     hardcode_direct_CXX=yes
9956     hardcode_libdir_separator_CXX=':'
9957     link_all_deplibs_CXX=yes
9959     if test "$GXX" = yes; then
9960       case $host_os in aix4.[012]|aix4.[012].*)
9961       # We only want to do this on AIX 4.2 and lower, the check
9962       # below for broken collect2 doesn't work under 4.3+
9963         collect2name=`${CC} -print-prog-name=collect2`
9964         if test -f "$collect2name" && \
9965            strings "$collect2name" | grep resolve_lib_name >/dev/null
9966         then
9967           # We have reworked collect2
9968           hardcode_direct_CXX=yes
9969         else
9970           # We have old collect2
9971           hardcode_direct_CXX=unsupported
9972           # It fails to find uninstalled libraries when the uninstalled
9973           # path is not listed in the libpath.  Setting hardcode_minus_L
9974           # to unsupported forces relinking
9975           hardcode_minus_L_CXX=yes
9976           hardcode_libdir_flag_spec_CXX='-L$libdir'
9977           hardcode_libdir_separator_CXX=
9978         fi
9979         ;;
9980       esac
9981       shared_flag='-shared'
9982       if test "$aix_use_runtimelinking" = yes; then
9983         shared_flag="$shared_flag "'${wl}-G'
9984       fi
9985     else
9986       # not using gcc
9987       if test "$host_cpu" = ia64; then
9988         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9989         # chokes on -Wl,-G. The following line is correct:
9990         shared_flag='-G'
9991       else
9992         if test "$aix_use_runtimelinking" = yes; then
9993           shared_flag='${wl}-G'
9994         else
9995           shared_flag='${wl}-bM:SRE'
9996         fi
9997       fi
9998     fi
10000     # It seems that -bexpall does not export symbols beginning with
10001     # underscore (_), so it is better to generate a list of symbols to export.
10002     always_export_symbols_CXX=yes
10003     if test "$aix_use_runtimelinking" = yes; then
10004       # Warning - without using the other runtime loading flags (-brtl),
10005       # -berok will link without error, but may produce a broken library.
10006       allow_undefined_flag_CXX='-berok'
10007       # Determine the default libpath from the value encoded in an empty executable.
10008       cat >conftest.$ac_ext <<_ACEOF
10009 /* confdefs.h.  */
10010 _ACEOF
10011 cat confdefs.h >>conftest.$ac_ext
10012 cat >>conftest.$ac_ext <<_ACEOF
10013 /* end confdefs.h.  */
10015 int
10016 main ()
10019   ;
10020   return 0;
10022 _ACEOF
10023 rm -f conftest.$ac_objext conftest$ac_exeext
10024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10025   (eval $ac_link) 2>conftest.er1
10026   ac_status=$?
10027   grep -v '^ *+' conftest.er1 >conftest.err
10028   rm -f conftest.er1
10029   cat conftest.err >&5
10030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031   (exit $ac_status); } &&
10032          { ac_try='test -z "$ac_cxx_werror_flag"
10033                          || test ! -s conftest.err'
10034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10035   (eval $ac_try) 2>&5
10036   ac_status=$?
10037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038   (exit $ac_status); }; } &&
10039          { ac_try='test -s conftest$ac_exeext'
10040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10041   (eval $ac_try) 2>&5
10042   ac_status=$?
10043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044   (exit $ac_status); }; }; then
10046 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10047 }'`
10048 # Check for a 64-bit object if we didn't find anything.
10049 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; }
10050 }'`; fi
10051 else
10052   echo "$as_me: failed program was:" >&5
10053 sed 's/^/| /' conftest.$ac_ext >&5
10056 rm -f conftest.err conftest.$ac_objext \
10057       conftest$ac_exeext conftest.$ac_ext
10058 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10060       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10062       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"
10063      else
10064       if test "$host_cpu" = ia64; then
10065         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10066         allow_undefined_flag_CXX="-z nodefs"
10067         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"
10068       else
10069         # Determine the default libpath from the value encoded in an empty executable.
10070         cat >conftest.$ac_ext <<_ACEOF
10071 /* confdefs.h.  */
10072 _ACEOF
10073 cat confdefs.h >>conftest.$ac_ext
10074 cat >>conftest.$ac_ext <<_ACEOF
10075 /* end confdefs.h.  */
10077 int
10078 main ()
10081   ;
10082   return 0;
10084 _ACEOF
10085 rm -f conftest.$ac_objext conftest$ac_exeext
10086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10087   (eval $ac_link) 2>conftest.er1
10088   ac_status=$?
10089   grep -v '^ *+' conftest.er1 >conftest.err
10090   rm -f conftest.er1
10091   cat conftest.err >&5
10092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10093   (exit $ac_status); } &&
10094          { ac_try='test -z "$ac_cxx_werror_flag"
10095                          || test ! -s conftest.err'
10096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10097   (eval $ac_try) 2>&5
10098   ac_status=$?
10099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100   (exit $ac_status); }; } &&
10101          { ac_try='test -s conftest$ac_exeext'
10102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10103   (eval $ac_try) 2>&5
10104   ac_status=$?
10105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10106   (exit $ac_status); }; }; then
10108 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10109 }'`
10110 # Check for a 64-bit object if we didn't find anything.
10111 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; }
10112 }'`; fi
10113 else
10114   echo "$as_me: failed program was:" >&5
10115 sed 's/^/| /' conftest.$ac_ext >&5
10118 rm -f conftest.err conftest.$ac_objext \
10119       conftest$ac_exeext conftest.$ac_ext
10120 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10122         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10123         # Warning - without using the other run time loading flags,
10124         # -berok will link without error, but may produce a broken library.
10125         no_undefined_flag_CXX=' ${wl}-bernotok'
10126         allow_undefined_flag_CXX=' ${wl}-berok'
10127         # Exported symbols can be pulled into shared objects from archives
10128         whole_archive_flag_spec_CXX='$convenience'
10129         archive_cmds_need_lc_CXX=yes
10130         # This is similar to how AIX traditionally builds its shared libraries.
10131         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'
10132       fi
10133     fi
10134     ;;
10136   beos*)
10137     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10138       allow_undefined_flag_CXX=unsupported
10139       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10140       # support --undefined.  This deserves some investigation.  FIXME
10141       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10142     else
10143       ld_shlibs_CXX=no
10144     fi
10145     ;;
10147   chorus*)
10148     case $cc_basename in
10149       *)
10150         # FIXME: insert proper C++ library support
10151         ld_shlibs_CXX=no
10152         ;;
10153     esac
10154     ;;
10156   cygwin* | mingw* | pw32*)
10157     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10158     # as there is no search path for DLLs.
10159     hardcode_libdir_flag_spec_CXX='-L$libdir'
10160     allow_undefined_flag_CXX=unsupported
10161     always_export_symbols_CXX=no
10162     enable_shared_with_static_runtimes_CXX=yes
10164     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10165       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'
10166       # If the export-symbols file already is a .def file (1st line
10167       # is EXPORTS), use it as is; otherwise, prepend...
10168       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10169         cp $export_symbols $output_objdir/$soname.def;
10170       else
10171         echo EXPORTS > $output_objdir/$soname.def;
10172         cat $export_symbols >> $output_objdir/$soname.def;
10173       fi~
10174       $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'
10175     else
10176       ld_shlibs_CXX=no
10177     fi
10178   ;;
10179       darwin* | rhapsody*)
10180         case $host_os in
10181         rhapsody* | darwin1.[012])
10182          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10183          ;;
10184        *) # Darwin 1.3 on
10185          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10186            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10187          else
10188            case ${MACOSX_DEPLOYMENT_TARGET} in
10189              10.[012])
10190                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10191                ;;
10192              10.*)
10193                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10194                ;;
10195            esac
10196          fi
10197          ;;
10198         esac
10199       archive_cmds_need_lc_CXX=no
10200       hardcode_direct_CXX=no
10201       hardcode_automatic_CXX=yes
10202       hardcode_shlibpath_var_CXX=unsupported
10203       whole_archive_flag_spec_CXX=''
10204       link_all_deplibs_CXX=yes
10206     if test "$GXX" = yes ; then
10207       lt_int_apple_cc_single_mod=no
10208       output_verbose_link_cmd='echo'
10209       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10210        lt_int_apple_cc_single_mod=yes
10211       fi
10212       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10213        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10214       else
10215           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'
10216         fi
10217         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10218         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10219           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10220             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}'
10221           else
10222             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}'
10223           fi
10224             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}'
10225       else
10226       case $cc_basename in
10227         xlc*)
10228          output_verbose_link_cmd='echo'
10229           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'
10230           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10231           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10232           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}'
10233           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}'
10234           ;;
10235        *)
10236          ld_shlibs_CXX=no
10237           ;;
10238       esac
10239       fi
10240         ;;
10242   dgux*)
10243     case $cc_basename in
10244       ec++*)
10245         # FIXME: insert proper C++ library support
10246         ld_shlibs_CXX=no
10247         ;;
10248       ghcx*)
10249         # Green Hills C++ Compiler
10250         # FIXME: insert proper C++ library support
10251         ld_shlibs_CXX=no
10252         ;;
10253       *)
10254         # FIXME: insert proper C++ library support
10255         ld_shlibs_CXX=no
10256         ;;
10257     esac
10258     ;;
10259   freebsd[12]*)
10260     # C++ shared libraries reported to be fairly broken before switch to ELF
10261     ld_shlibs_CXX=no
10262     ;;
10263   freebsd-elf*)
10264     archive_cmds_need_lc_CXX=no
10265     ;;
10266   freebsd* | kfreebsd*-gnu | dragonfly*)
10267     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10268     # conventions
10269     ld_shlibs_CXX=yes
10270     ;;
10271   gnu*)
10272     ;;
10273   hpux9*)
10274     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10275     hardcode_libdir_separator_CXX=:
10276     export_dynamic_flag_spec_CXX='${wl}-E'
10277     hardcode_direct_CXX=yes
10278     hardcode_minus_L_CXX=yes # Not in the search PATH,
10279                                 # but as the default
10280                                 # location of the library.
10282     case $cc_basename in
10283     CC*)
10284       # FIXME: insert proper C++ library support
10285       ld_shlibs_CXX=no
10286       ;;
10287     aCC*)
10288       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'
10289       # Commands to make compiler produce verbose output that lists
10290       # what "hidden" libraries, object files and flags are used when
10291       # linking a shared library.
10292       #
10293       # There doesn't appear to be a way to prevent this compiler from
10294       # explicitly linking system object files so we need to strip them
10295       # from the output so that they don't get included in the library
10296       # dependencies.
10297       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'
10298       ;;
10299     *)
10300       if test "$GXX" = yes; then
10301         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'
10302       else
10303         # FIXME: insert proper C++ library support
10304         ld_shlibs_CXX=no
10305       fi
10306       ;;
10307     esac
10308     ;;
10309   hpux10*|hpux11*)
10310     if test $with_gnu_ld = no; then
10311       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10312       hardcode_libdir_separator_CXX=:
10314       case $host_cpu in
10315       hppa*64*|ia64*)
10316         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10317         ;;
10318       *)
10319         export_dynamic_flag_spec_CXX='${wl}-E'
10320         ;;
10321       esac
10322     fi
10323     case $host_cpu in
10324     hppa*64*|ia64*)
10325       hardcode_direct_CXX=no
10326       hardcode_shlibpath_var_CXX=no
10327       ;;
10328     *)
10329       hardcode_direct_CXX=yes
10330       hardcode_minus_L_CXX=yes # Not in the search PATH,
10331                                               # but as the default
10332                                               # location of the library.
10333       ;;
10334     esac
10336     case $cc_basename in
10337       CC*)
10338         # FIXME: insert proper C++ library support
10339         ld_shlibs_CXX=no
10340         ;;
10341       aCC*)
10342         case $host_cpu in
10343         hppa*64*)
10344           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10345           ;;
10346         ia64*)
10347           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10348           ;;
10349         *)
10350           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10351           ;;
10352         esac
10353         # Commands to make compiler produce verbose output that lists
10354         # what "hidden" libraries, object files and flags are used when
10355         # linking a shared library.
10356         #
10357         # There doesn't appear to be a way to prevent this compiler from
10358         # explicitly linking system object files so we need to strip them
10359         # from the output so that they don't get included in the library
10360         # dependencies.
10361         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'
10362         ;;
10363       *)
10364         if test "$GXX" = yes; then
10365           if test $with_gnu_ld = no; then
10366             case $host_cpu in
10367             hppa*64*)
10368               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10369               ;;
10370             ia64*)
10371               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10372               ;;
10373             *)
10374               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'
10375               ;;
10376             esac
10377           fi
10378         else
10379           # FIXME: insert proper C++ library support
10380           ld_shlibs_CXX=no
10381         fi
10382         ;;
10383     esac
10384     ;;
10385   interix3*)
10386     hardcode_direct_CXX=no
10387     hardcode_shlibpath_var_CXX=no
10388     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10389     export_dynamic_flag_spec_CXX='${wl}-E'
10390     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10391     # Instead, shared libraries are loaded at an image base (0x10000000 by
10392     # default) and relocated if they conflict, which is a slow very memory
10393     # consuming and fragmenting process.  To avoid this, we pick a random,
10394     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10395     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10396     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'
10397     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'
10398     ;;
10399   irix5* | irix6*)
10400     case $cc_basename in
10401       CC*)
10402         # SGI C++
10403         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'
10405         # Archives containing C++ object files must be created using
10406         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10407         # necessary to make sure instantiated templates are included
10408         # in the archive.
10409         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10410         ;;
10411       *)
10412         if test "$GXX" = yes; then
10413           if test "$with_gnu_ld" = no; then
10414             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'
10415           else
10416             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'
10417           fi
10418         fi
10419         link_all_deplibs_CXX=yes
10420         ;;
10421     esac
10422     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10423     hardcode_libdir_separator_CXX=:
10424     ;;
10425   linux*)
10426     case $cc_basename in
10427       KCC*)
10428         # Kuck and Associates, Inc. (KAI) C++ Compiler
10430         # KCC will only create a shared library if the output file
10431         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10432         # to its proper name (with version) after linking.
10433         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'
10434         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'
10435         # Commands to make compiler produce verbose output that lists
10436         # what "hidden" libraries, object files and flags are used when
10437         # linking a shared library.
10438         #
10439         # There doesn't appear to be a way to prevent this compiler from
10440         # explicitly linking system object files so we need to strip them
10441         # from the output so that they don't get included in the library
10442         # dependencies.
10443         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'
10445         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10446         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10448         # Archives containing C++ object files must be created using
10449         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10450         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10451         ;;
10452       icpc*)
10453         # Intel C++
10454         with_gnu_ld=yes
10455         # version 8.0 and above of icpc choke on multiply defined symbols
10456         # if we add $predep_objects and $postdep_objects, however 7.1 and
10457         # earlier do not add the objects themselves.
10458         case `$CC -V 2>&1` in
10459         *"Version 7."*)
10460           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10461           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'
10462           ;;
10463         *)  # Version 8.0 or newer
10464           tmp_idyn=
10465           case $host_cpu in
10466             ia64*) tmp_idyn=' -i_dynamic';;
10467           esac
10468           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10469           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'
10470           ;;
10471         esac
10472         archive_cmds_need_lc_CXX=no
10473         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10474         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10475         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10476         ;;
10477       pgCC*)
10478         # Portland Group C++ compiler
10479         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10480         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'
10482         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10483         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10484         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'
10485         ;;
10486       cxx*)
10487         # Compaq C++
10488         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10489         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'
10491         runpath_var=LD_RUN_PATH
10492         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10493         hardcode_libdir_separator_CXX=:
10495         # Commands to make compiler produce verbose output that lists
10496         # what "hidden" libraries, object files and flags are used when
10497         # linking a shared library.
10498         #
10499         # There doesn't appear to be a way to prevent this compiler from
10500         # explicitly linking system object files so we need to strip them
10501         # from the output so that they don't get included in the library
10502         # dependencies.
10503         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'
10504         ;;
10505     esac
10506     ;;
10507   lynxos*)
10508     # FIXME: insert proper C++ library support
10509     ld_shlibs_CXX=no
10510     ;;
10511   m88k*)
10512     # FIXME: insert proper C++ library support
10513     ld_shlibs_CXX=no
10514     ;;
10515   mvs*)
10516     case $cc_basename in
10517       cxx*)
10518         # FIXME: insert proper C++ library support
10519         ld_shlibs_CXX=no
10520         ;;
10521       *)
10522         # FIXME: insert proper C++ library support
10523         ld_shlibs_CXX=no
10524         ;;
10525     esac
10526     ;;
10527   netbsd*)
10528     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10529       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10530       wlarc=
10531       hardcode_libdir_flag_spec_CXX='-R$libdir'
10532       hardcode_direct_CXX=yes
10533       hardcode_shlibpath_var_CXX=no
10534     fi
10535     # Workaround some broken pre-1.5 toolchains
10536     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10537     ;;
10538   openbsd2*)
10539     # C++ shared libraries are fairly broken
10540     ld_shlibs_CXX=no
10541     ;;
10542   openbsd*)
10543     hardcode_direct_CXX=yes
10544     hardcode_shlibpath_var_CXX=no
10545     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10546     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10547     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10548       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10549       export_dynamic_flag_spec_CXX='${wl}-E'
10550       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10551     fi
10552     output_verbose_link_cmd='echo'
10553     ;;
10554   osf3*)
10555     case $cc_basename in
10556       KCC*)
10557         # Kuck and Associates, Inc. (KAI) C++ Compiler
10559         # KCC will only create a shared library if the output file
10560         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10561         # to its proper name (with version) after linking.
10562         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'
10564         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10565         hardcode_libdir_separator_CXX=:
10567         # Archives containing C++ object files must be created using
10568         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10569         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10571         ;;
10572       RCC*)
10573         # Rational C++ 2.4.1
10574         # FIXME: insert proper C++ library support
10575         ld_shlibs_CXX=no
10576         ;;
10577       cxx*)
10578         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10579         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'
10581         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10582         hardcode_libdir_separator_CXX=:
10584         # Commands to make compiler produce verbose output that lists
10585         # what "hidden" libraries, object files and flags are used when
10586         # linking a shared library.
10587         #
10588         # There doesn't appear to be a way to prevent this compiler from
10589         # explicitly linking system object files so we need to strip them
10590         # from the output so that they don't get included in the library
10591         # dependencies.
10592         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'
10593         ;;
10594       *)
10595         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10596           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10597           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'
10599           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10600           hardcode_libdir_separator_CXX=:
10602           # Commands to make compiler produce verbose output that lists
10603           # what "hidden" libraries, object files and flags are used when
10604           # linking a shared library.
10605           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10607         else
10608           # FIXME: insert proper C++ library support
10609           ld_shlibs_CXX=no
10610         fi
10611         ;;
10612     esac
10613     ;;
10614   osf4* | osf5*)
10615     case $cc_basename in
10616       KCC*)
10617         # Kuck and Associates, Inc. (KAI) C++ Compiler
10619         # KCC will only create a shared library if the output file
10620         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10621         # to its proper name (with version) after linking.
10622         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'
10624         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10625         hardcode_libdir_separator_CXX=:
10627         # Archives containing C++ object files must be created using
10628         # the KAI C++ compiler.
10629         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10630         ;;
10631       RCC*)
10632         # Rational C++ 2.4.1
10633         # FIXME: insert proper C++ library support
10634         ld_shlibs_CXX=no
10635         ;;
10636       cxx*)
10637         allow_undefined_flag_CXX=' -expect_unresolved \*'
10638         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'
10639         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10640           echo "-hidden">> $lib.exp~
10641           $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~
10642           $rm $lib.exp'
10644         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10645         hardcode_libdir_separator_CXX=:
10647         # Commands to make compiler produce verbose output that lists
10648         # what "hidden" libraries, object files and flags are used when
10649         # linking a shared library.
10650         #
10651         # There doesn't appear to be a way to prevent this compiler from
10652         # explicitly linking system object files so we need to strip them
10653         # from the output so that they don't get included in the library
10654         # dependencies.
10655         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'
10656         ;;
10657       *)
10658         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10659           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10660          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'
10662           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10663           hardcode_libdir_separator_CXX=:
10665           # Commands to make compiler produce verbose output that lists
10666           # what "hidden" libraries, object files and flags are used when
10667           # linking a shared library.
10668           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10670         else
10671           # FIXME: insert proper C++ library support
10672           ld_shlibs_CXX=no
10673         fi
10674         ;;
10675     esac
10676     ;;
10677   psos*)
10678     # FIXME: insert proper C++ library support
10679     ld_shlibs_CXX=no
10680     ;;
10681   sunos4*)
10682     case $cc_basename in
10683       CC*)
10684         # Sun C++ 4.x
10685         # FIXME: insert proper C++ library support
10686         ld_shlibs_CXX=no
10687         ;;
10688       lcc*)
10689         # Lucid
10690         # FIXME: insert proper C++ library support
10691         ld_shlibs_CXX=no
10692         ;;
10693       *)
10694         # FIXME: insert proper C++ library support
10695         ld_shlibs_CXX=no
10696         ;;
10697     esac
10698     ;;
10699   solaris*)
10700     case $cc_basename in
10701       CC*)
10702         # Sun C++ 4.2, 5.x and Centerline C++
10703         archive_cmds_need_lc_CXX=yes
10704         no_undefined_flag_CXX=' -zdefs'
10705         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10706         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10707         $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'
10709         hardcode_libdir_flag_spec_CXX='-R$libdir'
10710         hardcode_shlibpath_var_CXX=no
10711         case $host_os in
10712           solaris2.[0-5] | solaris2.[0-5].*) ;;
10713           *)
10714             # The C++ compiler is used as linker so we must use $wl
10715             # flag to pass the commands to the underlying system
10716             # linker. We must also pass each convience library through
10717             # to the system linker between allextract/defaultextract.
10718             # The C++ compiler will combine linker options so we
10719             # cannot just pass the convience library names through
10720             # without $wl.
10721             # Supported since Solaris 2.6 (maybe 2.5.1?)
10722             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'
10723             ;;
10724         esac
10725         link_all_deplibs_CXX=yes
10727         output_verbose_link_cmd='echo'
10729         # Archives containing C++ object files must be created using
10730         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10731         # necessary to make sure instantiated templates are included
10732         # in the archive.
10733         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10734         ;;
10735       gcx*)
10736         # Green Hills C++ Compiler
10737         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10739         # The C++ compiler must be used to create the archive.
10740         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10741         ;;
10742       *)
10743         # GNU C++ compiler with Solaris linker
10744         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10745           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10746           if $CC --version | grep -v '^2\.7' > /dev/null; then
10747             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10748             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10749                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10751             # Commands to make compiler produce verbose output that lists
10752             # what "hidden" libraries, object files and flags are used when
10753             # linking a shared library.
10754             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10755           else
10756             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10757             # platform.
10758             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10759             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10760                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10762             # Commands to make compiler produce verbose output that lists
10763             # what "hidden" libraries, object files and flags are used when
10764             # linking a shared library.
10765             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10766           fi
10768           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10769         fi
10770         ;;
10771     esac
10772     ;;
10773   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10774     no_undefined_flag_CXX='${wl}-z,text'
10775     archive_cmds_need_lc_CXX=no
10776     hardcode_shlibpath_var_CXX=no
10777     runpath_var='LD_RUN_PATH'
10779     case $cc_basename in
10780       CC*)
10781         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10782         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10783         ;;
10784       *)
10785         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10786         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10787         ;;
10788     esac
10789     ;;
10790   sysv5* | sco3.2v5* | sco5v6*)
10791     # Note: We can NOT use -z defs as we might desire, because we do not
10792     # link with -lc, and that would cause any symbols used from libc to
10793     # always be unresolved, which means just about no library would
10794     # ever link correctly.  If we're not using GNU ld we use -z text
10795     # though, which does catch some bad symbols but isn't as heavy-handed
10796     # as -z defs.
10797     # For security reasons, it is highly recommended that you always
10798     # use absolute paths for naming shared libraries, and exclude the
10799     # DT_RUNPATH tag from executables and libraries.  But doing so
10800     # requires that you compile everything twice, which is a pain.
10801     # So that behaviour is only enabled if SCOABSPATH is set to a
10802     # non-empty value in the environment.  Most likely only useful for
10803     # creating official distributions of packages.
10804     # This is a hack until libtool officially supports absolute path
10805     # names for shared libraries.
10806     no_undefined_flag_CXX='${wl}-z,text'
10807     allow_undefined_flag_CXX='${wl}-z,nodefs'
10808     archive_cmds_need_lc_CXX=no
10809     hardcode_shlibpath_var_CXX=no
10810     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10811     hardcode_libdir_separator_CXX=':'
10812     link_all_deplibs_CXX=yes
10813     export_dynamic_flag_spec_CXX='${wl}-Bexport'
10814     runpath_var='LD_RUN_PATH'
10816     case $cc_basename in
10817       CC*)
10818         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10819         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10820         ;;
10821       *)
10822         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10823         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10824         ;;
10825     esac
10826     ;;
10827   tandem*)
10828     case $cc_basename in
10829       NCC*)
10830         # NonStop-UX NCC 3.20
10831         # FIXME: insert proper C++ library support
10832         ld_shlibs_CXX=no
10833         ;;
10834       *)
10835         # FIXME: insert proper C++ library support
10836         ld_shlibs_CXX=no
10837         ;;
10838     esac
10839     ;;
10840   vxworks*)
10841     # FIXME: insert proper C++ library support
10842     ld_shlibs_CXX=no
10843     ;;
10844   *)
10845     # FIXME: insert proper C++ library support
10846     ld_shlibs_CXX=no
10847     ;;
10848 esac
10849 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10850 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10851 test "$ld_shlibs_CXX" = no && can_build_shared=no
10853 GCC_CXX="$GXX"
10854 LD_CXX="$LD"
10857 cat > conftest.$ac_ext <<EOF
10858 class Foo
10860 public:
10861   Foo (void) { a = 0; }
10862 private:
10863   int a;
10865 EOF
10867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10868   (eval $ac_compile) 2>&5
10869   ac_status=$?
10870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10871   (exit $ac_status); }; then
10872   # Parse the compiler output and extract the necessary
10873   # objects, libraries and library flags.
10875   # Sentinel used to keep track of whether or not we are before
10876   # the conftest object file.
10877   pre_test_object_deps_done=no
10879   # The `*' in the case matches for architectures that use `case' in
10880   # $output_verbose_cmd can trigger glob expansion during the loop
10881   # eval without this substitution.
10882   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
10884   for p in `eval $output_verbose_link_cmd`; do
10885     case $p in
10887     -L* | -R* | -l*)
10888        # Some compilers place space between "-{L,R}" and the path.
10889        # Remove the space.
10890        if test $p = "-L" \
10891           || test $p = "-R"; then
10892          prev=$p
10893          continue
10894        else
10895          prev=
10896        fi
10898        if test "$pre_test_object_deps_done" = no; then
10899          case $p in
10900          -L* | -R*)
10901            # Internal compiler library paths should come after those
10902            # provided the user.  The postdeps already come after the
10903            # user supplied libs so there is no need to process them.
10904            if test -z "$compiler_lib_search_path_CXX"; then
10905              compiler_lib_search_path_CXX="${prev}${p}"
10906            else
10907              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10908            fi
10909            ;;
10910          # The "-l" case would never come before the object being
10911          # linked, so don't bother handling this case.
10912          esac
10913        else
10914          if test -z "$postdeps_CXX"; then
10915            postdeps_CXX="${prev}${p}"
10916          else
10917            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10918          fi
10919        fi
10920        ;;
10922     *.$objext)
10923        # This assumes that the test object file only shows up
10924        # once in the compiler output.
10925        if test "$p" = "conftest.$objext"; then
10926          pre_test_object_deps_done=yes
10927          continue
10928        fi
10930        if test "$pre_test_object_deps_done" = no; then
10931          if test -z "$predep_objects_CXX"; then
10932            predep_objects_CXX="$p"
10933          else
10934            predep_objects_CXX="$predep_objects_CXX $p"
10935          fi
10936        else
10937          if test -z "$postdep_objects_CXX"; then
10938            postdep_objects_CXX="$p"
10939          else
10940            postdep_objects_CXX="$postdep_objects_CXX $p"
10941          fi
10942        fi
10943        ;;
10945     *) ;; # Ignore the rest.
10947     esac
10948   done
10950   # Clean up.
10951   rm -f a.out a.exe
10952 else
10953   echo "libtool.m4: error: problem compiling CXX test program"
10956 $rm -f confest.$objext
10958 # PORTME: override above test on systems where it is broken
10959 case $host_os in
10960 interix3*)
10961   # Interix 3.5 installs completely hosed .la files for C++, so rather than
10962   # hack all around it, let's just trust "g++" to DTRT.
10963   predep_objects_CXX=
10964   postdep_objects_CXX=
10965   postdeps_CXX=
10966   ;;
10968 solaris*)
10969   case $cc_basename in
10970   CC*)
10971     # Adding this requires a known-good setup of shared libraries for
10972     # Sun compiler versions before 5.6, else PIC objects from an old
10973     # archive will be linked into the output, leading to subtle bugs.
10974     postdeps_CXX='-lCstd -lCrun'
10975     ;;
10976   esac
10977   ;;
10978 esac
10981 case " $postdeps_CXX " in
10982 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10983 esac
10985 lt_prog_compiler_wl_CXX=
10986 lt_prog_compiler_pic_CXX=
10987 lt_prog_compiler_static_CXX=
10989 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10990 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10992   # C++ specific cases for pic, static, wl, etc.
10993   if test "$GXX" = yes; then
10994     lt_prog_compiler_wl_CXX='-Wl,'
10995     lt_prog_compiler_static_CXX='-static'
10997     case $host_os in
10998     aix*)
10999       # All AIX code is PIC.
11000       if test "$host_cpu" = ia64; then
11001         # AIX 5 now supports IA64 processor
11002         lt_prog_compiler_static_CXX='-Bstatic'
11003       fi
11004       ;;
11005     amigaos*)
11006       # FIXME: we need at least 68020 code to build shared libraries, but
11007       # adding the `-m68020' flag to GCC prevents building anything better,
11008       # like `-m68040'.
11009       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11010       ;;
11011     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11012       # PIC is the default for these OSes.
11013       ;;
11014     mingw* | os2* | pw32*)
11015       # This hack is so that the source file can tell whether it is being
11016       # built for inclusion in a dll (and should export symbols for example).
11017       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11018       ;;
11019     darwin* | rhapsody*)
11020       # PIC is the default on this platform
11021       # Common symbols not allowed in MH_DYLIB files
11022       lt_prog_compiler_pic_CXX='-fno-common'
11023       ;;
11024     *djgpp*)
11025       # DJGPP does not support shared libraries at all
11026       lt_prog_compiler_pic_CXX=
11027       ;;
11028     interix3*)
11029       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11030       # Instead, we relocate shared libraries at runtime.
11031       ;;
11032     sysv4*MP*)
11033       if test -d /usr/nec; then
11034         lt_prog_compiler_pic_CXX=-Kconform_pic
11035       fi
11036       ;;
11037     hpux*)
11038       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11039       # not for PA HP-UX.
11040       case $host_cpu in
11041       hppa*64*|ia64*)
11042         ;;
11043       *)
11044         lt_prog_compiler_pic_CXX='-fPIC'
11045         ;;
11046       esac
11047       ;;
11048     *)
11049       lt_prog_compiler_pic_CXX='-fPIC'
11050       ;;
11051     esac
11052   else
11053     case $host_os in
11054       aix4* | aix5*)
11055         # All AIX code is PIC.
11056         if test "$host_cpu" = ia64; then
11057           # AIX 5 now supports IA64 processor
11058           lt_prog_compiler_static_CXX='-Bstatic'
11059         else
11060           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11061         fi
11062         ;;
11063       chorus*)
11064         case $cc_basename in
11065         cxch68*)
11066           # Green Hills C++ Compiler
11067           # _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"
11068           ;;
11069         esac
11070         ;;
11071        darwin*)
11072          # PIC is the default on this platform
11073          # Common symbols not allowed in MH_DYLIB files
11074          case $cc_basename in
11075            xlc*)
11076            lt_prog_compiler_pic_CXX='-qnocommon'
11077            lt_prog_compiler_wl_CXX='-Wl,'
11078            ;;
11079          esac
11080        ;;
11081       dgux*)
11082         case $cc_basename in
11083           ec++*)
11084             lt_prog_compiler_pic_CXX='-KPIC'
11085             ;;
11086           ghcx*)
11087             # Green Hills C++ Compiler
11088             lt_prog_compiler_pic_CXX='-pic'
11089             ;;
11090           *)
11091             ;;
11092         esac
11093         ;;
11094       freebsd* | kfreebsd*-gnu | dragonfly*)
11095         # FreeBSD uses GNU C++
11096         ;;
11097       hpux9* | hpux10* | hpux11*)
11098         case $cc_basename in
11099           CC*)
11100             lt_prog_compiler_wl_CXX='-Wl,'
11101             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11102             if test "$host_cpu" != ia64; then
11103               lt_prog_compiler_pic_CXX='+Z'
11104             fi
11105             ;;
11106           aCC*)
11107             lt_prog_compiler_wl_CXX='-Wl,'
11108             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11109             case $host_cpu in
11110             hppa*64*|ia64*)
11111               # +Z the default
11112               ;;
11113             *)
11114               lt_prog_compiler_pic_CXX='+Z'
11115               ;;
11116             esac
11117             ;;
11118           *)
11119             ;;
11120         esac
11121         ;;
11122       interix*)
11123         # This is c89, which is MS Visual C++ (no shared libs)
11124         # Anyone wants to do a port?
11125         ;;
11126       irix5* | irix6* | nonstopux*)
11127         case $cc_basename in
11128           CC*)
11129             lt_prog_compiler_wl_CXX='-Wl,'
11130             lt_prog_compiler_static_CXX='-non_shared'
11131             # CC pic flag -KPIC is the default.
11132             ;;
11133           *)
11134             ;;
11135         esac
11136         ;;
11137       linux*)
11138         case $cc_basename in
11139           KCC*)
11140             # KAI C++ Compiler
11141             lt_prog_compiler_wl_CXX='--backend -Wl,'
11142             lt_prog_compiler_pic_CXX='-fPIC'
11143             ;;
11144           icpc* | ecpc*)
11145             # Intel C++
11146             lt_prog_compiler_wl_CXX='-Wl,'
11147             lt_prog_compiler_pic_CXX='-KPIC'
11148             lt_prog_compiler_static_CXX='-static'
11149             ;;
11150           pgCC*)
11151             # Portland Group C++ compiler.
11152             lt_prog_compiler_wl_CXX='-Wl,'
11153             lt_prog_compiler_pic_CXX='-fpic'
11154             lt_prog_compiler_static_CXX='-Bstatic'
11155             ;;
11156           cxx*)
11157             # Compaq C++
11158             # Make sure the PIC flag is empty.  It appears that all Alpha
11159             # Linux and Compaq Tru64 Unix objects are PIC.
11160             lt_prog_compiler_pic_CXX=
11161             lt_prog_compiler_static_CXX='-non_shared'
11162             ;;
11163           *)
11164             ;;
11165         esac
11166         ;;
11167       lynxos*)
11168         ;;
11169       m88k*)
11170         ;;
11171       mvs*)
11172         case $cc_basename in
11173           cxx*)
11174             lt_prog_compiler_pic_CXX='-W c,exportall'
11175             ;;
11176           *)
11177             ;;
11178         esac
11179         ;;
11180       netbsd*)
11181         ;;
11182       osf3* | osf4* | osf5*)
11183         case $cc_basename in
11184           KCC*)
11185             lt_prog_compiler_wl_CXX='--backend -Wl,'
11186             ;;
11187           RCC*)
11188             # Rational C++ 2.4.1
11189             lt_prog_compiler_pic_CXX='-pic'
11190             ;;
11191           cxx*)
11192             # Digital/Compaq C++
11193             lt_prog_compiler_wl_CXX='-Wl,'
11194             # Make sure the PIC flag is empty.  It appears that all Alpha
11195             # Linux and Compaq Tru64 Unix objects are PIC.
11196             lt_prog_compiler_pic_CXX=
11197             lt_prog_compiler_static_CXX='-non_shared'
11198             ;;
11199           *)
11200             ;;
11201         esac
11202         ;;
11203       psos*)
11204         ;;
11205       solaris*)
11206         case $cc_basename in
11207           CC*)
11208             # Sun C++ 4.2, 5.x and Centerline C++
11209             lt_prog_compiler_pic_CXX='-KPIC'
11210             lt_prog_compiler_static_CXX='-Bstatic'
11211             lt_prog_compiler_wl_CXX='-Qoption ld '
11212             ;;
11213           gcx*)
11214             # Green Hills C++ Compiler
11215             lt_prog_compiler_pic_CXX='-PIC'
11216             ;;
11217           *)
11218             ;;
11219         esac
11220         ;;
11221       sunos4*)
11222         case $cc_basename in
11223           CC*)
11224             # Sun C++ 4.x
11225             lt_prog_compiler_pic_CXX='-pic'
11226             lt_prog_compiler_static_CXX='-Bstatic'
11227             ;;
11228           lcc*)
11229             # Lucid
11230             lt_prog_compiler_pic_CXX='-pic'
11231             ;;
11232           *)
11233             ;;
11234         esac
11235         ;;
11236       tandem*)
11237         case $cc_basename in
11238           NCC*)
11239             # NonStop-UX NCC 3.20
11240             lt_prog_compiler_pic_CXX='-KPIC'
11241             ;;
11242           *)
11243             ;;
11244         esac
11245         ;;
11246       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11247         case $cc_basename in
11248           CC*)
11249             lt_prog_compiler_wl_CXX='-Wl,'
11250             lt_prog_compiler_pic_CXX='-KPIC'
11251             lt_prog_compiler_static_CXX='-Bstatic'
11252             ;;
11253         esac
11254         ;;
11255       vxworks*)
11256         ;;
11257       *)
11258         lt_prog_compiler_can_build_shared_CXX=no
11259         ;;
11260     esac
11261   fi
11263 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11264 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11267 # Check to make sure the PIC flag actually works.
11269 if test -n "$lt_prog_compiler_pic_CXX"; then
11271 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11272 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11273 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11274   echo $ECHO_N "(cached) $ECHO_C" >&6
11275 else
11276   lt_prog_compiler_pic_works_CXX=no
11277   ac_outfile=conftest.$ac_objext
11278    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11279    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11280    # Insert the option either (1) after the last *FLAGS variable, or
11281    # (2) before a word containing "conftest.", or (3) at the end.
11282    # Note that $ac_compile itself does not contain backslashes and begins
11283    # with a dollar sign (not a hyphen), so the echo should work correctly.
11284    # The option is referenced via a variable to avoid confusing sed.
11285    lt_compile=`echo "$ac_compile" | $SED \
11286    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11287    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11288    -e 's:$: $lt_compiler_flag:'`
11289    (eval echo "\"\$as_me:11289: $lt_compile\"" >&5)
11290    (eval "$lt_compile" 2>conftest.err)
11291    ac_status=$?
11292    cat conftest.err >&5
11293    echo "$as_me:11293: \$? = $ac_status" >&5
11294    if (exit $ac_status) && test -s "$ac_outfile"; then
11295      # The compiler can only warn and ignore the option if not recognized
11296      # So say no if there are warnings other than the usual output.
11297      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11298      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11299      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11300        lt_prog_compiler_pic_works_CXX=yes
11301      fi
11302    fi
11303    $rm conftest*
11306 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11307 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11309 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11310     case $lt_prog_compiler_pic_CXX in
11311      "" | " "*) ;;
11312      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11313      esac
11314 else
11315     lt_prog_compiler_pic_CXX=
11316      lt_prog_compiler_can_build_shared_CXX=no
11320 case $host_os in
11321   # For platforms which do not support PIC, -DPIC is meaningless:
11322   *djgpp*)
11323     lt_prog_compiler_pic_CXX=
11324     ;;
11325   *)
11326     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11327     ;;
11328 esac
11331 # Check to make sure the static flag actually works.
11333 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11334 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11335 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11336 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11337   echo $ECHO_N "(cached) $ECHO_C" >&6
11338 else
11339   lt_prog_compiler_static_works_CXX=no
11340    save_LDFLAGS="$LDFLAGS"
11341    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11342    printf "$lt_simple_link_test_code" > conftest.$ac_ext
11343    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11344      # The linker can only warn and ignore the option if not recognized
11345      # So say no if there are warnings
11346      if test -s conftest.err; then
11347        # Append any errors to the config.log.
11348        cat conftest.err 1>&5
11349        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11350        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11351        if diff conftest.exp conftest.er2 >/dev/null; then
11352          lt_prog_compiler_static_works_CXX=yes
11353        fi
11354      else
11355        lt_prog_compiler_static_works_CXX=yes
11356      fi
11357    fi
11358    $rm conftest*
11359    LDFLAGS="$save_LDFLAGS"
11362 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11363 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11365 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11366     :
11367 else
11368     lt_prog_compiler_static_CXX=
11372 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11373 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11374 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11375   echo $ECHO_N "(cached) $ECHO_C" >&6
11376 else
11377   lt_cv_prog_compiler_c_o_CXX=no
11378    $rm -r conftest 2>/dev/null
11379    mkdir conftest
11380    cd conftest
11381    mkdir out
11382    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11384    lt_compiler_flag="-o out/conftest2.$ac_objext"
11385    # Insert the option either (1) after the last *FLAGS variable, or
11386    # (2) before a word containing "conftest.", or (3) at the end.
11387    # Note that $ac_compile itself does not contain backslashes and begins
11388    # with a dollar sign (not a hyphen), so the echo should work correctly.
11389    lt_compile=`echo "$ac_compile" | $SED \
11390    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11391    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11392    -e 's:$: $lt_compiler_flag:'`
11393    (eval echo "\"\$as_me:11393: $lt_compile\"" >&5)
11394    (eval "$lt_compile" 2>out/conftest.err)
11395    ac_status=$?
11396    cat out/conftest.err >&5
11397    echo "$as_me:11397: \$? = $ac_status" >&5
11398    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11399    then
11400      # The compiler can only warn and ignore the option if not recognized
11401      # So say no if there are warnings
11402      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11403      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11404      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11405        lt_cv_prog_compiler_c_o_CXX=yes
11406      fi
11407    fi
11408    chmod u+w . 2>&5
11409    $rm conftest*
11410    # SGI C++ compiler will create directory out/ii_files/ for
11411    # template instantiation
11412    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11413    $rm out/* && rmdir out
11414    cd ..
11415    rmdir conftest
11416    $rm conftest*
11419 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11420 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11423 hard_links="nottested"
11424 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11425   # do not overwrite the value of need_locks provided by the user
11426   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11427 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11428   hard_links=yes
11429   $rm conftest*
11430   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11431   touch conftest.a
11432   ln conftest.a conftest.b 2>&5 || hard_links=no
11433   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11434   echo "$as_me:$LINENO: result: $hard_links" >&5
11435 echo "${ECHO_T}$hard_links" >&6
11436   if test "$hard_links" = no; then
11437     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11438 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11439     need_locks=warn
11440   fi
11441 else
11442   need_locks=no
11445 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11446 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11448   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11449   case $host_os in
11450   aix4* | aix5*)
11451     # If we're using GNU nm, then we don't want the "-C" option.
11452     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11453     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11454       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'
11455     else
11456       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'
11457     fi
11458     ;;
11459   pw32*)
11460     export_symbols_cmds_CXX="$ltdll_cmds"
11461   ;;
11462   cygwin* | mingw*)
11463     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'
11464   ;;
11465   *)
11466     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11467   ;;
11468   esac
11470 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11471 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11472 test "$ld_shlibs_CXX" = no && can_build_shared=no
11475 # Do we need to explicitly link libc?
11477 case "x$archive_cmds_need_lc_CXX" in
11478 x|xyes)
11479   # Assume -lc should be added
11480   archive_cmds_need_lc_CXX=yes
11482   if test "$enable_shared" = yes && test "$GCC" = yes; then
11483     case $archive_cmds_CXX in
11484     *'~'*)
11485       # FIXME: we may have to deal with multi-command sequences.
11486       ;;
11487     '$CC '*)
11488       # Test whether the compiler implicitly links with -lc since on some
11489       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11490       # to ld, don't add -lc before -lgcc.
11491       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11492 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11493       $rm conftest*
11494       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11496       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11497   (eval $ac_compile) 2>&5
11498   ac_status=$?
11499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11500   (exit $ac_status); } 2>conftest.err; then
11501         soname=conftest
11502         lib=conftest
11503         libobjs=conftest.$ac_objext
11504         deplibs=
11505         wl=$lt_prog_compiler_wl_CXX
11506         pic_flag=$lt_prog_compiler_pic_CXX
11507         compiler_flags=-v
11508         linker_flags=-v
11509         verstring=
11510         output_objdir=.
11511         libname=conftest
11512         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11513         allow_undefined_flag_CXX=
11514         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11515   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11516   ac_status=$?
11517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11518   (exit $ac_status); }
11519         then
11520           archive_cmds_need_lc_CXX=no
11521         else
11522           archive_cmds_need_lc_CXX=yes
11523         fi
11524         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11525       else
11526         cat conftest.err 1>&5
11527       fi
11528       $rm conftest*
11529       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11530 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11531       ;;
11532     esac
11533   fi
11534   ;;
11535 esac
11537 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11538 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11539 library_names_spec=
11540 libname_spec='lib$name'
11541 soname_spec=
11542 shrext_cmds=".so"
11543 postinstall_cmds=
11544 postuninstall_cmds=
11545 finish_cmds=
11546 finish_eval=
11547 shlibpath_var=
11548 shlibpath_overrides_runpath=unknown
11549 version_type=none
11550 dynamic_linker="$host_os ld.so"
11551 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11552 if test "$GCC" = yes; then
11553   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11554   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11555     # if the path contains ";" then we assume it to be the separator
11556     # otherwise default to the standard path separator (i.e. ":") - it is
11557     # assumed that no part of a normal pathname contains ";" but that should
11558     # okay in the real world where ";" in dirpaths is itself problematic.
11559     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11560   else
11561     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11562   fi
11563 else
11564   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11566 need_lib_prefix=unknown
11567 hardcode_into_libs=no
11569 # when you set need_version to no, make sure it does not cause -set_version
11570 # flags to be left without arguments
11571 need_version=unknown
11573 case $host_os in
11574 aix3*)
11575   version_type=linux
11576   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11577   shlibpath_var=LIBPATH
11579   # AIX 3 has no versioning support, so we append a major version to the name.
11580   soname_spec='${libname}${release}${shared_ext}$major'
11581   ;;
11583 aix4* | aix5*)
11584   version_type=linux
11585   need_lib_prefix=no
11586   need_version=no
11587   hardcode_into_libs=yes
11588   if test "$host_cpu" = ia64; then
11589     # AIX 5 supports IA64
11590     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11591     shlibpath_var=LD_LIBRARY_PATH
11592   else
11593     # With GCC up to 2.95.x, collect2 would create an import file
11594     # for dependence libraries.  The import file would start with
11595     # the line `#! .'.  This would cause the generated library to
11596     # depend on `.', always an invalid library.  This was fixed in
11597     # development snapshots of GCC prior to 3.0.
11598     case $host_os in
11599       aix4 | aix4.[01] | aix4.[01].*)
11600       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11601            echo ' yes '
11602            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11603         :
11604       else
11605         can_build_shared=no
11606       fi
11607       ;;
11608     esac
11609     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11610     # soname into executable. Probably we can add versioning support to
11611     # collect2, so additional links can be useful in future.
11612     if test "$aix_use_runtimelinking" = yes; then
11613       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11614       # instead of lib<name>.a to let people know that these are not
11615       # typical AIX shared libraries.
11616       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11617     else
11618       # We preserve .a as extension for shared libraries through AIX4.2
11619       # and later when we are not doing run time linking.
11620       library_names_spec='${libname}${release}.a $libname.a'
11621       soname_spec='${libname}${release}${shared_ext}$major'
11622     fi
11623     shlibpath_var=LIBPATH
11624   fi
11625   ;;
11627 amigaos*)
11628   library_names_spec='$libname.ixlibrary $libname.a'
11629   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11630   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'
11631   ;;
11633 beos*)
11634   library_names_spec='${libname}${shared_ext}'
11635   dynamic_linker="$host_os ld.so"
11636   shlibpath_var=LIBRARY_PATH
11637   ;;
11639 bsdi[45]*)
11640   version_type=linux
11641   need_version=no
11642   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11643   soname_spec='${libname}${release}${shared_ext}$major'
11644   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11645   shlibpath_var=LD_LIBRARY_PATH
11646   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11647   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11648   # the default ld.so.conf also contains /usr/contrib/lib and
11649   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11650   # libtool to hard-code these into programs
11651   ;;
11653 cygwin* | mingw* | pw32*)
11654   version_type=windows
11655   shrext_cmds=".dll"
11656   need_version=no
11657   need_lib_prefix=no
11659   case $GCC,$host_os in
11660   yes,cygwin* | yes,mingw* | yes,pw32*)
11661     library_names_spec='$libname.dll.a'
11662     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11663     postinstall_cmds='base_file=`basename \${file}`~
11664       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11665       dldir=$destdir/`dirname \$dlpath`~
11666       test -d \$dldir || mkdir -p \$dldir~
11667       $install_prog $dir/$dlname \$dldir/$dlname~
11668       chmod a+x \$dldir/$dlname'
11669     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11670       dlpath=$dir/\$dldll~
11671        $rm \$dlpath'
11672     shlibpath_overrides_runpath=yes
11674     case $host_os in
11675     cygwin*)
11676       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11677       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11678       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11679       ;;
11680     mingw*)
11681       # MinGW DLLs use traditional 'lib' prefix
11682       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11683       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11684       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11685         # It is most probably a Windows format PATH printed by
11686         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11687         # path with ; separators, and with drive letters. We can handle the
11688         # drive letters (cygwin fileutils understands them), so leave them,
11689         # especially as we might pass files found there to a mingw objdump,
11690         # which wouldn't understand a cygwinified path. Ahh.
11691         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11692       else
11693         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11694       fi
11695       ;;
11696     pw32*)
11697       # pw32 DLLs use 'pw' prefix rather than 'lib'
11698       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11699       ;;
11700     esac
11701     ;;
11703   *)
11704     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11705     ;;
11706   esac
11707   dynamic_linker='Win32 ld.exe'
11708   # FIXME: first we should search . and the directory the executable is in
11709   shlibpath_var=PATH
11710   ;;
11712 darwin* | rhapsody*)
11713   dynamic_linker="$host_os dyld"
11714   version_type=darwin
11715   need_lib_prefix=no
11716   need_version=no
11717   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11718   soname_spec='${libname}${release}${major}$shared_ext'
11719   shlibpath_overrides_runpath=yes
11720   shlibpath_var=DYLD_LIBRARY_PATH
11721   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11722   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11723   if test "$GCC" = yes; then
11724     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"`
11725   else
11726     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11727   fi
11728   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11729   ;;
11731 dgux*)
11732   version_type=linux
11733   need_lib_prefix=no
11734   need_version=no
11735   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11736   soname_spec='${libname}${release}${shared_ext}$major'
11737   shlibpath_var=LD_LIBRARY_PATH
11738   ;;
11740 freebsd1*)
11741   dynamic_linker=no
11742   ;;
11744 kfreebsd*-gnu)
11745   version_type=linux
11746   need_lib_prefix=no
11747   need_version=no
11748   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11749   soname_spec='${libname}${release}${shared_ext}$major'
11750   shlibpath_var=LD_LIBRARY_PATH
11751   shlibpath_overrides_runpath=no
11752   hardcode_into_libs=yes
11753   dynamic_linker='GNU ld.so'
11754   ;;
11756 freebsd* | dragonfly*)
11757   # DragonFly does not have aout.  When/if they implement a new
11758   # versioning mechanism, adjust this.
11759   if test -x /usr/bin/objformat; then
11760     objformat=`/usr/bin/objformat`
11761   else
11762     case $host_os in
11763     freebsd[123]*) objformat=aout ;;
11764     *) objformat=elf ;;
11765     esac
11766   fi
11767   version_type=freebsd-$objformat
11768   case $version_type in
11769     freebsd-elf*)
11770       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11771       need_version=no
11772       need_lib_prefix=no
11773       ;;
11774     freebsd-*)
11775       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11776       need_version=yes
11777       ;;
11778   esac
11779   shlibpath_var=LD_LIBRARY_PATH
11780   case $host_os in
11781   freebsd2*)
11782     shlibpath_overrides_runpath=yes
11783     ;;
11784   freebsd3.[01]* | freebsdelf3.[01]*)
11785     shlibpath_overrides_runpath=yes
11786     hardcode_into_libs=yes
11787     ;;
11788   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11789   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11790     shlibpath_overrides_runpath=no
11791     hardcode_into_libs=yes
11792     ;;
11793   freebsd*) # from 4.6 on
11794     shlibpath_overrides_runpath=yes
11795     hardcode_into_libs=yes
11796     ;;
11797   esac
11798   ;;
11800 gnu*)
11801   version_type=linux
11802   need_lib_prefix=no
11803   need_version=no
11804   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11805   soname_spec='${libname}${release}${shared_ext}$major'
11806   shlibpath_var=LD_LIBRARY_PATH
11807   hardcode_into_libs=yes
11808   ;;
11810 hpux9* | hpux10* | hpux11*)
11811   # Give a soname corresponding to the major version so that dld.sl refuses to
11812   # link against other versions.
11813   version_type=sunos
11814   need_lib_prefix=no
11815   need_version=no
11816   case $host_cpu in
11817   ia64*)
11818     shrext_cmds='.so'
11819     hardcode_into_libs=yes
11820     dynamic_linker="$host_os dld.so"
11821     shlibpath_var=LD_LIBRARY_PATH
11822     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11823     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11824     soname_spec='${libname}${release}${shared_ext}$major'
11825     if test "X$HPUX_IA64_MODE" = X32; then
11826       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11827     else
11828       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11829     fi
11830     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11831     ;;
11832    hppa*64*)
11833      shrext_cmds='.sl'
11834      hardcode_into_libs=yes
11835      dynamic_linker="$host_os dld.sl"
11836      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11837      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11838      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11839      soname_spec='${libname}${release}${shared_ext}$major'
11840      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11841      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11842      ;;
11843    *)
11844     shrext_cmds='.sl'
11845     dynamic_linker="$host_os dld.sl"
11846     shlibpath_var=SHLIB_PATH
11847     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11848     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11849     soname_spec='${libname}${release}${shared_ext}$major'
11850     ;;
11851   esac
11852   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11853   postinstall_cmds='chmod 555 $lib'
11854   ;;
11856 interix3*)
11857   version_type=linux
11858   need_lib_prefix=no
11859   need_version=no
11860   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11861   soname_spec='${libname}${release}${shared_ext}$major'
11862   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11863   shlibpath_var=LD_LIBRARY_PATH
11864   shlibpath_overrides_runpath=no
11865   hardcode_into_libs=yes
11866   ;;
11868 irix5* | irix6* | nonstopux*)
11869   case $host_os in
11870     nonstopux*) version_type=nonstopux ;;
11871     *)
11872         if test "$lt_cv_prog_gnu_ld" = yes; then
11873                 version_type=linux
11874         else
11875                 version_type=irix
11876         fi ;;
11877   esac
11878   need_lib_prefix=no
11879   need_version=no
11880   soname_spec='${libname}${release}${shared_ext}$major'
11881   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11882   case $host_os in
11883   irix5* | nonstopux*)
11884     libsuff= shlibsuff=
11885     ;;
11886   *)
11887     case $LD in # libtool.m4 will add one of these switches to LD
11888     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11889       libsuff= shlibsuff= libmagic=32-bit;;
11890     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11891       libsuff=32 shlibsuff=N32 libmagic=N32;;
11892     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11893       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11894     *) libsuff= shlibsuff= libmagic=never-match;;
11895     esac
11896     ;;
11897   esac
11898   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11899   shlibpath_overrides_runpath=no
11900   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11901   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11902   hardcode_into_libs=yes
11903   ;;
11905 # No shared lib support for Linux oldld, aout, or coff.
11906 linux*oldld* | linux*aout* | linux*coff*)
11907   dynamic_linker=no
11908   ;;
11910 # This must be Linux ELF.
11911 linux*)
11912   version_type=linux
11913   need_lib_prefix=no
11914   need_version=no
11915   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11916   soname_spec='${libname}${release}${shared_ext}$major'
11917   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11918   shlibpath_var=LD_LIBRARY_PATH
11919   shlibpath_overrides_runpath=no
11920   # This implies no fast_install, which is unacceptable.
11921   # Some rework will be needed to allow for fast_install
11922   # before this can be enabled.
11923   hardcode_into_libs=yes
11925   # Append ld.so.conf contents to the search path
11926   if test -f /etc/ld.so.conf; then
11927     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' ' '`
11928     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11929   fi
11931   # We used to test for /lib/ld.so.1 and disable shared libraries on
11932   # powerpc, because MkLinux only supported shared libraries with the
11933   # GNU dynamic linker.  Since this was broken with cross compilers,
11934   # most powerpc-linux boxes support dynamic linking these days and
11935   # people can always --disable-shared, the test was removed, and we
11936   # assume the GNU/Linux dynamic linker is in use.
11937   dynamic_linker='GNU/Linux ld.so'
11938   ;;
11940 knetbsd*-gnu)
11941   version_type=linux
11942   need_lib_prefix=no
11943   need_version=no
11944   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11945   soname_spec='${libname}${release}${shared_ext}$major'
11946   shlibpath_var=LD_LIBRARY_PATH
11947   shlibpath_overrides_runpath=no
11948   hardcode_into_libs=yes
11949   dynamic_linker='GNU ld.so'
11950   ;;
11952 netbsd*)
11953   version_type=sunos
11954   need_lib_prefix=no
11955   need_version=no
11956   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11957     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11958     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11959     dynamic_linker='NetBSD (a.out) ld.so'
11960   else
11961     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11962     soname_spec='${libname}${release}${shared_ext}$major'
11963     dynamic_linker='NetBSD ld.elf_so'
11964   fi
11965   shlibpath_var=LD_LIBRARY_PATH
11966   shlibpath_overrides_runpath=yes
11967   hardcode_into_libs=yes
11968   ;;
11970 newsos6)
11971   version_type=linux
11972   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11973   shlibpath_var=LD_LIBRARY_PATH
11974   shlibpath_overrides_runpath=yes
11975   ;;
11977 nto-qnx*)
11978   version_type=linux
11979   need_lib_prefix=no
11980   need_version=no
11981   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11982   soname_spec='${libname}${release}${shared_ext}$major'
11983   shlibpath_var=LD_LIBRARY_PATH
11984   shlibpath_overrides_runpath=yes
11985   ;;
11987 openbsd*)
11988   version_type=sunos
11989   sys_lib_dlsearch_path_spec="/usr/lib"
11990   need_lib_prefix=no
11991   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11992   case $host_os in
11993     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11994     *)                         need_version=no  ;;
11995   esac
11996   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11997   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11998   shlibpath_var=LD_LIBRARY_PATH
11999   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12000     case $host_os in
12001       openbsd2.[89] | openbsd2.[89].*)
12002         shlibpath_overrides_runpath=no
12003         ;;
12004       *)
12005         shlibpath_overrides_runpath=yes
12006         ;;
12007       esac
12008   else
12009     shlibpath_overrides_runpath=yes
12010   fi
12011   ;;
12013 os2*)
12014   libname_spec='$name'
12015   shrext_cmds=".dll"
12016   need_lib_prefix=no
12017   library_names_spec='$libname${shared_ext} $libname.a'
12018   dynamic_linker='OS/2 ld.exe'
12019   shlibpath_var=LIBPATH
12020   ;;
12022 osf3* | osf4* | osf5*)
12023   version_type=osf
12024   need_lib_prefix=no
12025   need_version=no
12026   soname_spec='${libname}${release}${shared_ext}$major'
12027   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12028   shlibpath_var=LD_LIBRARY_PATH
12029   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12030   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12031   ;;
12033 solaris*)
12034   version_type=linux
12035   need_lib_prefix=no
12036   need_version=no
12037   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12038   soname_spec='${libname}${release}${shared_ext}$major'
12039   shlibpath_var=LD_LIBRARY_PATH
12040   shlibpath_overrides_runpath=yes
12041   hardcode_into_libs=yes
12042   # ldd complains unless libraries are executable
12043   postinstall_cmds='chmod +x $lib'
12044   ;;
12046 sunos4*)
12047   version_type=sunos
12048   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12049   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12050   shlibpath_var=LD_LIBRARY_PATH
12051   shlibpath_overrides_runpath=yes
12052   if test "$with_gnu_ld" = yes; then
12053     need_lib_prefix=no
12054   fi
12055   need_version=yes
12056   ;;
12058 sysv4 | sysv4.3*)
12059   version_type=linux
12060   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12061   soname_spec='${libname}${release}${shared_ext}$major'
12062   shlibpath_var=LD_LIBRARY_PATH
12063   case $host_vendor in
12064     sni)
12065       shlibpath_overrides_runpath=no
12066       need_lib_prefix=no
12067       export_dynamic_flag_spec='${wl}-Blargedynsym'
12068       runpath_var=LD_RUN_PATH
12069       ;;
12070     siemens)
12071       need_lib_prefix=no
12072       ;;
12073     motorola)
12074       need_lib_prefix=no
12075       need_version=no
12076       shlibpath_overrides_runpath=no
12077       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12078       ;;
12079   esac
12080   ;;
12082 sysv4*MP*)
12083   if test -d /usr/nec ;then
12084     version_type=linux
12085     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12086     soname_spec='$libname${shared_ext}.$major'
12087     shlibpath_var=LD_LIBRARY_PATH
12088   fi
12089   ;;
12091 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12092   version_type=freebsd-elf
12093   need_lib_prefix=no
12094   need_version=no
12095   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12096   soname_spec='${libname}${release}${shared_ext}$major'
12097   shlibpath_var=LD_LIBRARY_PATH
12098   hardcode_into_libs=yes
12099   if test "$with_gnu_ld" = yes; then
12100     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12101     shlibpath_overrides_runpath=no
12102   else
12103     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12104     shlibpath_overrides_runpath=yes
12105     case $host_os in
12106       sco3.2v5*)
12107         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12108         ;;
12109     esac
12110   fi
12111   sys_lib_dlsearch_path_spec='/usr/lib'
12112   ;;
12114 uts4*)
12115   version_type=linux
12116   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12117   soname_spec='${libname}${release}${shared_ext}$major'
12118   shlibpath_var=LD_LIBRARY_PATH
12119   ;;
12122   dynamic_linker=no
12123   ;;
12124 esac
12125 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12126 echo "${ECHO_T}$dynamic_linker" >&6
12127 test "$dynamic_linker" = no && can_build_shared=no
12129 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12130 if test "$GCC" = yes; then
12131   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12134 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12135 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12136 hardcode_action_CXX=
12137 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12138    test -n "$runpath_var_CXX" || \
12139    test "X$hardcode_automatic_CXX" = "Xyes" ; then
12141   # We can hardcode non-existant directories.
12142   if test "$hardcode_direct_CXX" != no &&
12143      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12144      # have to relink, otherwise we might link with an installed library
12145      # when we should be linking with a yet-to-be-installed one
12146      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12147      test "$hardcode_minus_L_CXX" != no; then
12148     # Linking always hardcodes the temporary library directory.
12149     hardcode_action_CXX=relink
12150   else
12151     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12152     hardcode_action_CXX=immediate
12153   fi
12154 else
12155   # We cannot hardcode anything, or else we can only hardcode existing
12156   # directories.
12157   hardcode_action_CXX=unsupported
12159 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12160 echo "${ECHO_T}$hardcode_action_CXX" >&6
12162 if test "$hardcode_action_CXX" = relink; then
12163   # Fast installation is not supported
12164   enable_fast_install=no
12165 elif test "$shlibpath_overrides_runpath" = yes ||
12166      test "$enable_shared" = no; then
12167   # Fast installation is not necessary
12168   enable_fast_install=needless
12172 # The else clause should only fire when bootstrapping the
12173 # libtool distribution, otherwise you forgot to ship ltmain.sh
12174 # with your package, and you will get complaints that there are
12175 # no rules to generate ltmain.sh.
12176 if test -f "$ltmain"; then
12177   # See if we are running on zsh, and set the options which allow our commands through
12178   # without removal of \ escapes.
12179   if test -n "${ZSH_VERSION+set}" ; then
12180     setopt NO_GLOB_SUBST
12181   fi
12182   # Now quote all the things that may contain metacharacters while being
12183   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12184   # variables and quote the copies for generation of the libtool script.
12185   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12186     SED SHELL STRIP \
12187     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12188     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12189     deplibs_check_method reload_flag reload_cmds need_locks \
12190     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12191     lt_cv_sys_global_symbol_to_c_name_address \
12192     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12193     old_postinstall_cmds old_postuninstall_cmds \
12194     compiler_CXX \
12195     CC_CXX \
12196     LD_CXX \
12197     lt_prog_compiler_wl_CXX \
12198     lt_prog_compiler_pic_CXX \
12199     lt_prog_compiler_static_CXX \
12200     lt_prog_compiler_no_builtin_flag_CXX \
12201     export_dynamic_flag_spec_CXX \
12202     thread_safe_flag_spec_CXX \
12203     whole_archive_flag_spec_CXX \
12204     enable_shared_with_static_runtimes_CXX \
12205     old_archive_cmds_CXX \
12206     old_archive_from_new_cmds_CXX \
12207     predep_objects_CXX \
12208     postdep_objects_CXX \
12209     predeps_CXX \
12210     postdeps_CXX \
12211     compiler_lib_search_path_CXX \
12212     archive_cmds_CXX \
12213     archive_expsym_cmds_CXX \
12214     postinstall_cmds_CXX \
12215     postuninstall_cmds_CXX \
12216     old_archive_from_expsyms_cmds_CXX \
12217     allow_undefined_flag_CXX \
12218     no_undefined_flag_CXX \
12219     export_symbols_cmds_CXX \
12220     hardcode_libdir_flag_spec_CXX \
12221     hardcode_libdir_flag_spec_ld_CXX \
12222     hardcode_libdir_separator_CXX \
12223     hardcode_automatic_CXX \
12224     module_cmds_CXX \
12225     module_expsym_cmds_CXX \
12226     lt_cv_prog_compiler_c_o_CXX \
12227     exclude_expsyms_CXX \
12228     include_expsyms_CXX; do
12230     case $var in
12231     old_archive_cmds_CXX | \
12232     old_archive_from_new_cmds_CXX | \
12233     archive_cmds_CXX | \
12234     archive_expsym_cmds_CXX | \
12235     module_cmds_CXX | \
12236     module_expsym_cmds_CXX | \
12237     old_archive_from_expsyms_cmds_CXX | \
12238     export_symbols_cmds_CXX | \
12239     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12240     postinstall_cmds | postuninstall_cmds | \
12241     old_postinstall_cmds | old_postuninstall_cmds | \
12242     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12243       # Double-quote double-evaled strings.
12244       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12245       ;;
12246     *)
12247       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12248       ;;
12249     esac
12250   done
12252   case $lt_echo in
12253   *'\$0 --fallback-echo"')
12254     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12255     ;;
12256   esac
12258 cfgfile="$ofile"
12260   cat <<__EOF__ >> "$cfgfile"
12261 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12263 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12265 # Shell to use when invoking shell scripts.
12266 SHELL=$lt_SHELL
12268 # Whether or not to build shared libraries.
12269 build_libtool_libs=$enable_shared
12271 # Whether or not to build static libraries.
12272 build_old_libs=$enable_static
12274 # Whether or not to add -lc for building shared libraries.
12275 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12277 # Whether or not to disallow shared libs when runtime libs are static
12278 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12280 # Whether or not to optimize for fast installation.
12281 fast_install=$enable_fast_install
12283 # The host system.
12284 host_alias=$host_alias
12285 host=$host
12286 host_os=$host_os
12288 # The build system.
12289 build_alias=$build_alias
12290 build=$build
12291 build_os=$build_os
12293 # An echo program that does not interpret backslashes.
12294 echo=$lt_echo
12296 # The archiver.
12297 AR=$lt_AR
12298 AR_FLAGS=$lt_AR_FLAGS
12300 # A C compiler.
12301 LTCC=$lt_LTCC
12303 # LTCC compiler flags.
12304 LTCFLAGS=$lt_LTCFLAGS
12306 # A language-specific compiler.
12307 CC=$lt_compiler_CXX
12309 # Is the compiler the GNU C compiler?
12310 with_gcc=$GCC_CXX
12312 # An ERE matcher.
12313 EGREP=$lt_EGREP
12315 # The linker used to build libraries.
12316 LD=$lt_LD_CXX
12318 # Whether we need hard or soft links.
12319 LN_S=$lt_LN_S
12321 # A BSD-compatible nm program.
12322 NM=$lt_NM
12324 # A symbol stripping program
12325 STRIP=$lt_STRIP
12327 # Used to examine libraries when file_magic_cmd begins "file"
12328 MAGIC_CMD=$MAGIC_CMD
12330 # Used on cygwin: DLL creation program.
12331 DLLTOOL="$DLLTOOL"
12333 # Used on cygwin: object dumper.
12334 OBJDUMP="$OBJDUMP"
12336 # Used on cygwin: assembler.
12337 AS="$AS"
12339 # The name of the directory that contains temporary libtool files.
12340 objdir=$objdir
12342 # How to create reloadable object files.
12343 reload_flag=$lt_reload_flag
12344 reload_cmds=$lt_reload_cmds
12346 # How to pass a linker flag through the compiler.
12347 wl=$lt_lt_prog_compiler_wl_CXX
12349 # Object file suffix (normally "o").
12350 objext="$ac_objext"
12352 # Old archive suffix (normally "a").
12353 libext="$libext"
12355 # Shared library suffix (normally ".so").
12356 shrext_cmds='$shrext_cmds'
12358 # Executable file suffix (normally "").
12359 exeext="$exeext"
12361 # Additional compiler flags for building library objects.
12362 pic_flag=$lt_lt_prog_compiler_pic_CXX
12363 pic_mode=$pic_mode
12365 # What is the maximum length of a command?
12366 max_cmd_len=$lt_cv_sys_max_cmd_len
12368 # Does compiler simultaneously support -c and -o options?
12369 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12371 # Must we lock files when doing compilation?
12372 need_locks=$lt_need_locks
12374 # Do we need the lib prefix for modules?
12375 need_lib_prefix=$need_lib_prefix
12377 # Do we need a version for libraries?
12378 need_version=$need_version
12380 # Whether dlopen is supported.
12381 dlopen_support=$enable_dlopen
12383 # Whether dlopen of programs is supported.
12384 dlopen_self=$enable_dlopen_self
12386 # Whether dlopen of statically linked programs is supported.
12387 dlopen_self_static=$enable_dlopen_self_static
12389 # Compiler flag to prevent dynamic linking.
12390 link_static_flag=$lt_lt_prog_compiler_static_CXX
12392 # Compiler flag to turn off builtin functions.
12393 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12395 # Compiler flag to allow reflexive dlopens.
12396 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12398 # Compiler flag to generate shared objects directly from archives.
12399 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12401 # Compiler flag to generate thread-safe objects.
12402 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12404 # Library versioning type.
12405 version_type=$version_type
12407 # Format of library name prefix.
12408 libname_spec=$lt_libname_spec
12410 # List of archive names.  First name is the real one, the rest are links.
12411 # The last name is the one that the linker finds with -lNAME.
12412 library_names_spec=$lt_library_names_spec
12414 # The coded name of the library, if different from the real name.
12415 soname_spec=$lt_soname_spec
12417 # Commands used to build and install an old-style archive.
12418 RANLIB=$lt_RANLIB
12419 old_archive_cmds=$lt_old_archive_cmds_CXX
12420 old_postinstall_cmds=$lt_old_postinstall_cmds
12421 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12423 # Create an old-style archive from a shared archive.
12424 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12426 # Create a temporary old-style archive to link instead of a shared archive.
12427 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12429 # Commands used to build and install a shared archive.
12430 archive_cmds=$lt_archive_cmds_CXX
12431 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12432 postinstall_cmds=$lt_postinstall_cmds
12433 postuninstall_cmds=$lt_postuninstall_cmds
12435 # Commands used to build a loadable module (assumed same as above if empty)
12436 module_cmds=$lt_module_cmds_CXX
12437 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12439 # Commands to strip libraries.
12440 old_striplib=$lt_old_striplib
12441 striplib=$lt_striplib
12443 # Dependencies to place before the objects being linked to create a
12444 # shared library.
12445 predep_objects=$lt_predep_objects_CXX
12447 # Dependencies to place after the objects being linked to create a
12448 # shared library.
12449 postdep_objects=$lt_postdep_objects_CXX
12451 # Dependencies to place before the objects being linked to create a
12452 # shared library.
12453 predeps=$lt_predeps_CXX
12455 # Dependencies to place after the objects being linked to create a
12456 # shared library.
12457 postdeps=$lt_postdeps_CXX
12459 # The library search path used internally by the compiler when linking
12460 # a shared library.
12461 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12463 # Method to check whether dependent libraries are shared objects.
12464 deplibs_check_method=$lt_deplibs_check_method
12466 # Command to use when deplibs_check_method == file_magic.
12467 file_magic_cmd=$lt_file_magic_cmd
12469 # Flag that allows shared libraries with undefined symbols to be built.
12470 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12472 # Flag that forces no undefined symbols.
12473 no_undefined_flag=$lt_no_undefined_flag_CXX
12475 # Commands used to finish a libtool library installation in a directory.
12476 finish_cmds=$lt_finish_cmds
12478 # Same as above, but a single script fragment to be evaled but not shown.
12479 finish_eval=$lt_finish_eval
12481 # Take the output of nm and produce a listing of raw symbols and C names.
12482 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12484 # Transform the output of nm in a proper C declaration
12485 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12487 # Transform the output of nm in a C name address pair
12488 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12490 # This is the shared library runtime path variable.
12491 runpath_var=$runpath_var
12493 # This is the shared library path variable.
12494 shlibpath_var=$shlibpath_var
12496 # Is shlibpath searched before the hard-coded library search path?
12497 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12499 # How to hardcode a shared library path into an executable.
12500 hardcode_action=$hardcode_action_CXX
12502 # Whether we should hardcode library paths into libraries.
12503 hardcode_into_libs=$hardcode_into_libs
12505 # Flag to hardcode \$libdir into a binary during linking.
12506 # This must work even if \$libdir does not exist.
12507 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12509 # If ld is used when linking, flag to hardcode \$libdir into
12510 # a binary during linking. This must work even if \$libdir does
12511 # not exist.
12512 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12514 # Whether we need a single -rpath flag with a separated argument.
12515 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12517 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12518 # resulting binary.
12519 hardcode_direct=$hardcode_direct_CXX
12521 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12522 # resulting binary.
12523 hardcode_minus_L=$hardcode_minus_L_CXX
12525 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12526 # the resulting binary.
12527 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12529 # Set to yes if building a shared library automatically hardcodes DIR into the library
12530 # and all subsequent libraries and executables linked against it.
12531 hardcode_automatic=$hardcode_automatic_CXX
12533 # Variables whose values should be saved in libtool wrapper scripts and
12534 # restored at relink time.
12535 variables_saved_for_relink="$variables_saved_for_relink"
12537 # Whether libtool must link a program against all its dependency libraries.
12538 link_all_deplibs=$link_all_deplibs_CXX
12540 # Compile-time system search path for libraries
12541 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12543 # Run-time system search path for libraries
12544 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12546 # Fix the shell variable \$srcfile for the compiler.
12547 fix_srcfile_path="$fix_srcfile_path_CXX"
12549 # Set to yes if exported symbols are required.
12550 always_export_symbols=$always_export_symbols_CXX
12552 # The commands to list exported symbols.
12553 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12555 # The commands to extract the exported symbol list from a shared archive.
12556 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12558 # Symbols that should not be listed in the preloaded symbols.
12559 exclude_expsyms=$lt_exclude_expsyms_CXX
12561 # Symbols that must always be exported.
12562 include_expsyms=$lt_include_expsyms_CXX
12564 # ### END LIBTOOL TAG CONFIG: $tagname
12566 __EOF__
12569 else
12570   # If there is no Makefile yet, we rely on a make rule to execute
12571   # `config.status --recheck' to rerun these tests and create the
12572   # libtool script then.
12573   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12574   if test -f "$ltmain_in"; then
12575     test -f Makefile && make "$ltmain"
12576   fi
12580 ac_ext=c
12581 ac_cpp='$CPP $CPPFLAGS'
12582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12586 CC=$lt_save_CC
12587 LDCXX=$LD
12588 LD=$lt_save_LD
12589 GCC=$lt_save_GCC
12590 with_gnu_ldcxx=$with_gnu_ld
12591 with_gnu_ld=$lt_save_with_gnu_ld
12592 lt_cv_path_LDCXX=$lt_cv_path_LD
12593 lt_cv_path_LD=$lt_save_path_LD
12594 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12595 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12597         else
12598           tagname=""
12599         fi
12600         ;;
12602       F77)
12603         if test -n "$F77" && test "X$F77" != "Xno"; then
12604           :
12605         else
12606           tagname=""
12607         fi
12608         ;;
12610       GCJ)
12611         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
12615 # Source file extension for Java test sources.
12616 ac_ext=java
12618 # Object file extension for compiled Java test sources.
12619 objext=o
12620 objext_GCJ=$objext
12622 # Code to be used in simple compile tests
12623 lt_simple_compile_test_code="class foo {}\n"
12625 # Code to be used in simple link tests
12626 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
12628 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12630 # If no C compiler was specified, use CC.
12631 LTCC=${LTCC-"$CC"}
12633 # If no C compiler flags were specified, use CFLAGS.
12634 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12636 # Allow CC to be a program name with arguments.
12637 compiler=$CC
12640 # save warnings/boilerplate of simple test code
12641 ac_outfile=conftest.$ac_objext
12642 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12643 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12644 _lt_compiler_boilerplate=`cat conftest.err`
12645 $rm conftest*
12647 ac_outfile=conftest.$ac_objext
12648 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12649 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12650 _lt_linker_boilerplate=`cat conftest.err`
12651 $rm conftest*
12654 # Allow CC to be a program name with arguments.
12655 lt_save_CC="$CC"
12656 CC=${GCJ-"gcj"}
12657 compiler=$CC
12658 compiler_GCJ=$CC
12659 for cc_temp in $compiler""; do
12660   case $cc_temp in
12661     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12662     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12663     \-*) ;;
12664     *) break;;
12665   esac
12666 done
12667 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12670 # GCJ did not exist at the time GCC didn't implicitly link libc in.
12671 archive_cmds_need_lc_GCJ=no
12673 old_archive_cmds_GCJ=$old_archive_cmds
12676 lt_prog_compiler_no_builtin_flag_GCJ=
12678 if test "$GCC" = yes; then
12679   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
12682 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12683 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
12684 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
12685   echo $ECHO_N "(cached) $ECHO_C" >&6
12686 else
12687   lt_cv_prog_compiler_rtti_exceptions=no
12688   ac_outfile=conftest.$ac_objext
12689    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12690    lt_compiler_flag="-fno-rtti -fno-exceptions"
12691    # Insert the option either (1) after the last *FLAGS variable, or
12692    # (2) before a word containing "conftest.", or (3) at the end.
12693    # Note that $ac_compile itself does not contain backslashes and begins
12694    # with a dollar sign (not a hyphen), so the echo should work correctly.
12695    # The option is referenced via a variable to avoid confusing sed.
12696    lt_compile=`echo "$ac_compile" | $SED \
12697    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12698    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12699    -e 's:$: $lt_compiler_flag:'`
12700    (eval echo "\"\$as_me:12700: $lt_compile\"" >&5)
12701    (eval "$lt_compile" 2>conftest.err)
12702    ac_status=$?
12703    cat conftest.err >&5
12704    echo "$as_me:12704: \$? = $ac_status" >&5
12705    if (exit $ac_status) && test -s "$ac_outfile"; then
12706      # The compiler can only warn and ignore the option if not recognized
12707      # So say no if there are warnings other than the usual output.
12708      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12709      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12710      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12711        lt_cv_prog_compiler_rtti_exceptions=yes
12712      fi
12713    fi
12714    $rm conftest*
12717 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12718 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
12720 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12721     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
12722 else
12723     :
12728 lt_prog_compiler_wl_GCJ=
12729 lt_prog_compiler_pic_GCJ=
12730 lt_prog_compiler_static_GCJ=
12732 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12733 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12735   if test "$GCC" = yes; then
12736     lt_prog_compiler_wl_GCJ='-Wl,'
12737     lt_prog_compiler_static_GCJ='-static'
12739     case $host_os in
12740       aix*)
12741       # All AIX code is PIC.
12742       if test "$host_cpu" = ia64; then
12743         # AIX 5 now supports IA64 processor
12744         lt_prog_compiler_static_GCJ='-Bstatic'
12745       fi
12746       ;;
12748     amigaos*)
12749       # FIXME: we need at least 68020 code to build shared libraries, but
12750       # adding the `-m68020' flag to GCC prevents building anything better,
12751       # like `-m68040'.
12752       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
12753       ;;
12755     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12756       # PIC is the default for these OSes.
12757       ;;
12759     mingw* | pw32* | os2*)
12760       # This hack is so that the source file can tell whether it is being
12761       # built for inclusion in a dll (and should export symbols for example).
12762       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
12763       ;;
12765     darwin* | rhapsody*)
12766       # PIC is the default on this platform
12767       # Common symbols not allowed in MH_DYLIB files
12768       lt_prog_compiler_pic_GCJ='-fno-common'
12769       ;;
12771     interix3*)
12772       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12773       # Instead, we relocate shared libraries at runtime.
12774       ;;
12776     msdosdjgpp*)
12777       # Just because we use GCC doesn't mean we suddenly get shared libraries
12778       # on systems that don't support them.
12779       lt_prog_compiler_can_build_shared_GCJ=no
12780       enable_shared=no
12781       ;;
12783     sysv4*MP*)
12784       if test -d /usr/nec; then
12785         lt_prog_compiler_pic_GCJ=-Kconform_pic
12786       fi
12787       ;;
12789     hpux*)
12790       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12791       # not for PA HP-UX.
12792       case $host_cpu in
12793       hppa*64*|ia64*)
12794         # +Z the default
12795         ;;
12796       *)
12797         lt_prog_compiler_pic_GCJ='-fPIC'
12798         ;;
12799       esac
12800       ;;
12802     *)
12803       lt_prog_compiler_pic_GCJ='-fPIC'
12804       ;;
12805     esac
12806   else
12807     # PORTME Check for flag to pass linker flags through the system compiler.
12808     case $host_os in
12809     aix*)
12810       lt_prog_compiler_wl_GCJ='-Wl,'
12811       if test "$host_cpu" = ia64; then
12812         # AIX 5 now supports IA64 processor
12813         lt_prog_compiler_static_GCJ='-Bstatic'
12814       else
12815         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
12816       fi
12817       ;;
12818       darwin*)
12819         # PIC is the default on this platform
12820         # Common symbols not allowed in MH_DYLIB files
12821        case $cc_basename in
12822          xlc*)
12823          lt_prog_compiler_pic_GCJ='-qnocommon'
12824          lt_prog_compiler_wl_GCJ='-Wl,'
12825          ;;
12826        esac
12827        ;;
12829     mingw* | pw32* | os2*)
12830       # This hack is so that the source file can tell whether it is being
12831       # built for inclusion in a dll (and should export symbols for example).
12832       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
12833       ;;
12835     hpux9* | hpux10* | hpux11*)
12836       lt_prog_compiler_wl_GCJ='-Wl,'
12837       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12838       # not for PA HP-UX.
12839       case $host_cpu in
12840       hppa*64*|ia64*)
12841         # +Z the default
12842         ;;
12843       *)
12844         lt_prog_compiler_pic_GCJ='+Z'
12845         ;;
12846       esac
12847       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12848       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
12849       ;;
12851     irix5* | irix6* | nonstopux*)
12852       lt_prog_compiler_wl_GCJ='-Wl,'
12853       # PIC (with -KPIC) is the default.
12854       lt_prog_compiler_static_GCJ='-non_shared'
12855       ;;
12857     newsos6)
12858       lt_prog_compiler_pic_GCJ='-KPIC'
12859       lt_prog_compiler_static_GCJ='-Bstatic'
12860       ;;
12862     linux*)
12863       case $cc_basename in
12864       icc* | ecc*)
12865         lt_prog_compiler_wl_GCJ='-Wl,'
12866         lt_prog_compiler_pic_GCJ='-KPIC'
12867         lt_prog_compiler_static_GCJ='-static'
12868         ;;
12869       pgcc* | pgf77* | pgf90* | pgf95*)
12870         # Portland Group compilers (*not* the Pentium gcc compiler,
12871         # which looks to be a dead project)
12872         lt_prog_compiler_wl_GCJ='-Wl,'
12873         lt_prog_compiler_pic_GCJ='-fpic'
12874         lt_prog_compiler_static_GCJ='-Bstatic'
12875         ;;
12876       ccc*)
12877         lt_prog_compiler_wl_GCJ='-Wl,'
12878         # All Alpha code is PIC.
12879         lt_prog_compiler_static_GCJ='-non_shared'
12880         ;;
12881       esac
12882       ;;
12884     osf3* | osf4* | osf5*)
12885       lt_prog_compiler_wl_GCJ='-Wl,'
12886       # All OSF/1 code is PIC.
12887       lt_prog_compiler_static_GCJ='-non_shared'
12888       ;;
12890     solaris*)
12891       lt_prog_compiler_pic_GCJ='-KPIC'
12892       lt_prog_compiler_static_GCJ='-Bstatic'
12893       case $cc_basename in
12894       f77* | f90* | f95*)
12895         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
12896       *)
12897         lt_prog_compiler_wl_GCJ='-Wl,';;
12898       esac
12899       ;;
12901     sunos4*)
12902       lt_prog_compiler_wl_GCJ='-Qoption ld '
12903       lt_prog_compiler_pic_GCJ='-PIC'
12904       lt_prog_compiler_static_GCJ='-Bstatic'
12905       ;;
12907     sysv4 | sysv4.2uw2* | sysv4.3*)
12908       lt_prog_compiler_wl_GCJ='-Wl,'
12909       lt_prog_compiler_pic_GCJ='-KPIC'
12910       lt_prog_compiler_static_GCJ='-Bstatic'
12911       ;;
12913     sysv4*MP*)
12914       if test -d /usr/nec ;then
12915         lt_prog_compiler_pic_GCJ='-Kconform_pic'
12916         lt_prog_compiler_static_GCJ='-Bstatic'
12917       fi
12918       ;;
12920     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12921       lt_prog_compiler_wl_GCJ='-Wl,'
12922       lt_prog_compiler_pic_GCJ='-KPIC'
12923       lt_prog_compiler_static_GCJ='-Bstatic'
12924       ;;
12926     unicos*)
12927       lt_prog_compiler_wl_GCJ='-Wl,'
12928       lt_prog_compiler_can_build_shared_GCJ=no
12929       ;;
12931     uts4*)
12932       lt_prog_compiler_pic_GCJ='-pic'
12933       lt_prog_compiler_static_GCJ='-Bstatic'
12934       ;;
12936     *)
12937       lt_prog_compiler_can_build_shared_GCJ=no
12938       ;;
12939     esac
12940   fi
12942 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
12943 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
12946 # Check to make sure the PIC flag actually works.
12948 if test -n "$lt_prog_compiler_pic_GCJ"; then
12950 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
12951 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
12952 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
12953   echo $ECHO_N "(cached) $ECHO_C" >&6
12954 else
12955   lt_prog_compiler_pic_works_GCJ=no
12956   ac_outfile=conftest.$ac_objext
12957    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12958    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
12959    # Insert the option either (1) after the last *FLAGS variable, or
12960    # (2) before a word containing "conftest.", or (3) at the end.
12961    # Note that $ac_compile itself does not contain backslashes and begins
12962    # with a dollar sign (not a hyphen), so the echo should work correctly.
12963    # The option is referenced via a variable to avoid confusing sed.
12964    lt_compile=`echo "$ac_compile" | $SED \
12965    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12966    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12967    -e 's:$: $lt_compiler_flag:'`
12968    (eval echo "\"\$as_me:12968: $lt_compile\"" >&5)
12969    (eval "$lt_compile" 2>conftest.err)
12970    ac_status=$?
12971    cat conftest.err >&5
12972    echo "$as_me:12972: \$? = $ac_status" >&5
12973    if (exit $ac_status) && test -s "$ac_outfile"; then
12974      # The compiler can only warn and ignore the option if not recognized
12975      # So say no if there are warnings other than the usual output.
12976      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12977      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12978      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12979        lt_prog_compiler_pic_works_GCJ=yes
12980      fi
12981    fi
12982    $rm conftest*
12985 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
12986 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
12988 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
12989     case $lt_prog_compiler_pic_GCJ in
12990      "" | " "*) ;;
12991      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
12992      esac
12993 else
12994     lt_prog_compiler_pic_GCJ=
12995      lt_prog_compiler_can_build_shared_GCJ=no
12999 case $host_os in
13000   # For platforms which do not support PIC, -DPIC is meaningless:
13001   *djgpp*)
13002     lt_prog_compiler_pic_GCJ=
13003     ;;
13004   *)
13005     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
13006     ;;
13007 esac
13010 # Check to make sure the static flag actually works.
13012 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
13013 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13014 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13015 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
13016   echo $ECHO_N "(cached) $ECHO_C" >&6
13017 else
13018   lt_prog_compiler_static_works_GCJ=no
13019    save_LDFLAGS="$LDFLAGS"
13020    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13021    printf "$lt_simple_link_test_code" > conftest.$ac_ext
13022    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13023      # The linker can only warn and ignore the option if not recognized
13024      # So say no if there are warnings
13025      if test -s conftest.err; then
13026        # Append any errors to the config.log.
13027        cat conftest.err 1>&5
13028        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13029        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13030        if diff conftest.exp conftest.er2 >/dev/null; then
13031          lt_prog_compiler_static_works_GCJ=yes
13032        fi
13033      else
13034        lt_prog_compiler_static_works_GCJ=yes
13035      fi
13036    fi
13037    $rm conftest*
13038    LDFLAGS="$save_LDFLAGS"
13041 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
13042 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
13044 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
13045     :
13046 else
13047     lt_prog_compiler_static_GCJ=
13051 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13052 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13053 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
13054   echo $ECHO_N "(cached) $ECHO_C" >&6
13055 else
13056   lt_cv_prog_compiler_c_o_GCJ=no
13057    $rm -r conftest 2>/dev/null
13058    mkdir conftest
13059    cd conftest
13060    mkdir out
13061    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13063    lt_compiler_flag="-o out/conftest2.$ac_objext"
13064    # Insert the option either (1) after the last *FLAGS variable, or
13065    # (2) before a word containing "conftest.", or (3) at the end.
13066    # Note that $ac_compile itself does not contain backslashes and begins
13067    # with a dollar sign (not a hyphen), so the echo should work correctly.
13068    lt_compile=`echo "$ac_compile" | $SED \
13069    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13070    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13071    -e 's:$: $lt_compiler_flag:'`
13072    (eval echo "\"\$as_me:13072: $lt_compile\"" >&5)
13073    (eval "$lt_compile" 2>out/conftest.err)
13074    ac_status=$?
13075    cat out/conftest.err >&5
13076    echo "$as_me:13076: \$? = $ac_status" >&5
13077    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13078    then
13079      # The compiler can only warn and ignore the option if not recognized
13080      # So say no if there are warnings
13081      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13082      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13083      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13084        lt_cv_prog_compiler_c_o_GCJ=yes
13085      fi
13086    fi
13087    chmod u+w . 2>&5
13088    $rm conftest*
13089    # SGI C++ compiler will create directory out/ii_files/ for
13090    # template instantiation
13091    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13092    $rm out/* && rmdir out
13093    cd ..
13094    rmdir conftest
13095    $rm conftest*
13098 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
13099 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
13102 hard_links="nottested"
13103 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
13104   # do not overwrite the value of need_locks provided by the user
13105   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13106 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13107   hard_links=yes
13108   $rm conftest*
13109   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13110   touch conftest.a
13111   ln conftest.a conftest.b 2>&5 || hard_links=no
13112   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13113   echo "$as_me:$LINENO: result: $hard_links" >&5
13114 echo "${ECHO_T}$hard_links" >&6
13115   if test "$hard_links" = no; then
13116     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13117 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13118     need_locks=warn
13119   fi
13120 else
13121   need_locks=no
13124 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13125 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13127   runpath_var=
13128   allow_undefined_flag_GCJ=
13129   enable_shared_with_static_runtimes_GCJ=no
13130   archive_cmds_GCJ=
13131   archive_expsym_cmds_GCJ=
13132   old_archive_From_new_cmds_GCJ=
13133   old_archive_from_expsyms_cmds_GCJ=
13134   export_dynamic_flag_spec_GCJ=
13135   whole_archive_flag_spec_GCJ=
13136   thread_safe_flag_spec_GCJ=
13137   hardcode_libdir_flag_spec_GCJ=
13138   hardcode_libdir_flag_spec_ld_GCJ=
13139   hardcode_libdir_separator_GCJ=
13140   hardcode_direct_GCJ=no
13141   hardcode_minus_L_GCJ=no
13142   hardcode_shlibpath_var_GCJ=unsupported
13143   link_all_deplibs_GCJ=unknown
13144   hardcode_automatic_GCJ=no
13145   module_cmds_GCJ=
13146   module_expsym_cmds_GCJ=
13147   always_export_symbols_GCJ=no
13148   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13149   # include_expsyms should be a list of space-separated symbols to be *always*
13150   # included in the symbol list
13151   include_expsyms_GCJ=
13152   # exclude_expsyms can be an extended regexp of symbols to exclude
13153   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13154   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13155   # as well as any symbol that contains `d'.
13156   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
13157   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13158   # platforms (ab)use it in PIC code, but their linkers get confused if
13159   # the symbol is explicitly referenced.  Since portable code cannot
13160   # rely on this symbol name, it's probably fine to never include it in
13161   # preloaded symbol tables.
13162   extract_expsyms_cmds=
13163   # Just being paranoid about ensuring that cc_basename is set.
13164   for cc_temp in $compiler""; do
13165   case $cc_temp in
13166     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13167     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13168     \-*) ;;
13169     *) break;;
13170   esac
13171 done
13172 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13174   case $host_os in
13175   cygwin* | mingw* | pw32*)
13176     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13177     # When not using gcc, we currently assume that we are using
13178     # Microsoft Visual C++.
13179     if test "$GCC" != yes; then
13180       with_gnu_ld=no
13181     fi
13182     ;;
13183   interix*)
13184     # we just hope/assume this is gcc and not c89 (= MSVC++)
13185     with_gnu_ld=yes
13186     ;;
13187   openbsd*)
13188     with_gnu_ld=no
13189     ;;
13190   esac
13192   ld_shlibs_GCJ=yes
13193   if test "$with_gnu_ld" = yes; then
13194     # If archive_cmds runs LD, not CC, wlarc should be empty
13195     wlarc='${wl}'
13197     # Set some defaults for GNU ld with shared library support. These
13198     # are reset later if shared libraries are not supported. Putting them
13199     # here allows them to be overridden if necessary.
13200     runpath_var=LD_RUN_PATH
13201     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
13202     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
13203     # ancient GNU ld didn't support --whole-archive et. al.
13204     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13205         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13206       else
13207         whole_archive_flag_spec_GCJ=
13208     fi
13209     supports_anon_versioning=no
13210     case `$LD -v 2>/dev/null` in
13211       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13212       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13213       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13214       *\ 2.11.*) ;; # other 2.11 versions
13215       *) supports_anon_versioning=yes ;;
13216     esac
13218     # See if GNU ld supports shared libraries.
13219     case $host_os in
13220     aix3* | aix4* | aix5*)
13221       # On AIX/PPC, the GNU linker is very broken
13222       if test "$host_cpu" != ia64; then
13223         ld_shlibs_GCJ=no
13224         cat <<EOF 1>&2
13226 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13227 *** to be unable to reliably create shared libraries on AIX.
13228 *** Therefore, libtool is disabling shared libraries support.  If you
13229 *** really care for shared libraries, you may want to modify your PATH
13230 *** so that a non-GNU linker is found, and then restart.
13232 EOF
13233       fi
13234       ;;
13236     amigaos*)
13237       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)'
13238       hardcode_libdir_flag_spec_GCJ='-L$libdir'
13239       hardcode_minus_L_GCJ=yes
13241       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13242       # that the semantics of dynamic libraries on AmigaOS, at least up
13243       # to version 4, is to share data among multiple programs linked
13244       # with the same dynamic library.  Since this doesn't match the
13245       # behavior of shared libraries on other platforms, we can't use
13246       # them.
13247       ld_shlibs_GCJ=no
13248       ;;
13250     beos*)
13251       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13252         allow_undefined_flag_GCJ=unsupported
13253         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13254         # support --undefined.  This deserves some investigation.  FIXME
13255         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13256       else
13257         ld_shlibs_GCJ=no
13258       fi
13259       ;;
13261     cygwin* | mingw* | pw32*)
13262       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
13263       # as there is no search path for DLLs.
13264       hardcode_libdir_flag_spec_GCJ='-L$libdir'
13265       allow_undefined_flag_GCJ=unsupported
13266       always_export_symbols_GCJ=no
13267       enable_shared_with_static_runtimes_GCJ=yes
13268       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13270       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13271         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13272         # If the export-symbols file already is a .def file (1st line
13273         # is EXPORTS), use it as is; otherwise, prepend...
13274         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13275           cp $export_symbols $output_objdir/$soname.def;
13276         else
13277           echo EXPORTS > $output_objdir/$soname.def;
13278           cat $export_symbols >> $output_objdir/$soname.def;
13279         fi~
13280         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13281       else
13282         ld_shlibs_GCJ=no
13283       fi
13284       ;;
13286     interix3*)
13287       hardcode_direct_GCJ=no
13288       hardcode_shlibpath_var_GCJ=no
13289       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
13290       export_dynamic_flag_spec_GCJ='${wl}-E'
13291       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13292       # Instead, shared libraries are loaded at an image base (0x10000000 by
13293       # default) and relocated if they conflict, which is a slow very memory
13294       # consuming and fragmenting process.  To avoid this, we pick a random,
13295       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13296       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13297       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'
13298       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'
13299       ;;
13301     linux*)
13302       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13303         tmp_addflag=
13304         case $cc_basename,$host_cpu in
13305         pgcc*)                          # Portland Group C compiler
13306           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'
13307           tmp_addflag=' $pic_flag'
13308           ;;
13309         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
13310           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'
13311           tmp_addflag=' $pic_flag -Mnomain' ;;
13312         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
13313           tmp_addflag=' -i_dynamic' ;;
13314         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
13315           tmp_addflag=' -i_dynamic -nofor_main' ;;
13316         ifc* | ifort*)                  # Intel Fortran compiler
13317           tmp_addflag=' -nofor_main' ;;
13318         esac
13319         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13321         if test $supports_anon_versioning = yes; then
13322           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
13323   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13324   $echo "local: *; };" >> $output_objdir/$libname.ver~
13325           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13326         fi
13327       else
13328         ld_shlibs_GCJ=no
13329       fi
13330       ;;
13332     netbsd*)
13333       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13334         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13335         wlarc=
13336       else
13337         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13338         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13339       fi
13340       ;;
13342     solaris*)
13343       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13344         ld_shlibs_GCJ=no
13345         cat <<EOF 1>&2
13347 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13348 *** create shared libraries on Solaris systems.  Therefore, libtool
13349 *** is disabling shared libraries support.  We urge you to upgrade GNU
13350 *** binutils to release 2.9.1 or newer.  Another option is to modify
13351 *** your PATH or compiler configuration so that the native linker is
13352 *** used, and then restart.
13354 EOF
13355       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13356         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13357         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13358       else
13359         ld_shlibs_GCJ=no
13360       fi
13361       ;;
13363     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13364       case `$LD -v 2>&1` in
13365         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13366         ld_shlibs_GCJ=no
13367         cat <<_LT_EOF 1>&2
13369 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13370 *** reliably create shared libraries on SCO systems.  Therefore, libtool
13371 *** is disabling shared libraries support.  We urge you to upgrade GNU
13372 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13373 *** your PATH or compiler configuration so that the native linker is
13374 *** used, and then restart.
13376 _LT_EOF
13377         ;;
13378         *)
13379           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13380             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13381             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13382             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13383           else
13384             ld_shlibs_GCJ=no
13385           fi
13386         ;;
13387       esac
13388       ;;
13390     sunos4*)
13391       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13392       wlarc=
13393       hardcode_direct_GCJ=yes
13394       hardcode_shlibpath_var_GCJ=no
13395       ;;
13397     *)
13398       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13399         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13400         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13401       else
13402         ld_shlibs_GCJ=no
13403       fi
13404       ;;
13405     esac
13407     if test "$ld_shlibs_GCJ" = no; then
13408       runpath_var=
13409       hardcode_libdir_flag_spec_GCJ=
13410       export_dynamic_flag_spec_GCJ=
13411       whole_archive_flag_spec_GCJ=
13412     fi
13413   else
13414     # PORTME fill in a description of your system's linker (not GNU ld)
13415     case $host_os in
13416     aix3*)
13417       allow_undefined_flag_GCJ=unsupported
13418       always_export_symbols_GCJ=yes
13419       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'
13420       # Note: this linker hardcodes the directories in LIBPATH if there
13421       # are no directories specified by -L.
13422       hardcode_minus_L_GCJ=yes
13423       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13424         # Neither direct hardcoding nor static linking is supported with a
13425         # broken collect2.
13426         hardcode_direct_GCJ=unsupported
13427       fi
13428       ;;
13430     aix4* | aix5*)
13431       if test "$host_cpu" = ia64; then
13432         # On IA64, the linker does run time linking by default, so we don't
13433         # have to do anything special.
13434         aix_use_runtimelinking=no
13435         exp_sym_flag='-Bexport'
13436         no_entry_flag=""
13437       else
13438         # If we're using GNU nm, then we don't want the "-C" option.
13439         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13440         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13441           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'
13442         else
13443           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'
13444         fi
13445         aix_use_runtimelinking=no
13447         # Test if we are trying to use run time linking or normal
13448         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13449         # need to do runtime linking.
13450         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13451           for ld_flag in $LDFLAGS; do
13452           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13453             aix_use_runtimelinking=yes
13454             break
13455           fi
13456           done
13457           ;;
13458         esac
13460         exp_sym_flag='-bexport'
13461         no_entry_flag='-bnoentry'
13462       fi
13464       # When large executables or shared objects are built, AIX ld can
13465       # have problems creating the table of contents.  If linking a library
13466       # or program results in "error TOC overflow" add -mminimal-toc to
13467       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13468       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13470       archive_cmds_GCJ=''
13471       hardcode_direct_GCJ=yes
13472       hardcode_libdir_separator_GCJ=':'
13473       link_all_deplibs_GCJ=yes
13475       if test "$GCC" = yes; then
13476         case $host_os in aix4.[012]|aix4.[012].*)
13477         # We only want to do this on AIX 4.2 and lower, the check
13478         # below for broken collect2 doesn't work under 4.3+
13479           collect2name=`${CC} -print-prog-name=collect2`
13480           if test -f "$collect2name" && \
13481            strings "$collect2name" | grep resolve_lib_name >/dev/null
13482           then
13483           # We have reworked collect2
13484           hardcode_direct_GCJ=yes
13485           else
13486           # We have old collect2
13487           hardcode_direct_GCJ=unsupported
13488           # It fails to find uninstalled libraries when the uninstalled
13489           # path is not listed in the libpath.  Setting hardcode_minus_L
13490           # to unsupported forces relinking
13491           hardcode_minus_L_GCJ=yes
13492           hardcode_libdir_flag_spec_GCJ='-L$libdir'
13493           hardcode_libdir_separator_GCJ=
13494           fi
13495           ;;
13496         esac
13497         shared_flag='-shared'
13498         if test "$aix_use_runtimelinking" = yes; then
13499           shared_flag="$shared_flag "'${wl}-G'
13500         fi
13501       else
13502         # not using gcc
13503         if test "$host_cpu" = ia64; then
13504         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13505         # chokes on -Wl,-G. The following line is correct:
13506           shared_flag='-G'
13507         else
13508           if test "$aix_use_runtimelinking" = yes; then
13509             shared_flag='${wl}-G'
13510           else
13511             shared_flag='${wl}-bM:SRE'
13512           fi
13513         fi
13514       fi
13516       # It seems that -bexpall does not export symbols beginning with
13517       # underscore (_), so it is better to generate a list of symbols to export.
13518       always_export_symbols_GCJ=yes
13519       if test "$aix_use_runtimelinking" = yes; then
13520         # Warning - without using the other runtime loading flags (-brtl),
13521         # -berok will link without error, but may produce a broken library.
13522         allow_undefined_flag_GCJ='-berok'
13523        # Determine the default libpath from the value encoded in an empty executable.
13524        cat >conftest.$ac_ext <<_ACEOF
13525 /* confdefs.h.  */
13526 _ACEOF
13527 cat confdefs.h >>conftest.$ac_ext
13528 cat >>conftest.$ac_ext <<_ACEOF
13529 /* end confdefs.h.  */
13531 int
13532 main ()
13535   ;
13536   return 0;
13538 _ACEOF
13539 rm -f conftest.$ac_objext conftest$ac_exeext
13540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13541   (eval $ac_link) 2>conftest.er1
13542   ac_status=$?
13543   grep -v '^ *+' conftest.er1 >conftest.err
13544   rm -f conftest.er1
13545   cat conftest.err >&5
13546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547   (exit $ac_status); } &&
13548          { ac_try='test -z "$ac_c_werror_flag"
13549                          || test ! -s conftest.err'
13550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13551   (eval $ac_try) 2>&5
13552   ac_status=$?
13553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13554   (exit $ac_status); }; } &&
13555          { ac_try='test -s conftest$ac_exeext'
13556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13557   (eval $ac_try) 2>&5
13558   ac_status=$?
13559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560   (exit $ac_status); }; }; then
13562 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13563 }'`
13564 # Check for a 64-bit object if we didn't find anything.
13565 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; }
13566 }'`; fi
13567 else
13568   echo "$as_me: failed program was:" >&5
13569 sed 's/^/| /' conftest.$ac_ext >&5
13572 rm -f conftest.err conftest.$ac_objext \
13573       conftest$ac_exeext conftest.$ac_ext
13574 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13576        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
13577         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"
13578        else
13579         if test "$host_cpu" = ia64; then
13580           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
13581           allow_undefined_flag_GCJ="-z nodefs"
13582           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"
13583         else
13584          # Determine the default libpath from the value encoded in an empty executable.
13585          cat >conftest.$ac_ext <<_ACEOF
13586 /* confdefs.h.  */
13587 _ACEOF
13588 cat confdefs.h >>conftest.$ac_ext
13589 cat >>conftest.$ac_ext <<_ACEOF
13590 /* end confdefs.h.  */
13592 int
13593 main ()
13596   ;
13597   return 0;
13599 _ACEOF
13600 rm -f conftest.$ac_objext conftest$ac_exeext
13601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13602   (eval $ac_link) 2>conftest.er1
13603   ac_status=$?
13604   grep -v '^ *+' conftest.er1 >conftest.err
13605   rm -f conftest.er1
13606   cat conftest.err >&5
13607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13608   (exit $ac_status); } &&
13609          { ac_try='test -z "$ac_c_werror_flag"
13610                          || test ! -s conftest.err'
13611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13612   (eval $ac_try) 2>&5
13613   ac_status=$?
13614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615   (exit $ac_status); }; } &&
13616          { ac_try='test -s conftest$ac_exeext'
13617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13618   (eval $ac_try) 2>&5
13619   ac_status=$?
13620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13621   (exit $ac_status); }; }; then
13623 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13624 }'`
13625 # Check for a 64-bit object if we didn't find anything.
13626 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; }
13627 }'`; fi
13628 else
13629   echo "$as_me: failed program was:" >&5
13630 sed 's/^/| /' conftest.$ac_ext >&5
13633 rm -f conftest.err conftest.$ac_objext \
13634       conftest$ac_exeext conftest.$ac_ext
13635 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13637          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
13638           # Warning - without using the other run time loading flags,
13639           # -berok will link without error, but may produce a broken library.
13640           no_undefined_flag_GCJ=' ${wl}-bernotok'
13641           allow_undefined_flag_GCJ=' ${wl}-berok'
13642           # Exported symbols can be pulled into shared objects from archives
13643           whole_archive_flag_spec_GCJ='$convenience'
13644           archive_cmds_need_lc_GCJ=yes
13645           # This is similar to how AIX traditionally builds its shared libraries.
13646           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'
13647         fi
13648       fi
13649       ;;
13651     amigaos*)
13652       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)'
13653       hardcode_libdir_flag_spec_GCJ='-L$libdir'
13654       hardcode_minus_L_GCJ=yes
13655       # see comment about different semantics on the GNU ld section
13656       ld_shlibs_GCJ=no
13657       ;;
13659     bsdi[45]*)
13660       export_dynamic_flag_spec_GCJ=-rdynamic
13661       ;;
13663     cygwin* | mingw* | pw32*)
13664       # When not using gcc, we currently assume that we are using
13665       # Microsoft Visual C++.
13666       # hardcode_libdir_flag_spec is actually meaningless, as there is
13667       # no search path for DLLs.
13668       hardcode_libdir_flag_spec_GCJ=' '
13669       allow_undefined_flag_GCJ=unsupported
13670       # Tell ltmain to make .lib files, not .a files.
13671       libext=lib
13672       # Tell ltmain to make .dll files, not .so files.
13673       shrext_cmds=".dll"
13674       # FIXME: Setting linknames here is a bad hack.
13675       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13676       # The linker will automatically build a .lib file if we build a DLL.
13677       old_archive_From_new_cmds_GCJ='true'
13678       # FIXME: Should let the user specify the lib program.
13679       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
13680       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
13681       enable_shared_with_static_runtimes_GCJ=yes
13682       ;;
13684     darwin* | rhapsody*)
13685       case $host_os in
13686         rhapsody* | darwin1.[012])
13687          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
13688          ;;
13689        *) # Darwin 1.3 on
13690          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13691            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13692          else
13693            case ${MACOSX_DEPLOYMENT_TARGET} in
13694              10.[012])
13695                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13696                ;;
13697              10.*)
13698                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
13699                ;;
13700            esac
13701          fi
13702          ;;
13703       esac
13704       archive_cmds_need_lc_GCJ=no
13705       hardcode_direct_GCJ=no
13706       hardcode_automatic_GCJ=yes
13707       hardcode_shlibpath_var_GCJ=unsupported
13708       whole_archive_flag_spec_GCJ=''
13709       link_all_deplibs_GCJ=yes
13710     if test "$GCC" = yes ; then
13711         output_verbose_link_cmd='echo'
13712         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13713       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13714       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13715       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}'
13716       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}'
13717     else
13718       case $cc_basename in
13719         xlc*)
13720          output_verbose_link_cmd='echo'
13721          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13722          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13723           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13724          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}'
13725           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}'
13726           ;;
13727        *)
13728          ld_shlibs_GCJ=no
13729           ;;
13730       esac
13731     fi
13732       ;;
13734     dgux*)
13735       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13736       hardcode_libdir_flag_spec_GCJ='-L$libdir'
13737       hardcode_shlibpath_var_GCJ=no
13738       ;;
13740     freebsd1*)
13741       ld_shlibs_GCJ=no
13742       ;;
13744     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13745     # support.  Future versions do this automatically, but an explicit c++rt0.o
13746     # does not break anything, and helps significantly (at the cost of a little
13747     # extra space).
13748     freebsd2.2*)
13749       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13750       hardcode_libdir_flag_spec_GCJ='-R$libdir'
13751       hardcode_direct_GCJ=yes
13752       hardcode_shlibpath_var_GCJ=no
13753       ;;
13755     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13756     freebsd2*)
13757       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13758       hardcode_direct_GCJ=yes
13759       hardcode_minus_L_GCJ=yes
13760       hardcode_shlibpath_var_GCJ=no
13761       ;;
13763     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13764     freebsd* | kfreebsd*-gnu | dragonfly*)
13765       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13766       hardcode_libdir_flag_spec_GCJ='-R$libdir'
13767       hardcode_direct_GCJ=yes
13768       hardcode_shlibpath_var_GCJ=no
13769       ;;
13771     hpux9*)
13772       if test "$GCC" = yes; then
13773         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'
13774       else
13775         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'
13776       fi
13777       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
13778       hardcode_libdir_separator_GCJ=:
13779       hardcode_direct_GCJ=yes
13781       # hardcode_minus_L: Not really in the search PATH,
13782       # but as the default location of the library.
13783       hardcode_minus_L_GCJ=yes
13784       export_dynamic_flag_spec_GCJ='${wl}-E'
13785       ;;
13787     hpux10*)
13788       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13789         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13790       else
13791         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13792       fi
13793       if test "$with_gnu_ld" = no; then
13794         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
13795         hardcode_libdir_separator_GCJ=:
13797         hardcode_direct_GCJ=yes
13798         export_dynamic_flag_spec_GCJ='${wl}-E'
13800         # hardcode_minus_L: Not really in the search PATH,
13801         # but as the default location of the library.
13802         hardcode_minus_L_GCJ=yes
13803       fi
13804       ;;
13806     hpux11*)
13807       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13808         case $host_cpu in
13809         hppa*64*)
13810           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13811           ;;
13812         ia64*)
13813           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13814           ;;
13815         *)
13816           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13817           ;;
13818         esac
13819       else
13820         case $host_cpu in
13821         hppa*64*)
13822           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13823           ;;
13824         ia64*)
13825           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13826           ;;
13827         *)
13828           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13829           ;;
13830         esac
13831       fi
13832       if test "$with_gnu_ld" = no; then
13833         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
13834         hardcode_libdir_separator_GCJ=:
13836         case $host_cpu in
13837         hppa*64*|ia64*)
13838           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
13839           hardcode_direct_GCJ=no
13840           hardcode_shlibpath_var_GCJ=no
13841           ;;
13842         *)
13843           hardcode_direct_GCJ=yes
13844           export_dynamic_flag_spec_GCJ='${wl}-E'
13846           # hardcode_minus_L: Not really in the search PATH,
13847           # but as the default location of the library.
13848           hardcode_minus_L_GCJ=yes
13849           ;;
13850         esac
13851       fi
13852       ;;
13854     irix5* | irix6* | nonstopux*)
13855       if test "$GCC" = yes; then
13856         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'
13857       else
13858         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'
13859         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
13860       fi
13861       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
13862       hardcode_libdir_separator_GCJ=:
13863       link_all_deplibs_GCJ=yes
13864       ;;
13866     netbsd*)
13867       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13868         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13869       else
13870         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13871       fi
13872       hardcode_libdir_flag_spec_GCJ='-R$libdir'
13873       hardcode_direct_GCJ=yes
13874       hardcode_shlibpath_var_GCJ=no
13875       ;;
13877     newsos6)
13878       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13879       hardcode_direct_GCJ=yes
13880       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
13881       hardcode_libdir_separator_GCJ=:
13882       hardcode_shlibpath_var_GCJ=no
13883       ;;
13885     openbsd*)
13886       hardcode_direct_GCJ=yes
13887       hardcode_shlibpath_var_GCJ=no
13888       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13889         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13890         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13891         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
13892         export_dynamic_flag_spec_GCJ='${wl}-E'
13893       else
13894        case $host_os in
13895          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13896            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13897            hardcode_libdir_flag_spec_GCJ='-R$libdir'
13898            ;;
13899          *)
13900            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13901            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
13902            ;;
13903        esac
13904       fi
13905       ;;
13907     os2*)
13908       hardcode_libdir_flag_spec_GCJ='-L$libdir'
13909       hardcode_minus_L_GCJ=yes
13910       allow_undefined_flag_GCJ=unsupported
13911       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'
13912       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13913       ;;
13915     osf3*)
13916       if test "$GCC" = yes; then
13917         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
13918         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'
13919       else
13920         allow_undefined_flag_GCJ=' -expect_unresolved \*'
13921         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'
13922       fi
13923       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
13924       hardcode_libdir_separator_GCJ=:
13925       ;;
13927     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13928       if test "$GCC" = yes; then
13929         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
13930         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'
13931         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
13932       else
13933         allow_undefined_flag_GCJ=' -expect_unresolved \*'
13934         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'
13935         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~
13936         $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'
13938         # Both c and cxx compiler support -rpath directly
13939         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
13940       fi
13941       hardcode_libdir_separator_GCJ=:
13942       ;;
13944     solaris*)
13945       no_undefined_flag_GCJ=' -z text'
13946       if test "$GCC" = yes; then
13947         wlarc='${wl}'
13948         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13949         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13950           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13951       else
13952         wlarc=''
13953         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13954         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13955         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13956       fi
13957       hardcode_libdir_flag_spec_GCJ='-R$libdir'
13958       hardcode_shlibpath_var_GCJ=no
13959       case $host_os in
13960       solaris2.[0-5] | solaris2.[0-5].*) ;;
13961       *)
13962         # The compiler driver will combine linker options so we
13963         # cannot just pass the convience library names through
13964         # without $wl, iff we do not link with $LD.
13965         # Luckily, gcc supports the same syntax we need for Sun Studio.
13966         # Supported since Solaris 2.6 (maybe 2.5.1?)
13967         case $wlarc in
13968         '')
13969           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
13970         *)
13971           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' ;;
13972         esac ;;
13973       esac
13974       link_all_deplibs_GCJ=yes
13975       ;;
13977     sunos4*)
13978       if test "x$host_vendor" = xsequent; then
13979         # Use $CC to link under sequent, because it throws in some extra .o
13980         # files that make .init and .fini sections work.
13981         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13982       else
13983         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13984       fi
13985       hardcode_libdir_flag_spec_GCJ='-L$libdir'
13986       hardcode_direct_GCJ=yes
13987       hardcode_minus_L_GCJ=yes
13988       hardcode_shlibpath_var_GCJ=no
13989       ;;
13991     sysv4)
13992       case $host_vendor in
13993         sni)
13994           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13995           hardcode_direct_GCJ=yes # is this really true???
13996         ;;
13997         siemens)
13998           ## LD is ld it makes a PLAMLIB
13999           ## CC just makes a GrossModule.
14000           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14001           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
14002           hardcode_direct_GCJ=no
14003         ;;
14004         motorola)
14005           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14006           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
14007         ;;
14008       esac
14009       runpath_var='LD_RUN_PATH'
14010       hardcode_shlibpath_var_GCJ=no
14011       ;;
14013     sysv4.3*)
14014       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14015       hardcode_shlibpath_var_GCJ=no
14016       export_dynamic_flag_spec_GCJ='-Bexport'
14017       ;;
14019     sysv4*MP*)
14020       if test -d /usr/nec; then
14021         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14022         hardcode_shlibpath_var_GCJ=no
14023         runpath_var=LD_RUN_PATH
14024         hardcode_runpath_var=yes
14025         ld_shlibs_GCJ=yes
14026       fi
14027       ;;
14029     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14030       no_undefined_flag_GCJ='${wl}-z,text'
14031       archive_cmds_need_lc_GCJ=no
14032       hardcode_shlibpath_var_GCJ=no
14033       runpath_var='LD_RUN_PATH'
14035       if test "$GCC" = yes; then
14036         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14037         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14038       else
14039         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14040         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14041       fi
14042       ;;
14044     sysv5* | sco3.2v5* | sco5v6*)
14045       # Note: We can NOT use -z defs as we might desire, because we do not
14046       # link with -lc, and that would cause any symbols used from libc to
14047       # always be unresolved, which means just about no library would
14048       # ever link correctly.  If we're not using GNU ld we use -z text
14049       # though, which does catch some bad symbols but isn't as heavy-handed
14050       # as -z defs.
14051       no_undefined_flag_GCJ='${wl}-z,text'
14052       allow_undefined_flag_GCJ='${wl}-z,nodefs'
14053       archive_cmds_need_lc_GCJ=no
14054       hardcode_shlibpath_var_GCJ=no
14055       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14056       hardcode_libdir_separator_GCJ=':'
14057       link_all_deplibs_GCJ=yes
14058       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
14059       runpath_var='LD_RUN_PATH'
14061       if test "$GCC" = yes; then
14062         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14063         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14064       else
14065         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14066         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14067       fi
14068       ;;
14070     uts4*)
14071       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14072       hardcode_libdir_flag_spec_GCJ='-L$libdir'
14073       hardcode_shlibpath_var_GCJ=no
14074       ;;
14076     *)
14077       ld_shlibs_GCJ=no
14078       ;;
14079     esac
14080   fi
14082 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
14083 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
14084 test "$ld_shlibs_GCJ" = no && can_build_shared=no
14087 # Do we need to explicitly link libc?
14089 case "x$archive_cmds_need_lc_GCJ" in
14090 x|xyes)
14091   # Assume -lc should be added
14092   archive_cmds_need_lc_GCJ=yes
14094   if test "$enable_shared" = yes && test "$GCC" = yes; then
14095     case $archive_cmds_GCJ in
14096     *'~'*)
14097       # FIXME: we may have to deal with multi-command sequences.
14098       ;;
14099     '$CC '*)
14100       # Test whether the compiler implicitly links with -lc since on some
14101       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14102       # to ld, don't add -lc before -lgcc.
14103       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14104 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14105       $rm conftest*
14106       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14108       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14109   (eval $ac_compile) 2>&5
14110   ac_status=$?
14111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112   (exit $ac_status); } 2>conftest.err; then
14113         soname=conftest
14114         lib=conftest
14115         libobjs=conftest.$ac_objext
14116         deplibs=
14117         wl=$lt_prog_compiler_wl_GCJ
14118         pic_flag=$lt_prog_compiler_pic_GCJ
14119         compiler_flags=-v
14120         linker_flags=-v
14121         verstring=
14122         output_objdir=.
14123         libname=conftest
14124         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
14125         allow_undefined_flag_GCJ=
14126         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14127   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14128   ac_status=$?
14129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14130   (exit $ac_status); }
14131         then
14132           archive_cmds_need_lc_GCJ=no
14133         else
14134           archive_cmds_need_lc_GCJ=yes
14135         fi
14136         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
14137       else
14138         cat conftest.err 1>&5
14139       fi
14140       $rm conftest*
14141       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
14142 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
14143       ;;
14144     esac
14145   fi
14146   ;;
14147 esac
14149 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14150 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14151 library_names_spec=
14152 libname_spec='lib$name'
14153 soname_spec=
14154 shrext_cmds=".so"
14155 postinstall_cmds=
14156 postuninstall_cmds=
14157 finish_cmds=
14158 finish_eval=
14159 shlibpath_var=
14160 shlibpath_overrides_runpath=unknown
14161 version_type=none
14162 dynamic_linker="$host_os ld.so"
14163 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14164 if test "$GCC" = yes; then
14165   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14166   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14167     # if the path contains ";" then we assume it to be the separator
14168     # otherwise default to the standard path separator (i.e. ":") - it is
14169     # assumed that no part of a normal pathname contains ";" but that should
14170     # okay in the real world where ";" in dirpaths is itself problematic.
14171     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14172   else
14173     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14174   fi
14175 else
14176   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14178 need_lib_prefix=unknown
14179 hardcode_into_libs=no
14181 # when you set need_version to no, make sure it does not cause -set_version
14182 # flags to be left without arguments
14183 need_version=unknown
14185 case $host_os in
14186 aix3*)
14187   version_type=linux
14188   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14189   shlibpath_var=LIBPATH
14191   # AIX 3 has no versioning support, so we append a major version to the name.
14192   soname_spec='${libname}${release}${shared_ext}$major'
14193   ;;
14195 aix4* | aix5*)
14196   version_type=linux
14197   need_lib_prefix=no
14198   need_version=no
14199   hardcode_into_libs=yes
14200   if test "$host_cpu" = ia64; then
14201     # AIX 5 supports IA64
14202     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14203     shlibpath_var=LD_LIBRARY_PATH
14204   else
14205     # With GCC up to 2.95.x, collect2 would create an import file
14206     # for dependence libraries.  The import file would start with
14207     # the line `#! .'.  This would cause the generated library to
14208     # depend on `.', always an invalid library.  This was fixed in
14209     # development snapshots of GCC prior to 3.0.
14210     case $host_os in
14211       aix4 | aix4.[01] | aix4.[01].*)
14212       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14213            echo ' yes '
14214            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14215         :
14216       else
14217         can_build_shared=no
14218       fi
14219       ;;
14220     esac
14221     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14222     # soname into executable. Probably we can add versioning support to
14223     # collect2, so additional links can be useful in future.
14224     if test "$aix_use_runtimelinking" = yes; then
14225       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14226       # instead of lib<name>.a to let people know that these are not
14227       # typical AIX shared libraries.
14228       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14229     else
14230       # We preserve .a as extension for shared libraries through AIX4.2
14231       # and later when we are not doing run time linking.
14232       library_names_spec='${libname}${release}.a $libname.a'
14233       soname_spec='${libname}${release}${shared_ext}$major'
14234     fi
14235     shlibpath_var=LIBPATH
14236   fi
14237   ;;
14239 amigaos*)
14240   library_names_spec='$libname.ixlibrary $libname.a'
14241   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14242   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'
14243   ;;
14245 beos*)
14246   library_names_spec='${libname}${shared_ext}'
14247   dynamic_linker="$host_os ld.so"
14248   shlibpath_var=LIBRARY_PATH
14249   ;;
14251 bsdi[45]*)
14252   version_type=linux
14253   need_version=no
14254   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14255   soname_spec='${libname}${release}${shared_ext}$major'
14256   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14257   shlibpath_var=LD_LIBRARY_PATH
14258   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14259   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14260   # the default ld.so.conf also contains /usr/contrib/lib and
14261   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14262   # libtool to hard-code these into programs
14263   ;;
14265 cygwin* | mingw* | pw32*)
14266   version_type=windows
14267   shrext_cmds=".dll"
14268   need_version=no
14269   need_lib_prefix=no
14271   case $GCC,$host_os in
14272   yes,cygwin* | yes,mingw* | yes,pw32*)
14273     library_names_spec='$libname.dll.a'
14274     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14275     postinstall_cmds='base_file=`basename \${file}`~
14276       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14277       dldir=$destdir/`dirname \$dlpath`~
14278       test -d \$dldir || mkdir -p \$dldir~
14279       $install_prog $dir/$dlname \$dldir/$dlname~
14280       chmod a+x \$dldir/$dlname'
14281     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14282       dlpath=$dir/\$dldll~
14283        $rm \$dlpath'
14284     shlibpath_overrides_runpath=yes
14286     case $host_os in
14287     cygwin*)
14288       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14289       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14290       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14291       ;;
14292     mingw*)
14293       # MinGW DLLs use traditional 'lib' prefix
14294       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14295       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14296       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14297         # It is most probably a Windows format PATH printed by
14298         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14299         # path with ; separators, and with drive letters. We can handle the
14300         # drive letters (cygwin fileutils understands them), so leave them,
14301         # especially as we might pass files found there to a mingw objdump,
14302         # which wouldn't understand a cygwinified path. Ahh.
14303         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14304       else
14305         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14306       fi
14307       ;;
14308     pw32*)
14309       # pw32 DLLs use 'pw' prefix rather than 'lib'
14310       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14311       ;;
14312     esac
14313     ;;
14315   *)
14316     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14317     ;;
14318   esac
14319   dynamic_linker='Win32 ld.exe'
14320   # FIXME: first we should search . and the directory the executable is in
14321   shlibpath_var=PATH
14322   ;;
14324 darwin* | rhapsody*)
14325   dynamic_linker="$host_os dyld"
14326   version_type=darwin
14327   need_lib_prefix=no
14328   need_version=no
14329   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14330   soname_spec='${libname}${release}${major}$shared_ext'
14331   shlibpath_overrides_runpath=yes
14332   shlibpath_var=DYLD_LIBRARY_PATH
14333   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14334   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14335   if test "$GCC" = yes; then
14336     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"`
14337   else
14338     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14339   fi
14340   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14341   ;;
14343 dgux*)
14344   version_type=linux
14345   need_lib_prefix=no
14346   need_version=no
14347   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14348   soname_spec='${libname}${release}${shared_ext}$major'
14349   shlibpath_var=LD_LIBRARY_PATH
14350   ;;
14352 freebsd1*)
14353   dynamic_linker=no
14354   ;;
14356 kfreebsd*-gnu)
14357   version_type=linux
14358   need_lib_prefix=no
14359   need_version=no
14360   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14361   soname_spec='${libname}${release}${shared_ext}$major'
14362   shlibpath_var=LD_LIBRARY_PATH
14363   shlibpath_overrides_runpath=no
14364   hardcode_into_libs=yes
14365   dynamic_linker='GNU ld.so'
14366   ;;
14368 freebsd* | dragonfly*)
14369   # DragonFly does not have aout.  When/if they implement a new
14370   # versioning mechanism, adjust this.
14371   if test -x /usr/bin/objformat; then
14372     objformat=`/usr/bin/objformat`
14373   else
14374     case $host_os in
14375     freebsd[123]*) objformat=aout ;;
14376     *) objformat=elf ;;
14377     esac
14378   fi
14379   version_type=freebsd-$objformat
14380   case $version_type in
14381     freebsd-elf*)
14382       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14383       need_version=no
14384       need_lib_prefix=no
14385       ;;
14386     freebsd-*)
14387       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14388       need_version=yes
14389       ;;
14390   esac
14391   shlibpath_var=LD_LIBRARY_PATH
14392   case $host_os in
14393   freebsd2*)
14394     shlibpath_overrides_runpath=yes
14395     ;;
14396   freebsd3.[01]* | freebsdelf3.[01]*)
14397     shlibpath_overrides_runpath=yes
14398     hardcode_into_libs=yes
14399     ;;
14400   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14401   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14402     shlibpath_overrides_runpath=no
14403     hardcode_into_libs=yes
14404     ;;
14405   freebsd*) # from 4.6 on
14406     shlibpath_overrides_runpath=yes
14407     hardcode_into_libs=yes
14408     ;;
14409   esac
14410   ;;
14412 gnu*)
14413   version_type=linux
14414   need_lib_prefix=no
14415   need_version=no
14416   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14417   soname_spec='${libname}${release}${shared_ext}$major'
14418   shlibpath_var=LD_LIBRARY_PATH
14419   hardcode_into_libs=yes
14420   ;;
14422 hpux9* | hpux10* | hpux11*)
14423   # Give a soname corresponding to the major version so that dld.sl refuses to
14424   # link against other versions.
14425   version_type=sunos
14426   need_lib_prefix=no
14427   need_version=no
14428   case $host_cpu in
14429   ia64*)
14430     shrext_cmds='.so'
14431     hardcode_into_libs=yes
14432     dynamic_linker="$host_os dld.so"
14433     shlibpath_var=LD_LIBRARY_PATH
14434     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14435     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14436     soname_spec='${libname}${release}${shared_ext}$major'
14437     if test "X$HPUX_IA64_MODE" = X32; then
14438       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14439     else
14440       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14441     fi
14442     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14443     ;;
14444    hppa*64*)
14445      shrext_cmds='.sl'
14446      hardcode_into_libs=yes
14447      dynamic_linker="$host_os dld.sl"
14448      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14449      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14450      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14451      soname_spec='${libname}${release}${shared_ext}$major'
14452      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14453      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14454      ;;
14455    *)
14456     shrext_cmds='.sl'
14457     dynamic_linker="$host_os dld.sl"
14458     shlibpath_var=SHLIB_PATH
14459     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14460     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14461     soname_spec='${libname}${release}${shared_ext}$major'
14462     ;;
14463   esac
14464   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14465   postinstall_cmds='chmod 555 $lib'
14466   ;;
14468 interix3*)
14469   version_type=linux
14470   need_lib_prefix=no
14471   need_version=no
14472   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14473   soname_spec='${libname}${release}${shared_ext}$major'
14474   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14475   shlibpath_var=LD_LIBRARY_PATH
14476   shlibpath_overrides_runpath=no
14477   hardcode_into_libs=yes
14478   ;;
14480 irix5* | irix6* | nonstopux*)
14481   case $host_os in
14482     nonstopux*) version_type=nonstopux ;;
14483     *)
14484         if test "$lt_cv_prog_gnu_ld" = yes; then
14485                 version_type=linux
14486         else
14487                 version_type=irix
14488         fi ;;
14489   esac
14490   need_lib_prefix=no
14491   need_version=no
14492   soname_spec='${libname}${release}${shared_ext}$major'
14493   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14494   case $host_os in
14495   irix5* | nonstopux*)
14496     libsuff= shlibsuff=
14497     ;;
14498   *)
14499     case $LD in # libtool.m4 will add one of these switches to LD
14500     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14501       libsuff= shlibsuff= libmagic=32-bit;;
14502     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14503       libsuff=32 shlibsuff=N32 libmagic=N32;;
14504     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14505       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14506     *) libsuff= shlibsuff= libmagic=never-match;;
14507     esac
14508     ;;
14509   esac
14510   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14511   shlibpath_overrides_runpath=no
14512   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14513   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14514   hardcode_into_libs=yes
14515   ;;
14517 # No shared lib support for Linux oldld, aout, or coff.
14518 linux*oldld* | linux*aout* | linux*coff*)
14519   dynamic_linker=no
14520   ;;
14522 # This must be Linux ELF.
14523 linux*)
14524   version_type=linux
14525   need_lib_prefix=no
14526   need_version=no
14527   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14528   soname_spec='${libname}${release}${shared_ext}$major'
14529   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14530   shlibpath_var=LD_LIBRARY_PATH
14531   shlibpath_overrides_runpath=no
14532   # This implies no fast_install, which is unacceptable.
14533   # Some rework will be needed to allow for fast_install
14534   # before this can be enabled.
14535   hardcode_into_libs=yes
14537   # Append ld.so.conf contents to the search path
14538   if test -f /etc/ld.so.conf; then
14539     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' ' '`
14540     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14541   fi
14543   # We used to test for /lib/ld.so.1 and disable shared libraries on
14544   # powerpc, because MkLinux only supported shared libraries with the
14545   # GNU dynamic linker.  Since this was broken with cross compilers,
14546   # most powerpc-linux boxes support dynamic linking these days and
14547   # people can always --disable-shared, the test was removed, and we
14548   # assume the GNU/Linux dynamic linker is in use.
14549   dynamic_linker='GNU/Linux ld.so'
14550   ;;
14552 knetbsd*-gnu)
14553   version_type=linux
14554   need_lib_prefix=no
14555   need_version=no
14556   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14557   soname_spec='${libname}${release}${shared_ext}$major'
14558   shlibpath_var=LD_LIBRARY_PATH
14559   shlibpath_overrides_runpath=no
14560   hardcode_into_libs=yes
14561   dynamic_linker='GNU ld.so'
14562   ;;
14564 netbsd*)
14565   version_type=sunos
14566   need_lib_prefix=no
14567   need_version=no
14568   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14569     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14570     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14571     dynamic_linker='NetBSD (a.out) ld.so'
14572   else
14573     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14574     soname_spec='${libname}${release}${shared_ext}$major'
14575     dynamic_linker='NetBSD ld.elf_so'
14576   fi
14577   shlibpath_var=LD_LIBRARY_PATH
14578   shlibpath_overrides_runpath=yes
14579   hardcode_into_libs=yes
14580   ;;
14582 newsos6)
14583   version_type=linux
14584   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14585   shlibpath_var=LD_LIBRARY_PATH
14586   shlibpath_overrides_runpath=yes
14587   ;;
14589 nto-qnx*)
14590   version_type=linux
14591   need_lib_prefix=no
14592   need_version=no
14593   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14594   soname_spec='${libname}${release}${shared_ext}$major'
14595   shlibpath_var=LD_LIBRARY_PATH
14596   shlibpath_overrides_runpath=yes
14597   ;;
14599 openbsd*)
14600   version_type=sunos
14601   sys_lib_dlsearch_path_spec="/usr/lib"
14602   need_lib_prefix=no
14603   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14604   case $host_os in
14605     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14606     *)                         need_version=no  ;;
14607   esac
14608   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14609   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14610   shlibpath_var=LD_LIBRARY_PATH
14611   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14612     case $host_os in
14613       openbsd2.[89] | openbsd2.[89].*)
14614         shlibpath_overrides_runpath=no
14615         ;;
14616       *)
14617         shlibpath_overrides_runpath=yes
14618         ;;
14619       esac
14620   else
14621     shlibpath_overrides_runpath=yes
14622   fi
14623   ;;
14625 os2*)
14626   libname_spec='$name'
14627   shrext_cmds=".dll"
14628   need_lib_prefix=no
14629   library_names_spec='$libname${shared_ext} $libname.a'
14630   dynamic_linker='OS/2 ld.exe'
14631   shlibpath_var=LIBPATH
14632   ;;
14634 osf3* | osf4* | osf5*)
14635   version_type=osf
14636   need_lib_prefix=no
14637   need_version=no
14638   soname_spec='${libname}${release}${shared_ext}$major'
14639   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14640   shlibpath_var=LD_LIBRARY_PATH
14641   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14642   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14643   ;;
14645 solaris*)
14646   version_type=linux
14647   need_lib_prefix=no
14648   need_version=no
14649   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14650   soname_spec='${libname}${release}${shared_ext}$major'
14651   shlibpath_var=LD_LIBRARY_PATH
14652   shlibpath_overrides_runpath=yes
14653   hardcode_into_libs=yes
14654   # ldd complains unless libraries are executable
14655   postinstall_cmds='chmod +x $lib'
14656   ;;
14658 sunos4*)
14659   version_type=sunos
14660   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14661   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14662   shlibpath_var=LD_LIBRARY_PATH
14663   shlibpath_overrides_runpath=yes
14664   if test "$with_gnu_ld" = yes; then
14665     need_lib_prefix=no
14666   fi
14667   need_version=yes
14668   ;;
14670 sysv4 | sysv4.3*)
14671   version_type=linux
14672   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14673   soname_spec='${libname}${release}${shared_ext}$major'
14674   shlibpath_var=LD_LIBRARY_PATH
14675   case $host_vendor in
14676     sni)
14677       shlibpath_overrides_runpath=no
14678       need_lib_prefix=no
14679       export_dynamic_flag_spec='${wl}-Blargedynsym'
14680       runpath_var=LD_RUN_PATH
14681       ;;
14682     siemens)
14683       need_lib_prefix=no
14684       ;;
14685     motorola)
14686       need_lib_prefix=no
14687       need_version=no
14688       shlibpath_overrides_runpath=no
14689       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14690       ;;
14691   esac
14692   ;;
14694 sysv4*MP*)
14695   if test -d /usr/nec ;then
14696     version_type=linux
14697     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14698     soname_spec='$libname${shared_ext}.$major'
14699     shlibpath_var=LD_LIBRARY_PATH
14700   fi
14701   ;;
14703 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14704   version_type=freebsd-elf
14705   need_lib_prefix=no
14706   need_version=no
14707   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14708   soname_spec='${libname}${release}${shared_ext}$major'
14709   shlibpath_var=LD_LIBRARY_PATH
14710   hardcode_into_libs=yes
14711   if test "$with_gnu_ld" = yes; then
14712     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14713     shlibpath_overrides_runpath=no
14714   else
14715     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14716     shlibpath_overrides_runpath=yes
14717     case $host_os in
14718       sco3.2v5*)
14719         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14720         ;;
14721     esac
14722   fi
14723   sys_lib_dlsearch_path_spec='/usr/lib'
14724   ;;
14726 uts4*)
14727   version_type=linux
14728   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14729   soname_spec='${libname}${release}${shared_ext}$major'
14730   shlibpath_var=LD_LIBRARY_PATH
14731   ;;
14734   dynamic_linker=no
14735   ;;
14736 esac
14737 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14738 echo "${ECHO_T}$dynamic_linker" >&6
14739 test "$dynamic_linker" = no && can_build_shared=no
14741 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14742 if test "$GCC" = yes; then
14743   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14746 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14747 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14748 hardcode_action_GCJ=
14749 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
14750    test -n "$runpath_var_GCJ" || \
14751    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
14753   # We can hardcode non-existant directories.
14754   if test "$hardcode_direct_GCJ" != no &&
14755      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14756      # have to relink, otherwise we might link with an installed library
14757      # when we should be linking with a yet-to-be-installed one
14758      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
14759      test "$hardcode_minus_L_GCJ" != no; then
14760     # Linking always hardcodes the temporary library directory.
14761     hardcode_action_GCJ=relink
14762   else
14763     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14764     hardcode_action_GCJ=immediate
14765   fi
14766 else
14767   # We cannot hardcode anything, or else we can only hardcode existing
14768   # directories.
14769   hardcode_action_GCJ=unsupported
14771 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
14772 echo "${ECHO_T}$hardcode_action_GCJ" >&6
14774 if test "$hardcode_action_GCJ" = relink; then
14775   # Fast installation is not supported
14776   enable_fast_install=no
14777 elif test "$shlibpath_overrides_runpath" = yes ||
14778      test "$enable_shared" = no; then
14779   # Fast installation is not necessary
14780   enable_fast_install=needless
14784 # The else clause should only fire when bootstrapping the
14785 # libtool distribution, otherwise you forgot to ship ltmain.sh
14786 # with your package, and you will get complaints that there are
14787 # no rules to generate ltmain.sh.
14788 if test -f "$ltmain"; then
14789   # See if we are running on zsh, and set the options which allow our commands through
14790   # without removal of \ escapes.
14791   if test -n "${ZSH_VERSION+set}" ; then
14792     setopt NO_GLOB_SUBST
14793   fi
14794   # Now quote all the things that may contain metacharacters while being
14795   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14796   # variables and quote the copies for generation of the libtool script.
14797   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14798     SED SHELL STRIP \
14799     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14800     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14801     deplibs_check_method reload_flag reload_cmds need_locks \
14802     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14803     lt_cv_sys_global_symbol_to_c_name_address \
14804     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14805     old_postinstall_cmds old_postuninstall_cmds \
14806     compiler_GCJ \
14807     CC_GCJ \
14808     LD_GCJ \
14809     lt_prog_compiler_wl_GCJ \
14810     lt_prog_compiler_pic_GCJ \
14811     lt_prog_compiler_static_GCJ \
14812     lt_prog_compiler_no_builtin_flag_GCJ \
14813     export_dynamic_flag_spec_GCJ \
14814     thread_safe_flag_spec_GCJ \
14815     whole_archive_flag_spec_GCJ \
14816     enable_shared_with_static_runtimes_GCJ \
14817     old_archive_cmds_GCJ \
14818     old_archive_from_new_cmds_GCJ \
14819     predep_objects_GCJ \
14820     postdep_objects_GCJ \
14821     predeps_GCJ \
14822     postdeps_GCJ \
14823     compiler_lib_search_path_GCJ \
14824     archive_cmds_GCJ \
14825     archive_expsym_cmds_GCJ \
14826     postinstall_cmds_GCJ \
14827     postuninstall_cmds_GCJ \
14828     old_archive_from_expsyms_cmds_GCJ \
14829     allow_undefined_flag_GCJ \
14830     no_undefined_flag_GCJ \
14831     export_symbols_cmds_GCJ \
14832     hardcode_libdir_flag_spec_GCJ \
14833     hardcode_libdir_flag_spec_ld_GCJ \
14834     hardcode_libdir_separator_GCJ \
14835     hardcode_automatic_GCJ \
14836     module_cmds_GCJ \
14837     module_expsym_cmds_GCJ \
14838     lt_cv_prog_compiler_c_o_GCJ \
14839     exclude_expsyms_GCJ \
14840     include_expsyms_GCJ; do
14842     case $var in
14843     old_archive_cmds_GCJ | \
14844     old_archive_from_new_cmds_GCJ | \
14845     archive_cmds_GCJ | \
14846     archive_expsym_cmds_GCJ | \
14847     module_cmds_GCJ | \
14848     module_expsym_cmds_GCJ | \
14849     old_archive_from_expsyms_cmds_GCJ | \
14850     export_symbols_cmds_GCJ | \
14851     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14852     postinstall_cmds | postuninstall_cmds | \
14853     old_postinstall_cmds | old_postuninstall_cmds | \
14854     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14855       # Double-quote double-evaled strings.
14856       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14857       ;;
14858     *)
14859       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14860       ;;
14861     esac
14862   done
14864   case $lt_echo in
14865   *'\$0 --fallback-echo"')
14866     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14867     ;;
14868   esac
14870 cfgfile="$ofile"
14872   cat <<__EOF__ >> "$cfgfile"
14873 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14875 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14877 # Shell to use when invoking shell scripts.
14878 SHELL=$lt_SHELL
14880 # Whether or not to build shared libraries.
14881 build_libtool_libs=$enable_shared
14883 # Whether or not to build static libraries.
14884 build_old_libs=$enable_static
14886 # Whether or not to add -lc for building shared libraries.
14887 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
14889 # Whether or not to disallow shared libs when runtime libs are static
14890 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
14892 # Whether or not to optimize for fast installation.
14893 fast_install=$enable_fast_install
14895 # The host system.
14896 host_alias=$host_alias
14897 host=$host
14898 host_os=$host_os
14900 # The build system.
14901 build_alias=$build_alias
14902 build=$build
14903 build_os=$build_os
14905 # An echo program that does not interpret backslashes.
14906 echo=$lt_echo
14908 # The archiver.
14909 AR=$lt_AR
14910 AR_FLAGS=$lt_AR_FLAGS
14912 # A C compiler.
14913 LTCC=$lt_LTCC
14915 # LTCC compiler flags.
14916 LTCFLAGS=$lt_LTCFLAGS
14918 # A language-specific compiler.
14919 CC=$lt_compiler_GCJ
14921 # Is the compiler the GNU C compiler?
14922 with_gcc=$GCC_GCJ
14924 # An ERE matcher.
14925 EGREP=$lt_EGREP
14927 # The linker used to build libraries.
14928 LD=$lt_LD_GCJ
14930 # Whether we need hard or soft links.
14931 LN_S=$lt_LN_S
14933 # A BSD-compatible nm program.
14934 NM=$lt_NM
14936 # A symbol stripping program
14937 STRIP=$lt_STRIP
14939 # Used to examine libraries when file_magic_cmd begins "file"
14940 MAGIC_CMD=$MAGIC_CMD
14942 # Used on cygwin: DLL creation program.
14943 DLLTOOL="$DLLTOOL"
14945 # Used on cygwin: object dumper.
14946 OBJDUMP="$OBJDUMP"
14948 # Used on cygwin: assembler.
14949 AS="$AS"
14951 # The name of the directory that contains temporary libtool files.
14952 objdir=$objdir
14954 # How to create reloadable object files.
14955 reload_flag=$lt_reload_flag
14956 reload_cmds=$lt_reload_cmds
14958 # How to pass a linker flag through the compiler.
14959 wl=$lt_lt_prog_compiler_wl_GCJ
14961 # Object file suffix (normally "o").
14962 objext="$ac_objext"
14964 # Old archive suffix (normally "a").
14965 libext="$libext"
14967 # Shared library suffix (normally ".so").
14968 shrext_cmds='$shrext_cmds'
14970 # Executable file suffix (normally "").
14971 exeext="$exeext"
14973 # Additional compiler flags for building library objects.
14974 pic_flag=$lt_lt_prog_compiler_pic_GCJ
14975 pic_mode=$pic_mode
14977 # What is the maximum length of a command?
14978 max_cmd_len=$lt_cv_sys_max_cmd_len
14980 # Does compiler simultaneously support -c and -o options?
14981 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
14983 # Must we lock files when doing compilation?
14984 need_locks=$lt_need_locks
14986 # Do we need the lib prefix for modules?
14987 need_lib_prefix=$need_lib_prefix
14989 # Do we need a version for libraries?
14990 need_version=$need_version
14992 # Whether dlopen is supported.
14993 dlopen_support=$enable_dlopen
14995 # Whether dlopen of programs is supported.
14996 dlopen_self=$enable_dlopen_self
14998 # Whether dlopen of statically linked programs is supported.
14999 dlopen_self_static=$enable_dlopen_self_static
15001 # Compiler flag to prevent dynamic linking.
15002 link_static_flag=$lt_lt_prog_compiler_static_GCJ
15004 # Compiler flag to turn off builtin functions.
15005 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
15007 # Compiler flag to allow reflexive dlopens.
15008 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
15010 # Compiler flag to generate shared objects directly from archives.
15011 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
15013 # Compiler flag to generate thread-safe objects.
15014 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
15016 # Library versioning type.
15017 version_type=$version_type
15019 # Format of library name prefix.
15020 libname_spec=$lt_libname_spec
15022 # List of archive names.  First name is the real one, the rest are links.
15023 # The last name is the one that the linker finds with -lNAME.
15024 library_names_spec=$lt_library_names_spec
15026 # The coded name of the library, if different from the real name.
15027 soname_spec=$lt_soname_spec
15029 # Commands used to build and install an old-style archive.
15030 RANLIB=$lt_RANLIB
15031 old_archive_cmds=$lt_old_archive_cmds_GCJ
15032 old_postinstall_cmds=$lt_old_postinstall_cmds
15033 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15035 # Create an old-style archive from a shared archive.
15036 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
15038 # Create a temporary old-style archive to link instead of a shared archive.
15039 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
15041 # Commands used to build and install a shared archive.
15042 archive_cmds=$lt_archive_cmds_GCJ
15043 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
15044 postinstall_cmds=$lt_postinstall_cmds
15045 postuninstall_cmds=$lt_postuninstall_cmds
15047 # Commands used to build a loadable module (assumed same as above if empty)
15048 module_cmds=$lt_module_cmds_GCJ
15049 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
15051 # Commands to strip libraries.
15052 old_striplib=$lt_old_striplib
15053 striplib=$lt_striplib
15055 # Dependencies to place before the objects being linked to create a
15056 # shared library.
15057 predep_objects=$lt_predep_objects_GCJ
15059 # Dependencies to place after the objects being linked to create a
15060 # shared library.
15061 postdep_objects=$lt_postdep_objects_GCJ
15063 # Dependencies to place before the objects being linked to create a
15064 # shared library.
15065 predeps=$lt_predeps_GCJ
15067 # Dependencies to place after the objects being linked to create a
15068 # shared library.
15069 postdeps=$lt_postdeps_GCJ
15071 # The library search path used internally by the compiler when linking
15072 # a shared library.
15073 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
15075 # Method to check whether dependent libraries are shared objects.
15076 deplibs_check_method=$lt_deplibs_check_method
15078 # Command to use when deplibs_check_method == file_magic.
15079 file_magic_cmd=$lt_file_magic_cmd
15081 # Flag that allows shared libraries with undefined symbols to be built.
15082 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
15084 # Flag that forces no undefined symbols.
15085 no_undefined_flag=$lt_no_undefined_flag_GCJ
15087 # Commands used to finish a libtool library installation in a directory.
15088 finish_cmds=$lt_finish_cmds
15090 # Same as above, but a single script fragment to be evaled but not shown.
15091 finish_eval=$lt_finish_eval
15093 # Take the output of nm and produce a listing of raw symbols and C names.
15094 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15096 # Transform the output of nm in a proper C declaration
15097 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15099 # Transform the output of nm in a C name address pair
15100 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15102 # This is the shared library runtime path variable.
15103 runpath_var=$runpath_var
15105 # This is the shared library path variable.
15106 shlibpath_var=$shlibpath_var
15108 # Is shlibpath searched before the hard-coded library search path?
15109 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15111 # How to hardcode a shared library path into an executable.
15112 hardcode_action=$hardcode_action_GCJ
15114 # Whether we should hardcode library paths into libraries.
15115 hardcode_into_libs=$hardcode_into_libs
15117 # Flag to hardcode \$libdir into a binary during linking.
15118 # This must work even if \$libdir does not exist.
15119 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
15121 # If ld is used when linking, flag to hardcode \$libdir into
15122 # a binary during linking. This must work even if \$libdir does
15123 # not exist.
15124 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
15126 # Whether we need a single -rpath flag with a separated argument.
15127 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
15129 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15130 # resulting binary.
15131 hardcode_direct=$hardcode_direct_GCJ
15133 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15134 # resulting binary.
15135 hardcode_minus_L=$hardcode_minus_L_GCJ
15137 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15138 # the resulting binary.
15139 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
15141 # Set to yes if building a shared library automatically hardcodes DIR into the library
15142 # and all subsequent libraries and executables linked against it.
15143 hardcode_automatic=$hardcode_automatic_GCJ
15145 # Variables whose values should be saved in libtool wrapper scripts and
15146 # restored at relink time.
15147 variables_saved_for_relink="$variables_saved_for_relink"
15149 # Whether libtool must link a program against all its dependency libraries.
15150 link_all_deplibs=$link_all_deplibs_GCJ
15152 # Compile-time system search path for libraries
15153 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15155 # Run-time system search path for libraries
15156 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15158 # Fix the shell variable \$srcfile for the compiler.
15159 fix_srcfile_path="$fix_srcfile_path_GCJ"
15161 # Set to yes if exported symbols are required.
15162 always_export_symbols=$always_export_symbols_GCJ
15164 # The commands to list exported symbols.
15165 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
15167 # The commands to extract the exported symbol list from a shared archive.
15168 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15170 # Symbols that should not be listed in the preloaded symbols.
15171 exclude_expsyms=$lt_exclude_expsyms_GCJ
15173 # Symbols that must always be exported.
15174 include_expsyms=$lt_include_expsyms_GCJ
15176 # ### END LIBTOOL TAG CONFIG: $tagname
15178 __EOF__
15181 else
15182   # If there is no Makefile yet, we rely on a make rule to execute
15183   # `config.status --recheck' to rerun these tests and create the
15184   # libtool script then.
15185   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15186   if test -f "$ltmain_in"; then
15187     test -f Makefile && make "$ltmain"
15188   fi
15192 ac_ext=c
15193 ac_cpp='$CPP $CPPFLAGS'
15194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15198 CC="$lt_save_CC"
15200         else
15201           tagname=""
15202         fi
15203         ;;
15205       RC)
15209 # Source file extension for RC test sources.
15210 ac_ext=rc
15212 # Object file extension for compiled RC test sources.
15213 objext=o
15214 objext_RC=$objext
15216 # Code to be used in simple compile tests
15217 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
15219 # Code to be used in simple link tests
15220 lt_simple_link_test_code="$lt_simple_compile_test_code"
15222 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15224 # If no C compiler was specified, use CC.
15225 LTCC=${LTCC-"$CC"}
15227 # If no C compiler flags were specified, use CFLAGS.
15228 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15230 # Allow CC to be a program name with arguments.
15231 compiler=$CC
15234 # save warnings/boilerplate of simple test code
15235 ac_outfile=conftest.$ac_objext
15236 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15237 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15238 _lt_compiler_boilerplate=`cat conftest.err`
15239 $rm conftest*
15241 ac_outfile=conftest.$ac_objext
15242 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15243 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15244 _lt_linker_boilerplate=`cat conftest.err`
15245 $rm conftest*
15248 # Allow CC to be a program name with arguments.
15249 lt_save_CC="$CC"
15250 CC=${RC-"windres"}
15251 compiler=$CC
15252 compiler_RC=$CC
15253 for cc_temp in $compiler""; do
15254   case $cc_temp in
15255     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15256     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15257     \-*) ;;
15258     *) break;;
15259   esac
15260 done
15261 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15263 lt_cv_prog_compiler_c_o_RC=yes
15265 # The else clause should only fire when bootstrapping the
15266 # libtool distribution, otherwise you forgot to ship ltmain.sh
15267 # with your package, and you will get complaints that there are
15268 # no rules to generate ltmain.sh.
15269 if test -f "$ltmain"; then
15270   # See if we are running on zsh, and set the options which allow our commands through
15271   # without removal of \ escapes.
15272   if test -n "${ZSH_VERSION+set}" ; then
15273     setopt NO_GLOB_SUBST
15274   fi
15275   # Now quote all the things that may contain metacharacters while being
15276   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15277   # variables and quote the copies for generation of the libtool script.
15278   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15279     SED SHELL STRIP \
15280     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15281     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15282     deplibs_check_method reload_flag reload_cmds need_locks \
15283     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15284     lt_cv_sys_global_symbol_to_c_name_address \
15285     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15286     old_postinstall_cmds old_postuninstall_cmds \
15287     compiler_RC \
15288     CC_RC \
15289     LD_RC \
15290     lt_prog_compiler_wl_RC \
15291     lt_prog_compiler_pic_RC \
15292     lt_prog_compiler_static_RC \
15293     lt_prog_compiler_no_builtin_flag_RC \
15294     export_dynamic_flag_spec_RC \
15295     thread_safe_flag_spec_RC \
15296     whole_archive_flag_spec_RC \
15297     enable_shared_with_static_runtimes_RC \
15298     old_archive_cmds_RC \
15299     old_archive_from_new_cmds_RC \
15300     predep_objects_RC \
15301     postdep_objects_RC \
15302     predeps_RC \
15303     postdeps_RC \
15304     compiler_lib_search_path_RC \
15305     archive_cmds_RC \
15306     archive_expsym_cmds_RC \
15307     postinstall_cmds_RC \
15308     postuninstall_cmds_RC \
15309     old_archive_from_expsyms_cmds_RC \
15310     allow_undefined_flag_RC \
15311     no_undefined_flag_RC \
15312     export_symbols_cmds_RC \
15313     hardcode_libdir_flag_spec_RC \
15314     hardcode_libdir_flag_spec_ld_RC \
15315     hardcode_libdir_separator_RC \
15316     hardcode_automatic_RC \
15317     module_cmds_RC \
15318     module_expsym_cmds_RC \
15319     lt_cv_prog_compiler_c_o_RC \
15320     exclude_expsyms_RC \
15321     include_expsyms_RC; do
15323     case $var in
15324     old_archive_cmds_RC | \
15325     old_archive_from_new_cmds_RC | \
15326     archive_cmds_RC | \
15327     archive_expsym_cmds_RC | \
15328     module_cmds_RC | \
15329     module_expsym_cmds_RC | \
15330     old_archive_from_expsyms_cmds_RC | \
15331     export_symbols_cmds_RC | \
15332     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15333     postinstall_cmds | postuninstall_cmds | \
15334     old_postinstall_cmds | old_postuninstall_cmds | \
15335     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15336       # Double-quote double-evaled strings.
15337       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15338       ;;
15339     *)
15340       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15341       ;;
15342     esac
15343   done
15345   case $lt_echo in
15346   *'\$0 --fallback-echo"')
15347     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15348     ;;
15349   esac
15351 cfgfile="$ofile"
15353   cat <<__EOF__ >> "$cfgfile"
15354 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15356 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15358 # Shell to use when invoking shell scripts.
15359 SHELL=$lt_SHELL
15361 # Whether or not to build shared libraries.
15362 build_libtool_libs=$enable_shared
15364 # Whether or not to build static libraries.
15365 build_old_libs=$enable_static
15367 # Whether or not to add -lc for building shared libraries.
15368 build_libtool_need_lc=$archive_cmds_need_lc_RC
15370 # Whether or not to disallow shared libs when runtime libs are static
15371 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
15373 # Whether or not to optimize for fast installation.
15374 fast_install=$enable_fast_install
15376 # The host system.
15377 host_alias=$host_alias
15378 host=$host
15379 host_os=$host_os
15381 # The build system.
15382 build_alias=$build_alias
15383 build=$build
15384 build_os=$build_os
15386 # An echo program that does not interpret backslashes.
15387 echo=$lt_echo
15389 # The archiver.
15390 AR=$lt_AR
15391 AR_FLAGS=$lt_AR_FLAGS
15393 # A C compiler.
15394 LTCC=$lt_LTCC
15396 # LTCC compiler flags.
15397 LTCFLAGS=$lt_LTCFLAGS
15399 # A language-specific compiler.
15400 CC=$lt_compiler_RC
15402 # Is the compiler the GNU C compiler?
15403 with_gcc=$GCC_RC
15405 # An ERE matcher.
15406 EGREP=$lt_EGREP
15408 # The linker used to build libraries.
15409 LD=$lt_LD_RC
15411 # Whether we need hard or soft links.
15412 LN_S=$lt_LN_S
15414 # A BSD-compatible nm program.
15415 NM=$lt_NM
15417 # A symbol stripping program
15418 STRIP=$lt_STRIP
15420 # Used to examine libraries when file_magic_cmd begins "file"
15421 MAGIC_CMD=$MAGIC_CMD
15423 # Used on cygwin: DLL creation program.
15424 DLLTOOL="$DLLTOOL"
15426 # Used on cygwin: object dumper.
15427 OBJDUMP="$OBJDUMP"
15429 # Used on cygwin: assembler.
15430 AS="$AS"
15432 # The name of the directory that contains temporary libtool files.
15433 objdir=$objdir
15435 # How to create reloadable object files.
15436 reload_flag=$lt_reload_flag
15437 reload_cmds=$lt_reload_cmds
15439 # How to pass a linker flag through the compiler.
15440 wl=$lt_lt_prog_compiler_wl_RC
15442 # Object file suffix (normally "o").
15443 objext="$ac_objext"
15445 # Old archive suffix (normally "a").
15446 libext="$libext"
15448 # Shared library suffix (normally ".so").
15449 shrext_cmds='$shrext_cmds'
15451 # Executable file suffix (normally "").
15452 exeext="$exeext"
15454 # Additional compiler flags for building library objects.
15455 pic_flag=$lt_lt_prog_compiler_pic_RC
15456 pic_mode=$pic_mode
15458 # What is the maximum length of a command?
15459 max_cmd_len=$lt_cv_sys_max_cmd_len
15461 # Does compiler simultaneously support -c and -o options?
15462 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
15464 # Must we lock files when doing compilation?
15465 need_locks=$lt_need_locks
15467 # Do we need the lib prefix for modules?
15468 need_lib_prefix=$need_lib_prefix
15470 # Do we need a version for libraries?
15471 need_version=$need_version
15473 # Whether dlopen is supported.
15474 dlopen_support=$enable_dlopen
15476 # Whether dlopen of programs is supported.
15477 dlopen_self=$enable_dlopen_self
15479 # Whether dlopen of statically linked programs is supported.
15480 dlopen_self_static=$enable_dlopen_self_static
15482 # Compiler flag to prevent dynamic linking.
15483 link_static_flag=$lt_lt_prog_compiler_static_RC
15485 # Compiler flag to turn off builtin functions.
15486 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
15488 # Compiler flag to allow reflexive dlopens.
15489 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
15491 # Compiler flag to generate shared objects directly from archives.
15492 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
15494 # Compiler flag to generate thread-safe objects.
15495 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
15497 # Library versioning type.
15498 version_type=$version_type
15500 # Format of library name prefix.
15501 libname_spec=$lt_libname_spec
15503 # List of archive names.  First name is the real one, the rest are links.
15504 # The last name is the one that the linker finds with -lNAME.
15505 library_names_spec=$lt_library_names_spec
15507 # The coded name of the library, if different from the real name.
15508 soname_spec=$lt_soname_spec
15510 # Commands used to build and install an old-style archive.
15511 RANLIB=$lt_RANLIB
15512 old_archive_cmds=$lt_old_archive_cmds_RC
15513 old_postinstall_cmds=$lt_old_postinstall_cmds
15514 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15516 # Create an old-style archive from a shared archive.
15517 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
15519 # Create a temporary old-style archive to link instead of a shared archive.
15520 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
15522 # Commands used to build and install a shared archive.
15523 archive_cmds=$lt_archive_cmds_RC
15524 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
15525 postinstall_cmds=$lt_postinstall_cmds
15526 postuninstall_cmds=$lt_postuninstall_cmds
15528 # Commands used to build a loadable module (assumed same as above if empty)
15529 module_cmds=$lt_module_cmds_RC
15530 module_expsym_cmds=$lt_module_expsym_cmds_RC
15532 # Commands to strip libraries.
15533 old_striplib=$lt_old_striplib
15534 striplib=$lt_striplib
15536 # Dependencies to place before the objects being linked to create a
15537 # shared library.
15538 predep_objects=$lt_predep_objects_RC
15540 # Dependencies to place after the objects being linked to create a
15541 # shared library.
15542 postdep_objects=$lt_postdep_objects_RC
15544 # Dependencies to place before the objects being linked to create a
15545 # shared library.
15546 predeps=$lt_predeps_RC
15548 # Dependencies to place after the objects being linked to create a
15549 # shared library.
15550 postdeps=$lt_postdeps_RC
15552 # The library search path used internally by the compiler when linking
15553 # a shared library.
15554 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
15556 # Method to check whether dependent libraries are shared objects.
15557 deplibs_check_method=$lt_deplibs_check_method
15559 # Command to use when deplibs_check_method == file_magic.
15560 file_magic_cmd=$lt_file_magic_cmd
15562 # Flag that allows shared libraries with undefined symbols to be built.
15563 allow_undefined_flag=$lt_allow_undefined_flag_RC
15565 # Flag that forces no undefined symbols.
15566 no_undefined_flag=$lt_no_undefined_flag_RC
15568 # Commands used to finish a libtool library installation in a directory.
15569 finish_cmds=$lt_finish_cmds
15571 # Same as above, but a single script fragment to be evaled but not shown.
15572 finish_eval=$lt_finish_eval
15574 # Take the output of nm and produce a listing of raw symbols and C names.
15575 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15577 # Transform the output of nm in a proper C declaration
15578 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15580 # Transform the output of nm in a C name address pair
15581 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15583 # This is the shared library runtime path variable.
15584 runpath_var=$runpath_var
15586 # This is the shared library path variable.
15587 shlibpath_var=$shlibpath_var
15589 # Is shlibpath searched before the hard-coded library search path?
15590 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15592 # How to hardcode a shared library path into an executable.
15593 hardcode_action=$hardcode_action_RC
15595 # Whether we should hardcode library paths into libraries.
15596 hardcode_into_libs=$hardcode_into_libs
15598 # Flag to hardcode \$libdir into a binary during linking.
15599 # This must work even if \$libdir does not exist.
15600 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
15602 # If ld is used when linking, flag to hardcode \$libdir into
15603 # a binary during linking. This must work even if \$libdir does
15604 # not exist.
15605 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
15607 # Whether we need a single -rpath flag with a separated argument.
15608 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
15610 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15611 # resulting binary.
15612 hardcode_direct=$hardcode_direct_RC
15614 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15615 # resulting binary.
15616 hardcode_minus_L=$hardcode_minus_L_RC
15618 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15619 # the resulting binary.
15620 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
15622 # Set to yes if building a shared library automatically hardcodes DIR into the library
15623 # and all subsequent libraries and executables linked against it.
15624 hardcode_automatic=$hardcode_automatic_RC
15626 # Variables whose values should be saved in libtool wrapper scripts and
15627 # restored at relink time.
15628 variables_saved_for_relink="$variables_saved_for_relink"
15630 # Whether libtool must link a program against all its dependency libraries.
15631 link_all_deplibs=$link_all_deplibs_RC
15633 # Compile-time system search path for libraries
15634 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15636 # Run-time system search path for libraries
15637 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15639 # Fix the shell variable \$srcfile for the compiler.
15640 fix_srcfile_path="$fix_srcfile_path_RC"
15642 # Set to yes if exported symbols are required.
15643 always_export_symbols=$always_export_symbols_RC
15645 # The commands to list exported symbols.
15646 export_symbols_cmds=$lt_export_symbols_cmds_RC
15648 # The commands to extract the exported symbol list from a shared archive.
15649 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15651 # Symbols that should not be listed in the preloaded symbols.
15652 exclude_expsyms=$lt_exclude_expsyms_RC
15654 # Symbols that must always be exported.
15655 include_expsyms=$lt_include_expsyms_RC
15657 # ### END LIBTOOL TAG CONFIG: $tagname
15659 __EOF__
15662 else
15663   # If there is no Makefile yet, we rely on a make rule to execute
15664   # `config.status --recheck' to rerun these tests and create the
15665   # libtool script then.
15666   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15667   if test -f "$ltmain_in"; then
15668     test -f Makefile && make "$ltmain"
15669   fi
15673 ac_ext=c
15674 ac_cpp='$CPP $CPPFLAGS'
15675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15679 CC="$lt_save_CC"
15681         ;;
15683       *)
15684         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
15685 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
15686    { (exit 1); exit 1; }; }
15687         ;;
15688       esac
15690       # Append the new tag name to the list of available tags.
15691       if test -n "$tagname" ; then
15692       available_tags="$available_tags $tagname"
15693     fi
15694     fi
15695   done
15696   IFS="$lt_save_ifs"
15698   # Now substitute the updated list of available tags.
15699   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
15700     mv "${ofile}T" "$ofile"
15701     chmod +x "$ofile"
15702   else
15703     rm -f "${ofile}T"
15704     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
15705 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
15706    { (exit 1); exit 1; }; }
15707   fi
15712 # This can be used to rebuild libtool when needed
15713 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
15715 # Always use our own libtool.
15716 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15718 # Prevent multiple expansion
15735 # Checks for programs.
15736 ac_ext=c
15737 ac_cpp='$CPP $CPPFLAGS'
15738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15741 if test -n "$ac_tool_prefix"; then
15742   for ac_prog in gcc
15743   do
15744     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15745 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15746 echo "$as_me:$LINENO: checking for $ac_word" >&5
15747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15748 if test "${ac_cv_prog_CC+set}" = set; then
15749   echo $ECHO_N "(cached) $ECHO_C" >&6
15750 else
15751   if test -n "$CC"; then
15752   ac_cv_prog_CC="$CC" # Let the user override the test.
15753 else
15754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15755 for as_dir in $PATH
15757   IFS=$as_save_IFS
15758   test -z "$as_dir" && as_dir=.
15759   for ac_exec_ext in '' $ac_executable_extensions; do
15760   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15761     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
15762     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15763     break 2
15764   fi
15765 done
15766 done
15770 CC=$ac_cv_prog_CC
15771 if test -n "$CC"; then
15772   echo "$as_me:$LINENO: result: $CC" >&5
15773 echo "${ECHO_T}$CC" >&6
15774 else
15775   echo "$as_me:$LINENO: result: no" >&5
15776 echo "${ECHO_T}no" >&6
15779     test -n "$CC" && break
15780   done
15782 if test -z "$CC"; then
15783   ac_ct_CC=$CC
15784   for ac_prog in gcc
15786   # Extract the first word of "$ac_prog", so it can be a program name with args.
15787 set dummy $ac_prog; ac_word=$2
15788 echo "$as_me:$LINENO: checking for $ac_word" >&5
15789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15790 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
15791   echo $ECHO_N "(cached) $ECHO_C" >&6
15792 else
15793   if test -n "$ac_ct_CC"; then
15794   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
15795 else
15796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15797 for as_dir in $PATH
15799   IFS=$as_save_IFS
15800   test -z "$as_dir" && as_dir=.
15801   for ac_exec_ext in '' $ac_executable_extensions; do
15802   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15803     ac_cv_prog_ac_ct_CC="$ac_prog"
15804     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15805     break 2
15806   fi
15807 done
15808 done
15812 ac_ct_CC=$ac_cv_prog_ac_ct_CC
15813 if test -n "$ac_ct_CC"; then
15814   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
15815 echo "${ECHO_T}$ac_ct_CC" >&6
15816 else
15817   echo "$as_me:$LINENO: result: no" >&5
15818 echo "${ECHO_T}no" >&6
15821   test -n "$ac_ct_CC" && break
15822 done
15824   CC=$ac_ct_CC
15828 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
15829 See \`config.log' for more details." >&5
15830 echo "$as_me: error: no acceptable C compiler found in \$PATH
15831 See \`config.log' for more details." >&2;}
15832    { (exit 1); exit 1; }; }
15834 # Provide some information about the compiler.
15835 echo "$as_me:$LINENO:" \
15836      "checking for C compiler version" >&5
15837 ac_compiler=`set X $ac_compile; echo $2`
15838 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
15839   (eval $ac_compiler --version </dev/null >&5) 2>&5
15840   ac_status=$?
15841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15842   (exit $ac_status); }
15843 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
15844   (eval $ac_compiler -v </dev/null >&5) 2>&5
15845   ac_status=$?
15846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15847   (exit $ac_status); }
15848 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
15849   (eval $ac_compiler -V </dev/null >&5) 2>&5
15850   ac_status=$?
15851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15852   (exit $ac_status); }
15854 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
15855 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
15856 if test "${ac_cv_c_compiler_gnu+set}" = set; then
15857   echo $ECHO_N "(cached) $ECHO_C" >&6
15858 else
15859   cat >conftest.$ac_ext <<_ACEOF
15860 /* confdefs.h.  */
15861 _ACEOF
15862 cat confdefs.h >>conftest.$ac_ext
15863 cat >>conftest.$ac_ext <<_ACEOF
15864 /* end confdefs.h.  */
15866 int
15867 main ()
15869 #ifndef __GNUC__
15870        choke me
15871 #endif
15873   ;
15874   return 0;
15876 _ACEOF
15877 rm -f conftest.$ac_objext
15878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15879   (eval $ac_compile) 2>conftest.er1
15880   ac_status=$?
15881   grep -v '^ *+' conftest.er1 >conftest.err
15882   rm -f conftest.er1
15883   cat conftest.err >&5
15884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15885   (exit $ac_status); } &&
15886          { ac_try='test -z "$ac_c_werror_flag"
15887                          || test ! -s conftest.err'
15888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15889   (eval $ac_try) 2>&5
15890   ac_status=$?
15891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15892   (exit $ac_status); }; } &&
15893          { ac_try='test -s conftest.$ac_objext'
15894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15895   (eval $ac_try) 2>&5
15896   ac_status=$?
15897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898   (exit $ac_status); }; }; then
15899   ac_compiler_gnu=yes
15900 else
15901   echo "$as_me: failed program was:" >&5
15902 sed 's/^/| /' conftest.$ac_ext >&5
15904 ac_compiler_gnu=no
15906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15907 ac_cv_c_compiler_gnu=$ac_compiler_gnu
15910 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
15911 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
15912 GCC=`test $ac_compiler_gnu = yes && echo yes`
15913 ac_test_CFLAGS=${CFLAGS+set}
15914 ac_save_CFLAGS=$CFLAGS
15915 CFLAGS="-g"
15916 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
15917 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
15918 if test "${ac_cv_prog_cc_g+set}" = set; then
15919   echo $ECHO_N "(cached) $ECHO_C" >&6
15920 else
15921   cat >conftest.$ac_ext <<_ACEOF
15922 /* confdefs.h.  */
15923 _ACEOF
15924 cat confdefs.h >>conftest.$ac_ext
15925 cat >>conftest.$ac_ext <<_ACEOF
15926 /* end confdefs.h.  */
15928 int
15929 main ()
15932   ;
15933   return 0;
15935 _ACEOF
15936 rm -f conftest.$ac_objext
15937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15938   (eval $ac_compile) 2>conftest.er1
15939   ac_status=$?
15940   grep -v '^ *+' conftest.er1 >conftest.err
15941   rm -f conftest.er1
15942   cat conftest.err >&5
15943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15944   (exit $ac_status); } &&
15945          { ac_try='test -z "$ac_c_werror_flag"
15946                          || test ! -s conftest.err'
15947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15948   (eval $ac_try) 2>&5
15949   ac_status=$?
15950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15951   (exit $ac_status); }; } &&
15952          { ac_try='test -s conftest.$ac_objext'
15953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15954   (eval $ac_try) 2>&5
15955   ac_status=$?
15956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957   (exit $ac_status); }; }; then
15958   ac_cv_prog_cc_g=yes
15959 else
15960   echo "$as_me: failed program was:" >&5
15961 sed 's/^/| /' conftest.$ac_ext >&5
15963 ac_cv_prog_cc_g=no
15965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15967 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
15968 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
15969 if test "$ac_test_CFLAGS" = set; then
15970   CFLAGS=$ac_save_CFLAGS
15971 elif test $ac_cv_prog_cc_g = yes; then
15972   if test "$GCC" = yes; then
15973     CFLAGS="-g -O2"
15974   else
15975     CFLAGS="-g"
15976   fi
15977 else
15978   if test "$GCC" = yes; then
15979     CFLAGS="-O2"
15980   else
15981     CFLAGS=
15982   fi
15984 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
15985 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
15986 if test "${ac_cv_prog_cc_stdc+set}" = set; then
15987   echo $ECHO_N "(cached) $ECHO_C" >&6
15988 else
15989   ac_cv_prog_cc_stdc=no
15990 ac_save_CC=$CC
15991 cat >conftest.$ac_ext <<_ACEOF
15992 /* confdefs.h.  */
15993 _ACEOF
15994 cat confdefs.h >>conftest.$ac_ext
15995 cat >>conftest.$ac_ext <<_ACEOF
15996 /* end confdefs.h.  */
15997 #include <stdarg.h>
15998 #include <stdio.h>
15999 #include <sys/types.h>
16000 #include <sys/stat.h>
16001 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
16002 struct buf { int x; };
16003 FILE * (*rcsopen) (struct buf *, struct stat *, int);
16004 static char *e (p, i)
16005      char **p;
16006      int i;
16008   return p[i];
16010 static char *f (char * (*g) (char **, int), char **p, ...)
16012   char *s;
16013   va_list v;
16014   va_start (v,p);
16015   s = g (p, va_arg (v,int));
16016   va_end (v);
16017   return s;
16020 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
16021    function prototypes and stuff, but not '\xHH' hex character constants.
16022    These don't provoke an error unfortunately, instead are silently treated
16023    as 'x'.  The following induces an error, until -std1 is added to get
16024    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
16025    array size at least.  It's necessary to write '\x00'==0 to get something
16026    that's true only with -std1.  */
16027 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
16029 int test (int i, double x);
16030 struct s1 {int (*f) (int a);};
16031 struct s2 {int (*f) (double a);};
16032 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
16033 int argc;
16034 char **argv;
16035 int
16036 main ()
16038 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
16039   ;
16040   return 0;
16042 _ACEOF
16043 # Don't try gcc -ansi; that turns off useful extensions and
16044 # breaks some systems' header files.
16045 # AIX                   -qlanglvl=ansi
16046 # Ultrix and OSF/1      -std1
16047 # HP-UX 10.20 and later -Ae
16048 # HP-UX older versions  -Aa -D_HPUX_SOURCE
16049 # SVR4                  -Xc -D__EXTENSIONS__
16050 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
16052   CC="$ac_save_CC $ac_arg"
16053   rm -f conftest.$ac_objext
16054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16055   (eval $ac_compile) 2>conftest.er1
16056   ac_status=$?
16057   grep -v '^ *+' conftest.er1 >conftest.err
16058   rm -f conftest.er1
16059   cat conftest.err >&5
16060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16061   (exit $ac_status); } &&
16062          { ac_try='test -z "$ac_c_werror_flag"
16063                          || test ! -s conftest.err'
16064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16065   (eval $ac_try) 2>&5
16066   ac_status=$?
16067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16068   (exit $ac_status); }; } &&
16069          { ac_try='test -s conftest.$ac_objext'
16070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16071   (eval $ac_try) 2>&5
16072   ac_status=$?
16073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16074   (exit $ac_status); }; }; then
16075   ac_cv_prog_cc_stdc=$ac_arg
16076 break
16077 else
16078   echo "$as_me: failed program was:" >&5
16079 sed 's/^/| /' conftest.$ac_ext >&5
16082 rm -f conftest.err conftest.$ac_objext
16083 done
16084 rm -f conftest.$ac_ext conftest.$ac_objext
16085 CC=$ac_save_CC
16089 case "x$ac_cv_prog_cc_stdc" in
16090   x|xno)
16091     echo "$as_me:$LINENO: result: none needed" >&5
16092 echo "${ECHO_T}none needed" >&6 ;;
16093   *)
16094     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
16095 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
16096     CC="$CC $ac_cv_prog_cc_stdc" ;;
16097 esac
16099 # Some people use a C++ compiler to compile C.  Since we use `exit',
16100 # in C++ we need to declare it.  In case someone uses the same compiler
16101 # for both compiling C and C++ we need to have the C++ compiler decide
16102 # the declaration of exit, since it's the most demanding environment.
16103 cat >conftest.$ac_ext <<_ACEOF
16104 #ifndef __cplusplus
16105   choke me
16106 #endif
16107 _ACEOF
16108 rm -f conftest.$ac_objext
16109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16110   (eval $ac_compile) 2>conftest.er1
16111   ac_status=$?
16112   grep -v '^ *+' conftest.er1 >conftest.err
16113   rm -f conftest.er1
16114   cat conftest.err >&5
16115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16116   (exit $ac_status); } &&
16117          { ac_try='test -z "$ac_c_werror_flag"
16118                          || test ! -s conftest.err'
16119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16120   (eval $ac_try) 2>&5
16121   ac_status=$?
16122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16123   (exit $ac_status); }; } &&
16124          { ac_try='test -s conftest.$ac_objext'
16125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16126   (eval $ac_try) 2>&5
16127   ac_status=$?
16128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16129   (exit $ac_status); }; }; then
16130   for ac_declaration in \
16131    '' \
16132    'extern "C" void std::exit (int) throw (); using std::exit;' \
16133    'extern "C" void std::exit (int); using std::exit;' \
16134    'extern "C" void exit (int) throw ();' \
16135    'extern "C" void exit (int);' \
16136    'void exit (int);'
16138   cat >conftest.$ac_ext <<_ACEOF
16139 /* confdefs.h.  */
16140 _ACEOF
16141 cat confdefs.h >>conftest.$ac_ext
16142 cat >>conftest.$ac_ext <<_ACEOF
16143 /* end confdefs.h.  */
16144 $ac_declaration
16145 #include <stdlib.h>
16146 int
16147 main ()
16149 exit (42);
16150   ;
16151   return 0;
16153 _ACEOF
16154 rm -f conftest.$ac_objext
16155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16156   (eval $ac_compile) 2>conftest.er1
16157   ac_status=$?
16158   grep -v '^ *+' conftest.er1 >conftest.err
16159   rm -f conftest.er1
16160   cat conftest.err >&5
16161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16162   (exit $ac_status); } &&
16163          { ac_try='test -z "$ac_c_werror_flag"
16164                          || test ! -s conftest.err'
16165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16166   (eval $ac_try) 2>&5
16167   ac_status=$?
16168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16169   (exit $ac_status); }; } &&
16170          { ac_try='test -s conftest.$ac_objext'
16171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16172   (eval $ac_try) 2>&5
16173   ac_status=$?
16174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16175   (exit $ac_status); }; }; then
16176   :
16177 else
16178   echo "$as_me: failed program was:" >&5
16179 sed 's/^/| /' conftest.$ac_ext >&5
16181 continue
16183 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16184   cat >conftest.$ac_ext <<_ACEOF
16185 /* confdefs.h.  */
16186 _ACEOF
16187 cat confdefs.h >>conftest.$ac_ext
16188 cat >>conftest.$ac_ext <<_ACEOF
16189 /* end confdefs.h.  */
16190 $ac_declaration
16191 int
16192 main ()
16194 exit (42);
16195   ;
16196   return 0;
16198 _ACEOF
16199 rm -f conftest.$ac_objext
16200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16201   (eval $ac_compile) 2>conftest.er1
16202   ac_status=$?
16203   grep -v '^ *+' conftest.er1 >conftest.err
16204   rm -f conftest.er1
16205   cat conftest.err >&5
16206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16207   (exit $ac_status); } &&
16208          { ac_try='test -z "$ac_c_werror_flag"
16209                          || test ! -s conftest.err'
16210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16211   (eval $ac_try) 2>&5
16212   ac_status=$?
16213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16214   (exit $ac_status); }; } &&
16215          { ac_try='test -s conftest.$ac_objext'
16216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16217   (eval $ac_try) 2>&5
16218   ac_status=$?
16219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16220   (exit $ac_status); }; }; then
16221   break
16222 else
16223   echo "$as_me: failed program was:" >&5
16224 sed 's/^/| /' conftest.$ac_ext >&5
16227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16228 done
16229 rm -f conftest*
16230 if test -n "$ac_declaration"; then
16231   echo '#ifdef __cplusplus' >>confdefs.h
16232   echo $ac_declaration      >>confdefs.h
16233   echo '#endif'             >>confdefs.h
16236 else
16237   echo "$as_me: failed program was:" >&5
16238 sed 's/^/| /' conftest.$ac_ext >&5
16241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16242 ac_ext=c
16243 ac_cpp='$CPP $CPPFLAGS'
16244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16248 depcc="$CC"   am_compiler_list=
16250 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
16251 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
16252 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
16253   echo $ECHO_N "(cached) $ECHO_C" >&6
16254 else
16255   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16256   # We make a subdir and do the tests there.  Otherwise we can end up
16257   # making bogus files that we don't know about and never remove.  For
16258   # instance it was reported that on HP-UX the gcc test will end up
16259   # making a dummy file named `D' -- because `-MD' means `put the output
16260   # in D'.
16261   mkdir conftest.dir
16262   # Copy depcomp to subdir because otherwise we won't find it if we're
16263   # using a relative directory.
16264   cp "$am_depcomp" conftest.dir
16265   cd conftest.dir
16266   # We will build objects and dependencies in a subdirectory because
16267   # it helps to detect inapplicable dependency modes.  For instance
16268   # both Tru64's cc and ICC support -MD to output dependencies as a
16269   # side effect of compilation, but ICC will put the dependencies in
16270   # the current directory while Tru64 will put them in the object
16271   # directory.
16272   mkdir sub
16274   am_cv_CC_dependencies_compiler_type=none
16275   if test "$am_compiler_list" = ""; then
16276      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16277   fi
16278   for depmode in $am_compiler_list; do
16279     # Setup a source with many dependencies, because some compilers
16280     # like to wrap large dependency lists on column 80 (with \), and
16281     # we should not choose a depcomp mode which is confused by this.
16282     #
16283     # We need to recreate these files for each test, as the compiler may
16284     # overwrite some of them when testing with obscure command lines.
16285     # This happens at least with the AIX C compiler.
16286     : > sub/conftest.c
16287     for i in 1 2 3 4 5 6; do
16288       echo '#include "conftst'$i'.h"' >> sub/conftest.c
16289       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
16290       # Solaris 8's {/usr,}/bin/sh.
16291       touch sub/conftst$i.h
16292     done
16293     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16295     case $depmode in
16296     nosideeffect)
16297       # after this tag, mechanisms are not by side-effect, so they'll
16298       # only be used when explicitly requested
16299       if test "x$enable_dependency_tracking" = xyes; then
16300         continue
16301       else
16302         break
16303       fi
16304       ;;
16305     none) break ;;
16306     esac
16307     # We check with `-c' and `-o' for the sake of the "dashmstdout"
16308     # mode.  It turns out that the SunPro C++ compiler does not properly
16309     # handle `-M -o', and we need to detect this.
16310     if depmode=$depmode \
16311        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
16312        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
16313        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
16314          >/dev/null 2>conftest.err &&
16315        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
16316        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
16317        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16318       # icc doesn't choke on unknown options, it will just issue warnings
16319       # or remarks (even with -Werror).  So we grep stderr for any message
16320       # that says an option was ignored or not supported.
16321       # When given -MP, icc 7.0 and 7.1 complain thusly:
16322       #   icc: Command line warning: ignoring option '-M'; no argument required
16323       # The diagnosis changed in icc 8.0:
16324       #   icc: Command line remark: option '-MP' not supported
16325       if (grep 'ignoring option' conftest.err ||
16326           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
16327         am_cv_CC_dependencies_compiler_type=$depmode
16328         break
16329       fi
16330     fi
16331   done
16333   cd ..
16334   rm -rf conftest.dir
16335 else
16336   am_cv_CC_dependencies_compiler_type=none
16340 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
16341 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
16342 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
16347   test "x$enable_dependency_tracking" != xno \
16348   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
16349   am__fastdepCC_TRUE=
16350   am__fastdepCC_FALSE='#'
16351 else
16352   am__fastdepCC_TRUE='#'
16353   am__fastdepCC_FALSE=
16357 # Find a good install program.  We prefer a C program (faster),
16358 # so one script is as good as another.  But avoid the broken or
16359 # incompatible versions:
16360 # SysV /etc/install, /usr/sbin/install
16361 # SunOS /usr/etc/install
16362 # IRIX /sbin/install
16363 # AIX /bin/install
16364 # AmigaOS /C/install, which installs bootblocks on floppy discs
16365 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
16366 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
16367 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
16368 # OS/2's system install, which has a completely different semantic
16369 # ./install, which can be erroneously created by make from ./install.sh.
16370 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
16371 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
16372 if test -z "$INSTALL"; then
16373 if test "${ac_cv_path_install+set}" = set; then
16374   echo $ECHO_N "(cached) $ECHO_C" >&6
16375 else
16376   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16377 for as_dir in $PATH
16379   IFS=$as_save_IFS
16380   test -z "$as_dir" && as_dir=.
16381   # Account for people who put trailing slashes in PATH elements.
16382 case $as_dir/ in
16383   ./ | .// | /cC/* | \
16384   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
16385   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
16386   /usr/ucb/* ) ;;
16387   *)
16388     # OSF1 and SCO ODT 3.0 have their own names for install.
16389     # Don't use installbsd from OSF since it installs stuff as root
16390     # by default.
16391     for ac_prog in ginstall scoinst install; do
16392       for ac_exec_ext in '' $ac_executable_extensions; do
16393         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
16394           if test $ac_prog = install &&
16395             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
16396             # AIX install.  It has an incompatible calling convention.
16397             :
16398           elif test $ac_prog = install &&
16399             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
16400             # program-specific install script used by HP pwplus--don't use.
16401             :
16402           else
16403             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
16404             break 3
16405           fi
16406         fi
16407       done
16408     done
16409     ;;
16410 esac
16411 done
16415   if test "${ac_cv_path_install+set}" = set; then
16416     INSTALL=$ac_cv_path_install
16417   else
16418     # As a last resort, use the slow shell script.  We don't cache a
16419     # path for INSTALL within a source directory, because that will
16420     # break other packages using the cache if that directory is
16421     # removed, or if the path is relative.
16422     INSTALL=$ac_install_sh
16423   fi
16425 echo "$as_me:$LINENO: result: $INSTALL" >&5
16426 echo "${ECHO_T}$INSTALL" >&6
16428 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
16429 # It thinks the first close brace ends the variable substitution.
16430 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
16432 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
16434 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
16437 # Checks for header files.
16438 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
16439 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
16440 if test "${ac_cv_header_stdc+set}" = set; then
16441   echo $ECHO_N "(cached) $ECHO_C" >&6
16442 else
16443   cat >conftest.$ac_ext <<_ACEOF
16444 /* confdefs.h.  */
16445 _ACEOF
16446 cat confdefs.h >>conftest.$ac_ext
16447 cat >>conftest.$ac_ext <<_ACEOF
16448 /* end confdefs.h.  */
16449 #include <stdlib.h>
16450 #include <stdarg.h>
16451 #include <string.h>
16452 #include <float.h>
16454 int
16455 main ()
16458   ;
16459   return 0;
16461 _ACEOF
16462 rm -f conftest.$ac_objext
16463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16464   (eval $ac_compile) 2>conftest.er1
16465   ac_status=$?
16466   grep -v '^ *+' conftest.er1 >conftest.err
16467   rm -f conftest.er1
16468   cat conftest.err >&5
16469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16470   (exit $ac_status); } &&
16471          { ac_try='test -z "$ac_c_werror_flag"
16472                          || test ! -s conftest.err'
16473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16474   (eval $ac_try) 2>&5
16475   ac_status=$?
16476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477   (exit $ac_status); }; } &&
16478          { ac_try='test -s conftest.$ac_objext'
16479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16480   (eval $ac_try) 2>&5
16481   ac_status=$?
16482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16483   (exit $ac_status); }; }; then
16484   ac_cv_header_stdc=yes
16485 else
16486   echo "$as_me: failed program was:" >&5
16487 sed 's/^/| /' conftest.$ac_ext >&5
16489 ac_cv_header_stdc=no
16491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16493 if test $ac_cv_header_stdc = yes; then
16494   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16495   cat >conftest.$ac_ext <<_ACEOF
16496 /* confdefs.h.  */
16497 _ACEOF
16498 cat confdefs.h >>conftest.$ac_ext
16499 cat >>conftest.$ac_ext <<_ACEOF
16500 /* end confdefs.h.  */
16501 #include <string.h>
16503 _ACEOF
16504 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16505   $EGREP "memchr" >/dev/null 2>&1; then
16506   :
16507 else
16508   ac_cv_header_stdc=no
16510 rm -f conftest*
16514 if test $ac_cv_header_stdc = yes; then
16515   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16516   cat >conftest.$ac_ext <<_ACEOF
16517 /* confdefs.h.  */
16518 _ACEOF
16519 cat confdefs.h >>conftest.$ac_ext
16520 cat >>conftest.$ac_ext <<_ACEOF
16521 /* end confdefs.h.  */
16522 #include <stdlib.h>
16524 _ACEOF
16525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16526   $EGREP "free" >/dev/null 2>&1; then
16527   :
16528 else
16529   ac_cv_header_stdc=no
16531 rm -f conftest*
16535 if test $ac_cv_header_stdc = yes; then
16536   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16537   if test "$cross_compiling" = yes; then
16538   :
16539 else
16540   cat >conftest.$ac_ext <<_ACEOF
16541 /* confdefs.h.  */
16542 _ACEOF
16543 cat confdefs.h >>conftest.$ac_ext
16544 cat >>conftest.$ac_ext <<_ACEOF
16545 /* end confdefs.h.  */
16546 #include <ctype.h>
16547 #if ((' ' & 0x0FF) == 0x020)
16548 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16549 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16550 #else
16551 # define ISLOWER(c) \
16552                    (('a' <= (c) && (c) <= 'i') \
16553                      || ('j' <= (c) && (c) <= 'r') \
16554                      || ('s' <= (c) && (c) <= 'z'))
16555 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16556 #endif
16558 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16559 int
16560 main ()
16562   int i;
16563   for (i = 0; i < 256; i++)
16564     if (XOR (islower (i), ISLOWER (i))
16565         || toupper (i) != TOUPPER (i))
16566       exit(2);
16567   exit (0);
16569 _ACEOF
16570 rm -f conftest$ac_exeext
16571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16572   (eval $ac_link) 2>&5
16573   ac_status=$?
16574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16575   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16577   (eval $ac_try) 2>&5
16578   ac_status=$?
16579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16580   (exit $ac_status); }; }; then
16581   :
16582 else
16583   echo "$as_me: program exited with status $ac_status" >&5
16584 echo "$as_me: failed program was:" >&5
16585 sed 's/^/| /' conftest.$ac_ext >&5
16587 ( exit $ac_status )
16588 ac_cv_header_stdc=no
16590 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16594 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
16595 echo "${ECHO_T}$ac_cv_header_stdc" >&6
16596 if test $ac_cv_header_stdc = yes; then
16598 cat >>confdefs.h <<\_ACEOF
16599 #define STDC_HEADERS 1
16600 _ACEOF
16611 for ac_header in fcntl.h stdlib.h string.h sys/param.h sys/socket.h sys/time.h unistd.h
16613 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16614 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16615   echo "$as_me:$LINENO: checking for $ac_header" >&5
16616 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16617 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16618   echo $ECHO_N "(cached) $ECHO_C" >&6
16620 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16621 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16622 else
16623   # Is the header compilable?
16624 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16625 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16626 cat >conftest.$ac_ext <<_ACEOF
16627 /* confdefs.h.  */
16628 _ACEOF
16629 cat confdefs.h >>conftest.$ac_ext
16630 cat >>conftest.$ac_ext <<_ACEOF
16631 /* end confdefs.h.  */
16632 $ac_includes_default
16633 #include <$ac_header>
16634 _ACEOF
16635 rm -f conftest.$ac_objext
16636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16637   (eval $ac_compile) 2>conftest.er1
16638   ac_status=$?
16639   grep -v '^ *+' conftest.er1 >conftest.err
16640   rm -f conftest.er1
16641   cat conftest.err >&5
16642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643   (exit $ac_status); } &&
16644          { ac_try='test -z "$ac_c_werror_flag"
16645                          || test ! -s conftest.err'
16646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16647   (eval $ac_try) 2>&5
16648   ac_status=$?
16649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16650   (exit $ac_status); }; } &&
16651          { ac_try='test -s conftest.$ac_objext'
16652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16653   (eval $ac_try) 2>&5
16654   ac_status=$?
16655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16656   (exit $ac_status); }; }; then
16657   ac_header_compiler=yes
16658 else
16659   echo "$as_me: failed program was:" >&5
16660 sed 's/^/| /' conftest.$ac_ext >&5
16662 ac_header_compiler=no
16664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16665 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16666 echo "${ECHO_T}$ac_header_compiler" >&6
16668 # Is the header present?
16669 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16670 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16671 cat >conftest.$ac_ext <<_ACEOF
16672 /* confdefs.h.  */
16673 _ACEOF
16674 cat confdefs.h >>conftest.$ac_ext
16675 cat >>conftest.$ac_ext <<_ACEOF
16676 /* end confdefs.h.  */
16677 #include <$ac_header>
16678 _ACEOF
16679 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16680   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16681   ac_status=$?
16682   grep -v '^ *+' conftest.er1 >conftest.err
16683   rm -f conftest.er1
16684   cat conftest.err >&5
16685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16686   (exit $ac_status); } >/dev/null; then
16687   if test -s conftest.err; then
16688     ac_cpp_err=$ac_c_preproc_warn_flag
16689     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16690   else
16691     ac_cpp_err=
16692   fi
16693 else
16694   ac_cpp_err=yes
16696 if test -z "$ac_cpp_err"; then
16697   ac_header_preproc=yes
16698 else
16699   echo "$as_me: failed program was:" >&5
16700 sed 's/^/| /' conftest.$ac_ext >&5
16702   ac_header_preproc=no
16704 rm -f conftest.err conftest.$ac_ext
16705 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16706 echo "${ECHO_T}$ac_header_preproc" >&6
16708 # So?  What about this header?
16709 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16710   yes:no: )
16711     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16712 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16713     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16714 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16715     ac_header_preproc=yes
16716     ;;
16717   no:yes:* )
16718     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16719 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16720     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16721 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16722     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16723 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16724     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16725 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16726     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16727 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16728     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16729 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16730     (
16731       cat <<\_ASBOX
16732 ## --------------------------------- ##
16733 ## Report this to the TI IPC lists.  ##
16734 ## --------------------------------- ##
16735 _ASBOX
16736     ) |
16737       sed "s/^/$as_me: WARNING:     /" >&2
16738     ;;
16739 esac
16740 echo "$as_me:$LINENO: checking for $ac_header" >&5
16741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16742 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16743   echo $ECHO_N "(cached) $ECHO_C" >&6
16744 else
16745   eval "$as_ac_Header=\$ac_header_preproc"
16747 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16748 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16751 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16752   cat >>confdefs.h <<_ACEOF
16753 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16754 _ACEOF
16758 done
16761 # Export CFLAGS and LDFLAGS to Makefile(s)
16765 # Add config variables/options and check them
16769 # Test platform variable for setting
16770 if test "x$PLATFORM" = "xomapl138"; then
16771   { echo "$as_me:$LINENO: PLATFORM is set to ${PLATFORM}" >&5
16772 echo "$as_me: PLATFORM is set to ${PLATFORM}" >&6;}
16773 else
16774   if test "x$PLATFORM" = "xomap4430"; then
16775   { echo "$as_me:$LINENO: PLATFORM is set to ${PLATFORM}" >&5
16776 echo "$as_me: PLATFORM is set to ${PLATFORM}" >&6;}
16777 else
16778   if test "x$PLATFORM" = "xtci6614"; then
16779   { echo "$as_me:$LINENO: PLATFORM is set to ${PLATFORM}" >&5
16780 echo "$as_me: PLATFORM is set to ${PLATFORM}" >&6;}
16781 else
16782   if test "x$PLATFORM" = "xtci6638"; then
16783   { echo "$as_me:$LINENO: PLATFORM is set to ${PLATFORM}" >&5
16784 echo "$as_me: PLATFORM is set to ${PLATFORM}" >&6;}
16785 else
16786   if test "x$PLATFORM" = "x"; then
16787   { echo "$as_me:$LINENO: PLATFORM is not set. All supported platforms will be built ...." >&5
16788 echo "$as_me: PLATFORM is not set. All supported platforms will be built ...." >&6;}
16789 else
16790   { { echo "$as_me:$LINENO: error: PLATFORM is set to \"${PLATFORM}\": run ./configure --help for available PLATFORM options" >&5
16791 echo "$as_me: error: PLATFORM is set to \"${PLATFORM}\": run ./configure --help for available PLATFORM options" >&2;}
16792    { (exit 1); exit 1; }; }
16804 # Export optional user variable to Makefile(s)
16808 # Define specific variables to be used in Makefile.am
16811 if test "x$PLATFORM" = "xomapl138"; then
16812   OMAPL138_TRUE=
16813   OMAPL138_FALSE='#'
16814 else
16815   OMAPL138_TRUE='#'
16816   OMAPL138_FALSE=
16821 if test "x$PLATFORM" = "xomap4430"; then
16822   OMAP4430_TRUE=
16823   OMAP4430_FALSE='#'
16824 else
16825   OMAP4430_TRUE='#'
16826   OMAP4430_FALSE=
16831 if test "x$PLATFORM" = "xtci6614"; then
16832   TCI6614_TRUE=
16833   TCI6614_FALSE='#'
16834 else
16835   TCI6614_TRUE='#'
16836   TCI6614_FALSE=
16841 if test "x$PLATFORM" = "xtci6638"; then
16842   TCI6638_TRUE=
16843   TCI6638_FALSE='#'
16844 else
16845   TCI6638_TRUE='#'
16846   TCI6638_FALSE=
16852 if test "x$CMEM_INSTALL_DIR" != "x"; then
16853   CMEM_TRUE=
16854   CMEM_FALSE='#'
16855 else
16856   CMEM_TRUE='#'
16857   CMEM_FALSE=
16861 # Generate Makefile(s)
16862           ac_config_files="$ac_config_files Makefile"
16864           ac_config_files="$ac_config_files linux/etc/Makefile"
16866           ac_config_files="$ac_config_files linux/src/utils/Makefile"
16868           ac_config_files="$ac_config_files linux/src/api/Makefile"
16870           ac_config_files="$ac_config_files linux/src/family/Makefile"
16872           ac_config_files="$ac_config_files linux/src/daemon/Makefile"
16874           ac_config_files="$ac_config_files linux/src/tests/Makefile"
16876 cat >confcache <<\_ACEOF
16877 # This file is a shell script that caches the results of configure
16878 # tests run on this system so they can be shared between configure
16879 # scripts and configure runs, see configure's option --config-cache.
16880 # It is not useful on other systems.  If it contains results you don't
16881 # want to keep, you may remove or edit it.
16883 # config.status only pays attention to the cache file if you give it
16884 # the --recheck option to rerun configure.
16886 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16887 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16888 # following values.
16890 _ACEOF
16892 # The following way of writing the cache mishandles newlines in values,
16893 # but we know of no workaround that is simple, portable, and efficient.
16894 # So, don't put newlines in cache variables' values.
16895 # Ultrix sh set writes to stderr and can't be redirected directly,
16896 # and sets the high bit in the cache file unless we assign to the vars.
16898   (set) 2>&1 |
16899     case `(ac_space=' '; set | grep ac_space) 2>&1` in
16900     *ac_space=\ *)
16901       # `set' does not quote correctly, so add quotes (double-quote
16902       # substitution turns \\\\ into \\, and sed turns \\ into \).
16903       sed -n \
16904         "s/'/'\\\\''/g;
16905           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16906       ;;
16907     *)
16908       # `set' quotes correctly as required by POSIX, so do not add quotes.
16909       sed -n \
16910         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16911       ;;
16912     esac;
16913 } |
16914   sed '
16915      t clear
16916      : clear
16917      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16918      t end
16919      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16920      : end' >>confcache
16921 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16922   if test -w $cache_file; then
16923     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16924     cat confcache >$cache_file
16925   else
16926     echo "not updating unwritable cache $cache_file"
16927   fi
16929 rm -f confcache
16931 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16932 # Let make expand exec_prefix.
16933 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16935 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16936 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16937 # trailing colons and then remove the whole line if VPATH becomes empty
16938 # (actually we leave an empty line to preserve line numbers).
16939 if test "x$srcdir" = x.; then
16940   ac_vpsub='/^[  ]*VPATH[        ]*=/{
16941 s/:*\$(srcdir):*/:/;
16942 s/:*\${srcdir}:*/:/;
16943 s/:*@srcdir@:*/:/;
16944 s/^\([^=]*=[     ]*\):*/\1/;
16945 s/:*$//;
16946 s/^[^=]*=[       ]*$//;
16950 # Transform confdefs.h into DEFS.
16951 # Protect against shell expansion while executing Makefile rules.
16952 # Protect against Makefile macro expansion.
16954 # If the first sed substitution is executed (which looks for macros that
16955 # take arguments), then we branch to the quote section.  Otherwise,
16956 # look for a macro that doesn't take arguments.
16957 cat >confdef2opt.sed <<\_ACEOF
16958 t clear
16959 : clear
16960 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
16961 t quote
16962 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
16963 t quote
16965 : quote
16966 s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
16967 s,\[,\\&,g
16968 s,\],\\&,g
16969 s,\$,$$,g
16971 _ACEOF
16972 # We use echo to avoid assuming a particular line-breaking character.
16973 # The extra dot is to prevent the shell from consuming trailing
16974 # line-breaks from the sub-command output.  A line-break within
16975 # single-quotes doesn't work because, if this script is created in a
16976 # platform that uses two characters for line-breaks (e.g., DOS), tr
16977 # would break.
16978 ac_LF_and_DOT=`echo; echo .`
16979 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
16980 rm -f confdef2opt.sed
16983 ac_libobjs=
16984 ac_ltlibobjs=
16985 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16986   # 1. Remove the extension, and $U if already installed.
16987   ac_i=`echo "$ac_i" |
16988          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16989   # 2. Add them.
16990   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16991   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16992 done
16993 LIBOBJS=$ac_libobjs
16995 LTLIBOBJS=$ac_ltlibobjs
16998 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16999   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
17000 Usually this means the macro was only invoked conditionally." >&5
17001 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
17002 Usually this means the macro was only invoked conditionally." >&2;}
17003    { (exit 1); exit 1; }; }
17005 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17006   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
17007 Usually this means the macro was only invoked conditionally." >&5
17008 echo "$as_me: error: conditional \"AMDEP\" was never defined.
17009 Usually this means the macro was only invoked conditionally." >&2;}
17010    { (exit 1); exit 1; }; }
17012 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17013   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
17014 Usually this means the macro was only invoked conditionally." >&5
17015 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
17016 Usually this means the macro was only invoked conditionally." >&2;}
17017    { (exit 1); exit 1; }; }
17019 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17020   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
17021 Usually this means the macro was only invoked conditionally." >&5
17022 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
17023 Usually this means the macro was only invoked conditionally." >&2;}
17024    { (exit 1); exit 1; }; }
17026 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17027   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
17028 Usually this means the macro was only invoked conditionally." >&5
17029 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
17030 Usually this means the macro was only invoked conditionally." >&2;}
17031    { (exit 1); exit 1; }; }
17033 if test -z "${OMAPL138_TRUE}" && test -z "${OMAPL138_FALSE}"; then
17034   { { echo "$as_me:$LINENO: error: conditional \"OMAPL138\" was never defined.
17035 Usually this means the macro was only invoked conditionally." >&5
17036 echo "$as_me: error: conditional \"OMAPL138\" was never defined.
17037 Usually this means the macro was only invoked conditionally." >&2;}
17038    { (exit 1); exit 1; }; }
17040 if test -z "${OMAP4430_TRUE}" && test -z "${OMAP4430_FALSE}"; then
17041   { { echo "$as_me:$LINENO: error: conditional \"OMAP4430\" was never defined.
17042 Usually this means the macro was only invoked conditionally." >&5
17043 echo "$as_me: error: conditional \"OMAP4430\" was never defined.
17044 Usually this means the macro was only invoked conditionally." >&2;}
17045    { (exit 1); exit 1; }; }
17047 if test -z "${TCI6614_TRUE}" && test -z "${TCI6614_FALSE}"; then
17048   { { echo "$as_me:$LINENO: error: conditional \"TCI6614\" was never defined.
17049 Usually this means the macro was only invoked conditionally." >&5
17050 echo "$as_me: error: conditional \"TCI6614\" was never defined.
17051 Usually this means the macro was only invoked conditionally." >&2;}
17052    { (exit 1); exit 1; }; }
17054 if test -z "${TCI6638_TRUE}" && test -z "${TCI6638_FALSE}"; then
17055   { { echo "$as_me:$LINENO: error: conditional \"TCI6638\" was never defined.
17056 Usually this means the macro was only invoked conditionally." >&5
17057 echo "$as_me: error: conditional \"TCI6638\" was never defined.
17058 Usually this means the macro was only invoked conditionally." >&2;}
17059    { (exit 1); exit 1; }; }
17061 if test -z "${CMEM_TRUE}" && test -z "${CMEM_FALSE}"; then
17062   { { echo "$as_me:$LINENO: error: conditional \"CMEM\" was never defined.
17063 Usually this means the macro was only invoked conditionally." >&5
17064 echo "$as_me: error: conditional \"CMEM\" was never defined.
17065 Usually this means the macro was only invoked conditionally." >&2;}
17066    { (exit 1); exit 1; }; }
17069 : ${CONFIG_STATUS=./config.status}
17070 ac_clean_files_save=$ac_clean_files
17071 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17072 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17073 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17074 cat >$CONFIG_STATUS <<_ACEOF
17075 #! $SHELL
17076 # Generated by $as_me.
17077 # Run this file to recreate the current configuration.
17078 # Compiler output produced by configure, useful for debugging
17079 # configure, is in config.log if it exists.
17081 debug=false
17082 ac_cs_recheck=false
17083 ac_cs_silent=false
17084 SHELL=\${CONFIG_SHELL-$SHELL}
17085 _ACEOF
17087 cat >>$CONFIG_STATUS <<\_ACEOF
17088 ## --------------------- ##
17089 ## M4sh Initialization.  ##
17090 ## --------------------- ##
17092 # Be Bourne compatible
17093 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17094   emulate sh
17095   NULLCMD=:
17096   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17097   # is contrary to our usage.  Disable this feature.
17098   alias -g '${1+"$@"}'='"$@"'
17099 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17100   set -o posix
17102 DUALCASE=1; export DUALCASE # for MKS sh
17104 # Support unset when possible.
17105 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17106   as_unset=unset
17107 else
17108   as_unset=false
17112 # Work around bugs in pre-3.0 UWIN ksh.
17113 $as_unset ENV MAIL MAILPATH
17114 PS1='$ '
17115 PS2='> '
17116 PS4='+ '
17118 # NLS nuisances.
17119 for as_var in \
17120   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17121   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17122   LC_TELEPHONE LC_TIME
17124   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17125     eval $as_var=C; export $as_var
17126   else
17127     $as_unset $as_var
17128   fi
17129 done
17131 # Required to use basename.
17132 if expr a : '\(a\)' >/dev/null 2>&1; then
17133   as_expr=expr
17134 else
17135   as_expr=false
17138 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17139   as_basename=basename
17140 else
17141   as_basename=false
17145 # Name of the executable.
17146 as_me=`$as_basename "$0" ||
17147 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17148          X"$0" : 'X\(//\)$' \| \
17149          X"$0" : 'X\(/\)$' \| \
17150          .     : '\(.\)' 2>/dev/null ||
17151 echo X/"$0" |
17152     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17153           /^X\/\(\/\/\)$/{ s//\1/; q; }
17154           /^X\/\(\/\).*/{ s//\1/; q; }
17155           s/.*/./; q'`
17158 # PATH needs CR, and LINENO needs CR and PATH.
17159 # Avoid depending upon Character Ranges.
17160 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17161 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17162 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17163 as_cr_digits='0123456789'
17164 as_cr_alnum=$as_cr_Letters$as_cr_digits
17166 # The user is always right.
17167 if test "${PATH_SEPARATOR+set}" != set; then
17168   echo "#! /bin/sh" >conf$$.sh
17169   echo  "exit 0"   >>conf$$.sh
17170   chmod +x conf$$.sh
17171   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17172     PATH_SEPARATOR=';'
17173   else
17174     PATH_SEPARATOR=:
17175   fi
17176   rm -f conf$$.sh
17180   as_lineno_1=$LINENO
17181   as_lineno_2=$LINENO
17182   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17183   test "x$as_lineno_1" != "x$as_lineno_2" &&
17184   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
17185   # Find who we are.  Look in the path if we contain no path at all
17186   # relative or not.
17187   case $0 in
17188     *[\\/]* ) as_myself=$0 ;;
17189     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17190 for as_dir in $PATH
17192   IFS=$as_save_IFS
17193   test -z "$as_dir" && as_dir=.
17194   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17195 done
17197        ;;
17198   esac
17199   # We did not find ourselves, most probably we were run as `sh COMMAND'
17200   # in which case we are not to be found in the path.
17201   if test "x$as_myself" = x; then
17202     as_myself=$0
17203   fi
17204   if test ! -f "$as_myself"; then
17205     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17206 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17207    { (exit 1); exit 1; }; }
17208   fi
17209   case $CONFIG_SHELL in
17210   '')
17211     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17214   IFS=$as_save_IFS
17215   test -z "$as_dir" && as_dir=.
17216   for as_base in sh bash ksh sh5; do
17217          case $as_dir in
17218          /*)
17219            if ("$as_dir/$as_base" -c '
17220   as_lineno_1=$LINENO
17221   as_lineno_2=$LINENO
17222   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17223   test "x$as_lineno_1" != "x$as_lineno_2" &&
17224   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
17225              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17226              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17227              CONFIG_SHELL=$as_dir/$as_base
17228              export CONFIG_SHELL
17229              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17230            fi;;
17231          esac
17232        done
17233 done
17235   esac
17237   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17238   # uniformly replaced by the line number.  The first 'sed' inserts a
17239   # line-number line before each line; the second 'sed' does the real
17240   # work.  The second script uses 'N' to pair each line-number line
17241   # with the numbered line, and appends trailing '-' during
17242   # substitution so that $LINENO is not a special case at line end.
17243   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17244   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
17245   sed '=' <$as_myself |
17246     sed '
17247       N
17248       s,$,-,
17249       : loop
17250       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17251       t loop
17252       s,-$,,
17253       s,^['$as_cr_digits']*\n,,
17254     ' >$as_me.lineno &&
17255   chmod +x $as_me.lineno ||
17256     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17257 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17258    { (exit 1); exit 1; }; }
17260   # Don't try to exec as it changes $[0], causing all sort of problems
17261   # (the dirname of $[0] is not the place where we might find the
17262   # original and so on.  Autoconf is especially sensible to this).
17263   . ./$as_me.lineno
17264   # Exit status is that of the last command.
17265   exit
17269 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17270   *c*,-n*) ECHO_N= ECHO_C='
17271 ' ECHO_T='      ' ;;
17272   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17273   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
17274 esac
17276 if expr a : '\(a\)' >/dev/null 2>&1; then
17277   as_expr=expr
17278 else
17279   as_expr=false
17282 rm -f conf$$ conf$$.exe conf$$.file
17283 echo >conf$$.file
17284 if ln -s conf$$.file conf$$ 2>/dev/null; then
17285   # We could just check for DJGPP; but this test a) works b) is more generic
17286   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17287   if test -f conf$$.exe; then
17288     # Don't use ln at all; we don't have any links
17289     as_ln_s='cp -p'
17290   else
17291     as_ln_s='ln -s'
17292   fi
17293 elif ln conf$$.file conf$$ 2>/dev/null; then
17294   as_ln_s=ln
17295 else
17296   as_ln_s='cp -p'
17298 rm -f conf$$ conf$$.exe conf$$.file
17300 if mkdir -p . 2>/dev/null; then
17301   as_mkdir_p=:
17302 else
17303   test -d ./-p && rmdir ./-p
17304   as_mkdir_p=false
17307 as_executable_p="test -f"
17309 # Sed expression to map a string onto a valid CPP name.
17310 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17312 # Sed expression to map a string onto a valid variable name.
17313 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17316 # IFS
17317 # We need space, tab and new line, in precisely that order.
17318 as_nl='
17320 IFS="   $as_nl"
17322 # CDPATH.
17323 $as_unset CDPATH
17325 exec 6>&1
17327 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17328 # report actual input values of CONFIG_FILES etc. instead of their
17329 # values after options handling.  Logging --version etc. is OK.
17330 exec 5>>config.log
17332   echo
17333   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17334 ## Running $as_me. ##
17335 _ASBOX
17336 } >&5
17337 cat >&5 <<_CSEOF
17339 This file was extended by TI IPC $as_me 3.0.0, which was
17340 generated by GNU Autoconf 2.59.  Invocation command line was
17342   CONFIG_FILES    = $CONFIG_FILES
17343   CONFIG_HEADERS  = $CONFIG_HEADERS
17344   CONFIG_LINKS    = $CONFIG_LINKS
17345   CONFIG_COMMANDS = $CONFIG_COMMANDS
17346   $ $0 $@
17348 _CSEOF
17349 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17350 echo >&5
17351 _ACEOF
17353 # Files that config.status was made for.
17354 if test -n "$ac_config_files"; then
17355   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17358 if test -n "$ac_config_headers"; then
17359   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17362 if test -n "$ac_config_links"; then
17363   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17366 if test -n "$ac_config_commands"; then
17367   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17370 cat >>$CONFIG_STATUS <<\_ACEOF
17372 ac_cs_usage="\
17373 \`$as_me' instantiates files from templates according to the
17374 current configuration.
17376 Usage: $0 [OPTIONS] [FILE]...
17378   -h, --help       print this help, then exit
17379   -V, --version    print version number, then exit
17380   -q, --quiet      do not print progress messages
17381   -d, --debug      don't remove temporary files
17382       --recheck    update $as_me by reconfiguring in the same conditions
17383   --file=FILE[:TEMPLATE]
17384                    instantiate the configuration file FILE
17386 Configuration files:
17387 $config_files
17389 Configuration commands:
17390 $config_commands
17392 Report bugs to <bug-autoconf@gnu.org>."
17393 _ACEOF
17395 cat >>$CONFIG_STATUS <<_ACEOF
17396 ac_cs_version="\\
17397 TI IPC config.status 3.0.0
17398 configured by $0, generated by GNU Autoconf 2.59,
17399   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17401 Copyright (C) 2003 Free Software Foundation, Inc.
17402 This config.status script is free software; the Free Software Foundation
17403 gives unlimited permission to copy, distribute and modify it."
17404 srcdir=$srcdir
17405 INSTALL="$INSTALL"
17406 _ACEOF
17408 cat >>$CONFIG_STATUS <<\_ACEOF
17409 # If no file are specified by the user, then we need to provide default
17410 # value.  By we need to know if files were specified by the user.
17411 ac_need_defaults=:
17412 while test $# != 0
17414   case $1 in
17415   --*=*)
17416     ac_option=`expr "x$1" : 'x\([^=]*\)='`
17417     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17418     ac_shift=:
17419     ;;
17420   -*)
17421     ac_option=$1
17422     ac_optarg=$2
17423     ac_shift=shift
17424     ;;
17425   *) # This is not an option, so the user has probably given explicit
17426      # arguments.
17427      ac_option=$1
17428      ac_need_defaults=false;;
17429   esac
17431   case $ac_option in
17432   # Handling of the options.
17433 _ACEOF
17434 cat >>$CONFIG_STATUS <<\_ACEOF
17435   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17436     ac_cs_recheck=: ;;
17437   --version | --vers* | -V )
17438     echo "$ac_cs_version"; exit 0 ;;
17439   --he | --h)
17440     # Conflict between --help and --header
17441     { { echo "$as_me:$LINENO: error: ambiguous option: $1
17442 Try \`$0 --help' for more information." >&5
17443 echo "$as_me: error: ambiguous option: $1
17444 Try \`$0 --help' for more information." >&2;}
17445    { (exit 1); exit 1; }; };;
17446   --help | --hel | -h )
17447     echo "$ac_cs_usage"; exit 0 ;;
17448   --debug | --d* | -d )
17449     debug=: ;;
17450   --file | --fil | --fi | --f )
17451     $ac_shift
17452     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17453     ac_need_defaults=false;;
17454   --header | --heade | --head | --hea )
17455     $ac_shift
17456     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17457     ac_need_defaults=false;;
17458   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17459   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17460     ac_cs_silent=: ;;
17462   # This is an error.
17463   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17464 Try \`$0 --help' for more information." >&5
17465 echo "$as_me: error: unrecognized option: $1
17466 Try \`$0 --help' for more information." >&2;}
17467    { (exit 1); exit 1; }; } ;;
17469   *) ac_config_targets="$ac_config_targets $1" ;;
17471   esac
17472   shift
17473 done
17475 ac_configure_extra_args=
17477 if $ac_cs_silent; then
17478   exec 6>/dev/null
17479   ac_configure_extra_args="$ac_configure_extra_args --silent"
17482 _ACEOF
17483 cat >>$CONFIG_STATUS <<_ACEOF
17484 if \$ac_cs_recheck; then
17485   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17486   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17489 _ACEOF
17491 cat >>$CONFIG_STATUS <<_ACEOF
17493 # INIT-COMMANDS section.
17496 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17498 _ACEOF
17502 cat >>$CONFIG_STATUS <<\_ACEOF
17503 for ac_config_target in $ac_config_targets
17505   case "$ac_config_target" in
17506   # Handling of arguments.
17507   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17508   "linux/etc/Makefile" ) CONFIG_FILES="$CONFIG_FILES linux/etc/Makefile" ;;
17509   "linux/src/utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES linux/src/utils/Makefile" ;;
17510   "linux/src/api/Makefile" ) CONFIG_FILES="$CONFIG_FILES linux/src/api/Makefile" ;;
17511   "linux/src/family/Makefile" ) CONFIG_FILES="$CONFIG_FILES linux/src/family/Makefile" ;;
17512   "linux/src/daemon/Makefile" ) CONFIG_FILES="$CONFIG_FILES linux/src/daemon/Makefile" ;;
17513   "linux/src/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES linux/src/tests/Makefile" ;;
17514   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17515   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17516 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17517    { (exit 1); exit 1; }; };;
17518   esac
17519 done
17521 # If the user did not use the arguments to specify the items to instantiate,
17522 # then the envvar interface is used.  Set only those that are not.
17523 # We use the long form for the default assignment because of an extremely
17524 # bizarre bug on SunOS 4.1.3.
17525 if $ac_need_defaults; then
17526   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17527   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17530 # Have a temporary directory for convenience.  Make it in the build tree
17531 # simply because there is no reason to put it here, and in addition,
17532 # creating and moving files from /tmp can sometimes cause problems.
17533 # Create a temporary directory, and hook for its removal unless debugging.
17534 $debug ||
17536   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17537   trap '{ (exit 1); exit 1; }' 1 2 13 15
17540 # Create a (secure) tmp directory for tmp files.
17543   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17544   test -n "$tmp" && test -d "$tmp"
17545 }  ||
17547   tmp=./confstat$$-$RANDOM
17548   (umask 077 && mkdir $tmp)
17549 } ||
17551    echo "$me: cannot create a temporary directory in ." >&2
17552    { (exit 1); exit 1; }
17555 _ACEOF
17557 cat >>$CONFIG_STATUS <<_ACEOF
17560 # CONFIG_FILES section.
17563 # No need to generate the scripts if there are no CONFIG_FILES.
17564 # This happens for instance when ./config.status config.h
17565 if test -n "\$CONFIG_FILES"; then
17566   # Protect against being on the right side of a sed subst in config.status.
17567   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17568    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17569 s,@SHELL@,$SHELL,;t t
17570 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17571 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17572 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17573 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17574 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17575 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17576 s,@exec_prefix@,$exec_prefix,;t t
17577 s,@prefix@,$prefix,;t t
17578 s,@program_transform_name@,$program_transform_name,;t t
17579 s,@bindir@,$bindir,;t t
17580 s,@sbindir@,$sbindir,;t t
17581 s,@libexecdir@,$libexecdir,;t t
17582 s,@datadir@,$datadir,;t t
17583 s,@sysconfdir@,$sysconfdir,;t t
17584 s,@sharedstatedir@,$sharedstatedir,;t t
17585 s,@localstatedir@,$localstatedir,;t t
17586 s,@libdir@,$libdir,;t t
17587 s,@includedir@,$includedir,;t t
17588 s,@oldincludedir@,$oldincludedir,;t t
17589 s,@infodir@,$infodir,;t t
17590 s,@mandir@,$mandir,;t t
17591 s,@build_alias@,$build_alias,;t t
17592 s,@host_alias@,$host_alias,;t t
17593 s,@target_alias@,$target_alias,;t t
17594 s,@DEFS@,$DEFS,;t t
17595 s,@ECHO_C@,$ECHO_C,;t t
17596 s,@ECHO_N@,$ECHO_N,;t t
17597 s,@ECHO_T@,$ECHO_T,;t t
17598 s,@LIBS@,$LIBS,;t t
17599 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17600 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17601 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17602 s,@CYGPATH_W@,$CYGPATH_W,;t t
17603 s,@PACKAGE@,$PACKAGE,;t t
17604 s,@VERSION@,$VERSION,;t t
17605 s,@ACLOCAL@,$ACLOCAL,;t t
17606 s,@AUTOCONF@,$AUTOCONF,;t t
17607 s,@AUTOMAKE@,$AUTOMAKE,;t t
17608 s,@AUTOHEADER@,$AUTOHEADER,;t t
17609 s,@MAKEINFO@,$MAKEINFO,;t t
17610 s,@install_sh@,$install_sh,;t t
17611 s,@STRIP@,$STRIP,;t t
17612 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17613 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
17614 s,@mkdir_p@,$mkdir_p,;t t
17615 s,@AWK@,$AWK,;t t
17616 s,@SET_MAKE@,$SET_MAKE,;t t
17617 s,@am__leading_dot@,$am__leading_dot,;t t
17618 s,@AMTAR@,$AMTAR,;t t
17619 s,@am__tar@,$am__tar,;t t
17620 s,@am__untar@,$am__untar,;t t
17621 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
17622 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
17623 s,@MAINT@,$MAINT,;t t
17624 s,@build@,$build,;t t
17625 s,@build_cpu@,$build_cpu,;t t
17626 s,@build_vendor@,$build_vendor,;t t
17627 s,@build_os@,$build_os,;t t
17628 s,@host@,$host,;t t
17629 s,@host_cpu@,$host_cpu,;t t
17630 s,@host_vendor@,$host_vendor,;t t
17631 s,@host_os@,$host_os,;t t
17632 s,@CC@,$CC,;t t
17633 s,@CFLAGS@,$CFLAGS,;t t
17634 s,@LDFLAGS@,$LDFLAGS,;t t
17635 s,@CPPFLAGS@,$CPPFLAGS,;t t
17636 s,@ac_ct_CC@,$ac_ct_CC,;t t
17637 s,@EXEEXT@,$EXEEXT,;t t
17638 s,@OBJEXT@,$OBJEXT,;t t
17639 s,@DEPDIR@,$DEPDIR,;t t
17640 s,@am__include@,$am__include,;t t
17641 s,@am__quote@,$am__quote,;t t
17642 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
17643 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
17644 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
17645 s,@CCDEPMODE@,$CCDEPMODE,;t t
17646 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
17647 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
17648 s,@EGREP@,$EGREP,;t t
17649 s,@LN_S@,$LN_S,;t t
17650 s,@ECHO@,$ECHO,;t t
17651 s,@AR@,$AR,;t t
17652 s,@ac_ct_AR@,$ac_ct_AR,;t t
17653 s,@RANLIB@,$RANLIB,;t t
17654 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17655 s,@CPP@,$CPP,;t t
17656 s,@CXX@,$CXX,;t t
17657 s,@CXXFLAGS@,$CXXFLAGS,;t t
17658 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17659 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
17660 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
17661 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
17662 s,@CXXCPP@,$CXXCPP,;t t
17663 s,@LIBTOOL@,$LIBTOOL,;t t
17664 s,@AM_CFLAGS@,$AM_CFLAGS,;t t
17665 s,@AM_LDFLAGS@,$AM_LDFLAGS,;t t
17666 s,@PLATFORM@,$PLATFORM,;t t
17667 s,@CMEM_INSTALL_DIR@,$CMEM_INSTALL_DIR,;t t
17668 s,@OMAPL138_TRUE@,$OMAPL138_TRUE,;t t
17669 s,@OMAPL138_FALSE@,$OMAPL138_FALSE,;t t
17670 s,@OMAP4430_TRUE@,$OMAP4430_TRUE,;t t
17671 s,@OMAP4430_FALSE@,$OMAP4430_FALSE,;t t
17672 s,@TCI6614_TRUE@,$TCI6614_TRUE,;t t
17673 s,@TCI6614_FALSE@,$TCI6614_FALSE,;t t
17674 s,@TCI6638_TRUE@,$TCI6638_TRUE,;t t
17675 s,@TCI6638_FALSE@,$TCI6638_FALSE,;t t
17676 s,@CMEM_TRUE@,$CMEM_TRUE,;t t
17677 s,@CMEM_FALSE@,$CMEM_FALSE,;t t
17678 s,@LIBOBJS@,$LIBOBJS,;t t
17679 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17680 CEOF
17682 _ACEOF
17684   cat >>$CONFIG_STATUS <<\_ACEOF
17685   # Split the substitutions into bite-sized pieces for seds with
17686   # small command number limits, like on Digital OSF/1 and HP-UX.
17687   ac_max_sed_lines=48
17688   ac_sed_frag=1 # Number of current file.
17689   ac_beg=1 # First line for current file.
17690   ac_end=$ac_max_sed_lines # Line after last line for current file.
17691   ac_more_lines=:
17692   ac_sed_cmds=
17693   while $ac_more_lines; do
17694     if test $ac_beg -gt 1; then
17695       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17696     else
17697       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17698     fi
17699     if test ! -s $tmp/subs.frag; then
17700       ac_more_lines=false
17701     else
17702       # The purpose of the label and of the branching condition is to
17703       # speed up the sed processing (if there are no `@' at all, there
17704       # is no need to browse any of the substitutions).
17705       # These are the two extra sed commands mentioned above.
17706       (echo ':t
17707   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17708       if test -z "$ac_sed_cmds"; then
17709         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17710       else
17711         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17712       fi
17713       ac_sed_frag=`expr $ac_sed_frag + 1`
17714       ac_beg=$ac_end
17715       ac_end=`expr $ac_end + $ac_max_sed_lines`
17716     fi
17717   done
17718   if test -z "$ac_sed_cmds"; then
17719     ac_sed_cmds=cat
17720   fi
17721 fi # test -n "$CONFIG_FILES"
17723 _ACEOF
17724 cat >>$CONFIG_STATUS <<\_ACEOF
17725 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17726   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17727   case $ac_file in
17728   - | *:- | *:-:* ) # input from stdin
17729         cat >$tmp/stdin
17730         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17731         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17732   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17733         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17734   * )   ac_file_in=$ac_file.in ;;
17735   esac
17737   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17738   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17739 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17740          X"$ac_file" : 'X\(//\)[^/]' \| \
17741          X"$ac_file" : 'X\(//\)$' \| \
17742          X"$ac_file" : 'X\(/\)' \| \
17743          .     : '\(.\)' 2>/dev/null ||
17744 echo X"$ac_file" |
17745     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17746           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17747           /^X\(\/\/\)$/{ s//\1/; q; }
17748           /^X\(\/\).*/{ s//\1/; q; }
17749           s/.*/./; q'`
17750   { if $as_mkdir_p; then
17751     mkdir -p "$ac_dir"
17752   else
17753     as_dir="$ac_dir"
17754     as_dirs=
17755     while test ! -d "$as_dir"; do
17756       as_dirs="$as_dir $as_dirs"
17757       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17758 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17759          X"$as_dir" : 'X\(//\)[^/]' \| \
17760          X"$as_dir" : 'X\(//\)$' \| \
17761          X"$as_dir" : 'X\(/\)' \| \
17762          .     : '\(.\)' 2>/dev/null ||
17763 echo X"$as_dir" |
17764     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17765           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17766           /^X\(\/\/\)$/{ s//\1/; q; }
17767           /^X\(\/\).*/{ s//\1/; q; }
17768           s/.*/./; q'`
17769     done
17770     test ! -n "$as_dirs" || mkdir $as_dirs
17771   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17772 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17773    { (exit 1); exit 1; }; }; }
17775   ac_builddir=.
17777 if test "$ac_dir" != .; then
17778   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17779   # A "../" for each directory in $ac_dir_suffix.
17780   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17781 else
17782   ac_dir_suffix= ac_top_builddir=
17785 case $srcdir in
17786   .)  # No --srcdir option.  We are building in place.
17787     ac_srcdir=.
17788     if test -z "$ac_top_builddir"; then
17789        ac_top_srcdir=.
17790     else
17791        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17792     fi ;;
17793   [\\/]* | ?:[\\/]* )  # Absolute path.
17794     ac_srcdir=$srcdir$ac_dir_suffix;
17795     ac_top_srcdir=$srcdir ;;
17796   *) # Relative path.
17797     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17798     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17799 esac
17801 # Do not use `cd foo && pwd` to compute absolute paths, because
17802 # the directories may not exist.
17803 case `pwd` in
17804 .) ac_abs_builddir="$ac_dir";;
17806   case "$ac_dir" in
17807   .) ac_abs_builddir=`pwd`;;
17808   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17809   *) ac_abs_builddir=`pwd`/"$ac_dir";;
17810   esac;;
17811 esac
17812 case $ac_abs_builddir in
17813 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17815   case ${ac_top_builddir}. in
17816   .) ac_abs_top_builddir=$ac_abs_builddir;;
17817   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17818   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17819   esac;;
17820 esac
17821 case $ac_abs_builddir in
17822 .) ac_abs_srcdir=$ac_srcdir;;
17824   case $ac_srcdir in
17825   .) ac_abs_srcdir=$ac_abs_builddir;;
17826   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17827   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17828   esac;;
17829 esac
17830 case $ac_abs_builddir in
17831 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17833   case $ac_top_srcdir in
17834   .) ac_abs_top_srcdir=$ac_abs_builddir;;
17835   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17836   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17837   esac;;
17838 esac
17841   case $INSTALL in
17842   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17843   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17844   esac
17846   if test x"$ac_file" != x-; then
17847     { echo "$as_me:$LINENO: creating $ac_file" >&5
17848 echo "$as_me: creating $ac_file" >&6;}
17849     rm -f "$ac_file"
17850   fi
17851   # Let's still pretend it is `configure' which instantiates (i.e., don't
17852   # use $as_me), people would be surprised to read:
17853   #    /* config.h.  Generated by config.status.  */
17854   if test x"$ac_file" = x-; then
17855     configure_input=
17856   else
17857     configure_input="$ac_file.  "
17858   fi
17859   configure_input=$configure_input"Generated from `echo $ac_file_in |
17860                                      sed 's,.*/,,'` by configure."
17862   # First look for the input files in the build tree, otherwise in the
17863   # src tree.
17864   ac_file_inputs=`IFS=:
17865     for f in $ac_file_in; do
17866       case $f in
17867       -) echo $tmp/stdin ;;
17868       [\\/$]*)
17869          # Absolute (can't be DOS-style, as IFS=:)
17870          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17871 echo "$as_me: error: cannot find input file: $f" >&2;}
17872    { (exit 1); exit 1; }; }
17873          echo "$f";;
17874       *) # Relative
17875          if test -f "$f"; then
17876            # Build tree
17877            echo "$f"
17878          elif test -f "$srcdir/$f"; then
17879            # Source tree
17880            echo "$srcdir/$f"
17881          else
17882            # /dev/null tree
17883            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17884 echo "$as_me: error: cannot find input file: $f" >&2;}
17885    { (exit 1); exit 1; }; }
17886          fi;;
17887       esac
17888     done` || { (exit 1); exit 1; }
17889 _ACEOF
17890 cat >>$CONFIG_STATUS <<_ACEOF
17891   sed "$ac_vpsub
17892 $extrasub
17893 _ACEOF
17894 cat >>$CONFIG_STATUS <<\_ACEOF
17896 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17897 s,@configure_input@,$configure_input,;t t
17898 s,@srcdir@,$ac_srcdir,;t t
17899 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17900 s,@top_srcdir@,$ac_top_srcdir,;t t
17901 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17902 s,@builddir@,$ac_builddir,;t t
17903 s,@abs_builddir@,$ac_abs_builddir,;t t
17904 s,@top_builddir@,$ac_top_builddir,;t t
17905 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17906 s,@INSTALL@,$ac_INSTALL,;t t
17907 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17908   rm -f $tmp/stdin
17909   if test x"$ac_file" != x-; then
17910     mv $tmp/out $ac_file
17911   else
17912     cat $tmp/out
17913     rm -f $tmp/out
17914   fi
17916 done
17917 _ACEOF
17918 cat >>$CONFIG_STATUS <<\_ACEOF
17921 # CONFIG_COMMANDS section.
17923 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17924   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17925   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17926   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17927 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17928          X"$ac_dest" : 'X\(//\)[^/]' \| \
17929          X"$ac_dest" : 'X\(//\)$' \| \
17930          X"$ac_dest" : 'X\(/\)' \| \
17931          .     : '\(.\)' 2>/dev/null ||
17932 echo X"$ac_dest" |
17933     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17934           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17935           /^X\(\/\/\)$/{ s//\1/; q; }
17936           /^X\(\/\).*/{ s//\1/; q; }
17937           s/.*/./; q'`
17938   { if $as_mkdir_p; then
17939     mkdir -p "$ac_dir"
17940   else
17941     as_dir="$ac_dir"
17942     as_dirs=
17943     while test ! -d "$as_dir"; do
17944       as_dirs="$as_dir $as_dirs"
17945       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17946 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17947          X"$as_dir" : 'X\(//\)[^/]' \| \
17948          X"$as_dir" : 'X\(//\)$' \| \
17949          X"$as_dir" : 'X\(/\)' \| \
17950          .     : '\(.\)' 2>/dev/null ||
17951 echo X"$as_dir" |
17952     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17953           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17954           /^X\(\/\/\)$/{ s//\1/; q; }
17955           /^X\(\/\).*/{ s//\1/; q; }
17956           s/.*/./; q'`
17957     done
17958     test ! -n "$as_dirs" || mkdir $as_dirs
17959   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17960 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17961    { (exit 1); exit 1; }; }; }
17963   ac_builddir=.
17965 if test "$ac_dir" != .; then
17966   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17967   # A "../" for each directory in $ac_dir_suffix.
17968   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17969 else
17970   ac_dir_suffix= ac_top_builddir=
17973 case $srcdir in
17974   .)  # No --srcdir option.  We are building in place.
17975     ac_srcdir=.
17976     if test -z "$ac_top_builddir"; then
17977        ac_top_srcdir=.
17978     else
17979        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17980     fi ;;
17981   [\\/]* | ?:[\\/]* )  # Absolute path.
17982     ac_srcdir=$srcdir$ac_dir_suffix;
17983     ac_top_srcdir=$srcdir ;;
17984   *) # Relative path.
17985     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17986     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17987 esac
17989 # Do not use `cd foo && pwd` to compute absolute paths, because
17990 # the directories may not exist.
17991 case `pwd` in
17992 .) ac_abs_builddir="$ac_dir";;
17994   case "$ac_dir" in
17995   .) ac_abs_builddir=`pwd`;;
17996   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17997   *) ac_abs_builddir=`pwd`/"$ac_dir";;
17998   esac;;
17999 esac
18000 case $ac_abs_builddir in
18001 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18003   case ${ac_top_builddir}. in
18004   .) ac_abs_top_builddir=$ac_abs_builddir;;
18005   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18006   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18007   esac;;
18008 esac
18009 case $ac_abs_builddir in
18010 .) ac_abs_srcdir=$ac_srcdir;;
18012   case $ac_srcdir in
18013   .) ac_abs_srcdir=$ac_abs_builddir;;
18014   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18015   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18016   esac;;
18017 esac
18018 case $ac_abs_builddir in
18019 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18021   case $ac_top_srcdir in
18022   .) ac_abs_top_srcdir=$ac_abs_builddir;;
18023   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18024   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18025   esac;;
18026 esac
18029   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18030 echo "$as_me: executing $ac_dest commands" >&6;}
18031   case $ac_dest in
18032     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
18033   # Strip MF so we end up with the name of the file.
18034   mf=`echo "$mf" | sed -e 's/:.*$//'`
18035   # Check whether this is an Automake generated Makefile or not.
18036   # We used to match only the files named `Makefile.in', but
18037   # some people rename them; so instead we look at the file content.
18038   # Grep'ing the first line is not enough: some people post-process
18039   # each Makefile.in and add a new line on top of each file to say so.
18040   # So let's grep whole file.
18041   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
18042     dirpart=`(dirname "$mf") 2>/dev/null ||
18043 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18044          X"$mf" : 'X\(//\)[^/]' \| \
18045          X"$mf" : 'X\(//\)$' \| \
18046          X"$mf" : 'X\(/\)' \| \
18047          .     : '\(.\)' 2>/dev/null ||
18048 echo X"$mf" |
18049     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18050           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18051           /^X\(\/\/\)$/{ s//\1/; q; }
18052           /^X\(\/\).*/{ s//\1/; q; }
18053           s/.*/./; q'`
18054   else
18055     continue
18056   fi
18057   # Extract the definition of DEPDIR, am__include, and am__quote
18058   # from the Makefile without running `make'.
18059   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18060   test -z "$DEPDIR" && continue
18061   am__include=`sed -n 's/^am__include = //p' < "$mf"`
18062   test -z "am__include" && continue
18063   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18064   # When using ansi2knr, U may be empty or an underscore; expand it
18065   U=`sed -n 's/^U = //p' < "$mf"`
18066   # Find all dependency output files, they are included files with
18067   # $(DEPDIR) in their names.  We invoke sed twice because it is the
18068   # simplest approach to changing $(DEPDIR) to its actual value in the
18069   # expansion.
18070   for file in `sed -n "
18071     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18072        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18073     # Make sure the directory exists.
18074     test -f "$dirpart/$file" && continue
18075     fdir=`(dirname "$file") 2>/dev/null ||
18076 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18077          X"$file" : 'X\(//\)[^/]' \| \
18078          X"$file" : 'X\(//\)$' \| \
18079          X"$file" : 'X\(/\)' \| \
18080          .     : '\(.\)' 2>/dev/null ||
18081 echo X"$file" |
18082     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18083           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18084           /^X\(\/\/\)$/{ s//\1/; q; }
18085           /^X\(\/\).*/{ s//\1/; q; }
18086           s/.*/./; q'`
18087     { if $as_mkdir_p; then
18088     mkdir -p $dirpart/$fdir
18089   else
18090     as_dir=$dirpart/$fdir
18091     as_dirs=
18092     while test ! -d "$as_dir"; do
18093       as_dirs="$as_dir $as_dirs"
18094       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18095 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18096          X"$as_dir" : 'X\(//\)[^/]' \| \
18097          X"$as_dir" : 'X\(//\)$' \| \
18098          X"$as_dir" : 'X\(/\)' \| \
18099          .     : '\(.\)' 2>/dev/null ||
18100 echo X"$as_dir" |
18101     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18102           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18103           /^X\(\/\/\)$/{ s//\1/; q; }
18104           /^X\(\/\).*/{ s//\1/; q; }
18105           s/.*/./; q'`
18106     done
18107     test ! -n "$as_dirs" || mkdir $as_dirs
18108   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
18109 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
18110    { (exit 1); exit 1; }; }; }
18112     # echo "creating $dirpart/$file"
18113     echo '# dummy' > "$dirpart/$file"
18114   done
18115 done
18116  ;;
18117   esac
18118 done
18119 _ACEOF
18121 cat >>$CONFIG_STATUS <<\_ACEOF
18123 { (exit 0); exit 0; }
18124 _ACEOF
18125 chmod +x $CONFIG_STATUS
18126 ac_clean_files=$ac_clean_files_save
18129 # configure is writing to config.log, and then calls config.status.
18130 # config.status does its own redirection, appending to config.log.
18131 # Unfortunately, on DOS this fails, as config.log is still kept open
18132 # by configure, so config.status won't be able to write to it; its
18133 # output is simply discarded.  So we exec the FD to /dev/null,
18134 # effectively closing config.log, so it can be properly (re)opened and
18135 # appended to by config.status.  When coming back to configure, we
18136 # need to make the FD available again.
18137 if test "$no_create" != yes; then
18138   ac_cs_success=:
18139   ac_config_status_args=
18140   test "$silent" = yes &&
18141     ac_config_status_args="$ac_config_status_args --quiet"
18142   exec 5>/dev/null
18143   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18144   exec 5>>config.log
18145   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18146   # would make configure fail if this is the last instruction.
18147   $ac_cs_success || { (exit 1); exit 1; }
18151 echo \
18152 "-----------------------------------------------------------
18154 Thank you for installing the Linux ${PACKAGE_NAME} package
18156 Installation directory prefix: '${prefix}'.
18157 Compilation command: '${CC} ${CFLAGS} ${CPPFLAGS}'
18159 You have configured to build for the '${PLATFORM}' platform
18161 Your CMEM installation is at:
18162     '${CMEM_INSTALL_DIR}'
18164 Now type 'make; sudo make install' to generate the program
18165 and install it to your system.
18167 ------------------------------------------------------------"