Fix up permissions.
[ardour.git] / libs / glibmm2 / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
247
248 case X$ECHO in
249 X*--fallback-echo)
250   # Remove one level of quotation (which was required for Make).
251   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
252   ;;
253 esac
254
255 echo=${ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257   # Discard the --no-reexec flag, and continue.
258   shift
259 elif test "X$1" = X--fallback-echo; then
260   # Avoid inline document here, it may be left over
261   :
262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263   # Yippee, $echo works!
264   :
265 else
266   # Restart under the correct shell.
267   exec $SHELL "$0" --no-reexec ${1+"$@"}
268 fi
269
270 if test "X$1" = X--fallback-echo; then
271   # used as fallback echo
272   shift
273   cat <<EOF
274 $*
275 EOF
276   exit 0
277 fi
278
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 # if CDPATH is set.
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
283 if test -z "$ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
289        echo_test_string=`eval $cmd` &&
290        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
291     then
292       break
293     fi
294   done
295 fi
296
297 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299    test "X$echo_testing_string" = "X$echo_test_string"; then
300   :
301 else
302   # The Solaris, AIX, and Digital Unix default echo programs unquote
303   # backslashes.  This makes it impossible to quote backslashes using
304   #   echo "$something" | sed 's/\\/\\\\/g'
305   #
306   # So, first we look for a working echo in the user's PATH.
307
308   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309   for dir in $PATH /usr/ucb; do
310     IFS="$lt_save_ifs"
311     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314        test "X$echo_testing_string" = "X$echo_test_string"; then
315       echo="$dir/echo"
316       break
317     fi
318   done
319   IFS="$lt_save_ifs"
320
321   if test "X$echo" = Xecho; then
322     # We didn't find a better echo, so look for alternatives.
323     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325        test "X$echo_testing_string" = "X$echo_test_string"; then
326       # This shell has a builtin print -r that does the trick.
327       echo='print -r'
328     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329          test "X$CONFIG_SHELL" != X/bin/ksh; then
330       # If we have ksh, try running configure again with it.
331       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332       export ORIGINAL_CONFIG_SHELL
333       CONFIG_SHELL=/bin/ksh
334       export CONFIG_SHELL
335       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
336     else
337       # Try using printf.
338       echo='printf %s\n'
339       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341          test "X$echo_testing_string" = "X$echo_test_string"; then
342         # Cool, printf works
343         :
344       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345            test "X$echo_testing_string" = 'X\t' &&
346            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347            test "X$echo_testing_string" = "X$echo_test_string"; then
348         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349         export CONFIG_SHELL
350         SHELL="$CONFIG_SHELL"
351         export SHELL
352         echo="$CONFIG_SHELL $0 --fallback-echo"
353       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354            test "X$echo_testing_string" = 'X\t' &&
355            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356            test "X$echo_testing_string" = "X$echo_test_string"; then
357         echo="$CONFIG_SHELL $0 --fallback-echo"
358       else
359         # maybe with a smaller string...
360         prev=:
361
362         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
364           then
365             break
366           fi
367           prev="$cmd"
368         done
369
370         if test "$prev" != 'sed 50q "$0"'; then
371           echo_test_string=`eval $prev`
372           export echo_test_string
373           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374         else
375           # Oops.  We lost completely, so just stick with echo.
376           echo=echo
377         fi
378       fi
379     fi
380   fi
381 fi
382 fi
383
384 # Copy echo and quote the copy suitably for passing to libtool from
385 # the Makefile, instead of quoting the original, which is used later.
386 ECHO=$echo
387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
389 fi
390
391
392
393
394 tagnames=${tagnames+${tagnames},}CXX
395
396 tagnames=${tagnames+${tagnames},}F77
397
398 # Name of the host.
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
402
403 exec 6>&1
404
405 #
406 # Initializations.
407 #
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
410 cross_compiling=no
411 subdirs=
412 MFLAGS=
413 MAKEFLAGS=
414 SHELL=${CONFIG_SHELL-/bin/sh}
415
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete.  It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
420
421 # Identity of this package.
422 PACKAGE_NAME=
423 PACKAGE_TARNAME=
424 PACKAGE_VERSION=
425 PACKAGE_STRING=
426 PACKAGE_BUGREPORT=
427
428 ac_unique_file="glib/glibmmconfig.h.in"
429 # Factoring default headers for most tests.
430 ac_includes_default="\
431 #include <stdio.h>
432 #if HAVE_SYS_TYPES_H
433 # include <sys/types.h>
434 #endif
435 #if HAVE_SYS_STAT_H
436 # include <sys/stat.h>
437 #endif
438 #if STDC_HEADERS
439 # include <stdlib.h>
440 # include <stddef.h>
441 #else
442 # if HAVE_STDLIB_H
443 #  include <stdlib.h>
444 # endif
445 #endif
446 #if HAVE_STRING_H
447 # if !STDC_HEADERS && HAVE_MEMORY_H
448 #  include <memory.h>
449 # endif
450 # include <string.h>
451 #endif
452 #if HAVE_STRINGS_H
453 # include <strings.h>
454 #endif
455 #if HAVE_INTTYPES_H
456 # include <inttypes.h>
457 #else
458 # if HAVE_STDINT_H
459 #  include <stdint.h>
460 # endif
461 #endif
462 #if HAVE_UNISTD_H
463 # include <unistd.h>
464 #endif"
465
466 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS GLIBMM_MAJOR_VERSION GLIBMM_MINOR_VERSION GLIBMM_MICRO_VERSION GLIBMM_VERSION GLIBMM_RELEASE LIBGLIBMM_SO_VERSION 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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP build build_cpu build_vendor build_os host host_cpu host_vendor host_os PLATFORM_WIN32_TRUE PLATFORM_WIN32_FALSE OS_WIN32_TRUE OS_WIN32_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL M4 PERL_PATH PKG_CONFIG ac_pt_PKG_CONFIG GLIBMM_CFLAGS GLIBMM_LIBS GTHREAD_CFLAGS GTHREAD_LIBS GTKMM_DOXYGEN_INPUT GTKMMPROC_MERGECDOCS DISABLE_DEPRECATED_CFLAGS DISABLE_DEPRECATED_API_CFLAGS GTKMM_FALSE_TRUE GTKMM_FALSE_FALSE LIBOBJS LTLIBOBJS'
467 ac_subst_files=''
468
469 # Initialize some variables set by options.
470 ac_init_help=
471 ac_init_version=false
472 # The variables have the same names as the options, with
473 # dashes changed to underlines.
474 cache_file=/dev/null
475 exec_prefix=NONE
476 no_create=
477 no_recursion=
478 prefix=NONE
479 program_prefix=NONE
480 program_suffix=NONE
481 program_transform_name=s,x,x,
482 silent=
483 site=
484 srcdir=
485 verbose=
486 x_includes=NONE
487 x_libraries=NONE
488
489 # Installation directory options.
490 # These are left unexpanded so users can "make install exec_prefix=/foo"
491 # and all the variables that are supposed to be based on exec_prefix
492 # by default will actually change.
493 # Use braces instead of parens because sh, perl, etc. also accept them.
494 bindir='${exec_prefix}/bin'
495 sbindir='${exec_prefix}/sbin'
496 libexecdir='${exec_prefix}/libexec'
497 datadir='${prefix}/share'
498 sysconfdir='${prefix}/etc'
499 sharedstatedir='${prefix}/com'
500 localstatedir='${prefix}/var'
501 libdir='${exec_prefix}/lib'
502 includedir='${prefix}/include'
503 oldincludedir='/usr/include'
504 infodir='${prefix}/info'
505 mandir='${prefix}/man'
506
507 ac_prev=
508 for ac_option
509 do
510   # If the previous option needs an argument, assign it.
511   if test -n "$ac_prev"; then
512     eval "$ac_prev=\$ac_option"
513     ac_prev=
514     continue
515   fi
516
517   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
518
519   # Accept the important Cygnus configure options, so we can diagnose typos.
520
521   case $ac_option in
522
523   -bindir | --bindir | --bindi | --bind | --bin | --bi)
524     ac_prev=bindir ;;
525   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
526     bindir=$ac_optarg ;;
527
528   -build | --build | --buil | --bui | --bu)
529     ac_prev=build_alias ;;
530   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
531     build_alias=$ac_optarg ;;
532
533   -cache-file | --cache-file | --cache-fil | --cache-fi \
534   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
535     ac_prev=cache_file ;;
536   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
537   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
538     cache_file=$ac_optarg ;;
539
540   --config-cache | -C)
541     cache_file=config.cache ;;
542
543   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
544     ac_prev=datadir ;;
545   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
546   | --da=*)
547     datadir=$ac_optarg ;;
548
549   -disable-* | --disable-*)
550     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
551     # Reject names that are not valid shell variable names.
552     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
554    { (exit 1); exit 1; }; }
555     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
556     eval "enable_$ac_feature=no" ;;
557
558   -enable-* | --enable-*)
559     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
560     # Reject names that are not valid shell variable names.
561     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563    { (exit 1); exit 1; }; }
564     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565     case $ac_option in
566       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
567       *) ac_optarg=yes ;;
568     esac
569     eval "enable_$ac_feature='$ac_optarg'" ;;
570
571   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
572   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
573   | --exec | --exe | --ex)
574     ac_prev=exec_prefix ;;
575   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
576   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
577   | --exec=* | --exe=* | --ex=*)
578     exec_prefix=$ac_optarg ;;
579
580   -gas | --gas | --ga | --g)
581     # Obsolete; use --with-gas.
582     with_gas=yes ;;
583
584   -help | --help | --hel | --he | -h)
585     ac_init_help=long ;;
586   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
587     ac_init_help=recursive ;;
588   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
589     ac_init_help=short ;;
590
591   -host | --host | --hos | --ho)
592     ac_prev=host_alias ;;
593   -host=* | --host=* | --hos=* | --ho=*)
594     host_alias=$ac_optarg ;;
595
596   -includedir | --includedir | --includedi | --included | --include \
597   | --includ | --inclu | --incl | --inc)
598     ac_prev=includedir ;;
599   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
600   | --includ=* | --inclu=* | --incl=* | --inc=*)
601     includedir=$ac_optarg ;;
602
603   -infodir | --infodir | --infodi | --infod | --info | --inf)
604     ac_prev=infodir ;;
605   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
606     infodir=$ac_optarg ;;
607
608   -libdir | --libdir | --libdi | --libd)
609     ac_prev=libdir ;;
610   -libdir=* | --libdir=* | --libdi=* | --libd=*)
611     libdir=$ac_optarg ;;
612
613   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
614   | --libexe | --libex | --libe)
615     ac_prev=libexecdir ;;
616   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
617   | --libexe=* | --libex=* | --libe=*)
618     libexecdir=$ac_optarg ;;
619
620   -localstatedir | --localstatedir | --localstatedi | --localstated \
621   | --localstate | --localstat | --localsta | --localst \
622   | --locals | --local | --loca | --loc | --lo)
623     ac_prev=localstatedir ;;
624   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
625   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
626   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
627     localstatedir=$ac_optarg ;;
628
629   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
630     ac_prev=mandir ;;
631   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
632     mandir=$ac_optarg ;;
633
634   -nfp | --nfp | --nf)
635     # Obsolete; use --without-fp.
636     with_fp=no ;;
637
638   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
639   | --no-cr | --no-c | -n)
640     no_create=yes ;;
641
642   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
643   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
644     no_recursion=yes ;;
645
646   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
647   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
648   | --oldin | --oldi | --old | --ol | --o)
649     ac_prev=oldincludedir ;;
650   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
651   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
652   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
653     oldincludedir=$ac_optarg ;;
654
655   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
656     ac_prev=prefix ;;
657   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
658     prefix=$ac_optarg ;;
659
660   -program-prefix | --program-prefix | --program-prefi | --program-pref \
661   | --program-pre | --program-pr | --program-p)
662     ac_prev=program_prefix ;;
663   -program-prefix=* | --program-prefix=* | --program-prefi=* \
664   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
665     program_prefix=$ac_optarg ;;
666
667   -program-suffix | --program-suffix | --program-suffi | --program-suff \
668   | --program-suf | --program-su | --program-s)
669     ac_prev=program_suffix ;;
670   -program-suffix=* | --program-suffix=* | --program-suffi=* \
671   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
672     program_suffix=$ac_optarg ;;
673
674   -program-transform-name | --program-transform-name \
675   | --program-transform-nam | --program-transform-na \
676   | --program-transform-n | --program-transform- \
677   | --program-transform | --program-transfor \
678   | --program-transfo | --program-transf \
679   | --program-trans | --program-tran \
680   | --progr-tra | --program-tr | --program-t)
681     ac_prev=program_transform_name ;;
682   -program-transform-name=* | --program-transform-name=* \
683   | --program-transform-nam=* | --program-transform-na=* \
684   | --program-transform-n=* | --program-transform-=* \
685   | --program-transform=* | --program-transfor=* \
686   | --program-transfo=* | --program-transf=* \
687   | --program-trans=* | --program-tran=* \
688   | --progr-tra=* | --program-tr=* | --program-t=*)
689     program_transform_name=$ac_optarg ;;
690
691   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
692   | -silent | --silent | --silen | --sile | --sil)
693     silent=yes ;;
694
695   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
696     ac_prev=sbindir ;;
697   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
698   | --sbi=* | --sb=*)
699     sbindir=$ac_optarg ;;
700
701   -sharedstatedir | --sharedstatedir | --sharedstatedi \
702   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
703   | --sharedst | --shareds | --shared | --share | --shar \
704   | --sha | --sh)
705     ac_prev=sharedstatedir ;;
706   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
707   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
708   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
709   | --sha=* | --sh=*)
710     sharedstatedir=$ac_optarg ;;
711
712   -site | --site | --sit)
713     ac_prev=site ;;
714   -site=* | --site=* | --sit=*)
715     site=$ac_optarg ;;
716
717   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
718     ac_prev=srcdir ;;
719   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
720     srcdir=$ac_optarg ;;
721
722   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
723   | --syscon | --sysco | --sysc | --sys | --sy)
724     ac_prev=sysconfdir ;;
725   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
726   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
727     sysconfdir=$ac_optarg ;;
728
729   -target | --target | --targe | --targ | --tar | --ta | --t)
730     ac_prev=target_alias ;;
731   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
732     target_alias=$ac_optarg ;;
733
734   -v | -verbose | --verbose | --verbos | --verbo | --verb)
735     verbose=yes ;;
736
737   -version | --version | --versio | --versi | --vers | -V)
738     ac_init_version=: ;;
739
740   -with-* | --with-*)
741     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
742     # Reject names that are not valid shell variable names.
743     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
744       { echo "$as_me: error: invalid package name: $ac_package" >&2
745    { (exit 1); exit 1; }; }
746     ac_package=`echo $ac_package| sed 's/-/_/g'`
747     case $ac_option in
748       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
749       *) ac_optarg=yes ;;
750     esac
751     eval "with_$ac_package='$ac_optarg'" ;;
752
753   -without-* | --without-*)
754     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
755     # Reject names that are not valid shell variable names.
756     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757       { echo "$as_me: error: invalid package name: $ac_package" >&2
758    { (exit 1); exit 1; }; }
759     ac_package=`echo $ac_package | sed 's/-/_/g'`
760     eval "with_$ac_package=no" ;;
761
762   --x)
763     # Obsolete; use --with-x.
764     with_x=yes ;;
765
766   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
767   | --x-incl | --x-inc | --x-in | --x-i)
768     ac_prev=x_includes ;;
769   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
770   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
771     x_includes=$ac_optarg ;;
772
773   -x-libraries | --x-libraries | --x-librarie | --x-librari \
774   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
775     ac_prev=x_libraries ;;
776   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
777   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
778     x_libraries=$ac_optarg ;;
779
780   -*) { echo "$as_me: error: unrecognized option: $ac_option
781 Try \`$0 --help' for more information." >&2
782    { (exit 1); exit 1; }; }
783     ;;
784
785   *=*)
786     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
787     # Reject names that are not valid shell variable names.
788     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
789       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
790    { (exit 1); exit 1; }; }
791     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
792     eval "$ac_envvar='$ac_optarg'"
793     export $ac_envvar ;;
794
795   *)
796     # FIXME: should be removed in autoconf 3.0.
797     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
798     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
799       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
800     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
801     ;;
802
803   esac
804 done
805
806 if test -n "$ac_prev"; then
807   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
808   { echo "$as_me: error: missing argument to $ac_option" >&2
809    { (exit 1); exit 1; }; }
810 fi
811
812 # Be sure to have absolute paths.
813 for ac_var in exec_prefix prefix
814 do
815   eval ac_val=$`echo $ac_var`
816   case $ac_val in
817     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
818     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
819    { (exit 1); exit 1; }; };;
820   esac
821 done
822
823 # Be sure to have absolute paths.
824 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
825               localstatedir libdir includedir oldincludedir infodir mandir
826 do
827   eval ac_val=$`echo $ac_var`
828   case $ac_val in
829     [\\/$]* | ?:[\\/]* ) ;;
830     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
831    { (exit 1); exit 1; }; };;
832   esac
833 done
834
835 # There might be people who depend on the old broken behavior: `$host'
836 # used to hold the argument of --host etc.
837 # FIXME: To remove some day.
838 build=$build_alias
839 host=$host_alias
840 target=$target_alias
841
842 # FIXME: To remove some day.
843 if test "x$host_alias" != x; then
844   if test "x$build_alias" = x; then
845     cross_compiling=maybe
846     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
847     If a cross compiler is detected then cross compile mode will be used." >&2
848   elif test "x$build_alias" != "x$host_alias"; then
849     cross_compiling=yes
850   fi
851 fi
852
853 ac_tool_prefix=
854 test -n "$host_alias" && ac_tool_prefix=$host_alias-
855
856 test "$silent" = yes && exec 6>/dev/null
857
858
859 # Find the source files, if location was not specified.
860 if test -z "$srcdir"; then
861   ac_srcdir_defaulted=yes
862   # Try the directory containing this script, then its parent.
863   ac_confdir=`(dirname "$0") 2>/dev/null ||
864 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
865          X"$0" : 'X\(//\)[^/]' \| \
866          X"$0" : 'X\(//\)$' \| \
867          X"$0" : 'X\(/\)' \| \
868          .     : '\(.\)' 2>/dev/null ||
869 echo X"$0" |
870     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
871           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
872           /^X\(\/\/\)$/{ s//\1/; q; }
873           /^X\(\/\).*/{ s//\1/; q; }
874           s/.*/./; q'`
875   srcdir=$ac_confdir
876   if test ! -r $srcdir/$ac_unique_file; then
877     srcdir=..
878   fi
879 else
880   ac_srcdir_defaulted=no
881 fi
882 if test ! -r $srcdir/$ac_unique_file; then
883   if test "$ac_srcdir_defaulted" = yes; then
884     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
885    { (exit 1); exit 1; }; }
886   else
887     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
888    { (exit 1); exit 1; }; }
889   fi
890 fi
891 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
892   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
893    { (exit 1); exit 1; }; }
894 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
895 ac_env_build_alias_set=${build_alias+set}
896 ac_env_build_alias_value=$build_alias
897 ac_cv_env_build_alias_set=${build_alias+set}
898 ac_cv_env_build_alias_value=$build_alias
899 ac_env_host_alias_set=${host_alias+set}
900 ac_env_host_alias_value=$host_alias
901 ac_cv_env_host_alias_set=${host_alias+set}
902 ac_cv_env_host_alias_value=$host_alias
903 ac_env_target_alias_set=${target_alias+set}
904 ac_env_target_alias_value=$target_alias
905 ac_cv_env_target_alias_set=${target_alias+set}
906 ac_cv_env_target_alias_value=$target_alias
907 ac_env_CC_set=${CC+set}
908 ac_env_CC_value=$CC
909 ac_cv_env_CC_set=${CC+set}
910 ac_cv_env_CC_value=$CC
911 ac_env_CFLAGS_set=${CFLAGS+set}
912 ac_env_CFLAGS_value=$CFLAGS
913 ac_cv_env_CFLAGS_set=${CFLAGS+set}
914 ac_cv_env_CFLAGS_value=$CFLAGS
915 ac_env_LDFLAGS_set=${LDFLAGS+set}
916 ac_env_LDFLAGS_value=$LDFLAGS
917 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_cv_env_LDFLAGS_value=$LDFLAGS
919 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
920 ac_env_CPPFLAGS_value=$CPPFLAGS
921 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
923 ac_env_CPP_set=${CPP+set}
924 ac_env_CPP_value=$CPP
925 ac_cv_env_CPP_set=${CPP+set}
926 ac_cv_env_CPP_value=$CPP
927 ac_env_CXX_set=${CXX+set}
928 ac_env_CXX_value=$CXX
929 ac_cv_env_CXX_set=${CXX+set}
930 ac_cv_env_CXX_value=$CXX
931 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
932 ac_env_CXXFLAGS_value=$CXXFLAGS
933 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
934 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
935 ac_env_CXXCPP_set=${CXXCPP+set}
936 ac_env_CXXCPP_value=$CXXCPP
937 ac_cv_env_CXXCPP_set=${CXXCPP+set}
938 ac_cv_env_CXXCPP_value=$CXXCPP
939 ac_env_F77_set=${F77+set}
940 ac_env_F77_value=$F77
941 ac_cv_env_F77_set=${F77+set}
942 ac_cv_env_F77_value=$F77
943 ac_env_FFLAGS_set=${FFLAGS+set}
944 ac_env_FFLAGS_value=$FFLAGS
945 ac_cv_env_FFLAGS_set=${FFLAGS+set}
946 ac_cv_env_FFLAGS_value=$FFLAGS
947 ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
948 ac_env_PKG_CONFIG_value=$PKG_CONFIG
949 ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
950 ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
951 ac_env_GLIBMM_CFLAGS_set=${GLIBMM_CFLAGS+set}
952 ac_env_GLIBMM_CFLAGS_value=$GLIBMM_CFLAGS
953 ac_cv_env_GLIBMM_CFLAGS_set=${GLIBMM_CFLAGS+set}
954 ac_cv_env_GLIBMM_CFLAGS_value=$GLIBMM_CFLAGS
955 ac_env_GLIBMM_LIBS_set=${GLIBMM_LIBS+set}
956 ac_env_GLIBMM_LIBS_value=$GLIBMM_LIBS
957 ac_cv_env_GLIBMM_LIBS_set=${GLIBMM_LIBS+set}
958 ac_cv_env_GLIBMM_LIBS_value=$GLIBMM_LIBS
959 ac_env_GTHREAD_CFLAGS_set=${GTHREAD_CFLAGS+set}
960 ac_env_GTHREAD_CFLAGS_value=$GTHREAD_CFLAGS
961 ac_cv_env_GTHREAD_CFLAGS_set=${GTHREAD_CFLAGS+set}
962 ac_cv_env_GTHREAD_CFLAGS_value=$GTHREAD_CFLAGS
963 ac_env_GTHREAD_LIBS_set=${GTHREAD_LIBS+set}
964 ac_env_GTHREAD_LIBS_value=$GTHREAD_LIBS
965 ac_cv_env_GTHREAD_LIBS_set=${GTHREAD_LIBS+set}
966 ac_cv_env_GTHREAD_LIBS_value=$GTHREAD_LIBS
967
968 #
969 # Report the --help message.
970 #
971 if test "$ac_init_help" = "long"; then
972   # Omit some internal or obsolete options to make the list less imposing.
973   # This message is too long to be a string in the A/UX 3.1 sh.
974   cat <<_ACEOF
975 \`configure' configures this package to adapt to many kinds of systems.
976
977 Usage: $0 [OPTION]... [VAR=VALUE]...
978
979 To assign environment variables (e.g., CC, CFLAGS...), specify them as
980 VAR=VALUE.  See below for descriptions of some of the useful variables.
981
982 Defaults for the options are specified in brackets.
983
984 Configuration:
985   -h, --help              display this help and exit
986       --help=short        display options specific to this package
987       --help=recursive    display the short help of all the included packages
988   -V, --version           display version information and exit
989   -q, --quiet, --silent   do not print \`checking...' messages
990       --cache-file=FILE   cache test results in FILE [disabled]
991   -C, --config-cache      alias for \`--cache-file=config.cache'
992   -n, --no-create         do not create output files
993       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
994
995 _ACEOF
996
997   cat <<_ACEOF
998 Installation directories:
999   --prefix=PREFIX         install architecture-independent files in PREFIX
1000                           [$ac_default_prefix]
1001   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1002                           [PREFIX]
1003
1004 By default, \`make install' will install all the files in
1005 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1006 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1007 for instance \`--prefix=\$HOME'.
1008
1009 For better control, use the options below.
1010
1011 Fine tuning of the installation directories:
1012   --bindir=DIR           user executables [EPREFIX/bin]
1013   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1014   --libexecdir=DIR       program executables [EPREFIX/libexec]
1015   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1016   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1017   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1018   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1019   --libdir=DIR           object code libraries [EPREFIX/lib]
1020   --includedir=DIR       C header files [PREFIX/include]
1021   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1022   --infodir=DIR          info documentation [PREFIX/info]
1023   --mandir=DIR           man documentation [PREFIX/man]
1024 _ACEOF
1025
1026   cat <<\_ACEOF
1027
1028 Program names:
1029   --program-prefix=PREFIX            prepend PREFIX to installed program names
1030   --program-suffix=SUFFIX            append SUFFIX to installed program names
1031   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1032
1033 System types:
1034   --build=BUILD     configure for building on BUILD [guessed]
1035   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1036 _ACEOF
1037 fi
1038
1039 if test -n "$ac_init_help"; then
1040
1041   cat <<\_ACEOF
1042
1043 Optional Features:
1044   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1045   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1046   --enable-maintainer-mode  enable make rules and dependencies not useful
1047                           (and sometimes confusing) to the casual installer
1048   --disable-dependency-tracking  speeds up one-time build
1049   --enable-dependency-tracking   do not reject slow dependency extractors
1050   --enable-static[=PKGS]
1051                           build static libraries [default=no]
1052   --enable-shared[=PKGS]
1053                           build shared libraries [default=yes]
1054   --enable-fast-install[=PKGS]
1055                           optimize for fast installation [default=yes]
1056   --disable-libtool-lock  avoid locking (might break parallel builds)
1057   --enable-fulldocs       Generate fully-documented reference docs, takes
1058                           longer to build.  [default=enabled for CVS builds]
1059   --enable-debug-refcounting  Print a debug message on every ref/unref.
1060                               [default=disabled]
1061   --enable-warnings=[none|minimum|maximum|hardcore]
1062                           Control compiler pickyness.  [default=minimum]
1063   --enable-use-deprecations
1064                           warn about deprecated usages [default=no]
1065   --enable-deprecated-api  Include (build) deprecated API in the libraries.
1066                               [default=yes]
1067   --enable-api-exceptions  Build exceptions API.
1068                               [default=yes]
1069   --enable-api-properties  Build properties API.
1070                               [default=yes]
1071   --enable-api-vfuncs  Build vfuncs API.
1072                               [default=yes]
1073   --enable-api-default-signal-handlers  Build default signal handlers API.
1074                               [default=yes]
1075
1076 Optional Packages:
1077   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1078   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1079   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1080   --with-pic              try to use only PIC/non-PIC objects [default=use
1081                           both]
1082   --with-tags[=TAGS]
1083                           include additional configurations [automatic]
1084
1085 Some influential environment variables:
1086   CC          C compiler command
1087   CFLAGS      C compiler flags
1088   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1089               nonstandard directory <lib dir>
1090   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1091               headers in a nonstandard directory <include dir>
1092   CPP         C preprocessor
1093   CXX         C++ compiler command
1094   CXXFLAGS    C++ compiler flags
1095   CXXCPP      C++ preprocessor
1096   F77         Fortran 77 compiler command
1097   FFLAGS      Fortran 77 compiler flags
1098   PKG_CONFIG  path to pkg-config utility
1099   GLIBMM_CFLAGS
1100               C compiler flags for GLIBMM, overriding pkg-config
1101   GLIBMM_LIBS linker flags for GLIBMM, overriding pkg-config
1102   GTHREAD_CFLAGS
1103               C compiler flags for GTHREAD, overriding pkg-config
1104   GTHREAD_LIBS
1105               linker flags for GTHREAD, overriding pkg-config
1106
1107 Use these variables to override the choices made by `configure' or to help
1108 it to find libraries and programs with nonstandard names/locations.
1109
1110 _ACEOF
1111 fi
1112
1113 if test "$ac_init_help" = "recursive"; then
1114   # If there are subdirs, report their specific --help.
1115   ac_popdir=`pwd`
1116   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1117     test -d $ac_dir || continue
1118     ac_builddir=.
1119
1120 if test "$ac_dir" != .; then
1121   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1122   # A "../" for each directory in $ac_dir_suffix.
1123   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1124 else
1125   ac_dir_suffix= ac_top_builddir=
1126 fi
1127
1128 case $srcdir in
1129   .)  # No --srcdir option.  We are building in place.
1130     ac_srcdir=.
1131     if test -z "$ac_top_builddir"; then
1132        ac_top_srcdir=.
1133     else
1134        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1135     fi ;;
1136   [\\/]* | ?:[\\/]* )  # Absolute path.
1137     ac_srcdir=$srcdir$ac_dir_suffix;
1138     ac_top_srcdir=$srcdir ;;
1139   *) # Relative path.
1140     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1141     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1142 esac
1143
1144 # Do not use `cd foo && pwd` to compute absolute paths, because
1145 # the directories may not exist.
1146 case `pwd` in
1147 .) ac_abs_builddir="$ac_dir";;
1148 *)
1149   case "$ac_dir" in
1150   .) ac_abs_builddir=`pwd`;;
1151   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1152   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1153   esac;;
1154 esac
1155 case $ac_abs_builddir in
1156 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1157 *)
1158   case ${ac_top_builddir}. in
1159   .) ac_abs_top_builddir=$ac_abs_builddir;;
1160   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1161   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1162   esac;;
1163 esac
1164 case $ac_abs_builddir in
1165 .) ac_abs_srcdir=$ac_srcdir;;
1166 *)
1167   case $ac_srcdir in
1168   .) ac_abs_srcdir=$ac_abs_builddir;;
1169   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1170   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1171   esac;;
1172 esac
1173 case $ac_abs_builddir in
1174 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1175 *)
1176   case $ac_top_srcdir in
1177   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1178   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1179   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1180   esac;;
1181 esac
1182
1183     cd $ac_dir
1184     # Check for guested configure; otherwise get Cygnus style configure.
1185     if test -f $ac_srcdir/configure.gnu; then
1186       echo
1187       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1188     elif test -f $ac_srcdir/configure; then
1189       echo
1190       $SHELL $ac_srcdir/configure  --help=recursive
1191     elif test -f $ac_srcdir/configure.ac ||
1192            test -f $ac_srcdir/configure.in; then
1193       echo
1194       $ac_configure --help
1195     else
1196       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1197     fi
1198     cd $ac_popdir
1199   done
1200 fi
1201
1202 test -n "$ac_init_help" && exit 0
1203 if $ac_init_version; then
1204   cat <<\_ACEOF
1205
1206 Copyright (C) 2003 Free Software Foundation, Inc.
1207 This configure script is free software; the Free Software Foundation
1208 gives unlimited permission to copy, distribute and modify it.
1209 _ACEOF
1210   exit 0
1211 fi
1212 exec 5>config.log
1213 cat >&5 <<_ACEOF
1214 This file contains any messages produced by compilers while
1215 running configure, to aid debugging if configure makes a mistake.
1216
1217 It was created by $as_me, which was
1218 generated by GNU Autoconf 2.59.  Invocation command line was
1219
1220   $ $0 $@
1221
1222 _ACEOF
1223 {
1224 cat <<_ASUNAME
1225 ## --------- ##
1226 ## Platform. ##
1227 ## --------- ##
1228
1229 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1230 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1231 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1232 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1233 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1234
1235 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1236 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1237
1238 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1239 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1240 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1241 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1242 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1243 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1244 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1245
1246 _ASUNAME
1247
1248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1249 for as_dir in $PATH
1250 do
1251   IFS=$as_save_IFS
1252   test -z "$as_dir" && as_dir=.
1253   echo "PATH: $as_dir"
1254 done
1255
1256 } >&5
1257
1258 cat >&5 <<_ACEOF
1259
1260
1261 ## ----------- ##
1262 ## Core tests. ##
1263 ## ----------- ##
1264
1265 _ACEOF
1266
1267
1268 # Keep a trace of the command line.
1269 # Strip out --no-create and --no-recursion so they do not pile up.
1270 # Strip out --silent because we don't want to record it for future runs.
1271 # Also quote any args containing shell meta-characters.
1272 # Make two passes to allow for proper duplicate-argument suppression.
1273 ac_configure_args=
1274 ac_configure_args0=
1275 ac_configure_args1=
1276 ac_sep=
1277 ac_must_keep_next=false
1278 for ac_pass in 1 2
1279 do
1280   for ac_arg
1281   do
1282     case $ac_arg in
1283     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1284     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1285     | -silent | --silent | --silen | --sile | --sil)
1286       continue ;;
1287     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1288       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1289     esac
1290     case $ac_pass in
1291     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1292     2)
1293       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1294       if test $ac_must_keep_next = true; then
1295         ac_must_keep_next=false # Got value, back to normal.
1296       else
1297         case $ac_arg in
1298           *=* | --config-cache | -C | -disable-* | --disable-* \
1299           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1300           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1301           | -with-* | --with-* | -without-* | --without-* | --x)
1302             case "$ac_configure_args0 " in
1303               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1304             esac
1305             ;;
1306           -* ) ac_must_keep_next=true ;;
1307         esac
1308       fi
1309       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1310       # Get rid of the leading space.
1311       ac_sep=" "
1312       ;;
1313     esac
1314   done
1315 done
1316 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1317 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1318
1319 # When interrupted or exit'd, cleanup temporary files, and complete
1320 # config.log.  We remove comments because anyway the quotes in there
1321 # would cause problems or look ugly.
1322 # WARNING: Be sure not to use single quotes in there, as some shells,
1323 # such as our DU 5.0 friend, will then `close' the trap.
1324 trap 'exit_status=$?
1325   # Save into config.log some information that might help in debugging.
1326   {
1327     echo
1328
1329     cat <<\_ASBOX
1330 ## ---------------- ##
1331 ## Cache variables. ##
1332 ## ---------------- ##
1333 _ASBOX
1334     echo
1335     # The following way of writing the cache mishandles newlines in values,
1336 {
1337   (set) 2>&1 |
1338     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1339     *ac_space=\ *)
1340       sed -n \
1341         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1342           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1343       ;;
1344     *)
1345       sed -n \
1346         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1347       ;;
1348     esac;
1349 }
1350     echo
1351
1352     cat <<\_ASBOX
1353 ## ----------------- ##
1354 ## Output variables. ##
1355 ## ----------------- ##
1356 _ASBOX
1357     echo
1358     for ac_var in $ac_subst_vars
1359     do
1360       eval ac_val=$`echo $ac_var`
1361       echo "$ac_var='"'"'$ac_val'"'"'"
1362     done | sort
1363     echo
1364
1365     if test -n "$ac_subst_files"; then
1366       cat <<\_ASBOX
1367 ## ------------- ##
1368 ## Output files. ##
1369 ## ------------- ##
1370 _ASBOX
1371       echo
1372       for ac_var in $ac_subst_files
1373       do
1374         eval ac_val=$`echo $ac_var`
1375         echo "$ac_var='"'"'$ac_val'"'"'"
1376       done | sort
1377       echo
1378     fi
1379
1380     if test -s confdefs.h; then
1381       cat <<\_ASBOX
1382 ## ----------- ##
1383 ## confdefs.h. ##
1384 ## ----------- ##
1385 _ASBOX
1386       echo
1387       sed "/^$/d" confdefs.h | sort
1388       echo
1389     fi
1390     test "$ac_signal" != 0 &&
1391       echo "$as_me: caught signal $ac_signal"
1392     echo "$as_me: exit $exit_status"
1393   } >&5
1394   rm -f core *.core &&
1395   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1396     exit $exit_status
1397      ' 0
1398 for ac_signal in 1 2 13 15; do
1399   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1400 done
1401 ac_signal=0
1402
1403 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1404 rm -rf conftest* confdefs.h
1405 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1406 echo >confdefs.h
1407
1408 # Predefined preprocessor variables.
1409
1410 cat >>confdefs.h <<_ACEOF
1411 #define PACKAGE_NAME "$PACKAGE_NAME"
1412 _ACEOF
1413
1414
1415 cat >>confdefs.h <<_ACEOF
1416 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1417 _ACEOF
1418
1419
1420 cat >>confdefs.h <<_ACEOF
1421 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1422 _ACEOF
1423
1424
1425 cat >>confdefs.h <<_ACEOF
1426 #define PACKAGE_STRING "$PACKAGE_STRING"
1427 _ACEOF
1428
1429
1430 cat >>confdefs.h <<_ACEOF
1431 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1432 _ACEOF
1433
1434
1435 # Let the site file select an alternate cache file if it wants to.
1436 # Prefer explicitly selected file to automatically selected ones.
1437 if test -z "$CONFIG_SITE"; then
1438   if test "x$prefix" != xNONE; then
1439     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1440   else
1441     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1442   fi
1443 fi
1444 for ac_site_file in $CONFIG_SITE; do
1445   if test -r "$ac_site_file"; then
1446     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1447 echo "$as_me: loading site script $ac_site_file" >&6;}
1448     sed 's/^/| /' "$ac_site_file" >&5
1449     . "$ac_site_file"
1450   fi
1451 done
1452
1453 if test -r "$cache_file"; then
1454   # Some versions of bash will fail to source /dev/null (special
1455   # files actually), so we avoid doing that.
1456   if test -f "$cache_file"; then
1457     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1458 echo "$as_me: loading cache $cache_file" >&6;}
1459     case $cache_file in
1460       [\\/]* | ?:[\\/]* ) . $cache_file;;
1461       *)                      . ./$cache_file;;
1462     esac
1463   fi
1464 else
1465   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1466 echo "$as_me: creating cache $cache_file" >&6;}
1467   >$cache_file
1468 fi
1469
1470 # Check that the precious variables saved in the cache have kept the same
1471 # value.
1472 ac_cache_corrupted=false
1473 for ac_var in `(set) 2>&1 |
1474                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1475   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1476   eval ac_new_set=\$ac_env_${ac_var}_set
1477   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1478   eval ac_new_val="\$ac_env_${ac_var}_value"
1479   case $ac_old_set,$ac_new_set in
1480     set,)
1481       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1482 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1483       ac_cache_corrupted=: ;;
1484     ,set)
1485       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1486 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1487       ac_cache_corrupted=: ;;
1488     ,);;
1489     *)
1490       if test "x$ac_old_val" != "x$ac_new_val"; then
1491         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1492 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1493         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1494 echo "$as_me:   former value:  $ac_old_val" >&2;}
1495         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1496 echo "$as_me:   current value: $ac_new_val" >&2;}
1497         ac_cache_corrupted=:
1498       fi;;
1499   esac
1500   # Pass precious variables to config.status.
1501   if test "$ac_new_set" = set; then
1502     case $ac_new_val in
1503     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1504       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1505     *) ac_arg=$ac_var=$ac_new_val ;;
1506     esac
1507     case " $ac_configure_args " in
1508       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1509       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1510     esac
1511   fi
1512 done
1513 if $ac_cache_corrupted; then
1514   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1515 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1516   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1517 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1518    { (exit 1); exit 1; }; }
1519 fi
1520
1521 ac_ext=c
1522 ac_cpp='$CPP $CPPFLAGS'
1523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547 #########################################################################
1548 #  Version and initialization
1549 #########################################################################
1550 GLIBMM_MAJOR_VERSION=2
1551 GLIBMM_MINOR_VERSION=13
1552 GLIBMM_MICRO_VERSION=3
1553 GLIBMM_VERSION=$GLIBMM_MAJOR_VERSION.$GLIBMM_MINOR_VERSION.$GLIBMM_MICRO_VERSION
1554 GLIBMM_RELEASE=$GLIBMM_MAJOR_VERSION.$GLIBMM_MINOR_VERSION
1555
1556 cat >>confdefs.h <<_ACEOF
1557 #define GLIBMM_MAJOR_VERSION $GLIBMM_MAJOR_VERSION
1558 _ACEOF
1559
1560
1561 cat >>confdefs.h <<_ACEOF
1562 #define GLIBMM_MINOR_VERSION $GLIBMM_MINOR_VERSION
1563 _ACEOF
1564
1565
1566 cat >>confdefs.h <<_ACEOF
1567 #define GLIBMM_MICRO_VERSION $GLIBMM_MICRO_VERSION
1568 _ACEOF
1569
1570
1571
1572
1573
1574
1575
1576 #
1577 # +1 : ? : +1  == new interface that does not break old one
1578 # +1 : ? : 0   == new interface that breaks old one
1579 #  ? : ? : 0   == no new interfaces, but breaks apps
1580 #  ? :+1 : ?   == just some internal changes, nothing breaks but might work
1581 #                 better
1582 # CURRENT : REVISION : AGE
1583 LIBGLIBMM_SO_VERSION=1:24:0
1584
1585
1586 ac_aux_dir=
1587 for ac_dir in scripts $srcdir/scripts; do
1588   if test -f $ac_dir/install-sh; then
1589     ac_aux_dir=$ac_dir
1590     ac_install_sh="$ac_aux_dir/install-sh -c"
1591     break
1592   elif test -f $ac_dir/install.sh; then
1593     ac_aux_dir=$ac_dir
1594     ac_install_sh="$ac_aux_dir/install.sh -c"
1595     break
1596   elif test -f $ac_dir/shtool; then
1597     ac_aux_dir=$ac_dir
1598     ac_install_sh="$ac_aux_dir/shtool install -c"
1599     break
1600   fi
1601 done
1602 if test -z "$ac_aux_dir"; then
1603   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts $srcdir/scripts" >&5
1604 echo "$as_me: error: cannot find install-sh or install.sh in scripts $srcdir/scripts" >&2;}
1605    { (exit 1); exit 1; }; }
1606 fi
1607 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1608 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1609 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1610
1611
1612 VERSION=$GLIBMM_VERSION
1613 PACKAGE=glibmm
1614
1615 am__api_version="1.9"
1616 # Find a good install program.  We prefer a C program (faster),
1617 # so one script is as good as another.  But avoid the broken or
1618 # incompatible versions:
1619 # SysV /etc/install, /usr/sbin/install
1620 # SunOS /usr/etc/install
1621 # IRIX /sbin/install
1622 # AIX /bin/install
1623 # AmigaOS /C/install, which installs bootblocks on floppy discs
1624 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1625 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1626 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1627 # OS/2's system install, which has a completely different semantic
1628 # ./install, which can be erroneously created by make from ./install.sh.
1629 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1630 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1631 if test -z "$INSTALL"; then
1632 if test "${ac_cv_path_install+set}" = set; then
1633   echo $ECHO_N "(cached) $ECHO_C" >&6
1634 else
1635   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1636 for as_dir in $PATH
1637 do
1638   IFS=$as_save_IFS
1639   test -z "$as_dir" && as_dir=.
1640   # Account for people who put trailing slashes in PATH elements.
1641 case $as_dir/ in
1642   ./ | .// | /cC/* | \
1643   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1644   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1645   /usr/ucb/* ) ;;
1646   *)
1647     # OSF1 and SCO ODT 3.0 have their own names for install.
1648     # Don't use installbsd from OSF since it installs stuff as root
1649     # by default.
1650     for ac_prog in ginstall scoinst install; do
1651       for ac_exec_ext in '' $ac_executable_extensions; do
1652         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1653           if test $ac_prog = install &&
1654             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1655             # AIX install.  It has an incompatible calling convention.
1656             :
1657           elif test $ac_prog = install &&
1658             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1659             # program-specific install script used by HP pwplus--don't use.
1660             :
1661           else
1662             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1663             break 3
1664           fi
1665         fi
1666       done
1667     done
1668     ;;
1669 esac
1670 done
1671
1672
1673 fi
1674   if test "${ac_cv_path_install+set}" = set; then
1675     INSTALL=$ac_cv_path_install
1676   else
1677     # As a last resort, use the slow shell script.  We don't cache a
1678     # path for INSTALL within a source directory, because that will
1679     # break other packages using the cache if that directory is
1680     # removed, or if the path is relative.
1681     INSTALL=$ac_install_sh
1682   fi
1683 fi
1684 echo "$as_me:$LINENO: result: $INSTALL" >&5
1685 echo "${ECHO_T}$INSTALL" >&6
1686
1687 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1688 # It thinks the first close brace ends the variable substitution.
1689 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1690
1691 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1692
1693 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1694
1695 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1696 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1697 # Just in case
1698 sleep 1
1699 echo timestamp > conftest.file
1700 # Do `set' in a subshell so we don't clobber the current shell's
1701 # arguments.  Must try -L first in case configure is actually a
1702 # symlink; some systems play weird games with the mod time of symlinks
1703 # (eg FreeBSD returns the mod time of the symlink's containing
1704 # directory).
1705 if (
1706    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1707    if test "$*" = "X"; then
1708       # -L didn't work.
1709       set X `ls -t $srcdir/configure conftest.file`
1710    fi
1711    rm -f conftest.file
1712    if test "$*" != "X $srcdir/configure conftest.file" \
1713       && test "$*" != "X conftest.file $srcdir/configure"; then
1714
1715       # If neither matched, then we have a broken ls.  This can happen
1716       # if, for instance, CONFIG_SHELL is bash and it inherits a
1717       # broken ls alias from the environment.  This has actually
1718       # happened.  Such a system could not be considered "sane".
1719       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1720 alias in your environment" >&5
1721 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1722 alias in your environment" >&2;}
1723    { (exit 1); exit 1; }; }
1724    fi
1725
1726    test "$2" = conftest.file
1727    )
1728 then
1729    # Ok.
1730    :
1731 else
1732    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1733 Check your system clock" >&5
1734 echo "$as_me: error: newly created file is older than distributed files!
1735 Check your system clock" >&2;}
1736    { (exit 1); exit 1; }; }
1737 fi
1738 echo "$as_me:$LINENO: result: yes" >&5
1739 echo "${ECHO_T}yes" >&6
1740 test "$program_prefix" != NONE &&
1741   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1742 # Use a double $ so make ignores it.
1743 test "$program_suffix" != NONE &&
1744   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1745 # Double any \ or $.  echo might interpret backslashes.
1746 # By default was `s,x,x', remove it if useless.
1747 cat <<\_ACEOF >conftest.sed
1748 s/[\\$]/&&/g;s/;s,x,x,$//
1749 _ACEOF
1750 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1751 rm conftest.sed
1752
1753 # expand $ac_aux_dir to an absolute path
1754 am_aux_dir=`cd $ac_aux_dir && pwd`
1755
1756 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1757 # Use eval to expand $SHELL
1758 if eval "$MISSING --run true"; then
1759   am_missing_run="$MISSING --run "
1760 else
1761   am_missing_run=
1762   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1763 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1764 fi
1765
1766 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1767   # We used to keeping the `.' as first argument, in order to
1768   # allow $(mkdir_p) to be used without argument.  As in
1769   #   $(mkdir_p) $(somedir)
1770   # where $(somedir) is conditionally defined.  However this is wrong
1771   # for two reasons:
1772   #  1. if the package is installed by a user who cannot write `.'
1773   #     make install will fail,
1774   #  2. the above comment should most certainly read
1775   #     $(mkdir_p) $(DESTDIR)$(somedir)
1776   #     so it does not work when $(somedir) is undefined and
1777   #     $(DESTDIR) is not.
1778   #  To support the latter case, we have to write
1779   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1780   #  so the `.' trick is pointless.
1781   mkdir_p='mkdir -p --'
1782 else
1783   # On NextStep and OpenStep, the `mkdir' command does not
1784   # recognize any option.  It will interpret all options as
1785   # directories to create, and then abort because `.' already
1786   # exists.
1787   for d in ./-p ./--version;
1788   do
1789     test -d $d && rmdir $d
1790   done
1791   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1792   if test -f "$ac_aux_dir/mkinstalldirs"; then
1793     mkdir_p='$(mkinstalldirs)'
1794   else
1795     mkdir_p='$(install_sh) -d'
1796   fi
1797 fi
1798
1799 for ac_prog in gawk mawk nawk awk
1800 do
1801   # Extract the first word of "$ac_prog", so it can be a program name with args.
1802 set dummy $ac_prog; ac_word=$2
1803 echo "$as_me:$LINENO: checking for $ac_word" >&5
1804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1805 if test "${ac_cv_prog_AWK+set}" = set; then
1806   echo $ECHO_N "(cached) $ECHO_C" >&6
1807 else
1808   if test -n "$AWK"; then
1809   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1810 else
1811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1812 for as_dir in $PATH
1813 do
1814   IFS=$as_save_IFS
1815   test -z "$as_dir" && as_dir=.
1816   for ac_exec_ext in '' $ac_executable_extensions; do
1817   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1818     ac_cv_prog_AWK="$ac_prog"
1819     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1820     break 2
1821   fi
1822 done
1823 done
1824
1825 fi
1826 fi
1827 AWK=$ac_cv_prog_AWK
1828 if test -n "$AWK"; then
1829   echo "$as_me:$LINENO: result: $AWK" >&5
1830 echo "${ECHO_T}$AWK" >&6
1831 else
1832   echo "$as_me:$LINENO: result: no" >&5
1833 echo "${ECHO_T}no" >&6
1834 fi
1835
1836   test -n "$AWK" && break
1837 done
1838
1839 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1840 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1841 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1842 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1843   echo $ECHO_N "(cached) $ECHO_C" >&6
1844 else
1845   cat >conftest.make <<\_ACEOF
1846 all:
1847         @echo 'ac_maketemp="$(MAKE)"'
1848 _ACEOF
1849 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1850 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1851 if test -n "$ac_maketemp"; then
1852   eval ac_cv_prog_make_${ac_make}_set=yes
1853 else
1854   eval ac_cv_prog_make_${ac_make}_set=no
1855 fi
1856 rm -f conftest.make
1857 fi
1858 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1859   echo "$as_me:$LINENO: result: yes" >&5
1860 echo "${ECHO_T}yes" >&6
1861   SET_MAKE=
1862 else
1863   echo "$as_me:$LINENO: result: no" >&5
1864 echo "${ECHO_T}no" >&6
1865   SET_MAKE="MAKE=${MAKE-make}"
1866 fi
1867
1868 rm -rf .tst 2>/dev/null
1869 mkdir .tst 2>/dev/null
1870 if test -d .tst; then
1871   am__leading_dot=.
1872 else
1873   am__leading_dot=_
1874 fi
1875 rmdir .tst 2>/dev/null
1876
1877 # test to see if srcdir already configured
1878 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1879    test -f $srcdir/config.status; then
1880   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1881 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1882    { (exit 1); exit 1; }; }
1883 fi
1884
1885 # test whether we have cygpath
1886 if test -z "$CYGPATH_W"; then
1887   if (cygpath --version) >/dev/null 2>/dev/null; then
1888     CYGPATH_W='cygpath -w'
1889   else
1890     CYGPATH_W=echo
1891   fi
1892 fi
1893
1894
1895 # Define the identity of the package.
1896  PACKAGE=$PACKAGE
1897  VERSION=$VERSION
1898
1899
1900 cat >>confdefs.h <<_ACEOF
1901 #define PACKAGE "$PACKAGE"
1902 _ACEOF
1903
1904
1905 cat >>confdefs.h <<_ACEOF
1906 #define VERSION "$VERSION"
1907 _ACEOF
1908
1909 # Some tools Automake needs.
1910
1911 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1912
1913
1914 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1915
1916
1917 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1918
1919
1920 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1921
1922
1923 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1924
1925 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1926
1927 # Installed binaries are usually stripped using `strip' when the user
1928 # run `make install-strip'.  However `strip' might not be the right
1929 # tool to use in cross-compilation environments, therefore Automake
1930 # will honor the `STRIP' environment variable to overrule this program.
1931 if test "$cross_compiling" != no; then
1932   if test -n "$ac_tool_prefix"; then
1933   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1934 set dummy ${ac_tool_prefix}strip; ac_word=$2
1935 echo "$as_me:$LINENO: checking for $ac_word" >&5
1936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1937 if test "${ac_cv_prog_STRIP+set}" = set; then
1938   echo $ECHO_N "(cached) $ECHO_C" >&6
1939 else
1940   if test -n "$STRIP"; then
1941   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1942 else
1943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1944 for as_dir in $PATH
1945 do
1946   IFS=$as_save_IFS
1947   test -z "$as_dir" && as_dir=.
1948   for ac_exec_ext in '' $ac_executable_extensions; do
1949   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1950     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1951     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1952     break 2
1953   fi
1954 done
1955 done
1956
1957 fi
1958 fi
1959 STRIP=$ac_cv_prog_STRIP
1960 if test -n "$STRIP"; then
1961   echo "$as_me:$LINENO: result: $STRIP" >&5
1962 echo "${ECHO_T}$STRIP" >&6
1963 else
1964   echo "$as_me:$LINENO: result: no" >&5
1965 echo "${ECHO_T}no" >&6
1966 fi
1967
1968 fi
1969 if test -z "$ac_cv_prog_STRIP"; then
1970   ac_ct_STRIP=$STRIP
1971   # Extract the first word of "strip", so it can be a program name with args.
1972 set dummy strip; ac_word=$2
1973 echo "$as_me:$LINENO: checking for $ac_word" >&5
1974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1975 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1976   echo $ECHO_N "(cached) $ECHO_C" >&6
1977 else
1978   if test -n "$ac_ct_STRIP"; then
1979   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1980 else
1981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1982 for as_dir in $PATH
1983 do
1984   IFS=$as_save_IFS
1985   test -z "$as_dir" && as_dir=.
1986   for ac_exec_ext in '' $ac_executable_extensions; do
1987   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1988     ac_cv_prog_ac_ct_STRIP="strip"
1989     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1990     break 2
1991   fi
1992 done
1993 done
1994
1995   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1996 fi
1997 fi
1998 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1999 if test -n "$ac_ct_STRIP"; then
2000   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2001 echo "${ECHO_T}$ac_ct_STRIP" >&6
2002 else
2003   echo "$as_me:$LINENO: result: no" >&5
2004 echo "${ECHO_T}no" >&6
2005 fi
2006
2007   STRIP=$ac_ct_STRIP
2008 else
2009   STRIP="$ac_cv_prog_STRIP"
2010 fi
2011
2012 fi
2013 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2014
2015 # We need awk for the "check" target.  The system "awk" is bad on
2016 # some platforms.
2017 # Always define AMTAR for backward compatibility.
2018
2019 AMTAR=${AMTAR-"${am_missing_run}tar"}
2020
2021 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2022
2023
2024
2025
2026
2027
2028                     ac_config_headers="$ac_config_headers config.h glib/glibmmconfig.h"
2029
2030 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2031 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
2032     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2033 if test "${enable_maintainer_mode+set}" = set; then
2034   enableval="$enable_maintainer_mode"
2035   USE_MAINTAINER_MODE=$enableval
2036 else
2037   USE_MAINTAINER_MODE=no
2038 fi;
2039   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2040 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2041
2042
2043 if test $USE_MAINTAINER_MODE = yes; then
2044   MAINTAINER_MODE_TRUE=
2045   MAINTAINER_MODE_FALSE='#'
2046 else
2047   MAINTAINER_MODE_TRUE='#'
2048   MAINTAINER_MODE_FALSE=
2049 fi
2050
2051   MAINT=$MAINTAINER_MODE_TRUE
2052
2053
2054
2055   test "x$ACLOCAL_FLAGS" = "x" || ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
2056   for dir in scripts
2057   do
2058     ACLOCAL="$ACLOCAL -I $srcdir/$dir"
2059   done
2060
2061
2062
2063 #########################################################################
2064 #  Configure arguments
2065 #########################################################################
2066
2067 #########################################################################
2068 #  Environment Checks
2069 #########################################################################
2070 ac_ext=c
2071 ac_cpp='$CPP $CPPFLAGS'
2072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2075 if test -n "$ac_tool_prefix"; then
2076   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2077 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2078 echo "$as_me:$LINENO: checking for $ac_word" >&5
2079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2080 if test "${ac_cv_prog_CC+set}" = set; then
2081   echo $ECHO_N "(cached) $ECHO_C" >&6
2082 else
2083   if test -n "$CC"; then
2084   ac_cv_prog_CC="$CC" # Let the user override the test.
2085 else
2086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2087 for as_dir in $PATH
2088 do
2089   IFS=$as_save_IFS
2090   test -z "$as_dir" && as_dir=.
2091   for ac_exec_ext in '' $ac_executable_extensions; do
2092   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2093     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2094     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2095     break 2
2096   fi
2097 done
2098 done
2099
2100 fi
2101 fi
2102 CC=$ac_cv_prog_CC
2103 if test -n "$CC"; then
2104   echo "$as_me:$LINENO: result: $CC" >&5
2105 echo "${ECHO_T}$CC" >&6
2106 else
2107   echo "$as_me:$LINENO: result: no" >&5
2108 echo "${ECHO_T}no" >&6
2109 fi
2110
2111 fi
2112 if test -z "$ac_cv_prog_CC"; then
2113   ac_ct_CC=$CC
2114   # Extract the first word of "gcc", so it can be a program name with args.
2115 set dummy gcc; ac_word=$2
2116 echo "$as_me:$LINENO: checking for $ac_word" >&5
2117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2118 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2119   echo $ECHO_N "(cached) $ECHO_C" >&6
2120 else
2121   if test -n "$ac_ct_CC"; then
2122   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2123 else
2124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2125 for as_dir in $PATH
2126 do
2127   IFS=$as_save_IFS
2128   test -z "$as_dir" && as_dir=.
2129   for ac_exec_ext in '' $ac_executable_extensions; do
2130   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2131     ac_cv_prog_ac_ct_CC="gcc"
2132     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2133     break 2
2134   fi
2135 done
2136 done
2137
2138 fi
2139 fi
2140 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2141 if test -n "$ac_ct_CC"; then
2142   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2143 echo "${ECHO_T}$ac_ct_CC" >&6
2144 else
2145   echo "$as_me:$LINENO: result: no" >&5
2146 echo "${ECHO_T}no" >&6
2147 fi
2148
2149   CC=$ac_ct_CC
2150 else
2151   CC="$ac_cv_prog_CC"
2152 fi
2153
2154 if test -z "$CC"; then
2155   if test -n "$ac_tool_prefix"; then
2156   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2157 set dummy ${ac_tool_prefix}cc; ac_word=$2
2158 echo "$as_me:$LINENO: checking for $ac_word" >&5
2159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2160 if test "${ac_cv_prog_CC+set}" = set; then
2161   echo $ECHO_N "(cached) $ECHO_C" >&6
2162 else
2163   if test -n "$CC"; then
2164   ac_cv_prog_CC="$CC" # Let the user override the test.
2165 else
2166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2167 for as_dir in $PATH
2168 do
2169   IFS=$as_save_IFS
2170   test -z "$as_dir" && as_dir=.
2171   for ac_exec_ext in '' $ac_executable_extensions; do
2172   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2173     ac_cv_prog_CC="${ac_tool_prefix}cc"
2174     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2175     break 2
2176   fi
2177 done
2178 done
2179
2180 fi
2181 fi
2182 CC=$ac_cv_prog_CC
2183 if test -n "$CC"; then
2184   echo "$as_me:$LINENO: result: $CC" >&5
2185 echo "${ECHO_T}$CC" >&6
2186 else
2187   echo "$as_me:$LINENO: result: no" >&5
2188 echo "${ECHO_T}no" >&6
2189 fi
2190
2191 fi
2192 if test -z "$ac_cv_prog_CC"; then
2193   ac_ct_CC=$CC
2194   # Extract the first word of "cc", so it can be a program name with args.
2195 set dummy cc; ac_word=$2
2196 echo "$as_me:$LINENO: checking for $ac_word" >&5
2197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2198 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2199   echo $ECHO_N "(cached) $ECHO_C" >&6
2200 else
2201   if test -n "$ac_ct_CC"; then
2202   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2203 else
2204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2205 for as_dir in $PATH
2206 do
2207   IFS=$as_save_IFS
2208   test -z "$as_dir" && as_dir=.
2209   for ac_exec_ext in '' $ac_executable_extensions; do
2210   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2211     ac_cv_prog_ac_ct_CC="cc"
2212     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2213     break 2
2214   fi
2215 done
2216 done
2217
2218 fi
2219 fi
2220 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2221 if test -n "$ac_ct_CC"; then
2222   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2223 echo "${ECHO_T}$ac_ct_CC" >&6
2224 else
2225   echo "$as_me:$LINENO: result: no" >&5
2226 echo "${ECHO_T}no" >&6
2227 fi
2228
2229   CC=$ac_ct_CC
2230 else
2231   CC="$ac_cv_prog_CC"
2232 fi
2233
2234 fi
2235 if test -z "$CC"; then
2236   # Extract the first word of "cc", so it can be a program name with args.
2237 set dummy cc; ac_word=$2
2238 echo "$as_me:$LINENO: checking for $ac_word" >&5
2239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2240 if test "${ac_cv_prog_CC+set}" = set; then
2241   echo $ECHO_N "(cached) $ECHO_C" >&6
2242 else
2243   if test -n "$CC"; then
2244   ac_cv_prog_CC="$CC" # Let the user override the test.
2245 else
2246   ac_prog_rejected=no
2247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2248 for as_dir in $PATH
2249 do
2250   IFS=$as_save_IFS
2251   test -z "$as_dir" && as_dir=.
2252   for ac_exec_ext in '' $ac_executable_extensions; do
2253   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2254     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2255        ac_prog_rejected=yes
2256        continue
2257      fi
2258     ac_cv_prog_CC="cc"
2259     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2260     break 2
2261   fi
2262 done
2263 done
2264
2265 if test $ac_prog_rejected = yes; then
2266   # We found a bogon in the path, so make sure we never use it.
2267   set dummy $ac_cv_prog_CC
2268   shift
2269   if test $# != 0; then
2270     # We chose a different compiler from the bogus one.
2271     # However, it has the same basename, so the bogon will be chosen
2272     # first if we set CC to just the basename; use the full file name.
2273     shift
2274     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2275   fi
2276 fi
2277 fi
2278 fi
2279 CC=$ac_cv_prog_CC
2280 if test -n "$CC"; then
2281   echo "$as_me:$LINENO: result: $CC" >&5
2282 echo "${ECHO_T}$CC" >&6
2283 else
2284   echo "$as_me:$LINENO: result: no" >&5
2285 echo "${ECHO_T}no" >&6
2286 fi
2287
2288 fi
2289 if test -z "$CC"; then
2290   if test -n "$ac_tool_prefix"; then
2291   for ac_prog in cl
2292   do
2293     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2294 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2295 echo "$as_me:$LINENO: checking for $ac_word" >&5
2296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2297 if test "${ac_cv_prog_CC+set}" = set; then
2298   echo $ECHO_N "(cached) $ECHO_C" >&6
2299 else
2300   if test -n "$CC"; then
2301   ac_cv_prog_CC="$CC" # Let the user override the test.
2302 else
2303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2304 for as_dir in $PATH
2305 do
2306   IFS=$as_save_IFS
2307   test -z "$as_dir" && as_dir=.
2308   for ac_exec_ext in '' $ac_executable_extensions; do
2309   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2310     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2311     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2312     break 2
2313   fi
2314 done
2315 done
2316
2317 fi
2318 fi
2319 CC=$ac_cv_prog_CC
2320 if test -n "$CC"; then
2321   echo "$as_me:$LINENO: result: $CC" >&5
2322 echo "${ECHO_T}$CC" >&6
2323 else
2324   echo "$as_me:$LINENO: result: no" >&5
2325 echo "${ECHO_T}no" >&6
2326 fi
2327
2328     test -n "$CC" && break
2329   done
2330 fi
2331 if test -z "$CC"; then
2332   ac_ct_CC=$CC
2333   for ac_prog in cl
2334 do
2335   # Extract the first word of "$ac_prog", so it can be a program name with args.
2336 set dummy $ac_prog; ac_word=$2
2337 echo "$as_me:$LINENO: checking for $ac_word" >&5
2338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2339 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2340   echo $ECHO_N "(cached) $ECHO_C" >&6
2341 else
2342   if test -n "$ac_ct_CC"; then
2343   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2344 else
2345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2346 for as_dir in $PATH
2347 do
2348   IFS=$as_save_IFS
2349   test -z "$as_dir" && as_dir=.
2350   for ac_exec_ext in '' $ac_executable_extensions; do
2351   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2352     ac_cv_prog_ac_ct_CC="$ac_prog"
2353     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2354     break 2
2355   fi
2356 done
2357 done
2358
2359 fi
2360 fi
2361 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2362 if test -n "$ac_ct_CC"; then
2363   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2364 echo "${ECHO_T}$ac_ct_CC" >&6
2365 else
2366   echo "$as_me:$LINENO: result: no" >&5
2367 echo "${ECHO_T}no" >&6
2368 fi
2369
2370   test -n "$ac_ct_CC" && break
2371 done
2372
2373   CC=$ac_ct_CC
2374 fi
2375
2376 fi
2377
2378
2379 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2380 See \`config.log' for more details." >&5
2381 echo "$as_me: error: no acceptable C compiler found in \$PATH
2382 See \`config.log' for more details." >&2;}
2383    { (exit 1); exit 1; }; }
2384
2385 # Provide some information about the compiler.
2386 echo "$as_me:$LINENO:" \
2387      "checking for C compiler version" >&5
2388 ac_compiler=`set X $ac_compile; echo $2`
2389 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2390   (eval $ac_compiler --version </dev/null >&5) 2>&5
2391   ac_status=$?
2392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393   (exit $ac_status); }
2394 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2395   (eval $ac_compiler -v </dev/null >&5) 2>&5
2396   ac_status=$?
2397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398   (exit $ac_status); }
2399 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2400   (eval $ac_compiler -V </dev/null >&5) 2>&5
2401   ac_status=$?
2402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403   (exit $ac_status); }
2404
2405 cat >conftest.$ac_ext <<_ACEOF
2406 /* confdefs.h.  */
2407 _ACEOF
2408 cat confdefs.h >>conftest.$ac_ext
2409 cat >>conftest.$ac_ext <<_ACEOF
2410 /* end confdefs.h.  */
2411
2412 int
2413 main ()
2414 {
2415
2416   ;
2417   return 0;
2418 }
2419 _ACEOF
2420 ac_clean_files_save=$ac_clean_files
2421 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2422 # Try to create an executable without -o first, disregard a.out.
2423 # It will help us diagnose broken compilers, and finding out an intuition
2424 # of exeext.
2425 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2426 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2427 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2428 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2429   (eval $ac_link_default) 2>&5
2430   ac_status=$?
2431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432   (exit $ac_status); }; then
2433   # Find the output, starting from the most likely.  This scheme is
2434 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2435 # resort.
2436
2437 # Be careful to initialize this variable, since it used to be cached.
2438 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2439 ac_cv_exeext=
2440 # b.out is created by i960 compilers.
2441 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2442 do
2443   test -f "$ac_file" || continue
2444   case $ac_file in
2445     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2446         ;;
2447     conftest.$ac_ext )
2448         # This is the source file.
2449         ;;
2450     [ab].out )
2451         # We found the default executable, but exeext='' is most
2452         # certainly right.
2453         break;;
2454     *.* )
2455         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2456         # FIXME: I believe we export ac_cv_exeext for Libtool,
2457         # but it would be cool to find out if it's true.  Does anybody
2458         # maintain Libtool? --akim.
2459         export ac_cv_exeext
2460         break;;
2461     * )
2462         break;;
2463   esac
2464 done
2465 else
2466   echo "$as_me: failed program was:" >&5
2467 sed 's/^/| /' conftest.$ac_ext >&5
2468
2469 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2470 See \`config.log' for more details." >&5
2471 echo "$as_me: error: C compiler cannot create executables
2472 See \`config.log' for more details." >&2;}
2473    { (exit 77); exit 77; }; }
2474 fi
2475
2476 ac_exeext=$ac_cv_exeext
2477 echo "$as_me:$LINENO: result: $ac_file" >&5
2478 echo "${ECHO_T}$ac_file" >&6
2479
2480 # Check the compiler produces executables we can run.  If not, either
2481 # the compiler is broken, or we cross compile.
2482 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2483 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2484 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2485 # If not cross compiling, check that we can run a simple program.
2486 if test "$cross_compiling" != yes; then
2487   if { ac_try='./$ac_file'
2488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2489   (eval $ac_try) 2>&5
2490   ac_status=$?
2491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492   (exit $ac_status); }; }; then
2493     cross_compiling=no
2494   else
2495     if test "$cross_compiling" = maybe; then
2496         cross_compiling=yes
2497     else
2498         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2499 If you meant to cross compile, use \`--host'.
2500 See \`config.log' for more details." >&5
2501 echo "$as_me: error: cannot run C compiled programs.
2502 If you meant to cross compile, use \`--host'.
2503 See \`config.log' for more details." >&2;}
2504    { (exit 1); exit 1; }; }
2505     fi
2506   fi
2507 fi
2508 echo "$as_me:$LINENO: result: yes" >&5
2509 echo "${ECHO_T}yes" >&6
2510
2511 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2512 ac_clean_files=$ac_clean_files_save
2513 # Check the compiler produces executables we can run.  If not, either
2514 # the compiler is broken, or we cross compile.
2515 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2516 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2517 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2518 echo "${ECHO_T}$cross_compiling" >&6
2519
2520 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2521 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2523   (eval $ac_link) 2>&5
2524   ac_status=$?
2525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526   (exit $ac_status); }; then
2527   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2528 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2529 # work properly (i.e., refer to `conftest.exe'), while it won't with
2530 # `rm'.
2531 for ac_file in conftest.exe conftest conftest.*; do
2532   test -f "$ac_file" || continue
2533   case $ac_file in
2534     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2535     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2536           export ac_cv_exeext
2537           break;;
2538     * ) break;;
2539   esac
2540 done
2541 else
2542   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2543 See \`config.log' for more details." >&5
2544 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2545 See \`config.log' for more details." >&2;}
2546    { (exit 1); exit 1; }; }
2547 fi
2548
2549 rm -f conftest$ac_cv_exeext
2550 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2551 echo "${ECHO_T}$ac_cv_exeext" >&6
2552
2553 rm -f conftest.$ac_ext
2554 EXEEXT=$ac_cv_exeext
2555 ac_exeext=$EXEEXT
2556 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2557 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2558 if test "${ac_cv_objext+set}" = set; then
2559   echo $ECHO_N "(cached) $ECHO_C" >&6
2560 else
2561   cat >conftest.$ac_ext <<_ACEOF
2562 /* confdefs.h.  */
2563 _ACEOF
2564 cat confdefs.h >>conftest.$ac_ext
2565 cat >>conftest.$ac_ext <<_ACEOF
2566 /* end confdefs.h.  */
2567
2568 int
2569 main ()
2570 {
2571
2572   ;
2573   return 0;
2574 }
2575 _ACEOF
2576 rm -f conftest.o conftest.obj
2577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2578   (eval $ac_compile) 2>&5
2579   ac_status=$?
2580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581   (exit $ac_status); }; then
2582   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2583   case $ac_file in
2584     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2585     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2586        break;;
2587   esac
2588 done
2589 else
2590   echo "$as_me: failed program was:" >&5
2591 sed 's/^/| /' conftest.$ac_ext >&5
2592
2593 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2594 See \`config.log' for more details." >&5
2595 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2596 See \`config.log' for more details." >&2;}
2597    { (exit 1); exit 1; }; }
2598 fi
2599
2600 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2601 fi
2602 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2603 echo "${ECHO_T}$ac_cv_objext" >&6
2604 OBJEXT=$ac_cv_objext
2605 ac_objext=$OBJEXT
2606 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2607 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2608 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2609   echo $ECHO_N "(cached) $ECHO_C" >&6
2610 else
2611   cat >conftest.$ac_ext <<_ACEOF
2612 /* confdefs.h.  */
2613 _ACEOF
2614 cat confdefs.h >>conftest.$ac_ext
2615 cat >>conftest.$ac_ext <<_ACEOF
2616 /* end confdefs.h.  */
2617
2618 int
2619 main ()
2620 {
2621 #ifndef __GNUC__
2622        choke me
2623 #endif
2624
2625   ;
2626   return 0;
2627 }
2628 _ACEOF
2629 rm -f conftest.$ac_objext
2630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2631   (eval $ac_compile) 2>conftest.er1
2632   ac_status=$?
2633   grep -v '^ *+' conftest.er1 >conftest.err
2634   rm -f conftest.er1
2635   cat conftest.err >&5
2636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637   (exit $ac_status); } &&
2638          { ac_try='test -z "$ac_c_werror_flag"
2639                          || test ! -s conftest.err'
2640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2641   (eval $ac_try) 2>&5
2642   ac_status=$?
2643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644   (exit $ac_status); }; } &&
2645          { ac_try='test -s conftest.$ac_objext'
2646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2647   (eval $ac_try) 2>&5
2648   ac_status=$?
2649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650   (exit $ac_status); }; }; then
2651   ac_compiler_gnu=yes
2652 else
2653   echo "$as_me: failed program was:" >&5
2654 sed 's/^/| /' conftest.$ac_ext >&5
2655
2656 ac_compiler_gnu=no
2657 fi
2658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2659 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2660
2661 fi
2662 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2663 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2664 GCC=`test $ac_compiler_gnu = yes && echo yes`
2665 ac_test_CFLAGS=${CFLAGS+set}
2666 ac_save_CFLAGS=$CFLAGS
2667 CFLAGS="-g"
2668 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2669 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2670 if test "${ac_cv_prog_cc_g+set}" = set; then
2671   echo $ECHO_N "(cached) $ECHO_C" >&6
2672 else
2673   cat >conftest.$ac_ext <<_ACEOF
2674 /* confdefs.h.  */
2675 _ACEOF
2676 cat confdefs.h >>conftest.$ac_ext
2677 cat >>conftest.$ac_ext <<_ACEOF
2678 /* end confdefs.h.  */
2679
2680 int
2681 main ()
2682 {
2683
2684   ;
2685   return 0;
2686 }
2687 _ACEOF
2688 rm -f conftest.$ac_objext
2689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2690   (eval $ac_compile) 2>conftest.er1
2691   ac_status=$?
2692   grep -v '^ *+' conftest.er1 >conftest.err
2693   rm -f conftest.er1
2694   cat conftest.err >&5
2695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696   (exit $ac_status); } &&
2697          { ac_try='test -z "$ac_c_werror_flag"
2698                          || test ! -s conftest.err'
2699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2700   (eval $ac_try) 2>&5
2701   ac_status=$?
2702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703   (exit $ac_status); }; } &&
2704          { ac_try='test -s conftest.$ac_objext'
2705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2706   (eval $ac_try) 2>&5
2707   ac_status=$?
2708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709   (exit $ac_status); }; }; then
2710   ac_cv_prog_cc_g=yes
2711 else
2712   echo "$as_me: failed program was:" >&5
2713 sed 's/^/| /' conftest.$ac_ext >&5
2714
2715 ac_cv_prog_cc_g=no
2716 fi
2717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2718 fi
2719 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2720 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2721 if test "$ac_test_CFLAGS" = set; then
2722   CFLAGS=$ac_save_CFLAGS
2723 elif test $ac_cv_prog_cc_g = yes; then
2724   if test "$GCC" = yes; then
2725     CFLAGS="-g -O2"
2726   else
2727     CFLAGS="-g"
2728   fi
2729 else
2730   if test "$GCC" = yes; then
2731     CFLAGS="-O2"
2732   else
2733     CFLAGS=
2734   fi
2735 fi
2736 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2737 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2738 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2739   echo $ECHO_N "(cached) $ECHO_C" >&6
2740 else
2741   ac_cv_prog_cc_stdc=no
2742 ac_save_CC=$CC
2743 cat >conftest.$ac_ext <<_ACEOF
2744 /* confdefs.h.  */
2745 _ACEOF
2746 cat confdefs.h >>conftest.$ac_ext
2747 cat >>conftest.$ac_ext <<_ACEOF
2748 /* end confdefs.h.  */
2749 #include <stdarg.h>
2750 #include <stdio.h>
2751 #include <sys/types.h>
2752 #include <sys/stat.h>
2753 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2754 struct buf { int x; };
2755 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2756 static char *e (p, i)
2757      char **p;
2758      int i;
2759 {
2760   return p[i];
2761 }
2762 static char *f (char * (*g) (char **, int), char **p, ...)
2763 {
2764   char *s;
2765   va_list v;
2766   va_start (v,p);
2767   s = g (p, va_arg (v,int));
2768   va_end (v);
2769   return s;
2770 }
2771
2772 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2773    function prototypes and stuff, but not '\xHH' hex character constants.
2774    These don't provoke an error unfortunately, instead are silently treated
2775    as 'x'.  The following induces an error, until -std1 is added to get
2776    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2777    array size at least.  It's necessary to write '\x00'==0 to get something
2778    that's true only with -std1.  */
2779 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2780
2781 int test (int i, double x);
2782 struct s1 {int (*f) (int a);};
2783 struct s2 {int (*f) (double a);};
2784 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2785 int argc;
2786 char **argv;
2787 int
2788 main ()
2789 {
2790 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2791   ;
2792   return 0;
2793 }
2794 _ACEOF
2795 # Don't try gcc -ansi; that turns off useful extensions and
2796 # breaks some systems' header files.
2797 # AIX                   -qlanglvl=ansi
2798 # Ultrix and OSF/1      -std1
2799 # HP-UX 10.20 and later -Ae
2800 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2801 # SVR4                  -Xc -D__EXTENSIONS__
2802 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2803 do
2804   CC="$ac_save_CC $ac_arg"
2805   rm -f conftest.$ac_objext
2806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2807   (eval $ac_compile) 2>conftest.er1
2808   ac_status=$?
2809   grep -v '^ *+' conftest.er1 >conftest.err
2810   rm -f conftest.er1
2811   cat conftest.err >&5
2812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813   (exit $ac_status); } &&
2814          { ac_try='test -z "$ac_c_werror_flag"
2815                          || test ! -s conftest.err'
2816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2817   (eval $ac_try) 2>&5
2818   ac_status=$?
2819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820   (exit $ac_status); }; } &&
2821          { ac_try='test -s conftest.$ac_objext'
2822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2823   (eval $ac_try) 2>&5
2824   ac_status=$?
2825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826   (exit $ac_status); }; }; then
2827   ac_cv_prog_cc_stdc=$ac_arg
2828 break
2829 else
2830   echo "$as_me: failed program was:" >&5
2831 sed 's/^/| /' conftest.$ac_ext >&5
2832
2833 fi
2834 rm -f conftest.err conftest.$ac_objext
2835 done
2836 rm -f conftest.$ac_ext conftest.$ac_objext
2837 CC=$ac_save_CC
2838
2839 fi
2840
2841 case "x$ac_cv_prog_cc_stdc" in
2842   x|xno)
2843     echo "$as_me:$LINENO: result: none needed" >&5
2844 echo "${ECHO_T}none needed" >&6 ;;
2845   *)
2846     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2847 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2848     CC="$CC $ac_cv_prog_cc_stdc" ;;
2849 esac
2850
2851 # Some people use a C++ compiler to compile C.  Since we use `exit',
2852 # in C++ we need to declare it.  In case someone uses the same compiler
2853 # for both compiling C and C++ we need to have the C++ compiler decide
2854 # the declaration of exit, since it's the most demanding environment.
2855 cat >conftest.$ac_ext <<_ACEOF
2856 #ifndef __cplusplus
2857   choke me
2858 #endif
2859 _ACEOF
2860 rm -f conftest.$ac_objext
2861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2862   (eval $ac_compile) 2>conftest.er1
2863   ac_status=$?
2864   grep -v '^ *+' conftest.er1 >conftest.err
2865   rm -f conftest.er1
2866   cat conftest.err >&5
2867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868   (exit $ac_status); } &&
2869          { ac_try='test -z "$ac_c_werror_flag"
2870                          || test ! -s conftest.err'
2871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2872   (eval $ac_try) 2>&5
2873   ac_status=$?
2874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875   (exit $ac_status); }; } &&
2876          { ac_try='test -s conftest.$ac_objext'
2877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2878   (eval $ac_try) 2>&5
2879   ac_status=$?
2880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881   (exit $ac_status); }; }; then
2882   for ac_declaration in \
2883    '' \
2884    'extern "C" void std::exit (int) throw (); using std::exit;' \
2885    'extern "C" void std::exit (int); using std::exit;' \
2886    'extern "C" void exit (int) throw ();' \
2887    'extern "C" void exit (int);' \
2888    'void exit (int);'
2889 do
2890   cat >conftest.$ac_ext <<_ACEOF
2891 /* confdefs.h.  */
2892 _ACEOF
2893 cat confdefs.h >>conftest.$ac_ext
2894 cat >>conftest.$ac_ext <<_ACEOF
2895 /* end confdefs.h.  */
2896 $ac_declaration
2897 #include <stdlib.h>
2898 int
2899 main ()
2900 {
2901 exit (42);
2902   ;
2903   return 0;
2904 }
2905 _ACEOF
2906 rm -f conftest.$ac_objext
2907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2908   (eval $ac_compile) 2>conftest.er1
2909   ac_status=$?
2910   grep -v '^ *+' conftest.er1 >conftest.err
2911   rm -f conftest.er1
2912   cat conftest.err >&5
2913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914   (exit $ac_status); } &&
2915          { ac_try='test -z "$ac_c_werror_flag"
2916                          || test ! -s conftest.err'
2917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2918   (eval $ac_try) 2>&5
2919   ac_status=$?
2920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921   (exit $ac_status); }; } &&
2922          { ac_try='test -s conftest.$ac_objext'
2923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2924   (eval $ac_try) 2>&5
2925   ac_status=$?
2926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927   (exit $ac_status); }; }; then
2928   :
2929 else
2930   echo "$as_me: failed program was:" >&5
2931 sed 's/^/| /' conftest.$ac_ext >&5
2932
2933 continue
2934 fi
2935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2936   cat >conftest.$ac_ext <<_ACEOF
2937 /* confdefs.h.  */
2938 _ACEOF
2939 cat confdefs.h >>conftest.$ac_ext
2940 cat >>conftest.$ac_ext <<_ACEOF
2941 /* end confdefs.h.  */
2942 $ac_declaration
2943 int
2944 main ()
2945 {
2946 exit (42);
2947   ;
2948   return 0;
2949 }
2950 _ACEOF
2951 rm -f conftest.$ac_objext
2952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2953   (eval $ac_compile) 2>conftest.er1
2954   ac_status=$?
2955   grep -v '^ *+' conftest.er1 >conftest.err
2956   rm -f conftest.er1
2957   cat conftest.err >&5
2958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959   (exit $ac_status); } &&
2960          { ac_try='test -z "$ac_c_werror_flag"
2961                          || test ! -s conftest.err'
2962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2963   (eval $ac_try) 2>&5
2964   ac_status=$?
2965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966   (exit $ac_status); }; } &&
2967          { ac_try='test -s conftest.$ac_objext'
2968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2969   (eval $ac_try) 2>&5
2970   ac_status=$?
2971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972   (exit $ac_status); }; }; then
2973   break
2974 else
2975   echo "$as_me: failed program was:" >&5
2976 sed 's/^/| /' conftest.$ac_ext >&5
2977
2978 fi
2979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2980 done
2981 rm -f conftest*
2982 if test -n "$ac_declaration"; then
2983   echo '#ifdef __cplusplus' >>confdefs.h
2984   echo $ac_declaration      >>confdefs.h
2985   echo '#endif'             >>confdefs.h
2986 fi
2987
2988 else
2989   echo "$as_me: failed program was:" >&5
2990 sed 's/^/| /' conftest.$ac_ext >&5
2991
2992 fi
2993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2994 ac_ext=c
2995 ac_cpp='$CPP $CPPFLAGS'
2996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2999 DEPDIR="${am__leading_dot}deps"
3000
3001           ac_config_commands="$ac_config_commands depfiles"
3002
3003
3004 am_make=${MAKE-make}
3005 cat > confinc << 'END'
3006 am__doit:
3007         @echo done
3008 .PHONY: am__doit
3009 END
3010 # If we don't find an include directive, just comment out the code.
3011 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3012 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3013 am__include="#"
3014 am__quote=
3015 _am_result=none
3016 # First try GNU make style include.
3017 echo "include confinc" > confmf
3018 # We grep out `Entering directory' and `Leaving directory'
3019 # messages which can occur if `w' ends up in MAKEFLAGS.
3020 # In particular we don't look at `^make:' because GNU make might
3021 # be invoked under some other name (usually "gmake"), in which
3022 # case it prints its new name instead of `make'.
3023 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3024    am__include=include
3025    am__quote=
3026    _am_result=GNU
3027 fi
3028 # Now try BSD make style include.
3029 if test "$am__include" = "#"; then
3030    echo '.include "confinc"' > confmf
3031    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3032       am__include=.include
3033       am__quote="\""
3034       _am_result=BSD
3035    fi
3036 fi
3037
3038
3039 echo "$as_me:$LINENO: result: $_am_result" >&5
3040 echo "${ECHO_T}$_am_result" >&6
3041 rm -f confinc confmf
3042
3043 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3044 if test "${enable_dependency_tracking+set}" = set; then
3045   enableval="$enable_dependency_tracking"
3046
3047 fi;
3048 if test "x$enable_dependency_tracking" != xno; then
3049   am_depcomp="$ac_aux_dir/depcomp"
3050   AMDEPBACKSLASH='\'
3051 fi
3052
3053
3054 if test "x$enable_dependency_tracking" != xno; then
3055   AMDEP_TRUE=
3056   AMDEP_FALSE='#'
3057 else
3058   AMDEP_TRUE='#'
3059   AMDEP_FALSE=
3060 fi
3061
3062
3063
3064
3065 depcc="$CC"   am_compiler_list=
3066
3067 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3068 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3069 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3070   echo $ECHO_N "(cached) $ECHO_C" >&6
3071 else
3072   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3073   # We make a subdir and do the tests there.  Otherwise we can end up
3074   # making bogus files that we don't know about and never remove.  For
3075   # instance it was reported that on HP-UX the gcc test will end up
3076   # making a dummy file named `D' -- because `-MD' means `put the output
3077   # in D'.
3078   mkdir conftest.dir
3079   # Copy depcomp to subdir because otherwise we won't find it if we're
3080   # using a relative directory.
3081   cp "$am_depcomp" conftest.dir
3082   cd conftest.dir
3083   # We will build objects and dependencies in a subdirectory because
3084   # it helps to detect inapplicable dependency modes.  For instance
3085   # both Tru64's cc and ICC support -MD to output dependencies as a
3086   # side effect of compilation, but ICC will put the dependencies in
3087   # the current directory while Tru64 will put them in the object
3088   # directory.
3089   mkdir sub
3090
3091   am_cv_CC_dependencies_compiler_type=none
3092   if test "$am_compiler_list" = ""; then
3093      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3094   fi
3095   for depmode in $am_compiler_list; do
3096     # Setup a source with many dependencies, because some compilers
3097     # like to wrap large dependency lists on column 80 (with \), and
3098     # we should not choose a depcomp mode which is confused by this.
3099     #
3100     # We need to recreate these files for each test, as the compiler may
3101     # overwrite some of them when testing with obscure command lines.
3102     # This happens at least with the AIX C compiler.
3103     : > sub/conftest.c
3104     for i in 1 2 3 4 5 6; do
3105       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3106       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3107       # Solaris 8's {/usr,}/bin/sh.
3108       touch sub/conftst$i.h
3109     done
3110     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3111
3112     case $depmode in
3113     nosideeffect)
3114       # after this tag, mechanisms are not by side-effect, so they'll
3115       # only be used when explicitly requested
3116       if test "x$enable_dependency_tracking" = xyes; then
3117         continue
3118       else
3119         break
3120       fi
3121       ;;
3122     none) break ;;
3123     esac
3124     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3125     # mode.  It turns out that the SunPro C++ compiler does not properly
3126     # handle `-M -o', and we need to detect this.
3127     if depmode=$depmode \
3128        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3129        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3130        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3131          >/dev/null 2>conftest.err &&
3132        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3133        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3134        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3135       # icc doesn't choke on unknown options, it will just issue warnings
3136       # or remarks (even with -Werror).  So we grep stderr for any message
3137       # that says an option was ignored or not supported.
3138       # When given -MP, icc 7.0 and 7.1 complain thusly:
3139       #   icc: Command line warning: ignoring option '-M'; no argument required
3140       # The diagnosis changed in icc 8.0:
3141       #   icc: Command line remark: option '-MP' not supported
3142       if (grep 'ignoring option' conftest.err ||
3143           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3144         am_cv_CC_dependencies_compiler_type=$depmode
3145         break
3146       fi
3147     fi
3148   done
3149
3150   cd ..
3151   rm -rf conftest.dir
3152 else
3153   am_cv_CC_dependencies_compiler_type=none
3154 fi
3155
3156 fi
3157 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3158 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3159 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3160
3161
3162
3163 if
3164   test "x$enable_dependency_tracking" != xno \
3165   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3166   am__fastdepCC_TRUE=
3167   am__fastdepCC_FALSE='#'
3168 else
3169   am__fastdepCC_TRUE='#'
3170   am__fastdepCC_FALSE=
3171 fi
3172
3173
3174 ac_ext=c
3175 ac_cpp='$CPP $CPPFLAGS'
3176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3179 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3180 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3181 # On Suns, sometimes $CPP names a directory.
3182 if test -n "$CPP" && test -d "$CPP"; then
3183   CPP=
3184 fi
3185 if test -z "$CPP"; then
3186   if test "${ac_cv_prog_CPP+set}" = set; then
3187   echo $ECHO_N "(cached) $ECHO_C" >&6
3188 else
3189       # Double quotes because CPP needs to be expanded
3190     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3191     do
3192       ac_preproc_ok=false
3193 for ac_c_preproc_warn_flag in '' yes
3194 do
3195   # Use a header file that comes with gcc, so configuring glibc
3196   # with a fresh cross-compiler works.
3197   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3198   # <limits.h> exists even on freestanding compilers.
3199   # On the NeXT, cc -E runs the code through the compiler's parser,
3200   # not just through cpp. "Syntax error" is here to catch this case.
3201   cat >conftest.$ac_ext <<_ACEOF
3202 /* confdefs.h.  */
3203 _ACEOF
3204 cat confdefs.h >>conftest.$ac_ext
3205 cat >>conftest.$ac_ext <<_ACEOF
3206 /* end confdefs.h.  */
3207 #ifdef __STDC__
3208 # include <limits.h>
3209 #else
3210 # include <assert.h>
3211 #endif
3212                      Syntax error
3213 _ACEOF
3214 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3215   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3216   ac_status=$?
3217   grep -v '^ *+' conftest.er1 >conftest.err
3218   rm -f conftest.er1
3219   cat conftest.err >&5
3220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3221   (exit $ac_status); } >/dev/null; then
3222   if test -s conftest.err; then
3223     ac_cpp_err=$ac_c_preproc_warn_flag
3224     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3225   else
3226     ac_cpp_err=
3227   fi
3228 else
3229   ac_cpp_err=yes
3230 fi
3231 if test -z "$ac_cpp_err"; then
3232   :
3233 else
3234   echo "$as_me: failed program was:" >&5
3235 sed 's/^/| /' conftest.$ac_ext >&5
3236
3237   # Broken: fails on valid input.
3238 continue
3239 fi
3240 rm -f conftest.err conftest.$ac_ext
3241
3242   # OK, works on sane cases.  Now check whether non-existent headers
3243   # can be detected and how.
3244   cat >conftest.$ac_ext <<_ACEOF
3245 /* confdefs.h.  */
3246 _ACEOF
3247 cat confdefs.h >>conftest.$ac_ext
3248 cat >>conftest.$ac_ext <<_ACEOF
3249 /* end confdefs.h.  */
3250 #include <ac_nonexistent.h>
3251 _ACEOF
3252 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3253   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3254   ac_status=$?
3255   grep -v '^ *+' conftest.er1 >conftest.err
3256   rm -f conftest.er1
3257   cat conftest.err >&5
3258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259   (exit $ac_status); } >/dev/null; then
3260   if test -s conftest.err; then
3261     ac_cpp_err=$ac_c_preproc_warn_flag
3262     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3263   else
3264     ac_cpp_err=
3265   fi
3266 else
3267   ac_cpp_err=yes
3268 fi
3269 if test -z "$ac_cpp_err"; then
3270   # Broken: success on invalid input.
3271 continue
3272 else
3273   echo "$as_me: failed program was:" >&5
3274 sed 's/^/| /' conftest.$ac_ext >&5
3275
3276   # Passes both tests.
3277 ac_preproc_ok=:
3278 break
3279 fi
3280 rm -f conftest.err conftest.$ac_ext
3281
3282 done
3283 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3284 rm -f conftest.err conftest.$ac_ext
3285 if $ac_preproc_ok; then
3286   break
3287 fi
3288
3289     done
3290     ac_cv_prog_CPP=$CPP
3291
3292 fi
3293   CPP=$ac_cv_prog_CPP
3294 else
3295   ac_cv_prog_CPP=$CPP
3296 fi
3297 echo "$as_me:$LINENO: result: $CPP" >&5
3298 echo "${ECHO_T}$CPP" >&6
3299 ac_preproc_ok=false
3300 for ac_c_preproc_warn_flag in '' yes
3301 do
3302   # Use a header file that comes with gcc, so configuring glibc
3303   # with a fresh cross-compiler works.
3304   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3305   # <limits.h> exists even on freestanding compilers.
3306   # On the NeXT, cc -E runs the code through the compiler's parser,
3307   # not just through cpp. "Syntax error" is here to catch this case.
3308   cat >conftest.$ac_ext <<_ACEOF
3309 /* confdefs.h.  */
3310 _ACEOF
3311 cat confdefs.h >>conftest.$ac_ext
3312 cat >>conftest.$ac_ext <<_ACEOF
3313 /* end confdefs.h.  */
3314 #ifdef __STDC__
3315 # include <limits.h>
3316 #else
3317 # include <assert.h>
3318 #endif
3319                      Syntax error
3320 _ACEOF
3321 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3322   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3323   ac_status=$?
3324   grep -v '^ *+' conftest.er1 >conftest.err
3325   rm -f conftest.er1
3326   cat conftest.err >&5
3327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328   (exit $ac_status); } >/dev/null; then
3329   if test -s conftest.err; then
3330     ac_cpp_err=$ac_c_preproc_warn_flag
3331     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3332   else
3333     ac_cpp_err=
3334   fi
3335 else
3336   ac_cpp_err=yes
3337 fi
3338 if test -z "$ac_cpp_err"; then
3339   :
3340 else
3341   echo "$as_me: failed program was:" >&5
3342 sed 's/^/| /' conftest.$ac_ext >&5
3343
3344   # Broken: fails on valid input.
3345 continue
3346 fi
3347 rm -f conftest.err conftest.$ac_ext
3348
3349   # OK, works on sane cases.  Now check whether non-existent headers
3350   # can be detected and how.
3351   cat >conftest.$ac_ext <<_ACEOF
3352 /* confdefs.h.  */
3353 _ACEOF
3354 cat confdefs.h >>conftest.$ac_ext
3355 cat >>conftest.$ac_ext <<_ACEOF
3356 /* end confdefs.h.  */
3357 #include <ac_nonexistent.h>
3358 _ACEOF
3359 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3360   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3361   ac_status=$?
3362   grep -v '^ *+' conftest.er1 >conftest.err
3363   rm -f conftest.er1
3364   cat conftest.err >&5
3365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366   (exit $ac_status); } >/dev/null; then
3367   if test -s conftest.err; then
3368     ac_cpp_err=$ac_c_preproc_warn_flag
3369     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3370   else
3371     ac_cpp_err=
3372   fi
3373 else
3374   ac_cpp_err=yes
3375 fi
3376 if test -z "$ac_cpp_err"; then
3377   # Broken: success on invalid input.
3378 continue
3379 else
3380   echo "$as_me: failed program was:" >&5
3381 sed 's/^/| /' conftest.$ac_ext >&5
3382
3383   # Passes both tests.
3384 ac_preproc_ok=:
3385 break
3386 fi
3387 rm -f conftest.err conftest.$ac_ext
3388
3389 done
3390 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3391 rm -f conftest.err conftest.$ac_ext
3392 if $ac_preproc_ok; then
3393   :
3394 else
3395   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3396 See \`config.log' for more details." >&5
3397 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3398 See \`config.log' for more details." >&2;}
3399    { (exit 1); exit 1; }; }
3400 fi
3401
3402 ac_ext=c
3403 ac_cpp='$CPP $CPPFLAGS'
3404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3407
3408 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3409 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3410 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3411 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3412   echo $ECHO_N "(cached) $ECHO_C" >&6
3413 else
3414   cat >conftest.make <<\_ACEOF
3415 all:
3416         @echo 'ac_maketemp="$(MAKE)"'
3417 _ACEOF
3418 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3419 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3420 if test -n "$ac_maketemp"; then
3421   eval ac_cv_prog_make_${ac_make}_set=yes
3422 else
3423   eval ac_cv_prog_make_${ac_make}_set=no
3424 fi
3425 rm -f conftest.make
3426 fi
3427 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3428   echo "$as_me:$LINENO: result: yes" >&5
3429 echo "${ECHO_T}yes" >&6
3430   SET_MAKE=
3431 else
3432   echo "$as_me:$LINENO: result: no" >&5
3433 echo "${ECHO_T}no" >&6
3434   SET_MAKE="MAKE=${MAKE-make}"
3435 fi
3436
3437 # Make sure we can run config.sub.
3438 $ac_config_sub sun4 >/dev/null 2>&1 ||
3439   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3440 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3441    { (exit 1); exit 1; }; }
3442
3443 echo "$as_me:$LINENO: checking build system type" >&5
3444 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3445 if test "${ac_cv_build+set}" = set; then
3446   echo $ECHO_N "(cached) $ECHO_C" >&6
3447 else
3448   ac_cv_build_alias=$build_alias
3449 test -z "$ac_cv_build_alias" &&
3450   ac_cv_build_alias=`$ac_config_guess`
3451 test -z "$ac_cv_build_alias" &&
3452   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3453 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3454    { (exit 1); exit 1; }; }
3455 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3456   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3457 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3458    { (exit 1); exit 1; }; }
3459
3460 fi
3461 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3462 echo "${ECHO_T}$ac_cv_build" >&6
3463 build=$ac_cv_build
3464 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3465 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3466 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3467
3468
3469 echo "$as_me:$LINENO: checking host system type" >&5
3470 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3471 if test "${ac_cv_host+set}" = set; then
3472   echo $ECHO_N "(cached) $ECHO_C" >&6
3473 else
3474   ac_cv_host_alias=$host_alias
3475 test -z "$ac_cv_host_alias" &&
3476   ac_cv_host_alias=$ac_cv_build_alias
3477 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3478   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3479 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3480    { (exit 1); exit 1; }; }
3481
3482 fi
3483 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3484 echo "${ECHO_T}$ac_cv_host" >&6
3485 host=$ac_cv_host
3486 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3487 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3488 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3489
3490
3491
3492 echo "$as_me:$LINENO: checking for some Win32 platform" >&5
3493 echo $ECHO_N "checking for some Win32 platform... $ECHO_C" >&6
3494 case "$host" in
3495   *-*-mingw*|*-*-cygwin*)
3496     platform_win32=yes
3497     ;;
3498   *)
3499     platform_win32=no
3500     ;;
3501 esac
3502 echo "$as_me:$LINENO: result: $platform_win32" >&5
3503 echo "${ECHO_T}$platform_win32" >&6
3504
3505
3506 if test "$platform_win32" = "yes"; then
3507   PLATFORM_WIN32_TRUE=
3508   PLATFORM_WIN32_FALSE='#'
3509 else
3510   PLATFORM_WIN32_TRUE='#'
3511   PLATFORM_WIN32_FALSE=
3512 fi
3513
3514
3515 echo "$as_me:$LINENO: checking for native Win32" >&5
3516 echo $ECHO_N "checking for native Win32... $ECHO_C" >&6
3517 case "$host" in
3518   *-*-mingw*)
3519     os_win32=yes
3520     ;;
3521   *)
3522     os_win32=no
3523     ;;
3524 esac
3525 echo "$as_me:$LINENO: result: $os_win32" >&5
3526 echo "${ECHO_T}$os_win32" >&6
3527
3528
3529 if test "$os_win32" = "yes"; then
3530   OS_WIN32_TRUE=
3531   OS_WIN32_FALSE='#'
3532 else
3533   OS_WIN32_TRUE='#'
3534   OS_WIN32_FALSE=
3535 fi
3536
3537
3538 # Check whether --enable-static or --disable-static was given.
3539 if test "${enable_static+set}" = set; then
3540   enableval="$enable_static"
3541   p=${PACKAGE-default}
3542     case $enableval in
3543     yes) enable_static=yes ;;
3544     no) enable_static=no ;;
3545     *)
3546      enable_static=no
3547       # Look at the argument we got.  We use all the common list separators.
3548       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3549       for pkg in $enableval; do
3550         IFS="$lt_save_ifs"
3551         if test "X$pkg" = "X$p"; then
3552           enable_static=yes
3553         fi
3554       done
3555       IFS="$lt_save_ifs"
3556       ;;
3557     esac
3558 else
3559   enable_static=no
3560 fi;
3561
3562
3563
3564
3565 # Check whether --enable-shared or --disable-shared was given.
3566 if test "${enable_shared+set}" = set; then
3567   enableval="$enable_shared"
3568   p=${PACKAGE-default}
3569     case $enableval in
3570     yes) enable_shared=yes ;;
3571     no) enable_shared=no ;;
3572     *)
3573       enable_shared=no
3574       # Look at the argument we got.  We use all the common list separators.
3575       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3576       for pkg in $enableval; do
3577         IFS="$lt_save_ifs"
3578         if test "X$pkg" = "X$p"; then
3579           enable_shared=yes
3580         fi
3581       done
3582       IFS="$lt_save_ifs"
3583       ;;
3584     esac
3585 else
3586   enable_shared=yes
3587 fi;
3588
3589 # Check whether --enable-fast-install or --disable-fast-install was given.
3590 if test "${enable_fast_install+set}" = set; then
3591   enableval="$enable_fast_install"
3592   p=${PACKAGE-default}
3593     case $enableval in
3594     yes) enable_fast_install=yes ;;
3595     no) enable_fast_install=no ;;
3596     *)
3597       enable_fast_install=no
3598       # Look at the argument we got.  We use all the common list separators.
3599       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3600       for pkg in $enableval; do
3601         IFS="$lt_save_ifs"
3602         if test "X$pkg" = "X$p"; then
3603           enable_fast_install=yes
3604         fi
3605       done
3606       IFS="$lt_save_ifs"
3607       ;;
3608     esac
3609 else
3610   enable_fast_install=yes
3611 fi;
3612
3613 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3614 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3615 if test "${lt_cv_path_SED+set}" = set; then
3616   echo $ECHO_N "(cached) $ECHO_C" >&6
3617 else
3618   # Loop through the user's path and test for sed and gsed.
3619 # Then use that list of sed's as ones to test for truncation.
3620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3621 for as_dir in $PATH
3622 do
3623   IFS=$as_save_IFS
3624   test -z "$as_dir" && as_dir=.
3625   for lt_ac_prog in sed gsed; do
3626     for ac_exec_ext in '' $ac_executable_extensions; do
3627       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3628         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3629       fi
3630     done
3631   done
3632 done
3633 lt_ac_max=0
3634 lt_ac_count=0
3635 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3636 # along with /bin/sed that truncates output.
3637 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3638   test ! -f $lt_ac_sed && continue
3639   cat /dev/null > conftest.in
3640   lt_ac_count=0
3641   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3642   # Check for GNU sed and select it if it is found.
3643   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3644     lt_cv_path_SED=$lt_ac_sed
3645     break
3646   fi
3647   while true; do
3648     cat conftest.in conftest.in >conftest.tmp
3649     mv conftest.tmp conftest.in
3650     cp conftest.in conftest.nl
3651     echo >>conftest.nl
3652     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3653     cmp -s conftest.out conftest.nl || break
3654     # 10000 chars as input seems more than enough
3655     test $lt_ac_count -gt 10 && break
3656     lt_ac_count=`expr $lt_ac_count + 1`
3657     if test $lt_ac_count -gt $lt_ac_max; then
3658       lt_ac_max=$lt_ac_count
3659       lt_cv_path_SED=$lt_ac_sed
3660     fi
3661   done
3662 done
3663
3664 fi
3665
3666 SED=$lt_cv_path_SED
3667 echo "$as_me:$LINENO: result: $SED" >&5
3668 echo "${ECHO_T}$SED" >&6
3669
3670 echo "$as_me:$LINENO: checking for egrep" >&5
3671 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3672 if test "${ac_cv_prog_egrep+set}" = set; then
3673   echo $ECHO_N "(cached) $ECHO_C" >&6
3674 else
3675   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3676     then ac_cv_prog_egrep='grep -E'
3677     else ac_cv_prog_egrep='egrep'
3678     fi
3679 fi
3680 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3681 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3682  EGREP=$ac_cv_prog_egrep
3683
3684
3685
3686 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3687 if test "${with_gnu_ld+set}" = set; then
3688   withval="$with_gnu_ld"
3689   test "$withval" = no || with_gnu_ld=yes
3690 else
3691   with_gnu_ld=no
3692 fi;
3693 ac_prog=ld
3694 if test "$GCC" = yes; then
3695   # Check if gcc -print-prog-name=ld gives a path.
3696   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3697 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3698   case $host in
3699   *-*-mingw*)
3700     # gcc leaves a trailing carriage return which upsets mingw
3701     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3702   *)
3703     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3704   esac
3705   case $ac_prog in
3706     # Accept absolute paths.
3707     [\\/]* | ?:[\\/]*)
3708       re_direlt='/[^/][^/]*/\.\./'
3709       # Canonicalize the pathname of ld
3710       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3711       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3712         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3713       done
3714       test -z "$LD" && LD="$ac_prog"
3715       ;;
3716   "")
3717     # If it fails, then pretend we aren't using GCC.
3718     ac_prog=ld
3719     ;;
3720   *)
3721     # If it is relative, then search for the first ld in PATH.
3722     with_gnu_ld=unknown
3723     ;;
3724   esac
3725 elif test "$with_gnu_ld" = yes; then
3726   echo "$as_me:$LINENO: checking for GNU ld" >&5
3727 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3728 else
3729   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3730 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3731 fi
3732 if test "${lt_cv_path_LD+set}" = set; then
3733   echo $ECHO_N "(cached) $ECHO_C" >&6
3734 else
3735   if test -z "$LD"; then
3736   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3737   for ac_dir in $PATH; do
3738     IFS="$lt_save_ifs"
3739     test -z "$ac_dir" && ac_dir=.
3740     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3741       lt_cv_path_LD="$ac_dir/$ac_prog"
3742       # Check to see if the program is GNU ld.  I'd rather use --version,
3743       # but apparently some variants of GNU ld only accept -v.
3744       # Break only if it was the GNU/non-GNU ld that we prefer.
3745       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3746       *GNU* | *'with BFD'*)
3747         test "$with_gnu_ld" != no && break
3748         ;;
3749       *)
3750         test "$with_gnu_ld" != yes && break
3751         ;;
3752       esac
3753     fi
3754   done
3755   IFS="$lt_save_ifs"
3756 else
3757   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3758 fi
3759 fi
3760
3761 LD="$lt_cv_path_LD"
3762 if test -n "$LD"; then
3763   echo "$as_me:$LINENO: result: $LD" >&5
3764 echo "${ECHO_T}$LD" >&6
3765 else
3766   echo "$as_me:$LINENO: result: no" >&5
3767 echo "${ECHO_T}no" >&6
3768 fi
3769 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3770 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3771    { (exit 1); exit 1; }; }
3772 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3773 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3774 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3775   echo $ECHO_N "(cached) $ECHO_C" >&6
3776 else
3777   # I'd rather use --version here, but apparently some GNU lds only accept -v.
3778 case `$LD -v 2>&1 </dev/null` in
3779 *GNU* | *'with BFD'*)
3780   lt_cv_prog_gnu_ld=yes
3781   ;;
3782 *)
3783   lt_cv_prog_gnu_ld=no
3784   ;;
3785 esac
3786 fi
3787 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3788 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3789 with_gnu_ld=$lt_cv_prog_gnu_ld
3790
3791
3792 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3793 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3794 if test "${lt_cv_ld_reload_flag+set}" = set; then
3795   echo $ECHO_N "(cached) $ECHO_C" >&6
3796 else
3797   lt_cv_ld_reload_flag='-r'
3798 fi
3799 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3800 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3801 reload_flag=$lt_cv_ld_reload_flag
3802 case $reload_flag in
3803 "" | " "*) ;;
3804 *) reload_flag=" $reload_flag" ;;
3805 esac
3806 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3807 case $host_os in
3808   darwin*)
3809     if test "$GCC" = yes; then
3810       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3811     else
3812       reload_cmds='$LD$reload_flag -o $output$reload_objs'
3813     fi
3814     ;;
3815 esac
3816
3817 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3818 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3819 if test "${lt_cv_path_NM+set}" = set; then
3820   echo $ECHO_N "(cached) $ECHO_C" >&6
3821 else
3822   if test -n "$NM"; then
3823   # Let the user override the test.
3824   lt_cv_path_NM="$NM"
3825 else
3826   lt_nm_to_check="${ac_tool_prefix}nm"
3827   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3828     lt_nm_to_check="$lt_nm_to_check nm"
3829   fi
3830   for lt_tmp_nm in $lt_nm_to_check; do
3831     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3832     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3833       IFS="$lt_save_ifs"
3834       test -z "$ac_dir" && ac_dir=.
3835       tmp_nm="$ac_dir/$lt_tmp_nm"
3836       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3837         # Check to see if the nm accepts a BSD-compat flag.
3838         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3839         #   nm: unknown option "B" ignored
3840         # Tru64's nm complains that /dev/null is an invalid object file
3841         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3842         */dev/null* | *'Invalid file or object type'*)
3843           lt_cv_path_NM="$tmp_nm -B"
3844           break
3845           ;;
3846         *)
3847           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3848           */dev/null*)
3849             lt_cv_path_NM="$tmp_nm -p"
3850             break
3851             ;;
3852           *)
3853             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3854             continue # so that we can try to find one that supports BSD flags
3855             ;;
3856           esac
3857           ;;
3858         esac
3859       fi
3860     done
3861     IFS="$lt_save_ifs"
3862   done
3863   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3864 fi
3865 fi
3866 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3867 echo "${ECHO_T}$lt_cv_path_NM" >&6
3868 NM="$lt_cv_path_NM"
3869
3870 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3871 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3872 LN_S=$as_ln_s
3873 if test "$LN_S" = "ln -s"; then
3874   echo "$as_me:$LINENO: result: yes" >&5
3875 echo "${ECHO_T}yes" >&6
3876 else
3877   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3878 echo "${ECHO_T}no, using $LN_S" >&6
3879 fi
3880
3881 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3882 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3883 if test "${lt_cv_deplibs_check_method+set}" = set; then
3884   echo $ECHO_N "(cached) $ECHO_C" >&6
3885 else
3886   lt_cv_file_magic_cmd='$MAGIC_CMD'
3887 lt_cv_file_magic_test_file=
3888 lt_cv_deplibs_check_method='unknown'
3889 # Need to set the preceding variable on all platforms that support
3890 # interlibrary dependencies.
3891 # 'none' -- dependencies not supported.
3892 # `unknown' -- same as none, but documents that we really don't know.
3893 # 'pass_all' -- all dependencies passed with no checks.
3894 # 'test_compile' -- check by making test program.
3895 # 'file_magic [[regex]]' -- check by looking for files in library path
3896 # which responds to the $file_magic_cmd with a given extended regex.
3897 # If you have `file' or equivalent on your system and you're not sure
3898 # whether `pass_all' will *always* work, you probably want this one.
3899
3900 case $host_os in
3901 aix4* | aix5*)
3902   lt_cv_deplibs_check_method=pass_all
3903   ;;
3904
3905 beos*)
3906   lt_cv_deplibs_check_method=pass_all
3907   ;;
3908
3909 bsdi[45]*)
3910   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3911   lt_cv_file_magic_cmd='/usr/bin/file -L'
3912   lt_cv_file_magic_test_file=/shlib/libc.so
3913   ;;
3914
3915 cygwin*)
3916   # func_win32_libid is a shell function defined in ltmain.sh
3917   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3918   lt_cv_file_magic_cmd='func_win32_libid'
3919   ;;
3920
3921 mingw* | pw32*)
3922   # Base MSYS/MinGW do not provide the 'file' command needed by
3923   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3924   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3925   lt_cv_file_magic_cmd='$OBJDUMP -f'
3926   ;;
3927
3928 darwin* | rhapsody*)
3929   lt_cv_deplibs_check_method=pass_all
3930   ;;
3931
3932 freebsd* | kfreebsd*-gnu | dragonfly*)
3933   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3934     case $host_cpu in
3935     i*86 )
3936       # Not sure whether the presence of OpenBSD here was a mistake.
3937       # Let's accept both of them until this is cleared up.
3938       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3939       lt_cv_file_magic_cmd=/usr/bin/file
3940       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3941       ;;
3942     esac
3943   else
3944     lt_cv_deplibs_check_method=pass_all
3945   fi
3946   ;;
3947
3948 gnu*)
3949   lt_cv_deplibs_check_method=pass_all
3950   ;;
3951
3952 hpux10.20* | hpux11*)
3953   lt_cv_file_magic_cmd=/usr/bin/file
3954   case $host_cpu in
3955   ia64*)
3956     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3957     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3958     ;;
3959   hppa*64*)
3960     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]'
3961     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3962     ;;
3963   *)
3964     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3965     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3966     ;;
3967   esac
3968   ;;
3969
3970 interix3*)
3971   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3972   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3973   ;;
3974
3975 irix5* | irix6* | nonstopux*)
3976   case $LD in
3977   *-32|*"-32 ") libmagic=32-bit;;
3978   *-n32|*"-n32 ") libmagic=N32;;
3979   *-64|*"-64 ") libmagic=64-bit;;
3980   *) libmagic=never-match;;
3981   esac
3982   lt_cv_deplibs_check_method=pass_all
3983   ;;
3984
3985 # This must be Linux ELF.
3986 linux*)
3987   lt_cv_deplibs_check_method=pass_all
3988   ;;
3989
3990 netbsd*)
3991   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3992     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3993   else
3994     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3995   fi
3996   ;;
3997
3998 newos6*)
3999   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4000   lt_cv_file_magic_cmd=/usr/bin/file
4001   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4002   ;;
4003
4004 nto-qnx*)
4005   lt_cv_deplibs_check_method=unknown
4006   ;;
4007
4008 openbsd*)
4009   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4010     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4011   else
4012     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4013   fi
4014   ;;
4015
4016 osf3* | osf4* | osf5*)
4017   lt_cv_deplibs_check_method=pass_all
4018   ;;
4019
4020 solaris*)
4021   lt_cv_deplibs_check_method=pass_all
4022   ;;
4023
4024 sysv4 | sysv4.3*)
4025   case $host_vendor in
4026   motorola)
4027     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]'
4028     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4029     ;;
4030   ncr)
4031     lt_cv_deplibs_check_method=pass_all
4032     ;;
4033   sequent)
4034     lt_cv_file_magic_cmd='/bin/file'
4035     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4036     ;;
4037   sni)
4038     lt_cv_file_magic_cmd='/bin/file'
4039     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4040     lt_cv_file_magic_test_file=/lib/libc.so
4041     ;;
4042   siemens)
4043     lt_cv_deplibs_check_method=pass_all
4044     ;;
4045   pc)
4046     lt_cv_deplibs_check_method=pass_all
4047     ;;
4048   esac
4049   ;;
4050
4051 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4052   lt_cv_deplibs_check_method=pass_all
4053   ;;
4054 esac
4055
4056 fi
4057 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4058 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4059 file_magic_cmd=$lt_cv_file_magic_cmd
4060 deplibs_check_method=$lt_cv_deplibs_check_method
4061 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4062
4063
4064
4065
4066 # If no C compiler was specified, use CC.
4067 LTCC=${LTCC-"$CC"}
4068
4069 # If no C compiler flags were specified, use CFLAGS.
4070 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4071
4072 # Allow CC to be a program name with arguments.
4073 compiler=$CC
4074
4075
4076 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4077 if test "${enable_libtool_lock+set}" = set; then
4078   enableval="$enable_libtool_lock"
4079
4080 fi;
4081 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4082
4083 # Some flags need to be propagated to the compiler or linker for good
4084 # libtool support.
4085 case $host in
4086 ia64-*-hpux*)
4087   # Find out which ABI we are using.
4088   echo 'int i;' > conftest.$ac_ext
4089   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4090   (eval $ac_compile) 2>&5
4091   ac_status=$?
4092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093   (exit $ac_status); }; then
4094     case `/usr/bin/file conftest.$ac_objext` in
4095     *ELF-32*)
4096       HPUX_IA64_MODE="32"
4097       ;;
4098     *ELF-64*)
4099       HPUX_IA64_MODE="64"
4100       ;;
4101     esac
4102   fi
4103   rm -rf conftest*
4104   ;;
4105 *-*-irix6*)
4106   # Find out which ABI we are using.
4107   echo '#line 4107 "configure"' > conftest.$ac_ext
4108   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4109   (eval $ac_compile) 2>&5
4110   ac_status=$?
4111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112   (exit $ac_status); }; then
4113    if test "$lt_cv_prog_gnu_ld" = yes; then
4114     case `/usr/bin/file conftest.$ac_objext` in
4115     *32-bit*)
4116       LD="${LD-ld} -melf32bsmip"
4117       ;;
4118     *N32*)
4119       LD="${LD-ld} -melf32bmipn32"
4120       ;;
4121     *64-bit*)
4122       LD="${LD-ld} -melf64bmip"
4123       ;;
4124     esac
4125    else
4126     case `/usr/bin/file conftest.$ac_objext` in
4127     *32-bit*)
4128       LD="${LD-ld} -32"
4129       ;;
4130     *N32*)
4131       LD="${LD-ld} -n32"
4132       ;;
4133     *64-bit*)
4134       LD="${LD-ld} -64"
4135       ;;
4136     esac
4137    fi
4138   fi
4139   rm -rf conftest*
4140   ;;
4141
4142 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4143   # Find out which ABI we are using.
4144   echo 'int i;' > conftest.$ac_ext
4145   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4146   (eval $ac_compile) 2>&5
4147   ac_status=$?
4148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149   (exit $ac_status); }; then
4150     case `/usr/bin/file conftest.o` in
4151     *32-bit*)
4152       case $host in
4153         x86_64-*linux*)
4154           LD="${LD-ld} -m elf_i386"
4155           ;;
4156         ppc64-*linux*|powerpc64-*linux*)
4157           LD="${LD-ld} -m elf32ppclinux"
4158           ;;
4159         s390x-*linux*)
4160           LD="${LD-ld} -m elf_s390"
4161           ;;
4162         sparc64-*linux*)
4163           LD="${LD-ld} -m elf32_sparc"
4164           ;;
4165       esac
4166       ;;
4167     *64-bit*)
4168       case $host in
4169         x86_64-*linux*)
4170           LD="${LD-ld} -m elf_x86_64"
4171           ;;
4172         ppc*-*linux*|powerpc*-*linux*)
4173           LD="${LD-ld} -m elf64ppc"
4174           ;;
4175         s390*-*linux*)
4176           LD="${LD-ld} -m elf64_s390"
4177           ;;
4178         sparc*-*linux*)
4179           LD="${LD-ld} -m elf64_sparc"
4180           ;;
4181       esac
4182       ;;
4183     esac
4184   fi
4185   rm -rf conftest*
4186   ;;
4187
4188 *-*-sco3.2v5*)
4189   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4190   SAVE_CFLAGS="$CFLAGS"
4191   CFLAGS="$CFLAGS -belf"
4192   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4193 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4194 if test "${lt_cv_cc_needs_belf+set}" = set; then
4195   echo $ECHO_N "(cached) $ECHO_C" >&6
4196 else
4197   ac_ext=c
4198 ac_cpp='$CPP $CPPFLAGS'
4199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4202
4203      cat >conftest.$ac_ext <<_ACEOF
4204 /* confdefs.h.  */
4205 _ACEOF
4206 cat confdefs.h >>conftest.$ac_ext
4207 cat >>conftest.$ac_ext <<_ACEOF
4208 /* end confdefs.h.  */
4209
4210 int
4211 main ()
4212 {
4213
4214   ;
4215   return 0;
4216 }
4217 _ACEOF
4218 rm -f conftest.$ac_objext conftest$ac_exeext
4219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4220   (eval $ac_link) 2>conftest.er1
4221   ac_status=$?
4222   grep -v '^ *+' conftest.er1 >conftest.err
4223   rm -f conftest.er1
4224   cat conftest.err >&5
4225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226   (exit $ac_status); } &&
4227          { ac_try='test -z "$ac_c_werror_flag"
4228                          || test ! -s conftest.err'
4229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4230   (eval $ac_try) 2>&5
4231   ac_status=$?
4232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233   (exit $ac_status); }; } &&
4234          { ac_try='test -s conftest$ac_exeext'
4235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4236   (eval $ac_try) 2>&5
4237   ac_status=$?
4238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239   (exit $ac_status); }; }; then
4240   lt_cv_cc_needs_belf=yes
4241 else
4242   echo "$as_me: failed program was:" >&5
4243 sed 's/^/| /' conftest.$ac_ext >&5
4244
4245 lt_cv_cc_needs_belf=no
4246 fi
4247 rm -f conftest.err conftest.$ac_objext \
4248       conftest$ac_exeext conftest.$ac_ext
4249      ac_ext=c
4250 ac_cpp='$CPP $CPPFLAGS'
4251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4254
4255 fi
4256 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4257 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4258   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4259     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4260     CFLAGS="$SAVE_CFLAGS"
4261   fi
4262   ;;
4263 sparc*-*solaris*)
4264   # Find out which ABI we are using.
4265   echo 'int i;' > conftest.$ac_ext
4266   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4267   (eval $ac_compile) 2>&5
4268   ac_status=$?
4269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270   (exit $ac_status); }; then
4271     case `/usr/bin/file conftest.o` in
4272     *64-bit*)
4273       case $lt_cv_prog_gnu_ld in
4274       yes*) LD="${LD-ld} -m elf64_sparc" ;;
4275       *)    LD="${LD-ld} -64" ;;
4276       esac
4277       ;;
4278     esac
4279   fi
4280   rm -rf conftest*
4281   ;;
4282
4283 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4284   if test -n "$ac_tool_prefix"; then
4285   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4286 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4287 echo "$as_me:$LINENO: checking for $ac_word" >&5
4288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4289 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4290   echo $ECHO_N "(cached) $ECHO_C" >&6
4291 else
4292   if test -n "$DLLTOOL"; then
4293   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4294 else
4295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4296 for as_dir in $PATH
4297 do
4298   IFS=$as_save_IFS
4299   test -z "$as_dir" && as_dir=.
4300   for ac_exec_ext in '' $ac_executable_extensions; do
4301   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4302     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4303     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4304     break 2
4305   fi
4306 done
4307 done
4308
4309 fi
4310 fi
4311 DLLTOOL=$ac_cv_prog_DLLTOOL
4312 if test -n "$DLLTOOL"; then
4313   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4314 echo "${ECHO_T}$DLLTOOL" >&6
4315 else
4316   echo "$as_me:$LINENO: result: no" >&5
4317 echo "${ECHO_T}no" >&6
4318 fi
4319
4320 fi
4321 if test -z "$ac_cv_prog_DLLTOOL"; then
4322   ac_ct_DLLTOOL=$DLLTOOL
4323   # Extract the first word of "dlltool", so it can be a program name with args.
4324 set dummy dlltool; ac_word=$2
4325 echo "$as_me:$LINENO: checking for $ac_word" >&5
4326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4327 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4328   echo $ECHO_N "(cached) $ECHO_C" >&6
4329 else
4330   if test -n "$ac_ct_DLLTOOL"; then
4331   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4332 else
4333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4334 for as_dir in $PATH
4335 do
4336   IFS=$as_save_IFS
4337   test -z "$as_dir" && as_dir=.
4338   for ac_exec_ext in '' $ac_executable_extensions; do
4339   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4340     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4341     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4342     break 2
4343   fi
4344 done
4345 done
4346
4347   test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
4348 fi
4349 fi
4350 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4351 if test -n "$ac_ct_DLLTOOL"; then
4352   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4353 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
4354 else
4355   echo "$as_me:$LINENO: result: no" >&5
4356 echo "${ECHO_T}no" >&6
4357 fi
4358
4359   DLLTOOL=$ac_ct_DLLTOOL
4360 else
4361   DLLTOOL="$ac_cv_prog_DLLTOOL"
4362 fi
4363
4364   if test -n "$ac_tool_prefix"; then
4365   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4366 set dummy ${ac_tool_prefix}as; ac_word=$2
4367 echo "$as_me:$LINENO: checking for $ac_word" >&5
4368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4369 if test "${ac_cv_prog_AS+set}" = set; then
4370   echo $ECHO_N "(cached) $ECHO_C" >&6
4371 else
4372   if test -n "$AS"; then
4373   ac_cv_prog_AS="$AS" # Let the user override the test.
4374 else
4375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4376 for as_dir in $PATH
4377 do
4378   IFS=$as_save_IFS
4379   test -z "$as_dir" && as_dir=.
4380   for ac_exec_ext in '' $ac_executable_extensions; do
4381   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4382     ac_cv_prog_AS="${ac_tool_prefix}as"
4383     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4384     break 2
4385   fi
4386 done
4387 done
4388
4389 fi
4390 fi
4391 AS=$ac_cv_prog_AS
4392 if test -n "$AS"; then
4393   echo "$as_me:$LINENO: result: $AS" >&5
4394 echo "${ECHO_T}$AS" >&6
4395 else
4396   echo "$as_me:$LINENO: result: no" >&5
4397 echo "${ECHO_T}no" >&6
4398 fi
4399
4400 fi
4401 if test -z "$ac_cv_prog_AS"; then
4402   ac_ct_AS=$AS
4403   # Extract the first word of "as", so it can be a program name with args.
4404 set dummy as; ac_word=$2
4405 echo "$as_me:$LINENO: checking for $ac_word" >&5
4406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4407 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4408   echo $ECHO_N "(cached) $ECHO_C" >&6
4409 else
4410   if test -n "$ac_ct_AS"; then
4411   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4412 else
4413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4414 for as_dir in $PATH
4415 do
4416   IFS=$as_save_IFS
4417   test -z "$as_dir" && as_dir=.
4418   for ac_exec_ext in '' $ac_executable_extensions; do
4419   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4420     ac_cv_prog_ac_ct_AS="as"
4421     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4422     break 2
4423   fi
4424 done
4425 done
4426
4427   test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
4428 fi
4429 fi
4430 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4431 if test -n "$ac_ct_AS"; then
4432   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4433 echo "${ECHO_T}$ac_ct_AS" >&6
4434 else
4435   echo "$as_me:$LINENO: result: no" >&5
4436 echo "${ECHO_T}no" >&6
4437 fi
4438
4439   AS=$ac_ct_AS
4440 else
4441   AS="$ac_cv_prog_AS"
4442 fi
4443
4444   if test -n "$ac_tool_prefix"; then
4445   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4446 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4447 echo "$as_me:$LINENO: checking for $ac_word" >&5
4448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4449 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4450   echo $ECHO_N "(cached) $ECHO_C" >&6
4451 else
4452   if test -n "$OBJDUMP"; then
4453   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4454 else
4455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4456 for as_dir in $PATH
4457 do
4458   IFS=$as_save_IFS
4459   test -z "$as_dir" && as_dir=.
4460   for ac_exec_ext in '' $ac_executable_extensions; do
4461   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4462     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4463     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4464     break 2
4465   fi
4466 done
4467 done
4468
4469 fi
4470 fi
4471 OBJDUMP=$ac_cv_prog_OBJDUMP
4472 if test -n "$OBJDUMP"; then
4473   echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4474 echo "${ECHO_T}$OBJDUMP" >&6
4475 else
4476   echo "$as_me:$LINENO: result: no" >&5
4477 echo "${ECHO_T}no" >&6
4478 fi
4479
4480 fi
4481 if test -z "$ac_cv_prog_OBJDUMP"; then
4482   ac_ct_OBJDUMP=$OBJDUMP
4483   # Extract the first word of "objdump", so it can be a program name with args.
4484 set dummy objdump; ac_word=$2
4485 echo "$as_me:$LINENO: checking for $ac_word" >&5
4486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4487 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4488   echo $ECHO_N "(cached) $ECHO_C" >&6
4489 else
4490   if test -n "$ac_ct_OBJDUMP"; then
4491   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4492 else
4493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4494 for as_dir in $PATH
4495 do
4496   IFS=$as_save_IFS
4497   test -z "$as_dir" && as_dir=.
4498   for ac_exec_ext in '' $ac_executable_extensions; do
4499   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4500     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4501     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4502     break 2
4503   fi
4504 done
4505 done
4506
4507   test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
4508 fi
4509 fi
4510 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4511 if test -n "$ac_ct_OBJDUMP"; then
4512   echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4513 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
4514 else
4515   echo "$as_me:$LINENO: result: no" >&5
4516 echo "${ECHO_T}no" >&6
4517 fi
4518
4519   OBJDUMP=$ac_ct_OBJDUMP
4520 else
4521   OBJDUMP="$ac_cv_prog_OBJDUMP"
4522 fi
4523
4524   ;;
4525
4526 esac
4527
4528 need_locks="$enable_libtool_lock"
4529
4530
4531
4532 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4533 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4534 if test "${ac_cv_header_stdc+set}" = set; then
4535   echo $ECHO_N "(cached) $ECHO_C" >&6
4536 else
4537   cat >conftest.$ac_ext <<_ACEOF
4538 /* confdefs.h.  */
4539 _ACEOF
4540 cat confdefs.h >>conftest.$ac_ext
4541 cat >>conftest.$ac_ext <<_ACEOF
4542 /* end confdefs.h.  */
4543 #include <stdlib.h>
4544 #include <stdarg.h>
4545 #include <string.h>
4546 #include <float.h>
4547
4548 int
4549 main ()
4550 {
4551
4552   ;
4553   return 0;
4554 }
4555 _ACEOF
4556 rm -f conftest.$ac_objext
4557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4558   (eval $ac_compile) 2>conftest.er1
4559   ac_status=$?
4560   grep -v '^ *+' conftest.er1 >conftest.err
4561   rm -f conftest.er1
4562   cat conftest.err >&5
4563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564   (exit $ac_status); } &&
4565          { ac_try='test -z "$ac_c_werror_flag"
4566                          || test ! -s conftest.err'
4567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4568   (eval $ac_try) 2>&5
4569   ac_status=$?
4570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571   (exit $ac_status); }; } &&
4572          { ac_try='test -s conftest.$ac_objext'
4573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4574   (eval $ac_try) 2>&5
4575   ac_status=$?
4576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577   (exit $ac_status); }; }; then
4578   ac_cv_header_stdc=yes
4579 else
4580   echo "$as_me: failed program was:" >&5
4581 sed 's/^/| /' conftest.$ac_ext >&5
4582
4583 ac_cv_header_stdc=no
4584 fi
4585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4586
4587 if test $ac_cv_header_stdc = yes; then
4588   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4589   cat >conftest.$ac_ext <<_ACEOF
4590 /* confdefs.h.  */
4591 _ACEOF
4592 cat confdefs.h >>conftest.$ac_ext
4593 cat >>conftest.$ac_ext <<_ACEOF
4594 /* end confdefs.h.  */
4595 #include <string.h>
4596
4597 _ACEOF
4598 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4599   $EGREP "memchr" >/dev/null 2>&1; then
4600   :
4601 else
4602   ac_cv_header_stdc=no
4603 fi
4604 rm -f conftest*
4605
4606 fi
4607
4608 if test $ac_cv_header_stdc = yes; then
4609   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4610   cat >conftest.$ac_ext <<_ACEOF
4611 /* confdefs.h.  */
4612 _ACEOF
4613 cat confdefs.h >>conftest.$ac_ext
4614 cat >>conftest.$ac_ext <<_ACEOF
4615 /* end confdefs.h.  */
4616 #include <stdlib.h>
4617
4618 _ACEOF
4619 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4620   $EGREP "free" >/dev/null 2>&1; then
4621   :
4622 else
4623   ac_cv_header_stdc=no
4624 fi
4625 rm -f conftest*
4626
4627 fi
4628
4629 if test $ac_cv_header_stdc = yes; then
4630   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4631   if test "$cross_compiling" = yes; then
4632   :
4633 else
4634   cat >conftest.$ac_ext <<_ACEOF
4635 /* confdefs.h.  */
4636 _ACEOF
4637 cat confdefs.h >>conftest.$ac_ext
4638 cat >>conftest.$ac_ext <<_ACEOF
4639 /* end confdefs.h.  */
4640 #include <ctype.h>
4641 #if ((' ' & 0x0FF) == 0x020)
4642 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4643 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4644 #else
4645 # define ISLOWER(c) \
4646                    (('a' <= (c) && (c) <= 'i') \
4647                      || ('j' <= (c) && (c) <= 'r') \
4648                      || ('s' <= (c) && (c) <= 'z'))
4649 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4650 #endif
4651
4652 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4653 int
4654 main ()
4655 {
4656   int i;
4657   for (i = 0; i < 256; i++)
4658     if (XOR (islower (i), ISLOWER (i))
4659         || toupper (i) != TOUPPER (i))
4660       exit(2);
4661   exit (0);
4662 }
4663 _ACEOF
4664 rm -f conftest$ac_exeext
4665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4666   (eval $ac_link) 2>&5
4667   ac_status=$?
4668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4671   (eval $ac_try) 2>&5
4672   ac_status=$?
4673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674   (exit $ac_status); }; }; then
4675   :
4676 else
4677   echo "$as_me: program exited with status $ac_status" >&5
4678 echo "$as_me: failed program was:" >&5
4679 sed 's/^/| /' conftest.$ac_ext >&5
4680
4681 ( exit $ac_status )
4682 ac_cv_header_stdc=no
4683 fi
4684 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4685 fi
4686 fi
4687 fi
4688 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4689 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4690 if test $ac_cv_header_stdc = yes; then
4691
4692 cat >>confdefs.h <<\_ACEOF
4693 #define STDC_HEADERS 1
4694 _ACEOF
4695
4696 fi
4697
4698 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4709                   inttypes.h stdint.h unistd.h
4710 do
4711 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4712 echo "$as_me:$LINENO: checking for $ac_header" >&5
4713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4714 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4715   echo $ECHO_N "(cached) $ECHO_C" >&6
4716 else
4717   cat >conftest.$ac_ext <<_ACEOF
4718 /* confdefs.h.  */
4719 _ACEOF
4720 cat confdefs.h >>conftest.$ac_ext
4721 cat >>conftest.$ac_ext <<_ACEOF
4722 /* end confdefs.h.  */
4723 $ac_includes_default
4724
4725 #include <$ac_header>
4726 _ACEOF
4727 rm -f conftest.$ac_objext
4728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4729   (eval $ac_compile) 2>conftest.er1
4730   ac_status=$?
4731   grep -v '^ *+' conftest.er1 >conftest.err
4732   rm -f conftest.er1
4733   cat conftest.err >&5
4734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735   (exit $ac_status); } &&
4736          { ac_try='test -z "$ac_c_werror_flag"
4737                          || test ! -s conftest.err'
4738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4739   (eval $ac_try) 2>&5
4740   ac_status=$?
4741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742   (exit $ac_status); }; } &&
4743          { ac_try='test -s conftest.$ac_objext'
4744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4745   (eval $ac_try) 2>&5
4746   ac_status=$?
4747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748   (exit $ac_status); }; }; then
4749   eval "$as_ac_Header=yes"
4750 else
4751   echo "$as_me: failed program was:" >&5
4752 sed 's/^/| /' conftest.$ac_ext >&5
4753
4754 eval "$as_ac_Header=no"
4755 fi
4756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4757 fi
4758 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4759 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4760 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4761   cat >>confdefs.h <<_ACEOF
4762 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4763 _ACEOF
4764
4765 fi
4766
4767 done
4768
4769
4770
4771 for ac_header in dlfcn.h
4772 do
4773 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4774 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4775   echo "$as_me:$LINENO: checking for $ac_header" >&5
4776 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4777 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4778   echo $ECHO_N "(cached) $ECHO_C" >&6
4779 fi
4780 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4781 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4782 else
4783   # Is the header compilable?
4784 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4785 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4786 cat >conftest.$ac_ext <<_ACEOF
4787 /* confdefs.h.  */
4788 _ACEOF
4789 cat confdefs.h >>conftest.$ac_ext
4790 cat >>conftest.$ac_ext <<_ACEOF
4791 /* end confdefs.h.  */
4792 $ac_includes_default
4793 #include <$ac_header>
4794 _ACEOF
4795 rm -f conftest.$ac_objext
4796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4797   (eval $ac_compile) 2>conftest.er1
4798   ac_status=$?
4799   grep -v '^ *+' conftest.er1 >conftest.err
4800   rm -f conftest.er1
4801   cat conftest.err >&5
4802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803   (exit $ac_status); } &&
4804          { ac_try='test -z "$ac_c_werror_flag"
4805                          || test ! -s conftest.err'
4806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4807   (eval $ac_try) 2>&5
4808   ac_status=$?
4809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810   (exit $ac_status); }; } &&
4811          { ac_try='test -s conftest.$ac_objext'
4812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4813   (eval $ac_try) 2>&5
4814   ac_status=$?
4815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816   (exit $ac_status); }; }; then
4817   ac_header_compiler=yes
4818 else
4819   echo "$as_me: failed program was:" >&5
4820 sed 's/^/| /' conftest.$ac_ext >&5
4821
4822 ac_header_compiler=no
4823 fi
4824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4825 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4826 echo "${ECHO_T}$ac_header_compiler" >&6
4827
4828 # Is the header present?
4829 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4830 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4831 cat >conftest.$ac_ext <<_ACEOF
4832 /* confdefs.h.  */
4833 _ACEOF
4834 cat confdefs.h >>conftest.$ac_ext
4835 cat >>conftest.$ac_ext <<_ACEOF
4836 /* end confdefs.h.  */
4837 #include <$ac_header>
4838 _ACEOF
4839 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4840   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4841   ac_status=$?
4842   grep -v '^ *+' conftest.er1 >conftest.err
4843   rm -f conftest.er1
4844   cat conftest.err >&5
4845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846   (exit $ac_status); } >/dev/null; then
4847   if test -s conftest.err; then
4848     ac_cpp_err=$ac_c_preproc_warn_flag
4849     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4850   else
4851     ac_cpp_err=
4852   fi
4853 else
4854   ac_cpp_err=yes
4855 fi
4856 if test -z "$ac_cpp_err"; then
4857   ac_header_preproc=yes
4858 else
4859   echo "$as_me: failed program was:" >&5
4860 sed 's/^/| /' conftest.$ac_ext >&5
4861
4862   ac_header_preproc=no
4863 fi
4864 rm -f conftest.err conftest.$ac_ext
4865 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4866 echo "${ECHO_T}$ac_header_preproc" >&6
4867
4868 # So?  What about this header?
4869 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4870   yes:no: )
4871     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4872 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4873     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4874 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4875     ac_header_preproc=yes
4876     ;;
4877   no:yes:* )
4878     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4879 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4880     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4881 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4882     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4883 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4884     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4885 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4886     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4887 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4888     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4889 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4890     (
4891       cat <<\_ASBOX
4892 ## ------------------------------------------ ##
4893 ## Report this to the AC_PACKAGE_NAME lists.  ##
4894 ## ------------------------------------------ ##
4895 _ASBOX
4896     ) |
4897       sed "s/^/$as_me: WARNING:     /" >&2
4898     ;;
4899 esac
4900 echo "$as_me:$LINENO: checking for $ac_header" >&5
4901 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4902 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4903   echo $ECHO_N "(cached) $ECHO_C" >&6
4904 else
4905   eval "$as_ac_Header=\$ac_header_preproc"
4906 fi
4907 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4908 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4909
4910 fi
4911 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4912   cat >>confdefs.h <<_ACEOF
4913 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4914 _ACEOF
4915
4916 fi
4917
4918 done
4919
4920 ac_ext=cc
4921 ac_cpp='$CXXCPP $CPPFLAGS'
4922 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4923 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4924 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4925 if test -n "$ac_tool_prefix"; then
4926   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4927   do
4928     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4929 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4930 echo "$as_me:$LINENO: checking for $ac_word" >&5
4931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4932 if test "${ac_cv_prog_CXX+set}" = set; then
4933   echo $ECHO_N "(cached) $ECHO_C" >&6
4934 else
4935   if test -n "$CXX"; then
4936   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4937 else
4938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4939 for as_dir in $PATH
4940 do
4941   IFS=$as_save_IFS
4942   test -z "$as_dir" && as_dir=.
4943   for ac_exec_ext in '' $ac_executable_extensions; do
4944   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4945     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4946     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4947     break 2
4948   fi
4949 done
4950 done
4951
4952 fi
4953 fi
4954 CXX=$ac_cv_prog_CXX
4955 if test -n "$CXX"; then
4956   echo "$as_me:$LINENO: result: $CXX" >&5
4957 echo "${ECHO_T}$CXX" >&6
4958 else
4959   echo "$as_me:$LINENO: result: no" >&5
4960 echo "${ECHO_T}no" >&6
4961 fi
4962
4963     test -n "$CXX" && break
4964   done
4965 fi
4966 if test -z "$CXX"; then
4967   ac_ct_CXX=$CXX
4968   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4969 do
4970   # Extract the first word of "$ac_prog", so it can be a program name with args.
4971 set dummy $ac_prog; ac_word=$2
4972 echo "$as_me:$LINENO: checking for $ac_word" >&5
4973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4974 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4975   echo $ECHO_N "(cached) $ECHO_C" >&6
4976 else
4977   if test -n "$ac_ct_CXX"; then
4978   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4979 else
4980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4981 for as_dir in $PATH
4982 do
4983   IFS=$as_save_IFS
4984   test -z "$as_dir" && as_dir=.
4985   for ac_exec_ext in '' $ac_executable_extensions; do
4986   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4987     ac_cv_prog_ac_ct_CXX="$ac_prog"
4988     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4989     break 2
4990   fi
4991 done
4992 done
4993
4994 fi
4995 fi
4996 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4997 if test -n "$ac_ct_CXX"; then
4998   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4999 echo "${ECHO_T}$ac_ct_CXX" >&6
5000 else
5001   echo "$as_me:$LINENO: result: no" >&5
5002 echo "${ECHO_T}no" >&6
5003 fi
5004
5005   test -n "$ac_ct_CXX" && break
5006 done
5007 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5008
5009   CXX=$ac_ct_CXX
5010 fi
5011
5012
5013 # Provide some information about the compiler.
5014 echo "$as_me:$LINENO:" \
5015      "checking for C++ compiler version" >&5
5016 ac_compiler=`set X $ac_compile; echo $2`
5017 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5018   (eval $ac_compiler --version </dev/null >&5) 2>&5
5019   ac_status=$?
5020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021   (exit $ac_status); }
5022 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5023   (eval $ac_compiler -v </dev/null >&5) 2>&5
5024   ac_status=$?
5025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026   (exit $ac_status); }
5027 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5028   (eval $ac_compiler -V </dev/null >&5) 2>&5
5029   ac_status=$?
5030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031   (exit $ac_status); }
5032
5033 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5034 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5035 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5036   echo $ECHO_N "(cached) $ECHO_C" >&6
5037 else
5038   cat >conftest.$ac_ext <<_ACEOF
5039 /* confdefs.h.  */
5040 _ACEOF
5041 cat confdefs.h >>conftest.$ac_ext
5042 cat >>conftest.$ac_ext <<_ACEOF
5043 /* end confdefs.h.  */
5044
5045 int
5046 main ()
5047 {
5048 #ifndef __GNUC__
5049        choke me
5050 #endif
5051
5052   ;
5053   return 0;
5054 }
5055 _ACEOF
5056 rm -f conftest.$ac_objext
5057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5058   (eval $ac_compile) 2>conftest.er1
5059   ac_status=$?
5060   grep -v '^ *+' conftest.er1 >conftest.err
5061   rm -f conftest.er1
5062   cat conftest.err >&5
5063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064   (exit $ac_status); } &&
5065          { ac_try='test -z "$ac_cxx_werror_flag"
5066                          || test ! -s conftest.err'
5067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5068   (eval $ac_try) 2>&5
5069   ac_status=$?
5070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071   (exit $ac_status); }; } &&
5072          { ac_try='test -s conftest.$ac_objext'
5073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5074   (eval $ac_try) 2>&5
5075   ac_status=$?
5076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077   (exit $ac_status); }; }; then
5078   ac_compiler_gnu=yes
5079 else
5080   echo "$as_me: failed program was:" >&5
5081 sed 's/^/| /' conftest.$ac_ext >&5
5082
5083 ac_compiler_gnu=no
5084 fi
5085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5086 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5087
5088 fi
5089 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5090 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5091 GXX=`test $ac_compiler_gnu = yes && echo yes`
5092 ac_test_CXXFLAGS=${CXXFLAGS+set}
5093 ac_save_CXXFLAGS=$CXXFLAGS
5094 CXXFLAGS="-g"
5095 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5096 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5097 if test "${ac_cv_prog_cxx_g+set}" = set; then
5098   echo $ECHO_N "(cached) $ECHO_C" >&6
5099 else
5100   cat >conftest.$ac_ext <<_ACEOF
5101 /* confdefs.h.  */
5102 _ACEOF
5103 cat confdefs.h >>conftest.$ac_ext
5104 cat >>conftest.$ac_ext <<_ACEOF
5105 /* end confdefs.h.  */
5106
5107 int
5108 main ()
5109 {
5110
5111   ;
5112   return 0;
5113 }
5114 _ACEOF
5115 rm -f conftest.$ac_objext
5116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5117   (eval $ac_compile) 2>conftest.er1
5118   ac_status=$?
5119   grep -v '^ *+' conftest.er1 >conftest.err
5120   rm -f conftest.er1
5121   cat conftest.err >&5
5122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123   (exit $ac_status); } &&
5124          { ac_try='test -z "$ac_cxx_werror_flag"
5125                          || test ! -s conftest.err'
5126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5127   (eval $ac_try) 2>&5
5128   ac_status=$?
5129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130   (exit $ac_status); }; } &&
5131          { ac_try='test -s conftest.$ac_objext'
5132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5133   (eval $ac_try) 2>&5
5134   ac_status=$?
5135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136   (exit $ac_status); }; }; then
5137   ac_cv_prog_cxx_g=yes
5138 else
5139   echo "$as_me: failed program was:" >&5
5140 sed 's/^/| /' conftest.$ac_ext >&5
5141
5142 ac_cv_prog_cxx_g=no
5143 fi
5144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5145 fi
5146 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5147 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5148 if test "$ac_test_CXXFLAGS" = set; then
5149   CXXFLAGS=$ac_save_CXXFLAGS
5150 elif test $ac_cv_prog_cxx_g = yes; then
5151   if test "$GXX" = yes; then
5152     CXXFLAGS="-g -O2"
5153   else
5154     CXXFLAGS="-g"
5155   fi
5156 else
5157   if test "$GXX" = yes; then
5158     CXXFLAGS="-O2"
5159   else
5160     CXXFLAGS=
5161   fi
5162 fi
5163 for ac_declaration in \
5164    '' \
5165    'extern "C" void std::exit (int) throw (); using std::exit;' \
5166    'extern "C" void std::exit (int); using std::exit;' \
5167    'extern "C" void exit (int) throw ();' \
5168    'extern "C" void exit (int);' \
5169    'void exit (int);'
5170 do
5171   cat >conftest.$ac_ext <<_ACEOF
5172 /* confdefs.h.  */
5173 _ACEOF
5174 cat confdefs.h >>conftest.$ac_ext
5175 cat >>conftest.$ac_ext <<_ACEOF
5176 /* end confdefs.h.  */
5177 $ac_declaration
5178 #include <stdlib.h>
5179 int
5180 main ()
5181 {
5182 exit (42);
5183   ;
5184   return 0;
5185 }
5186 _ACEOF
5187 rm -f conftest.$ac_objext
5188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5189   (eval $ac_compile) 2>conftest.er1
5190   ac_status=$?
5191   grep -v '^ *+' conftest.er1 >conftest.err
5192   rm -f conftest.er1
5193   cat conftest.err >&5
5194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195   (exit $ac_status); } &&
5196          { ac_try='test -z "$ac_cxx_werror_flag"
5197                          || test ! -s conftest.err'
5198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5199   (eval $ac_try) 2>&5
5200   ac_status=$?
5201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202   (exit $ac_status); }; } &&
5203          { ac_try='test -s conftest.$ac_objext'
5204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5205   (eval $ac_try) 2>&5
5206   ac_status=$?
5207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208   (exit $ac_status); }; }; then
5209   :
5210 else
5211   echo "$as_me: failed program was:" >&5
5212 sed 's/^/| /' conftest.$ac_ext >&5
5213
5214 continue
5215 fi
5216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5217   cat >conftest.$ac_ext <<_ACEOF
5218 /* confdefs.h.  */
5219 _ACEOF
5220 cat confdefs.h >>conftest.$ac_ext
5221 cat >>conftest.$ac_ext <<_ACEOF
5222 /* end confdefs.h.  */
5223 $ac_declaration
5224 int
5225 main ()
5226 {
5227 exit (42);
5228   ;
5229   return 0;
5230 }
5231 _ACEOF
5232 rm -f conftest.$ac_objext
5233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5234   (eval $ac_compile) 2>conftest.er1
5235   ac_status=$?
5236   grep -v '^ *+' conftest.er1 >conftest.err
5237   rm -f conftest.er1
5238   cat conftest.err >&5
5239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240   (exit $ac_status); } &&
5241          { ac_try='test -z "$ac_cxx_werror_flag"
5242                          || test ! -s conftest.err'
5243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5244   (eval $ac_try) 2>&5
5245   ac_status=$?
5246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247   (exit $ac_status); }; } &&
5248          { ac_try='test -s conftest.$ac_objext'
5249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5250   (eval $ac_try) 2>&5
5251   ac_status=$?
5252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253   (exit $ac_status); }; }; then
5254   break
5255 else
5256   echo "$as_me: failed program was:" >&5
5257 sed 's/^/| /' conftest.$ac_ext >&5
5258
5259 fi
5260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5261 done
5262 rm -f conftest*
5263 if test -n "$ac_declaration"; then
5264   echo '#ifdef __cplusplus' >>confdefs.h
5265   echo $ac_declaration      >>confdefs.h
5266   echo '#endif'             >>confdefs.h
5267 fi
5268
5269 ac_ext=cc
5270 ac_cpp='$CXXCPP $CPPFLAGS'
5271 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5272 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5273 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5274
5275 depcc="$CXX"  am_compiler_list=
5276
5277 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5278 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5279 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5280   echo $ECHO_N "(cached) $ECHO_C" >&6
5281 else
5282   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5283   # We make a subdir and do the tests there.  Otherwise we can end up
5284   # making bogus files that we don't know about and never remove.  For
5285   # instance it was reported that on HP-UX the gcc test will end up
5286   # making a dummy file named `D' -- because `-MD' means `put the output
5287   # in D'.
5288   mkdir conftest.dir
5289   # Copy depcomp to subdir because otherwise we won't find it if we're
5290   # using a relative directory.
5291   cp "$am_depcomp" conftest.dir
5292   cd conftest.dir
5293   # We will build objects and dependencies in a subdirectory because
5294   # it helps to detect inapplicable dependency modes.  For instance
5295   # both Tru64's cc and ICC support -MD to output dependencies as a
5296   # side effect of compilation, but ICC will put the dependencies in
5297   # the current directory while Tru64 will put them in the object
5298   # directory.
5299   mkdir sub
5300
5301   am_cv_CXX_dependencies_compiler_type=none
5302   if test "$am_compiler_list" = ""; then
5303      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5304   fi
5305   for depmode in $am_compiler_list; do
5306     # Setup a source with many dependencies, because some compilers
5307     # like to wrap large dependency lists on column 80 (with \), and
5308     # we should not choose a depcomp mode which is confused by this.
5309     #
5310     # We need to recreate these files for each test, as the compiler may
5311     # overwrite some of them when testing with obscure command lines.
5312     # This happens at least with the AIX C compiler.
5313     : > sub/conftest.c
5314     for i in 1 2 3 4 5 6; do
5315       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5316       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5317       # Solaris 8's {/usr,}/bin/sh.
5318       touch sub/conftst$i.h
5319     done
5320     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5321
5322     case $depmode in
5323     nosideeffect)
5324       # after this tag, mechanisms are not by side-effect, so they'll
5325       # only be used when explicitly requested
5326       if test "x$enable_dependency_tracking" = xyes; then
5327         continue
5328       else
5329         break
5330       fi
5331       ;;
5332     none) break ;;
5333     esac
5334     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5335     # mode.  It turns out that the SunPro C++ compiler does not properly
5336     # handle `-M -o', and we need to detect this.
5337     if depmode=$depmode \
5338        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5339        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5340        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5341          >/dev/null 2>conftest.err &&
5342        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5343        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5344        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5345       # icc doesn't choke on unknown options, it will just issue warnings
5346       # or remarks (even with -Werror).  So we grep stderr for any message
5347       # that says an option was ignored or not supported.
5348       # When given -MP, icc 7.0 and 7.1 complain thusly:
5349       #   icc: Command line warning: ignoring option '-M'; no argument required
5350       # The diagnosis changed in icc 8.0:
5351       #   icc: Command line remark: option '-MP' not supported
5352       if (grep 'ignoring option' conftest.err ||
5353           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5354         am_cv_CXX_dependencies_compiler_type=$depmode
5355         break
5356       fi
5357     fi
5358   done
5359
5360   cd ..
5361   rm -rf conftest.dir
5362 else
5363   am_cv_CXX_dependencies_compiler_type=none
5364 fi
5365
5366 fi
5367 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5368 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5369 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5370
5371
5372
5373 if
5374   test "x$enable_dependency_tracking" != xno \
5375   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5376   am__fastdepCXX_TRUE=
5377   am__fastdepCXX_FALSE='#'
5378 else
5379   am__fastdepCXX_TRUE='#'
5380   am__fastdepCXX_FALSE=
5381 fi
5382
5383
5384
5385
5386 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5387     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5388     (test "X$CXX" != "Xg++"))) ; then
5389   ac_ext=cc
5390 ac_cpp='$CXXCPP $CPPFLAGS'
5391 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5392 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5393 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5394 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5395 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5396 if test -z "$CXXCPP"; then
5397   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5398   echo $ECHO_N "(cached) $ECHO_C" >&6
5399 else
5400       # Double quotes because CXXCPP needs to be expanded
5401     for CXXCPP in "$CXX -E" "/lib/cpp"
5402     do
5403       ac_preproc_ok=false
5404 for ac_cxx_preproc_warn_flag in '' yes
5405 do
5406   # Use a header file that comes with gcc, so configuring glibc
5407   # with a fresh cross-compiler works.
5408   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5409   # <limits.h> exists even on freestanding compilers.
5410   # On the NeXT, cc -E runs the code through the compiler's parser,
5411   # not just through cpp. "Syntax error" is here to catch this case.
5412   cat >conftest.$ac_ext <<_ACEOF
5413 /* confdefs.h.  */
5414 _ACEOF
5415 cat confdefs.h >>conftest.$ac_ext
5416 cat >>conftest.$ac_ext <<_ACEOF
5417 /* end confdefs.h.  */
5418 #ifdef __STDC__
5419 # include <limits.h>
5420 #else
5421 # include <assert.h>
5422 #endif
5423                      Syntax error
5424 _ACEOF
5425 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5426   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5427   ac_status=$?
5428   grep -v '^ *+' conftest.er1 >conftest.err
5429   rm -f conftest.er1
5430   cat conftest.err >&5
5431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5432   (exit $ac_status); } >/dev/null; then
5433   if test -s conftest.err; then
5434     ac_cpp_err=$ac_cxx_preproc_warn_flag
5435     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5436   else
5437     ac_cpp_err=
5438   fi
5439 else
5440   ac_cpp_err=yes
5441 fi
5442 if test -z "$ac_cpp_err"; then
5443   :
5444 else
5445   echo "$as_me: failed program was:" >&5
5446 sed 's/^/| /' conftest.$ac_ext >&5
5447
5448   # Broken: fails on valid input.
5449 continue
5450 fi
5451 rm -f conftest.err conftest.$ac_ext
5452
5453   # OK, works on sane cases.  Now check whether non-existent headers
5454   # can be detected and how.
5455   cat >conftest.$ac_ext <<_ACEOF
5456 /* confdefs.h.  */
5457 _ACEOF
5458 cat confdefs.h >>conftest.$ac_ext
5459 cat >>conftest.$ac_ext <<_ACEOF
5460 /* end confdefs.h.  */
5461 #include <ac_nonexistent.h>
5462 _ACEOF
5463 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5464   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5465   ac_status=$?
5466   grep -v '^ *+' conftest.er1 >conftest.err
5467   rm -f conftest.er1
5468   cat conftest.err >&5
5469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470   (exit $ac_status); } >/dev/null; then
5471   if test -s conftest.err; then
5472     ac_cpp_err=$ac_cxx_preproc_warn_flag
5473     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5474   else
5475     ac_cpp_err=
5476   fi
5477 else
5478   ac_cpp_err=yes
5479 fi
5480 if test -z "$ac_cpp_err"; then
5481   # Broken: success on invalid input.
5482 continue
5483 else
5484   echo "$as_me: failed program was:" >&5
5485 sed 's/^/| /' conftest.$ac_ext >&5
5486
5487   # Passes both tests.
5488 ac_preproc_ok=:
5489 break
5490 fi
5491 rm -f conftest.err conftest.$ac_ext
5492
5493 done
5494 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5495 rm -f conftest.err conftest.$ac_ext
5496 if $ac_preproc_ok; then
5497   break
5498 fi
5499
5500     done
5501     ac_cv_prog_CXXCPP=$CXXCPP
5502
5503 fi
5504   CXXCPP=$ac_cv_prog_CXXCPP
5505 else
5506   ac_cv_prog_CXXCPP=$CXXCPP
5507 fi
5508 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5509 echo "${ECHO_T}$CXXCPP" >&6
5510 ac_preproc_ok=false
5511 for ac_cxx_preproc_warn_flag in '' yes
5512 do
5513   # Use a header file that comes with gcc, so configuring glibc
5514   # with a fresh cross-compiler works.
5515   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5516   # <limits.h> exists even on freestanding compilers.
5517   # On the NeXT, cc -E runs the code through the compiler's parser,
5518   # not just through cpp. "Syntax error" is here to catch this case.
5519   cat >conftest.$ac_ext <<_ACEOF
5520 /* confdefs.h.  */
5521 _ACEOF
5522 cat confdefs.h >>conftest.$ac_ext
5523 cat >>conftest.$ac_ext <<_ACEOF
5524 /* end confdefs.h.  */
5525 #ifdef __STDC__
5526 # include <limits.h>
5527 #else
5528 # include <assert.h>
5529 #endif
5530                      Syntax error
5531 _ACEOF
5532 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5533   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5534   ac_status=$?
5535   grep -v '^ *+' conftest.er1 >conftest.err
5536   rm -f conftest.er1
5537   cat conftest.err >&5
5538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539   (exit $ac_status); } >/dev/null; then
5540   if test -s conftest.err; then
5541     ac_cpp_err=$ac_cxx_preproc_warn_flag
5542     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5543   else
5544     ac_cpp_err=
5545   fi
5546 else
5547   ac_cpp_err=yes
5548 fi
5549 if test -z "$ac_cpp_err"; then
5550   :
5551 else
5552   echo "$as_me: failed program was:" >&5
5553 sed 's/^/| /' conftest.$ac_ext >&5
5554
5555   # Broken: fails on valid input.
5556 continue
5557 fi
5558 rm -f conftest.err conftest.$ac_ext
5559
5560   # OK, works on sane cases.  Now check whether non-existent headers
5561   # can be detected and how.
5562   cat >conftest.$ac_ext <<_ACEOF
5563 /* confdefs.h.  */
5564 _ACEOF
5565 cat confdefs.h >>conftest.$ac_ext
5566 cat >>conftest.$ac_ext <<_ACEOF
5567 /* end confdefs.h.  */
5568 #include <ac_nonexistent.h>
5569 _ACEOF
5570 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5571   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5572   ac_status=$?
5573   grep -v '^ *+' conftest.er1 >conftest.err
5574   rm -f conftest.er1
5575   cat conftest.err >&5
5576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577   (exit $ac_status); } >/dev/null; then
5578   if test -s conftest.err; then
5579     ac_cpp_err=$ac_cxx_preproc_warn_flag
5580     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5581   else
5582     ac_cpp_err=
5583   fi
5584 else
5585   ac_cpp_err=yes
5586 fi
5587 if test -z "$ac_cpp_err"; then
5588   # Broken: success on invalid input.
5589 continue
5590 else
5591   echo "$as_me: failed program was:" >&5
5592 sed 's/^/| /' conftest.$ac_ext >&5
5593
5594   # Passes both tests.
5595 ac_preproc_ok=:
5596 break
5597 fi
5598 rm -f conftest.err conftest.$ac_ext
5599
5600 done
5601 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5602 rm -f conftest.err conftest.$ac_ext
5603 if $ac_preproc_ok; then
5604   :
5605 else
5606   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5607 See \`config.log' for more details." >&5
5608 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5609 See \`config.log' for more details." >&2;}
5610    { (exit 1); exit 1; }; }
5611 fi
5612
5613 ac_ext=cc
5614 ac_cpp='$CXXCPP $CPPFLAGS'
5615 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5616 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5617 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5618
5619 fi
5620
5621
5622 ac_ext=f
5623 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5624 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5625 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5626 if test -n "$ac_tool_prefix"; then
5627   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5628   do
5629     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5630 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5631 echo "$as_me:$LINENO: checking for $ac_word" >&5
5632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5633 if test "${ac_cv_prog_F77+set}" = set; then
5634   echo $ECHO_N "(cached) $ECHO_C" >&6
5635 else
5636   if test -n "$F77"; then
5637   ac_cv_prog_F77="$F77" # Let the user override the test.
5638 else
5639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5640 for as_dir in $PATH
5641 do
5642   IFS=$as_save_IFS
5643   test -z "$as_dir" && as_dir=.
5644   for ac_exec_ext in '' $ac_executable_extensions; do
5645   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5646     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5647     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5648     break 2
5649   fi
5650 done
5651 done
5652
5653 fi
5654 fi
5655 F77=$ac_cv_prog_F77
5656 if test -n "$F77"; then
5657   echo "$as_me:$LINENO: result: $F77" >&5
5658 echo "${ECHO_T}$F77" >&6
5659 else
5660   echo "$as_me:$LINENO: result: no" >&5
5661 echo "${ECHO_T}no" >&6
5662 fi
5663
5664     test -n "$F77" && break
5665   done
5666 fi
5667 if test -z "$F77"; then
5668   ac_ct_F77=$F77
5669   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5670 do
5671   # Extract the first word of "$ac_prog", so it can be a program name with args.
5672 set dummy $ac_prog; ac_word=$2
5673 echo "$as_me:$LINENO: checking for $ac_word" >&5
5674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5675 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5676   echo $ECHO_N "(cached) $ECHO_C" >&6
5677 else
5678   if test -n "$ac_ct_F77"; then
5679   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5680 else
5681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5682 for as_dir in $PATH
5683 do
5684   IFS=$as_save_IFS
5685   test -z "$as_dir" && as_dir=.
5686   for ac_exec_ext in '' $ac_executable_extensions; do
5687   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5688     ac_cv_prog_ac_ct_F77="$ac_prog"
5689     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5690     break 2
5691   fi
5692 done
5693 done
5694
5695 fi
5696 fi
5697 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5698 if test -n "$ac_ct_F77"; then
5699   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5700 echo "${ECHO_T}$ac_ct_F77" >&6
5701 else
5702   echo "$as_me:$LINENO: result: no" >&5
5703 echo "${ECHO_T}no" >&6
5704 fi
5705
5706   test -n "$ac_ct_F77" && break
5707 done
5708
5709   F77=$ac_ct_F77
5710 fi
5711
5712
5713 # Provide some information about the compiler.
5714 echo "$as_me:5714:" \
5715      "checking for Fortran 77 compiler version" >&5
5716 ac_compiler=`set X $ac_compile; echo $2`
5717 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5718   (eval $ac_compiler --version </dev/null >&5) 2>&5
5719   ac_status=$?
5720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721   (exit $ac_status); }
5722 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5723   (eval $ac_compiler -v </dev/null >&5) 2>&5
5724   ac_status=$?
5725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726   (exit $ac_status); }
5727 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5728   (eval $ac_compiler -V </dev/null >&5) 2>&5
5729   ac_status=$?
5730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731   (exit $ac_status); }
5732 rm -f a.out
5733
5734 # If we don't use `.F' as extension, the preprocessor is not run on the
5735 # input file.  (Note that this only needs to work for GNU compilers.)
5736 ac_save_ext=$ac_ext
5737 ac_ext=F
5738 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5739 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5740 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5741   echo $ECHO_N "(cached) $ECHO_C" >&6
5742 else
5743   cat >conftest.$ac_ext <<_ACEOF
5744       program main
5745 #ifndef __GNUC__
5746        choke me
5747 #endif
5748
5749       end
5750 _ACEOF
5751 rm -f conftest.$ac_objext
5752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5753   (eval $ac_compile) 2>conftest.er1
5754   ac_status=$?
5755   grep -v '^ *+' conftest.er1 >conftest.err
5756   rm -f conftest.er1
5757   cat conftest.err >&5
5758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759   (exit $ac_status); } &&
5760          { ac_try='test -z "$ac_f77_werror_flag"
5761                          || test ! -s conftest.err'
5762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5763   (eval $ac_try) 2>&5
5764   ac_status=$?
5765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766   (exit $ac_status); }; } &&
5767          { ac_try='test -s conftest.$ac_objext'
5768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5769   (eval $ac_try) 2>&5
5770   ac_status=$?
5771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772   (exit $ac_status); }; }; then
5773   ac_compiler_gnu=yes
5774 else
5775   echo "$as_me: failed program was:" >&5
5776 sed 's/^/| /' conftest.$ac_ext >&5
5777
5778 ac_compiler_gnu=no
5779 fi
5780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5781 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5782
5783 fi
5784 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5785 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5786 ac_ext=$ac_save_ext
5787 ac_test_FFLAGS=${FFLAGS+set}
5788 ac_save_FFLAGS=$FFLAGS
5789 FFLAGS=
5790 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5791 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5792 if test "${ac_cv_prog_f77_g+set}" = set; then
5793   echo $ECHO_N "(cached) $ECHO_C" >&6
5794 else
5795   FFLAGS=-g
5796 cat >conftest.$ac_ext <<_ACEOF
5797       program main
5798
5799       end
5800 _ACEOF
5801 rm -f conftest.$ac_objext
5802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5803   (eval $ac_compile) 2>conftest.er1
5804   ac_status=$?
5805   grep -v '^ *+' conftest.er1 >conftest.err
5806   rm -f conftest.er1
5807   cat conftest.err >&5
5808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809   (exit $ac_status); } &&
5810          { ac_try='test -z "$ac_f77_werror_flag"
5811                          || test ! -s conftest.err'
5812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5813   (eval $ac_try) 2>&5
5814   ac_status=$?
5815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816   (exit $ac_status); }; } &&
5817          { ac_try='test -s conftest.$ac_objext'
5818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5819   (eval $ac_try) 2>&5
5820   ac_status=$?
5821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822   (exit $ac_status); }; }; then
5823   ac_cv_prog_f77_g=yes
5824 else
5825   echo "$as_me: failed program was:" >&5
5826 sed 's/^/| /' conftest.$ac_ext >&5
5827
5828 ac_cv_prog_f77_g=no
5829 fi
5830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5831
5832 fi
5833 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5834 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5835 if test "$ac_test_FFLAGS" = set; then
5836   FFLAGS=$ac_save_FFLAGS
5837 elif test $ac_cv_prog_f77_g = yes; then
5838   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5839     FFLAGS="-g -O2"
5840   else
5841     FFLAGS="-g"
5842   fi
5843 else
5844   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5845     FFLAGS="-O2"
5846   else
5847     FFLAGS=
5848   fi
5849 fi
5850
5851 G77=`test $ac_compiler_gnu = yes && echo yes`
5852 ac_ext=c
5853 ac_cpp='$CPP $CPPFLAGS'
5854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5857
5858
5859
5860 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5861
5862 # find the maximum length of command line arguments
5863 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5864 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5865 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5866   echo $ECHO_N "(cached) $ECHO_C" >&6
5867 else
5868     i=0
5869   teststring="ABCD"
5870
5871   case $build_os in
5872   msdosdjgpp*)
5873     # On DJGPP, this test can blow up pretty badly due to problems in libc
5874     # (any single argument exceeding 2000 bytes causes a buffer overrun
5875     # during glob expansion).  Even if it were fixed, the result of this
5876     # check would be larger than it should be.
5877     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5878     ;;
5879
5880   gnu*)
5881     # Under GNU Hurd, this test is not required because there is
5882     # no limit to the length of command line arguments.
5883     # Libtool will interpret -1 as no limit whatsoever
5884     lt_cv_sys_max_cmd_len=-1;
5885     ;;
5886
5887   cygwin* | mingw*)
5888     # On Win9x/ME, this test blows up -- it succeeds, but takes
5889     # about 5 minutes as the teststring grows exponentially.
5890     # Worse, since 9x/ME are not pre-emptively multitasking,
5891     # you end up with a "frozen" computer, even though with patience
5892     # the test eventually succeeds (with a max line length of 256k).
5893     # Instead, let's just punt: use the minimum linelength reported by
5894     # all of the supported platforms: 8192 (on NT/2K/XP).
5895     lt_cv_sys_max_cmd_len=8192;
5896     ;;
5897
5898   amigaos*)
5899     # On AmigaOS with pdksh, this test takes hours, literally.
5900     # So we just punt and use a minimum line length of 8192.
5901     lt_cv_sys_max_cmd_len=8192;
5902     ;;
5903
5904   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5905     # This has been around since 386BSD, at least.  Likely further.
5906     if test -x /sbin/sysctl; then
5907       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5908     elif test -x /usr/sbin/sysctl; then
5909       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5910     else
5911       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5912     fi
5913     # And add a safety zone
5914     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5915     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5916     ;;
5917
5918   interix*)
5919     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5920     lt_cv_sys_max_cmd_len=196608
5921     ;;
5922
5923   osf*)
5924     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5925     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5926     # nice to cause kernel panics so lets avoid the loop below.
5927     # First set a reasonable default.
5928     lt_cv_sys_max_cmd_len=16384
5929     #
5930     if test -x /sbin/sysconfig; then
5931       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5932         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5933       esac
5934     fi
5935     ;;
5936   sco3.2v5*)
5937     lt_cv_sys_max_cmd_len=102400
5938     ;;
5939   sysv5* | sco5v6* | sysv4.2uw2*)
5940     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5941     if test -n "$kargmax"; then
5942       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
5943     else
5944       lt_cv_sys_max_cmd_len=32768
5945     fi
5946     ;;
5947   *)
5948     # If test is not a shell built-in, we'll probably end up computing a
5949     # maximum length that is only half of the actual maximum length, but
5950     # we can't tell.
5951     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5952     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5953                = "XX$teststring") >/dev/null 2>&1 &&
5954             new_result=`expr "X$teststring" : ".*" 2>&1` &&
5955             lt_cv_sys_max_cmd_len=$new_result &&
5956             test $i != 17 # 1/2 MB should be enough
5957     do
5958       i=`expr $i + 1`
5959       teststring=$teststring$teststring
5960     done
5961     teststring=
5962     # Add a significant safety factor because C++ compilers can tack on massive
5963     # amounts of additional arguments before passing them to the linker.
5964     # It appears as though 1/2 is a usable value.
5965     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5966     ;;
5967   esac
5968
5969 fi
5970
5971 if test -n $lt_cv_sys_max_cmd_len ; then
5972   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5973 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5974 else
5975   echo "$as_me:$LINENO: result: none" >&5
5976 echo "${ECHO_T}none" >&6
5977 fi
5978
5979
5980
5981
5982 # Check for command to grab the raw symbol name followed by C symbol from nm.
5983 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5984 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5985 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5986   echo $ECHO_N "(cached) $ECHO_C" >&6
5987 else
5988
5989 # These are sane defaults that work on at least a few old systems.
5990 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5991
5992 # Character class describing NM global symbol codes.
5993 symcode='[BCDEGRST]'
5994
5995 # Regexp to match symbols that can be accessed directly from C.
5996 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5997
5998 # Transform an extracted symbol line into a proper C declaration
5999 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6000
6001 # Transform an extracted symbol line into symbol name and symbol address
6002 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'"
6003
6004 # Define system-specific variables.
6005 case $host_os in
6006 aix*)
6007   symcode='[BCDT]'
6008   ;;
6009 cygwin* | mingw* | pw32*)
6010   symcode='[ABCDGISTW]'
6011   ;;
6012 hpux*) # Its linker distinguishes data from code symbols
6013   if test "$host_cpu" = ia64; then
6014     symcode='[ABCDEGRST]'
6015   fi
6016   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6017   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'"
6018   ;;
6019 linux*)
6020   if test "$host_cpu" = ia64; then
6021     symcode='[ABCDGIRSTW]'
6022     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6023     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'"
6024   fi
6025   ;;
6026 irix* | nonstopux*)
6027   symcode='[BCDEGRST]'
6028   ;;
6029 osf*)
6030   symcode='[BCDEGQRST]'
6031   ;;
6032 solaris*)
6033   symcode='[BDRT]'
6034   ;;
6035 sco3.2v5*)
6036   symcode='[DT]'
6037   ;;
6038 sysv4.2uw2*)
6039   symcode='[DT]'
6040   ;;
6041 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6042   symcode='[ABDT]'
6043   ;;
6044 sysv4)
6045   symcode='[DFNSTU]'
6046   ;;
6047 esac
6048
6049 # Handle CRLF in mingw tool chain
6050 opt_cr=
6051 case $build_os in
6052 mingw*)
6053   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6054   ;;
6055 esac
6056
6057 # If we're using GNU nm, then use its standard symbol codes.
6058 case `$NM -V 2>&1` in
6059 *GNU* | *'with BFD'*)
6060   symcode='[ABCDGIRSTW]' ;;
6061 esac
6062
6063 # Try without a prefix undercore, then with it.
6064 for ac_symprfx in "" "_"; do
6065
6066   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6067   symxfrm="\\1 $ac_symprfx\\2 \\2"
6068
6069   # Write the raw and C identifiers.
6070   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6071
6072   # Check to see that the pipe works correctly.
6073   pipe_works=no
6074
6075   rm -f conftest*
6076   cat > conftest.$ac_ext <<EOF
6077 #ifdef __cplusplus
6078 extern "C" {
6079 #endif
6080 char nm_test_var;
6081 void nm_test_func(){}
6082 #ifdef __cplusplus
6083 }
6084 #endif
6085 int main(){nm_test_var='a';nm_test_func();return(0);}
6086 EOF
6087
6088   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6089   (eval $ac_compile) 2>&5
6090   ac_status=$?
6091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092   (exit $ac_status); }; then
6093     # Now try to grab the symbols.
6094     nlist=conftest.nm
6095     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6096   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6097   ac_status=$?
6098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099   (exit $ac_status); } && test -s "$nlist"; then
6100       # Try sorting and uniquifying the output.
6101       if sort "$nlist" | uniq > "$nlist"T; then
6102         mv -f "$nlist"T "$nlist"
6103       else
6104         rm -f "$nlist"T
6105       fi
6106
6107       # Make sure that we snagged all the symbols we need.
6108       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6109         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6110           cat <<EOF > conftest.$ac_ext
6111 #ifdef __cplusplus
6112 extern "C" {
6113 #endif
6114
6115 EOF
6116           # Now generate the symbol file.
6117           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6118
6119           cat <<EOF >> conftest.$ac_ext
6120 #if defined (__STDC__) && __STDC__
6121 # define lt_ptr_t void *
6122 #else
6123 # define lt_ptr_t char *
6124 # define const
6125 #endif
6126
6127 /* The mapping between symbol names and symbols. */
6128 const struct {
6129   const char *name;
6130   lt_ptr_t address;
6131 }
6132 lt_preloaded_symbols[] =
6133 {
6134 EOF
6135           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6136           cat <<\EOF >> conftest.$ac_ext
6137   {0, (lt_ptr_t) 0}
6138 };
6139
6140 #ifdef __cplusplus
6141 }
6142 #endif
6143 EOF
6144           # Now try linking the two files.
6145           mv conftest.$ac_objext conftstm.$ac_objext
6146           lt_save_LIBS="$LIBS"
6147           lt_save_CFLAGS="$CFLAGS"
6148           LIBS="conftstm.$ac_objext"
6149           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6150           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6151   (eval $ac_link) 2>&5
6152   ac_status=$?
6153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6155             pipe_works=yes
6156           fi
6157           LIBS="$lt_save_LIBS"
6158           CFLAGS="$lt_save_CFLAGS"
6159         else
6160           echo "cannot find nm_test_func in $nlist" >&5
6161         fi
6162       else
6163         echo "cannot find nm_test_var in $nlist" >&5
6164       fi
6165     else
6166       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6167     fi
6168   else
6169     echo "$progname: failed program was:" >&5
6170     cat conftest.$ac_ext >&5
6171   fi
6172   rm -f conftest* conftst*
6173
6174   # Do not use the global_symbol_pipe unless it works.
6175   if test "$pipe_works" = yes; then
6176     break
6177   else
6178     lt_cv_sys_global_symbol_pipe=
6179   fi
6180 done
6181
6182 fi
6183
6184 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6185   lt_cv_sys_global_symbol_to_cdecl=
6186 fi
6187 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6188   echo "$as_me:$LINENO: result: failed" >&5
6189 echo "${ECHO_T}failed" >&6
6190 else
6191   echo "$as_me:$LINENO: result: ok" >&5
6192 echo "${ECHO_T}ok" >&6
6193 fi
6194
6195 echo "$as_me:$LINENO: checking for objdir" >&5
6196 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6197 if test "${lt_cv_objdir+set}" = set; then
6198   echo $ECHO_N "(cached) $ECHO_C" >&6
6199 else
6200   rm -f .libs 2>/dev/null
6201 mkdir .libs 2>/dev/null
6202 if test -d .libs; then
6203   lt_cv_objdir=.libs
6204 else
6205   # MS-DOS does not allow filenames that begin with a dot.
6206   lt_cv_objdir=_libs
6207 fi
6208 rmdir .libs 2>/dev/null
6209 fi
6210 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6211 echo "${ECHO_T}$lt_cv_objdir" >&6
6212 objdir=$lt_cv_objdir
6213
6214
6215
6216
6217
6218 case $host_os in
6219 aix3*)
6220   # AIX sometimes has problems with the GCC collect2 program.  For some
6221   # reason, if we set the COLLECT_NAMES environment variable, the problems
6222   # vanish in a puff of smoke.
6223   if test "X${COLLECT_NAMES+set}" != Xset; then
6224     COLLECT_NAMES=
6225     export COLLECT_NAMES
6226   fi
6227   ;;
6228 esac
6229
6230 # Sed substitution that helps us do robust quoting.  It backslashifies
6231 # metacharacters that are still active within double-quoted strings.
6232 Xsed='sed -e 1s/^X//'
6233 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6234
6235 # Same as above, but do not quote variable references.
6236 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6237
6238 # Sed substitution to delay expansion of an escaped shell variable in a
6239 # double_quote_subst'ed string.
6240 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6241
6242 # Sed substitution to avoid accidental globbing in evaled expressions
6243 no_glob_subst='s/\*/\\\*/g'
6244
6245 # Constants:
6246 rm="rm -f"
6247
6248 # Global variables:
6249 default_ofile=libtool
6250 can_build_shared=yes
6251
6252 # All known linkers require a `.a' archive for static linking (except MSVC,
6253 # which needs '.lib').
6254 libext=a
6255 ltmain="$ac_aux_dir/ltmain.sh"
6256 ofile="$default_ofile"
6257 with_gnu_ld="$lt_cv_prog_gnu_ld"
6258
6259 if test -n "$ac_tool_prefix"; then
6260   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6261 set dummy ${ac_tool_prefix}ar; ac_word=$2
6262 echo "$as_me:$LINENO: checking for $ac_word" >&5
6263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6264 if test "${ac_cv_prog_AR+set}" = set; then
6265   echo $ECHO_N "(cached) $ECHO_C" >&6
6266 else
6267   if test -n "$AR"; then
6268   ac_cv_prog_AR="$AR" # Let the user override the test.
6269 else
6270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6271 for as_dir in $PATH
6272 do
6273   IFS=$as_save_IFS
6274   test -z "$as_dir" && as_dir=.
6275   for ac_exec_ext in '' $ac_executable_extensions; do
6276   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6277     ac_cv_prog_AR="${ac_tool_prefix}ar"
6278     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6279     break 2
6280   fi
6281 done
6282 done
6283
6284 fi
6285 fi
6286 AR=$ac_cv_prog_AR
6287 if test -n "$AR"; then
6288   echo "$as_me:$LINENO: result: $AR" >&5
6289 echo "${ECHO_T}$AR" >&6
6290 else
6291   echo "$as_me:$LINENO: result: no" >&5
6292 echo "${ECHO_T}no" >&6
6293 fi
6294
6295 fi
6296 if test -z "$ac_cv_prog_AR"; then
6297   ac_ct_AR=$AR
6298   # Extract the first word of "ar", so it can be a program name with args.
6299 set dummy ar; ac_word=$2
6300 echo "$as_me:$LINENO: checking for $ac_word" >&5
6301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6302 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6303   echo $ECHO_N "(cached) $ECHO_C" >&6
6304 else
6305   if test -n "$ac_ct_AR"; then
6306   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6307 else
6308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6309 for as_dir in $PATH
6310 do
6311   IFS=$as_save_IFS
6312   test -z "$as_dir" && as_dir=.
6313   for ac_exec_ext in '' $ac_executable_extensions; do
6314   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6315     ac_cv_prog_ac_ct_AR="ar"
6316     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6317     break 2
6318   fi
6319 done
6320 done
6321
6322   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6323 fi
6324 fi
6325 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6326 if test -n "$ac_ct_AR"; then
6327   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6328 echo "${ECHO_T}$ac_ct_AR" >&6
6329 else
6330   echo "$as_me:$LINENO: result: no" >&5
6331 echo "${ECHO_T}no" >&6
6332 fi
6333
6334   AR=$ac_ct_AR
6335 else
6336   AR="$ac_cv_prog_AR"
6337 fi
6338
6339 if test -n "$ac_tool_prefix"; then
6340   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6341 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6342 echo "$as_me:$LINENO: checking for $ac_word" >&5
6343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6344 if test "${ac_cv_prog_RANLIB+set}" = set; then
6345   echo $ECHO_N "(cached) $ECHO_C" >&6
6346 else
6347   if test -n "$RANLIB"; then
6348   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6349 else
6350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6351 for as_dir in $PATH
6352 do
6353   IFS=$as_save_IFS
6354   test -z "$as_dir" && as_dir=.
6355   for ac_exec_ext in '' $ac_executable_extensions; do
6356   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6357     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6358     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6359     break 2
6360   fi
6361 done
6362 done
6363
6364 fi
6365 fi
6366 RANLIB=$ac_cv_prog_RANLIB
6367 if test -n "$RANLIB"; then
6368   echo "$as_me:$LINENO: result: $RANLIB" >&5
6369 echo "${ECHO_T}$RANLIB" >&6
6370 else
6371   echo "$as_me:$LINENO: result: no" >&5
6372 echo "${ECHO_T}no" >&6
6373 fi
6374
6375 fi
6376 if test -z "$ac_cv_prog_RANLIB"; then
6377   ac_ct_RANLIB=$RANLIB
6378   # Extract the first word of "ranlib", so it can be a program name with args.
6379 set dummy ranlib; ac_word=$2
6380 echo "$as_me:$LINENO: checking for $ac_word" >&5
6381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6382 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6383   echo $ECHO_N "(cached) $ECHO_C" >&6
6384 else
6385   if test -n "$ac_ct_RANLIB"; then
6386   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6387 else
6388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6389 for as_dir in $PATH
6390 do
6391   IFS=$as_save_IFS
6392   test -z "$as_dir" && as_dir=.
6393   for ac_exec_ext in '' $ac_executable_extensions; do
6394   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6395     ac_cv_prog_ac_ct_RANLIB="ranlib"
6396     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6397     break 2
6398   fi
6399 done
6400 done
6401
6402   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6403 fi
6404 fi
6405 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6406 if test -n "$ac_ct_RANLIB"; then
6407   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6408 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6409 else
6410   echo "$as_me:$LINENO: result: no" >&5
6411 echo "${ECHO_T}no" >&6
6412 fi
6413
6414   RANLIB=$ac_ct_RANLIB
6415 else
6416   RANLIB="$ac_cv_prog_RANLIB"
6417 fi
6418
6419 if test -n "$ac_tool_prefix"; then
6420   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6421 set dummy ${ac_tool_prefix}strip; ac_word=$2
6422 echo "$as_me:$LINENO: checking for $ac_word" >&5
6423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6424 if test "${ac_cv_prog_STRIP+set}" = set; then
6425   echo $ECHO_N "(cached) $ECHO_C" >&6
6426 else
6427   if test -n "$STRIP"; then
6428   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6429 else
6430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6431 for as_dir in $PATH
6432 do
6433   IFS=$as_save_IFS
6434   test -z "$as_dir" && as_dir=.
6435   for ac_exec_ext in '' $ac_executable_extensions; do
6436   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6437     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6438     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6439     break 2
6440   fi
6441 done
6442 done
6443
6444 fi
6445 fi
6446 STRIP=$ac_cv_prog_STRIP
6447 if test -n "$STRIP"; then
6448   echo "$as_me:$LINENO: result: $STRIP" >&5
6449 echo "${ECHO_T}$STRIP" >&6
6450 else
6451   echo "$as_me:$LINENO: result: no" >&5
6452 echo "${ECHO_T}no" >&6
6453 fi
6454
6455 fi
6456 if test -z "$ac_cv_prog_STRIP"; then
6457   ac_ct_STRIP=$STRIP
6458   # Extract the first word of "strip", so it can be a program name with args.
6459 set dummy strip; ac_word=$2
6460 echo "$as_me:$LINENO: checking for $ac_word" >&5
6461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6462 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6463   echo $ECHO_N "(cached) $ECHO_C" >&6
6464 else
6465   if test -n "$ac_ct_STRIP"; then
6466   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6467 else
6468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6469 for as_dir in $PATH
6470 do
6471   IFS=$as_save_IFS
6472   test -z "$as_dir" && as_dir=.
6473   for ac_exec_ext in '' $ac_executable_extensions; do
6474   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6475     ac_cv_prog_ac_ct_STRIP="strip"
6476     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6477     break 2
6478   fi
6479 done
6480 done
6481
6482   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6483 fi
6484 fi
6485 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6486 if test -n "$ac_ct_STRIP"; then
6487   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6488 echo "${ECHO_T}$ac_ct_STRIP" >&6
6489 else
6490   echo "$as_me:$LINENO: result: no" >&5
6491 echo "${ECHO_T}no" >&6
6492 fi
6493
6494   STRIP=$ac_ct_STRIP
6495 else
6496   STRIP="$ac_cv_prog_STRIP"
6497 fi
6498
6499
6500 old_CC="$CC"
6501 old_CFLAGS="$CFLAGS"
6502
6503 # Set sane defaults for various variables
6504 test -z "$AR" && AR=ar
6505 test -z "$AR_FLAGS" && AR_FLAGS=cru
6506 test -z "$AS" && AS=as
6507 test -z "$CC" && CC=cc
6508 test -z "$LTCC" && LTCC=$CC
6509 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6510 test -z "$DLLTOOL" && DLLTOOL=dlltool
6511 test -z "$LD" && LD=ld
6512 test -z "$LN_S" && LN_S="ln -s"
6513 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6514 test -z "$NM" && NM=nm
6515 test -z "$SED" && SED=sed
6516 test -z "$OBJDUMP" && OBJDUMP=objdump
6517 test -z "$RANLIB" && RANLIB=:
6518 test -z "$STRIP" && STRIP=:
6519 test -z "$ac_objext" && ac_objext=o
6520
6521 # Determine commands to create old-style static archives.
6522 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6523 old_postinstall_cmds='chmod 644 $oldlib'
6524 old_postuninstall_cmds=
6525
6526 if test -n "$RANLIB"; then
6527   case $host_os in
6528   openbsd*)
6529     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6530     ;;
6531   *)
6532     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6533     ;;
6534   esac
6535   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6536 fi
6537
6538 for cc_temp in $compiler""; do
6539   case $cc_temp in
6540     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6541     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6542     \-*) ;;
6543     *) break;;
6544   esac
6545 done
6546 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6547
6548
6549 # Only perform the check for file, if the check method requires it
6550 case $deplibs_check_method in
6551 file_magic*)
6552   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6553     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6554 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6555 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6556   echo $ECHO_N "(cached) $ECHO_C" >&6
6557 else
6558   case $MAGIC_CMD in
6559 [\\/*] |  ?:[\\/]*)
6560   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6561   ;;
6562 *)
6563   lt_save_MAGIC_CMD="$MAGIC_CMD"
6564   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6565   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6566   for ac_dir in $ac_dummy; do
6567     IFS="$lt_save_ifs"
6568     test -z "$ac_dir" && ac_dir=.
6569     if test -f $ac_dir/${ac_tool_prefix}file; then
6570       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6571       if test -n "$file_magic_test_file"; then
6572         case $deplibs_check_method in
6573         "file_magic "*)
6574           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6575           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6576           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6577             $EGREP "$file_magic_regex" > /dev/null; then
6578             :
6579           else
6580             cat <<EOF 1>&2
6581
6582 *** Warning: the command libtool uses to detect shared libraries,
6583 *** $file_magic_cmd, produces output that libtool cannot recognize.
6584 *** The result is that libtool may fail to recognize shared libraries
6585 *** as such.  This will affect the creation of libtool libraries that
6586 *** depend on shared libraries, but programs linked with such libtool
6587 *** libraries will work regardless of this problem.  Nevertheless, you
6588 *** may want to report the problem to your system manager and/or to
6589 *** bug-libtool@gnu.org
6590
6591 EOF
6592           fi ;;
6593         esac
6594       fi
6595       break
6596     fi
6597   done
6598   IFS="$lt_save_ifs"
6599   MAGIC_CMD="$lt_save_MAGIC_CMD"
6600   ;;
6601 esac
6602 fi
6603
6604 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6605 if test -n "$MAGIC_CMD"; then
6606   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6607 echo "${ECHO_T}$MAGIC_CMD" >&6
6608 else
6609   echo "$as_me:$LINENO: result: no" >&5
6610 echo "${ECHO_T}no" >&6
6611 fi
6612
6613 if test -z "$lt_cv_path_MAGIC_CMD"; then
6614   if test -n "$ac_tool_prefix"; then
6615     echo "$as_me:$LINENO: checking for file" >&5
6616 echo $ECHO_N "checking for file... $ECHO_C" >&6
6617 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6618   echo $ECHO_N "(cached) $ECHO_C" >&6
6619 else
6620   case $MAGIC_CMD in
6621 [\\/*] |  ?:[\\/]*)
6622   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6623   ;;
6624 *)
6625   lt_save_MAGIC_CMD="$MAGIC_CMD"
6626   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6627   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6628   for ac_dir in $ac_dummy; do
6629     IFS="$lt_save_ifs"
6630     test -z "$ac_dir" && ac_dir=.
6631     if test -f $ac_dir/file; then
6632       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6633       if test -n "$file_magic_test_file"; then
6634         case $deplibs_check_method in
6635         "file_magic "*)
6636           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6637           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6638           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6639             $EGREP "$file_magic_regex" > /dev/null; then
6640             :
6641           else
6642             cat <<EOF 1>&2
6643
6644 *** Warning: the command libtool uses to detect shared libraries,
6645 *** $file_magic_cmd, produces output that libtool cannot recognize.
6646 *** The result is that libtool may fail to recognize shared libraries
6647 *** as such.  This will affect the creation of libtool libraries that
6648 *** depend on shared libraries, but programs linked with such libtool
6649 *** libraries will work regardless of this problem.  Nevertheless, you
6650 *** may want to report the problem to your system manager and/or to
6651 *** bug-libtool@gnu.org
6652
6653 EOF
6654           fi ;;
6655         esac
6656       fi
6657       break
6658     fi
6659   done
6660   IFS="$lt_save_ifs"
6661   MAGIC_CMD="$lt_save_MAGIC_CMD"
6662   ;;
6663 esac
6664 fi
6665
6666 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6667 if test -n "$MAGIC_CMD"; then
6668   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6669 echo "${ECHO_T}$MAGIC_CMD" >&6
6670 else
6671   echo "$as_me:$LINENO: result: no" >&5
6672 echo "${ECHO_T}no" >&6
6673 fi
6674
6675   else
6676     MAGIC_CMD=:
6677   fi
6678 fi
6679
6680   fi
6681   ;;
6682 esac
6683
6684 enable_dlopen=no
6685 enable_win32_dll=yes
6686
6687 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6688 if test "${enable_libtool_lock+set}" = set; then
6689   enableval="$enable_libtool_lock"
6690
6691 fi;
6692 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6693
6694
6695 # Check whether --with-pic or --without-pic was given.
6696 if test "${with_pic+set}" = set; then
6697   withval="$with_pic"
6698   pic_mode="$withval"
6699 else
6700   pic_mode=default
6701 fi;
6702 test -z "$pic_mode" && pic_mode=default
6703
6704 # Use C for the default configuration in the libtool script
6705 tagname=
6706 lt_save_CC="$CC"
6707 ac_ext=c
6708 ac_cpp='$CPP $CPPFLAGS'
6709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6712
6713
6714 # Source file extension for C test sources.
6715 ac_ext=c
6716
6717 # Object file extension for compiled C test sources.
6718 objext=o
6719 objext=$objext
6720
6721 # Code to be used in simple compile tests
6722 lt_simple_compile_test_code="int some_variable = 0;\n"
6723
6724 # Code to be used in simple link tests
6725 lt_simple_link_test_code='int main(){return(0);}\n'
6726
6727
6728 # If no C compiler was specified, use CC.
6729 LTCC=${LTCC-"$CC"}
6730
6731 # If no C compiler flags were specified, use CFLAGS.
6732 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6733
6734 # Allow CC to be a program name with arguments.
6735 compiler=$CC
6736
6737
6738 # save warnings/boilerplate of simple test code
6739 ac_outfile=conftest.$ac_objext
6740 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6741 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6742 _lt_compiler_boilerplate=`cat conftest.err`
6743 $rm conftest*
6744
6745 ac_outfile=conftest.$ac_objext
6746 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6747 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6748 _lt_linker_boilerplate=`cat conftest.err`
6749 $rm conftest*
6750
6751
6752
6753 lt_prog_compiler_no_builtin_flag=
6754
6755 if test "$GCC" = yes; then
6756   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6757
6758
6759 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6760 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6761 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6762   echo $ECHO_N "(cached) $ECHO_C" >&6
6763 else
6764   lt_cv_prog_compiler_rtti_exceptions=no
6765   ac_outfile=conftest.$ac_objext
6766    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6767    lt_compiler_flag="-fno-rtti -fno-exceptions"
6768    # Insert the option either (1) after the last *FLAGS variable, or
6769    # (2) before a word containing "conftest.", or (3) at the end.
6770    # Note that $ac_compile itself does not contain backslashes and begins
6771    # with a dollar sign (not a hyphen), so the echo should work correctly.
6772    # The option is referenced via a variable to avoid confusing sed.
6773    lt_compile=`echo "$ac_compile" | $SED \
6774    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6775    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6776    -e 's:$: $lt_compiler_flag:'`
6777    (eval echo "\"\$as_me:6777: $lt_compile\"" >&5)
6778    (eval "$lt_compile" 2>conftest.err)
6779    ac_status=$?
6780    cat conftest.err >&5
6781    echo "$as_me:6781: \$? = $ac_status" >&5
6782    if (exit $ac_status) && test -s "$ac_outfile"; then
6783      # The compiler can only warn and ignore the option if not recognized
6784      # So say no if there are warnings other than the usual output.
6785      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6786      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6787      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6788        lt_cv_prog_compiler_rtti_exceptions=yes
6789      fi
6790    fi
6791    $rm conftest*
6792
6793 fi
6794 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6795 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6796
6797 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6798     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6799 else
6800     :
6801 fi
6802
6803 fi
6804
6805 lt_prog_compiler_wl=
6806 lt_prog_compiler_pic=
6807 lt_prog_compiler_static=
6808
6809 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6810 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6811
6812   if test "$GCC" = yes; then
6813     lt_prog_compiler_wl='-Wl,'
6814     lt_prog_compiler_static='-static'
6815
6816     case $host_os in
6817       aix*)
6818       # All AIX code is PIC.
6819       if test "$host_cpu" = ia64; then
6820         # AIX 5 now supports IA64 processor
6821         lt_prog_compiler_static='-Bstatic'
6822       fi
6823       ;;
6824
6825     amigaos*)
6826       # FIXME: we need at least 68020 code to build shared libraries, but
6827       # adding the `-m68020' flag to GCC prevents building anything better,
6828       # like `-m68040'.
6829       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6830       ;;
6831
6832     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6833       # PIC is the default for these OSes.
6834       ;;
6835
6836     mingw* | pw32* | os2*)
6837       # This hack is so that the source file can tell whether it is being
6838       # built for inclusion in a dll (and should export symbols for example).
6839       lt_prog_compiler_pic='-DDLL_EXPORT'
6840       ;;
6841
6842     darwin* | rhapsody*)
6843       # PIC is the default on this platform
6844       # Common symbols not allowed in MH_DYLIB files
6845       lt_prog_compiler_pic='-fno-common'
6846       ;;
6847
6848     interix3*)
6849       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6850       # Instead, we relocate shared libraries at runtime.
6851       ;;
6852
6853     msdosdjgpp*)
6854       # Just because we use GCC doesn't mean we suddenly get shared libraries
6855       # on systems that don't support them.
6856       lt_prog_compiler_can_build_shared=no
6857       enable_shared=no
6858       ;;
6859
6860     sysv4*MP*)
6861       if test -d /usr/nec; then
6862         lt_prog_compiler_pic=-Kconform_pic
6863       fi
6864       ;;
6865
6866     hpux*)
6867       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6868       # not for PA HP-UX.
6869       case $host_cpu in
6870       hppa*64*|ia64*)
6871         # +Z the default
6872         ;;
6873       *)
6874         lt_prog_compiler_pic='-fPIC'
6875         ;;
6876       esac
6877       ;;
6878
6879     *)
6880       lt_prog_compiler_pic='-fPIC'
6881       ;;
6882     esac
6883   else
6884     # PORTME Check for flag to pass linker flags through the system compiler.
6885     case $host_os in
6886     aix*)
6887       lt_prog_compiler_wl='-Wl,'
6888       if test "$host_cpu" = ia64; then
6889         # AIX 5 now supports IA64 processor
6890         lt_prog_compiler_static='-Bstatic'
6891       else
6892         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6893       fi
6894       ;;
6895       darwin*)
6896         # PIC is the default on this platform
6897         # Common symbols not allowed in MH_DYLIB files
6898        case $cc_basename in
6899          xlc*)
6900          lt_prog_compiler_pic='-qnocommon'
6901          lt_prog_compiler_wl='-Wl,'
6902          ;;
6903        esac
6904        ;;
6905
6906     mingw* | pw32* | os2*)
6907       # This hack is so that the source file can tell whether it is being
6908       # built for inclusion in a dll (and should export symbols for example).
6909       lt_prog_compiler_pic='-DDLL_EXPORT'
6910       ;;
6911
6912     hpux9* | hpux10* | hpux11*)
6913       lt_prog_compiler_wl='-Wl,'
6914       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6915       # not for PA HP-UX.
6916       case $host_cpu in
6917       hppa*64*|ia64*)
6918         # +Z the default
6919         ;;
6920       *)
6921         lt_prog_compiler_pic='+Z'
6922         ;;
6923       esac
6924       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6925       lt_prog_compiler_static='${wl}-a ${wl}archive'
6926       ;;
6927
6928     irix5* | irix6* | nonstopux*)
6929       lt_prog_compiler_wl='-Wl,'
6930       # PIC (with -KPIC) is the default.
6931       lt_prog_compiler_static='-non_shared'
6932       ;;
6933
6934     newsos6)
6935       lt_prog_compiler_pic='-KPIC'
6936       lt_prog_compiler_static='-Bstatic'
6937       ;;
6938
6939     linux*)
6940       case $cc_basename in
6941       icc* | ecc*)
6942         lt_prog_compiler_wl='-Wl,'
6943         lt_prog_compiler_pic='-KPIC'
6944         lt_prog_compiler_static='-static'
6945         ;;
6946       pgcc* | pgf77* | pgf90* | pgf95*)
6947         # Portland Group compilers (*not* the Pentium gcc compiler,
6948         # which looks to be a dead project)
6949         lt_prog_compiler_wl='-Wl,'
6950         lt_prog_compiler_pic='-fpic'
6951         lt_prog_compiler_static='-Bstatic'
6952         ;;
6953       ccc*)
6954         lt_prog_compiler_wl='-Wl,'
6955         # All Alpha code is PIC.
6956         lt_prog_compiler_static='-non_shared'
6957         ;;
6958       esac
6959       ;;
6960
6961     osf3* | osf4* | osf5*)
6962       lt_prog_compiler_wl='-Wl,'
6963       # All OSF/1 code is PIC.
6964       lt_prog_compiler_static='-non_shared'
6965       ;;
6966
6967     solaris*)
6968       lt_prog_compiler_pic='-KPIC'
6969       lt_prog_compiler_static='-Bstatic'
6970       case $cc_basename in
6971       f77* | f90* | f95*)
6972         lt_prog_compiler_wl='-Qoption ld ';;
6973       *)
6974         lt_prog_compiler_wl='-Wl,';;
6975       esac
6976       ;;
6977
6978     sunos4*)
6979       lt_prog_compiler_wl='-Qoption ld '
6980       lt_prog_compiler_pic='-PIC'
6981       lt_prog_compiler_static='-Bstatic'
6982       ;;
6983
6984     sysv4 | sysv4.2uw2* | sysv4.3*)
6985       lt_prog_compiler_wl='-Wl,'
6986       lt_prog_compiler_pic='-KPIC'
6987       lt_prog_compiler_static='-Bstatic'
6988       ;;
6989
6990     sysv4*MP*)
6991       if test -d /usr/nec ;then
6992         lt_prog_compiler_pic='-Kconform_pic'
6993         lt_prog_compiler_static='-Bstatic'
6994       fi
6995       ;;
6996
6997     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6998       lt_prog_compiler_wl='-Wl,'
6999       lt_prog_compiler_pic='-KPIC'
7000       lt_prog_compiler_static='-Bstatic'
7001       ;;
7002
7003     unicos*)
7004       lt_prog_compiler_wl='-Wl,'
7005       lt_prog_compiler_can_build_shared=no
7006       ;;
7007
7008     uts4*)
7009       lt_prog_compiler_pic='-pic'
7010       lt_prog_compiler_static='-Bstatic'
7011       ;;
7012
7013     *)
7014       lt_prog_compiler_can_build_shared=no
7015       ;;
7016     esac
7017   fi
7018
7019 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7020 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7021
7022 #
7023 # Check to make sure the PIC flag actually works.
7024 #
7025 if test -n "$lt_prog_compiler_pic"; then
7026
7027 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7028 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7029 if test "${lt_prog_compiler_pic_works+set}" = set; then
7030   echo $ECHO_N "(cached) $ECHO_C" >&6
7031 else
7032   lt_prog_compiler_pic_works=no
7033   ac_outfile=conftest.$ac_objext
7034    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7035    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7036    # Insert the option either (1) after the last *FLAGS variable, or
7037    # (2) before a word containing "conftest.", or (3) at the end.
7038    # Note that $ac_compile itself does not contain backslashes and begins
7039    # with a dollar sign (not a hyphen), so the echo should work correctly.
7040    # The option is referenced via a variable to avoid confusing sed.
7041    lt_compile=`echo "$ac_compile" | $SED \
7042    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7043    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7044    -e 's:$: $lt_compiler_flag:'`
7045    (eval echo "\"\$as_me:7045: $lt_compile\"" >&5)
7046    (eval "$lt_compile" 2>conftest.err)
7047    ac_status=$?
7048    cat conftest.err >&5
7049    echo "$as_me:7049: \$? = $ac_status" >&5
7050    if (exit $ac_status) && test -s "$ac_outfile"; then
7051      # The compiler can only warn and ignore the option if not recognized
7052      # So say no if there are warnings other than the usual output.
7053      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7054      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7055      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7056        lt_prog_compiler_pic_works=yes
7057      fi
7058    fi
7059    $rm conftest*
7060
7061 fi
7062 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7063 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7064
7065 if test x"$lt_prog_compiler_pic_works" = xyes; then
7066     case $lt_prog_compiler_pic in
7067      "" | " "*) ;;
7068      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7069      esac
7070 else
7071     lt_prog_compiler_pic=
7072      lt_prog_compiler_can_build_shared=no
7073 fi
7074
7075 fi
7076 case $host_os in
7077   # For platforms which do not support PIC, -DPIC is meaningless:
7078   *djgpp*)
7079     lt_prog_compiler_pic=
7080     ;;
7081   *)
7082     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7083     ;;
7084 esac
7085
7086 #
7087 # Check to make sure the static flag actually works.
7088 #
7089 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7090 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7091 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7092 if test "${lt_prog_compiler_static_works+set}" = set; then
7093   echo $ECHO_N "(cached) $ECHO_C" >&6
7094 else
7095   lt_prog_compiler_static_works=no
7096    save_LDFLAGS="$LDFLAGS"
7097    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7098    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7099    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7100      # The linker can only warn and ignore the option if not recognized
7101      # So say no if there are warnings
7102      if test -s conftest.err; then
7103        # Append any errors to the config.log.
7104        cat conftest.err 1>&5
7105        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7106        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7107        if diff conftest.exp conftest.er2 >/dev/null; then
7108          lt_prog_compiler_static_works=yes
7109        fi
7110      else
7111        lt_prog_compiler_static_works=yes
7112      fi
7113    fi
7114    $rm conftest*
7115    LDFLAGS="$save_LDFLAGS"
7116
7117 fi
7118 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7119 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7120
7121 if test x"$lt_prog_compiler_static_works" = xyes; then
7122     :
7123 else
7124     lt_prog_compiler_static=
7125 fi
7126
7127
7128 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7129 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7130 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7131   echo $ECHO_N "(cached) $ECHO_C" >&6
7132 else
7133   lt_cv_prog_compiler_c_o=no
7134    $rm -r conftest 2>/dev/null
7135    mkdir conftest
7136    cd conftest
7137    mkdir out
7138    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7139
7140    lt_compiler_flag="-o out/conftest2.$ac_objext"
7141    # Insert the option either (1) after the last *FLAGS variable, or
7142    # (2) before a word containing "conftest.", or (3) at the end.
7143    # Note that $ac_compile itself does not contain backslashes and begins
7144    # with a dollar sign (not a hyphen), so the echo should work correctly.
7145    lt_compile=`echo "$ac_compile" | $SED \
7146    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7147    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7148    -e 's:$: $lt_compiler_flag:'`
7149    (eval echo "\"\$as_me:7149: $lt_compile\"" >&5)
7150    (eval "$lt_compile" 2>out/conftest.err)
7151    ac_status=$?
7152    cat out/conftest.err >&5
7153    echo "$as_me:7153: \$? = $ac_status" >&5
7154    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7155    then
7156      # The compiler can only warn and ignore the option if not recognized
7157      # So say no if there are warnings
7158      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7159      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7160      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7161        lt_cv_prog_compiler_c_o=yes
7162      fi
7163    fi
7164    chmod u+w . 2>&5
7165    $rm conftest*
7166    # SGI C++ compiler will create directory out/ii_files/ for
7167    # template instantiation
7168    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7169    $rm out/* && rmdir out
7170    cd ..
7171    rmdir conftest
7172    $rm conftest*
7173
7174 fi
7175 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7176 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7177
7178
7179 hard_links="nottested"
7180 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7181   # do not overwrite the value of need_locks provided by the user
7182   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7183 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7184   hard_links=yes
7185   $rm conftest*
7186   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7187   touch conftest.a
7188   ln conftest.a conftest.b 2>&5 || hard_links=no
7189   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7190   echo "$as_me:$LINENO: result: $hard_links" >&5
7191 echo "${ECHO_T}$hard_links" >&6
7192   if test "$hard_links" = no; then
7193     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7194 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7195     need_locks=warn
7196   fi
7197 else
7198   need_locks=no
7199 fi
7200
7201 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7202 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7203
7204   runpath_var=
7205   allow_undefined_flag=
7206   enable_shared_with_static_runtimes=no
7207   archive_cmds=
7208   archive_expsym_cmds=
7209   old_archive_From_new_cmds=
7210   old_archive_from_expsyms_cmds=
7211   export_dynamic_flag_spec=
7212   whole_archive_flag_spec=
7213   thread_safe_flag_spec=
7214   hardcode_libdir_flag_spec=
7215   hardcode_libdir_flag_spec_ld=
7216   hardcode_libdir_separator=
7217   hardcode_direct=no
7218   hardcode_minus_L=no
7219   hardcode_shlibpath_var=unsupported
7220   link_all_deplibs=unknown
7221   hardcode_automatic=no
7222   module_cmds=
7223   module_expsym_cmds=
7224   always_export_symbols=no
7225   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7226   # include_expsyms should be a list of space-separated symbols to be *always*
7227   # included in the symbol list
7228   include_expsyms=
7229   # exclude_expsyms can be an extended regexp of symbols to exclude
7230   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7231   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7232   # as well as any symbol that contains `d'.
7233   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7234   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7235   # platforms (ab)use it in PIC code, but their linkers get confused if
7236   # the symbol is explicitly referenced.  Since portable code cannot
7237   # rely on this symbol name, it's probably fine to never include it in
7238   # preloaded symbol tables.
7239   extract_expsyms_cmds=
7240   # Just being paranoid about ensuring that cc_basename is set.
7241   for cc_temp in $compiler""; do
7242   case $cc_temp in
7243     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7244     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7245     \-*) ;;
7246     *) break;;
7247   esac
7248 done
7249 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7250
7251   case $host_os in
7252   cygwin* | mingw* | pw32*)
7253     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7254     # When not using gcc, we currently assume that we are using
7255     # Microsoft Visual C++.
7256     if test "$GCC" != yes; then
7257       with_gnu_ld=no
7258     fi
7259     ;;
7260   interix*)
7261     # we just hope/assume this is gcc and not c89 (= MSVC++)
7262     with_gnu_ld=yes
7263     ;;
7264   openbsd*)
7265     with_gnu_ld=no
7266     ;;
7267   esac
7268
7269   ld_shlibs=yes
7270   if test "$with_gnu_ld" = yes; then
7271     # If archive_cmds runs LD, not CC, wlarc should be empty
7272     wlarc='${wl}'
7273
7274     # Set some defaults for GNU ld with shared library support. These
7275     # are reset later if shared libraries are not supported. Putting them
7276     # here allows them to be overridden if necessary.
7277     runpath_var=LD_RUN_PATH
7278     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7279     export_dynamic_flag_spec='${wl}--export-dynamic'
7280     # ancient GNU ld didn't support --whole-archive et. al.
7281     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7282         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7283       else
7284         whole_archive_flag_spec=
7285     fi
7286     supports_anon_versioning=no
7287     case `$LD -v 2>/dev/null` in
7288       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7289       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7290       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7291       *\ 2.11.*) ;; # other 2.11 versions
7292       *) supports_anon_versioning=yes ;;
7293     esac
7294
7295     # See if GNU ld supports shared libraries.
7296     case $host_os in
7297     aix3* | aix4* | aix5*)
7298       # On AIX/PPC, the GNU linker is very broken
7299       if test "$host_cpu" != ia64; then
7300         ld_shlibs=no
7301         cat <<EOF 1>&2
7302
7303 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7304 *** to be unable to reliably create shared libraries on AIX.
7305 *** Therefore, libtool is disabling shared libraries support.  If you
7306 *** really care for shared libraries, you may want to modify your PATH
7307 *** so that a non-GNU linker is found, and then restart.
7308
7309 EOF
7310       fi
7311       ;;
7312
7313     amigaos*)
7314       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)'
7315       hardcode_libdir_flag_spec='-L$libdir'
7316       hardcode_minus_L=yes
7317
7318       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7319       # that the semantics of dynamic libraries on AmigaOS, at least up
7320       # to version 4, is to share data among multiple programs linked
7321       # with the same dynamic library.  Since this doesn't match the
7322       # behavior of shared libraries on other platforms, we can't use
7323       # them.
7324       ld_shlibs=no
7325       ;;
7326
7327     beos*)
7328       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7329         allow_undefined_flag=unsupported
7330         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7331         # support --undefined.  This deserves some investigation.  FIXME
7332         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7333       else
7334         ld_shlibs=no
7335       fi
7336       ;;
7337
7338     cygwin* | mingw* | pw32*)
7339       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7340       # as there is no search path for DLLs.
7341       hardcode_libdir_flag_spec='-L$libdir'
7342       allow_undefined_flag=unsupported
7343       always_export_symbols=no
7344       enable_shared_with_static_runtimes=yes
7345       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7346
7347       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7348         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7349         # If the export-symbols file already is a .def file (1st line
7350         # is EXPORTS), use it as is; otherwise, prepend...
7351         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7352           cp $export_symbols $output_objdir/$soname.def;
7353         else
7354           echo EXPORTS > $output_objdir/$soname.def;
7355           cat $export_symbols >> $output_objdir/$soname.def;
7356         fi~
7357         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7358       else
7359         ld_shlibs=no
7360       fi
7361       ;;
7362
7363     interix3*)
7364       hardcode_direct=no
7365       hardcode_shlibpath_var=no
7366       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7367       export_dynamic_flag_spec='${wl}-E'
7368       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7369       # Instead, shared libraries are loaded at an image base (0x10000000 by
7370       # default) and relocated if they conflict, which is a slow very memory
7371       # consuming and fragmenting process.  To avoid this, we pick a random,
7372       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7373       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7374       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7375       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'
7376       ;;
7377
7378     linux*)
7379       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7380         tmp_addflag=
7381         case $cc_basename,$host_cpu in
7382         pgcc*)                          # Portland Group C compiler
7383           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'
7384           tmp_addflag=' $pic_flag'
7385           ;;
7386         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7387           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'
7388           tmp_addflag=' $pic_flag -Mnomain' ;;
7389         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7390           tmp_addflag=' -i_dynamic' ;;
7391         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7392           tmp_addflag=' -i_dynamic -nofor_main' ;;
7393         ifc* | ifort*)                  # Intel Fortran compiler
7394           tmp_addflag=' -nofor_main' ;;
7395         esac
7396         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7397
7398         if test $supports_anon_versioning = yes; then
7399           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7400   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7401   $echo "local: *; };" >> $output_objdir/$libname.ver~
7402           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7403         fi
7404       else
7405         ld_shlibs=no
7406       fi
7407       ;;
7408
7409     netbsd*)
7410       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7411         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7412         wlarc=
7413       else
7414         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7415         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7416       fi
7417       ;;
7418
7419     solaris*)
7420       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7421         ld_shlibs=no
7422         cat <<EOF 1>&2
7423
7424 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7425 *** create shared libraries on Solaris systems.  Therefore, libtool
7426 *** is disabling shared libraries support.  We urge you to upgrade GNU
7427 *** binutils to release 2.9.1 or newer.  Another option is to modify
7428 *** your PATH or compiler configuration so that the native linker is
7429 *** used, and then restart.
7430
7431 EOF
7432       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7433         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7434         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7435       else
7436         ld_shlibs=no
7437       fi
7438       ;;
7439
7440     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7441       case `$LD -v 2>&1` in
7442         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7443         ld_shlibs=no
7444         cat <<_LT_EOF 1>&2
7445
7446 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7447 *** reliably create shared libraries on SCO systems.  Therefore, libtool
7448 *** is disabling shared libraries support.  We urge you to upgrade GNU
7449 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7450 *** your PATH or compiler configuration so that the native linker is
7451 *** used, and then restart.
7452
7453 _LT_EOF
7454         ;;
7455         *)
7456           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7457             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7458             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7459             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7460           else
7461             ld_shlibs=no
7462           fi
7463         ;;
7464       esac
7465       ;;
7466
7467     sunos4*)
7468       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7469       wlarc=
7470       hardcode_direct=yes
7471       hardcode_shlibpath_var=no
7472       ;;
7473
7474     *)
7475       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7476         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7477         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7478       else
7479         ld_shlibs=no
7480       fi
7481       ;;
7482     esac
7483
7484     if test "$ld_shlibs" = no; then
7485       runpath_var=
7486       hardcode_libdir_flag_spec=
7487       export_dynamic_flag_spec=
7488       whole_archive_flag_spec=
7489     fi
7490   else
7491     # PORTME fill in a description of your system's linker (not GNU ld)
7492     case $host_os in
7493     aix3*)
7494       allow_undefined_flag=unsupported
7495       always_export_symbols=yes
7496       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'
7497       # Note: this linker hardcodes the directories in LIBPATH if there
7498       # are no directories specified by -L.
7499       hardcode_minus_L=yes
7500       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7501         # Neither direct hardcoding nor static linking is supported with a
7502         # broken collect2.
7503         hardcode_direct=unsupported
7504       fi
7505       ;;
7506
7507     aix4* | aix5*)
7508       if test "$host_cpu" = ia64; then
7509         # On IA64, the linker does run time linking by default, so we don't
7510         # have to do anything special.
7511         aix_use_runtimelinking=no
7512         exp_sym_flag='-Bexport'
7513         no_entry_flag=""
7514       else
7515         # If we're using GNU nm, then we don't want the "-C" option.
7516         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7517         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7518           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'
7519         else
7520           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'
7521         fi
7522         aix_use_runtimelinking=no
7523
7524         # Test if we are trying to use run time linking or normal
7525         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7526         # need to do runtime linking.
7527         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7528           for ld_flag in $LDFLAGS; do
7529           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7530             aix_use_runtimelinking=yes
7531             break
7532           fi
7533           done
7534           ;;
7535         esac
7536
7537         exp_sym_flag='-bexport'
7538         no_entry_flag='-bnoentry'
7539       fi
7540
7541       # When large executables or shared objects are built, AIX ld can
7542       # have problems creating the table of contents.  If linking a library
7543       # or program results in "error TOC overflow" add -mminimal-toc to
7544       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7545       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7546
7547       archive_cmds=''
7548       hardcode_direct=yes
7549       hardcode_libdir_separator=':'
7550       link_all_deplibs=yes
7551
7552       if test "$GCC" = yes; then
7553         case $host_os in aix4.[012]|aix4.[012].*)
7554         # We only want to do this on AIX 4.2 and lower, the check
7555         # below for broken collect2 doesn't work under 4.3+
7556           collect2name=`${CC} -print-prog-name=collect2`
7557           if test -f "$collect2name" && \
7558            strings "$collect2name" | grep resolve_lib_name >/dev/null
7559           then
7560           # We have reworked collect2
7561           hardcode_direct=yes
7562           else
7563           # We have old collect2
7564           hardcode_direct=unsupported
7565           # It fails to find uninstalled libraries when the uninstalled
7566           # path is not listed in the libpath.  Setting hardcode_minus_L
7567           # to unsupported forces relinking
7568           hardcode_minus_L=yes
7569           hardcode_libdir_flag_spec='-L$libdir'
7570           hardcode_libdir_separator=
7571           fi
7572           ;;
7573         esac
7574         shared_flag='-shared'
7575         if test "$aix_use_runtimelinking" = yes; then
7576           shared_flag="$shared_flag "'${wl}-G'
7577         fi
7578       else
7579         # not using gcc
7580         if test "$host_cpu" = ia64; then
7581         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7582         # chokes on -Wl,-G. The following line is correct:
7583           shared_flag='-G'
7584         else
7585           if test "$aix_use_runtimelinking" = yes; then
7586             shared_flag='${wl}-G'
7587           else
7588             shared_flag='${wl}-bM:SRE'
7589           fi
7590         fi
7591       fi
7592
7593       # It seems that -bexpall does not export symbols beginning with
7594       # underscore (_), so it is better to generate a list of symbols to export.
7595       always_export_symbols=yes
7596       if test "$aix_use_runtimelinking" = yes; then
7597         # Warning - without using the other runtime loading flags (-brtl),
7598         # -berok will link without error, but may produce a broken library.
7599         allow_undefined_flag='-berok'
7600        # Determine the default libpath from the value encoded in an empty executable.
7601        cat >conftest.$ac_ext <<_ACEOF
7602 /* confdefs.h.  */
7603 _ACEOF
7604 cat confdefs.h >>conftest.$ac_ext
7605 cat >>conftest.$ac_ext <<_ACEOF
7606 /* end confdefs.h.  */
7607
7608 int
7609 main ()
7610 {
7611
7612   ;
7613   return 0;
7614 }
7615 _ACEOF
7616 rm -f conftest.$ac_objext conftest$ac_exeext
7617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7618   (eval $ac_link) 2>conftest.er1
7619   ac_status=$?
7620   grep -v '^ *+' conftest.er1 >conftest.err
7621   rm -f conftest.er1
7622   cat conftest.err >&5
7623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624   (exit $ac_status); } &&
7625          { ac_try='test -z "$ac_c_werror_flag"
7626                          || test ! -s conftest.err'
7627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7628   (eval $ac_try) 2>&5
7629   ac_status=$?
7630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7631   (exit $ac_status); }; } &&
7632          { ac_try='test -s conftest$ac_exeext'
7633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7634   (eval $ac_try) 2>&5
7635   ac_status=$?
7636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7637   (exit $ac_status); }; }; then
7638
7639 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7640 }'`
7641 # Check for a 64-bit object if we didn't find anything.
7642 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; }
7643 }'`; fi
7644 else
7645   echo "$as_me: failed program was:" >&5
7646 sed 's/^/| /' conftest.$ac_ext >&5
7647
7648 fi
7649 rm -f conftest.err conftest.$ac_objext \
7650       conftest$ac_exeext conftest.$ac_ext
7651 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7652
7653        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7654         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"
7655        else
7656         if test "$host_cpu" = ia64; then
7657           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7658           allow_undefined_flag="-z nodefs"
7659           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"
7660         else
7661          # Determine the default libpath from the value encoded in an empty executable.
7662          cat >conftest.$ac_ext <<_ACEOF
7663 /* confdefs.h.  */
7664 _ACEOF
7665 cat confdefs.h >>conftest.$ac_ext
7666 cat >>conftest.$ac_ext <<_ACEOF
7667 /* end confdefs.h.  */
7668
7669 int
7670 main ()
7671 {
7672
7673   ;
7674   return 0;
7675 }
7676 _ACEOF
7677 rm -f conftest.$ac_objext conftest$ac_exeext
7678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7679   (eval $ac_link) 2>conftest.er1
7680   ac_status=$?
7681   grep -v '^ *+' conftest.er1 >conftest.err
7682   rm -f conftest.er1
7683   cat conftest.err >&5
7684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7685   (exit $ac_status); } &&
7686          { ac_try='test -z "$ac_c_werror_flag"
7687                          || test ! -s conftest.err'
7688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7689   (eval $ac_try) 2>&5
7690   ac_status=$?
7691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7692   (exit $ac_status); }; } &&
7693          { ac_try='test -s conftest$ac_exeext'
7694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7695   (eval $ac_try) 2>&5
7696   ac_status=$?
7697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698   (exit $ac_status); }; }; then
7699
7700 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7701 }'`
7702 # Check for a 64-bit object if we didn't find anything.
7703 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; }
7704 }'`; fi
7705 else
7706   echo "$as_me: failed program was:" >&5
7707 sed 's/^/| /' conftest.$ac_ext >&5
7708
7709 fi
7710 rm -f conftest.err conftest.$ac_objext \
7711       conftest$ac_exeext conftest.$ac_ext
7712 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7713
7714          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7715           # Warning - without using the other run time loading flags,
7716           # -berok will link without error, but may produce a broken library.
7717           no_undefined_flag=' ${wl}-bernotok'
7718           allow_undefined_flag=' ${wl}-berok'
7719           # Exported symbols can be pulled into shared objects from archives
7720           whole_archive_flag_spec='$convenience'
7721           archive_cmds_need_lc=yes
7722           # This is similar to how AIX traditionally builds its shared libraries.
7723           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'
7724         fi
7725       fi
7726       ;;
7727
7728     amigaos*)
7729       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)'
7730       hardcode_libdir_flag_spec='-L$libdir'
7731       hardcode_minus_L=yes
7732       # see comment about different semantics on the GNU ld section
7733       ld_shlibs=no
7734       ;;
7735
7736     bsdi[45]*)
7737       export_dynamic_flag_spec=-rdynamic
7738       ;;
7739
7740     cygwin* | mingw* | pw32*)
7741       # When not using gcc, we currently assume that we are using
7742       # Microsoft Visual C++.
7743       # hardcode_libdir_flag_spec is actually meaningless, as there is
7744       # no search path for DLLs.
7745       hardcode_libdir_flag_spec=' '
7746       allow_undefined_flag=unsupported
7747       # Tell ltmain to make .lib files, not .a files.
7748       libext=lib
7749       # Tell ltmain to make .dll files, not .so files.
7750       shrext_cmds=".dll"
7751       # FIXME: Setting linknames here is a bad hack.
7752       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7753       # The linker will automatically build a .lib file if we build a DLL.
7754       old_archive_From_new_cmds='true'
7755       # FIXME: Should let the user specify the lib program.
7756       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7757       fix_srcfile_path='`cygpath -w "$srcfile"`'
7758       enable_shared_with_static_runtimes=yes
7759       ;;
7760
7761     darwin* | rhapsody*)
7762       case $host_os in
7763         rhapsody* | darwin1.[012])
7764          allow_undefined_flag='${wl}-undefined ${wl}suppress'
7765          ;;
7766        *) # Darwin 1.3 on
7767          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7768            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7769          else
7770            case ${MACOSX_DEPLOYMENT_TARGET} in
7771              10.[012])
7772                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7773                ;;
7774              10.*)
7775                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7776                ;;
7777            esac
7778          fi
7779          ;;
7780       esac
7781       archive_cmds_need_lc=no
7782       hardcode_direct=no
7783       hardcode_automatic=yes
7784       hardcode_shlibpath_var=unsupported
7785       whole_archive_flag_spec=''
7786       link_all_deplibs=yes
7787     if test "$GCC" = yes ; then
7788         output_verbose_link_cmd='echo'
7789         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7790       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7791       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7792       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}'
7793       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}'
7794     else
7795       case $cc_basename in
7796         xlc*)
7797          output_verbose_link_cmd='echo'
7798          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7799          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7800           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7801          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}'
7802           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}'
7803           ;;
7804        *)
7805          ld_shlibs=no
7806           ;;
7807       esac
7808     fi
7809       ;;
7810
7811     dgux*)
7812       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7813       hardcode_libdir_flag_spec='-L$libdir'
7814       hardcode_shlibpath_var=no
7815       ;;
7816
7817     freebsd1*)
7818       ld_shlibs=no
7819       ;;
7820
7821     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7822     # support.  Future versions do this automatically, but an explicit c++rt0.o
7823     # does not break anything, and helps significantly (at the cost of a little
7824     # extra space).
7825     freebsd2.2*)
7826       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7827       hardcode_libdir_flag_spec='-R$libdir'
7828       hardcode_direct=yes
7829       hardcode_shlibpath_var=no
7830       ;;
7831
7832     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7833     freebsd2*)
7834       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7835       hardcode_direct=yes
7836       hardcode_minus_L=yes
7837       hardcode_shlibpath_var=no
7838       ;;
7839
7840     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7841     freebsd* | kfreebsd*-gnu | dragonfly*)
7842       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7843       hardcode_libdir_flag_spec='-R$libdir'
7844       hardcode_direct=yes
7845       hardcode_shlibpath_var=no
7846       ;;
7847
7848     hpux9*)
7849       if test "$GCC" = yes; then
7850         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'
7851       else
7852         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'
7853       fi
7854       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7855       hardcode_libdir_separator=:
7856       hardcode_direct=yes
7857
7858       # hardcode_minus_L: Not really in the search PATH,
7859       # but as the default location of the library.
7860       hardcode_minus_L=yes
7861       export_dynamic_flag_spec='${wl}-E'
7862       ;;
7863
7864     hpux10*)
7865       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7866         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7867       else
7868         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7869       fi
7870       if test "$with_gnu_ld" = no; then
7871         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7872         hardcode_libdir_separator=:
7873
7874         hardcode_direct=yes
7875         export_dynamic_flag_spec='${wl}-E'
7876
7877         # hardcode_minus_L: Not really in the search PATH,
7878         # but as the default location of the library.
7879         hardcode_minus_L=yes
7880       fi
7881       ;;
7882
7883     hpux11*)
7884       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7885         case $host_cpu in
7886         hppa*64*)
7887           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7888           ;;
7889         ia64*)
7890           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7891           ;;
7892         *)
7893           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7894           ;;
7895         esac
7896       else
7897         case $host_cpu in
7898         hppa*64*)
7899           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7900           ;;
7901         ia64*)
7902           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7903           ;;
7904         *)
7905           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7906           ;;
7907         esac
7908       fi
7909       if test "$with_gnu_ld" = no; then
7910         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7911         hardcode_libdir_separator=:
7912
7913         case $host_cpu in
7914         hppa*64*|ia64*)
7915           hardcode_libdir_flag_spec_ld='+b $libdir'
7916           hardcode_direct=no
7917           hardcode_shlibpath_var=no
7918           ;;
7919         *)
7920           hardcode_direct=yes
7921           export_dynamic_flag_spec='${wl}-E'
7922
7923           # hardcode_minus_L: Not really in the search PATH,
7924           # but as the default location of the library.
7925           hardcode_minus_L=yes
7926           ;;
7927         esac
7928       fi
7929       ;;
7930
7931     irix5* | irix6* | nonstopux*)
7932       if test "$GCC" = yes; then
7933         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'
7934       else
7935         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'
7936         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7937       fi
7938       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7939       hardcode_libdir_separator=:
7940       link_all_deplibs=yes
7941       ;;
7942
7943     netbsd*)
7944       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7945         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7946       else
7947         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7948       fi
7949       hardcode_libdir_flag_spec='-R$libdir'
7950       hardcode_direct=yes
7951       hardcode_shlibpath_var=no
7952       ;;
7953
7954     newsos6)
7955       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7956       hardcode_direct=yes
7957       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7958       hardcode_libdir_separator=:
7959       hardcode_shlibpath_var=no
7960       ;;
7961
7962     openbsd*)
7963       hardcode_direct=yes
7964       hardcode_shlibpath_var=no
7965       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7966         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7967         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7968         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7969         export_dynamic_flag_spec='${wl}-E'
7970       else
7971        case $host_os in
7972          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7973            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7974            hardcode_libdir_flag_spec='-R$libdir'
7975            ;;
7976          *)
7977            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7978            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7979            ;;
7980        esac
7981       fi
7982       ;;
7983
7984     os2*)
7985       hardcode_libdir_flag_spec='-L$libdir'
7986       hardcode_minus_L=yes
7987       allow_undefined_flag=unsupported
7988       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'
7989       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7990       ;;
7991
7992     osf3*)
7993       if test "$GCC" = yes; then
7994         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7995         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'
7996       else
7997         allow_undefined_flag=' -expect_unresolved \*'
7998         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'
7999       fi
8000       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8001       hardcode_libdir_separator=:
8002       ;;
8003
8004     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8005       if test "$GCC" = yes; then
8006         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8007         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'
8008         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8009       else
8010         allow_undefined_flag=' -expect_unresolved \*'
8011         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'
8012         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8013         $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'
8014
8015         # Both c and cxx compiler support -rpath directly
8016         hardcode_libdir_flag_spec='-rpath $libdir'
8017       fi
8018       hardcode_libdir_separator=:
8019       ;;
8020
8021     solaris*)
8022       no_undefined_flag=' -z text'
8023       if test "$GCC" = yes; then
8024         wlarc='${wl}'
8025         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8026         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8027           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8028       else
8029         wlarc=''
8030         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8031         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8032         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8033       fi
8034       hardcode_libdir_flag_spec='-R$libdir'
8035       hardcode_shlibpath_var=no
8036       case $host_os in
8037       solaris2.[0-5] | solaris2.[0-5].*) ;;
8038       *)
8039         # The compiler driver will combine linker options so we
8040         # cannot just pass the convience library names through
8041         # without $wl, iff we do not link with $LD.
8042         # Luckily, gcc supports the same syntax we need for Sun Studio.
8043         # Supported since Solaris 2.6 (maybe 2.5.1?)
8044         case $wlarc in
8045         '')
8046           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8047         *)
8048           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' ;;
8049         esac ;;
8050       esac
8051       link_all_deplibs=yes
8052       ;;
8053
8054     sunos4*)
8055       if test "x$host_vendor" = xsequent; then
8056         # Use $CC to link under sequent, because it throws in some extra .o
8057         # files that make .init and .fini sections work.
8058         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8059       else
8060         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8061       fi
8062       hardcode_libdir_flag_spec='-L$libdir'
8063       hardcode_direct=yes
8064       hardcode_minus_L=yes
8065       hardcode_shlibpath_var=no
8066       ;;
8067
8068     sysv4)
8069       case $host_vendor in
8070         sni)
8071           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8072           hardcode_direct=yes # is this really true???
8073         ;;
8074         siemens)
8075           ## LD is ld it makes a PLAMLIB
8076           ## CC just makes a GrossModule.
8077           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8078           reload_cmds='$CC -r -o $output$reload_objs'
8079           hardcode_direct=no
8080         ;;
8081         motorola)
8082           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8083           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8084         ;;
8085       esac
8086       runpath_var='LD_RUN_PATH'
8087       hardcode_shlibpath_var=no
8088       ;;
8089
8090     sysv4.3*)
8091       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8092       hardcode_shlibpath_var=no
8093       export_dynamic_flag_spec='-Bexport'
8094       ;;
8095
8096     sysv4*MP*)
8097       if test -d /usr/nec; then
8098         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8099         hardcode_shlibpath_var=no
8100         runpath_var=LD_RUN_PATH
8101         hardcode_runpath_var=yes
8102         ld_shlibs=yes
8103       fi
8104       ;;
8105
8106     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8107       no_undefined_flag='${wl}-z,text'
8108       archive_cmds_need_lc=no
8109       hardcode_shlibpath_var=no
8110       runpath_var='LD_RUN_PATH'
8111
8112       if test "$GCC" = yes; then
8113         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8114         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8115       else
8116         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8117         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8118       fi
8119       ;;
8120
8121     sysv5* | sco3.2v5* | sco5v6*)
8122       # Note: We can NOT use -z defs as we might desire, because we do not
8123       # link with -lc, and that would cause any symbols used from libc to
8124       # always be unresolved, which means just about no library would
8125       # ever link correctly.  If we're not using GNU ld we use -z text
8126       # though, which does catch some bad symbols but isn't as heavy-handed
8127       # as -z defs.
8128       no_undefined_flag='${wl}-z,text'
8129       allow_undefined_flag='${wl}-z,nodefs'
8130       archive_cmds_need_lc=no
8131       hardcode_shlibpath_var=no
8132       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8133       hardcode_libdir_separator=':'
8134       link_all_deplibs=yes
8135       export_dynamic_flag_spec='${wl}-Bexport'
8136       runpath_var='LD_RUN_PATH'
8137
8138       if test "$GCC" = yes; then
8139         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8140         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8141       else
8142         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8143         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8144       fi
8145       ;;
8146
8147     uts4*)
8148       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8149       hardcode_libdir_flag_spec='-L$libdir'
8150       hardcode_shlibpath_var=no
8151       ;;
8152
8153     *)
8154       ld_shlibs=no
8155       ;;
8156     esac
8157   fi
8158
8159 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8160 echo "${ECHO_T}$ld_shlibs" >&6
8161 test "$ld_shlibs" = no && can_build_shared=no
8162
8163 #
8164 # Do we need to explicitly link libc?
8165 #
8166 case "x$archive_cmds_need_lc" in
8167 x|xyes)
8168   # Assume -lc should be added
8169   archive_cmds_need_lc=yes
8170
8171   if test "$enable_shared" = yes && test "$GCC" = yes; then
8172     case $archive_cmds in
8173     *'~'*)
8174       # FIXME: we may have to deal with multi-command sequences.
8175       ;;
8176     '$CC '*)
8177       # Test whether the compiler implicitly links with -lc since on some
8178       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8179       # to ld, don't add -lc before -lgcc.
8180       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8181 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8182       $rm conftest*
8183       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8184
8185       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8186   (eval $ac_compile) 2>&5
8187   ac_status=$?
8188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189   (exit $ac_status); } 2>conftest.err; then
8190         soname=conftest
8191         lib=conftest
8192         libobjs=conftest.$ac_objext
8193         deplibs=
8194         wl=$lt_prog_compiler_wl
8195         pic_flag=$lt_prog_compiler_pic
8196         compiler_flags=-v
8197         linker_flags=-v
8198         verstring=
8199         output_objdir=.
8200         libname=conftest
8201         lt_save_allow_undefined_flag=$allow_undefined_flag
8202         allow_undefined_flag=
8203         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8204   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8205   ac_status=$?
8206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207   (exit $ac_status); }
8208         then
8209           archive_cmds_need_lc=no
8210         else
8211           archive_cmds_need_lc=yes
8212         fi
8213         allow_undefined_flag=$lt_save_allow_undefined_flag
8214       else
8215         cat conftest.err 1>&5
8216       fi
8217       $rm conftest*
8218       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8219 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8220       ;;
8221     esac
8222   fi
8223   ;;
8224 esac
8225
8226 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8227 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8228 library_names_spec=
8229 libname_spec='lib$name'
8230 soname_spec=
8231 shrext_cmds=".so"
8232 postinstall_cmds=
8233 postuninstall_cmds=
8234 finish_cmds=
8235 finish_eval=
8236 shlibpath_var=
8237 shlibpath_overrides_runpath=unknown
8238 version_type=none
8239 dynamic_linker="$host_os ld.so"
8240 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8241 if test "$GCC" = yes; then
8242   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8243   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8244     # if the path contains ";" then we assume it to be the separator
8245     # otherwise default to the standard path separator (i.e. ":") - it is
8246     # assumed that no part of a normal pathname contains ";" but that should
8247     # okay in the real world where ";" in dirpaths is itself problematic.
8248     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8249   else
8250     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8251   fi
8252 else
8253   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8254 fi
8255 need_lib_prefix=unknown
8256 hardcode_into_libs=no
8257
8258 # when you set need_version to no, make sure it does not cause -set_version
8259 # flags to be left without arguments
8260 need_version=unknown
8261
8262 case $host_os in
8263 aix3*)
8264   version_type=linux
8265   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8266   shlibpath_var=LIBPATH
8267
8268   # AIX 3 has no versioning support, so we append a major version to the name.
8269   soname_spec='${libname}${release}${shared_ext}$major'
8270   ;;
8271
8272 aix4* | aix5*)
8273   version_type=linux
8274   need_lib_prefix=no
8275   need_version=no
8276   hardcode_into_libs=yes
8277   if test "$host_cpu" = ia64; then
8278     # AIX 5 supports IA64
8279     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8280     shlibpath_var=LD_LIBRARY_PATH
8281   else
8282     # With GCC up to 2.95.x, collect2 would create an import file
8283     # for dependence libraries.  The import file would start with
8284     # the line `#! .'.  This would cause the generated library to
8285     # depend on `.', always an invalid library.  This was fixed in
8286     # development snapshots of GCC prior to 3.0.
8287     case $host_os in
8288       aix4 | aix4.[01] | aix4.[01].*)
8289       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8290            echo ' yes '
8291            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8292         :
8293       else
8294         can_build_shared=no
8295       fi
8296       ;;
8297     esac
8298     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8299     # soname into executable. Probably we can add versioning support to
8300     # collect2, so additional links can be useful in future.
8301     if test "$aix_use_runtimelinking" = yes; then
8302       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8303       # instead of lib<name>.a to let people know that these are not
8304       # typical AIX shared libraries.
8305       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8306     else
8307       # We preserve .a as extension for shared libraries through AIX4.2
8308       # and later when we are not doing run time linking.
8309       library_names_spec='${libname}${release}.a $libname.a'
8310       soname_spec='${libname}${release}${shared_ext}$major'
8311     fi
8312     shlibpath_var=LIBPATH
8313   fi
8314   ;;
8315
8316 amigaos*)
8317   library_names_spec='$libname.ixlibrary $libname.a'
8318   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8319   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'
8320   ;;
8321
8322 beos*)
8323   library_names_spec='${libname}${shared_ext}'
8324   dynamic_linker="$host_os ld.so"
8325   shlibpath_var=LIBRARY_PATH
8326   ;;
8327
8328 bsdi[45]*)
8329   version_type=linux
8330   need_version=no
8331   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8332   soname_spec='${libname}${release}${shared_ext}$major'
8333   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8334   shlibpath_var=LD_LIBRARY_PATH
8335   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8336   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8337   # the default ld.so.conf also contains /usr/contrib/lib and
8338   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8339   # libtool to hard-code these into programs
8340   ;;
8341
8342 cygwin* | mingw* | pw32*)
8343   version_type=windows
8344   shrext_cmds=".dll"
8345   need_version=no
8346   need_lib_prefix=no
8347
8348   case $GCC,$host_os in
8349   yes,cygwin* | yes,mingw* | yes,pw32*)
8350     library_names_spec='$libname.dll.a'
8351     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8352     postinstall_cmds='base_file=`basename \${file}`~
8353       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8354       dldir=$destdir/`dirname \$dlpath`~
8355       test -d \$dldir || mkdir -p \$dldir~
8356       $install_prog $dir/$dlname \$dldir/$dlname~
8357       chmod a+x \$dldir/$dlname'
8358     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8359       dlpath=$dir/\$dldll~
8360        $rm \$dlpath'
8361     shlibpath_overrides_runpath=yes
8362
8363     case $host_os in
8364     cygwin*)
8365       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8366       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8367       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8368       ;;
8369     mingw*)
8370       # MinGW DLLs use traditional 'lib' prefix
8371       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8372       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8373       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8374         # It is most probably a Windows format PATH printed by
8375         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8376         # path with ; separators, and with drive letters. We can handle the
8377         # drive letters (cygwin fileutils understands them), so leave them,
8378         # especially as we might pass files found there to a mingw objdump,
8379         # which wouldn't understand a cygwinified path. Ahh.
8380         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8381       else
8382         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8383       fi
8384       ;;
8385     pw32*)
8386       # pw32 DLLs use 'pw' prefix rather than 'lib'
8387       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8388       ;;
8389     esac
8390     ;;
8391
8392   *)
8393     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8394     ;;
8395   esac
8396   dynamic_linker='Win32 ld.exe'
8397   # FIXME: first we should search . and the directory the executable is in
8398   shlibpath_var=PATH
8399   ;;
8400
8401 darwin* | rhapsody*)
8402   dynamic_linker="$host_os dyld"
8403   version_type=darwin
8404   need_lib_prefix=no
8405   need_version=no
8406   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8407   soname_spec='${libname}${release}${major}$shared_ext'
8408   shlibpath_overrides_runpath=yes
8409   shlibpath_var=DYLD_LIBRARY_PATH
8410   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8411   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8412   if test "$GCC" = yes; then
8413     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"`
8414   else
8415     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8416   fi
8417   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8418   ;;
8419
8420 dgux*)
8421   version_type=linux
8422   need_lib_prefix=no
8423   need_version=no
8424   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8425   soname_spec='${libname}${release}${shared_ext}$major'
8426   shlibpath_var=LD_LIBRARY_PATH
8427   ;;
8428
8429 freebsd1*)
8430   dynamic_linker=no
8431   ;;
8432
8433 kfreebsd*-gnu)
8434   version_type=linux
8435   need_lib_prefix=no
8436   need_version=no
8437   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8438   soname_spec='${libname}${release}${shared_ext}$major'
8439   shlibpath_var=LD_LIBRARY_PATH
8440   shlibpath_overrides_runpath=no
8441   hardcode_into_libs=yes
8442   dynamic_linker='GNU ld.so'
8443   ;;
8444
8445 freebsd* | dragonfly*)
8446   # DragonFly does not have aout.  When/if they implement a new
8447   # versioning mechanism, adjust this.
8448   if test -x /usr/bin/objformat; then
8449     objformat=`/usr/bin/objformat`
8450   else
8451     case $host_os in
8452     freebsd[123]*) objformat=aout ;;
8453     *) objformat=elf ;;
8454     esac
8455   fi
8456   version_type=freebsd-$objformat
8457   case $version_type in
8458     freebsd-elf*)
8459       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8460       need_version=no
8461       need_lib_prefix=no
8462       ;;
8463     freebsd-*)
8464       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8465       need_version=yes
8466       ;;
8467   esac
8468   shlibpath_var=LD_LIBRARY_PATH
8469   case $host_os in
8470   freebsd2*)
8471     shlibpath_overrides_runpath=yes
8472     ;;
8473   freebsd3.[01]* | freebsdelf3.[01]*)
8474     shlibpath_overrides_runpath=yes
8475     hardcode_into_libs=yes
8476     ;;
8477   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8478   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8479     shlibpath_overrides_runpath=no
8480     hardcode_into_libs=yes
8481     ;;
8482   freebsd*) # from 4.6 on
8483     shlibpath_overrides_runpath=yes
8484     hardcode_into_libs=yes
8485     ;;
8486   esac
8487   ;;
8488
8489 gnu*)
8490   version_type=linux
8491   need_lib_prefix=no
8492   need_version=no
8493   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8494   soname_spec='${libname}${release}${shared_ext}$major'
8495   shlibpath_var=LD_LIBRARY_PATH
8496   hardcode_into_libs=yes
8497   ;;
8498
8499 hpux9* | hpux10* | hpux11*)
8500   # Give a soname corresponding to the major version so that dld.sl refuses to
8501   # link against other versions.
8502   version_type=sunos
8503   need_lib_prefix=no
8504   need_version=no
8505   case $host_cpu in
8506   ia64*)
8507     shrext_cmds='.so'
8508     hardcode_into_libs=yes
8509     dynamic_linker="$host_os dld.so"
8510     shlibpath_var=LD_LIBRARY_PATH
8511     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8512     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8513     soname_spec='${libname}${release}${shared_ext}$major'
8514     if test "X$HPUX_IA64_MODE" = X32; then
8515       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8516     else
8517       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8518     fi
8519     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8520     ;;
8521    hppa*64*)
8522      shrext_cmds='.sl'
8523      hardcode_into_libs=yes
8524      dynamic_linker="$host_os dld.sl"
8525      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8526      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8527      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8528      soname_spec='${libname}${release}${shared_ext}$major'
8529      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8530      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8531      ;;
8532    *)
8533     shrext_cmds='.sl'
8534     dynamic_linker="$host_os dld.sl"
8535     shlibpath_var=SHLIB_PATH
8536     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8537     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8538     soname_spec='${libname}${release}${shared_ext}$major'
8539     ;;
8540   esac
8541   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8542   postinstall_cmds='chmod 555 $lib'
8543   ;;
8544
8545 interix3*)
8546   version_type=linux
8547   need_lib_prefix=no
8548   need_version=no
8549   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8550   soname_spec='${libname}${release}${shared_ext}$major'
8551   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8552   shlibpath_var=LD_LIBRARY_PATH
8553   shlibpath_overrides_runpath=no
8554   hardcode_into_libs=yes
8555   ;;
8556
8557 irix5* | irix6* | nonstopux*)
8558   case $host_os in
8559     nonstopux*) version_type=nonstopux ;;
8560     *)
8561         if test "$lt_cv_prog_gnu_ld" = yes; then
8562                 version_type=linux
8563         else
8564                 version_type=irix
8565         fi ;;
8566   esac
8567   need_lib_prefix=no
8568   need_version=no
8569   soname_spec='${libname}${release}${shared_ext}$major'
8570   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8571   case $host_os in
8572   irix5* | nonstopux*)
8573     libsuff= shlibsuff=
8574     ;;
8575   *)
8576     case $LD in # libtool.m4 will add one of these switches to LD
8577     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8578       libsuff= shlibsuff= libmagic=32-bit;;
8579     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8580       libsuff=32 shlibsuff=N32 libmagic=N32;;
8581     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8582       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8583     *) libsuff= shlibsuff= libmagic=never-match;;
8584     esac
8585     ;;
8586   esac
8587   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8588   shlibpath_overrides_runpath=no
8589   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8590   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8591   hardcode_into_libs=yes
8592   ;;
8593
8594 # No shared lib support for Linux oldld, aout, or coff.
8595 linux*oldld* | linux*aout* | linux*coff*)
8596   dynamic_linker=no
8597   ;;
8598
8599 # This must be Linux ELF.
8600 linux*)
8601   version_type=linux
8602   need_lib_prefix=no
8603   need_version=no
8604   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8605   soname_spec='${libname}${release}${shared_ext}$major'
8606   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8607   shlibpath_var=LD_LIBRARY_PATH
8608   shlibpath_overrides_runpath=no
8609   # This implies no fast_install, which is unacceptable.
8610   # Some rework will be needed to allow for fast_install
8611   # before this can be enabled.
8612   hardcode_into_libs=yes
8613
8614   # Append ld.so.conf contents to the search path
8615   if test -f /etc/ld.so.conf; then
8616     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' ' '`
8617     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8618   fi
8619
8620   # We used to test for /lib/ld.so.1 and disable shared libraries on
8621   # powerpc, because MkLinux only supported shared libraries with the
8622   # GNU dynamic linker.  Since this was broken with cross compilers,
8623   # most powerpc-linux boxes support dynamic linking these days and
8624   # people can always --disable-shared, the test was removed, and we
8625   # assume the GNU/Linux dynamic linker is in use.
8626   dynamic_linker='GNU/Linux ld.so'
8627   ;;
8628
8629 knetbsd*-gnu)
8630   version_type=linux
8631   need_lib_prefix=no
8632   need_version=no
8633   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8634   soname_spec='${libname}${release}${shared_ext}$major'
8635   shlibpath_var=LD_LIBRARY_PATH
8636   shlibpath_overrides_runpath=no
8637   hardcode_into_libs=yes
8638   dynamic_linker='GNU ld.so'
8639   ;;
8640
8641 netbsd*)
8642   version_type=sunos
8643   need_lib_prefix=no
8644   need_version=no
8645   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8646     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8647     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8648     dynamic_linker='NetBSD (a.out) ld.so'
8649   else
8650     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8651     soname_spec='${libname}${release}${shared_ext}$major'
8652     dynamic_linker='NetBSD ld.elf_so'
8653   fi
8654   shlibpath_var=LD_LIBRARY_PATH
8655   shlibpath_overrides_runpath=yes
8656   hardcode_into_libs=yes
8657   ;;
8658
8659 newsos6)
8660   version_type=linux
8661   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8662   shlibpath_var=LD_LIBRARY_PATH
8663   shlibpath_overrides_runpath=yes
8664   ;;
8665
8666 nto-qnx*)
8667   version_type=linux
8668   need_lib_prefix=no
8669   need_version=no
8670   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8671   soname_spec='${libname}${release}${shared_ext}$major'
8672   shlibpath_var=LD_LIBRARY_PATH
8673   shlibpath_overrides_runpath=yes
8674   ;;
8675
8676 openbsd*)
8677   version_type=sunos
8678   sys_lib_dlsearch_path_spec="/usr/lib"
8679   need_lib_prefix=no
8680   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8681   case $host_os in
8682     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8683     *)                         need_version=no  ;;
8684   esac
8685   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8686   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8687   shlibpath_var=LD_LIBRARY_PATH
8688   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8689     case $host_os in
8690       openbsd2.[89] | openbsd2.[89].*)
8691         shlibpath_overrides_runpath=no
8692         ;;
8693       *)
8694         shlibpath_overrides_runpath=yes
8695         ;;
8696       esac
8697   else
8698     shlibpath_overrides_runpath=yes
8699   fi
8700   ;;
8701
8702 os2*)
8703   libname_spec='$name'
8704   shrext_cmds=".dll"
8705   need_lib_prefix=no
8706   library_names_spec='$libname${shared_ext} $libname.a'
8707   dynamic_linker='OS/2 ld.exe'
8708   shlibpath_var=LIBPATH
8709   ;;
8710
8711 osf3* | osf4* | osf5*)
8712   version_type=osf
8713   need_lib_prefix=no
8714   need_version=no
8715   soname_spec='${libname}${release}${shared_ext}$major'
8716   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8717   shlibpath_var=LD_LIBRARY_PATH
8718   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8719   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8720   ;;
8721
8722 solaris*)
8723   version_type=linux
8724   need_lib_prefix=no
8725   need_version=no
8726   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8727   soname_spec='${libname}${release}${shared_ext}$major'
8728   shlibpath_var=LD_LIBRARY_PATH
8729   shlibpath_overrides_runpath=yes
8730   hardcode_into_libs=yes
8731   # ldd complains unless libraries are executable
8732   postinstall_cmds='chmod +x $lib'
8733   ;;
8734
8735 sunos4*)
8736   version_type=sunos
8737   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8738   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8739   shlibpath_var=LD_LIBRARY_PATH
8740   shlibpath_overrides_runpath=yes
8741   if test "$with_gnu_ld" = yes; then
8742     need_lib_prefix=no
8743   fi
8744   need_version=yes
8745   ;;
8746
8747 sysv4 | sysv4.3*)
8748   version_type=linux
8749   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8750   soname_spec='${libname}${release}${shared_ext}$major'
8751   shlibpath_var=LD_LIBRARY_PATH
8752   case $host_vendor in
8753     sni)
8754       shlibpath_overrides_runpath=no
8755       need_lib_prefix=no
8756       export_dynamic_flag_spec='${wl}-Blargedynsym'
8757       runpath_var=LD_RUN_PATH
8758       ;;
8759     siemens)
8760       need_lib_prefix=no
8761       ;;
8762     motorola)
8763       need_lib_prefix=no
8764       need_version=no
8765       shlibpath_overrides_runpath=no
8766       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8767       ;;
8768   esac
8769   ;;
8770
8771 sysv4*MP*)
8772   if test -d /usr/nec ;then
8773     version_type=linux
8774     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8775     soname_spec='$libname${shared_ext}.$major'
8776     shlibpath_var=LD_LIBRARY_PATH
8777   fi
8778   ;;
8779
8780 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8781   version_type=freebsd-elf
8782   need_lib_prefix=no
8783   need_version=no
8784   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8785   soname_spec='${libname}${release}${shared_ext}$major'
8786   shlibpath_var=LD_LIBRARY_PATH
8787   hardcode_into_libs=yes
8788   if test "$with_gnu_ld" = yes; then
8789     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8790     shlibpath_overrides_runpath=no
8791   else
8792     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8793     shlibpath_overrides_runpath=yes
8794     case $host_os in
8795       sco3.2v5*)
8796         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8797         ;;
8798     esac
8799   fi
8800   sys_lib_dlsearch_path_spec='/usr/lib'
8801   ;;
8802
8803 uts4*)
8804   version_type=linux
8805   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8806   soname_spec='${libname}${release}${shared_ext}$major'
8807   shlibpath_var=LD_LIBRARY_PATH
8808   ;;
8809
8810 *)
8811   dynamic_linker=no
8812   ;;
8813 esac
8814 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8815 echo "${ECHO_T}$dynamic_linker" >&6
8816 test "$dynamic_linker" = no && can_build_shared=no
8817
8818 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8819 if test "$GCC" = yes; then
8820   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8821 fi
8822
8823 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8824 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8825 hardcode_action=
8826 if test -n "$hardcode_libdir_flag_spec" || \
8827    test -n "$runpath_var" || \
8828    test "X$hardcode_automatic" = "Xyes" ; then
8829
8830   # We can hardcode non-existant directories.
8831   if test "$hardcode_direct" != no &&
8832      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8833      # have to relink, otherwise we might link with an installed library
8834      # when we should be linking with a yet-to-be-installed one
8835      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8836      test "$hardcode_minus_L" != no; then
8837     # Linking always hardcodes the temporary library directory.
8838     hardcode_action=relink
8839   else
8840     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8841     hardcode_action=immediate
8842   fi
8843 else
8844   # We cannot hardcode anything, or else we can only hardcode existing
8845   # directories.
8846   hardcode_action=unsupported
8847 fi
8848 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8849 echo "${ECHO_T}$hardcode_action" >&6
8850
8851 if test "$hardcode_action" = relink; then
8852   # Fast installation is not supported
8853   enable_fast_install=no
8854 elif test "$shlibpath_overrides_runpath" = yes ||
8855      test "$enable_shared" = no; then
8856   # Fast installation is not necessary
8857   enable_fast_install=needless
8858 fi
8859
8860 striplib=
8861 old_striplib=
8862 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8863 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8864 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8865   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8866   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8867   echo "$as_me:$LINENO: result: yes" >&5
8868 echo "${ECHO_T}yes" >&6
8869 else
8870 # FIXME - insert some real tests, host_os isn't really good enough
8871   case $host_os in
8872    darwin*)
8873        if test -n "$STRIP" ; then
8874          striplib="$STRIP -x"
8875          echo "$as_me:$LINENO: result: yes" >&5
8876 echo "${ECHO_T}yes" >&6
8877        else
8878   echo "$as_me:$LINENO: result: no" >&5
8879 echo "${ECHO_T}no" >&6
8880 fi
8881        ;;
8882    *)
8883   echo "$as_me:$LINENO: result: no" >&5
8884 echo "${ECHO_T}no" >&6
8885     ;;
8886   esac
8887 fi
8888
8889 if test "x$enable_dlopen" != xyes; then
8890   enable_dlopen=unknown
8891   enable_dlopen_self=unknown
8892   enable_dlopen_self_static=unknown
8893 else
8894   lt_cv_dlopen=no
8895   lt_cv_dlopen_libs=
8896
8897   case $host_os in
8898   beos*)
8899     lt_cv_dlopen="load_add_on"
8900     lt_cv_dlopen_libs=
8901     lt_cv_dlopen_self=yes
8902     ;;
8903
8904   mingw* | pw32*)
8905     lt_cv_dlopen="LoadLibrary"
8906     lt_cv_dlopen_libs=
8907    ;;
8908
8909   cygwin*)
8910     lt_cv_dlopen="dlopen"
8911     lt_cv_dlopen_libs=
8912    ;;
8913
8914   darwin*)
8915   # if libdl is installed we need to link against it
8916     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8917 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8918 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8919   echo $ECHO_N "(cached) $ECHO_C" >&6
8920 else
8921   ac_check_lib_save_LIBS=$LIBS
8922 LIBS="-ldl  $LIBS"
8923 cat >conftest.$ac_ext <<_ACEOF
8924 /* confdefs.h.  */
8925 _ACEOF
8926 cat confdefs.h >>conftest.$ac_ext
8927 cat >>conftest.$ac_ext <<_ACEOF
8928 /* end confdefs.h.  */
8929
8930 /* Override any gcc2 internal prototype to avoid an error.  */
8931 #ifdef __cplusplus
8932 extern "C"
8933 #endif
8934 /* We use char because int might match the return type of a gcc2
8935    builtin and then its argument prototype would still apply.  */
8936 char dlopen ();
8937 int
8938 main ()
8939 {
8940 dlopen ();
8941   ;
8942   return 0;
8943 }
8944 _ACEOF
8945 rm -f conftest.$ac_objext conftest$ac_exeext
8946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8947   (eval $ac_link) 2>conftest.er1
8948   ac_status=$?
8949   grep -v '^ *+' conftest.er1 >conftest.err
8950   rm -f conftest.er1
8951   cat conftest.err >&5
8952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8953   (exit $ac_status); } &&
8954          { ac_try='test -z "$ac_c_werror_flag"
8955                          || test ! -s conftest.err'
8956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8957   (eval $ac_try) 2>&5
8958   ac_status=$?
8959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960   (exit $ac_status); }; } &&
8961          { ac_try='test -s conftest$ac_exeext'
8962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8963   (eval $ac_try) 2>&5
8964   ac_status=$?
8965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966   (exit $ac_status); }; }; then
8967   ac_cv_lib_dl_dlopen=yes
8968 else
8969   echo "$as_me: failed program was:" >&5
8970 sed 's/^/| /' conftest.$ac_ext >&5
8971
8972 ac_cv_lib_dl_dlopen=no
8973 fi
8974 rm -f conftest.err conftest.$ac_objext \
8975       conftest$ac_exeext conftest.$ac_ext
8976 LIBS=$ac_check_lib_save_LIBS
8977 fi
8978 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8979 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8980 if test $ac_cv_lib_dl_dlopen = yes; then
8981   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8982 else
8983
8984     lt_cv_dlopen="dyld"
8985     lt_cv_dlopen_libs=
8986     lt_cv_dlopen_self=yes
8987
8988 fi
8989
8990    ;;
8991
8992   *)
8993     echo "$as_me:$LINENO: checking for shl_load" >&5
8994 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8995 if test "${ac_cv_func_shl_load+set}" = set; then
8996   echo $ECHO_N "(cached) $ECHO_C" >&6
8997 else
8998   cat >conftest.$ac_ext <<_ACEOF
8999 /* confdefs.h.  */
9000 _ACEOF
9001 cat confdefs.h >>conftest.$ac_ext
9002 cat >>conftest.$ac_ext <<_ACEOF
9003 /* end confdefs.h.  */
9004 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9005    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9006 #define shl_load innocuous_shl_load
9007
9008 /* System header to define __stub macros and hopefully few prototypes,
9009     which can conflict with char shl_load (); below.
9010     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9011     <limits.h> exists even on freestanding compilers.  */
9012
9013 #ifdef __STDC__
9014 # include <limits.h>
9015 #else
9016 # include <assert.h>
9017 #endif
9018
9019 #undef shl_load
9020
9021 /* Override any gcc2 internal prototype to avoid an error.  */
9022 #ifdef __cplusplus
9023 extern "C"
9024 {
9025 #endif
9026 /* We use char because int might match the return type of a gcc2
9027    builtin and then its argument prototype would still apply.  */
9028 char shl_load ();
9029 /* The GNU C library defines this for functions which it implements
9030     to always fail with ENOSYS.  Some functions are actually named
9031     something starting with __ and the normal name is an alias.  */
9032 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9033 choke me
9034 #else
9035 char (*f) () = shl_load;
9036 #endif
9037 #ifdef __cplusplus
9038 }
9039 #endif
9040
9041 int
9042 main ()
9043 {
9044 return f != shl_load;
9045   ;
9046   return 0;
9047 }
9048 _ACEOF
9049 rm -f conftest.$ac_objext conftest$ac_exeext
9050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9051   (eval $ac_link) 2>conftest.er1
9052   ac_status=$?
9053   grep -v '^ *+' conftest.er1 >conftest.err
9054   rm -f conftest.er1
9055   cat conftest.err >&5
9056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057   (exit $ac_status); } &&
9058          { ac_try='test -z "$ac_c_werror_flag"
9059                          || test ! -s conftest.err'
9060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9061   (eval $ac_try) 2>&5
9062   ac_status=$?
9063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9064   (exit $ac_status); }; } &&
9065          { ac_try='test -s conftest$ac_exeext'
9066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9067   (eval $ac_try) 2>&5
9068   ac_status=$?
9069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070   (exit $ac_status); }; }; then
9071   ac_cv_func_shl_load=yes
9072 else
9073   echo "$as_me: failed program was:" >&5
9074 sed 's/^/| /' conftest.$ac_ext >&5
9075
9076 ac_cv_func_shl_load=no
9077 fi
9078 rm -f conftest.err conftest.$ac_objext \
9079       conftest$ac_exeext conftest.$ac_ext
9080 fi
9081 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9082 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9083 if test $ac_cv_func_shl_load = yes; then
9084   lt_cv_dlopen="shl_load"
9085 else
9086   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9087 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9088 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9089   echo $ECHO_N "(cached) $ECHO_C" >&6
9090 else
9091   ac_check_lib_save_LIBS=$LIBS
9092 LIBS="-ldld  $LIBS"
9093 cat >conftest.$ac_ext <<_ACEOF
9094 /* confdefs.h.  */
9095 _ACEOF
9096 cat confdefs.h >>conftest.$ac_ext
9097 cat >>conftest.$ac_ext <<_ACEOF
9098 /* end confdefs.h.  */
9099
9100 /* Override any gcc2 internal prototype to avoid an error.  */
9101 #ifdef __cplusplus
9102 extern "C"
9103 #endif
9104 /* We use char because int might match the return type of a gcc2
9105    builtin and then its argument prototype would still apply.  */
9106 char shl_load ();
9107 int
9108 main ()
9109 {
9110 shl_load ();
9111   ;
9112   return 0;
9113 }
9114 _ACEOF
9115 rm -f conftest.$ac_objext conftest$ac_exeext
9116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9117   (eval $ac_link) 2>conftest.er1
9118   ac_status=$?
9119   grep -v '^ *+' conftest.er1 >conftest.err
9120   rm -f conftest.er1
9121   cat conftest.err >&5
9122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123   (exit $ac_status); } &&
9124          { ac_try='test -z "$ac_c_werror_flag"
9125                          || test ! -s conftest.err'
9126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9127   (eval $ac_try) 2>&5
9128   ac_status=$?
9129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130   (exit $ac_status); }; } &&
9131          { ac_try='test -s conftest$ac_exeext'
9132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9133   (eval $ac_try) 2>&5
9134   ac_status=$?
9135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136   (exit $ac_status); }; }; then
9137   ac_cv_lib_dld_shl_load=yes
9138 else
9139   echo "$as_me: failed program was:" >&5
9140 sed 's/^/| /' conftest.$ac_ext >&5
9141
9142 ac_cv_lib_dld_shl_load=no
9143 fi
9144 rm -f conftest.err conftest.$ac_objext \
9145       conftest$ac_exeext conftest.$ac_ext
9146 LIBS=$ac_check_lib_save_LIBS
9147 fi
9148 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9149 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9150 if test $ac_cv_lib_dld_shl_load = yes; then
9151   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9152 else
9153   echo "$as_me:$LINENO: checking for dlopen" >&5
9154 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9155 if test "${ac_cv_func_dlopen+set}" = set; then
9156   echo $ECHO_N "(cached) $ECHO_C" >&6
9157 else
9158   cat >conftest.$ac_ext <<_ACEOF
9159 /* confdefs.h.  */
9160 _ACEOF
9161 cat confdefs.h >>conftest.$ac_ext
9162 cat >>conftest.$ac_ext <<_ACEOF
9163 /* end confdefs.h.  */
9164 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9165    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9166 #define dlopen innocuous_dlopen
9167
9168 /* System header to define __stub macros and hopefully few prototypes,
9169     which can conflict with char dlopen (); below.
9170     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9171     <limits.h> exists even on freestanding compilers.  */
9172
9173 #ifdef __STDC__
9174 # include <limits.h>
9175 #else
9176 # include <assert.h>
9177 #endif
9178
9179 #undef dlopen
9180
9181 /* Override any gcc2 internal prototype to avoid an error.  */
9182 #ifdef __cplusplus
9183 extern "C"
9184 {
9185 #endif
9186 /* We use char because int might match the return type of a gcc2
9187    builtin and then its argument prototype would still apply.  */
9188 char dlopen ();
9189 /* The GNU C library defines this for functions which it implements
9190     to always fail with ENOSYS.  Some functions are actually named
9191     something starting with __ and the normal name is an alias.  */
9192 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9193 choke me
9194 #else
9195 char (*f) () = dlopen;
9196 #endif
9197 #ifdef __cplusplus
9198 }
9199 #endif
9200
9201 int
9202 main ()
9203 {
9204 return f != dlopen;
9205   ;
9206   return 0;
9207 }
9208 _ACEOF
9209 rm -f conftest.$ac_objext conftest$ac_exeext
9210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9211   (eval $ac_link) 2>conftest.er1
9212   ac_status=$?
9213   grep -v '^ *+' conftest.er1 >conftest.err
9214   rm -f conftest.er1
9215   cat conftest.err >&5
9216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9217   (exit $ac_status); } &&
9218          { ac_try='test -z "$ac_c_werror_flag"
9219                          || test ! -s conftest.err'
9220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9221   (eval $ac_try) 2>&5
9222   ac_status=$?
9223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224   (exit $ac_status); }; } &&
9225          { ac_try='test -s conftest$ac_exeext'
9226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9227   (eval $ac_try) 2>&5
9228   ac_status=$?
9229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230   (exit $ac_status); }; }; then
9231   ac_cv_func_dlopen=yes
9232 else
9233   echo "$as_me: failed program was:" >&5
9234 sed 's/^/| /' conftest.$ac_ext >&5
9235
9236 ac_cv_func_dlopen=no
9237 fi
9238 rm -f conftest.err conftest.$ac_objext \
9239       conftest$ac_exeext conftest.$ac_ext
9240 fi
9241 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9242 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9243 if test $ac_cv_func_dlopen = yes; then
9244   lt_cv_dlopen="dlopen"
9245 else
9246   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9247 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9248 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9249   echo $ECHO_N "(cached) $ECHO_C" >&6
9250 else
9251   ac_check_lib_save_LIBS=$LIBS
9252 LIBS="-ldl  $LIBS"
9253 cat >conftest.$ac_ext <<_ACEOF
9254 /* confdefs.h.  */
9255 _ACEOF
9256 cat confdefs.h >>conftest.$ac_ext
9257 cat >>conftest.$ac_ext <<_ACEOF
9258 /* end confdefs.h.  */
9259
9260 /* Override any gcc2 internal prototype to avoid an error.  */
9261 #ifdef __cplusplus
9262 extern "C"
9263 #endif
9264 /* We use char because int might match the return type of a gcc2
9265    builtin and then its argument prototype would still apply.  */
9266 char dlopen ();
9267 int
9268 main ()
9269 {
9270 dlopen ();
9271   ;
9272   return 0;
9273 }
9274 _ACEOF
9275 rm -f conftest.$ac_objext conftest$ac_exeext
9276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9277   (eval $ac_link) 2>conftest.er1
9278   ac_status=$?
9279   grep -v '^ *+' conftest.er1 >conftest.err
9280   rm -f conftest.er1
9281   cat conftest.err >&5
9282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283   (exit $ac_status); } &&
9284          { ac_try='test -z "$ac_c_werror_flag"
9285                          || test ! -s conftest.err'
9286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9287   (eval $ac_try) 2>&5
9288   ac_status=$?
9289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9290   (exit $ac_status); }; } &&
9291          { ac_try='test -s conftest$ac_exeext'
9292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9293   (eval $ac_try) 2>&5
9294   ac_status=$?
9295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9296   (exit $ac_status); }; }; then
9297   ac_cv_lib_dl_dlopen=yes
9298 else
9299   echo "$as_me: failed program was:" >&5
9300 sed 's/^/| /' conftest.$ac_ext >&5
9301
9302 ac_cv_lib_dl_dlopen=no
9303 fi
9304 rm -f conftest.err conftest.$ac_objext \
9305       conftest$ac_exeext conftest.$ac_ext
9306 LIBS=$ac_check_lib_save_LIBS
9307 fi
9308 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9309 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9310 if test $ac_cv_lib_dl_dlopen = yes; then
9311   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9312 else
9313   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9314 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9315 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9316   echo $ECHO_N "(cached) $ECHO_C" >&6
9317 else
9318   ac_check_lib_save_LIBS=$LIBS
9319 LIBS="-lsvld  $LIBS"
9320 cat >conftest.$ac_ext <<_ACEOF
9321 /* confdefs.h.  */
9322 _ACEOF
9323 cat confdefs.h >>conftest.$ac_ext
9324 cat >>conftest.$ac_ext <<_ACEOF
9325 /* end confdefs.h.  */
9326
9327 /* Override any gcc2 internal prototype to avoid an error.  */
9328 #ifdef __cplusplus
9329 extern "C"
9330 #endif
9331 /* We use char because int might match the return type of a gcc2
9332    builtin and then its argument prototype would still apply.  */
9333 char dlopen ();
9334 int
9335 main ()
9336 {
9337 dlopen ();
9338   ;
9339   return 0;
9340 }
9341 _ACEOF
9342 rm -f conftest.$ac_objext conftest$ac_exeext
9343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9344   (eval $ac_link) 2>conftest.er1
9345   ac_status=$?
9346   grep -v '^ *+' conftest.er1 >conftest.err
9347   rm -f conftest.er1
9348   cat conftest.err >&5
9349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9350   (exit $ac_status); } &&
9351          { ac_try='test -z "$ac_c_werror_flag"
9352                          || test ! -s conftest.err'
9353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9354   (eval $ac_try) 2>&5
9355   ac_status=$?
9356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357   (exit $ac_status); }; } &&
9358          { ac_try='test -s conftest$ac_exeext'
9359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9360   (eval $ac_try) 2>&5
9361   ac_status=$?
9362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9363   (exit $ac_status); }; }; then
9364   ac_cv_lib_svld_dlopen=yes
9365 else
9366   echo "$as_me: failed program was:" >&5
9367 sed 's/^/| /' conftest.$ac_ext >&5
9368
9369 ac_cv_lib_svld_dlopen=no
9370 fi
9371 rm -f conftest.err conftest.$ac_objext \
9372       conftest$ac_exeext conftest.$ac_ext
9373 LIBS=$ac_check_lib_save_LIBS
9374 fi
9375 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9376 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9377 if test $ac_cv_lib_svld_dlopen = yes; then
9378   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9379 else
9380   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9381 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9382 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9383   echo $ECHO_N "(cached) $ECHO_C" >&6
9384 else
9385   ac_check_lib_save_LIBS=$LIBS
9386 LIBS="-ldld  $LIBS"
9387 cat >conftest.$ac_ext <<_ACEOF
9388 /* confdefs.h.  */
9389 _ACEOF
9390 cat confdefs.h >>conftest.$ac_ext
9391 cat >>conftest.$ac_ext <<_ACEOF
9392 /* end confdefs.h.  */
9393
9394 /* Override any gcc2 internal prototype to avoid an error.  */
9395 #ifdef __cplusplus
9396 extern "C"
9397 #endif
9398 /* We use char because int might match the return type of a gcc2
9399    builtin and then its argument prototype would still apply.  */
9400 char dld_link ();
9401 int
9402 main ()
9403 {
9404 dld_link ();
9405   ;
9406   return 0;
9407 }
9408 _ACEOF
9409 rm -f conftest.$ac_objext conftest$ac_exeext
9410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9411   (eval $ac_link) 2>conftest.er1
9412   ac_status=$?
9413   grep -v '^ *+' conftest.er1 >conftest.err
9414   rm -f conftest.er1
9415   cat conftest.err >&5
9416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9417   (exit $ac_status); } &&
9418          { ac_try='test -z "$ac_c_werror_flag"
9419                          || test ! -s conftest.err'
9420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9421   (eval $ac_try) 2>&5
9422   ac_status=$?
9423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424   (exit $ac_status); }; } &&
9425          { ac_try='test -s conftest$ac_exeext'
9426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9427   (eval $ac_try) 2>&5
9428   ac_status=$?
9429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9430   (exit $ac_status); }; }; then
9431   ac_cv_lib_dld_dld_link=yes
9432 else
9433   echo "$as_me: failed program was:" >&5
9434 sed 's/^/| /' conftest.$ac_ext >&5
9435
9436 ac_cv_lib_dld_dld_link=no
9437 fi
9438 rm -f conftest.err conftest.$ac_objext \
9439       conftest$ac_exeext conftest.$ac_ext
9440 LIBS=$ac_check_lib_save_LIBS
9441 fi
9442 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9443 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9444 if test $ac_cv_lib_dld_dld_link = yes; then
9445   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9446 fi
9447
9448
9449 fi
9450
9451
9452 fi
9453
9454
9455 fi
9456
9457
9458 fi
9459
9460
9461 fi
9462
9463     ;;
9464   esac
9465
9466   if test "x$lt_cv_dlopen" != xno; then
9467     enable_dlopen=yes
9468   else
9469     enable_dlopen=no
9470   fi
9471
9472   case $lt_cv_dlopen in
9473   dlopen)
9474     save_CPPFLAGS="$CPPFLAGS"
9475     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9476
9477     save_LDFLAGS="$LDFLAGS"
9478     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9479
9480     save_LIBS="$LIBS"
9481     LIBS="$lt_cv_dlopen_libs $LIBS"
9482
9483     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9484 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9485 if test "${lt_cv_dlopen_self+set}" = set; then
9486   echo $ECHO_N "(cached) $ECHO_C" >&6
9487 else
9488           if test "$cross_compiling" = yes; then :
9489   lt_cv_dlopen_self=cross
9490 else
9491   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9492   lt_status=$lt_dlunknown
9493   cat > conftest.$ac_ext <<EOF
9494 #line 9494 "configure"
9495 #include "confdefs.h"
9496
9497 #if HAVE_DLFCN_H
9498 #include <dlfcn.h>
9499 #endif
9500
9501 #include <stdio.h>
9502
9503 #ifdef RTLD_GLOBAL
9504 #  define LT_DLGLOBAL           RTLD_GLOBAL
9505 #else
9506 #  ifdef DL_GLOBAL
9507 #    define LT_DLGLOBAL         DL_GLOBAL
9508 #  else
9509 #    define LT_DLGLOBAL         0
9510 #  endif
9511 #endif
9512
9513 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9514    find out it does not work in some platform. */
9515 #ifndef LT_DLLAZY_OR_NOW
9516 #  ifdef RTLD_LAZY
9517 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9518 #  else
9519 #    ifdef DL_LAZY
9520 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9521 #    else
9522 #      ifdef RTLD_NOW
9523 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9524 #      else
9525 #        ifdef DL_NOW
9526 #          define LT_DLLAZY_OR_NOW      DL_NOW
9527 #        else
9528 #          define LT_DLLAZY_OR_NOW      0
9529 #        endif
9530 #      endif
9531 #    endif
9532 #  endif
9533 #endif
9534
9535 #ifdef __cplusplus
9536 extern "C" void exit (int);
9537 #endif
9538
9539 void fnord() { int i=42;}
9540 int main ()
9541 {
9542   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9543   int status = $lt_dlunknown;
9544
9545   if (self)
9546     {
9547       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9548       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9549       /* dlclose (self); */
9550     }
9551   else
9552     puts (dlerror ());
9553
9554     exit (status);
9555 }
9556 EOF
9557   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9558   (eval $ac_link) 2>&5
9559   ac_status=$?
9560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9562     (./conftest; exit; ) >&5 2>/dev/null
9563     lt_status=$?
9564     case x$lt_status in
9565       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9566       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9567       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9568     esac
9569   else :
9570     # compilation failed
9571     lt_cv_dlopen_self=no
9572   fi
9573 fi
9574 rm -fr conftest*
9575
9576
9577 fi
9578 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9579 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9580
9581     if test "x$lt_cv_dlopen_self" = xyes; then
9582       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9583       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9584 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9585 if test "${lt_cv_dlopen_self_static+set}" = set; then
9586   echo $ECHO_N "(cached) $ECHO_C" >&6
9587 else
9588           if test "$cross_compiling" = yes; then :
9589   lt_cv_dlopen_self_static=cross
9590 else
9591   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9592   lt_status=$lt_dlunknown
9593   cat > conftest.$ac_ext <<EOF
9594 #line 9594 "configure"
9595 #include "confdefs.h"
9596
9597 #if HAVE_DLFCN_H
9598 #include <dlfcn.h>
9599 #endif
9600
9601 #include <stdio.h>
9602
9603 #ifdef RTLD_GLOBAL
9604 #  define LT_DLGLOBAL           RTLD_GLOBAL
9605 #else
9606 #  ifdef DL_GLOBAL
9607 #    define LT_DLGLOBAL         DL_GLOBAL
9608 #  else
9609 #    define LT_DLGLOBAL         0
9610 #  endif
9611 #endif
9612
9613 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9614    find out it does not work in some platform. */
9615 #ifndef LT_DLLAZY_OR_NOW
9616 #  ifdef RTLD_LAZY
9617 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9618 #  else
9619 #    ifdef DL_LAZY
9620 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9621 #    else
9622 #      ifdef RTLD_NOW
9623 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9624 #      else
9625 #        ifdef DL_NOW
9626 #          define LT_DLLAZY_OR_NOW      DL_NOW
9627 #        else
9628 #          define LT_DLLAZY_OR_NOW      0
9629 #        endif
9630 #      endif
9631 #    endif
9632 #  endif
9633 #endif
9634
9635 #ifdef __cplusplus
9636 extern "C" void exit (int);
9637 #endif
9638
9639 void fnord() { int i=42;}
9640 int main ()
9641 {
9642   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9643   int status = $lt_dlunknown;
9644
9645   if (self)
9646     {
9647       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9648       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9649       /* dlclose (self); */
9650     }
9651   else
9652     puts (dlerror ());
9653
9654     exit (status);
9655 }
9656 EOF
9657   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9658   (eval $ac_link) 2>&5
9659   ac_status=$?
9660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9661   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9662     (./conftest; exit; ) >&5 2>/dev/null
9663     lt_status=$?
9664     case x$lt_status in
9665       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9666       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9667       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9668     esac
9669   else :
9670     # compilation failed
9671     lt_cv_dlopen_self_static=no
9672   fi
9673 fi
9674 rm -fr conftest*
9675
9676
9677 fi
9678 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9679 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9680     fi
9681
9682     CPPFLAGS="$save_CPPFLAGS"
9683     LDFLAGS="$save_LDFLAGS"
9684     LIBS="$save_LIBS"
9685     ;;
9686   esac
9687
9688   case $lt_cv_dlopen_self in
9689   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9690   *) enable_dlopen_self=unknown ;;
9691   esac
9692
9693   case $lt_cv_dlopen_self_static in
9694   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9695   *) enable_dlopen_self_static=unknown ;;
9696   esac
9697 fi
9698
9699
9700 # Report which library types will actually be built
9701 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9702 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9703 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9704 echo "${ECHO_T}$can_build_shared" >&6
9705
9706 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9707 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9708 test "$can_build_shared" = "no" && enable_shared=no
9709
9710 # On AIX, shared libraries and static libraries use the same namespace, and
9711 # are all built from PIC.
9712 case $host_os in
9713 aix3*)
9714   test "$enable_shared" = yes && enable_static=no
9715   if test -n "$RANLIB"; then
9716     archive_cmds="$archive_cmds~\$RANLIB \$lib"
9717     postinstall_cmds='$RANLIB $lib'
9718   fi
9719   ;;
9720
9721 aix4* | aix5*)
9722   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9723     test "$enable_shared" = yes && enable_static=no
9724   fi
9725     ;;
9726 esac
9727 echo "$as_me:$LINENO: result: $enable_shared" >&5
9728 echo "${ECHO_T}$enable_shared" >&6
9729
9730 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9731 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9732 # Make sure either enable_shared or enable_static is yes.
9733 test "$enable_shared" = yes || enable_static=yes
9734 echo "$as_me:$LINENO: result: $enable_static" >&5
9735 echo "${ECHO_T}$enable_static" >&6
9736
9737 # The else clause should only fire when bootstrapping the
9738 # libtool distribution, otherwise you forgot to ship ltmain.sh
9739 # with your package, and you will get complaints that there are
9740 # no rules to generate ltmain.sh.
9741 if test -f "$ltmain"; then
9742   # See if we are running on zsh, and set the options which allow our commands through
9743   # without removal of \ escapes.
9744   if test -n "${ZSH_VERSION+set}" ; then
9745     setopt NO_GLOB_SUBST
9746   fi
9747   # Now quote all the things that may contain metacharacters while being
9748   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9749   # variables and quote the copies for generation of the libtool script.
9750   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9751     SED SHELL STRIP \
9752     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9753     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9754     deplibs_check_method reload_flag reload_cmds need_locks \
9755     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9756     lt_cv_sys_global_symbol_to_c_name_address \
9757     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9758     old_postinstall_cmds old_postuninstall_cmds \
9759     compiler \
9760     CC \
9761     LD \
9762     lt_prog_compiler_wl \
9763     lt_prog_compiler_pic \
9764     lt_prog_compiler_static \
9765     lt_prog_compiler_no_builtin_flag \
9766     export_dynamic_flag_spec \
9767     thread_safe_flag_spec \
9768     whole_archive_flag_spec \
9769     enable_shared_with_static_runtimes \
9770     old_archive_cmds \
9771     old_archive_from_new_cmds \
9772     predep_objects \
9773     postdep_objects \
9774     predeps \
9775     postdeps \
9776     compiler_lib_search_path \
9777     archive_cmds \
9778     archive_expsym_cmds \
9779     postinstall_cmds \
9780     postuninstall_cmds \
9781     old_archive_from_expsyms_cmds \
9782     allow_undefined_flag \
9783     no_undefined_flag \
9784     export_symbols_cmds \
9785     hardcode_libdir_flag_spec \
9786     hardcode_libdir_flag_spec_ld \
9787     hardcode_libdir_separator \
9788     hardcode_automatic \
9789     module_cmds \
9790     module_expsym_cmds \
9791     lt_cv_prog_compiler_c_o \
9792     exclude_expsyms \
9793     include_expsyms; do
9794
9795     case $var in
9796     old_archive_cmds | \
9797     old_archive_from_new_cmds | \
9798     archive_cmds | \
9799     archive_expsym_cmds | \
9800     module_cmds | \
9801     module_expsym_cmds | \
9802     old_archive_from_expsyms_cmds | \
9803     export_symbols_cmds | \
9804     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9805     postinstall_cmds | postuninstall_cmds | \
9806     old_postinstall_cmds | old_postuninstall_cmds | \
9807     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9808       # Double-quote double-evaled strings.
9809       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9810       ;;
9811     *)
9812       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9813       ;;
9814     esac
9815   done
9816
9817   case $lt_echo in
9818   *'\$0 --fallback-echo"')
9819     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9820     ;;
9821   esac
9822
9823 cfgfile="${ofile}T"
9824   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9825   $rm -f "$cfgfile"
9826   { echo "$as_me:$LINENO: creating $ofile" >&5
9827 echo "$as_me: creating $ofile" >&6;}
9828
9829   cat <<__EOF__ >> "$cfgfile"
9830 #! $SHELL
9831
9832 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9833 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9834 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9835 #
9836 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9837 # Free Software Foundation, Inc.
9838 #
9839 # This file is part of GNU Libtool:
9840 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9841 #
9842 # This program is free software; you can redistribute it and/or modify
9843 # it under the terms of the GNU General Public License as published by
9844 # the Free Software Foundation; either version 2 of the License, or
9845 # (at your option) any later version.
9846 #
9847 # This program is distributed in the hope that it will be useful, but
9848 # WITHOUT ANY WARRANTY; without even the implied warranty of
9849 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9850 # General Public License for more details.
9851 #
9852 # You should have received a copy of the GNU General Public License
9853 # along with this program; if not, write to the Free Software
9854 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9855 #
9856 # As a special exception to the GNU General Public License, if you
9857 # distribute this file as part of a program that contains a
9858 # configuration script generated by Autoconf, you may include it under
9859 # the same distribution terms that you use for the rest of that program.
9860
9861 # A sed program that does not truncate output.
9862 SED=$lt_SED
9863
9864 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9865 Xsed="$SED -e 1s/^X//"
9866
9867 # The HP-UX ksh and POSIX shell print the target directory to stdout
9868 # if CDPATH is set.
9869 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9870
9871 # The names of the tagged configurations supported by this script.
9872 available_tags=
9873
9874 # ### BEGIN LIBTOOL CONFIG
9875
9876 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9877
9878 # Shell to use when invoking shell scripts.
9879 SHELL=$lt_SHELL
9880
9881 # Whether or not to build shared libraries.
9882 build_libtool_libs=$enable_shared
9883
9884 # Whether or not to build static libraries.
9885 build_old_libs=$enable_static
9886
9887 # Whether or not to add -lc for building shared libraries.
9888 build_libtool_need_lc=$archive_cmds_need_lc
9889
9890 # Whether or not to disallow shared libs when runtime libs are static
9891 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9892
9893 # Whether or not to optimize for fast installation.
9894 fast_install=$enable_fast_install
9895
9896 # The host system.
9897 host_alias=$host_alias
9898 host=$host
9899 host_os=$host_os
9900
9901 # The build system.
9902 build_alias=$build_alias
9903 build=$build
9904 build_os=$build_os
9905
9906 # An echo program that does not interpret backslashes.
9907 echo=$lt_echo
9908
9909 # The archiver.
9910 AR=$lt_AR
9911 AR_FLAGS=$lt_AR_FLAGS
9912
9913 # A C compiler.
9914 LTCC=$lt_LTCC
9915
9916 # LTCC compiler flags.
9917 LTCFLAGS=$lt_LTCFLAGS
9918
9919 # A language-specific compiler.
9920 CC=$lt_compiler
9921
9922 # Is the compiler the GNU C compiler?
9923 with_gcc=$GCC
9924
9925 # An ERE matcher.
9926 EGREP=$lt_EGREP
9927
9928 # The linker used to build libraries.
9929 LD=$lt_LD
9930
9931 # Whether we need hard or soft links.
9932 LN_S=$lt_LN_S
9933
9934 # A BSD-compatible nm program.
9935 NM=$lt_NM
9936
9937 # A symbol stripping program
9938 STRIP=$lt_STRIP
9939
9940 # Used to examine libraries when file_magic_cmd begins "file"
9941 MAGIC_CMD=$MAGIC_CMD
9942
9943 # Used on cygwin: DLL creation program.
9944 DLLTOOL="$DLLTOOL"
9945
9946 # Used on cygwin: object dumper.
9947 OBJDUMP="$OBJDUMP"
9948
9949 # Used on cygwin: assembler.
9950 AS="$AS"
9951
9952 # The name of the directory that contains temporary libtool files.
9953 objdir=$objdir
9954
9955 # How to create reloadable object files.
9956 reload_flag=$lt_reload_flag
9957 reload_cmds=$lt_reload_cmds
9958
9959 # How to pass a linker flag through the compiler.
9960 wl=$lt_lt_prog_compiler_wl
9961
9962 # Object file suffix (normally "o").
9963 objext="$ac_objext"
9964
9965 # Old archive suffix (normally "a").
9966 libext="$libext"
9967
9968 # Shared library suffix (normally ".so").
9969 shrext_cmds='$shrext_cmds'
9970
9971 # Executable file suffix (normally "").
9972 exeext="$exeext"
9973
9974 # Additional compiler flags for building library objects.
9975 pic_flag=$lt_lt_prog_compiler_pic
9976 pic_mode=$pic_mode
9977
9978 # What is the maximum length of a command?
9979 max_cmd_len=$lt_cv_sys_max_cmd_len
9980
9981 # Does compiler simultaneously support -c and -o options?
9982 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9983
9984 # Must we lock files when doing compilation?
9985 need_locks=$lt_need_locks
9986
9987 # Do we need the lib prefix for modules?
9988 need_lib_prefix=$need_lib_prefix
9989
9990 # Do we need a version for libraries?
9991 need_version=$need_version
9992
9993 # Whether dlopen is supported.
9994 dlopen_support=$enable_dlopen
9995
9996 # Whether dlopen of programs is supported.
9997 dlopen_self=$enable_dlopen_self
9998
9999 # Whether dlopen of statically linked programs is supported.
10000 dlopen_self_static=$enable_dlopen_self_static
10001
10002 # Compiler flag to prevent dynamic linking.
10003 link_static_flag=$lt_lt_prog_compiler_static
10004
10005 # Compiler flag to turn off builtin functions.
10006 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10007
10008 # Compiler flag to allow reflexive dlopens.
10009 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10010
10011 # Compiler flag to generate shared objects directly from archives.
10012 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10013
10014 # Compiler flag to generate thread-safe objects.
10015 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10016
10017 # Library versioning type.
10018 version_type=$version_type
10019
10020 # Format of library name prefix.
10021 libname_spec=$lt_libname_spec
10022
10023 # List of archive names.  First name is the real one, the rest are links.
10024 # The last name is the one that the linker finds with -lNAME.
10025 library_names_spec=$lt_library_names_spec
10026
10027 # The coded name of the library, if different from the real name.
10028 soname_spec=$lt_soname_spec
10029
10030 # Commands used to build and install an old-style archive.
10031 RANLIB=$lt_RANLIB
10032 old_archive_cmds=$lt_old_archive_cmds
10033 old_postinstall_cmds=$lt_old_postinstall_cmds
10034 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10035
10036 # Create an old-style archive from a shared archive.
10037 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10038
10039 # Create a temporary old-style archive to link instead of a shared archive.
10040 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10041
10042 # Commands used to build and install a shared archive.
10043 archive_cmds=$lt_archive_cmds
10044 archive_expsym_cmds=$lt_archive_expsym_cmds
10045 postinstall_cmds=$lt_postinstall_cmds
10046 postuninstall_cmds=$lt_postuninstall_cmds
10047
10048 # Commands used to build a loadable module (assumed same as above if empty)
10049 module_cmds=$lt_module_cmds
10050 module_expsym_cmds=$lt_module_expsym_cmds
10051
10052 # Commands to strip libraries.
10053 old_striplib=$lt_old_striplib
10054 striplib=$lt_striplib
10055
10056 # Dependencies to place before the objects being linked to create a
10057 # shared library.
10058 predep_objects=$lt_predep_objects
10059
10060 # Dependencies to place after the objects being linked to create a
10061 # shared library.
10062 postdep_objects=$lt_postdep_objects
10063
10064 # Dependencies to place before the objects being linked to create a
10065 # shared library.
10066 predeps=$lt_predeps
10067
10068 # Dependencies to place after the objects being linked to create a
10069 # shared library.
10070 postdeps=$lt_postdeps
10071
10072 # The library search path used internally by the compiler when linking
10073 # a shared library.
10074 compiler_lib_search_path=$lt_compiler_lib_search_path
10075
10076 # Method to check whether dependent libraries are shared objects.
10077 deplibs_check_method=$lt_deplibs_check_method
10078
10079 # Command to use when deplibs_check_method == file_magic.
10080 file_magic_cmd=$lt_file_magic_cmd
10081
10082 # Flag that allows shared libraries with undefined symbols to be built.
10083 allow_undefined_flag=$lt_allow_undefined_flag
10084
10085 # Flag that forces no undefined symbols.
10086 no_undefined_flag=$lt_no_undefined_flag
10087
10088 # Commands used to finish a libtool library installation in a directory.
10089 finish_cmds=$lt_finish_cmds
10090
10091 # Same as above, but a single script fragment to be evaled but not shown.
10092 finish_eval=$lt_finish_eval
10093
10094 # Take the output of nm and produce a listing of raw symbols and C names.
10095 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10096
10097 # Transform the output of nm in a proper C declaration
10098 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10099
10100 # Transform the output of nm in a C name address pair
10101 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10102
10103 # This is the shared library runtime path variable.
10104 runpath_var=$runpath_var
10105
10106 # This is the shared library path variable.
10107 shlibpath_var=$shlibpath_var
10108
10109 # Is shlibpath searched before the hard-coded library search path?
10110 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10111
10112 # How to hardcode a shared library path into an executable.
10113 hardcode_action=$hardcode_action
10114
10115 # Whether we should hardcode library paths into libraries.
10116 hardcode_into_libs=$hardcode_into_libs
10117
10118 # Flag to hardcode \$libdir into a binary during linking.
10119 # This must work even if \$libdir does not exist.
10120 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10121
10122 # If ld is used when linking, flag to hardcode \$libdir into
10123 # a binary during linking. This must work even if \$libdir does
10124 # not exist.
10125 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10126
10127 # Whether we need a single -rpath flag with a separated argument.
10128 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10129
10130 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10131 # resulting binary.
10132 hardcode_direct=$hardcode_direct
10133
10134 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10135 # resulting binary.
10136 hardcode_minus_L=$hardcode_minus_L
10137
10138 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10139 # the resulting binary.
10140 hardcode_shlibpath_var=$hardcode_shlibpath_var
10141
10142 # Set to yes if building a shared library automatically hardcodes DIR into the library
10143 # and all subsequent libraries and executables linked against it.
10144 hardcode_automatic=$hardcode_automatic
10145
10146 # Variables whose values should be saved in libtool wrapper scripts and
10147 # restored at relink time.
10148 variables_saved_for_relink="$variables_saved_for_relink"
10149
10150 # Whether libtool must link a program against all its dependency libraries.
10151 link_all_deplibs=$link_all_deplibs
10152
10153 # Compile-time system search path for libraries
10154 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10155
10156 # Run-time system search path for libraries
10157 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10158
10159 # Fix the shell variable \$srcfile for the compiler.
10160 fix_srcfile_path="$fix_srcfile_path"
10161
10162 # Set to yes if exported symbols are required.
10163 always_export_symbols=$always_export_symbols
10164
10165 # The commands to list exported symbols.
10166 export_symbols_cmds=$lt_export_symbols_cmds
10167
10168 # The commands to extract the exported symbol list from a shared archive.
10169 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10170
10171 # Symbols that should not be listed in the preloaded symbols.
10172 exclude_expsyms=$lt_exclude_expsyms
10173
10174 # Symbols that must always be exported.
10175 include_expsyms=$lt_include_expsyms
10176
10177 # ### END LIBTOOL CONFIG
10178
10179 __EOF__
10180
10181
10182   case $host_os in
10183   aix3*)
10184     cat <<\EOF >> "$cfgfile"
10185
10186 # AIX sometimes has problems with the GCC collect2 program.  For some
10187 # reason, if we set the COLLECT_NAMES environment variable, the problems
10188 # vanish in a puff of smoke.
10189 if test "X${COLLECT_NAMES+set}" != Xset; then
10190   COLLECT_NAMES=
10191   export COLLECT_NAMES
10192 fi
10193 EOF
10194     ;;
10195   esac
10196
10197   # We use sed instead of cat because bash on DJGPP gets confused if
10198   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10199   # text mode, it properly converts lines to CR/LF.  This bash problem
10200   # is reportedly fixed, but why not run on old versions too?
10201   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10202
10203   mv -f "$cfgfile" "$ofile" || \
10204     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10205   chmod +x "$ofile"
10206
10207 else
10208   # If there is no Makefile yet, we rely on a make rule to execute
10209   # `config.status --recheck' to rerun these tests and create the
10210   # libtool script then.
10211   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10212   if test -f "$ltmain_in"; then
10213     test -f Makefile && make "$ltmain"
10214   fi
10215 fi
10216
10217
10218 ac_ext=c
10219 ac_cpp='$CPP $CPPFLAGS'
10220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10223
10224 CC="$lt_save_CC"
10225
10226
10227 # Check whether --with-tags or --without-tags was given.
10228 if test "${with_tags+set}" = set; then
10229   withval="$with_tags"
10230   tagnames="$withval"
10231 fi;
10232
10233 if test -f "$ltmain" && test -n "$tagnames"; then
10234   if test ! -f "${ofile}"; then
10235     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10236 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10237   fi
10238
10239   if test -z "$LTCC"; then
10240     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10241     if test -z "$LTCC"; then
10242       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10243 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10244     else
10245       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10246 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10247     fi
10248   fi
10249   if test -z "$LTCFLAGS"; then
10250     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10251   fi
10252
10253   # Extract list of available tagged configurations in $ofile.
10254   # Note that this assumes the entire list is on one line.
10255   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10256
10257   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10258   for tagname in $tagnames; do
10259     IFS="$lt_save_ifs"
10260     # Check whether tagname contains only valid characters
10261     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10262     "") ;;
10263     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10264 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10265    { (exit 1); exit 1; }; }
10266         ;;
10267     esac
10268
10269     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10270     then
10271       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10272 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10273    { (exit 1); exit 1; }; }
10274     fi
10275
10276     # Update the list of available tags.
10277     if test -n "$tagname"; then
10278       echo appending configuration tag \"$tagname\" to $ofile
10279
10280       case $tagname in
10281       CXX)
10282         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10283             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10284             (test "X$CXX" != "Xg++"))) ; then
10285           ac_ext=cc
10286 ac_cpp='$CXXCPP $CPPFLAGS'
10287 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10288 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10289 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10290
10291
10292
10293
10294 archive_cmds_need_lc_CXX=no
10295 allow_undefined_flag_CXX=
10296 always_export_symbols_CXX=no
10297 archive_expsym_cmds_CXX=
10298 export_dynamic_flag_spec_CXX=
10299 hardcode_direct_CXX=no
10300 hardcode_libdir_flag_spec_CXX=
10301 hardcode_libdir_flag_spec_ld_CXX=
10302 hardcode_libdir_separator_CXX=
10303 hardcode_minus_L_CXX=no
10304 hardcode_shlibpath_var_CXX=unsupported
10305 hardcode_automatic_CXX=no
10306 module_cmds_CXX=
10307 module_expsym_cmds_CXX=
10308 link_all_deplibs_CXX=unknown
10309 old_archive_cmds_CXX=$old_archive_cmds
10310 no_undefined_flag_CXX=
10311 whole_archive_flag_spec_CXX=
10312 enable_shared_with_static_runtimes_CXX=no
10313
10314 # Dependencies to place before and after the object being linked:
10315 predep_objects_CXX=
10316 postdep_objects_CXX=
10317 predeps_CXX=
10318 postdeps_CXX=
10319 compiler_lib_search_path_CXX=
10320
10321 # Source file extension for C++ test sources.
10322 ac_ext=cpp
10323
10324 # Object file extension for compiled C++ test sources.
10325 objext=o
10326 objext_CXX=$objext
10327
10328 # Code to be used in simple compile tests
10329 lt_simple_compile_test_code="int some_variable = 0;\n"
10330
10331 # Code to be used in simple link tests
10332 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10333
10334 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10335
10336 # If no C compiler was specified, use CC.
10337 LTCC=${LTCC-"$CC"}
10338
10339 # If no C compiler flags were specified, use CFLAGS.
10340 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10341
10342 # Allow CC to be a program name with arguments.
10343 compiler=$CC
10344
10345
10346 # save warnings/boilerplate of simple test code
10347 ac_outfile=conftest.$ac_objext
10348 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10349 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10350 _lt_compiler_boilerplate=`cat conftest.err`
10351 $rm conftest*
10352
10353 ac_outfile=conftest.$ac_objext
10354 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10355 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10356 _lt_linker_boilerplate=`cat conftest.err`
10357 $rm conftest*
10358
10359
10360 # Allow CC to be a program name with arguments.
10361 lt_save_CC=$CC
10362 lt_save_LD=$LD
10363 lt_save_GCC=$GCC
10364 GCC=$GXX
10365 lt_save_with_gnu_ld=$with_gnu_ld
10366 lt_save_path_LD=$lt_cv_path_LD
10367 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10368   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10369 else
10370   $as_unset lt_cv_prog_gnu_ld
10371 fi
10372 if test -n "${lt_cv_path_LDCXX+set}"; then
10373   lt_cv_path_LD=$lt_cv_path_LDCXX
10374 else
10375   $as_unset lt_cv_path_LD
10376 fi
10377 test -z "${LDCXX+set}" || LD=$LDCXX
10378 CC=${CXX-"c++"}
10379 compiler=$CC
10380 compiler_CXX=$CC
10381 for cc_temp in $compiler""; do
10382   case $cc_temp in
10383     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10384     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10385     \-*) ;;
10386     *) break;;
10387   esac
10388 done
10389 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10390
10391
10392 # We don't want -fno-exception wen compiling C++ code, so set the
10393 # no_builtin_flag separately
10394 if test "$GXX" = yes; then
10395   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10396 else
10397   lt_prog_compiler_no_builtin_flag_CXX=
10398 fi
10399
10400 if test "$GXX" = yes; then
10401   # Set up default GNU C++ configuration
10402
10403
10404 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10405 if test "${with_gnu_ld+set}" = set; then
10406   withval="$with_gnu_ld"
10407   test "$withval" = no || with_gnu_ld=yes
10408 else
10409   with_gnu_ld=no
10410 fi;
10411 ac_prog=ld
10412 if test "$GCC" = yes; then
10413   # Check if gcc -print-prog-name=ld gives a path.
10414   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10415 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10416   case $host in
10417   *-*-mingw*)
10418     # gcc leaves a trailing carriage return which upsets mingw
10419     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10420   *)
10421     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10422   esac
10423   case $ac_prog in
10424     # Accept absolute paths.
10425     [\\/]* | ?:[\\/]*)
10426       re_direlt='/[^/][^/]*/\.\./'
10427       # Canonicalize the pathname of ld
10428       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10429       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10430         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10431       done
10432       test -z "$LD" && LD="$ac_prog"
10433       ;;
10434   "")
10435     # If it fails, then pretend we aren't using GCC.
10436     ac_prog=ld
10437     ;;
10438   *)
10439     # If it is relative, then search for the first ld in PATH.
10440     with_gnu_ld=unknown
10441     ;;
10442   esac
10443 elif test "$with_gnu_ld" = yes; then
10444   echo "$as_me:$LINENO: checking for GNU ld" >&5
10445 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10446 else
10447   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10448 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10449 fi
10450 if test "${lt_cv_path_LD+set}" = set; then
10451   echo $ECHO_N "(cached) $ECHO_C" >&6
10452 else
10453   if test -z "$LD"; then
10454   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10455   for ac_dir in $PATH; do
10456     IFS="$lt_save_ifs"
10457     test -z "$ac_dir" && ac_dir=.
10458     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10459       lt_cv_path_LD="$ac_dir/$ac_prog"
10460       # Check to see if the program is GNU ld.  I'd rather use --version,
10461       # but apparently some variants of GNU ld only accept -v.
10462       # Break only if it was the GNU/non-GNU ld that we prefer.
10463       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10464       *GNU* | *'with BFD'*)
10465         test "$with_gnu_ld" != no && break
10466         ;;
10467       *)
10468         test "$with_gnu_ld" != yes && break
10469         ;;
10470       esac
10471     fi
10472   done
10473   IFS="$lt_save_ifs"
10474 else
10475   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10476 fi
10477 fi
10478
10479 LD="$lt_cv_path_LD"
10480 if test -n "$LD"; then
10481   echo "$as_me:$LINENO: result: $LD" >&5
10482 echo "${ECHO_T}$LD" >&6
10483 else
10484   echo "$as_me:$LINENO: result: no" >&5
10485 echo "${ECHO_T}no" >&6
10486 fi
10487 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10488 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10489    { (exit 1); exit 1; }; }
10490 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10491 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10492 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10493   echo $ECHO_N "(cached) $ECHO_C" >&6
10494 else
10495   # I'd rather use --version here, but apparently some GNU lds only accept -v.
10496 case `$LD -v 2>&1 </dev/null` in
10497 *GNU* | *'with BFD'*)
10498   lt_cv_prog_gnu_ld=yes
10499   ;;
10500 *)
10501   lt_cv_prog_gnu_ld=no
10502   ;;
10503 esac
10504 fi
10505 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10506 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10507 with_gnu_ld=$lt_cv_prog_gnu_ld
10508
10509
10510
10511   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10512   # archiving commands below assume that GNU ld is being used.
10513   if test "$with_gnu_ld" = yes; then
10514     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10515     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'
10516
10517     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10518     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10519
10520     # If archive_cmds runs LD, not CC, wlarc should be empty
10521     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10522     #     investigate it a little bit more. (MM)
10523     wlarc='${wl}'
10524
10525     # ancient GNU ld didn't support --whole-archive et. al.
10526     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10527         grep 'no-whole-archive' > /dev/null; then
10528       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10529     else
10530       whole_archive_flag_spec_CXX=
10531     fi
10532   else
10533     with_gnu_ld=no
10534     wlarc=
10535
10536     # A generic and very simple default shared library creation
10537     # command for GNU C++ for the case where it uses the native
10538     # linker, instead of GNU ld.  If possible, this setting should
10539     # overridden to take advantage of the native linker features on
10540     # the platform it is being used on.
10541     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10542   fi
10543
10544   # Commands to make compiler produce verbose output that lists
10545   # what "hidden" libraries, object files and flags are used when
10546   # linking a shared library.
10547   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10548
10549 else
10550   GXX=no
10551   with_gnu_ld=no
10552   wlarc=
10553 fi
10554
10555 # PORTME: fill in a description of your system's C++ link characteristics
10556 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10557 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10558 ld_shlibs_CXX=yes
10559 case $host_os in
10560   aix3*)
10561     # FIXME: insert proper C++ library support
10562     ld_shlibs_CXX=no
10563     ;;
10564   aix4* | aix5*)
10565     if test "$host_cpu" = ia64; then
10566       # On IA64, the linker does run time linking by default, so we don't
10567       # have to do anything special.
10568       aix_use_runtimelinking=no
10569       exp_sym_flag='-Bexport'
10570       no_entry_flag=""
10571     else
10572       aix_use_runtimelinking=no
10573
10574       # Test if we are trying to use run time linking or normal
10575       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10576       # need to do runtime linking.
10577       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10578         for ld_flag in $LDFLAGS; do
10579           case $ld_flag in
10580           *-brtl*)
10581             aix_use_runtimelinking=yes
10582             break
10583             ;;
10584           esac
10585         done
10586         ;;
10587       esac
10588
10589       exp_sym_flag='-bexport'
10590       no_entry_flag='-bnoentry'
10591     fi
10592
10593     # When large executables or shared objects are built, AIX ld can
10594     # have problems creating the table of contents.  If linking a library
10595     # or program results in "error TOC overflow" add -mminimal-toc to
10596     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10597     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10598
10599     archive_cmds_CXX=''
10600     hardcode_direct_CXX=yes
10601     hardcode_libdir_separator_CXX=':'
10602     link_all_deplibs_CXX=yes
10603
10604     if test "$GXX" = yes; then
10605       case $host_os in aix4.[012]|aix4.[012].*)
10606       # We only want to do this on AIX 4.2 and lower, the check
10607       # below for broken collect2 doesn't work under 4.3+
10608         collect2name=`${CC} -print-prog-name=collect2`
10609         if test -f "$collect2name" && \
10610            strings "$collect2name" | grep resolve_lib_name >/dev/null
10611         then
10612           # We have reworked collect2
10613           hardcode_direct_CXX=yes
10614         else
10615           # We have old collect2
10616           hardcode_direct_CXX=unsupported
10617           # It fails to find uninstalled libraries when the uninstalled
10618           # path is not listed in the libpath.  Setting hardcode_minus_L
10619           # to unsupported forces relinking
10620           hardcode_minus_L_CXX=yes
10621           hardcode_libdir_flag_spec_CXX='-L$libdir'
10622           hardcode_libdir_separator_CXX=
10623         fi
10624         ;;
10625       esac
10626       shared_flag='-shared'
10627       if test "$aix_use_runtimelinking" = yes; then
10628         shared_flag="$shared_flag "'${wl}-G'
10629       fi
10630     else
10631       # not using gcc
10632       if test "$host_cpu" = ia64; then
10633         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10634         # chokes on -Wl,-G. The following line is correct:
10635         shared_flag='-G'
10636       else
10637         if test "$aix_use_runtimelinking" = yes; then
10638           shared_flag='${wl}-G'
10639         else
10640           shared_flag='${wl}-bM:SRE'
10641         fi
10642       fi
10643     fi
10644
10645     # It seems that -bexpall does not export symbols beginning with
10646     # underscore (_), so it is better to generate a list of symbols to export.
10647     always_export_symbols_CXX=yes
10648     if test "$aix_use_runtimelinking" = yes; then
10649       # Warning - without using the other runtime loading flags (-brtl),
10650       # -berok will link without error, but may produce a broken library.
10651       allow_undefined_flag_CXX='-berok'
10652       # Determine the default libpath from the value encoded in an empty executable.
10653       cat >conftest.$ac_ext <<_ACEOF
10654 /* confdefs.h.  */
10655 _ACEOF
10656 cat confdefs.h >>conftest.$ac_ext
10657 cat >>conftest.$ac_ext <<_ACEOF
10658 /* end confdefs.h.  */
10659
10660 int
10661 main ()
10662 {
10663
10664   ;
10665   return 0;
10666 }
10667 _ACEOF
10668 rm -f conftest.$ac_objext conftest$ac_exeext
10669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10670   (eval $ac_link) 2>conftest.er1
10671   ac_status=$?
10672   grep -v '^ *+' conftest.er1 >conftest.err
10673   rm -f conftest.er1
10674   cat conftest.err >&5
10675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676   (exit $ac_status); } &&
10677          { ac_try='test -z "$ac_cxx_werror_flag"
10678                          || test ! -s conftest.err'
10679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10680   (eval $ac_try) 2>&5
10681   ac_status=$?
10682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10683   (exit $ac_status); }; } &&
10684          { ac_try='test -s conftest$ac_exeext'
10685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10686   (eval $ac_try) 2>&5
10687   ac_status=$?
10688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10689   (exit $ac_status); }; }; then
10690
10691 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10692 }'`
10693 # Check for a 64-bit object if we didn't find anything.
10694 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; }
10695 }'`; fi
10696 else
10697   echo "$as_me: failed program was:" >&5
10698 sed 's/^/| /' conftest.$ac_ext >&5
10699
10700 fi
10701 rm -f conftest.err conftest.$ac_objext \
10702       conftest$ac_exeext conftest.$ac_ext
10703 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10704
10705       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10706
10707       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"
10708      else
10709       if test "$host_cpu" = ia64; then
10710         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10711         allow_undefined_flag_CXX="-z nodefs"
10712         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"
10713       else
10714         # Determine the default libpath from the value encoded in an empty executable.
10715         cat >conftest.$ac_ext <<_ACEOF
10716 /* confdefs.h.  */
10717 _ACEOF
10718 cat confdefs.h >>conftest.$ac_ext
10719 cat >>conftest.$ac_ext <<_ACEOF
10720 /* end confdefs.h.  */
10721
10722 int
10723 main ()
10724 {
10725
10726   ;
10727   return 0;
10728 }
10729 _ACEOF
10730 rm -f conftest.$ac_objext conftest$ac_exeext
10731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10732   (eval $ac_link) 2>conftest.er1
10733   ac_status=$?
10734   grep -v '^ *+' conftest.er1 >conftest.err
10735   rm -f conftest.er1
10736   cat conftest.err >&5
10737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10738   (exit $ac_status); } &&
10739          { ac_try='test -z "$ac_cxx_werror_flag"
10740                          || test ! -s conftest.err'
10741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10742   (eval $ac_try) 2>&5
10743   ac_status=$?
10744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10745   (exit $ac_status); }; } &&
10746          { ac_try='test -s conftest$ac_exeext'
10747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10748   (eval $ac_try) 2>&5
10749   ac_status=$?
10750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10751   (exit $ac_status); }; }; then
10752
10753 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10754 }'`
10755 # Check for a 64-bit object if we didn't find anything.
10756 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; }
10757 }'`; fi
10758 else
10759   echo "$as_me: failed program was:" >&5
10760 sed 's/^/| /' conftest.$ac_ext >&5
10761
10762 fi
10763 rm -f conftest.err conftest.$ac_objext \
10764       conftest$ac_exeext conftest.$ac_ext
10765 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10766
10767         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10768         # Warning - without using the other run time loading flags,
10769         # -berok will link without error, but may produce a broken library.
10770         no_undefined_flag_CXX=' ${wl}-bernotok'
10771         allow_undefined_flag_CXX=' ${wl}-berok'
10772         # Exported symbols can be pulled into shared objects from archives
10773         whole_archive_flag_spec_CXX='$convenience'
10774         archive_cmds_need_lc_CXX=yes
10775         # This is similar to how AIX traditionally builds its shared libraries.
10776         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'
10777       fi
10778     fi
10779     ;;
10780
10781   beos*)
10782     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10783       allow_undefined_flag_CXX=unsupported
10784       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10785       # support --undefined.  This deserves some investigation.  FIXME
10786       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10787     else
10788       ld_shlibs_CXX=no
10789     fi
10790     ;;
10791
10792   chorus*)
10793     case $cc_basename in
10794       *)
10795         # FIXME: insert proper C++ library support
10796         ld_shlibs_CXX=no
10797         ;;
10798     esac
10799     ;;
10800
10801   cygwin* | mingw* | pw32*)
10802     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10803     # as there is no search path for DLLs.
10804     hardcode_libdir_flag_spec_CXX='-L$libdir'
10805     allow_undefined_flag_CXX=unsupported
10806     always_export_symbols_CXX=no
10807     enable_shared_with_static_runtimes_CXX=yes
10808
10809     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10810       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'
10811       # If the export-symbols file already is a .def file (1st line
10812       # is EXPORTS), use it as is; otherwise, prepend...
10813       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10814         cp $export_symbols $output_objdir/$soname.def;
10815       else
10816         echo EXPORTS > $output_objdir/$soname.def;
10817         cat $export_symbols >> $output_objdir/$soname.def;
10818       fi~
10819       $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'
10820     else
10821       ld_shlibs_CXX=no
10822     fi
10823   ;;
10824       darwin* | rhapsody*)
10825         case $host_os in
10826         rhapsody* | darwin1.[012])
10827          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10828          ;;
10829        *) # Darwin 1.3 on
10830          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10831            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10832          else
10833            case ${MACOSX_DEPLOYMENT_TARGET} in
10834              10.[012])
10835                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10836                ;;
10837              10.*)
10838                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10839                ;;
10840            esac
10841          fi
10842          ;;
10843         esac
10844       archive_cmds_need_lc_CXX=no
10845       hardcode_direct_CXX=no
10846       hardcode_automatic_CXX=yes
10847       hardcode_shlibpath_var_CXX=unsupported
10848       whole_archive_flag_spec_CXX=''
10849       link_all_deplibs_CXX=yes
10850
10851     if test "$GXX" = yes ; then
10852       lt_int_apple_cc_single_mod=no
10853       output_verbose_link_cmd='echo'
10854       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10855        lt_int_apple_cc_single_mod=yes
10856       fi
10857       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10858        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10859       else
10860           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'
10861         fi
10862         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10863         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10864           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10865             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}'
10866           else
10867             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}'
10868           fi
10869             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}'
10870       else
10871       case $cc_basename in
10872         xlc*)
10873          output_verbose_link_cmd='echo'
10874           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'
10875           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10876           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10877           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}'
10878           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}'
10879           ;;
10880        *)
10881          ld_shlibs_CXX=no
10882           ;;
10883       esac
10884       fi
10885         ;;
10886
10887   dgux*)
10888     case $cc_basename in
10889       ec++*)
10890         # FIXME: insert proper C++ library support
10891         ld_shlibs_CXX=no
10892         ;;
10893       ghcx*)
10894         # Green Hills C++ Compiler
10895         # FIXME: insert proper C++ library support
10896         ld_shlibs_CXX=no
10897         ;;
10898       *)
10899         # FIXME: insert proper C++ library support
10900         ld_shlibs_CXX=no
10901         ;;
10902     esac
10903     ;;
10904   freebsd[12]*)
10905     # C++ shared libraries reported to be fairly broken before switch to ELF
10906     ld_shlibs_CXX=no
10907     ;;
10908   freebsd-elf*)
10909     archive_cmds_need_lc_CXX=no
10910     ;;
10911   freebsd* | kfreebsd*-gnu | dragonfly*)
10912     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10913     # conventions
10914     ld_shlibs_CXX=yes
10915     ;;
10916   gnu*)
10917     ;;
10918   hpux9*)
10919     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10920     hardcode_libdir_separator_CXX=:
10921     export_dynamic_flag_spec_CXX='${wl}-E'
10922     hardcode_direct_CXX=yes
10923     hardcode_minus_L_CXX=yes # Not in the search PATH,
10924                                 # but as the default
10925                                 # location of the library.
10926
10927     case $cc_basename in
10928     CC*)
10929       # FIXME: insert proper C++ library support
10930       ld_shlibs_CXX=no
10931       ;;
10932     aCC*)
10933       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'
10934       # Commands to make compiler produce verbose output that lists
10935       # what "hidden" libraries, object files and flags are used when
10936       # linking a shared library.
10937       #
10938       # There doesn't appear to be a way to prevent this compiler from
10939       # explicitly linking system object files so we need to strip them
10940       # from the output so that they don't get included in the library
10941       # dependencies.
10942       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'
10943       ;;
10944     *)
10945       if test "$GXX" = yes; then
10946         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'
10947       else
10948         # FIXME: insert proper C++ library support
10949         ld_shlibs_CXX=no
10950       fi
10951       ;;
10952     esac
10953     ;;
10954   hpux10*|hpux11*)
10955     if test $with_gnu_ld = no; then
10956       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10957       hardcode_libdir_separator_CXX=:
10958
10959       case $host_cpu in
10960       hppa*64*|ia64*)
10961         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10962         ;;
10963       *)
10964         export_dynamic_flag_spec_CXX='${wl}-E'
10965         ;;
10966       esac
10967     fi
10968     case $host_cpu in
10969     hppa*64*|ia64*)
10970       hardcode_direct_CXX=no
10971       hardcode_shlibpath_var_CXX=no
10972       ;;
10973     *)
10974       hardcode_direct_CXX=yes
10975       hardcode_minus_L_CXX=yes # Not in the search PATH,
10976                                               # but as the default
10977                                               # location of the library.
10978       ;;
10979     esac
10980
10981     case $cc_basename in
10982       CC*)
10983         # FIXME: insert proper C++ library support
10984         ld_shlibs_CXX=no
10985         ;;
10986       aCC*)
10987         case $host_cpu in
10988         hppa*64*)
10989           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10990           ;;
10991         ia64*)
10992           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10993           ;;
10994         *)
10995           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10996           ;;
10997         esac
10998         # Commands to make compiler produce verbose output that lists
10999         # what "hidden" libraries, object files and flags are used when
11000         # linking a shared library.
11001         #
11002         # There doesn't appear to be a way to prevent this compiler from
11003         # explicitly linking system object files so we need to strip them
11004         # from the output so that they don't get included in the library
11005         # dependencies.
11006         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'
11007         ;;
11008       *)
11009         if test "$GXX" = yes; then
11010           if test $with_gnu_ld = no; then
11011             case $host_cpu in
11012             hppa*64*)
11013               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11014               ;;
11015             ia64*)
11016               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11017               ;;
11018             *)
11019               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'
11020               ;;
11021             esac
11022           fi
11023         else
11024           # FIXME: insert proper C++ library support
11025           ld_shlibs_CXX=no
11026         fi
11027         ;;
11028     esac
11029     ;;
11030   interix3*)
11031     hardcode_direct_CXX=no
11032     hardcode_shlibpath_var_CXX=no
11033     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11034     export_dynamic_flag_spec_CXX='${wl}-E'
11035     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11036     # Instead, shared libraries are loaded at an image base (0x10000000 by
11037     # default) and relocated if they conflict, which is a slow very memory
11038     # consuming and fragmenting process.  To avoid this, we pick a random,
11039     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11040     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11041     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'
11042     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'
11043     ;;
11044   irix5* | irix6*)
11045     case $cc_basename in
11046       CC*)
11047         # SGI C++
11048         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'
11049
11050         # Archives containing C++ object files must be created using
11051         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11052         # necessary to make sure instantiated templates are included
11053         # in the archive.
11054         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11055         ;;
11056       *)
11057         if test "$GXX" = yes; then
11058           if test "$with_gnu_ld" = no; then
11059             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'
11060           else
11061             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'
11062           fi
11063         fi
11064         link_all_deplibs_CXX=yes
11065         ;;
11066     esac
11067     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11068     hardcode_libdir_separator_CXX=:
11069     ;;
11070   linux*)
11071     case $cc_basename in
11072       KCC*)
11073         # Kuck and Associates, Inc. (KAI) C++ Compiler
11074
11075         # KCC will only create a shared library if the output file
11076         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11077         # to its proper name (with version) after linking.
11078         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'
11079         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'
11080         # Commands to make compiler produce verbose output that lists
11081         # what "hidden" libraries, object files and flags are used when
11082         # linking a shared library.
11083         #
11084         # There doesn't appear to be a way to prevent this compiler from
11085         # explicitly linking system object files so we need to strip them
11086         # from the output so that they don't get included in the library
11087         # dependencies.
11088         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'
11089
11090         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11091         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11092
11093         # Archives containing C++ object files must be created using
11094         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11095         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11096         ;;
11097       icpc*)
11098         # Intel C++
11099         with_gnu_ld=yes
11100         # version 8.0 and above of icpc choke on multiply defined symbols
11101         # if we add $predep_objects and $postdep_objects, however 7.1 and
11102         # earlier do not add the objects themselves.
11103         case `$CC -V 2>&1` in
11104         *"Version 7."*)
11105           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11106           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'
11107           ;;
11108         *)  # Version 8.0 or newer
11109           tmp_idyn=
11110           case $host_cpu in
11111             ia64*) tmp_idyn=' -i_dynamic';;
11112           esac
11113           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11114           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'
11115           ;;
11116         esac
11117         archive_cmds_need_lc_CXX=no
11118         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11119         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11120         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11121         ;;
11122       pgCC*)
11123         # Portland Group C++ compiler
11124         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11125         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'
11126
11127         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11128         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11129         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'
11130         ;;
11131       cxx*)
11132         # Compaq C++
11133         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11134         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'
11135
11136         runpath_var=LD_RUN_PATH
11137         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11138         hardcode_libdir_separator_CXX=:
11139
11140         # Commands to make compiler produce verbose output that lists
11141         # what "hidden" libraries, object files and flags are used when
11142         # linking a shared library.
11143         #
11144         # There doesn't appear to be a way to prevent this compiler from
11145         # explicitly linking system object files so we need to strip them
11146         # from the output so that they don't get included in the library
11147         # dependencies.
11148         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'
11149         ;;
11150     esac
11151     ;;
11152   lynxos*)
11153     # FIXME: insert proper C++ library support
11154     ld_shlibs_CXX=no
11155     ;;
11156   m88k*)
11157     # FIXME: insert proper C++ library support
11158     ld_shlibs_CXX=no
11159     ;;
11160   mvs*)
11161     case $cc_basename in
11162       cxx*)
11163         # FIXME: insert proper C++ library support
11164         ld_shlibs_CXX=no
11165         ;;
11166       *)
11167         # FIXME: insert proper C++ library support
11168         ld_shlibs_CXX=no
11169         ;;
11170     esac
11171     ;;
11172   netbsd*)
11173     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11174       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11175       wlarc=
11176       hardcode_libdir_flag_spec_CXX='-R$libdir'
11177       hardcode_direct_CXX=yes
11178       hardcode_shlibpath_var_CXX=no
11179     fi
11180     # Workaround some broken pre-1.5 toolchains
11181     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11182     ;;
11183   openbsd2*)
11184     # C++ shared libraries are fairly broken
11185     ld_shlibs_CXX=no
11186     ;;
11187   openbsd*)
11188     hardcode_direct_CXX=yes
11189     hardcode_shlibpath_var_CXX=no
11190     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11191     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11192     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11193       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11194       export_dynamic_flag_spec_CXX='${wl}-E'
11195       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11196     fi
11197     output_verbose_link_cmd='echo'
11198     ;;
11199   osf3*)
11200     case $cc_basename in
11201       KCC*)
11202         # Kuck and Associates, Inc. (KAI) C++ Compiler
11203
11204         # KCC will only create a shared library if the output file
11205         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11206         # to its proper name (with version) after linking.
11207         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'
11208
11209         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11210         hardcode_libdir_separator_CXX=:
11211
11212         # Archives containing C++ object files must be created using
11213         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11214         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11215
11216         ;;
11217       RCC*)
11218         # Rational C++ 2.4.1
11219         # FIXME: insert proper C++ library support
11220         ld_shlibs_CXX=no
11221         ;;
11222       cxx*)
11223         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11224         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'
11225
11226         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11227         hardcode_libdir_separator_CXX=:
11228
11229         # Commands to make compiler produce verbose output that lists
11230         # what "hidden" libraries, object files and flags are used when
11231         # linking a shared library.
11232         #
11233         # There doesn't appear to be a way to prevent this compiler from
11234         # explicitly linking system object files so we need to strip them
11235         # from the output so that they don't get included in the library
11236         # dependencies.
11237         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'
11238         ;;
11239       *)
11240         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11241           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11242           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'
11243
11244           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11245           hardcode_libdir_separator_CXX=:
11246
11247           # Commands to make compiler produce verbose output that lists
11248           # what "hidden" libraries, object files and flags are used when
11249           # linking a shared library.
11250           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11251
11252         else
11253           # FIXME: insert proper C++ library support
11254           ld_shlibs_CXX=no
11255         fi
11256         ;;
11257     esac
11258     ;;
11259   osf4* | osf5*)
11260     case $cc_basename in
11261       KCC*)
11262         # Kuck and Associates, Inc. (KAI) C++ Compiler
11263
11264         # KCC will only create a shared library if the output file
11265         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11266         # to its proper name (with version) after linking.
11267         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'
11268
11269         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11270         hardcode_libdir_separator_CXX=:
11271
11272         # Archives containing C++ object files must be created using
11273         # the KAI C++ compiler.
11274         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11275         ;;
11276       RCC*)
11277         # Rational C++ 2.4.1
11278         # FIXME: insert proper C++ library support
11279         ld_shlibs_CXX=no
11280         ;;
11281       cxx*)
11282         allow_undefined_flag_CXX=' -expect_unresolved \*'
11283         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'
11284         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11285           echo "-hidden">> $lib.exp~
11286           $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~
11287           $rm $lib.exp'
11288
11289         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11290         hardcode_libdir_separator_CXX=:
11291
11292         # Commands to make compiler produce verbose output that lists
11293         # what "hidden" libraries, object files and flags are used when
11294         # linking a shared library.
11295         #
11296         # There doesn't appear to be a way to prevent this compiler from
11297         # explicitly linking system object files so we need to strip them
11298         # from the output so that they don't get included in the library
11299         # dependencies.
11300         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'
11301         ;;
11302       *)
11303         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11304           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11305          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'
11306
11307           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11308           hardcode_libdir_separator_CXX=:
11309
11310           # Commands to make compiler produce verbose output that lists
11311           # what "hidden" libraries, object files and flags are used when
11312           # linking a shared library.
11313           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11314
11315         else
11316           # FIXME: insert proper C++ library support
11317           ld_shlibs_CXX=no
11318         fi
11319         ;;
11320     esac
11321     ;;
11322   psos*)
11323     # FIXME: insert proper C++ library support
11324     ld_shlibs_CXX=no
11325     ;;
11326   sunos4*)
11327     case $cc_basename in
11328       CC*)
11329         # Sun C++ 4.x
11330         # FIXME: insert proper C++ library support
11331         ld_shlibs_CXX=no
11332         ;;
11333       lcc*)
11334         # Lucid
11335         # FIXME: insert proper C++ library support
11336         ld_shlibs_CXX=no
11337         ;;
11338       *)
11339         # FIXME: insert proper C++ library support
11340         ld_shlibs_CXX=no
11341         ;;
11342     esac
11343     ;;
11344   solaris*)
11345     case $cc_basename in
11346       CC*)
11347         # Sun C++ 4.2, 5.x and Centerline C++
11348         archive_cmds_need_lc_CXX=yes
11349         no_undefined_flag_CXX=' -zdefs'
11350         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11351         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11352         $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'
11353
11354         hardcode_libdir_flag_spec_CXX='-R$libdir'
11355         hardcode_shlibpath_var_CXX=no
11356         case $host_os in
11357           solaris2.[0-5] | solaris2.[0-5].*) ;;
11358           *)
11359             # The C++ compiler is used as linker so we must use $wl
11360             # flag to pass the commands to the underlying system
11361             # linker. We must also pass each convience library through
11362             # to the system linker between allextract/defaultextract.
11363             # The C++ compiler will combine linker options so we
11364             # cannot just pass the convience library names through
11365             # without $wl.
11366             # Supported since Solaris 2.6 (maybe 2.5.1?)
11367             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'
11368             ;;
11369         esac
11370         link_all_deplibs_CXX=yes
11371
11372         output_verbose_link_cmd='echo'
11373
11374         # Archives containing C++ object files must be created using
11375         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11376         # necessary to make sure instantiated templates are included
11377         # in the archive.
11378         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11379         ;;
11380       gcx*)
11381         # Green Hills C++ Compiler
11382         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11383
11384         # The C++ compiler must be used to create the archive.
11385         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11386         ;;
11387       *)
11388         # GNU C++ compiler with Solaris linker
11389         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11390           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11391           if $CC --version | grep -v '^2\.7' > /dev/null; then
11392             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11393             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11394                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11395
11396             # Commands to make compiler produce verbose output that lists
11397             # what "hidden" libraries, object files and flags are used when
11398             # linking a shared library.
11399             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11400           else
11401             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11402             # platform.
11403             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11404             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11405                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11406
11407             # Commands to make compiler produce verbose output that lists
11408             # what "hidden" libraries, object files and flags are used when
11409             # linking a shared library.
11410             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11411           fi
11412
11413           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11414         fi
11415         ;;
11416     esac
11417     ;;
11418   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11419     no_undefined_flag_CXX='${wl}-z,text'
11420     archive_cmds_need_lc_CXX=no
11421     hardcode_shlibpath_var_CXX=no
11422     runpath_var='LD_RUN_PATH'
11423
11424     case $cc_basename in
11425       CC*)
11426         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11427         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11428         ;;
11429       *)
11430         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11431         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11432         ;;
11433     esac
11434     ;;
11435   sysv5* | sco3.2v5* | sco5v6*)
11436     # Note: We can NOT use -z defs as we might desire, because we do not
11437     # link with -lc, and that would cause any symbols used from libc to
11438     # always be unresolved, which means just about no library would
11439     # ever link correctly.  If we're not using GNU ld we use -z text
11440     # though, which does catch some bad symbols but isn't as heavy-handed
11441     # as -z defs.
11442     # For security reasons, it is highly recommended that you always
11443     # use absolute paths for naming shared libraries, and exclude the
11444     # DT_RUNPATH tag from executables and libraries.  But doing so
11445     # requires that you compile everything twice, which is a pain.
11446     # So that behaviour is only enabled if SCOABSPATH is set to a
11447     # non-empty value in the environment.  Most likely only useful for
11448     # creating official distributions of packages.
11449     # This is a hack until libtool officially supports absolute path
11450     # names for shared libraries.
11451     no_undefined_flag_CXX='${wl}-z,text'
11452     allow_undefined_flag_CXX='${wl}-z,nodefs'
11453     archive_cmds_need_lc_CXX=no
11454     hardcode_shlibpath_var_CXX=no
11455     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11456     hardcode_libdir_separator_CXX=':'
11457     link_all_deplibs_CXX=yes
11458     export_dynamic_flag_spec_CXX='${wl}-Bexport'
11459     runpath_var='LD_RUN_PATH'
11460
11461     case $cc_basename in
11462       CC*)
11463         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11464         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11465         ;;
11466       *)
11467         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11468         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11469         ;;
11470     esac
11471     ;;
11472   tandem*)
11473     case $cc_basename in
11474       NCC*)
11475         # NonStop-UX NCC 3.20
11476         # FIXME: insert proper C++ library support
11477         ld_shlibs_CXX=no
11478         ;;
11479       *)
11480         # FIXME: insert proper C++ library support
11481         ld_shlibs_CXX=no
11482         ;;
11483     esac
11484     ;;
11485   vxworks*)
11486     # FIXME: insert proper C++ library support
11487     ld_shlibs_CXX=no
11488     ;;
11489   *)
11490     # FIXME: insert proper C++ library support
11491     ld_shlibs_CXX=no
11492     ;;
11493 esac
11494 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11495 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11496 test "$ld_shlibs_CXX" = no && can_build_shared=no
11497
11498 GCC_CXX="$GXX"
11499 LD_CXX="$LD"
11500
11501
11502 cat > conftest.$ac_ext <<EOF
11503 class Foo
11504 {
11505 public:
11506   Foo (void) { a = 0; }
11507 private:
11508   int a;
11509 };
11510 EOF
11511
11512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11513   (eval $ac_compile) 2>&5
11514   ac_status=$?
11515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516   (exit $ac_status); }; then
11517   # Parse the compiler output and extract the necessary
11518   # objects, libraries and library flags.
11519
11520   # Sentinel used to keep track of whether or not we are before
11521   # the conftest object file.
11522   pre_test_object_deps_done=no
11523
11524   # The `*' in the case matches for architectures that use `case' in
11525   # $output_verbose_cmd can trigger glob expansion during the loop
11526   # eval without this substitution.
11527   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11528
11529   for p in `eval $output_verbose_link_cmd`; do
11530     case $p in
11531
11532     -L* | -R* | -l*)
11533        # Some compilers place space between "-{L,R}" and the path.
11534        # Remove the space.
11535        if test $p = "-L" \
11536           || test $p = "-R"; then
11537          prev=$p
11538          continue
11539        else
11540          prev=
11541        fi
11542
11543        if test "$pre_test_object_deps_done" = no; then
11544          case $p in
11545          -L* | -R*)
11546            # Internal compiler library paths should come after those
11547            # provided the user.  The postdeps already come after the
11548            # user supplied libs so there is no need to process them.
11549            if test -z "$compiler_lib_search_path_CXX"; then
11550              compiler_lib_search_path_CXX="${prev}${p}"
11551            else
11552              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11553            fi
11554            ;;
11555          # The "-l" case would never come before the object being
11556          # linked, so don't bother handling this case.
11557          esac
11558        else
11559          if test -z "$postdeps_CXX"; then
11560            postdeps_CXX="${prev}${p}"
11561          else
11562            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11563          fi
11564        fi
11565        ;;
11566
11567     *.$objext)
11568        # This assumes that the test object file only shows up
11569        # once in the compiler output.
11570        if test "$p" = "conftest.$objext"; then
11571          pre_test_object_deps_done=yes
11572          continue
11573        fi
11574
11575        if test "$pre_test_object_deps_done" = no; then
11576          if test -z "$predep_objects_CXX"; then
11577            predep_objects_CXX="$p"
11578          else
11579            predep_objects_CXX="$predep_objects_CXX $p"
11580          fi
11581        else
11582          if test -z "$postdep_objects_CXX"; then
11583            postdep_objects_CXX="$p"
11584          else
11585            postdep_objects_CXX="$postdep_objects_CXX $p"
11586          fi
11587        fi
11588        ;;
11589
11590     *) ;; # Ignore the rest.
11591
11592     esac
11593   done
11594
11595   # Clean up.
11596   rm -f a.out a.exe
11597 else
11598   echo "libtool.m4: error: problem compiling CXX test program"
11599 fi
11600
11601 $rm -f confest.$objext
11602
11603 # PORTME: override above test on systems where it is broken
11604 case $host_os in
11605 interix3*)
11606   # Interix 3.5 installs completely hosed .la files for C++, so rather than
11607   # hack all around it, let's just trust "g++" to DTRT.
11608   predep_objects_CXX=
11609   postdep_objects_CXX=
11610   postdeps_CXX=
11611   ;;
11612
11613 solaris*)
11614   case $cc_basename in
11615   CC*)
11616     # Adding this requires a known-good setup of shared libraries for
11617     # Sun compiler versions before 5.6, else PIC objects from an old
11618     # archive will be linked into the output, leading to subtle bugs.
11619     postdeps_CXX='-lCstd -lCrun'
11620     ;;
11621   esac
11622   ;;
11623 esac
11624
11625
11626 case " $postdeps_CXX " in
11627 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11628 esac
11629
11630 lt_prog_compiler_wl_CXX=
11631 lt_prog_compiler_pic_CXX=
11632 lt_prog_compiler_static_CXX=
11633
11634 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11635 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11636
11637   # C++ specific cases for pic, static, wl, etc.
11638   if test "$GXX" = yes; then
11639     lt_prog_compiler_wl_CXX='-Wl,'
11640     lt_prog_compiler_static_CXX='-static'
11641
11642     case $host_os in
11643     aix*)
11644       # All AIX code is PIC.
11645       if test "$host_cpu" = ia64; then
11646         # AIX 5 now supports IA64 processor
11647         lt_prog_compiler_static_CXX='-Bstatic'
11648       fi
11649       ;;
11650     amigaos*)
11651       # FIXME: we need at least 68020 code to build shared libraries, but
11652       # adding the `-m68020' flag to GCC prevents building anything better,
11653       # like `-m68040'.
11654       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11655       ;;
11656     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11657       # PIC is the default for these OSes.
11658       ;;
11659     mingw* | os2* | pw32*)
11660       # This hack is so that the source file can tell whether it is being
11661       # built for inclusion in a dll (and should export symbols for example).
11662       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11663       ;;
11664     darwin* | rhapsody*)
11665       # PIC is the default on this platform
11666       # Common symbols not allowed in MH_DYLIB files
11667       lt_prog_compiler_pic_CXX='-fno-common'
11668       ;;
11669     *djgpp*)
11670       # DJGPP does not support shared libraries at all
11671       lt_prog_compiler_pic_CXX=
11672       ;;
11673     interix3*)
11674       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11675       # Instead, we relocate shared libraries at runtime.
11676       ;;
11677     sysv4*MP*)
11678       if test -d /usr/nec; then
11679         lt_prog_compiler_pic_CXX=-Kconform_pic
11680       fi
11681       ;;
11682     hpux*)
11683       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11684       # not for PA HP-UX.
11685       case $host_cpu in
11686       hppa*64*|ia64*)
11687         ;;
11688       *)
11689         lt_prog_compiler_pic_CXX='-fPIC'
11690         ;;
11691       esac
11692       ;;
11693     *)
11694       lt_prog_compiler_pic_CXX='-fPIC'
11695       ;;
11696     esac
11697   else
11698     case $host_os in
11699       aix4* | aix5*)
11700         # All AIX code is PIC.
11701         if test "$host_cpu" = ia64; then
11702           # AIX 5 now supports IA64 processor
11703           lt_prog_compiler_static_CXX='-Bstatic'
11704         else
11705           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11706         fi
11707         ;;
11708       chorus*)
11709         case $cc_basename in
11710         cxch68*)
11711           # Green Hills C++ Compiler
11712           # _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"
11713           ;;
11714         esac
11715         ;;
11716        darwin*)
11717          # PIC is the default on this platform
11718          # Common symbols not allowed in MH_DYLIB files
11719          case $cc_basename in
11720            xlc*)
11721            lt_prog_compiler_pic_CXX='-qnocommon'
11722            lt_prog_compiler_wl_CXX='-Wl,'
11723            ;;
11724          esac
11725        ;;
11726       dgux*)
11727         case $cc_basename in
11728           ec++*)
11729             lt_prog_compiler_pic_CXX='-KPIC'
11730             ;;
11731           ghcx*)
11732             # Green Hills C++ Compiler
11733             lt_prog_compiler_pic_CXX='-pic'
11734             ;;
11735           *)
11736             ;;
11737         esac
11738         ;;
11739       freebsd* | kfreebsd*-gnu | dragonfly*)
11740         # FreeBSD uses GNU C++
11741         ;;
11742       hpux9* | hpux10* | hpux11*)
11743         case $cc_basename in
11744           CC*)
11745             lt_prog_compiler_wl_CXX='-Wl,'
11746             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11747             if test "$host_cpu" != ia64; then
11748               lt_prog_compiler_pic_CXX='+Z'
11749             fi
11750             ;;
11751           aCC*)
11752             lt_prog_compiler_wl_CXX='-Wl,'
11753             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11754             case $host_cpu in
11755             hppa*64*|ia64*)
11756               # +Z the default
11757               ;;
11758             *)
11759               lt_prog_compiler_pic_CXX='+Z'
11760               ;;
11761             esac
11762             ;;
11763           *)
11764             ;;
11765         esac
11766         ;;
11767       interix*)
11768         # This is c89, which is MS Visual C++ (no shared libs)
11769         # Anyone wants to do a port?
11770         ;;
11771       irix5* | irix6* | nonstopux*)
11772         case $cc_basename in
11773           CC*)
11774             lt_prog_compiler_wl_CXX='-Wl,'
11775             lt_prog_compiler_static_CXX='-non_shared'
11776             # CC pic flag -KPIC is the default.
11777             ;;
11778           *)
11779             ;;
11780         esac
11781         ;;
11782       linux*)
11783         case $cc_basename in
11784           KCC*)
11785             # KAI C++ Compiler
11786             lt_prog_compiler_wl_CXX='--backend -Wl,'
11787             lt_prog_compiler_pic_CXX='-fPIC'
11788             ;;
11789           icpc* | ecpc*)
11790             # Intel C++
11791             lt_prog_compiler_wl_CXX='-Wl,'
11792             lt_prog_compiler_pic_CXX='-KPIC'
11793             lt_prog_compiler_static_CXX='-static'
11794             ;;
11795           pgCC*)
11796             # Portland Group C++ compiler.
11797             lt_prog_compiler_wl_CXX='-Wl,'
11798             lt_prog_compiler_pic_CXX='-fpic'
11799             lt_prog_compiler_static_CXX='-Bstatic'
11800             ;;
11801           cxx*)
11802             # Compaq C++
11803             # Make sure the PIC flag is empty.  It appears that all Alpha
11804             # Linux and Compaq Tru64 Unix objects are PIC.
11805             lt_prog_compiler_pic_CXX=
11806             lt_prog_compiler_static_CXX='-non_shared'
11807             ;;
11808           *)
11809             ;;
11810         esac
11811         ;;
11812       lynxos*)
11813         ;;
11814       m88k*)
11815         ;;
11816       mvs*)
11817         case $cc_basename in
11818           cxx*)
11819             lt_prog_compiler_pic_CXX='-W c,exportall'
11820             ;;
11821           *)
11822             ;;
11823         esac
11824         ;;
11825       netbsd*)
11826         ;;
11827       osf3* | osf4* | osf5*)
11828         case $cc_basename in
11829           KCC*)
11830             lt_prog_compiler_wl_CXX='--backend -Wl,'
11831             ;;
11832           RCC*)
11833             # Rational C++ 2.4.1
11834             lt_prog_compiler_pic_CXX='-pic'
11835             ;;
11836           cxx*)
11837             # Digital/Compaq C++
11838             lt_prog_compiler_wl_CXX='-Wl,'
11839             # Make sure the PIC flag is empty.  It appears that all Alpha
11840             # Linux and Compaq Tru64 Unix objects are PIC.
11841             lt_prog_compiler_pic_CXX=
11842             lt_prog_compiler_static_CXX='-non_shared'
11843             ;;
11844           *)
11845             ;;
11846         esac
11847         ;;
11848       psos*)
11849         ;;
11850       solaris*)
11851         case $cc_basename in
11852           CC*)
11853             # Sun C++ 4.2, 5.x and Centerline C++
11854             lt_prog_compiler_pic_CXX='-KPIC'
11855             lt_prog_compiler_static_CXX='-Bstatic'
11856             lt_prog_compiler_wl_CXX='-Qoption ld '
11857             ;;
11858           gcx*)
11859             # Green Hills C++ Compiler
11860             lt_prog_compiler_pic_CXX='-PIC'
11861             ;;
11862           *)
11863             ;;
11864         esac
11865         ;;
11866       sunos4*)
11867         case $cc_basename in
11868           CC*)
11869             # Sun C++ 4.x
11870             lt_prog_compiler_pic_CXX='-pic'
11871             lt_prog_compiler_static_CXX='-Bstatic'
11872             ;;
11873           lcc*)
11874             # Lucid
11875             lt_prog_compiler_pic_CXX='-pic'
11876             ;;
11877           *)
11878             ;;
11879         esac
11880         ;;
11881       tandem*)
11882         case $cc_basename in
11883           NCC*)
11884             # NonStop-UX NCC 3.20
11885             lt_prog_compiler_pic_CXX='-KPIC'
11886             ;;
11887           *)
11888             ;;
11889         esac
11890         ;;
11891       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11892         case $cc_basename in
11893           CC*)
11894             lt_prog_compiler_wl_CXX='-Wl,'
11895             lt_prog_compiler_pic_CXX='-KPIC'
11896             lt_prog_compiler_static_CXX='-Bstatic'
11897             ;;
11898         esac
11899         ;;
11900       vxworks*)
11901         ;;
11902       *)
11903         lt_prog_compiler_can_build_shared_CXX=no
11904         ;;
11905     esac
11906   fi
11907
11908 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11909 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11910
11911 #
11912 # Check to make sure the PIC flag actually works.
11913 #
11914 if test -n "$lt_prog_compiler_pic_CXX"; then
11915
11916 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11917 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11918 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11919   echo $ECHO_N "(cached) $ECHO_C" >&6
11920 else
11921   lt_prog_compiler_pic_works_CXX=no
11922   ac_outfile=conftest.$ac_objext
11923    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11924    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11925    # Insert the option either (1) after the last *FLAGS variable, or
11926    # (2) before a word containing "conftest.", or (3) at the end.
11927    # Note that $ac_compile itself does not contain backslashes and begins
11928    # with a dollar sign (not a hyphen), so the echo should work correctly.
11929    # The option is referenced via a variable to avoid confusing sed.
11930    lt_compile=`echo "$ac_compile" | $SED \
11931    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11932    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11933    -e 's:$: $lt_compiler_flag:'`
11934    (eval echo "\"\$as_me:11934: $lt_compile\"" >&5)
11935    (eval "$lt_compile" 2>conftest.err)
11936    ac_status=$?
11937    cat conftest.err >&5
11938    echo "$as_me:11938: \$? = $ac_status" >&5
11939    if (exit $ac_status) && test -s "$ac_outfile"; then
11940      # The compiler can only warn and ignore the option if not recognized
11941      # So say no if there are warnings other than the usual output.
11942      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11943      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11944      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11945        lt_prog_compiler_pic_works_CXX=yes
11946      fi
11947    fi
11948    $rm conftest*
11949
11950 fi
11951 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11952 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11953
11954 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11955     case $lt_prog_compiler_pic_CXX in
11956      "" | " "*) ;;
11957      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11958      esac
11959 else
11960     lt_prog_compiler_pic_CXX=
11961      lt_prog_compiler_can_build_shared_CXX=no
11962 fi
11963
11964 fi
11965 case $host_os in
11966   # For platforms which do not support PIC, -DPIC is meaningless:
11967   *djgpp*)
11968     lt_prog_compiler_pic_CXX=
11969     ;;
11970   *)
11971     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11972     ;;
11973 esac
11974
11975 #
11976 # Check to make sure the static flag actually works.
11977 #
11978 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11979 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11980 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11981 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11982   echo $ECHO_N "(cached) $ECHO_C" >&6
11983 else
11984   lt_prog_compiler_static_works_CXX=no
11985    save_LDFLAGS="$LDFLAGS"
11986    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11987    printf "$lt_simple_link_test_code" > conftest.$ac_ext
11988    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11989      # The linker can only warn and ignore the option if not recognized
11990      # So say no if there are warnings
11991      if test -s conftest.err; then
11992        # Append any errors to the config.log.
11993        cat conftest.err 1>&5
11994        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11995        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11996        if diff conftest.exp conftest.er2 >/dev/null; then
11997          lt_prog_compiler_static_works_CXX=yes
11998        fi
11999      else
12000        lt_prog_compiler_static_works_CXX=yes
12001      fi
12002    fi
12003    $rm conftest*
12004    LDFLAGS="$save_LDFLAGS"
12005
12006 fi
12007 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12008 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
12009
12010 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12011     :
12012 else
12013     lt_prog_compiler_static_CXX=
12014 fi
12015
12016
12017 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12018 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12019 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12020   echo $ECHO_N "(cached) $ECHO_C" >&6
12021 else
12022   lt_cv_prog_compiler_c_o_CXX=no
12023    $rm -r conftest 2>/dev/null
12024    mkdir conftest
12025    cd conftest
12026    mkdir out
12027    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12028
12029    lt_compiler_flag="-o out/conftest2.$ac_objext"
12030    # Insert the option either (1) after the last *FLAGS variable, or
12031    # (2) before a word containing "conftest.", or (3) at the end.
12032    # Note that $ac_compile itself does not contain backslashes and begins
12033    # with a dollar sign (not a hyphen), so the echo should work correctly.
12034    lt_compile=`echo "$ac_compile" | $SED \
12035    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12036    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12037    -e 's:$: $lt_compiler_flag:'`
12038    (eval echo "\"\$as_me:12038: $lt_compile\"" >&5)
12039    (eval "$lt_compile" 2>out/conftest.err)
12040    ac_status=$?
12041    cat out/conftest.err >&5
12042    echo "$as_me:12042: \$? = $ac_status" >&5
12043    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12044    then
12045      # The compiler can only warn and ignore the option if not recognized
12046      # So say no if there are warnings
12047      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12048      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12049      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12050        lt_cv_prog_compiler_c_o_CXX=yes
12051      fi
12052    fi
12053    chmod u+w . 2>&5
12054    $rm conftest*
12055    # SGI C++ compiler will create directory out/ii_files/ for
12056    # template instantiation
12057    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12058    $rm out/* && rmdir out
12059    cd ..
12060    rmdir conftest
12061    $rm conftest*
12062
12063 fi
12064 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12065 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
12066
12067
12068 hard_links="nottested"
12069 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12070   # do not overwrite the value of need_locks provided by the user
12071   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12072 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12073   hard_links=yes
12074   $rm conftest*
12075   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12076   touch conftest.a
12077   ln conftest.a conftest.b 2>&5 || hard_links=no
12078   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12079   echo "$as_me:$LINENO: result: $hard_links" >&5
12080 echo "${ECHO_T}$hard_links" >&6
12081   if test "$hard_links" = no; then
12082     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12083 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12084     need_locks=warn
12085   fi
12086 else
12087   need_locks=no
12088 fi
12089
12090 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12091 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12092
12093   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12094   case $host_os in
12095   aix4* | aix5*)
12096     # If we're using GNU nm, then we don't want the "-C" option.
12097     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12098     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12099       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'
12100     else
12101       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'
12102     fi
12103     ;;
12104   pw32*)
12105     export_symbols_cmds_CXX="$ltdll_cmds"
12106   ;;
12107   cygwin* | mingw*)
12108     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'
12109   ;;
12110   *)
12111     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12112   ;;
12113   esac
12114
12115 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12116 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12117 test "$ld_shlibs_CXX" = no && can_build_shared=no
12118
12119 #
12120 # Do we need to explicitly link libc?
12121 #
12122 case "x$archive_cmds_need_lc_CXX" in
12123 x|xyes)
12124   # Assume -lc should be added
12125   archive_cmds_need_lc_CXX=yes
12126
12127   if test "$enable_shared" = yes && test "$GCC" = yes; then
12128     case $archive_cmds_CXX in
12129     *'~'*)
12130       # FIXME: we may have to deal with multi-command sequences.
12131       ;;
12132     '$CC '*)
12133       # Test whether the compiler implicitly links with -lc since on some
12134       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12135       # to ld, don't add -lc before -lgcc.
12136       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12137 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12138       $rm conftest*
12139       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12140
12141       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12142   (eval $ac_compile) 2>&5
12143   ac_status=$?
12144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145   (exit $ac_status); } 2>conftest.err; then
12146         soname=conftest
12147         lib=conftest
12148         libobjs=conftest.$ac_objext
12149         deplibs=
12150         wl=$lt_prog_compiler_wl_CXX
12151         pic_flag=$lt_prog_compiler_pic_CXX
12152         compiler_flags=-v
12153         linker_flags=-v
12154         verstring=
12155         output_objdir=.
12156         libname=conftest
12157         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12158         allow_undefined_flag_CXX=
12159         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12160   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12161   ac_status=$?
12162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12163   (exit $ac_status); }
12164         then
12165           archive_cmds_need_lc_CXX=no
12166         else
12167           archive_cmds_need_lc_CXX=yes
12168         fi
12169         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12170       else
12171         cat conftest.err 1>&5
12172       fi
12173       $rm conftest*
12174       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12175 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12176       ;;
12177     esac
12178   fi
12179   ;;
12180 esac
12181
12182 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12183 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12184 library_names_spec=
12185 libname_spec='lib$name'
12186 soname_spec=
12187 shrext_cmds=".so"
12188 postinstall_cmds=
12189 postuninstall_cmds=
12190 finish_cmds=
12191 finish_eval=
12192 shlibpath_var=
12193 shlibpath_overrides_runpath=unknown
12194 version_type=none
12195 dynamic_linker="$host_os ld.so"
12196 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12197 if test "$GCC" = yes; then
12198   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12199   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12200     # if the path contains ";" then we assume it to be the separator
12201     # otherwise default to the standard path separator (i.e. ":") - it is
12202     # assumed that no part of a normal pathname contains ";" but that should
12203     # okay in the real world where ";" in dirpaths is itself problematic.
12204     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12205   else
12206     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12207   fi
12208 else
12209   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12210 fi
12211 need_lib_prefix=unknown
12212 hardcode_into_libs=no
12213
12214 # when you set need_version to no, make sure it does not cause -set_version
12215 # flags to be left without arguments
12216 need_version=unknown
12217
12218 case $host_os in
12219 aix3*)
12220   version_type=linux
12221   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12222   shlibpath_var=LIBPATH
12223
12224   # AIX 3 has no versioning support, so we append a major version to the name.
12225   soname_spec='${libname}${release}${shared_ext}$major'
12226   ;;
12227
12228 aix4* | aix5*)
12229   version_type=linux
12230   need_lib_prefix=no
12231   need_version=no
12232   hardcode_into_libs=yes
12233   if test "$host_cpu" = ia64; then
12234     # AIX 5 supports IA64
12235     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12236     shlibpath_var=LD_LIBRARY_PATH
12237   else
12238     # With GCC up to 2.95.x, collect2 would create an import file
12239     # for dependence libraries.  The import file would start with
12240     # the line `#! .'.  This would cause the generated library to
12241     # depend on `.', always an invalid library.  This was fixed in
12242     # development snapshots of GCC prior to 3.0.
12243     case $host_os in
12244       aix4 | aix4.[01] | aix4.[01].*)
12245       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12246            echo ' yes '
12247            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12248         :
12249       else
12250         can_build_shared=no
12251       fi
12252       ;;
12253     esac
12254     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12255     # soname into executable. Probably we can add versioning support to
12256     # collect2, so additional links can be useful in future.
12257     if test "$aix_use_runtimelinking" = yes; then
12258       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12259       # instead of lib<name>.a to let people know that these are not
12260       # typical AIX shared libraries.
12261       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12262     else
12263       # We preserve .a as extension for shared libraries through AIX4.2
12264       # and later when we are not doing run time linking.
12265       library_names_spec='${libname}${release}.a $libname.a'
12266       soname_spec='${libname}${release}${shared_ext}$major'
12267     fi
12268     shlibpath_var=LIBPATH
12269   fi
12270   ;;
12271
12272 amigaos*)
12273   library_names_spec='$libname.ixlibrary $libname.a'
12274   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12275   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'
12276   ;;
12277
12278 beos*)
12279   library_names_spec='${libname}${shared_ext}'
12280   dynamic_linker="$host_os ld.so"
12281   shlibpath_var=LIBRARY_PATH
12282   ;;
12283
12284 bsdi[45]*)
12285   version_type=linux
12286   need_version=no
12287   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12288   soname_spec='${libname}${release}${shared_ext}$major'
12289   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12290   shlibpath_var=LD_LIBRARY_PATH
12291   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12292   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12293   # the default ld.so.conf also contains /usr/contrib/lib and
12294   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12295   # libtool to hard-code these into programs
12296   ;;
12297
12298 cygwin* | mingw* | pw32*)
12299   version_type=windows
12300   shrext_cmds=".dll"
12301   need_version=no
12302   need_lib_prefix=no
12303
12304   case $GCC,$host_os in
12305   yes,cygwin* | yes,mingw* | yes,pw32*)
12306     library_names_spec='$libname.dll.a'
12307     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12308     postinstall_cmds='base_file=`basename \${file}`~
12309       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12310       dldir=$destdir/`dirname \$dlpath`~
12311       test -d \$dldir || mkdir -p \$dldir~
12312       $install_prog $dir/$dlname \$dldir/$dlname~
12313       chmod a+x \$dldir/$dlname'
12314     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12315       dlpath=$dir/\$dldll~
12316        $rm \$dlpath'
12317     shlibpath_overrides_runpath=yes
12318
12319     case $host_os in
12320     cygwin*)
12321       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12322       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12323       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12324       ;;
12325     mingw*)
12326       # MinGW DLLs use traditional 'lib' prefix
12327       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12328       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12329       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12330         # It is most probably a Windows format PATH printed by
12331         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12332         # path with ; separators, and with drive letters. We can handle the
12333         # drive letters (cygwin fileutils understands them), so leave them,
12334         # especially as we might pass files found there to a mingw objdump,
12335         # which wouldn't understand a cygwinified path. Ahh.
12336         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12337       else
12338         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12339       fi
12340       ;;
12341     pw32*)
12342       # pw32 DLLs use 'pw' prefix rather than 'lib'
12343       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12344       ;;
12345     esac
12346     ;;
12347
12348   *)
12349     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12350     ;;
12351   esac
12352   dynamic_linker='Win32 ld.exe'
12353   # FIXME: first we should search . and the directory the executable is in
12354   shlibpath_var=PATH
12355   ;;
12356
12357 darwin* | rhapsody*)
12358   dynamic_linker="$host_os dyld"
12359   version_type=darwin
12360   need_lib_prefix=no
12361   need_version=no
12362   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12363   soname_spec='${libname}${release}${major}$shared_ext'
12364   shlibpath_overrides_runpath=yes
12365   shlibpath_var=DYLD_LIBRARY_PATH
12366   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12367   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12368   if test "$GCC" = yes; then
12369     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"`
12370   else
12371     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12372   fi
12373   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12374   ;;
12375
12376 dgux*)
12377   version_type=linux
12378   need_lib_prefix=no
12379   need_version=no
12380   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12381   soname_spec='${libname}${release}${shared_ext}$major'
12382   shlibpath_var=LD_LIBRARY_PATH
12383   ;;
12384
12385 freebsd1*)
12386   dynamic_linker=no
12387   ;;
12388
12389 kfreebsd*-gnu)
12390   version_type=linux
12391   need_lib_prefix=no
12392   need_version=no
12393   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12394   soname_spec='${libname}${release}${shared_ext}$major'
12395   shlibpath_var=LD_LIBRARY_PATH
12396   shlibpath_overrides_runpath=no
12397   hardcode_into_libs=yes
12398   dynamic_linker='GNU ld.so'
12399   ;;
12400
12401 freebsd* | dragonfly*)
12402   # DragonFly does not have aout.  When/if they implement a new
12403   # versioning mechanism, adjust this.
12404   if test -x /usr/bin/objformat; then
12405     objformat=`/usr/bin/objformat`
12406   else
12407     case $host_os in
12408     freebsd[123]*) objformat=aout ;;
12409     *) objformat=elf ;;
12410     esac
12411   fi
12412   version_type=freebsd-$objformat
12413   case $version_type in
12414     freebsd-elf*)
12415       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12416       need_version=no
12417       need_lib_prefix=no
12418       ;;
12419     freebsd-*)
12420       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12421       need_version=yes
12422       ;;
12423   esac
12424   shlibpath_var=LD_LIBRARY_PATH
12425   case $host_os in
12426   freebsd2*)
12427     shlibpath_overrides_runpath=yes
12428     ;;
12429   freebsd3.[01]* | freebsdelf3.[01]*)
12430     shlibpath_overrides_runpath=yes
12431     hardcode_into_libs=yes
12432     ;;
12433   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12434   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12435     shlibpath_overrides_runpath=no
12436     hardcode_into_libs=yes
12437     ;;
12438   freebsd*) # from 4.6 on
12439     shlibpath_overrides_runpath=yes
12440     hardcode_into_libs=yes
12441     ;;
12442   esac
12443   ;;
12444
12445 gnu*)
12446   version_type=linux
12447   need_lib_prefix=no
12448   need_version=no
12449   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12450   soname_spec='${libname}${release}${shared_ext}$major'
12451   shlibpath_var=LD_LIBRARY_PATH
12452   hardcode_into_libs=yes
12453   ;;
12454
12455 hpux9* | hpux10* | hpux11*)
12456   # Give a soname corresponding to the major version so that dld.sl refuses to
12457   # link against other versions.
12458   version_type=sunos
12459   need_lib_prefix=no
12460   need_version=no
12461   case $host_cpu in
12462   ia64*)
12463     shrext_cmds='.so'
12464     hardcode_into_libs=yes
12465     dynamic_linker="$host_os dld.so"
12466     shlibpath_var=LD_LIBRARY_PATH
12467     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12468     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12469     soname_spec='${libname}${release}${shared_ext}$major'
12470     if test "X$HPUX_IA64_MODE" = X32; then
12471       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12472     else
12473       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12474     fi
12475     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12476     ;;
12477    hppa*64*)
12478      shrext_cmds='.sl'
12479      hardcode_into_libs=yes
12480      dynamic_linker="$host_os dld.sl"
12481      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12482      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12483      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12484      soname_spec='${libname}${release}${shared_ext}$major'
12485      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12486      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12487      ;;
12488    *)
12489     shrext_cmds='.sl'
12490     dynamic_linker="$host_os dld.sl"
12491     shlibpath_var=SHLIB_PATH
12492     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12493     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12494     soname_spec='${libname}${release}${shared_ext}$major'
12495     ;;
12496   esac
12497   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12498   postinstall_cmds='chmod 555 $lib'
12499   ;;
12500
12501 interix3*)
12502   version_type=linux
12503   need_lib_prefix=no
12504   need_version=no
12505   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12506   soname_spec='${libname}${release}${shared_ext}$major'
12507   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12508   shlibpath_var=LD_LIBRARY_PATH
12509   shlibpath_overrides_runpath=no
12510   hardcode_into_libs=yes
12511   ;;
12512
12513 irix5* | irix6* | nonstopux*)
12514   case $host_os in
12515     nonstopux*) version_type=nonstopux ;;
12516     *)
12517         if test "$lt_cv_prog_gnu_ld" = yes; then
12518                 version_type=linux
12519         else
12520                 version_type=irix
12521         fi ;;
12522   esac
12523   need_lib_prefix=no
12524   need_version=no
12525   soname_spec='${libname}${release}${shared_ext}$major'
12526   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12527   case $host_os in
12528   irix5* | nonstopux*)
12529     libsuff= shlibsuff=
12530     ;;
12531   *)
12532     case $LD in # libtool.m4 will add one of these switches to LD
12533     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12534       libsuff= shlibsuff= libmagic=32-bit;;
12535     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12536       libsuff=32 shlibsuff=N32 libmagic=N32;;
12537     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12538       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12539     *) libsuff= shlibsuff= libmagic=never-match;;
12540     esac
12541     ;;
12542   esac
12543   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12544   shlibpath_overrides_runpath=no
12545   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12546   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12547   hardcode_into_libs=yes
12548   ;;
12549
12550 # No shared lib support for Linux oldld, aout, or coff.
12551 linux*oldld* | linux*aout* | linux*coff*)
12552   dynamic_linker=no
12553   ;;
12554
12555 # This must be Linux ELF.
12556 linux*)
12557   version_type=linux
12558   need_lib_prefix=no
12559   need_version=no
12560   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12561   soname_spec='${libname}${release}${shared_ext}$major'
12562   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12563   shlibpath_var=LD_LIBRARY_PATH
12564   shlibpath_overrides_runpath=no
12565   # This implies no fast_install, which is unacceptable.
12566   # Some rework will be needed to allow for fast_install
12567   # before this can be enabled.
12568   hardcode_into_libs=yes
12569
12570   # Append ld.so.conf contents to the search path
12571   if test -f /etc/ld.so.conf; then
12572     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' ' '`
12573     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12574   fi
12575
12576   # We used to test for /lib/ld.so.1 and disable shared libraries on
12577   # powerpc, because MkLinux only supported shared libraries with the
12578   # GNU dynamic linker.  Since this was broken with cross compilers,
12579   # most powerpc-linux boxes support dynamic linking these days and
12580   # people can always --disable-shared, the test was removed, and we
12581   # assume the GNU/Linux dynamic linker is in use.
12582   dynamic_linker='GNU/Linux ld.so'
12583   ;;
12584
12585 knetbsd*-gnu)
12586   version_type=linux
12587   need_lib_prefix=no
12588   need_version=no
12589   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12590   soname_spec='${libname}${release}${shared_ext}$major'
12591   shlibpath_var=LD_LIBRARY_PATH
12592   shlibpath_overrides_runpath=no
12593   hardcode_into_libs=yes
12594   dynamic_linker='GNU ld.so'
12595   ;;
12596
12597 netbsd*)
12598   version_type=sunos
12599   need_lib_prefix=no
12600   need_version=no
12601   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12602     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12603     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12604     dynamic_linker='NetBSD (a.out) ld.so'
12605   else
12606     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12607     soname_spec='${libname}${release}${shared_ext}$major'
12608     dynamic_linker='NetBSD ld.elf_so'
12609   fi
12610   shlibpath_var=LD_LIBRARY_PATH
12611   shlibpath_overrides_runpath=yes
12612   hardcode_into_libs=yes
12613   ;;
12614
12615 newsos6)
12616   version_type=linux
12617   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12618   shlibpath_var=LD_LIBRARY_PATH
12619   shlibpath_overrides_runpath=yes
12620   ;;
12621
12622 nto-qnx*)
12623   version_type=linux
12624   need_lib_prefix=no
12625   need_version=no
12626   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12627   soname_spec='${libname}${release}${shared_ext}$major'
12628   shlibpath_var=LD_LIBRARY_PATH
12629   shlibpath_overrides_runpath=yes
12630   ;;
12631
12632 openbsd*)
12633   version_type=sunos
12634   sys_lib_dlsearch_path_spec="/usr/lib"
12635   need_lib_prefix=no
12636   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12637   case $host_os in
12638     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12639     *)                         need_version=no  ;;
12640   esac
12641   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12642   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12643   shlibpath_var=LD_LIBRARY_PATH
12644   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12645     case $host_os in
12646       openbsd2.[89] | openbsd2.[89].*)
12647         shlibpath_overrides_runpath=no
12648         ;;
12649       *)
12650         shlibpath_overrides_runpath=yes
12651         ;;
12652       esac
12653   else
12654     shlibpath_overrides_runpath=yes
12655   fi
12656   ;;
12657
12658 os2*)
12659   libname_spec='$name'
12660   shrext_cmds=".dll"
12661   need_lib_prefix=no
12662   library_names_spec='$libname${shared_ext} $libname.a'
12663   dynamic_linker='OS/2 ld.exe'
12664   shlibpath_var=LIBPATH
12665   ;;
12666
12667 osf3* | osf4* | osf5*)
12668   version_type=osf
12669   need_lib_prefix=no
12670   need_version=no
12671   soname_spec='${libname}${release}${shared_ext}$major'
12672   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12673   shlibpath_var=LD_LIBRARY_PATH
12674   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12675   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12676   ;;
12677
12678 solaris*)
12679   version_type=linux
12680   need_lib_prefix=no
12681   need_version=no
12682   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12683   soname_spec='${libname}${release}${shared_ext}$major'
12684   shlibpath_var=LD_LIBRARY_PATH
12685   shlibpath_overrides_runpath=yes
12686   hardcode_into_libs=yes
12687   # ldd complains unless libraries are executable
12688   postinstall_cmds='chmod +x $lib'
12689   ;;
12690
12691 sunos4*)
12692   version_type=sunos
12693   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12694   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12695   shlibpath_var=LD_LIBRARY_PATH
12696   shlibpath_overrides_runpath=yes
12697   if test "$with_gnu_ld" = yes; then
12698     need_lib_prefix=no
12699   fi
12700   need_version=yes
12701   ;;
12702
12703 sysv4 | sysv4.3*)
12704   version_type=linux
12705   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12706   soname_spec='${libname}${release}${shared_ext}$major'
12707   shlibpath_var=LD_LIBRARY_PATH
12708   case $host_vendor in
12709     sni)
12710       shlibpath_overrides_runpath=no
12711       need_lib_prefix=no
12712       export_dynamic_flag_spec='${wl}-Blargedynsym'
12713       runpath_var=LD_RUN_PATH
12714       ;;
12715     siemens)
12716       need_lib_prefix=no
12717       ;;
12718     motorola)
12719       need_lib_prefix=no
12720       need_version=no
12721       shlibpath_overrides_runpath=no
12722       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12723       ;;
12724   esac
12725   ;;
12726
12727 sysv4*MP*)
12728   if test -d /usr/nec ;then
12729     version_type=linux
12730     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12731     soname_spec='$libname${shared_ext}.$major'
12732     shlibpath_var=LD_LIBRARY_PATH
12733   fi
12734   ;;
12735
12736 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12737   version_type=freebsd-elf
12738   need_lib_prefix=no
12739   need_version=no
12740   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12741   soname_spec='${libname}${release}${shared_ext}$major'
12742   shlibpath_var=LD_LIBRARY_PATH
12743   hardcode_into_libs=yes
12744   if test "$with_gnu_ld" = yes; then
12745     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12746     shlibpath_overrides_runpath=no
12747   else
12748     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12749     shlibpath_overrides_runpath=yes
12750     case $host_os in
12751       sco3.2v5*)
12752         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12753         ;;
12754     esac
12755   fi
12756   sys_lib_dlsearch_path_spec='/usr/lib'
12757   ;;
12758
12759 uts4*)
12760   version_type=linux
12761   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12762   soname_spec='${libname}${release}${shared_ext}$major'
12763   shlibpath_var=LD_LIBRARY_PATH
12764   ;;
12765
12766 *)
12767   dynamic_linker=no
12768   ;;
12769 esac
12770 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12771 echo "${ECHO_T}$dynamic_linker" >&6
12772 test "$dynamic_linker" = no && can_build_shared=no
12773
12774 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12775 if test "$GCC" = yes; then
12776   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12777 fi
12778
12779 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12780 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12781 hardcode_action_CXX=
12782 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12783    test -n "$runpath_var_CXX" || \
12784    test "X$hardcode_automatic_CXX" = "Xyes" ; then
12785
12786   # We can hardcode non-existant directories.
12787   if test "$hardcode_direct_CXX" != no &&
12788      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12789      # have to relink, otherwise we might link with an installed library
12790      # when we should be linking with a yet-to-be-installed one
12791      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12792      test "$hardcode_minus_L_CXX" != no; then
12793     # Linking always hardcodes the temporary library directory.
12794     hardcode_action_CXX=relink
12795   else
12796     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12797     hardcode_action_CXX=immediate
12798   fi
12799 else
12800   # We cannot hardcode anything, or else we can only hardcode existing
12801   # directories.
12802   hardcode_action_CXX=unsupported
12803 fi
12804 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12805 echo "${ECHO_T}$hardcode_action_CXX" >&6
12806
12807 if test "$hardcode_action_CXX" = relink; then
12808   # Fast installation is not supported
12809   enable_fast_install=no
12810 elif test "$shlibpath_overrides_runpath" = yes ||
12811      test "$enable_shared" = no; then
12812   # Fast installation is not necessary
12813   enable_fast_install=needless
12814 fi
12815
12816
12817 # The else clause should only fire when bootstrapping the
12818 # libtool distribution, otherwise you forgot to ship ltmain.sh
12819 # with your package, and you will get complaints that there are
12820 # no rules to generate ltmain.sh.
12821 if test -f "$ltmain"; then
12822   # See if we are running on zsh, and set the options which allow our commands through
12823   # without removal of \ escapes.
12824   if test -n "${ZSH_VERSION+set}" ; then
12825     setopt NO_GLOB_SUBST
12826   fi
12827   # Now quote all the things that may contain metacharacters while being
12828   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12829   # variables and quote the copies for generation of the libtool script.
12830   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12831     SED SHELL STRIP \
12832     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12833     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12834     deplibs_check_method reload_flag reload_cmds need_locks \
12835     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12836     lt_cv_sys_global_symbol_to_c_name_address \
12837     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12838     old_postinstall_cmds old_postuninstall_cmds \
12839     compiler_CXX \
12840     CC_CXX \
12841     LD_CXX \
12842     lt_prog_compiler_wl_CXX \
12843     lt_prog_compiler_pic_CXX \
12844     lt_prog_compiler_static_CXX \
12845     lt_prog_compiler_no_builtin_flag_CXX \
12846     export_dynamic_flag_spec_CXX \
12847     thread_safe_flag_spec_CXX \
12848     whole_archive_flag_spec_CXX \
12849     enable_shared_with_static_runtimes_CXX \
12850     old_archive_cmds_CXX \
12851     old_archive_from_new_cmds_CXX \
12852     predep_objects_CXX \
12853     postdep_objects_CXX \
12854     predeps_CXX \
12855     postdeps_CXX \
12856     compiler_lib_search_path_CXX \
12857     archive_cmds_CXX \
12858     archive_expsym_cmds_CXX \
12859     postinstall_cmds_CXX \
12860     postuninstall_cmds_CXX \
12861     old_archive_from_expsyms_cmds_CXX \
12862     allow_undefined_flag_CXX \
12863     no_undefined_flag_CXX \
12864     export_symbols_cmds_CXX \
12865     hardcode_libdir_flag_spec_CXX \
12866     hardcode_libdir_flag_spec_ld_CXX \
12867     hardcode_libdir_separator_CXX \
12868     hardcode_automatic_CXX \
12869     module_cmds_CXX \
12870     module_expsym_cmds_CXX \
12871     lt_cv_prog_compiler_c_o_CXX \
12872     exclude_expsyms_CXX \
12873     include_expsyms_CXX; do
12874
12875     case $var in
12876     old_archive_cmds_CXX | \
12877     old_archive_from_new_cmds_CXX | \
12878     archive_cmds_CXX | \
12879     archive_expsym_cmds_CXX | \
12880     module_cmds_CXX | \
12881     module_expsym_cmds_CXX | \
12882     old_archive_from_expsyms_cmds_CXX | \
12883     export_symbols_cmds_CXX | \
12884     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12885     postinstall_cmds | postuninstall_cmds | \
12886     old_postinstall_cmds | old_postuninstall_cmds | \
12887     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12888       # Double-quote double-evaled strings.
12889       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12890       ;;
12891     *)
12892       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12893       ;;
12894     esac
12895   done
12896
12897   case $lt_echo in
12898   *'\$0 --fallback-echo"')
12899     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12900     ;;
12901   esac
12902
12903 cfgfile="$ofile"
12904
12905   cat <<__EOF__ >> "$cfgfile"
12906 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12907
12908 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12909
12910 # Shell to use when invoking shell scripts.
12911 SHELL=$lt_SHELL
12912
12913 # Whether or not to build shared libraries.
12914 build_libtool_libs=$enable_shared
12915
12916 # Whether or not to build static libraries.
12917 build_old_libs=$enable_static
12918
12919 # Whether or not to add -lc for building shared libraries.
12920 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12921
12922 # Whether or not to disallow shared libs when runtime libs are static
12923 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12924
12925 # Whether or not to optimize for fast installation.
12926 fast_install=$enable_fast_install
12927
12928 # The host system.
12929 host_alias=$host_alias
12930 host=$host
12931 host_os=$host_os
12932
12933 # The build system.
12934 build_alias=$build_alias
12935 build=$build
12936 build_os=$build_os
12937
12938 # An echo program that does not interpret backslashes.
12939 echo=$lt_echo
12940
12941 # The archiver.
12942 AR=$lt_AR
12943 AR_FLAGS=$lt_AR_FLAGS
12944
12945 # A C compiler.
12946 LTCC=$lt_LTCC
12947
12948 # LTCC compiler flags.
12949 LTCFLAGS=$lt_LTCFLAGS
12950
12951 # A language-specific compiler.
12952 CC=$lt_compiler_CXX
12953
12954 # Is the compiler the GNU C compiler?
12955 with_gcc=$GCC_CXX
12956
12957 # An ERE matcher.
12958 EGREP=$lt_EGREP
12959
12960 # The linker used to build libraries.
12961 LD=$lt_LD_CXX
12962
12963 # Whether we need hard or soft links.
12964 LN_S=$lt_LN_S
12965
12966 # A BSD-compatible nm program.
12967 NM=$lt_NM
12968
12969 # A symbol stripping program
12970 STRIP=$lt_STRIP
12971
12972 # Used to examine libraries when file_magic_cmd begins "file"
12973 MAGIC_CMD=$MAGIC_CMD
12974
12975 # Used on cygwin: DLL creation program.
12976 DLLTOOL="$DLLTOOL"
12977
12978 # Used on cygwin: object dumper.
12979 OBJDUMP="$OBJDUMP"
12980
12981 # Used on cygwin: assembler.
12982 AS="$AS"
12983
12984 # The name of the directory that contains temporary libtool files.
12985 objdir=$objdir
12986
12987 # How to create reloadable object files.
12988 reload_flag=$lt_reload_flag
12989 reload_cmds=$lt_reload_cmds
12990
12991 # How to pass a linker flag through the compiler.
12992 wl=$lt_lt_prog_compiler_wl_CXX
12993
12994 # Object file suffix (normally "o").
12995 objext="$ac_objext"
12996
12997 # Old archive suffix (normally "a").
12998 libext="$libext"
12999
13000 # Shared library suffix (normally ".so").
13001 shrext_cmds='$shrext_cmds'
13002
13003 # Executable file suffix (normally "").
13004 exeext="$exeext"
13005
13006 # Additional compiler flags for building library objects.
13007 pic_flag=$lt_lt_prog_compiler_pic_CXX
13008 pic_mode=$pic_mode
13009
13010 # What is the maximum length of a command?
13011 max_cmd_len=$lt_cv_sys_max_cmd_len
13012
13013 # Does compiler simultaneously support -c and -o options?
13014 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13015
13016 # Must we lock files when doing compilation?
13017 need_locks=$lt_need_locks
13018
13019 # Do we need the lib prefix for modules?
13020 need_lib_prefix=$need_lib_prefix
13021
13022 # Do we need a version for libraries?
13023 need_version=$need_version
13024
13025 # Whether dlopen is supported.
13026 dlopen_support=$enable_dlopen
13027
13028 # Whether dlopen of programs is supported.
13029 dlopen_self=$enable_dlopen_self
13030
13031 # Whether dlopen of statically linked programs is supported.
13032 dlopen_self_static=$enable_dlopen_self_static
13033
13034 # Compiler flag to prevent dynamic linking.
13035 link_static_flag=$lt_lt_prog_compiler_static_CXX
13036
13037 # Compiler flag to turn off builtin functions.
13038 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13039
13040 # Compiler flag to allow reflexive dlopens.
13041 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13042
13043 # Compiler flag to generate shared objects directly from archives.
13044 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13045
13046 # Compiler flag to generate thread-safe objects.
13047 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13048
13049 # Library versioning type.
13050 version_type=$version_type
13051
13052 # Format of library name prefix.
13053 libname_spec=$lt_libname_spec
13054
13055 # List of archive names.  First name is the real one, the rest are links.
13056 # The last name is the one that the linker finds with -lNAME.
13057 library_names_spec=$lt_library_names_spec
13058
13059 # The coded name of the library, if different from the real name.
13060 soname_spec=$lt_soname_spec
13061
13062 # Commands used to build and install an old-style archive.
13063 RANLIB=$lt_RANLIB
13064 old_archive_cmds=$lt_old_archive_cmds_CXX
13065 old_postinstall_cmds=$lt_old_postinstall_cmds
13066 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13067
13068 # Create an old-style archive from a shared archive.
13069 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13070
13071 # Create a temporary old-style archive to link instead of a shared archive.
13072 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13073
13074 # Commands used to build and install a shared archive.
13075 archive_cmds=$lt_archive_cmds_CXX
13076 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13077 postinstall_cmds=$lt_postinstall_cmds
13078 postuninstall_cmds=$lt_postuninstall_cmds
13079
13080 # Commands used to build a loadable module (assumed same as above if empty)
13081 module_cmds=$lt_module_cmds_CXX
13082 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13083
13084 # Commands to strip libraries.
13085 old_striplib=$lt_old_striplib
13086 striplib=$lt_striplib
13087
13088 # Dependencies to place before the objects being linked to create a
13089 # shared library.
13090 predep_objects=$lt_predep_objects_CXX
13091
13092 # Dependencies to place after the objects being linked to create a
13093 # shared library.
13094 postdep_objects=$lt_postdep_objects_CXX
13095
13096 # Dependencies to place before the objects being linked to create a
13097 # shared library.
13098 predeps=$lt_predeps_CXX
13099
13100 # Dependencies to place after the objects being linked to create a
13101 # shared library.
13102 postdeps=$lt_postdeps_CXX
13103
13104 # The library search path used internally by the compiler when linking
13105 # a shared library.
13106 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13107
13108 # Method to check whether dependent libraries are shared objects.
13109 deplibs_check_method=$lt_deplibs_check_method
13110
13111 # Command to use when deplibs_check_method == file_magic.
13112 file_magic_cmd=$lt_file_magic_cmd
13113
13114 # Flag that allows shared libraries with undefined symbols to be built.
13115 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13116
13117 # Flag that forces no undefined symbols.
13118 no_undefined_flag=$lt_no_undefined_flag_CXX
13119
13120 # Commands used to finish a libtool library installation in a directory.
13121 finish_cmds=$lt_finish_cmds
13122
13123 # Same as above, but a single script fragment to be evaled but not shown.
13124 finish_eval=$lt_finish_eval
13125
13126 # Take the output of nm and produce a listing of raw symbols and C names.
13127 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13128
13129 # Transform the output of nm in a proper C declaration
13130 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13131
13132 # Transform the output of nm in a C name address pair
13133 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13134
13135 # This is the shared library runtime path variable.
13136 runpath_var=$runpath_var
13137
13138 # This is the shared library path variable.
13139 shlibpath_var=$shlibpath_var
13140
13141 # Is shlibpath searched before the hard-coded library search path?
13142 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13143
13144 # How to hardcode a shared library path into an executable.
13145 hardcode_action=$hardcode_action_CXX
13146
13147 # Whether we should hardcode library paths into libraries.
13148 hardcode_into_libs=$hardcode_into_libs
13149
13150 # Flag to hardcode \$libdir into a binary during linking.
13151 # This must work even if \$libdir does not exist.
13152 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13153
13154 # If ld is used when linking, flag to hardcode \$libdir into
13155 # a binary during linking. This must work even if \$libdir does
13156 # not exist.
13157 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13158
13159 # Whether we need a single -rpath flag with a separated argument.
13160 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13161
13162 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13163 # resulting binary.
13164 hardcode_direct=$hardcode_direct_CXX
13165
13166 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13167 # resulting binary.
13168 hardcode_minus_L=$hardcode_minus_L_CXX
13169
13170 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13171 # the resulting binary.
13172 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13173
13174 # Set to yes if building a shared library automatically hardcodes DIR into the library
13175 # and all subsequent libraries and executables linked against it.
13176 hardcode_automatic=$hardcode_automatic_CXX
13177
13178 # Variables whose values should be saved in libtool wrapper scripts and
13179 # restored at relink time.
13180 variables_saved_for_relink="$variables_saved_for_relink"
13181
13182 # Whether libtool must link a program against all its dependency libraries.
13183 link_all_deplibs=$link_all_deplibs_CXX
13184
13185 # Compile-time system search path for libraries
13186 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13187
13188 # Run-time system search path for libraries
13189 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13190
13191 # Fix the shell variable \$srcfile for the compiler.
13192 fix_srcfile_path="$fix_srcfile_path_CXX"
13193
13194 # Set to yes if exported symbols are required.
13195 always_export_symbols=$always_export_symbols_CXX
13196
13197 # The commands to list exported symbols.
13198 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13199
13200 # The commands to extract the exported symbol list from a shared archive.
13201 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13202
13203 # Symbols that should not be listed in the preloaded symbols.
13204 exclude_expsyms=$lt_exclude_expsyms_CXX
13205
13206 # Symbols that must always be exported.
13207 include_expsyms=$lt_include_expsyms_CXX
13208
13209 # ### END LIBTOOL TAG CONFIG: $tagname
13210
13211 __EOF__
13212
13213
13214 else
13215   # If there is no Makefile yet, we rely on a make rule to execute
13216   # `config.status --recheck' to rerun these tests and create the
13217   # libtool script then.
13218   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13219   if test -f "$ltmain_in"; then
13220     test -f Makefile && make "$ltmain"
13221   fi
13222 fi
13223
13224
13225 ac_ext=c
13226 ac_cpp='$CPP $CPPFLAGS'
13227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13230
13231 CC=$lt_save_CC
13232 LDCXX=$LD
13233 LD=$lt_save_LD
13234 GCC=$lt_save_GCC
13235 with_gnu_ldcxx=$with_gnu_ld
13236 with_gnu_ld=$lt_save_with_gnu_ld
13237 lt_cv_path_LDCXX=$lt_cv_path_LD
13238 lt_cv_path_LD=$lt_save_path_LD
13239 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13240 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13241
13242         else
13243           tagname=""
13244         fi
13245         ;;
13246
13247       F77)
13248         if test -n "$F77" && test "X$F77" != "Xno"; then
13249
13250 ac_ext=f
13251 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13252 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13253 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13254
13255
13256 archive_cmds_need_lc_F77=no
13257 allow_undefined_flag_F77=
13258 always_export_symbols_F77=no
13259 archive_expsym_cmds_F77=
13260 export_dynamic_flag_spec_F77=
13261 hardcode_direct_F77=no
13262 hardcode_libdir_flag_spec_F77=
13263 hardcode_libdir_flag_spec_ld_F77=
13264 hardcode_libdir_separator_F77=
13265 hardcode_minus_L_F77=no
13266 hardcode_automatic_F77=no
13267 module_cmds_F77=
13268 module_expsym_cmds_F77=
13269 link_all_deplibs_F77=unknown
13270 old_archive_cmds_F77=$old_archive_cmds
13271 no_undefined_flag_F77=
13272 whole_archive_flag_spec_F77=
13273 enable_shared_with_static_runtimes_F77=no
13274
13275 # Source file extension for f77 test sources.
13276 ac_ext=f
13277
13278 # Object file extension for compiled f77 test sources.
13279 objext=o
13280 objext_F77=$objext
13281
13282 # Code to be used in simple compile tests
13283 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13284
13285 # Code to be used in simple link tests
13286 lt_simple_link_test_code="      program t\n      end\n"
13287
13288 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13289
13290 # If no C compiler was specified, use CC.
13291 LTCC=${LTCC-"$CC"}
13292
13293 # If no C compiler flags were specified, use CFLAGS.
13294 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13295
13296 # Allow CC to be a program name with arguments.
13297 compiler=$CC
13298
13299
13300 # save warnings/boilerplate of simple test code
13301 ac_outfile=conftest.$ac_objext
13302 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13303 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13304 _lt_compiler_boilerplate=`cat conftest.err`
13305 $rm conftest*
13306
13307 ac_outfile=conftest.$ac_objext
13308 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13309 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13310 _lt_linker_boilerplate=`cat conftest.err`
13311 $rm conftest*
13312
13313
13314 # Allow CC to be a program name with arguments.
13315 lt_save_CC="$CC"
13316 CC=${F77-"f77"}
13317 compiler=$CC
13318 compiler_F77=$CC
13319 for cc_temp in $compiler""; do
13320   case $cc_temp in
13321     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13322     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13323     \-*) ;;
13324     *) break;;
13325   esac
13326 done
13327 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13328
13329
13330 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13331 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13332 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13333 echo "${ECHO_T}$can_build_shared" >&6
13334
13335 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13336 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13337 test "$can_build_shared" = "no" && enable_shared=no
13338
13339 # On AIX, shared libraries and static libraries use the same namespace, and
13340 # are all built from PIC.
13341 case $host_os in
13342 aix3*)
13343   test "$enable_shared" = yes && enable_static=no
13344   if test -n "$RANLIB"; then
13345     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13346     postinstall_cmds='$RANLIB $lib'
13347   fi
13348   ;;
13349 aix4* | aix5*)
13350   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13351     test "$enable_shared" = yes && enable_static=no
13352   fi
13353   ;;
13354 esac
13355 echo "$as_me:$LINENO: result: $enable_shared" >&5
13356 echo "${ECHO_T}$enable_shared" >&6
13357
13358 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13359 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13360 # Make sure either enable_shared or enable_static is yes.
13361 test "$enable_shared" = yes || enable_static=yes
13362 echo "$as_me:$LINENO: result: $enable_static" >&5
13363 echo "${ECHO_T}$enable_static" >&6
13364
13365 GCC_F77="$G77"
13366 LD_F77="$LD"
13367
13368 lt_prog_compiler_wl_F77=
13369 lt_prog_compiler_pic_F77=
13370 lt_prog_compiler_static_F77=
13371
13372 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13373 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13374
13375   if test "$GCC" = yes; then
13376     lt_prog_compiler_wl_F77='-Wl,'
13377     lt_prog_compiler_static_F77='-static'
13378
13379     case $host_os in
13380       aix*)
13381       # All AIX code is PIC.
13382       if test "$host_cpu" = ia64; then
13383         # AIX 5 now supports IA64 processor
13384         lt_prog_compiler_static_F77='-Bstatic'
13385       fi
13386       ;;
13387
13388     amigaos*)
13389       # FIXME: we need at least 68020 code to build shared libraries, but
13390       # adding the `-m68020' flag to GCC prevents building anything better,
13391       # like `-m68040'.
13392       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13393       ;;
13394
13395     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13396       # PIC is the default for these OSes.
13397       ;;
13398
13399     mingw* | pw32* | os2*)
13400       # This hack is so that the source file can tell whether it is being
13401       # built for inclusion in a dll (and should export symbols for example).
13402       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13403       ;;
13404
13405     darwin* | rhapsody*)
13406       # PIC is the default on this platform
13407       # Common symbols not allowed in MH_DYLIB files
13408       lt_prog_compiler_pic_F77='-fno-common'
13409       ;;
13410
13411     interix3*)
13412       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13413       # Instead, we relocate shared libraries at runtime.
13414       ;;
13415
13416     msdosdjgpp*)
13417       # Just because we use GCC doesn't mean we suddenly get shared libraries
13418       # on systems that don't support them.
13419       lt_prog_compiler_can_build_shared_F77=no
13420       enable_shared=no
13421       ;;
13422
13423     sysv4*MP*)
13424       if test -d /usr/nec; then
13425         lt_prog_compiler_pic_F77=-Kconform_pic
13426       fi
13427       ;;
13428
13429     hpux*)
13430       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13431       # not for PA HP-UX.
13432       case $host_cpu in
13433       hppa*64*|ia64*)
13434         # +Z the default
13435         ;;
13436       *)
13437         lt_prog_compiler_pic_F77='-fPIC'
13438         ;;
13439       esac
13440       ;;
13441
13442     *)
13443       lt_prog_compiler_pic_F77='-fPIC'
13444       ;;
13445     esac
13446   else
13447     # PORTME Check for flag to pass linker flags through the system compiler.
13448     case $host_os in
13449     aix*)
13450       lt_prog_compiler_wl_F77='-Wl,'
13451       if test "$host_cpu" = ia64; then
13452         # AIX 5 now supports IA64 processor
13453         lt_prog_compiler_static_F77='-Bstatic'
13454       else
13455         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13456       fi
13457       ;;
13458       darwin*)
13459         # PIC is the default on this platform
13460         # Common symbols not allowed in MH_DYLIB files
13461        case $cc_basename in
13462          xlc*)
13463          lt_prog_compiler_pic_F77='-qnocommon'
13464          lt_prog_compiler_wl_F77='-Wl,'
13465          ;;
13466        esac
13467        ;;
13468
13469     mingw* | pw32* | os2*)
13470       # This hack is so that the source file can tell whether it is being
13471       # built for inclusion in a dll (and should export symbols for example).
13472       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13473       ;;
13474
13475     hpux9* | hpux10* | hpux11*)
13476       lt_prog_compiler_wl_F77='-Wl,'
13477       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13478       # not for PA HP-UX.
13479       case $host_cpu in
13480       hppa*64*|ia64*)
13481         # +Z the default
13482         ;;
13483       *)
13484         lt_prog_compiler_pic_F77='+Z'
13485         ;;
13486       esac
13487       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13488       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13489       ;;
13490
13491     irix5* | irix6* | nonstopux*)
13492       lt_prog_compiler_wl_F77='-Wl,'
13493       # PIC (with -KPIC) is the default.
13494       lt_prog_compiler_static_F77='-non_shared'
13495       ;;
13496
13497     newsos6)
13498       lt_prog_compiler_pic_F77='-KPIC'
13499       lt_prog_compiler_static_F77='-Bstatic'
13500       ;;
13501
13502     linux*)
13503       case $cc_basename in
13504       icc* | ecc*)
13505         lt_prog_compiler_wl_F77='-Wl,'
13506         lt_prog_compiler_pic_F77='-KPIC'
13507         lt_prog_compiler_static_F77='-static'
13508         ;;
13509       pgcc* | pgf77* | pgf90* | pgf95*)
13510         # Portland Group compilers (*not* the Pentium gcc compiler,
13511         # which looks to be a dead project)
13512         lt_prog_compiler_wl_F77='-Wl,'
13513         lt_prog_compiler_pic_F77='-fpic'
13514         lt_prog_compiler_static_F77='-Bstatic'
13515         ;;
13516       ccc*)
13517         lt_prog_compiler_wl_F77='-Wl,'
13518         # All Alpha code is PIC.
13519         lt_prog_compiler_static_F77='-non_shared'
13520         ;;
13521       esac
13522       ;;
13523
13524     osf3* | osf4* | osf5*)
13525       lt_prog_compiler_wl_F77='-Wl,'
13526       # All OSF/1 code is PIC.
13527       lt_prog_compiler_static_F77='-non_shared'
13528       ;;
13529
13530     solaris*)
13531       lt_prog_compiler_pic_F77='-KPIC'
13532       lt_prog_compiler_static_F77='-Bstatic'
13533       case $cc_basename in
13534       f77* | f90* | f95*)
13535         lt_prog_compiler_wl_F77='-Qoption ld ';;
13536       *)
13537         lt_prog_compiler_wl_F77='-Wl,';;
13538       esac
13539       ;;
13540
13541     sunos4*)
13542       lt_prog_compiler_wl_F77='-Qoption ld '
13543       lt_prog_compiler_pic_F77='-PIC'
13544       lt_prog_compiler_static_F77='-Bstatic'
13545       ;;
13546
13547     sysv4 | sysv4.2uw2* | sysv4.3*)
13548       lt_prog_compiler_wl_F77='-Wl,'
13549       lt_prog_compiler_pic_F77='-KPIC'
13550       lt_prog_compiler_static_F77='-Bstatic'
13551       ;;
13552
13553     sysv4*MP*)
13554       if test -d /usr/nec ;then
13555         lt_prog_compiler_pic_F77='-Kconform_pic'
13556         lt_prog_compiler_static_F77='-Bstatic'
13557       fi
13558       ;;
13559
13560     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13561       lt_prog_compiler_wl_F77='-Wl,'
13562       lt_prog_compiler_pic_F77='-KPIC'
13563       lt_prog_compiler_static_F77='-Bstatic'
13564       ;;
13565
13566     unicos*)
13567       lt_prog_compiler_wl_F77='-Wl,'
13568       lt_prog_compiler_can_build_shared_F77=no
13569       ;;
13570
13571     uts4*)
13572       lt_prog_compiler_pic_F77='-pic'
13573       lt_prog_compiler_static_F77='-Bstatic'
13574       ;;
13575
13576     *)
13577       lt_prog_compiler_can_build_shared_F77=no
13578       ;;
13579     esac
13580   fi
13581
13582 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13583 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13584
13585 #
13586 # Check to make sure the PIC flag actually works.
13587 #
13588 if test -n "$lt_prog_compiler_pic_F77"; then
13589
13590 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13591 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13592 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13593   echo $ECHO_N "(cached) $ECHO_C" >&6
13594 else
13595   lt_prog_compiler_pic_works_F77=no
13596   ac_outfile=conftest.$ac_objext
13597    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13598    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13599    # Insert the option either (1) after the last *FLAGS variable, or
13600    # (2) before a word containing "conftest.", or (3) at the end.
13601    # Note that $ac_compile itself does not contain backslashes and begins
13602    # with a dollar sign (not a hyphen), so the echo should work correctly.
13603    # The option is referenced via a variable to avoid confusing sed.
13604    lt_compile=`echo "$ac_compile" | $SED \
13605    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13606    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13607    -e 's:$: $lt_compiler_flag:'`
13608    (eval echo "\"\$as_me:13608: $lt_compile\"" >&5)
13609    (eval "$lt_compile" 2>conftest.err)
13610    ac_status=$?
13611    cat conftest.err >&5
13612    echo "$as_me:13612: \$? = $ac_status" >&5
13613    if (exit $ac_status) && test -s "$ac_outfile"; then
13614      # The compiler can only warn and ignore the option if not recognized
13615      # So say no if there are warnings other than the usual output.
13616      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13617      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13618      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13619        lt_prog_compiler_pic_works_F77=yes
13620      fi
13621    fi
13622    $rm conftest*
13623
13624 fi
13625 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13626 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13627
13628 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13629     case $lt_prog_compiler_pic_F77 in
13630      "" | " "*) ;;
13631      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13632      esac
13633 else
13634     lt_prog_compiler_pic_F77=
13635      lt_prog_compiler_can_build_shared_F77=no
13636 fi
13637
13638 fi
13639 case $host_os in
13640   # For platforms which do not support PIC, -DPIC is meaningless:
13641   *djgpp*)
13642     lt_prog_compiler_pic_F77=
13643     ;;
13644   *)
13645     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13646     ;;
13647 esac
13648
13649 #
13650 # Check to make sure the static flag actually works.
13651 #
13652 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13653 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13654 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13655 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13656   echo $ECHO_N "(cached) $ECHO_C" >&6
13657 else
13658   lt_prog_compiler_static_works_F77=no
13659    save_LDFLAGS="$LDFLAGS"
13660    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13661    printf "$lt_simple_link_test_code" > conftest.$ac_ext
13662    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13663      # The linker can only warn and ignore the option if not recognized
13664      # So say no if there are warnings
13665      if test -s conftest.err; then
13666        # Append any errors to the config.log.
13667        cat conftest.err 1>&5
13668        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13669        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13670        if diff conftest.exp conftest.er2 >/dev/null; then
13671          lt_prog_compiler_static_works_F77=yes
13672        fi
13673      else
13674        lt_prog_compiler_static_works_F77=yes
13675      fi
13676    fi
13677    $rm conftest*
13678    LDFLAGS="$save_LDFLAGS"
13679
13680 fi
13681 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13682 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13683
13684 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13685     :
13686 else
13687     lt_prog_compiler_static_F77=
13688 fi
13689
13690
13691 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13692 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13693 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13694   echo $ECHO_N "(cached) $ECHO_C" >&6
13695 else
13696   lt_cv_prog_compiler_c_o_F77=no
13697    $rm -r conftest 2>/dev/null
13698    mkdir conftest
13699    cd conftest
13700    mkdir out
13701    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13702
13703    lt_compiler_flag="-o out/conftest2.$ac_objext"
13704    # Insert the option either (1) after the last *FLAGS variable, or
13705    # (2) before a word containing "conftest.", or (3) at the end.
13706    # Note that $ac_compile itself does not contain backslashes and begins
13707    # with a dollar sign (not a hyphen), so the echo should work correctly.
13708    lt_compile=`echo "$ac_compile" | $SED \
13709    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13710    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13711    -e 's:$: $lt_compiler_flag:'`
13712    (eval echo "\"\$as_me:13712: $lt_compile\"" >&5)
13713    (eval "$lt_compile" 2>out/conftest.err)
13714    ac_status=$?
13715    cat out/conftest.err >&5
13716    echo "$as_me:13716: \$? = $ac_status" >&5
13717    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13718    then
13719      # The compiler can only warn and ignore the option if not recognized
13720      # So say no if there are warnings
13721      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13722      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13723      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13724        lt_cv_prog_compiler_c_o_F77=yes
13725      fi
13726    fi
13727    chmod u+w . 2>&5
13728    $rm conftest*
13729    # SGI C++ compiler will create directory out/ii_files/ for
13730    # template instantiation
13731    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13732    $rm out/* && rmdir out
13733    cd ..
13734    rmdir conftest
13735    $rm conftest*
13736
13737 fi
13738 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13739 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13740
13741
13742 hard_links="nottested"
13743 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13744   # do not overwrite the value of need_locks provided by the user
13745   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13746 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13747   hard_links=yes
13748   $rm conftest*
13749   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13750   touch conftest.a
13751   ln conftest.a conftest.b 2>&5 || hard_links=no
13752   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13753   echo "$as_me:$LINENO: result: $hard_links" >&5
13754 echo "${ECHO_T}$hard_links" >&6
13755   if test "$hard_links" = no; then
13756     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13757 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13758     need_locks=warn
13759   fi
13760 else
13761   need_locks=no
13762 fi
13763
13764 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13765 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13766
13767   runpath_var=
13768   allow_undefined_flag_F77=
13769   enable_shared_with_static_runtimes_F77=no
13770   archive_cmds_F77=
13771   archive_expsym_cmds_F77=
13772   old_archive_From_new_cmds_F77=
13773   old_archive_from_expsyms_cmds_F77=
13774   export_dynamic_flag_spec_F77=
13775   whole_archive_flag_spec_F77=
13776   thread_safe_flag_spec_F77=
13777   hardcode_libdir_flag_spec_F77=
13778   hardcode_libdir_flag_spec_ld_F77=
13779   hardcode_libdir_separator_F77=
13780   hardcode_direct_F77=no
13781   hardcode_minus_L_F77=no
13782   hardcode_shlibpath_var_F77=unsupported
13783   link_all_deplibs_F77=unknown
13784   hardcode_automatic_F77=no
13785   module_cmds_F77=
13786   module_expsym_cmds_F77=
13787   always_export_symbols_F77=no
13788   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13789   # include_expsyms should be a list of space-separated symbols to be *always*
13790   # included in the symbol list
13791   include_expsyms_F77=
13792   # exclude_expsyms can be an extended regexp of symbols to exclude
13793   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13794   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13795   # as well as any symbol that contains `d'.
13796   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13797   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13798   # platforms (ab)use it in PIC code, but their linkers get confused if
13799   # the symbol is explicitly referenced.  Since portable code cannot
13800   # rely on this symbol name, it's probably fine to never include it in
13801   # preloaded symbol tables.
13802   extract_expsyms_cmds=
13803   # Just being paranoid about ensuring that cc_basename is set.
13804   for cc_temp in $compiler""; do
13805   case $cc_temp in
13806     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13807     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13808     \-*) ;;
13809     *) break;;
13810   esac
13811 done
13812 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13813
13814   case $host_os in
13815   cygwin* | mingw* | pw32*)
13816     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13817     # When not using gcc, we currently assume that we are using
13818     # Microsoft Visual C++.
13819     if test "$GCC" != yes; then
13820       with_gnu_ld=no
13821     fi
13822     ;;
13823   interix*)
13824     # we just hope/assume this is gcc and not c89 (= MSVC++)
13825     with_gnu_ld=yes
13826     ;;
13827   openbsd*)
13828     with_gnu_ld=no
13829     ;;
13830   esac
13831
13832   ld_shlibs_F77=yes
13833   if test "$with_gnu_ld" = yes; then
13834     # If archive_cmds runs LD, not CC, wlarc should be empty
13835     wlarc='${wl}'
13836
13837     # Set some defaults for GNU ld with shared library support. These
13838     # are reset later if shared libraries are not supported. Putting them
13839     # here allows them to be overridden if necessary.
13840     runpath_var=LD_RUN_PATH
13841     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13842     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13843     # ancient GNU ld didn't support --whole-archive et. al.
13844     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13845         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13846       else
13847         whole_archive_flag_spec_F77=
13848     fi
13849     supports_anon_versioning=no
13850     case `$LD -v 2>/dev/null` in
13851       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13852       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13853       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13854       *\ 2.11.*) ;; # other 2.11 versions
13855       *) supports_anon_versioning=yes ;;
13856     esac
13857
13858     # See if GNU ld supports shared libraries.
13859     case $host_os in
13860     aix3* | aix4* | aix5*)
13861       # On AIX/PPC, the GNU linker is very broken
13862       if test "$host_cpu" != ia64; then
13863         ld_shlibs_F77=no
13864         cat <<EOF 1>&2
13865
13866 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13867 *** to be unable to reliably create shared libraries on AIX.
13868 *** Therefore, libtool is disabling shared libraries support.  If you
13869 *** really care for shared libraries, you may want to modify your PATH
13870 *** so that a non-GNU linker is found, and then restart.
13871
13872 EOF
13873       fi
13874       ;;
13875
13876     amigaos*)
13877       archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
13878       hardcode_libdir_flag_spec_F77='-L$libdir'
13879       hardcode_minus_L_F77=yes
13880
13881       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13882       # that the semantics of dynamic libraries on AmigaOS, at least up
13883       # to version 4, is to share data among multiple programs linked
13884       # with the same dynamic library.  Since this doesn't match the
13885       # behavior of shared libraries on other platforms, we can't use
13886       # them.
13887       ld_shlibs_F77=no
13888       ;;
13889
13890     beos*)
13891       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13892         allow_undefined_flag_F77=unsupported
13893         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13894         # support --undefined.  This deserves some investigation.  FIXME
13895         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13896       else
13897         ld_shlibs_F77=no
13898       fi
13899       ;;
13900
13901     cygwin* | mingw* | pw32*)
13902       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13903       # as there is no search path for DLLs.
13904       hardcode_libdir_flag_spec_F77='-L$libdir'
13905       allow_undefined_flag_F77=unsupported
13906       always_export_symbols_F77=no
13907       enable_shared_with_static_runtimes_F77=yes
13908       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13909
13910       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13911         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13912         # If the export-symbols file already is a .def file (1st line
13913         # is EXPORTS), use it as is; otherwise, prepend...
13914         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13915           cp $export_symbols $output_objdir/$soname.def;
13916         else
13917           echo EXPORTS > $output_objdir/$soname.def;
13918           cat $export_symbols >> $output_objdir/$soname.def;
13919         fi~
13920         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13921       else
13922         ld_shlibs_F77=no
13923       fi
13924       ;;
13925
13926     interix3*)
13927       hardcode_direct_F77=no
13928       hardcode_shlibpath_var_F77=no
13929       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13930       export_dynamic_flag_spec_F77='${wl}-E'
13931       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13932       # Instead, shared libraries are loaded at an image base (0x10000000 by
13933       # default) and relocated if they conflict, which is a slow very memory
13934       # consuming and fragmenting process.  To avoid this, we pick a random,
13935       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13936       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13937       archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13938       archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13939       ;;
13940
13941     linux*)
13942       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13943         tmp_addflag=
13944         case $cc_basename,$host_cpu in
13945         pgcc*)                          # Portland Group C compiler
13946           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13947           tmp_addflag=' $pic_flag'
13948           ;;
13949         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
13950           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13951           tmp_addflag=' $pic_flag -Mnomain' ;;
13952         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
13953           tmp_addflag=' -i_dynamic' ;;
13954         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
13955           tmp_addflag=' -i_dynamic -nofor_main' ;;
13956         ifc* | ifort*)                  # Intel Fortran compiler
13957           tmp_addflag=' -nofor_main' ;;
13958         esac
13959         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13960
13961         if test $supports_anon_versioning = yes; then
13962           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13963   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13964   $echo "local: *; };" >> $output_objdir/$libname.ver~
13965           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13966         fi
13967       else
13968         ld_shlibs_F77=no
13969       fi
13970       ;;
13971
13972     netbsd*)
13973       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13974         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13975         wlarc=
13976       else
13977         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13978         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13979       fi
13980       ;;
13981
13982     solaris*)
13983       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13984         ld_shlibs_F77=no
13985         cat <<EOF 1>&2
13986
13987 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13988 *** create shared libraries on Solaris systems.  Therefore, libtool
13989 *** is disabling shared libraries support.  We urge you to upgrade GNU
13990 *** binutils to release 2.9.1 or newer.  Another option is to modify
13991 *** your PATH or compiler configuration so that the native linker is
13992 *** used, and then restart.
13993
13994 EOF
13995       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13996         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13997         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13998       else
13999         ld_shlibs_F77=no
14000       fi
14001       ;;
14002
14003     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14004       case `$LD -v 2>&1` in
14005         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14006         ld_shlibs_F77=no
14007         cat <<_LT_EOF 1>&2
14008
14009 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14010 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14011 *** is disabling shared libraries support.  We urge you to upgrade GNU
14012 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14013 *** your PATH or compiler configuration so that the native linker is
14014 *** used, and then restart.
14015
14016 _LT_EOF
14017         ;;
14018         *)
14019           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14020             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14021             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14022             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14023           else
14024             ld_shlibs_F77=no
14025           fi
14026         ;;
14027       esac
14028       ;;
14029
14030     sunos4*)
14031       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14032       wlarc=
14033       hardcode_direct_F77=yes
14034       hardcode_shlibpath_var_F77=no
14035       ;;
14036
14037     *)
14038       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14039         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14040         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14041       else
14042         ld_shlibs_F77=no
14043       fi
14044       ;;
14045     esac
14046
14047     if test "$ld_shlibs_F77" = no; then
14048       runpath_var=
14049       hardcode_libdir_flag_spec_F77=
14050       export_dynamic_flag_spec_F77=
14051       whole_archive_flag_spec_F77=
14052     fi
14053   else
14054     # PORTME fill in a description of your system's linker (not GNU ld)
14055     case $host_os in
14056     aix3*)
14057       allow_undefined_flag_F77=unsupported
14058       always_export_symbols_F77=yes
14059       archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14060       # Note: this linker hardcodes the directories in LIBPATH if there
14061       # are no directories specified by -L.
14062       hardcode_minus_L_F77=yes
14063       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14064         # Neither direct hardcoding nor static linking is supported with a
14065         # broken collect2.
14066         hardcode_direct_F77=unsupported
14067       fi
14068       ;;
14069
14070     aix4* | aix5*)
14071       if test "$host_cpu" = ia64; then
14072         # On IA64, the linker does run time linking by default, so we don't
14073         # have to do anything special.
14074         aix_use_runtimelinking=no
14075         exp_sym_flag='-Bexport'
14076         no_entry_flag=""
14077       else
14078         # If we're using GNU nm, then we don't want the "-C" option.
14079         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14080         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14081           export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14082         else
14083           export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14084         fi
14085         aix_use_runtimelinking=no
14086
14087         # Test if we are trying to use run time linking or normal
14088         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14089         # need to do runtime linking.
14090         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14091           for ld_flag in $LDFLAGS; do
14092           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14093             aix_use_runtimelinking=yes
14094             break
14095           fi
14096           done
14097           ;;
14098         esac
14099
14100         exp_sym_flag='-bexport'
14101         no_entry_flag='-bnoentry'
14102       fi
14103
14104       # When large executables or shared objects are built, AIX ld can
14105       # have problems creating the table of contents.  If linking a library
14106       # or program results in "error TOC overflow" add -mminimal-toc to
14107       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14108       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14109
14110       archive_cmds_F77=''
14111       hardcode_direct_F77=yes
14112       hardcode_libdir_separator_F77=':'
14113       link_all_deplibs_F77=yes
14114
14115       if test "$GCC" = yes; then
14116         case $host_os in aix4.[012]|aix4.[012].*)
14117         # We only want to do this on AIX 4.2 and lower, the check
14118         # below for broken collect2 doesn't work under 4.3+
14119           collect2name=`${CC} -print-prog-name=collect2`
14120           if test -f "$collect2name" && \
14121            strings "$collect2name" | grep resolve_lib_name >/dev/null
14122           then
14123           # We have reworked collect2
14124           hardcode_direct_F77=yes
14125           else
14126           # We have old collect2
14127           hardcode_direct_F77=unsupported
14128           # It fails to find uninstalled libraries when the uninstalled
14129           # path is not listed in the libpath.  Setting hardcode_minus_L
14130           # to unsupported forces relinking
14131           hardcode_minus_L_F77=yes
14132           hardcode_libdir_flag_spec_F77='-L$libdir'
14133           hardcode_libdir_separator_F77=
14134           fi
14135           ;;
14136         esac
14137         shared_flag='-shared'
14138         if test "$aix_use_runtimelinking" = yes; then
14139           shared_flag="$shared_flag "'${wl}-G'
14140         fi
14141       else
14142         # not using gcc
14143         if test "$host_cpu" = ia64; then
14144         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14145         # chokes on -Wl,-G. The following line is correct:
14146           shared_flag='-G'
14147         else
14148           if test "$aix_use_runtimelinking" = yes; then
14149             shared_flag='${wl}-G'
14150           else
14151             shared_flag='${wl}-bM:SRE'
14152           fi
14153         fi
14154       fi
14155
14156       # It seems that -bexpall does not export symbols beginning with
14157       # underscore (_), so it is better to generate a list of symbols to export.
14158       always_export_symbols_F77=yes
14159       if test "$aix_use_runtimelinking" = yes; then
14160         # Warning - without using the other runtime loading flags (-brtl),
14161         # -berok will link without error, but may produce a broken library.
14162         allow_undefined_flag_F77='-berok'
14163        # Determine the default libpath from the value encoded in an empty executable.
14164        cat >conftest.$ac_ext <<_ACEOF
14165       program main
14166
14167       end
14168 _ACEOF
14169 rm -f conftest.$ac_objext conftest$ac_exeext
14170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14171   (eval $ac_link) 2>conftest.er1
14172   ac_status=$?
14173   grep -v '^ *+' conftest.er1 >conftest.err
14174   rm -f conftest.er1
14175   cat conftest.err >&5
14176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14177   (exit $ac_status); } &&
14178          { ac_try='test -z "$ac_f77_werror_flag"
14179                          || test ! -s conftest.err'
14180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14181   (eval $ac_try) 2>&5
14182   ac_status=$?
14183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184   (exit $ac_status); }; } &&
14185          { ac_try='test -s conftest$ac_exeext'
14186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14187   (eval $ac_try) 2>&5
14188   ac_status=$?
14189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14190   (exit $ac_status); }; }; then
14191
14192 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14193 }'`
14194 # Check for a 64-bit object if we didn't find anything.
14195 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; }
14196 }'`; fi
14197 else
14198   echo "$as_me: failed program was:" >&5
14199 sed 's/^/| /' conftest.$ac_ext >&5
14200
14201 fi
14202 rm -f conftest.err conftest.$ac_objext \
14203       conftest$ac_exeext conftest.$ac_ext
14204 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14205
14206        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14207         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14208        else
14209         if test "$host_cpu" = ia64; then
14210           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14211           allow_undefined_flag_F77="-z nodefs"
14212           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14213         else
14214          # Determine the default libpath from the value encoded in an empty executable.
14215          cat >conftest.$ac_ext <<_ACEOF
14216       program main
14217
14218       end
14219 _ACEOF
14220 rm -f conftest.$ac_objext conftest$ac_exeext
14221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14222   (eval $ac_link) 2>conftest.er1
14223   ac_status=$?
14224   grep -v '^ *+' conftest.er1 >conftest.err
14225   rm -f conftest.er1
14226   cat conftest.err >&5
14227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14228   (exit $ac_status); } &&
14229          { ac_try='test -z "$ac_f77_werror_flag"
14230                          || test ! -s conftest.err'
14231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14232   (eval $ac_try) 2>&5
14233   ac_status=$?
14234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14235   (exit $ac_status); }; } &&
14236          { ac_try='test -s conftest$ac_exeext'
14237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14238   (eval $ac_try) 2>&5
14239   ac_status=$?
14240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241   (exit $ac_status); }; }; then
14242
14243 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14244 }'`
14245 # Check for a 64-bit object if we didn't find anything.
14246 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; }
14247 }'`; fi
14248 else
14249   echo "$as_me: failed program was:" >&5
14250 sed 's/^/| /' conftest.$ac_ext >&5
14251
14252 fi
14253 rm -f conftest.err conftest.$ac_objext \
14254       conftest$ac_exeext conftest.$ac_ext
14255 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14256
14257          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14258           # Warning - without using the other run time loading flags,
14259           # -berok will link without error, but may produce a broken library.
14260           no_undefined_flag_F77=' ${wl}-bernotok'
14261           allow_undefined_flag_F77=' ${wl}-berok'
14262           # Exported symbols can be pulled into shared objects from archives
14263           whole_archive_flag_spec_F77='$convenience'
14264           archive_cmds_need_lc_F77=yes
14265           # This is similar to how AIX traditionally builds its shared libraries.
14266           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14267         fi
14268       fi
14269       ;;
14270
14271     amigaos*)
14272       archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
14273       hardcode_libdir_flag_spec_F77='-L$libdir'
14274       hardcode_minus_L_F77=yes
14275       # see comment about different semantics on the GNU ld section
14276       ld_shlibs_F77=no
14277       ;;
14278
14279     bsdi[45]*)
14280       export_dynamic_flag_spec_F77=-rdynamic
14281       ;;
14282
14283     cygwin* | mingw* | pw32*)
14284       # When not using gcc, we currently assume that we are using
14285       # Microsoft Visual C++.
14286       # hardcode_libdir_flag_spec is actually meaningless, as there is
14287       # no search path for DLLs.
14288       hardcode_libdir_flag_spec_F77=' '
14289       allow_undefined_flag_F77=unsupported
14290       # Tell ltmain to make .lib files, not .a files.
14291       libext=lib
14292       # Tell ltmain to make .dll files, not .so files.
14293       shrext_cmds=".dll"
14294       # FIXME: Setting linknames here is a bad hack.
14295       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14296       # The linker will automatically build a .lib file if we build a DLL.
14297       old_archive_From_new_cmds_F77='true'
14298       # FIXME: Should let the user specify the lib program.
14299       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14300       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14301       enable_shared_with_static_runtimes_F77=yes
14302       ;;
14303
14304     darwin* | rhapsody*)
14305       case $host_os in
14306         rhapsody* | darwin1.[012])
14307          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14308          ;;
14309        *) # Darwin 1.3 on
14310          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14311            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14312          else
14313            case ${MACOSX_DEPLOYMENT_TARGET} in
14314              10.[012])
14315                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14316                ;;
14317              10.*)
14318                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14319                ;;
14320            esac
14321          fi
14322          ;;
14323       esac
14324       archive_cmds_need_lc_F77=no
14325       hardcode_direct_F77=no
14326       hardcode_automatic_F77=yes
14327       hardcode_shlibpath_var_F77=unsupported
14328       whole_archive_flag_spec_F77=''
14329       link_all_deplibs_F77=yes
14330     if test "$GCC" = yes ; then
14331         output_verbose_link_cmd='echo'
14332         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14333       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14334       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14335       archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14336       module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14337     else
14338       case $cc_basename in
14339         xlc*)
14340          output_verbose_link_cmd='echo'
14341          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14342          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14343           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14344          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14345           module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14346           ;;
14347        *)
14348          ld_shlibs_F77=no
14349           ;;
14350       esac
14351     fi
14352       ;;
14353
14354     dgux*)
14355       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14356       hardcode_libdir_flag_spec_F77='-L$libdir'
14357       hardcode_shlibpath_var_F77=no
14358       ;;
14359
14360     freebsd1*)
14361       ld_shlibs_F77=no
14362       ;;
14363
14364     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14365     # support.  Future versions do this automatically, but an explicit c++rt0.o
14366     # does not break anything, and helps significantly (at the cost of a little
14367     # extra space).
14368     freebsd2.2*)
14369       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14370       hardcode_libdir_flag_spec_F77='-R$libdir'
14371       hardcode_direct_F77=yes
14372       hardcode_shlibpath_var_F77=no
14373       ;;
14374
14375     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14376     freebsd2*)
14377       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14378       hardcode_direct_F77=yes
14379       hardcode_minus_L_F77=yes
14380       hardcode_shlibpath_var_F77=no
14381       ;;
14382
14383     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14384     freebsd* | kfreebsd*-gnu | dragonfly*)
14385       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14386       hardcode_libdir_flag_spec_F77='-R$libdir'
14387       hardcode_direct_F77=yes
14388       hardcode_shlibpath_var_F77=no
14389       ;;
14390
14391     hpux9*)
14392       if test "$GCC" = yes; then
14393         archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14394       else
14395         archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14396       fi
14397       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14398       hardcode_libdir_separator_F77=:
14399       hardcode_direct_F77=yes
14400
14401       # hardcode_minus_L: Not really in the search PATH,
14402       # but as the default location of the library.
14403       hardcode_minus_L_F77=yes
14404       export_dynamic_flag_spec_F77='${wl}-E'
14405       ;;
14406
14407     hpux10*)
14408       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14409         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14410       else
14411         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14412       fi
14413       if test "$with_gnu_ld" = no; then
14414         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14415         hardcode_libdir_separator_F77=:
14416
14417         hardcode_direct_F77=yes
14418         export_dynamic_flag_spec_F77='${wl}-E'
14419
14420         # hardcode_minus_L: Not really in the search PATH,
14421         # but as the default location of the library.
14422         hardcode_minus_L_F77=yes
14423       fi
14424       ;;
14425
14426     hpux11*)
14427       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14428         case $host_cpu in
14429         hppa*64*)
14430           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14431           ;;
14432         ia64*)
14433           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14434           ;;
14435         *)
14436           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14437           ;;
14438         esac
14439       else
14440         case $host_cpu in
14441         hppa*64*)
14442           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14443           ;;
14444         ia64*)
14445           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14446           ;;
14447         *)
14448           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14449           ;;
14450         esac
14451       fi
14452       if test "$with_gnu_ld" = no; then
14453         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14454         hardcode_libdir_separator_F77=:
14455
14456         case $host_cpu in
14457         hppa*64*|ia64*)
14458           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14459           hardcode_direct_F77=no
14460           hardcode_shlibpath_var_F77=no
14461           ;;
14462         *)
14463           hardcode_direct_F77=yes
14464           export_dynamic_flag_spec_F77='${wl}-E'
14465
14466           # hardcode_minus_L: Not really in the search PATH,
14467           # but as the default location of the library.
14468           hardcode_minus_L_F77=yes
14469           ;;
14470         esac
14471       fi
14472       ;;
14473
14474     irix5* | irix6* | nonstopux*)
14475       if test "$GCC" = yes; then
14476         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14477       else
14478         archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14479         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14480       fi
14481       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14482       hardcode_libdir_separator_F77=:
14483       link_all_deplibs_F77=yes
14484       ;;
14485
14486     netbsd*)
14487       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14488         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14489       else
14490         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14491       fi
14492       hardcode_libdir_flag_spec_F77='-R$libdir'
14493       hardcode_direct_F77=yes
14494       hardcode_shlibpath_var_F77=no
14495       ;;
14496
14497     newsos6)
14498       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14499       hardcode_direct_F77=yes
14500       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14501       hardcode_libdir_separator_F77=:
14502       hardcode_shlibpath_var_F77=no
14503       ;;
14504
14505     openbsd*)
14506       hardcode_direct_F77=yes
14507       hardcode_shlibpath_var_F77=no
14508       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14509         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14510         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14511         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14512         export_dynamic_flag_spec_F77='${wl}-E'
14513       else
14514        case $host_os in
14515          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14516            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14517            hardcode_libdir_flag_spec_F77='-R$libdir'
14518            ;;
14519          *)
14520            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14521            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14522            ;;
14523        esac
14524       fi
14525       ;;
14526
14527     os2*)
14528       hardcode_libdir_flag_spec_F77='-L$libdir'
14529       hardcode_minus_L_F77=yes
14530       allow_undefined_flag_F77=unsupported
14531       archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
14532       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14533       ;;
14534
14535     osf3*)
14536       if test "$GCC" = yes; then
14537         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14538         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14539       else
14540         allow_undefined_flag_F77=' -expect_unresolved \*'
14541         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14542       fi
14543       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14544       hardcode_libdir_separator_F77=:
14545       ;;
14546
14547     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14548       if test "$GCC" = yes; then
14549         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14550         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14551         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14552       else
14553         allow_undefined_flag_F77=' -expect_unresolved \*'
14554         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14555         archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14556         $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'
14557
14558         # Both c and cxx compiler support -rpath directly
14559         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14560       fi
14561       hardcode_libdir_separator_F77=:
14562       ;;
14563
14564     solaris*)
14565       no_undefined_flag_F77=' -z text'
14566       if test "$GCC" = yes; then
14567         wlarc='${wl}'
14568         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14569         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14570           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14571       else
14572         wlarc=''
14573         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14574         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14575         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14576       fi
14577       hardcode_libdir_flag_spec_F77='-R$libdir'
14578       hardcode_shlibpath_var_F77=no
14579       case $host_os in
14580       solaris2.[0-5] | solaris2.[0-5].*) ;;
14581       *)
14582         # The compiler driver will combine linker options so we
14583         # cannot just pass the convience library names through
14584         # without $wl, iff we do not link with $LD.
14585         # Luckily, gcc supports the same syntax we need for Sun Studio.
14586         # Supported since Solaris 2.6 (maybe 2.5.1?)
14587         case $wlarc in
14588         '')
14589           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14590         *)
14591           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14592         esac ;;
14593       esac
14594       link_all_deplibs_F77=yes
14595       ;;
14596
14597     sunos4*)
14598       if test "x$host_vendor" = xsequent; then
14599         # Use $CC to link under sequent, because it throws in some extra .o
14600         # files that make .init and .fini sections work.
14601         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14602       else
14603         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14604       fi
14605       hardcode_libdir_flag_spec_F77='-L$libdir'
14606       hardcode_direct_F77=yes
14607       hardcode_minus_L_F77=yes
14608       hardcode_shlibpath_var_F77=no
14609       ;;
14610
14611     sysv4)
14612       case $host_vendor in
14613         sni)
14614           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14615           hardcode_direct_F77=yes # is this really true???
14616         ;;
14617         siemens)
14618           ## LD is ld it makes a PLAMLIB
14619           ## CC just makes a GrossModule.
14620           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14621           reload_cmds_F77='$CC -r -o $output$reload_objs'
14622           hardcode_direct_F77=no
14623         ;;
14624         motorola)
14625           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14626           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14627         ;;
14628       esac
14629       runpath_var='LD_RUN_PATH'
14630       hardcode_shlibpath_var_F77=no
14631       ;;
14632
14633     sysv4.3*)
14634       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14635       hardcode_shlibpath_var_F77=no
14636       export_dynamic_flag_spec_F77='-Bexport'
14637       ;;
14638
14639     sysv4*MP*)
14640       if test -d /usr/nec; then
14641         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14642         hardcode_shlibpath_var_F77=no
14643         runpath_var=LD_RUN_PATH
14644         hardcode_runpath_var=yes
14645         ld_shlibs_F77=yes
14646       fi
14647       ;;
14648
14649     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14650       no_undefined_flag_F77='${wl}-z,text'
14651       archive_cmds_need_lc_F77=no
14652       hardcode_shlibpath_var_F77=no
14653       runpath_var='LD_RUN_PATH'
14654
14655       if test "$GCC" = yes; then
14656         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14657         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14658       else
14659         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14660         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14661       fi
14662       ;;
14663
14664     sysv5* | sco3.2v5* | sco5v6*)
14665       # Note: We can NOT use -z defs as we might desire, because we do not
14666       # link with -lc, and that would cause any symbols used from libc to
14667       # always be unresolved, which means just about no library would
14668       # ever link correctly.  If we're not using GNU ld we use -z text
14669       # though, which does catch some bad symbols but isn't as heavy-handed
14670       # as -z defs.
14671       no_undefined_flag_F77='${wl}-z,text'
14672       allow_undefined_flag_F77='${wl}-z,nodefs'
14673       archive_cmds_need_lc_F77=no
14674       hardcode_shlibpath_var_F77=no
14675       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14676       hardcode_libdir_separator_F77=':'
14677       link_all_deplibs_F77=yes
14678       export_dynamic_flag_spec_F77='${wl}-Bexport'
14679       runpath_var='LD_RUN_PATH'
14680
14681       if test "$GCC" = yes; then
14682         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14683         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14684       else
14685         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14686         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14687       fi
14688       ;;
14689
14690     uts4*)
14691       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14692       hardcode_libdir_flag_spec_F77='-L$libdir'
14693       hardcode_shlibpath_var_F77=no
14694       ;;
14695
14696     *)
14697       ld_shlibs_F77=no
14698       ;;
14699     esac
14700   fi
14701
14702 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14703 echo "${ECHO_T}$ld_shlibs_F77" >&6
14704 test "$ld_shlibs_F77" = no && can_build_shared=no
14705
14706 #
14707 # Do we need to explicitly link libc?
14708 #
14709 case "x$archive_cmds_need_lc_F77" in
14710 x|xyes)
14711   # Assume -lc should be added
14712   archive_cmds_need_lc_F77=yes
14713
14714   if test "$enable_shared" = yes && test "$GCC" = yes; then
14715     case $archive_cmds_F77 in
14716     *'~'*)
14717       # FIXME: we may have to deal with multi-command sequences.
14718       ;;
14719     '$CC '*)
14720       # Test whether the compiler implicitly links with -lc since on some
14721       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14722       # to ld, don't add -lc before -lgcc.
14723       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14724 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14725       $rm conftest*
14726       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14727
14728       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14729   (eval $ac_compile) 2>&5
14730   ac_status=$?
14731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14732   (exit $ac_status); } 2>conftest.err; then
14733         soname=conftest
14734         lib=conftest
14735         libobjs=conftest.$ac_objext
14736         deplibs=
14737         wl=$lt_prog_compiler_wl_F77
14738         pic_flag=$lt_prog_compiler_pic_F77
14739         compiler_flags=-v
14740         linker_flags=-v
14741         verstring=
14742         output_objdir=.
14743         libname=conftest
14744         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14745         allow_undefined_flag_F77=
14746         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14747   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14748   ac_status=$?
14749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750   (exit $ac_status); }
14751         then
14752           archive_cmds_need_lc_F77=no
14753         else
14754           archive_cmds_need_lc_F77=yes
14755         fi
14756         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14757       else
14758         cat conftest.err 1>&5
14759       fi
14760       $rm conftest*
14761       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14762 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14763       ;;
14764     esac
14765   fi
14766   ;;
14767 esac
14768
14769 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14770 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14771 library_names_spec=
14772 libname_spec='lib$name'
14773 soname_spec=
14774 shrext_cmds=".so"
14775 postinstall_cmds=
14776 postuninstall_cmds=
14777 finish_cmds=
14778 finish_eval=
14779 shlibpath_var=
14780 shlibpath_overrides_runpath=unknown
14781 version_type=none
14782 dynamic_linker="$host_os ld.so"
14783 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14784 if test "$GCC" = yes; then
14785   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14786   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14787     # if the path contains ";" then we assume it to be the separator
14788     # otherwise default to the standard path separator (i.e. ":") - it is
14789     # assumed that no part of a normal pathname contains ";" but that should
14790     # okay in the real world where ";" in dirpaths is itself problematic.
14791     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14792   else
14793     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14794   fi
14795 else
14796   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14797 fi
14798 need_lib_prefix=unknown
14799 hardcode_into_libs=no
14800
14801 # when you set need_version to no, make sure it does not cause -set_version
14802 # flags to be left without arguments
14803 need_version=unknown
14804
14805 case $host_os in
14806 aix3*)
14807   version_type=linux
14808   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14809   shlibpath_var=LIBPATH
14810
14811   # AIX 3 has no versioning support, so we append a major version to the name.
14812   soname_spec='${libname}${release}${shared_ext}$major'
14813   ;;
14814
14815 aix4* | aix5*)
14816   version_type=linux
14817   need_lib_prefix=no
14818   need_version=no
14819   hardcode_into_libs=yes
14820   if test "$host_cpu" = ia64; then
14821     # AIX 5 supports IA64
14822     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14823     shlibpath_var=LD_LIBRARY_PATH
14824   else
14825     # With GCC up to 2.95.x, collect2 would create an import file
14826     # for dependence libraries.  The import file would start with
14827     # the line `#! .'.  This would cause the generated library to
14828     # depend on `.', always an invalid library.  This was fixed in
14829     # development snapshots of GCC prior to 3.0.
14830     case $host_os in
14831       aix4 | aix4.[01] | aix4.[01].*)
14832       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14833            echo ' yes '
14834            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14835         :
14836       else
14837         can_build_shared=no
14838       fi
14839       ;;
14840     esac
14841     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14842     # soname into executable. Probably we can add versioning support to
14843     # collect2, so additional links can be useful in future.
14844     if test "$aix_use_runtimelinking" = yes; then
14845       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14846       # instead of lib<name>.a to let people know that these are not
14847       # typical AIX shared libraries.
14848       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14849     else
14850       # We preserve .a as extension for shared libraries through AIX4.2
14851       # and later when we are not doing run time linking.
14852       library_names_spec='${libname}${release}.a $libname.a'
14853       soname_spec='${libname}${release}${shared_ext}$major'
14854     fi
14855     shlibpath_var=LIBPATH
14856   fi
14857   ;;
14858
14859 amigaos*)
14860   library_names_spec='$libname.ixlibrary $libname.a'
14861   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14862   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'
14863   ;;
14864
14865 beos*)
14866   library_names_spec='${libname}${shared_ext}'
14867   dynamic_linker="$host_os ld.so"
14868   shlibpath_var=LIBRARY_PATH
14869   ;;
14870
14871 bsdi[45]*)
14872   version_type=linux
14873   need_version=no
14874   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14875   soname_spec='${libname}${release}${shared_ext}$major'
14876   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14877   shlibpath_var=LD_LIBRARY_PATH
14878   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14879   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14880   # the default ld.so.conf also contains /usr/contrib/lib and
14881   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14882   # libtool to hard-code these into programs
14883   ;;
14884
14885 cygwin* | mingw* | pw32*)
14886   version_type=windows
14887   shrext_cmds=".dll"
14888   need_version=no
14889   need_lib_prefix=no
14890
14891   case $GCC,$host_os in
14892   yes,cygwin* | yes,mingw* | yes,pw32*)
14893     library_names_spec='$libname.dll.a'
14894     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14895     postinstall_cmds='base_file=`basename \${file}`~
14896       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14897       dldir=$destdir/`dirname \$dlpath`~
14898       test -d \$dldir || mkdir -p \$dldir~
14899       $install_prog $dir/$dlname \$dldir/$dlname~
14900       chmod a+x \$dldir/$dlname'
14901     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14902       dlpath=$dir/\$dldll~
14903        $rm \$dlpath'
14904     shlibpath_overrides_runpath=yes
14905
14906     case $host_os in
14907     cygwin*)
14908       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14909       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14910       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14911       ;;
14912     mingw*)
14913       # MinGW DLLs use traditional 'lib' prefix
14914       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14915       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14916       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14917         # It is most probably a Windows format PATH printed by
14918         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14919         # path with ; separators, and with drive letters. We can handle the
14920         # drive letters (cygwin fileutils understands them), so leave them,
14921         # especially as we might pass files found there to a mingw objdump,
14922         # which wouldn't understand a cygwinified path. Ahh.
14923         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14924       else
14925         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14926       fi
14927       ;;
14928     pw32*)
14929       # pw32 DLLs use 'pw' prefix rather than 'lib'
14930       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14931       ;;
14932     esac
14933     ;;
14934
14935   *)
14936     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14937     ;;
14938   esac
14939   dynamic_linker='Win32 ld.exe'
14940   # FIXME: first we should search . and the directory the executable is in
14941   shlibpath_var=PATH
14942   ;;
14943
14944 darwin* | rhapsody*)
14945   dynamic_linker="$host_os dyld"
14946   version_type=darwin
14947   need_lib_prefix=no
14948   need_version=no
14949   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14950   soname_spec='${libname}${release}${major}$shared_ext'
14951   shlibpath_overrides_runpath=yes
14952   shlibpath_var=DYLD_LIBRARY_PATH
14953   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14954   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14955   if test "$GCC" = yes; then
14956     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"`
14957   else
14958     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14959   fi
14960   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14961   ;;
14962
14963 dgux*)
14964   version_type=linux
14965   need_lib_prefix=no
14966   need_version=no
14967   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14968   soname_spec='${libname}${release}${shared_ext}$major'
14969   shlibpath_var=LD_LIBRARY_PATH
14970   ;;
14971
14972 freebsd1*)
14973   dynamic_linker=no
14974   ;;
14975
14976 kfreebsd*-gnu)
14977   version_type=linux
14978   need_lib_prefix=no
14979   need_version=no
14980   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14981   soname_spec='${libname}${release}${shared_ext}$major'
14982   shlibpath_var=LD_LIBRARY_PATH
14983   shlibpath_overrides_runpath=no
14984   hardcode_into_libs=yes
14985   dynamic_linker='GNU ld.so'
14986   ;;
14987
14988 freebsd* | dragonfly*)
14989   # DragonFly does not have aout.  When/if they implement a new
14990   # versioning mechanism, adjust this.
14991   if test -x /usr/bin/objformat; then
14992     objformat=`/usr/bin/objformat`
14993   else
14994     case $host_os in
14995     freebsd[123]*) objformat=aout ;;
14996     *) objformat=elf ;;
14997     esac
14998   fi
14999   version_type=freebsd-$objformat
15000   case $version_type in
15001     freebsd-elf*)
15002       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15003       need_version=no
15004       need_lib_prefix=no
15005       ;;
15006     freebsd-*)
15007       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15008       need_version=yes
15009       ;;
15010   esac
15011   shlibpath_var=LD_LIBRARY_PATH
15012   case $host_os in
15013   freebsd2*)
15014     shlibpath_overrides_runpath=yes
15015     ;;
15016   freebsd3.[01]* | freebsdelf3.[01]*)
15017     shlibpath_overrides_runpath=yes
15018     hardcode_into_libs=yes
15019     ;;
15020   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15021   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15022     shlibpath_overrides_runpath=no
15023     hardcode_into_libs=yes
15024     ;;
15025   freebsd*) # from 4.6 on
15026     shlibpath_overrides_runpath=yes
15027     hardcode_into_libs=yes
15028     ;;
15029   esac
15030   ;;
15031
15032 gnu*)
15033   version_type=linux
15034   need_lib_prefix=no
15035   need_version=no
15036   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15037   soname_spec='${libname}${release}${shared_ext}$major'
15038   shlibpath_var=LD_LIBRARY_PATH
15039   hardcode_into_libs=yes
15040   ;;
15041
15042 hpux9* | hpux10* | hpux11*)
15043   # Give a soname corresponding to the major version so that dld.sl refuses to
15044   # link against other versions.
15045   version_type=sunos
15046   need_lib_prefix=no
15047   need_version=no
15048   case $host_cpu in
15049   ia64*)
15050     shrext_cmds='.so'
15051     hardcode_into_libs=yes
15052     dynamic_linker="$host_os dld.so"
15053     shlibpath_var=LD_LIBRARY_PATH
15054     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15055     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15056     soname_spec='${libname}${release}${shared_ext}$major'
15057     if test "X$HPUX_IA64_MODE" = X32; then
15058       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15059     else
15060       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15061     fi
15062     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15063     ;;
15064    hppa*64*)
15065      shrext_cmds='.sl'
15066      hardcode_into_libs=yes
15067      dynamic_linker="$host_os dld.sl"
15068      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15069      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15070      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15071      soname_spec='${libname}${release}${shared_ext}$major'
15072      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15073      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15074      ;;
15075    *)
15076     shrext_cmds='.sl'
15077     dynamic_linker="$host_os dld.sl"
15078     shlibpath_var=SHLIB_PATH
15079     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15080     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15081     soname_spec='${libname}${release}${shared_ext}$major'
15082     ;;
15083   esac
15084   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15085   postinstall_cmds='chmod 555 $lib'
15086   ;;
15087
15088 interix3*)
15089   version_type=linux
15090   need_lib_prefix=no
15091   need_version=no
15092   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15093   soname_spec='${libname}${release}${shared_ext}$major'
15094   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15095   shlibpath_var=LD_LIBRARY_PATH
15096   shlibpath_overrides_runpath=no
15097   hardcode_into_libs=yes
15098   ;;
15099
15100 irix5* | irix6* | nonstopux*)
15101   case $host_os in
15102     nonstopux*) version_type=nonstopux ;;
15103     *)
15104         if test "$lt_cv_prog_gnu_ld" = yes; then
15105                 version_type=linux
15106         else
15107                 version_type=irix
15108         fi ;;
15109   esac
15110   need_lib_prefix=no
15111   need_version=no
15112   soname_spec='${libname}${release}${shared_ext}$major'
15113   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15114   case $host_os in
15115   irix5* | nonstopux*)
15116     libsuff= shlibsuff=
15117     ;;
15118   *)
15119     case $LD in # libtool.m4 will add one of these switches to LD
15120     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15121       libsuff= shlibsuff= libmagic=32-bit;;
15122     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15123       libsuff=32 shlibsuff=N32 libmagic=N32;;
15124     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15125       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15126     *) libsuff= shlibsuff= libmagic=never-match;;
15127     esac
15128     ;;
15129   esac
15130   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15131   shlibpath_overrides_runpath=no
15132   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15133   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15134   hardcode_into_libs=yes
15135   ;;
15136
15137 # No shared lib support for Linux oldld, aout, or coff.
15138 linux*oldld* | linux*aout* | linux*coff*)
15139   dynamic_linker=no
15140   ;;
15141
15142 # This must be Linux ELF.
15143 linux*)
15144   version_type=linux
15145   need_lib_prefix=no
15146   need_version=no
15147   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15148   soname_spec='${libname}${release}${shared_ext}$major'
15149   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15150   shlibpath_var=LD_LIBRARY_PATH
15151   shlibpath_overrides_runpath=no
15152   # This implies no fast_install, which is unacceptable.
15153   # Some rework will be needed to allow for fast_install
15154   # before this can be enabled.
15155   hardcode_into_libs=yes
15156
15157   # Append ld.so.conf contents to the search path
15158   if test -f /etc/ld.so.conf; then
15159     lt_ld_extra=`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' ' '`
15160     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15161   fi
15162
15163   # We used to test for /lib/ld.so.1 and disable shared libraries on
15164   # powerpc, because MkLinux only supported shared libraries with the
15165   # GNU dynamic linker.  Since this was broken with cross compilers,
15166   # most powerpc-linux boxes support dynamic linking these days and
15167   # people can always --disable-shared, the test was removed, and we
15168   # assume the GNU/Linux dynamic linker is in use.
15169   dynamic_linker='GNU/Linux ld.so'
15170   ;;
15171
15172 knetbsd*-gnu)
15173   version_type=linux
15174   need_lib_prefix=no
15175   need_version=no
15176   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15177   soname_spec='${libname}${release}${shared_ext}$major'
15178   shlibpath_var=LD_LIBRARY_PATH
15179   shlibpath_overrides_runpath=no
15180   hardcode_into_libs=yes
15181   dynamic_linker='GNU ld.so'
15182   ;;
15183
15184 netbsd*)
15185   version_type=sunos
15186   need_lib_prefix=no
15187   need_version=no
15188   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15189     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15190     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15191     dynamic_linker='NetBSD (a.out) ld.so'
15192   else
15193     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15194     soname_spec='${libname}${release}${shared_ext}$major'
15195     dynamic_linker='NetBSD ld.elf_so'
15196   fi
15197   shlibpath_var=LD_LIBRARY_PATH
15198   shlibpath_overrides_runpath=yes
15199   hardcode_into_libs=yes
15200   ;;
15201
15202 newsos6)
15203   version_type=linux
15204   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15205   shlibpath_var=LD_LIBRARY_PATH
15206   shlibpath_overrides_runpath=yes
15207   ;;
15208
15209 nto-qnx*)
15210   version_type=linux
15211   need_lib_prefix=no
15212   need_version=no
15213   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15214   soname_spec='${libname}${release}${shared_ext}$major'
15215   shlibpath_var=LD_LIBRARY_PATH
15216   shlibpath_overrides_runpath=yes
15217   ;;
15218
15219 openbsd*)
15220   version_type=sunos
15221   sys_lib_dlsearch_path_spec="/usr/lib"
15222   need_lib_prefix=no
15223   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15224   case $host_os in
15225     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15226     *)                         need_version=no  ;;
15227   esac
15228   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15229   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15230   shlibpath_var=LD_LIBRARY_PATH
15231   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15232     case $host_os in
15233       openbsd2.[89] | openbsd2.[89].*)
15234         shlibpath_overrides_runpath=no
15235         ;;
15236       *)
15237         shlibpath_overrides_runpath=yes
15238         ;;
15239       esac
15240   else
15241     shlibpath_overrides_runpath=yes
15242   fi
15243   ;;
15244
15245 os2*)
15246   libname_spec='$name'
15247   shrext_cmds=".dll"
15248   need_lib_prefix=no
15249   library_names_spec='$libname${shared_ext} $libname.a'
15250   dynamic_linker='OS/2 ld.exe'
15251   shlibpath_var=LIBPATH
15252   ;;
15253
15254 osf3* | osf4* | osf5*)
15255   version_type=osf
15256   need_lib_prefix=no
15257   need_version=no
15258   soname_spec='${libname}${release}${shared_ext}$major'
15259   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15260   shlibpath_var=LD_LIBRARY_PATH
15261   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15262   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15263   ;;
15264
15265 solaris*)
15266   version_type=linux
15267   need_lib_prefix=no
15268   need_version=no
15269   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15270   soname_spec='${libname}${release}${shared_ext}$major'
15271   shlibpath_var=LD_LIBRARY_PATH
15272   shlibpath_overrides_runpath=yes
15273   hardcode_into_libs=yes
15274   # ldd complains unless libraries are executable
15275   postinstall_cmds='chmod +x $lib'
15276   ;;
15277
15278 sunos4*)
15279   version_type=sunos
15280   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15281   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15282   shlibpath_var=LD_LIBRARY_PATH
15283   shlibpath_overrides_runpath=yes
15284   if test "$with_gnu_ld" = yes; then
15285     need_lib_prefix=no
15286   fi
15287   need_version=yes
15288   ;;
15289
15290 sysv4 | sysv4.3*)
15291   version_type=linux
15292   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15293   soname_spec='${libname}${release}${shared_ext}$major'
15294   shlibpath_var=LD_LIBRARY_PATH
15295   case $host_vendor in
15296     sni)
15297       shlibpath_overrides_runpath=no
15298       need_lib_prefix=no
15299       export_dynamic_flag_spec='${wl}-Blargedynsym'
15300       runpath_var=LD_RUN_PATH
15301       ;;
15302     siemens)
15303       need_lib_prefix=no
15304       ;;
15305     motorola)
15306       need_lib_prefix=no
15307       need_version=no
15308       shlibpath_overrides_runpath=no
15309       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15310       ;;
15311   esac
15312   ;;
15313
15314 sysv4*MP*)
15315   if test -d /usr/nec ;then
15316     version_type=linux
15317     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15318     soname_spec='$libname${shared_ext}.$major'
15319     shlibpath_var=LD_LIBRARY_PATH
15320   fi
15321   ;;
15322
15323 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15324   version_type=freebsd-elf
15325   need_lib_prefix=no
15326   need_version=no
15327   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15328   soname_spec='${libname}${release}${shared_ext}$major'
15329   shlibpath_var=LD_LIBRARY_PATH
15330   hardcode_into_libs=yes
15331   if test "$with_gnu_ld" = yes; then
15332     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15333     shlibpath_overrides_runpath=no
15334   else
15335     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15336     shlibpath_overrides_runpath=yes
15337     case $host_os in
15338       sco3.2v5*)
15339         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15340         ;;
15341     esac
15342   fi
15343   sys_lib_dlsearch_path_spec='/usr/lib'
15344   ;;
15345
15346 uts4*)
15347   version_type=linux
15348   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15349   soname_spec='${libname}${release}${shared_ext}$major'
15350   shlibpath_var=LD_LIBRARY_PATH
15351   ;;
15352
15353 *)
15354   dynamic_linker=no
15355   ;;
15356 esac
15357 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15358 echo "${ECHO_T}$dynamic_linker" >&6
15359 test "$dynamic_linker" = no && can_build_shared=no
15360
15361 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15362 if test "$GCC" = yes; then
15363   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15364 fi
15365
15366 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15367 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15368 hardcode_action_F77=
15369 if test -n "$hardcode_libdir_flag_spec_F77" || \
15370    test -n "$runpath_var_F77" || \
15371    test "X$hardcode_automatic_F77" = "Xyes" ; then
15372
15373   # We can hardcode non-existant directories.
15374   if test "$hardcode_direct_F77" != no &&
15375      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15376      # have to relink, otherwise we might link with an installed library
15377      # when we should be linking with a yet-to-be-installed one
15378      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15379      test "$hardcode_minus_L_F77" != no; then
15380     # Linking always hardcodes the temporary library directory.
15381     hardcode_action_F77=relink
15382   else
15383     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15384     hardcode_action_F77=immediate
15385   fi
15386 else
15387   # We cannot hardcode anything, or else we can only hardcode existing
15388   # directories.
15389   hardcode_action_F77=unsupported
15390 fi
15391 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15392 echo "${ECHO_T}$hardcode_action_F77" >&6
15393
15394 if test "$hardcode_action_F77" = relink; then
15395   # Fast installation is not supported
15396   enable_fast_install=no
15397 elif test "$shlibpath_overrides_runpath" = yes ||
15398      test "$enable_shared" = no; then
15399   # Fast installation is not necessary
15400   enable_fast_install=needless
15401 fi
15402
15403
15404 # The else clause should only fire when bootstrapping the
15405 # libtool distribution, otherwise you forgot to ship ltmain.sh
15406 # with your package, and you will get complaints that there are
15407 # no rules to generate ltmain.sh.
15408 if test -f "$ltmain"; then
15409   # See if we are running on zsh, and set the options which allow our commands through
15410   # without removal of \ escapes.
15411   if test -n "${ZSH_VERSION+set}" ; then
15412     setopt NO_GLOB_SUBST
15413   fi
15414   # Now quote all the things that may contain metacharacters while being
15415   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15416   # variables and quote the copies for generation of the libtool script.
15417   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15418     SED SHELL STRIP \
15419     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15420     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15421     deplibs_check_method reload_flag reload_cmds need_locks \
15422     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15423     lt_cv_sys_global_symbol_to_c_name_address \
15424     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15425     old_postinstall_cmds old_postuninstall_cmds \
15426     compiler_F77 \
15427     CC_F77 \
15428     LD_F77 \
15429     lt_prog_compiler_wl_F77 \
15430     lt_prog_compiler_pic_F77 \
15431     lt_prog_compiler_static_F77 \
15432     lt_prog_compiler_no_builtin_flag_F77 \
15433     export_dynamic_flag_spec_F77 \
15434     thread_safe_flag_spec_F77 \
15435     whole_archive_flag_spec_F77 \
15436     enable_shared_with_static_runtimes_F77 \
15437     old_archive_cmds_F77 \
15438     old_archive_from_new_cmds_F77 \
15439     predep_objects_F77 \
15440     postdep_objects_F77 \
15441     predeps_F77 \
15442     postdeps_F77 \
15443     compiler_lib_search_path_F77 \
15444     archive_cmds_F77 \
15445     archive_expsym_cmds_F77 \
15446     postinstall_cmds_F77 \
15447     postuninstall_cmds_F77 \
15448     old_archive_from_expsyms_cmds_F77 \
15449     allow_undefined_flag_F77 \
15450     no_undefined_flag_F77 \
15451     export_symbols_cmds_F77 \
15452     hardcode_libdir_flag_spec_F77 \
15453     hardcode_libdir_flag_spec_ld_F77 \
15454     hardcode_libdir_separator_F77 \
15455     hardcode_automatic_F77 \
15456     module_cmds_F77 \
15457     module_expsym_cmds_F77 \
15458     lt_cv_prog_compiler_c_o_F77 \
15459     exclude_expsyms_F77 \
15460     include_expsyms_F77; do
15461
15462     case $var in
15463     old_archive_cmds_F77 | \
15464     old_archive_from_new_cmds_F77 | \
15465     archive_cmds_F77 | \
15466     archive_expsym_cmds_F77 | \
15467     module_cmds_F77 | \
15468     module_expsym_cmds_F77 | \
15469     old_archive_from_expsyms_cmds_F77 | \
15470     export_symbols_cmds_F77 | \
15471     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15472     postinstall_cmds | postuninstall_cmds | \
15473     old_postinstall_cmds | old_postuninstall_cmds | \
15474     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15475       # Double-quote double-evaled strings.
15476       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15477       ;;
15478     *)
15479       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15480       ;;
15481     esac
15482   done
15483
15484   case $lt_echo in
15485   *'\$0 --fallback-echo"')
15486     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15487     ;;
15488   esac
15489
15490 cfgfile="$ofile"
15491
15492   cat <<__EOF__ >> "$cfgfile"
15493 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15494
15495 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15496
15497 # Shell to use when invoking shell scripts.
15498 SHELL=$lt_SHELL
15499
15500 # Whether or not to build shared libraries.
15501 build_libtool_libs=$enable_shared
15502
15503 # Whether or not to build static libraries.
15504 build_old_libs=$enable_static
15505
15506 # Whether or not to add -lc for building shared libraries.
15507 build_libtool_need_lc=$archive_cmds_need_lc_F77
15508
15509 # Whether or not to disallow shared libs when runtime libs are static
15510 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15511
15512 # Whether or not to optimize for fast installation.
15513 fast_install=$enable_fast_install
15514
15515 # The host system.
15516 host_alias=$host_alias
15517 host=$host
15518 host_os=$host_os
15519
15520 # The build system.
15521 build_alias=$build_alias
15522 build=$build
15523 build_os=$build_os
15524
15525 # An echo program that does not interpret backslashes.
15526 echo=$lt_echo
15527
15528 # The archiver.
15529 AR=$lt_AR
15530 AR_FLAGS=$lt_AR_FLAGS
15531
15532 # A C compiler.
15533 LTCC=$lt_LTCC
15534
15535 # LTCC compiler flags.
15536 LTCFLAGS=$lt_LTCFLAGS
15537
15538 # A language-specific compiler.
15539 CC=$lt_compiler_F77
15540
15541 # Is the compiler the GNU C compiler?
15542 with_gcc=$GCC_F77
15543
15544 # An ERE matcher.
15545 EGREP=$lt_EGREP
15546
15547 # The linker used to build libraries.
15548 LD=$lt_LD_F77
15549
15550 # Whether we need hard or soft links.
15551 LN_S=$lt_LN_S
15552
15553 # A BSD-compatible nm program.
15554 NM=$lt_NM
15555
15556 # A symbol stripping program
15557 STRIP=$lt_STRIP
15558
15559 # Used to examine libraries when file_magic_cmd begins "file"
15560 MAGIC_CMD=$MAGIC_CMD
15561
15562 # Used on cygwin: DLL creation program.
15563 DLLTOOL="$DLLTOOL"
15564
15565 # Used on cygwin: object dumper.
15566 OBJDUMP="$OBJDUMP"
15567
15568 # Used on cygwin: assembler.
15569 AS="$AS"
15570
15571 # The name of the directory that contains temporary libtool files.
15572 objdir=$objdir
15573
15574 # How to create reloadable object files.
15575 reload_flag=$lt_reload_flag
15576 reload_cmds=$lt_reload_cmds
15577
15578 # How to pass a linker flag through the compiler.
15579 wl=$lt_lt_prog_compiler_wl_F77
15580
15581 # Object file suffix (normally "o").
15582 objext="$ac_objext"
15583
15584 # Old archive suffix (normally "a").
15585 libext="$libext"
15586
15587 # Shared library suffix (normally ".so").
15588 shrext_cmds='$shrext_cmds'
15589
15590 # Executable file suffix (normally "").
15591 exeext="$exeext"
15592
15593 # Additional compiler flags for building library objects.
15594 pic_flag=$lt_lt_prog_compiler_pic_F77
15595 pic_mode=$pic_mode
15596
15597 # What is the maximum length of a command?
15598 max_cmd_len=$lt_cv_sys_max_cmd_len
15599
15600 # Does compiler simultaneously support -c and -o options?
15601 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15602
15603 # Must we lock files when doing compilation?
15604 need_locks=$lt_need_locks
15605
15606 # Do we need the lib prefix for modules?
15607 need_lib_prefix=$need_lib_prefix
15608
15609 # Do we need a version for libraries?
15610 need_version=$need_version
15611
15612 # Whether dlopen is supported.
15613 dlopen_support=$enable_dlopen
15614
15615 # Whether dlopen of programs is supported.
15616 dlopen_self=$enable_dlopen_self
15617
15618 # Whether dlopen of statically linked programs is supported.
15619 dlopen_self_static=$enable_dlopen_self_static
15620
15621 # Compiler flag to prevent dynamic linking.
15622 link_static_flag=$lt_lt_prog_compiler_static_F77
15623
15624 # Compiler flag to turn off builtin functions.
15625 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15626
15627 # Compiler flag to allow reflexive dlopens.
15628 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15629
15630 # Compiler flag to generate shared objects directly from archives.
15631 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15632
15633 # Compiler flag to generate thread-safe objects.
15634 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15635
15636 # Library versioning type.
15637 version_type=$version_type
15638
15639 # Format of library name prefix.
15640 libname_spec=$lt_libname_spec
15641
15642 # List of archive names.  First name is the real one, the rest are links.
15643 # The last name is the one that the linker finds with -lNAME.
15644 library_names_spec=$lt_library_names_spec
15645
15646 # The coded name of the library, if different from the real name.
15647 soname_spec=$lt_soname_spec
15648
15649 # Commands used to build and install an old-style archive.
15650 RANLIB=$lt_RANLIB
15651 old_archive_cmds=$lt_old_archive_cmds_F77
15652 old_postinstall_cmds=$lt_old_postinstall_cmds
15653 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15654
15655 # Create an old-style archive from a shared archive.
15656 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15657
15658 # Create a temporary old-style archive to link instead of a shared archive.
15659 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15660
15661 # Commands used to build and install a shared archive.
15662 archive_cmds=$lt_archive_cmds_F77
15663 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15664 postinstall_cmds=$lt_postinstall_cmds
15665 postuninstall_cmds=$lt_postuninstall_cmds
15666
15667 # Commands used to build a loadable module (assumed same as above if empty)
15668 module_cmds=$lt_module_cmds_F77
15669 module_expsym_cmds=$lt_module_expsym_cmds_F77
15670
15671 # Commands to strip libraries.
15672 old_striplib=$lt_old_striplib
15673 striplib=$lt_striplib
15674
15675 # Dependencies to place before the objects being linked to create a
15676 # shared library.
15677 predep_objects=$lt_predep_objects_F77
15678
15679 # Dependencies to place after the objects being linked to create a
15680 # shared library.
15681 postdep_objects=$lt_postdep_objects_F77
15682
15683 # Dependencies to place before the objects being linked to create a
15684 # shared library.
15685 predeps=$lt_predeps_F77
15686
15687 # Dependencies to place after the objects being linked to create a
15688 # shared library.
15689 postdeps=$lt_postdeps_F77
15690
15691 # The library search path used internally by the compiler when linking
15692 # a shared library.
15693 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15694
15695 # Method to check whether dependent libraries are shared objects.
15696 deplibs_check_method=$lt_deplibs_check_method
15697
15698 # Command to use when deplibs_check_method == file_magic.
15699 file_magic_cmd=$lt_file_magic_cmd
15700
15701 # Flag that allows shared libraries with undefined symbols to be built.
15702 allow_undefined_flag=$lt_allow_undefined_flag_F77
15703
15704 # Flag that forces no undefined symbols.
15705 no_undefined_flag=$lt_no_undefined_flag_F77
15706
15707 # Commands used to finish a libtool library installation in a directory.
15708 finish_cmds=$lt_finish_cmds
15709
15710 # Same as above, but a single script fragment to be evaled but not shown.
15711 finish_eval=$lt_finish_eval
15712
15713 # Take the output of nm and produce a listing of raw symbols and C names.
15714 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15715
15716 # Transform the output of nm in a proper C declaration
15717 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15718
15719 # Transform the output of nm in a C name address pair
15720 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15721
15722 # This is the shared library runtime path variable.
15723 runpath_var=$runpath_var
15724
15725 # This is the shared library path variable.
15726 shlibpath_var=$shlibpath_var
15727
15728 # Is shlibpath searched before the hard-coded library search path?
15729 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15730
15731 # How to hardcode a shared library path into an executable.
15732 hardcode_action=$hardcode_action_F77
15733
15734 # Whether we should hardcode library paths into libraries.
15735 hardcode_into_libs=$hardcode_into_libs
15736
15737 # Flag to hardcode \$libdir into a binary during linking.
15738 # This must work even if \$libdir does not exist.
15739 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15740
15741 # If ld is used when linking, flag to hardcode \$libdir into
15742 # a binary during linking. This must work even if \$libdir does
15743 # not exist.
15744 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15745
15746 # Whether we need a single -rpath flag with a separated argument.
15747 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15748
15749 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15750 # resulting binary.
15751 hardcode_direct=$hardcode_direct_F77
15752
15753 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15754 # resulting binary.
15755 hardcode_minus_L=$hardcode_minus_L_F77
15756
15757 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15758 # the resulting binary.
15759 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15760
15761 # Set to yes if building a shared library automatically hardcodes DIR into the library
15762 # and all subsequent libraries and executables linked against it.
15763 hardcode_automatic=$hardcode_automatic_F77
15764
15765 # Variables whose values should be saved in libtool wrapper scripts and
15766 # restored at relink time.
15767 variables_saved_for_relink="$variables_saved_for_relink"
15768
15769 # Whether libtool must link a program against all its dependency libraries.
15770 link_all_deplibs=$link_all_deplibs_F77
15771
15772 # Compile-time system search path for libraries
15773 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15774
15775 # Run-time system search path for libraries
15776 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15777
15778 # Fix the shell variable \$srcfile for the compiler.
15779 fix_srcfile_path="$fix_srcfile_path_F77"
15780
15781 # Set to yes if exported symbols are required.
15782 always_export_symbols=$always_export_symbols_F77
15783
15784 # The commands to list exported symbols.
15785 export_symbols_cmds=$lt_export_symbols_cmds_F77
15786
15787 # The commands to extract the exported symbol list from a shared archive.
15788 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15789
15790 # Symbols that should not be listed in the preloaded symbols.
15791 exclude_expsyms=$lt_exclude_expsyms_F77
15792
15793 # Symbols that must always be exported.
15794 include_expsyms=$lt_include_expsyms_F77
15795
15796 # ### END LIBTOOL TAG CONFIG: $tagname
15797
15798 __EOF__
15799
15800
15801 else
15802   # If there is no Makefile yet, we rely on a make rule to execute
15803   # `config.status --recheck' to rerun these tests and create the
15804   # libtool script then.
15805   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15806   if test -f "$ltmain_in"; then
15807     test -f Makefile && make "$ltmain"
15808   fi
15809 fi
15810
15811
15812 ac_ext=c
15813 ac_cpp='$CPP $CPPFLAGS'
15814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15817
15818 CC="$lt_save_CC"
15819
15820         else
15821           tagname=""
15822         fi
15823         ;;
15824
15825       GCJ)
15826         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15827
15828
15829
15830 # Source file extension for Java test sources.
15831 ac_ext=java
15832
15833 # Object file extension for compiled Java test sources.
15834 objext=o
15835 objext_GCJ=$objext
15836
15837 # Code to be used in simple compile tests
15838 lt_simple_compile_test_code="class foo {}\n"
15839
15840 # Code to be used in simple link tests
15841 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15842
15843 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15844
15845 # If no C compiler was specified, use CC.
15846 LTCC=${LTCC-"$CC"}
15847
15848 # If no C compiler flags were specified, use CFLAGS.
15849 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15850
15851 # Allow CC to be a program name with arguments.
15852 compiler=$CC
15853
15854
15855 # save warnings/boilerplate of simple test code
15856 ac_outfile=conftest.$ac_objext
15857 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15858 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15859 _lt_compiler_boilerplate=`cat conftest.err`
15860 $rm conftest*
15861
15862 ac_outfile=conftest.$ac_objext
15863 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15864 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15865 _lt_linker_boilerplate=`cat conftest.err`
15866 $rm conftest*
15867
15868
15869 # Allow CC to be a program name with arguments.
15870 lt_save_CC="$CC"
15871 CC=${GCJ-"gcj"}
15872 compiler=$CC
15873 compiler_GCJ=$CC
15874 for cc_temp in $compiler""; do
15875   case $cc_temp in
15876     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15877     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15878     \-*) ;;
15879     *) break;;
15880   esac
15881 done
15882 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15883
15884
15885 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15886 archive_cmds_need_lc_GCJ=no
15887
15888 old_archive_cmds_GCJ=$old_archive_cmds
15889
15890
15891 lt_prog_compiler_no_builtin_flag_GCJ=
15892
15893 if test "$GCC" = yes; then
15894   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15895
15896
15897 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15898 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15899 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15900   echo $ECHO_N "(cached) $ECHO_C" >&6
15901 else
15902   lt_cv_prog_compiler_rtti_exceptions=no
15903   ac_outfile=conftest.$ac_objext
15904    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15905    lt_compiler_flag="-fno-rtti -fno-exceptions"
15906    # Insert the option either (1) after the last *FLAGS variable, or
15907    # (2) before a word containing "conftest.", or (3) at the end.
15908    # Note that $ac_compile itself does not contain backslashes and begins
15909    # with a dollar sign (not a hyphen), so the echo should work correctly.
15910    # The option is referenced via a variable to avoid confusing sed.
15911    lt_compile=`echo "$ac_compile" | $SED \
15912    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15913    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15914    -e 's:$: $lt_compiler_flag:'`
15915    (eval echo "\"\$as_me:15915: $lt_compile\"" >&5)
15916    (eval "$lt_compile" 2>conftest.err)
15917    ac_status=$?
15918    cat conftest.err >&5
15919    echo "$as_me:15919: \$? = $ac_status" >&5
15920    if (exit $ac_status) && test -s "$ac_outfile"; then
15921      # The compiler can only warn and ignore the option if not recognized
15922      # So say no if there are warnings other than the usual output.
15923      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15924      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15925      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15926        lt_cv_prog_compiler_rtti_exceptions=yes
15927      fi
15928    fi
15929    $rm conftest*
15930
15931 fi
15932 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15933 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15934
15935 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15936     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15937 else
15938     :
15939 fi
15940
15941 fi
15942
15943 lt_prog_compiler_wl_GCJ=
15944 lt_prog_compiler_pic_GCJ=
15945 lt_prog_compiler_static_GCJ=
15946
15947 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15948 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15949
15950   if test "$GCC" = yes; then
15951     lt_prog_compiler_wl_GCJ='-Wl,'
15952     lt_prog_compiler_static_GCJ='-static'
15953
15954     case $host_os in
15955       aix*)
15956       # All AIX code is PIC.
15957       if test "$host_cpu" = ia64; then
15958         # AIX 5 now supports IA64 processor
15959         lt_prog_compiler_static_GCJ='-Bstatic'
15960       fi
15961       ;;
15962
15963     amigaos*)
15964       # FIXME: we need at least 68020 code to build shared libraries, but
15965       # adding the `-m68020' flag to GCC prevents building anything better,
15966       # like `-m68040'.
15967       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15968       ;;
15969
15970     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15971       # PIC is the default for these OSes.
15972       ;;
15973
15974     mingw* | pw32* | os2*)
15975       # This hack is so that the source file can tell whether it is being
15976       # built for inclusion in a dll (and should export symbols for example).
15977       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15978       ;;
15979
15980     darwin* | rhapsody*)
15981       # PIC is the default on this platform
15982       # Common symbols not allowed in MH_DYLIB files
15983       lt_prog_compiler_pic_GCJ='-fno-common'
15984       ;;
15985
15986     interix3*)
15987       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15988       # Instead, we relocate shared libraries at runtime.
15989       ;;
15990
15991     msdosdjgpp*)
15992       # Just because we use GCC doesn't mean we suddenly get shared libraries
15993       # on systems that don't support them.
15994       lt_prog_compiler_can_build_shared_GCJ=no
15995       enable_shared=no
15996       ;;
15997
15998     sysv4*MP*)
15999       if test -d /usr/nec; then
16000         lt_prog_compiler_pic_GCJ=-Kconform_pic
16001       fi
16002       ;;
16003
16004     hpux*)
16005       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16006       # not for PA HP-UX.
16007       case $host_cpu in
16008       hppa*64*|ia64*)
16009         # +Z the default
16010         ;;
16011       *)
16012         lt_prog_compiler_pic_GCJ='-fPIC'
16013         ;;
16014       esac
16015       ;;
16016
16017     *)
16018       lt_prog_compiler_pic_GCJ='-fPIC'
16019       ;;
16020     esac
16021   else
16022     # PORTME Check for flag to pass linker flags through the system compiler.
16023     case $host_os in
16024     aix*)
16025       lt_prog_compiler_wl_GCJ='-Wl,'
16026       if test "$host_cpu" = ia64; then
16027         # AIX 5 now supports IA64 processor
16028         lt_prog_compiler_static_GCJ='-Bstatic'
16029       else
16030         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16031       fi
16032       ;;
16033       darwin*)
16034         # PIC is the default on this platform
16035         # Common symbols not allowed in MH_DYLIB files
16036        case $cc_basename in
16037          xlc*)
16038          lt_prog_compiler_pic_GCJ='-qnocommon'
16039          lt_prog_compiler_wl_GCJ='-Wl,'
16040          ;;
16041        esac
16042        ;;
16043
16044     mingw* | pw32* | os2*)
16045       # This hack is so that the source file can tell whether it is being
16046       # built for inclusion in a dll (and should export symbols for example).
16047       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16048       ;;
16049
16050     hpux9* | hpux10* | hpux11*)
16051       lt_prog_compiler_wl_GCJ='-Wl,'
16052       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16053       # not for PA HP-UX.
16054       case $host_cpu in
16055       hppa*64*|ia64*)
16056         # +Z the default
16057         ;;
16058       *)
16059         lt_prog_compiler_pic_GCJ='+Z'
16060         ;;
16061       esac
16062       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16063       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16064       ;;
16065
16066     irix5* | irix6* | nonstopux*)
16067       lt_prog_compiler_wl_GCJ='-Wl,'
16068       # PIC (with -KPIC) is the default.
16069       lt_prog_compiler_static_GCJ='-non_shared'
16070       ;;
16071
16072     newsos6)
16073       lt_prog_compiler_pic_GCJ='-KPIC'
16074       lt_prog_compiler_static_GCJ='-Bstatic'
16075       ;;
16076
16077     linux*)
16078       case $cc_basename in
16079       icc* | ecc*)
16080         lt_prog_compiler_wl_GCJ='-Wl,'
16081         lt_prog_compiler_pic_GCJ='-KPIC'
16082         lt_prog_compiler_static_GCJ='-static'
16083         ;;
16084       pgcc* | pgf77* | pgf90* | pgf95*)
16085         # Portland Group compilers (*not* the Pentium gcc compiler,
16086         # which looks to be a dead project)
16087         lt_prog_compiler_wl_GCJ='-Wl,'
16088         lt_prog_compiler_pic_GCJ='-fpic'
16089         lt_prog_compiler_static_GCJ='-Bstatic'
16090         ;;
16091       ccc*)
16092         lt_prog_compiler_wl_GCJ='-Wl,'
16093         # All Alpha code is PIC.
16094         lt_prog_compiler_static_GCJ='-non_shared'
16095         ;;
16096       esac
16097       ;;
16098
16099     osf3* | osf4* | osf5*)
16100       lt_prog_compiler_wl_GCJ='-Wl,'
16101       # All OSF/1 code is PIC.
16102       lt_prog_compiler_static_GCJ='-non_shared'
16103       ;;
16104
16105     solaris*)
16106       lt_prog_compiler_pic_GCJ='-KPIC'
16107       lt_prog_compiler_static_GCJ='-Bstatic'
16108       case $cc_basename in
16109       f77* | f90* | f95*)
16110         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16111       *)
16112         lt_prog_compiler_wl_GCJ='-Wl,';;
16113       esac
16114       ;;
16115
16116     sunos4*)
16117       lt_prog_compiler_wl_GCJ='-Qoption ld '
16118       lt_prog_compiler_pic_GCJ='-PIC'
16119       lt_prog_compiler_static_GCJ='-Bstatic'
16120       ;;
16121
16122     sysv4 | sysv4.2uw2* | sysv4.3*)
16123       lt_prog_compiler_wl_GCJ='-Wl,'
16124       lt_prog_compiler_pic_GCJ='-KPIC'
16125       lt_prog_compiler_static_GCJ='-Bstatic'
16126       ;;
16127
16128     sysv4*MP*)
16129       if test -d /usr/nec ;then
16130         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16131         lt_prog_compiler_static_GCJ='-Bstatic'
16132       fi
16133       ;;
16134
16135     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16136       lt_prog_compiler_wl_GCJ='-Wl,'
16137       lt_prog_compiler_pic_GCJ='-KPIC'
16138       lt_prog_compiler_static_GCJ='-Bstatic'
16139       ;;
16140
16141     unicos*)
16142       lt_prog_compiler_wl_GCJ='-Wl,'
16143       lt_prog_compiler_can_build_shared_GCJ=no
16144       ;;
16145
16146     uts4*)
16147       lt_prog_compiler_pic_GCJ='-pic'
16148       lt_prog_compiler_static_GCJ='-Bstatic'
16149       ;;
16150
16151     *)
16152       lt_prog_compiler_can_build_shared_GCJ=no
16153       ;;
16154     esac
16155   fi
16156
16157 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16158 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16159
16160 #
16161 # Check to make sure the PIC flag actually works.
16162 #
16163 if test -n "$lt_prog_compiler_pic_GCJ"; then
16164
16165 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16166 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16167 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16168   echo $ECHO_N "(cached) $ECHO_C" >&6
16169 else
16170   lt_prog_compiler_pic_works_GCJ=no
16171   ac_outfile=conftest.$ac_objext
16172    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16173    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16174    # Insert the option either (1) after the last *FLAGS variable, or
16175    # (2) before a word containing "conftest.", or (3) at the end.
16176    # Note that $ac_compile itself does not contain backslashes and begins
16177    # with a dollar sign (not a hyphen), so the echo should work correctly.
16178    # The option is referenced via a variable to avoid confusing sed.
16179    lt_compile=`echo "$ac_compile" | $SED \
16180    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16181    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16182    -e 's:$: $lt_compiler_flag:'`
16183    (eval echo "\"\$as_me:16183: $lt_compile\"" >&5)
16184    (eval "$lt_compile" 2>conftest.err)
16185    ac_status=$?
16186    cat conftest.err >&5
16187    echo "$as_me:16187: \$? = $ac_status" >&5
16188    if (exit $ac_status) && test -s "$ac_outfile"; then
16189      # The compiler can only warn and ignore the option if not recognized
16190      # So say no if there are warnings other than the usual output.
16191      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16192      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16193      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16194        lt_prog_compiler_pic_works_GCJ=yes
16195      fi
16196    fi
16197    $rm conftest*
16198
16199 fi
16200 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16201 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16202
16203 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16204     case $lt_prog_compiler_pic_GCJ in
16205      "" | " "*) ;;
16206      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16207      esac
16208 else
16209     lt_prog_compiler_pic_GCJ=
16210      lt_prog_compiler_can_build_shared_GCJ=no
16211 fi
16212
16213 fi
16214 case $host_os in
16215   # For platforms which do not support PIC, -DPIC is meaningless:
16216   *djgpp*)
16217     lt_prog_compiler_pic_GCJ=
16218     ;;
16219   *)
16220     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16221     ;;
16222 esac
16223
16224 #
16225 # Check to make sure the static flag actually works.
16226 #
16227 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16228 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16229 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16230 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16231   echo $ECHO_N "(cached) $ECHO_C" >&6
16232 else
16233   lt_prog_compiler_static_works_GCJ=no
16234    save_LDFLAGS="$LDFLAGS"
16235    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16236    printf "$lt_simple_link_test_code" > conftest.$ac_ext
16237    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16238      # The linker can only warn and ignore the option if not recognized
16239      # So say no if there are warnings
16240      if test -s conftest.err; then
16241        # Append any errors to the config.log.
16242        cat conftest.err 1>&5
16243        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16244        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16245        if diff conftest.exp conftest.er2 >/dev/null; then
16246          lt_prog_compiler_static_works_GCJ=yes
16247        fi
16248      else
16249        lt_prog_compiler_static_works_GCJ=yes
16250      fi
16251    fi
16252    $rm conftest*
16253    LDFLAGS="$save_LDFLAGS"
16254
16255 fi
16256 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16257 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
16258
16259 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16260     :
16261 else
16262     lt_prog_compiler_static_GCJ=
16263 fi
16264
16265
16266 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16267 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16268 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16269   echo $ECHO_N "(cached) $ECHO_C" >&6
16270 else
16271   lt_cv_prog_compiler_c_o_GCJ=no
16272    $rm -r conftest 2>/dev/null
16273    mkdir conftest
16274    cd conftest
16275    mkdir out
16276    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16277
16278    lt_compiler_flag="-o out/conftest2.$ac_objext"
16279    # Insert the option either (1) after the last *FLAGS variable, or
16280    # (2) before a word containing "conftest.", or (3) at the end.
16281    # Note that $ac_compile itself does not contain backslashes and begins
16282    # with a dollar sign (not a hyphen), so the echo should work correctly.
16283    lt_compile=`echo "$ac_compile" | $SED \
16284    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16285    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16286    -e 's:$: $lt_compiler_flag:'`
16287    (eval echo "\"\$as_me:16287: $lt_compile\"" >&5)
16288    (eval "$lt_compile" 2>out/conftest.err)
16289    ac_status=$?
16290    cat out/conftest.err >&5
16291    echo "$as_me:16291: \$? = $ac_status" >&5
16292    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16293    then
16294      # The compiler can only warn and ignore the option if not recognized
16295      # So say no if there are warnings
16296      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16297      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16298      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16299        lt_cv_prog_compiler_c_o_GCJ=yes
16300      fi
16301    fi
16302    chmod u+w . 2>&5
16303    $rm conftest*
16304    # SGI C++ compiler will create directory out/ii_files/ for
16305    # template instantiation
16306    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16307    $rm out/* && rmdir out
16308    cd ..
16309    rmdir conftest
16310    $rm conftest*
16311
16312 fi
16313 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16314 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16315
16316
16317 hard_links="nottested"
16318 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16319   # do not overwrite the value of need_locks provided by the user
16320   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16321 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16322   hard_links=yes
16323   $rm conftest*
16324   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16325   touch conftest.a
16326   ln conftest.a conftest.b 2>&5 || hard_links=no
16327   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16328   echo "$as_me:$LINENO: result: $hard_links" >&5
16329 echo "${ECHO_T}$hard_links" >&6
16330   if test "$hard_links" = no; then
16331     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16332 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16333     need_locks=warn
16334   fi
16335 else
16336   need_locks=no
16337 fi
16338
16339 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16340 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16341
16342   runpath_var=
16343   allow_undefined_flag_GCJ=
16344   enable_shared_with_static_runtimes_GCJ=no
16345   archive_cmds_GCJ=
16346   archive_expsym_cmds_GCJ=
16347   old_archive_From_new_cmds_GCJ=
16348   old_archive_from_expsyms_cmds_GCJ=
16349   export_dynamic_flag_spec_GCJ=
16350   whole_archive_flag_spec_GCJ=
16351   thread_safe_flag_spec_GCJ=
16352   hardcode_libdir_flag_spec_GCJ=
16353   hardcode_libdir_flag_spec_ld_GCJ=
16354   hardcode_libdir_separator_GCJ=
16355   hardcode_direct_GCJ=no
16356   hardcode_minus_L_GCJ=no
16357   hardcode_shlibpath_var_GCJ=unsupported
16358   link_all_deplibs_GCJ=unknown
16359   hardcode_automatic_GCJ=no
16360   module_cmds_GCJ=
16361   module_expsym_cmds_GCJ=
16362   always_export_symbols_GCJ=no
16363   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16364   # include_expsyms should be a list of space-separated symbols to be *always*
16365   # included in the symbol list
16366   include_expsyms_GCJ=
16367   # exclude_expsyms can be an extended regexp of symbols to exclude
16368   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16369   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16370   # as well as any symbol that contains `d'.
16371   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16372   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16373   # platforms (ab)use it in PIC code, but their linkers get confused if
16374   # the symbol is explicitly referenced.  Since portable code cannot
16375   # rely on this symbol name, it's probably fine to never include it in
16376   # preloaded symbol tables.
16377   extract_expsyms_cmds=
16378   # Just being paranoid about ensuring that cc_basename is set.
16379   for cc_temp in $compiler""; do
16380   case $cc_temp in
16381     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16382     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16383     \-*) ;;
16384     *) break;;
16385   esac
16386 done
16387 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16388
16389   case $host_os in
16390   cygwin* | mingw* | pw32*)
16391     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16392     # When not using gcc, we currently assume that we are using
16393     # Microsoft Visual C++.
16394     if test "$GCC" != yes; then
16395       with_gnu_ld=no
16396     fi
16397     ;;
16398   interix*)
16399     # we just hope/assume this is gcc and not c89 (= MSVC++)
16400     with_gnu_ld=yes
16401     ;;
16402   openbsd*)
16403     with_gnu_ld=no
16404     ;;
16405   esac
16406
16407   ld_shlibs_GCJ=yes
16408   if test "$with_gnu_ld" = yes; then
16409     # If archive_cmds runs LD, not CC, wlarc should be empty
16410     wlarc='${wl}'
16411
16412     # Set some defaults for GNU ld with shared library support. These
16413     # are reset later if shared libraries are not supported. Putting them
16414     # here allows them to be overridden if necessary.
16415     runpath_var=LD_RUN_PATH
16416     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16417     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16418     # ancient GNU ld didn't support --whole-archive et. al.
16419     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16420         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16421       else
16422         whole_archive_flag_spec_GCJ=
16423     fi
16424     supports_anon_versioning=no
16425     case `$LD -v 2>/dev/null` in
16426       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16427       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16428       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16429       *\ 2.11.*) ;; # other 2.11 versions
16430       *) supports_anon_versioning=yes ;;
16431     esac
16432
16433     # See if GNU ld supports shared libraries.
16434     case $host_os in
16435     aix3* | aix4* | aix5*)
16436       # On AIX/PPC, the GNU linker is very broken
16437       if test "$host_cpu" != ia64; then
16438         ld_shlibs_GCJ=no
16439         cat <<EOF 1>&2
16440
16441 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16442 *** to be unable to reliably create shared libraries on AIX.
16443 *** Therefore, libtool is disabling shared libraries support.  If you
16444 *** really care for shared libraries, you may want to modify your PATH
16445 *** so that a non-GNU linker is found, and then restart.
16446
16447 EOF
16448       fi
16449       ;;
16450
16451     amigaos*)
16452       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)'
16453       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16454       hardcode_minus_L_GCJ=yes
16455
16456       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16457       # that the semantics of dynamic libraries on AmigaOS, at least up
16458       # to version 4, is to share data among multiple programs linked
16459       # with the same dynamic library.  Since this doesn't match the
16460       # behavior of shared libraries on other platforms, we can't use
16461       # them.
16462       ld_shlibs_GCJ=no
16463       ;;
16464
16465     beos*)
16466       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16467         allow_undefined_flag_GCJ=unsupported
16468         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16469         # support --undefined.  This deserves some investigation.  FIXME
16470         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16471       else
16472         ld_shlibs_GCJ=no
16473       fi
16474       ;;
16475
16476     cygwin* | mingw* | pw32*)
16477       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16478       # as there is no search path for DLLs.
16479       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16480       allow_undefined_flag_GCJ=unsupported
16481       always_export_symbols_GCJ=no
16482       enable_shared_with_static_runtimes_GCJ=yes
16483       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16484
16485       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16486         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16487         # If the export-symbols file already is a .def file (1st line
16488         # is EXPORTS), use it as is; otherwise, prepend...
16489         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16490           cp $export_symbols $output_objdir/$soname.def;
16491         else
16492           echo EXPORTS > $output_objdir/$soname.def;
16493           cat $export_symbols >> $output_objdir/$soname.def;
16494         fi~
16495         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16496       else
16497         ld_shlibs_GCJ=no
16498       fi
16499       ;;
16500
16501     interix3*)
16502       hardcode_direct_GCJ=no
16503       hardcode_shlibpath_var_GCJ=no
16504       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16505       export_dynamic_flag_spec_GCJ='${wl}-E'
16506       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16507       # Instead, shared libraries are loaded at an image base (0x10000000 by
16508       # default) and relocated if they conflict, which is a slow very memory
16509       # consuming and fragmenting process.  To avoid this, we pick a random,
16510       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16511       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16512       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'
16513       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'
16514       ;;
16515
16516     linux*)
16517       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16518         tmp_addflag=
16519         case $cc_basename,$host_cpu in
16520         pgcc*)                          # Portland Group C compiler
16521           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'
16522           tmp_addflag=' $pic_flag'
16523           ;;
16524         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16525           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'
16526           tmp_addflag=' $pic_flag -Mnomain' ;;
16527         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16528           tmp_addflag=' -i_dynamic' ;;
16529         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16530           tmp_addflag=' -i_dynamic -nofor_main' ;;
16531         ifc* | ifort*)                  # Intel Fortran compiler
16532           tmp_addflag=' -nofor_main' ;;
16533         esac
16534         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16535
16536         if test $supports_anon_versioning = yes; then
16537           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16538   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16539   $echo "local: *; };" >> $output_objdir/$libname.ver~
16540           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16541         fi
16542       else
16543         ld_shlibs_GCJ=no
16544       fi
16545       ;;
16546
16547     netbsd*)
16548       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16549         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16550         wlarc=
16551       else
16552         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16553         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16554       fi
16555       ;;
16556
16557     solaris*)
16558       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16559         ld_shlibs_GCJ=no
16560         cat <<EOF 1>&2
16561
16562 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16563 *** create shared libraries on Solaris systems.  Therefore, libtool
16564 *** is disabling shared libraries support.  We urge you to upgrade GNU
16565 *** binutils to release 2.9.1 or newer.  Another option is to modify
16566 *** your PATH or compiler configuration so that the native linker is
16567 *** used, and then restart.
16568
16569 EOF
16570       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16571         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16572         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16573       else
16574         ld_shlibs_GCJ=no
16575       fi
16576       ;;
16577
16578     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16579       case `$LD -v 2>&1` in
16580         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16581         ld_shlibs_GCJ=no
16582         cat <<_LT_EOF 1>&2
16583
16584 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16585 *** reliably create shared libraries on SCO systems.  Therefore, libtool
16586 *** is disabling shared libraries support.  We urge you to upgrade GNU
16587 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16588 *** your PATH or compiler configuration so that the native linker is
16589 *** used, and then restart.
16590
16591 _LT_EOF
16592         ;;
16593         *)
16594           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16595             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16596             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16597             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16598           else
16599             ld_shlibs_GCJ=no
16600           fi
16601         ;;
16602       esac
16603       ;;
16604
16605     sunos4*)
16606       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16607       wlarc=
16608       hardcode_direct_GCJ=yes
16609       hardcode_shlibpath_var_GCJ=no
16610       ;;
16611
16612     *)
16613       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16614         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16615         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16616       else
16617         ld_shlibs_GCJ=no
16618       fi
16619       ;;
16620     esac
16621
16622     if test "$ld_shlibs_GCJ" = no; then
16623       runpath_var=
16624       hardcode_libdir_flag_spec_GCJ=
16625       export_dynamic_flag_spec_GCJ=
16626       whole_archive_flag_spec_GCJ=
16627     fi
16628   else
16629     # PORTME fill in a description of your system's linker (not GNU ld)
16630     case $host_os in
16631     aix3*)
16632       allow_undefined_flag_GCJ=unsupported
16633       always_export_symbols_GCJ=yes
16634       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'
16635       # Note: this linker hardcodes the directories in LIBPATH if there
16636       # are no directories specified by -L.
16637       hardcode_minus_L_GCJ=yes
16638       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16639         # Neither direct hardcoding nor static linking is supported with a
16640         # broken collect2.
16641         hardcode_direct_GCJ=unsupported
16642       fi
16643       ;;
16644
16645     aix4* | aix5*)
16646       if test "$host_cpu" = ia64; then
16647         # On IA64, the linker does run time linking by default, so we don't
16648         # have to do anything special.
16649         aix_use_runtimelinking=no
16650         exp_sym_flag='-Bexport'
16651         no_entry_flag=""
16652       else
16653         # If we're using GNU nm, then we don't want the "-C" option.
16654         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16655         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16656           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'
16657         else
16658           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'
16659         fi
16660         aix_use_runtimelinking=no
16661
16662         # Test if we are trying to use run time linking or normal
16663         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16664         # need to do runtime linking.
16665         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16666           for ld_flag in $LDFLAGS; do
16667           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16668             aix_use_runtimelinking=yes
16669             break
16670           fi
16671           done
16672           ;;
16673         esac
16674
16675         exp_sym_flag='-bexport'
16676         no_entry_flag='-bnoentry'
16677       fi
16678
16679       # When large executables or shared objects are built, AIX ld can
16680       # have problems creating the table of contents.  If linking a library
16681       # or program results in "error TOC overflow" add -mminimal-toc to
16682       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16683       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16684
16685       archive_cmds_GCJ=''
16686       hardcode_direct_GCJ=yes
16687       hardcode_libdir_separator_GCJ=':'
16688       link_all_deplibs_GCJ=yes
16689
16690       if test "$GCC" = yes; then
16691         case $host_os in aix4.[012]|aix4.[012].*)
16692         # We only want to do this on AIX 4.2 and lower, the check
16693         # below for broken collect2 doesn't work under 4.3+
16694           collect2name=`${CC} -print-prog-name=collect2`
16695           if test -f "$collect2name" && \
16696            strings "$collect2name" | grep resolve_lib_name >/dev/null
16697           then
16698           # We have reworked collect2
16699           hardcode_direct_GCJ=yes
16700           else
16701           # We have old collect2
16702           hardcode_direct_GCJ=unsupported
16703           # It fails to find uninstalled libraries when the uninstalled
16704           # path is not listed in the libpath.  Setting hardcode_minus_L
16705           # to unsupported forces relinking
16706           hardcode_minus_L_GCJ=yes
16707           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16708           hardcode_libdir_separator_GCJ=
16709           fi
16710           ;;
16711         esac
16712         shared_flag='-shared'
16713         if test "$aix_use_runtimelinking" = yes; then
16714           shared_flag="$shared_flag "'${wl}-G'
16715         fi
16716       else
16717         # not using gcc
16718         if test "$host_cpu" = ia64; then
16719         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16720         # chokes on -Wl,-G. The following line is correct:
16721           shared_flag='-G'
16722         else
16723           if test "$aix_use_runtimelinking" = yes; then
16724             shared_flag='${wl}-G'
16725           else
16726             shared_flag='${wl}-bM:SRE'
16727           fi
16728         fi
16729       fi
16730
16731       # It seems that -bexpall does not export symbols beginning with
16732       # underscore (_), so it is better to generate a list of symbols to export.
16733       always_export_symbols_GCJ=yes
16734       if test "$aix_use_runtimelinking" = yes; then
16735         # Warning - without using the other runtime loading flags (-brtl),
16736         # -berok will link without error, but may produce a broken library.
16737         allow_undefined_flag_GCJ='-berok'
16738        # Determine the default libpath from the value encoded in an empty executable.
16739        cat >conftest.$ac_ext <<_ACEOF
16740 /* confdefs.h.  */
16741 _ACEOF
16742 cat confdefs.h >>conftest.$ac_ext
16743 cat >>conftest.$ac_ext <<_ACEOF
16744 /* end confdefs.h.  */
16745
16746 int
16747 main ()
16748 {
16749
16750   ;
16751   return 0;
16752 }
16753 _ACEOF
16754 rm -f conftest.$ac_objext conftest$ac_exeext
16755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16756   (eval $ac_link) 2>conftest.er1
16757   ac_status=$?
16758   grep -v '^ *+' conftest.er1 >conftest.err
16759   rm -f conftest.er1
16760   cat conftest.err >&5
16761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16762   (exit $ac_status); } &&
16763          { ac_try='test -z "$ac_c_werror_flag"
16764                          || test ! -s conftest.err'
16765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16766   (eval $ac_try) 2>&5
16767   ac_status=$?
16768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16769   (exit $ac_status); }; } &&
16770          { ac_try='test -s conftest$ac_exeext'
16771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16772   (eval $ac_try) 2>&5
16773   ac_status=$?
16774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16775   (exit $ac_status); }; }; then
16776
16777 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16778 }'`
16779 # Check for a 64-bit object if we didn't find anything.
16780 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; }
16781 }'`; fi
16782 else
16783   echo "$as_me: failed program was:" >&5
16784 sed 's/^/| /' conftest.$ac_ext >&5
16785
16786 fi
16787 rm -f conftest.err conftest.$ac_objext \
16788       conftest$ac_exeext conftest.$ac_ext
16789 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16790
16791        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16792         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"
16793        else
16794         if test "$host_cpu" = ia64; then
16795           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16796           allow_undefined_flag_GCJ="-z nodefs"
16797           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"
16798         else
16799          # Determine the default libpath from the value encoded in an empty executable.
16800          cat >conftest.$ac_ext <<_ACEOF
16801 /* confdefs.h.  */
16802 _ACEOF
16803 cat confdefs.h >>conftest.$ac_ext
16804 cat >>conftest.$ac_ext <<_ACEOF
16805 /* end confdefs.h.  */
16806
16807 int
16808 main ()
16809 {
16810
16811   ;
16812   return 0;
16813 }
16814 _ACEOF
16815 rm -f conftest.$ac_objext conftest$ac_exeext
16816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16817   (eval $ac_link) 2>conftest.er1
16818   ac_status=$?
16819   grep -v '^ *+' conftest.er1 >conftest.err
16820   rm -f conftest.er1
16821   cat conftest.err >&5
16822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823   (exit $ac_status); } &&
16824          { ac_try='test -z "$ac_c_werror_flag"
16825                          || test ! -s conftest.err'
16826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16827   (eval $ac_try) 2>&5
16828   ac_status=$?
16829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16830   (exit $ac_status); }; } &&
16831          { ac_try='test -s conftest$ac_exeext'
16832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16833   (eval $ac_try) 2>&5
16834   ac_status=$?
16835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16836   (exit $ac_status); }; }; then
16837
16838 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16839 }'`
16840 # Check for a 64-bit object if we didn't find anything.
16841 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; }
16842 }'`; fi
16843 else
16844   echo "$as_me: failed program was:" >&5
16845 sed 's/^/| /' conftest.$ac_ext >&5
16846
16847 fi
16848 rm -f conftest.err conftest.$ac_objext \
16849       conftest$ac_exeext conftest.$ac_ext
16850 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16851
16852          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16853           # Warning - without using the other run time loading flags,
16854           # -berok will link without error, but may produce a broken library.
16855           no_undefined_flag_GCJ=' ${wl}-bernotok'
16856           allow_undefined_flag_GCJ=' ${wl}-berok'
16857           # Exported symbols can be pulled into shared objects from archives
16858           whole_archive_flag_spec_GCJ='$convenience'
16859           archive_cmds_need_lc_GCJ=yes
16860           # This is similar to how AIX traditionally builds its shared libraries.
16861           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'
16862         fi
16863       fi
16864       ;;
16865
16866     amigaos*)
16867       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)'
16868       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16869       hardcode_minus_L_GCJ=yes
16870       # see comment about different semantics on the GNU ld section
16871       ld_shlibs_GCJ=no
16872       ;;
16873
16874     bsdi[45]*)
16875       export_dynamic_flag_spec_GCJ=-rdynamic
16876       ;;
16877
16878     cygwin* | mingw* | pw32*)
16879       # When not using gcc, we currently assume that we are using
16880       # Microsoft Visual C++.
16881       # hardcode_libdir_flag_spec is actually meaningless, as there is
16882       # no search path for DLLs.
16883       hardcode_libdir_flag_spec_GCJ=' '
16884       allow_undefined_flag_GCJ=unsupported
16885       # Tell ltmain to make .lib files, not .a files.
16886       libext=lib
16887       # Tell ltmain to make .dll files, not .so files.
16888       shrext_cmds=".dll"
16889       # FIXME: Setting linknames here is a bad hack.
16890       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16891       # The linker will automatically build a .lib file if we build a DLL.
16892       old_archive_From_new_cmds_GCJ='true'
16893       # FIXME: Should let the user specify the lib program.
16894       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16895       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16896       enable_shared_with_static_runtimes_GCJ=yes
16897       ;;
16898
16899     darwin* | rhapsody*)
16900       case $host_os in
16901         rhapsody* | darwin1.[012])
16902          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16903          ;;
16904        *) # Darwin 1.3 on
16905          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16906            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16907          else
16908            case ${MACOSX_DEPLOYMENT_TARGET} in
16909              10.[012])
16910                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16911                ;;
16912              10.*)
16913                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16914                ;;
16915            esac
16916          fi
16917          ;;
16918       esac
16919       archive_cmds_need_lc_GCJ=no
16920       hardcode_direct_GCJ=no
16921       hardcode_automatic_GCJ=yes
16922       hardcode_shlibpath_var_GCJ=unsupported
16923       whole_archive_flag_spec_GCJ=''
16924       link_all_deplibs_GCJ=yes
16925     if test "$GCC" = yes ; then
16926         output_verbose_link_cmd='echo'
16927         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16928       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16929       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16930       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}'
16931       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}'
16932     else
16933       case $cc_basename in
16934         xlc*)
16935          output_verbose_link_cmd='echo'
16936          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16937          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16938           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16939          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}'
16940           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}'
16941           ;;
16942        *)
16943          ld_shlibs_GCJ=no
16944           ;;
16945       esac
16946     fi
16947       ;;
16948
16949     dgux*)
16950       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16951       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16952       hardcode_shlibpath_var_GCJ=no
16953       ;;
16954
16955     freebsd1*)
16956       ld_shlibs_GCJ=no
16957       ;;
16958
16959     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16960     # support.  Future versions do this automatically, but an explicit c++rt0.o
16961     # does not break anything, and helps significantly (at the cost of a little
16962     # extra space).
16963     freebsd2.2*)
16964       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16965       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16966       hardcode_direct_GCJ=yes
16967       hardcode_shlibpath_var_GCJ=no
16968       ;;
16969
16970     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16971     freebsd2*)
16972       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16973       hardcode_direct_GCJ=yes
16974       hardcode_minus_L_GCJ=yes
16975       hardcode_shlibpath_var_GCJ=no
16976       ;;
16977
16978     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16979     freebsd* | kfreebsd*-gnu | dragonfly*)
16980       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16981       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16982       hardcode_direct_GCJ=yes
16983       hardcode_shlibpath_var_GCJ=no
16984       ;;
16985
16986     hpux9*)
16987       if test "$GCC" = yes; then
16988         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'
16989       else
16990         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'
16991       fi
16992       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16993       hardcode_libdir_separator_GCJ=:
16994       hardcode_direct_GCJ=yes
16995
16996       # hardcode_minus_L: Not really in the search PATH,
16997       # but as the default location of the library.
16998       hardcode_minus_L_GCJ=yes
16999       export_dynamic_flag_spec_GCJ='${wl}-E'
17000       ;;
17001
17002     hpux10*)
17003       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17004         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17005       else
17006         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17007       fi
17008       if test "$with_gnu_ld" = no; then
17009         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17010         hardcode_libdir_separator_GCJ=:
17011
17012         hardcode_direct_GCJ=yes
17013         export_dynamic_flag_spec_GCJ='${wl}-E'
17014
17015         # hardcode_minus_L: Not really in the search PATH,
17016         # but as the default location of the library.
17017         hardcode_minus_L_GCJ=yes
17018       fi
17019       ;;
17020
17021     hpux11*)
17022       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17023         case $host_cpu in
17024         hppa*64*)
17025           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17026           ;;
17027         ia64*)
17028           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17029           ;;
17030         *)
17031           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17032           ;;
17033         esac
17034       else
17035         case $host_cpu in
17036         hppa*64*)
17037           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17038           ;;
17039         ia64*)
17040           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17041           ;;
17042         *)
17043           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17044           ;;
17045         esac
17046       fi
17047       if test "$with_gnu_ld" = no; then
17048         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17049         hardcode_libdir_separator_GCJ=:
17050
17051         case $host_cpu in
17052         hppa*64*|ia64*)
17053           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17054           hardcode_direct_GCJ=no
17055           hardcode_shlibpath_var_GCJ=no
17056           ;;
17057         *)
17058           hardcode_direct_GCJ=yes
17059           export_dynamic_flag_spec_GCJ='${wl}-E'
17060
17061           # hardcode_minus_L: Not really in the search PATH,
17062           # but as the default location of the library.
17063           hardcode_minus_L_GCJ=yes
17064           ;;
17065         esac
17066       fi
17067       ;;
17068
17069     irix5* | irix6* | nonstopux*)
17070       if test "$GCC" = yes; then
17071         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'
17072       else
17073         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'
17074         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17075       fi
17076       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17077       hardcode_libdir_separator_GCJ=:
17078       link_all_deplibs_GCJ=yes
17079       ;;
17080
17081     netbsd*)
17082       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17083         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17084       else
17085         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17086       fi
17087       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17088       hardcode_direct_GCJ=yes
17089       hardcode_shlibpath_var_GCJ=no
17090       ;;
17091
17092     newsos6)
17093       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17094       hardcode_direct_GCJ=yes
17095       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17096       hardcode_libdir_separator_GCJ=:
17097       hardcode_shlibpath_var_GCJ=no
17098       ;;
17099
17100     openbsd*)
17101       hardcode_direct_GCJ=yes
17102       hardcode_shlibpath_var_GCJ=no
17103       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17104         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17105         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17106         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17107         export_dynamic_flag_spec_GCJ='${wl}-E'
17108       else
17109        case $host_os in
17110          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17111            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17112            hardcode_libdir_flag_spec_GCJ='-R$libdir'
17113            ;;
17114          *)
17115            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17116            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17117            ;;
17118        esac
17119       fi
17120       ;;
17121
17122     os2*)
17123       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17124       hardcode_minus_L_GCJ=yes
17125       allow_undefined_flag_GCJ=unsupported
17126       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'
17127       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17128       ;;
17129
17130     osf3*)
17131       if test "$GCC" = yes; then
17132         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17133         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'
17134       else
17135         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17136         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'
17137       fi
17138       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17139       hardcode_libdir_separator_GCJ=:
17140       ;;
17141
17142     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17143       if test "$GCC" = yes; then
17144         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17145         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'
17146         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17147       else
17148         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17149         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'
17150         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~
17151         $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'
17152
17153         # Both c and cxx compiler support -rpath directly
17154         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17155       fi
17156       hardcode_libdir_separator_GCJ=:
17157       ;;
17158
17159     solaris*)
17160       no_undefined_flag_GCJ=' -z text'
17161       if test "$GCC" = yes; then
17162         wlarc='${wl}'
17163         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17164         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17165           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17166       else
17167         wlarc=''
17168         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17169         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17170         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17171       fi
17172       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17173       hardcode_shlibpath_var_GCJ=no
17174       case $host_os in
17175       solaris2.[0-5] | solaris2.[0-5].*) ;;
17176       *)
17177         # The compiler driver will combine linker options so we
17178         # cannot just pass the convience library names through
17179         # without $wl, iff we do not link with $LD.
17180         # Luckily, gcc supports the same syntax we need for Sun Studio.
17181         # Supported since Solaris 2.6 (maybe 2.5.1?)
17182         case $wlarc in
17183         '')
17184           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17185         *)
17186           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' ;;
17187         esac ;;
17188       esac
17189       link_all_deplibs_GCJ=yes
17190       ;;
17191
17192     sunos4*)
17193       if test "x$host_vendor" = xsequent; then
17194         # Use $CC to link under sequent, because it throws in some extra .o
17195         # files that make .init and .fini sections work.
17196         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17197       else
17198         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17199       fi
17200       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17201       hardcode_direct_GCJ=yes
17202       hardcode_minus_L_GCJ=yes
17203       hardcode_shlibpath_var_GCJ=no
17204       ;;
17205
17206     sysv4)
17207       case $host_vendor in
17208         sni)
17209           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17210           hardcode_direct_GCJ=yes # is this really true???
17211         ;;
17212         siemens)
17213           ## LD is ld it makes a PLAMLIB
17214           ## CC just makes a GrossModule.
17215           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17216           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17217           hardcode_direct_GCJ=no
17218         ;;
17219         motorola)
17220           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17221           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17222         ;;
17223       esac
17224       runpath_var='LD_RUN_PATH'
17225       hardcode_shlibpath_var_GCJ=no
17226       ;;
17227
17228     sysv4.3*)
17229       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17230       hardcode_shlibpath_var_GCJ=no
17231       export_dynamic_flag_spec_GCJ='-Bexport'
17232       ;;
17233
17234     sysv4*MP*)
17235       if test -d /usr/nec; then
17236         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17237         hardcode_shlibpath_var_GCJ=no
17238         runpath_var=LD_RUN_PATH
17239         hardcode_runpath_var=yes
17240         ld_shlibs_GCJ=yes
17241       fi
17242       ;;
17243
17244     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17245       no_undefined_flag_GCJ='${wl}-z,text'
17246       archive_cmds_need_lc_GCJ=no
17247       hardcode_shlibpath_var_GCJ=no
17248       runpath_var='LD_RUN_PATH'
17249
17250       if test "$GCC" = yes; then
17251         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17252         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17253       else
17254         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17255         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17256       fi
17257       ;;
17258
17259     sysv5* | sco3.2v5* | sco5v6*)
17260       # Note: We can NOT use -z defs as we might desire, because we do not
17261       # link with -lc, and that would cause any symbols used from libc to
17262       # always be unresolved, which means just about no library would
17263       # ever link correctly.  If we're not using GNU ld we use -z text
17264       # though, which does catch some bad symbols but isn't as heavy-handed
17265       # as -z defs.
17266       no_undefined_flag_GCJ='${wl}-z,text'
17267       allow_undefined_flag_GCJ='${wl}-z,nodefs'
17268       archive_cmds_need_lc_GCJ=no
17269       hardcode_shlibpath_var_GCJ=no
17270       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17271       hardcode_libdir_separator_GCJ=':'
17272       link_all_deplibs_GCJ=yes
17273       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17274       runpath_var='LD_RUN_PATH'
17275
17276       if test "$GCC" = yes; then
17277         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17278         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17279       else
17280         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17281         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17282       fi
17283       ;;
17284
17285     uts4*)
17286       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17287       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17288       hardcode_shlibpath_var_GCJ=no
17289       ;;
17290
17291     *)
17292       ld_shlibs_GCJ=no
17293       ;;
17294     esac
17295   fi
17296
17297 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17298 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17299 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17300
17301 #
17302 # Do we need to explicitly link libc?
17303 #
17304 case "x$archive_cmds_need_lc_GCJ" in
17305 x|xyes)
17306   # Assume -lc should be added
17307   archive_cmds_need_lc_GCJ=yes
17308
17309   if test "$enable_shared" = yes && test "$GCC" = yes; then
17310     case $archive_cmds_GCJ in
17311     *'~'*)
17312       # FIXME: we may have to deal with multi-command sequences.
17313       ;;
17314     '$CC '*)
17315       # Test whether the compiler implicitly links with -lc since on some
17316       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17317       # to ld, don't add -lc before -lgcc.
17318       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17319 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17320       $rm conftest*
17321       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17322
17323       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17324   (eval $ac_compile) 2>&5
17325   ac_status=$?
17326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17327   (exit $ac_status); } 2>conftest.err; then
17328         soname=conftest
17329         lib=conftest
17330         libobjs=conftest.$ac_objext
17331         deplibs=
17332         wl=$lt_prog_compiler_wl_GCJ
17333         pic_flag=$lt_prog_compiler_pic_GCJ
17334         compiler_flags=-v
17335         linker_flags=-v
17336         verstring=
17337         output_objdir=.
17338         libname=conftest
17339         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17340         allow_undefined_flag_GCJ=
17341         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17342   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17343   ac_status=$?
17344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17345   (exit $ac_status); }
17346         then
17347           archive_cmds_need_lc_GCJ=no
17348         else
17349           archive_cmds_need_lc_GCJ=yes
17350         fi
17351         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17352       else
17353         cat conftest.err 1>&5
17354       fi
17355       $rm conftest*
17356       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17357 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17358       ;;
17359     esac
17360   fi
17361   ;;
17362 esac
17363
17364 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17365 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17366 library_names_spec=
17367 libname_spec='lib$name'
17368 soname_spec=
17369 shrext_cmds=".so"
17370 postinstall_cmds=
17371 postuninstall_cmds=
17372 finish_cmds=
17373 finish_eval=
17374 shlibpath_var=
17375 shlibpath_overrides_runpath=unknown
17376 version_type=none
17377 dynamic_linker="$host_os ld.so"
17378 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17379 if test "$GCC" = yes; then
17380   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17381   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17382     # if the path contains ";" then we assume it to be the separator
17383     # otherwise default to the standard path separator (i.e. ":") - it is
17384     # assumed that no part of a normal pathname contains ";" but that should
17385     # okay in the real world where ";" in dirpaths is itself problematic.
17386     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17387   else
17388     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17389   fi
17390 else
17391   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17392 fi
17393 need_lib_prefix=unknown
17394 hardcode_into_libs=no
17395
17396 # when you set need_version to no, make sure it does not cause -set_version
17397 # flags to be left without arguments
17398 need_version=unknown
17399
17400 case $host_os in
17401 aix3*)
17402   version_type=linux
17403   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17404   shlibpath_var=LIBPATH
17405
17406   # AIX 3 has no versioning support, so we append a major version to the name.
17407   soname_spec='${libname}${release}${shared_ext}$major'
17408   ;;
17409
17410 aix4* | aix5*)
17411   version_type=linux
17412   need_lib_prefix=no
17413   need_version=no
17414   hardcode_into_libs=yes
17415   if test "$host_cpu" = ia64; then
17416     # AIX 5 supports IA64
17417     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17418     shlibpath_var=LD_LIBRARY_PATH
17419   else
17420     # With GCC up to 2.95.x, collect2 would create an import file
17421     # for dependence libraries.  The import file would start with
17422     # the line `#! .'.  This would cause the generated library to
17423     # depend on `.', always an invalid library.  This was fixed in
17424     # development snapshots of GCC prior to 3.0.
17425     case $host_os in
17426       aix4 | aix4.[01] | aix4.[01].*)
17427       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17428            echo ' yes '
17429            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17430         :
17431       else
17432         can_build_shared=no
17433       fi
17434       ;;
17435     esac
17436     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17437     # soname into executable. Probably we can add versioning support to
17438     # collect2, so additional links can be useful in future.
17439     if test "$aix_use_runtimelinking" = yes; then
17440       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17441       # instead of lib<name>.a to let people know that these are not
17442       # typical AIX shared libraries.
17443       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17444     else
17445       # We preserve .a as extension for shared libraries through AIX4.2
17446       # and later when we are not doing run time linking.
17447       library_names_spec='${libname}${release}.a $libname.a'
17448       soname_spec='${libname}${release}${shared_ext}$major'
17449     fi
17450     shlibpath_var=LIBPATH
17451   fi
17452   ;;
17453
17454 amigaos*)
17455   library_names_spec='$libname.ixlibrary $libname.a'
17456   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17457   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'
17458   ;;
17459
17460 beos*)
17461   library_names_spec='${libname}${shared_ext}'
17462   dynamic_linker="$host_os ld.so"
17463   shlibpath_var=LIBRARY_PATH
17464   ;;
17465
17466 bsdi[45]*)
17467   version_type=linux
17468   need_version=no
17469   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17470   soname_spec='${libname}${release}${shared_ext}$major'
17471   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17472   shlibpath_var=LD_LIBRARY_PATH
17473   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17474   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17475   # the default ld.so.conf also contains /usr/contrib/lib and
17476   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17477   # libtool to hard-code these into programs
17478   ;;
17479
17480 cygwin* | mingw* | pw32*)
17481   version_type=windows
17482   shrext_cmds=".dll"
17483   need_version=no
17484   need_lib_prefix=no
17485
17486   case $GCC,$host_os in
17487   yes,cygwin* | yes,mingw* | yes,pw32*)
17488     library_names_spec='$libname.dll.a'
17489     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17490     postinstall_cmds='base_file=`basename \${file}`~
17491       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17492       dldir=$destdir/`dirname \$dlpath`~
17493       test -d \$dldir || mkdir -p \$dldir~
17494       $install_prog $dir/$dlname \$dldir/$dlname~
17495       chmod a+x \$dldir/$dlname'
17496     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17497       dlpath=$dir/\$dldll~
17498        $rm \$dlpath'
17499     shlibpath_overrides_runpath=yes
17500
17501     case $host_os in
17502     cygwin*)
17503       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17504       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17505       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17506       ;;
17507     mingw*)
17508       # MinGW DLLs use traditional 'lib' prefix
17509       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17510       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17511       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17512         # It is most probably a Windows format PATH printed by
17513         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17514         # path with ; separators, and with drive letters. We can handle the
17515         # drive letters (cygwin fileutils understands them), so leave them,
17516         # especially as we might pass files found there to a mingw objdump,
17517         # which wouldn't understand a cygwinified path. Ahh.
17518         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17519       else
17520         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17521       fi
17522       ;;
17523     pw32*)
17524       # pw32 DLLs use 'pw' prefix rather than 'lib'
17525       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17526       ;;
17527     esac
17528     ;;
17529
17530   *)
17531     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17532     ;;
17533   esac
17534   dynamic_linker='Win32 ld.exe'
17535   # FIXME: first we should search . and the directory the executable is in
17536   shlibpath_var=PATH
17537   ;;
17538
17539 darwin* | rhapsody*)
17540   dynamic_linker="$host_os dyld"
17541   version_type=darwin
17542   need_lib_prefix=no
17543   need_version=no
17544   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17545   soname_spec='${libname}${release}${major}$shared_ext'
17546   shlibpath_overrides_runpath=yes
17547   shlibpath_var=DYLD_LIBRARY_PATH
17548   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17549   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17550   if test "$GCC" = yes; then
17551     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"`
17552   else
17553     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17554   fi
17555   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17556   ;;
17557
17558 dgux*)
17559   version_type=linux
17560   need_lib_prefix=no
17561   need_version=no
17562   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17563   soname_spec='${libname}${release}${shared_ext}$major'
17564   shlibpath_var=LD_LIBRARY_PATH
17565   ;;
17566
17567 freebsd1*)
17568   dynamic_linker=no
17569   ;;
17570
17571 kfreebsd*-gnu)
17572   version_type=linux
17573   need_lib_prefix=no
17574   need_version=no
17575   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17576   soname_spec='${libname}${release}${shared_ext}$major'
17577   shlibpath_var=LD_LIBRARY_PATH
17578   shlibpath_overrides_runpath=no
17579   hardcode_into_libs=yes
17580   dynamic_linker='GNU ld.so'
17581   ;;
17582
17583 freebsd* | dragonfly*)
17584   # DragonFly does not have aout.  When/if they implement a new
17585   # versioning mechanism, adjust this.
17586   if test -x /usr/bin/objformat; then
17587     objformat=`/usr/bin/objformat`
17588   else
17589     case $host_os in
17590     freebsd[123]*) objformat=aout ;;
17591     *) objformat=elf ;;
17592     esac
17593   fi
17594   version_type=freebsd-$objformat
17595   case $version_type in
17596     freebsd-elf*)
17597       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17598       need_version=no
17599       need_lib_prefix=no
17600       ;;
17601     freebsd-*)
17602       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17603       need_version=yes
17604       ;;
17605   esac
17606   shlibpath_var=LD_LIBRARY_PATH
17607   case $host_os in
17608   freebsd2*)
17609     shlibpath_overrides_runpath=yes
17610     ;;
17611   freebsd3.[01]* | freebsdelf3.[01]*)
17612     shlibpath_overrides_runpath=yes
17613     hardcode_into_libs=yes
17614     ;;
17615   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17616   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17617     shlibpath_overrides_runpath=no
17618     hardcode_into_libs=yes
17619     ;;
17620   freebsd*) # from 4.6 on
17621     shlibpath_overrides_runpath=yes
17622     hardcode_into_libs=yes
17623     ;;
17624   esac
17625   ;;
17626
17627 gnu*)
17628   version_type=linux
17629   need_lib_prefix=no
17630   need_version=no
17631   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17632   soname_spec='${libname}${release}${shared_ext}$major'
17633   shlibpath_var=LD_LIBRARY_PATH
17634   hardcode_into_libs=yes
17635   ;;
17636
17637 hpux9* | hpux10* | hpux11*)
17638   # Give a soname corresponding to the major version so that dld.sl refuses to
17639   # link against other versions.
17640   version_type=sunos
17641   need_lib_prefix=no
17642   need_version=no
17643   case $host_cpu in
17644   ia64*)
17645     shrext_cmds='.so'
17646     hardcode_into_libs=yes
17647     dynamic_linker="$host_os dld.so"
17648     shlibpath_var=LD_LIBRARY_PATH
17649     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17650     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17651     soname_spec='${libname}${release}${shared_ext}$major'
17652     if test "X$HPUX_IA64_MODE" = X32; then
17653       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17654     else
17655       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17656     fi
17657     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17658     ;;
17659    hppa*64*)
17660      shrext_cmds='.sl'
17661      hardcode_into_libs=yes
17662      dynamic_linker="$host_os dld.sl"
17663      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17664      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17665      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17666      soname_spec='${libname}${release}${shared_ext}$major'
17667      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17668      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17669      ;;
17670    *)
17671     shrext_cmds='.sl'
17672     dynamic_linker="$host_os dld.sl"
17673     shlibpath_var=SHLIB_PATH
17674     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17675     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17676     soname_spec='${libname}${release}${shared_ext}$major'
17677     ;;
17678   esac
17679   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17680   postinstall_cmds='chmod 555 $lib'
17681   ;;
17682
17683 interix3*)
17684   version_type=linux
17685   need_lib_prefix=no
17686   need_version=no
17687   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17688   soname_spec='${libname}${release}${shared_ext}$major'
17689   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17690   shlibpath_var=LD_LIBRARY_PATH
17691   shlibpath_overrides_runpath=no
17692   hardcode_into_libs=yes
17693   ;;
17694
17695 irix5* | irix6* | nonstopux*)
17696   case $host_os in
17697     nonstopux*) version_type=nonstopux ;;
17698     *)
17699         if test "$lt_cv_prog_gnu_ld" = yes; then
17700                 version_type=linux
17701         else
17702                 version_type=irix
17703         fi ;;
17704   esac
17705   need_lib_prefix=no
17706   need_version=no
17707   soname_spec='${libname}${release}${shared_ext}$major'
17708   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17709   case $host_os in
17710   irix5* | nonstopux*)
17711     libsuff= shlibsuff=
17712     ;;
17713   *)
17714     case $LD in # libtool.m4 will add one of these switches to LD
17715     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17716       libsuff= shlibsuff= libmagic=32-bit;;
17717     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17718       libsuff=32 shlibsuff=N32 libmagic=N32;;
17719     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17720       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17721     *) libsuff= shlibsuff= libmagic=never-match;;
17722     esac
17723     ;;
17724   esac
17725   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17726   shlibpath_overrides_runpath=no
17727   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17728   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17729   hardcode_into_libs=yes
17730   ;;
17731
17732 # No shared lib support for Linux oldld, aout, or coff.
17733 linux*oldld* | linux*aout* | linux*coff*)
17734   dynamic_linker=no
17735   ;;
17736
17737 # This must be Linux ELF.
17738 linux*)
17739   version_type=linux
17740   need_lib_prefix=no
17741   need_version=no
17742   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17743   soname_spec='${libname}${release}${shared_ext}$major'
17744   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17745   shlibpath_var=LD_LIBRARY_PATH
17746   shlibpath_overrides_runpath=no
17747   # This implies no fast_install, which is unacceptable.
17748   # Some rework will be needed to allow for fast_install
17749   # before this can be enabled.
17750   hardcode_into_libs=yes
17751
17752   # Append ld.so.conf contents to the search path
17753   if test -f /etc/ld.so.conf; then
17754     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' ' '`
17755     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17756   fi
17757
17758   # We used to test for /lib/ld.so.1 and disable shared libraries on
17759   # powerpc, because MkLinux only supported shared libraries with the
17760   # GNU dynamic linker.  Since this was broken with cross compilers,
17761   # most powerpc-linux boxes support dynamic linking these days and
17762   # people can always --disable-shared, the test was removed, and we
17763   # assume the GNU/Linux dynamic linker is in use.
17764   dynamic_linker='GNU/Linux ld.so'
17765   ;;
17766
17767 knetbsd*-gnu)
17768   version_type=linux
17769   need_lib_prefix=no
17770   need_version=no
17771   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17772   soname_spec='${libname}${release}${shared_ext}$major'
17773   shlibpath_var=LD_LIBRARY_PATH
17774   shlibpath_overrides_runpath=no
17775   hardcode_into_libs=yes
17776   dynamic_linker='GNU ld.so'
17777   ;;
17778
17779 netbsd*)
17780   version_type=sunos
17781   need_lib_prefix=no
17782   need_version=no
17783   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17784     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17785     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17786     dynamic_linker='NetBSD (a.out) ld.so'
17787   else
17788     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17789     soname_spec='${libname}${release}${shared_ext}$major'
17790     dynamic_linker='NetBSD ld.elf_so'
17791   fi
17792   shlibpath_var=LD_LIBRARY_PATH
17793   shlibpath_overrides_runpath=yes
17794   hardcode_into_libs=yes
17795   ;;
17796
17797 newsos6)
17798   version_type=linux
17799   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17800   shlibpath_var=LD_LIBRARY_PATH
17801   shlibpath_overrides_runpath=yes
17802   ;;
17803
17804 nto-qnx*)
17805   version_type=linux
17806   need_lib_prefix=no
17807   need_version=no
17808   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17809   soname_spec='${libname}${release}${shared_ext}$major'
17810   shlibpath_var=LD_LIBRARY_PATH
17811   shlibpath_overrides_runpath=yes
17812   ;;
17813
17814 openbsd*)
17815   version_type=sunos
17816   sys_lib_dlsearch_path_spec="/usr/lib"
17817   need_lib_prefix=no
17818   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17819   case $host_os in
17820     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17821     *)                         need_version=no  ;;
17822   esac
17823   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17824   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17825   shlibpath_var=LD_LIBRARY_PATH
17826   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17827     case $host_os in
17828       openbsd2.[89] | openbsd2.[89].*)
17829         shlibpath_overrides_runpath=no
17830         ;;
17831       *)
17832         shlibpath_overrides_runpath=yes
17833         ;;
17834       esac
17835   else
17836     shlibpath_overrides_runpath=yes
17837   fi
17838   ;;
17839
17840 os2*)
17841   libname_spec='$name'
17842   shrext_cmds=".dll"
17843   need_lib_prefix=no
17844   library_names_spec='$libname${shared_ext} $libname.a'
17845   dynamic_linker='OS/2 ld.exe'
17846   shlibpath_var=LIBPATH
17847   ;;
17848
17849 osf3* | osf4* | osf5*)
17850   version_type=osf
17851   need_lib_prefix=no
17852   need_version=no
17853   soname_spec='${libname}${release}${shared_ext}$major'
17854   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17855   shlibpath_var=LD_LIBRARY_PATH
17856   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17857   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17858   ;;
17859
17860 solaris*)
17861   version_type=linux
17862   need_lib_prefix=no
17863   need_version=no
17864   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17865   soname_spec='${libname}${release}${shared_ext}$major'
17866   shlibpath_var=LD_LIBRARY_PATH
17867   shlibpath_overrides_runpath=yes
17868   hardcode_into_libs=yes
17869   # ldd complains unless libraries are executable
17870   postinstall_cmds='chmod +x $lib'
17871   ;;
17872
17873 sunos4*)
17874   version_type=sunos
17875   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17876   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17877   shlibpath_var=LD_LIBRARY_PATH
17878   shlibpath_overrides_runpath=yes
17879   if test "$with_gnu_ld" = yes; then
17880     need_lib_prefix=no
17881   fi
17882   need_version=yes
17883   ;;
17884
17885 sysv4 | sysv4.3*)
17886   version_type=linux
17887   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17888   soname_spec='${libname}${release}${shared_ext}$major'
17889   shlibpath_var=LD_LIBRARY_PATH
17890   case $host_vendor in
17891     sni)
17892       shlibpath_overrides_runpath=no
17893       need_lib_prefix=no
17894       export_dynamic_flag_spec='${wl}-Blargedynsym'
17895       runpath_var=LD_RUN_PATH
17896       ;;
17897     siemens)
17898       need_lib_prefix=no
17899       ;;
17900     motorola)
17901       need_lib_prefix=no
17902       need_version=no
17903       shlibpath_overrides_runpath=no
17904       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17905       ;;
17906   esac
17907   ;;
17908
17909 sysv4*MP*)
17910   if test -d /usr/nec ;then
17911     version_type=linux
17912     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17913     soname_spec='$libname${shared_ext}.$major'
17914     shlibpath_var=LD_LIBRARY_PATH
17915   fi
17916   ;;
17917
17918 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17919   version_type=freebsd-elf
17920   need_lib_prefix=no
17921   need_version=no
17922   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17923   soname_spec='${libname}${release}${shared_ext}$major'
17924   shlibpath_var=LD_LIBRARY_PATH
17925   hardcode_into_libs=yes
17926   if test "$with_gnu_ld" = yes; then
17927     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17928     shlibpath_overrides_runpath=no
17929   else
17930     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17931     shlibpath_overrides_runpath=yes
17932     case $host_os in
17933       sco3.2v5*)
17934         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17935         ;;
17936     esac
17937   fi
17938   sys_lib_dlsearch_path_spec='/usr/lib'
17939   ;;
17940
17941 uts4*)
17942   version_type=linux
17943   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17944   soname_spec='${libname}${release}${shared_ext}$major'
17945   shlibpath_var=LD_LIBRARY_PATH
17946   ;;
17947
17948 *)
17949   dynamic_linker=no
17950   ;;
17951 esac
17952 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17953 echo "${ECHO_T}$dynamic_linker" >&6
17954 test "$dynamic_linker" = no && can_build_shared=no
17955
17956 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17957 if test "$GCC" = yes; then
17958   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17959 fi
17960
17961 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17962 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17963 hardcode_action_GCJ=
17964 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17965    test -n "$runpath_var_GCJ" || \
17966    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17967
17968   # We can hardcode non-existant directories.
17969   if test "$hardcode_direct_GCJ" != no &&
17970      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17971      # have to relink, otherwise we might link with an installed library
17972      # when we should be linking with a yet-to-be-installed one
17973      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17974      test "$hardcode_minus_L_GCJ" != no; then
17975     # Linking always hardcodes the temporary library directory.
17976     hardcode_action_GCJ=relink
17977   else
17978     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17979     hardcode_action_GCJ=immediate
17980   fi
17981 else
17982   # We cannot hardcode anything, or else we can only hardcode existing
17983   # directories.
17984   hardcode_action_GCJ=unsupported
17985 fi
17986 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17987 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17988
17989 if test "$hardcode_action_GCJ" = relink; then
17990   # Fast installation is not supported
17991   enable_fast_install=no
17992 elif test "$shlibpath_overrides_runpath" = yes ||
17993      test "$enable_shared" = no; then
17994   # Fast installation is not necessary
17995   enable_fast_install=needless
17996 fi
17997
17998
17999 # The else clause should only fire when bootstrapping the
18000 # libtool distribution, otherwise you forgot to ship ltmain.sh
18001 # with your package, and you will get complaints that there are
18002 # no rules to generate ltmain.sh.
18003 if test -f "$ltmain"; then
18004   # See if we are running on zsh, and set the options which allow our commands through
18005   # without removal of \ escapes.
18006   if test -n "${ZSH_VERSION+set}" ; then
18007     setopt NO_GLOB_SUBST
18008   fi
18009   # Now quote all the things that may contain metacharacters while being
18010   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18011   # variables and quote the copies for generation of the libtool script.
18012   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18013     SED SHELL STRIP \
18014     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18015     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18016     deplibs_check_method reload_flag reload_cmds need_locks \
18017     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18018     lt_cv_sys_global_symbol_to_c_name_address \
18019     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18020     old_postinstall_cmds old_postuninstall_cmds \
18021     compiler_GCJ \
18022     CC_GCJ \
18023     LD_GCJ \
18024     lt_prog_compiler_wl_GCJ \
18025     lt_prog_compiler_pic_GCJ \
18026     lt_prog_compiler_static_GCJ \
18027     lt_prog_compiler_no_builtin_flag_GCJ \
18028     export_dynamic_flag_spec_GCJ \
18029     thread_safe_flag_spec_GCJ \
18030     whole_archive_flag_spec_GCJ \
18031     enable_shared_with_static_runtimes_GCJ \
18032     old_archive_cmds_GCJ \
18033     old_archive_from_new_cmds_GCJ \
18034     predep_objects_GCJ \
18035     postdep_objects_GCJ \
18036     predeps_GCJ \
18037     postdeps_GCJ \
18038     compiler_lib_search_path_GCJ \
18039     archive_cmds_GCJ \
18040     archive_expsym_cmds_GCJ \
18041     postinstall_cmds_GCJ \
18042     postuninstall_cmds_GCJ \
18043     old_archive_from_expsyms_cmds_GCJ \
18044     allow_undefined_flag_GCJ \
18045     no_undefined_flag_GCJ \
18046     export_symbols_cmds_GCJ \
18047     hardcode_libdir_flag_spec_GCJ \
18048     hardcode_libdir_flag_spec_ld_GCJ \
18049     hardcode_libdir_separator_GCJ \
18050     hardcode_automatic_GCJ \
18051     module_cmds_GCJ \
18052     module_expsym_cmds_GCJ \
18053     lt_cv_prog_compiler_c_o_GCJ \
18054     exclude_expsyms_GCJ \
18055     include_expsyms_GCJ; do
18056
18057     case $var in
18058     old_archive_cmds_GCJ | \
18059     old_archive_from_new_cmds_GCJ | \
18060     archive_cmds_GCJ | \
18061     archive_expsym_cmds_GCJ | \
18062     module_cmds_GCJ | \
18063     module_expsym_cmds_GCJ | \
18064     old_archive_from_expsyms_cmds_GCJ | \
18065     export_symbols_cmds_GCJ | \
18066     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18067     postinstall_cmds | postuninstall_cmds | \
18068     old_postinstall_cmds | old_postuninstall_cmds | \
18069     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18070       # Double-quote double-evaled strings.
18071       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18072       ;;
18073     *)
18074       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18075       ;;
18076     esac
18077   done
18078
18079   case $lt_echo in
18080   *'\$0 --fallback-echo"')
18081     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18082     ;;
18083   esac
18084
18085 cfgfile="$ofile"
18086
18087   cat <<__EOF__ >> "$cfgfile"
18088 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18089
18090 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18091
18092 # Shell to use when invoking shell scripts.
18093 SHELL=$lt_SHELL
18094
18095 # Whether or not to build shared libraries.
18096 build_libtool_libs=$enable_shared
18097
18098 # Whether or not to build static libraries.
18099 build_old_libs=$enable_static
18100
18101 # Whether or not to add -lc for building shared libraries.
18102 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18103
18104 # Whether or not to disallow shared libs when runtime libs are static
18105 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18106
18107 # Whether or not to optimize for fast installation.
18108 fast_install=$enable_fast_install
18109
18110 # The host system.
18111 host_alias=$host_alias
18112 host=$host
18113 host_os=$host_os
18114
18115 # The build system.
18116 build_alias=$build_alias
18117 build=$build
18118 build_os=$build_os
18119
18120 # An echo program that does not interpret backslashes.
18121 echo=$lt_echo
18122
18123 # The archiver.
18124 AR=$lt_AR
18125 AR_FLAGS=$lt_AR_FLAGS
18126
18127 # A C compiler.
18128 LTCC=$lt_LTCC
18129
18130 # LTCC compiler flags.
18131 LTCFLAGS=$lt_LTCFLAGS
18132
18133 # A language-specific compiler.
18134 CC=$lt_compiler_GCJ
18135
18136 # Is the compiler the GNU C compiler?
18137 with_gcc=$GCC_GCJ
18138
18139 # An ERE matcher.
18140 EGREP=$lt_EGREP
18141
18142 # The linker used to build libraries.
18143 LD=$lt_LD_GCJ
18144
18145 # Whether we need hard or soft links.
18146 LN_S=$lt_LN_S
18147
18148 # A BSD-compatible nm program.
18149 NM=$lt_NM
18150
18151 # A symbol stripping program
18152 STRIP=$lt_STRIP
18153
18154 # Used to examine libraries when file_magic_cmd begins "file"
18155 MAGIC_CMD=$MAGIC_CMD
18156
18157 # Used on cygwin: DLL creation program.
18158 DLLTOOL="$DLLTOOL"
18159
18160 # Used on cygwin: object dumper.
18161 OBJDUMP="$OBJDUMP"
18162
18163 # Used on cygwin: assembler.
18164 AS="$AS"
18165
18166 # The name of the directory that contains temporary libtool files.
18167 objdir=$objdir
18168
18169 # How to create reloadable object files.
18170 reload_flag=$lt_reload_flag
18171 reload_cmds=$lt_reload_cmds
18172
18173 # How to pass a linker flag through the compiler.
18174 wl=$lt_lt_prog_compiler_wl_GCJ
18175
18176 # Object file suffix (normally "o").
18177 objext="$ac_objext"
18178
18179 # Old archive suffix (normally "a").
18180 libext="$libext"
18181
18182 # Shared library suffix (normally ".so").
18183 shrext_cmds='$shrext_cmds'
18184
18185 # Executable file suffix (normally "").
18186 exeext="$exeext"
18187
18188 # Additional compiler flags for building library objects.
18189 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18190 pic_mode=$pic_mode
18191
18192 # What is the maximum length of a command?
18193 max_cmd_len=$lt_cv_sys_max_cmd_len
18194
18195 # Does compiler simultaneously support -c and -o options?
18196 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18197
18198 # Must we lock files when doing compilation?
18199 need_locks=$lt_need_locks
18200
18201 # Do we need the lib prefix for modules?
18202 need_lib_prefix=$need_lib_prefix
18203
18204 # Do we need a version for libraries?
18205 need_version=$need_version
18206
18207 # Whether dlopen is supported.
18208 dlopen_support=$enable_dlopen
18209
18210 # Whether dlopen of programs is supported.
18211 dlopen_self=$enable_dlopen_self
18212
18213 # Whether dlopen of statically linked programs is supported.
18214 dlopen_self_static=$enable_dlopen_self_static
18215
18216 # Compiler flag to prevent dynamic linking.
18217 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18218
18219 # Compiler flag to turn off builtin functions.
18220 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18221
18222 # Compiler flag to allow reflexive dlopens.
18223 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18224
18225 # Compiler flag to generate shared objects directly from archives.
18226 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18227
18228 # Compiler flag to generate thread-safe objects.
18229 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18230
18231 # Library versioning type.
18232 version_type=$version_type
18233
18234 # Format of library name prefix.
18235 libname_spec=$lt_libname_spec
18236
18237 # List of archive names.  First name is the real one, the rest are links.
18238 # The last name is the one that the linker finds with -lNAME.
18239 library_names_spec=$lt_library_names_spec
18240
18241 # The coded name of the library, if different from the real name.
18242 soname_spec=$lt_soname_spec
18243
18244 # Commands used to build and install an old-style archive.
18245 RANLIB=$lt_RANLIB
18246 old_archive_cmds=$lt_old_archive_cmds_GCJ
18247 old_postinstall_cmds=$lt_old_postinstall_cmds
18248 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18249
18250 # Create an old-style archive from a shared archive.
18251 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18252
18253 # Create a temporary old-style archive to link instead of a shared archive.
18254 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18255
18256 # Commands used to build and install a shared archive.
18257 archive_cmds=$lt_archive_cmds_GCJ
18258 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18259 postinstall_cmds=$lt_postinstall_cmds
18260 postuninstall_cmds=$lt_postuninstall_cmds
18261
18262 # Commands used to build a loadable module (assumed same as above if empty)
18263 module_cmds=$lt_module_cmds_GCJ
18264 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18265
18266 # Commands to strip libraries.
18267 old_striplib=$lt_old_striplib
18268 striplib=$lt_striplib
18269
18270 # Dependencies to place before the objects being linked to create a
18271 # shared library.
18272 predep_objects=$lt_predep_objects_GCJ
18273
18274 # Dependencies to place after the objects being linked to create a
18275 # shared library.
18276 postdep_objects=$lt_postdep_objects_GCJ
18277
18278 # Dependencies to place before the objects being linked to create a
18279 # shared library.
18280 predeps=$lt_predeps_GCJ
18281
18282 # Dependencies to place after the objects being linked to create a
18283 # shared library.
18284 postdeps=$lt_postdeps_GCJ
18285
18286 # The library search path used internally by the compiler when linking
18287 # a shared library.
18288 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18289
18290 # Method to check whether dependent libraries are shared objects.
18291 deplibs_check_method=$lt_deplibs_check_method
18292
18293 # Command to use when deplibs_check_method == file_magic.
18294 file_magic_cmd=$lt_file_magic_cmd
18295
18296 # Flag that allows shared libraries with undefined symbols to be built.
18297 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18298
18299 # Flag that forces no undefined symbols.
18300 no_undefined_flag=$lt_no_undefined_flag_GCJ
18301
18302 # Commands used to finish a libtool library installation in a directory.
18303 finish_cmds=$lt_finish_cmds
18304
18305 # Same as above, but a single script fragment to be evaled but not shown.
18306 finish_eval=$lt_finish_eval
18307
18308 # Take the output of nm and produce a listing of raw symbols and C names.
18309 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18310
18311 # Transform the output of nm in a proper C declaration
18312 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18313
18314 # Transform the output of nm in a C name address pair
18315 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18316
18317 # This is the shared library runtime path variable.
18318 runpath_var=$runpath_var
18319
18320 # This is the shared library path variable.
18321 shlibpath_var=$shlibpath_var
18322
18323 # Is shlibpath searched before the hard-coded library search path?
18324 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18325
18326 # How to hardcode a shared library path into an executable.
18327 hardcode_action=$hardcode_action_GCJ
18328
18329 # Whether we should hardcode library paths into libraries.
18330 hardcode_into_libs=$hardcode_into_libs
18331
18332 # Flag to hardcode \$libdir into a binary during linking.
18333 # This must work even if \$libdir does not exist.
18334 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18335
18336 # If ld is used when linking, flag to hardcode \$libdir into
18337 # a binary during linking. This must work even if \$libdir does
18338 # not exist.
18339 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18340
18341 # Whether we need a single -rpath flag with a separated argument.
18342 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18343
18344 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18345 # resulting binary.
18346 hardcode_direct=$hardcode_direct_GCJ
18347
18348 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18349 # resulting binary.
18350 hardcode_minus_L=$hardcode_minus_L_GCJ
18351
18352 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18353 # the resulting binary.
18354 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18355
18356 # Set to yes if building a shared library automatically hardcodes DIR into the library
18357 # and all subsequent libraries and executables linked against it.
18358 hardcode_automatic=$hardcode_automatic_GCJ
18359
18360 # Variables whose values should be saved in libtool wrapper scripts and
18361 # restored at relink time.
18362 variables_saved_for_relink="$variables_saved_for_relink"
18363
18364 # Whether libtool must link a program against all its dependency libraries.
18365 link_all_deplibs=$link_all_deplibs_GCJ
18366
18367 # Compile-time system search path for libraries
18368 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18369
18370 # Run-time system search path for libraries
18371 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18372
18373 # Fix the shell variable \$srcfile for the compiler.
18374 fix_srcfile_path="$fix_srcfile_path_GCJ"
18375
18376 # Set to yes if exported symbols are required.
18377 always_export_symbols=$always_export_symbols_GCJ
18378
18379 # The commands to list exported symbols.
18380 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18381
18382 # The commands to extract the exported symbol list from a shared archive.
18383 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18384
18385 # Symbols that should not be listed in the preloaded symbols.
18386 exclude_expsyms=$lt_exclude_expsyms_GCJ
18387
18388 # Symbols that must always be exported.
18389 include_expsyms=$lt_include_expsyms_GCJ
18390
18391 # ### END LIBTOOL TAG CONFIG: $tagname
18392
18393 __EOF__
18394
18395
18396 else
18397   # If there is no Makefile yet, we rely on a make rule to execute
18398   # `config.status --recheck' to rerun these tests and create the
18399   # libtool script then.
18400   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18401   if test -f "$ltmain_in"; then
18402     test -f Makefile && make "$ltmain"
18403   fi
18404 fi
18405
18406
18407 ac_ext=c
18408 ac_cpp='$CPP $CPPFLAGS'
18409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18412
18413 CC="$lt_save_CC"
18414
18415         else
18416           tagname=""
18417         fi
18418         ;;
18419
18420       RC)
18421
18422
18423
18424 # Source file extension for RC test sources.
18425 ac_ext=rc
18426
18427 # Object file extension for compiled RC test sources.
18428 objext=o
18429 objext_RC=$objext
18430
18431 # Code to be used in simple compile tests
18432 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18433
18434 # Code to be used in simple link tests
18435 lt_simple_link_test_code="$lt_simple_compile_test_code"
18436
18437 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18438
18439 # If no C compiler was specified, use CC.
18440 LTCC=${LTCC-"$CC"}
18441
18442 # If no C compiler flags were specified, use CFLAGS.
18443 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18444
18445 # Allow CC to be a program name with arguments.
18446 compiler=$CC
18447
18448
18449 # save warnings/boilerplate of simple test code
18450 ac_outfile=conftest.$ac_objext
18451 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18452 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18453 _lt_compiler_boilerplate=`cat conftest.err`
18454 $rm conftest*
18455
18456 ac_outfile=conftest.$ac_objext
18457 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18458 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18459 _lt_linker_boilerplate=`cat conftest.err`
18460 $rm conftest*
18461
18462
18463 # Allow CC to be a program name with arguments.
18464 lt_save_CC="$CC"
18465 CC=${RC-"windres"}
18466 compiler=$CC
18467 compiler_RC=$CC
18468 for cc_temp in $compiler""; do
18469   case $cc_temp in
18470     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18471     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18472     \-*) ;;
18473     *) break;;
18474   esac
18475 done
18476 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18477
18478 lt_cv_prog_compiler_c_o_RC=yes
18479
18480 # The else clause should only fire when bootstrapping the
18481 # libtool distribution, otherwise you forgot to ship ltmain.sh
18482 # with your package, and you will get complaints that there are
18483 # no rules to generate ltmain.sh.
18484 if test -f "$ltmain"; then
18485   # See if we are running on zsh, and set the options which allow our commands through
18486   # without removal of \ escapes.
18487   if test -n "${ZSH_VERSION+set}" ; then
18488     setopt NO_GLOB_SUBST
18489   fi
18490   # Now quote all the things that may contain metacharacters while being
18491   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18492   # variables and quote the copies for generation of the libtool script.
18493   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18494     SED SHELL STRIP \
18495     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18496     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18497     deplibs_check_method reload_flag reload_cmds need_locks \
18498     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18499     lt_cv_sys_global_symbol_to_c_name_address \
18500     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18501     old_postinstall_cmds old_postuninstall_cmds \
18502     compiler_RC \
18503     CC_RC \
18504     LD_RC \
18505     lt_prog_compiler_wl_RC \
18506     lt_prog_compiler_pic_RC \
18507     lt_prog_compiler_static_RC \
18508     lt_prog_compiler_no_builtin_flag_RC \
18509     export_dynamic_flag_spec_RC \
18510     thread_safe_flag_spec_RC \
18511     whole_archive_flag_spec_RC \
18512     enable_shared_with_static_runtimes_RC \
18513     old_archive_cmds_RC \
18514     old_archive_from_new_cmds_RC \
18515     predep_objects_RC \
18516     postdep_objects_RC \
18517     predeps_RC \
18518     postdeps_RC \
18519     compiler_lib_search_path_RC \
18520     archive_cmds_RC \
18521     archive_expsym_cmds_RC \
18522     postinstall_cmds_RC \
18523     postuninstall_cmds_RC \
18524     old_archive_from_expsyms_cmds_RC \
18525     allow_undefined_flag_RC \
18526     no_undefined_flag_RC \
18527     export_symbols_cmds_RC \
18528     hardcode_libdir_flag_spec_RC \
18529     hardcode_libdir_flag_spec_ld_RC \
18530     hardcode_libdir_separator_RC \
18531     hardcode_automatic_RC \
18532     module_cmds_RC \
18533     module_expsym_cmds_RC \
18534     lt_cv_prog_compiler_c_o_RC \
18535     exclude_expsyms_RC \
18536     include_expsyms_RC; do
18537
18538     case $var in
18539     old_archive_cmds_RC | \
18540     old_archive_from_new_cmds_RC | \
18541     archive_cmds_RC | \
18542     archive_expsym_cmds_RC | \
18543     module_cmds_RC | \
18544     module_expsym_cmds_RC | \
18545     old_archive_from_expsyms_cmds_RC | \
18546     export_symbols_cmds_RC | \
18547     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18548     postinstall_cmds | postuninstall_cmds | \
18549     old_postinstall_cmds | old_postuninstall_cmds | \
18550     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18551       # Double-quote double-evaled strings.
18552       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18553       ;;
18554     *)
18555       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18556       ;;
18557     esac
18558   done
18559
18560   case $lt_echo in
18561   *'\$0 --fallback-echo"')
18562     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18563     ;;
18564   esac
18565
18566 cfgfile="$ofile"
18567
18568   cat <<__EOF__ >> "$cfgfile"
18569 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18570
18571 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18572
18573 # Shell to use when invoking shell scripts.
18574 SHELL=$lt_SHELL
18575
18576 # Whether or not to build shared libraries.
18577 build_libtool_libs=$enable_shared
18578
18579 # Whether or not to build static libraries.
18580 build_old_libs=$enable_static
18581
18582 # Whether or not to add -lc for building shared libraries.
18583 build_libtool_need_lc=$archive_cmds_need_lc_RC
18584
18585 # Whether or not to disallow shared libs when runtime libs are static
18586 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18587
18588 # Whether or not to optimize for fast installation.
18589 fast_install=$enable_fast_install
18590
18591 # The host system.
18592 host_alias=$host_alias
18593 host=$host
18594 host_os=$host_os
18595
18596 # The build system.
18597 build_alias=$build_alias
18598 build=$build
18599 build_os=$build_os
18600
18601 # An echo program that does not interpret backslashes.
18602 echo=$lt_echo
18603
18604 # The archiver.
18605 AR=$lt_AR
18606 AR_FLAGS=$lt_AR_FLAGS
18607
18608 # A C compiler.
18609 LTCC=$lt_LTCC
18610
18611 # LTCC compiler flags.
18612 LTCFLAGS=$lt_LTCFLAGS
18613
18614 # A language-specific compiler.
18615 CC=$lt_compiler_RC
18616
18617 # Is the compiler the GNU C compiler?
18618 with_gcc=$GCC_RC
18619
18620 # An ERE matcher.
18621 EGREP=$lt_EGREP
18622
18623 # The linker used to build libraries.
18624 LD=$lt_LD_RC
18625
18626 # Whether we need hard or soft links.
18627 LN_S=$lt_LN_S
18628
18629 # A BSD-compatible nm program.
18630 NM=$lt_NM
18631
18632 # A symbol stripping program
18633 STRIP=$lt_STRIP
18634
18635 # Used to examine libraries when file_magic_cmd begins "file"
18636 MAGIC_CMD=$MAGIC_CMD
18637
18638 # Used on cygwin: DLL creation program.
18639 DLLTOOL="$DLLTOOL"
18640
18641 # Used on cygwin: object dumper.
18642 OBJDUMP="$OBJDUMP"
18643
18644 # Used on cygwin: assembler.
18645 AS="$AS"
18646
18647 # The name of the directory that contains temporary libtool files.
18648 objdir=$objdir
18649
18650 # How to create reloadable object files.
18651 reload_flag=$lt_reload_flag
18652 reload_cmds=$lt_reload_cmds
18653
18654 # How to pass a linker flag through the compiler.
18655 wl=$lt_lt_prog_compiler_wl_RC
18656
18657 # Object file suffix (normally "o").
18658 objext="$ac_objext"
18659
18660 # Old archive suffix (normally "a").
18661 libext="$libext"
18662
18663 # Shared library suffix (normally ".so").
18664 shrext_cmds='$shrext_cmds'
18665
18666 # Executable file suffix (normally "").
18667 exeext="$exeext"
18668
18669 # Additional compiler flags for building library objects.
18670 pic_flag=$lt_lt_prog_compiler_pic_RC
18671 pic_mode=$pic_mode
18672
18673 # What is the maximum length of a command?
18674 max_cmd_len=$lt_cv_sys_max_cmd_len
18675
18676 # Does compiler simultaneously support -c and -o options?
18677 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18678
18679 # Must we lock files when doing compilation?
18680 need_locks=$lt_need_locks
18681
18682 # Do we need the lib prefix for modules?
18683 need_lib_prefix=$need_lib_prefix
18684
18685 # Do we need a version for libraries?
18686 need_version=$need_version
18687
18688 # Whether dlopen is supported.
18689 dlopen_support=$enable_dlopen
18690
18691 # Whether dlopen of programs is supported.
18692 dlopen_self=$enable_dlopen_self
18693
18694 # Whether dlopen of statically linked programs is supported.
18695 dlopen_self_static=$enable_dlopen_self_static
18696
18697 # Compiler flag to prevent dynamic linking.
18698 link_static_flag=$lt_lt_prog_compiler_static_RC
18699
18700 # Compiler flag to turn off builtin functions.
18701 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18702
18703 # Compiler flag to allow reflexive dlopens.
18704 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18705
18706 # Compiler flag to generate shared objects directly from archives.
18707 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18708
18709 # Compiler flag to generate thread-safe objects.
18710 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18711
18712 # Library versioning type.
18713 version_type=$version_type
18714
18715 # Format of library name prefix.
18716 libname_spec=$lt_libname_spec
18717
18718 # List of archive names.  First name is the real one, the rest are links.
18719 # The last name is the one that the linker finds with -lNAME.
18720 library_names_spec=$lt_library_names_spec
18721
18722 # The coded name of the library, if different from the real name.
18723 soname_spec=$lt_soname_spec
18724
18725 # Commands used to build and install an old-style archive.
18726 RANLIB=$lt_RANLIB
18727 old_archive_cmds=$lt_old_archive_cmds_RC
18728 old_postinstall_cmds=$lt_old_postinstall_cmds
18729 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18730
18731 # Create an old-style archive from a shared archive.
18732 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18733
18734 # Create a temporary old-style archive to link instead of a shared archive.
18735 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18736
18737 # Commands used to build and install a shared archive.
18738 archive_cmds=$lt_archive_cmds_RC
18739 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18740 postinstall_cmds=$lt_postinstall_cmds
18741 postuninstall_cmds=$lt_postuninstall_cmds
18742
18743 # Commands used to build a loadable module (assumed same as above if empty)
18744 module_cmds=$lt_module_cmds_RC
18745 module_expsym_cmds=$lt_module_expsym_cmds_RC
18746
18747 # Commands to strip libraries.
18748 old_striplib=$lt_old_striplib
18749 striplib=$lt_striplib
18750
18751 # Dependencies to place before the objects being linked to create a
18752 # shared library.
18753 predep_objects=$lt_predep_objects_RC
18754
18755 # Dependencies to place after the objects being linked to create a
18756 # shared library.
18757 postdep_objects=$lt_postdep_objects_RC
18758
18759 # Dependencies to place before the objects being linked to create a
18760 # shared library.
18761 predeps=$lt_predeps_RC
18762
18763 # Dependencies to place after the objects being linked to create a
18764 # shared library.
18765 postdeps=$lt_postdeps_RC
18766
18767 # The library search path used internally by the compiler when linking
18768 # a shared library.
18769 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18770
18771 # Method to check whether dependent libraries are shared objects.
18772 deplibs_check_method=$lt_deplibs_check_method
18773
18774 # Command to use when deplibs_check_method == file_magic.
18775 file_magic_cmd=$lt_file_magic_cmd
18776
18777 # Flag that allows shared libraries with undefined symbols to be built.
18778 allow_undefined_flag=$lt_allow_undefined_flag_RC
18779
18780 # Flag that forces no undefined symbols.
18781 no_undefined_flag=$lt_no_undefined_flag_RC
18782
18783 # Commands used to finish a libtool library installation in a directory.
18784 finish_cmds=$lt_finish_cmds
18785
18786 # Same as above, but a single script fragment to be evaled but not shown.
18787 finish_eval=$lt_finish_eval
18788
18789 # Take the output of nm and produce a listing of raw symbols and C names.
18790 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18791
18792 # Transform the output of nm in a proper C declaration
18793 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18794
18795 # Transform the output of nm in a C name address pair
18796 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18797
18798 # This is the shared library runtime path variable.
18799 runpath_var=$runpath_var
18800
18801 # This is the shared library path variable.
18802 shlibpath_var=$shlibpath_var
18803
18804 # Is shlibpath searched before the hard-coded library search path?
18805 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18806
18807 # How to hardcode a shared library path into an executable.
18808 hardcode_action=$hardcode_action_RC
18809
18810 # Whether we should hardcode library paths into libraries.
18811 hardcode_into_libs=$hardcode_into_libs
18812
18813 # Flag to hardcode \$libdir into a binary during linking.
18814 # This must work even if \$libdir does not exist.
18815 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18816
18817 # If ld is used when linking, flag to hardcode \$libdir into
18818 # a binary during linking. This must work even if \$libdir does
18819 # not exist.
18820 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18821
18822 # Whether we need a single -rpath flag with a separated argument.
18823 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18824
18825 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18826 # resulting binary.
18827 hardcode_direct=$hardcode_direct_RC
18828
18829 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18830 # resulting binary.
18831 hardcode_minus_L=$hardcode_minus_L_RC
18832
18833 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18834 # the resulting binary.
18835 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18836
18837 # Set to yes if building a shared library automatically hardcodes DIR into the library
18838 # and all subsequent libraries and executables linked against it.
18839 hardcode_automatic=$hardcode_automatic_RC
18840
18841 # Variables whose values should be saved in libtool wrapper scripts and
18842 # restored at relink time.
18843 variables_saved_for_relink="$variables_saved_for_relink"
18844
18845 # Whether libtool must link a program against all its dependency libraries.
18846 link_all_deplibs=$link_all_deplibs_RC
18847
18848 # Compile-time system search path for libraries
18849 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18850
18851 # Run-time system search path for libraries
18852 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18853
18854 # Fix the shell variable \$srcfile for the compiler.
18855 fix_srcfile_path="$fix_srcfile_path_RC"
18856
18857 # Set to yes if exported symbols are required.
18858 always_export_symbols=$always_export_symbols_RC
18859
18860 # The commands to list exported symbols.
18861 export_symbols_cmds=$lt_export_symbols_cmds_RC
18862
18863 # The commands to extract the exported symbol list from a shared archive.
18864 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18865
18866 # Symbols that should not be listed in the preloaded symbols.
18867 exclude_expsyms=$lt_exclude_expsyms_RC
18868
18869 # Symbols that must always be exported.
18870 include_expsyms=$lt_include_expsyms_RC
18871
18872 # ### END LIBTOOL TAG CONFIG: $tagname
18873
18874 __EOF__
18875
18876
18877 else
18878   # If there is no Makefile yet, we rely on a make rule to execute
18879   # `config.status --recheck' to rerun these tests and create the
18880   # libtool script then.
18881   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18882   if test -f "$ltmain_in"; then
18883     test -f Makefile && make "$ltmain"
18884   fi
18885 fi
18886
18887
18888 ac_ext=c
18889 ac_cpp='$CPP $CPPFLAGS'
18890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18893
18894 CC="$lt_save_CC"
18895
18896         ;;
18897
18898       *)
18899         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18900 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18901    { (exit 1); exit 1; }; }
18902         ;;
18903       esac
18904
18905       # Append the new tag name to the list of available tags.
18906       if test -n "$tagname" ; then
18907       available_tags="$available_tags $tagname"
18908     fi
18909     fi
18910   done
18911   IFS="$lt_save_ifs"
18912
18913   # Now substitute the updated list of available tags.
18914   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18915     mv "${ofile}T" "$ofile"
18916     chmod +x "$ofile"
18917   else
18918     rm -f "${ofile}T"
18919     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18920 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18921    { (exit 1); exit 1; }; }
18922   fi
18923 fi
18924
18925
18926
18927 # This can be used to rebuild libtool when needed
18928 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18929
18930 # Always use our own libtool.
18931 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18932
18933 # Prevent multiple expansion
18934
18935
18936
18937
18938
18939
18940
18941
18942
18943
18944
18945
18946
18947
18948
18949
18950
18951
18952
18953
18954
18955
18956 for ac_prog in gm4 m4
18957 do
18958   # Extract the first word of "$ac_prog", so it can be a program name with args.
18959 set dummy $ac_prog; ac_word=$2
18960 echo "$as_me:$LINENO: checking for $ac_word" >&5
18961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18962 if test "${ac_cv_prog_M4+set}" = set; then
18963   echo $ECHO_N "(cached) $ECHO_C" >&6
18964 else
18965   if test -n "$M4"; then
18966   ac_cv_prog_M4="$M4" # Let the user override the test.
18967 else
18968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18969 for as_dir in $PATH
18970 do
18971   IFS=$as_save_IFS
18972   test -z "$as_dir" && as_dir=.
18973   for ac_exec_ext in '' $ac_executable_extensions; do
18974   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18975     ac_cv_prog_M4="$ac_prog"
18976     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18977     break 2
18978   fi
18979 done
18980 done
18981
18982 fi
18983 fi
18984 M4=$ac_cv_prog_M4
18985 if test -n "$M4"; then
18986   echo "$as_me:$LINENO: result: $M4" >&5
18987 echo "${ECHO_T}$M4" >&6
18988 else
18989   echo "$as_me:$LINENO: result: no" >&5
18990 echo "${ECHO_T}no" >&6
18991 fi
18992
18993   test -n "$M4" && break
18994 done
18995 test -n "$M4" || M4="m4"
18996
18997
18998 if test "$M4" = "m4"; then
18999   echo "$as_me:$LINENO: checking whether m4 is GNU m4" >&5
19000 echo $ECHO_N "checking whether m4 is GNU m4... $ECHO_C" >&6
19001   if $M4 --version </dev/null 2>/dev/null | grep '^GNU m4 ' >/dev/null ; then
19002     echo "$as_me:$LINENO: result: yes" >&5
19003 echo "${ECHO_T}yes" >&6
19004   else
19005     echo "$as_me:$LINENO: result: no" >&5
19006 echo "${ECHO_T}no" >&6
19007     if test "$host_vendor" = "sun"; then
19008       { { echo "$as_me:$LINENO: error: SUN m4 does not work for building gtkmm.
19009 Please install GNU m4." >&5
19010 echo "$as_me: error: SUN m4 does not work for building gtkmm.
19011 Please install GNU m4." >&2;}
19012    { (exit 1); exit 1; }; }
19013     fi
19014   fi
19015 fi
19016
19017
19018
19019 echo "$as_me:$LINENO: checking whether make is GNU Make" >&5
19020 echo $ECHO_N "checking whether make is GNU Make... $ECHO_C" >&6
19021 if ${MAKE-make} --version 2>/dev/null | grep '^GNU Make ' >/dev/null ; then
19022         echo "$as_me:$LINENO: result: yes" >&5
19023 echo "${ECHO_T}yes" >&6
19024 else
19025         echo "$as_me:$LINENO: result: no" >&5
19026 echo "${ECHO_T}no" >&6
19027         if test "$host_vendor" = "sun" ; then
19028            { { echo "$as_me:$LINENO: error: SUN make does not work for building gtkmm.
19029 Please install GNU make." >&5
19030 echo "$as_me: error: SUN make does not work for building gtkmm.
19031 Please install GNU make." >&2;}
19032    { (exit 1); exit 1; }; }
19033         fi
19034 fi
19035
19036
19037
19038   glibmm_perl_result=no
19039
19040   for ac_prog in perl perl5
19041 do
19042   # Extract the first word of "$ac_prog", so it can be a program name with args.
19043 set dummy $ac_prog; ac_word=$2
19044 echo "$as_me:$LINENO: checking for $ac_word" >&5
19045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19046 if test "${ac_cv_path_PERL_PATH+set}" = set; then
19047   echo $ECHO_N "(cached) $ECHO_C" >&6
19048 else
19049   case $PERL_PATH in
19050   [\\/]* | ?:[\\/]*)
19051   ac_cv_path_PERL_PATH="$PERL_PATH" # Let the user override the test with a path.
19052   ;;
19053   *)
19054   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19055 for as_dir in $PATH
19056 do
19057   IFS=$as_save_IFS
19058   test -z "$as_dir" && as_dir=.
19059   for ac_exec_ext in '' $ac_executable_extensions; do
19060   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19061     ac_cv_path_PERL_PATH="$as_dir/$ac_word$ac_exec_ext"
19062     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19063     break 2
19064   fi
19065 done
19066 done
19067
19068   ;;
19069 esac
19070 fi
19071 PERL_PATH=$ac_cv_path_PERL_PATH
19072
19073 if test -n "$PERL_PATH"; then
19074   echo "$as_me:$LINENO: result: $PERL_PATH" >&5
19075 echo "${ECHO_T}$PERL_PATH" >&6
19076 else
19077   echo "$as_me:$LINENO: result: no" >&5
19078 echo "${ECHO_T}no" >&6
19079 fi
19080
19081   test -n "$PERL_PATH" && break
19082 done
19083 test -n "$PERL_PATH" || PERL_PATH="not found"
19084
19085
19086   if test "x$PERL_PATH" != "xnot found"; then
19087   {
19088     echo "$as_me:$LINENO: checking whether Perl is new enough" >&5
19089 echo $ECHO_N "checking whether Perl is new enough... $ECHO_C" >&6
19090 if test "${glibmm_cv_perl_version_5_6_0+set}" = set; then
19091   echo $ECHO_N "(cached) $ECHO_C" >&6
19092 else
19093
19094       glibmm_cv_perl_version_5_6_0=no
19095       "$PERL_PATH" -e "require v5.6.0; exit 0;" >/dev/null 2>&1 && glibmm_cv_perl_version_5_6_0=yes
19096
19097 fi
19098 echo "$as_me:$LINENO: result: $glibmm_cv_perl_version_5_6_0" >&5
19099 echo "${ECHO_T}$glibmm_cv_perl_version_5_6_0" >&6
19100     test "x${glibmm_cv_perl_version_5_6_0}" = xyes && glibmm_perl_result=yes
19101   }
19102   else
19103   {
19104     # Make sure we have something sensible, even if it doesn't work.
19105     PERL_PATH=perl
19106   }
19107   fi
19108
19109   if test "x$glibmm_perl_result" = xno && test "x$USE_MAINTAINER_MODE" = xyes; then
19110   {
19111     { { echo "$as_me:$LINENO: error:
19112 *** Perl >= 5.6.0 is required for building $PACKAGE in maintainer-mode.
19113 " >&5
19114 echo "$as_me: error:
19115 *** Perl >= 5.6.0 is required for building $PACKAGE in maintainer-mode.
19116 " >&2;}
19117    { (exit 1); exit 1; }; }
19118   }
19119   fi
19120
19121
19122
19123
19124 #########################################################################
19125 #  Function checks
19126 #########################################################################
19127
19128 # functions used in demos/gtk-demo. Undefined in config.h !
19129
19130
19131
19132
19133 for ac_func in flockfile funlockfile getc_unlocked mkfifo
19134 do
19135 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19136 echo "$as_me:$LINENO: checking for $ac_func" >&5
19137 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19138 if eval "test \"\${$as_ac_var+set}\" = set"; then
19139   echo $ECHO_N "(cached) $ECHO_C" >&6
19140 else
19141   cat >conftest.$ac_ext <<_ACEOF
19142 /* confdefs.h.  */
19143 _ACEOF
19144 cat confdefs.h >>conftest.$ac_ext
19145 cat >>conftest.$ac_ext <<_ACEOF
19146 /* end confdefs.h.  */
19147 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19148    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19149 #define $ac_func innocuous_$ac_func
19150
19151 /* System header to define __stub macros and hopefully few prototypes,
19152     which can conflict with char $ac_func (); below.
19153     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19154     <limits.h> exists even on freestanding compilers.  */
19155
19156 #ifdef __STDC__
19157 # include <limits.h>
19158 #else
19159 # include <assert.h>
19160 #endif
19161
19162 #undef $ac_func
19163
19164 /* Override any gcc2 internal prototype to avoid an error.  */
19165 #ifdef __cplusplus
19166 extern "C"
19167 {
19168 #endif
19169 /* We use char because int might match the return type of a gcc2
19170    builtin and then its argument prototype would still apply.  */
19171 char $ac_func ();
19172 /* The GNU C library defines this for functions which it implements
19173     to always fail with ENOSYS.  Some functions are actually named
19174     something starting with __ and the normal name is an alias.  */
19175 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19176 choke me
19177 #else
19178 char (*f) () = $ac_func;
19179 #endif
19180 #ifdef __cplusplus
19181 }
19182 #endif
19183
19184 int
19185 main ()
19186 {
19187 return f != $ac_func;
19188   ;
19189   return 0;
19190 }
19191 _ACEOF
19192 rm -f conftest.$ac_objext conftest$ac_exeext
19193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19194   (eval $ac_link) 2>conftest.er1
19195   ac_status=$?
19196   grep -v '^ *+' conftest.er1 >conftest.err
19197   rm -f conftest.er1
19198   cat conftest.err >&5
19199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19200   (exit $ac_status); } &&
19201          { ac_try='test -z "$ac_c_werror_flag"
19202                          || test ! -s conftest.err'
19203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19204   (eval $ac_try) 2>&5
19205   ac_status=$?
19206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19207   (exit $ac_status); }; } &&
19208          { ac_try='test -s conftest$ac_exeext'
19209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19210   (eval $ac_try) 2>&5
19211   ac_status=$?
19212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19213   (exit $ac_status); }; }; then
19214   eval "$as_ac_var=yes"
19215 else
19216   echo "$as_me: failed program was:" >&5
19217 sed 's/^/| /' conftest.$ac_ext >&5
19218
19219 eval "$as_ac_var=no"
19220 fi
19221 rm -f conftest.err conftest.$ac_objext \
19222       conftest$ac_exeext conftest.$ac_ext
19223 fi
19224 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19225 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19226 if test `eval echo '${'$as_ac_var'}'` = yes; then
19227   cat >>confdefs.h <<_ACEOF
19228 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19229 _ACEOF
19230
19231 fi
19232 done
19233
19234
19235 #########################################################################
19236 #  Dependancy checks
19237 #########################################################################
19238 gtkmm_min_sigc_version=2.0.0
19239 gtkmm_min_glib_version=2.9.0
19240
19241
19242
19243 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19244         if test -n "$ac_tool_prefix"; then
19245   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19246 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19247 echo "$as_me:$LINENO: checking for $ac_word" >&5
19248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19249 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19250   echo $ECHO_N "(cached) $ECHO_C" >&6
19251 else
19252   case $PKG_CONFIG in
19253   [\\/]* | ?:[\\/]*)
19254   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19255   ;;
19256   *)
19257   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19258 for as_dir in $PATH
19259 do
19260   IFS=$as_save_IFS
19261   test -z "$as_dir" && as_dir=.
19262   for ac_exec_ext in '' $ac_executable_extensions; do
19263   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19264     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19265     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19266     break 2
19267   fi
19268 done
19269 done
19270
19271   ;;
19272 esac
19273 fi
19274 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19275
19276 if test -n "$PKG_CONFIG"; then
19277   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19278 echo "${ECHO_T}$PKG_CONFIG" >&6
19279 else
19280   echo "$as_me:$LINENO: result: no" >&5
19281 echo "${ECHO_T}no" >&6
19282 fi
19283
19284 fi
19285 if test -z "$ac_cv_path_PKG_CONFIG"; then
19286   ac_pt_PKG_CONFIG=$PKG_CONFIG
19287   # Extract the first word of "pkg-config", so it can be a program name with args.
19288 set dummy pkg-config; ac_word=$2
19289 echo "$as_me:$LINENO: checking for $ac_word" >&5
19290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19291 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
19292   echo $ECHO_N "(cached) $ECHO_C" >&6
19293 else
19294   case $ac_pt_PKG_CONFIG in
19295   [\\/]* | ?:[\\/]*)
19296   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19297   ;;
19298   *)
19299   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19300 for as_dir in $PATH
19301 do
19302   IFS=$as_save_IFS
19303   test -z "$as_dir" && as_dir=.
19304   for ac_exec_ext in '' $ac_executable_extensions; do
19305   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19306     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19307     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19308     break 2
19309   fi
19310 done
19311 done
19312
19313   ;;
19314 esac
19315 fi
19316 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19317
19318 if test -n "$ac_pt_PKG_CONFIG"; then
19319   echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
19320 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
19321 else
19322   echo "$as_me:$LINENO: result: no" >&5
19323 echo "${ECHO_T}no" >&6
19324 fi
19325
19326   PKG_CONFIG=$ac_pt_PKG_CONFIG
19327 else
19328   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19329 fi
19330
19331 fi
19332 if test -n "$PKG_CONFIG"; then
19333         _pkg_min_version=0.9.0
19334         echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
19335 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
19336         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19337                 echo "$as_me:$LINENO: result: yes" >&5
19338 echo "${ECHO_T}yes" >&6
19339         else
19340                 echo "$as_me:$LINENO: result: no" >&5
19341 echo "${ECHO_T}no" >&6
19342                 PKG_CONFIG=""
19343         fi
19344
19345 fi
19346
19347 pkg_failed=no
19348 echo "$as_me:$LINENO: checking for GLIBMM" >&5
19349 echo $ECHO_N "checking for GLIBMM... $ECHO_C" >&6
19350
19351 if test -n "$PKG_CONFIG"; then
19352     if test -n "$GLIBMM_CFLAGS"; then
19353         pkg_cv_GLIBMM_CFLAGS="$GLIBMM_CFLAGS"
19354     else
19355         if test -n "$PKG_CONFIG" && \
19356     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sigc++-2.0 >= \${gtkmm_min_sigc_version} glib-2.0 >= \${gtkmm_min_glib_version} gobject-2.0 >= \${gtkmm_min_glib_version} gmodule-2.0 >= \${gtkmm_min_glib_version}\"") >&5
19357   ($PKG_CONFIG --exists --print-errors "sigc++-2.0 >= ${gtkmm_min_sigc_version} glib-2.0 >= ${gtkmm_min_glib_version} gobject-2.0 >= ${gtkmm_min_glib_version} gmodule-2.0 >= ${gtkmm_min_glib_version}") 2>&5
19358   ac_status=$?
19359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19360   (exit $ac_status); }; then
19361   pkg_cv_GLIBMM_CFLAGS=`$PKG_CONFIG --cflags "sigc++-2.0 >= ${gtkmm_min_sigc_version} glib-2.0 >= ${gtkmm_min_glib_version} gobject-2.0 >= ${gtkmm_min_glib_version} gmodule-2.0 >= ${gtkmm_min_glib_version}" 2>/dev/null`
19362 else
19363   pkg_failed=yes
19364 fi
19365     fi
19366 else
19367         pkg_failed=untried
19368 fi
19369 if test -n "$PKG_CONFIG"; then
19370     if test -n "$GLIBMM_LIBS"; then
19371         pkg_cv_GLIBMM_LIBS="$GLIBMM_LIBS"
19372     else
19373         if test -n "$PKG_CONFIG" && \
19374     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sigc++-2.0 >= \${gtkmm_min_sigc_version} glib-2.0 >= \${gtkmm_min_glib_version} gobject-2.0 >= \${gtkmm_min_glib_version} gmodule-2.0 >= \${gtkmm_min_glib_version}\"") >&5
19375   ($PKG_CONFIG --exists --print-errors "sigc++-2.0 >= ${gtkmm_min_sigc_version} glib-2.0 >= ${gtkmm_min_glib_version} gobject-2.0 >= ${gtkmm_min_glib_version} gmodule-2.0 >= ${gtkmm_min_glib_version}") 2>&5
19376   ac_status=$?
19377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378   (exit $ac_status); }; then
19379   pkg_cv_GLIBMM_LIBS=`$PKG_CONFIG --libs "sigc++-2.0 >= ${gtkmm_min_sigc_version} glib-2.0 >= ${gtkmm_min_glib_version} gobject-2.0 >= ${gtkmm_min_glib_version} gmodule-2.0 >= ${gtkmm_min_glib_version}" 2>/dev/null`
19380 else
19381   pkg_failed=yes
19382 fi
19383     fi
19384 else
19385         pkg_failed=untried
19386 fi
19387
19388
19389
19390 if test $pkg_failed = yes; then
19391
19392 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19393         _pkg_short_errors_supported=yes
19394 else
19395         _pkg_short_errors_supported=no
19396 fi
19397         if test $_pkg_short_errors_supported = yes; then
19398                 GLIBMM_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "sigc++-2.0 >= ${gtkmm_min_sigc_version} glib-2.0 >= ${gtkmm_min_glib_version} gobject-2.0 >= ${gtkmm_min_glib_version} gmodule-2.0 >= ${gtkmm_min_glib_version}"`
19399         else
19400                 GLIBMM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sigc++-2.0 >= ${gtkmm_min_sigc_version} glib-2.0 >= ${gtkmm_min_glib_version} gobject-2.0 >= ${gtkmm_min_glib_version} gmodule-2.0 >= ${gtkmm_min_glib_version}"`
19401         fi
19402         # Put the nasty error message in config.log where it belongs
19403         echo "$GLIBMM_PKG_ERRORS" >&5
19404
19405         { { echo "$as_me:$LINENO: error: Package requirements (sigc++-2.0 >= ${gtkmm_min_sigc_version} glib-2.0 >= ${gtkmm_min_glib_version} gobject-2.0 >= ${gtkmm_min_glib_version} gmodule-2.0 >= ${gtkmm_min_glib_version}) were not met:
19406
19407 $GLIBMM_PKG_ERRORS
19408
19409 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19410 installed software in a non-standard prefix.
19411
19412 Alternatively, you may set the environment variables GLIBMM_CFLAGS
19413 and GLIBMM_LIBS to avoid the need to call pkg-config.
19414 See the pkg-config man page for more details.
19415 " >&5
19416 echo "$as_me: error: Package requirements (sigc++-2.0 >= ${gtkmm_min_sigc_version} glib-2.0 >= ${gtkmm_min_glib_version} gobject-2.0 >= ${gtkmm_min_glib_version} gmodule-2.0 >= ${gtkmm_min_glib_version}) were not met:
19417
19418 $GLIBMM_PKG_ERRORS
19419
19420 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19421 installed software in a non-standard prefix.
19422
19423 Alternatively, you may set the environment variables GLIBMM_CFLAGS
19424 and GLIBMM_LIBS to avoid the need to call pkg-config.
19425 See the pkg-config man page for more details.
19426 " >&2;}
19427    { (exit 1); exit 1; }; }
19428 elif test $pkg_failed = untried; then
19429         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
19430 is in your PATH or set the PKG_CONFIG environment variable to the full
19431 path to pkg-config.
19432
19433 Alternatively, you may set the environment variables GLIBMM_CFLAGS
19434 and GLIBMM_LIBS to avoid the need to call pkg-config.
19435 See the pkg-config man page for more details.
19436
19437 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
19438 See \`config.log' for more details." >&5
19439 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
19440 is in your PATH or set the PKG_CONFIG environment variable to the full
19441 path to pkg-config.
19442
19443 Alternatively, you may set the environment variables GLIBMM_CFLAGS
19444 and GLIBMM_LIBS to avoid the need to call pkg-config.
19445 See the pkg-config man page for more details.
19446
19447 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
19448 See \`config.log' for more details." >&2;}
19449    { (exit 1); exit 1; }; }
19450 else
19451         GLIBMM_CFLAGS=$pkg_cv_GLIBMM_CFLAGS
19452         GLIBMM_LIBS=$pkg_cv_GLIBMM_LIBS
19453         echo "$as_me:$LINENO: result: yes" >&5
19454 echo "${ECHO_T}yes" >&6
19455         :
19456 fi
19457
19458
19459
19460 # gthread isn't a requirement, but we should use its CFLAGS if available.
19461
19462 pkg_failed=no
19463 echo "$as_me:$LINENO: checking for GTHREAD" >&5
19464 echo $ECHO_N "checking for GTHREAD... $ECHO_C" >&6
19465
19466 if test -n "$PKG_CONFIG"; then
19467     if test -n "$GTHREAD_CFLAGS"; then
19468         pkg_cv_GTHREAD_CFLAGS="$GTHREAD_CFLAGS"
19469     else
19470         if test -n "$PKG_CONFIG" && \
19471     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gthread-2.0 >= \${gtkmm_min_glib_version}\"") >&5
19472   ($PKG_CONFIG --exists --print-errors "gthread-2.0 >= ${gtkmm_min_glib_version}") 2>&5
19473   ac_status=$?
19474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19475   (exit $ac_status); }; then
19476   pkg_cv_GTHREAD_CFLAGS=`$PKG_CONFIG --cflags "gthread-2.0 >= ${gtkmm_min_glib_version}" 2>/dev/null`
19477 else
19478   pkg_failed=yes
19479 fi
19480     fi
19481 else
19482         pkg_failed=untried
19483 fi
19484 if test -n "$PKG_CONFIG"; then
19485     if test -n "$GTHREAD_LIBS"; then
19486         pkg_cv_GTHREAD_LIBS="$GTHREAD_LIBS"
19487     else
19488         if test -n "$PKG_CONFIG" && \
19489     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gthread-2.0 >= \${gtkmm_min_glib_version}\"") >&5
19490   ($PKG_CONFIG --exists --print-errors "gthread-2.0 >= ${gtkmm_min_glib_version}") 2>&5
19491   ac_status=$?
19492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19493   (exit $ac_status); }; then
19494   pkg_cv_GTHREAD_LIBS=`$PKG_CONFIG --libs "gthread-2.0 >= ${gtkmm_min_glib_version}" 2>/dev/null`
19495 else
19496   pkg_failed=yes
19497 fi
19498     fi
19499 else
19500         pkg_failed=untried
19501 fi
19502
19503
19504
19505 if test $pkg_failed = yes; then
19506
19507 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19508         _pkg_short_errors_supported=yes
19509 else
19510         _pkg_short_errors_supported=no
19511 fi
19512         if test $_pkg_short_errors_supported = yes; then
19513                 GTHREAD_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gthread-2.0 >= ${gtkmm_min_glib_version}"`
19514         else
19515                 GTHREAD_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gthread-2.0 >= ${gtkmm_min_glib_version}"`
19516         fi
19517         # Put the nasty error message in config.log where it belongs
19518         echo "$GTHREAD_PKG_ERRORS" >&5
19519
19520         GTHREAD_CFLAGS=''; GTHREAD_LIBS=''
19521 elif test $pkg_failed = untried; then
19522         GTHREAD_CFLAGS=''; GTHREAD_LIBS=''
19523 else
19524         GTHREAD_CFLAGS=$pkg_cv_GTHREAD_CFLAGS
19525         GTHREAD_LIBS=$pkg_cv_GTHREAD_LIBS
19526         echo "$as_me:$LINENO: result: yes" >&5
19527 echo "${ECHO_T}yes" >&6
19528         :
19529 fi
19530
19531
19532
19533
19534 #########################################################################
19535 #  C++ checks
19536 #########################################################################
19537 ac_ext=cc
19538 ac_cpp='$CXXCPP $CPPFLAGS'
19539 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19540 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19541 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19542 if test -n "$ac_tool_prefix"; then
19543   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
19544   do
19545     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19546 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19547 echo "$as_me:$LINENO: checking for $ac_word" >&5
19548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19549 if test "${ac_cv_prog_CXX+set}" = set; then
19550   echo $ECHO_N "(cached) $ECHO_C" >&6
19551 else
19552   if test -n "$CXX"; then
19553   ac_cv_prog_CXX="$CXX" # Let the user override the test.
19554 else
19555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19556 for as_dir in $PATH
19557 do
19558   IFS=$as_save_IFS
19559   test -z "$as_dir" && as_dir=.
19560   for ac_exec_ext in '' $ac_executable_extensions; do
19561   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19562     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
19563     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19564     break 2
19565   fi
19566 done
19567 done
19568
19569 fi
19570 fi
19571 CXX=$ac_cv_prog_CXX
19572 if test -n "$CXX"; then
19573   echo "$as_me:$LINENO: result: $CXX" >&5
19574 echo "${ECHO_T}$CXX" >&6
19575 else
19576   echo "$as_me:$LINENO: result: no" >&5
19577 echo "${ECHO_T}no" >&6
19578 fi
19579
19580     test -n "$CXX" && break
19581   done
19582 fi
19583 if test -z "$CXX"; then
19584   ac_ct_CXX=$CXX
19585   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
19586 do
19587   # Extract the first word of "$ac_prog", so it can be a program name with args.
19588 set dummy $ac_prog; ac_word=$2
19589 echo "$as_me:$LINENO: checking for $ac_word" >&5
19590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19591 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
19592   echo $ECHO_N "(cached) $ECHO_C" >&6
19593 else
19594   if test -n "$ac_ct_CXX"; then
19595   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
19596 else
19597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19598 for as_dir in $PATH
19599 do
19600   IFS=$as_save_IFS
19601   test -z "$as_dir" && as_dir=.
19602   for ac_exec_ext in '' $ac_executable_extensions; do
19603   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19604     ac_cv_prog_ac_ct_CXX="$ac_prog"
19605     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19606     break 2
19607   fi
19608 done
19609 done
19610
19611 fi
19612 fi
19613 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
19614 if test -n "$ac_ct_CXX"; then
19615   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
19616 echo "${ECHO_T}$ac_ct_CXX" >&6
19617 else
19618   echo "$as_me:$LINENO: result: no" >&5
19619 echo "${ECHO_T}no" >&6
19620 fi
19621
19622   test -n "$ac_ct_CXX" && break
19623 done
19624 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
19625
19626   CXX=$ac_ct_CXX
19627 fi
19628
19629
19630 # Provide some information about the compiler.
19631 echo "$as_me:$LINENO:" \
19632      "checking for C++ compiler version" >&5
19633 ac_compiler=`set X $ac_compile; echo $2`
19634 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
19635   (eval $ac_compiler --version </dev/null >&5) 2>&5
19636   ac_status=$?
19637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638   (exit $ac_status); }
19639 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
19640   (eval $ac_compiler -v </dev/null >&5) 2>&5
19641   ac_status=$?
19642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19643   (exit $ac_status); }
19644 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
19645   (eval $ac_compiler -V </dev/null >&5) 2>&5
19646   ac_status=$?
19647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19648   (exit $ac_status); }
19649
19650 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
19651 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
19652 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
19653   echo $ECHO_N "(cached) $ECHO_C" >&6
19654 else
19655   cat >conftest.$ac_ext <<_ACEOF
19656 /* confdefs.h.  */
19657 _ACEOF
19658 cat confdefs.h >>conftest.$ac_ext
19659 cat >>conftest.$ac_ext <<_ACEOF
19660 /* end confdefs.h.  */
19661
19662 int
19663 main ()
19664 {
19665 #ifndef __GNUC__
19666        choke me
19667 #endif
19668
19669   ;
19670   return 0;
19671 }
19672 _ACEOF
19673 rm -f conftest.$ac_objext
19674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19675   (eval $ac_compile) 2>conftest.er1
19676   ac_status=$?
19677   grep -v '^ *+' conftest.er1 >conftest.err
19678   rm -f conftest.er1
19679   cat conftest.err >&5
19680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19681   (exit $ac_status); } &&
19682          { ac_try='test -z "$ac_cxx_werror_flag"
19683                          || test ! -s conftest.err'
19684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19685   (eval $ac_try) 2>&5
19686   ac_status=$?
19687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19688   (exit $ac_status); }; } &&
19689          { ac_try='test -s conftest.$ac_objext'
19690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19691   (eval $ac_try) 2>&5
19692   ac_status=$?
19693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19694   (exit $ac_status); }; }; then
19695   ac_compiler_gnu=yes
19696 else
19697   echo "$as_me: failed program was:" >&5
19698 sed 's/^/| /' conftest.$ac_ext >&5
19699
19700 ac_compiler_gnu=no
19701 fi
19702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19703 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
19704
19705 fi
19706 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
19707 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
19708 GXX=`test $ac_compiler_gnu = yes && echo yes`
19709 ac_test_CXXFLAGS=${CXXFLAGS+set}
19710 ac_save_CXXFLAGS=$CXXFLAGS
19711 CXXFLAGS="-g"
19712 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
19713 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
19714 if test "${ac_cv_prog_cxx_g+set}" = set; then
19715   echo $ECHO_N "(cached) $ECHO_C" >&6
19716 else
19717   cat >conftest.$ac_ext <<_ACEOF
19718 /* confdefs.h.  */
19719 _ACEOF
19720 cat confdefs.h >>conftest.$ac_ext
19721 cat >>conftest.$ac_ext <<_ACEOF
19722 /* end confdefs.h.  */
19723
19724 int
19725 main ()
19726 {
19727
19728   ;
19729   return 0;
19730 }
19731 _ACEOF
19732 rm -f conftest.$ac_objext
19733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19734   (eval $ac_compile) 2>conftest.er1
19735   ac_status=$?
19736   grep -v '^ *+' conftest.er1 >conftest.err
19737   rm -f conftest.er1
19738   cat conftest.err >&5
19739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19740   (exit $ac_status); } &&
19741          { ac_try='test -z "$ac_cxx_werror_flag"
19742                          || test ! -s conftest.err'
19743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19744   (eval $ac_try) 2>&5
19745   ac_status=$?
19746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19747   (exit $ac_status); }; } &&
19748          { ac_try='test -s conftest.$ac_objext'
19749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19750   (eval $ac_try) 2>&5
19751   ac_status=$?
19752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19753   (exit $ac_status); }; }; then
19754   ac_cv_prog_cxx_g=yes
19755 else
19756   echo "$as_me: failed program was:" >&5
19757 sed 's/^/| /' conftest.$ac_ext >&5
19758
19759 ac_cv_prog_cxx_g=no
19760 fi
19761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19762 fi
19763 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
19764 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
19765 if test "$ac_test_CXXFLAGS" = set; then
19766   CXXFLAGS=$ac_save_CXXFLAGS
19767 elif test $ac_cv_prog_cxx_g = yes; then
19768   if test "$GXX" = yes; then
19769     CXXFLAGS="-g -O2"
19770   else
19771     CXXFLAGS="-g"
19772   fi
19773 else
19774   if test "$GXX" = yes; then
19775     CXXFLAGS="-O2"
19776   else
19777     CXXFLAGS=
19778   fi
19779 fi
19780 for ac_declaration in \
19781    '' \
19782    'extern "C" void std::exit (int) throw (); using std::exit;' \
19783    'extern "C" void std::exit (int); using std::exit;' \
19784    'extern "C" void exit (int) throw ();' \
19785    'extern "C" void exit (int);' \
19786    'void exit (int);'
19787 do
19788   cat >conftest.$ac_ext <<_ACEOF
19789 /* confdefs.h.  */
19790 _ACEOF
19791 cat confdefs.h >>conftest.$ac_ext
19792 cat >>conftest.$ac_ext <<_ACEOF
19793 /* end confdefs.h.  */
19794 $ac_declaration
19795 #include <stdlib.h>
19796 int
19797 main ()
19798 {
19799 exit (42);
19800   ;
19801   return 0;
19802 }
19803 _ACEOF
19804 rm -f conftest.$ac_objext
19805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19806   (eval $ac_compile) 2>conftest.er1
19807   ac_status=$?
19808   grep -v '^ *+' conftest.er1 >conftest.err
19809   rm -f conftest.er1
19810   cat conftest.err >&5
19811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19812   (exit $ac_status); } &&
19813          { ac_try='test -z "$ac_cxx_werror_flag"
19814                          || test ! -s conftest.err'
19815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19816   (eval $ac_try) 2>&5
19817   ac_status=$?
19818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19819   (exit $ac_status); }; } &&
19820          { ac_try='test -s conftest.$ac_objext'
19821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19822   (eval $ac_try) 2>&5
19823   ac_status=$?
19824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19825   (exit $ac_status); }; }; then
19826   :
19827 else
19828   echo "$as_me: failed program was:" >&5
19829 sed 's/^/| /' conftest.$ac_ext >&5
19830
19831 continue
19832 fi
19833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19834   cat >conftest.$ac_ext <<_ACEOF
19835 /* confdefs.h.  */
19836 _ACEOF
19837 cat confdefs.h >>conftest.$ac_ext
19838 cat >>conftest.$ac_ext <<_ACEOF
19839 /* end confdefs.h.  */
19840 $ac_declaration
19841 int
19842 main ()
19843 {
19844 exit (42);
19845   ;
19846   return 0;
19847 }
19848 _ACEOF
19849 rm -f conftest.$ac_objext
19850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19851   (eval $ac_compile) 2>conftest.er1
19852   ac_status=$?
19853   grep -v '^ *+' conftest.er1 >conftest.err
19854   rm -f conftest.er1
19855   cat conftest.err >&5
19856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19857   (exit $ac_status); } &&
19858          { ac_try='test -z "$ac_cxx_werror_flag"
19859                          || test ! -s conftest.err'
19860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19861   (eval $ac_try) 2>&5
19862   ac_status=$?
19863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19864   (exit $ac_status); }; } &&
19865          { ac_try='test -s conftest.$ac_objext'
19866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19867   (eval $ac_try) 2>&5
19868   ac_status=$?
19869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19870   (exit $ac_status); }; }; then
19871   break
19872 else
19873   echo "$as_me: failed program was:" >&5
19874 sed 's/^/| /' conftest.$ac_ext >&5
19875
19876 fi
19877 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19878 done
19879 rm -f conftest*
19880 if test -n "$ac_declaration"; then
19881   echo '#ifdef __cplusplus' >>confdefs.h
19882   echo $ac_declaration      >>confdefs.h
19883   echo '#endif'             >>confdefs.h
19884 fi
19885
19886 ac_ext=c
19887 ac_cpp='$CPP $CPPFLAGS'
19888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19891
19892 depcc="$CXX"  am_compiler_list=
19893
19894 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19895 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
19896 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
19897   echo $ECHO_N "(cached) $ECHO_C" >&6
19898 else
19899   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19900   # We make a subdir and do the tests there.  Otherwise we can end up
19901   # making bogus files that we don't know about and never remove.  For
19902   # instance it was reported that on HP-UX the gcc test will end up
19903   # making a dummy file named `D' -- because `-MD' means `put the output
19904   # in D'.
19905   mkdir conftest.dir
19906   # Copy depcomp to subdir because otherwise we won't find it if we're
19907   # using a relative directory.
19908   cp "$am_depcomp" conftest.dir
19909   cd conftest.dir
19910   # We will build objects and dependencies in a subdirectory because
19911   # it helps to detect inapplicable dependency modes.  For instance
19912   # both Tru64's cc and ICC support -MD to output dependencies as a
19913   # side effect of compilation, but ICC will put the dependencies in
19914   # the current directory while Tru64 will put them in the object
19915   # directory.
19916   mkdir sub
19917
19918   am_cv_CXX_dependencies_compiler_type=none
19919   if test "$am_compiler_list" = ""; then
19920      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19921   fi
19922   for depmode in $am_compiler_list; do
19923     # Setup a source with many dependencies, because some compilers
19924     # like to wrap large dependency lists on column 80 (with \), and
19925     # we should not choose a depcomp mode which is confused by this.
19926     #
19927     # We need to recreate these files for each test, as the compiler may
19928     # overwrite some of them when testing with obscure command lines.
19929     # This happens at least with the AIX C compiler.
19930     : > sub/conftest.c
19931     for i in 1 2 3 4 5 6; do
19932       echo '#include "conftst'$i'.h"' >> sub/conftest.c
19933       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19934       # Solaris 8's {/usr,}/bin/sh.
19935       touch sub/conftst$i.h
19936     done
19937     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19938
19939     case $depmode in
19940     nosideeffect)
19941       # after this tag, mechanisms are not by side-effect, so they'll
19942       # only be used when explicitly requested
19943       if test "x$enable_dependency_tracking" = xyes; then
19944         continue
19945       else
19946         break
19947       fi
19948       ;;
19949     none) break ;;
19950     esac
19951     # We check with `-c' and `-o' for the sake of the "dashmstdout"
19952     # mode.  It turns out that the SunPro C++ compiler does not properly
19953     # handle `-M -o', and we need to detect this.
19954     if depmode=$depmode \
19955        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19956        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19957        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19958          >/dev/null 2>conftest.err &&
19959        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19960        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19961        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19962       # icc doesn't choke on unknown options, it will just issue warnings
19963       # or remarks (even with -Werror).  So we grep stderr for any message
19964       # that says an option was ignored or not supported.
19965       # When given -MP, icc 7.0 and 7.1 complain thusly:
19966       #   icc: Command line warning: ignoring option '-M'; no argument required
19967       # The diagnosis changed in icc 8.0:
19968       #   icc: Command line remark: option '-MP' not supported
19969       if (grep 'ignoring option' conftest.err ||
19970           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19971         am_cv_CXX_dependencies_compiler_type=$depmode
19972         break
19973       fi
19974     fi
19975   done
19976
19977   cd ..
19978   rm -rf conftest.dir
19979 else
19980   am_cv_CXX_dependencies_compiler_type=none
19981 fi
19982
19983 fi
19984 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
19985 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
19986 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
19987
19988
19989
19990 if
19991   test "x$enable_dependency_tracking" != xno \
19992   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
19993   am__fastdepCXX_TRUE=
19994   am__fastdepCXX_FALSE='#'
19995 else
19996   am__fastdepCXX_TRUE='#'
19997   am__fastdepCXX_FALSE=
19998 fi
19999
20000
20001
20002 # Check for the SUN Forte compiler, and define GLIBMM_COMPILER_SUN_FORTE in the header.
20003 echo "$as_me:$LINENO: checking whether we are using SUN CC compiler" >&5
20004 echo $ECHO_N "checking whether we are using SUN CC compiler... $ECHO_C" >&6
20005 if test "${ac_cv_prog_sun_cxx+set}" = set; then
20006   echo $ECHO_N "(cached) $ECHO_C" >&6
20007 else
20008   if { ac_try='${CXX-g++} -V 2>&1'
20009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20010   (eval $ac_try) 2>&5
20011   ac_status=$?
20012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20013   (exit $ac_status); }; } | egrep "Sun WorkShop" >/dev/null 2>&1; then
20014       ac_cv_prog_sun_cxx=yes
20015     else
20016       ac_cv_prog_sun_cxx=no
20017     fi
20018
20019 fi
20020 echo "$as_me:$LINENO: result: $ac_cv_prog_sun_cxx" >&5
20021 echo "${ECHO_T}$ac_cv_prog_sun_cxx" >&6
20022
20023    if test "x${ac_cv_prog_sun_cxx}" = "xyes"; then
20024    {
20025
20026 cat >>confdefs.h <<\_ACEOF
20027 #define GLIBMM_COMPILER_SUN_FORTE 1
20028 _ACEOF
20029
20030    }
20031    fi
20032
20033
20034 # Ensure MSVC-compatible struct packing convention is used when
20035 # compiling for Win32 with gcc.
20036 # What flag to depends on gcc version: gcc3 uses "-mms-bitfields", while
20037 # gcc2 uses "-fnative-struct".
20038 if test x"$os_win32" = xyes; then
20039   if test x"$GCC" = xyes -a x"$GXX" = xyes; then
20040     msnative_struct=''
20041     echo "$as_me:$LINENO: checking how to get MSVC-compatible struct packing" >&5
20042 echo $ECHO_N "checking how to get MSVC-compatible struct packing... $ECHO_C" >&6
20043     if test -z "$ac_cv_prog_CC"; then
20044       our_gcc="$CC"
20045     else
20046       our_gcc="$ac_cv_prog_CC"
20047     fi
20048     case `$our_gcc --version | sed -e 's,\..*,.,' -e q` in
20049       2.)
20050         if $our_gcc -v --help 2>/dev/null | grep fnative-struct >/dev/null; then
20051           msnative_struct='-fnative-struct'
20052         fi
20053         ;;
20054       *)
20055         if $our_gcc -v --help 2>/dev/null | grep ms-bitfields >/dev/null; then
20056           msnative_struct='-mms-bitfields'
20057         fi
20058         ;;
20059     esac
20060     if test x"$msnative_struct" = x ; then
20061       echo "$as_me:$LINENO: result: no way" >&5
20062 echo "${ECHO_T}no way" >&6
20063       { echo "$as_me:$LINENO: WARNING: produced libraries might be incompatible with MSVC-compiled code" >&5
20064 echo "$as_me: WARNING: produced libraries might be incompatible with MSVC-compiled code" >&2;}
20065     else
20066       CXXFLAGS="$CXXFLAGS $msnative_struct"
20067       echo "$as_me:$LINENO: result: ${msnative_struct}" >&5
20068 echo "${ECHO_T}${msnative_struct}" >&6
20069     fi
20070   fi
20071 fi
20072
20073 ac_ext=cc
20074 ac_cpp='$CXXCPP $CPPFLAGS'
20075 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20076 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20077 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20078
20079
20080
20081 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
20082 echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
20083 cat >conftest.$ac_ext <<_ACEOF
20084 /* confdefs.h.  */
20085 _ACEOF
20086 cat confdefs.h >>conftest.$ac_ext
20087 cat >>conftest.$ac_ext <<_ACEOF
20088 /* end confdefs.h.  */
20089
20090
20091 int
20092 main ()
20093 {
20094
20095    bool b=true;
20096    bool b1=false;
20097    (void)b;
20098    (void)b1;
20099
20100   ;
20101   return 0;
20102 }
20103 _ACEOF
20104 rm -f conftest.$ac_objext
20105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20106   (eval $ac_compile) 2>conftest.er1
20107   ac_status=$?
20108   grep -v '^ *+' conftest.er1 >conftest.err
20109   rm -f conftest.er1
20110   cat conftest.err >&5
20111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20112   (exit $ac_status); } &&
20113          { ac_try='test -z "$ac_cxx_werror_flag"
20114                          || test ! -s conftest.err'
20115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20116   (eval $ac_try) 2>&5
20117   ac_status=$?
20118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20119   (exit $ac_status); }; } &&
20120          { ac_try='test -s conftest.$ac_objext'
20121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20122   (eval $ac_try) 2>&5
20123   ac_status=$?
20124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20125   (exit $ac_status); }; }; then
20126
20127   ac_cxx_bool=yes
20128   echo "$as_me:$LINENO: result: $ac_cxx_bool" >&5
20129 echo "${ECHO_T}$ac_cxx_bool" >&6
20130
20131
20132 else
20133   echo "$as_me: failed program was:" >&5
20134 sed 's/^/| /' conftest.$ac_ext >&5
20135
20136
20137   ac_cxx_bool=no
20138   echo "$as_me:$LINENO: result: $ac_cxx_bool" >&5
20139 echo "${ECHO_T}$ac_cxx_bool" >&6
20140   config_error=yes
20141
20142 fi
20143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20144
20145
20146 echo "$as_me:$LINENO: checking if C++ compiler supports namespaces" >&5
20147 echo $ECHO_N "checking if C++ compiler supports namespaces... $ECHO_C" >&6
20148 cat >conftest.$ac_ext <<_ACEOF
20149 /* confdefs.h.  */
20150 _ACEOF
20151 cat confdefs.h >>conftest.$ac_ext
20152 cat >>conftest.$ac_ext <<_ACEOF
20153 /* end confdefs.h.  */
20154
20155 namespace Foo { struct A {}; }
20156 using namespace Foo;
20157
20158 int
20159 main ()
20160 {
20161
20162 A a;
20163 (void)a;
20164
20165   ;
20166   return 0;
20167 }
20168 _ACEOF
20169 rm -f conftest.$ac_objext
20170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20171   (eval $ac_compile) 2>conftest.er1
20172   ac_status=$?
20173   grep -v '^ *+' conftest.er1 >conftest.err
20174   rm -f conftest.er1
20175   cat conftest.err >&5
20176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20177   (exit $ac_status); } &&
20178          { ac_try='test -z "$ac_cxx_werror_flag"
20179                          || test ! -s conftest.err'
20180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20181   (eval $ac_try) 2>&5
20182   ac_status=$?
20183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20184   (exit $ac_status); }; } &&
20185          { ac_try='test -s conftest.$ac_objext'
20186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20187   (eval $ac_try) 2>&5
20188   ac_status=$?
20189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20190   (exit $ac_status); }; }; then
20191
20192  ac_cxx_namespaces=yes
20193  echo "$as_me:$LINENO: result: $ac_cxx_namespaces" >&5
20194 echo "${ECHO_T}$ac_cxx_namespaces" >&6
20195
20196
20197 else
20198   echo "$as_me: failed program was:" >&5
20199 sed 's/^/| /' conftest.$ac_ext >&5
20200
20201
20202  ac_cxx_namespaces=no
20203  echo "$as_me:$LINENO: result: $ac_cxx_namespaces" >&5
20204 echo "${ECHO_T}$ac_cxx_namespaces" >&6
20205  config_error=yes
20206
20207 fi
20208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20209
20210
20211 echo "$as_me:$LINENO: checking if C++ compiler supports mutable" >&5
20212 echo $ECHO_N "checking if C++ compiler supports mutable... $ECHO_C" >&6
20213 cat >conftest.$ac_ext <<_ACEOF
20214 /* confdefs.h.  */
20215 _ACEOF
20216 cat confdefs.h >>conftest.$ac_ext
20217 cat >>conftest.$ac_ext <<_ACEOF
20218 /* end confdefs.h.  */
20219
20220 class k {
20221   mutable char *c;
20222 public:
20223    void foo() const { c=0; }
20224 };
20225
20226 int
20227 main ()
20228 {
20229
20230
20231   ;
20232   return 0;
20233 }
20234 _ACEOF
20235 rm -f conftest.$ac_objext
20236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20237   (eval $ac_compile) 2>conftest.er1
20238   ac_status=$?
20239   grep -v '^ *+' conftest.er1 >conftest.err
20240   rm -f conftest.er1
20241   cat conftest.err >&5
20242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20243   (exit $ac_status); } &&
20244          { ac_try='test -z "$ac_cxx_werror_flag"
20245                          || test ! -s conftest.err'
20246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20247   (eval $ac_try) 2>&5
20248   ac_status=$?
20249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20250   (exit $ac_status); }; } &&
20251          { ac_try='test -s conftest.$ac_objext'
20252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20253   (eval $ac_try) 2>&5
20254   ac_status=$?
20255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20256   (exit $ac_status); }; }; then
20257
20258   ac_cxx_mutable=yes
20259   echo "$as_me:$LINENO: result: $ac_cxx_mutable" >&5
20260 echo "${ECHO_T}$ac_cxx_mutable" >&6
20261
20262
20263 else
20264   echo "$as_me: failed program was:" >&5
20265 sed 's/^/| /' conftest.$ac_ext >&5
20266
20267
20268   ac_cxx_mutable=no
20269   echo "$as_me:$LINENO: result: $ac_cxx_mutable" >&5
20270 echo "${ECHO_T}$ac_cxx_mutable" >&6
20271   config_error=yes
20272
20273 fi
20274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20275
20276
20277 echo "$as_me:$LINENO: checking if C++ environment provides all required features" >&5
20278 echo $ECHO_N "checking if C++ environment provides all required features... $ECHO_C" >&6
20279 if test "x$config_error" = xyes ; then
20280   echo "$as_me:$LINENO: result: no" >&5
20281 echo "${ECHO_T}no" >&6
20282   { { echo "$as_me:$LINENO: error: Your compiler is not powerful enough to compile gtkmm. If it should be, see config.log for more information of why it failed." >&5
20283 echo "$as_me: error: Your compiler is not powerful enough to compile gtkmm. If it should be, see config.log for more information of why it failed." >&2;}
20284    { (exit 1); exit 1; }; }
20285 fi
20286 echo "$as_me:$LINENO: result: yes" >&5
20287 echo "${ECHO_T}yes" >&6
20288
20289
20290   echo "$as_me:$LINENO: checking whether C++ library symbols are declared in namespace std" >&5
20291 echo $ECHO_N "checking whether C++ library symbols are declared in namespace std... $ECHO_C" >&6
20292 if test "${gtkmm_cv_cxx_has_namespace_std+set}" = set; then
20293   echo $ECHO_N "(cached) $ECHO_C" >&6
20294 else
20295
20296     cat >conftest.$ac_ext <<_ACEOF
20297 /* confdefs.h.  */
20298 _ACEOF
20299 cat confdefs.h >>conftest.$ac_ext
20300 cat >>conftest.$ac_ext <<_ACEOF
20301 /* end confdefs.h.  */
20302
20303       #include <algorithm>
20304       #include <iterator>
20305       #include <iostream>
20306       #include <string>
20307
20308 int
20309 main ()
20310 {
20311
20312       using std::min;
20313       using std::find;
20314       using std::copy;
20315       using std::bidirectional_iterator_tag;
20316       using std::string;
20317       using std::istream;
20318       using std::cout;
20319
20320   ;
20321   return 0;
20322 }
20323 _ACEOF
20324 rm -f conftest.$ac_objext
20325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20326   (eval $ac_compile) 2>conftest.er1
20327   ac_status=$?
20328   grep -v '^ *+' conftest.er1 >conftest.err
20329   rm -f conftest.er1
20330   cat conftest.err >&5
20331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20332   (exit $ac_status); } &&
20333          { ac_try='test -z "$ac_cxx_werror_flag"
20334                          || test ! -s conftest.err'
20335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20336   (eval $ac_try) 2>&5
20337   ac_status=$?
20338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20339   (exit $ac_status); }; } &&
20340          { ac_try='test -s conftest.$ac_objext'
20341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20342   (eval $ac_try) 2>&5
20343   ac_status=$?
20344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20345   (exit $ac_status); }; }; then
20346   gtkmm_cv_cxx_has_namespace_std="yes"
20347 else
20348   echo "$as_me: failed program was:" >&5
20349 sed 's/^/| /' conftest.$ac_ext >&5
20350
20351 gtkmm_cv_cxx_has_namespace_std="no"
20352
20353 fi
20354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20355
20356 fi
20357 echo "$as_me:$LINENO: result: $gtkmm_cv_cxx_has_namespace_std" >&5
20358 echo "${ECHO_T}$gtkmm_cv_cxx_has_namespace_std" >&6
20359
20360   if test "x${gtkmm_cv_cxx_has_namespace_std}" = "xyes"; then
20361   {
20362
20363 cat >>confdefs.h <<\_ACEOF
20364 #define GLIBMM_HAVE_NAMESPACE_STD 1
20365 _ACEOF
20366
20367   }
20368   fi
20369
20370
20371
20372
20373   echo "$as_me:$LINENO: checking whether the C++ library supports std::iterator_traits" >&5
20374 echo $ECHO_N "checking whether the C++ library supports std::iterator_traits... $ECHO_C" >&6
20375 if test "${gtkmm_cv_cxx_has_std_iterator_traits+set}" = set; then
20376   echo $ECHO_N "(cached) $ECHO_C" >&6
20377 else
20378
20379     cat >conftest.$ac_ext <<_ACEOF
20380 /* confdefs.h.  */
20381 _ACEOF
20382 cat confdefs.h >>conftest.$ac_ext
20383 cat >>conftest.$ac_ext <<_ACEOF
20384 /* end confdefs.h.  */
20385
20386       #include <iterator>
20387       #ifdef GLIBMM_HAVE_NAMESPACE_STD
20388       using namespace std;
20389       #endif
20390
20391 int
20392 main ()
20393 {
20394
20395       typedef iterator_traits<char*>::value_type ValueType;
20396
20397   ;
20398   return 0;
20399 }
20400 _ACEOF
20401 rm -f conftest.$ac_objext
20402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20403   (eval $ac_compile) 2>conftest.er1
20404   ac_status=$?
20405   grep -v '^ *+' conftest.er1 >conftest.err
20406   rm -f conftest.er1
20407   cat conftest.err >&5
20408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20409   (exit $ac_status); } &&
20410          { ac_try='test -z "$ac_cxx_werror_flag"
20411                          || test ! -s conftest.err'
20412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20413   (eval $ac_try) 2>&5
20414   ac_status=$?
20415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20416   (exit $ac_status); }; } &&
20417          { ac_try='test -s conftest.$ac_objext'
20418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20419   (eval $ac_try) 2>&5
20420   ac_status=$?
20421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20422   (exit $ac_status); }; }; then
20423   gtkmm_cv_cxx_has_std_iterator_traits="yes"
20424 else
20425   echo "$as_me: failed program was:" >&5
20426 sed 's/^/| /' conftest.$ac_ext >&5
20427
20428 gtkmm_cv_cxx_has_std_iterator_traits="no"
20429
20430 fi
20431 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20432
20433 fi
20434 echo "$as_me:$LINENO: result: $gtkmm_cv_cxx_has_std_iterator_traits" >&5
20435 echo "${ECHO_T}$gtkmm_cv_cxx_has_std_iterator_traits" >&6
20436
20437   if test "x${gtkmm_cv_cxx_has_std_iterator_traits}" = "xyes"; then
20438   {
20439
20440 cat >>confdefs.h <<\_ACEOF
20441 #define GLIBMM_HAVE_STD_ITERATOR_TRAITS 1
20442 _ACEOF
20443
20444   }
20445   fi
20446
20447
20448
20449
20450   echo "$as_me:$LINENO: checking for non-standard Sun libCstd reverse_iterator" >&5
20451 echo $ECHO_N "checking for non-standard Sun libCstd reverse_iterator... $ECHO_C" >&6
20452 if test "${gtkmm_cv_cxx_has_sun_reverse_iterator+set}" = set; then
20453   echo $ECHO_N "(cached) $ECHO_C" >&6
20454 else
20455
20456     cat >conftest.$ac_ext <<_ACEOF
20457 /* confdefs.h.  */
20458 _ACEOF
20459 cat confdefs.h >>conftest.$ac_ext
20460 cat >>conftest.$ac_ext <<_ACEOF
20461 /* end confdefs.h.  */
20462
20463       #include <iterator>
20464       #ifdef GLIBMM_HAVE_NAMESPACE_STD
20465       using namespace std;
20466       #endif
20467
20468 int
20469 main ()
20470 {
20471
20472       typedef reverse_iterator<char*,random_access_iterator_tag,char,char&,char*,int> ReverseIter;
20473
20474   ;
20475   return 0;
20476 }
20477 _ACEOF
20478 rm -f conftest.$ac_objext
20479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20480   (eval $ac_compile) 2>conftest.er1
20481   ac_status=$?
20482   grep -v '^ *+' conftest.er1 >conftest.err
20483   rm -f conftest.er1
20484   cat conftest.err >&5
20485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20486   (exit $ac_status); } &&
20487          { ac_try='test -z "$ac_cxx_werror_flag"
20488                          || test ! -s conftest.err'
20489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20490   (eval $ac_try) 2>&5
20491   ac_status=$?
20492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20493   (exit $ac_status); }; } &&
20494          { ac_try='test -s conftest.$ac_objext'
20495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20496   (eval $ac_try) 2>&5
20497   ac_status=$?
20498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20499   (exit $ac_status); }; }; then
20500   gtkmm_cv_cxx_has_sun_reverse_iterator="yes"
20501 else
20502   echo "$as_me: failed program was:" >&5
20503 sed 's/^/| /' conftest.$ac_ext >&5
20504
20505 gtkmm_cv_cxx_has_sun_reverse_iterator="no"
20506
20507 fi
20508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20509
20510 fi
20511 echo "$as_me:$LINENO: result: $gtkmm_cv_cxx_has_sun_reverse_iterator" >&5
20512 echo "${ECHO_T}$gtkmm_cv_cxx_has_sun_reverse_iterator" >&6
20513
20514   if test "x${gtkmm_cv_cxx_has_sun_reverse_iterator}" = "xyes"; then
20515   {
20516
20517 cat >>confdefs.h <<\_ACEOF
20518 #define GLIBMM_HAVE_SUN_REVERSE_ITERATOR 1
20519 _ACEOF
20520
20521   }
20522   fi
20523
20524
20525
20526
20527   echo "$as_me:$LINENO: checking whether STL containers have templated sequence constructors" >&5
20528 echo $ECHO_N "checking whether STL containers have templated sequence constructors... $ECHO_C" >&6
20529 if test "${gtkmm_cv_cxx_has_template_sequence_ctors+set}" = set; then
20530   echo $ECHO_N "(cached) $ECHO_C" >&6
20531 else
20532
20533     cat >conftest.$ac_ext <<_ACEOF
20534 /* confdefs.h.  */
20535 _ACEOF
20536 cat confdefs.h >>conftest.$ac_ext
20537 cat >>conftest.$ac_ext <<_ACEOF
20538 /* end confdefs.h.  */
20539
20540       #include <vector>
20541       #include <deque>
20542       #include <list>
20543       #ifdef GLIBMM_HAVE_NAMESPACE_STD
20544       using namespace std;
20545       #endif
20546
20547 int
20548 main ()
20549 {
20550
20551       const int array[8] = { 0, };
20552       vector<int>  test_vector (&array[0], &array[8]);
20553       deque<short> test_deque  (test_vector.begin(), test_vector.end());
20554       list<long>   test_list   (test_deque.begin(),  test_deque.end());
20555       test_vector.assign(test_list.begin(), test_list.end());
20556
20557   ;
20558   return 0;
20559 }
20560 _ACEOF
20561 rm -f conftest.$ac_objext
20562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20563   (eval $ac_compile) 2>conftest.er1
20564   ac_status=$?
20565   grep -v '^ *+' conftest.er1 >conftest.err
20566   rm -f conftest.er1
20567   cat conftest.err >&5
20568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20569   (exit $ac_status); } &&
20570          { ac_try='test -z "$ac_cxx_werror_flag"
20571                          || test ! -s conftest.err'
20572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20573   (eval $ac_try) 2>&5
20574   ac_status=$?
20575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20576   (exit $ac_status); }; } &&
20577          { ac_try='test -s conftest.$ac_objext'
20578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20579   (eval $ac_try) 2>&5
20580   ac_status=$?
20581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20582   (exit $ac_status); }; }; then
20583   gtkmm_cv_cxx_has_template_sequence_ctors="yes"
20584 else
20585   echo "$as_me: failed program was:" >&5
20586 sed 's/^/| /' conftest.$ac_ext >&5
20587
20588 gtkmm_cv_cxx_has_template_sequence_ctors="no"
20589
20590 fi
20591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20592
20593 fi
20594 echo "$as_me:$LINENO: result: $gtkmm_cv_cxx_has_template_sequence_ctors" >&5
20595 echo "${ECHO_T}$gtkmm_cv_cxx_has_template_sequence_ctors" >&6
20596
20597   if test "x${gtkmm_cv_cxx_has_template_sequence_ctors}" = "xyes"; then
20598   {
20599
20600 cat >>confdefs.h <<\_ACEOF
20601 #define GLIBMM_HAVE_TEMPLATE_SEQUENCE_CTORS 1
20602 _ACEOF
20603
20604   }
20605   fi
20606
20607
20608 echo "$as_me:$LINENO: checking if C++ compiler allows member functions to refer to member templates" >&5
20609 echo $ECHO_N "checking if C++ compiler allows member functions to refer to member templates... $ECHO_C" >&6
20610 cat >conftest.$ac_ext <<_ACEOF
20611 /* confdefs.h.  */
20612 _ACEOF
20613 cat confdefs.h >>conftest.$ac_ext
20614 cat >>conftest.$ac_ext <<_ACEOF
20615 /* end confdefs.h.  */
20616
20617   struct foo {
20618     template <class C> inline
20619     void doit();
20620     void thebug();
20621   };
20622
20623   template <class C> inline
20624   void foo::doit() {
20625   }
20626
20627   struct bar {
20628     void neitherabug();
20629   };
20630
20631   void notabug() {
20632     void (foo::*func)();
20633     func = &foo::doit<int>;
20634     (void)func;
20635   }
20636
20637   void bar::neitherabug() {
20638     void (foo::*func)();
20639     func = &foo::doit<int>;
20640     (void)func;
20641   }
20642
20643   void foo::thebug() {
20644     void (foo::*func)();
20645     func = &foo::doit<int>; //Compiler bugs usually show here.
20646     (void)func;
20647   }
20648
20649 int
20650 main ()
20651 {
20652
20653   ;
20654   return 0;
20655 }
20656 _ACEOF
20657 rm -f conftest.$ac_objext
20658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20659   (eval $ac_compile) 2>conftest.er1
20660   ac_status=$?
20661   grep -v '^ *+' conftest.er1 >conftest.err
20662   rm -f conftest.er1
20663   cat conftest.err >&5
20664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20665   (exit $ac_status); } &&
20666          { ac_try='test -z "$ac_cxx_werror_flag"
20667                          || test ! -s conftest.err'
20668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20669   (eval $ac_try) 2>&5
20670   ac_status=$?
20671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20672   (exit $ac_status); }; } &&
20673          { ac_try='test -s conftest.$ac_objext'
20674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20675   (eval $ac_try) 2>&5
20676   ac_status=$?
20677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20678   (exit $ac_status); }; }; then
20679
20680   glibmm_cxx_member_functions_member_templates=yes
20681
20682 cat >>confdefs.h <<\_ACEOF
20683 #define GLIBMM_MEMBER_FUNCTIONS_MEMBER_TEMPLATES 1
20684 _ACEOF
20685
20686   echo "$as_me:$LINENO: result: $glibmm_cxx_member_functions_member_templates" >&5
20687 echo "${ECHO_T}$glibmm_cxx_member_functions_member_templates" >&6
20688
20689 else
20690   echo "$as_me: failed program was:" >&5
20691 sed 's/^/| /' conftest.$ac_ext >&5
20692
20693
20694   glibmm_cxx_member_functions_member_templates=no
20695   cat >>confdefs.h <<\_ACEOF
20696 #define GLIBMM_MEMBER_FUNCTIONS_MEMBER_TEMPLATES 0
20697 _ACEOF
20698
20699   echo "$as_me:$LINENO: result: $glibmm_cxx_member_functions_member_templates" >&5
20700 echo "${ECHO_T}$glibmm_cxx_member_functions_member_templates" >&6
20701
20702 fi
20703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20704
20705
20706
20707
20708   echo "$as_me:$LINENO: checking whether the compiler finds it ambiguous to have both const and non-const template specializations" >&5
20709 echo $ECHO_N "checking whether the compiler finds it ambiguous to have both const and non-const template specializations... $ECHO_C" >&6
20710 if test "${glibmm_cv_cxx_can_disambiguate_const_template_specializations+set}" = set; then
20711   echo $ECHO_N "(cached) $ECHO_C" >&6
20712 else
20713
20714     cat >conftest.$ac_ext <<_ACEOF
20715 /* confdefs.h.  */
20716 _ACEOF
20717 cat confdefs.h >>conftest.$ac_ext
20718 cat >>conftest.$ac_ext <<_ACEOF
20719 /* end confdefs.h.  */
20720
20721       #include <iostream>
20722
20723       template <class T> class Foo {};
20724
20725       template <typename T> class Traits {
20726       public:
20727           const char* whoami() {
20728               return "generic template";
20729           }
20730       };
20731
20732       template <typename T> class Traits<Foo<T> > {
20733       public:
20734           const char* whoami() {
20735               return "partial specialization for Foo<T>";
20736           }
20737       };
20738
20739       template <typename T> class Traits<Foo<const T> > {
20740       public:
20741           const char* whoami() {
20742               return "partial specialization for Foo<const T>";
20743           }
20744       };
20745
20746
20747 int
20748 main ()
20749 {
20750
20751           Traits<int> it;
20752           Traits<Foo<int> > fit;
20753           Traits<Foo<const int> > cfit;
20754
20755           std::cout << "Traits<int>             --> "
20756                     << it.whoami() << std::endl;
20757           std::cout << "Traits<Foo<int>>        --> "
20758                     << fit.whoami() << std::endl;
20759           std::cout << "Traits<Foo<const int >> --> "
20760                     << cfit.whoami() << std::endl;
20761
20762   ;
20763   return 0;
20764 }
20765 _ACEOF
20766 rm -f conftest.$ac_objext
20767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20768   (eval $ac_compile) 2>conftest.er1
20769   ac_status=$?
20770   grep -v '^ *+' conftest.er1 >conftest.err
20771   rm -f conftest.er1
20772   cat conftest.err >&5
20773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20774   (exit $ac_status); } &&
20775          { ac_try='test -z "$ac_cxx_werror_flag"
20776                          || test ! -s conftest.err'
20777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20778   (eval $ac_try) 2>&5
20779   ac_status=$?
20780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20781   (exit $ac_status); }; } &&
20782          { ac_try='test -s conftest.$ac_objext'
20783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20784   (eval $ac_try) 2>&5
20785   ac_status=$?
20786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20787   (exit $ac_status); }; }; then
20788   glibmm_cv_cxx_can_disambiguate_const_template_specializations="yes"
20789 else
20790   echo "$as_me: failed program was:" >&5
20791 sed 's/^/| /' conftest.$ac_ext >&5
20792
20793 glibmm_cv_cxx_can_disambiguate_const_template_specializations="no"
20794
20795 fi
20796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20797
20798 fi
20799 echo "$as_me:$LINENO: result: $glibmm_cv_cxx_can_disambiguate_const_template_specializations" >&5
20800 echo "${ECHO_T}$glibmm_cv_cxx_can_disambiguate_const_template_specializations" >&6
20801
20802   if test "x${glibmm_cv_cxx_can_disambiguate_const_template_specializations}" = "xyes"; then
20803   {
20804
20805 cat >>confdefs.h <<\_ACEOF
20806 #define GLIBMM_HAVE_DISAMBIGUOUS_CONST_TEMPLATE_SPECIALIZATIONS 1
20807 _ACEOF
20808
20809   }
20810   fi
20811
20812
20813   echo "$as_me:$LINENO: checking whether the compiler allows us to define a template that uses dynamic_cast<> with an object whose type is not yet defined" >&5
20814 echo $ECHO_N "checking whether the compiler allows us to define a template that uses dynamic_cast<> with an object whose type is not yet defined... $ECHO_C" >&6
20815 if test "${glibmm_cv_cxx_can_use_dynamic_cast_in_unused_template_without_definition+set}" = set; then
20816   echo $ECHO_N "(cached) $ECHO_C" >&6
20817 else
20818
20819     cat >conftest.$ac_ext <<_ACEOF
20820 /* confdefs.h.  */
20821 _ACEOF
20822 cat confdefs.h >>conftest.$ac_ext
20823 cat >>conftest.$ac_ext <<_ACEOF
20824 /* end confdefs.h.  */
20825
20826       class SomeClass;
20827
20828       SomeClass* some_function();
20829
20830       template <class T>
20831       class SomeTemplate
20832       {
20833         static bool do_something()
20834         {
20835           //This does not compile, with the MipsPro (IRIX) compiler
20836           //even if we don't use this template at all.
20837           //(We would use it later, after we have defined the type).
20838           return dynamic_cast<T*>(some_function());
20839         }
20840       };
20841
20842
20843 int
20844 main ()
20845 {
20846
20847
20848
20849   ;
20850   return 0;
20851 }
20852 _ACEOF
20853 rm -f conftest.$ac_objext
20854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20855   (eval $ac_compile) 2>conftest.er1
20856   ac_status=$?
20857   grep -v '^ *+' conftest.er1 >conftest.err
20858   rm -f conftest.er1
20859   cat conftest.err >&5
20860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20861   (exit $ac_status); } &&
20862          { ac_try='test -z "$ac_cxx_werror_flag"
20863                          || test ! -s conftest.err'
20864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20865   (eval $ac_try) 2>&5
20866   ac_status=$?
20867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20868   (exit $ac_status); }; } &&
20869          { ac_try='test -s conftest.$ac_objext'
20870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20871   (eval $ac_try) 2>&5
20872   ac_status=$?
20873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20874   (exit $ac_status); }; }; then
20875   glibmm_cv_cxx_can_use_dynamic_cast_in_unused_template_without_definition="yes"
20876 else
20877   echo "$as_me: failed program was:" >&5
20878 sed 's/^/| /' conftest.$ac_ext >&5
20879
20880 glibmm_cv_cxx_can_use_dynamic_cast_in_unused_template_without_definition="no"
20881
20882 fi
20883 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20884
20885 fi
20886 echo "$as_me:$LINENO: result: $glibmm_cv_cxx_can_use_dynamic_cast_in_unused_template_without_definition" >&5
20887 echo "${ECHO_T}$glibmm_cv_cxx_can_use_dynamic_cast_in_unused_template_without_definition" >&6
20888
20889   if test "x${glibmm_cv_cxx_can_use_dynamic_cast_in_unused_template_without_definition}" = "xyes"; then
20890   {
20891
20892 cat >>confdefs.h <<\_ACEOF
20893 #define GLIBMM_CAN_USE_DYNAMIC_CAST_IN_UNUSED_TEMPLATE_WITHOUT_DEFINITION 1
20894 _ACEOF
20895
20896   }
20897   fi
20898
20899
20900   echo "$as_me:$LINENO: checking whether the the compilerallows us to use a non-extern \"C\" function for an extern \"C\" function pointer." >&5
20901 echo $ECHO_N "checking whether the the compilerallows us to use a non-extern \"C\" function for an extern \"C\" function pointer.... $ECHO_C" >&6
20902 if test "${glibmm_cv_cxx_can_assign_non_extern_c_functions_to_extern_c_callbacks+set}" = set; then
20903   echo $ECHO_N "(cached) $ECHO_C" >&6
20904 else
20905
20906     cat >conftest.$ac_ext <<_ACEOF
20907 /* confdefs.h.  */
20908 _ACEOF
20909 cat confdefs.h >>conftest.$ac_ext
20910 cat >>conftest.$ac_ext <<_ACEOF
20911 /* end confdefs.h.  */
20912
20913       extern "C"
20914       {
20915         struct somestruct
20916         {
20917           void (*callback) (int);
20918         };
20919
20920       } // extern "C"
20921
20922       void somefunction(int)
20923       {
20924       }
20925
20926
20927 int
20928 main ()
20929 {
20930
20931       somestruct something;
20932       something.callback = &somefunction;
20933
20934   ;
20935   return 0;
20936 }
20937 _ACEOF
20938 rm -f conftest.$ac_objext
20939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20940   (eval $ac_compile) 2>conftest.er1
20941   ac_status=$?
20942   grep -v '^ *+' conftest.er1 >conftest.err
20943   rm -f conftest.er1
20944   cat conftest.err >&5
20945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20946   (exit $ac_status); } &&
20947          { ac_try='test -z "$ac_cxx_werror_flag"
20948                          || test ! -s conftest.err'
20949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20950   (eval $ac_try) 2>&5
20951   ac_status=$?
20952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20953   (exit $ac_status); }; } &&
20954          { ac_try='test -s conftest.$ac_objext'
20955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20956   (eval $ac_try) 2>&5
20957   ac_status=$?
20958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20959   (exit $ac_status); }; }; then
20960   glibmm_cv_cxx_can_assign_non_extern_c_functions_to_extern_c_callbacks="yes"
20961 else
20962   echo "$as_me: failed program was:" >&5
20963 sed 's/^/| /' conftest.$ac_ext >&5
20964
20965 glibmm_cv_cxx_can_assign_non_extern_c_functions_to_extern_c_callbacks="no"
20966
20967 fi
20968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20969
20970 fi
20971 echo "$as_me:$LINENO: result: $glibmm_cv_cxx_can_assign_non_extern_c_functions_to_extern_c_callbacks" >&5
20972 echo "${ECHO_T}$glibmm_cv_cxx_can_assign_non_extern_c_functions_to_extern_c_callbacks" >&6
20973
20974   if test "x${glibmm_cv_cxx_can_assign_non_extern_c_functions_to_extern_c_callbacks}" = "xyes"; then
20975   {
20976
20977 cat >>confdefs.h <<\_ACEOF
20978 #define GLIBMM_CAN_ASSIGN_NON_EXTERN_C_FUNCTIONS_TO_EXTERN_C_CALLBACKS 1
20979 _ACEOF
20980
20981   }
20982   fi
20983
20984
20985   echo "$as_me:$LINENO: checking whether the compiler uses namespace declarations inside extern \"C\" blocks." >&5
20986 echo $ECHO_N "checking whether the compiler uses namespace declarations inside extern \"C\" blocks.... $ECHO_C" >&6
20987 if test "${glibmm_cv_cxx_can_use_namespaces_inside_externc+set}" = set; then
20988   echo $ECHO_N "(cached) $ECHO_C" >&6
20989 else
20990
20991     cat >conftest.$ac_ext <<_ACEOF
20992 /* confdefs.h.  */
20993 _ACEOF
20994 cat confdefs.h >>conftest.$ac_ext
20995 cat >>conftest.$ac_ext <<_ACEOF
20996 /* end confdefs.h.  */
20997
20998       namespace test
20999       {
21000
21001       extern "C"
21002       {
21003
21004       void do_something();
21005
21006       } //extern C
21007
21008
21009       class Something
21010       {
21011       protected:
21012         int i;
21013
21014         friend void do_something();
21015       };
21016
21017       void do_something()
21018       {
21019         Something something;
21020         something.i = 1;
21021       }
21022
21023       } //namespace
21024
21025
21026
21027 int
21028 main ()
21029 {
21030
21031
21032
21033   ;
21034   return 0;
21035 }
21036 _ACEOF
21037 rm -f conftest.$ac_objext
21038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21039   (eval $ac_compile) 2>conftest.er1
21040   ac_status=$?
21041   grep -v '^ *+' conftest.er1 >conftest.err
21042   rm -f conftest.er1
21043   cat conftest.err >&5
21044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21045   (exit $ac_status); } &&
21046          { ac_try='test -z "$ac_cxx_werror_flag"
21047                          || test ! -s conftest.err'
21048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21049   (eval $ac_try) 2>&5
21050   ac_status=$?
21051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21052   (exit $ac_status); }; } &&
21053          { ac_try='test -s conftest.$ac_objext'
21054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21055   (eval $ac_try) 2>&5
21056   ac_status=$?
21057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21058   (exit $ac_status); }; }; then
21059   glibmm_cv_cxx_can_use_namespaces_inside_externc="yes"
21060 else
21061   echo "$as_me: failed program was:" >&5
21062 sed 's/^/| /' conftest.$ac_ext >&5
21063
21064 glibmm_cv_cxx_can_use_namespaces_inside_externc="no"
21065
21066 fi
21067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21068
21069 fi
21070 echo "$as_me:$LINENO: result: $glibmm_cv_cxx_can_use_namespaces_inside_externc" >&5
21071 echo "${ECHO_T}$glibmm_cv_cxx_can_use_namespaces_inside_externc" >&6
21072
21073   if test "x${glibmm_cv_cxx_can_use_namespaces_inside_externc}" = "xyes"; then
21074   {
21075
21076 cat >>confdefs.h <<\_ACEOF
21077 #define GLIBMM_CAN_USE_NAMESPACES_INSIDE_EXTERNC 1
21078 _ACEOF
21079
21080   }
21081   fi
21082
21083
21084
21085
21086   echo "$as_me:$LINENO: checking whether the compiler allows a static member variable to be initialized inline to std::string::npos" >&5
21087 echo $ECHO_N "checking whether the compiler allows a static member variable to be initialized inline to std::string::npos... $ECHO_C" >&6
21088 if test "${gtkmm_cv_cxx_has_allows_static_inline_npos+set}" = set; then
21089   echo $ECHO_N "(cached) $ECHO_C" >&6
21090 else
21091
21092     cat >conftest.$ac_ext <<_ACEOF
21093 /* confdefs.h.  */
21094 _ACEOF
21095 cat confdefs.h >>conftest.$ac_ext
21096 cat >>conftest.$ac_ext <<_ACEOF
21097 /* end confdefs.h.  */
21098
21099       #include <string>
21100       #include <iostream>
21101
21102       class ustringtest
21103       {
21104         public:
21105         //The MipsPro compiler (IRIX) says "The indicated constant value is not known",
21106         //so we need to initalize the static member data elsewhere.
21107         static const std::string::size_type ustringnpos = std::string::npos;
21108       };
21109
21110 int
21111 main ()
21112 {
21113
21114       std::cout << "npos=" << ustringtest::ustringnpos << std::endl;
21115
21116   ;
21117   return 0;
21118 }
21119 _ACEOF
21120 rm -f conftest.$ac_objext
21121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21122   (eval $ac_compile) 2>conftest.er1
21123   ac_status=$?
21124   grep -v '^ *+' conftest.er1 >conftest.err
21125   rm -f conftest.er1
21126   cat conftest.err >&5
21127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21128   (exit $ac_status); } &&
21129          { ac_try='test -z "$ac_cxx_werror_flag"
21130                          || test ! -s conftest.err'
21131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21132   (eval $ac_try) 2>&5
21133   ac_status=$?
21134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21135   (exit $ac_status); }; } &&
21136          { ac_try='test -s conftest.$ac_objext'
21137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21138   (eval $ac_try) 2>&5
21139   ac_status=$?
21140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21141   (exit $ac_status); }; }; then
21142   gtkmm_cv_cxx_has_allows_static_inline_npos="yes"
21143 else
21144   echo "$as_me: failed program was:" >&5
21145 sed 's/^/| /' conftest.$ac_ext >&5
21146
21147 gtkmm_cv_cxx_has_allows_static_inline_npos="no"
21148
21149 fi
21150 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21151
21152 fi
21153 echo "$as_me:$LINENO: result: $gtkmm_cv_cxx_has_allows_static_inline_npos" >&5
21154 echo "${ECHO_T}$gtkmm_cv_cxx_has_allows_static_inline_npos" >&6
21155
21156   if test "x${gtkmm_cv_cxx_has_allows_static_inline_npos}" = "xyes"; then
21157   {
21158
21159 cat >>confdefs.h <<\_ACEOF
21160 #define GLIBMM_HAVE_ALLOWS_STATIC_INLINE_NPOS 1
21161 _ACEOF
21162
21163   }
21164   fi
21165
21166
21167
21168 # Create a list of input directories for Doxygen.
21169
21170 GTKMM_DOXYGEN_INPUT=
21171 gtkmm_srcdir=`cd "$srcdir" >/dev/null && pwd`
21172
21173 gtkmm_list="glib"
21174 for gtkmm_sublib in $gtkmm_list
21175 do
21176   GTKMM_DOXYGEN_INPUT="$GTKMM_DOXYGEN_INPUT ${gtkmm_srcdir}/${gtkmm_sublib}/${gtkmm_sublib}mm/"
21177 done
21178
21179
21180
21181
21182 # Check whether to build the full docs into the generated source.
21183 # This will be much slower.
21184
21185
21186
21187 echo "$as_me:$LINENO: checking whether to merge C reference docs into generated headers" >&5
21188 echo $ECHO_N "checking whether to merge C reference docs into generated headers... $ECHO_C" >&6
21189
21190 # Check whether --enable-fulldocs or --disable-fulldocs was given.
21191 if test "${enable_fulldocs+set}" = set; then
21192   enableval="$enable_fulldocs"
21193   gtkmm_enable_fulldocs=$enableval
21194 else
21195   gtkmm_enable_fulldocs=$USE_MAINTAINER_MODE
21196 fi;
21197
21198 echo "$as_me:$LINENO: result: ${gtkmm_enable_fulldocs}" >&5
21199 echo "${ECHO_T}${gtkmm_enable_fulldocs}" >&6
21200
21201 GTKMMPROC_MERGECDOCS=
21202
21203 if test "x$gtkmm_enable_fulldocs" = xyes; then
21204 {
21205   GTKMMPROC_MERGECDOCS='--mergecdocs'
21206
21207   if test "x$USE_MAINTAINER_MODE" != xyes; then
21208   {
21209     { echo "$as_me:$LINENO: WARNING:
21210 *** --enable-fulldocs only works if --enable-maintainer-mode is also set.
21211 *** gtkmm source tarballs should be packaged with --enable-fulldocs, so
21212 *** usually you don't need this option unless you got gtkmm from CVS.
21213 " >&5
21214 echo "$as_me: WARNING:
21215 *** --enable-fulldocs only works if --enable-maintainer-mode is also set.
21216 *** gtkmm source tarballs should be packaged with --enable-fulldocs, so
21217 *** usually you don't need this option unless you got gtkmm from CVS.
21218 " >&2;}
21219   }
21220   fi
21221
21222   echo "$as_me:$LINENO: checking whether the XML::Parser module is available" >&5
21223 echo $ECHO_N "checking whether the XML::Parser module is available... $ECHO_C" >&6
21224 if test "${gtkmm_cv_have_xml_parser+set}" = set; then
21225   echo $ECHO_N "(cached) $ECHO_C" >&6
21226 else
21227
21228     gtkmm_cv_have_xml_parser=no
21229     "$PERL_PATH" -e 'use strict; use XML::Parser; exit 0;' >&5 2>&5 && gtkmm_cv_have_xml_parser=yes
21230
21231 fi
21232 echo "$as_me:$LINENO: result: $gtkmm_cv_have_xml_parser" >&5
21233 echo "${ECHO_T}$gtkmm_cv_have_xml_parser" >&6
21234
21235   if test "x$gtkmm_cv_have_xml_parser" = xno; then
21236   {
21237     { { echo "$as_me:$LINENO: error:
21238 *** The Perl module XML::Parser is required to build $PACKAGE from CVS.
21239 " >&5
21240 echo "$as_me: error:
21241 *** The Perl module XML::Parser is required to build $PACKAGE from CVS.
21242 " >&2;}
21243    { (exit 1); exit 1; }; }
21244   }
21245   fi
21246 }
21247 fi
21248
21249
21250
21251
21252 # Check whether --enable-debug-refcounting was given.
21253
21254   # Check whether --enable-debug-refcounting or --disable-debug-refcounting was given.
21255 if test "${enable_debug_refcounting+set}" = set; then
21256   enableval="$enable_debug_refcounting"
21257   glibmm_debug_refcounting="$enableval"
21258 else
21259   glibmm_debug_refcounting='no'
21260 fi;
21261
21262   if test "x$glibmm_debug_refcounting" = "xyes"; then
21263   {
21264
21265 cat >>confdefs.h <<\_ACEOF
21266 #define GLIBMM_DEBUG_REFCOUNTING 1
21267 _ACEOF
21268
21269   }
21270   fi
21271
21272
21273 # Evaluate the --enable-warnings=level option.
21274
21275   # Check whether --enable-warnings or --disable-warnings was given.
21276 if test "${enable_warnings+set}" = set; then
21277   enableval="$enable_warnings"
21278   gtkmm_enable_warnings="$enableval"
21279 else
21280   gtkmm_enable_warnings='minimum'
21281 fi;
21282
21283   echo "$as_me:$LINENO: checking for compiler warning flags to use" >&5
21284 echo $ECHO_N "checking for compiler warning flags to use... $ECHO_C" >&6
21285
21286   gtkmm_warning_flags=''
21287
21288   case "$gtkmm_enable_warnings" in
21289     minimum|yes) gtkmm_warning_flags='-Wall -Wno-long-long';;
21290     maximum)     gtkmm_warning_flags='-pedantic -W -Wall -Wno-long-long';;
21291     hardcore)    gtkmm_warning_flags='-pedantic -W -Wall -Wno-long-long -Werror';;
21292   esac
21293
21294   gtkmm_use_flags=''
21295
21296   if test "x$gtkmm_warning_flags" != "x"
21297   then
21298     echo 'int foo() { return 0; }' > conftest.cc
21299
21300     for flag in $gtkmm_warning_flags
21301     do
21302       # Test whether the compiler accepts the flag.  GCC doesn't bail
21303       # out when given an unsupported flag but prints a warning, so
21304       # check the compiler output instead.
21305       gtkmm_cxx_out="`$CXX $flag -c conftest.cc 2>&1`"
21306       rm -f conftest.$OBJEXT
21307       test "x${gtkmm_cxx_out}" = "x" && \
21308         gtkmm_use_flags="${gtkmm_use_flags:+$gtkmm_use_flags }$flag"
21309     done
21310
21311     rm -f conftest.cc
21312     gtkmm_cxx_out=''
21313   fi
21314
21315   if test "x$gtkmm_use_flags" != "x"
21316   then
21317     for flag in $gtkmm_use_flags
21318     do
21319       case " $CXXFLAGS " in
21320         *" $flag "*) ;; # don't add flags twice
21321         *)           CXXFLAGS="${CXXFLAGS:+$CXXFLAGS }$flag";;
21322       esac
21323     done
21324   else
21325     gtkmm_use_flags='none'
21326   fi
21327
21328   echo "$as_me:$LINENO: result: $gtkmm_use_flags" >&5
21329 echo "${ECHO_T}$gtkmm_use_flags" >&6
21330
21331
21332 # Add an --enable-use-deprecations configure option:
21333 # Check whether --enable-deprecations or --disable-deprecations was given.
21334 if test "${enable_deprecations+set}" = set; then
21335   enableval="$enable_deprecations"
21336
21337 else
21338   enable_deprecations=no
21339 fi;
21340
21341 if test "x$enable_use_deprecations" = "xyes"; then
21342    DISABLE_DEPRECATED_CFLAGS="-DG_DISABLE_DEPRECATED"
21343
21344 fi
21345
21346 #Offer the ability to omit some API from the library,
21347 #to reduce the code size:
21348
21349   # Check whether --enable-deprecated-api or --disable-deprecated-api was given.
21350 if test "${enable_deprecated_api+set}" = set; then
21351   enableval="$enable_deprecated_api"
21352   glibmm_enable_api_deprecated="$enableval"
21353 else
21354   glibmm_enable_api_deprecated='yes'
21355 fi;
21356
21357   if test "x$glibmm_enable_api_deprecated" = "xyes"; then
21358   {
21359     { echo "$as_me:$LINENO: WARNING: Deprecated API will be built, for backwards-compatibility." >&5
21360 echo "$as_me: WARNING: Deprecated API will be built, for backwards-compatibility." >&2;}
21361   }
21362   else
21363   {
21364     { echo "$as_me:$LINENO: WARNING: Deprecated API will not be built, breaking backwards-compatibility. Do not use this build for distribution packages." >&5
21365 echo "$as_me: WARNING: Deprecated API will not be built, breaking backwards-compatibility. Do not use this build for distribution packages." >&2;}
21366     DISABLE_DEPRECATED_API_CFLAGS="-DGLIBMM_DISABLE_DEPRECATED"
21367
21368   }
21369   fi
21370
21371
21372   # Check whether --enable-api-exceptions or --disable-api-exceptions was given.
21373 if test "${enable_api_exceptions+set}" = set; then
21374   enableval="$enable_api_exceptions"
21375   glibmm_enable_api_exceptions="$enableval"
21376 else
21377   glibmm_enable_api_exceptions='yes'
21378 fi;
21379
21380   if test "x$glibmm_enable_api_exceptions" = "xyes"; then
21381   {
21382
21383 cat >>confdefs.h <<\_ACEOF
21384 #define GLIBMM_EXCEPTIONS_ENABLED 1
21385 _ACEOF
21386
21387   }
21388   fi
21389
21390
21391   # Check whether --enable-api-properties or --disable-api-properties was given.
21392 if test "${enable_api_properties+set}" = set; then
21393   enableval="$enable_api_properties"
21394   glibmm_enable_api_properties="$enableval"
21395 else
21396   glibmm_enable_api_properties='yes'
21397 fi;
21398
21399   if test "x$glibmm_enable_api_properties" = "xyes"; then
21400   {
21401
21402 cat >>confdefs.h <<\_ACEOF
21403 #define GLIBMM_PROPERTIES_ENABLED 1
21404 _ACEOF
21405
21406   }
21407   fi
21408
21409
21410   # Check whether --enable-api-vfuncs or --disable-api-vfuncs was given.
21411 if test "${enable_api_vfuncs+set}" = set; then
21412   enableval="$enable_api_vfuncs"
21413   glibmm_enable_api_vfuncs="$enableval"
21414 else
21415   glibmm_enable_api_vfuncs='yes'
21416 fi;
21417
21418   if test "x$glibmm_enable_api_vfuncs" = "xyes"; then
21419   {
21420
21421 cat >>confdefs.h <<\_ACEOF
21422 #define GLIBMM_VFUNCS_ENABLED 1
21423 _ACEOF
21424
21425   }
21426   fi
21427
21428
21429 # Offer the ability to omit some API from the library,
21430 # to reduce the code size:
21431
21432   # Check whether --enable-api-default-signal-handlers or --disable-api-default-signal-handlers was given.
21433 if test "${enable_api_default_signal_handlers+set}" = set; then
21434   enableval="$enable_api_default_signal_handlers"
21435   glibmm_enable_api_default_signal_handlers="$enableval"
21436 else
21437   glibmm_enable_api_default_signal_handlers='yes'
21438 fi;
21439
21440   if test "x$glibmm_enable_api_default_signal_handlers" = "xyes"; then
21441   {
21442
21443 cat >>confdefs.h <<\_ACEOF
21444 #define GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED 1
21445 _ACEOF
21446
21447   }
21448   fi
21449
21450
21451 # Dummy conditional just to make automake-1.4 happy.
21452 # We need an always-false condition in docs/Makefile.am.
21453
21454
21455 if false; then
21456   GTKMM_FALSE_TRUE=
21457   GTKMM_FALSE_FALSE='#'
21458 else
21459   GTKMM_FALSE_TRUE='#'
21460   GTKMM_FALSE_FALSE=
21461 fi
21462
21463
21464 # HACK:  Assign a dummy in order to prevent execution of autoheader by the
21465 # maintainer-mode rules.  That would fail since we aren't using autoheader.
21466 AUTOHEADER=':'
21467
21468
21469                                                                                                                         ac_config_files="$ac_config_files Makefile glib/Makefile glib/glibmm-2.4.pc glib/src/Makefile glib/glibmm/Makefile glib/glibmm/private/Makefile tools/Makefile tools/gmmproc tools/generate_wrap_init.pl tools/m4/Makefile tools/pm/Makefile tools/extra_defs_gen/Makefile"
21470
21471
21472                                                                                                                                                       ac_config_files="$ac_config_files tests/Makefile tests/glibmm_value/Makefile examples/Makefile examples/markup/Makefile examples/options/Makefile examples/thread/Makefile examples/iochannel_stream/Makefile examples/child_watch/Makefile scripts/Makefile docs/Makefile docs/images/Makefile docs/reference/Makefile docs/reference/Doxyfile docs/reference/beautify_docs.pl docs/internal/Makefile"
21473
21474
21475                                                                                                                                   ac_config_files="$ac_config_files MSVC_Net2003/Makefile MSVC_Net2003/gendef/Makefile MSVC_Net2003/glibmm/Makefile MSVC_Net2003/glibmm/glibmm.rc MSVC_Net2003/examples/Makefile MSVC_Net2003/examples/dispatcher/Makefile MSVC_Net2003/examples/dispatcher2/Makefile MSVC_Net2003/examples/markup/Makefile MSVC_Net2003/examples/options/Makefile MSVC_Net2003/examples/thread/Makefile MSVC_Net2003/examples/thread_pool/Makefile MSVC_Net2003/tests/Makefile MSVC_Net2003/tests/glibmm_value/Makefile"
21476
21477
21478 cat >confcache <<\_ACEOF
21479 # This file is a shell script that caches the results of configure
21480 # tests run on this system so they can be shared between configure
21481 # scripts and configure runs, see configure's option --config-cache.
21482 # It is not useful on other systems.  If it contains results you don't
21483 # want to keep, you may remove or edit it.
21484 #
21485 # config.status only pays attention to the cache file if you give it
21486 # the --recheck option to rerun configure.
21487 #
21488 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21489 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21490 # following values.
21491
21492 _ACEOF
21493
21494 # The following way of writing the cache mishandles newlines in values,
21495 # but we know of no workaround that is simple, portable, and efficient.
21496 # So, don't put newlines in cache variables' values.
21497 # Ultrix sh set writes to stderr and can't be redirected directly,
21498 # and sets the high bit in the cache file unless we assign to the vars.
21499 {
21500   (set) 2>&1 |
21501     case `(ac_space=' '; set | grep ac_space) 2>&1` in
21502     *ac_space=\ *)
21503       # `set' does not quote correctly, so add quotes (double-quote
21504       # substitution turns \\\\ into \\, and sed turns \\ into \).
21505       sed -n \
21506         "s/'/'\\\\''/g;
21507           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21508       ;;
21509     *)
21510       # `set' quotes correctly as required by POSIX, so do not add quotes.
21511       sed -n \
21512         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21513       ;;
21514     esac;
21515 } |
21516   sed '
21517      t clear
21518      : clear
21519      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21520      t end
21521      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21522      : end' >>confcache
21523 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21524   if test -w $cache_file; then
21525     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21526     cat confcache >$cache_file
21527   else
21528     echo "not updating unwritable cache $cache_file"
21529   fi
21530 fi
21531 rm -f confcache
21532
21533 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21534 # Let make expand exec_prefix.
21535 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21536
21537 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21538 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21539 # trailing colons and then remove the whole line if VPATH becomes empty
21540 # (actually we leave an empty line to preserve line numbers).
21541 if test "x$srcdir" = x.; then
21542   ac_vpsub='/^[  ]*VPATH[        ]*=/{
21543 s/:*\$(srcdir):*/:/;
21544 s/:*\${srcdir}:*/:/;
21545 s/:*@srcdir@:*/:/;
21546 s/^\([^=]*=[     ]*\):*/\1/;
21547 s/:*$//;
21548 s/^[^=]*=[       ]*$//;
21549 }'
21550 fi
21551
21552 DEFS=-DHAVE_CONFIG_H
21553
21554 ac_libobjs=
21555 ac_ltlibobjs=
21556 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21557   # 1. Remove the extension, and $U if already installed.
21558   ac_i=`echo "$ac_i" |
21559          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21560   # 2. Add them.
21561   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21562   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21563 done
21564 LIBOBJS=$ac_libobjs
21565
21566 LTLIBOBJS=$ac_ltlibobjs
21567
21568
21569 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21570   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21571 Usually this means the macro was only invoked conditionally." >&5
21572 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21573 Usually this means the macro was only invoked conditionally." >&2;}
21574    { (exit 1); exit 1; }; }
21575 fi
21576 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21577   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21578 Usually this means the macro was only invoked conditionally." >&5
21579 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21580 Usually this means the macro was only invoked conditionally." >&2;}
21581    { (exit 1); exit 1; }; }
21582 fi
21583 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21584   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21585 Usually this means the macro was only invoked conditionally." >&5
21586 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21587 Usually this means the macro was only invoked conditionally." >&2;}
21588    { (exit 1); exit 1; }; }
21589 fi
21590 if test -z "${PLATFORM_WIN32_TRUE}" && test -z "${PLATFORM_WIN32_FALSE}"; then
21591   { { echo "$as_me:$LINENO: error: conditional \"PLATFORM_WIN32\" was never defined.
21592 Usually this means the macro was only invoked conditionally." >&5
21593 echo "$as_me: error: conditional \"PLATFORM_WIN32\" was never defined.
21594 Usually this means the macro was only invoked conditionally." >&2;}
21595    { (exit 1); exit 1; }; }
21596 fi
21597 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
21598   { { echo "$as_me:$LINENO: error: conditional \"OS_WIN32\" was never defined.
21599 Usually this means the macro was only invoked conditionally." >&5
21600 echo "$as_me: error: conditional \"OS_WIN32\" was never defined.
21601 Usually this means the macro was only invoked conditionally." >&2;}
21602    { (exit 1); exit 1; }; }
21603 fi
21604 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21605   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21606 Usually this means the macro was only invoked conditionally." >&5
21607 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21608 Usually this means the macro was only invoked conditionally." >&2;}
21609    { (exit 1); exit 1; }; }
21610 fi
21611 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21612   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21613 Usually this means the macro was only invoked conditionally." >&5
21614 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21615 Usually this means the macro was only invoked conditionally." >&2;}
21616    { (exit 1); exit 1; }; }
21617 fi
21618 if test -z "${GTKMM_FALSE_TRUE}" && test -z "${GTKMM_FALSE_FALSE}"; then
21619   { { echo "$as_me:$LINENO: error: conditional \"GTKMM_FALSE\" was never defined.
21620 Usually this means the macro was only invoked conditionally." >&5
21621 echo "$as_me: error: conditional \"GTKMM_FALSE\" was never defined.
21622 Usually this means the macro was only invoked conditionally." >&2;}
21623    { (exit 1); exit 1; }; }
21624 fi
21625
21626 : ${CONFIG_STATUS=./config.status}
21627 ac_clean_files_save=$ac_clean_files
21628 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21629 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21630 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21631 cat >$CONFIG_STATUS <<_ACEOF
21632 #! $SHELL
21633 # Generated by $as_me.
21634 # Run this file to recreate the current configuration.
21635 # Compiler output produced by configure, useful for debugging
21636 # configure, is in config.log if it exists.
21637
21638 debug=false
21639 ac_cs_recheck=false
21640 ac_cs_silent=false
21641 SHELL=\${CONFIG_SHELL-$SHELL}
21642 _ACEOF
21643
21644 cat >>$CONFIG_STATUS <<\_ACEOF
21645 ## --------------------- ##
21646 ## M4sh Initialization.  ##
21647 ## --------------------- ##
21648
21649 # Be Bourne compatible
21650 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21651   emulate sh
21652   NULLCMD=:
21653   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21654   # is contrary to our usage.  Disable this feature.
21655   alias -g '${1+"$@"}'='"$@"'
21656 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21657   set -o posix
21658 fi
21659 DUALCASE=1; export DUALCASE # for MKS sh
21660
21661 # Support unset when possible.
21662 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21663   as_unset=unset
21664 else
21665   as_unset=false
21666 fi
21667
21668
21669 # Work around bugs in pre-3.0 UWIN ksh.
21670 $as_unset ENV MAIL MAILPATH
21671 PS1='$ '
21672 PS2='> '
21673 PS4='+ '
21674
21675 # NLS nuisances.
21676 for as_var in \
21677   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21678   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21679   LC_TELEPHONE LC_TIME
21680 do
21681   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21682     eval $as_var=C; export $as_var
21683   else
21684     $as_unset $as_var
21685   fi
21686 done
21687
21688 # Required to use basename.
21689 if expr a : '\(a\)' >/dev/null 2>&1; then
21690   as_expr=expr
21691 else
21692   as_expr=false
21693 fi
21694
21695 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21696   as_basename=basename
21697 else
21698   as_basename=false
21699 fi
21700
21701
21702 # Name of the executable.
21703 as_me=`$as_basename "$0" ||
21704 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21705          X"$0" : 'X\(//\)$' \| \
21706          X"$0" : 'X\(/\)$' \| \
21707          .     : '\(.\)' 2>/dev/null ||
21708 echo X/"$0" |
21709     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21710           /^X\/\(\/\/\)$/{ s//\1/; q; }
21711           /^X\/\(\/\).*/{ s//\1/; q; }
21712           s/.*/./; q'`
21713
21714
21715 # PATH needs CR, and LINENO needs CR and PATH.
21716 # Avoid depending upon Character Ranges.
21717 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21718 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21719 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21720 as_cr_digits='0123456789'
21721 as_cr_alnum=$as_cr_Letters$as_cr_digits
21722
21723 # The user is always right.
21724 if test "${PATH_SEPARATOR+set}" != set; then
21725   echo "#! /bin/sh" >conf$$.sh
21726   echo  "exit 0"   >>conf$$.sh
21727   chmod +x conf$$.sh
21728   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21729     PATH_SEPARATOR=';'
21730   else
21731     PATH_SEPARATOR=:
21732   fi
21733   rm -f conf$$.sh
21734 fi
21735
21736
21737   as_lineno_1=$LINENO
21738   as_lineno_2=$LINENO
21739   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21740   test "x$as_lineno_1" != "x$as_lineno_2" &&
21741   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
21742   # Find who we are.  Look in the path if we contain no path at all
21743   # relative or not.
21744   case $0 in
21745     *[\\/]* ) as_myself=$0 ;;
21746     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21747 for as_dir in $PATH
21748 do
21749   IFS=$as_save_IFS
21750   test -z "$as_dir" && as_dir=.
21751   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21752 done
21753
21754        ;;
21755   esac
21756   # We did not find ourselves, most probably we were run as `sh COMMAND'
21757   # in which case we are not to be found in the path.
21758   if test "x$as_myself" = x; then
21759     as_myself=$0
21760   fi
21761   if test ! -f "$as_myself"; then
21762     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21763 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21764    { (exit 1); exit 1; }; }
21765   fi
21766   case $CONFIG_SHELL in
21767   '')
21768     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21769 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21770 do
21771   IFS=$as_save_IFS
21772   test -z "$as_dir" && as_dir=.
21773   for as_base in sh bash ksh sh5; do
21774          case $as_dir in
21775          /*)
21776            if ("$as_dir/$as_base" -c '
21777   as_lineno_1=$LINENO
21778   as_lineno_2=$LINENO
21779   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21780   test "x$as_lineno_1" != "x$as_lineno_2" &&
21781   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
21782              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21783              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21784              CONFIG_SHELL=$as_dir/$as_base
21785              export CONFIG_SHELL
21786              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21787            fi;;
21788          esac
21789        done
21790 done
21791 ;;
21792   esac
21793
21794   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21795   # uniformly replaced by the line number.  The first 'sed' inserts a
21796   # line-number line before each line; the second 'sed' does the real
21797   # work.  The second script uses 'N' to pair each line-number line
21798   # with the numbered line, and appends trailing '-' during
21799   # substitution so that $LINENO is not a special case at line end.
21800   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21801   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
21802   sed '=' <$as_myself |
21803     sed '
21804       N
21805       s,$,-,
21806       : loop
21807       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21808       t loop
21809       s,-$,,
21810       s,^['$as_cr_digits']*\n,,
21811     ' >$as_me.lineno &&
21812   chmod +x $as_me.lineno ||
21813     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21814 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21815    { (exit 1); exit 1; }; }
21816
21817   # Don't try to exec as it changes $[0], causing all sort of problems
21818   # (the dirname of $[0] is not the place where we might find the
21819   # original and so on.  Autoconf is especially sensible to this).
21820   . ./$as_me.lineno
21821   # Exit status is that of the last command.
21822   exit
21823 }
21824
21825
21826 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21827   *c*,-n*) ECHO_N= ECHO_C='
21828 ' ECHO_T='      ' ;;
21829   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21830   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
21831 esac
21832
21833 if expr a : '\(a\)' >/dev/null 2>&1; then
21834   as_expr=expr
21835 else
21836   as_expr=false
21837 fi
21838
21839 rm -f conf$$ conf$$.exe conf$$.file
21840 echo >conf$$.file
21841 if ln -s conf$$.file conf$$ 2>/dev/null; then
21842   # We could just check for DJGPP; but this test a) works b) is more generic
21843   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21844   if test -f conf$$.exe; then
21845     # Don't use ln at all; we don't have any links
21846     as_ln_s='cp -p'
21847   else
21848     as_ln_s='ln -s'
21849   fi
21850 elif ln conf$$.file conf$$ 2>/dev/null; then
21851   as_ln_s=ln
21852 else
21853   as_ln_s='cp -p'
21854 fi
21855 rm -f conf$$ conf$$.exe conf$$.file
21856
21857 if mkdir -p . 2>/dev/null; then
21858   as_mkdir_p=:
21859 else
21860   test -d ./-p && rmdir ./-p
21861   as_mkdir_p=false
21862 fi
21863
21864 as_executable_p="test -f"
21865
21866 # Sed expression to map a string onto a valid CPP name.
21867 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21868
21869 # Sed expression to map a string onto a valid variable name.
21870 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21871
21872
21873 # IFS
21874 # We need space, tab and new line, in precisely that order.
21875 as_nl='
21876 '
21877 IFS="   $as_nl"
21878
21879 # CDPATH.
21880 $as_unset CDPATH
21881
21882 exec 6>&1
21883
21884 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21885 # report actual input values of CONFIG_FILES etc. instead of their
21886 # values after options handling.  Logging --version etc. is OK.
21887 exec 5>>config.log
21888 {
21889   echo
21890   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21891 ## Running $as_me. ##
21892 _ASBOX
21893 } >&5
21894 cat >&5 <<_CSEOF
21895
21896 This file was extended by $as_me, which was
21897 generated by GNU Autoconf 2.59.  Invocation command line was
21898
21899   CONFIG_FILES    = $CONFIG_FILES
21900   CONFIG_HEADERS  = $CONFIG_HEADERS
21901   CONFIG_LINKS    = $CONFIG_LINKS
21902   CONFIG_COMMANDS = $CONFIG_COMMANDS
21903   $ $0 $@
21904
21905 _CSEOF
21906 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21907 echo >&5
21908 _ACEOF
21909
21910 # Files that config.status was made for.
21911 if test -n "$ac_config_files"; then
21912   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21913 fi
21914
21915 if test -n "$ac_config_headers"; then
21916   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21917 fi
21918
21919 if test -n "$ac_config_links"; then
21920   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21921 fi
21922
21923 if test -n "$ac_config_commands"; then
21924   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21925 fi
21926
21927 cat >>$CONFIG_STATUS <<\_ACEOF
21928
21929 ac_cs_usage="\
21930 \`$as_me' instantiates files from templates according to the
21931 current configuration.
21932
21933 Usage: $0 [OPTIONS] [FILE]...
21934
21935   -h, --help       print this help, then exit
21936   -V, --version    print version number, then exit
21937   -q, --quiet      do not print progress messages
21938   -d, --debug      don't remove temporary files
21939       --recheck    update $as_me by reconfiguring in the same conditions
21940   --file=FILE[:TEMPLATE]
21941                    instantiate the configuration file FILE
21942   --header=FILE[:TEMPLATE]
21943                    instantiate the configuration header FILE
21944
21945 Configuration files:
21946 $config_files
21947
21948 Configuration headers:
21949 $config_headers
21950
21951 Configuration commands:
21952 $config_commands
21953
21954 Report bugs to <bug-autoconf@gnu.org>."
21955 _ACEOF
21956
21957 cat >>$CONFIG_STATUS <<_ACEOF
21958 ac_cs_version="\\
21959 config.status
21960 configured by $0, generated by GNU Autoconf 2.59,
21961   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21962
21963 Copyright (C) 2003 Free Software Foundation, Inc.
21964 This config.status script is free software; the Free Software Foundation
21965 gives unlimited permission to copy, distribute and modify it."
21966 srcdir=$srcdir
21967 INSTALL="$INSTALL"
21968 _ACEOF
21969
21970 cat >>$CONFIG_STATUS <<\_ACEOF
21971 # If no file are specified by the user, then we need to provide default
21972 # value.  By we need to know if files were specified by the user.
21973 ac_need_defaults=:
21974 while test $# != 0
21975 do
21976   case $1 in
21977   --*=*)
21978     ac_option=`expr "x$1" : 'x\([^=]*\)='`
21979     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21980     ac_shift=:
21981     ;;
21982   -*)
21983     ac_option=$1
21984     ac_optarg=$2
21985     ac_shift=shift
21986     ;;
21987   *) # This is not an option, so the user has probably given explicit
21988      # arguments.
21989      ac_option=$1
21990      ac_need_defaults=false;;
21991   esac
21992
21993   case $ac_option in
21994   # Handling of the options.
21995 _ACEOF
21996 cat >>$CONFIG_STATUS <<\_ACEOF
21997   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21998     ac_cs_recheck=: ;;
21999   --version | --vers* | -V )
22000     echo "$ac_cs_version"; exit 0 ;;
22001   --he | --h)
22002     # Conflict between --help and --header
22003     { { echo "$as_me:$LINENO: error: ambiguous option: $1
22004 Try \`$0 --help' for more information." >&5
22005 echo "$as_me: error: ambiguous option: $1
22006 Try \`$0 --help' for more information." >&2;}
22007    { (exit 1); exit 1; }; };;
22008   --help | --hel | -h )
22009     echo "$ac_cs_usage"; exit 0 ;;
22010   --debug | --d* | -d )
22011     debug=: ;;
22012   --file | --fil | --fi | --f )
22013     $ac_shift
22014     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22015     ac_need_defaults=false;;
22016   --header | --heade | --head | --hea )
22017     $ac_shift
22018     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22019     ac_need_defaults=false;;
22020   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22021   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22022     ac_cs_silent=: ;;
22023
22024   # This is an error.
22025   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22026 Try \`$0 --help' for more information." >&5
22027 echo "$as_me: error: unrecognized option: $1
22028 Try \`$0 --help' for more information." >&2;}
22029    { (exit 1); exit 1; }; } ;;
22030
22031   *) ac_config_targets="$ac_config_targets $1" ;;
22032
22033   esac
22034   shift
22035 done
22036
22037 ac_configure_extra_args=
22038
22039 if $ac_cs_silent; then
22040   exec 6>/dev/null
22041   ac_configure_extra_args="$ac_configure_extra_args --silent"
22042 fi
22043
22044 _ACEOF
22045 cat >>$CONFIG_STATUS <<_ACEOF
22046 if \$ac_cs_recheck; then
22047   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22048   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22049 fi
22050
22051 _ACEOF
22052
22053 cat >>$CONFIG_STATUS <<_ACEOF
22054 #
22055 # INIT-COMMANDS section.
22056 #
22057
22058 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22059
22060 _ACEOF
22061
22062
22063
22064 cat >>$CONFIG_STATUS <<\_ACEOF
22065 for ac_config_target in $ac_config_targets
22066 do
22067   case "$ac_config_target" in
22068   # Handling of arguments.
22069   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22070   "glib/Makefile" ) CONFIG_FILES="$CONFIG_FILES glib/Makefile" ;;
22071   "glib/glibmm-2.4.pc" ) CONFIG_FILES="$CONFIG_FILES glib/glibmm-2.4.pc" ;;
22072   "glib/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES glib/src/Makefile" ;;
22073   "glib/glibmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES glib/glibmm/Makefile" ;;
22074   "glib/glibmm/private/Makefile" ) CONFIG_FILES="$CONFIG_FILES glib/glibmm/private/Makefile" ;;
22075   "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
22076   "tools/gmmproc" ) CONFIG_FILES="$CONFIG_FILES tools/gmmproc" ;;
22077   "tools/generate_wrap_init.pl" ) CONFIG_FILES="$CONFIG_FILES tools/generate_wrap_init.pl" ;;
22078   "tools/m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/m4/Makefile" ;;
22079   "tools/pm/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/pm/Makefile" ;;
22080   "tools/extra_defs_gen/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/extra_defs_gen/Makefile" ;;
22081   "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
22082   "tests/glibmm_value/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/glibmm_value/Makefile" ;;
22083   "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
22084   "examples/markup/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/markup/Makefile" ;;
22085   "examples/options/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/options/Makefile" ;;
22086   "examples/thread/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/thread/Makefile" ;;
22087   "examples/iochannel_stream/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/iochannel_stream/Makefile" ;;
22088   "examples/child_watch/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/child_watch/Makefile" ;;
22089   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
22090   "docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
22091   "docs/images/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/images/Makefile" ;;
22092   "docs/reference/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/reference/Makefile" ;;
22093   "docs/reference/Doxyfile" ) CONFIG_FILES="$CONFIG_FILES docs/reference/Doxyfile" ;;
22094   "docs/reference/beautify_docs.pl" ) CONFIG_FILES="$CONFIG_FILES docs/reference/beautify_docs.pl" ;;
22095   "docs/internal/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/internal/Makefile" ;;
22096   "MSVC_Net2003/Makefile" ) CONFIG_FILES="$CONFIG_FILES MSVC_Net2003/Makefile" ;;
22097   "MSVC_Net2003/gendef/Makefile" ) CONFIG_FILES="$CONFIG_FILES MSVC_Net2003/gendef/Makefile" ;;
22098   "MSVC_Net2003/glibmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES MSVC_Net2003/glibmm/Makefile" ;;
22099   "MSVC_Net2003/glibmm/glibmm.rc" ) CONFIG_FILES="$CONFIG_FILES MSVC_Net2003/glibmm/glibmm.rc" ;;
22100   "MSVC_Net2003/examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES MSVC_Net2003/examples/Makefile" ;;
22101   "MSVC_Net2003/examples/dispatcher/Makefile" ) CONFIG_FILES="$CONFIG_FILES MSVC_Net2003/examples/dispatcher/Makefile" ;;
22102   "MSVC_Net2003/examples/dispatcher2/Makefile" ) CONFIG_FILES="$CONFIG_FILES MSVC_Net2003/examples/dispatcher2/Makefile" ;;
22103   "MSVC_Net2003/examples/markup/Makefile" ) CONFIG_FILES="$CONFIG_FILES MSVC_Net2003/examples/markup/Makefile" ;;
22104   "MSVC_Net2003/examples/options/Makefile" ) CONFIG_FILES="$CONFIG_FILES MSVC_Net2003/examples/options/Makefile" ;;
22105   "MSVC_Net2003/examples/thread/Makefile" ) CONFIG_FILES="$CONFIG_FILES MSVC_Net2003/examples/thread/Makefile" ;;
22106   "MSVC_Net2003/examples/thread_pool/Makefile" ) CONFIG_FILES="$CONFIG_FILES MSVC_Net2003/examples/thread_pool/Makefile" ;;
22107   "MSVC_Net2003/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES MSVC_Net2003/tests/Makefile" ;;
22108   "MSVC_Net2003/tests/glibmm_value/Makefile" ) CONFIG_FILES="$CONFIG_FILES MSVC_Net2003/tests/glibmm_value/Makefile" ;;
22109   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22110   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22111   "glib/glibmmconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS glib/glibmmconfig.h" ;;
22112   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22113 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22114    { (exit 1); exit 1; }; };;
22115   esac
22116 done
22117
22118 # If the user did not use the arguments to specify the items to instantiate,
22119 # then the envvar interface is used.  Set only those that are not.
22120 # We use the long form for the default assignment because of an extremely
22121 # bizarre bug on SunOS 4.1.3.
22122 if $ac_need_defaults; then
22123   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22124   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22125   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22126 fi
22127
22128 # Have a temporary directory for convenience.  Make it in the build tree
22129 # simply because there is no reason to put it here, and in addition,
22130 # creating and moving files from /tmp can sometimes cause problems.
22131 # Create a temporary directory, and hook for its removal unless debugging.
22132 $debug ||
22133 {
22134   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22135   trap '{ (exit 1); exit 1; }' 1 2 13 15
22136 }
22137
22138 # Create a (secure) tmp directory for tmp files.
22139
22140 {
22141   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22142   test -n "$tmp" && test -d "$tmp"
22143 }  ||
22144 {
22145   tmp=./confstat$$-$RANDOM
22146   (umask 077 && mkdir $tmp)
22147 } ||
22148 {
22149    echo "$me: cannot create a temporary directory in ." >&2
22150    { (exit 1); exit 1; }
22151 }
22152
22153 _ACEOF
22154
22155 cat >>$CONFIG_STATUS <<_ACEOF
22156
22157 #
22158 # CONFIG_FILES section.
22159 #
22160
22161 # No need to generate the scripts if there are no CONFIG_FILES.
22162 # This happens for instance when ./config.status config.h
22163 if test -n "\$CONFIG_FILES"; then
22164   # Protect against being on the right side of a sed subst in config.status.
22165   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22166    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22167 s,@SHELL@,$SHELL,;t t
22168 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22169 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22170 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22171 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22172 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22173 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22174 s,@exec_prefix@,$exec_prefix,;t t
22175 s,@prefix@,$prefix,;t t
22176 s,@program_transform_name@,$program_transform_name,;t t
22177 s,@bindir@,$bindir,;t t
22178 s,@sbindir@,$sbindir,;t t
22179 s,@libexecdir@,$libexecdir,;t t
22180 s,@datadir@,$datadir,;t t
22181 s,@sysconfdir@,$sysconfdir,;t t
22182 s,@sharedstatedir@,$sharedstatedir,;t t
22183 s,@localstatedir@,$localstatedir,;t t
22184 s,@libdir@,$libdir,;t t
22185 s,@includedir@,$includedir,;t t
22186 s,@oldincludedir@,$oldincludedir,;t t
22187 s,@infodir@,$infodir,;t t
22188 s,@mandir@,$mandir,;t t
22189 s,@build_alias@,$build_alias,;t t
22190 s,@host_alias@,$host_alias,;t t
22191 s,@target_alias@,$target_alias,;t t
22192 s,@DEFS@,$DEFS,;t t
22193 s,@ECHO_C@,$ECHO_C,;t t
22194 s,@ECHO_N@,$ECHO_N,;t t
22195 s,@ECHO_T@,$ECHO_T,;t t
22196 s,@LIBS@,$LIBS,;t t
22197 s,@GLIBMM_MAJOR_VERSION@,$GLIBMM_MAJOR_VERSION,;t t
22198 s,@GLIBMM_MINOR_VERSION@,$GLIBMM_MINOR_VERSION,;t t
22199 s,@GLIBMM_MICRO_VERSION@,$GLIBMM_MICRO_VERSION,;t t
22200 s,@GLIBMM_VERSION@,$GLIBMM_VERSION,;t t
22201 s,@GLIBMM_RELEASE@,$GLIBMM_RELEASE,;t t
22202 s,@LIBGLIBMM_SO_VERSION@,$LIBGLIBMM_SO_VERSION,;t t
22203 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22204 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22205 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22206 s,@CYGPATH_W@,$CYGPATH_W,;t t
22207 s,@PACKAGE@,$PACKAGE,;t t
22208 s,@VERSION@,$VERSION,;t t
22209 s,@ACLOCAL@,$ACLOCAL,;t t
22210 s,@AUTOCONF@,$AUTOCONF,;t t
22211 s,@AUTOMAKE@,$AUTOMAKE,;t t
22212 s,@AUTOHEADER@,$AUTOHEADER,;t t
22213 s,@MAKEINFO@,$MAKEINFO,;t t
22214 s,@install_sh@,$install_sh,;t t
22215 s,@STRIP@,$STRIP,;t t
22216 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22217 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
22218 s,@mkdir_p@,$mkdir_p,;t t
22219 s,@AWK@,$AWK,;t t
22220 s,@SET_MAKE@,$SET_MAKE,;t t
22221 s,@am__leading_dot@,$am__leading_dot,;t t
22222 s,@AMTAR@,$AMTAR,;t t
22223 s,@am__tar@,$am__tar,;t t
22224 s,@am__untar@,$am__untar,;t t
22225 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
22226 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
22227 s,@MAINT@,$MAINT,;t t
22228 s,@CC@,$CC,;t t
22229 s,@CFLAGS@,$CFLAGS,;t t
22230 s,@LDFLAGS@,$LDFLAGS,;t t
22231 s,@CPPFLAGS@,$CPPFLAGS,;t t
22232 s,@ac_ct_CC@,$ac_ct_CC,;t t
22233 s,@EXEEXT@,$EXEEXT,;t t
22234 s,@OBJEXT@,$OBJEXT,;t t
22235 s,@DEPDIR@,$DEPDIR,;t t
22236 s,@am__include@,$am__include,;t t
22237 s,@am__quote@,$am__quote,;t t
22238 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
22239 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
22240 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
22241 s,@CCDEPMODE@,$CCDEPMODE,;t t
22242 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
22243 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
22244 s,@CPP@,$CPP,;t t
22245 s,@build@,$build,;t t
22246 s,@build_cpu@,$build_cpu,;t t
22247 s,@build_vendor@,$build_vendor,;t t
22248 s,@build_os@,$build_os,;t t
22249 s,@host@,$host,;t t
22250 s,@host_cpu@,$host_cpu,;t t
22251 s,@host_vendor@,$host_vendor,;t t
22252 s,@host_os@,$host_os,;t t
22253 s,@PLATFORM_WIN32_TRUE@,$PLATFORM_WIN32_TRUE,;t t
22254 s,@PLATFORM_WIN32_FALSE@,$PLATFORM_WIN32_FALSE,;t t
22255 s,@OS_WIN32_TRUE@,$OS_WIN32_TRUE,;t t
22256 s,@OS_WIN32_FALSE@,$OS_WIN32_FALSE,;t t
22257 s,@EGREP@,$EGREP,;t t
22258 s,@LN_S@,$LN_S,;t t
22259 s,@ECHO@,$ECHO,;t t
22260 s,@AR@,$AR,;t t
22261 s,@ac_ct_AR@,$ac_ct_AR,;t t
22262 s,@RANLIB@,$RANLIB,;t t
22263 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22264 s,@DLLTOOL@,$DLLTOOL,;t t
22265 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
22266 s,@AS@,$AS,;t t
22267 s,@ac_ct_AS@,$ac_ct_AS,;t t
22268 s,@OBJDUMP@,$OBJDUMP,;t t
22269 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
22270 s,@CXX@,$CXX,;t t
22271 s,@CXXFLAGS@,$CXXFLAGS,;t t
22272 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22273 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
22274 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
22275 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
22276 s,@CXXCPP@,$CXXCPP,;t t
22277 s,@F77@,$F77,;t t
22278 s,@FFLAGS@,$FFLAGS,;t t
22279 s,@ac_ct_F77@,$ac_ct_F77,;t t
22280 s,@LIBTOOL@,$LIBTOOL,;t t
22281 s,@M4@,$M4,;t t
22282 s,@PERL_PATH@,$PERL_PATH,;t t
22283 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
22284 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
22285 s,@GLIBMM_CFLAGS@,$GLIBMM_CFLAGS,;t t
22286 s,@GLIBMM_LIBS@,$GLIBMM_LIBS,;t t
22287 s,@GTHREAD_CFLAGS@,$GTHREAD_CFLAGS,;t t
22288 s,@GTHREAD_LIBS@,$GTHREAD_LIBS,;t t
22289 s,@GTKMM_DOXYGEN_INPUT@,$GTKMM_DOXYGEN_INPUT,;t t
22290 s,@GTKMMPROC_MERGECDOCS@,$GTKMMPROC_MERGECDOCS,;t t
22291 s,@DISABLE_DEPRECATED_CFLAGS@,$DISABLE_DEPRECATED_CFLAGS,;t t
22292 s,@DISABLE_DEPRECATED_API_CFLAGS@,$DISABLE_DEPRECATED_API_CFLAGS,;t t
22293 s,@GTKMM_FALSE_TRUE@,$GTKMM_FALSE_TRUE,;t t
22294 s,@GTKMM_FALSE_FALSE@,$GTKMM_FALSE_FALSE,;t t
22295 s,@LIBOBJS@,$LIBOBJS,;t t
22296 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22297 CEOF
22298
22299 _ACEOF
22300
22301   cat >>$CONFIG_STATUS <<\_ACEOF
22302   # Split the substitutions into bite-sized pieces for seds with
22303   # small command number limits, like on Digital OSF/1 and HP-UX.
22304   ac_max_sed_lines=48
22305   ac_sed_frag=1 # Number of current file.
22306   ac_beg=1 # First line for current file.
22307   ac_end=$ac_max_sed_lines # Line after last line for current file.
22308   ac_more_lines=:
22309   ac_sed_cmds=
22310   while $ac_more_lines; do
22311     if test $ac_beg -gt 1; then
22312       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22313     else
22314       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22315     fi
22316     if test ! -s $tmp/subs.frag; then
22317       ac_more_lines=false
22318     else
22319       # The purpose of the label and of the branching condition is to
22320       # speed up the sed processing (if there are no `@' at all, there
22321       # is no need to browse any of the substitutions).
22322       # These are the two extra sed commands mentioned above.
22323       (echo ':t
22324   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22325       if test -z "$ac_sed_cmds"; then
22326         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22327       else
22328         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22329       fi
22330       ac_sed_frag=`expr $ac_sed_frag + 1`
22331       ac_beg=$ac_end
22332       ac_end=`expr $ac_end + $ac_max_sed_lines`
22333     fi
22334   done
22335   if test -z "$ac_sed_cmds"; then
22336     ac_sed_cmds=cat
22337   fi
22338 fi # test -n "$CONFIG_FILES"
22339
22340 _ACEOF
22341 cat >>$CONFIG_STATUS <<\_ACEOF
22342 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22343   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22344   case $ac_file in
22345   - | *:- | *:-:* ) # input from stdin
22346         cat >$tmp/stdin
22347         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22348         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22349   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22350         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22351   * )   ac_file_in=$ac_file.in ;;
22352   esac
22353
22354   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22355   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22356 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22357          X"$ac_file" : 'X\(//\)[^/]' \| \
22358          X"$ac_file" : 'X\(//\)$' \| \
22359          X"$ac_file" : 'X\(/\)' \| \
22360          .     : '\(.\)' 2>/dev/null ||
22361 echo X"$ac_file" |
22362     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22363           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22364           /^X\(\/\/\)$/{ s//\1/; q; }
22365           /^X\(\/\).*/{ s//\1/; q; }
22366           s/.*/./; q'`
22367   { if $as_mkdir_p; then
22368     mkdir -p "$ac_dir"
22369   else
22370     as_dir="$ac_dir"
22371     as_dirs=
22372     while test ! -d "$as_dir"; do
22373       as_dirs="$as_dir $as_dirs"
22374       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22375 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22376          X"$as_dir" : 'X\(//\)[^/]' \| \
22377          X"$as_dir" : 'X\(//\)$' \| \
22378          X"$as_dir" : 'X\(/\)' \| \
22379          .     : '\(.\)' 2>/dev/null ||
22380 echo X"$as_dir" |
22381     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22382           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22383           /^X\(\/\/\)$/{ s//\1/; q; }
22384           /^X\(\/\).*/{ s//\1/; q; }
22385           s/.*/./; q'`
22386     done
22387     test ! -n "$as_dirs" || mkdir $as_dirs
22388   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22389 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22390    { (exit 1); exit 1; }; }; }
22391
22392   ac_builddir=.
22393
22394 if test "$ac_dir" != .; then
22395   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22396   # A "../" for each directory in $ac_dir_suffix.
22397   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22398 else
22399   ac_dir_suffix= ac_top_builddir=
22400 fi
22401
22402 case $srcdir in
22403   .)  # No --srcdir option.  We are building in place.
22404     ac_srcdir=.
22405     if test -z "$ac_top_builddir"; then
22406        ac_top_srcdir=.
22407     else
22408        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22409     fi ;;
22410   [\\/]* | ?:[\\/]* )  # Absolute path.
22411     ac_srcdir=$srcdir$ac_dir_suffix;
22412     ac_top_srcdir=$srcdir ;;
22413   *) # Relative path.
22414     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22415     ac_top_srcdir=$ac_top_builddir$srcdir ;;
22416 esac
22417
22418 # Do not use `cd foo && pwd` to compute absolute paths, because
22419 # the directories may not exist.
22420 case `pwd` in
22421 .) ac_abs_builddir="$ac_dir";;
22422 *)
22423   case "$ac_dir" in
22424   .) ac_abs_builddir=`pwd`;;
22425   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22426   *) ac_abs_builddir=`pwd`/"$ac_dir";;
22427   esac;;
22428 esac
22429 case $ac_abs_builddir in
22430 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22431 *)
22432   case ${ac_top_builddir}. in
22433   .) ac_abs_top_builddir=$ac_abs_builddir;;
22434   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22435   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22436   esac;;
22437 esac
22438 case $ac_abs_builddir in
22439 .) ac_abs_srcdir=$ac_srcdir;;
22440 *)
22441   case $ac_srcdir in
22442   .) ac_abs_srcdir=$ac_abs_builddir;;
22443   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22444   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22445   esac;;
22446 esac
22447 case $ac_abs_builddir in
22448 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22449 *)
22450   case $ac_top_srcdir in
22451   .) ac_abs_top_srcdir=$ac_abs_builddir;;
22452   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22453   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22454   esac;;
22455 esac
22456
22457
22458   case $INSTALL in
22459   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22460   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22461   esac
22462
22463   if test x"$ac_file" != x-; then
22464     { echo "$as_me:$LINENO: creating $ac_file" >&5
22465 echo "$as_me: creating $ac_file" >&6;}
22466     rm -f "$ac_file"
22467   fi
22468   # Let's still pretend it is `configure' which instantiates (i.e., don't
22469   # use $as_me), people would be surprised to read:
22470   #    /* config.h.  Generated by config.status.  */
22471   if test x"$ac_file" = x-; then
22472     configure_input=
22473   else
22474     configure_input="$ac_file.  "
22475   fi
22476   configure_input=$configure_input"Generated from `echo $ac_file_in |
22477                                      sed 's,.*/,,'` by configure."
22478
22479   # First look for the input files in the build tree, otherwise in the
22480   # src tree.
22481   ac_file_inputs=`IFS=:
22482     for f in $ac_file_in; do
22483       case $f in
22484       -) echo $tmp/stdin ;;
22485       [\\/$]*)
22486          # Absolute (can't be DOS-style, as IFS=:)
22487          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22488 echo "$as_me: error: cannot find input file: $f" >&2;}
22489    { (exit 1); exit 1; }; }
22490          echo "$f";;
22491       *) # Relative
22492          if test -f "$f"; then
22493            # Build tree
22494            echo "$f"
22495          elif test -f "$srcdir/$f"; then
22496            # Source tree
22497            echo "$srcdir/$f"
22498          else
22499            # /dev/null tree
22500            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22501 echo "$as_me: error: cannot find input file: $f" >&2;}
22502    { (exit 1); exit 1; }; }
22503          fi;;
22504       esac
22505     done` || { (exit 1); exit 1; }
22506 _ACEOF
22507 cat >>$CONFIG_STATUS <<_ACEOF
22508   sed "$ac_vpsub
22509 $extrasub
22510 _ACEOF
22511 cat >>$CONFIG_STATUS <<\_ACEOF
22512 :t
22513 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22514 s,@configure_input@,$configure_input,;t t
22515 s,@srcdir@,$ac_srcdir,;t t
22516 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22517 s,@top_srcdir@,$ac_top_srcdir,;t t
22518 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22519 s,@builddir@,$ac_builddir,;t t
22520 s,@abs_builddir@,$ac_abs_builddir,;t t
22521 s,@top_builddir@,$ac_top_builddir,;t t
22522 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22523 s,@INSTALL@,$ac_INSTALL,;t t
22524 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22525   rm -f $tmp/stdin
22526   if test x"$ac_file" != x-; then
22527     mv $tmp/out $ac_file
22528   else
22529     cat $tmp/out
22530     rm -f $tmp/out
22531   fi
22532
22533 done
22534 _ACEOF
22535 cat >>$CONFIG_STATUS <<\_ACEOF
22536
22537 #
22538 # CONFIG_HEADER section.
22539 #
22540
22541 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22542 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22543 #
22544 # ac_d sets the value in "#define NAME VALUE" lines.
22545 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
22546 ac_dB='[         ].*$,\1#\2'
22547 ac_dC=' '
22548 ac_dD=',;t'
22549 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22550 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
22551 ac_uB='$,\1#\2define\3'
22552 ac_uC=' '
22553 ac_uD=',;t'
22554
22555 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22556   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22557   case $ac_file in
22558   - | *:- | *:-:* ) # input from stdin
22559         cat >$tmp/stdin
22560         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22561         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22562   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22563         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22564   * )   ac_file_in=$ac_file.in ;;
22565   esac
22566
22567   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22568 echo "$as_me: creating $ac_file" >&6;}
22569
22570   # First look for the input files in the build tree, otherwise in the
22571   # src tree.
22572   ac_file_inputs=`IFS=:
22573     for f in $ac_file_in; do
22574       case $f in
22575       -) echo $tmp/stdin ;;
22576       [\\/$]*)
22577          # Absolute (can't be DOS-style, as IFS=:)
22578          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22579 echo "$as_me: error: cannot find input file: $f" >&2;}
22580    { (exit 1); exit 1; }; }
22581          # Do quote $f, to prevent DOS paths from being IFS'd.
22582          echo "$f";;
22583       *) # Relative
22584          if test -f "$f"; then
22585            # Build tree
22586            echo "$f"
22587          elif test -f "$srcdir/$f"; then
22588            # Source tree
22589            echo "$srcdir/$f"
22590          else
22591            # /dev/null tree
22592            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22593 echo "$as_me: error: cannot find input file: $f" >&2;}
22594    { (exit 1); exit 1; }; }
22595          fi;;
22596       esac
22597     done` || { (exit 1); exit 1; }
22598   # Remove the trailing spaces.
22599   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
22600
22601 _ACEOF
22602
22603 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22604 # `conftest.undefs', that substitutes the proper values into
22605 # config.h.in to produce config.h.  The first handles `#define'
22606 # templates, and the second `#undef' templates.
22607 # And first: Protect against being on the right side of a sed subst in
22608 # config.status.  Protect against being in an unquoted here document
22609 # in config.status.
22610 rm -f conftest.defines conftest.undefs
22611 # Using a here document instead of a string reduces the quoting nightmare.
22612 # Putting comments in sed scripts is not portable.
22613 #
22614 # `end' is used to avoid that the second main sed command (meant for
22615 # 0-ary CPP macros) applies to n-ary macro definitions.
22616 # See the Autoconf documentation for `clear'.
22617 cat >confdef2sed.sed <<\_ACEOF
22618 s/[\\&,]/\\&/g
22619 s,[\\$`],\\&,g
22620 t clear
22621 : clear
22622 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22623 t end
22624 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22625 : end
22626 _ACEOF
22627 # If some macros were called several times there might be several times
22628 # the same #defines, which is useless.  Nevertheless, we may not want to
22629 # sort them, since we want the *last* AC-DEFINE to be honored.
22630 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22631 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22632 rm -f confdef2sed.sed
22633
22634 # This sed command replaces #undef with comments.  This is necessary, for
22635 # example, in the case of _POSIX_SOURCE, which is predefined and required
22636 # on some systems where configure will not decide to define it.
22637 cat >>conftest.undefs <<\_ACEOF
22638 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22639 _ACEOF
22640
22641 # Break up conftest.defines because some shells have a limit on the size
22642 # of here documents, and old seds have small limits too (100 cmds).
22643 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22644 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22645 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22646 echo '  :' >>$CONFIG_STATUS
22647 rm -f conftest.tail
22648 while grep . conftest.defines >/dev/null
22649 do
22650   # Write a limited-size here document to $tmp/defines.sed.
22651   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22652   # Speed up: don't consider the non `#define' lines.
22653   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
22654   # Work around the forget-to-reset-the-flag bug.
22655   echo 't clr' >>$CONFIG_STATUS
22656   echo ': clr' >>$CONFIG_STATUS
22657   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22658   echo 'CEOF
22659   sed -f $tmp/defines.sed $tmp/in >$tmp/out
22660   rm -f $tmp/in
22661   mv $tmp/out $tmp/in
22662 ' >>$CONFIG_STATUS
22663   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22664   rm -f conftest.defines
22665   mv conftest.tail conftest.defines
22666 done
22667 rm -f conftest.defines
22668 echo '  fi # grep' >>$CONFIG_STATUS
22669 echo >>$CONFIG_STATUS
22670
22671 # Break up conftest.undefs because some shells have a limit on the size
22672 # of here documents, and old seds have small limits too (100 cmds).
22673 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
22674 rm -f conftest.tail
22675 while grep . conftest.undefs >/dev/null
22676 do
22677   # Write a limited-size here document to $tmp/undefs.sed.
22678   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22679   # Speed up: don't consider the non `#undef'
22680   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
22681   # Work around the forget-to-reset-the-flag bug.
22682   echo 't clr' >>$CONFIG_STATUS
22683   echo ': clr' >>$CONFIG_STATUS
22684   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22685   echo 'CEOF
22686   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22687   rm -f $tmp/in
22688   mv $tmp/out $tmp/in
22689 ' >>$CONFIG_STATUS
22690   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22691   rm -f conftest.undefs
22692   mv conftest.tail conftest.undefs
22693 done
22694 rm -f conftest.undefs
22695
22696 cat >>$CONFIG_STATUS <<\_ACEOF
22697   # Let's still pretend it is `configure' which instantiates (i.e., don't
22698   # use $as_me), people would be surprised to read:
22699   #    /* config.h.  Generated by config.status.  */
22700   if test x"$ac_file" = x-; then
22701     echo "/* Generated by configure.  */" >$tmp/config.h
22702   else
22703     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
22704   fi
22705   cat $tmp/in >>$tmp/config.h
22706   rm -f $tmp/in
22707   if test x"$ac_file" != x-; then
22708     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22709       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22710 echo "$as_me: $ac_file is unchanged" >&6;}
22711     else
22712       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22713 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22714          X"$ac_file" : 'X\(//\)[^/]' \| \
22715          X"$ac_file" : 'X\(//\)$' \| \
22716          X"$ac_file" : 'X\(/\)' \| \
22717          .     : '\(.\)' 2>/dev/null ||
22718 echo X"$ac_file" |
22719     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22720           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22721           /^X\(\/\/\)$/{ s//\1/; q; }
22722           /^X\(\/\).*/{ s//\1/; q; }
22723           s/.*/./; q'`
22724       { if $as_mkdir_p; then
22725     mkdir -p "$ac_dir"
22726   else
22727     as_dir="$ac_dir"
22728     as_dirs=
22729     while test ! -d "$as_dir"; do
22730       as_dirs="$as_dir $as_dirs"
22731       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22732 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22733          X"$as_dir" : 'X\(//\)[^/]' \| \
22734          X"$as_dir" : 'X\(//\)$' \| \
22735          X"$as_dir" : 'X\(/\)' \| \
22736          .     : '\(.\)' 2>/dev/null ||
22737 echo X"$as_dir" |
22738     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22739           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22740           /^X\(\/\/\)$/{ s//\1/; q; }
22741           /^X\(\/\).*/{ s//\1/; q; }
22742           s/.*/./; q'`
22743     done
22744     test ! -n "$as_dirs" || mkdir $as_dirs
22745   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22746 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22747    { (exit 1); exit 1; }; }; }
22748
22749       rm -f $ac_file
22750       mv $tmp/config.h $ac_file
22751     fi
22752   else
22753     cat $tmp/config.h
22754     rm -f $tmp/config.h
22755   fi
22756 # Compute $ac_file's index in $config_headers.
22757 _am_stamp_count=1
22758 for _am_header in $config_headers :; do
22759   case $_am_header in
22760     $ac_file | $ac_file:* )
22761       break ;;
22762     * )
22763       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22764   esac
22765 done
22766 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
22767 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22768          X$ac_file : 'X\(//\)[^/]' \| \
22769          X$ac_file : 'X\(//\)$' \| \
22770          X$ac_file : 'X\(/\)' \| \
22771          .     : '\(.\)' 2>/dev/null ||
22772 echo X$ac_file |
22773     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22774           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22775           /^X\(\/\/\)$/{ s//\1/; q; }
22776           /^X\(\/\).*/{ s//\1/; q; }
22777           s/.*/./; q'`/stamp-h$_am_stamp_count
22778 done
22779 _ACEOF
22780 cat >>$CONFIG_STATUS <<\_ACEOF
22781
22782 #
22783 # CONFIG_COMMANDS section.
22784 #
22785 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22786   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22787   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22788   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22789 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22790          X"$ac_dest" : 'X\(//\)[^/]' \| \
22791          X"$ac_dest" : 'X\(//\)$' \| \
22792          X"$ac_dest" : 'X\(/\)' \| \
22793          .     : '\(.\)' 2>/dev/null ||
22794 echo X"$ac_dest" |
22795     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22796           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22797           /^X\(\/\/\)$/{ s//\1/; q; }
22798           /^X\(\/\).*/{ s//\1/; q; }
22799           s/.*/./; q'`
22800   { if $as_mkdir_p; then
22801     mkdir -p "$ac_dir"
22802   else
22803     as_dir="$ac_dir"
22804     as_dirs=
22805     while test ! -d "$as_dir"; do
22806       as_dirs="$as_dir $as_dirs"
22807       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22808 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22809          X"$as_dir" : 'X\(//\)[^/]' \| \
22810          X"$as_dir" : 'X\(//\)$' \| \
22811          X"$as_dir" : 'X\(/\)' \| \
22812          .     : '\(.\)' 2>/dev/null ||
22813 echo X"$as_dir" |
22814     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22815           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22816           /^X\(\/\/\)$/{ s//\1/; q; }
22817           /^X\(\/\).*/{ s//\1/; q; }
22818           s/.*/./; q'`
22819     done
22820     test ! -n "$as_dirs" || mkdir $as_dirs
22821   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22822 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22823    { (exit 1); exit 1; }; }; }
22824
22825   ac_builddir=.
22826
22827 if test "$ac_dir" != .; then
22828   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22829   # A "../" for each directory in $ac_dir_suffix.
22830   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22831 else
22832   ac_dir_suffix= ac_top_builddir=
22833 fi
22834
22835 case $srcdir in
22836   .)  # No --srcdir option.  We are building in place.
22837     ac_srcdir=.
22838     if test -z "$ac_top_builddir"; then
22839        ac_top_srcdir=.
22840     else
22841        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22842     fi ;;
22843   [\\/]* | ?:[\\/]* )  # Absolute path.
22844     ac_srcdir=$srcdir$ac_dir_suffix;
22845     ac_top_srcdir=$srcdir ;;
22846   *) # Relative path.
22847     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22848     ac_top_srcdir=$ac_top_builddir$srcdir ;;
22849 esac
22850
22851 # Do not use `cd foo && pwd` to compute absolute paths, because
22852 # the directories may not exist.
22853 case `pwd` in
22854 .) ac_abs_builddir="$ac_dir";;
22855 *)
22856   case "$ac_dir" in
22857   .) ac_abs_builddir=`pwd`;;
22858   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22859   *) ac_abs_builddir=`pwd`/"$ac_dir";;
22860   esac;;
22861 esac
22862 case $ac_abs_builddir in
22863 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22864 *)
22865   case ${ac_top_builddir}. in
22866   .) ac_abs_top_builddir=$ac_abs_builddir;;
22867   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22868   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22869   esac;;
22870 esac
22871 case $ac_abs_builddir in
22872 .) ac_abs_srcdir=$ac_srcdir;;
22873 *)
22874   case $ac_srcdir in
22875   .) ac_abs_srcdir=$ac_abs_builddir;;
22876   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22877   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22878   esac;;
22879 esac
22880 case $ac_abs_builddir in
22881 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22882 *)
22883   case $ac_top_srcdir in
22884   .) ac_abs_top_srcdir=$ac_abs_builddir;;
22885   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22886   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22887   esac;;
22888 esac
22889
22890
22891   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22892 echo "$as_me: executing $ac_dest commands" >&6;}
22893   case $ac_dest in
22894     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22895   # Strip MF so we end up with the name of the file.
22896   mf=`echo "$mf" | sed -e 's/:.*$//'`
22897   # Check whether this is an Automake generated Makefile or not.
22898   # We used to match only the files named `Makefile.in', but
22899   # some people rename them; so instead we look at the file content.
22900   # Grep'ing the first line is not enough: some people post-process
22901   # each Makefile.in and add a new line on top of each file to say so.
22902   # So let's grep whole file.
22903   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22904     dirpart=`(dirname "$mf") 2>/dev/null ||
22905 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22906          X"$mf" : 'X\(//\)[^/]' \| \
22907          X"$mf" : 'X\(//\)$' \| \
22908          X"$mf" : 'X\(/\)' \| \
22909          .     : '\(.\)' 2>/dev/null ||
22910 echo X"$mf" |
22911     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22912           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22913           /^X\(\/\/\)$/{ s//\1/; q; }
22914           /^X\(\/\).*/{ s//\1/; q; }
22915           s/.*/./; q'`
22916   else
22917     continue
22918   fi
22919   # Extract the definition of DEPDIR, am__include, and am__quote
22920   # from the Makefile without running `make'.
22921   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22922   test -z "$DEPDIR" && continue
22923   am__include=`sed -n 's/^am__include = //p' < "$mf"`
22924   test -z "am__include" && continue
22925   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22926   # When using ansi2knr, U may be empty or an underscore; expand it
22927   U=`sed -n 's/^U = //p' < "$mf"`
22928   # Find all dependency output files, they are included files with
22929   # $(DEPDIR) in their names.  We invoke sed twice because it is the
22930   # simplest approach to changing $(DEPDIR) to its actual value in the
22931   # expansion.
22932   for file in `sed -n "
22933     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22934        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22935     # Make sure the directory exists.
22936     test -f "$dirpart/$file" && continue
22937     fdir=`(dirname "$file") 2>/dev/null ||
22938 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22939          X"$file" : 'X\(//\)[^/]' \| \
22940          X"$file" : 'X\(//\)$' \| \
22941          X"$file" : 'X\(/\)' \| \
22942          .     : '\(.\)' 2>/dev/null ||
22943 echo X"$file" |
22944     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22945           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22946           /^X\(\/\/\)$/{ s//\1/; q; }
22947           /^X\(\/\).*/{ s//\1/; q; }
22948           s/.*/./; q'`
22949     { if $as_mkdir_p; then
22950     mkdir -p $dirpart/$fdir
22951   else
22952     as_dir=$dirpart/$fdir
22953     as_dirs=
22954     while test ! -d "$as_dir"; do
22955       as_dirs="$as_dir $as_dirs"
22956       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22957 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22958          X"$as_dir" : 'X\(//\)[^/]' \| \
22959          X"$as_dir" : 'X\(//\)$' \| \
22960          X"$as_dir" : 'X\(/\)' \| \
22961          .     : '\(.\)' 2>/dev/null ||
22962 echo X"$as_dir" |
22963     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22964           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22965           /^X\(\/\/\)$/{ s//\1/; q; }
22966           /^X\(\/\).*/{ s//\1/; q; }
22967           s/.*/./; q'`
22968     done
22969     test ! -n "$as_dirs" || mkdir $as_dirs
22970   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22971 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22972    { (exit 1); exit 1; }; }; }
22973
22974     # echo "creating $dirpart/$file"
22975     echo '# dummy' > "$dirpart/$file"
22976   done
22977 done
22978  ;;
22979   esac
22980 done
22981 _ACEOF
22982
22983 cat >>$CONFIG_STATUS <<\_ACEOF
22984
22985 { (exit 0); exit 0; }
22986 _ACEOF
22987 chmod +x $CONFIG_STATUS
22988 ac_clean_files=$ac_clean_files_save
22989
22990
22991 # configure is writing to config.log, and then calls config.status.
22992 # config.status does its own redirection, appending to config.log.
22993 # Unfortunately, on DOS this fails, as config.log is still kept open
22994 # by configure, so config.status won't be able to write to it; its
22995 # output is simply discarded.  So we exec the FD to /dev/null,
22996 # effectively closing config.log, so it can be properly (re)opened and
22997 # appended to by config.status.  When coming back to configure, we
22998 # need to make the FD available again.
22999 if test "$no_create" != yes; then
23000   ac_cs_success=:
23001   ac_config_status_args=
23002   test "$silent" = yes &&
23003     ac_config_status_args="$ac_config_status_args --quiet"
23004   exec 5>/dev/null
23005   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23006   exec 5>>config.log
23007   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23008   # would make configure fail if this is the last instruction.
23009   $ac_cs_success || { (exit 1); exit 1; }
23010 fi
23011
23012