Convert es.po to UTF-8
[citadel.git] / webcit / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for webcit 6.80.
4 #
5 # Report bugs to <uncensored.citadel.org>.
6 #
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization.  ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22   set -o posix
23 fi
24 DUALCASE=1; export DUALCASE # for MKS sh
25
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28   as_unset=unset
29 else
30   as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
42   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44   LC_TELEPHONE LC_TIME
45 do
46   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47     eval $as_var=C; export $as_var
48   else
49     $as_unset $as_var
50   fi
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55   as_expr=expr
56 else
57   as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61   as_basename=basename
62 else
63   as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70          X"$0" : 'X\(//\)$' \| \
71          X"$0" : 'X\(/\)$' \| \
72          .     : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75           /^X\/\(\/\/\)$/{ s//\1/; q; }
76           /^X\/\(\/\).*/{ s//\1/; q; }
77           s/.*/./; q'`
78
79
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90   echo "#! /bin/sh" >conf$$.sh
91   echo  "exit 0"   >>conf$$.sh
92   chmod +x conf$$.sh
93   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94     PATH_SEPARATOR=';'
95   else
96     PATH_SEPARATOR=:
97   fi
98   rm -f conf$$.sh
99 fi
100
101
102   as_lineno_1=$LINENO
103   as_lineno_2=$LINENO
104   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105   test "x$as_lineno_1" != "x$as_lineno_2" &&
106   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107   # Find who we are.  Look in the path if we contain no path at all
108   # relative or not.
109   case $0 in
110     *[\\/]* ) as_myself=$0 ;;
111     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114   IFS=$as_save_IFS
115   test -z "$as_dir" && as_dir=.
116   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
118
119        ;;
120   esac
121   # We did not find ourselves, most probably we were run as `sh COMMAND'
122   # in which case we are not to be found in the path.
123   if test "x$as_myself" = x; then
124     as_myself=$0
125   fi
126   if test ! -f "$as_myself"; then
127     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128    { (exit 1); exit 1; }; }
129   fi
130   case $CONFIG_SHELL in
131   '')
132     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
135   IFS=$as_save_IFS
136   test -z "$as_dir" && as_dir=.
137   for as_base in sh bash ksh sh5; do
138          case $as_dir in
139          /*)
140            if ("$as_dir/$as_base" -c '
141   as_lineno_1=$LINENO
142   as_lineno_2=$LINENO
143   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144   test "x$as_lineno_1" != "x$as_lineno_2" &&
145   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148              CONFIG_SHELL=$as_dir/$as_base
149              export CONFIG_SHELL
150              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151            fi;;
152          esac
153        done
154 done
155 ;;
156   esac
157
158   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159   # uniformly replaced by the line number.  The first 'sed' inserts a
160   # line-number line before each line; the second 'sed' does the real
161   # work.  The second script uses 'N' to pair each line-number line
162   # with the numbered line, and appends trailing '-' during
163   # substitution so that $LINENO is not a special case at line end.
164   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166   sed '=' <$as_myself |
167     sed '
168       N
169       s,$,-,
170       : loop
171       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172       t loop
173       s,-$,,
174       s,^['$as_cr_digits']*\n,,
175     ' >$as_me.lineno &&
176   chmod +x $as_me.lineno ||
177     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178    { (exit 1); exit 1; }; }
179
180   # Don't try to exec as it changes $[0], causing all sort of problems
181   # (the dirname of $[0] is not the place where we might find the
182   # original and so on.  Autoconf is especially sensible to this).
183   . ./$as_me.lineno
184   # Exit status is that of the last command.
185   exit
186 }
187
188
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190   *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T='      ' ;;
192   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197   as_expr=expr
198 else
199   as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205   # We could just check for DJGPP; but this test a) works b) is more generic
206   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207   if test -f conf$$.exe; then
208     # Don't use ln at all; we don't have any links
209     as_ln_s='cp -p'
210   else
211     as_ln_s='ln -s'
212   fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214   as_ln_s=ln
215 else
216   as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221   as_mkdir_p=:
222 else
223   test -d ./-p && rmdir ./-p
224   as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS="   $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
246
247 # Check that we are running under the correct shell.
248 SHELL=${CONFIG_SHELL-/bin/sh}
249
250 case X$ECHO in
251 X*--fallback-echo)
252   # Remove one level of quotation (which was required for Make).
253   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
254   ;;
255 esac
256
257 echo=${ECHO-echo}
258 if test "X$1" = X--no-reexec; then
259   # Discard the --no-reexec flag, and continue.
260   shift
261 elif test "X$1" = X--fallback-echo; then
262   # Avoid inline document here, it may be left over
263   :
264 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265   # Yippee, $echo works!
266   :
267 else
268   # Restart under the correct shell.
269   exec $SHELL "$0" --no-reexec ${1+"$@"}
270 fi
271
272 if test "X$1" = X--fallback-echo; then
273   # used as fallback echo
274   shift
275   cat <<EOF
276 $*
277 EOF
278   exit 0
279 fi
280
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
282 # if CDPATH is set.
283 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
284
285 if test -z "$ECHO"; then
286 if test "X${echo_test_string+set}" != Xset; then
287 # find a string as large as possible, as long as the shell can cope with it
288   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
291        echo_test_string="`eval $cmd`" &&
292        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293     then
294       break
295     fi
296   done
297 fi
298
299 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301    test "X$echo_testing_string" = "X$echo_test_string"; then
302   :
303 else
304   # The Solaris, AIX, and Digital Unix default echo programs unquote
305   # backslashes.  This makes it impossible to quote backslashes using
306   #   echo "$something" | sed 's/\\/\\\\/g'
307   #
308   # So, first we look for a working echo in the user's PATH.
309
310   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311   for dir in $PATH /usr/ucb; do
312     IFS="$lt_save_ifs"
313     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316        test "X$echo_testing_string" = "X$echo_test_string"; then
317       echo="$dir/echo"
318       break
319     fi
320   done
321   IFS="$lt_save_ifs"
322
323   if test "X$echo" = Xecho; then
324     # We didn't find a better echo, so look for alternatives.
325     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327        test "X$echo_testing_string" = "X$echo_test_string"; then
328       # This shell has a builtin print -r that does the trick.
329       echo='print -r'
330     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331          test "X$CONFIG_SHELL" != X/bin/ksh; then
332       # If we have ksh, try running configure again with it.
333       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334       export ORIGINAL_CONFIG_SHELL
335       CONFIG_SHELL=/bin/ksh
336       export CONFIG_SHELL
337       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338     else
339       # Try using printf.
340       echo='printf %s\n'
341       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343          test "X$echo_testing_string" = "X$echo_test_string"; then
344         # Cool, printf works
345         :
346       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347            test "X$echo_testing_string" = 'X\t' &&
348            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349            test "X$echo_testing_string" = "X$echo_test_string"; then
350         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351         export CONFIG_SHELL
352         SHELL="$CONFIG_SHELL"
353         export SHELL
354         echo="$CONFIG_SHELL $0 --fallback-echo"
355       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356            test "X$echo_testing_string" = 'X\t' &&
357            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358            test "X$echo_testing_string" = "X$echo_test_string"; then
359         echo="$CONFIG_SHELL $0 --fallback-echo"
360       else
361         # maybe with a smaller string...
362         prev=:
363
364         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366           then
367             break
368           fi
369           prev="$cmd"
370         done
371
372         if test "$prev" != 'sed 50q "$0"'; then
373           echo_test_string=`eval $prev`
374           export echo_test_string
375           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376         else
377           # Oops.  We lost completely, so just stick with echo.
378           echo=echo
379         fi
380       fi
381     fi
382   fi
383 fi
384 fi
385
386 # Copy echo and quote the copy suitably for passing to libtool from
387 # the Makefile, instead of quoting the original, which is used later.
388 ECHO=$echo
389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
391 fi
392
393
394
395
396 tagnames=${tagnames+${tagnames},}CXX
397
398 tagnames=${tagnames+${tagnames},}F77
399
400 # Name of the host.
401 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402 # so uname gets run too.
403 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
405 exec 6>&1
406
407 #
408 # Initializations.
409 #
410 ac_default_prefix=/usr/local
411 ac_config_libobj_dir=.
412 cross_compiling=no
413 subdirs=
414 MFLAGS=
415 MAKEFLAGS=
416 SHELL=${CONFIG_SHELL-/bin/sh}
417
418 # Maximum number of lines to put in a shell here document.
419 # This variable seems obsolete.  It should probably be removed, and
420 # only ac_max_sed_lines should be used.
421 : ${ac_max_here_lines=38}
422
423 # Identity of this package.
424 PACKAGE_NAME='webcit'
425 PACKAGE_TARNAME='webcit'
426 PACKAGE_VERSION='6.80'
427 PACKAGE_STRING='webcit 6.80'
428 PACKAGE_BUGREPORT='uncensored.citadel.org'
429
430 # Factoring default headers for most tests.
431 ac_includes_default="\
432 #include <stdio.h>
433 #if HAVE_SYS_TYPES_H
434 # include <sys/types.h>
435 #endif
436 #if HAVE_SYS_STAT_H
437 # include <sys/stat.h>
438 #endif
439 #if STDC_HEADERS
440 # include <stdlib.h>
441 # include <stddef.h>
442 #else
443 # if HAVE_STDLIB_H
444 #  include <stdlib.h>
445 # endif
446 #endif
447 #if HAVE_STRING_H
448 # if !STDC_HEADERS && HAVE_MEMORY_H
449 #  include <memory.h>
450 # endif
451 # include <string.h>
452 #endif
453 #if HAVE_STRINGS_H
454 # include <strings.h>
455 #endif
456 #if HAVE_INTTYPES_H
457 # include <inttypes.h>
458 #else
459 # if HAVE_STDINT_H
460 #  include <stdint.h>
461 # endif
462 #endif
463 #if HAVE_UNISTD_H
464 # include <unistd.h>
465 #endif"
466
467 ac_default_prefix=/usr/local/webcit
468 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL PROG_SUBDIRS SED PTHREAD_DEFS LIBOBJS MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE LIBICONV LTLIBICONV INTLLIBS LIBINTL LTLIBINTL POSUB SETUP_LIBS staticdir editordir LTLIBOBJS'
469 ac_subst_files=''
470
471 # Initialize some variables set by options.
472 ac_init_help=
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
476 cache_file=/dev/null
477 exec_prefix=NONE
478 no_create=
479 no_recursion=
480 prefix=NONE
481 program_prefix=NONE
482 program_suffix=NONE
483 program_transform_name=s,x,x,
484 silent=
485 site=
486 srcdir=
487 verbose=
488 x_includes=NONE
489 x_libraries=NONE
490
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
508
509 ac_prev=
510 for ac_option
511 do
512   # If the previous option needs an argument, assign it.
513   if test -n "$ac_prev"; then
514     eval "$ac_prev=\$ac_option"
515     ac_prev=
516     continue
517   fi
518
519   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
521   # Accept the important Cygnus configure options, so we can diagnose typos.
522
523   case $ac_option in
524
525   -bindir | --bindir | --bindi | --bind | --bin | --bi)
526     ac_prev=bindir ;;
527   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528     bindir=$ac_optarg ;;
529
530   -build | --build | --buil | --bui | --bu)
531     ac_prev=build_alias ;;
532   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533     build_alias=$ac_optarg ;;
534
535   -cache-file | --cache-file | --cache-fil | --cache-fi \
536   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537     ac_prev=cache_file ;;
538   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540     cache_file=$ac_optarg ;;
541
542   --config-cache | -C)
543     cache_file=config.cache ;;
544
545   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546     ac_prev=datadir ;;
547   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548   | --da=*)
549     datadir=$ac_optarg ;;
550
551   -disable-* | --disable-*)
552     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553     # Reject names that are not valid shell variable names.
554     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556    { (exit 1); exit 1; }; }
557     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558     eval "enable_$ac_feature=no" ;;
559
560   -enable-* | --enable-*)
561     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562     # Reject names that are not valid shell variable names.
563     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565    { (exit 1); exit 1; }; }
566     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567     case $ac_option in
568       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569       *) ac_optarg=yes ;;
570     esac
571     eval "enable_$ac_feature='$ac_optarg'" ;;
572
573   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575   | --exec | --exe | --ex)
576     ac_prev=exec_prefix ;;
577   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579   | --exec=* | --exe=* | --ex=*)
580     exec_prefix=$ac_optarg ;;
581
582   -gas | --gas | --ga | --g)
583     # Obsolete; use --with-gas.
584     with_gas=yes ;;
585
586   -help | --help | --hel | --he | -h)
587     ac_init_help=long ;;
588   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589     ac_init_help=recursive ;;
590   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591     ac_init_help=short ;;
592
593   -host | --host | --hos | --ho)
594     ac_prev=host_alias ;;
595   -host=* | --host=* | --hos=* | --ho=*)
596     host_alias=$ac_optarg ;;
597
598   -includedir | --includedir | --includedi | --included | --include \
599   | --includ | --inclu | --incl | --inc)
600     ac_prev=includedir ;;
601   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602   | --includ=* | --inclu=* | --incl=* | --inc=*)
603     includedir=$ac_optarg ;;
604
605   -infodir | --infodir | --infodi | --infod | --info | --inf)
606     ac_prev=infodir ;;
607   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608     infodir=$ac_optarg ;;
609
610   -libdir | --libdir | --libdi | --libd)
611     ac_prev=libdir ;;
612   -libdir=* | --libdir=* | --libdi=* | --libd=*)
613     libdir=$ac_optarg ;;
614
615   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616   | --libexe | --libex | --libe)
617     ac_prev=libexecdir ;;
618   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619   | --libexe=* | --libex=* | --libe=*)
620     libexecdir=$ac_optarg ;;
621
622   -localstatedir | --localstatedir | --localstatedi | --localstated \
623   | --localstate | --localstat | --localsta | --localst \
624   | --locals | --local | --loca | --loc | --lo)
625     ac_prev=localstatedir ;;
626   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629     localstatedir=$ac_optarg ;;
630
631   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632     ac_prev=mandir ;;
633   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634     mandir=$ac_optarg ;;
635
636   -nfp | --nfp | --nf)
637     # Obsolete; use --without-fp.
638     with_fp=no ;;
639
640   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641   | --no-cr | --no-c | -n)
642     no_create=yes ;;
643
644   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646     no_recursion=yes ;;
647
648   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650   | --oldin | --oldi | --old | --ol | --o)
651     ac_prev=oldincludedir ;;
652   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655     oldincludedir=$ac_optarg ;;
656
657   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658     ac_prev=prefix ;;
659   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660     prefix=$ac_optarg ;;
661
662   -program-prefix | --program-prefix | --program-prefi | --program-pref \
663   | --program-pre | --program-pr | --program-p)
664     ac_prev=program_prefix ;;
665   -program-prefix=* | --program-prefix=* | --program-prefi=* \
666   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667     program_prefix=$ac_optarg ;;
668
669   -program-suffix | --program-suffix | --program-suffi | --program-suff \
670   | --program-suf | --program-su | --program-s)
671     ac_prev=program_suffix ;;
672   -program-suffix=* | --program-suffix=* | --program-suffi=* \
673   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674     program_suffix=$ac_optarg ;;
675
676   -program-transform-name | --program-transform-name \
677   | --program-transform-nam | --program-transform-na \
678   | --program-transform-n | --program-transform- \
679   | --program-transform | --program-transfor \
680   | --program-transfo | --program-transf \
681   | --program-trans | --program-tran \
682   | --progr-tra | --program-tr | --program-t)
683     ac_prev=program_transform_name ;;
684   -program-transform-name=* | --program-transform-name=* \
685   | --program-transform-nam=* | --program-transform-na=* \
686   | --program-transform-n=* | --program-transform-=* \
687   | --program-transform=* | --program-transfor=* \
688   | --program-transfo=* | --program-transf=* \
689   | --program-trans=* | --program-tran=* \
690   | --progr-tra=* | --program-tr=* | --program-t=*)
691     program_transform_name=$ac_optarg ;;
692
693   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694   | -silent | --silent | --silen | --sile | --sil)
695     silent=yes ;;
696
697   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698     ac_prev=sbindir ;;
699   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700   | --sbi=* | --sb=*)
701     sbindir=$ac_optarg ;;
702
703   -sharedstatedir | --sharedstatedir | --sharedstatedi \
704   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705   | --sharedst | --shareds | --shared | --share | --shar \
706   | --sha | --sh)
707     ac_prev=sharedstatedir ;;
708   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711   | --sha=* | --sh=*)
712     sharedstatedir=$ac_optarg ;;
713
714   -site | --site | --sit)
715     ac_prev=site ;;
716   -site=* | --site=* | --sit=*)
717     site=$ac_optarg ;;
718
719   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720     ac_prev=srcdir ;;
721   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722     srcdir=$ac_optarg ;;
723
724   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725   | --syscon | --sysco | --sysc | --sys | --sy)
726     ac_prev=sysconfdir ;;
727   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729     sysconfdir=$ac_optarg ;;
730
731   -target | --target | --targe | --targ | --tar | --ta | --t)
732     ac_prev=target_alias ;;
733   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734     target_alias=$ac_optarg ;;
735
736   -v | -verbose | --verbose | --verbos | --verbo | --verb)
737     verbose=yes ;;
738
739   -version | --version | --versio | --versi | --vers | -V)
740     ac_init_version=: ;;
741
742   -with-* | --with-*)
743     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744     # Reject names that are not valid shell variable names.
745     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746       { echo "$as_me: error: invalid package name: $ac_package" >&2
747    { (exit 1); exit 1; }; }
748     ac_package=`echo $ac_package| sed 's/-/_/g'`
749     case $ac_option in
750       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751       *) ac_optarg=yes ;;
752     esac
753     eval "with_$ac_package='$ac_optarg'" ;;
754
755   -without-* | --without-*)
756     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757     # Reject names that are not valid shell variable names.
758     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759       { echo "$as_me: error: invalid package name: $ac_package" >&2
760    { (exit 1); exit 1; }; }
761     ac_package=`echo $ac_package | sed 's/-/_/g'`
762     eval "with_$ac_package=no" ;;
763
764   --x)
765     # Obsolete; use --with-x.
766     with_x=yes ;;
767
768   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769   | --x-incl | --x-inc | --x-in | --x-i)
770     ac_prev=x_includes ;;
771   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773     x_includes=$ac_optarg ;;
774
775   -x-libraries | --x-libraries | --x-librarie | --x-librari \
776   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777     ac_prev=x_libraries ;;
778   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780     x_libraries=$ac_optarg ;;
781
782   -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784    { (exit 1); exit 1; }; }
785     ;;
786
787   *=*)
788     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789     # Reject names that are not valid shell variable names.
790     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792    { (exit 1); exit 1; }; }
793     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794     eval "$ac_envvar='$ac_optarg'"
795     export $ac_envvar ;;
796
797   *)
798     # FIXME: should be removed in autoconf 3.0.
799     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803     ;;
804
805   esac
806 done
807
808 if test -n "$ac_prev"; then
809   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810   { echo "$as_me: error: missing argument to $ac_option" >&2
811    { (exit 1); exit 1; }; }
812 fi
813
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
816 do
817   eval ac_val=$`echo $ac_var`
818   case $ac_val in
819     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821    { (exit 1); exit 1; }; };;
822   esac
823 done
824
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827               localstatedir libdir includedir oldincludedir infodir mandir
828 do
829   eval ac_val=$`echo $ac_var`
830   case $ac_val in
831     [\\/$]* | ?:[\\/]* ) ;;
832     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833    { (exit 1); exit 1; }; };;
834   esac
835 done
836
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
840 build=$build_alias
841 host=$host_alias
842 target=$target_alias
843
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846   if test "x$build_alias" = x; then
847     cross_compiling=maybe
848     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849     If a cross compiler is detected then cross compile mode will be used." >&2
850   elif test "x$build_alias" != "x$host_alias"; then
851     cross_compiling=yes
852   fi
853 fi
854
855 ac_tool_prefix=
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
858 test "$silent" = yes && exec 6>/dev/null
859
860
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863   ac_srcdir_defaulted=yes
864   # Try the directory containing this script, then its parent.
865   ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867          X"$0" : 'X\(//\)[^/]' \| \
868          X"$0" : 'X\(//\)$' \| \
869          X"$0" : 'X\(/\)' \| \
870          .     : '\(.\)' 2>/dev/null ||
871 echo X"$0" |
872     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874           /^X\(\/\/\)$/{ s//\1/; q; }
875           /^X\(\/\).*/{ s//\1/; q; }
876           s/.*/./; q'`
877   srcdir=$ac_confdir
878   if test ! -r $srcdir/$ac_unique_file; then
879     srcdir=..
880   fi
881 else
882   ac_srcdir_defaulted=no
883 fi
884 if test ! -r $srcdir/$ac_unique_file; then
885   if test "$ac_srcdir_defaulted" = yes; then
886     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887    { (exit 1); exit 1; }; }
888   else
889     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890    { (exit 1); exit 1; }; }
891   fi
892 fi
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895    { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CC_set=${CC+set}
910 ac_env_CC_value=$CC
911 ac_cv_env_CC_set=${CC+set}
912 ac_cv_env_CC_value=$CC
913 ac_env_CFLAGS_set=${CFLAGS+set}
914 ac_env_CFLAGS_value=$CFLAGS
915 ac_cv_env_CFLAGS_set=${CFLAGS+set}
916 ac_cv_env_CFLAGS_value=$CFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CPP_set=${CPP+set}
926 ac_env_CPP_value=$CPP
927 ac_cv_env_CPP_set=${CPP+set}
928 ac_cv_env_CPP_value=$CPP
929 ac_env_CXX_set=${CXX+set}
930 ac_env_CXX_value=$CXX
931 ac_cv_env_CXX_set=${CXX+set}
932 ac_cv_env_CXX_value=$CXX
933 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
934 ac_env_CXXFLAGS_value=$CXXFLAGS
935 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
936 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
937 ac_env_CXXCPP_set=${CXXCPP+set}
938 ac_env_CXXCPP_value=$CXXCPP
939 ac_cv_env_CXXCPP_set=${CXXCPP+set}
940 ac_cv_env_CXXCPP_value=$CXXCPP
941 ac_env_F77_set=${F77+set}
942 ac_env_F77_value=$F77
943 ac_cv_env_F77_set=${F77+set}
944 ac_cv_env_F77_value=$F77
945 ac_env_FFLAGS_set=${FFLAGS+set}
946 ac_env_FFLAGS_value=$FFLAGS
947 ac_cv_env_FFLAGS_set=${FFLAGS+set}
948 ac_cv_env_FFLAGS_value=$FFLAGS
949
950 #
951 # Report the --help message.
952 #
953 if test "$ac_init_help" = "long"; then
954   # Omit some internal or obsolete options to make the list less imposing.
955   # This message is too long to be a string in the A/UX 3.1 sh.
956   cat <<_ACEOF
957 \`configure' configures webcit 6.80 to adapt to many kinds of systems.
958
959 Usage: $0 [OPTION]... [VAR=VALUE]...
960
961 To assign environment variables (e.g., CC, CFLAGS...), specify them as
962 VAR=VALUE.  See below for descriptions of some of the useful variables.
963
964 Defaults for the options are specified in brackets.
965
966 Configuration:
967   -h, --help              display this help and exit
968       --help=short        display options specific to this package
969       --help=recursive    display the short help of all the included packages
970   -V, --version           display version information and exit
971   -q, --quiet, --silent   do not print \`checking...' messages
972       --cache-file=FILE   cache test results in FILE [disabled]
973   -C, --config-cache      alias for \`--cache-file=config.cache'
974   -n, --no-create         do not create output files
975       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
976
977 _ACEOF
978
979   cat <<_ACEOF
980 Installation directories:
981   --prefix=PREFIX         install architecture-independent files in PREFIX
982                           [$ac_default_prefix]
983   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
984                           [PREFIX]
985
986 By default, \`make install' will install all the files in
987 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
988 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989 for instance \`--prefix=\$HOME'.
990
991 For better control, use the options below.
992
993 Fine tuning of the installation directories:
994   --bindir=DIR           user executables [EPREFIX/bin]
995   --sbindir=DIR          system admin executables [EPREFIX/sbin]
996   --libexecdir=DIR       program executables [EPREFIX/libexec]
997   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
998   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
999   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1000   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1001   --libdir=DIR           object code libraries [EPREFIX/lib]
1002   --includedir=DIR       C header files [PREFIX/include]
1003   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1004   --infodir=DIR          info documentation [PREFIX/info]
1005   --mandir=DIR           man documentation [PREFIX/man]
1006 _ACEOF
1007
1008   cat <<\_ACEOF
1009
1010 Program names:
1011   --program-prefix=PREFIX            prepend PREFIX to installed program names
1012   --program-suffix=SUFFIX            append SUFFIX to installed program names
1013   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1014
1015 System types:
1016   --build=BUILD     configure for building on BUILD [guessed]
1017   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1018 _ACEOF
1019 fi
1020
1021 if test -n "$ac_init_help"; then
1022   case $ac_init_help in
1023      short | recursive ) echo "Configuration of webcit 6.80:";;
1024    esac
1025   cat <<\_ACEOF
1026
1027 Optional Features:
1028   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1029   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1030   --enable-shared[=PKGS]
1031                           build shared libraries [default=yes]
1032   --enable-static[=PKGS]
1033                           build static libraries [default=yes]
1034   --enable-fast-install[=PKGS]
1035                           optimize for fast installation [default=yes]
1036   --disable-dependency-tracking  speeds up one-time build
1037   --enable-dependency-tracking   do not reject slow dependency extractors
1038   --disable-libtool-lock  avoid locking (might break parallel builds)
1039   --disable-nls           do not use Native Language Support
1040   --disable-rpath         do not hardcode runtime library paths
1041
1042 Optional Packages:
1043   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1044   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1045   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1046   --with-pic              try to use only PIC/non-PIC objects [default=use
1047                           both]
1048   --with-tags[=TAGS]
1049                           include additional configurations [automatic]
1050   --with-newt             use newt window library
1051   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1052   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1053   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1054   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1055   --without-libintl-prefix     don't search for libintl in includedir and libdir
1056   --with-rundir=DIR          where to find the citadel servers sockets (overridable by -h  at runtime.)
1057   --with-staticdir=DIR          where to put datafiles
1058   --with-staticrundir=DIR          where to search datafiles at runtime
1059   --with-editordir=DIR          where to search the editor at runtime
1060
1061 Some influential environment variables:
1062   CC          C compiler command
1063   CFLAGS      C compiler flags
1064   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1065               nonstandard directory <lib dir>
1066   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1067               headers in a nonstandard directory <include dir>
1068   CPP         C preprocessor
1069   CXX         C++ compiler command
1070   CXXFLAGS    C++ compiler flags
1071   CXXCPP      C++ preprocessor
1072   F77         Fortran 77 compiler command
1073   FFLAGS      Fortran 77 compiler flags
1074
1075 Use these variables to override the choices made by `configure' or to help
1076 it to find libraries and programs with nonstandard names/locations.
1077
1078 Report bugs to <uncensored.citadel.org>.
1079 _ACEOF
1080 fi
1081
1082 if test "$ac_init_help" = "recursive"; then
1083   # If there are subdirs, report their specific --help.
1084   ac_popdir=`pwd`
1085   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1086     test -d $ac_dir || continue
1087     ac_builddir=.
1088
1089 if test "$ac_dir" != .; then
1090   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1091   # A "../" for each directory in $ac_dir_suffix.
1092   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1093 else
1094   ac_dir_suffix= ac_top_builddir=
1095 fi
1096
1097 case $srcdir in
1098   .)  # No --srcdir option.  We are building in place.
1099     ac_srcdir=.
1100     if test -z "$ac_top_builddir"; then
1101        ac_top_srcdir=.
1102     else
1103        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1104     fi ;;
1105   [\\/]* | ?:[\\/]* )  # Absolute path.
1106     ac_srcdir=$srcdir$ac_dir_suffix;
1107     ac_top_srcdir=$srcdir ;;
1108   *) # Relative path.
1109     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1110     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1111 esac
1112
1113 # Do not use `cd foo && pwd` to compute absolute paths, because
1114 # the directories may not exist.
1115 case `pwd` in
1116 .) ac_abs_builddir="$ac_dir";;
1117 *)
1118   case "$ac_dir" in
1119   .) ac_abs_builddir=`pwd`;;
1120   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1121   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1122   esac;;
1123 esac
1124 case $ac_abs_builddir in
1125 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1126 *)
1127   case ${ac_top_builddir}. in
1128   .) ac_abs_top_builddir=$ac_abs_builddir;;
1129   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1130   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1131   esac;;
1132 esac
1133 case $ac_abs_builddir in
1134 .) ac_abs_srcdir=$ac_srcdir;;
1135 *)
1136   case $ac_srcdir in
1137   .) ac_abs_srcdir=$ac_abs_builddir;;
1138   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1139   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1140   esac;;
1141 esac
1142 case $ac_abs_builddir in
1143 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1144 *)
1145   case $ac_top_srcdir in
1146   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1147   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1148   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1149   esac;;
1150 esac
1151
1152     cd $ac_dir
1153     # Check for guested configure; otherwise get Cygnus style configure.
1154     if test -f $ac_srcdir/configure.gnu; then
1155       echo
1156       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1157     elif test -f $ac_srcdir/configure; then
1158       echo
1159       $SHELL $ac_srcdir/configure  --help=recursive
1160     elif test -f $ac_srcdir/configure.ac ||
1161            test -f $ac_srcdir/configure.in; then
1162       echo
1163       $ac_configure --help
1164     else
1165       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1166     fi
1167     cd $ac_popdir
1168   done
1169 fi
1170
1171 test -n "$ac_init_help" && exit 0
1172 if $ac_init_version; then
1173   cat <<\_ACEOF
1174 webcit configure 6.80
1175 generated by GNU Autoconf 2.59
1176
1177 Copyright (C) 2003 Free Software Foundation, Inc.
1178 This configure script is free software; the Free Software Foundation
1179 gives unlimited permission to copy, distribute and modify it.
1180 _ACEOF
1181   exit 0
1182 fi
1183 exec 5>config.log
1184 cat >&5 <<_ACEOF
1185 This file contains any messages produced by compilers while
1186 running configure, to aid debugging if configure makes a mistake.
1187
1188 It was created by webcit $as_me 6.80, which was
1189 generated by GNU Autoconf 2.59.  Invocation command line was
1190
1191   $ $0 $@
1192
1193 _ACEOF
1194 {
1195 cat <<_ASUNAME
1196 ## --------- ##
1197 ## Platform. ##
1198 ## --------- ##
1199
1200 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1201 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1202 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1203 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1204 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1205
1206 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1207 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1208
1209 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1210 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1211 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1212 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1213 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1214 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1215 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1216
1217 _ASUNAME
1218
1219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1220 for as_dir in $PATH
1221 do
1222   IFS=$as_save_IFS
1223   test -z "$as_dir" && as_dir=.
1224   echo "PATH: $as_dir"
1225 done
1226
1227 } >&5
1228
1229 cat >&5 <<_ACEOF
1230
1231
1232 ## ----------- ##
1233 ## Core tests. ##
1234 ## ----------- ##
1235
1236 _ACEOF
1237
1238
1239 # Keep a trace of the command line.
1240 # Strip out --no-create and --no-recursion so they do not pile up.
1241 # Strip out --silent because we don't want to record it for future runs.
1242 # Also quote any args containing shell meta-characters.
1243 # Make two passes to allow for proper duplicate-argument suppression.
1244 ac_configure_args=
1245 ac_configure_args0=
1246 ac_configure_args1=
1247 ac_sep=
1248 ac_must_keep_next=false
1249 for ac_pass in 1 2
1250 do
1251   for ac_arg
1252   do
1253     case $ac_arg in
1254     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1255     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1256     | -silent | --silent | --silen | --sile | --sil)
1257       continue ;;
1258     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1259       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1260     esac
1261     case $ac_pass in
1262     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1263     2)
1264       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1265       if test $ac_must_keep_next = true; then
1266         ac_must_keep_next=false # Got value, back to normal.
1267       else
1268         case $ac_arg in
1269           *=* | --config-cache | -C | -disable-* | --disable-* \
1270           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1271           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1272           | -with-* | --with-* | -without-* | --without-* | --x)
1273             case "$ac_configure_args0 " in
1274               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1275             esac
1276             ;;
1277           -* ) ac_must_keep_next=true ;;
1278         esac
1279       fi
1280       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1281       # Get rid of the leading space.
1282       ac_sep=" "
1283       ;;
1284     esac
1285   done
1286 done
1287 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1288 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1289
1290 # When interrupted or exit'd, cleanup temporary files, and complete
1291 # config.log.  We remove comments because anyway the quotes in there
1292 # would cause problems or look ugly.
1293 # WARNING: Be sure not to use single quotes in there, as some shells,
1294 # such as our DU 5.0 friend, will then `close' the trap.
1295 trap 'exit_status=$?
1296   # Save into config.log some information that might help in debugging.
1297   {
1298     echo
1299
1300     cat <<\_ASBOX
1301 ## ---------------- ##
1302 ## Cache variables. ##
1303 ## ---------------- ##
1304 _ASBOX
1305     echo
1306     # The following way of writing the cache mishandles newlines in values,
1307 {
1308   (set) 2>&1 |
1309     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1310     *ac_space=\ *)
1311       sed -n \
1312         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1313           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1314       ;;
1315     *)
1316       sed -n \
1317         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1318       ;;
1319     esac;
1320 }
1321     echo
1322
1323     cat <<\_ASBOX
1324 ## ----------------- ##
1325 ## Output variables. ##
1326 ## ----------------- ##
1327 _ASBOX
1328     echo
1329     for ac_var in $ac_subst_vars
1330     do
1331       eval ac_val=$`echo $ac_var`
1332       echo "$ac_var='"'"'$ac_val'"'"'"
1333     done | sort
1334     echo
1335
1336     if test -n "$ac_subst_files"; then
1337       cat <<\_ASBOX
1338 ## ------------- ##
1339 ## Output files. ##
1340 ## ------------- ##
1341 _ASBOX
1342       echo
1343       for ac_var in $ac_subst_files
1344       do
1345         eval ac_val=$`echo $ac_var`
1346         echo "$ac_var='"'"'$ac_val'"'"'"
1347       done | sort
1348       echo
1349     fi
1350
1351     if test -s confdefs.h; then
1352       cat <<\_ASBOX
1353 ## ----------- ##
1354 ## confdefs.h. ##
1355 ## ----------- ##
1356 _ASBOX
1357       echo
1358       sed "/^$/d" confdefs.h | sort
1359       echo
1360     fi
1361     test "$ac_signal" != 0 &&
1362       echo "$as_me: caught signal $ac_signal"
1363     echo "$as_me: exit $exit_status"
1364   } >&5
1365   rm -f core *.core &&
1366   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1367     exit $exit_status
1368      ' 0
1369 for ac_signal in 1 2 13 15; do
1370   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1371 done
1372 ac_signal=0
1373
1374 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1375 rm -rf conftest* confdefs.h
1376 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1377 echo >confdefs.h
1378
1379 # Predefined preprocessor variables.
1380
1381 cat >>confdefs.h <<_ACEOF
1382 #define PACKAGE_NAME "$PACKAGE_NAME"
1383 _ACEOF
1384
1385
1386 cat >>confdefs.h <<_ACEOF
1387 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1388 _ACEOF
1389
1390
1391 cat >>confdefs.h <<_ACEOF
1392 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1393 _ACEOF
1394
1395
1396 cat >>confdefs.h <<_ACEOF
1397 #define PACKAGE_STRING "$PACKAGE_STRING"
1398 _ACEOF
1399
1400
1401 cat >>confdefs.h <<_ACEOF
1402 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1403 _ACEOF
1404
1405
1406 # Let the site file select an alternate cache file if it wants to.
1407 # Prefer explicitly selected file to automatically selected ones.
1408 if test -z "$CONFIG_SITE"; then
1409   if test "x$prefix" != xNONE; then
1410     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1411   else
1412     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1413   fi
1414 fi
1415 for ac_site_file in $CONFIG_SITE; do
1416   if test -r "$ac_site_file"; then
1417     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1418 echo "$as_me: loading site script $ac_site_file" >&6;}
1419     sed 's/^/| /' "$ac_site_file" >&5
1420     . "$ac_site_file"
1421   fi
1422 done
1423
1424 if test -r "$cache_file"; then
1425   # Some versions of bash will fail to source /dev/null (special
1426   # files actually), so we avoid doing that.
1427   if test -f "$cache_file"; then
1428     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1429 echo "$as_me: loading cache $cache_file" >&6;}
1430     case $cache_file in
1431       [\\/]* | ?:[\\/]* ) . $cache_file;;
1432       *)                      . ./$cache_file;;
1433     esac
1434   fi
1435 else
1436   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1437 echo "$as_me: creating cache $cache_file" >&6;}
1438   >$cache_file
1439 fi
1440
1441 # Check that the precious variables saved in the cache have kept the same
1442 # value.
1443 ac_cache_corrupted=false
1444 for ac_var in `(set) 2>&1 |
1445                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1446   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1447   eval ac_new_set=\$ac_env_${ac_var}_set
1448   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1449   eval ac_new_val="\$ac_env_${ac_var}_value"
1450   case $ac_old_set,$ac_new_set in
1451     set,)
1452       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1453 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1454       ac_cache_corrupted=: ;;
1455     ,set)
1456       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1457 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1458       ac_cache_corrupted=: ;;
1459     ,);;
1460     *)
1461       if test "x$ac_old_val" != "x$ac_new_val"; then
1462         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1463 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1464         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1465 echo "$as_me:   former value:  $ac_old_val" >&2;}
1466         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1467 echo "$as_me:   current value: $ac_new_val" >&2;}
1468         ac_cache_corrupted=:
1469       fi;;
1470   esac
1471   # Pass precious variables to config.status.
1472   if test "$ac_new_set" = set; then
1473     case $ac_new_val in
1474     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1475       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1476     *) ac_arg=$ac_var=$ac_new_val ;;
1477     esac
1478     case " $ac_configure_args " in
1479       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1480       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1481     esac
1482   fi
1483 done
1484 if $ac_cache_corrupted; then
1485   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1486 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1487   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1488 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1489    { (exit 1); exit 1; }; }
1490 fi
1491
1492 ac_ext=c
1493 ac_cpp='$CPP $CPPFLAGS'
1494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525 cat >>confdefs.h <<\_ACEOF
1526 #define _GNU_SOURCE 1
1527 _ACEOF
1528
1529
1530 am__api_version="1.9"
1531 ac_aux_dir=
1532 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1533   if test -f $ac_dir/install-sh; then
1534     ac_aux_dir=$ac_dir
1535     ac_install_sh="$ac_aux_dir/install-sh -c"
1536     break
1537   elif test -f $ac_dir/install.sh; then
1538     ac_aux_dir=$ac_dir
1539     ac_install_sh="$ac_aux_dir/install.sh -c"
1540     break
1541   elif test -f $ac_dir/shtool; then
1542     ac_aux_dir=$ac_dir
1543     ac_install_sh="$ac_aux_dir/shtool install -c"
1544     break
1545   fi
1546 done
1547 if test -z "$ac_aux_dir"; then
1548   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1549 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1550    { (exit 1); exit 1; }; }
1551 fi
1552 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1553 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1554 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1555
1556 # Find a good install program.  We prefer a C program (faster),
1557 # so one script is as good as another.  But avoid the broken or
1558 # incompatible versions:
1559 # SysV /etc/install, /usr/sbin/install
1560 # SunOS /usr/etc/install
1561 # IRIX /sbin/install
1562 # AIX /bin/install
1563 # AmigaOS /C/install, which installs bootblocks on floppy discs
1564 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1565 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1566 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1567 # OS/2's system install, which has a completely different semantic
1568 # ./install, which can be erroneously created by make from ./install.sh.
1569 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1570 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1571 if test -z "$INSTALL"; then
1572 if test "${ac_cv_path_install+set}" = set; then
1573   echo $ECHO_N "(cached) $ECHO_C" >&6
1574 else
1575   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1576 for as_dir in $PATH
1577 do
1578   IFS=$as_save_IFS
1579   test -z "$as_dir" && as_dir=.
1580   # Account for people who put trailing slashes in PATH elements.
1581 case $as_dir/ in
1582   ./ | .// | /cC/* | \
1583   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1584   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1585   /usr/ucb/* ) ;;
1586   *)
1587     # OSF1 and SCO ODT 3.0 have their own names for install.
1588     # Don't use installbsd from OSF since it installs stuff as root
1589     # by default.
1590     for ac_prog in ginstall scoinst install; do
1591       for ac_exec_ext in '' $ac_executable_extensions; do
1592         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1593           if test $ac_prog = install &&
1594             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1595             # AIX install.  It has an incompatible calling convention.
1596             :
1597           elif test $ac_prog = install &&
1598             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1599             # program-specific install script used by HP pwplus--don't use.
1600             :
1601           else
1602             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1603             break 3
1604           fi
1605         fi
1606       done
1607     done
1608     ;;
1609 esac
1610 done
1611
1612
1613 fi
1614   if test "${ac_cv_path_install+set}" = set; then
1615     INSTALL=$ac_cv_path_install
1616   else
1617     # As a last resort, use the slow shell script.  We don't cache a
1618     # path for INSTALL within a source directory, because that will
1619     # break other packages using the cache if that directory is
1620     # removed, or if the path is relative.
1621     INSTALL=$ac_install_sh
1622   fi
1623 fi
1624 echo "$as_me:$LINENO: result: $INSTALL" >&5
1625 echo "${ECHO_T}$INSTALL" >&6
1626
1627 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1628 # It thinks the first close brace ends the variable substitution.
1629 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1630
1631 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1632
1633 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1634
1635 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1636 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1637 # Just in case
1638 sleep 1
1639 echo timestamp > conftest.file
1640 # Do `set' in a subshell so we don't clobber the current shell's
1641 # arguments.  Must try -L first in case configure is actually a
1642 # symlink; some systems play weird games with the mod time of symlinks
1643 # (eg FreeBSD returns the mod time of the symlink's containing
1644 # directory).
1645 if (
1646    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1647    if test "$*" = "X"; then
1648       # -L didn't work.
1649       set X `ls -t $srcdir/configure conftest.file`
1650    fi
1651    rm -f conftest.file
1652    if test "$*" != "X $srcdir/configure conftest.file" \
1653       && test "$*" != "X conftest.file $srcdir/configure"; then
1654
1655       # If neither matched, then we have a broken ls.  This can happen
1656       # if, for instance, CONFIG_SHELL is bash and it inherits a
1657       # broken ls alias from the environment.  This has actually
1658       # happened.  Such a system could not be considered "sane".
1659       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1660 alias in your environment" >&5
1661 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1662 alias in your environment" >&2;}
1663    { (exit 1); exit 1; }; }
1664    fi
1665
1666    test "$2" = conftest.file
1667    )
1668 then
1669    # Ok.
1670    :
1671 else
1672    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1673 Check your system clock" >&5
1674 echo "$as_me: error: newly created file is older than distributed files!
1675 Check your system clock" >&2;}
1676    { (exit 1); exit 1; }; }
1677 fi
1678 echo "$as_me:$LINENO: result: yes" >&5
1679 echo "${ECHO_T}yes" >&6
1680 test "$program_prefix" != NONE &&
1681   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1682 # Use a double $ so make ignores it.
1683 test "$program_suffix" != NONE &&
1684   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1685 # Double any \ or $.  echo might interpret backslashes.
1686 # By default was `s,x,x', remove it if useless.
1687 cat <<\_ACEOF >conftest.sed
1688 s/[\\$]/&&/g;s/;s,x,x,$//
1689 _ACEOF
1690 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1691 rm conftest.sed
1692
1693 # expand $ac_aux_dir to an absolute path
1694 am_aux_dir=`cd $ac_aux_dir && pwd`
1695
1696 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1697 # Use eval to expand $SHELL
1698 if eval "$MISSING --run true"; then
1699   am_missing_run="$MISSING --run "
1700 else
1701   am_missing_run=
1702   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1703 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1704 fi
1705
1706 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1707   # We used to keeping the `.' as first argument, in order to
1708   # allow $(mkdir_p) to be used without argument.  As in
1709   #   $(mkdir_p) $(somedir)
1710   # where $(somedir) is conditionally defined.  However this is wrong
1711   # for two reasons:
1712   #  1. if the package is installed by a user who cannot write `.'
1713   #     make install will fail,
1714   #  2. the above comment should most certainly read
1715   #     $(mkdir_p) $(DESTDIR)$(somedir)
1716   #     so it does not work when $(somedir) is undefined and
1717   #     $(DESTDIR) is not.
1718   #  To support the latter case, we have to write
1719   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1720   #  so the `.' trick is pointless.
1721   mkdir_p='mkdir -p --'
1722 else
1723   # On NextStep and OpenStep, the `mkdir' command does not
1724   # recognize any option.  It will interpret all options as
1725   # directories to create, and then abort because `.' already
1726   # exists.
1727   for d in ./-p ./--version;
1728   do
1729     test -d $d && rmdir $d
1730   done
1731   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1732   if test -f "$ac_aux_dir/mkinstalldirs"; then
1733     mkdir_p='$(mkinstalldirs)'
1734   else
1735     mkdir_p='$(install_sh) -d'
1736   fi
1737 fi
1738
1739 for ac_prog in gawk mawk nawk awk
1740 do
1741   # Extract the first word of "$ac_prog", so it can be a program name with args.
1742 set dummy $ac_prog; ac_word=$2
1743 echo "$as_me:$LINENO: checking for $ac_word" >&5
1744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1745 if test "${ac_cv_prog_AWK+set}" = set; then
1746   echo $ECHO_N "(cached) $ECHO_C" >&6
1747 else
1748   if test -n "$AWK"; then
1749   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1750 else
1751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1752 for as_dir in $PATH
1753 do
1754   IFS=$as_save_IFS
1755   test -z "$as_dir" && as_dir=.
1756   for ac_exec_ext in '' $ac_executable_extensions; do
1757   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1758     ac_cv_prog_AWK="$ac_prog"
1759     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1760     break 2
1761   fi
1762 done
1763 done
1764
1765 fi
1766 fi
1767 AWK=$ac_cv_prog_AWK
1768 if test -n "$AWK"; then
1769   echo "$as_me:$LINENO: result: $AWK" >&5
1770 echo "${ECHO_T}$AWK" >&6
1771 else
1772   echo "$as_me:$LINENO: result: no" >&5
1773 echo "${ECHO_T}no" >&6
1774 fi
1775
1776   test -n "$AWK" && break
1777 done
1778
1779 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1780 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1781 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1782 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1783   echo $ECHO_N "(cached) $ECHO_C" >&6
1784 else
1785   cat >conftest.make <<\_ACEOF
1786 all:
1787         @echo 'ac_maketemp="$(MAKE)"'
1788 _ACEOF
1789 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1790 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1791 if test -n "$ac_maketemp"; then
1792   eval ac_cv_prog_make_${ac_make}_set=yes
1793 else
1794   eval ac_cv_prog_make_${ac_make}_set=no
1795 fi
1796 rm -f conftest.make
1797 fi
1798 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1799   echo "$as_me:$LINENO: result: yes" >&5
1800 echo "${ECHO_T}yes" >&6
1801   SET_MAKE=
1802 else
1803   echo "$as_me:$LINENO: result: no" >&5
1804 echo "${ECHO_T}no" >&6
1805   SET_MAKE="MAKE=${MAKE-make}"
1806 fi
1807
1808 rm -rf .tst 2>/dev/null
1809 mkdir .tst 2>/dev/null
1810 if test -d .tst; then
1811   am__leading_dot=.
1812 else
1813   am__leading_dot=_
1814 fi
1815 rmdir .tst 2>/dev/null
1816
1817 # test to see if srcdir already configured
1818 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1819    test -f $srcdir/config.status; then
1820   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1821 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1822    { (exit 1); exit 1; }; }
1823 fi
1824
1825 # test whether we have cygpath
1826 if test -z "$CYGPATH_W"; then
1827   if (cygpath --version) >/dev/null 2>/dev/null; then
1828     CYGPATH_W='cygpath -w'
1829   else
1830     CYGPATH_W=echo
1831   fi
1832 fi
1833
1834
1835 # Define the identity of the package.
1836  PACKAGE=webcit
1837  VERSION=6.72
1838
1839
1840 cat >>confdefs.h <<_ACEOF
1841 #define PACKAGE "$PACKAGE"
1842 _ACEOF
1843
1844
1845 cat >>confdefs.h <<_ACEOF
1846 #define VERSION "$VERSION"
1847 _ACEOF
1848
1849 # Some tools Automake needs.
1850
1851 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1852
1853
1854 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1855
1856
1857 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1858
1859
1860 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1861
1862
1863 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1864
1865 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1866
1867 # Installed binaries are usually stripped using `strip' when the user
1868 # run `make install-strip'.  However `strip' might not be the right
1869 # tool to use in cross-compilation environments, therefore Automake
1870 # will honor the `STRIP' environment variable to overrule this program.
1871 if test "$cross_compiling" != no; then
1872   if test -n "$ac_tool_prefix"; then
1873   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1874 set dummy ${ac_tool_prefix}strip; ac_word=$2
1875 echo "$as_me:$LINENO: checking for $ac_word" >&5
1876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1877 if test "${ac_cv_prog_STRIP+set}" = set; then
1878   echo $ECHO_N "(cached) $ECHO_C" >&6
1879 else
1880   if test -n "$STRIP"; then
1881   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1882 else
1883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1884 for as_dir in $PATH
1885 do
1886   IFS=$as_save_IFS
1887   test -z "$as_dir" && as_dir=.
1888   for ac_exec_ext in '' $ac_executable_extensions; do
1889   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1890     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1891     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1892     break 2
1893   fi
1894 done
1895 done
1896
1897 fi
1898 fi
1899 STRIP=$ac_cv_prog_STRIP
1900 if test -n "$STRIP"; then
1901   echo "$as_me:$LINENO: result: $STRIP" >&5
1902 echo "${ECHO_T}$STRIP" >&6
1903 else
1904   echo "$as_me:$LINENO: result: no" >&5
1905 echo "${ECHO_T}no" >&6
1906 fi
1907
1908 fi
1909 if test -z "$ac_cv_prog_STRIP"; then
1910   ac_ct_STRIP=$STRIP
1911   # Extract the first word of "strip", so it can be a program name with args.
1912 set dummy strip; ac_word=$2
1913 echo "$as_me:$LINENO: checking for $ac_word" >&5
1914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1915 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1916   echo $ECHO_N "(cached) $ECHO_C" >&6
1917 else
1918   if test -n "$ac_ct_STRIP"; then
1919   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1920 else
1921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1922 for as_dir in $PATH
1923 do
1924   IFS=$as_save_IFS
1925   test -z "$as_dir" && as_dir=.
1926   for ac_exec_ext in '' $ac_executable_extensions; do
1927   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1928     ac_cv_prog_ac_ct_STRIP="strip"
1929     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1930     break 2
1931   fi
1932 done
1933 done
1934
1935   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1936 fi
1937 fi
1938 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1939 if test -n "$ac_ct_STRIP"; then
1940   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1941 echo "${ECHO_T}$ac_ct_STRIP" >&6
1942 else
1943   echo "$as_me:$LINENO: result: no" >&5
1944 echo "${ECHO_T}no" >&6
1945 fi
1946
1947   STRIP=$ac_ct_STRIP
1948 else
1949   STRIP="$ac_cv_prog_STRIP"
1950 fi
1951
1952 fi
1953 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1954
1955 # We need awk for the "check" target.  The system "awk" is bad on
1956 # some platforms.
1957 # Always define AMTAR for backward compatibility.
1958
1959 AMTAR=${AMTAR-"${am_missing_run}tar"}
1960
1961 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1962
1963
1964
1965
1966
1967           ac_config_headers="$ac_config_headers config.h"
1968
1969 # Check whether --enable-shared or --disable-shared was given.
1970 if test "${enable_shared+set}" = set; then
1971   enableval="$enable_shared"
1972   p=${PACKAGE-default}
1973     case $enableval in
1974     yes) enable_shared=yes ;;
1975     no) enable_shared=no ;;
1976     *)
1977       enable_shared=no
1978       # Look at the argument we got.  We use all the common list separators.
1979       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1980       for pkg in $enableval; do
1981         IFS="$lt_save_ifs"
1982         if test "X$pkg" = "X$p"; then
1983           enable_shared=yes
1984         fi
1985       done
1986       IFS="$lt_save_ifs"
1987       ;;
1988     esac
1989 else
1990   enable_shared=yes
1991 fi;
1992
1993 # Check whether --enable-static or --disable-static was given.
1994 if test "${enable_static+set}" = set; then
1995   enableval="$enable_static"
1996   p=${PACKAGE-default}
1997     case $enableval in
1998     yes) enable_static=yes ;;
1999     no) enable_static=no ;;
2000     *)
2001      enable_static=no
2002       # Look at the argument we got.  We use all the common list separators.
2003       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2004       for pkg in $enableval; do
2005         IFS="$lt_save_ifs"
2006         if test "X$pkg" = "X$p"; then
2007           enable_static=yes
2008         fi
2009       done
2010       IFS="$lt_save_ifs"
2011       ;;
2012     esac
2013 else
2014   enable_static=yes
2015 fi;
2016
2017 # Check whether --enable-fast-install or --disable-fast-install was given.
2018 if test "${enable_fast_install+set}" = set; then
2019   enableval="$enable_fast_install"
2020   p=${PACKAGE-default}
2021     case $enableval in
2022     yes) enable_fast_install=yes ;;
2023     no) enable_fast_install=no ;;
2024     *)
2025       enable_fast_install=no
2026       # Look at the argument we got.  We use all the common list separators.
2027       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2028       for pkg in $enableval; do
2029         IFS="$lt_save_ifs"
2030         if test "X$pkg" = "X$p"; then
2031           enable_fast_install=yes
2032         fi
2033       done
2034       IFS="$lt_save_ifs"
2035       ;;
2036     esac
2037 else
2038   enable_fast_install=yes
2039 fi;
2040
2041 # Make sure we can run config.sub.
2042 $ac_config_sub sun4 >/dev/null 2>&1 ||
2043   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2044 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2045    { (exit 1); exit 1; }; }
2046
2047 echo "$as_me:$LINENO: checking build system type" >&5
2048 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2049 if test "${ac_cv_build+set}" = set; then
2050   echo $ECHO_N "(cached) $ECHO_C" >&6
2051 else
2052   ac_cv_build_alias=$build_alias
2053 test -z "$ac_cv_build_alias" &&
2054   ac_cv_build_alias=`$ac_config_guess`
2055 test -z "$ac_cv_build_alias" &&
2056   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2057 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2058    { (exit 1); exit 1; }; }
2059 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2060   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2061 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2062    { (exit 1); exit 1; }; }
2063
2064 fi
2065 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2066 echo "${ECHO_T}$ac_cv_build" >&6
2067 build=$ac_cv_build
2068 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2069 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2070 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2071
2072
2073 echo "$as_me:$LINENO: checking host system type" >&5
2074 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2075 if test "${ac_cv_host+set}" = set; then
2076   echo $ECHO_N "(cached) $ECHO_C" >&6
2077 else
2078   ac_cv_host_alias=$host_alias
2079 test -z "$ac_cv_host_alias" &&
2080   ac_cv_host_alias=$ac_cv_build_alias
2081 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2082   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2083 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2084    { (exit 1); exit 1; }; }
2085
2086 fi
2087 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2088 echo "${ECHO_T}$ac_cv_host" >&6
2089 host=$ac_cv_host
2090 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2091 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2092 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2093
2094
2095 DEPDIR="${am__leading_dot}deps"
2096
2097           ac_config_commands="$ac_config_commands depfiles"
2098
2099
2100 am_make=${MAKE-make}
2101 cat > confinc << 'END'
2102 am__doit:
2103         @echo done
2104 .PHONY: am__doit
2105 END
2106 # If we don't find an include directive, just comment out the code.
2107 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2108 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2109 am__include="#"
2110 am__quote=
2111 _am_result=none
2112 # First try GNU make style include.
2113 echo "include confinc" > confmf
2114 # We grep out `Entering directory' and `Leaving directory'
2115 # messages which can occur if `w' ends up in MAKEFLAGS.
2116 # In particular we don't look at `^make:' because GNU make might
2117 # be invoked under some other name (usually "gmake"), in which
2118 # case it prints its new name instead of `make'.
2119 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2120    am__include=include
2121    am__quote=
2122    _am_result=GNU
2123 fi
2124 # Now try BSD make style include.
2125 if test "$am__include" = "#"; then
2126    echo '.include "confinc"' > confmf
2127    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2128       am__include=.include
2129       am__quote="\""
2130       _am_result=BSD
2131    fi
2132 fi
2133
2134
2135 echo "$as_me:$LINENO: result: $_am_result" >&5
2136 echo "${ECHO_T}$_am_result" >&6
2137 rm -f confinc confmf
2138
2139 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2140 if test "${enable_dependency_tracking+set}" = set; then
2141   enableval="$enable_dependency_tracking"
2142
2143 fi;
2144 if test "x$enable_dependency_tracking" != xno; then
2145   am_depcomp="$ac_aux_dir/depcomp"
2146   AMDEPBACKSLASH='\'
2147 fi
2148
2149
2150 if test "x$enable_dependency_tracking" != xno; then
2151   AMDEP_TRUE=
2152   AMDEP_FALSE='#'
2153 else
2154   AMDEP_TRUE='#'
2155   AMDEP_FALSE=
2156 fi
2157
2158
2159
2160 ac_ext=c
2161 ac_cpp='$CPP $CPPFLAGS'
2162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2165 if test -n "$ac_tool_prefix"; then
2166   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2167 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2168 echo "$as_me:$LINENO: checking for $ac_word" >&5
2169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2170 if test "${ac_cv_prog_CC+set}" = set; then
2171   echo $ECHO_N "(cached) $ECHO_C" >&6
2172 else
2173   if test -n "$CC"; then
2174   ac_cv_prog_CC="$CC" # Let the user override the test.
2175 else
2176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2177 for as_dir in $PATH
2178 do
2179   IFS=$as_save_IFS
2180   test -z "$as_dir" && as_dir=.
2181   for ac_exec_ext in '' $ac_executable_extensions; do
2182   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2183     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2184     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2185     break 2
2186   fi
2187 done
2188 done
2189
2190 fi
2191 fi
2192 CC=$ac_cv_prog_CC
2193 if test -n "$CC"; then
2194   echo "$as_me:$LINENO: result: $CC" >&5
2195 echo "${ECHO_T}$CC" >&6
2196 else
2197   echo "$as_me:$LINENO: result: no" >&5
2198 echo "${ECHO_T}no" >&6
2199 fi
2200
2201 fi
2202 if test -z "$ac_cv_prog_CC"; then
2203   ac_ct_CC=$CC
2204   # Extract the first word of "gcc", so it can be a program name with args.
2205 set dummy gcc; ac_word=$2
2206 echo "$as_me:$LINENO: checking for $ac_word" >&5
2207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2208 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2209   echo $ECHO_N "(cached) $ECHO_C" >&6
2210 else
2211   if test -n "$ac_ct_CC"; then
2212   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2213 else
2214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2215 for as_dir in $PATH
2216 do
2217   IFS=$as_save_IFS
2218   test -z "$as_dir" && as_dir=.
2219   for ac_exec_ext in '' $ac_executable_extensions; do
2220   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2221     ac_cv_prog_ac_ct_CC="gcc"
2222     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2223     break 2
2224   fi
2225 done
2226 done
2227
2228 fi
2229 fi
2230 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2231 if test -n "$ac_ct_CC"; then
2232   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2233 echo "${ECHO_T}$ac_ct_CC" >&6
2234 else
2235   echo "$as_me:$LINENO: result: no" >&5
2236 echo "${ECHO_T}no" >&6
2237 fi
2238
2239   CC=$ac_ct_CC
2240 else
2241   CC="$ac_cv_prog_CC"
2242 fi
2243
2244 if test -z "$CC"; then
2245   if test -n "$ac_tool_prefix"; then
2246   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2247 set dummy ${ac_tool_prefix}cc; ac_word=$2
2248 echo "$as_me:$LINENO: checking for $ac_word" >&5
2249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2250 if test "${ac_cv_prog_CC+set}" = set; then
2251   echo $ECHO_N "(cached) $ECHO_C" >&6
2252 else
2253   if test -n "$CC"; then
2254   ac_cv_prog_CC="$CC" # Let the user override the test.
2255 else
2256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2257 for as_dir in $PATH
2258 do
2259   IFS=$as_save_IFS
2260   test -z "$as_dir" && as_dir=.
2261   for ac_exec_ext in '' $ac_executable_extensions; do
2262   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2263     ac_cv_prog_CC="${ac_tool_prefix}cc"
2264     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2265     break 2
2266   fi
2267 done
2268 done
2269
2270 fi
2271 fi
2272 CC=$ac_cv_prog_CC
2273 if test -n "$CC"; then
2274   echo "$as_me:$LINENO: result: $CC" >&5
2275 echo "${ECHO_T}$CC" >&6
2276 else
2277   echo "$as_me:$LINENO: result: no" >&5
2278 echo "${ECHO_T}no" >&6
2279 fi
2280
2281 fi
2282 if test -z "$ac_cv_prog_CC"; then
2283   ac_ct_CC=$CC
2284   # Extract the first word of "cc", so it can be a program name with args.
2285 set dummy cc; ac_word=$2
2286 echo "$as_me:$LINENO: checking for $ac_word" >&5
2287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2288 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2289   echo $ECHO_N "(cached) $ECHO_C" >&6
2290 else
2291   if test -n "$ac_ct_CC"; then
2292   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2293 else
2294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2295 for as_dir in $PATH
2296 do
2297   IFS=$as_save_IFS
2298   test -z "$as_dir" && as_dir=.
2299   for ac_exec_ext in '' $ac_executable_extensions; do
2300   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2301     ac_cv_prog_ac_ct_CC="cc"
2302     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2303     break 2
2304   fi
2305 done
2306 done
2307
2308 fi
2309 fi
2310 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2311 if test -n "$ac_ct_CC"; then
2312   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2313 echo "${ECHO_T}$ac_ct_CC" >&6
2314 else
2315   echo "$as_me:$LINENO: result: no" >&5
2316 echo "${ECHO_T}no" >&6
2317 fi
2318
2319   CC=$ac_ct_CC
2320 else
2321   CC="$ac_cv_prog_CC"
2322 fi
2323
2324 fi
2325 if test -z "$CC"; then
2326   # Extract the first word of "cc", so it can be a program name with args.
2327 set dummy cc; ac_word=$2
2328 echo "$as_me:$LINENO: checking for $ac_word" >&5
2329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2330 if test "${ac_cv_prog_CC+set}" = set; then
2331   echo $ECHO_N "(cached) $ECHO_C" >&6
2332 else
2333   if test -n "$CC"; then
2334   ac_cv_prog_CC="$CC" # Let the user override the test.
2335 else
2336   ac_prog_rejected=no
2337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2338 for as_dir in $PATH
2339 do
2340   IFS=$as_save_IFS
2341   test -z "$as_dir" && as_dir=.
2342   for ac_exec_ext in '' $ac_executable_extensions; do
2343   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2344     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2345        ac_prog_rejected=yes
2346        continue
2347      fi
2348     ac_cv_prog_CC="cc"
2349     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2350     break 2
2351   fi
2352 done
2353 done
2354
2355 if test $ac_prog_rejected = yes; then
2356   # We found a bogon in the path, so make sure we never use it.
2357   set dummy $ac_cv_prog_CC
2358   shift
2359   if test $# != 0; then
2360     # We chose a different compiler from the bogus one.
2361     # However, it has the same basename, so the bogon will be chosen
2362     # first if we set CC to just the basename; use the full file name.
2363     shift
2364     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2365   fi
2366 fi
2367 fi
2368 fi
2369 CC=$ac_cv_prog_CC
2370 if test -n "$CC"; then
2371   echo "$as_me:$LINENO: result: $CC" >&5
2372 echo "${ECHO_T}$CC" >&6
2373 else
2374   echo "$as_me:$LINENO: result: no" >&5
2375 echo "${ECHO_T}no" >&6
2376 fi
2377
2378 fi
2379 if test -z "$CC"; then
2380   if test -n "$ac_tool_prefix"; then
2381   for ac_prog in cl
2382   do
2383     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2384 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2385 echo "$as_me:$LINENO: checking for $ac_word" >&5
2386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2387 if test "${ac_cv_prog_CC+set}" = set; then
2388   echo $ECHO_N "(cached) $ECHO_C" >&6
2389 else
2390   if test -n "$CC"; then
2391   ac_cv_prog_CC="$CC" # Let the user override the test.
2392 else
2393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2394 for as_dir in $PATH
2395 do
2396   IFS=$as_save_IFS
2397   test -z "$as_dir" && as_dir=.
2398   for ac_exec_ext in '' $ac_executable_extensions; do
2399   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2400     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2401     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2402     break 2
2403   fi
2404 done
2405 done
2406
2407 fi
2408 fi
2409 CC=$ac_cv_prog_CC
2410 if test -n "$CC"; then
2411   echo "$as_me:$LINENO: result: $CC" >&5
2412 echo "${ECHO_T}$CC" >&6
2413 else
2414   echo "$as_me:$LINENO: result: no" >&5
2415 echo "${ECHO_T}no" >&6
2416 fi
2417
2418     test -n "$CC" && break
2419   done
2420 fi
2421 if test -z "$CC"; then
2422   ac_ct_CC=$CC
2423   for ac_prog in cl
2424 do
2425   # Extract the first word of "$ac_prog", so it can be a program name with args.
2426 set dummy $ac_prog; ac_word=$2
2427 echo "$as_me:$LINENO: checking for $ac_word" >&5
2428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2429 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2430   echo $ECHO_N "(cached) $ECHO_C" >&6
2431 else
2432   if test -n "$ac_ct_CC"; then
2433   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2434 else
2435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2436 for as_dir in $PATH
2437 do
2438   IFS=$as_save_IFS
2439   test -z "$as_dir" && as_dir=.
2440   for ac_exec_ext in '' $ac_executable_extensions; do
2441   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2442     ac_cv_prog_ac_ct_CC="$ac_prog"
2443     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2444     break 2
2445   fi
2446 done
2447 done
2448
2449 fi
2450 fi
2451 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2452 if test -n "$ac_ct_CC"; then
2453   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2454 echo "${ECHO_T}$ac_ct_CC" >&6
2455 else
2456   echo "$as_me:$LINENO: result: no" >&5
2457 echo "${ECHO_T}no" >&6
2458 fi
2459
2460   test -n "$ac_ct_CC" && break
2461 done
2462
2463   CC=$ac_ct_CC
2464 fi
2465
2466 fi
2467
2468
2469 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2470 See \`config.log' for more details." >&5
2471 echo "$as_me: error: no acceptable C compiler found in \$PATH
2472 See \`config.log' for more details." >&2;}
2473    { (exit 1); exit 1; }; }
2474
2475 # Provide some information about the compiler.
2476 echo "$as_me:$LINENO:" \
2477      "checking for C compiler version" >&5
2478 ac_compiler=`set X $ac_compile; echo $2`
2479 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2480   (eval $ac_compiler --version </dev/null >&5) 2>&5
2481   ac_status=$?
2482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483   (exit $ac_status); }
2484 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2485   (eval $ac_compiler -v </dev/null >&5) 2>&5
2486   ac_status=$?
2487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488   (exit $ac_status); }
2489 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2490   (eval $ac_compiler -V </dev/null >&5) 2>&5
2491   ac_status=$?
2492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493   (exit $ac_status); }
2494
2495 cat >conftest.$ac_ext <<_ACEOF
2496 /* confdefs.h.  */
2497 _ACEOF
2498 cat confdefs.h >>conftest.$ac_ext
2499 cat >>conftest.$ac_ext <<_ACEOF
2500 /* end confdefs.h.  */
2501
2502 int
2503 main ()
2504 {
2505
2506   ;
2507   return 0;
2508 }
2509 _ACEOF
2510 ac_clean_files_save=$ac_clean_files
2511 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2512 # Try to create an executable without -o first, disregard a.out.
2513 # It will help us diagnose broken compilers, and finding out an intuition
2514 # of exeext.
2515 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2516 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2517 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2518 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2519   (eval $ac_link_default) 2>&5
2520   ac_status=$?
2521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522   (exit $ac_status); }; then
2523   # Find the output, starting from the most likely.  This scheme is
2524 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2525 # resort.
2526
2527 # Be careful to initialize this variable, since it used to be cached.
2528 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2529 ac_cv_exeext=
2530 # b.out is created by i960 compilers.
2531 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2532 do
2533   test -f "$ac_file" || continue
2534   case $ac_file in
2535     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2536         ;;
2537     conftest.$ac_ext )
2538         # This is the source file.
2539         ;;
2540     [ab].out )
2541         # We found the default executable, but exeext='' is most
2542         # certainly right.
2543         break;;
2544     *.* )
2545         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2546         # FIXME: I believe we export ac_cv_exeext for Libtool,
2547         # but it would be cool to find out if it's true.  Does anybody
2548         # maintain Libtool? --akim.
2549         export ac_cv_exeext
2550         break;;
2551     * )
2552         break;;
2553   esac
2554 done
2555 else
2556   echo "$as_me: failed program was:" >&5
2557 sed 's/^/| /' conftest.$ac_ext >&5
2558
2559 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2560 See \`config.log' for more details." >&5
2561 echo "$as_me: error: C compiler cannot create executables
2562 See \`config.log' for more details." >&2;}
2563    { (exit 77); exit 77; }; }
2564 fi
2565
2566 ac_exeext=$ac_cv_exeext
2567 echo "$as_me:$LINENO: result: $ac_file" >&5
2568 echo "${ECHO_T}$ac_file" >&6
2569
2570 # Check the compiler produces executables we can run.  If not, either
2571 # the compiler is broken, or we cross compile.
2572 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2573 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2574 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2575 # If not cross compiling, check that we can run a simple program.
2576 if test "$cross_compiling" != yes; then
2577   if { ac_try='./$ac_file'
2578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2579   (eval $ac_try) 2>&5
2580   ac_status=$?
2581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582   (exit $ac_status); }; }; then
2583     cross_compiling=no
2584   else
2585     if test "$cross_compiling" = maybe; then
2586         cross_compiling=yes
2587     else
2588         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2589 If you meant to cross compile, use \`--host'.
2590 See \`config.log' for more details." >&5
2591 echo "$as_me: error: cannot run C compiled programs.
2592 If you meant to cross compile, use \`--host'.
2593 See \`config.log' for more details." >&2;}
2594    { (exit 1); exit 1; }; }
2595     fi
2596   fi
2597 fi
2598 echo "$as_me:$LINENO: result: yes" >&5
2599 echo "${ECHO_T}yes" >&6
2600
2601 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2602 ac_clean_files=$ac_clean_files_save
2603 # Check the compiler produces executables we can run.  If not, either
2604 # the compiler is broken, or we cross compile.
2605 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2606 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2607 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2608 echo "${ECHO_T}$cross_compiling" >&6
2609
2610 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2611 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2613   (eval $ac_link) 2>&5
2614   ac_status=$?
2615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616   (exit $ac_status); }; then
2617   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2618 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2619 # work properly (i.e., refer to `conftest.exe'), while it won't with
2620 # `rm'.
2621 for ac_file in conftest.exe conftest conftest.*; do
2622   test -f "$ac_file" || continue
2623   case $ac_file in
2624     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2625     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2626           export ac_cv_exeext
2627           break;;
2628     * ) break;;
2629   esac
2630 done
2631 else
2632   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2633 See \`config.log' for more details." >&5
2634 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2635 See \`config.log' for more details." >&2;}
2636    { (exit 1); exit 1; }; }
2637 fi
2638
2639 rm -f conftest$ac_cv_exeext
2640 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2641 echo "${ECHO_T}$ac_cv_exeext" >&6
2642
2643 rm -f conftest.$ac_ext
2644 EXEEXT=$ac_cv_exeext
2645 ac_exeext=$EXEEXT
2646 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2647 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2648 if test "${ac_cv_objext+set}" = set; then
2649   echo $ECHO_N "(cached) $ECHO_C" >&6
2650 else
2651   cat >conftest.$ac_ext <<_ACEOF
2652 /* confdefs.h.  */
2653 _ACEOF
2654 cat confdefs.h >>conftest.$ac_ext
2655 cat >>conftest.$ac_ext <<_ACEOF
2656 /* end confdefs.h.  */
2657
2658 int
2659 main ()
2660 {
2661
2662   ;
2663   return 0;
2664 }
2665 _ACEOF
2666 rm -f conftest.o conftest.obj
2667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2668   (eval $ac_compile) 2>&5
2669   ac_status=$?
2670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671   (exit $ac_status); }; then
2672   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2673   case $ac_file in
2674     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2675     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2676        break;;
2677   esac
2678 done
2679 else
2680   echo "$as_me: failed program was:" >&5
2681 sed 's/^/| /' conftest.$ac_ext >&5
2682
2683 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2684 See \`config.log' for more details." >&5
2685 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2686 See \`config.log' for more details." >&2;}
2687    { (exit 1); exit 1; }; }
2688 fi
2689
2690 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2691 fi
2692 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2693 echo "${ECHO_T}$ac_cv_objext" >&6
2694 OBJEXT=$ac_cv_objext
2695 ac_objext=$OBJEXT
2696 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2697 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2698 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2699   echo $ECHO_N "(cached) $ECHO_C" >&6
2700 else
2701   cat >conftest.$ac_ext <<_ACEOF
2702 /* confdefs.h.  */
2703 _ACEOF
2704 cat confdefs.h >>conftest.$ac_ext
2705 cat >>conftest.$ac_ext <<_ACEOF
2706 /* end confdefs.h.  */
2707
2708 int
2709 main ()
2710 {
2711 #ifndef __GNUC__
2712        choke me
2713 #endif
2714
2715   ;
2716   return 0;
2717 }
2718 _ACEOF
2719 rm -f conftest.$ac_objext
2720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2721   (eval $ac_compile) 2>conftest.er1
2722   ac_status=$?
2723   grep -v '^ *+' conftest.er1 >conftest.err
2724   rm -f conftest.er1
2725   cat conftest.err >&5
2726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727   (exit $ac_status); } &&
2728          { ac_try='test -z "$ac_c_werror_flag"
2729                          || test ! -s conftest.err'
2730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2731   (eval $ac_try) 2>&5
2732   ac_status=$?
2733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734   (exit $ac_status); }; } &&
2735          { ac_try='test -s conftest.$ac_objext'
2736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2737   (eval $ac_try) 2>&5
2738   ac_status=$?
2739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740   (exit $ac_status); }; }; then
2741   ac_compiler_gnu=yes
2742 else
2743   echo "$as_me: failed program was:" >&5
2744 sed 's/^/| /' conftest.$ac_ext >&5
2745
2746 ac_compiler_gnu=no
2747 fi
2748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2749 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2750
2751 fi
2752 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2753 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2754 GCC=`test $ac_compiler_gnu = yes && echo yes`
2755 ac_test_CFLAGS=${CFLAGS+set}
2756 ac_save_CFLAGS=$CFLAGS
2757 CFLAGS="-g"
2758 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2759 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2760 if test "${ac_cv_prog_cc_g+set}" = set; then
2761   echo $ECHO_N "(cached) $ECHO_C" >&6
2762 else
2763   cat >conftest.$ac_ext <<_ACEOF
2764 /* confdefs.h.  */
2765 _ACEOF
2766 cat confdefs.h >>conftest.$ac_ext
2767 cat >>conftest.$ac_ext <<_ACEOF
2768 /* end confdefs.h.  */
2769
2770 int
2771 main ()
2772 {
2773
2774   ;
2775   return 0;
2776 }
2777 _ACEOF
2778 rm -f conftest.$ac_objext
2779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2780   (eval $ac_compile) 2>conftest.er1
2781   ac_status=$?
2782   grep -v '^ *+' conftest.er1 >conftest.err
2783   rm -f conftest.er1
2784   cat conftest.err >&5
2785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786   (exit $ac_status); } &&
2787          { ac_try='test -z "$ac_c_werror_flag"
2788                          || test ! -s conftest.err'
2789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2790   (eval $ac_try) 2>&5
2791   ac_status=$?
2792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793   (exit $ac_status); }; } &&
2794          { ac_try='test -s conftest.$ac_objext'
2795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2796   (eval $ac_try) 2>&5
2797   ac_status=$?
2798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799   (exit $ac_status); }; }; then
2800   ac_cv_prog_cc_g=yes
2801 else
2802   echo "$as_me: failed program was:" >&5
2803 sed 's/^/| /' conftest.$ac_ext >&5
2804
2805 ac_cv_prog_cc_g=no
2806 fi
2807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2808 fi
2809 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2810 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2811 if test "$ac_test_CFLAGS" = set; then
2812   CFLAGS=$ac_save_CFLAGS
2813 elif test $ac_cv_prog_cc_g = yes; then
2814   if test "$GCC" = yes; then
2815     CFLAGS="-g -O2"
2816   else
2817     CFLAGS="-g"
2818   fi
2819 else
2820   if test "$GCC" = yes; then
2821     CFLAGS="-O2"
2822   else
2823     CFLAGS=
2824   fi
2825 fi
2826 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2827 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2828 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2829   echo $ECHO_N "(cached) $ECHO_C" >&6
2830 else
2831   ac_cv_prog_cc_stdc=no
2832 ac_save_CC=$CC
2833 cat >conftest.$ac_ext <<_ACEOF
2834 /* confdefs.h.  */
2835 _ACEOF
2836 cat confdefs.h >>conftest.$ac_ext
2837 cat >>conftest.$ac_ext <<_ACEOF
2838 /* end confdefs.h.  */
2839 #include <stdarg.h>
2840 #include <stdio.h>
2841 #include <sys/types.h>
2842 #include <sys/stat.h>
2843 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2844 struct buf { int x; };
2845 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2846 static char *e (p, i)
2847      char **p;
2848      int i;
2849 {
2850   return p[i];
2851 }
2852 static char *f (char * (*g) (char **, int), char **p, ...)
2853 {
2854   char *s;
2855   va_list v;
2856   va_start (v,p);
2857   s = g (p, va_arg (v,int));
2858   va_end (v);
2859   return s;
2860 }
2861
2862 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2863    function prototypes and stuff, but not '\xHH' hex character constants.
2864    These don't provoke an error unfortunately, instead are silently treated
2865    as 'x'.  The following induces an error, until -std1 is added to get
2866    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2867    array size at least.  It's necessary to write '\x00'==0 to get something
2868    that's true only with -std1.  */
2869 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2870
2871 int test (int i, double x);
2872 struct s1 {int (*f) (int a);};
2873 struct s2 {int (*f) (double a);};
2874 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2875 int argc;
2876 char **argv;
2877 int
2878 main ()
2879 {
2880 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2881   ;
2882   return 0;
2883 }
2884 _ACEOF
2885 # Don't try gcc -ansi; that turns off useful extensions and
2886 # breaks some systems' header files.
2887 # AIX                   -qlanglvl=ansi
2888 # Ultrix and OSF/1      -std1
2889 # HP-UX 10.20 and later -Ae
2890 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2891 # SVR4                  -Xc -D__EXTENSIONS__
2892 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2893 do
2894   CC="$ac_save_CC $ac_arg"
2895   rm -f conftest.$ac_objext
2896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2897   (eval $ac_compile) 2>conftest.er1
2898   ac_status=$?
2899   grep -v '^ *+' conftest.er1 >conftest.err
2900   rm -f conftest.er1
2901   cat conftest.err >&5
2902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903   (exit $ac_status); } &&
2904          { ac_try='test -z "$ac_c_werror_flag"
2905                          || test ! -s conftest.err'
2906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2907   (eval $ac_try) 2>&5
2908   ac_status=$?
2909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910   (exit $ac_status); }; } &&
2911          { ac_try='test -s conftest.$ac_objext'
2912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2913   (eval $ac_try) 2>&5
2914   ac_status=$?
2915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916   (exit $ac_status); }; }; then
2917   ac_cv_prog_cc_stdc=$ac_arg
2918 break
2919 else
2920   echo "$as_me: failed program was:" >&5
2921 sed 's/^/| /' conftest.$ac_ext >&5
2922
2923 fi
2924 rm -f conftest.err conftest.$ac_objext
2925 done
2926 rm -f conftest.$ac_ext conftest.$ac_objext
2927 CC=$ac_save_CC
2928
2929 fi
2930
2931 case "x$ac_cv_prog_cc_stdc" in
2932   x|xno)
2933     echo "$as_me:$LINENO: result: none needed" >&5
2934 echo "${ECHO_T}none needed" >&6 ;;
2935   *)
2936     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2937 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2938     CC="$CC $ac_cv_prog_cc_stdc" ;;
2939 esac
2940
2941 # Some people use a C++ compiler to compile C.  Since we use `exit',
2942 # in C++ we need to declare it.  In case someone uses the same compiler
2943 # for both compiling C and C++ we need to have the C++ compiler decide
2944 # the declaration of exit, since it's the most demanding environment.
2945 cat >conftest.$ac_ext <<_ACEOF
2946 #ifndef __cplusplus
2947   choke me
2948 #endif
2949 _ACEOF
2950 rm -f conftest.$ac_objext
2951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2952   (eval $ac_compile) 2>conftest.er1
2953   ac_status=$?
2954   grep -v '^ *+' conftest.er1 >conftest.err
2955   rm -f conftest.er1
2956   cat conftest.err >&5
2957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958   (exit $ac_status); } &&
2959          { ac_try='test -z "$ac_c_werror_flag"
2960                          || test ! -s conftest.err'
2961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2962   (eval $ac_try) 2>&5
2963   ac_status=$?
2964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965   (exit $ac_status); }; } &&
2966          { ac_try='test -s conftest.$ac_objext'
2967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2968   (eval $ac_try) 2>&5
2969   ac_status=$?
2970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971   (exit $ac_status); }; }; then
2972   for ac_declaration in \
2973    '' \
2974    'extern "C" void std::exit (int) throw (); using std::exit;' \
2975    'extern "C" void std::exit (int); using std::exit;' \
2976    'extern "C" void exit (int) throw ();' \
2977    'extern "C" void exit (int);' \
2978    'void exit (int);'
2979 do
2980   cat >conftest.$ac_ext <<_ACEOF
2981 /* confdefs.h.  */
2982 _ACEOF
2983 cat confdefs.h >>conftest.$ac_ext
2984 cat >>conftest.$ac_ext <<_ACEOF
2985 /* end confdefs.h.  */
2986 $ac_declaration
2987 #include <stdlib.h>
2988 int
2989 main ()
2990 {
2991 exit (42);
2992   ;
2993   return 0;
2994 }
2995 _ACEOF
2996 rm -f conftest.$ac_objext
2997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2998   (eval $ac_compile) 2>conftest.er1
2999   ac_status=$?
3000   grep -v '^ *+' conftest.er1 >conftest.err
3001   rm -f conftest.er1
3002   cat conftest.err >&5
3003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004   (exit $ac_status); } &&
3005          { ac_try='test -z "$ac_c_werror_flag"
3006                          || test ! -s conftest.err'
3007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3008   (eval $ac_try) 2>&5
3009   ac_status=$?
3010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011   (exit $ac_status); }; } &&
3012          { ac_try='test -s conftest.$ac_objext'
3013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3014   (eval $ac_try) 2>&5
3015   ac_status=$?
3016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017   (exit $ac_status); }; }; then
3018   :
3019 else
3020   echo "$as_me: failed program was:" >&5
3021 sed 's/^/| /' conftest.$ac_ext >&5
3022
3023 continue
3024 fi
3025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3026   cat >conftest.$ac_ext <<_ACEOF
3027 /* confdefs.h.  */
3028 _ACEOF
3029 cat confdefs.h >>conftest.$ac_ext
3030 cat >>conftest.$ac_ext <<_ACEOF
3031 /* end confdefs.h.  */
3032 $ac_declaration
3033 int
3034 main ()
3035 {
3036 exit (42);
3037   ;
3038   return 0;
3039 }
3040 _ACEOF
3041 rm -f conftest.$ac_objext
3042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3043   (eval $ac_compile) 2>conftest.er1
3044   ac_status=$?
3045   grep -v '^ *+' conftest.er1 >conftest.err
3046   rm -f conftest.er1
3047   cat conftest.err >&5
3048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049   (exit $ac_status); } &&
3050          { ac_try='test -z "$ac_c_werror_flag"
3051                          || test ! -s conftest.err'
3052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3053   (eval $ac_try) 2>&5
3054   ac_status=$?
3055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056   (exit $ac_status); }; } &&
3057          { ac_try='test -s conftest.$ac_objext'
3058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3059   (eval $ac_try) 2>&5
3060   ac_status=$?
3061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062   (exit $ac_status); }; }; then
3063   break
3064 else
3065   echo "$as_me: failed program was:" >&5
3066 sed 's/^/| /' conftest.$ac_ext >&5
3067
3068 fi
3069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3070 done
3071 rm -f conftest*
3072 if test -n "$ac_declaration"; then
3073   echo '#ifdef __cplusplus' >>confdefs.h
3074   echo $ac_declaration      >>confdefs.h
3075   echo '#endif'             >>confdefs.h
3076 fi
3077
3078 else
3079   echo "$as_me: failed program was:" >&5
3080 sed 's/^/| /' conftest.$ac_ext >&5
3081
3082 fi
3083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3084 ac_ext=c
3085 ac_cpp='$CPP $CPPFLAGS'
3086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3089
3090 depcc="$CC"   am_compiler_list=
3091
3092 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3093 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3094 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3095   echo $ECHO_N "(cached) $ECHO_C" >&6
3096 else
3097   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3098   # We make a subdir and do the tests there.  Otherwise we can end up
3099   # making bogus files that we don't know about and never remove.  For
3100   # instance it was reported that on HP-UX the gcc test will end up
3101   # making a dummy file named `D' -- because `-MD' means `put the output
3102   # in D'.
3103   mkdir conftest.dir
3104   # Copy depcomp to subdir because otherwise we won't find it if we're
3105   # using a relative directory.
3106   cp "$am_depcomp" conftest.dir
3107   cd conftest.dir
3108   # We will build objects and dependencies in a subdirectory because
3109   # it helps to detect inapplicable dependency modes.  For instance
3110   # both Tru64's cc and ICC support -MD to output dependencies as a
3111   # side effect of compilation, but ICC will put the dependencies in
3112   # the current directory while Tru64 will put them in the object
3113   # directory.
3114   mkdir sub
3115
3116   am_cv_CC_dependencies_compiler_type=none
3117   if test "$am_compiler_list" = ""; then
3118      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3119   fi
3120   for depmode in $am_compiler_list; do
3121     # Setup a source with many dependencies, because some compilers
3122     # like to wrap large dependency lists on column 80 (with \), and
3123     # we should not choose a depcomp mode which is confused by this.
3124     #
3125     # We need to recreate these files for each test, as the compiler may
3126     # overwrite some of them when testing with obscure command lines.
3127     # This happens at least with the AIX C compiler.
3128     : > sub/conftest.c
3129     for i in 1 2 3 4 5 6; do
3130       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3131       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3132       # Solaris 8's {/usr,}/bin/sh.
3133       touch sub/conftst$i.h
3134     done
3135     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3136
3137     case $depmode in
3138     nosideeffect)
3139       # after this tag, mechanisms are not by side-effect, so they'll
3140       # only be used when explicitly requested
3141       if test "x$enable_dependency_tracking" = xyes; then
3142         continue
3143       else
3144         break
3145       fi
3146       ;;
3147     none) break ;;
3148     esac
3149     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3150     # mode.  It turns out that the SunPro C++ compiler does not properly
3151     # handle `-M -o', and we need to detect this.
3152     if depmode=$depmode \
3153        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3154        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3155        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3156          >/dev/null 2>conftest.err &&
3157        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3158        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3159        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3160       # icc doesn't choke on unknown options, it will just issue warnings
3161       # or remarks (even with -Werror).  So we grep stderr for any message
3162       # that says an option was ignored or not supported.
3163       # When given -MP, icc 7.0 and 7.1 complain thusly:
3164       #   icc: Command line warning: ignoring option '-M'; no argument required
3165       # The diagnosis changed in icc 8.0:
3166       #   icc: Command line remark: option '-MP' not supported
3167       if (grep 'ignoring option' conftest.err ||
3168           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3169         am_cv_CC_dependencies_compiler_type=$depmode
3170         break
3171       fi
3172     fi
3173   done
3174
3175   cd ..
3176   rm -rf conftest.dir
3177 else
3178   am_cv_CC_dependencies_compiler_type=none
3179 fi
3180
3181 fi
3182 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3183 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3184 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3185
3186
3187
3188 if
3189   test "x$enable_dependency_tracking" != xno \
3190   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3191   am__fastdepCC_TRUE=
3192   am__fastdepCC_FALSE='#'
3193 else
3194   am__fastdepCC_TRUE='#'
3195   am__fastdepCC_FALSE=
3196 fi
3197
3198
3199 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3200 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3201 if test "${lt_cv_path_SED+set}" = set; then
3202   echo $ECHO_N "(cached) $ECHO_C" >&6
3203 else
3204   # Loop through the user's path and test for sed and gsed.
3205 # Then use that list of sed's as ones to test for truncation.
3206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3207 for as_dir in $PATH
3208 do
3209   IFS=$as_save_IFS
3210   test -z "$as_dir" && as_dir=.
3211   for lt_ac_prog in sed gsed; do
3212     for ac_exec_ext in '' $ac_executable_extensions; do
3213       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3214         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3215       fi
3216     done
3217   done
3218 done
3219 lt_ac_max=0
3220 lt_ac_count=0
3221 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3222 # along with /bin/sed that truncates output.
3223 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3224   test ! -f $lt_ac_sed && break
3225   cat /dev/null > conftest.in
3226   lt_ac_count=0
3227   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3228   # Check for GNU sed and select it if it is found.
3229   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3230     lt_cv_path_SED=$lt_ac_sed
3231     break
3232   fi
3233   while true; do
3234     cat conftest.in conftest.in >conftest.tmp
3235     mv conftest.tmp conftest.in
3236     cp conftest.in conftest.nl
3237     echo >>conftest.nl
3238     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3239     cmp -s conftest.out conftest.nl || break
3240     # 10000 chars as input seems more than enough
3241     test $lt_ac_count -gt 10 && break
3242     lt_ac_count=`expr $lt_ac_count + 1`
3243     if test $lt_ac_count -gt $lt_ac_max; then
3244       lt_ac_max=$lt_ac_count
3245       lt_cv_path_SED=$lt_ac_sed
3246     fi
3247   done
3248 done
3249 SED=$lt_cv_path_SED
3250
3251 fi
3252
3253 echo "$as_me:$LINENO: result: $SED" >&5
3254 echo "${ECHO_T}$SED" >&6
3255
3256 echo "$as_me:$LINENO: checking for egrep" >&5
3257 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3258 if test "${ac_cv_prog_egrep+set}" = set; then
3259   echo $ECHO_N "(cached) $ECHO_C" >&6
3260 else
3261   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3262     then ac_cv_prog_egrep='grep -E'
3263     else ac_cv_prog_egrep='egrep'
3264     fi
3265 fi
3266 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3267 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3268  EGREP=$ac_cv_prog_egrep
3269
3270
3271
3272 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3273 if test "${with_gnu_ld+set}" = set; then
3274   withval="$with_gnu_ld"
3275   test "$withval" = no || with_gnu_ld=yes
3276 else
3277   with_gnu_ld=no
3278 fi;
3279 ac_prog=ld
3280 if test "$GCC" = yes; then
3281   # Check if gcc -print-prog-name=ld gives a path.
3282   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3283 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3284   case $host in
3285   *-*-mingw*)
3286     # gcc leaves a trailing carriage return which upsets mingw
3287     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3288   *)
3289     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3290   esac
3291   case $ac_prog in
3292     # Accept absolute paths.
3293     [\\/]* | ?:[\\/]*)
3294       re_direlt='/[^/][^/]*/\.\./'
3295       # Canonicalize the pathname of ld
3296       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3297       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3298         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3299       done
3300       test -z "$LD" && LD="$ac_prog"
3301       ;;
3302   "")
3303     # If it fails, then pretend we aren't using GCC.
3304     ac_prog=ld
3305     ;;
3306   *)
3307     # If it is relative, then search for the first ld in PATH.
3308     with_gnu_ld=unknown
3309     ;;
3310   esac
3311 elif test "$with_gnu_ld" = yes; then
3312   echo "$as_me:$LINENO: checking for GNU ld" >&5
3313 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3314 else
3315   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3316 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3317 fi
3318 if test "${lt_cv_path_LD+set}" = set; then
3319   echo $ECHO_N "(cached) $ECHO_C" >&6
3320 else
3321   if test -z "$LD"; then
3322   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3323   for ac_dir in $PATH; do
3324     IFS="$lt_save_ifs"
3325     test -z "$ac_dir" && ac_dir=.
3326     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3327       lt_cv_path_LD="$ac_dir/$ac_prog"
3328       # Check to see if the program is GNU ld.  I'd rather use --version,
3329       # but apparently some GNU ld's only accept -v.
3330       # Break only if it was the GNU/non-GNU ld that we prefer.
3331       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3332       *GNU* | *'with BFD'*)
3333         test "$with_gnu_ld" != no && break
3334         ;;
3335       *)
3336         test "$with_gnu_ld" != yes && break
3337         ;;
3338       esac
3339     fi
3340   done
3341   IFS="$lt_save_ifs"
3342 else
3343   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3344 fi
3345 fi
3346
3347 LD="$lt_cv_path_LD"
3348 if test -n "$LD"; then
3349   echo "$as_me:$LINENO: result: $LD" >&5
3350 echo "${ECHO_T}$LD" >&6
3351 else
3352   echo "$as_me:$LINENO: result: no" >&5
3353 echo "${ECHO_T}no" >&6
3354 fi
3355 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3356 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3357    { (exit 1); exit 1; }; }
3358 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3359 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3360 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3361   echo $ECHO_N "(cached) $ECHO_C" >&6
3362 else
3363   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3364 case `$LD -v 2>&1 </dev/null` in
3365 *GNU* | *'with BFD'*)
3366   lt_cv_prog_gnu_ld=yes
3367   ;;
3368 *)
3369   lt_cv_prog_gnu_ld=no
3370   ;;
3371 esac
3372 fi
3373 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3374 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3375 with_gnu_ld=$lt_cv_prog_gnu_ld
3376
3377
3378 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3379 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3380 if test "${lt_cv_ld_reload_flag+set}" = set; then
3381   echo $ECHO_N "(cached) $ECHO_C" >&6
3382 else
3383   lt_cv_ld_reload_flag='-r'
3384 fi
3385 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3386 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3387 reload_flag=$lt_cv_ld_reload_flag
3388 case $reload_flag in
3389 "" | " "*) ;;
3390 *) reload_flag=" $reload_flag" ;;
3391 esac
3392 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3393
3394 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3395 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3396 if test "${lt_cv_path_NM+set}" = set; then
3397   echo $ECHO_N "(cached) $ECHO_C" >&6
3398 else
3399   if test -n "$NM"; then
3400   # Let the user override the test.
3401   lt_cv_path_NM="$NM"
3402 else
3403   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3404   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3405     IFS="$lt_save_ifs"
3406     test -z "$ac_dir" && ac_dir=.
3407     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3408     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3409       # Check to see if the nm accepts a BSD-compat flag.
3410       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3411       #   nm: unknown option "B" ignored
3412       # Tru64's nm complains that /dev/null is an invalid object file
3413       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3414       */dev/null* | *'Invalid file or object type'*)
3415         lt_cv_path_NM="$tmp_nm -B"
3416         break
3417         ;;
3418       *)
3419         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3420         */dev/null*)
3421           lt_cv_path_NM="$tmp_nm -p"
3422           break
3423           ;;
3424         *)
3425           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3426           continue # so that we can try to find one that supports BSD flags
3427           ;;
3428         esac
3429       esac
3430     fi
3431   done
3432   IFS="$lt_save_ifs"
3433   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3434 fi
3435 fi
3436 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3437 echo "${ECHO_T}$lt_cv_path_NM" >&6
3438 NM="$lt_cv_path_NM"
3439
3440 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3441 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3442 LN_S=$as_ln_s
3443 if test "$LN_S" = "ln -s"; then
3444   echo "$as_me:$LINENO: result: yes" >&5
3445 echo "${ECHO_T}yes" >&6
3446 else
3447   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3448 echo "${ECHO_T}no, using $LN_S" >&6
3449 fi
3450
3451 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3452 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3453 if test "${lt_cv_deplibs_check_method+set}" = set; then
3454   echo $ECHO_N "(cached) $ECHO_C" >&6
3455 else
3456   lt_cv_file_magic_cmd='$MAGIC_CMD'
3457 lt_cv_file_magic_test_file=
3458 lt_cv_deplibs_check_method='unknown'
3459 # Need to set the preceding variable on all platforms that support
3460 # interlibrary dependencies.
3461 # 'none' -- dependencies not supported.
3462 # `unknown' -- same as none, but documents that we really don't know.
3463 # 'pass_all' -- all dependencies passed with no checks.
3464 # 'test_compile' -- check by making test program.
3465 # 'file_magic [[regex]]' -- check by looking for files in library path
3466 # which responds to the $file_magic_cmd with a given extended regex.
3467 # If you have `file' or equivalent on your system and you're not sure
3468 # whether `pass_all' will *always* work, you probably want this one.
3469
3470 case $host_os in
3471 aix4* | aix5*)
3472   lt_cv_deplibs_check_method=pass_all
3473   ;;
3474
3475 beos*)
3476   lt_cv_deplibs_check_method=pass_all
3477   ;;
3478
3479 bsdi4*)
3480   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3481   lt_cv_file_magic_cmd='/usr/bin/file -L'
3482   lt_cv_file_magic_test_file=/shlib/libc.so
3483   ;;
3484
3485 cygwin*)
3486   # func_win32_libid is a shell function defined in ltmain.sh
3487   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3488   lt_cv_file_magic_cmd='func_win32_libid'
3489   ;;
3490
3491 mingw* | pw32*)
3492   # Base MSYS/MinGW do not provide the 'file' command needed by
3493   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3494   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3495   lt_cv_file_magic_cmd='$OBJDUMP -f'
3496   ;;
3497
3498 darwin* | rhapsody*)
3499   lt_cv_deplibs_check_method=pass_all
3500   ;;
3501
3502 freebsd* | kfreebsd*-gnu)
3503   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3504     case $host_cpu in
3505     i*86 )
3506       # Not sure whether the presence of OpenBSD here was a mistake.
3507       # Let's accept both of them until this is cleared up.
3508       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3509       lt_cv_file_magic_cmd=/usr/bin/file
3510       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3511       ;;
3512     esac
3513   else
3514     lt_cv_deplibs_check_method=pass_all
3515   fi
3516   ;;
3517
3518 gnu*)
3519   lt_cv_deplibs_check_method=pass_all
3520   ;;
3521
3522 hpux10.20* | hpux11*)
3523   lt_cv_file_magic_cmd=/usr/bin/file
3524   case "$host_cpu" in
3525   ia64*)
3526     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3527     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3528     ;;
3529   hppa*64*)
3530     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]'
3531     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3532     ;;
3533   *)
3534     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3535     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3536     ;;
3537   esac
3538   ;;
3539
3540 irix5* | irix6* | nonstopux*)
3541   case $LD in
3542   *-32|*"-32 ") libmagic=32-bit;;
3543   *-n32|*"-n32 ") libmagic=N32;;
3544   *-64|*"-64 ") libmagic=64-bit;;
3545   *) libmagic=never-match;;
3546   esac
3547   lt_cv_deplibs_check_method=pass_all
3548   ;;
3549
3550 # This must be Linux ELF.
3551 linux*)
3552   case $host_cpu in
3553   alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*)
3554     lt_cv_deplibs_check_method=pass_all ;;
3555   *)
3556     # glibc up to 2.1.1 does not perform some relocations on ARM
3557     # this will be overridden with pass_all, but let us keep it just in case
3558     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3559   esac
3560   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3561   lt_cv_deplibs_check_method=pass_all
3562   ;;
3563
3564 netbsd*)
3565   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3566     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3567   else
3568     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3569   fi
3570   ;;
3571
3572 newos6*)
3573   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3574   lt_cv_file_magic_cmd=/usr/bin/file
3575   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3576   ;;
3577
3578 nto-qnx*)
3579   lt_cv_deplibs_check_method=unknown
3580   ;;
3581
3582 openbsd*)
3583   lt_cv_file_magic_cmd=/usr/bin/file
3584   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3585   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3586     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3587   else
3588     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3589   fi
3590   ;;
3591
3592 osf3* | osf4* | osf5*)
3593   lt_cv_deplibs_check_method=pass_all
3594   ;;
3595
3596 sco3.2v5*)
3597   lt_cv_deplibs_check_method=pass_all
3598   ;;
3599
3600 solaris*)
3601   lt_cv_deplibs_check_method=pass_all
3602   ;;
3603
3604 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3605   case $host_vendor in
3606   motorola)
3607     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]'
3608     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3609     ;;
3610   ncr)
3611     lt_cv_deplibs_check_method=pass_all
3612     ;;
3613   sequent)
3614     lt_cv_file_magic_cmd='/bin/file'
3615     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3616     ;;
3617   sni)
3618     lt_cv_file_magic_cmd='/bin/file'
3619     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3620     lt_cv_file_magic_test_file=/lib/libc.so
3621     ;;
3622   siemens)
3623     lt_cv_deplibs_check_method=pass_all
3624     ;;
3625   esac
3626   ;;
3627
3628 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3629   lt_cv_deplibs_check_method=pass_all
3630   ;;
3631 esac
3632
3633 fi
3634 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3635 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3636 file_magic_cmd=$lt_cv_file_magic_cmd
3637 deplibs_check_method=$lt_cv_deplibs_check_method
3638 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3639
3640
3641
3642
3643 # If no C compiler was specified, use CC.
3644 LTCC=${LTCC-"$CC"}
3645
3646 # Allow CC to be a program name with arguments.
3647 compiler=$CC
3648
3649
3650 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3651 if test "${enable_libtool_lock+set}" = set; then
3652   enableval="$enable_libtool_lock"
3653
3654 fi;
3655 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3656
3657 # Some flags need to be propagated to the compiler or linker for good
3658 # libtool support.
3659 case $host in
3660 ia64-*-hpux*)
3661   # Find out which ABI we are using.
3662   echo 'int i;' > conftest.$ac_ext
3663   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3664   (eval $ac_compile) 2>&5
3665   ac_status=$?
3666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667   (exit $ac_status); }; then
3668     case `/usr/bin/file conftest.$ac_objext` in
3669     *ELF-32*)
3670       HPUX_IA64_MODE="32"
3671       ;;
3672     *ELF-64*)
3673       HPUX_IA64_MODE="64"
3674       ;;
3675     esac
3676   fi
3677   rm -rf conftest*
3678   ;;
3679 *-*-irix6*)
3680   # Find out which ABI we are using.
3681   echo '#line 3681 "configure"' > conftest.$ac_ext
3682   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3683   (eval $ac_compile) 2>&5
3684   ac_status=$?
3685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686   (exit $ac_status); }; then
3687    if test "$lt_cv_prog_gnu_ld" = yes; then
3688     case `/usr/bin/file conftest.$ac_objext` in
3689     *32-bit*)
3690       LD="${LD-ld} -melf32bsmip"
3691       ;;
3692     *N32*)
3693       LD="${LD-ld} -melf32bmipn32"
3694       ;;
3695     *64-bit*)
3696       LD="${LD-ld} -melf64bmip"
3697       ;;
3698     esac
3699    else
3700     case `/usr/bin/file conftest.$ac_objext` in
3701     *32-bit*)
3702       LD="${LD-ld} -32"
3703       ;;
3704     *N32*)
3705       LD="${LD-ld} -n32"
3706       ;;
3707     *64-bit*)
3708       LD="${LD-ld} -64"
3709       ;;
3710     esac
3711    fi
3712   fi
3713   rm -rf conftest*
3714   ;;
3715
3716 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3717   # Find out which ABI we are using.
3718   echo 'int i;' > conftest.$ac_ext
3719   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3720   (eval $ac_compile) 2>&5
3721   ac_status=$?
3722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723   (exit $ac_status); }; then
3724     case "`/usr/bin/file conftest.o`" in
3725     *32-bit*)
3726       case $host in
3727         x86_64-*linux*)
3728           LD="${LD-ld} -m elf_i386"
3729           ;;
3730         ppc64-*linux*|powerpc64-*linux*)
3731           LD="${LD-ld} -m elf32ppclinux"
3732           ;;
3733         s390x-*linux*)
3734           LD="${LD-ld} -m elf_s390"
3735           ;;
3736         sparc64-*linux*)
3737           LD="${LD-ld} -m elf32_sparc"
3738           ;;
3739       esac
3740       ;;
3741     *64-bit*)
3742       case $host in
3743         x86_64-*linux*)
3744           LD="${LD-ld} -m elf_x86_64"
3745           ;;
3746         ppc*-*linux*|powerpc*-*linux*)
3747           LD="${LD-ld} -m elf64ppc"
3748           ;;
3749         s390*-*linux*)
3750           LD="${LD-ld} -m elf64_s390"
3751           ;;
3752         sparc*-*linux*)
3753           LD="${LD-ld} -m elf64_sparc"
3754           ;;
3755       esac
3756       ;;
3757     esac
3758   fi
3759   rm -rf conftest*
3760   ;;
3761
3762 *-*-sco3.2v5*)
3763   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3764   SAVE_CFLAGS="$CFLAGS"
3765   CFLAGS="$CFLAGS -belf"
3766   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3767 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3768 if test "${lt_cv_cc_needs_belf+set}" = set; then
3769   echo $ECHO_N "(cached) $ECHO_C" >&6
3770 else
3771   ac_ext=c
3772 ac_cpp='$CPP $CPPFLAGS'
3773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3776
3777      cat >conftest.$ac_ext <<_ACEOF
3778 /* confdefs.h.  */
3779 _ACEOF
3780 cat confdefs.h >>conftest.$ac_ext
3781 cat >>conftest.$ac_ext <<_ACEOF
3782 /* end confdefs.h.  */
3783
3784 int
3785 main ()
3786 {
3787
3788   ;
3789   return 0;
3790 }
3791 _ACEOF
3792 rm -f conftest.$ac_objext conftest$ac_exeext
3793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3794   (eval $ac_link) 2>conftest.er1
3795   ac_status=$?
3796   grep -v '^ *+' conftest.er1 >conftest.err
3797   rm -f conftest.er1
3798   cat conftest.err >&5
3799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800   (exit $ac_status); } &&
3801          { ac_try='test -z "$ac_c_werror_flag"
3802                          || test ! -s conftest.err'
3803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3804   (eval $ac_try) 2>&5
3805   ac_status=$?
3806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807   (exit $ac_status); }; } &&
3808          { ac_try='test -s conftest$ac_exeext'
3809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3810   (eval $ac_try) 2>&5
3811   ac_status=$?
3812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813   (exit $ac_status); }; }; then
3814   lt_cv_cc_needs_belf=yes
3815 else
3816   echo "$as_me: failed program was:" >&5
3817 sed 's/^/| /' conftest.$ac_ext >&5
3818
3819 lt_cv_cc_needs_belf=no
3820 fi
3821 rm -f conftest.err conftest.$ac_objext \
3822       conftest$ac_exeext conftest.$ac_ext
3823      ac_ext=c
3824 ac_cpp='$CPP $CPPFLAGS'
3825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3828
3829 fi
3830 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3831 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3832   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3833     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3834     CFLAGS="$SAVE_CFLAGS"
3835   fi
3836   ;;
3837
3838 esac
3839
3840 need_locks="$enable_libtool_lock"
3841
3842
3843 ac_ext=c
3844 ac_cpp='$CPP $CPPFLAGS'
3845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3848 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3849 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3850 # On Suns, sometimes $CPP names a directory.
3851 if test -n "$CPP" && test -d "$CPP"; then
3852   CPP=
3853 fi
3854 if test -z "$CPP"; then
3855   if test "${ac_cv_prog_CPP+set}" = set; then
3856   echo $ECHO_N "(cached) $ECHO_C" >&6
3857 else
3858       # Double quotes because CPP needs to be expanded
3859     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3860     do
3861       ac_preproc_ok=false
3862 for ac_c_preproc_warn_flag in '' yes
3863 do
3864   # Use a header file that comes with gcc, so configuring glibc
3865   # with a fresh cross-compiler works.
3866   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3867   # <limits.h> exists even on freestanding compilers.
3868   # On the NeXT, cc -E runs the code through the compiler's parser,
3869   # not just through cpp. "Syntax error" is here to catch this case.
3870   cat >conftest.$ac_ext <<_ACEOF
3871 /* confdefs.h.  */
3872 _ACEOF
3873 cat confdefs.h >>conftest.$ac_ext
3874 cat >>conftest.$ac_ext <<_ACEOF
3875 /* end confdefs.h.  */
3876 #ifdef __STDC__
3877 # include <limits.h>
3878 #else
3879 # include <assert.h>
3880 #endif
3881                      Syntax error
3882 _ACEOF
3883 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3884   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3885   ac_status=$?
3886   grep -v '^ *+' conftest.er1 >conftest.err
3887   rm -f conftest.er1
3888   cat conftest.err >&5
3889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3890   (exit $ac_status); } >/dev/null; then
3891   if test -s conftest.err; then
3892     ac_cpp_err=$ac_c_preproc_warn_flag
3893     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3894   else
3895     ac_cpp_err=
3896   fi
3897 else
3898   ac_cpp_err=yes
3899 fi
3900 if test -z "$ac_cpp_err"; then
3901   :
3902 else
3903   echo "$as_me: failed program was:" >&5
3904 sed 's/^/| /' conftest.$ac_ext >&5
3905
3906   # Broken: fails on valid input.
3907 continue
3908 fi
3909 rm -f conftest.err conftest.$ac_ext
3910
3911   # OK, works on sane cases.  Now check whether non-existent headers
3912   # can be detected and how.
3913   cat >conftest.$ac_ext <<_ACEOF
3914 /* confdefs.h.  */
3915 _ACEOF
3916 cat confdefs.h >>conftest.$ac_ext
3917 cat >>conftest.$ac_ext <<_ACEOF
3918 /* end confdefs.h.  */
3919 #include <ac_nonexistent.h>
3920 _ACEOF
3921 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3922   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3923   ac_status=$?
3924   grep -v '^ *+' conftest.er1 >conftest.err
3925   rm -f conftest.er1
3926   cat conftest.err >&5
3927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3928   (exit $ac_status); } >/dev/null; then
3929   if test -s conftest.err; then
3930     ac_cpp_err=$ac_c_preproc_warn_flag
3931     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3932   else
3933     ac_cpp_err=
3934   fi
3935 else
3936   ac_cpp_err=yes
3937 fi
3938 if test -z "$ac_cpp_err"; then
3939   # Broken: success on invalid input.
3940 continue
3941 else
3942   echo "$as_me: failed program was:" >&5
3943 sed 's/^/| /' conftest.$ac_ext >&5
3944
3945   # Passes both tests.
3946 ac_preproc_ok=:
3947 break
3948 fi
3949 rm -f conftest.err conftest.$ac_ext
3950
3951 done
3952 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3953 rm -f conftest.err conftest.$ac_ext
3954 if $ac_preproc_ok; then
3955   break
3956 fi
3957
3958     done
3959     ac_cv_prog_CPP=$CPP
3960
3961 fi
3962   CPP=$ac_cv_prog_CPP
3963 else
3964   ac_cv_prog_CPP=$CPP
3965 fi
3966 echo "$as_me:$LINENO: result: $CPP" >&5
3967 echo "${ECHO_T}$CPP" >&6
3968 ac_preproc_ok=false
3969 for ac_c_preproc_warn_flag in '' yes
3970 do
3971   # Use a header file that comes with gcc, so configuring glibc
3972   # with a fresh cross-compiler works.
3973   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3974   # <limits.h> exists even on freestanding compilers.
3975   # On the NeXT, cc -E runs the code through the compiler's parser,
3976   # not just through cpp. "Syntax error" is here to catch this case.
3977   cat >conftest.$ac_ext <<_ACEOF
3978 /* confdefs.h.  */
3979 _ACEOF
3980 cat confdefs.h >>conftest.$ac_ext
3981 cat >>conftest.$ac_ext <<_ACEOF
3982 /* end confdefs.h.  */
3983 #ifdef __STDC__
3984 # include <limits.h>
3985 #else
3986 # include <assert.h>
3987 #endif
3988                      Syntax error
3989 _ACEOF
3990 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3991   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3992   ac_status=$?
3993   grep -v '^ *+' conftest.er1 >conftest.err
3994   rm -f conftest.er1
3995   cat conftest.err >&5
3996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997   (exit $ac_status); } >/dev/null; then
3998   if test -s conftest.err; then
3999     ac_cpp_err=$ac_c_preproc_warn_flag
4000     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4001   else
4002     ac_cpp_err=
4003   fi
4004 else
4005   ac_cpp_err=yes
4006 fi
4007 if test -z "$ac_cpp_err"; then
4008   :
4009 else
4010   echo "$as_me: failed program was:" >&5
4011 sed 's/^/| /' conftest.$ac_ext >&5
4012
4013   # Broken: fails on valid input.
4014 continue
4015 fi
4016 rm -f conftest.err conftest.$ac_ext
4017
4018   # OK, works on sane cases.  Now check whether non-existent headers
4019   # can be detected and how.
4020   cat >conftest.$ac_ext <<_ACEOF
4021 /* confdefs.h.  */
4022 _ACEOF
4023 cat confdefs.h >>conftest.$ac_ext
4024 cat >>conftest.$ac_ext <<_ACEOF
4025 /* end confdefs.h.  */
4026 #include <ac_nonexistent.h>
4027 _ACEOF
4028 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4029   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4030   ac_status=$?
4031   grep -v '^ *+' conftest.er1 >conftest.err
4032   rm -f conftest.er1
4033   cat conftest.err >&5
4034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035   (exit $ac_status); } >/dev/null; then
4036   if test -s conftest.err; then
4037     ac_cpp_err=$ac_c_preproc_warn_flag
4038     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4039   else
4040     ac_cpp_err=
4041   fi
4042 else
4043   ac_cpp_err=yes
4044 fi
4045 if test -z "$ac_cpp_err"; then
4046   # Broken: success on invalid input.
4047 continue
4048 else
4049   echo "$as_me: failed program was:" >&5
4050 sed 's/^/| /' conftest.$ac_ext >&5
4051
4052   # Passes both tests.
4053 ac_preproc_ok=:
4054 break
4055 fi
4056 rm -f conftest.err conftest.$ac_ext
4057
4058 done
4059 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4060 rm -f conftest.err conftest.$ac_ext
4061 if $ac_preproc_ok; then
4062   :
4063 else
4064   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4065 See \`config.log' for more details." >&5
4066 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4067 See \`config.log' for more details." >&2;}
4068    { (exit 1); exit 1; }; }
4069 fi
4070
4071 ac_ext=c
4072 ac_cpp='$CPP $CPPFLAGS'
4073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4076
4077
4078 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4079 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4080 if test "${ac_cv_header_stdc+set}" = set; then
4081   echo $ECHO_N "(cached) $ECHO_C" >&6
4082 else
4083   cat >conftest.$ac_ext <<_ACEOF
4084 /* confdefs.h.  */
4085 _ACEOF
4086 cat confdefs.h >>conftest.$ac_ext
4087 cat >>conftest.$ac_ext <<_ACEOF
4088 /* end confdefs.h.  */
4089 #include <stdlib.h>
4090 #include <stdarg.h>
4091 #include <string.h>
4092 #include <float.h>
4093
4094 int
4095 main ()
4096 {
4097
4098   ;
4099   return 0;
4100 }
4101 _ACEOF
4102 rm -f conftest.$ac_objext
4103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4104   (eval $ac_compile) 2>conftest.er1
4105   ac_status=$?
4106   grep -v '^ *+' conftest.er1 >conftest.err
4107   rm -f conftest.er1
4108   cat conftest.err >&5
4109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110   (exit $ac_status); } &&
4111          { ac_try='test -z "$ac_c_werror_flag"
4112                          || test ! -s conftest.err'
4113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4114   (eval $ac_try) 2>&5
4115   ac_status=$?
4116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117   (exit $ac_status); }; } &&
4118          { ac_try='test -s conftest.$ac_objext'
4119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4120   (eval $ac_try) 2>&5
4121   ac_status=$?
4122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123   (exit $ac_status); }; }; then
4124   ac_cv_header_stdc=yes
4125 else
4126   echo "$as_me: failed program was:" >&5
4127 sed 's/^/| /' conftest.$ac_ext >&5
4128
4129 ac_cv_header_stdc=no
4130 fi
4131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4132
4133 if test $ac_cv_header_stdc = yes; then
4134   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4135   cat >conftest.$ac_ext <<_ACEOF
4136 /* confdefs.h.  */
4137 _ACEOF
4138 cat confdefs.h >>conftest.$ac_ext
4139 cat >>conftest.$ac_ext <<_ACEOF
4140 /* end confdefs.h.  */
4141 #include <string.h>
4142
4143 _ACEOF
4144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4145   $EGREP "memchr" >/dev/null 2>&1; then
4146   :
4147 else
4148   ac_cv_header_stdc=no
4149 fi
4150 rm -f conftest*
4151
4152 fi
4153
4154 if test $ac_cv_header_stdc = yes; then
4155   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4156   cat >conftest.$ac_ext <<_ACEOF
4157 /* confdefs.h.  */
4158 _ACEOF
4159 cat confdefs.h >>conftest.$ac_ext
4160 cat >>conftest.$ac_ext <<_ACEOF
4161 /* end confdefs.h.  */
4162 #include <stdlib.h>
4163
4164 _ACEOF
4165 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4166   $EGREP "free" >/dev/null 2>&1; then
4167   :
4168 else
4169   ac_cv_header_stdc=no
4170 fi
4171 rm -f conftest*
4172
4173 fi
4174
4175 if test $ac_cv_header_stdc = yes; then
4176   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4177   if test "$cross_compiling" = yes; then
4178   :
4179 else
4180   cat >conftest.$ac_ext <<_ACEOF
4181 /* confdefs.h.  */
4182 _ACEOF
4183 cat confdefs.h >>conftest.$ac_ext
4184 cat >>conftest.$ac_ext <<_ACEOF
4185 /* end confdefs.h.  */
4186 #include <ctype.h>
4187 #if ((' ' & 0x0FF) == 0x020)
4188 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4189 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4190 #else
4191 # define ISLOWER(c) \
4192                    (('a' <= (c) && (c) <= 'i') \
4193                      || ('j' <= (c) && (c) <= 'r') \
4194                      || ('s' <= (c) && (c) <= 'z'))
4195 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4196 #endif
4197
4198 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4199 int
4200 main ()
4201 {
4202   int i;
4203   for (i = 0; i < 256; i++)
4204     if (XOR (islower (i), ISLOWER (i))
4205         || toupper (i) != TOUPPER (i))
4206       exit(2);
4207   exit (0);
4208 }
4209 _ACEOF
4210 rm -f conftest$ac_exeext
4211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4212   (eval $ac_link) 2>&5
4213   ac_status=$?
4214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4217   (eval $ac_try) 2>&5
4218   ac_status=$?
4219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220   (exit $ac_status); }; }; then
4221   :
4222 else
4223   echo "$as_me: program exited with status $ac_status" >&5
4224 echo "$as_me: failed program was:" >&5
4225 sed 's/^/| /' conftest.$ac_ext >&5
4226
4227 ( exit $ac_status )
4228 ac_cv_header_stdc=no
4229 fi
4230 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4231 fi
4232 fi
4233 fi
4234 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4235 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4236 if test $ac_cv_header_stdc = yes; then
4237
4238 cat >>confdefs.h <<\_ACEOF
4239 #define STDC_HEADERS 1
4240 _ACEOF
4241
4242 fi
4243
4244 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4255                   inttypes.h stdint.h unistd.h
4256 do
4257 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4258 echo "$as_me:$LINENO: checking for $ac_header" >&5
4259 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4260 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4261   echo $ECHO_N "(cached) $ECHO_C" >&6
4262 else
4263   cat >conftest.$ac_ext <<_ACEOF
4264 /* confdefs.h.  */
4265 _ACEOF
4266 cat confdefs.h >>conftest.$ac_ext
4267 cat >>conftest.$ac_ext <<_ACEOF
4268 /* end confdefs.h.  */
4269 $ac_includes_default
4270
4271 #include <$ac_header>
4272 _ACEOF
4273 rm -f conftest.$ac_objext
4274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4275   (eval $ac_compile) 2>conftest.er1
4276   ac_status=$?
4277   grep -v '^ *+' conftest.er1 >conftest.err
4278   rm -f conftest.er1
4279   cat conftest.err >&5
4280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281   (exit $ac_status); } &&
4282          { ac_try='test -z "$ac_c_werror_flag"
4283                          || test ! -s conftest.err'
4284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4285   (eval $ac_try) 2>&5
4286   ac_status=$?
4287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288   (exit $ac_status); }; } &&
4289          { ac_try='test -s conftest.$ac_objext'
4290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4291   (eval $ac_try) 2>&5
4292   ac_status=$?
4293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294   (exit $ac_status); }; }; then
4295   eval "$as_ac_Header=yes"
4296 else
4297   echo "$as_me: failed program was:" >&5
4298 sed 's/^/| /' conftest.$ac_ext >&5
4299
4300 eval "$as_ac_Header=no"
4301 fi
4302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4303 fi
4304 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4305 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4306 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4307   cat >>confdefs.h <<_ACEOF
4308 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4309 _ACEOF
4310
4311 fi
4312
4313 done
4314
4315
4316
4317 for ac_header in dlfcn.h
4318 do
4319 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4320 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4321   echo "$as_me:$LINENO: checking for $ac_header" >&5
4322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4324   echo $ECHO_N "(cached) $ECHO_C" >&6
4325 fi
4326 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4327 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4328 else
4329   # Is the header compilable?
4330 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4331 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4332 cat >conftest.$ac_ext <<_ACEOF
4333 /* confdefs.h.  */
4334 _ACEOF
4335 cat confdefs.h >>conftest.$ac_ext
4336 cat >>conftest.$ac_ext <<_ACEOF
4337 /* end confdefs.h.  */
4338 $ac_includes_default
4339 #include <$ac_header>
4340 _ACEOF
4341 rm -f conftest.$ac_objext
4342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4343   (eval $ac_compile) 2>conftest.er1
4344   ac_status=$?
4345   grep -v '^ *+' conftest.er1 >conftest.err
4346   rm -f conftest.er1
4347   cat conftest.err >&5
4348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349   (exit $ac_status); } &&
4350          { ac_try='test -z "$ac_c_werror_flag"
4351                          || test ! -s conftest.err'
4352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4353   (eval $ac_try) 2>&5
4354   ac_status=$?
4355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356   (exit $ac_status); }; } &&
4357          { ac_try='test -s conftest.$ac_objext'
4358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4359   (eval $ac_try) 2>&5
4360   ac_status=$?
4361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362   (exit $ac_status); }; }; then
4363   ac_header_compiler=yes
4364 else
4365   echo "$as_me: failed program was:" >&5
4366 sed 's/^/| /' conftest.$ac_ext >&5
4367
4368 ac_header_compiler=no
4369 fi
4370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4371 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4372 echo "${ECHO_T}$ac_header_compiler" >&6
4373
4374 # Is the header present?
4375 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4376 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4377 cat >conftest.$ac_ext <<_ACEOF
4378 /* confdefs.h.  */
4379 _ACEOF
4380 cat confdefs.h >>conftest.$ac_ext
4381 cat >>conftest.$ac_ext <<_ACEOF
4382 /* end confdefs.h.  */
4383 #include <$ac_header>
4384 _ACEOF
4385 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4386   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4387   ac_status=$?
4388   grep -v '^ *+' conftest.er1 >conftest.err
4389   rm -f conftest.er1
4390   cat conftest.err >&5
4391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392   (exit $ac_status); } >/dev/null; then
4393   if test -s conftest.err; then
4394     ac_cpp_err=$ac_c_preproc_warn_flag
4395     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4396   else
4397     ac_cpp_err=
4398   fi
4399 else
4400   ac_cpp_err=yes
4401 fi
4402 if test -z "$ac_cpp_err"; then
4403   ac_header_preproc=yes
4404 else
4405   echo "$as_me: failed program was:" >&5
4406 sed 's/^/| /' conftest.$ac_ext >&5
4407
4408   ac_header_preproc=no
4409 fi
4410 rm -f conftest.err conftest.$ac_ext
4411 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4412 echo "${ECHO_T}$ac_header_preproc" >&6
4413
4414 # So?  What about this header?
4415 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4416   yes:no: )
4417     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4418 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4419     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4420 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4421     ac_header_preproc=yes
4422     ;;
4423   no:yes:* )
4424     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4425 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4426     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4427 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4428     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4429 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4430     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4431 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4432     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4433 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4434     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4435 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4436     (
4437       cat <<\_ASBOX
4438 ## ------------------------------------- ##
4439 ## Report this to uncensored.citadel.org ##
4440 ## ------------------------------------- ##
4441 _ASBOX
4442     ) |
4443       sed "s/^/$as_me: WARNING:     /" >&2
4444     ;;
4445 esac
4446 echo "$as_me:$LINENO: checking for $ac_header" >&5
4447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4448 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4449   echo $ECHO_N "(cached) $ECHO_C" >&6
4450 else
4451   eval "$as_ac_Header=\$ac_header_preproc"
4452 fi
4453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4454 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4455
4456 fi
4457 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4458   cat >>confdefs.h <<_ACEOF
4459 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4460 _ACEOF
4461
4462 fi
4463
4464 done
4465
4466 ac_ext=cc
4467 ac_cpp='$CXXCPP $CPPFLAGS'
4468 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4469 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4470 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4471 if test -n "$ac_tool_prefix"; then
4472   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4473   do
4474     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4475 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4476 echo "$as_me:$LINENO: checking for $ac_word" >&5
4477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4478 if test "${ac_cv_prog_CXX+set}" = set; then
4479   echo $ECHO_N "(cached) $ECHO_C" >&6
4480 else
4481   if test -n "$CXX"; then
4482   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4483 else
4484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4485 for as_dir in $PATH
4486 do
4487   IFS=$as_save_IFS
4488   test -z "$as_dir" && as_dir=.
4489   for ac_exec_ext in '' $ac_executable_extensions; do
4490   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4491     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4492     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4493     break 2
4494   fi
4495 done
4496 done
4497
4498 fi
4499 fi
4500 CXX=$ac_cv_prog_CXX
4501 if test -n "$CXX"; then
4502   echo "$as_me:$LINENO: result: $CXX" >&5
4503 echo "${ECHO_T}$CXX" >&6
4504 else
4505   echo "$as_me:$LINENO: result: no" >&5
4506 echo "${ECHO_T}no" >&6
4507 fi
4508
4509     test -n "$CXX" && break
4510   done
4511 fi
4512 if test -z "$CXX"; then
4513   ac_ct_CXX=$CXX
4514   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4515 do
4516   # Extract the first word of "$ac_prog", so it can be a program name with args.
4517 set dummy $ac_prog; ac_word=$2
4518 echo "$as_me:$LINENO: checking for $ac_word" >&5
4519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4520 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4521   echo $ECHO_N "(cached) $ECHO_C" >&6
4522 else
4523   if test -n "$ac_ct_CXX"; then
4524   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4525 else
4526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4527 for as_dir in $PATH
4528 do
4529   IFS=$as_save_IFS
4530   test -z "$as_dir" && as_dir=.
4531   for ac_exec_ext in '' $ac_executable_extensions; do
4532   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4533     ac_cv_prog_ac_ct_CXX="$ac_prog"
4534     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4535     break 2
4536   fi
4537 done
4538 done
4539
4540 fi
4541 fi
4542 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4543 if test -n "$ac_ct_CXX"; then
4544   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4545 echo "${ECHO_T}$ac_ct_CXX" >&6
4546 else
4547   echo "$as_me:$LINENO: result: no" >&5
4548 echo "${ECHO_T}no" >&6
4549 fi
4550
4551   test -n "$ac_ct_CXX" && break
4552 done
4553 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4554
4555   CXX=$ac_ct_CXX
4556 fi
4557
4558
4559 # Provide some information about the compiler.
4560 echo "$as_me:$LINENO:" \
4561      "checking for C++ compiler version" >&5
4562 ac_compiler=`set X $ac_compile; echo $2`
4563 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4564   (eval $ac_compiler --version </dev/null >&5) 2>&5
4565   ac_status=$?
4566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567   (exit $ac_status); }
4568 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4569   (eval $ac_compiler -v </dev/null >&5) 2>&5
4570   ac_status=$?
4571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572   (exit $ac_status); }
4573 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4574   (eval $ac_compiler -V </dev/null >&5) 2>&5
4575   ac_status=$?
4576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577   (exit $ac_status); }
4578
4579 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4580 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4581 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4582   echo $ECHO_N "(cached) $ECHO_C" >&6
4583 else
4584   cat >conftest.$ac_ext <<_ACEOF
4585 /* confdefs.h.  */
4586 _ACEOF
4587 cat confdefs.h >>conftest.$ac_ext
4588 cat >>conftest.$ac_ext <<_ACEOF
4589 /* end confdefs.h.  */
4590
4591 int
4592 main ()
4593 {
4594 #ifndef __GNUC__
4595        choke me
4596 #endif
4597
4598   ;
4599   return 0;
4600 }
4601 _ACEOF
4602 rm -f conftest.$ac_objext
4603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4604   (eval $ac_compile) 2>conftest.er1
4605   ac_status=$?
4606   grep -v '^ *+' conftest.er1 >conftest.err
4607   rm -f conftest.er1
4608   cat conftest.err >&5
4609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610   (exit $ac_status); } &&
4611          { ac_try='test -z "$ac_cxx_werror_flag"
4612                          || test ! -s conftest.err'
4613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4614   (eval $ac_try) 2>&5
4615   ac_status=$?
4616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617   (exit $ac_status); }; } &&
4618          { ac_try='test -s conftest.$ac_objext'
4619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4620   (eval $ac_try) 2>&5
4621   ac_status=$?
4622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623   (exit $ac_status); }; }; then
4624   ac_compiler_gnu=yes
4625 else
4626   echo "$as_me: failed program was:" >&5
4627 sed 's/^/| /' conftest.$ac_ext >&5
4628
4629 ac_compiler_gnu=no
4630 fi
4631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4632 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4633
4634 fi
4635 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4636 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4637 GXX=`test $ac_compiler_gnu = yes && echo yes`
4638 ac_test_CXXFLAGS=${CXXFLAGS+set}
4639 ac_save_CXXFLAGS=$CXXFLAGS
4640 CXXFLAGS="-g"
4641 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4642 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4643 if test "${ac_cv_prog_cxx_g+set}" = set; then
4644   echo $ECHO_N "(cached) $ECHO_C" >&6
4645 else
4646   cat >conftest.$ac_ext <<_ACEOF
4647 /* confdefs.h.  */
4648 _ACEOF
4649 cat confdefs.h >>conftest.$ac_ext
4650 cat >>conftest.$ac_ext <<_ACEOF
4651 /* end confdefs.h.  */
4652
4653 int
4654 main ()
4655 {
4656
4657   ;
4658   return 0;
4659 }
4660 _ACEOF
4661 rm -f conftest.$ac_objext
4662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4663   (eval $ac_compile) 2>conftest.er1
4664   ac_status=$?
4665   grep -v '^ *+' conftest.er1 >conftest.err
4666   rm -f conftest.er1
4667   cat conftest.err >&5
4668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669   (exit $ac_status); } &&
4670          { ac_try='test -z "$ac_cxx_werror_flag"
4671                          || test ! -s conftest.err'
4672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4673   (eval $ac_try) 2>&5
4674   ac_status=$?
4675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676   (exit $ac_status); }; } &&
4677          { ac_try='test -s conftest.$ac_objext'
4678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4679   (eval $ac_try) 2>&5
4680   ac_status=$?
4681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682   (exit $ac_status); }; }; then
4683   ac_cv_prog_cxx_g=yes
4684 else
4685   echo "$as_me: failed program was:" >&5
4686 sed 's/^/| /' conftest.$ac_ext >&5
4687
4688 ac_cv_prog_cxx_g=no
4689 fi
4690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4691 fi
4692 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4693 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4694 if test "$ac_test_CXXFLAGS" = set; then
4695   CXXFLAGS=$ac_save_CXXFLAGS
4696 elif test $ac_cv_prog_cxx_g = yes; then
4697   if test "$GXX" = yes; then
4698     CXXFLAGS="-g -O2"
4699   else
4700     CXXFLAGS="-g"
4701   fi
4702 else
4703   if test "$GXX" = yes; then
4704     CXXFLAGS="-O2"
4705   else
4706     CXXFLAGS=
4707   fi
4708 fi
4709 for ac_declaration in \
4710    '' \
4711    'extern "C" void std::exit (int) throw (); using std::exit;' \
4712    'extern "C" void std::exit (int); using std::exit;' \
4713    'extern "C" void exit (int) throw ();' \
4714    'extern "C" void exit (int);' \
4715    'void exit (int);'
4716 do
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_declaration
4724 #include <stdlib.h>
4725 int
4726 main ()
4727 {
4728 exit (42);
4729   ;
4730   return 0;
4731 }
4732 _ACEOF
4733 rm -f conftest.$ac_objext
4734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4735   (eval $ac_compile) 2>conftest.er1
4736   ac_status=$?
4737   grep -v '^ *+' conftest.er1 >conftest.err
4738   rm -f conftest.er1
4739   cat conftest.err >&5
4740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741   (exit $ac_status); } &&
4742          { ac_try='test -z "$ac_cxx_werror_flag"
4743                          || test ! -s conftest.err'
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); }; } &&
4749          { ac_try='test -s conftest.$ac_objext'
4750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4751   (eval $ac_try) 2>&5
4752   ac_status=$?
4753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754   (exit $ac_status); }; }; then
4755   :
4756 else
4757   echo "$as_me: failed program was:" >&5
4758 sed 's/^/| /' conftest.$ac_ext >&5
4759
4760 continue
4761 fi
4762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4763   cat >conftest.$ac_ext <<_ACEOF
4764 /* confdefs.h.  */
4765 _ACEOF
4766 cat confdefs.h >>conftest.$ac_ext
4767 cat >>conftest.$ac_ext <<_ACEOF
4768 /* end confdefs.h.  */
4769 $ac_declaration
4770 int
4771 main ()
4772 {
4773 exit (42);
4774   ;
4775   return 0;
4776 }
4777 _ACEOF
4778 rm -f conftest.$ac_objext
4779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4780   (eval $ac_compile) 2>conftest.er1
4781   ac_status=$?
4782   grep -v '^ *+' conftest.er1 >conftest.err
4783   rm -f conftest.er1
4784   cat conftest.err >&5
4785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786   (exit $ac_status); } &&
4787          { ac_try='test -z "$ac_cxx_werror_flag"
4788                          || test ! -s conftest.err'
4789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4790   (eval $ac_try) 2>&5
4791   ac_status=$?
4792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793   (exit $ac_status); }; } &&
4794          { ac_try='test -s conftest.$ac_objext'
4795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4796   (eval $ac_try) 2>&5
4797   ac_status=$?
4798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799   (exit $ac_status); }; }; then
4800   break
4801 else
4802   echo "$as_me: failed program was:" >&5
4803 sed 's/^/| /' conftest.$ac_ext >&5
4804
4805 fi
4806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4807 done
4808 rm -f conftest*
4809 if test -n "$ac_declaration"; then
4810   echo '#ifdef __cplusplus' >>confdefs.h
4811   echo $ac_declaration      >>confdefs.h
4812   echo '#endif'             >>confdefs.h
4813 fi
4814
4815 ac_ext=cc
4816 ac_cpp='$CXXCPP $CPPFLAGS'
4817 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4818 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4819 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4820
4821 depcc="$CXX"  am_compiler_list=
4822
4823 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4824 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4825 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4826   echo $ECHO_N "(cached) $ECHO_C" >&6
4827 else
4828   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4829   # We make a subdir and do the tests there.  Otherwise we can end up
4830   # making bogus files that we don't know about and never remove.  For
4831   # instance it was reported that on HP-UX the gcc test will end up
4832   # making a dummy file named `D' -- because `-MD' means `put the output
4833   # in D'.
4834   mkdir conftest.dir
4835   # Copy depcomp to subdir because otherwise we won't find it if we're
4836   # using a relative directory.
4837   cp "$am_depcomp" conftest.dir
4838   cd conftest.dir
4839   # We will build objects and dependencies in a subdirectory because
4840   # it helps to detect inapplicable dependency modes.  For instance
4841   # both Tru64's cc and ICC support -MD to output dependencies as a
4842   # side effect of compilation, but ICC will put the dependencies in
4843   # the current directory while Tru64 will put them in the object
4844   # directory.
4845   mkdir sub
4846
4847   am_cv_CXX_dependencies_compiler_type=none
4848   if test "$am_compiler_list" = ""; then
4849      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4850   fi
4851   for depmode in $am_compiler_list; do
4852     # Setup a source with many dependencies, because some compilers
4853     # like to wrap large dependency lists on column 80 (with \), and
4854     # we should not choose a depcomp mode which is confused by this.
4855     #
4856     # We need to recreate these files for each test, as the compiler may
4857     # overwrite some of them when testing with obscure command lines.
4858     # This happens at least with the AIX C compiler.
4859     : > sub/conftest.c
4860     for i in 1 2 3 4 5 6; do
4861       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4862       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4863       # Solaris 8's {/usr,}/bin/sh.
4864       touch sub/conftst$i.h
4865     done
4866     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4867
4868     case $depmode in
4869     nosideeffect)
4870       # after this tag, mechanisms are not by side-effect, so they'll
4871       # only be used when explicitly requested
4872       if test "x$enable_dependency_tracking" = xyes; then
4873         continue
4874       else
4875         break
4876       fi
4877       ;;
4878     none) break ;;
4879     esac
4880     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4881     # mode.  It turns out that the SunPro C++ compiler does not properly
4882     # handle `-M -o', and we need to detect this.
4883     if depmode=$depmode \
4884        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4885        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4886        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4887          >/dev/null 2>conftest.err &&
4888        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4889        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4890        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4891       # icc doesn't choke on unknown options, it will just issue warnings
4892       # or remarks (even with -Werror).  So we grep stderr for any message
4893       # that says an option was ignored or not supported.
4894       # When given -MP, icc 7.0 and 7.1 complain thusly:
4895       #   icc: Command line warning: ignoring option '-M'; no argument required
4896       # The diagnosis changed in icc 8.0:
4897       #   icc: Command line remark: option '-MP' not supported
4898       if (grep 'ignoring option' conftest.err ||
4899           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4900         am_cv_CXX_dependencies_compiler_type=$depmode
4901         break
4902       fi
4903     fi
4904   done
4905
4906   cd ..
4907   rm -rf conftest.dir
4908 else
4909   am_cv_CXX_dependencies_compiler_type=none
4910 fi
4911
4912 fi
4913 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4914 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4915 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4916
4917
4918
4919 if
4920   test "x$enable_dependency_tracking" != xno \
4921   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4922   am__fastdepCXX_TRUE=
4923   am__fastdepCXX_FALSE='#'
4924 else
4925   am__fastdepCXX_TRUE='#'
4926   am__fastdepCXX_FALSE=
4927 fi
4928
4929
4930 ac_ext=cc
4931 ac_cpp='$CXXCPP $CPPFLAGS'
4932 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4933 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4934 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4935 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4936 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4937 if test -z "$CXXCPP"; then
4938   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4939   echo $ECHO_N "(cached) $ECHO_C" >&6
4940 else
4941       # Double quotes because CXXCPP needs to be expanded
4942     for CXXCPP in "$CXX -E" "/lib/cpp"
4943     do
4944       ac_preproc_ok=false
4945 for ac_cxx_preproc_warn_flag in '' yes
4946 do
4947   # Use a header file that comes with gcc, so configuring glibc
4948   # with a fresh cross-compiler works.
4949   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4950   # <limits.h> exists even on freestanding compilers.
4951   # On the NeXT, cc -E runs the code through the compiler's parser,
4952   # not just through cpp. "Syntax error" is here to catch this case.
4953   cat >conftest.$ac_ext <<_ACEOF
4954 /* confdefs.h.  */
4955 _ACEOF
4956 cat confdefs.h >>conftest.$ac_ext
4957 cat >>conftest.$ac_ext <<_ACEOF
4958 /* end confdefs.h.  */
4959 #ifdef __STDC__
4960 # include <limits.h>
4961 #else
4962 # include <assert.h>
4963 #endif
4964                      Syntax error
4965 _ACEOF
4966 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4967   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4968   ac_status=$?
4969   grep -v '^ *+' conftest.er1 >conftest.err
4970   rm -f conftest.er1
4971   cat conftest.err >&5
4972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973   (exit $ac_status); } >/dev/null; then
4974   if test -s conftest.err; then
4975     ac_cpp_err=$ac_cxx_preproc_warn_flag
4976     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4977   else
4978     ac_cpp_err=
4979   fi
4980 else
4981   ac_cpp_err=yes
4982 fi
4983 if test -z "$ac_cpp_err"; then
4984   :
4985 else
4986   echo "$as_me: failed program was:" >&5
4987 sed 's/^/| /' conftest.$ac_ext >&5
4988
4989   # Broken: fails on valid input.
4990 continue
4991 fi
4992 rm -f conftest.err conftest.$ac_ext
4993
4994   # OK, works on sane cases.  Now check whether non-existent headers
4995   # can be detected and how.
4996   cat >conftest.$ac_ext <<_ACEOF
4997 /* confdefs.h.  */
4998 _ACEOF
4999 cat confdefs.h >>conftest.$ac_ext
5000 cat >>conftest.$ac_ext <<_ACEOF
5001 /* end confdefs.h.  */
5002 #include <ac_nonexistent.h>
5003 _ACEOF
5004 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5005   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5006   ac_status=$?
5007   grep -v '^ *+' conftest.er1 >conftest.err
5008   rm -f conftest.er1
5009   cat conftest.err >&5
5010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011   (exit $ac_status); } >/dev/null; then
5012   if test -s conftest.err; then
5013     ac_cpp_err=$ac_cxx_preproc_warn_flag
5014     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5015   else
5016     ac_cpp_err=
5017   fi
5018 else
5019   ac_cpp_err=yes
5020 fi
5021 if test -z "$ac_cpp_err"; then
5022   # Broken: success on invalid input.
5023 continue
5024 else
5025   echo "$as_me: failed program was:" >&5
5026 sed 's/^/| /' conftest.$ac_ext >&5
5027
5028   # Passes both tests.
5029 ac_preproc_ok=:
5030 break
5031 fi
5032 rm -f conftest.err conftest.$ac_ext
5033
5034 done
5035 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5036 rm -f conftest.err conftest.$ac_ext
5037 if $ac_preproc_ok; then
5038   break
5039 fi
5040
5041     done
5042     ac_cv_prog_CXXCPP=$CXXCPP
5043
5044 fi
5045   CXXCPP=$ac_cv_prog_CXXCPP
5046 else
5047   ac_cv_prog_CXXCPP=$CXXCPP
5048 fi
5049 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5050 echo "${ECHO_T}$CXXCPP" >&6
5051 ac_preproc_ok=false
5052 for ac_cxx_preproc_warn_flag in '' yes
5053 do
5054   # Use a header file that comes with gcc, so configuring glibc
5055   # with a fresh cross-compiler works.
5056   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5057   # <limits.h> exists even on freestanding compilers.
5058   # On the NeXT, cc -E runs the code through the compiler's parser,
5059   # not just through cpp. "Syntax error" is here to catch this case.
5060   cat >conftest.$ac_ext <<_ACEOF
5061 /* confdefs.h.  */
5062 _ACEOF
5063 cat confdefs.h >>conftest.$ac_ext
5064 cat >>conftest.$ac_ext <<_ACEOF
5065 /* end confdefs.h.  */
5066 #ifdef __STDC__
5067 # include <limits.h>
5068 #else
5069 # include <assert.h>
5070 #endif
5071                      Syntax error
5072 _ACEOF
5073 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5074   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5075   ac_status=$?
5076   grep -v '^ *+' conftest.er1 >conftest.err
5077   rm -f conftest.er1
5078   cat conftest.err >&5
5079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080   (exit $ac_status); } >/dev/null; then
5081   if test -s conftest.err; then
5082     ac_cpp_err=$ac_cxx_preproc_warn_flag
5083     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5084   else
5085     ac_cpp_err=
5086   fi
5087 else
5088   ac_cpp_err=yes
5089 fi
5090 if test -z "$ac_cpp_err"; then
5091   :
5092 else
5093   echo "$as_me: failed program was:" >&5
5094 sed 's/^/| /' conftest.$ac_ext >&5
5095
5096   # Broken: fails on valid input.
5097 continue
5098 fi
5099 rm -f conftest.err conftest.$ac_ext
5100
5101   # OK, works on sane cases.  Now check whether non-existent headers
5102   # can be detected and how.
5103   cat >conftest.$ac_ext <<_ACEOF
5104 /* confdefs.h.  */
5105 _ACEOF
5106 cat confdefs.h >>conftest.$ac_ext
5107 cat >>conftest.$ac_ext <<_ACEOF
5108 /* end confdefs.h.  */
5109 #include <ac_nonexistent.h>
5110 _ACEOF
5111 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5112   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5113   ac_status=$?
5114   grep -v '^ *+' conftest.er1 >conftest.err
5115   rm -f conftest.er1
5116   cat conftest.err >&5
5117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118   (exit $ac_status); } >/dev/null; then
5119   if test -s conftest.err; then
5120     ac_cpp_err=$ac_cxx_preproc_warn_flag
5121     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5122   else
5123     ac_cpp_err=
5124   fi
5125 else
5126   ac_cpp_err=yes
5127 fi
5128 if test -z "$ac_cpp_err"; then
5129   # Broken: success on invalid input.
5130 continue
5131 else
5132   echo "$as_me: failed program was:" >&5
5133 sed 's/^/| /' conftest.$ac_ext >&5
5134
5135   # Passes both tests.
5136 ac_preproc_ok=:
5137 break
5138 fi
5139 rm -f conftest.err conftest.$ac_ext
5140
5141 done
5142 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5143 rm -f conftest.err conftest.$ac_ext
5144 if $ac_preproc_ok; then
5145   :
5146 else
5147   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5148 See \`config.log' for more details." >&5
5149 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5150 See \`config.log' for more details." >&2;}
5151    { (exit 1); exit 1; }; }
5152 fi
5153
5154 ac_ext=cc
5155 ac_cpp='$CXXCPP $CPPFLAGS'
5156 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5157 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5158 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5159
5160
5161 ac_ext=f
5162 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5163 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5164 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5165 if test -n "$ac_tool_prefix"; then
5166   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5167   do
5168     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5169 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5170 echo "$as_me:$LINENO: checking for $ac_word" >&5
5171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5172 if test "${ac_cv_prog_F77+set}" = set; then
5173   echo $ECHO_N "(cached) $ECHO_C" >&6
5174 else
5175   if test -n "$F77"; then
5176   ac_cv_prog_F77="$F77" # Let the user override the test.
5177 else
5178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5179 for as_dir in $PATH
5180 do
5181   IFS=$as_save_IFS
5182   test -z "$as_dir" && as_dir=.
5183   for ac_exec_ext in '' $ac_executable_extensions; do
5184   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5185     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5186     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5187     break 2
5188   fi
5189 done
5190 done
5191
5192 fi
5193 fi
5194 F77=$ac_cv_prog_F77
5195 if test -n "$F77"; then
5196   echo "$as_me:$LINENO: result: $F77" >&5
5197 echo "${ECHO_T}$F77" >&6
5198 else
5199   echo "$as_me:$LINENO: result: no" >&5
5200 echo "${ECHO_T}no" >&6
5201 fi
5202
5203     test -n "$F77" && break
5204   done
5205 fi
5206 if test -z "$F77"; then
5207   ac_ct_F77=$F77
5208   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5209 do
5210   # Extract the first word of "$ac_prog", so it can be a program name with args.
5211 set dummy $ac_prog; ac_word=$2
5212 echo "$as_me:$LINENO: checking for $ac_word" >&5
5213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5214 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5215   echo $ECHO_N "(cached) $ECHO_C" >&6
5216 else
5217   if test -n "$ac_ct_F77"; then
5218   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5219 else
5220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5221 for as_dir in $PATH
5222 do
5223   IFS=$as_save_IFS
5224   test -z "$as_dir" && as_dir=.
5225   for ac_exec_ext in '' $ac_executable_extensions; do
5226   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5227     ac_cv_prog_ac_ct_F77="$ac_prog"
5228     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5229     break 2
5230   fi
5231 done
5232 done
5233
5234 fi
5235 fi
5236 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5237 if test -n "$ac_ct_F77"; then
5238   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5239 echo "${ECHO_T}$ac_ct_F77" >&6
5240 else
5241   echo "$as_me:$LINENO: result: no" >&5
5242 echo "${ECHO_T}no" >&6
5243 fi
5244
5245   test -n "$ac_ct_F77" && break
5246 done
5247
5248   F77=$ac_ct_F77
5249 fi
5250
5251
5252 # Provide some information about the compiler.
5253 echo "$as_me:5253:" \
5254      "checking for Fortran 77 compiler version" >&5
5255 ac_compiler=`set X $ac_compile; echo $2`
5256 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5257   (eval $ac_compiler --version </dev/null >&5) 2>&5
5258   ac_status=$?
5259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260   (exit $ac_status); }
5261 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5262   (eval $ac_compiler -v </dev/null >&5) 2>&5
5263   ac_status=$?
5264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265   (exit $ac_status); }
5266 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5267   (eval $ac_compiler -V </dev/null >&5) 2>&5
5268   ac_status=$?
5269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270   (exit $ac_status); }
5271 rm -f a.out
5272
5273 # If we don't use `.F' as extension, the preprocessor is not run on the
5274 # input file.  (Note that this only needs to work for GNU compilers.)
5275 ac_save_ext=$ac_ext
5276 ac_ext=F
5277 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5278 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5279 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5280   echo $ECHO_N "(cached) $ECHO_C" >&6
5281 else
5282   cat >conftest.$ac_ext <<_ACEOF
5283       program main
5284 #ifndef __GNUC__
5285        choke me
5286 #endif
5287
5288       end
5289 _ACEOF
5290 rm -f conftest.$ac_objext
5291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5292   (eval $ac_compile) 2>conftest.er1
5293   ac_status=$?
5294   grep -v '^ *+' conftest.er1 >conftest.err
5295   rm -f conftest.er1
5296   cat conftest.err >&5
5297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298   (exit $ac_status); } &&
5299          { ac_try='test -z "$ac_f77_werror_flag"
5300                          || test ! -s conftest.err'
5301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5302   (eval $ac_try) 2>&5
5303   ac_status=$?
5304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305   (exit $ac_status); }; } &&
5306          { ac_try='test -s conftest.$ac_objext'
5307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5308   (eval $ac_try) 2>&5
5309   ac_status=$?
5310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311   (exit $ac_status); }; }; then
5312   ac_compiler_gnu=yes
5313 else
5314   echo "$as_me: failed program was:" >&5
5315 sed 's/^/| /' conftest.$ac_ext >&5
5316
5317 ac_compiler_gnu=no
5318 fi
5319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5320 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5321
5322 fi
5323 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5324 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5325 ac_ext=$ac_save_ext
5326 ac_test_FFLAGS=${FFLAGS+set}
5327 ac_save_FFLAGS=$FFLAGS
5328 FFLAGS=
5329 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5330 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5331 if test "${ac_cv_prog_f77_g+set}" = set; then
5332   echo $ECHO_N "(cached) $ECHO_C" >&6
5333 else
5334   FFLAGS=-g
5335 cat >conftest.$ac_ext <<_ACEOF
5336       program main
5337
5338       end
5339 _ACEOF
5340 rm -f conftest.$ac_objext
5341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5342   (eval $ac_compile) 2>conftest.er1
5343   ac_status=$?
5344   grep -v '^ *+' conftest.er1 >conftest.err
5345   rm -f conftest.er1
5346   cat conftest.err >&5
5347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348   (exit $ac_status); } &&
5349          { ac_try='test -z "$ac_f77_werror_flag"
5350                          || test ! -s conftest.err'
5351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5352   (eval $ac_try) 2>&5
5353   ac_status=$?
5354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355   (exit $ac_status); }; } &&
5356          { ac_try='test -s conftest.$ac_objext'
5357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5358   (eval $ac_try) 2>&5
5359   ac_status=$?
5360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361   (exit $ac_status); }; }; then
5362   ac_cv_prog_f77_g=yes
5363 else
5364   echo "$as_me: failed program was:" >&5
5365 sed 's/^/| /' conftest.$ac_ext >&5
5366
5367 ac_cv_prog_f77_g=no
5368 fi
5369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5370
5371 fi
5372 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5373 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5374 if test "$ac_test_FFLAGS" = set; then
5375   FFLAGS=$ac_save_FFLAGS
5376 elif test $ac_cv_prog_f77_g = yes; then
5377   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5378     FFLAGS="-g -O2"
5379   else
5380     FFLAGS="-g"
5381   fi
5382 else
5383   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5384     FFLAGS="-O2"
5385   else
5386     FFLAGS=
5387   fi
5388 fi
5389
5390 G77=`test $ac_compiler_gnu = yes && echo yes`
5391 ac_ext=c
5392 ac_cpp='$CPP $CPPFLAGS'
5393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5396
5397
5398
5399 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5400
5401 # find the maximum length of command line arguments
5402 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5403 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5404 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5405   echo $ECHO_N "(cached) $ECHO_C" >&6
5406 else
5407     i=0
5408   teststring="ABCD"
5409
5410   case $build_os in
5411   msdosdjgpp*)
5412     # On DJGPP, this test can blow up pretty badly due to problems in libc
5413     # (any single argument exceeding 2000 bytes causes a buffer overrun
5414     # during glob expansion).  Even if it were fixed, the result of this
5415     # check would be larger than it should be.
5416     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5417     ;;
5418
5419   gnu*)
5420     # Under GNU Hurd, this test is not required because there is
5421     # no limit to the length of command line arguments.
5422     # Libtool will interpret -1 as no limit whatsoever
5423     lt_cv_sys_max_cmd_len=-1;
5424     ;;
5425
5426   cygwin* | mingw*)
5427     # On Win9x/ME, this test blows up -- it succeeds, but takes
5428     # about 5 minutes as the teststring grows exponentially.
5429     # Worse, since 9x/ME are not pre-emptively multitasking,
5430     # you end up with a "frozen" computer, even though with patience
5431     # the test eventually succeeds (with a max line length of 256k).
5432     # Instead, let's just punt: use the minimum linelength reported by
5433     # all of the supported platforms: 8192 (on NT/2K/XP).
5434     lt_cv_sys_max_cmd_len=8192;
5435     ;;
5436
5437   amigaos*)
5438     # On AmigaOS with pdksh, this test takes hours, literally.
5439     # So we just punt and use a minimum line length of 8192.
5440     lt_cv_sys_max_cmd_len=8192;
5441     ;;
5442
5443  *)
5444     # If test is not a shell built-in, we'll probably end up computing a
5445     # maximum length that is only half of the actual maximum length, but
5446     # we can't tell.
5447     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5448                = "XX$teststring") >/dev/null 2>&1 &&
5449             new_result=`expr "X$teststring" : ".*" 2>&1` &&
5450             lt_cv_sys_max_cmd_len=$new_result &&
5451             test $i != 17 # 1/2 MB should be enough
5452     do
5453       i=`expr $i + 1`
5454       teststring=$teststring$teststring
5455     done
5456     teststring=
5457     # Add a significant safety factor because C++ compilers can tack on massive
5458     # amounts of additional arguments before passing them to the linker.
5459     # It appears as though 1/2 is a usable value.
5460     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5461     ;;
5462   esac
5463
5464 fi
5465
5466 if test -n $lt_cv_sys_max_cmd_len ; then
5467   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5468 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5469 else
5470   echo "$as_me:$LINENO: result: none" >&5
5471 echo "${ECHO_T}none" >&6
5472 fi
5473
5474
5475
5476
5477 # Check for command to grab the raw symbol name followed by C symbol from nm.
5478 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5479 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5480 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5481   echo $ECHO_N "(cached) $ECHO_C" >&6
5482 else
5483
5484 # These are sane defaults that work on at least a few old systems.
5485 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5486
5487 # Character class describing NM global symbol codes.
5488 symcode='[BCDEGRST]'
5489
5490 # Regexp to match symbols that can be accessed directly from C.
5491 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5492
5493 # Transform the above into a raw symbol and a C symbol.
5494 symxfrm='\1 \2\3 \3'
5495
5496 # Transform an extracted symbol line into a proper C declaration
5497 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5498
5499 # Transform an extracted symbol line into symbol name and symbol address
5500 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'"
5501
5502 # Define system-specific variables.
5503 case $host_os in
5504 aix*)
5505   symcode='[BCDT]'
5506   ;;
5507 cygwin* | mingw* | pw32*)
5508   symcode='[ABCDGISTW]'
5509   ;;
5510 hpux*) # Its linker distinguishes data from code symbols
5511   if test "$host_cpu" = ia64; then
5512     symcode='[ABCDEGRST]'
5513   fi
5514   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5515   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'"
5516   ;;
5517 irix* | nonstopux*)
5518   symcode='[BCDEGRST]'
5519   ;;
5520 osf*)
5521   symcode='[BCDEGQRST]'
5522   ;;
5523 solaris* | sysv5*)
5524   symcode='[BDRT]'
5525   ;;
5526 sysv4)
5527   symcode='[DFNSTU]'
5528   ;;
5529 esac
5530
5531 # Handle CRLF in mingw tool chain
5532 opt_cr=
5533 case $build_os in
5534 mingw*)
5535   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5536   ;;
5537 esac
5538
5539 # If we're using GNU nm, then use its standard symbol codes.
5540 case `$NM -V 2>&1` in
5541 *GNU* | *'with BFD'*)
5542   symcode='[ABCDGIRSTW]' ;;
5543 esac
5544
5545 # Try without a prefix undercore, then with it.
5546 for ac_symprfx in "" "_"; do
5547
5548   # Write the raw and C identifiers.
5549   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5550
5551   # Check to see that the pipe works correctly.
5552   pipe_works=no
5553
5554   rm -f conftest*
5555   cat > conftest.$ac_ext <<EOF
5556 #ifdef __cplusplus
5557 extern "C" {
5558 #endif
5559 char nm_test_var;
5560 void nm_test_func(){}
5561 #ifdef __cplusplus
5562 }
5563 #endif
5564 int main(){nm_test_var='a';nm_test_func();return(0);}
5565 EOF
5566
5567   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5568   (eval $ac_compile) 2>&5
5569   ac_status=$?
5570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571   (exit $ac_status); }; then
5572     # Now try to grab the symbols.
5573     nlist=conftest.nm
5574     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5575   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5576   ac_status=$?
5577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578   (exit $ac_status); } && test -s "$nlist"; then
5579       # Try sorting and uniquifying the output.
5580       if sort "$nlist" | uniq > "$nlist"T; then
5581         mv -f "$nlist"T "$nlist"
5582       else
5583         rm -f "$nlist"T
5584       fi
5585
5586       # Make sure that we snagged all the symbols we need.
5587       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5588         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5589           cat <<EOF > conftest.$ac_ext
5590 #ifdef __cplusplus
5591 extern "C" {
5592 #endif
5593
5594 EOF
5595           # Now generate the symbol file.
5596           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5597
5598           cat <<EOF >> conftest.$ac_ext
5599 #if defined (__STDC__) && __STDC__
5600 # define lt_ptr_t void *
5601 #else
5602 # define lt_ptr_t char *
5603 # define const
5604 #endif
5605
5606 /* The mapping between symbol names and symbols. */
5607 const struct {
5608   const char *name;
5609   lt_ptr_t address;
5610 }
5611 lt_preloaded_symbols[] =
5612 {
5613 EOF
5614           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5615           cat <<\EOF >> conftest.$ac_ext
5616   {0, (lt_ptr_t) 0}
5617 };
5618
5619 #ifdef __cplusplus
5620 }
5621 #endif
5622 EOF
5623           # Now try linking the two files.
5624           mv conftest.$ac_objext conftstm.$ac_objext
5625           lt_save_LIBS="$LIBS"
5626           lt_save_CFLAGS="$CFLAGS"
5627           LIBS="conftstm.$ac_objext"
5628           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5629           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5630   (eval $ac_link) 2>&5
5631   ac_status=$?
5632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5634             pipe_works=yes
5635           fi
5636           LIBS="$lt_save_LIBS"
5637           CFLAGS="$lt_save_CFLAGS"
5638         else
5639           echo "cannot find nm_test_func in $nlist" >&5
5640         fi
5641       else
5642         echo "cannot find nm_test_var in $nlist" >&5
5643       fi
5644     else
5645       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5646     fi
5647   else
5648     echo "$progname: failed program was:" >&5
5649     cat conftest.$ac_ext >&5
5650   fi
5651   rm -f conftest* conftst*
5652
5653   # Do not use the global_symbol_pipe unless it works.
5654   if test "$pipe_works" = yes; then
5655     break
5656   else
5657     lt_cv_sys_global_symbol_pipe=
5658   fi
5659 done
5660
5661 fi
5662
5663 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5664   lt_cv_sys_global_symbol_to_cdecl=
5665 fi
5666 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5667   echo "$as_me:$LINENO: result: failed" >&5
5668 echo "${ECHO_T}failed" >&6
5669 else
5670   echo "$as_me:$LINENO: result: ok" >&5
5671 echo "${ECHO_T}ok" >&6
5672 fi
5673
5674 echo "$as_me:$LINENO: checking for objdir" >&5
5675 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5676 if test "${lt_cv_objdir+set}" = set; then
5677   echo $ECHO_N "(cached) $ECHO_C" >&6
5678 else
5679   rm -f .libs 2>/dev/null
5680 mkdir .libs 2>/dev/null
5681 if test -d .libs; then
5682   lt_cv_objdir=.libs
5683 else
5684   # MS-DOS does not allow filenames that begin with a dot.
5685   lt_cv_objdir=_libs
5686 fi
5687 rmdir .libs 2>/dev/null
5688 fi
5689 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5690 echo "${ECHO_T}$lt_cv_objdir" >&6
5691 objdir=$lt_cv_objdir
5692
5693
5694
5695
5696
5697 case $host_os in
5698 aix3*)
5699   # AIX sometimes has problems with the GCC collect2 program.  For some
5700   # reason, if we set the COLLECT_NAMES environment variable, the problems
5701   # vanish in a puff of smoke.
5702   if test "X${COLLECT_NAMES+set}" != Xset; then
5703     COLLECT_NAMES=
5704     export COLLECT_NAMES
5705   fi
5706   ;;
5707 esac
5708
5709 # Sed substitution that helps us do robust quoting.  It backslashifies
5710 # metacharacters that are still active within double-quoted strings.
5711 Xsed='sed -e s/^X//'
5712 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5713
5714 # Same as above, but do not quote variable references.
5715 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5716
5717 # Sed substitution to delay expansion of an escaped shell variable in a
5718 # double_quote_subst'ed string.
5719 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5720
5721 # Sed substitution to avoid accidental globbing in evaled expressions
5722 no_glob_subst='s/\*/\\\*/g'
5723
5724 # Constants:
5725 rm="rm -f"
5726
5727 # Global variables:
5728 default_ofile=libtool
5729 can_build_shared=yes
5730
5731 # All known linkers require a `.a' archive for static linking (except M$VC,
5732 # which needs '.lib').
5733 libext=a
5734 ltmain="$ac_aux_dir/ltmain.sh"
5735 ofile="$default_ofile"
5736 with_gnu_ld="$lt_cv_prog_gnu_ld"
5737
5738 if test -n "$ac_tool_prefix"; then
5739   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5740 set dummy ${ac_tool_prefix}ar; ac_word=$2
5741 echo "$as_me:$LINENO: checking for $ac_word" >&5
5742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5743 if test "${ac_cv_prog_AR+set}" = set; then
5744   echo $ECHO_N "(cached) $ECHO_C" >&6
5745 else
5746   if test -n "$AR"; then
5747   ac_cv_prog_AR="$AR" # Let the user override the test.
5748 else
5749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5750 for as_dir in $PATH
5751 do
5752   IFS=$as_save_IFS
5753   test -z "$as_dir" && as_dir=.
5754   for ac_exec_ext in '' $ac_executable_extensions; do
5755   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5756     ac_cv_prog_AR="${ac_tool_prefix}ar"
5757     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5758     break 2
5759   fi
5760 done
5761 done
5762
5763 fi
5764 fi
5765 AR=$ac_cv_prog_AR
5766 if test -n "$AR"; then
5767   echo "$as_me:$LINENO: result: $AR" >&5
5768 echo "${ECHO_T}$AR" >&6
5769 else
5770   echo "$as_me:$LINENO: result: no" >&5
5771 echo "${ECHO_T}no" >&6
5772 fi
5773
5774 fi
5775 if test -z "$ac_cv_prog_AR"; then
5776   ac_ct_AR=$AR
5777   # Extract the first word of "ar", so it can be a program name with args.
5778 set dummy ar; ac_word=$2
5779 echo "$as_me:$LINENO: checking for $ac_word" >&5
5780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5781 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5782   echo $ECHO_N "(cached) $ECHO_C" >&6
5783 else
5784   if test -n "$ac_ct_AR"; then
5785   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5786 else
5787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5788 for as_dir in $PATH
5789 do
5790   IFS=$as_save_IFS
5791   test -z "$as_dir" && as_dir=.
5792   for ac_exec_ext in '' $ac_executable_extensions; do
5793   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5794     ac_cv_prog_ac_ct_AR="ar"
5795     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5796     break 2
5797   fi
5798 done
5799 done
5800
5801   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5802 fi
5803 fi
5804 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5805 if test -n "$ac_ct_AR"; then
5806   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5807 echo "${ECHO_T}$ac_ct_AR" >&6
5808 else
5809   echo "$as_me:$LINENO: result: no" >&5
5810 echo "${ECHO_T}no" >&6
5811 fi
5812
5813   AR=$ac_ct_AR
5814 else
5815   AR="$ac_cv_prog_AR"
5816 fi
5817
5818 if test -n "$ac_tool_prefix"; then
5819   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5820 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5821 echo "$as_me:$LINENO: checking for $ac_word" >&5
5822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5823 if test "${ac_cv_prog_RANLIB+set}" = set; then
5824   echo $ECHO_N "(cached) $ECHO_C" >&6
5825 else
5826   if test -n "$RANLIB"; then
5827   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5828 else
5829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5830 for as_dir in $PATH
5831 do
5832   IFS=$as_save_IFS
5833   test -z "$as_dir" && as_dir=.
5834   for ac_exec_ext in '' $ac_executable_extensions; do
5835   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5836     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5837     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5838     break 2
5839   fi
5840 done
5841 done
5842
5843 fi
5844 fi
5845 RANLIB=$ac_cv_prog_RANLIB
5846 if test -n "$RANLIB"; then
5847   echo "$as_me:$LINENO: result: $RANLIB" >&5
5848 echo "${ECHO_T}$RANLIB" >&6
5849 else
5850   echo "$as_me:$LINENO: result: no" >&5
5851 echo "${ECHO_T}no" >&6
5852 fi
5853
5854 fi
5855 if test -z "$ac_cv_prog_RANLIB"; then
5856   ac_ct_RANLIB=$RANLIB
5857   # Extract the first word of "ranlib", so it can be a program name with args.
5858 set dummy ranlib; ac_word=$2
5859 echo "$as_me:$LINENO: checking for $ac_word" >&5
5860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5861 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5862   echo $ECHO_N "(cached) $ECHO_C" >&6
5863 else
5864   if test -n "$ac_ct_RANLIB"; then
5865   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5866 else
5867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5868 for as_dir in $PATH
5869 do
5870   IFS=$as_save_IFS
5871   test -z "$as_dir" && as_dir=.
5872   for ac_exec_ext in '' $ac_executable_extensions; do
5873   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5874     ac_cv_prog_ac_ct_RANLIB="ranlib"
5875     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5876     break 2
5877   fi
5878 done
5879 done
5880
5881   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5882 fi
5883 fi
5884 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5885 if test -n "$ac_ct_RANLIB"; then
5886   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5887 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5888 else
5889   echo "$as_me:$LINENO: result: no" >&5
5890 echo "${ECHO_T}no" >&6
5891 fi
5892
5893   RANLIB=$ac_ct_RANLIB
5894 else
5895   RANLIB="$ac_cv_prog_RANLIB"
5896 fi
5897
5898 if test -n "$ac_tool_prefix"; then
5899   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5900 set dummy ${ac_tool_prefix}strip; ac_word=$2
5901 echo "$as_me:$LINENO: checking for $ac_word" >&5
5902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5903 if test "${ac_cv_prog_STRIP+set}" = set; then
5904   echo $ECHO_N "(cached) $ECHO_C" >&6
5905 else
5906   if test -n "$STRIP"; then
5907   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5908 else
5909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5910 for as_dir in $PATH
5911 do
5912   IFS=$as_save_IFS
5913   test -z "$as_dir" && as_dir=.
5914   for ac_exec_ext in '' $ac_executable_extensions; do
5915   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5916     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5917     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5918     break 2
5919   fi
5920 done
5921 done
5922
5923 fi
5924 fi
5925 STRIP=$ac_cv_prog_STRIP
5926 if test -n "$STRIP"; then
5927   echo "$as_me:$LINENO: result: $STRIP" >&5
5928 echo "${ECHO_T}$STRIP" >&6
5929 else
5930   echo "$as_me:$LINENO: result: no" >&5
5931 echo "${ECHO_T}no" >&6
5932 fi
5933
5934 fi
5935 if test -z "$ac_cv_prog_STRIP"; then
5936   ac_ct_STRIP=$STRIP
5937   # Extract the first word of "strip", so it can be a program name with args.
5938 set dummy strip; ac_word=$2
5939 echo "$as_me:$LINENO: checking for $ac_word" >&5
5940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5941 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5942   echo $ECHO_N "(cached) $ECHO_C" >&6
5943 else
5944   if test -n "$ac_ct_STRIP"; then
5945   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5946 else
5947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5948 for as_dir in $PATH
5949 do
5950   IFS=$as_save_IFS
5951   test -z "$as_dir" && as_dir=.
5952   for ac_exec_ext in '' $ac_executable_extensions; do
5953   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5954     ac_cv_prog_ac_ct_STRIP="strip"
5955     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5956     break 2
5957   fi
5958 done
5959 done
5960
5961   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5962 fi
5963 fi
5964 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5965 if test -n "$ac_ct_STRIP"; then
5966   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5967 echo "${ECHO_T}$ac_ct_STRIP" >&6
5968 else
5969   echo "$as_me:$LINENO: result: no" >&5
5970 echo "${ECHO_T}no" >&6
5971 fi
5972
5973   STRIP=$ac_ct_STRIP
5974 else
5975   STRIP="$ac_cv_prog_STRIP"
5976 fi
5977
5978
5979 old_CC="$CC"
5980 old_CFLAGS="$CFLAGS"
5981
5982 # Set sane defaults for various variables
5983 test -z "$AR" && AR=ar
5984 test -z "$AR_FLAGS" && AR_FLAGS=cru
5985 test -z "$AS" && AS=as
5986 test -z "$CC" && CC=cc
5987 test -z "$LTCC" && LTCC=$CC
5988 test -z "$DLLTOOL" && DLLTOOL=dlltool
5989 test -z "$LD" && LD=ld
5990 test -z "$LN_S" && LN_S="ln -s"
5991 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5992 test -z "$NM" && NM=nm
5993 test -z "$SED" && SED=sed
5994 test -z "$OBJDUMP" && OBJDUMP=objdump
5995 test -z "$RANLIB" && RANLIB=:
5996 test -z "$STRIP" && STRIP=:
5997 test -z "$ac_objext" && ac_objext=o
5998
5999 # Determine commands to create old-style static archives.
6000 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6001 old_postinstall_cmds='chmod 644 $oldlib'
6002 old_postuninstall_cmds=
6003
6004 if test -n "$RANLIB"; then
6005   case $host_os in
6006   openbsd*)
6007     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6008     ;;
6009   *)
6010     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6011     ;;
6012   esac
6013   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6014 fi
6015
6016 # Only perform the check for file, if the check method requires it
6017 case $deplibs_check_method in
6018 file_magic*)
6019   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6020     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6021 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6022 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6023   echo $ECHO_N "(cached) $ECHO_C" >&6
6024 else
6025   case $MAGIC_CMD in
6026 [\\/*] |  ?:[\\/]*)
6027   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6028   ;;
6029 *)
6030   lt_save_MAGIC_CMD="$MAGIC_CMD"
6031   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6032   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6033   for ac_dir in $ac_dummy; do
6034     IFS="$lt_save_ifs"
6035     test -z "$ac_dir" && ac_dir=.
6036     if test -f $ac_dir/${ac_tool_prefix}file; then
6037       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6038       if test -n "$file_magic_test_file"; then
6039         case $deplibs_check_method in
6040         "file_magic "*)
6041           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6042           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6043           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6044             $EGREP "$file_magic_regex" > /dev/null; then
6045             :
6046           else
6047             cat <<EOF 1>&2
6048
6049 *** Warning: the command libtool uses to detect shared libraries,
6050 *** $file_magic_cmd, produces output that libtool cannot recognize.
6051 *** The result is that libtool may fail to recognize shared libraries
6052 *** as such.  This will affect the creation of libtool libraries that
6053 *** depend on shared libraries, but programs linked with such libtool
6054 *** libraries will work regardless of this problem.  Nevertheless, you
6055 *** may want to report the problem to your system manager and/or to
6056 *** bug-libtool@gnu.org
6057
6058 EOF
6059           fi ;;
6060         esac
6061       fi
6062       break
6063     fi
6064   done
6065   IFS="$lt_save_ifs"
6066   MAGIC_CMD="$lt_save_MAGIC_CMD"
6067   ;;
6068 esac
6069 fi
6070
6071 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6072 if test -n "$MAGIC_CMD"; then
6073   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6074 echo "${ECHO_T}$MAGIC_CMD" >&6
6075 else
6076   echo "$as_me:$LINENO: result: no" >&5
6077 echo "${ECHO_T}no" >&6
6078 fi
6079
6080 if test -z "$lt_cv_path_MAGIC_CMD"; then
6081   if test -n "$ac_tool_prefix"; then
6082     echo "$as_me:$LINENO: checking for file" >&5
6083 echo $ECHO_N "checking for file... $ECHO_C" >&6
6084 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6085   echo $ECHO_N "(cached) $ECHO_C" >&6
6086 else
6087   case $MAGIC_CMD in
6088 [\\/*] |  ?:[\\/]*)
6089   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6090   ;;
6091 *)
6092   lt_save_MAGIC_CMD="$MAGIC_CMD"
6093   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6094   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6095   for ac_dir in $ac_dummy; do
6096     IFS="$lt_save_ifs"
6097     test -z "$ac_dir" && ac_dir=.
6098     if test -f $ac_dir/file; then
6099       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6100       if test -n "$file_magic_test_file"; then
6101         case $deplibs_check_method in
6102         "file_magic "*)
6103           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6104           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6105           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6106             $EGREP "$file_magic_regex" > /dev/null; then
6107             :
6108           else
6109             cat <<EOF 1>&2
6110
6111 *** Warning: the command libtool uses to detect shared libraries,
6112 *** $file_magic_cmd, produces output that libtool cannot recognize.
6113 *** The result is that libtool may fail to recognize shared libraries
6114 *** as such.  This will affect the creation of libtool libraries that
6115 *** depend on shared libraries, but programs linked with such libtool
6116 *** libraries will work regardless of this problem.  Nevertheless, you
6117 *** may want to report the problem to your system manager and/or to
6118 *** bug-libtool@gnu.org
6119
6120 EOF
6121           fi ;;
6122         esac
6123       fi
6124       break
6125     fi
6126   done
6127   IFS="$lt_save_ifs"
6128   MAGIC_CMD="$lt_save_MAGIC_CMD"
6129   ;;
6130 esac
6131 fi
6132
6133 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6134 if test -n "$MAGIC_CMD"; then
6135   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6136 echo "${ECHO_T}$MAGIC_CMD" >&6
6137 else
6138   echo "$as_me:$LINENO: result: no" >&5
6139 echo "${ECHO_T}no" >&6
6140 fi
6141
6142   else
6143     MAGIC_CMD=:
6144   fi
6145 fi
6146
6147   fi
6148   ;;
6149 esac
6150
6151 enable_dlopen=no
6152 enable_win32_dll=no
6153
6154 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6155 if test "${enable_libtool_lock+set}" = set; then
6156   enableval="$enable_libtool_lock"
6157
6158 fi;
6159 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6160
6161
6162 # Check whether --with-pic or --without-pic was given.
6163 if test "${with_pic+set}" = set; then
6164   withval="$with_pic"
6165   pic_mode="$withval"
6166 else
6167   pic_mode=default
6168 fi;
6169 test -z "$pic_mode" && pic_mode=default
6170
6171 # Use C for the default configuration in the libtool script
6172 tagname=
6173 lt_save_CC="$CC"
6174 ac_ext=c
6175 ac_cpp='$CPP $CPPFLAGS'
6176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6179
6180
6181 # Source file extension for C test sources.
6182 ac_ext=c
6183
6184 # Object file extension for compiled C test sources.
6185 objext=o
6186 objext=$objext
6187
6188 # Code to be used in simple compile tests
6189 lt_simple_compile_test_code="int some_variable = 0;\n"
6190
6191 # Code to be used in simple link tests
6192 lt_simple_link_test_code='int main(){return(0);}\n'
6193
6194
6195 # If no C compiler was specified, use CC.
6196 LTCC=${LTCC-"$CC"}
6197
6198 # Allow CC to be a program name with arguments.
6199 compiler=$CC
6200
6201
6202 #
6203 # Check for any special shared library compilation flags.
6204 #
6205 lt_prog_cc_shlib=
6206 if test "$GCC" = no; then
6207   case $host_os in
6208   sco3.2v5*)
6209     lt_prog_cc_shlib='-belf'
6210     ;;
6211   esac
6212 fi
6213 if test -n "$lt_prog_cc_shlib"; then
6214   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6215 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6216   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6217   else
6218     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6219 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6220     lt_cv_prog_cc_can_build_shared=no
6221   fi
6222 fi
6223
6224
6225 #
6226 # Check to make sure the static flag actually works.
6227 #
6228 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6229 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6230 if test "${lt_prog_compiler_static_works+set}" = set; then
6231   echo $ECHO_N "(cached) $ECHO_C" >&6
6232 else
6233   lt_prog_compiler_static_works=no
6234    save_LDFLAGS="$LDFLAGS"
6235    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6236    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6237    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6238      # The compiler can only warn and ignore the option if not recognized
6239      # So say no if there are warnings
6240      if test -s conftest.err; then
6241        # Append any errors to the config.log.
6242        cat conftest.err 1>&5
6243      else
6244        lt_prog_compiler_static_works=yes
6245      fi
6246    fi
6247    $rm conftest*
6248    LDFLAGS="$save_LDFLAGS"
6249
6250 fi
6251 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6252 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6253
6254 if test x"$lt_prog_compiler_static_works" = xyes; then
6255     :
6256 else
6257     lt_prog_compiler_static=
6258 fi
6259
6260
6261
6262
6263 lt_prog_compiler_no_builtin_flag=
6264
6265 if test "$GCC" = yes; then
6266   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6267
6268
6269 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6270 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6271 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6272   echo $ECHO_N "(cached) $ECHO_C" >&6
6273 else
6274   lt_cv_prog_compiler_rtti_exceptions=no
6275   ac_outfile=conftest.$ac_objext
6276    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6277    lt_compiler_flag="-fno-rtti -fno-exceptions"
6278    # Insert the option either (1) after the last *FLAGS variable, or
6279    # (2) before a word containing "conftest.", or (3) at the end.
6280    # Note that $ac_compile itself does not contain backslashes and begins
6281    # with a dollar sign (not a hyphen), so the echo should work correctly.
6282    # The option is referenced via a variable to avoid confusing sed.
6283    lt_compile=`echo "$ac_compile" | $SED \
6284    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6285    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6286    -e 's:$: $lt_compiler_flag:'`
6287    (eval echo "\"\$as_me:6287: $lt_compile\"" >&5)
6288    (eval "$lt_compile" 2>conftest.err)
6289    ac_status=$?
6290    cat conftest.err >&5
6291    echo "$as_me:6291: \$? = $ac_status" >&5
6292    if (exit $ac_status) && test -s "$ac_outfile"; then
6293      # The compiler can only warn and ignore the option if not recognized
6294      # So say no if there are warnings
6295      if test ! -s conftest.err; then
6296        lt_cv_prog_compiler_rtti_exceptions=yes
6297      fi
6298    fi
6299    $rm conftest*
6300
6301 fi
6302 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6303 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6304
6305 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6306     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6307 else
6308     :
6309 fi
6310
6311 fi
6312
6313 lt_prog_compiler_wl=
6314 lt_prog_compiler_pic=
6315 lt_prog_compiler_static=
6316
6317 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6318 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6319
6320   if test "$GCC" = yes; then
6321     lt_prog_compiler_wl='-Wl,'
6322     lt_prog_compiler_static='-static'
6323
6324     case $host_os in
6325       aix*)
6326       # All AIX code is PIC.
6327       if test "$host_cpu" = ia64; then
6328         # AIX 5 now supports IA64 processor
6329         lt_prog_compiler_static='-Bstatic'
6330       fi
6331       ;;
6332
6333     amigaos*)
6334       # FIXME: we need at least 68020 code to build shared libraries, but
6335       # adding the `-m68020' flag to GCC prevents building anything better,
6336       # like `-m68040'.
6337       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6338       ;;
6339
6340     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6341       # PIC is the default for these OSes.
6342       ;;
6343
6344     mingw* | pw32* | os2*)
6345       # This hack is so that the source file can tell whether it is being
6346       # built for inclusion in a dll (and should export symbols for example).
6347       lt_prog_compiler_pic='-DDLL_EXPORT'
6348       ;;
6349
6350     darwin* | rhapsody*)
6351       # PIC is the default on this platform
6352       # Common symbols not allowed in MH_DYLIB files
6353       lt_prog_compiler_pic='-fno-common'
6354       ;;
6355
6356     msdosdjgpp*)
6357       # Just because we use GCC doesn't mean we suddenly get shared libraries
6358       # on systems that don't support them.
6359       lt_prog_compiler_can_build_shared=no
6360       enable_shared=no
6361       ;;
6362
6363     sysv4*MP*)
6364       if test -d /usr/nec; then
6365         lt_prog_compiler_pic=-Kconform_pic
6366       fi
6367       ;;
6368
6369     hpux*)
6370       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6371       # not for PA HP-UX.
6372       case "$host_cpu" in
6373       hppa*64*|ia64*)
6374         # +Z the default
6375         ;;
6376       *)
6377         lt_prog_compiler_pic='-fPIC'
6378         ;;
6379       esac
6380       ;;
6381
6382     *)
6383       lt_prog_compiler_pic='-fPIC'
6384       ;;
6385     esac
6386   else
6387     # PORTME Check for flag to pass linker flags through the system compiler.
6388     case $host_os in
6389     aix*)
6390       lt_prog_compiler_wl='-Wl,'
6391       if test "$host_cpu" = ia64; then
6392         # AIX 5 now supports IA64 processor
6393         lt_prog_compiler_static='-Bstatic'
6394       else
6395         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6396       fi
6397       ;;
6398
6399     mingw* | pw32* | os2*)
6400       # This hack is so that the source file can tell whether it is being
6401       # built for inclusion in a dll (and should export symbols for example).
6402       lt_prog_compiler_pic='-DDLL_EXPORT'
6403       ;;
6404
6405     hpux9* | hpux10* | hpux11*)
6406       lt_prog_compiler_wl='-Wl,'
6407       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6408       # not for PA HP-UX.
6409       case "$host_cpu" in
6410       hppa*64*|ia64*)
6411         # +Z the default
6412         ;;
6413       *)
6414         lt_prog_compiler_pic='+Z'
6415         ;;
6416       esac
6417       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6418       lt_prog_compiler_static='${wl}-a ${wl}archive'
6419       ;;
6420
6421     irix5* | irix6* | nonstopux*)
6422       lt_prog_compiler_wl='-Wl,'
6423       # PIC (with -KPIC) is the default.
6424       lt_prog_compiler_static='-non_shared'
6425       ;;
6426
6427     newsos6)
6428       lt_prog_compiler_pic='-KPIC'
6429       lt_prog_compiler_static='-Bstatic'
6430       ;;
6431
6432     linux*)
6433       case $CC in
6434       icc* | ecc*)
6435         lt_prog_compiler_wl='-Wl,'
6436         lt_prog_compiler_pic='-KPIC'
6437         lt_prog_compiler_static='-static'
6438         ;;
6439       ccc*)
6440         lt_prog_compiler_wl='-Wl,'
6441         # All Alpha code is PIC.
6442         lt_prog_compiler_static='-non_shared'
6443         ;;
6444       esac
6445       ;;
6446
6447     osf3* | osf4* | osf5*)
6448       lt_prog_compiler_wl='-Wl,'
6449       # All OSF/1 code is PIC.
6450       lt_prog_compiler_static='-non_shared'
6451       ;;
6452
6453     sco3.2v5*)
6454       lt_prog_compiler_pic='-Kpic'
6455       lt_prog_compiler_static='-dn'
6456       ;;
6457
6458     solaris*)
6459       lt_prog_compiler_wl='-Wl,'
6460       lt_prog_compiler_pic='-KPIC'
6461       lt_prog_compiler_static='-Bstatic'
6462       ;;
6463
6464     sunos4*)
6465       lt_prog_compiler_wl='-Qoption ld '
6466       lt_prog_compiler_pic='-PIC'
6467       lt_prog_compiler_static='-Bstatic'
6468       ;;
6469
6470     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6471       lt_prog_compiler_wl='-Wl,'
6472       lt_prog_compiler_pic='-KPIC'
6473       lt_prog_compiler_static='-Bstatic'
6474       ;;
6475
6476     sysv4*MP*)
6477       if test -d /usr/nec ;then
6478         lt_prog_compiler_pic='-Kconform_pic'
6479         lt_prog_compiler_static='-Bstatic'
6480       fi
6481       ;;
6482
6483     uts4*)
6484       lt_prog_compiler_pic='-pic'
6485       lt_prog_compiler_static='-Bstatic'
6486       ;;
6487
6488     *)
6489       lt_prog_compiler_can_build_shared=no
6490       ;;
6491     esac
6492   fi
6493
6494 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6495 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6496
6497 #
6498 # Check to make sure the PIC flag actually works.
6499 #
6500 if test -n "$lt_prog_compiler_pic"; then
6501
6502 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6503 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6504 if test "${lt_prog_compiler_pic_works+set}" = set; then
6505   echo $ECHO_N "(cached) $ECHO_C" >&6
6506 else
6507   lt_prog_compiler_pic_works=no
6508   ac_outfile=conftest.$ac_objext
6509    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6510    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6511    # Insert the option either (1) after the last *FLAGS variable, or
6512    # (2) before a word containing "conftest.", or (3) at the end.
6513    # Note that $ac_compile itself does not contain backslashes and begins
6514    # with a dollar sign (not a hyphen), so the echo should work correctly.
6515    # The option is referenced via a variable to avoid confusing sed.
6516    lt_compile=`echo "$ac_compile" | $SED \
6517    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6518    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6519    -e 's:$: $lt_compiler_flag:'`
6520    (eval echo "\"\$as_me:6520: $lt_compile\"" >&5)
6521    (eval "$lt_compile" 2>conftest.err)
6522    ac_status=$?
6523    cat conftest.err >&5
6524    echo "$as_me:6524: \$? = $ac_status" >&5
6525    if (exit $ac_status) && test -s "$ac_outfile"; then
6526      # The compiler can only warn and ignore the option if not recognized
6527      # So say no if there are warnings
6528      if test ! -s conftest.err; then
6529        lt_prog_compiler_pic_works=yes
6530      fi
6531    fi
6532    $rm conftest*
6533
6534 fi
6535 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6536 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6537
6538 if test x"$lt_prog_compiler_pic_works" = xyes; then
6539     case $lt_prog_compiler_pic in
6540      "" | " "*) ;;
6541      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6542      esac
6543 else
6544     lt_prog_compiler_pic=
6545      lt_prog_compiler_can_build_shared=no
6546 fi
6547
6548 fi
6549 case "$host_os" in
6550   # For platforms which do not support PIC, -DPIC is meaningless:
6551   *djgpp*)
6552     lt_prog_compiler_pic=
6553     ;;
6554   *)
6555     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6556     ;;
6557 esac
6558
6559 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6560 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6561 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6562   echo $ECHO_N "(cached) $ECHO_C" >&6
6563 else
6564   lt_cv_prog_compiler_c_o=no
6565    $rm -r conftest 2>/dev/null
6566    mkdir conftest
6567    cd conftest
6568    mkdir out
6569    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6570
6571    lt_compiler_flag="-o out/conftest2.$ac_objext"
6572    # Insert the option either (1) after the last *FLAGS variable, or
6573    # (2) before a word containing "conftest.", or (3) at the end.
6574    # Note that $ac_compile itself does not contain backslashes and begins
6575    # with a dollar sign (not a hyphen), so the echo should work correctly.
6576    lt_compile=`echo "$ac_compile" | $SED \
6577    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6578    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6579    -e 's:$: $lt_compiler_flag:'`
6580    (eval echo "\"\$as_me:6580: $lt_compile\"" >&5)
6581    (eval "$lt_compile" 2>out/conftest.err)
6582    ac_status=$?
6583    cat out/conftest.err >&5
6584    echo "$as_me:6584: \$? = $ac_status" >&5
6585    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6586    then
6587      # The compiler can only warn and ignore the option if not recognized
6588      # So say no if there are warnings
6589      if test ! -s out/conftest.err; then
6590        lt_cv_prog_compiler_c_o=yes
6591      fi
6592    fi
6593    chmod u+w .
6594    $rm conftest*
6595    # SGI C++ compiler will create directory out/ii_files/ for
6596    # template instantiation
6597    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6598    $rm out/* && rmdir out
6599    cd ..
6600    rmdir conftest
6601    $rm conftest*
6602
6603 fi
6604 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6605 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6606
6607
6608 hard_links="nottested"
6609 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6610   # do not overwrite the value of need_locks provided by the user
6611   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6612 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6613   hard_links=yes
6614   $rm conftest*
6615   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6616   touch conftest.a
6617   ln conftest.a conftest.b 2>&5 || hard_links=no
6618   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6619   echo "$as_me:$LINENO: result: $hard_links" >&5
6620 echo "${ECHO_T}$hard_links" >&6
6621   if test "$hard_links" = no; then
6622     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6623 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6624     need_locks=warn
6625   fi
6626 else
6627   need_locks=no
6628 fi
6629
6630 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6631 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6632
6633   runpath_var=
6634   allow_undefined_flag=
6635   enable_shared_with_static_runtimes=no
6636   archive_cmds=
6637   archive_expsym_cmds=
6638   old_archive_From_new_cmds=
6639   old_archive_from_expsyms_cmds=
6640   export_dynamic_flag_spec=
6641   whole_archive_flag_spec=
6642   thread_safe_flag_spec=
6643   hardcode_libdir_flag_spec=
6644   hardcode_libdir_flag_spec_ld=
6645   hardcode_libdir_separator=
6646   hardcode_direct=no
6647   hardcode_minus_L=no
6648   hardcode_shlibpath_var=unsupported
6649   link_all_deplibs=unknown
6650   hardcode_automatic=no
6651   module_cmds=
6652   module_expsym_cmds=
6653   always_export_symbols=no
6654   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6655   # include_expsyms should be a list of space-separated symbols to be *always*
6656   # included in the symbol list
6657   include_expsyms=
6658   # exclude_expsyms can be an extended regexp of symbols to exclude
6659   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6660   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6661   # as well as any symbol that contains `d'.
6662   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6663   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6664   # platforms (ab)use it in PIC code, but their linkers get confused if
6665   # the symbol is explicitly referenced.  Since portable code cannot
6666   # rely on this symbol name, it's probably fine to never include it in
6667   # preloaded symbol tables.
6668   extract_expsyms_cmds=
6669
6670   case $host_os in
6671   cygwin* | mingw* | pw32*)
6672     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6673     # When not using gcc, we currently assume that we are using
6674     # Microsoft Visual C++.
6675     if test "$GCC" != yes; then
6676       with_gnu_ld=no
6677     fi
6678     ;;
6679   openbsd*)
6680     with_gnu_ld=no
6681     ;;
6682   esac
6683
6684   ld_shlibs=yes
6685   if test "$with_gnu_ld" = yes; then
6686     # If archive_cmds runs LD, not CC, wlarc should be empty
6687     wlarc='${wl}'
6688
6689     # See if GNU ld supports shared libraries.
6690     case $host_os in
6691     aix3* | aix4* | aix5*)
6692       # On AIX/PPC, the GNU linker is very broken
6693       if test "$host_cpu" != ia64; then
6694         ld_shlibs=no
6695         cat <<EOF 1>&2
6696
6697 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6698 *** to be unable to reliably create shared libraries on AIX.
6699 *** Therefore, libtool is disabling shared libraries support.  If you
6700 *** really care for shared libraries, you may want to modify your PATH
6701 *** so that a non-GNU linker is found, and then restart.
6702
6703 EOF
6704       fi
6705       ;;
6706
6707     amigaos*)
6708       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)'
6709       hardcode_libdir_flag_spec='-L$libdir'
6710       hardcode_minus_L=yes
6711
6712       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6713       # that the semantics of dynamic libraries on AmigaOS, at least up
6714       # to version 4, is to share data among multiple programs linked
6715       # with the same dynamic library.  Since this doesn't match the
6716       # behavior of shared libraries on other platforms, we can't use
6717       # them.
6718       ld_shlibs=no
6719       ;;
6720
6721     beos*)
6722       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6723         allow_undefined_flag=unsupported
6724         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6725         # support --undefined.  This deserves some investigation.  FIXME
6726         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6727       else
6728         ld_shlibs=no
6729       fi
6730       ;;
6731
6732     cygwin* | mingw* | pw32*)
6733       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6734       # as there is no search path for DLLs.
6735       hardcode_libdir_flag_spec='-L$libdir'
6736       allow_undefined_flag=unsupported
6737       always_export_symbols=no
6738       enable_shared_with_static_runtimes=yes
6739       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6740
6741       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6742         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6743         # If the export-symbols file already is a .def file (1st line
6744         # is EXPORTS), use it as is; otherwise, prepend...
6745         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6746           cp $export_symbols $output_objdir/$soname.def;
6747         else
6748           echo EXPORTS > $output_objdir/$soname.def;
6749           cat $export_symbols >> $output_objdir/$soname.def;
6750         fi~
6751         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6752       else
6753         ld_shlibs=no
6754       fi
6755       ;;
6756
6757     netbsd*)
6758       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6759         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6760         wlarc=
6761       else
6762         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6763         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6764       fi
6765       ;;
6766
6767     solaris* | sysv5*)
6768       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6769         ld_shlibs=no
6770         cat <<EOF 1>&2
6771
6772 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6773 *** create shared libraries on Solaris systems.  Therefore, libtool
6774 *** is disabling shared libraries support.  We urge you to upgrade GNU
6775 *** binutils to release 2.9.1 or newer.  Another option is to modify
6776 *** your PATH or compiler configuration so that the native linker is
6777 *** used, and then restart.
6778
6779 EOF
6780       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6781         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6782         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6783       else
6784         ld_shlibs=no
6785       fi
6786       ;;
6787
6788     sunos4*)
6789       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6790       wlarc=
6791       hardcode_direct=yes
6792       hardcode_shlibpath_var=no
6793       ;;
6794
6795   linux*)
6796     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6797         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6798         archive_cmds="$tmp_archive_cmds"
6799       supports_anon_versioning=no
6800       case `$LD -v 2>/dev/null` in
6801         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6802         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6803         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6804         *\ 2.11.*) ;; # other 2.11 versions
6805         *) supports_anon_versioning=yes ;;
6806       esac
6807       if test $supports_anon_versioning = yes; then
6808         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6809 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6810 $echo "local: *; };" >> $output_objdir/$libname.ver~
6811         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6812       else
6813         archive_expsym_cmds="$tmp_archive_cmds"
6814       fi
6815     else
6816       ld_shlibs=no
6817     fi
6818     ;;
6819
6820     *)
6821       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6822         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6823         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6824       else
6825         ld_shlibs=no
6826       fi
6827       ;;
6828     esac
6829
6830     if test "$ld_shlibs" = yes; then
6831       runpath_var=LD_RUN_PATH
6832       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6833       export_dynamic_flag_spec='${wl}--export-dynamic'
6834       # ancient GNU ld didn't support --whole-archive et. al.
6835       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6836         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6837       else
6838         whole_archive_flag_spec=
6839       fi
6840     fi
6841   else
6842     # PORTME fill in a description of your system's linker (not GNU ld)
6843     case $host_os in
6844     aix3*)
6845       allow_undefined_flag=unsupported
6846       always_export_symbols=yes
6847       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'
6848       # Note: this linker hardcodes the directories in LIBPATH if there
6849       # are no directories specified by -L.
6850       hardcode_minus_L=yes
6851       if test "$GCC" = yes && test -z "$link_static_flag"; then
6852         # Neither direct hardcoding nor static linking is supported with a
6853         # broken collect2.
6854         hardcode_direct=unsupported
6855       fi
6856       ;;
6857
6858     aix4* | aix5*)
6859       if test "$host_cpu" = ia64; then
6860         # On IA64, the linker does run time linking by default, so we don't
6861         # have to do anything special.
6862         aix_use_runtimelinking=no
6863         exp_sym_flag='-Bexport'
6864         no_entry_flag=""
6865       else
6866         # If we're using GNU nm, then we don't want the "-C" option.
6867         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6868         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6869           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'
6870         else
6871           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'
6872         fi
6873         aix_use_runtimelinking=no
6874
6875         # Test if we are trying to use run time linking or normal
6876         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6877         # need to do runtime linking.
6878         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6879           for ld_flag in $LDFLAGS; do
6880           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6881             aix_use_runtimelinking=yes
6882             break
6883           fi
6884           done
6885         esac
6886
6887         exp_sym_flag='-bexport'
6888         no_entry_flag='-bnoentry'
6889       fi
6890
6891       # When large executables or shared objects are built, AIX ld can
6892       # have problems creating the table of contents.  If linking a library
6893       # or program results in "error TOC overflow" add -mminimal-toc to
6894       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6895       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6896
6897       archive_cmds=''
6898       hardcode_direct=yes
6899       hardcode_libdir_separator=':'
6900       link_all_deplibs=yes
6901
6902       if test "$GCC" = yes; then
6903         case $host_os in aix4.012|aix4.012.*)
6904         # We only want to do this on AIX 4.2 and lower, the check
6905         # below for broken collect2 doesn't work under 4.3+
6906           collect2name=`${CC} -print-prog-name=collect2`
6907           if test -f "$collect2name" && \
6908            strings "$collect2name" | grep resolve_lib_name >/dev/null
6909           then
6910           # We have reworked collect2
6911           hardcode_direct=yes
6912           else
6913           # We have old collect2
6914           hardcode_direct=unsupported
6915           # It fails to find uninstalled libraries when the uninstalled
6916           # path is not listed in the libpath.  Setting hardcode_minus_L
6917           # to unsupported forces relinking
6918           hardcode_minus_L=yes
6919           hardcode_libdir_flag_spec='-L$libdir'
6920           hardcode_libdir_separator=
6921           fi
6922         esac
6923         shared_flag='-shared'
6924       else
6925         # not using gcc
6926         if test "$host_cpu" = ia64; then
6927         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6928         # chokes on -Wl,-G. The following line is correct:
6929           shared_flag='-G'
6930         else
6931         if test "$aix_use_runtimelinking" = yes; then
6932             shared_flag='${wl}-G'
6933           else
6934             shared_flag='${wl}-bM:SRE'
6935         fi
6936         fi
6937       fi
6938
6939       # It seems that -bexpall does not export symbols beginning with
6940       # underscore (_), so it is better to generate a list of symbols to export.
6941       always_export_symbols=yes
6942       if test "$aix_use_runtimelinking" = yes; then
6943         # Warning - without using the other runtime loading flags (-brtl),
6944         # -berok will link without error, but may produce a broken library.
6945         allow_undefined_flag='-berok'
6946        # Determine the default libpath from the value encoded in an empty executable.
6947        cat >conftest.$ac_ext <<_ACEOF
6948 /* confdefs.h.  */
6949 _ACEOF
6950 cat confdefs.h >>conftest.$ac_ext
6951 cat >>conftest.$ac_ext <<_ACEOF
6952 /* end confdefs.h.  */
6953
6954 int
6955 main ()
6956 {
6957
6958   ;
6959   return 0;
6960 }
6961 _ACEOF
6962 rm -f conftest.$ac_objext conftest$ac_exeext
6963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6964   (eval $ac_link) 2>conftest.er1
6965   ac_status=$?
6966   grep -v '^ *+' conftest.er1 >conftest.err
6967   rm -f conftest.er1
6968   cat conftest.err >&5
6969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970   (exit $ac_status); } &&
6971          { ac_try='test -z "$ac_c_werror_flag"
6972                          || test ! -s conftest.err'
6973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6974   (eval $ac_try) 2>&5
6975   ac_status=$?
6976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977   (exit $ac_status); }; } &&
6978          { ac_try='test -s conftest$ac_exeext'
6979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6980   (eval $ac_try) 2>&5
6981   ac_status=$?
6982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983   (exit $ac_status); }; }; then
6984
6985 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6986 }'`
6987 # Check for a 64-bit object if we didn't find anything.
6988 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; }
6989 }'`; fi
6990 else
6991   echo "$as_me: failed program was:" >&5
6992 sed 's/^/| /' conftest.$ac_ext >&5
6993
6994 fi
6995 rm -f conftest.err conftest.$ac_objext \
6996       conftest$ac_exeext conftest.$ac_ext
6997 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6998
6999        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7000         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7001        else
7002         if test "$host_cpu" = ia64; then
7003           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7004           allow_undefined_flag="-z nodefs"
7005           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7006         else
7007          # Determine the default libpath from the value encoded in an empty executable.
7008          cat >conftest.$ac_ext <<_ACEOF
7009 /* confdefs.h.  */
7010 _ACEOF
7011 cat confdefs.h >>conftest.$ac_ext
7012 cat >>conftest.$ac_ext <<_ACEOF
7013 /* end confdefs.h.  */
7014
7015 int
7016 main ()
7017 {
7018
7019   ;
7020   return 0;
7021 }
7022 _ACEOF
7023 rm -f conftest.$ac_objext conftest$ac_exeext
7024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7025   (eval $ac_link) 2>conftest.er1
7026   ac_status=$?
7027   grep -v '^ *+' conftest.er1 >conftest.err
7028   rm -f conftest.er1
7029   cat conftest.err >&5
7030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031   (exit $ac_status); } &&
7032          { ac_try='test -z "$ac_c_werror_flag"
7033                          || test ! -s conftest.err'
7034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7035   (eval $ac_try) 2>&5
7036   ac_status=$?
7037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7038   (exit $ac_status); }; } &&
7039          { ac_try='test -s conftest$ac_exeext'
7040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7041   (eval $ac_try) 2>&5
7042   ac_status=$?
7043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7044   (exit $ac_status); }; }; then
7045
7046 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7047 }'`
7048 # Check for a 64-bit object if we didn't find anything.
7049 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; }
7050 }'`; fi
7051 else
7052   echo "$as_me: failed program was:" >&5
7053 sed 's/^/| /' conftest.$ac_ext >&5
7054
7055 fi
7056 rm -f conftest.err conftest.$ac_objext \
7057       conftest$ac_exeext conftest.$ac_ext
7058 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7059
7060          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7061           # Warning - without using the other run time loading flags,
7062           # -berok will link without error, but may produce a broken library.
7063           no_undefined_flag=' ${wl}-bernotok'
7064           allow_undefined_flag=' ${wl}-berok'
7065           # -bexpall does not export symbols beginning with underscore (_)
7066           always_export_symbols=yes
7067           # Exported symbols can be pulled into shared objects from archives
7068           whole_archive_flag_spec=' '
7069           archive_cmds_need_lc=yes
7070           # This is similar to how AIX traditionally builds it's shared libraries.
7071           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7072         fi
7073       fi
7074       ;;
7075
7076     amigaos*)
7077       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)'
7078       hardcode_libdir_flag_spec='-L$libdir'
7079       hardcode_minus_L=yes
7080       # see comment about different semantics on the GNU ld section
7081       ld_shlibs=no
7082       ;;
7083
7084     bsdi4*)
7085       export_dynamic_flag_spec=-rdynamic
7086       ;;
7087
7088     cygwin* | mingw* | pw32*)
7089       # When not using gcc, we currently assume that we are using
7090       # Microsoft Visual C++.
7091       # hardcode_libdir_flag_spec is actually meaningless, as there is
7092       # no search path for DLLs.
7093       hardcode_libdir_flag_spec=' '
7094       allow_undefined_flag=unsupported
7095       # Tell ltmain to make .lib files, not .a files.
7096       libext=lib
7097       # Tell ltmain to make .dll files, not .so files.
7098       shrext_cmds=".dll"
7099       # FIXME: Setting linknames here is a bad hack.
7100       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7101       # The linker will automatically build a .lib file if we build a DLL.
7102       old_archive_From_new_cmds='true'
7103       # FIXME: Should let the user specify the lib program.
7104       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7105       fix_srcfile_path='`cygpath -w "$srcfile"`'
7106       enable_shared_with_static_runtimes=yes
7107       ;;
7108
7109     darwin* | rhapsody*)
7110     if test "$GXX" = yes ; then
7111       archive_cmds_need_lc=no
7112       case "$host_os" in
7113       rhapsody* | darwin1.[012])
7114         allow_undefined_flag='-undefined suppress'
7115         ;;
7116       *) # Darwin 1.3 on
7117       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7118         allow_undefined_flag='-flat_namespace -undefined suppress'
7119       else
7120         case ${MACOSX_DEPLOYMENT_TARGET} in
7121           10.[012])
7122             allow_undefined_flag='-flat_namespace -undefined suppress'
7123             ;;
7124           10.*)
7125             allow_undefined_flag='-undefined dynamic_lookup'
7126             ;;
7127         esac
7128       fi
7129         ;;
7130       esac
7131         lt_int_apple_cc_single_mod=no
7132         output_verbose_link_cmd='echo'
7133         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7134           lt_int_apple_cc_single_mod=yes
7135         fi
7136         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7137           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7138         else
7139         archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7140       fi
7141       module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7142       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7143         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7144           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7145         else
7146           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7147         fi
7148           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7149       hardcode_direct=no
7150       hardcode_automatic=yes
7151       hardcode_shlibpath_var=unsupported
7152       whole_archive_flag_spec='-all_load $convenience'
7153       link_all_deplibs=yes
7154     else
7155       ld_shlibs=no
7156     fi
7157       ;;
7158
7159     dgux*)
7160       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7161       hardcode_libdir_flag_spec='-L$libdir'
7162       hardcode_shlibpath_var=no
7163       ;;
7164
7165     freebsd1*)
7166       ld_shlibs=no
7167       ;;
7168
7169     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7170     # support.  Future versions do this automatically, but an explicit c++rt0.o
7171     # does not break anything, and helps significantly (at the cost of a little
7172     # extra space).
7173     freebsd2.2*)
7174       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7175       hardcode_libdir_flag_spec='-R$libdir'
7176       hardcode_direct=yes
7177       hardcode_shlibpath_var=no
7178       ;;
7179
7180     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7181     freebsd2*)
7182       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7183       hardcode_direct=yes
7184       hardcode_minus_L=yes
7185       hardcode_shlibpath_var=no
7186       ;;
7187
7188     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7189     freebsd* | kfreebsd*-gnu)
7190       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7191       hardcode_libdir_flag_spec='-R$libdir'
7192       hardcode_direct=yes
7193       hardcode_shlibpath_var=no
7194       ;;
7195
7196     hpux9*)
7197       if test "$GCC" = yes; then
7198         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'
7199       else
7200         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'
7201       fi
7202       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7203       hardcode_libdir_separator=:
7204       hardcode_direct=yes
7205
7206       # hardcode_minus_L: Not really in the search PATH,
7207       # but as the default location of the library.
7208       hardcode_minus_L=yes
7209       export_dynamic_flag_spec='${wl}-E'
7210       ;;
7211
7212     hpux10* | hpux11*)
7213       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7214         case "$host_cpu" in
7215         hppa*64*|ia64*)
7216           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7217           ;;
7218         *)
7219           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7220           ;;
7221         esac
7222       else
7223         case "$host_cpu" in
7224         hppa*64*|ia64*)
7225           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7226           ;;
7227         *)
7228           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7229           ;;
7230         esac
7231       fi
7232       if test "$with_gnu_ld" = no; then
7233         case "$host_cpu" in
7234         hppa*64*)
7235           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7236           hardcode_libdir_flag_spec_ld='+b $libdir'
7237           hardcode_libdir_separator=:
7238           hardcode_direct=no
7239           hardcode_shlibpath_var=no
7240           ;;
7241         ia64*)
7242           hardcode_libdir_flag_spec='-L$libdir'
7243           hardcode_direct=no
7244           hardcode_shlibpath_var=no
7245
7246           # hardcode_minus_L: Not really in the search PATH,
7247           # but as the default location of the library.
7248           hardcode_minus_L=yes
7249           ;;
7250         *)
7251           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7252           hardcode_libdir_separator=:
7253           hardcode_direct=yes
7254           export_dynamic_flag_spec='${wl}-E'
7255
7256           # hardcode_minus_L: Not really in the search PATH,
7257           # but as the default location of the library.
7258           hardcode_minus_L=yes
7259           ;;
7260         esac
7261       fi
7262       ;;
7263
7264     irix5* | irix6* | nonstopux*)
7265       if test "$GCC" = yes; then
7266         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'
7267       else
7268         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'
7269         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7270       fi
7271       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7272       hardcode_libdir_separator=:
7273       link_all_deplibs=yes
7274       ;;
7275
7276     netbsd*)
7277       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7278         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7279       else
7280         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7281       fi
7282       hardcode_libdir_flag_spec='-R$libdir'
7283       hardcode_direct=yes
7284       hardcode_shlibpath_var=no
7285       ;;
7286
7287     newsos6)
7288       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7289       hardcode_direct=yes
7290       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7291       hardcode_libdir_separator=:
7292       hardcode_shlibpath_var=no
7293       ;;
7294
7295     openbsd*)
7296       hardcode_direct=yes
7297       hardcode_shlibpath_var=no
7298       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7299         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7300         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7301         export_dynamic_flag_spec='${wl}-E'
7302       else
7303        case $host_os in
7304          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7305            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7306            hardcode_libdir_flag_spec='-R$libdir'
7307            ;;
7308          *)
7309            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7310            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7311            ;;
7312        esac
7313       fi
7314       ;;
7315
7316     os2*)
7317       hardcode_libdir_flag_spec='-L$libdir'
7318       hardcode_minus_L=yes
7319       allow_undefined_flag=unsupported
7320       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'
7321       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7322       ;;
7323
7324     osf3*)
7325       if test "$GCC" = yes; then
7326         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7327         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'
7328       else
7329         allow_undefined_flag=' -expect_unresolved \*'
7330         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'
7331       fi
7332       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7333       hardcode_libdir_separator=:
7334       ;;
7335
7336     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7337       if test "$GCC" = yes; then
7338         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7339         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'
7340         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7341       else
7342         allow_undefined_flag=' -expect_unresolved \*'
7343         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'
7344         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7345         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7346
7347         # Both c and cxx compiler support -rpath directly
7348         hardcode_libdir_flag_spec='-rpath $libdir'
7349       fi
7350       hardcode_libdir_separator=:
7351       ;;
7352
7353     sco3.2v5*)
7354       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7355       hardcode_shlibpath_var=no
7356       export_dynamic_flag_spec='${wl}-Bexport'
7357       runpath_var=LD_RUN_PATH
7358       hardcode_runpath_var=yes
7359       ;;
7360
7361     solaris*)
7362       no_undefined_flag=' -z text'
7363       if test "$GCC" = yes; then
7364         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7365         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7366           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7367       else
7368         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7369         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7370         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7371       fi
7372       hardcode_libdir_flag_spec='-R$libdir'
7373       hardcode_shlibpath_var=no
7374       case $host_os in
7375       solaris2.[0-5] | solaris2.[0-5].*) ;;
7376       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7377         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7378       esac
7379       link_all_deplibs=yes
7380       ;;
7381
7382     sunos4*)
7383       if test "x$host_vendor" = xsequent; then
7384         # Use $CC to link under sequent, because it throws in some extra .o
7385         # files that make .init and .fini sections work.
7386         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7387       else
7388         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7389       fi
7390       hardcode_libdir_flag_spec='-L$libdir'
7391       hardcode_direct=yes
7392       hardcode_minus_L=yes
7393       hardcode_shlibpath_var=no
7394       ;;
7395
7396     sysv4)
7397       case $host_vendor in
7398         sni)
7399           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7400           hardcode_direct=yes # is this really true???
7401         ;;
7402         siemens)
7403           ## LD is ld it makes a PLAMLIB
7404           ## CC just makes a GrossModule.
7405           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7406           reload_cmds='$CC -r -o $output$reload_objs'
7407           hardcode_direct=no
7408         ;;
7409         motorola)
7410           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7411           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7412         ;;
7413       esac
7414       runpath_var='LD_RUN_PATH'
7415       hardcode_shlibpath_var=no
7416       ;;
7417
7418     sysv4.3*)
7419       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7420       hardcode_shlibpath_var=no
7421       export_dynamic_flag_spec='-Bexport'
7422       ;;
7423
7424     sysv4*MP*)
7425       if test -d /usr/nec; then
7426         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7427         hardcode_shlibpath_var=no
7428         runpath_var=LD_RUN_PATH
7429         hardcode_runpath_var=yes
7430         ld_shlibs=yes
7431       fi
7432       ;;
7433
7434     sysv4.2uw2*)
7435       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7436       hardcode_direct=yes
7437       hardcode_minus_L=no
7438       hardcode_shlibpath_var=no
7439       hardcode_runpath_var=yes
7440       runpath_var=LD_RUN_PATH
7441       ;;
7442
7443    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7444       no_undefined_flag='${wl}-z ${wl}text'
7445       if test "$GCC" = yes; then
7446         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7447       else
7448         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7449       fi
7450       runpath_var='LD_RUN_PATH'
7451       hardcode_shlibpath_var=no
7452       ;;
7453
7454     sysv5*)
7455       no_undefined_flag=' -z text'
7456       # $CC -shared without GNU ld will not create a library from C++
7457       # object files and a static libstdc++, better avoid it by now
7458       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7459       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7460                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7461       hardcode_libdir_flag_spec=
7462       hardcode_shlibpath_var=no
7463       runpath_var='LD_RUN_PATH'
7464       ;;
7465
7466     uts4*)
7467       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7468       hardcode_libdir_flag_spec='-L$libdir'
7469       hardcode_shlibpath_var=no
7470       ;;
7471
7472     *)
7473       ld_shlibs=no
7474       ;;
7475     esac
7476   fi
7477
7478 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7479 echo "${ECHO_T}$ld_shlibs" >&6
7480 test "$ld_shlibs" = no && can_build_shared=no
7481
7482 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7483 if test "$GCC" = yes; then
7484   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7485 fi
7486
7487 #
7488 # Do we need to explicitly link libc?
7489 #
7490 case "x$archive_cmds_need_lc" in
7491 x|xyes)
7492   # Assume -lc should be added
7493   archive_cmds_need_lc=yes
7494
7495   if test "$enable_shared" = yes && test "$GCC" = yes; then
7496     case $archive_cmds in
7497     *'~'*)
7498       # FIXME: we may have to deal with multi-command sequences.
7499       ;;
7500     '$CC '*)
7501       # Test whether the compiler implicitly links with -lc since on some
7502       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7503       # to ld, don't add -lc before -lgcc.
7504       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7505 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7506       $rm conftest*
7507       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7508
7509       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7510   (eval $ac_compile) 2>&5
7511   ac_status=$?
7512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513   (exit $ac_status); } 2>conftest.err; then
7514         soname=conftest
7515         lib=conftest
7516         libobjs=conftest.$ac_objext
7517         deplibs=
7518         wl=$lt_prog_compiler_wl
7519         compiler_flags=-v
7520         linker_flags=-v
7521         verstring=
7522         output_objdir=.
7523         libname=conftest
7524         lt_save_allow_undefined_flag=$allow_undefined_flag
7525         allow_undefined_flag=
7526         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7527   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7528   ac_status=$?
7529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7530   (exit $ac_status); }
7531         then
7532           archive_cmds_need_lc=no
7533         else
7534           archive_cmds_need_lc=yes
7535         fi
7536         allow_undefined_flag=$lt_save_allow_undefined_flag
7537       else
7538         cat conftest.err 1>&5
7539       fi
7540       $rm conftest*
7541       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7542 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7543       ;;
7544     esac
7545   fi
7546   ;;
7547 esac
7548
7549 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7550 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7551 library_names_spec=
7552 libname_spec='lib$name'
7553 soname_spec=
7554 shrext_cmds=".so"
7555 postinstall_cmds=
7556 postuninstall_cmds=
7557 finish_cmds=
7558 finish_eval=
7559 shlibpath_var=
7560 shlibpath_overrides_runpath=unknown
7561 version_type=none
7562 dynamic_linker="$host_os ld.so"
7563 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7564 if test "$GCC" = yes; then
7565   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7566   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7567     # if the path contains ";" then we assume it to be the separator
7568     # otherwise default to the standard path separator (i.e. ":") - it is
7569     # assumed that no part of a normal pathname contains ";" but that should
7570     # okay in the real world where ";" in dirpaths is itself problematic.
7571     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7572   else
7573     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7574   fi
7575 else
7576   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7577 fi
7578 need_lib_prefix=unknown
7579 hardcode_into_libs=no
7580
7581 # when you set need_version to no, make sure it does not cause -set_version
7582 # flags to be left without arguments
7583 need_version=unknown
7584
7585 case $host_os in
7586 aix3*)
7587   version_type=linux
7588   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7589   shlibpath_var=LIBPATH
7590
7591   # AIX 3 has no versioning support, so we append a major version to the name.
7592   soname_spec='${libname}${release}${shared_ext}$major'
7593   ;;
7594
7595 aix4* | aix5*)
7596   version_type=linux
7597   need_lib_prefix=no
7598   need_version=no
7599   hardcode_into_libs=yes
7600   if test "$host_cpu" = ia64; then
7601     # AIX 5 supports IA64
7602     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7603     shlibpath_var=LD_LIBRARY_PATH
7604   else
7605     # With GCC up to 2.95.x, collect2 would create an import file
7606     # for dependence libraries.  The import file would start with
7607     # the line `#! .'.  This would cause the generated library to
7608     # depend on `.', always an invalid library.  This was fixed in
7609     # development snapshots of GCC prior to 3.0.
7610     case $host_os in
7611       aix4 | aix4.[01] | aix4.[01].*)
7612       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7613            echo ' yes '
7614            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7615         :
7616       else
7617         can_build_shared=no
7618       fi
7619       ;;
7620     esac
7621     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7622     # soname into executable. Probably we can add versioning support to
7623     # collect2, so additional links can be useful in future.
7624     if test "$aix_use_runtimelinking" = yes; then
7625       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7626       # instead of lib<name>.a to let people know that these are not
7627       # typical AIX shared libraries.
7628       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7629     else
7630       # We preserve .a as extension for shared libraries through AIX4.2
7631       # and later when we are not doing run time linking.
7632       library_names_spec='${libname}${release}.a $libname.a'
7633       soname_spec='${libname}${release}${shared_ext}$major'
7634     fi
7635     shlibpath_var=LIBPATH
7636   fi
7637   ;;
7638
7639 amigaos*)
7640   library_names_spec='$libname.ixlibrary $libname.a'
7641   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7642   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'
7643   ;;
7644
7645 beos*)
7646   library_names_spec='${libname}${shared_ext}'
7647   dynamic_linker="$host_os ld.so"
7648   shlibpath_var=LIBRARY_PATH
7649   ;;
7650
7651 bsdi4*)
7652   version_type=linux
7653   need_version=no
7654   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7655   soname_spec='${libname}${release}${shared_ext}$major'
7656   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7657   shlibpath_var=LD_LIBRARY_PATH
7658   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7659   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7660   # the default ld.so.conf also contains /usr/contrib/lib and
7661   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7662   # libtool to hard-code these into programs
7663   ;;
7664
7665 cygwin* | mingw* | pw32*)
7666   version_type=windows
7667   shrext_cmds=".dll"
7668   need_version=no
7669   need_lib_prefix=no
7670
7671   case $GCC,$host_os in
7672   yes,cygwin* | yes,mingw* | yes,pw32*)
7673     library_names_spec='$libname.dll.a'
7674     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7675     postinstall_cmds='base_file=`basename \${file}`~
7676       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7677       dldir=$destdir/`dirname \$dlpath`~
7678       test -d \$dldir || mkdir -p \$dldir~
7679       $install_prog $dir/$dlname \$dldir/$dlname'
7680     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7681       dlpath=$dir/\$dldll~
7682        $rm \$dlpath'
7683     shlibpath_overrides_runpath=yes
7684
7685     case $host_os in
7686     cygwin*)
7687       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7688       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7689       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7690       ;;
7691     mingw*)
7692       # MinGW DLLs use traditional 'lib' prefix
7693       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7694       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7695       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7696         # It is most probably a Windows format PATH printed by
7697         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7698         # path with ; separators, and with drive letters. We can handle the
7699         # drive letters (cygwin fileutils understands them), so leave them,
7700         # especially as we might pass files found there to a mingw objdump,
7701         # which wouldn't understand a cygwinified path. Ahh.
7702         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7703       else
7704         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7705       fi
7706       ;;
7707     pw32*)
7708       # pw32 DLLs use 'pw' prefix rather than 'lib'
7709       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7710       ;;
7711     esac
7712     ;;
7713
7714   *)
7715     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7716     ;;
7717   esac
7718   dynamic_linker='Win32 ld.exe'
7719   # FIXME: first we should search . and the directory the executable is in
7720   shlibpath_var=PATH
7721   ;;
7722
7723 darwin* | rhapsody*)
7724   dynamic_linker="$host_os dyld"
7725   version_type=darwin
7726   need_lib_prefix=no
7727   need_version=no
7728   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7729   soname_spec='${libname}${release}${major}$shared_ext'
7730   shlibpath_overrides_runpath=yes
7731   shlibpath_var=DYLD_LIBRARY_PATH
7732   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7733   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7734   if test "$GCC" = yes; then
7735     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
7736   else
7737     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7738   fi
7739   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7740   ;;
7741
7742 dgux*)
7743   version_type=linux
7744   need_lib_prefix=no
7745   need_version=no
7746   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7747   soname_spec='${libname}${release}${shared_ext}$major'
7748   shlibpath_var=LD_LIBRARY_PATH
7749   ;;
7750
7751 freebsd1*)
7752   dynamic_linker=no
7753   ;;
7754
7755 kfreebsd*-gnu)
7756   version_type=linux
7757   need_lib_prefix=no
7758   need_version=no
7759   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7760   soname_spec='${libname}${release}${shared_ext}$major'
7761   shlibpath_var=LD_LIBRARY_PATH
7762   shlibpath_overrides_runpath=no
7763   hardcode_into_libs=yes
7764   dynamic_linker='GNU ld.so'
7765   ;;
7766
7767 freebsd*)
7768   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7769   version_type=freebsd-$objformat
7770   case $version_type in
7771     freebsd-elf*)
7772       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7773       need_version=no
7774       need_lib_prefix=no
7775       ;;
7776     freebsd-*)
7777       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7778       need_version=yes
7779       ;;
7780   esac
7781   shlibpath_var=LD_LIBRARY_PATH
7782   case $host_os in
7783   freebsd2*)
7784     shlibpath_overrides_runpath=yes
7785     ;;
7786   freebsd3.01* | freebsdelf3.01*)
7787     shlibpath_overrides_runpath=yes
7788     hardcode_into_libs=yes
7789     ;;
7790   *) # from 3.2 on
7791     shlibpath_overrides_runpath=no
7792     hardcode_into_libs=yes
7793     ;;
7794   esac
7795   ;;
7796
7797 gnu*)
7798   version_type=linux
7799   need_lib_prefix=no
7800   need_version=no
7801   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7802   soname_spec='${libname}${release}${shared_ext}$major'
7803   shlibpath_var=LD_LIBRARY_PATH
7804   hardcode_into_libs=yes
7805   ;;
7806
7807 hpux9* | hpux10* | hpux11*)
7808   # Give a soname corresponding to the major version so that dld.sl refuses to
7809   # link against other versions.
7810   version_type=sunos
7811   need_lib_prefix=no
7812   need_version=no
7813   case "$host_cpu" in
7814   ia64*)
7815     shrext_cmds='.so'
7816     hardcode_into_libs=yes
7817     dynamic_linker="$host_os dld.so"
7818     shlibpath_var=LD_LIBRARY_PATH
7819     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7820     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7821     soname_spec='${libname}${release}${shared_ext}$major'
7822     if test "X$HPUX_IA64_MODE" = X32; then
7823       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7824     else
7825       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7826     fi
7827     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7828     ;;
7829    hppa*64*)
7830      shrext_cmds='.sl'
7831      hardcode_into_libs=yes
7832      dynamic_linker="$host_os dld.sl"
7833      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7834      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7835      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7836      soname_spec='${libname}${release}${shared_ext}$major'
7837      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7838      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7839      ;;
7840    *)
7841     shrext_cmds='.sl'
7842     dynamic_linker="$host_os dld.sl"
7843     shlibpath_var=SHLIB_PATH
7844     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7845     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7846     soname_spec='${libname}${release}${shared_ext}$major'
7847     ;;
7848   esac
7849   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7850   postinstall_cmds='chmod 555 $lib'
7851   ;;
7852
7853 irix5* | irix6* | nonstopux*)
7854   case $host_os in
7855     nonstopux*) version_type=nonstopux ;;
7856     *)
7857         if test "$lt_cv_prog_gnu_ld" = yes; then
7858                 version_type=linux
7859         else
7860                 version_type=irix
7861         fi ;;
7862   esac
7863   need_lib_prefix=no
7864   need_version=no
7865   soname_spec='${libname}${release}${shared_ext}$major'
7866   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7867   case $host_os in
7868   irix5* | nonstopux*)
7869     libsuff= shlibsuff=
7870     ;;
7871   *)
7872     case $LD in # libtool.m4 will add one of these switches to LD
7873     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7874       libsuff= shlibsuff= libmagic=32-bit;;
7875     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7876       libsuff=32 shlibsuff=N32 libmagic=N32;;
7877     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7878       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7879     *) libsuff= shlibsuff= libmagic=never-match;;
7880     esac
7881     ;;
7882   esac
7883   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7884   shlibpath_overrides_runpath=no
7885   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7886   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7887   hardcode_into_libs=yes
7888   ;;
7889
7890 # No shared lib support for Linux oldld, aout, or coff.
7891 linux*oldld* | linux*aout* | linux*coff*)
7892   dynamic_linker=no
7893   ;;
7894
7895 # This must be Linux ELF.
7896 linux*)
7897   version_type=linux
7898   need_lib_prefix=no
7899   need_version=no
7900   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7901   soname_spec='${libname}${release}${shared_ext}$major'
7902   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7903   shlibpath_var=LD_LIBRARY_PATH
7904   shlibpath_overrides_runpath=no
7905   # This implies no fast_install, which is unacceptable.
7906   # Some rework will be needed to allow for fast_install
7907   # before this can be enabled.
7908   hardcode_into_libs=yes
7909
7910   # find out which ABI we are using
7911   libsuff=
7912   case "$host_cpu" in
7913   x86_64*|s390x*|powerpc64*)
7914     echo '#line 7914 "configure"' > conftest.$ac_ext
7915     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7916   (eval $ac_compile) 2>&5
7917   ac_status=$?
7918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919   (exit $ac_status); }; then
7920       case `/usr/bin/file conftest.$ac_objext` in
7921       *64-bit*)
7922         libsuff=64
7923         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
7924         ;;
7925       esac
7926     fi
7927     rm -rf conftest*
7928     ;;
7929   esac
7930
7931   # Append ld.so.conf contents to the search path
7932   if test -f /etc/ld.so.conf; then
7933     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7934     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
7935   fi
7936
7937   # We used to test for /lib/ld.so.1 and disable shared libraries on
7938   # powerpc, because MkLinux only supported shared libraries with the
7939   # GNU dynamic linker.  Since this was broken with cross compilers,
7940   # most powerpc-linux boxes support dynamic linking these days and
7941   # people can always --disable-shared, the test was removed, and we
7942   # assume the GNU/Linux dynamic linker is in use.
7943   dynamic_linker='GNU/Linux ld.so'
7944   ;;
7945
7946 knetbsd*-gnu)
7947   version_type=linux
7948   need_lib_prefix=no
7949   need_version=no
7950   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7951   soname_spec='${libname}${release}${shared_ext}$major'
7952   shlibpath_var=LD_LIBRARY_PATH
7953   shlibpath_overrides_runpath=no
7954   hardcode_into_libs=yes
7955   dynamic_linker='GNU ld.so'
7956   ;;
7957
7958 netbsd*)
7959   version_type=sunos
7960   need_lib_prefix=no
7961   need_version=no
7962   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7963     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7964     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7965     dynamic_linker='NetBSD (a.out) ld.so'
7966   else
7967     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7968     soname_spec='${libname}${release}${shared_ext}$major'
7969     dynamic_linker='NetBSD ld.elf_so'
7970   fi
7971   shlibpath_var=LD_LIBRARY_PATH
7972   shlibpath_overrides_runpath=yes
7973   hardcode_into_libs=yes
7974   ;;
7975
7976 newsos6)
7977   version_type=linux
7978   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7979   shlibpath_var=LD_LIBRARY_PATH
7980   shlibpath_overrides_runpath=yes
7981   ;;
7982
7983 nto-qnx*)
7984   version_type=linux
7985   need_lib_prefix=no
7986   need_version=no
7987   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7988   soname_spec='${libname}${release}${shared_ext}$major'
7989   shlibpath_var=LD_LIBRARY_PATH
7990   shlibpath_overrides_runpath=yes
7991   ;;
7992
7993 openbsd*)
7994   version_type=sunos
7995   need_lib_prefix=no
7996   need_version=yes
7997   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7998   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7999   shlibpath_var=LD_LIBRARY_PATH
8000   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8001     case $host_os in
8002       openbsd2.[89] | openbsd2.[89].*)
8003         shlibpath_overrides_runpath=no
8004         ;;
8005       *)
8006         shlibpath_overrides_runpath=yes
8007         ;;
8008       esac
8009   else
8010     shlibpath_overrides_runpath=yes
8011   fi
8012   ;;
8013
8014 os2*)
8015   libname_spec='$name'
8016   shrext_cmds=".dll"
8017   need_lib_prefix=no
8018   library_names_spec='$libname${shared_ext} $libname.a'
8019   dynamic_linker='OS/2 ld.exe'
8020   shlibpath_var=LIBPATH
8021   ;;
8022
8023 osf3* | osf4* | osf5*)
8024   version_type=osf
8025   need_lib_prefix=no
8026   need_version=no
8027   soname_spec='${libname}${release}${shared_ext}$major'
8028   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8029   shlibpath_var=LD_LIBRARY_PATH
8030   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8031   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8032   ;;
8033
8034 sco3.2v5*)
8035   version_type=osf
8036   soname_spec='${libname}${release}${shared_ext}$major'
8037   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8038   shlibpath_var=LD_LIBRARY_PATH
8039   ;;
8040
8041 solaris*)
8042   version_type=linux
8043   need_lib_prefix=no
8044   need_version=no
8045   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8046   soname_spec='${libname}${release}${shared_ext}$major'
8047   shlibpath_var=LD_LIBRARY_PATH
8048   shlibpath_overrides_runpath=yes
8049   hardcode_into_libs=yes
8050   # ldd complains unless libraries are executable
8051   postinstall_cmds='chmod +x $lib'
8052   ;;
8053
8054 sunos4*)
8055   version_type=sunos
8056   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8057   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8058   shlibpath_var=LD_LIBRARY_PATH
8059   shlibpath_overrides_runpath=yes
8060   if test "$with_gnu_ld" = yes; then
8061     need_lib_prefix=no
8062   fi
8063   need_version=yes
8064   ;;
8065
8066 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8067   version_type=linux
8068   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8069   soname_spec='${libname}${release}${shared_ext}$major'
8070   shlibpath_var=LD_LIBRARY_PATH
8071   case $host_vendor in
8072     sni)
8073       shlibpath_overrides_runpath=no
8074       need_lib_prefix=no
8075       export_dynamic_flag_spec='${wl}-Blargedynsym'
8076       runpath_var=LD_RUN_PATH
8077       ;;
8078     siemens)
8079       need_lib_prefix=no
8080       ;;
8081     motorola)
8082       need_lib_prefix=no
8083       need_version=no
8084       shlibpath_overrides_runpath=no
8085       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8086       ;;
8087   esac
8088   ;;
8089
8090 sysv4*MP*)
8091   if test -d /usr/nec ;then
8092     version_type=linux
8093     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8094     soname_spec='$libname${shared_ext}.$major'
8095     shlibpath_var=LD_LIBRARY_PATH
8096   fi
8097   ;;
8098
8099 uts4*)
8100   version_type=linux
8101   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8102   soname_spec='${libname}${release}${shared_ext}$major'
8103   shlibpath_var=LD_LIBRARY_PATH
8104   ;;
8105
8106 *)
8107   dynamic_linker=no
8108   ;;
8109 esac
8110 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8111 echo "${ECHO_T}$dynamic_linker" >&6
8112 test "$dynamic_linker" = no && can_build_shared=no
8113
8114 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8115 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8116 hardcode_action=
8117 if test -n "$hardcode_libdir_flag_spec" || \
8118    test -n "$runpath_var " || \
8119    test "X$hardcode_automatic"="Xyes" ; then
8120
8121   # We can hardcode non-existant directories.
8122   if test "$hardcode_direct" != no &&
8123      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8124      # have to relink, otherwise we might link with an installed library
8125      # when we should be linking with a yet-to-be-installed one
8126      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8127      test "$hardcode_minus_L" != no; then
8128     # Linking always hardcodes the temporary library directory.
8129     hardcode_action=relink
8130   else
8131     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8132     hardcode_action=immediate
8133   fi
8134 else
8135   # We cannot hardcode anything, or else we can only hardcode existing
8136   # directories.
8137   hardcode_action=unsupported
8138 fi
8139 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8140 echo "${ECHO_T}$hardcode_action" >&6
8141
8142 if test "$hardcode_action" = relink; then
8143   # Fast installation is not supported
8144   enable_fast_install=no
8145 elif test "$shlibpath_overrides_runpath" = yes ||
8146      test "$enable_shared" = no; then
8147   # Fast installation is not necessary
8148   enable_fast_install=needless
8149 fi
8150
8151 striplib=
8152 old_striplib=
8153 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8154 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8155 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8156   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8157   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8158   echo "$as_me:$LINENO: result: yes" >&5
8159 echo "${ECHO_T}yes" >&6
8160 else
8161 # FIXME - insert some real tests, host_os isn't really good enough
8162   case $host_os in
8163    darwin*)
8164        if test -n "$STRIP" ; then
8165          striplib="$STRIP -x"
8166          echo "$as_me:$LINENO: result: yes" >&5
8167 echo "${ECHO_T}yes" >&6
8168        else
8169   echo "$as_me:$LINENO: result: no" >&5
8170 echo "${ECHO_T}no" >&6
8171 fi
8172        ;;
8173    *)
8174   echo "$as_me:$LINENO: result: no" >&5
8175 echo "${ECHO_T}no" >&6
8176     ;;
8177   esac
8178 fi
8179
8180 if test "x$enable_dlopen" != xyes; then
8181   enable_dlopen=unknown
8182   enable_dlopen_self=unknown
8183   enable_dlopen_self_static=unknown
8184 else
8185   lt_cv_dlopen=no
8186   lt_cv_dlopen_libs=
8187
8188   case $host_os in
8189   beos*)
8190     lt_cv_dlopen="load_add_on"
8191     lt_cv_dlopen_libs=
8192     lt_cv_dlopen_self=yes
8193     ;;
8194
8195   mingw* | pw32*)
8196     lt_cv_dlopen="LoadLibrary"
8197     lt_cv_dlopen_libs=
8198    ;;
8199
8200   cygwin*)
8201     lt_cv_dlopen="dlopen"
8202     lt_cv_dlopen_libs=
8203    ;;
8204
8205   darwin*)
8206   # if libdl is installed we need to link against it
8207     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8208 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8209 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8210   echo $ECHO_N "(cached) $ECHO_C" >&6
8211 else
8212   ac_check_lib_save_LIBS=$LIBS
8213 LIBS="-ldl  $LIBS"
8214 cat >conftest.$ac_ext <<_ACEOF
8215 /* confdefs.h.  */
8216 _ACEOF
8217 cat confdefs.h >>conftest.$ac_ext
8218 cat >>conftest.$ac_ext <<_ACEOF
8219 /* end confdefs.h.  */
8220
8221 /* Override any gcc2 internal prototype to avoid an error.  */
8222 #ifdef __cplusplus
8223 extern "C"
8224 #endif
8225 /* We use char because int might match the return type of a gcc2
8226    builtin and then its argument prototype would still apply.  */
8227 char dlopen ();
8228 int
8229 main ()
8230 {
8231 dlopen ();
8232   ;
8233   return 0;
8234 }
8235 _ACEOF
8236 rm -f conftest.$ac_objext conftest$ac_exeext
8237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8238   (eval $ac_link) 2>conftest.er1
8239   ac_status=$?
8240   grep -v '^ *+' conftest.er1 >conftest.err
8241   rm -f conftest.er1
8242   cat conftest.err >&5
8243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244   (exit $ac_status); } &&
8245          { ac_try='test -z "$ac_c_werror_flag"
8246                          || test ! -s conftest.err'
8247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8248   (eval $ac_try) 2>&5
8249   ac_status=$?
8250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251   (exit $ac_status); }; } &&
8252          { ac_try='test -s conftest$ac_exeext'
8253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8254   (eval $ac_try) 2>&5
8255   ac_status=$?
8256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257   (exit $ac_status); }; }; then
8258   ac_cv_lib_dl_dlopen=yes
8259 else
8260   echo "$as_me: failed program was:" >&5
8261 sed 's/^/| /' conftest.$ac_ext >&5
8262
8263 ac_cv_lib_dl_dlopen=no
8264 fi
8265 rm -f conftest.err conftest.$ac_objext \
8266       conftest$ac_exeext conftest.$ac_ext
8267 LIBS=$ac_check_lib_save_LIBS
8268 fi
8269 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8270 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8271 if test $ac_cv_lib_dl_dlopen = yes; then
8272   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8273 else
8274
8275     lt_cv_dlopen="dyld"
8276     lt_cv_dlopen_libs=
8277     lt_cv_dlopen_self=yes
8278
8279 fi
8280
8281    ;;
8282
8283   *)
8284     echo "$as_me:$LINENO: checking for shl_load" >&5
8285 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8286 if test "${ac_cv_func_shl_load+set}" = set; then
8287   echo $ECHO_N "(cached) $ECHO_C" >&6
8288 else
8289   cat >conftest.$ac_ext <<_ACEOF
8290 /* confdefs.h.  */
8291 _ACEOF
8292 cat confdefs.h >>conftest.$ac_ext
8293 cat >>conftest.$ac_ext <<_ACEOF
8294 /* end confdefs.h.  */
8295 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8296    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8297 #define shl_load innocuous_shl_load
8298
8299 /* System header to define __stub macros and hopefully few prototypes,
8300     which can conflict with char shl_load (); below.
8301     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8302     <limits.h> exists even on freestanding compilers.  */
8303
8304 #ifdef __STDC__
8305 # include <limits.h>
8306 #else
8307 # include <assert.h>
8308 #endif
8309
8310 #undef shl_load
8311
8312 /* Override any gcc2 internal prototype to avoid an error.  */
8313 #ifdef __cplusplus
8314 extern "C"
8315 {
8316 #endif
8317 /* We use char because int might match the return type of a gcc2
8318    builtin and then its argument prototype would still apply.  */
8319 char shl_load ();
8320 /* The GNU C library defines this for functions which it implements
8321     to always fail with ENOSYS.  Some functions are actually named
8322     something starting with __ and the normal name is an alias.  */
8323 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8324 choke me
8325 #else
8326 char (*f) () = shl_load;
8327 #endif
8328 #ifdef __cplusplus
8329 }
8330 #endif
8331
8332 int
8333 main ()
8334 {
8335 return f != shl_load;
8336   ;
8337   return 0;
8338 }
8339 _ACEOF
8340 rm -f conftest.$ac_objext conftest$ac_exeext
8341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8342   (eval $ac_link) 2>conftest.er1
8343   ac_status=$?
8344   grep -v '^ *+' conftest.er1 >conftest.err
8345   rm -f conftest.er1
8346   cat conftest.err >&5
8347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8348   (exit $ac_status); } &&
8349          { ac_try='test -z "$ac_c_werror_flag"
8350                          || test ! -s conftest.err'
8351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8352   (eval $ac_try) 2>&5
8353   ac_status=$?
8354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355   (exit $ac_status); }; } &&
8356          { ac_try='test -s conftest$ac_exeext'
8357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8358   (eval $ac_try) 2>&5
8359   ac_status=$?
8360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361   (exit $ac_status); }; }; then
8362   ac_cv_func_shl_load=yes
8363 else
8364   echo "$as_me: failed program was:" >&5
8365 sed 's/^/| /' conftest.$ac_ext >&5
8366
8367 ac_cv_func_shl_load=no
8368 fi
8369 rm -f conftest.err conftest.$ac_objext \
8370       conftest$ac_exeext conftest.$ac_ext
8371 fi
8372 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8373 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8374 if test $ac_cv_func_shl_load = yes; then
8375   lt_cv_dlopen="shl_load"
8376 else
8377   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8378 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8379 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8380   echo $ECHO_N "(cached) $ECHO_C" >&6
8381 else
8382   ac_check_lib_save_LIBS=$LIBS
8383 LIBS="-ldld  $LIBS"
8384 cat >conftest.$ac_ext <<_ACEOF
8385 /* confdefs.h.  */
8386 _ACEOF
8387 cat confdefs.h >>conftest.$ac_ext
8388 cat >>conftest.$ac_ext <<_ACEOF
8389 /* end confdefs.h.  */
8390
8391 /* Override any gcc2 internal prototype to avoid an error.  */
8392 #ifdef __cplusplus
8393 extern "C"
8394 #endif
8395 /* We use char because int might match the return type of a gcc2
8396    builtin and then its argument prototype would still apply.  */
8397 char shl_load ();
8398 int
8399 main ()
8400 {
8401 shl_load ();
8402   ;
8403   return 0;
8404 }
8405 _ACEOF
8406 rm -f conftest.$ac_objext conftest$ac_exeext
8407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8408   (eval $ac_link) 2>conftest.er1
8409   ac_status=$?
8410   grep -v '^ *+' conftest.er1 >conftest.err
8411   rm -f conftest.er1
8412   cat conftest.err >&5
8413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414   (exit $ac_status); } &&
8415          { ac_try='test -z "$ac_c_werror_flag"
8416                          || test ! -s conftest.err'
8417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8418   (eval $ac_try) 2>&5
8419   ac_status=$?
8420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421   (exit $ac_status); }; } &&
8422          { ac_try='test -s conftest$ac_exeext'
8423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8424   (eval $ac_try) 2>&5
8425   ac_status=$?
8426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427   (exit $ac_status); }; }; then
8428   ac_cv_lib_dld_shl_load=yes
8429 else
8430   echo "$as_me: failed program was:" >&5
8431 sed 's/^/| /' conftest.$ac_ext >&5
8432
8433 ac_cv_lib_dld_shl_load=no
8434 fi
8435 rm -f conftest.err conftest.$ac_objext \
8436       conftest$ac_exeext conftest.$ac_ext
8437 LIBS=$ac_check_lib_save_LIBS
8438 fi
8439 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8440 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8441 if test $ac_cv_lib_dld_shl_load = yes; then
8442   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8443 else
8444   echo "$as_me:$LINENO: checking for dlopen" >&5
8445 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8446 if test "${ac_cv_func_dlopen+set}" = set; then
8447   echo $ECHO_N "(cached) $ECHO_C" >&6
8448 else
8449   cat >conftest.$ac_ext <<_ACEOF
8450 /* confdefs.h.  */
8451 _ACEOF
8452 cat confdefs.h >>conftest.$ac_ext
8453 cat >>conftest.$ac_ext <<_ACEOF
8454 /* end confdefs.h.  */
8455 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8456    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8457 #define dlopen innocuous_dlopen
8458
8459 /* System header to define __stub macros and hopefully few prototypes,
8460     which can conflict with char dlopen (); below.
8461     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8462     <limits.h> exists even on freestanding compilers.  */
8463
8464 #ifdef __STDC__
8465 # include <limits.h>
8466 #else
8467 # include <assert.h>
8468 #endif
8469
8470 #undef dlopen
8471
8472 /* Override any gcc2 internal prototype to avoid an error.  */
8473 #ifdef __cplusplus
8474 extern "C"
8475 {
8476 #endif
8477 /* We use char because int might match the return type of a gcc2
8478    builtin and then its argument prototype would still apply.  */
8479 char dlopen ();
8480 /* The GNU C library defines this for functions which it implements
8481     to always fail with ENOSYS.  Some functions are actually named
8482     something starting with __ and the normal name is an alias.  */
8483 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8484 choke me
8485 #else
8486 char (*f) () = dlopen;
8487 #endif
8488 #ifdef __cplusplus
8489 }
8490 #endif
8491
8492 int
8493 main ()
8494 {
8495 return f != dlopen;
8496   ;
8497   return 0;
8498 }
8499 _ACEOF
8500 rm -f conftest.$ac_objext conftest$ac_exeext
8501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8502   (eval $ac_link) 2>conftest.er1
8503   ac_status=$?
8504   grep -v '^ *+' conftest.er1 >conftest.err
8505   rm -f conftest.er1
8506   cat conftest.err >&5
8507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508   (exit $ac_status); } &&
8509          { ac_try='test -z "$ac_c_werror_flag"
8510                          || test ! -s conftest.err'
8511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8512   (eval $ac_try) 2>&5
8513   ac_status=$?
8514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515   (exit $ac_status); }; } &&
8516          { ac_try='test -s conftest$ac_exeext'
8517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8518   (eval $ac_try) 2>&5
8519   ac_status=$?
8520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521   (exit $ac_status); }; }; then
8522   ac_cv_func_dlopen=yes
8523 else
8524   echo "$as_me: failed program was:" >&5
8525 sed 's/^/| /' conftest.$ac_ext >&5
8526
8527 ac_cv_func_dlopen=no
8528 fi
8529 rm -f conftest.err conftest.$ac_objext \
8530       conftest$ac_exeext conftest.$ac_ext
8531 fi
8532 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8533 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8534 if test $ac_cv_func_dlopen = yes; then
8535   lt_cv_dlopen="dlopen"
8536 else
8537   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8538 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8539 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8540   echo $ECHO_N "(cached) $ECHO_C" >&6
8541 else
8542   ac_check_lib_save_LIBS=$LIBS
8543 LIBS="-ldl  $LIBS"
8544 cat >conftest.$ac_ext <<_ACEOF
8545 /* confdefs.h.  */
8546 _ACEOF
8547 cat confdefs.h >>conftest.$ac_ext
8548 cat >>conftest.$ac_ext <<_ACEOF
8549 /* end confdefs.h.  */
8550
8551 /* Override any gcc2 internal prototype to avoid an error.  */
8552 #ifdef __cplusplus
8553 extern "C"
8554 #endif
8555 /* We use char because int might match the return type of a gcc2
8556    builtin and then its argument prototype would still apply.  */
8557 char dlopen ();
8558 int
8559 main ()
8560 {
8561 dlopen ();
8562   ;
8563   return 0;
8564 }
8565 _ACEOF
8566 rm -f conftest.$ac_objext conftest$ac_exeext
8567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8568   (eval $ac_link) 2>conftest.er1
8569   ac_status=$?
8570   grep -v '^ *+' conftest.er1 >conftest.err
8571   rm -f conftest.er1
8572   cat conftest.err >&5
8573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574   (exit $ac_status); } &&
8575          { ac_try='test -z "$ac_c_werror_flag"
8576                          || test ! -s conftest.err'
8577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8578   (eval $ac_try) 2>&5
8579   ac_status=$?
8580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581   (exit $ac_status); }; } &&
8582          { ac_try='test -s conftest$ac_exeext'
8583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8584   (eval $ac_try) 2>&5
8585   ac_status=$?
8586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587   (exit $ac_status); }; }; then
8588   ac_cv_lib_dl_dlopen=yes
8589 else
8590   echo "$as_me: failed program was:" >&5
8591 sed 's/^/| /' conftest.$ac_ext >&5
8592
8593 ac_cv_lib_dl_dlopen=no
8594 fi
8595 rm -f conftest.err conftest.$ac_objext \
8596       conftest$ac_exeext conftest.$ac_ext
8597 LIBS=$ac_check_lib_save_LIBS
8598 fi
8599 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8600 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8601 if test $ac_cv_lib_dl_dlopen = yes; then
8602   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8603 else
8604   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8605 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8606 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8607   echo $ECHO_N "(cached) $ECHO_C" >&6
8608 else
8609   ac_check_lib_save_LIBS=$LIBS
8610 LIBS="-lsvld  $LIBS"
8611 cat >conftest.$ac_ext <<_ACEOF
8612 /* confdefs.h.  */
8613 _ACEOF
8614 cat confdefs.h >>conftest.$ac_ext
8615 cat >>conftest.$ac_ext <<_ACEOF
8616 /* end confdefs.h.  */
8617
8618 /* Override any gcc2 internal prototype to avoid an error.  */
8619 #ifdef __cplusplus
8620 extern "C"
8621 #endif
8622 /* We use char because int might match the return type of a gcc2
8623    builtin and then its argument prototype would still apply.  */
8624 char dlopen ();
8625 int
8626 main ()
8627 {
8628 dlopen ();
8629   ;
8630   return 0;
8631 }
8632 _ACEOF
8633 rm -f conftest.$ac_objext conftest$ac_exeext
8634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8635   (eval $ac_link) 2>conftest.er1
8636   ac_status=$?
8637   grep -v '^ *+' conftest.er1 >conftest.err
8638   rm -f conftest.er1
8639   cat conftest.err >&5
8640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641   (exit $ac_status); } &&
8642          { ac_try='test -z "$ac_c_werror_flag"
8643                          || test ! -s conftest.err'
8644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8645   (eval $ac_try) 2>&5
8646   ac_status=$?
8647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648   (exit $ac_status); }; } &&
8649          { ac_try='test -s conftest$ac_exeext'
8650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8651   (eval $ac_try) 2>&5
8652   ac_status=$?
8653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654   (exit $ac_status); }; }; then
8655   ac_cv_lib_svld_dlopen=yes
8656 else
8657   echo "$as_me: failed program was:" >&5
8658 sed 's/^/| /' conftest.$ac_ext >&5
8659
8660 ac_cv_lib_svld_dlopen=no
8661 fi
8662 rm -f conftest.err conftest.$ac_objext \
8663       conftest$ac_exeext conftest.$ac_ext
8664 LIBS=$ac_check_lib_save_LIBS
8665 fi
8666 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8667 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8668 if test $ac_cv_lib_svld_dlopen = yes; then
8669   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8670 else
8671   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8672 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8673 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8674   echo $ECHO_N "(cached) $ECHO_C" >&6
8675 else
8676   ac_check_lib_save_LIBS=$LIBS
8677 LIBS="-ldld  $LIBS"
8678 cat >conftest.$ac_ext <<_ACEOF
8679 /* confdefs.h.  */
8680 _ACEOF
8681 cat confdefs.h >>conftest.$ac_ext
8682 cat >>conftest.$ac_ext <<_ACEOF
8683 /* end confdefs.h.  */
8684
8685 /* Override any gcc2 internal prototype to avoid an error.  */
8686 #ifdef __cplusplus
8687 extern "C"
8688 #endif
8689 /* We use char because int might match the return type of a gcc2
8690    builtin and then its argument prototype would still apply.  */
8691 char dld_link ();
8692 int
8693 main ()
8694 {
8695 dld_link ();
8696   ;
8697   return 0;
8698 }
8699 _ACEOF
8700 rm -f conftest.$ac_objext conftest$ac_exeext
8701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8702   (eval $ac_link) 2>conftest.er1
8703   ac_status=$?
8704   grep -v '^ *+' conftest.er1 >conftest.err
8705   rm -f conftest.er1
8706   cat conftest.err >&5
8707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708   (exit $ac_status); } &&
8709          { ac_try='test -z "$ac_c_werror_flag"
8710                          || test ! -s conftest.err'
8711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8712   (eval $ac_try) 2>&5
8713   ac_status=$?
8714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715   (exit $ac_status); }; } &&
8716          { ac_try='test -s conftest$ac_exeext'
8717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8718   (eval $ac_try) 2>&5
8719   ac_status=$?
8720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721   (exit $ac_status); }; }; then
8722   ac_cv_lib_dld_dld_link=yes
8723 else
8724   echo "$as_me: failed program was:" >&5
8725 sed 's/^/| /' conftest.$ac_ext >&5
8726
8727 ac_cv_lib_dld_dld_link=no
8728 fi
8729 rm -f conftest.err conftest.$ac_objext \
8730       conftest$ac_exeext conftest.$ac_ext
8731 LIBS=$ac_check_lib_save_LIBS
8732 fi
8733 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8734 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8735 if test $ac_cv_lib_dld_dld_link = yes; then
8736   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8737 fi
8738
8739
8740 fi
8741
8742
8743 fi
8744
8745
8746 fi
8747
8748
8749 fi
8750
8751
8752 fi
8753
8754     ;;
8755   esac
8756
8757   if test "x$lt_cv_dlopen" != xno; then
8758     enable_dlopen=yes
8759   else
8760     enable_dlopen=no
8761   fi
8762
8763   case $lt_cv_dlopen in
8764   dlopen)
8765     save_CPPFLAGS="$CPPFLAGS"
8766     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8767
8768     save_LDFLAGS="$LDFLAGS"
8769     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8770
8771     save_LIBS="$LIBS"
8772     LIBS="$lt_cv_dlopen_libs $LIBS"
8773
8774     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8775 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8776 if test "${lt_cv_dlopen_self+set}" = set; then
8777   echo $ECHO_N "(cached) $ECHO_C" >&6
8778 else
8779           if test "$cross_compiling" = yes; then :
8780   lt_cv_dlopen_self=cross
8781 else
8782   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8783   lt_status=$lt_dlunknown
8784   cat > conftest.$ac_ext <<EOF
8785 #line 8785 "configure"
8786 #include "confdefs.h"
8787
8788 #if HAVE_DLFCN_H
8789 #include <dlfcn.h>
8790 #endif
8791
8792 #include <stdio.h>
8793
8794 #ifdef RTLD_GLOBAL
8795 #  define LT_DLGLOBAL           RTLD_GLOBAL
8796 #else
8797 #  ifdef DL_GLOBAL
8798 #    define LT_DLGLOBAL         DL_GLOBAL
8799 #  else
8800 #    define LT_DLGLOBAL         0
8801 #  endif
8802 #endif
8803
8804 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8805    find out it does not work in some platform. */
8806 #ifndef LT_DLLAZY_OR_NOW
8807 #  ifdef RTLD_LAZY
8808 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8809 #  else
8810 #    ifdef DL_LAZY
8811 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8812 #    else
8813 #      ifdef RTLD_NOW
8814 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8815 #      else
8816 #        ifdef DL_NOW
8817 #          define LT_DLLAZY_OR_NOW      DL_NOW
8818 #        else
8819 #          define LT_DLLAZY_OR_NOW      0
8820 #        endif
8821 #      endif
8822 #    endif
8823 #  endif
8824 #endif
8825
8826 #ifdef __cplusplus
8827 extern "C" void exit (int);
8828 #endif
8829
8830 void fnord() { int i=42;}
8831 int main ()
8832 {
8833   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8834   int status = $lt_dlunknown;
8835
8836   if (self)
8837     {
8838       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8839       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8840       /* dlclose (self); */
8841     }
8842
8843     exit (status);
8844 }
8845 EOF
8846   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8847   (eval $ac_link) 2>&5
8848   ac_status=$?
8849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8851     (./conftest; exit; ) 2>/dev/null
8852     lt_status=$?
8853     case x$lt_status in
8854       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8855       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8856       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8857     esac
8858   else :
8859     # compilation failed
8860     lt_cv_dlopen_self=no
8861   fi
8862 fi
8863 rm -fr conftest*
8864
8865
8866 fi
8867 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8868 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8869
8870     if test "x$lt_cv_dlopen_self" = xyes; then
8871       LDFLAGS="$LDFLAGS $link_static_flag"
8872       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8873 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8874 if test "${lt_cv_dlopen_self_static+set}" = set; then
8875   echo $ECHO_N "(cached) $ECHO_C" >&6
8876 else
8877           if test "$cross_compiling" = yes; then :
8878   lt_cv_dlopen_self_static=cross
8879 else
8880   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8881   lt_status=$lt_dlunknown
8882   cat > conftest.$ac_ext <<EOF
8883 #line 8883 "configure"
8884 #include "confdefs.h"
8885
8886 #if HAVE_DLFCN_H
8887 #include <dlfcn.h>
8888 #endif
8889
8890 #include <stdio.h>
8891
8892 #ifdef RTLD_GLOBAL
8893 #  define LT_DLGLOBAL           RTLD_GLOBAL
8894 #else
8895 #  ifdef DL_GLOBAL
8896 #    define LT_DLGLOBAL         DL_GLOBAL
8897 #  else
8898 #    define LT_DLGLOBAL         0
8899 #  endif
8900 #endif
8901
8902 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8903    find out it does not work in some platform. */
8904 #ifndef LT_DLLAZY_OR_NOW
8905 #  ifdef RTLD_LAZY
8906 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8907 #  else
8908 #    ifdef DL_LAZY
8909 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8910 #    else
8911 #      ifdef RTLD_NOW
8912 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8913 #      else
8914 #        ifdef DL_NOW
8915 #          define LT_DLLAZY_OR_NOW      DL_NOW
8916 #        else
8917 #          define LT_DLLAZY_OR_NOW      0
8918 #        endif
8919 #      endif
8920 #    endif
8921 #  endif
8922 #endif
8923
8924 #ifdef __cplusplus
8925 extern "C" void exit (int);
8926 #endif
8927
8928 void fnord() { int i=42;}
8929 int main ()
8930 {
8931   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8932   int status = $lt_dlunknown;
8933
8934   if (self)
8935     {
8936       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8937       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8938       /* dlclose (self); */
8939     }
8940
8941     exit (status);
8942 }
8943 EOF
8944   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8945   (eval $ac_link) 2>&5
8946   ac_status=$?
8947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8949     (./conftest; exit; ) 2>/dev/null
8950     lt_status=$?
8951     case x$lt_status in
8952       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8953       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8954       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8955     esac
8956   else :
8957     # compilation failed
8958     lt_cv_dlopen_self_static=no
8959   fi
8960 fi
8961 rm -fr conftest*
8962
8963
8964 fi
8965 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8966 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8967     fi
8968
8969     CPPFLAGS="$save_CPPFLAGS"
8970     LDFLAGS="$save_LDFLAGS"
8971     LIBS="$save_LIBS"
8972     ;;
8973   esac
8974
8975   case $lt_cv_dlopen_self in
8976   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8977   *) enable_dlopen_self=unknown ;;
8978   esac
8979
8980   case $lt_cv_dlopen_self_static in
8981   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8982   *) enable_dlopen_self_static=unknown ;;
8983   esac
8984 fi
8985
8986
8987 # Report which librarie types wil actually be built
8988 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8989 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8990 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8991 echo "${ECHO_T}$can_build_shared" >&6
8992
8993 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8994 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8995 test "$can_build_shared" = "no" && enable_shared=no
8996
8997 # On AIX, shared libraries and static libraries use the same namespace, and
8998 # are all built from PIC.
8999 case "$host_os" in
9000 aix3*)
9001   test "$enable_shared" = yes && enable_static=no
9002   if test -n "$RANLIB"; then
9003     archive_cmds="$archive_cmds~\$RANLIB \$lib"
9004     postinstall_cmds='$RANLIB $lib'
9005   fi
9006   ;;
9007
9008 aix4* | aix5*)
9009   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9010     test "$enable_shared" = yes && enable_static=no
9011   fi
9012   ;;
9013   darwin* | rhapsody*)
9014   if test "$GCC" = yes; then
9015     archive_cmds_need_lc=no
9016     case "$host_os" in
9017     rhapsody* | darwin1.[012])
9018       allow_undefined_flag='-undefined suppress'
9019       ;;
9020     *) # Darwin 1.3 on
9021       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9022         allow_undefined_flag='-flat_namespace -undefined suppress'
9023       else
9024         case ${MACOSX_DEPLOYMENT_TARGET} in
9025           10.[012])
9026             allow_undefined_flag='-flat_namespace -undefined suppress'
9027             ;;
9028           10.*)
9029             allow_undefined_flag='-undefined dynamic_lookup'
9030             ;;
9031         esac
9032       fi
9033       ;;
9034     esac
9035     output_verbose_link_cmd='echo'
9036     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9037     module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9038     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9039     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}'
9040     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}'
9041     hardcode_direct=no
9042     hardcode_automatic=yes
9043     hardcode_shlibpath_var=unsupported
9044     whole_archive_flag_spec='-all_load $convenience'
9045     link_all_deplibs=yes
9046   else
9047     ld_shlibs=no
9048   fi
9049     ;;
9050 esac
9051 echo "$as_me:$LINENO: result: $enable_shared" >&5
9052 echo "${ECHO_T}$enable_shared" >&6
9053
9054 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9055 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9056 # Make sure either enable_shared or enable_static is yes.
9057 test "$enable_shared" = yes || enable_static=yes
9058 echo "$as_me:$LINENO: result: $enable_static" >&5
9059 echo "${ECHO_T}$enable_static" >&6
9060
9061 # The else clause should only fire when bootstrapping the
9062 # libtool distribution, otherwise you forgot to ship ltmain.sh
9063 # with your package, and you will get complaints that there are
9064 # no rules to generate ltmain.sh.
9065 if test -f "$ltmain"; then
9066   # See if we are running on zsh, and set the options which allow our commands through
9067   # without removal of \ escapes.
9068   if test -n "${ZSH_VERSION+set}" ; then
9069     setopt NO_GLOB_SUBST
9070   fi
9071   # Now quote all the things that may contain metacharacters while being
9072   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9073   # variables and quote the copies for generation of the libtool script.
9074   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9075     SED SHELL STRIP \
9076     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9077     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9078     deplibs_check_method reload_flag reload_cmds need_locks \
9079     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9080     lt_cv_sys_global_symbol_to_c_name_address \
9081     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9082     old_postinstall_cmds old_postuninstall_cmds \
9083     compiler \
9084     CC \
9085     LD \
9086     lt_prog_compiler_wl \
9087     lt_prog_compiler_pic \
9088     lt_prog_compiler_static \
9089     lt_prog_compiler_no_builtin_flag \
9090     export_dynamic_flag_spec \
9091     thread_safe_flag_spec \
9092     whole_archive_flag_spec \
9093     enable_shared_with_static_runtimes \
9094     old_archive_cmds \
9095     old_archive_from_new_cmds \
9096     predep_objects \
9097     postdep_objects \
9098     predeps \
9099     postdeps \
9100     compiler_lib_search_path \
9101     archive_cmds \
9102     archive_expsym_cmds \
9103     postinstall_cmds \
9104     postuninstall_cmds \
9105     old_archive_from_expsyms_cmds \
9106     allow_undefined_flag \
9107     no_undefined_flag \
9108     export_symbols_cmds \
9109     hardcode_libdir_flag_spec \
9110     hardcode_libdir_flag_spec_ld \
9111     hardcode_libdir_separator \
9112     hardcode_automatic \
9113     module_cmds \
9114     module_expsym_cmds \
9115     lt_cv_prog_compiler_c_o \
9116     exclude_expsyms \
9117     include_expsyms; do
9118
9119     case $var in
9120     old_archive_cmds | \
9121     old_archive_from_new_cmds | \
9122     archive_cmds | \
9123     archive_expsym_cmds | \
9124     module_cmds | \
9125     module_expsym_cmds | \
9126     old_archive_from_expsyms_cmds | \
9127     export_symbols_cmds | \
9128     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9129     postinstall_cmds | postuninstall_cmds | \
9130     old_postinstall_cmds | old_postuninstall_cmds | \
9131     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9132       # Double-quote double-evaled strings.
9133       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9134       ;;
9135     *)
9136       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9137       ;;
9138     esac
9139   done
9140
9141   case $lt_echo in
9142   *'\$0 --fallback-echo"')
9143     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9144     ;;
9145   esac
9146
9147 cfgfile="${ofile}T"
9148   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9149   $rm -f "$cfgfile"
9150   { echo "$as_me:$LINENO: creating $ofile" >&5
9151 echo "$as_me: creating $ofile" >&6;}
9152
9153   cat <<__EOF__ >> "$cfgfile"
9154 #! $SHELL
9155
9156 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9157 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9158 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9159 #
9160 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9161 # Free Software Foundation, Inc.
9162 #
9163 # This file is part of GNU Libtool:
9164 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9165 #
9166 # This program is free software; you can redistribute it and/or modify
9167 # it under the terms of the GNU General Public License as published by
9168 # the Free Software Foundation; either version 2 of the License, or
9169 # (at your option) any later version.
9170 #
9171 # This program is distributed in the hope that it will be useful, but
9172 # WITHOUT ANY WARRANTY; without even the implied warranty of
9173 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9174 # General Public License for more details.
9175 #
9176 # You should have received a copy of the GNU General Public License
9177 # along with this program; if not, write to the Free Software
9178 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9179 #
9180 # As a special exception to the GNU General Public License, if you
9181 # distribute this file as part of a program that contains a
9182 # configuration script generated by Autoconf, you may include it under
9183 # the same distribution terms that you use for the rest of that program.
9184
9185 # A sed program that does not truncate output.
9186 SED=$lt_SED
9187
9188 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9189 Xsed="$SED -e s/^X//"
9190
9191 # The HP-UX ksh and POSIX shell print the target directory to stdout
9192 # if CDPATH is set.
9193 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9194
9195 # The names of the tagged configurations supported by this script.
9196 available_tags=
9197
9198 # ### BEGIN LIBTOOL CONFIG
9199
9200 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9201
9202 # Shell to use when invoking shell scripts.
9203 SHELL=$lt_SHELL
9204
9205 # Whether or not to build shared libraries.
9206 build_libtool_libs=$enable_shared
9207
9208 # Whether or not to build static libraries.
9209 build_old_libs=$enable_static
9210
9211 # Whether or not to add -lc for building shared libraries.
9212 build_libtool_need_lc=$archive_cmds_need_lc
9213
9214 # Whether or not to disallow shared libs when runtime libs are static
9215 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9216
9217 # Whether or not to optimize for fast installation.
9218 fast_install=$enable_fast_install
9219
9220 # The host system.
9221 host_alias=$host_alias
9222 host=$host
9223
9224 # An echo program that does not interpret backslashes.
9225 echo=$lt_echo
9226
9227 # The archiver.
9228 AR=$lt_AR
9229 AR_FLAGS=$lt_AR_FLAGS
9230
9231 # A C compiler.
9232 LTCC=$lt_LTCC
9233
9234 # A language-specific compiler.
9235 CC=$lt_compiler
9236
9237 # Is the compiler the GNU C compiler?
9238 with_gcc=$GCC
9239
9240 # An ERE matcher.
9241 EGREP=$lt_EGREP
9242
9243 # The linker used to build libraries.
9244 LD=$lt_LD
9245
9246 # Whether we need hard or soft links.
9247 LN_S=$lt_LN_S
9248
9249 # A BSD-compatible nm program.
9250 NM=$lt_NM
9251
9252 # A symbol stripping program
9253 STRIP=$lt_STRIP
9254
9255 # Used to examine libraries when file_magic_cmd begins "file"
9256 MAGIC_CMD=$MAGIC_CMD
9257
9258 # Used on cygwin: DLL creation program.
9259 DLLTOOL="$DLLTOOL"
9260
9261 # Used on cygwin: object dumper.
9262 OBJDUMP="$OBJDUMP"
9263
9264 # Used on cygwin: assembler.
9265 AS="$AS"
9266
9267 # The name of the directory that contains temporary libtool files.
9268 objdir=$objdir
9269
9270 # How to create reloadable object files.
9271 reload_flag=$lt_reload_flag
9272 reload_cmds=$lt_reload_cmds
9273
9274 # How to pass a linker flag through the compiler.
9275 wl=$lt_lt_prog_compiler_wl
9276
9277 # Object file suffix (normally "o").
9278 objext="$ac_objext"
9279
9280 # Old archive suffix (normally "a").
9281 libext="$libext"
9282
9283 # Shared library suffix (normally ".so").
9284 shrext_cmds='$shrext_cmds'
9285
9286 # Executable file suffix (normally "").
9287 exeext="$exeext"
9288
9289 # Additional compiler flags for building library objects.
9290 pic_flag=$lt_lt_prog_compiler_pic
9291 pic_mode=$pic_mode
9292
9293 # What is the maximum length of a command?
9294 max_cmd_len=$lt_cv_sys_max_cmd_len
9295
9296 # Does compiler simultaneously support -c and -o options?
9297 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9298
9299 # Must we lock files when doing compilation ?
9300 need_locks=$lt_need_locks
9301
9302 # Do we need the lib prefix for modules?
9303 need_lib_prefix=$need_lib_prefix
9304
9305 # Do we need a version for libraries?
9306 need_version=$need_version
9307
9308 # Whether dlopen is supported.
9309 dlopen_support=$enable_dlopen
9310
9311 # Whether dlopen of programs is supported.
9312 dlopen_self=$enable_dlopen_self
9313
9314 # Whether dlopen of statically linked programs is supported.
9315 dlopen_self_static=$enable_dlopen_self_static
9316
9317 # Compiler flag to prevent dynamic linking.
9318 link_static_flag=$lt_lt_prog_compiler_static
9319
9320 # Compiler flag to turn off builtin functions.
9321 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9322
9323 # Compiler flag to allow reflexive dlopens.
9324 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9325
9326 # Compiler flag to generate shared objects directly from archives.
9327 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9328
9329 # Compiler flag to generate thread-safe objects.
9330 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9331
9332 # Library versioning type.
9333 version_type=$version_type
9334
9335 # Format of library name prefix.
9336 libname_spec=$lt_libname_spec
9337
9338 # List of archive names.  First name is the real one, the rest are links.
9339 # The last name is the one that the linker finds with -lNAME.
9340 library_names_spec=$lt_library_names_spec
9341
9342 # The coded name of the library, if different from the real name.
9343 soname_spec=$lt_soname_spec
9344
9345 # Commands used to build and install an old-style archive.
9346 RANLIB=$lt_RANLIB
9347 old_archive_cmds=$lt_old_archive_cmds
9348 old_postinstall_cmds=$lt_old_postinstall_cmds
9349 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9350
9351 # Create an old-style archive from a shared archive.
9352 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9353
9354 # Create a temporary old-style archive to link instead of a shared archive.
9355 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9356
9357 # Commands used to build and install a shared archive.
9358 archive_cmds=$lt_archive_cmds
9359 archive_expsym_cmds=$lt_archive_expsym_cmds
9360 postinstall_cmds=$lt_postinstall_cmds
9361 postuninstall_cmds=$lt_postuninstall_cmds
9362
9363 # Commands used to build a loadable module (assumed same as above if empty)
9364 module_cmds=$lt_module_cmds
9365 module_expsym_cmds=$lt_module_expsym_cmds
9366
9367 # Commands to strip libraries.
9368 old_striplib=$lt_old_striplib
9369 striplib=$lt_striplib
9370
9371 # Dependencies to place before the objects being linked to create a
9372 # shared library.
9373 predep_objects=$lt_predep_objects
9374
9375 # Dependencies to place after the objects being linked to create a
9376 # shared library.
9377 postdep_objects=$lt_postdep_objects
9378
9379 # Dependencies to place before the objects being linked to create a
9380 # shared library.
9381 predeps=$lt_predeps
9382
9383 # Dependencies to place after the objects being linked to create a
9384 # shared library.
9385 postdeps=$lt_postdeps
9386
9387 # The library search path used internally by the compiler when linking
9388 # a shared library.
9389 compiler_lib_search_path=$lt_compiler_lib_search_path
9390
9391 # Method to check whether dependent libraries are shared objects.
9392 deplibs_check_method=$lt_deplibs_check_method
9393
9394 # Command to use when deplibs_check_method == file_magic.
9395 file_magic_cmd=$lt_file_magic_cmd
9396
9397 # Flag that allows shared libraries with undefined symbols to be built.
9398 allow_undefined_flag=$lt_allow_undefined_flag
9399
9400 # Flag that forces no undefined symbols.
9401 no_undefined_flag=$lt_no_undefined_flag
9402
9403 # Commands used to finish a libtool library installation in a directory.
9404 finish_cmds=$lt_finish_cmds
9405
9406 # Same as above, but a single script fragment to be evaled but not shown.
9407 finish_eval=$lt_finish_eval
9408
9409 # Take the output of nm and produce a listing of raw symbols and C names.
9410 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9411
9412 # Transform the output of nm in a proper C declaration
9413 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9414
9415 # Transform the output of nm in a C name address pair
9416 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9417
9418 # This is the shared library runtime path variable.
9419 runpath_var=$runpath_var
9420
9421 # This is the shared library path variable.
9422 shlibpath_var=$shlibpath_var
9423
9424 # Is shlibpath searched before the hard-coded library search path?
9425 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9426
9427 # How to hardcode a shared library path into an executable.
9428 hardcode_action=$hardcode_action
9429
9430 # Whether we should hardcode library paths into libraries.
9431 hardcode_into_libs=$hardcode_into_libs
9432
9433 # Flag to hardcode \$libdir into a binary during linking.
9434 # This must work even if \$libdir does not exist.
9435 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9436
9437 # If ld is used when linking, flag to hardcode \$libdir into
9438 # a binary during linking. This must work even if \$libdir does
9439 # not exist.
9440 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9441
9442 # Whether we need a single -rpath flag with a separated argument.
9443 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9444
9445 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9446 # resulting binary.
9447 hardcode_direct=$hardcode_direct
9448
9449 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9450 # resulting binary.
9451 hardcode_minus_L=$hardcode_minus_L
9452
9453 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9454 # the resulting binary.
9455 hardcode_shlibpath_var=$hardcode_shlibpath_var
9456
9457 # Set to yes if building a shared library automatically hardcodes DIR into the library
9458 # and all subsequent libraries and executables linked against it.
9459 hardcode_automatic=$hardcode_automatic
9460
9461 # Variables whose values should be saved in libtool wrapper scripts and
9462 # restored at relink time.
9463 variables_saved_for_relink="$variables_saved_for_relink"
9464
9465 # Whether libtool must link a program against all its dependency libraries.
9466 link_all_deplibs=$link_all_deplibs
9467
9468 # Compile-time system search path for libraries
9469 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9470
9471 # Run-time system search path for libraries
9472 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9473
9474 # Fix the shell variable \$srcfile for the compiler.
9475 fix_srcfile_path="$fix_srcfile_path"
9476
9477 # Set to yes if exported symbols are required.
9478 always_export_symbols=$always_export_symbols
9479
9480 # The commands to list exported symbols.
9481 export_symbols_cmds=$lt_export_symbols_cmds
9482
9483 # The commands to extract the exported symbol list from a shared archive.
9484 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9485
9486 # Symbols that should not be listed in the preloaded symbols.
9487 exclude_expsyms=$lt_exclude_expsyms
9488
9489 # Symbols that must always be exported.
9490 include_expsyms=$lt_include_expsyms
9491
9492 # ### END LIBTOOL CONFIG
9493
9494 __EOF__
9495
9496
9497   case $host_os in
9498   aix3*)
9499     cat <<\EOF >> "$cfgfile"
9500
9501 # AIX sometimes has problems with the GCC collect2 program.  For some
9502 # reason, if we set the COLLECT_NAMES environment variable, the problems
9503 # vanish in a puff of smoke.
9504 if test "X${COLLECT_NAMES+set}" != Xset; then
9505   COLLECT_NAMES=
9506   export COLLECT_NAMES
9507 fi
9508 EOF
9509     ;;
9510   esac
9511
9512   # We use sed instead of cat because bash on DJGPP gets confused if
9513   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9514   # text mode, it properly converts lines to CR/LF.  This bash problem
9515   # is reportedly fixed, but why not run on old versions too?
9516   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9517
9518   mv -f "$cfgfile" "$ofile" || \
9519     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9520   chmod +x "$ofile"
9521
9522 else
9523   # If there is no Makefile yet, we rely on a make rule to execute
9524   # `config.status --recheck' to rerun these tests and create the
9525   # libtool script then.
9526   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9527   if test -f "$ltmain_in"; then
9528     test -f Makefile && make "$ltmain"
9529   fi
9530 fi
9531
9532
9533 ac_ext=c
9534 ac_cpp='$CPP $CPPFLAGS'
9535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9538
9539 CC="$lt_save_CC"
9540
9541
9542 # Check whether --with-tags or --without-tags was given.
9543 if test "${with_tags+set}" = set; then
9544   withval="$with_tags"
9545   tagnames="$withval"
9546 fi;
9547
9548 if test -f "$ltmain" && test -n "$tagnames"; then
9549   if test ! -f "${ofile}"; then
9550     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9551 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9552   fi
9553
9554   if test -z "$LTCC"; then
9555     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9556     if test -z "$LTCC"; then
9557       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9558 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9559     else
9560       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9561 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9562     fi
9563   fi
9564
9565   # Extract list of available tagged configurations in $ofile.
9566   # Note that this assumes the entire list is on one line.
9567   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9568
9569   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9570   for tagname in $tagnames; do
9571     IFS="$lt_save_ifs"
9572     # Check whether tagname contains only valid characters
9573     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9574     "") ;;
9575     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9576 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9577    { (exit 1); exit 1; }; }
9578         ;;
9579     esac
9580
9581     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9582     then
9583       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9584 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9585    { (exit 1); exit 1; }; }
9586     fi
9587
9588     # Update the list of available tags.
9589     if test -n "$tagname"; then
9590       echo appending configuration tag \"$tagname\" to $ofile
9591
9592       case $tagname in
9593       CXX)
9594         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9595           ac_ext=cc
9596 ac_cpp='$CXXCPP $CPPFLAGS'
9597 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9598 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9599 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9600
9601
9602
9603
9604 archive_cmds_need_lc_CXX=no
9605 allow_undefined_flag_CXX=
9606 always_export_symbols_CXX=no
9607 archive_expsym_cmds_CXX=
9608 export_dynamic_flag_spec_CXX=
9609 hardcode_direct_CXX=no
9610 hardcode_libdir_flag_spec_CXX=
9611 hardcode_libdir_flag_spec_ld_CXX=
9612 hardcode_libdir_separator_CXX=
9613 hardcode_minus_L_CXX=no
9614 hardcode_automatic_CXX=no
9615 module_cmds_CXX=
9616 module_expsym_cmds_CXX=
9617 link_all_deplibs_CXX=unknown
9618 old_archive_cmds_CXX=$old_archive_cmds
9619 no_undefined_flag_CXX=
9620 whole_archive_flag_spec_CXX=
9621 enable_shared_with_static_runtimes_CXX=no
9622
9623 # Dependencies to place before and after the object being linked:
9624 predep_objects_CXX=
9625 postdep_objects_CXX=
9626 predeps_CXX=
9627 postdeps_CXX=
9628 compiler_lib_search_path_CXX=
9629
9630 # Source file extension for C++ test sources.
9631 ac_ext=cc
9632
9633 # Object file extension for compiled C++ test sources.
9634 objext=o
9635 objext_CXX=$objext
9636
9637 # Code to be used in simple compile tests
9638 lt_simple_compile_test_code="int some_variable = 0;\n"
9639
9640 # Code to be used in simple link tests
9641 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9642
9643 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9644
9645 # If no C compiler was specified, use CC.
9646 LTCC=${LTCC-"$CC"}
9647
9648 # Allow CC to be a program name with arguments.
9649 compiler=$CC
9650
9651
9652 # Allow CC to be a program name with arguments.
9653 lt_save_CC=$CC
9654 lt_save_LD=$LD
9655 lt_save_GCC=$GCC
9656 GCC=$GXX
9657 lt_save_with_gnu_ld=$with_gnu_ld
9658 lt_save_path_LD=$lt_cv_path_LD
9659 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9660   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9661 else
9662   unset lt_cv_prog_gnu_ld
9663 fi
9664 if test -n "${lt_cv_path_LDCXX+set}"; then
9665   lt_cv_path_LD=$lt_cv_path_LDCXX
9666 else
9667   unset lt_cv_path_LD
9668 fi
9669 test -z "${LDCXX+set}" || LD=$LDCXX
9670 CC=${CXX-"c++"}
9671 compiler=$CC
9672 compiler_CXX=$CC
9673 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9674
9675 # We don't want -fno-exception wen compiling C++ code, so set the
9676 # no_builtin_flag separately
9677 if test "$GXX" = yes; then
9678   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9679 else
9680   lt_prog_compiler_no_builtin_flag_CXX=
9681 fi
9682
9683 if test "$GXX" = yes; then
9684   # Set up default GNU C++ configuration
9685
9686
9687 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9688 if test "${with_gnu_ld+set}" = set; then
9689   withval="$with_gnu_ld"
9690   test "$withval" = no || with_gnu_ld=yes
9691 else
9692   with_gnu_ld=no
9693 fi;
9694 ac_prog=ld
9695 if test "$GCC" = yes; then
9696   # Check if gcc -print-prog-name=ld gives a path.
9697   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9698 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9699   case $host in
9700   *-*-mingw*)
9701     # gcc leaves a trailing carriage return which upsets mingw
9702     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9703   *)
9704     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9705   esac
9706   case $ac_prog in
9707     # Accept absolute paths.
9708     [\\/]* | ?:[\\/]*)
9709       re_direlt='/[^/][^/]*/\.\./'
9710       # Canonicalize the pathname of ld
9711       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9712       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9713         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9714       done
9715       test -z "$LD" && LD="$ac_prog"
9716       ;;
9717   "")
9718     # If it fails, then pretend we aren't using GCC.
9719     ac_prog=ld
9720     ;;
9721   *)
9722     # If it is relative, then search for the first ld in PATH.
9723     with_gnu_ld=unknown
9724     ;;
9725   esac
9726 elif test "$with_gnu_ld" = yes; then
9727   echo "$as_me:$LINENO: checking for GNU ld" >&5
9728 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9729 else
9730   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9731 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9732 fi
9733 if test "${lt_cv_path_LD+set}" = set; then
9734   echo $ECHO_N "(cached) $ECHO_C" >&6
9735 else
9736   if test -z "$LD"; then
9737   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9738   for ac_dir in $PATH; do
9739     IFS="$lt_save_ifs"
9740     test -z "$ac_dir" && ac_dir=.
9741     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9742       lt_cv_path_LD="$ac_dir/$ac_prog"
9743       # Check to see if the program is GNU ld.  I'd rather use --version,
9744       # but apparently some GNU ld's only accept -v.
9745       # Break only if it was the GNU/non-GNU ld that we prefer.
9746       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9747       *GNU* | *'with BFD'*)
9748         test "$with_gnu_ld" != no && break
9749         ;;
9750       *)
9751         test "$with_gnu_ld" != yes && break
9752         ;;
9753       esac
9754     fi
9755   done
9756   IFS="$lt_save_ifs"
9757 else
9758   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9759 fi
9760 fi
9761
9762 LD="$lt_cv_path_LD"
9763 if test -n "$LD"; then
9764   echo "$as_me:$LINENO: result: $LD" >&5
9765 echo "${ECHO_T}$LD" >&6
9766 else
9767   echo "$as_me:$LINENO: result: no" >&5
9768 echo "${ECHO_T}no" >&6
9769 fi
9770 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9771 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9772    { (exit 1); exit 1; }; }
9773 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9774 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9775 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9776   echo $ECHO_N "(cached) $ECHO_C" >&6
9777 else
9778   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9779 case `$LD -v 2>&1 </dev/null` in
9780 *GNU* | *'with BFD'*)
9781   lt_cv_prog_gnu_ld=yes
9782   ;;
9783 *)
9784   lt_cv_prog_gnu_ld=no
9785   ;;
9786 esac
9787 fi
9788 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9789 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9790 with_gnu_ld=$lt_cv_prog_gnu_ld
9791
9792
9793
9794   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9795   # archiving commands below assume that GNU ld is being used.
9796   if test "$with_gnu_ld" = yes; then
9797     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9798     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'
9799
9800     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9801     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9802
9803     # If archive_cmds runs LD, not CC, wlarc should be empty
9804     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9805     #     investigate it a little bit more. (MM)
9806     wlarc='${wl}'
9807
9808     # ancient GNU ld didn't support --whole-archive et. al.
9809     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9810         grep 'no-whole-archive' > /dev/null; then
9811       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9812     else
9813       whole_archive_flag_spec_CXX=
9814     fi
9815   else
9816     with_gnu_ld=no
9817     wlarc=
9818
9819     # A generic and very simple default shared library creation
9820     # command for GNU C++ for the case where it uses the native
9821     # linker, instead of GNU ld.  If possible, this setting should
9822     # overridden to take advantage of the native linker features on
9823     # the platform it is being used on.
9824     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9825   fi
9826
9827   # Commands to make compiler produce verbose output that lists
9828   # what "hidden" libraries, object files and flags are used when
9829   # linking a shared library.
9830   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9831
9832 else
9833   GXX=no
9834   with_gnu_ld=no
9835   wlarc=
9836 fi
9837
9838 # PORTME: fill in a description of your system's C++ link characteristics
9839 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9840 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9841 ld_shlibs_CXX=yes
9842 case $host_os in
9843   aix3*)
9844     # FIXME: insert proper C++ library support
9845     ld_shlibs_CXX=no
9846     ;;
9847   aix4* | aix5*)
9848     if test "$host_cpu" = ia64; then
9849       # On IA64, the linker does run time linking by default, so we don't
9850       # have to do anything special.
9851       aix_use_runtimelinking=no
9852       exp_sym_flag='-Bexport'
9853       no_entry_flag=""
9854     else
9855       aix_use_runtimelinking=no
9856
9857       # Test if we are trying to use run time linking or normal
9858       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9859       # need to do runtime linking.
9860       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9861         for ld_flag in $LDFLAGS; do
9862           case $ld_flag in
9863           *-brtl*)
9864             aix_use_runtimelinking=yes
9865             break
9866             ;;
9867           esac
9868         done
9869       esac
9870
9871       exp_sym_flag='-bexport'
9872       no_entry_flag='-bnoentry'
9873     fi
9874
9875     # When large executables or shared objects are built, AIX ld can
9876     # have problems creating the table of contents.  If linking a library
9877     # or program results in "error TOC overflow" add -mminimal-toc to
9878     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9879     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9880
9881     archive_cmds_CXX=''
9882     hardcode_direct_CXX=yes
9883     hardcode_libdir_separator_CXX=':'
9884     link_all_deplibs_CXX=yes
9885
9886     if test "$GXX" = yes; then
9887       case $host_os in aix4.012|aix4.012.*)
9888       # We only want to do this on AIX 4.2 and lower, the check
9889       # below for broken collect2 doesn't work under 4.3+
9890         collect2name=`${CC} -print-prog-name=collect2`
9891         if test -f "$collect2name" && \
9892            strings "$collect2name" | grep resolve_lib_name >/dev/null
9893         then
9894           # We have reworked collect2
9895           hardcode_direct_CXX=yes
9896         else
9897           # We have old collect2
9898           hardcode_direct_CXX=unsupported
9899           # It fails to find uninstalled libraries when the uninstalled
9900           # path is not listed in the libpath.  Setting hardcode_minus_L
9901           # to unsupported forces relinking
9902           hardcode_minus_L_CXX=yes
9903           hardcode_libdir_flag_spec_CXX='-L$libdir'
9904           hardcode_libdir_separator_CXX=
9905         fi
9906       esac
9907       shared_flag='-shared'
9908     else
9909       # not using gcc
9910       if test "$host_cpu" = ia64; then
9911         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9912         # chokes on -Wl,-G. The following line is correct:
9913         shared_flag='-G'
9914       else
9915         if test "$aix_use_runtimelinking" = yes; then
9916           shared_flag='${wl}-G'
9917         else
9918           shared_flag='${wl}-bM:SRE'
9919         fi
9920       fi
9921     fi
9922
9923     # It seems that -bexpall does not export symbols beginning with
9924     # underscore (_), so it is better to generate a list of symbols to export.
9925     always_export_symbols_CXX=yes
9926     if test "$aix_use_runtimelinking" = yes; then
9927       # Warning - without using the other runtime loading flags (-brtl),
9928       # -berok will link without error, but may produce a broken library.
9929       allow_undefined_flag_CXX='-berok'
9930       # Determine the default libpath from the value encoded in an empty executable.
9931       cat >conftest.$ac_ext <<_ACEOF
9932 /* confdefs.h.  */
9933 _ACEOF
9934 cat confdefs.h >>conftest.$ac_ext
9935 cat >>conftest.$ac_ext <<_ACEOF
9936 /* end confdefs.h.  */
9937
9938 int
9939 main ()
9940 {
9941
9942   ;
9943   return 0;
9944 }
9945 _ACEOF
9946 rm -f conftest.$ac_objext conftest$ac_exeext
9947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9948   (eval $ac_link) 2>conftest.er1
9949   ac_status=$?
9950   grep -v '^ *+' conftest.er1 >conftest.err
9951   rm -f conftest.er1
9952   cat conftest.err >&5
9953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954   (exit $ac_status); } &&
9955          { ac_try='test -z "$ac_cxx_werror_flag"
9956                          || test ! -s conftest.err'
9957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9958   (eval $ac_try) 2>&5
9959   ac_status=$?
9960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961   (exit $ac_status); }; } &&
9962          { ac_try='test -s conftest$ac_exeext'
9963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9964   (eval $ac_try) 2>&5
9965   ac_status=$?
9966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967   (exit $ac_status); }; }; then
9968
9969 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9970 }'`
9971 # Check for a 64-bit object if we didn't find anything.
9972 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; }
9973 }'`; fi
9974 else
9975   echo "$as_me: failed program was:" >&5
9976 sed 's/^/| /' conftest.$ac_ext >&5
9977
9978 fi
9979 rm -f conftest.err conftest.$ac_objext \
9980       conftest$ac_exeext conftest.$ac_ext
9981 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9982
9983       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9984
9985       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9986      else
9987       if test "$host_cpu" = ia64; then
9988         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9989         allow_undefined_flag_CXX="-z nodefs"
9990         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
9991       else
9992         # Determine the default libpath from the value encoded in an empty executable.
9993         cat >conftest.$ac_ext <<_ACEOF
9994 /* confdefs.h.  */
9995 _ACEOF
9996 cat confdefs.h >>conftest.$ac_ext
9997 cat >>conftest.$ac_ext <<_ACEOF
9998 /* end confdefs.h.  */
9999
10000 int
10001 main ()
10002 {
10003
10004   ;
10005   return 0;
10006 }
10007 _ACEOF
10008 rm -f conftest.$ac_objext conftest$ac_exeext
10009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10010   (eval $ac_link) 2>conftest.er1
10011   ac_status=$?
10012   grep -v '^ *+' conftest.er1 >conftest.err
10013   rm -f conftest.er1
10014   cat conftest.err >&5
10015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016   (exit $ac_status); } &&
10017          { ac_try='test -z "$ac_cxx_werror_flag"
10018                          || test ! -s conftest.err'
10019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10020   (eval $ac_try) 2>&5
10021   ac_status=$?
10022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10023   (exit $ac_status); }; } &&
10024          { ac_try='test -s conftest$ac_exeext'
10025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10026   (eval $ac_try) 2>&5
10027   ac_status=$?
10028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029   (exit $ac_status); }; }; then
10030
10031 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10032 }'`
10033 # Check for a 64-bit object if we didn't find anything.
10034 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; }
10035 }'`; fi
10036 else
10037   echo "$as_me: failed program was:" >&5
10038 sed 's/^/| /' conftest.$ac_ext >&5
10039
10040 fi
10041 rm -f conftest.err conftest.$ac_objext \
10042       conftest$ac_exeext conftest.$ac_ext
10043 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10044
10045         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10046         # Warning - without using the other run time loading flags,
10047         # -berok will link without error, but may produce a broken library.
10048         no_undefined_flag_CXX=' ${wl}-bernotok'
10049         allow_undefined_flag_CXX=' ${wl}-berok'
10050         # -bexpall does not export symbols beginning with underscore (_)
10051         always_export_symbols_CXX=yes
10052         # Exported symbols can be pulled into shared objects from archives
10053         whole_archive_flag_spec_CXX=' '
10054         archive_cmds_need_lc_CXX=yes
10055         # This is similar to how AIX traditionally builds it's shared libraries.
10056         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10057       fi
10058     fi
10059     ;;
10060   chorus*)
10061     case $cc_basename in
10062       *)
10063         # FIXME: insert proper C++ library support
10064         ld_shlibs_CXX=no
10065         ;;
10066     esac
10067     ;;
10068
10069   cygwin* | mingw* | pw32*)
10070     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10071     # as there is no search path for DLLs.
10072     hardcode_libdir_flag_spec_CXX='-L$libdir'
10073     allow_undefined_flag_CXX=unsupported
10074     always_export_symbols_CXX=no
10075     enable_shared_with_static_runtimes_CXX=yes
10076
10077     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10078       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10079       # If the export-symbols file already is a .def file (1st line
10080       # is EXPORTS), use it as is; otherwise, prepend...
10081       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10082         cp $export_symbols $output_objdir/$soname.def;
10083       else
10084         echo EXPORTS > $output_objdir/$soname.def;
10085         cat $export_symbols >> $output_objdir/$soname.def;
10086       fi~
10087       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10088     else
10089       ld_shlibs_CXX=no
10090     fi
10091   ;;
10092
10093   darwin* | rhapsody*)
10094   if test "$GXX" = yes; then
10095     archive_cmds_need_lc_CXX=no
10096     case "$host_os" in
10097     rhapsody* | darwin1.[012])
10098       allow_undefined_flag_CXX='-undefined suppress'
10099       ;;
10100     *) # Darwin 1.3 on
10101       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10102         allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10103       else
10104         case ${MACOSX_DEPLOYMENT_TARGET} in
10105           10.[012])
10106             allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10107             ;;
10108           10.*)
10109             allow_undefined_flag_CXX='-undefined dynamic_lookup'
10110             ;;
10111         esac
10112       fi
10113       ;;
10114     esac
10115     lt_int_apple_cc_single_mod=no
10116     output_verbose_link_cmd='echo'
10117     if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10118       lt_int_apple_cc_single_mod=yes
10119     fi
10120     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10121       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10122     else
10123       archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10124     fi
10125     module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10126
10127     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10128     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10129       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}'
10130     else
10131       archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10132     fi
10133     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}'
10134     hardcode_direct_CXX=no
10135     hardcode_automatic_CXX=yes
10136     hardcode_shlibpath_var_CXX=unsupported
10137     whole_archive_flag_spec_CXX='-all_load $convenience'
10138     link_all_deplibs_CXX=yes
10139   else
10140     ld_shlibs_CXX=no
10141   fi
10142     ;;
10143
10144   dgux*)
10145     case $cc_basename in
10146       ec++)
10147         # FIXME: insert proper C++ library support
10148         ld_shlibs_CXX=no
10149         ;;
10150       ghcx)
10151         # Green Hills C++ Compiler
10152         # FIXME: insert proper C++ library support
10153         ld_shlibs_CXX=no
10154         ;;
10155       *)
10156         # FIXME: insert proper C++ library support
10157         ld_shlibs_CXX=no
10158         ;;
10159     esac
10160     ;;
10161   freebsd12*)
10162     # C++ shared libraries reported to be fairly broken before switch to ELF
10163     ld_shlibs_CXX=no
10164     ;;
10165   freebsd-elf*)
10166     archive_cmds_need_lc_CXX=no
10167     ;;
10168   freebsd* | kfreebsd*-gnu)
10169     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10170     # conventions
10171     ld_shlibs_CXX=yes
10172     ;;
10173   gnu*)
10174     ;;
10175   hpux9*)
10176     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10177     hardcode_libdir_separator_CXX=:
10178     export_dynamic_flag_spec_CXX='${wl}-E'
10179     hardcode_direct_CXX=yes
10180     hardcode_minus_L_CXX=yes # Not in the search PATH,
10181                                 # but as the default
10182                                 # location of the library.
10183
10184     case $cc_basename in
10185     CC)
10186       # FIXME: insert proper C++ library support
10187       ld_shlibs_CXX=no
10188       ;;
10189     aCC)
10190       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'
10191       # Commands to make compiler produce verbose output that lists
10192       # what "hidden" libraries, object files and flags are used when
10193       # linking a shared library.
10194       #
10195       # There doesn't appear to be a way to prevent this compiler from
10196       # explicitly linking system object files so we need to strip them
10197       # from the output so that they don't get included in the library
10198       # dependencies.
10199       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'
10200       ;;
10201     *)
10202       if test "$GXX" = yes; then
10203         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'
10204       else
10205         # FIXME: insert proper C++ library support
10206         ld_shlibs_CXX=no
10207       fi
10208       ;;
10209     esac
10210     ;;
10211   hpux10*|hpux11*)
10212     if test $with_gnu_ld = no; then
10213       case "$host_cpu" in
10214       hppa*64*)
10215         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10216         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10217         hardcode_libdir_separator_CXX=:
10218         ;;
10219       ia64*)
10220         hardcode_libdir_flag_spec_CXX='-L$libdir'
10221         ;;
10222       *)
10223         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10224         hardcode_libdir_separator_CXX=:
10225         export_dynamic_flag_spec_CXX='${wl}-E'
10226         ;;
10227       esac
10228     fi
10229     case "$host_cpu" in
10230     hppa*64*)
10231       hardcode_direct_CXX=no
10232       hardcode_shlibpath_var_CXX=no
10233       ;;
10234     ia64*)
10235       hardcode_direct_CXX=no
10236       hardcode_shlibpath_var_CXX=no
10237       hardcode_minus_L_CXX=yes # Not in the search PATH,
10238                                               # but as the default
10239                                               # location of the library.
10240       ;;
10241     *)
10242       hardcode_direct_CXX=yes
10243       hardcode_minus_L_CXX=yes # Not in the search PATH,
10244                                               # but as the default
10245                                               # location of the library.
10246       ;;
10247     esac
10248
10249     case $cc_basename in
10250       CC)
10251         # FIXME: insert proper C++ library support
10252         ld_shlibs_CXX=no
10253         ;;
10254       aCC)
10255         case "$host_cpu" in
10256         hppa*64*|ia64*)
10257           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10258           ;;
10259         *)
10260           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10261           ;;
10262         esac
10263         # Commands to make compiler produce verbose output that lists
10264         # what "hidden" libraries, object files and flags are used when
10265         # linking a shared library.
10266         #
10267         # There doesn't appear to be a way to prevent this compiler from
10268         # explicitly linking system object files so we need to strip them
10269         # from the output so that they don't get included in the library
10270         # dependencies.
10271         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'
10272         ;;
10273       *)
10274         if test "$GXX" = yes; then
10275           if test $with_gnu_ld = no; then
10276             case "$host_cpu" in
10277             ia64*|hppa*64*)
10278               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10279               ;;
10280             *)
10281               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'
10282               ;;
10283             esac
10284           fi
10285         else
10286           # FIXME: insert proper C++ library support
10287           ld_shlibs_CXX=no
10288         fi
10289         ;;
10290     esac
10291     ;;
10292   irix5* | irix6*)
10293     case $cc_basename in
10294       CC)
10295         # SGI C++
10296         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10297
10298         # Archives containing C++ object files must be created using
10299         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10300         # necessary to make sure instantiated templates are included
10301         # in the archive.
10302         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10303         ;;
10304       *)
10305         if test "$GXX" = yes; then
10306           if test "$with_gnu_ld" = no; then
10307             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10308           else
10309             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'
10310           fi
10311         fi
10312         link_all_deplibs_CXX=yes
10313         ;;
10314     esac
10315     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10316     hardcode_libdir_separator_CXX=:
10317     ;;
10318   linux*)
10319     case $cc_basename in
10320       KCC)
10321         # Kuck and Associates, Inc. (KAI) C++ Compiler
10322
10323         # KCC will only create a shared library if the output file
10324         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10325         # to its proper name (with version) after linking.
10326         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'
10327         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'
10328         # Commands to make compiler produce verbose output that lists
10329         # what "hidden" libraries, object files and flags are used when
10330         # linking a shared library.
10331         #
10332         # There doesn't appear to be a way to prevent this compiler from
10333         # explicitly linking system object files so we need to strip them
10334         # from the output so that they don't get included in the library
10335         # dependencies.
10336         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'
10337
10338         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10339         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10340
10341         # Archives containing C++ object files must be created using
10342         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10343         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10344         ;;
10345       icpc)
10346         # Intel C++
10347         with_gnu_ld=yes
10348         archive_cmds_need_lc_CXX=no
10349         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10350         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'
10351         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10352         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10353         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10354         ;;
10355       cxx)
10356         # Compaq C++
10357         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10358         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'
10359
10360         runpath_var=LD_RUN_PATH
10361         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10362         hardcode_libdir_separator_CXX=:
10363
10364         # Commands to make compiler produce verbose output that lists
10365         # what "hidden" libraries, object files and flags are used when
10366         # linking a shared library.
10367         #
10368         # There doesn't appear to be a way to prevent this compiler from
10369         # explicitly linking system object files so we need to strip them
10370         # from the output so that they don't get included in the library
10371         # dependencies.
10372         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'
10373         ;;
10374     esac
10375     ;;
10376   lynxos*)
10377     # FIXME: insert proper C++ library support
10378     ld_shlibs_CXX=no
10379     ;;
10380   m88k*)
10381     # FIXME: insert proper C++ library support
10382     ld_shlibs_CXX=no
10383     ;;
10384   mvs*)
10385     case $cc_basename in
10386       cxx)
10387         # FIXME: insert proper C++ library support
10388         ld_shlibs_CXX=no
10389         ;;
10390       *)
10391         # FIXME: insert proper C++ library support
10392         ld_shlibs_CXX=no
10393         ;;
10394     esac
10395     ;;
10396   netbsd*)
10397     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10398       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10399       wlarc=
10400       hardcode_libdir_flag_spec_CXX='-R$libdir'
10401       hardcode_direct_CXX=yes
10402       hardcode_shlibpath_var_CXX=no
10403     fi
10404     # Workaround some broken pre-1.5 toolchains
10405     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10406     ;;
10407   osf3*)
10408     case $cc_basename in
10409       KCC)
10410         # Kuck and Associates, Inc. (KAI) C++ Compiler
10411
10412         # KCC will only create a shared library if the output file
10413         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10414         # to its proper name (with version) after linking.
10415         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'
10416
10417         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10418         hardcode_libdir_separator_CXX=:
10419
10420         # Archives containing C++ object files must be created using
10421         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10422         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10423
10424         ;;
10425       RCC)
10426         # Rational C++ 2.4.1
10427         # FIXME: insert proper C++ library support
10428         ld_shlibs_CXX=no
10429         ;;
10430       cxx)
10431         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10432         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10433
10434         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10435         hardcode_libdir_separator_CXX=:
10436
10437         # Commands to make compiler produce verbose output that lists
10438         # what "hidden" libraries, object files and flags are used when
10439         # linking a shared library.
10440         #
10441         # There doesn't appear to be a way to prevent this compiler from
10442         # explicitly linking system object files so we need to strip them
10443         # from the output so that they don't get included in the library
10444         # dependencies.
10445         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'
10446         ;;
10447       *)
10448         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10449           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10450           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10451
10452           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10453           hardcode_libdir_separator_CXX=:
10454
10455           # Commands to make compiler produce verbose output that lists
10456           # what "hidden" libraries, object files and flags are used when
10457           # linking a shared library.
10458           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10459
10460         else
10461           # FIXME: insert proper C++ library support
10462           ld_shlibs_CXX=no
10463         fi
10464         ;;
10465     esac
10466     ;;
10467   osf4* | osf5*)
10468     case $cc_basename in
10469       KCC)
10470         # Kuck and Associates, Inc. (KAI) C++ Compiler
10471
10472         # KCC will only create a shared library if the output file
10473         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10474         # to its proper name (with version) after linking.
10475         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'
10476
10477         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10478         hardcode_libdir_separator_CXX=:
10479
10480         # Archives containing C++ object files must be created using
10481         # the KAI C++ compiler.
10482         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10483         ;;
10484       RCC)
10485         # Rational C++ 2.4.1
10486         # FIXME: insert proper C++ library support
10487         ld_shlibs_CXX=no
10488         ;;
10489       cxx)
10490         allow_undefined_flag_CXX=' -expect_unresolved \*'
10491         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10492         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10493           echo "-hidden">> $lib.exp~
10494           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
10495           $rm $lib.exp'
10496
10497         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10498         hardcode_libdir_separator_CXX=:
10499
10500         # Commands to make compiler produce verbose output that lists
10501         # what "hidden" libraries, object files and flags are used when
10502         # linking a shared library.
10503         #
10504         # There doesn't appear to be a way to prevent this compiler from
10505         # explicitly linking system object files so we need to strip them
10506         # from the output so that they don't get included in the library
10507         # dependencies.
10508         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'
10509         ;;
10510       *)
10511         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10512           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10513          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10514
10515           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10516           hardcode_libdir_separator_CXX=:
10517
10518           # Commands to make compiler produce verbose output that lists
10519           # what "hidden" libraries, object files and flags are used when
10520           # linking a shared library.
10521           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10522
10523         else
10524           # FIXME: insert proper C++ library support
10525           ld_shlibs_CXX=no
10526         fi
10527         ;;
10528     esac
10529     ;;
10530   psos*)
10531     # FIXME: insert proper C++ library support
10532     ld_shlibs_CXX=no
10533     ;;
10534   sco*)
10535     archive_cmds_need_lc_CXX=no
10536     case $cc_basename in
10537       CC)
10538         # FIXME: insert proper C++ library support
10539         ld_shlibs_CXX=no
10540         ;;
10541       *)
10542         # FIXME: insert proper C++ library support
10543         ld_shlibs_CXX=no
10544         ;;
10545     esac
10546     ;;
10547   sunos4*)
10548     case $cc_basename in
10549       CC)
10550         # Sun C++ 4.x
10551         # FIXME: insert proper C++ library support
10552         ld_shlibs_CXX=no
10553         ;;
10554       lcc)
10555         # Lucid
10556         # FIXME: insert proper C++ library support
10557         ld_shlibs_CXX=no
10558         ;;
10559       *)
10560         # FIXME: insert proper C++ library support
10561         ld_shlibs_CXX=no
10562         ;;
10563     esac
10564     ;;
10565   solaris*)
10566     case $cc_basename in
10567       CC)
10568         # Sun C++ 4.2, 5.x and Centerline C++
10569         no_undefined_flag_CXX=' -zdefs'
10570         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10571         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10572         $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10573
10574         hardcode_libdir_flag_spec_CXX='-R$libdir'
10575         hardcode_shlibpath_var_CXX=no
10576         case $host_os in
10577           solaris2.0-5 | solaris2.0-5.*) ;;
10578           *)
10579             # The C++ compiler is used as linker so we must use $wl
10580             # flag to pass the commands to the underlying system
10581             # linker.
10582             # Supported since Solaris 2.6 (maybe 2.5.1?)
10583             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10584             ;;
10585         esac
10586         link_all_deplibs_CXX=yes
10587
10588         # Commands to make compiler produce verbose output that lists
10589         # what "hidden" libraries, object files and flags are used when
10590         # linking a shared library.
10591         #
10592         # There doesn't appear to be a way to prevent this compiler from
10593         # explicitly linking system object files so we need to strip them
10594         # from the output so that they don't get included in the library
10595         # dependencies.
10596         output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10597
10598         # Archives containing C++ object files must be created using
10599         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10600         # necessary to make sure instantiated templates are included
10601         # in the archive.
10602         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10603         ;;
10604       gcx)
10605         # Green Hills C++ Compiler
10606         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10607
10608         # The C++ compiler must be used to create the archive.
10609         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10610         ;;
10611       *)
10612         # GNU C++ compiler with Solaris linker
10613         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10614           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10615           if $CC --version | grep -v '^2\.7' > /dev/null; then
10616             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10617             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10618                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10619
10620             # Commands to make compiler produce verbose output that lists
10621             # what "hidden" libraries, object files and flags are used when
10622             # linking a shared library.
10623             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10624           else
10625             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10626             # platform.
10627             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10628             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10629                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10630
10631             # Commands to make compiler produce verbose output that lists
10632             # what "hidden" libraries, object files and flags are used when
10633             # linking a shared library.
10634             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10635           fi
10636
10637           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10638         fi
10639         ;;
10640     esac
10641     ;;
10642   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10643     archive_cmds_need_lc_CXX=no
10644     ;;
10645   tandem*)
10646     case $cc_basename in
10647       NCC)
10648         # NonStop-UX NCC 3.20
10649         # FIXME: insert proper C++ library support
10650         ld_shlibs_CXX=no
10651         ;;
10652       *)
10653         # FIXME: insert proper C++ library support
10654         ld_shlibs_CXX=no
10655         ;;
10656     esac
10657     ;;
10658   vxworks*)
10659     # FIXME: insert proper C++ library support
10660     ld_shlibs_CXX=no
10661     ;;
10662   *)
10663     # FIXME: insert proper C++ library support
10664     ld_shlibs_CXX=no
10665     ;;
10666 esac
10667 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10668 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10669 test "$ld_shlibs_CXX" = no && can_build_shared=no
10670
10671 GCC_CXX="$GXX"
10672 LD_CXX="$LD"
10673
10674
10675 cat > conftest.$ac_ext <<EOF
10676 class Foo
10677 {
10678 public:
10679   Foo (void) { a = 0; }
10680 private:
10681   int a;
10682 };
10683 EOF
10684
10685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10686   (eval $ac_compile) 2>&5
10687   ac_status=$?
10688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10689   (exit $ac_status); }; then
10690   # Parse the compiler output and extract the necessary
10691   # objects, libraries and library flags.
10692
10693   # Sentinel used to keep track of whether or not we are before
10694   # the conftest object file.
10695   pre_test_object_deps_done=no
10696
10697   # The `*' in the case matches for architectures that use `case' in
10698   # $output_verbose_cmd can trigger glob expansion during the loop
10699   # eval without this substitution.
10700   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10701
10702   for p in `eval $output_verbose_link_cmd`; do
10703     case $p in
10704
10705     -L* | -R* | -l*)
10706        # Some compilers place space between "-{L,R}" and the path.
10707        # Remove the space.
10708        if test $p = "-L" \
10709           || test $p = "-R"; then
10710          prev=$p
10711          continue
10712        else
10713          prev=
10714        fi
10715
10716        if test "$pre_test_object_deps_done" = no; then
10717          case $p in
10718          -L* | -R*)
10719            # Internal compiler library paths should come after those
10720            # provided the user.  The postdeps already come after the
10721            # user supplied libs so there is no need to process them.
10722            if test -z "$compiler_lib_search_path_CXX"; then
10723              compiler_lib_search_path_CXX="${prev}${p}"
10724            else
10725              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10726            fi
10727            ;;
10728          # The "-l" case would never come before the object being
10729          # linked, so don't bother handling this case.
10730          esac
10731        else
10732          if test -z "$postdeps_CXX"; then
10733            postdeps_CXX="${prev}${p}"
10734          else
10735            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10736          fi
10737        fi
10738        ;;
10739
10740     *.$objext)
10741        # This assumes that the test object file only shows up
10742        # once in the compiler output.
10743        if test "$p" = "conftest.$objext"; then
10744          pre_test_object_deps_done=yes
10745          continue
10746        fi
10747
10748        if test "$pre_test_object_deps_done" = no; then
10749          if test -z "$predep_objects_CXX"; then
10750            predep_objects_CXX="$p"
10751          else
10752            predep_objects_CXX="$predep_objects_CXX $p"
10753          fi
10754        else
10755          if test -z "$postdep_objects_CXX"; then
10756            postdep_objects_CXX="$p"
10757          else
10758            postdep_objects_CXX="$postdep_objects_CXX $p"
10759          fi
10760        fi
10761        ;;
10762
10763     *) ;; # Ignore the rest.
10764
10765     esac
10766   done
10767
10768   # Clean up.
10769   rm -f a.out a.exe
10770 else
10771   echo "libtool.m4: error: problem compiling CXX test program"
10772 fi
10773
10774 $rm -f confest.$objext
10775
10776 case " $postdeps_CXX " in
10777 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10778 esac
10779
10780 lt_prog_compiler_wl_CXX=
10781 lt_prog_compiler_pic_CXX=
10782 lt_prog_compiler_static_CXX=
10783
10784 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10785 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10786
10787   # C++ specific cases for pic, static, wl, etc.
10788   if test "$GXX" = yes; then
10789     lt_prog_compiler_wl_CXX='-Wl,'
10790     lt_prog_compiler_static_CXX='-static'
10791
10792     case $host_os in
10793     aix*)
10794       # All AIX code is PIC.
10795       if test "$host_cpu" = ia64; then
10796         # AIX 5 now supports IA64 processor
10797         lt_prog_compiler_static_CXX='-Bstatic'
10798       fi
10799       ;;
10800     amigaos*)
10801       # FIXME: we need at least 68020 code to build shared libraries, but
10802       # adding the `-m68020' flag to GCC prevents building anything better,
10803       # like `-m68040'.
10804       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10805       ;;
10806     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10807       # PIC is the default for these OSes.
10808       ;;
10809     mingw* | os2* | pw32*)
10810       # This hack is so that the source file can tell whether it is being
10811       # built for inclusion in a dll (and should export symbols for example).
10812       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10813       ;;
10814     darwin* | rhapsody*)
10815       # PIC is the default on this platform
10816       # Common symbols not allowed in MH_DYLIB files
10817       lt_prog_compiler_pic_CXX='-fno-common'
10818       ;;
10819     *djgpp*)
10820       # DJGPP does not support shared libraries at all
10821       lt_prog_compiler_pic_CXX=
10822       ;;
10823     sysv4*MP*)
10824       if test -d /usr/nec; then
10825         lt_prog_compiler_pic_CXX=-Kconform_pic
10826       fi
10827       ;;
10828     hpux*)
10829       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10830       # not for PA HP-UX.
10831       case "$host_cpu" in
10832       hppa*64*|ia64*)
10833         ;;
10834       *)
10835         lt_prog_compiler_pic_CXX='-fPIC'
10836         ;;
10837       esac
10838       ;;
10839     *)
10840       lt_prog_compiler_pic_CXX='-fPIC'
10841       ;;
10842     esac
10843   else
10844     case $host_os in
10845       aix4* | aix5*)
10846         # All AIX code is PIC.
10847         if test "$host_cpu" = ia64; then
10848           # AIX 5 now supports IA64 processor
10849           lt_prog_compiler_static_CXX='-Bstatic'
10850         else
10851           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10852         fi
10853         ;;
10854       chorus*)
10855         case $cc_basename in
10856         cxch68)
10857           # Green Hills C++ Compiler
10858           # _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"
10859           ;;
10860         esac
10861         ;;
10862       dgux*)
10863         case $cc_basename in
10864           ec++)
10865             lt_prog_compiler_pic_CXX='-KPIC'
10866             ;;
10867           ghcx)
10868             # Green Hills C++ Compiler
10869             lt_prog_compiler_pic_CXX='-pic'
10870             ;;
10871           *)
10872             ;;
10873         esac
10874         ;;
10875       freebsd* | kfreebsd*-gnu)
10876         # FreeBSD uses GNU C++
10877         ;;
10878       hpux9* | hpux10* | hpux11*)
10879         case $cc_basename in
10880           CC)
10881             lt_prog_compiler_wl_CXX='-Wl,'
10882             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10883             if test "$host_cpu" != ia64; then
10884               lt_prog_compiler_pic_CXX='+Z'
10885             fi
10886             ;;
10887           aCC)
10888             lt_prog_compiler_wl_CXX='-Wl,'
10889             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10890             case "$host_cpu" in
10891             hppa*64*|ia64*)
10892               # +Z the default
10893               ;;
10894             *)
10895               lt_prog_compiler_pic_CXX='+Z'
10896               ;;
10897             esac
10898             ;;
10899           *)
10900             ;;
10901         esac
10902         ;;
10903       irix5* | irix6* | nonstopux*)
10904         case $cc_basename in
10905           CC)
10906             lt_prog_compiler_wl_CXX='-Wl,'
10907             lt_prog_compiler_static_CXX='-non_shared'
10908             # CC pic flag -KPIC is the default.
10909             ;;
10910           *)
10911             ;;
10912         esac
10913         ;;
10914       linux*)
10915         case $cc_basename in
10916           KCC)
10917             # KAI C++ Compiler
10918             lt_prog_compiler_wl_CXX='--backend -Wl,'
10919             lt_prog_compiler_pic_CXX='-fPIC'
10920             ;;
10921           icpc)
10922             # Intel C++
10923             lt_prog_compiler_wl_CXX='-Wl,'
10924             lt_prog_compiler_pic_CXX='-KPIC'
10925             lt_prog_compiler_static_CXX='-static'
10926             ;;
10927           cxx)
10928             # Compaq C++
10929             # Make sure the PIC flag is empty.  It appears that all Alpha
10930             # Linux and Compaq Tru64 Unix objects are PIC.
10931             lt_prog_compiler_pic_CXX=
10932             lt_prog_compiler_static_CXX='-non_shared'
10933             ;;
10934           *)
10935             ;;
10936         esac
10937         ;;
10938       lynxos*)
10939         ;;
10940       m88k*)
10941         ;;
10942       mvs*)
10943         case $cc_basename in
10944           cxx)
10945             lt_prog_compiler_pic_CXX='-W c,exportall'
10946             ;;
10947           *)
10948             ;;
10949         esac
10950         ;;
10951       netbsd*)
10952         ;;
10953       osf3* | osf4* | osf5*)
10954         case $cc_basename in
10955           KCC)
10956             lt_prog_compiler_wl_CXX='--backend -Wl,'
10957             ;;
10958           RCC)
10959             # Rational C++ 2.4.1
10960             lt_prog_compiler_pic_CXX='-pic'
10961             ;;
10962           cxx)
10963             # Digital/Compaq C++
10964             lt_prog_compiler_wl_CXX='-Wl,'
10965             # Make sure the PIC flag is empty.  It appears that all Alpha
10966             # Linux and Compaq Tru64 Unix objects are PIC.
10967             lt_prog_compiler_pic_CXX=
10968             lt_prog_compiler_static_CXX='-non_shared'
10969             ;;
10970           *)
10971             ;;
10972         esac
10973         ;;
10974       psos*)
10975         ;;
10976       sco*)
10977         case $cc_basename in
10978           CC)
10979             lt_prog_compiler_pic_CXX='-fPIC'
10980             ;;
10981           *)
10982             ;;
10983         esac
10984         ;;
10985       solaris*)
10986         case $cc_basename in
10987           CC)
10988             # Sun C++ 4.2, 5.x and Centerline C++
10989             lt_prog_compiler_pic_CXX='-KPIC'
10990             lt_prog_compiler_static_CXX='-Bstatic'
10991             lt_prog_compiler_wl_CXX='-Qoption ld '
10992             ;;
10993           gcx)
10994             # Green Hills C++ Compiler
10995             lt_prog_compiler_pic_CXX='-PIC'
10996             ;;
10997           *)
10998             ;;
10999         esac
11000         ;;
11001       sunos4*)
11002         case $cc_basename in
11003           CC)
11004             # Sun C++ 4.x
11005             lt_prog_compiler_pic_CXX='-pic'
11006             lt_prog_compiler_static_CXX='-Bstatic'
11007             ;;
11008           lcc)
11009             # Lucid
11010             lt_prog_compiler_pic_CXX='-pic'
11011             ;;
11012           *)
11013             ;;
11014         esac
11015         ;;
11016       tandem*)
11017         case $cc_basename in
11018           NCC)
11019             # NonStop-UX NCC 3.20
11020             lt_prog_compiler_pic_CXX='-KPIC'
11021             ;;
11022           *)
11023             ;;
11024         esac
11025         ;;
11026       unixware*)
11027         ;;
11028       vxworks*)
11029         ;;
11030       *)
11031         lt_prog_compiler_can_build_shared_CXX=no
11032         ;;
11033     esac
11034   fi
11035
11036 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11037 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11038
11039 #
11040 # Check to make sure the PIC flag actually works.
11041 #
11042 if test -n "$lt_prog_compiler_pic_CXX"; then
11043
11044 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11045 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11046 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11047   echo $ECHO_N "(cached) $ECHO_C" >&6
11048 else
11049   lt_prog_compiler_pic_works_CXX=no
11050   ac_outfile=conftest.$ac_objext
11051    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11052    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11053    # Insert the option either (1) after the last *FLAGS variable, or
11054    # (2) before a word containing "conftest.", or (3) at the end.
11055    # Note that $ac_compile itself does not contain backslashes and begins
11056    # with a dollar sign (not a hyphen), so the echo should work correctly.
11057    # The option is referenced via a variable to avoid confusing sed.
11058    lt_compile=`echo "$ac_compile" | $SED \
11059    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11060    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11061    -e 's:$: $lt_compiler_flag:'`
11062    (eval echo "\"\$as_me:11062: $lt_compile\"" >&5)
11063    (eval "$lt_compile" 2>conftest.err)
11064    ac_status=$?
11065    cat conftest.err >&5
11066    echo "$as_me:11066: \$? = $ac_status" >&5
11067    if (exit $ac_status) && test -s "$ac_outfile"; then
11068      # The compiler can only warn and ignore the option if not recognized
11069      # So say no if there are warnings
11070      if test ! -s conftest.err; then
11071        lt_prog_compiler_pic_works_CXX=yes
11072      fi
11073    fi
11074    $rm conftest*
11075
11076 fi
11077 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11078 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11079
11080 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11081     case $lt_prog_compiler_pic_CXX in
11082      "" | " "*) ;;
11083      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11084      esac
11085 else
11086     lt_prog_compiler_pic_CXX=
11087      lt_prog_compiler_can_build_shared_CXX=no
11088 fi
11089
11090 fi
11091 case "$host_os" in
11092   # For platforms which do not support PIC, -DPIC is meaningless:
11093   *djgpp*)
11094     lt_prog_compiler_pic_CXX=
11095     ;;
11096   *)
11097     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11098     ;;
11099 esac
11100
11101 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11102 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11103 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11104   echo $ECHO_N "(cached) $ECHO_C" >&6
11105 else
11106   lt_cv_prog_compiler_c_o_CXX=no
11107    $rm -r conftest 2>/dev/null
11108    mkdir conftest
11109    cd conftest
11110    mkdir out
11111    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11112
11113    lt_compiler_flag="-o out/conftest2.$ac_objext"
11114    # Insert the option either (1) after the last *FLAGS variable, or
11115    # (2) before a word containing "conftest.", or (3) at the end.
11116    # Note that $ac_compile itself does not contain backslashes and begins
11117    # with a dollar sign (not a hyphen), so the echo should work correctly.
11118    lt_compile=`echo "$ac_compile" | $SED \
11119    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11120    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11121    -e 's:$: $lt_compiler_flag:'`
11122    (eval echo "\"\$as_me:11122: $lt_compile\"" >&5)
11123    (eval "$lt_compile" 2>out/conftest.err)
11124    ac_status=$?
11125    cat out/conftest.err >&5
11126    echo "$as_me:11126: \$? = $ac_status" >&5
11127    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11128    then
11129      # The compiler can only warn and ignore the option if not recognized
11130      # So say no if there are warnings
11131      if test ! -s out/conftest.err; then
11132        lt_cv_prog_compiler_c_o_CXX=yes
11133      fi
11134    fi
11135    chmod u+w .
11136    $rm conftest*
11137    # SGI C++ compiler will create directory out/ii_files/ for
11138    # template instantiation
11139    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11140    $rm out/* && rmdir out
11141    cd ..
11142    rmdir conftest
11143    $rm conftest*
11144
11145 fi
11146 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11147 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11148
11149
11150 hard_links="nottested"
11151 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11152   # do not overwrite the value of need_locks provided by the user
11153   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11154 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11155   hard_links=yes
11156   $rm conftest*
11157   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11158   touch conftest.a
11159   ln conftest.a conftest.b 2>&5 || hard_links=no
11160   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11161   echo "$as_me:$LINENO: result: $hard_links" >&5
11162 echo "${ECHO_T}$hard_links" >&6
11163   if test "$hard_links" = no; then
11164     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11165 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11166     need_locks=warn
11167   fi
11168 else
11169   need_locks=no
11170 fi
11171
11172 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11173 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11174
11175   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11176   case $host_os in
11177   aix4* | aix5*)
11178     # If we're using GNU nm, then we don't want the "-C" option.
11179     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11180     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11181       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'
11182     else
11183       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'
11184     fi
11185     ;;
11186   pw32*)
11187     export_symbols_cmds_CXX="$ltdll_cmds"
11188   ;;
11189   cygwin* | mingw*)
11190     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11191   ;;
11192   *)
11193     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11194   ;;
11195   esac
11196
11197 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11198 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11199 test "$ld_shlibs_CXX" = no && can_build_shared=no
11200
11201 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11202 if test "$GCC" = yes; then
11203   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11204 fi
11205
11206 #
11207 # Do we need to explicitly link libc?
11208 #
11209 case "x$archive_cmds_need_lc_CXX" in
11210 x|xyes)
11211   # Assume -lc should be added
11212   archive_cmds_need_lc_CXX=yes
11213
11214   if test "$enable_shared" = yes && test "$GCC" = yes; then
11215     case $archive_cmds_CXX in
11216     *'~'*)
11217       # FIXME: we may have to deal with multi-command sequences.
11218       ;;
11219     '$CC '*)
11220       # Test whether the compiler implicitly links with -lc since on some
11221       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11222       # to ld, don't add -lc before -lgcc.
11223       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11224 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11225       $rm conftest*
11226       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11227
11228       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11229   (eval $ac_compile) 2>&5
11230   ac_status=$?
11231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232   (exit $ac_status); } 2>conftest.err; then
11233         soname=conftest
11234         lib=conftest
11235         libobjs=conftest.$ac_objext
11236         deplibs=
11237         wl=$lt_prog_compiler_wl_CXX
11238         compiler_flags=-v
11239         linker_flags=-v
11240         verstring=
11241         output_objdir=.
11242         libname=conftest
11243         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11244         allow_undefined_flag_CXX=
11245         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11246   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11247   ac_status=$?
11248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11249   (exit $ac_status); }
11250         then
11251           archive_cmds_need_lc_CXX=no
11252         else
11253           archive_cmds_need_lc_CXX=yes
11254         fi
11255         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11256       else
11257         cat conftest.err 1>&5
11258       fi
11259       $rm conftest*
11260       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11261 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11262       ;;
11263     esac
11264   fi
11265   ;;
11266 esac
11267
11268 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11269 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11270 library_names_spec=
11271 libname_spec='lib$name'
11272 soname_spec=
11273 shrext_cmds=".so"
11274 postinstall_cmds=
11275 postuninstall_cmds=
11276 finish_cmds=
11277 finish_eval=
11278 shlibpath_var=
11279 shlibpath_overrides_runpath=unknown
11280 version_type=none
11281 dynamic_linker="$host_os ld.so"
11282 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11283 if test "$GCC" = yes; then
11284   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11285   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11286     # if the path contains ";" then we assume it to be the separator
11287     # otherwise default to the standard path separator (i.e. ":") - it is
11288     # assumed that no part of a normal pathname contains ";" but that should
11289     # okay in the real world where ";" in dirpaths is itself problematic.
11290     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11291   else
11292     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11293   fi
11294 else
11295   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11296 fi
11297 need_lib_prefix=unknown
11298 hardcode_into_libs=no
11299
11300 # when you set need_version to no, make sure it does not cause -set_version
11301 # flags to be left without arguments
11302 need_version=unknown
11303
11304 case $host_os in
11305 aix3*)
11306   version_type=linux
11307   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11308   shlibpath_var=LIBPATH
11309
11310   # AIX 3 has no versioning support, so we append a major version to the name.
11311   soname_spec='${libname}${release}${shared_ext}$major'
11312   ;;
11313
11314 aix4* | aix5*)
11315   version_type=linux
11316   need_lib_prefix=no
11317   need_version=no
11318   hardcode_into_libs=yes
11319   if test "$host_cpu" = ia64; then
11320     # AIX 5 supports IA64
11321     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11322     shlibpath_var=LD_LIBRARY_PATH
11323   else
11324     # With GCC up to 2.95.x, collect2 would create an import file
11325     # for dependence libraries.  The import file would start with
11326     # the line `#! .'.  This would cause the generated library to
11327     # depend on `.', always an invalid library.  This was fixed in
11328     # development snapshots of GCC prior to 3.0.
11329     case $host_os in
11330       aix4 | aix4.[01] | aix4.[01].*)
11331       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11332            echo ' yes '
11333            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11334         :
11335       else
11336         can_build_shared=no
11337       fi
11338       ;;
11339     esac
11340     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11341     # soname into executable. Probably we can add versioning support to
11342     # collect2, so additional links can be useful in future.
11343     if test "$aix_use_runtimelinking" = yes; then
11344       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11345       # instead of lib<name>.a to let people know that these are not
11346       # typical AIX shared libraries.
11347       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11348     else
11349       # We preserve .a as extension for shared libraries through AIX4.2
11350       # and later when we are not doing run time linking.
11351       library_names_spec='${libname}${release}.a $libname.a'
11352       soname_spec='${libname}${release}${shared_ext}$major'
11353     fi
11354     shlibpath_var=LIBPATH
11355   fi
11356   ;;
11357
11358 amigaos*)
11359   library_names_spec='$libname.ixlibrary $libname.a'
11360   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11361   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'
11362   ;;
11363
11364 beos*)
11365   library_names_spec='${libname}${shared_ext}'
11366   dynamic_linker="$host_os ld.so"
11367   shlibpath_var=LIBRARY_PATH
11368   ;;
11369
11370 bsdi4*)
11371   version_type=linux
11372   need_version=no
11373   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11374   soname_spec='${libname}${release}${shared_ext}$major'
11375   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11376   shlibpath_var=LD_LIBRARY_PATH
11377   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11378   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11379   # the default ld.so.conf also contains /usr/contrib/lib and
11380   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11381   # libtool to hard-code these into programs
11382   ;;
11383
11384 cygwin* | mingw* | pw32*)
11385   version_type=windows
11386   shrext_cmds=".dll"
11387   need_version=no
11388   need_lib_prefix=no
11389
11390   case $GCC,$host_os in
11391   yes,cygwin* | yes,mingw* | yes,pw32*)
11392     library_names_spec='$libname.dll.a'
11393     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11394     postinstall_cmds='base_file=`basename \${file}`~
11395       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11396       dldir=$destdir/`dirname \$dlpath`~
11397       test -d \$dldir || mkdir -p \$dldir~
11398       $install_prog $dir/$dlname \$dldir/$dlname'
11399     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11400       dlpath=$dir/\$dldll~
11401        $rm \$dlpath'
11402     shlibpath_overrides_runpath=yes
11403
11404     case $host_os in
11405     cygwin*)
11406       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11407       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11408       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11409       ;;
11410     mingw*)
11411       # MinGW DLLs use traditional 'lib' prefix
11412       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11413       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11414       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11415         # It is most probably a Windows format PATH printed by
11416         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11417         # path with ; separators, and with drive letters. We can handle the
11418         # drive letters (cygwin fileutils understands them), so leave them,
11419         # especially as we might pass files found there to a mingw objdump,
11420         # which wouldn't understand a cygwinified path. Ahh.
11421         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11422       else
11423         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11424       fi
11425       ;;
11426     pw32*)
11427       # pw32 DLLs use 'pw' prefix rather than 'lib'
11428       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11429       ;;
11430     esac
11431     ;;
11432
11433   *)
11434     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11435     ;;
11436   esac
11437   dynamic_linker='Win32 ld.exe'
11438   # FIXME: first we should search . and the directory the executable is in
11439   shlibpath_var=PATH
11440   ;;
11441
11442 darwin* | rhapsody*)
11443   dynamic_linker="$host_os dyld"
11444   version_type=darwin
11445   need_lib_prefix=no
11446   need_version=no
11447   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11448   soname_spec='${libname}${release}${major}$shared_ext'
11449   shlibpath_overrides_runpath=yes
11450   shlibpath_var=DYLD_LIBRARY_PATH
11451   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11452   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11453   if test "$GCC" = yes; then
11454     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"`
11455   else
11456     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11457   fi
11458   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11459   ;;
11460
11461 dgux*)
11462   version_type=linux
11463   need_lib_prefix=no
11464   need_version=no
11465   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11466   soname_spec='${libname}${release}${shared_ext}$major'
11467   shlibpath_var=LD_LIBRARY_PATH
11468   ;;
11469
11470 freebsd1*)
11471   dynamic_linker=no
11472   ;;
11473
11474 kfreebsd*-gnu)
11475   version_type=linux
11476   need_lib_prefix=no
11477   need_version=no
11478   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11479   soname_spec='${libname}${release}${shared_ext}$major'
11480   shlibpath_var=LD_LIBRARY_PATH
11481   shlibpath_overrides_runpath=no
11482   hardcode_into_libs=yes
11483   dynamic_linker='GNU ld.so'
11484   ;;
11485
11486 freebsd*)
11487   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11488   version_type=freebsd-$objformat
11489   case $version_type in
11490     freebsd-elf*)
11491       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11492       need_version=no
11493       need_lib_prefix=no
11494       ;;
11495     freebsd-*)
11496       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11497       need_version=yes
11498       ;;
11499   esac
11500   shlibpath_var=LD_LIBRARY_PATH
11501   case $host_os in
11502   freebsd2*)
11503     shlibpath_overrides_runpath=yes
11504     ;;
11505   freebsd3.01* | freebsdelf3.01*)
11506     shlibpath_overrides_runpath=yes
11507     hardcode_into_libs=yes
11508     ;;
11509   *) # from 3.2 on
11510     shlibpath_overrides_runpath=no
11511     hardcode_into_libs=yes
11512     ;;
11513   esac
11514   ;;
11515
11516 gnu*)
11517   version_type=linux
11518   need_lib_prefix=no
11519   need_version=no
11520   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11521   soname_spec='${libname}${release}${shared_ext}$major'
11522   shlibpath_var=LD_LIBRARY_PATH
11523   hardcode_into_libs=yes
11524   ;;
11525
11526 hpux9* | hpux10* | hpux11*)
11527   # Give a soname corresponding to the major version so that dld.sl refuses to
11528   # link against other versions.
11529   version_type=sunos
11530   need_lib_prefix=no
11531   need_version=no
11532   case "$host_cpu" in
11533   ia64*)
11534     shrext_cmds='.so'
11535     hardcode_into_libs=yes
11536     dynamic_linker="$host_os dld.so"
11537     shlibpath_var=LD_LIBRARY_PATH
11538     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11539     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11540     soname_spec='${libname}${release}${shared_ext}$major'
11541     if test "X$HPUX_IA64_MODE" = X32; then
11542       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11543     else
11544       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11545     fi
11546     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11547     ;;
11548    hppa*64*)
11549      shrext_cmds='.sl'
11550      hardcode_into_libs=yes
11551      dynamic_linker="$host_os dld.sl"
11552      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11553      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11554      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11555      soname_spec='${libname}${release}${shared_ext}$major'
11556      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11557      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11558      ;;
11559    *)
11560     shrext_cmds='.sl'
11561     dynamic_linker="$host_os dld.sl"
11562     shlibpath_var=SHLIB_PATH
11563     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11564     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11565     soname_spec='${libname}${release}${shared_ext}$major'
11566     ;;
11567   esac
11568   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11569   postinstall_cmds='chmod 555 $lib'
11570   ;;
11571
11572 irix5* | irix6* | nonstopux*)
11573   case $host_os in
11574     nonstopux*) version_type=nonstopux ;;
11575     *)
11576         if test "$lt_cv_prog_gnu_ld" = yes; then
11577                 version_type=linux
11578         else
11579                 version_type=irix
11580         fi ;;
11581   esac
11582   need_lib_prefix=no
11583   need_version=no
11584   soname_spec='${libname}${release}${shared_ext}$major'
11585   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11586   case $host_os in
11587   irix5* | nonstopux*)
11588     libsuff= shlibsuff=
11589     ;;
11590   *)
11591     case $LD in # libtool.m4 will add one of these switches to LD
11592     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11593       libsuff= shlibsuff= libmagic=32-bit;;
11594     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11595       libsuff=32 shlibsuff=N32 libmagic=N32;;
11596     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11597       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11598     *) libsuff= shlibsuff= libmagic=never-match;;
11599     esac
11600     ;;
11601   esac
11602   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11603   shlibpath_overrides_runpath=no
11604   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11605   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11606   hardcode_into_libs=yes
11607   ;;
11608
11609 # No shared lib support for Linux oldld, aout, or coff.
11610 linux*oldld* | linux*aout* | linux*coff*)
11611   dynamic_linker=no
11612   ;;
11613
11614 # This must be Linux ELF.
11615 linux*)
11616   version_type=linux
11617   need_lib_prefix=no
11618   need_version=no
11619   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11620   soname_spec='${libname}${release}${shared_ext}$major'
11621   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11622   shlibpath_var=LD_LIBRARY_PATH
11623   shlibpath_overrides_runpath=no
11624   # This implies no fast_install, which is unacceptable.
11625   # Some rework will be needed to allow for fast_install
11626   # before this can be enabled.
11627   hardcode_into_libs=yes
11628
11629   # find out which ABI we are using
11630   libsuff=
11631   case "$host_cpu" in
11632   x86_64*|s390x*|powerpc64*)
11633     echo '#line 11633 "configure"' > conftest.$ac_ext
11634     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11635   (eval $ac_compile) 2>&5
11636   ac_status=$?
11637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638   (exit $ac_status); }; then
11639       case `/usr/bin/file conftest.$ac_objext` in
11640       *64-bit*)
11641         libsuff=64
11642         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
11643         ;;
11644       esac
11645     fi
11646     rm -rf conftest*
11647     ;;
11648   esac
11649
11650   # Append ld.so.conf contents to the search path
11651   if test -f /etc/ld.so.conf; then
11652     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11653     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
11654   fi
11655
11656   # We used to test for /lib/ld.so.1 and disable shared libraries on
11657   # powerpc, because MkLinux only supported shared libraries with the
11658   # GNU dynamic linker.  Since this was broken with cross compilers,
11659   # most powerpc-linux boxes support dynamic linking these days and
11660   # people can always --disable-shared, the test was removed, and we
11661   # assume the GNU/Linux dynamic linker is in use.
11662   dynamic_linker='GNU/Linux ld.so'
11663   ;;
11664
11665 knetbsd*-gnu)
11666   version_type=linux
11667   need_lib_prefix=no
11668   need_version=no
11669   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11670   soname_spec='${libname}${release}${shared_ext}$major'
11671   shlibpath_var=LD_LIBRARY_PATH
11672   shlibpath_overrides_runpath=no
11673   hardcode_into_libs=yes
11674   dynamic_linker='GNU ld.so'
11675   ;;
11676
11677 netbsd*)
11678   version_type=sunos
11679   need_lib_prefix=no
11680   need_version=no
11681   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11682     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11683     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11684     dynamic_linker='NetBSD (a.out) ld.so'
11685   else
11686     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11687     soname_spec='${libname}${release}${shared_ext}$major'
11688     dynamic_linker='NetBSD ld.elf_so'
11689   fi
11690   shlibpath_var=LD_LIBRARY_PATH
11691   shlibpath_overrides_runpath=yes
11692   hardcode_into_libs=yes
11693   ;;
11694
11695 newsos6)
11696   version_type=linux
11697   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11698   shlibpath_var=LD_LIBRARY_PATH
11699   shlibpath_overrides_runpath=yes
11700   ;;
11701
11702 nto-qnx*)
11703   version_type=linux
11704   need_lib_prefix=no
11705   need_version=no
11706   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11707   soname_spec='${libname}${release}${shared_ext}$major'
11708   shlibpath_var=LD_LIBRARY_PATH
11709   shlibpath_overrides_runpath=yes
11710   ;;
11711
11712 openbsd*)
11713   version_type=sunos
11714   need_lib_prefix=no
11715   need_version=yes
11716   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11717   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11718   shlibpath_var=LD_LIBRARY_PATH
11719   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11720     case $host_os in
11721       openbsd2.[89] | openbsd2.[89].*)
11722         shlibpath_overrides_runpath=no
11723         ;;
11724       *)
11725         shlibpath_overrides_runpath=yes
11726         ;;
11727       esac
11728   else
11729     shlibpath_overrides_runpath=yes
11730   fi
11731   ;;
11732
11733 os2*)
11734   libname_spec='$name'
11735   shrext_cmds=".dll"
11736   need_lib_prefix=no
11737   library_names_spec='$libname${shared_ext} $libname.a'
11738   dynamic_linker='OS/2 ld.exe'
11739   shlibpath_var=LIBPATH
11740   ;;
11741
11742 osf3* | osf4* | osf5*)
11743   version_type=osf
11744   need_lib_prefix=no
11745   need_version=no
11746   soname_spec='${libname}${release}${shared_ext}$major'
11747   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11748   shlibpath_var=LD_LIBRARY_PATH
11749   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11750   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11751   ;;
11752
11753 sco3.2v5*)
11754   version_type=osf
11755   soname_spec='${libname}${release}${shared_ext}$major'
11756   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11757   shlibpath_var=LD_LIBRARY_PATH
11758   ;;
11759
11760 solaris*)
11761   version_type=linux
11762   need_lib_prefix=no
11763   need_version=no
11764   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11765   soname_spec='${libname}${release}${shared_ext}$major'
11766   shlibpath_var=LD_LIBRARY_PATH
11767   shlibpath_overrides_runpath=yes
11768   hardcode_into_libs=yes
11769   # ldd complains unless libraries are executable
11770   postinstall_cmds='chmod +x $lib'
11771   ;;
11772
11773 sunos4*)
11774   version_type=sunos
11775   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11776   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11777   shlibpath_var=LD_LIBRARY_PATH
11778   shlibpath_overrides_runpath=yes
11779   if test "$with_gnu_ld" = yes; then
11780     need_lib_prefix=no
11781   fi
11782   need_version=yes
11783   ;;
11784
11785 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11786   version_type=linux
11787   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11788   soname_spec='${libname}${release}${shared_ext}$major'
11789   shlibpath_var=LD_LIBRARY_PATH
11790   case $host_vendor in
11791     sni)
11792       shlibpath_overrides_runpath=no
11793       need_lib_prefix=no
11794       export_dynamic_flag_spec='${wl}-Blargedynsym'
11795       runpath_var=LD_RUN_PATH
11796       ;;
11797     siemens)
11798       need_lib_prefix=no
11799       ;;
11800     motorola)
11801       need_lib_prefix=no
11802       need_version=no
11803       shlibpath_overrides_runpath=no
11804       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11805       ;;
11806   esac
11807   ;;
11808
11809 sysv4*MP*)
11810   if test -d /usr/nec ;then
11811     version_type=linux
11812     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11813     soname_spec='$libname${shared_ext}.$major'
11814     shlibpath_var=LD_LIBRARY_PATH
11815   fi
11816   ;;
11817
11818 uts4*)
11819   version_type=linux
11820   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11821   soname_spec='${libname}${release}${shared_ext}$major'
11822   shlibpath_var=LD_LIBRARY_PATH
11823   ;;
11824
11825 *)
11826   dynamic_linker=no
11827   ;;
11828 esac
11829 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11830 echo "${ECHO_T}$dynamic_linker" >&6
11831 test "$dynamic_linker" = no && can_build_shared=no
11832
11833 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11834 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11835 hardcode_action_CXX=
11836 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11837    test -n "$runpath_var CXX" || \
11838    test "X$hardcode_automatic_CXX"="Xyes" ; then
11839
11840   # We can hardcode non-existant directories.
11841   if test "$hardcode_direct_CXX" != no &&
11842      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11843      # have to relink, otherwise we might link with an installed library
11844      # when we should be linking with a yet-to-be-installed one
11845      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11846      test "$hardcode_minus_L_CXX" != no; then
11847     # Linking always hardcodes the temporary library directory.
11848     hardcode_action_CXX=relink
11849   else
11850     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11851     hardcode_action_CXX=immediate
11852   fi
11853 else
11854   # We cannot hardcode anything, or else we can only hardcode existing
11855   # directories.
11856   hardcode_action_CXX=unsupported
11857 fi
11858 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11859 echo "${ECHO_T}$hardcode_action_CXX" >&6
11860
11861 if test "$hardcode_action_CXX" = relink; then
11862   # Fast installation is not supported
11863   enable_fast_install=no
11864 elif test "$shlibpath_overrides_runpath" = yes ||
11865      test "$enable_shared" = no; then
11866   # Fast installation is not necessary
11867   enable_fast_install=needless
11868 fi
11869
11870 striplib=
11871 old_striplib=
11872 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11873 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11874 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11875   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11876   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11877   echo "$as_me:$LINENO: result: yes" >&5
11878 echo "${ECHO_T}yes" >&6
11879 else
11880 # FIXME - insert some real tests, host_os isn't really good enough
11881   case $host_os in
11882    darwin*)
11883        if test -n "$STRIP" ; then
11884          striplib="$STRIP -x"
11885          echo "$as_me:$LINENO: result: yes" >&5
11886 echo "${ECHO_T}yes" >&6
11887        else
11888   echo "$as_me:$LINENO: result: no" >&5
11889 echo "${ECHO_T}no" >&6
11890 fi
11891        ;;
11892    *)
11893   echo "$as_me:$LINENO: result: no" >&5
11894 echo "${ECHO_T}no" >&6
11895     ;;
11896   esac
11897 fi
11898
11899 if test "x$enable_dlopen" != xyes; then
11900   enable_dlopen=unknown
11901   enable_dlopen_self=unknown
11902   enable_dlopen_self_static=unknown
11903 else
11904   lt_cv_dlopen=no
11905   lt_cv_dlopen_libs=
11906
11907   case $host_os in
11908   beos*)
11909     lt_cv_dlopen="load_add_on"
11910     lt_cv_dlopen_libs=
11911     lt_cv_dlopen_self=yes
11912     ;;
11913
11914   mingw* | pw32*)
11915     lt_cv_dlopen="LoadLibrary"
11916     lt_cv_dlopen_libs=
11917    ;;
11918
11919   cygwin*)
11920     lt_cv_dlopen="dlopen"
11921     lt_cv_dlopen_libs=
11922    ;;
11923
11924   darwin*)
11925   # if libdl is installed we need to link against it
11926     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11927 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11928 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11929   echo $ECHO_N "(cached) $ECHO_C" >&6
11930 else
11931   ac_check_lib_save_LIBS=$LIBS
11932 LIBS="-ldl  $LIBS"
11933 cat >conftest.$ac_ext <<_ACEOF
11934 /* confdefs.h.  */
11935 _ACEOF
11936 cat confdefs.h >>conftest.$ac_ext
11937 cat >>conftest.$ac_ext <<_ACEOF
11938 /* end confdefs.h.  */
11939
11940 /* Override any gcc2 internal prototype to avoid an error.  */
11941 #ifdef __cplusplus
11942 extern "C"
11943 #endif
11944 /* We use char because int might match the return type of a gcc2
11945    builtin and then its argument prototype would still apply.  */
11946 char dlopen ();
11947 int
11948 main ()
11949 {
11950 dlopen ();
11951   ;
11952   return 0;
11953 }
11954 _ACEOF
11955 rm -f conftest.$ac_objext conftest$ac_exeext
11956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11957   (eval $ac_link) 2>conftest.er1
11958   ac_status=$?
11959   grep -v '^ *+' conftest.er1 >conftest.err
11960   rm -f conftest.er1
11961   cat conftest.err >&5
11962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11963   (exit $ac_status); } &&
11964          { ac_try='test -z "$ac_cxx_werror_flag"
11965                          || test ! -s conftest.err'
11966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11967   (eval $ac_try) 2>&5
11968   ac_status=$?
11969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11970   (exit $ac_status); }; } &&
11971          { ac_try='test -s conftest$ac_exeext'
11972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11973   (eval $ac_try) 2>&5
11974   ac_status=$?
11975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976   (exit $ac_status); }; }; then
11977   ac_cv_lib_dl_dlopen=yes
11978 else
11979   echo "$as_me: failed program was:" >&5
11980 sed 's/^/| /' conftest.$ac_ext >&5
11981
11982 ac_cv_lib_dl_dlopen=no
11983 fi
11984 rm -f conftest.err conftest.$ac_objext \
11985       conftest$ac_exeext conftest.$ac_ext
11986 LIBS=$ac_check_lib_save_LIBS
11987 fi
11988 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11989 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11990 if test $ac_cv_lib_dl_dlopen = yes; then
11991   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11992 else
11993
11994     lt_cv_dlopen="dyld"
11995     lt_cv_dlopen_libs=
11996     lt_cv_dlopen_self=yes
11997
11998 fi
11999
12000    ;;
12001
12002   *)
12003     echo "$as_me:$LINENO: checking for shl_load" >&5
12004 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12005 if test "${ac_cv_func_shl_load+set}" = set; then
12006   echo $ECHO_N "(cached) $ECHO_C" >&6
12007 else
12008   cat >conftest.$ac_ext <<_ACEOF
12009 /* confdefs.h.  */
12010 _ACEOF
12011 cat confdefs.h >>conftest.$ac_ext
12012 cat >>conftest.$ac_ext <<_ACEOF
12013 /* end confdefs.h.  */
12014 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12015    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12016 #define shl_load innocuous_shl_load
12017
12018 /* System header to define __stub macros and hopefully few prototypes,
12019     which can conflict with char shl_load (); below.
12020     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12021     <limits.h> exists even on freestanding compilers.  */
12022
12023 #ifdef __STDC__
12024 # include <limits.h>
12025 #else
12026 # include <assert.h>
12027 #endif
12028
12029 #undef shl_load
12030
12031 /* Override any gcc2 internal prototype to avoid an error.  */
12032 #ifdef __cplusplus
12033 extern "C"
12034 {
12035 #endif
12036 /* We use char because int might match the return type of a gcc2
12037    builtin and then its argument prototype would still apply.  */
12038 char shl_load ();
12039 /* The GNU C library defines this for functions which it implements
12040     to always fail with ENOSYS.  Some functions are actually named
12041     something starting with __ and the normal name is an alias.  */
12042 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12043 choke me
12044 #else
12045 char (*f) () = shl_load;
12046 #endif
12047 #ifdef __cplusplus
12048 }
12049 #endif
12050
12051 int
12052 main ()
12053 {
12054 return f != shl_load;
12055   ;
12056   return 0;
12057 }
12058 _ACEOF
12059 rm -f conftest.$ac_objext conftest$ac_exeext
12060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12061   (eval $ac_link) 2>conftest.er1
12062   ac_status=$?
12063   grep -v '^ *+' conftest.er1 >conftest.err
12064   rm -f conftest.er1
12065   cat conftest.err >&5
12066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067   (exit $ac_status); } &&
12068          { ac_try='test -z "$ac_cxx_werror_flag"
12069                          || test ! -s conftest.err'
12070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12071   (eval $ac_try) 2>&5
12072   ac_status=$?
12073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12074   (exit $ac_status); }; } &&
12075          { ac_try='test -s conftest$ac_exeext'
12076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12077   (eval $ac_try) 2>&5
12078   ac_status=$?
12079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12080   (exit $ac_status); }; }; then
12081   ac_cv_func_shl_load=yes
12082 else
12083   echo "$as_me: failed program was:" >&5
12084 sed 's/^/| /' conftest.$ac_ext >&5
12085
12086 ac_cv_func_shl_load=no
12087 fi
12088 rm -f conftest.err conftest.$ac_objext \
12089       conftest$ac_exeext conftest.$ac_ext
12090 fi
12091 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12092 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12093 if test $ac_cv_func_shl_load = yes; then
12094   lt_cv_dlopen="shl_load"
12095 else
12096   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12097 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12098 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12099   echo $ECHO_N "(cached) $ECHO_C" >&6
12100 else
12101   ac_check_lib_save_LIBS=$LIBS
12102 LIBS="-ldld  $LIBS"
12103 cat >conftest.$ac_ext <<_ACEOF
12104 /* confdefs.h.  */
12105 _ACEOF
12106 cat confdefs.h >>conftest.$ac_ext
12107 cat >>conftest.$ac_ext <<_ACEOF
12108 /* end confdefs.h.  */
12109
12110 /* Override any gcc2 internal prototype to avoid an error.  */
12111 #ifdef __cplusplus
12112 extern "C"
12113 #endif
12114 /* We use char because int might match the return type of a gcc2
12115    builtin and then its argument prototype would still apply.  */
12116 char shl_load ();
12117 int
12118 main ()
12119 {
12120 shl_load ();
12121   ;
12122   return 0;
12123 }
12124 _ACEOF
12125 rm -f conftest.$ac_objext conftest$ac_exeext
12126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12127   (eval $ac_link) 2>conftest.er1
12128   ac_status=$?
12129   grep -v '^ *+' conftest.er1 >conftest.err
12130   rm -f conftest.er1
12131   cat conftest.err >&5
12132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133   (exit $ac_status); } &&
12134          { ac_try='test -z "$ac_cxx_werror_flag"
12135                          || test ! -s conftest.err'
12136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12137   (eval $ac_try) 2>&5
12138   ac_status=$?
12139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12140   (exit $ac_status); }; } &&
12141          { ac_try='test -s conftest$ac_exeext'
12142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12143   (eval $ac_try) 2>&5
12144   ac_status=$?
12145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146   (exit $ac_status); }; }; then
12147   ac_cv_lib_dld_shl_load=yes
12148 else
12149   echo "$as_me: failed program was:" >&5
12150 sed 's/^/| /' conftest.$ac_ext >&5
12151
12152 ac_cv_lib_dld_shl_load=no
12153 fi
12154 rm -f conftest.err conftest.$ac_objext \
12155       conftest$ac_exeext conftest.$ac_ext
12156 LIBS=$ac_check_lib_save_LIBS
12157 fi
12158 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12159 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12160 if test $ac_cv_lib_dld_shl_load = yes; then
12161   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12162 else
12163   echo "$as_me:$LINENO: checking for dlopen" >&5
12164 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12165 if test "${ac_cv_func_dlopen+set}" = set; then
12166   echo $ECHO_N "(cached) $ECHO_C" >&6
12167 else
12168   cat >conftest.$ac_ext <<_ACEOF
12169 /* confdefs.h.  */
12170 _ACEOF
12171 cat confdefs.h >>conftest.$ac_ext
12172 cat >>conftest.$ac_ext <<_ACEOF
12173 /* end confdefs.h.  */
12174 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12175    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12176 #define dlopen innocuous_dlopen
12177
12178 /* System header to define __stub macros and hopefully few prototypes,
12179     which can conflict with char dlopen (); below.
12180     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12181     <limits.h> exists even on freestanding compilers.  */
12182
12183 #ifdef __STDC__
12184 # include <limits.h>
12185 #else
12186 # include <assert.h>
12187 #endif
12188
12189 #undef dlopen
12190
12191 /* Override any gcc2 internal prototype to avoid an error.  */
12192 #ifdef __cplusplus
12193 extern "C"
12194 {
12195 #endif
12196 /* We use char because int might match the return type of a gcc2
12197    builtin and then its argument prototype would still apply.  */
12198 char dlopen ();
12199 /* The GNU C library defines this for functions which it implements
12200     to always fail with ENOSYS.  Some functions are actually named
12201     something starting with __ and the normal name is an alias.  */
12202 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12203 choke me
12204 #else
12205 char (*f) () = dlopen;
12206 #endif
12207 #ifdef __cplusplus
12208 }
12209 #endif
12210
12211 int
12212 main ()
12213 {
12214 return f != dlopen;
12215   ;
12216   return 0;
12217 }
12218 _ACEOF
12219 rm -f conftest.$ac_objext conftest$ac_exeext
12220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12221   (eval $ac_link) 2>conftest.er1
12222   ac_status=$?
12223   grep -v '^ *+' conftest.er1 >conftest.err
12224   rm -f conftest.er1
12225   cat conftest.err >&5
12226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227   (exit $ac_status); } &&
12228          { ac_try='test -z "$ac_cxx_werror_flag"
12229                          || test ! -s conftest.err'
12230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12231   (eval $ac_try) 2>&5
12232   ac_status=$?
12233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234   (exit $ac_status); }; } &&
12235          { ac_try='test -s conftest$ac_exeext'
12236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12237   (eval $ac_try) 2>&5
12238   ac_status=$?
12239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240   (exit $ac_status); }; }; then
12241   ac_cv_func_dlopen=yes
12242 else
12243   echo "$as_me: failed program was:" >&5
12244 sed 's/^/| /' conftest.$ac_ext >&5
12245
12246 ac_cv_func_dlopen=no
12247 fi
12248 rm -f conftest.err conftest.$ac_objext \
12249       conftest$ac_exeext conftest.$ac_ext
12250 fi
12251 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12252 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12253 if test $ac_cv_func_dlopen = yes; then
12254   lt_cv_dlopen="dlopen"
12255 else
12256   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12257 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12258 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12259   echo $ECHO_N "(cached) $ECHO_C" >&6
12260 else
12261   ac_check_lib_save_LIBS=$LIBS
12262 LIBS="-ldl  $LIBS"
12263 cat >conftest.$ac_ext <<_ACEOF
12264 /* confdefs.h.  */
12265 _ACEOF
12266 cat confdefs.h >>conftest.$ac_ext
12267 cat >>conftest.$ac_ext <<_ACEOF
12268 /* end confdefs.h.  */
12269
12270 /* Override any gcc2 internal prototype to avoid an error.  */
12271 #ifdef __cplusplus
12272 extern "C"
12273 #endif
12274 /* We use char because int might match the return type of a gcc2
12275    builtin and then its argument prototype would still apply.  */
12276 char dlopen ();
12277 int
12278 main ()
12279 {
12280 dlopen ();
12281   ;
12282   return 0;
12283 }
12284 _ACEOF
12285 rm -f conftest.$ac_objext conftest$ac_exeext
12286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12287   (eval $ac_link) 2>conftest.er1
12288   ac_status=$?
12289   grep -v '^ *+' conftest.er1 >conftest.err
12290   rm -f conftest.er1
12291   cat conftest.err >&5
12292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293   (exit $ac_status); } &&
12294          { ac_try='test -z "$ac_cxx_werror_flag"
12295                          || test ! -s conftest.err'
12296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12297   (eval $ac_try) 2>&5
12298   ac_status=$?
12299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300   (exit $ac_status); }; } &&
12301          { ac_try='test -s conftest$ac_exeext'
12302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12303   (eval $ac_try) 2>&5
12304   ac_status=$?
12305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306   (exit $ac_status); }; }; then
12307   ac_cv_lib_dl_dlopen=yes
12308 else
12309   echo "$as_me: failed program was:" >&5
12310 sed 's/^/| /' conftest.$ac_ext >&5
12311
12312 ac_cv_lib_dl_dlopen=no
12313 fi
12314 rm -f conftest.err conftest.$ac_objext \
12315       conftest$ac_exeext conftest.$ac_ext
12316 LIBS=$ac_check_lib_save_LIBS
12317 fi
12318 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12319 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12320 if test $ac_cv_lib_dl_dlopen = yes; then
12321   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12322 else
12323   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12324 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12325 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12326   echo $ECHO_N "(cached) $ECHO_C" >&6
12327 else
12328   ac_check_lib_save_LIBS=$LIBS
12329 LIBS="-lsvld  $LIBS"
12330 cat >conftest.$ac_ext <<_ACEOF
12331 /* confdefs.h.  */
12332 _ACEOF
12333 cat confdefs.h >>conftest.$ac_ext
12334 cat >>conftest.$ac_ext <<_ACEOF
12335 /* end confdefs.h.  */
12336
12337 /* Override any gcc2 internal prototype to avoid an error.  */
12338 #ifdef __cplusplus
12339 extern "C"
12340 #endif
12341 /* We use char because int might match the return type of a gcc2
12342    builtin and then its argument prototype would still apply.  */
12343 char dlopen ();
12344 int
12345 main ()
12346 {
12347 dlopen ();
12348   ;
12349   return 0;
12350 }
12351 _ACEOF
12352 rm -f conftest.$ac_objext conftest$ac_exeext
12353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12354   (eval $ac_link) 2>conftest.er1
12355   ac_status=$?
12356   grep -v '^ *+' conftest.er1 >conftest.err
12357   rm -f conftest.er1
12358   cat conftest.err >&5
12359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360   (exit $ac_status); } &&
12361          { ac_try='test -z "$ac_cxx_werror_flag"
12362                          || test ! -s conftest.err'
12363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12364   (eval $ac_try) 2>&5
12365   ac_status=$?
12366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367   (exit $ac_status); }; } &&
12368          { ac_try='test -s conftest$ac_exeext'
12369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12370   (eval $ac_try) 2>&5
12371   ac_status=$?
12372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373   (exit $ac_status); }; }; then
12374   ac_cv_lib_svld_dlopen=yes
12375 else
12376   echo "$as_me: failed program was:" >&5
12377 sed 's/^/| /' conftest.$ac_ext >&5
12378
12379 ac_cv_lib_svld_dlopen=no
12380 fi
12381 rm -f conftest.err conftest.$ac_objext \
12382       conftest$ac_exeext conftest.$ac_ext
12383 LIBS=$ac_check_lib_save_LIBS
12384 fi
12385 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12386 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12387 if test $ac_cv_lib_svld_dlopen = yes; then
12388   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12389 else
12390   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12391 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12392 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12393   echo $ECHO_N "(cached) $ECHO_C" >&6
12394 else
12395   ac_check_lib_save_LIBS=$LIBS
12396 LIBS="-ldld  $LIBS"
12397 cat >conftest.$ac_ext <<_ACEOF
12398 /* confdefs.h.  */
12399 _ACEOF
12400 cat confdefs.h >>conftest.$ac_ext
12401 cat >>conftest.$ac_ext <<_ACEOF
12402 /* end confdefs.h.  */
12403
12404 /* Override any gcc2 internal prototype to avoid an error.  */
12405 #ifdef __cplusplus
12406 extern "C"
12407 #endif
12408 /* We use char because int might match the return type of a gcc2
12409    builtin and then its argument prototype would still apply.  */
12410 char dld_link ();
12411 int
12412 main ()
12413 {
12414 dld_link ();
12415   ;
12416   return 0;
12417 }
12418 _ACEOF
12419 rm -f conftest.$ac_objext conftest$ac_exeext
12420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12421   (eval $ac_link) 2>conftest.er1
12422   ac_status=$?
12423   grep -v '^ *+' conftest.er1 >conftest.err
12424   rm -f conftest.er1
12425   cat conftest.err >&5
12426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427   (exit $ac_status); } &&
12428          { ac_try='test -z "$ac_cxx_werror_flag"
12429                          || test ! -s conftest.err'
12430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12431   (eval $ac_try) 2>&5
12432   ac_status=$?
12433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434   (exit $ac_status); }; } &&
12435          { ac_try='test -s conftest$ac_exeext'
12436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12437   (eval $ac_try) 2>&5
12438   ac_status=$?
12439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440   (exit $ac_status); }; }; then
12441   ac_cv_lib_dld_dld_link=yes
12442 else
12443   echo "$as_me: failed program was:" >&5
12444 sed 's/^/| /' conftest.$ac_ext >&5
12445
12446 ac_cv_lib_dld_dld_link=no
12447 fi
12448 rm -f conftest.err conftest.$ac_objext \
12449       conftest$ac_exeext conftest.$ac_ext
12450 LIBS=$ac_check_lib_save_LIBS
12451 fi
12452 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12453 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12454 if test $ac_cv_lib_dld_dld_link = yes; then
12455   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12456 fi
12457
12458
12459 fi
12460
12461
12462 fi
12463
12464
12465 fi
12466
12467
12468 fi
12469
12470
12471 fi
12472
12473     ;;
12474   esac
12475
12476   if test "x$lt_cv_dlopen" != xno; then
12477     enable_dlopen=yes
12478   else
12479     enable_dlopen=no
12480   fi
12481
12482   case $lt_cv_dlopen in
12483   dlopen)
12484     save_CPPFLAGS="$CPPFLAGS"
12485     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12486
12487     save_LDFLAGS="$LDFLAGS"
12488     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12489
12490     save_LIBS="$LIBS"
12491     LIBS="$lt_cv_dlopen_libs $LIBS"
12492
12493     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12494 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12495 if test "${lt_cv_dlopen_self+set}" = set; then
12496   echo $ECHO_N "(cached) $ECHO_C" >&6
12497 else
12498           if test "$cross_compiling" = yes; then :
12499   lt_cv_dlopen_self=cross
12500 else
12501   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12502   lt_status=$lt_dlunknown
12503   cat > conftest.$ac_ext <<EOF
12504 #line 12504 "configure"
12505 #include "confdefs.h"
12506
12507 #if HAVE_DLFCN_H
12508 #include <dlfcn.h>
12509 #endif
12510
12511 #include <stdio.h>
12512
12513 #ifdef RTLD_GLOBAL
12514 #  define LT_DLGLOBAL           RTLD_GLOBAL
12515 #else
12516 #  ifdef DL_GLOBAL
12517 #    define LT_DLGLOBAL         DL_GLOBAL
12518 #  else
12519 #    define LT_DLGLOBAL         0
12520 #  endif
12521 #endif
12522
12523 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12524    find out it does not work in some platform. */
12525 #ifndef LT_DLLAZY_OR_NOW
12526 #  ifdef RTLD_LAZY
12527 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12528 #  else
12529 #    ifdef DL_LAZY
12530 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12531 #    else
12532 #      ifdef RTLD_NOW
12533 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12534 #      else
12535 #        ifdef DL_NOW
12536 #          define LT_DLLAZY_OR_NOW      DL_NOW
12537 #        else
12538 #          define LT_DLLAZY_OR_NOW      0
12539 #        endif
12540 #      endif
12541 #    endif
12542 #  endif
12543 #endif
12544
12545 #ifdef __cplusplus
12546 extern "C" void exit (int);
12547 #endif
12548
12549 void fnord() { int i=42;}
12550 int main ()
12551 {
12552   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12553   int status = $lt_dlunknown;
12554
12555   if (self)
12556     {
12557       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12558       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12559       /* dlclose (self); */
12560     }
12561
12562     exit (status);
12563 }
12564 EOF
12565   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12566   (eval $ac_link) 2>&5
12567   ac_status=$?
12568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12570     (./conftest; exit; ) 2>/dev/null
12571     lt_status=$?
12572     case x$lt_status in
12573       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12574       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12575       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12576     esac
12577   else :
12578     # compilation failed
12579     lt_cv_dlopen_self=no
12580   fi
12581 fi
12582 rm -fr conftest*
12583
12584
12585 fi
12586 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12587 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12588
12589     if test "x$lt_cv_dlopen_self" = xyes; then
12590       LDFLAGS="$LDFLAGS $link_static_flag"
12591       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12592 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12593 if test "${lt_cv_dlopen_self_static+set}" = set; then
12594   echo $ECHO_N "(cached) $ECHO_C" >&6
12595 else
12596           if test "$cross_compiling" = yes; then :
12597   lt_cv_dlopen_self_static=cross
12598 else
12599   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12600   lt_status=$lt_dlunknown
12601   cat > conftest.$ac_ext <<EOF
12602 #line 12602 "configure"
12603 #include "confdefs.h"
12604
12605 #if HAVE_DLFCN_H
12606 #include <dlfcn.h>
12607 #endif
12608
12609 #include <stdio.h>
12610
12611 #ifdef RTLD_GLOBAL
12612 #  define LT_DLGLOBAL           RTLD_GLOBAL
12613 #else
12614 #  ifdef DL_GLOBAL
12615 #    define LT_DLGLOBAL         DL_GLOBAL
12616 #  else
12617 #    define LT_DLGLOBAL         0
12618 #  endif
12619 #endif
12620
12621 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12622    find out it does not work in some platform. */
12623 #ifndef LT_DLLAZY_OR_NOW
12624 #  ifdef RTLD_LAZY
12625 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12626 #  else
12627 #    ifdef DL_LAZY
12628 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12629 #    else
12630 #      ifdef RTLD_NOW
12631 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12632 #      else
12633 #        ifdef DL_NOW
12634 #          define LT_DLLAZY_OR_NOW      DL_NOW
12635 #        else
12636 #          define LT_DLLAZY_OR_NOW      0
12637 #        endif
12638 #      endif
12639 #    endif
12640 #  endif
12641 #endif
12642
12643 #ifdef __cplusplus
12644 extern "C" void exit (int);
12645 #endif
12646
12647 void fnord() { int i=42;}
12648 int main ()
12649 {
12650   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12651   int status = $lt_dlunknown;
12652
12653   if (self)
12654     {
12655       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12656       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12657       /* dlclose (self); */
12658     }
12659
12660     exit (status);
12661 }
12662 EOF
12663   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12664   (eval $ac_link) 2>&5
12665   ac_status=$?
12666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12667   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12668     (./conftest; exit; ) 2>/dev/null
12669     lt_status=$?
12670     case x$lt_status in
12671       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12672       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12673       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12674     esac
12675   else :
12676     # compilation failed
12677     lt_cv_dlopen_self_static=no
12678   fi
12679 fi
12680 rm -fr conftest*
12681
12682
12683 fi
12684 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12685 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12686     fi
12687
12688     CPPFLAGS="$save_CPPFLAGS"
12689     LDFLAGS="$save_LDFLAGS"
12690     LIBS="$save_LIBS"
12691     ;;
12692   esac
12693
12694   case $lt_cv_dlopen_self in
12695   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12696   *) enable_dlopen_self=unknown ;;
12697   esac
12698
12699   case $lt_cv_dlopen_self_static in
12700   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12701   *) enable_dlopen_self_static=unknown ;;
12702   esac
12703 fi
12704
12705
12706 # The else clause should only fire when bootstrapping the
12707 # libtool distribution, otherwise you forgot to ship ltmain.sh
12708 # with your package, and you will get complaints that there are
12709 # no rules to generate ltmain.sh.
12710 if test -f "$ltmain"; then
12711   # See if we are running on zsh, and set the options which allow our commands through
12712   # without removal of \ escapes.
12713   if test -n "${ZSH_VERSION+set}" ; then
12714     setopt NO_GLOB_SUBST
12715   fi
12716   # Now quote all the things that may contain metacharacters while being
12717   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12718   # variables and quote the copies for generation of the libtool script.
12719   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12720     SED SHELL STRIP \
12721     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12722     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12723     deplibs_check_method reload_flag reload_cmds need_locks \
12724     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12725     lt_cv_sys_global_symbol_to_c_name_address \
12726     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12727     old_postinstall_cmds old_postuninstall_cmds \
12728     compiler_CXX \
12729     CC_CXX \
12730     LD_CXX \
12731     lt_prog_compiler_wl_CXX \
12732     lt_prog_compiler_pic_CXX \
12733     lt_prog_compiler_static_CXX \
12734     lt_prog_compiler_no_builtin_flag_CXX \
12735     export_dynamic_flag_spec_CXX \
12736     thread_safe_flag_spec_CXX \
12737     whole_archive_flag_spec_CXX \
12738     enable_shared_with_static_runtimes_CXX \
12739     old_archive_cmds_CXX \
12740     old_archive_from_new_cmds_CXX \
12741     predep_objects_CXX \
12742     postdep_objects_CXX \
12743     predeps_CXX \
12744     postdeps_CXX \
12745     compiler_lib_search_path_CXX \
12746     archive_cmds_CXX \
12747     archive_expsym_cmds_CXX \
12748     postinstall_cmds_CXX \
12749     postuninstall_cmds_CXX \
12750     old_archive_from_expsyms_cmds_CXX \
12751     allow_undefined_flag_CXX \
12752     no_undefined_flag_CXX \
12753     export_symbols_cmds_CXX \
12754     hardcode_libdir_flag_spec_CXX \
12755     hardcode_libdir_flag_spec_ld_CXX \
12756     hardcode_libdir_separator_CXX \
12757     hardcode_automatic_CXX \
12758     module_cmds_CXX \
12759     module_expsym_cmds_CXX \
12760     lt_cv_prog_compiler_c_o_CXX \
12761     exclude_expsyms_CXX \
12762     include_expsyms_CXX; do
12763
12764     case $var in
12765     old_archive_cmds_CXX | \
12766     old_archive_from_new_cmds_CXX | \
12767     archive_cmds_CXX | \
12768     archive_expsym_cmds_CXX | \
12769     module_cmds_CXX | \
12770     module_expsym_cmds_CXX | \
12771     old_archive_from_expsyms_cmds_CXX | \
12772     export_symbols_cmds_CXX | \
12773     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12774     postinstall_cmds | postuninstall_cmds | \
12775     old_postinstall_cmds | old_postuninstall_cmds | \
12776     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12777       # Double-quote double-evaled strings.
12778       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12779       ;;
12780     *)
12781       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12782       ;;
12783     esac
12784   done
12785
12786   case $lt_echo in
12787   *'\$0 --fallback-echo"')
12788     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12789     ;;
12790   esac
12791
12792 cfgfile="$ofile"
12793
12794   cat <<__EOF__ >> "$cfgfile"
12795 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12796
12797 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12798
12799 # Shell to use when invoking shell scripts.
12800 SHELL=$lt_SHELL
12801
12802 # Whether or not to build shared libraries.
12803 build_libtool_libs=$enable_shared
12804
12805 # Whether or not to build static libraries.
12806 build_old_libs=$enable_static
12807
12808 # Whether or not to add -lc for building shared libraries.
12809 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12810
12811 # Whether or not to disallow shared libs when runtime libs are static
12812 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12813
12814 # Whether or not to optimize for fast installation.
12815 fast_install=$enable_fast_install
12816
12817 # The host system.
12818 host_alias=$host_alias
12819 host=$host
12820
12821 # An echo program that does not interpret backslashes.
12822 echo=$lt_echo
12823
12824 # The archiver.
12825 AR=$lt_AR
12826 AR_FLAGS=$lt_AR_FLAGS
12827
12828 # A C compiler.
12829 LTCC=$lt_LTCC
12830
12831 # A language-specific compiler.
12832 CC=$lt_compiler_CXX
12833
12834 # Is the compiler the GNU C compiler?
12835 with_gcc=$GCC_CXX
12836
12837 # An ERE matcher.
12838 EGREP=$lt_EGREP
12839
12840 # The linker used to build libraries.
12841 LD=$lt_LD_CXX
12842
12843 # Whether we need hard or soft links.
12844 LN_S=$lt_LN_S
12845
12846 # A BSD-compatible nm program.
12847 NM=$lt_NM
12848
12849 # A symbol stripping program
12850 STRIP=$lt_STRIP
12851
12852 # Used to examine libraries when file_magic_cmd begins "file"
12853 MAGIC_CMD=$MAGIC_CMD
12854
12855 # Used on cygwin: DLL creation program.
12856 DLLTOOL="$DLLTOOL"
12857
12858 # Used on cygwin: object dumper.
12859 OBJDUMP="$OBJDUMP"
12860
12861 # Used on cygwin: assembler.
12862 AS="$AS"
12863
12864 # The name of the directory that contains temporary libtool files.
12865 objdir=$objdir
12866
12867 # How to create reloadable object files.
12868 reload_flag=$lt_reload_flag
12869 reload_cmds=$lt_reload_cmds
12870
12871 # How to pass a linker flag through the compiler.
12872 wl=$lt_lt_prog_compiler_wl_CXX
12873
12874 # Object file suffix (normally "o").
12875 objext="$ac_objext"
12876
12877 # Old archive suffix (normally "a").
12878 libext="$libext"
12879
12880 # Shared library suffix (normally ".so").
12881 shrext_cmds='$shrext_cmds'
12882
12883 # Executable file suffix (normally "").
12884 exeext="$exeext"
12885
12886 # Additional compiler flags for building library objects.
12887 pic_flag=$lt_lt_prog_compiler_pic_CXX
12888 pic_mode=$pic_mode
12889
12890 # What is the maximum length of a command?
12891 max_cmd_len=$lt_cv_sys_max_cmd_len
12892
12893 # Does compiler simultaneously support -c and -o options?
12894 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12895
12896 # Must we lock files when doing compilation ?
12897 need_locks=$lt_need_locks
12898
12899 # Do we need the lib prefix for modules?
12900 need_lib_prefix=$need_lib_prefix
12901
12902 # Do we need a version for libraries?
12903 need_version=$need_version
12904
12905 # Whether dlopen is supported.
12906 dlopen_support=$enable_dlopen
12907
12908 # Whether dlopen of programs is supported.
12909 dlopen_self=$enable_dlopen_self
12910
12911 # Whether dlopen of statically linked programs is supported.
12912 dlopen_self_static=$enable_dlopen_self_static
12913
12914 # Compiler flag to prevent dynamic linking.
12915 link_static_flag=$lt_lt_prog_compiler_static_CXX
12916
12917 # Compiler flag to turn off builtin functions.
12918 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12919
12920 # Compiler flag to allow reflexive dlopens.
12921 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12922
12923 # Compiler flag to generate shared objects directly from archives.
12924 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12925
12926 # Compiler flag to generate thread-safe objects.
12927 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12928
12929 # Library versioning type.
12930 version_type=$version_type
12931
12932 # Format of library name prefix.
12933 libname_spec=$lt_libname_spec
12934
12935 # List of archive names.  First name is the real one, the rest are links.
12936 # The last name is the one that the linker finds with -lNAME.
12937 library_names_spec=$lt_library_names_spec
12938
12939 # The coded name of the library, if different from the real name.
12940 soname_spec=$lt_soname_spec
12941
12942 # Commands used to build and install an old-style archive.
12943 RANLIB=$lt_RANLIB
12944 old_archive_cmds=$lt_old_archive_cmds_CXX
12945 old_postinstall_cmds=$lt_old_postinstall_cmds
12946 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12947
12948 # Create an old-style archive from a shared archive.
12949 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12950
12951 # Create a temporary old-style archive to link instead of a shared archive.
12952 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12953
12954 # Commands used to build and install a shared archive.
12955 archive_cmds=$lt_archive_cmds_CXX
12956 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12957 postinstall_cmds=$lt_postinstall_cmds
12958 postuninstall_cmds=$lt_postuninstall_cmds
12959
12960 # Commands used to build a loadable module (assumed same as above if empty)
12961 module_cmds=$lt_module_cmds_CXX
12962 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12963
12964 # Commands to strip libraries.
12965 old_striplib=$lt_old_striplib
12966 striplib=$lt_striplib
12967
12968 # Dependencies to place before the objects being linked to create a
12969 # shared library.
12970 predep_objects=$lt_predep_objects_CXX
12971
12972 # Dependencies to place after the objects being linked to create a
12973 # shared library.
12974 postdep_objects=$lt_postdep_objects_CXX
12975
12976 # Dependencies to place before the objects being linked to create a
12977 # shared library.
12978 predeps=$lt_predeps_CXX
12979
12980 # Dependencies to place after the objects being linked to create a
12981 # shared library.
12982 postdeps=$lt_postdeps_CXX
12983
12984 # The library search path used internally by the compiler when linking
12985 # a shared library.
12986 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12987
12988 # Method to check whether dependent libraries are shared objects.
12989 deplibs_check_method=$lt_deplibs_check_method
12990
12991 # Command to use when deplibs_check_method == file_magic.
12992 file_magic_cmd=$lt_file_magic_cmd
12993
12994 # Flag that allows shared libraries with undefined symbols to be built.
12995 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12996
12997 # Flag that forces no undefined symbols.
12998 no_undefined_flag=$lt_no_undefined_flag_CXX
12999
13000 # Commands used to finish a libtool library installation in a directory.
13001 finish_cmds=$lt_finish_cmds
13002
13003 # Same as above, but a single script fragment to be evaled but not shown.
13004 finish_eval=$lt_finish_eval
13005
13006 # Take the output of nm and produce a listing of raw symbols and C names.
13007 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13008
13009 # Transform the output of nm in a proper C declaration
13010 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13011
13012 # Transform the output of nm in a C name address pair
13013 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13014
13015 # This is the shared library runtime path variable.
13016 runpath_var=$runpath_var
13017
13018 # This is the shared library path variable.
13019 shlibpath_var=$shlibpath_var
13020
13021 # Is shlibpath searched before the hard-coded library search path?
13022 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13023
13024 # How to hardcode a shared library path into an executable.
13025 hardcode_action=$hardcode_action_CXX
13026
13027 # Whether we should hardcode library paths into libraries.
13028 hardcode_into_libs=$hardcode_into_libs
13029
13030 # Flag to hardcode \$libdir into a binary during linking.
13031 # This must work even if \$libdir does not exist.
13032 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13033
13034 # If ld is used when linking, flag to hardcode \$libdir into
13035 # a binary during linking. This must work even if \$libdir does
13036 # not exist.
13037 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13038
13039 # Whether we need a single -rpath flag with a separated argument.
13040 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13041
13042 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13043 # resulting binary.
13044 hardcode_direct=$hardcode_direct_CXX
13045
13046 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13047 # resulting binary.
13048 hardcode_minus_L=$hardcode_minus_L_CXX
13049
13050 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13051 # the resulting binary.
13052 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13053
13054 # Set to yes if building a shared library automatically hardcodes DIR into the library
13055 # and all subsequent libraries and executables linked against it.
13056 hardcode_automatic=$hardcode_automatic_CXX
13057
13058 # Variables whose values should be saved in libtool wrapper scripts and
13059 # restored at relink time.
13060 variables_saved_for_relink="$variables_saved_for_relink"
13061
13062 # Whether libtool must link a program against all its dependency libraries.
13063 link_all_deplibs=$link_all_deplibs_CXX
13064
13065 # Compile-time system search path for libraries
13066 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13067
13068 # Run-time system search path for libraries
13069 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13070
13071 # Fix the shell variable \$srcfile for the compiler.
13072 fix_srcfile_path="$fix_srcfile_path_CXX"
13073
13074 # Set to yes if exported symbols are required.
13075 always_export_symbols=$always_export_symbols_CXX
13076
13077 # The commands to list exported symbols.
13078 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13079
13080 # The commands to extract the exported symbol list from a shared archive.
13081 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13082
13083 # Symbols that should not be listed in the preloaded symbols.
13084 exclude_expsyms=$lt_exclude_expsyms_CXX
13085
13086 # Symbols that must always be exported.
13087 include_expsyms=$lt_include_expsyms_CXX
13088
13089 # ### END LIBTOOL TAG CONFIG: $tagname
13090
13091 __EOF__
13092
13093
13094 else
13095   # If there is no Makefile yet, we rely on a make rule to execute
13096   # `config.status --recheck' to rerun these tests and create the
13097   # libtool script then.
13098   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13099   if test -f "$ltmain_in"; then
13100     test -f Makefile && make "$ltmain"
13101   fi
13102 fi
13103
13104
13105 ac_ext=c
13106 ac_cpp='$CPP $CPPFLAGS'
13107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13110
13111 CC=$lt_save_CC
13112 LDCXX=$LD
13113 LD=$lt_save_LD
13114 GCC=$lt_save_GCC
13115 with_gnu_ldcxx=$with_gnu_ld
13116 with_gnu_ld=$lt_save_with_gnu_ld
13117 lt_cv_path_LDCXX=$lt_cv_path_LD
13118 lt_cv_path_LD=$lt_save_path_LD
13119 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13120 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13121
13122         else
13123           tagname=""
13124         fi
13125         ;;
13126
13127       F77)
13128         if test -n "$F77" && test "X$F77" != "Xno"; then
13129
13130 ac_ext=f
13131 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13132 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13133 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13134
13135
13136 archive_cmds_need_lc_F77=no
13137 allow_undefined_flag_F77=
13138 always_export_symbols_F77=no
13139 archive_expsym_cmds_F77=
13140 export_dynamic_flag_spec_F77=
13141 hardcode_direct_F77=no
13142 hardcode_libdir_flag_spec_F77=
13143 hardcode_libdir_flag_spec_ld_F77=
13144 hardcode_libdir_separator_F77=
13145 hardcode_minus_L_F77=no
13146 hardcode_automatic_F77=no
13147 module_cmds_F77=
13148 module_expsym_cmds_F77=
13149 link_all_deplibs_F77=unknown
13150 old_archive_cmds_F77=$old_archive_cmds
13151 no_undefined_flag_F77=
13152 whole_archive_flag_spec_F77=
13153 enable_shared_with_static_runtimes_F77=no
13154
13155 # Source file extension for f77 test sources.
13156 ac_ext=f
13157
13158 # Object file extension for compiled f77 test sources.
13159 objext=o
13160 objext_F77=$objext
13161
13162 # Code to be used in simple compile tests
13163 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13164
13165 # Code to be used in simple link tests
13166 lt_simple_link_test_code="      program t\n      end\n"
13167
13168 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13169
13170 # If no C compiler was specified, use CC.
13171 LTCC=${LTCC-"$CC"}
13172
13173 # Allow CC to be a program name with arguments.
13174 compiler=$CC
13175
13176
13177 # Allow CC to be a program name with arguments.
13178 lt_save_CC="$CC"
13179 CC=${F77-"f77"}
13180 compiler=$CC
13181 compiler_F77=$CC
13182 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13183
13184 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13185 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13186 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13187 echo "${ECHO_T}$can_build_shared" >&6
13188
13189 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13190 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13191 test "$can_build_shared" = "no" && enable_shared=no
13192
13193 # On AIX, shared libraries and static libraries use the same namespace, and
13194 # are all built from PIC.
13195 case "$host_os" in
13196 aix3*)
13197   test "$enable_shared" = yes && enable_static=no
13198   if test -n "$RANLIB"; then
13199     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13200     postinstall_cmds='$RANLIB $lib'
13201   fi
13202   ;;
13203 aix4* | aix5*)
13204   test "$enable_shared" = yes && enable_static=no
13205   ;;
13206 esac
13207 echo "$as_me:$LINENO: result: $enable_shared" >&5
13208 echo "${ECHO_T}$enable_shared" >&6
13209
13210 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13211 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13212 # Make sure either enable_shared or enable_static is yes.
13213 test "$enable_shared" = yes || enable_static=yes
13214 echo "$as_me:$LINENO: result: $enable_static" >&5
13215 echo "${ECHO_T}$enable_static" >&6
13216
13217 test "$ld_shlibs_F77" = no && can_build_shared=no
13218
13219 GCC_F77="$G77"
13220 LD_F77="$LD"
13221
13222 lt_prog_compiler_wl_F77=
13223 lt_prog_compiler_pic_F77=
13224 lt_prog_compiler_static_F77=
13225
13226 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13227 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13228
13229   if test "$GCC" = yes; then
13230     lt_prog_compiler_wl_F77='-Wl,'
13231     lt_prog_compiler_static_F77='-static'
13232
13233     case $host_os in
13234       aix*)
13235       # All AIX code is PIC.
13236       if test "$host_cpu" = ia64; then
13237         # AIX 5 now supports IA64 processor
13238         lt_prog_compiler_static_F77='-Bstatic'
13239       fi
13240       ;;
13241
13242     amigaos*)
13243       # FIXME: we need at least 68020 code to build shared libraries, but
13244       # adding the `-m68020' flag to GCC prevents building anything better,
13245       # like `-m68040'.
13246       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13247       ;;
13248
13249     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13250       # PIC is the default for these OSes.
13251       ;;
13252
13253     mingw* | pw32* | os2*)
13254       # This hack is so that the source file can tell whether it is being
13255       # built for inclusion in a dll (and should export symbols for example).
13256       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13257       ;;
13258
13259     darwin* | rhapsody*)
13260       # PIC is the default on this platform
13261       # Common symbols not allowed in MH_DYLIB files
13262       lt_prog_compiler_pic_F77='-fno-common'
13263       ;;
13264
13265     msdosdjgpp*)
13266       # Just because we use GCC doesn't mean we suddenly get shared libraries
13267       # on systems that don't support them.
13268       lt_prog_compiler_can_build_shared_F77=no
13269       enable_shared=no
13270       ;;
13271
13272     sysv4*MP*)
13273       if test -d /usr/nec; then
13274         lt_prog_compiler_pic_F77=-Kconform_pic
13275       fi
13276       ;;
13277
13278     hpux*)
13279       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13280       # not for PA HP-UX.
13281       case "$host_cpu" in
13282       hppa*64*|ia64*)
13283         # +Z the default
13284         ;;
13285       *)
13286         lt_prog_compiler_pic_F77='-fPIC'
13287         ;;
13288       esac
13289       ;;
13290
13291     *)
13292       lt_prog_compiler_pic_F77='-fPIC'
13293       ;;
13294     esac
13295   else
13296     # PORTME Check for flag to pass linker flags through the system compiler.
13297     case $host_os in
13298     aix*)
13299       lt_prog_compiler_wl_F77='-Wl,'
13300       if test "$host_cpu" = ia64; then
13301         # AIX 5 now supports IA64 processor
13302         lt_prog_compiler_static_F77='-Bstatic'
13303       else
13304         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13305       fi
13306       ;;
13307
13308     mingw* | pw32* | os2*)
13309       # This hack is so that the source file can tell whether it is being
13310       # built for inclusion in a dll (and should export symbols for example).
13311       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13312       ;;
13313
13314     hpux9* | hpux10* | hpux11*)
13315       lt_prog_compiler_wl_F77='-Wl,'
13316       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13317       # not for PA HP-UX.
13318       case "$host_cpu" in
13319       hppa*64*|ia64*)
13320         # +Z the default
13321         ;;
13322       *)
13323         lt_prog_compiler_pic_F77='+Z'
13324         ;;
13325       esac
13326       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13327       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13328       ;;
13329
13330     irix5* | irix6* | nonstopux*)
13331       lt_prog_compiler_wl_F77='-Wl,'
13332       # PIC (with -KPIC) is the default.
13333       lt_prog_compiler_static_F77='-non_shared'
13334       ;;
13335
13336     newsos6)
13337       lt_prog_compiler_pic_F77='-KPIC'
13338       lt_prog_compiler_static_F77='-Bstatic'
13339       ;;
13340
13341     linux*)
13342       case $CC in
13343       icc* | ecc*)
13344         lt_prog_compiler_wl_F77='-Wl,'
13345         lt_prog_compiler_pic_F77='-KPIC'
13346         lt_prog_compiler_static_F77='-static'
13347         ;;
13348       ccc*)
13349         lt_prog_compiler_wl_F77='-Wl,'
13350         # All Alpha code is PIC.
13351         lt_prog_compiler_static_F77='-non_shared'
13352         ;;
13353       esac
13354       ;;
13355
13356     osf3* | osf4* | osf5*)
13357       lt_prog_compiler_wl_F77='-Wl,'
13358       # All OSF/1 code is PIC.
13359       lt_prog_compiler_static_F77='-non_shared'
13360       ;;
13361
13362     sco3.2v5*)
13363       lt_prog_compiler_pic_F77='-Kpic'
13364       lt_prog_compiler_static_F77='-dn'
13365       ;;
13366
13367     solaris*)
13368       lt_prog_compiler_wl_F77='-Wl,'
13369       lt_prog_compiler_pic_F77='-KPIC'
13370       lt_prog_compiler_static_F77='-Bstatic'
13371       ;;
13372
13373     sunos4*)
13374       lt_prog_compiler_wl_F77='-Qoption ld '
13375       lt_prog_compiler_pic_F77='-PIC'
13376       lt_prog_compiler_static_F77='-Bstatic'
13377       ;;
13378
13379     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13380       lt_prog_compiler_wl_F77='-Wl,'
13381       lt_prog_compiler_pic_F77='-KPIC'
13382       lt_prog_compiler_static_F77='-Bstatic'
13383       ;;
13384
13385     sysv4*MP*)
13386       if test -d /usr/nec ;then
13387         lt_prog_compiler_pic_F77='-Kconform_pic'
13388         lt_prog_compiler_static_F77='-Bstatic'
13389       fi
13390       ;;
13391
13392     uts4*)
13393       lt_prog_compiler_pic_F77='-pic'
13394       lt_prog_compiler_static_F77='-Bstatic'
13395       ;;
13396
13397     *)
13398       lt_prog_compiler_can_build_shared_F77=no
13399       ;;
13400     esac
13401   fi
13402
13403 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13404 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13405
13406 #
13407 # Check to make sure the PIC flag actually works.
13408 #
13409 if test -n "$lt_prog_compiler_pic_F77"; then
13410
13411 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13412 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13413 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13414   echo $ECHO_N "(cached) $ECHO_C" >&6
13415 else
13416   lt_prog_compiler_pic_works_F77=no
13417   ac_outfile=conftest.$ac_objext
13418    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13419    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13420    # Insert the option either (1) after the last *FLAGS variable, or
13421    # (2) before a word containing "conftest.", or (3) at the end.
13422    # Note that $ac_compile itself does not contain backslashes and begins
13423    # with a dollar sign (not a hyphen), so the echo should work correctly.
13424    # The option is referenced via a variable to avoid confusing sed.
13425    lt_compile=`echo "$ac_compile" | $SED \
13426    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13427    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13428    -e 's:$: $lt_compiler_flag:'`
13429    (eval echo "\"\$as_me:13429: $lt_compile\"" >&5)
13430    (eval "$lt_compile" 2>conftest.err)
13431    ac_status=$?
13432    cat conftest.err >&5
13433    echo "$as_me:13433: \$? = $ac_status" >&5
13434    if (exit $ac_status) && test -s "$ac_outfile"; then
13435      # The compiler can only warn and ignore the option if not recognized
13436      # So say no if there are warnings
13437      if test ! -s conftest.err; then
13438        lt_prog_compiler_pic_works_F77=yes
13439      fi
13440    fi
13441    $rm conftest*
13442
13443 fi
13444 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13445 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13446
13447 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13448     case $lt_prog_compiler_pic_F77 in
13449      "" | " "*) ;;
13450      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13451      esac
13452 else
13453     lt_prog_compiler_pic_F77=
13454      lt_prog_compiler_can_build_shared_F77=no
13455 fi
13456
13457 fi
13458 case "$host_os" in
13459   # For platforms which do not support PIC, -DPIC is meaningless:
13460   *djgpp*)
13461     lt_prog_compiler_pic_F77=
13462     ;;
13463   *)
13464     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13465     ;;
13466 esac
13467
13468 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13469 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13470 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13471   echo $ECHO_N "(cached) $ECHO_C" >&6
13472 else
13473   lt_cv_prog_compiler_c_o_F77=no
13474    $rm -r conftest 2>/dev/null
13475    mkdir conftest
13476    cd conftest
13477    mkdir out
13478    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13479
13480    lt_compiler_flag="-o out/conftest2.$ac_objext"
13481    # Insert the option either (1) after the last *FLAGS variable, or
13482    # (2) before a word containing "conftest.", or (3) at the end.
13483    # Note that $ac_compile itself does not contain backslashes and begins
13484    # with a dollar sign (not a hyphen), so the echo should work correctly.
13485    lt_compile=`echo "$ac_compile" | $SED \
13486    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13487    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13488    -e 's:$: $lt_compiler_flag:'`
13489    (eval echo "\"\$as_me:13489: $lt_compile\"" >&5)
13490    (eval "$lt_compile" 2>out/conftest.err)
13491    ac_status=$?
13492    cat out/conftest.err >&5
13493    echo "$as_me:13493: \$? = $ac_status" >&5
13494    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13495    then
13496      # The compiler can only warn and ignore the option if not recognized
13497      # So say no if there are warnings
13498      if test ! -s out/conftest.err; then
13499        lt_cv_prog_compiler_c_o_F77=yes
13500      fi
13501    fi
13502    chmod u+w .
13503    $rm conftest*
13504    # SGI C++ compiler will create directory out/ii_files/ for
13505    # template instantiation
13506    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13507    $rm out/* && rmdir out
13508    cd ..
13509    rmdir conftest
13510    $rm conftest*
13511
13512 fi
13513 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13514 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13515
13516
13517 hard_links="nottested"
13518 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13519   # do not overwrite the value of need_locks provided by the user
13520   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13521 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13522   hard_links=yes
13523   $rm conftest*
13524   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13525   touch conftest.a
13526   ln conftest.a conftest.b 2>&5 || hard_links=no
13527   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13528   echo "$as_me:$LINENO: result: $hard_links" >&5
13529 echo "${ECHO_T}$hard_links" >&6
13530   if test "$hard_links" = no; then
13531     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13532 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13533     need_locks=warn
13534   fi
13535 else
13536   need_locks=no
13537 fi
13538
13539 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13540 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13541
13542   runpath_var=
13543   allow_undefined_flag_F77=
13544   enable_shared_with_static_runtimes_F77=no
13545   archive_cmds_F77=
13546   archive_expsym_cmds_F77=
13547   old_archive_From_new_cmds_F77=
13548   old_archive_from_expsyms_cmds_F77=
13549   export_dynamic_flag_spec_F77=
13550   whole_archive_flag_spec_F77=
13551   thread_safe_flag_spec_F77=
13552   hardcode_libdir_flag_spec_F77=
13553   hardcode_libdir_flag_spec_ld_F77=
13554   hardcode_libdir_separator_F77=
13555   hardcode_direct_F77=no
13556   hardcode_minus_L_F77=no
13557   hardcode_shlibpath_var_F77=unsupported
13558   link_all_deplibs_F77=unknown
13559   hardcode_automatic_F77=no
13560   module_cmds_F77=
13561   module_expsym_cmds_F77=
13562   always_export_symbols_F77=no
13563   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13564   # include_expsyms should be a list of space-separated symbols to be *always*
13565   # included in the symbol list
13566   include_expsyms_F77=
13567   # exclude_expsyms can be an extended regexp of symbols to exclude
13568   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13569   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13570   # as well as any symbol that contains `d'.
13571   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13572   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13573   # platforms (ab)use it in PIC code, but their linkers get confused if
13574   # the symbol is explicitly referenced.  Since portable code cannot
13575   # rely on this symbol name, it's probably fine to never include it in
13576   # preloaded symbol tables.
13577   extract_expsyms_cmds=
13578
13579   case $host_os in
13580   cygwin* | mingw* | pw32*)
13581     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13582     # When not using gcc, we currently assume that we are using
13583     # Microsoft Visual C++.
13584     if test "$GCC" != yes; then
13585       with_gnu_ld=no
13586     fi
13587     ;;
13588   openbsd*)
13589     with_gnu_ld=no
13590     ;;
13591   esac
13592
13593   ld_shlibs_F77=yes
13594   if test "$with_gnu_ld" = yes; then
13595     # If archive_cmds runs LD, not CC, wlarc should be empty
13596     wlarc='${wl}'
13597
13598     # See if GNU ld supports shared libraries.
13599     case $host_os in
13600     aix3* | aix4* | aix5*)
13601       # On AIX/PPC, the GNU linker is very broken
13602       if test "$host_cpu" != ia64; then
13603         ld_shlibs_F77=no
13604         cat <<EOF 1>&2
13605
13606 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13607 *** to be unable to reliably create shared libraries on AIX.
13608 *** Therefore, libtool is disabling shared libraries support.  If you
13609 *** really care for shared libraries, you may want to modify your PATH
13610 *** so that a non-GNU linker is found, and then restart.
13611
13612 EOF
13613       fi
13614       ;;
13615
13616     amigaos*)
13617       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)'
13618       hardcode_libdir_flag_spec_F77='-L$libdir'
13619       hardcode_minus_L_F77=yes
13620
13621       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13622       # that the semantics of dynamic libraries on AmigaOS, at least up
13623       # to version 4, is to share data among multiple programs linked
13624       # with the same dynamic library.  Since this doesn't match the
13625       # behavior of shared libraries on other platforms, we can't use
13626       # them.
13627       ld_shlibs_F77=no
13628       ;;
13629
13630     beos*)
13631       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13632         allow_undefined_flag_F77=unsupported
13633         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13634         # support --undefined.  This deserves some investigation.  FIXME
13635         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13636       else
13637         ld_shlibs_F77=no
13638       fi
13639       ;;
13640
13641     cygwin* | mingw* | pw32*)
13642       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13643       # as there is no search path for DLLs.
13644       hardcode_libdir_flag_spec_F77='-L$libdir'
13645       allow_undefined_flag_F77=unsupported
13646       always_export_symbols_F77=no
13647       enable_shared_with_static_runtimes_F77=yes
13648       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13649
13650       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13651         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13652         # If the export-symbols file already is a .def file (1st line
13653         # is EXPORTS), use it as is; otherwise, prepend...
13654         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13655           cp $export_symbols $output_objdir/$soname.def;
13656         else
13657           echo EXPORTS > $output_objdir/$soname.def;
13658           cat $export_symbols >> $output_objdir/$soname.def;
13659         fi~
13660         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13661       else
13662         ld_shlibs=no
13663       fi
13664       ;;
13665
13666     netbsd*)
13667       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13668         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13669         wlarc=
13670       else
13671         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13672         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13673       fi
13674       ;;
13675
13676     solaris* | sysv5*)
13677       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13678         ld_shlibs_F77=no
13679         cat <<EOF 1>&2
13680
13681 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13682 *** create shared libraries on Solaris systems.  Therefore, libtool
13683 *** is disabling shared libraries support.  We urge you to upgrade GNU
13684 *** binutils to release 2.9.1 or newer.  Another option is to modify
13685 *** your PATH or compiler configuration so that the native linker is
13686 *** used, and then restart.
13687
13688 EOF
13689       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13690         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13691         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13692       else
13693         ld_shlibs_F77=no
13694       fi
13695       ;;
13696
13697     sunos4*)
13698       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13699       wlarc=
13700       hardcode_direct_F77=yes
13701       hardcode_shlibpath_var_F77=no
13702       ;;
13703
13704   linux*)
13705     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13706         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13707         archive_cmds_F77="$tmp_archive_cmds"
13708       supports_anon_versioning=no
13709       case `$LD -v 2>/dev/null` in
13710         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13711         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13712         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13713         *\ 2.11.*) ;; # other 2.11 versions
13714         *) supports_anon_versioning=yes ;;
13715       esac
13716       if test $supports_anon_versioning = yes; then
13717         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13718 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13719 $echo "local: *; };" >> $output_objdir/$libname.ver~
13720         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13721       else
13722         archive_expsym_cmds_F77="$tmp_archive_cmds"
13723       fi
13724     else
13725       ld_shlibs_F77=no
13726     fi
13727     ;;
13728
13729     *)
13730       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13731         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13732         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13733       else
13734         ld_shlibs_F77=no
13735       fi
13736       ;;
13737     esac
13738
13739     if test "$ld_shlibs_F77" = yes; then
13740       runpath_var=LD_RUN_PATH
13741       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13742       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13743       # ancient GNU ld didn't support --whole-archive et. al.
13744       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13745         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13746       else
13747         whole_archive_flag_spec_F77=
13748       fi
13749     fi
13750   else
13751     # PORTME fill in a description of your system's linker (not GNU ld)
13752     case $host_os in
13753     aix3*)
13754       allow_undefined_flag_F77=unsupported
13755       always_export_symbols_F77=yes
13756       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'
13757       # Note: this linker hardcodes the directories in LIBPATH if there
13758       # are no directories specified by -L.
13759       hardcode_minus_L_F77=yes
13760       if test "$GCC" = yes && test -z "$link_static_flag"; then
13761         # Neither direct hardcoding nor static linking is supported with a
13762         # broken collect2.
13763         hardcode_direct_F77=unsupported
13764       fi
13765       ;;
13766
13767     aix4* | aix5*)
13768       if test "$host_cpu" = ia64; then
13769         # On IA64, the linker does run time linking by default, so we don't
13770         # have to do anything special.
13771         aix_use_runtimelinking=no
13772         exp_sym_flag='-Bexport'
13773         no_entry_flag=""
13774       else
13775         # If we're using GNU nm, then we don't want the "-C" option.
13776         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13777         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13778           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'
13779         else
13780           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'
13781         fi
13782         aix_use_runtimelinking=no
13783
13784         # Test if we are trying to use run time linking or normal
13785         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13786         # need to do runtime linking.
13787         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13788           for ld_flag in $LDFLAGS; do
13789           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13790             aix_use_runtimelinking=yes
13791             break
13792           fi
13793           done
13794         esac
13795
13796         exp_sym_flag='-bexport'
13797         no_entry_flag='-bnoentry'
13798       fi
13799
13800       # When large executables or shared objects are built, AIX ld can
13801       # have problems creating the table of contents.  If linking a library
13802       # or program results in "error TOC overflow" add -mminimal-toc to
13803       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13804       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13805
13806       archive_cmds_F77=''
13807       hardcode_direct_F77=yes
13808       hardcode_libdir_separator_F77=':'
13809       link_all_deplibs_F77=yes
13810
13811       if test "$GCC" = yes; then
13812         case $host_os in aix4.012|aix4.012.*)
13813         # We only want to do this on AIX 4.2 and lower, the check
13814         # below for broken collect2 doesn't work under 4.3+
13815           collect2name=`${CC} -print-prog-name=collect2`
13816           if test -f "$collect2name" && \
13817            strings "$collect2name" | grep resolve_lib_name >/dev/null
13818           then
13819           # We have reworked collect2
13820           hardcode_direct_F77=yes
13821           else
13822           # We have old collect2
13823           hardcode_direct_F77=unsupported
13824           # It fails to find uninstalled libraries when the uninstalled
13825           # path is not listed in the libpath.  Setting hardcode_minus_L
13826           # to unsupported forces relinking
13827           hardcode_minus_L_F77=yes
13828           hardcode_libdir_flag_spec_F77='-L$libdir'
13829           hardcode_libdir_separator_F77=
13830           fi
13831         esac
13832         shared_flag='-shared'
13833       else
13834         # not using gcc
13835         if test "$host_cpu" = ia64; then
13836         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13837         # chokes on -Wl,-G. The following line is correct:
13838           shared_flag='-G'
13839         else
13840         if test "$aix_use_runtimelinking" = yes; then
13841             shared_flag='${wl}-G'
13842           else
13843             shared_flag='${wl}-bM:SRE'
13844         fi
13845         fi
13846       fi
13847
13848       # It seems that -bexpall does not export symbols beginning with
13849       # underscore (_), so it is better to generate a list of symbols to export.
13850       always_export_symbols_F77=yes
13851       if test "$aix_use_runtimelinking" = yes; then
13852         # Warning - without using the other runtime loading flags (-brtl),
13853         # -berok will link without error, but may produce a broken library.
13854         allow_undefined_flag_F77='-berok'
13855        # Determine the default libpath from the value encoded in an empty executable.
13856        cat >conftest.$ac_ext <<_ACEOF
13857       program main
13858
13859       end
13860 _ACEOF
13861 rm -f conftest.$ac_objext conftest$ac_exeext
13862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13863   (eval $ac_link) 2>conftest.er1
13864   ac_status=$?
13865   grep -v '^ *+' conftest.er1 >conftest.err
13866   rm -f conftest.er1
13867   cat conftest.err >&5
13868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13869   (exit $ac_status); } &&
13870          { ac_try='test -z "$ac_f77_werror_flag"
13871                          || test ! -s conftest.err'
13872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13873   (eval $ac_try) 2>&5
13874   ac_status=$?
13875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13876   (exit $ac_status); }; } &&
13877          { ac_try='test -s conftest$ac_exeext'
13878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13879   (eval $ac_try) 2>&5
13880   ac_status=$?
13881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13882   (exit $ac_status); }; }; then
13883
13884 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13885 }'`
13886 # Check for a 64-bit object if we didn't find anything.
13887 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; }
13888 }'`; fi
13889 else
13890   echo "$as_me: failed program was:" >&5
13891 sed 's/^/| /' conftest.$ac_ext >&5
13892
13893 fi
13894 rm -f conftest.err conftest.$ac_objext \
13895       conftest$ac_exeext conftest.$ac_ext
13896 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13897
13898        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13899         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13900        else
13901         if test "$host_cpu" = ia64; then
13902           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13903           allow_undefined_flag_F77="-z nodefs"
13904           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
13905         else
13906          # Determine the default libpath from the value encoded in an empty executable.
13907          cat >conftest.$ac_ext <<_ACEOF
13908       program main
13909
13910       end
13911 _ACEOF
13912 rm -f conftest.$ac_objext conftest$ac_exeext
13913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13914   (eval $ac_link) 2>conftest.er1
13915   ac_status=$?
13916   grep -v '^ *+' conftest.er1 >conftest.err
13917   rm -f conftest.er1
13918   cat conftest.err >&5
13919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13920   (exit $ac_status); } &&
13921          { ac_try='test -z "$ac_f77_werror_flag"
13922                          || test ! -s conftest.err'
13923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13924   (eval $ac_try) 2>&5
13925   ac_status=$?
13926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927   (exit $ac_status); }; } &&
13928          { ac_try='test -s conftest$ac_exeext'
13929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13930   (eval $ac_try) 2>&5
13931   ac_status=$?
13932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13933   (exit $ac_status); }; }; then
13934
13935 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13936 }'`
13937 # Check for a 64-bit object if we didn't find anything.
13938 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; }
13939 }'`; fi
13940 else
13941   echo "$as_me: failed program was:" >&5
13942 sed 's/^/| /' conftest.$ac_ext >&5
13943
13944 fi
13945 rm -f conftest.err conftest.$ac_objext \
13946       conftest$ac_exeext conftest.$ac_ext
13947 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13948
13949          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13950           # Warning - without using the other run time loading flags,
13951           # -berok will link without error, but may produce a broken library.
13952           no_undefined_flag_F77=' ${wl}-bernotok'
13953           allow_undefined_flag_F77=' ${wl}-berok'
13954           # -bexpall does not export symbols beginning with underscore (_)
13955           always_export_symbols_F77=yes
13956           # Exported symbols can be pulled into shared objects from archives
13957           whole_archive_flag_spec_F77=' '
13958           archive_cmds_need_lc_F77=yes
13959           # This is similar to how AIX traditionally builds it's shared libraries.
13960           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13961         fi
13962       fi
13963       ;;
13964
13965     amigaos*)
13966       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)'
13967       hardcode_libdir_flag_spec_F77='-L$libdir'
13968       hardcode_minus_L_F77=yes
13969       # see comment about different semantics on the GNU ld section
13970       ld_shlibs_F77=no
13971       ;;
13972
13973     bsdi4*)
13974       export_dynamic_flag_spec_F77=-rdynamic
13975       ;;
13976
13977     cygwin* | mingw* | pw32*)
13978       # When not using gcc, we currently assume that we are using
13979       # Microsoft Visual C++.
13980       # hardcode_libdir_flag_spec is actually meaningless, as there is
13981       # no search path for DLLs.
13982       hardcode_libdir_flag_spec_F77=' '
13983       allow_undefined_flag_F77=unsupported
13984       # Tell ltmain to make .lib files, not .a files.
13985       libext=lib
13986       # Tell ltmain to make .dll files, not .so files.
13987       shrext_cmds=".dll"
13988       # FIXME: Setting linknames here is a bad hack.
13989       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13990       # The linker will automatically build a .lib file if we build a DLL.
13991       old_archive_From_new_cmds_F77='true'
13992       # FIXME: Should let the user specify the lib program.
13993       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13994       fix_srcfile_path='`cygpath -w "$srcfile"`'
13995       enable_shared_with_static_runtimes_F77=yes
13996       ;;
13997
13998     darwin* | rhapsody*)
13999     if test "$GXX" = yes ; then
14000       archive_cmds_need_lc_F77=no
14001       case "$host_os" in
14002       rhapsody* | darwin1.[012])
14003         allow_undefined_flag_F77='-undefined suppress'
14004         ;;
14005       *) # Darwin 1.3 on
14006       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14007         allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14008       else
14009         case ${MACOSX_DEPLOYMENT_TARGET} in
14010           10.[012])
14011             allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14012             ;;
14013           10.*)
14014             allow_undefined_flag_F77='-undefined dynamic_lookup'
14015             ;;
14016         esac
14017       fi
14018         ;;
14019       esac
14020         lt_int_apple_cc_single_mod=no
14021         output_verbose_link_cmd='echo'
14022         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14023           lt_int_apple_cc_single_mod=yes
14024         fi
14025         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14026           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14027         else
14028         archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14029       fi
14030       module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14031       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14032         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14033           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14034         else
14035           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14036         fi
14037           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}'
14038       hardcode_direct_F77=no
14039       hardcode_automatic_F77=yes
14040       hardcode_shlibpath_var_F77=unsupported
14041       whole_archive_flag_spec_F77='-all_load $convenience'
14042       link_all_deplibs_F77=yes
14043     else
14044       ld_shlibs_F77=no
14045     fi
14046       ;;
14047
14048     dgux*)
14049       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14050       hardcode_libdir_flag_spec_F77='-L$libdir'
14051       hardcode_shlibpath_var_F77=no
14052       ;;
14053
14054     freebsd1*)
14055       ld_shlibs_F77=no
14056       ;;
14057
14058     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14059     # support.  Future versions do this automatically, but an explicit c++rt0.o
14060     # does not break anything, and helps significantly (at the cost of a little
14061     # extra space).
14062     freebsd2.2*)
14063       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14064       hardcode_libdir_flag_spec_F77='-R$libdir'
14065       hardcode_direct_F77=yes
14066       hardcode_shlibpath_var_F77=no
14067       ;;
14068
14069     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14070     freebsd2*)
14071       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14072       hardcode_direct_F77=yes
14073       hardcode_minus_L_F77=yes
14074       hardcode_shlibpath_var_F77=no
14075       ;;
14076
14077     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14078     freebsd* | kfreebsd*-gnu)
14079       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14080       hardcode_libdir_flag_spec_F77='-R$libdir'
14081       hardcode_direct_F77=yes
14082       hardcode_shlibpath_var_F77=no
14083       ;;
14084
14085     hpux9*)
14086       if test "$GCC" = yes; then
14087         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'
14088       else
14089         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'
14090       fi
14091       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14092       hardcode_libdir_separator_F77=:
14093       hardcode_direct_F77=yes
14094
14095       # hardcode_minus_L: Not really in the search PATH,
14096       # but as the default location of the library.
14097       hardcode_minus_L_F77=yes
14098       export_dynamic_flag_spec_F77='${wl}-E'
14099       ;;
14100
14101     hpux10* | hpux11*)
14102       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14103         case "$host_cpu" in
14104         hppa*64*|ia64*)
14105           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14106           ;;
14107         *)
14108           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14109           ;;
14110         esac
14111       else
14112         case "$host_cpu" in
14113         hppa*64*|ia64*)
14114           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14115           ;;
14116         *)
14117           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14118           ;;
14119         esac
14120       fi
14121       if test "$with_gnu_ld" = no; then
14122         case "$host_cpu" in
14123         hppa*64*)
14124           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14125           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14126           hardcode_libdir_separator_F77=:
14127           hardcode_direct_F77=no
14128           hardcode_shlibpath_var_F77=no
14129           ;;
14130         ia64*)
14131           hardcode_libdir_flag_spec_F77='-L$libdir'
14132           hardcode_direct_F77=no
14133           hardcode_shlibpath_var_F77=no
14134
14135           # hardcode_minus_L: Not really in the search PATH,
14136           # but as the default location of the library.
14137           hardcode_minus_L_F77=yes
14138           ;;
14139         *)
14140           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14141           hardcode_libdir_separator_F77=:
14142           hardcode_direct_F77=yes
14143           export_dynamic_flag_spec_F77='${wl}-E'
14144
14145           # hardcode_minus_L: Not really in the search PATH,
14146           # but as the default location of the library.
14147           hardcode_minus_L_F77=yes
14148           ;;
14149         esac
14150       fi
14151       ;;
14152
14153     irix5* | irix6* | nonstopux*)
14154       if test "$GCC" = yes; then
14155         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'
14156       else
14157         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'
14158         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14159       fi
14160       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14161       hardcode_libdir_separator_F77=:
14162       link_all_deplibs_F77=yes
14163       ;;
14164
14165     netbsd*)
14166       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14167         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14168       else
14169         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14170       fi
14171       hardcode_libdir_flag_spec_F77='-R$libdir'
14172       hardcode_direct_F77=yes
14173       hardcode_shlibpath_var_F77=no
14174       ;;
14175
14176     newsos6)
14177       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14178       hardcode_direct_F77=yes
14179       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14180       hardcode_libdir_separator_F77=:
14181       hardcode_shlibpath_var_F77=no
14182       ;;
14183
14184     openbsd*)
14185       hardcode_direct_F77=yes
14186       hardcode_shlibpath_var_F77=no
14187       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14188         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14189         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14190         export_dynamic_flag_spec_F77='${wl}-E'
14191       else
14192        case $host_os in
14193          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14194            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14195            hardcode_libdir_flag_spec_F77='-R$libdir'
14196            ;;
14197          *)
14198            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14199            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14200            ;;
14201        esac
14202       fi
14203       ;;
14204
14205     os2*)
14206       hardcode_libdir_flag_spec_F77='-L$libdir'
14207       hardcode_minus_L_F77=yes
14208       allow_undefined_flag_F77=unsupported
14209       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'
14210       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14211       ;;
14212
14213     osf3*)
14214       if test "$GCC" = yes; then
14215         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14216         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'
14217       else
14218         allow_undefined_flag_F77=' -expect_unresolved \*'
14219         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'
14220       fi
14221       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14222       hardcode_libdir_separator_F77=:
14223       ;;
14224
14225     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14226       if test "$GCC" = yes; then
14227         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14228         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'
14229         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14230       else
14231         allow_undefined_flag_F77=' -expect_unresolved \*'
14232         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'
14233         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~
14234         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
14235
14236         # Both c and cxx compiler support -rpath directly
14237         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14238       fi
14239       hardcode_libdir_separator_F77=:
14240       ;;
14241
14242     sco3.2v5*)
14243       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14244       hardcode_shlibpath_var_F77=no
14245       export_dynamic_flag_spec_F77='${wl}-Bexport'
14246       runpath_var=LD_RUN_PATH
14247       hardcode_runpath_var=yes
14248       ;;
14249
14250     solaris*)
14251       no_undefined_flag_F77=' -z text'
14252       if test "$GCC" = yes; then
14253         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14254         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14255           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14256       else
14257         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14258         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14259         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14260       fi
14261       hardcode_libdir_flag_spec_F77='-R$libdir'
14262       hardcode_shlibpath_var_F77=no
14263       case $host_os in
14264       solaris2.[0-5] | solaris2.[0-5].*) ;;
14265       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14266         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14267       esac
14268       link_all_deplibs_F77=yes
14269       ;;
14270
14271     sunos4*)
14272       if test "x$host_vendor" = xsequent; then
14273         # Use $CC to link under sequent, because it throws in some extra .o
14274         # files that make .init and .fini sections work.
14275         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14276       else
14277         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14278       fi
14279       hardcode_libdir_flag_spec_F77='-L$libdir'
14280       hardcode_direct_F77=yes
14281       hardcode_minus_L_F77=yes
14282       hardcode_shlibpath_var_F77=no
14283       ;;
14284
14285     sysv4)
14286       case $host_vendor in
14287         sni)
14288           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14289           hardcode_direct_F77=yes # is this really true???
14290         ;;
14291         siemens)
14292           ## LD is ld it makes a PLAMLIB
14293           ## CC just makes a GrossModule.
14294           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14295           reload_cmds_F77='$CC -r -o $output$reload_objs'
14296           hardcode_direct_F77=no
14297         ;;
14298         motorola)
14299           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14300           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14301         ;;
14302       esac
14303       runpath_var='LD_RUN_PATH'
14304       hardcode_shlibpath_var_F77=no
14305       ;;
14306
14307     sysv4.3*)
14308       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14309       hardcode_shlibpath_var_F77=no
14310       export_dynamic_flag_spec_F77='-Bexport'
14311       ;;
14312
14313     sysv4*MP*)
14314       if test -d /usr/nec; then
14315         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14316         hardcode_shlibpath_var_F77=no
14317         runpath_var=LD_RUN_PATH
14318         hardcode_runpath_var=yes
14319         ld_shlibs_F77=yes
14320       fi
14321       ;;
14322
14323     sysv4.2uw2*)
14324       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14325       hardcode_direct_F77=yes
14326       hardcode_minus_L_F77=no
14327       hardcode_shlibpath_var_F77=no
14328       hardcode_runpath_var=yes
14329       runpath_var=LD_RUN_PATH
14330       ;;
14331
14332    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14333       no_undefined_flag_F77='${wl}-z ${wl}text'
14334       if test "$GCC" = yes; then
14335         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14336       else
14337         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14338       fi
14339       runpath_var='LD_RUN_PATH'
14340       hardcode_shlibpath_var_F77=no
14341       ;;
14342
14343     sysv5*)
14344       no_undefined_flag_F77=' -z text'
14345       # $CC -shared without GNU ld will not create a library from C++
14346       # object files and a static libstdc++, better avoid it by now
14347       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14348       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14349                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14350       hardcode_libdir_flag_spec_F77=
14351       hardcode_shlibpath_var_F77=no
14352       runpath_var='LD_RUN_PATH'
14353       ;;
14354
14355     uts4*)
14356       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14357       hardcode_libdir_flag_spec_F77='-L$libdir'
14358       hardcode_shlibpath_var_F77=no
14359       ;;
14360
14361     *)
14362       ld_shlibs_F77=no
14363       ;;
14364     esac
14365   fi
14366
14367 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14368 echo "${ECHO_T}$ld_shlibs_F77" >&6
14369 test "$ld_shlibs_F77" = no && can_build_shared=no
14370
14371 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14372 if test "$GCC" = yes; then
14373   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14374 fi
14375
14376 #
14377 # Do we need to explicitly link libc?
14378 #
14379 case "x$archive_cmds_need_lc_F77" in
14380 x|xyes)
14381   # Assume -lc should be added
14382   archive_cmds_need_lc_F77=yes
14383
14384   if test "$enable_shared" = yes && test "$GCC" = yes; then
14385     case $archive_cmds_F77 in
14386     *'~'*)
14387       # FIXME: we may have to deal with multi-command sequences.
14388       ;;
14389     '$CC '*)
14390       # Test whether the compiler implicitly links with -lc since on some
14391       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14392       # to ld, don't add -lc before -lgcc.
14393       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14394 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14395       $rm conftest*
14396       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14397
14398       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14399   (eval $ac_compile) 2>&5
14400   ac_status=$?
14401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402   (exit $ac_status); } 2>conftest.err; then
14403         soname=conftest
14404         lib=conftest
14405         libobjs=conftest.$ac_objext
14406         deplibs=
14407         wl=$lt_prog_compiler_wl_F77
14408         compiler_flags=-v
14409         linker_flags=-v
14410         verstring=
14411         output_objdir=.
14412         libname=conftest
14413         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14414         allow_undefined_flag_F77=
14415         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14416   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14417   ac_status=$?
14418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419   (exit $ac_status); }
14420         then
14421           archive_cmds_need_lc_F77=no
14422         else
14423           archive_cmds_need_lc_F77=yes
14424         fi
14425         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14426       else
14427         cat conftest.err 1>&5
14428       fi
14429       $rm conftest*
14430       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14431 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14432       ;;
14433     esac
14434   fi
14435   ;;
14436 esac
14437
14438 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14439 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14440 library_names_spec=
14441 libname_spec='lib$name'
14442 soname_spec=
14443 shrext_cmds=".so"
14444 postinstall_cmds=
14445 postuninstall_cmds=
14446 finish_cmds=
14447 finish_eval=
14448 shlibpath_var=
14449 shlibpath_overrides_runpath=unknown
14450 version_type=none
14451 dynamic_linker="$host_os ld.so"
14452 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14453 if test "$GCC" = yes; then
14454   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14455   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14456     # if the path contains ";" then we assume it to be the separator
14457     # otherwise default to the standard path separator (i.e. ":") - it is
14458     # assumed that no part of a normal pathname contains ";" but that should
14459     # okay in the real world where ";" in dirpaths is itself problematic.
14460     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14461   else
14462     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14463   fi
14464 else
14465   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14466 fi
14467 need_lib_prefix=unknown
14468 hardcode_into_libs=no
14469
14470 # when you set need_version to no, make sure it does not cause -set_version
14471 # flags to be left without arguments
14472 need_version=unknown
14473
14474 case $host_os in
14475 aix3*)
14476   version_type=linux
14477   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14478   shlibpath_var=LIBPATH
14479
14480   # AIX 3 has no versioning support, so we append a major version to the name.
14481   soname_spec='${libname}${release}${shared_ext}$major'
14482   ;;
14483
14484 aix4* | aix5*)
14485   version_type=linux
14486   need_lib_prefix=no
14487   need_version=no
14488   hardcode_into_libs=yes
14489   if test "$host_cpu" = ia64; then
14490     # AIX 5 supports IA64
14491     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14492     shlibpath_var=LD_LIBRARY_PATH
14493   else
14494     # With GCC up to 2.95.x, collect2 would create an import file
14495     # for dependence libraries.  The import file would start with
14496     # the line `#! .'.  This would cause the generated library to
14497     # depend on `.', always an invalid library.  This was fixed in
14498     # development snapshots of GCC prior to 3.0.
14499     case $host_os in
14500       aix4 | aix4.[01] | aix4.[01].*)
14501       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14502            echo ' yes '
14503            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14504         :
14505       else
14506         can_build_shared=no
14507       fi
14508       ;;
14509     esac
14510     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14511     # soname into executable. Probably we can add versioning support to
14512     # collect2, so additional links can be useful in future.
14513     if test "$aix_use_runtimelinking" = yes; then
14514       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14515       # instead of lib<name>.a to let people know that these are not
14516       # typical AIX shared libraries.
14517       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14518     else
14519       # We preserve .a as extension for shared libraries through AIX4.2
14520       # and later when we are not doing run time linking.
14521       library_names_spec='${libname}${release}.a $libname.a'
14522       soname_spec='${libname}${release}${shared_ext}$major'
14523     fi
14524     shlibpath_var=LIBPATH
14525   fi
14526   ;;
14527
14528 amigaos*)
14529   library_names_spec='$libname.ixlibrary $libname.a'
14530   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14531   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'
14532   ;;
14533
14534 beos*)
14535   library_names_spec='${libname}${shared_ext}'
14536   dynamic_linker="$host_os ld.so"
14537   shlibpath_var=LIBRARY_PATH
14538   ;;
14539
14540 bsdi4*)
14541   version_type=linux
14542   need_version=no
14543   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14544   soname_spec='${libname}${release}${shared_ext}$major'
14545   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14546   shlibpath_var=LD_LIBRARY_PATH
14547   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14548   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14549   # the default ld.so.conf also contains /usr/contrib/lib and
14550   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14551   # libtool to hard-code these into programs
14552   ;;
14553
14554 cygwin* | mingw* | pw32*)
14555   version_type=windows
14556   shrext_cmds=".dll"
14557   need_version=no
14558   need_lib_prefix=no
14559
14560   case $GCC,$host_os in
14561   yes,cygwin* | yes,mingw* | yes,pw32*)
14562     library_names_spec='$libname.dll.a'
14563     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14564     postinstall_cmds='base_file=`basename \${file}`~
14565       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14566       dldir=$destdir/`dirname \$dlpath`~
14567       test -d \$dldir || mkdir -p \$dldir~
14568       $install_prog $dir/$dlname \$dldir/$dlname'
14569     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14570       dlpath=$dir/\$dldll~
14571        $rm \$dlpath'
14572     shlibpath_overrides_runpath=yes
14573
14574     case $host_os in
14575     cygwin*)
14576       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14577       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14578       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14579       ;;
14580     mingw*)
14581       # MinGW DLLs use traditional 'lib' prefix
14582       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14583       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14584       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14585         # It is most probably a Windows format PATH printed by
14586         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14587         # path with ; separators, and with drive letters. We can handle the
14588         # drive letters (cygwin fileutils understands them), so leave them,
14589         # especially as we might pass files found there to a mingw objdump,
14590         # which wouldn't understand a cygwinified path. Ahh.
14591         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14592       else
14593         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14594       fi
14595       ;;
14596     pw32*)
14597       # pw32 DLLs use 'pw' prefix rather than 'lib'
14598       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14599       ;;
14600     esac
14601     ;;
14602
14603   *)
14604     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14605     ;;
14606   esac
14607   dynamic_linker='Win32 ld.exe'
14608   # FIXME: first we should search . and the directory the executable is in
14609   shlibpath_var=PATH
14610   ;;
14611
14612 darwin* | rhapsody*)
14613   dynamic_linker="$host_os dyld"
14614   version_type=darwin
14615   need_lib_prefix=no
14616   need_version=no
14617   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14618   soname_spec='${libname}${release}${major}$shared_ext'
14619   shlibpath_overrides_runpath=yes
14620   shlibpath_var=DYLD_LIBRARY_PATH
14621   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14622   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14623   if test "$GCC" = yes; then
14624     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"`
14625   else
14626     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14627   fi
14628   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14629   ;;
14630
14631 dgux*)
14632   version_type=linux
14633   need_lib_prefix=no
14634   need_version=no
14635   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14636   soname_spec='${libname}${release}${shared_ext}$major'
14637   shlibpath_var=LD_LIBRARY_PATH
14638   ;;
14639
14640 freebsd1*)
14641   dynamic_linker=no
14642   ;;
14643
14644 kfreebsd*-gnu)
14645   version_type=linux
14646   need_lib_prefix=no
14647   need_version=no
14648   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14649   soname_spec='${libname}${release}${shared_ext}$major'
14650   shlibpath_var=LD_LIBRARY_PATH
14651   shlibpath_overrides_runpath=no
14652   hardcode_into_libs=yes
14653   dynamic_linker='GNU ld.so'
14654   ;;
14655
14656 freebsd*)
14657   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14658   version_type=freebsd-$objformat
14659   case $version_type in
14660     freebsd-elf*)
14661       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14662       need_version=no
14663       need_lib_prefix=no
14664       ;;
14665     freebsd-*)
14666       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14667       need_version=yes
14668       ;;
14669   esac
14670   shlibpath_var=LD_LIBRARY_PATH
14671   case $host_os in
14672   freebsd2*)
14673     shlibpath_overrides_runpath=yes
14674     ;;
14675   freebsd3.01* | freebsdelf3.01*)
14676     shlibpath_overrides_runpath=yes
14677     hardcode_into_libs=yes
14678     ;;
14679   *) # from 3.2 on
14680     shlibpath_overrides_runpath=no
14681     hardcode_into_libs=yes
14682     ;;
14683   esac
14684   ;;
14685
14686 gnu*)
14687   version_type=linux
14688   need_lib_prefix=no
14689   need_version=no
14690   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14691   soname_spec='${libname}${release}${shared_ext}$major'
14692   shlibpath_var=LD_LIBRARY_PATH
14693   hardcode_into_libs=yes
14694   ;;
14695
14696 hpux9* | hpux10* | hpux11*)
14697   # Give a soname corresponding to the major version so that dld.sl refuses to
14698   # link against other versions.
14699   version_type=sunos
14700   need_lib_prefix=no
14701   need_version=no
14702   case "$host_cpu" in
14703   ia64*)
14704     shrext_cmds='.so'
14705     hardcode_into_libs=yes
14706     dynamic_linker="$host_os dld.so"
14707     shlibpath_var=LD_LIBRARY_PATH
14708     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14709     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14710     soname_spec='${libname}${release}${shared_ext}$major'
14711     if test "X$HPUX_IA64_MODE" = X32; then
14712       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14713     else
14714       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14715     fi
14716     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14717     ;;
14718    hppa*64*)
14719      shrext_cmds='.sl'
14720      hardcode_into_libs=yes
14721      dynamic_linker="$host_os dld.sl"
14722      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14723      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14724      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14725      soname_spec='${libname}${release}${shared_ext}$major'
14726      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14727      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14728      ;;
14729    *)
14730     shrext_cmds='.sl'
14731     dynamic_linker="$host_os dld.sl"
14732     shlibpath_var=SHLIB_PATH
14733     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14734     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14735     soname_spec='${libname}${release}${shared_ext}$major'
14736     ;;
14737   esac
14738   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14739   postinstall_cmds='chmod 555 $lib'
14740   ;;
14741
14742 irix5* | irix6* | nonstopux*)
14743   case $host_os in
14744     nonstopux*) version_type=nonstopux ;;
14745     *)
14746         if test "$lt_cv_prog_gnu_ld" = yes; then
14747                 version_type=linux
14748         else
14749                 version_type=irix
14750         fi ;;
14751   esac
14752   need_lib_prefix=no
14753   need_version=no
14754   soname_spec='${libname}${release}${shared_ext}$major'
14755   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14756   case $host_os in
14757   irix5* | nonstopux*)
14758     libsuff= shlibsuff=
14759     ;;
14760   *)
14761     case $LD in # libtool.m4 will add one of these switches to LD
14762     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14763       libsuff= shlibsuff= libmagic=32-bit;;
14764     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14765       libsuff=32 shlibsuff=N32 libmagic=N32;;
14766     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14767       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14768     *) libsuff= shlibsuff= libmagic=never-match;;
14769     esac
14770     ;;
14771   esac
14772   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14773   shlibpath_overrides_runpath=no
14774   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14775   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14776   hardcode_into_libs=yes
14777   ;;
14778
14779 # No shared lib support for Linux oldld, aout, or coff.
14780 linux*oldld* | linux*aout* | linux*coff*)
14781   dynamic_linker=no
14782   ;;
14783
14784 # This must be Linux ELF.
14785 linux*)
14786   version_type=linux
14787   need_lib_prefix=no
14788   need_version=no
14789   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14790   soname_spec='${libname}${release}${shared_ext}$major'
14791   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14792   shlibpath_var=LD_LIBRARY_PATH
14793   shlibpath_overrides_runpath=no
14794   # This implies no fast_install, which is unacceptable.
14795   # Some rework will be needed to allow for fast_install
14796   # before this can be enabled.
14797   hardcode_into_libs=yes
14798
14799   # find out which ABI we are using
14800   libsuff=
14801   case "$host_cpu" in
14802   x86_64*|s390x*|powerpc64*)
14803     echo '#line 14803 "configure"' > conftest.$ac_ext
14804     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14805   (eval $ac_compile) 2>&5
14806   ac_status=$?
14807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14808   (exit $ac_status); }; then
14809       case `/usr/bin/file conftest.$ac_objext` in
14810       *64-bit*)
14811         libsuff=64
14812         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
14813         ;;
14814       esac
14815     fi
14816     rm -rf conftest*
14817     ;;
14818   esac
14819
14820   # Append ld.so.conf contents to the search path
14821   if test -f /etc/ld.so.conf; then
14822     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14823     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
14824   fi
14825
14826   # We used to test for /lib/ld.so.1 and disable shared libraries on
14827   # powerpc, because MkLinux only supported shared libraries with the
14828   # GNU dynamic linker.  Since this was broken with cross compilers,
14829   # most powerpc-linux boxes support dynamic linking these days and
14830   # people can always --disable-shared, the test was removed, and we
14831   # assume the GNU/Linux dynamic linker is in use.
14832   dynamic_linker='GNU/Linux ld.so'
14833   ;;
14834
14835 knetbsd*-gnu)
14836   version_type=linux
14837   need_lib_prefix=no
14838   need_version=no
14839   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14840   soname_spec='${libname}${release}${shared_ext}$major'
14841   shlibpath_var=LD_LIBRARY_PATH
14842   shlibpath_overrides_runpath=no
14843   hardcode_into_libs=yes
14844   dynamic_linker='GNU ld.so'
14845   ;;
14846
14847 netbsd*)
14848   version_type=sunos
14849   need_lib_prefix=no
14850   need_version=no
14851   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14852     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14853     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14854     dynamic_linker='NetBSD (a.out) ld.so'
14855   else
14856     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14857     soname_spec='${libname}${release}${shared_ext}$major'
14858     dynamic_linker='NetBSD ld.elf_so'
14859   fi
14860   shlibpath_var=LD_LIBRARY_PATH
14861   shlibpath_overrides_runpath=yes
14862   hardcode_into_libs=yes
14863   ;;
14864
14865 newsos6)
14866   version_type=linux
14867   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14868   shlibpath_var=LD_LIBRARY_PATH
14869   shlibpath_overrides_runpath=yes
14870   ;;
14871
14872 nto-qnx*)
14873   version_type=linux
14874   need_lib_prefix=no
14875   need_version=no
14876   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14877   soname_spec='${libname}${release}${shared_ext}$major'
14878   shlibpath_var=LD_LIBRARY_PATH
14879   shlibpath_overrides_runpath=yes
14880   ;;
14881
14882 openbsd*)
14883   version_type=sunos
14884   need_lib_prefix=no
14885   need_version=yes
14886   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14887   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14888   shlibpath_var=LD_LIBRARY_PATH
14889   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14890     case $host_os in
14891       openbsd2.[89] | openbsd2.[89].*)
14892         shlibpath_overrides_runpath=no
14893         ;;
14894       *)
14895         shlibpath_overrides_runpath=yes
14896         ;;
14897       esac
14898   else
14899     shlibpath_overrides_runpath=yes
14900   fi
14901   ;;
14902
14903 os2*)
14904   libname_spec='$name'
14905   shrext_cmds=".dll"
14906   need_lib_prefix=no
14907   library_names_spec='$libname${shared_ext} $libname.a'
14908   dynamic_linker='OS/2 ld.exe'
14909   shlibpath_var=LIBPATH
14910   ;;
14911
14912 osf3* | osf4* | osf5*)
14913   version_type=osf
14914   need_lib_prefix=no
14915   need_version=no
14916   soname_spec='${libname}${release}${shared_ext}$major'
14917   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14918   shlibpath_var=LD_LIBRARY_PATH
14919   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14920   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14921   ;;
14922
14923 sco3.2v5*)
14924   version_type=osf
14925   soname_spec='${libname}${release}${shared_ext}$major'
14926   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14927   shlibpath_var=LD_LIBRARY_PATH
14928   ;;
14929
14930 solaris*)
14931   version_type=linux
14932   need_lib_prefix=no
14933   need_version=no
14934   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14935   soname_spec='${libname}${release}${shared_ext}$major'
14936   shlibpath_var=LD_LIBRARY_PATH
14937   shlibpath_overrides_runpath=yes
14938   hardcode_into_libs=yes
14939   # ldd complains unless libraries are executable
14940   postinstall_cmds='chmod +x $lib'
14941   ;;
14942
14943 sunos4*)
14944   version_type=sunos
14945   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14946   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14947   shlibpath_var=LD_LIBRARY_PATH
14948   shlibpath_overrides_runpath=yes
14949   if test "$with_gnu_ld" = yes; then
14950     need_lib_prefix=no
14951   fi
14952   need_version=yes
14953   ;;
14954
14955 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14956   version_type=linux
14957   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14958   soname_spec='${libname}${release}${shared_ext}$major'
14959   shlibpath_var=LD_LIBRARY_PATH
14960   case $host_vendor in
14961     sni)
14962       shlibpath_overrides_runpath=no
14963       need_lib_prefix=no
14964       export_dynamic_flag_spec='${wl}-Blargedynsym'
14965       runpath_var=LD_RUN_PATH
14966       ;;
14967     siemens)
14968       need_lib_prefix=no
14969       ;;
14970     motorola)
14971       need_lib_prefix=no
14972       need_version=no
14973       shlibpath_overrides_runpath=no
14974       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14975       ;;
14976   esac
14977   ;;
14978
14979 sysv4*MP*)
14980   if test -d /usr/nec ;then
14981     version_type=linux
14982     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14983     soname_spec='$libname${shared_ext}.$major'
14984     shlibpath_var=LD_LIBRARY_PATH
14985   fi
14986   ;;
14987
14988 uts4*)
14989   version_type=linux
14990   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14991   soname_spec='${libname}${release}${shared_ext}$major'
14992   shlibpath_var=LD_LIBRARY_PATH
14993   ;;
14994
14995 *)
14996   dynamic_linker=no
14997   ;;
14998 esac
14999 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15000 echo "${ECHO_T}$dynamic_linker" >&6
15001 test "$dynamic_linker" = no && can_build_shared=no
15002
15003 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15004 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15005 hardcode_action_F77=
15006 if test -n "$hardcode_libdir_flag_spec_F77" || \
15007    test -n "$runpath_var F77" || \
15008    test "X$hardcode_automatic_F77"="Xyes" ; then
15009
15010   # We can hardcode non-existant directories.
15011   if test "$hardcode_direct_F77" != no &&
15012      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15013      # have to relink, otherwise we might link with an installed library
15014      # when we should be linking with a yet-to-be-installed one
15015      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15016      test "$hardcode_minus_L_F77" != no; then
15017     # Linking always hardcodes the temporary library directory.
15018     hardcode_action_F77=relink
15019   else
15020     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15021     hardcode_action_F77=immediate
15022   fi
15023 else
15024   # We cannot hardcode anything, or else we can only hardcode existing
15025   # directories.
15026   hardcode_action_F77=unsupported
15027 fi
15028 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15029 echo "${ECHO_T}$hardcode_action_F77" >&6
15030
15031 if test "$hardcode_action_F77" = relink; then
15032   # Fast installation is not supported
15033   enable_fast_install=no
15034 elif test "$shlibpath_overrides_runpath" = yes ||
15035      test "$enable_shared" = no; then
15036   # Fast installation is not necessary
15037   enable_fast_install=needless
15038 fi
15039
15040 striplib=
15041 old_striplib=
15042 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15043 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15044 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15045   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15046   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15047   echo "$as_me:$LINENO: result: yes" >&5
15048 echo "${ECHO_T}yes" >&6
15049 else
15050 # FIXME - insert some real tests, host_os isn't really good enough
15051   case $host_os in
15052    darwin*)
15053        if test -n "$STRIP" ; then
15054          striplib="$STRIP -x"
15055          echo "$as_me:$LINENO: result: yes" >&5
15056 echo "${ECHO_T}yes" >&6
15057        else
15058   echo "$as_me:$LINENO: result: no" >&5
15059 echo "${ECHO_T}no" >&6
15060 fi
15061        ;;
15062    *)
15063   echo "$as_me:$LINENO: result: no" >&5
15064 echo "${ECHO_T}no" >&6
15065     ;;
15066   esac
15067 fi
15068
15069
15070
15071 # The else clause should only fire when bootstrapping the
15072 # libtool distribution, otherwise you forgot to ship ltmain.sh
15073 # with your package, and you will get complaints that there are
15074 # no rules to generate ltmain.sh.
15075 if test -f "$ltmain"; then
15076   # See if we are running on zsh, and set the options which allow our commands through
15077   # without removal of \ escapes.
15078   if test -n "${ZSH_VERSION+set}" ; then
15079     setopt NO_GLOB_SUBST
15080   fi
15081   # Now quote all the things that may contain metacharacters while being
15082   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15083   # variables and quote the copies for generation of the libtool script.
15084   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15085     SED SHELL STRIP \
15086     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15087     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15088     deplibs_check_method reload_flag reload_cmds need_locks \
15089     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15090     lt_cv_sys_global_symbol_to_c_name_address \
15091     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15092     old_postinstall_cmds old_postuninstall_cmds \
15093     compiler_F77 \
15094     CC_F77 \
15095     LD_F77 \
15096     lt_prog_compiler_wl_F77 \
15097     lt_prog_compiler_pic_F77 \
15098     lt_prog_compiler_static_F77 \
15099     lt_prog_compiler_no_builtin_flag_F77 \
15100     export_dynamic_flag_spec_F77 \
15101     thread_safe_flag_spec_F77 \
15102     whole_archive_flag_spec_F77 \
15103     enable_shared_with_static_runtimes_F77 \
15104     old_archive_cmds_F77 \
15105     old_archive_from_new_cmds_F77 \
15106     predep_objects_F77 \
15107     postdep_objects_F77 \
15108     predeps_F77 \
15109     postdeps_F77 \
15110     compiler_lib_search_path_F77 \
15111     archive_cmds_F77 \
15112     archive_expsym_cmds_F77 \
15113     postinstall_cmds_F77 \
15114     postuninstall_cmds_F77 \
15115     old_archive_from_expsyms_cmds_F77 \
15116     allow_undefined_flag_F77 \
15117     no_undefined_flag_F77 \
15118     export_symbols_cmds_F77 \
15119     hardcode_libdir_flag_spec_F77 \
15120     hardcode_libdir_flag_spec_ld_F77 \
15121     hardcode_libdir_separator_F77 \
15122     hardcode_automatic_F77 \
15123     module_cmds_F77 \
15124     module_expsym_cmds_F77 \
15125     lt_cv_prog_compiler_c_o_F77 \
15126     exclude_expsyms_F77 \
15127     include_expsyms_F77; do
15128
15129     case $var in
15130     old_archive_cmds_F77 | \
15131     old_archive_from_new_cmds_F77 | \
15132     archive_cmds_F77 | \
15133     archive_expsym_cmds_F77 | \
15134     module_cmds_F77 | \
15135     module_expsym_cmds_F77 | \
15136     old_archive_from_expsyms_cmds_F77 | \
15137     export_symbols_cmds_F77 | \
15138     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15139     postinstall_cmds | postuninstall_cmds | \
15140     old_postinstall_cmds | old_postuninstall_cmds | \
15141     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15142       # Double-quote double-evaled strings.
15143       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15144       ;;
15145     *)
15146       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15147       ;;
15148     esac
15149   done
15150
15151   case $lt_echo in
15152   *'\$0 --fallback-echo"')
15153     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15154     ;;
15155   esac
15156
15157 cfgfile="$ofile"
15158
15159   cat <<__EOF__ >> "$cfgfile"
15160 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15161
15162 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15163
15164 # Shell to use when invoking shell scripts.
15165 SHELL=$lt_SHELL
15166
15167 # Whether or not to build shared libraries.
15168 build_libtool_libs=$enable_shared
15169
15170 # Whether or not to build static libraries.
15171 build_old_libs=$enable_static
15172
15173 # Whether or not to add -lc for building shared libraries.
15174 build_libtool_need_lc=$archive_cmds_need_lc_F77
15175
15176 # Whether or not to disallow shared libs when runtime libs are static
15177 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15178
15179 # Whether or not to optimize for fast installation.
15180 fast_install=$enable_fast_install
15181
15182 # The host system.
15183 host_alias=$host_alias
15184 host=$host
15185
15186 # An echo program that does not interpret backslashes.
15187 echo=$lt_echo
15188
15189 # The archiver.
15190 AR=$lt_AR
15191 AR_FLAGS=$lt_AR_FLAGS
15192
15193 # A C compiler.
15194 LTCC=$lt_LTCC
15195
15196 # A language-specific compiler.
15197 CC=$lt_compiler_F77
15198
15199 # Is the compiler the GNU C compiler?
15200 with_gcc=$GCC_F77
15201
15202 # An ERE matcher.
15203 EGREP=$lt_EGREP
15204
15205 # The linker used to build libraries.
15206 LD=$lt_LD_F77
15207
15208 # Whether we need hard or soft links.
15209 LN_S=$lt_LN_S
15210
15211 # A BSD-compatible nm program.
15212 NM=$lt_NM
15213
15214 # A symbol stripping program
15215 STRIP=$lt_STRIP
15216
15217 # Used to examine libraries when file_magic_cmd begins "file"
15218 MAGIC_CMD=$MAGIC_CMD
15219
15220 # Used on cygwin: DLL creation program.
15221 DLLTOOL="$DLLTOOL"
15222
15223 # Used on cygwin: object dumper.
15224 OBJDUMP="$OBJDUMP"
15225
15226 # Used on cygwin: assembler.
15227 AS="$AS"
15228
15229 # The name of the directory that contains temporary libtool files.
15230 objdir=$objdir
15231
15232 # How to create reloadable object files.
15233 reload_flag=$lt_reload_flag
15234 reload_cmds=$lt_reload_cmds
15235
15236 # How to pass a linker flag through the compiler.
15237 wl=$lt_lt_prog_compiler_wl_F77
15238
15239 # Object file suffix (normally "o").
15240 objext="$ac_objext"
15241
15242 # Old archive suffix (normally "a").
15243 libext="$libext"
15244
15245 # Shared library suffix (normally ".so").
15246 shrext_cmds='$shrext_cmds'
15247
15248 # Executable file suffix (normally "").
15249 exeext="$exeext"
15250
15251 # Additional compiler flags for building library objects.
15252 pic_flag=$lt_lt_prog_compiler_pic_F77
15253 pic_mode=$pic_mode
15254
15255 # What is the maximum length of a command?
15256 max_cmd_len=$lt_cv_sys_max_cmd_len
15257
15258 # Does compiler simultaneously support -c and -o options?
15259 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15260
15261 # Must we lock files when doing compilation ?
15262 need_locks=$lt_need_locks
15263
15264 # Do we need the lib prefix for modules?
15265 need_lib_prefix=$need_lib_prefix
15266
15267 # Do we need a version for libraries?
15268 need_version=$need_version
15269
15270 # Whether dlopen is supported.
15271 dlopen_support=$enable_dlopen
15272
15273 # Whether dlopen of programs is supported.
15274 dlopen_self=$enable_dlopen_self
15275
15276 # Whether dlopen of statically linked programs is supported.
15277 dlopen_self_static=$enable_dlopen_self_static
15278
15279 # Compiler flag to prevent dynamic linking.
15280 link_static_flag=$lt_lt_prog_compiler_static_F77
15281
15282 # Compiler flag to turn off builtin functions.
15283 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15284
15285 # Compiler flag to allow reflexive dlopens.
15286 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15287
15288 # Compiler flag to generate shared objects directly from archives.
15289 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15290
15291 # Compiler flag to generate thread-safe objects.
15292 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15293
15294 # Library versioning type.
15295 version_type=$version_type
15296
15297 # Format of library name prefix.
15298 libname_spec=$lt_libname_spec
15299
15300 # List of archive names.  First name is the real one, the rest are links.
15301 # The last name is the one that the linker finds with -lNAME.
15302 library_names_spec=$lt_library_names_spec
15303
15304 # The coded name of the library, if different from the real name.
15305 soname_spec=$lt_soname_spec
15306
15307 # Commands used to build and install an old-style archive.
15308 RANLIB=$lt_RANLIB
15309 old_archive_cmds=$lt_old_archive_cmds_F77
15310 old_postinstall_cmds=$lt_old_postinstall_cmds
15311 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15312
15313 # Create an old-style archive from a shared archive.
15314 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15315
15316 # Create a temporary old-style archive to link instead of a shared archive.
15317 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15318
15319 # Commands used to build and install a shared archive.
15320 archive_cmds=$lt_archive_cmds_F77
15321 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15322 postinstall_cmds=$lt_postinstall_cmds
15323 postuninstall_cmds=$lt_postuninstall_cmds
15324
15325 # Commands used to build a loadable module (assumed same as above if empty)
15326 module_cmds=$lt_module_cmds_F77
15327 module_expsym_cmds=$lt_module_expsym_cmds_F77
15328
15329 # Commands to strip libraries.
15330 old_striplib=$lt_old_striplib
15331 striplib=$lt_striplib
15332
15333 # Dependencies to place before the objects being linked to create a
15334 # shared library.
15335 predep_objects=$lt_predep_objects_F77
15336
15337 # Dependencies to place after the objects being linked to create a
15338 # shared library.
15339 postdep_objects=$lt_postdep_objects_F77
15340
15341 # Dependencies to place before the objects being linked to create a
15342 # shared library.
15343 predeps=$lt_predeps_F77
15344
15345 # Dependencies to place after the objects being linked to create a
15346 # shared library.
15347 postdeps=$lt_postdeps_F77
15348
15349 # The library search path used internally by the compiler when linking
15350 # a shared library.
15351 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15352
15353 # Method to check whether dependent libraries are shared objects.
15354 deplibs_check_method=$lt_deplibs_check_method
15355
15356 # Command to use when deplibs_check_method == file_magic.
15357 file_magic_cmd=$lt_file_magic_cmd
15358
15359 # Flag that allows shared libraries with undefined symbols to be built.
15360 allow_undefined_flag=$lt_allow_undefined_flag_F77
15361
15362 # Flag that forces no undefined symbols.
15363 no_undefined_flag=$lt_no_undefined_flag_F77
15364
15365 # Commands used to finish a libtool library installation in a directory.
15366 finish_cmds=$lt_finish_cmds
15367
15368 # Same as above, but a single script fragment to be evaled but not shown.
15369 finish_eval=$lt_finish_eval
15370
15371 # Take the output of nm and produce a listing of raw symbols and C names.
15372 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15373
15374 # Transform the output of nm in a proper C declaration
15375 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15376
15377 # Transform the output of nm in a C name address pair
15378 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15379
15380 # This is the shared library runtime path variable.
15381 runpath_var=$runpath_var
15382
15383 # This is the shared library path variable.
15384 shlibpath_var=$shlibpath_var
15385
15386 # Is shlibpath searched before the hard-coded library search path?
15387 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15388
15389 # How to hardcode a shared library path into an executable.
15390 hardcode_action=$hardcode_action_F77
15391
15392 # Whether we should hardcode library paths into libraries.
15393 hardcode_into_libs=$hardcode_into_libs
15394
15395 # Flag to hardcode \$libdir into a binary during linking.
15396 # This must work even if \$libdir does not exist.
15397 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15398
15399 # If ld is used when linking, flag to hardcode \$libdir into
15400 # a binary during linking. This must work even if \$libdir does
15401 # not exist.
15402 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15403
15404 # Whether we need a single -rpath flag with a separated argument.
15405 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15406
15407 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15408 # resulting binary.
15409 hardcode_direct=$hardcode_direct_F77
15410
15411 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15412 # resulting binary.
15413 hardcode_minus_L=$hardcode_minus_L_F77
15414
15415 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15416 # the resulting binary.
15417 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15418
15419 # Set to yes if building a shared library automatically hardcodes DIR into the library
15420 # and all subsequent libraries and executables linked against it.
15421 hardcode_automatic=$hardcode_automatic_F77
15422
15423 # Variables whose values should be saved in libtool wrapper scripts and
15424 # restored at relink time.
15425 variables_saved_for_relink="$variables_saved_for_relink"
15426
15427 # Whether libtool must link a program against all its dependency libraries.
15428 link_all_deplibs=$link_all_deplibs_F77
15429
15430 # Compile-time system search path for libraries
15431 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15432
15433 # Run-time system search path for libraries
15434 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15435
15436 # Fix the shell variable \$srcfile for the compiler.
15437 fix_srcfile_path="$fix_srcfile_path_F77"
15438
15439 # Set to yes if exported symbols are required.
15440 always_export_symbols=$always_export_symbols_F77
15441
15442 # The commands to list exported symbols.
15443 export_symbols_cmds=$lt_export_symbols_cmds_F77
15444
15445 # The commands to extract the exported symbol list from a shared archive.
15446 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15447
15448 # Symbols that should not be listed in the preloaded symbols.
15449 exclude_expsyms=$lt_exclude_expsyms_F77
15450
15451 # Symbols that must always be exported.
15452 include_expsyms=$lt_include_expsyms_F77
15453
15454 # ### END LIBTOOL TAG CONFIG: $tagname
15455
15456 __EOF__
15457
15458
15459 else
15460   # If there is no Makefile yet, we rely on a make rule to execute
15461   # `config.status --recheck' to rerun these tests and create the
15462   # libtool script then.
15463   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15464   if test -f "$ltmain_in"; then
15465     test -f Makefile && make "$ltmain"
15466   fi
15467 fi
15468
15469
15470 ac_ext=c
15471 ac_cpp='$CPP $CPPFLAGS'
15472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15475
15476 CC="$lt_save_CC"
15477
15478         else
15479           tagname=""
15480         fi
15481         ;;
15482
15483       GCJ)
15484         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15485
15486
15487
15488 # Source file extension for Java test sources.
15489 ac_ext=java
15490
15491 # Object file extension for compiled Java test sources.
15492 objext=o
15493 objext_GCJ=$objext
15494
15495 # Code to be used in simple compile tests
15496 lt_simple_compile_test_code="class foo {}\n"
15497
15498 # Code to be used in simple link tests
15499 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15500
15501 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15502
15503 # If no C compiler was specified, use CC.
15504 LTCC=${LTCC-"$CC"}
15505
15506 # Allow CC to be a program name with arguments.
15507 compiler=$CC
15508
15509
15510 # Allow CC to be a program name with arguments.
15511 lt_save_CC="$CC"
15512 CC=${GCJ-"gcj"}
15513 compiler=$CC
15514 compiler_GCJ=$CC
15515
15516 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15517 archive_cmds_need_lc_GCJ=no
15518
15519
15520 lt_prog_compiler_no_builtin_flag_GCJ=
15521
15522 if test "$GCC" = yes; then
15523   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15524
15525
15526 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15527 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15528 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15529   echo $ECHO_N "(cached) $ECHO_C" >&6
15530 else
15531   lt_cv_prog_compiler_rtti_exceptions=no
15532   ac_outfile=conftest.$ac_objext
15533    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15534    lt_compiler_flag="-fno-rtti -fno-exceptions"
15535    # Insert the option either (1) after the last *FLAGS variable, or
15536    # (2) before a word containing "conftest.", or (3) at the end.
15537    # Note that $ac_compile itself does not contain backslashes and begins
15538    # with a dollar sign (not a hyphen), so the echo should work correctly.
15539    # The option is referenced via a variable to avoid confusing sed.
15540    lt_compile=`echo "$ac_compile" | $SED \
15541    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15542    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15543    -e 's:$: $lt_compiler_flag:'`
15544    (eval echo "\"\$as_me:15544: $lt_compile\"" >&5)
15545    (eval "$lt_compile" 2>conftest.err)
15546    ac_status=$?
15547    cat conftest.err >&5
15548    echo "$as_me:15548: \$? = $ac_status" >&5
15549    if (exit $ac_status) && test -s "$ac_outfile"; then
15550      # The compiler can only warn and ignore the option if not recognized
15551      # So say no if there are warnings
15552      if test ! -s conftest.err; then
15553        lt_cv_prog_compiler_rtti_exceptions=yes
15554      fi
15555    fi
15556    $rm conftest*
15557
15558 fi
15559 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15560 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15561
15562 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15563     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15564 else
15565     :
15566 fi
15567
15568 fi
15569
15570 lt_prog_compiler_wl_GCJ=
15571 lt_prog_compiler_pic_GCJ=
15572 lt_prog_compiler_static_GCJ=
15573
15574 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15575 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15576
15577   if test "$GCC" = yes; then
15578     lt_prog_compiler_wl_GCJ='-Wl,'
15579     lt_prog_compiler_static_GCJ='-static'
15580
15581     case $host_os in
15582       aix*)
15583       # All AIX code is PIC.
15584       if test "$host_cpu" = ia64; then
15585         # AIX 5 now supports IA64 processor
15586         lt_prog_compiler_static_GCJ='-Bstatic'
15587       fi
15588       ;;
15589
15590     amigaos*)
15591       # FIXME: we need at least 68020 code to build shared libraries, but
15592       # adding the `-m68020' flag to GCC prevents building anything better,
15593       # like `-m68040'.
15594       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15595       ;;
15596
15597     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15598       # PIC is the default for these OSes.
15599       ;;
15600
15601     mingw* | pw32* | os2*)
15602       # This hack is so that the source file can tell whether it is being
15603       # built for inclusion in a dll (and should export symbols for example).
15604       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15605       ;;
15606
15607     darwin* | rhapsody*)
15608       # PIC is the default on this platform
15609       # Common symbols not allowed in MH_DYLIB files
15610       lt_prog_compiler_pic_GCJ='-fno-common'
15611       ;;
15612
15613     msdosdjgpp*)
15614       # Just because we use GCC doesn't mean we suddenly get shared libraries
15615       # on systems that don't support them.
15616       lt_prog_compiler_can_build_shared_GCJ=no
15617       enable_shared=no
15618       ;;
15619
15620     sysv4*MP*)
15621       if test -d /usr/nec; then
15622         lt_prog_compiler_pic_GCJ=-Kconform_pic
15623       fi
15624       ;;
15625
15626     hpux*)
15627       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15628       # not for PA HP-UX.
15629       case "$host_cpu" in
15630       hppa*64*|ia64*)
15631         # +Z the default
15632         ;;
15633       *)
15634         lt_prog_compiler_pic_GCJ='-fPIC'
15635         ;;
15636       esac
15637       ;;
15638
15639     *)
15640       lt_prog_compiler_pic_GCJ='-fPIC'
15641       ;;
15642     esac
15643   else
15644     # PORTME Check for flag to pass linker flags through the system compiler.
15645     case $host_os in
15646     aix*)
15647       lt_prog_compiler_wl_GCJ='-Wl,'
15648       if test "$host_cpu" = ia64; then
15649         # AIX 5 now supports IA64 processor
15650         lt_prog_compiler_static_GCJ='-Bstatic'
15651       else
15652         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15653       fi
15654       ;;
15655
15656     mingw* | pw32* | os2*)
15657       # This hack is so that the source file can tell whether it is being
15658       # built for inclusion in a dll (and should export symbols for example).
15659       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15660       ;;
15661
15662     hpux9* | hpux10* | hpux11*)
15663       lt_prog_compiler_wl_GCJ='-Wl,'
15664       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15665       # not for PA HP-UX.
15666       case "$host_cpu" in
15667       hppa*64*|ia64*)
15668         # +Z the default
15669         ;;
15670       *)
15671         lt_prog_compiler_pic_GCJ='+Z'
15672         ;;
15673       esac
15674       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15675       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15676       ;;
15677
15678     irix5* | irix6* | nonstopux*)
15679       lt_prog_compiler_wl_GCJ='-Wl,'
15680       # PIC (with -KPIC) is the default.
15681       lt_prog_compiler_static_GCJ='-non_shared'
15682       ;;
15683
15684     newsos6)
15685       lt_prog_compiler_pic_GCJ='-KPIC'
15686       lt_prog_compiler_static_GCJ='-Bstatic'
15687       ;;
15688
15689     linux*)
15690       case $CC in
15691       icc* | ecc*)
15692         lt_prog_compiler_wl_GCJ='-Wl,'
15693         lt_prog_compiler_pic_GCJ='-KPIC'
15694         lt_prog_compiler_static_GCJ='-static'
15695         ;;
15696       ccc*)
15697         lt_prog_compiler_wl_GCJ='-Wl,'
15698         # All Alpha code is PIC.
15699         lt_prog_compiler_static_GCJ='-non_shared'
15700         ;;
15701       esac
15702       ;;
15703
15704     osf3* | osf4* | osf5*)
15705       lt_prog_compiler_wl_GCJ='-Wl,'
15706       # All OSF/1 code is PIC.
15707       lt_prog_compiler_static_GCJ='-non_shared'
15708       ;;
15709
15710     sco3.2v5*)
15711       lt_prog_compiler_pic_GCJ='-Kpic'
15712       lt_prog_compiler_static_GCJ='-dn'
15713       ;;
15714
15715     solaris*)
15716       lt_prog_compiler_wl_GCJ='-Wl,'
15717       lt_prog_compiler_pic_GCJ='-KPIC'
15718       lt_prog_compiler_static_GCJ='-Bstatic'
15719       ;;
15720
15721     sunos4*)
15722       lt_prog_compiler_wl_GCJ='-Qoption ld '
15723       lt_prog_compiler_pic_GCJ='-PIC'
15724       lt_prog_compiler_static_GCJ='-Bstatic'
15725       ;;
15726
15727     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15728       lt_prog_compiler_wl_GCJ='-Wl,'
15729       lt_prog_compiler_pic_GCJ='-KPIC'
15730       lt_prog_compiler_static_GCJ='-Bstatic'
15731       ;;
15732
15733     sysv4*MP*)
15734       if test -d /usr/nec ;then
15735         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15736         lt_prog_compiler_static_GCJ='-Bstatic'
15737       fi
15738       ;;
15739
15740     uts4*)
15741       lt_prog_compiler_pic_GCJ='-pic'
15742       lt_prog_compiler_static_GCJ='-Bstatic'
15743       ;;
15744
15745     *)
15746       lt_prog_compiler_can_build_shared_GCJ=no
15747       ;;
15748     esac
15749   fi
15750
15751 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15752 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15753
15754 #
15755 # Check to make sure the PIC flag actually works.
15756 #
15757 if test -n "$lt_prog_compiler_pic_GCJ"; then
15758
15759 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15760 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15761 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15762   echo $ECHO_N "(cached) $ECHO_C" >&6
15763 else
15764   lt_prog_compiler_pic_works_GCJ=no
15765   ac_outfile=conftest.$ac_objext
15766    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15767    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15768    # Insert the option either (1) after the last *FLAGS variable, or
15769    # (2) before a word containing "conftest.", or (3) at the end.
15770    # Note that $ac_compile itself does not contain backslashes and begins
15771    # with a dollar sign (not a hyphen), so the echo should work correctly.
15772    # The option is referenced via a variable to avoid confusing sed.
15773    lt_compile=`echo "$ac_compile" | $SED \
15774    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15775    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15776    -e 's:$: $lt_compiler_flag:'`
15777    (eval echo "\"\$as_me:15777: $lt_compile\"" >&5)
15778    (eval "$lt_compile" 2>conftest.err)
15779    ac_status=$?
15780    cat conftest.err >&5
15781    echo "$as_me:15781: \$? = $ac_status" >&5
15782    if (exit $ac_status) && test -s "$ac_outfile"; then
15783      # The compiler can only warn and ignore the option if not recognized
15784      # So say no if there are warnings
15785      if test ! -s conftest.err; then
15786        lt_prog_compiler_pic_works_GCJ=yes
15787      fi
15788    fi
15789    $rm conftest*
15790
15791 fi
15792 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15793 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15794
15795 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15796     case $lt_prog_compiler_pic_GCJ in
15797      "" | " "*) ;;
15798      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15799      esac
15800 else
15801     lt_prog_compiler_pic_GCJ=
15802      lt_prog_compiler_can_build_shared_GCJ=no
15803 fi
15804
15805 fi
15806 case "$host_os" in
15807   # For platforms which do not support PIC, -DPIC is meaningless:
15808   *djgpp*)
15809     lt_prog_compiler_pic_GCJ=
15810     ;;
15811   *)
15812     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15813     ;;
15814 esac
15815
15816 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15817 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15818 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15819   echo $ECHO_N "(cached) $ECHO_C" >&6
15820 else
15821   lt_cv_prog_compiler_c_o_GCJ=no
15822    $rm -r conftest 2>/dev/null
15823    mkdir conftest
15824    cd conftest
15825    mkdir out
15826    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15827
15828    lt_compiler_flag="-o out/conftest2.$ac_objext"
15829    # Insert the option either (1) after the last *FLAGS variable, or
15830    # (2) before a word containing "conftest.", or (3) at the end.
15831    # Note that $ac_compile itself does not contain backslashes and begins
15832    # with a dollar sign (not a hyphen), so the echo should work correctly.
15833    lt_compile=`echo "$ac_compile" | $SED \
15834    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15835    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15836    -e 's:$: $lt_compiler_flag:'`
15837    (eval echo "\"\$as_me:15837: $lt_compile\"" >&5)
15838    (eval "$lt_compile" 2>out/conftest.err)
15839    ac_status=$?
15840    cat out/conftest.err >&5
15841    echo "$as_me:15841: \$? = $ac_status" >&5
15842    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15843    then
15844      # The compiler can only warn and ignore the option if not recognized
15845      # So say no if there are warnings
15846      if test ! -s out/conftest.err; then
15847        lt_cv_prog_compiler_c_o_GCJ=yes
15848      fi
15849    fi
15850    chmod u+w .
15851    $rm conftest*
15852    # SGI C++ compiler will create directory out/ii_files/ for
15853    # template instantiation
15854    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15855    $rm out/* && rmdir out
15856    cd ..
15857    rmdir conftest
15858    $rm conftest*
15859
15860 fi
15861 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15862 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15863
15864
15865 hard_links="nottested"
15866 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15867   # do not overwrite the value of need_locks provided by the user
15868   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15869 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15870   hard_links=yes
15871   $rm conftest*
15872   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15873   touch conftest.a
15874   ln conftest.a conftest.b 2>&5 || hard_links=no
15875   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15876   echo "$as_me:$LINENO: result: $hard_links" >&5
15877 echo "${ECHO_T}$hard_links" >&6
15878   if test "$hard_links" = no; then
15879     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15880 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15881     need_locks=warn
15882   fi
15883 else
15884   need_locks=no
15885 fi
15886
15887 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15888 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15889
15890   runpath_var=
15891   allow_undefined_flag_GCJ=
15892   enable_shared_with_static_runtimes_GCJ=no
15893   archive_cmds_GCJ=
15894   archive_expsym_cmds_GCJ=
15895   old_archive_From_new_cmds_GCJ=
15896   old_archive_from_expsyms_cmds_GCJ=
15897   export_dynamic_flag_spec_GCJ=
15898   whole_archive_flag_spec_GCJ=
15899   thread_safe_flag_spec_GCJ=
15900   hardcode_libdir_flag_spec_GCJ=
15901   hardcode_libdir_flag_spec_ld_GCJ=
15902   hardcode_libdir_separator_GCJ=
15903   hardcode_direct_GCJ=no
15904   hardcode_minus_L_GCJ=no
15905   hardcode_shlibpath_var_GCJ=unsupported
15906   link_all_deplibs_GCJ=unknown
15907   hardcode_automatic_GCJ=no
15908   module_cmds_GCJ=
15909   module_expsym_cmds_GCJ=
15910   always_export_symbols_GCJ=no
15911   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15912   # include_expsyms should be a list of space-separated symbols to be *always*
15913   # included in the symbol list
15914   include_expsyms_GCJ=
15915   # exclude_expsyms can be an extended regexp of symbols to exclude
15916   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15917   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15918   # as well as any symbol that contains `d'.
15919   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15920   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15921   # platforms (ab)use it in PIC code, but their linkers get confused if
15922   # the symbol is explicitly referenced.  Since portable code cannot
15923   # rely on this symbol name, it's probably fine to never include it in
15924   # preloaded symbol tables.
15925   extract_expsyms_cmds=
15926
15927   case $host_os in
15928   cygwin* | mingw* | pw32*)
15929     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15930     # When not using gcc, we currently assume that we are using
15931     # Microsoft Visual C++.
15932     if test "$GCC" != yes; then
15933       with_gnu_ld=no
15934     fi
15935     ;;
15936   openbsd*)
15937     with_gnu_ld=no
15938     ;;
15939   esac
15940
15941   ld_shlibs_GCJ=yes
15942   if test "$with_gnu_ld" = yes; then
15943     # If archive_cmds runs LD, not CC, wlarc should be empty
15944     wlarc='${wl}'
15945
15946     # See if GNU ld supports shared libraries.
15947     case $host_os in
15948     aix3* | aix4* | aix5*)
15949       # On AIX/PPC, the GNU linker is very broken
15950       if test "$host_cpu" != ia64; then
15951         ld_shlibs_GCJ=no
15952         cat <<EOF 1>&2
15953
15954 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15955 *** to be unable to reliably create shared libraries on AIX.
15956 *** Therefore, libtool is disabling shared libraries support.  If you
15957 *** really care for shared libraries, you may want to modify your PATH
15958 *** so that a non-GNU linker is found, and then restart.
15959
15960 EOF
15961       fi
15962       ;;
15963
15964     amigaos*)
15965       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)'
15966       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15967       hardcode_minus_L_GCJ=yes
15968
15969       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15970       # that the semantics of dynamic libraries on AmigaOS, at least up
15971       # to version 4, is to share data among multiple programs linked
15972       # with the same dynamic library.  Since this doesn't match the
15973       # behavior of shared libraries on other platforms, we can't use
15974       # them.
15975       ld_shlibs_GCJ=no
15976       ;;
15977
15978     beos*)
15979       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15980         allow_undefined_flag_GCJ=unsupported
15981         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15982         # support --undefined.  This deserves some investigation.  FIXME
15983         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15984       else
15985         ld_shlibs_GCJ=no
15986       fi
15987       ;;
15988
15989     cygwin* | mingw* | pw32*)
15990       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15991       # as there is no search path for DLLs.
15992       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15993       allow_undefined_flag_GCJ=unsupported
15994       always_export_symbols_GCJ=no
15995       enable_shared_with_static_runtimes_GCJ=yes
15996       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15997
15998       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15999         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16000         # If the export-symbols file already is a .def file (1st line
16001         # is EXPORTS), use it as is; otherwise, prepend...
16002         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16003           cp $export_symbols $output_objdir/$soname.def;
16004         else
16005           echo EXPORTS > $output_objdir/$soname.def;
16006           cat $export_symbols >> $output_objdir/$soname.def;
16007         fi~
16008         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
16009       else
16010         ld_shlibs=no
16011       fi
16012       ;;
16013
16014     netbsd*)
16015       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16016         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16017         wlarc=
16018       else
16019         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16020         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16021       fi
16022       ;;
16023
16024     solaris* | sysv5*)
16025       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16026         ld_shlibs_GCJ=no
16027         cat <<EOF 1>&2
16028
16029 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16030 *** create shared libraries on Solaris systems.  Therefore, libtool
16031 *** is disabling shared libraries support.  We urge you to upgrade GNU
16032 *** binutils to release 2.9.1 or newer.  Another option is to modify
16033 *** your PATH or compiler configuration so that the native linker is
16034 *** used, and then restart.
16035
16036 EOF
16037       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16038         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16039         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16040       else
16041         ld_shlibs_GCJ=no
16042       fi
16043       ;;
16044
16045     sunos4*)
16046       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16047       wlarc=
16048       hardcode_direct_GCJ=yes
16049       hardcode_shlibpath_var_GCJ=no
16050       ;;
16051
16052   linux*)
16053     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16054         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16055         archive_cmds_GCJ="$tmp_archive_cmds"
16056       supports_anon_versioning=no
16057       case `$LD -v 2>/dev/null` in
16058         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16059         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16060         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16061         *\ 2.11.*) ;; # other 2.11 versions
16062         *) supports_anon_versioning=yes ;;
16063       esac
16064       if test $supports_anon_versioning = yes; then
16065         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16066 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16067 $echo "local: *; };" >> $output_objdir/$libname.ver~
16068         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16069       else
16070         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16071       fi
16072     else
16073       ld_shlibs_GCJ=no
16074     fi
16075     ;;
16076
16077     *)
16078       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16079         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16080         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16081       else
16082         ld_shlibs_GCJ=no
16083       fi
16084       ;;
16085     esac
16086
16087     if test "$ld_shlibs_GCJ" = yes; then
16088       runpath_var=LD_RUN_PATH
16089       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16090       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16091       # ancient GNU ld didn't support --whole-archive et. al.
16092       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16093         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16094       else
16095         whole_archive_flag_spec_GCJ=
16096       fi
16097     fi
16098   else
16099     # PORTME fill in a description of your system's linker (not GNU ld)
16100     case $host_os in
16101     aix3*)
16102       allow_undefined_flag_GCJ=unsupported
16103       always_export_symbols_GCJ=yes
16104       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'
16105       # Note: this linker hardcodes the directories in LIBPATH if there
16106       # are no directories specified by -L.
16107       hardcode_minus_L_GCJ=yes
16108       if test "$GCC" = yes && test -z "$link_static_flag"; then
16109         # Neither direct hardcoding nor static linking is supported with a
16110         # broken collect2.
16111         hardcode_direct_GCJ=unsupported
16112       fi
16113       ;;
16114
16115     aix4* | aix5*)
16116       if test "$host_cpu" = ia64; then
16117         # On IA64, the linker does run time linking by default, so we don't
16118         # have to do anything special.
16119         aix_use_runtimelinking=no
16120         exp_sym_flag='-Bexport'
16121         no_entry_flag=""
16122       else
16123         # If we're using GNU nm, then we don't want the "-C" option.
16124         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16125         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16126           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'
16127         else
16128           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'
16129         fi
16130         aix_use_runtimelinking=no
16131
16132         # Test if we are trying to use run time linking or normal
16133         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16134         # need to do runtime linking.
16135         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16136           for ld_flag in $LDFLAGS; do
16137           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16138             aix_use_runtimelinking=yes
16139             break
16140           fi
16141           done
16142         esac
16143
16144         exp_sym_flag='-bexport'
16145         no_entry_flag='-bnoentry'
16146       fi
16147
16148       # When large executables or shared objects are built, AIX ld can
16149       # have problems creating the table of contents.  If linking a library
16150       # or program results in "error TOC overflow" add -mminimal-toc to
16151       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16152       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16153
16154       archive_cmds_GCJ=''
16155       hardcode_direct_GCJ=yes
16156       hardcode_libdir_separator_GCJ=':'
16157       link_all_deplibs_GCJ=yes
16158
16159       if test "$GCC" = yes; then
16160         case $host_os in aix4.012|aix4.012.*)
16161         # We only want to do this on AIX 4.2 and lower, the check
16162         # below for broken collect2 doesn't work under 4.3+
16163           collect2name=`${CC} -print-prog-name=collect2`
16164           if test -f "$collect2name" && \
16165            strings "$collect2name" | grep resolve_lib_name >/dev/null
16166           then
16167           # We have reworked collect2
16168           hardcode_direct_GCJ=yes
16169           else
16170           # We have old collect2
16171           hardcode_direct_GCJ=unsupported
16172           # It fails to find uninstalled libraries when the uninstalled
16173           # path is not listed in the libpath.  Setting hardcode_minus_L
16174           # to unsupported forces relinking
16175           hardcode_minus_L_GCJ=yes
16176           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16177           hardcode_libdir_separator_GCJ=
16178           fi
16179         esac
16180         shared_flag='-shared'
16181       else
16182         # not using gcc
16183         if test "$host_cpu" = ia64; then
16184         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16185         # chokes on -Wl,-G. The following line is correct:
16186           shared_flag='-G'
16187         else
16188         if test "$aix_use_runtimelinking" = yes; then
16189             shared_flag='${wl}-G'
16190           else
16191             shared_flag='${wl}-bM:SRE'
16192         fi
16193         fi
16194       fi
16195
16196       # It seems that -bexpall does not export symbols beginning with
16197       # underscore (_), so it is better to generate a list of symbols to export.
16198       always_export_symbols_GCJ=yes
16199       if test "$aix_use_runtimelinking" = yes; then
16200         # Warning - without using the other runtime loading flags (-brtl),
16201         # -berok will link without error, but may produce a broken library.
16202         allow_undefined_flag_GCJ='-berok'
16203        # Determine the default libpath from the value encoded in an empty executable.
16204        cat >conftest.$ac_ext <<_ACEOF
16205 /* confdefs.h.  */
16206 _ACEOF
16207 cat confdefs.h >>conftest.$ac_ext
16208 cat >>conftest.$ac_ext <<_ACEOF
16209 /* end confdefs.h.  */
16210
16211 int
16212 main ()
16213 {
16214
16215   ;
16216   return 0;
16217 }
16218 _ACEOF
16219 rm -f conftest.$ac_objext conftest$ac_exeext
16220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16221   (eval $ac_link) 2>conftest.er1
16222   ac_status=$?
16223   grep -v '^ *+' conftest.er1 >conftest.err
16224   rm -f conftest.er1
16225   cat conftest.err >&5
16226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16227   (exit $ac_status); } &&
16228          { ac_try='test -z "$ac_c_werror_flag"
16229                          || test ! -s conftest.err'
16230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16231   (eval $ac_try) 2>&5
16232   ac_status=$?
16233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16234   (exit $ac_status); }; } &&
16235          { ac_try='test -s conftest$ac_exeext'
16236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16237   (eval $ac_try) 2>&5
16238   ac_status=$?
16239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16240   (exit $ac_status); }; }; then
16241
16242 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16243 }'`
16244 # Check for a 64-bit object if we didn't find anything.
16245 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; }
16246 }'`; fi
16247 else
16248   echo "$as_me: failed program was:" >&5
16249 sed 's/^/| /' conftest.$ac_ext >&5
16250
16251 fi
16252 rm -f conftest.err conftest.$ac_objext \
16253       conftest$ac_exeext conftest.$ac_ext
16254 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16255
16256        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16257         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16258        else
16259         if test "$host_cpu" = ia64; then
16260           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16261           allow_undefined_flag_GCJ="-z nodefs"
16262           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
16263         else
16264          # Determine the default libpath from the value encoded in an empty executable.
16265          cat >conftest.$ac_ext <<_ACEOF
16266 /* confdefs.h.  */
16267 _ACEOF
16268 cat confdefs.h >>conftest.$ac_ext
16269 cat >>conftest.$ac_ext <<_ACEOF
16270 /* end confdefs.h.  */
16271
16272 int
16273 main ()
16274 {
16275
16276   ;
16277   return 0;
16278 }
16279 _ACEOF
16280 rm -f conftest.$ac_objext conftest$ac_exeext
16281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16282   (eval $ac_link) 2>conftest.er1
16283   ac_status=$?
16284   grep -v '^ *+' conftest.er1 >conftest.err
16285   rm -f conftest.er1
16286   cat conftest.err >&5
16287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16288   (exit $ac_status); } &&
16289          { ac_try='test -z "$ac_c_werror_flag"
16290                          || test ! -s conftest.err'
16291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16292   (eval $ac_try) 2>&5
16293   ac_status=$?
16294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16295   (exit $ac_status); }; } &&
16296          { ac_try='test -s conftest$ac_exeext'
16297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16298   (eval $ac_try) 2>&5
16299   ac_status=$?
16300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16301   (exit $ac_status); }; }; then
16302
16303 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16304 }'`
16305 # Check for a 64-bit object if we didn't find anything.
16306 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; }
16307 }'`; fi
16308 else
16309   echo "$as_me: failed program was:" >&5
16310 sed 's/^/| /' conftest.$ac_ext >&5
16311
16312 fi
16313 rm -f conftest.err conftest.$ac_objext \
16314       conftest$ac_exeext conftest.$ac_ext
16315 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16316
16317          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16318           # Warning - without using the other run time loading flags,
16319           # -berok will link without error, but may produce a broken library.
16320           no_undefined_flag_GCJ=' ${wl}-bernotok'
16321           allow_undefined_flag_GCJ=' ${wl}-berok'
16322           # -bexpall does not export symbols beginning with underscore (_)
16323           always_export_symbols_GCJ=yes
16324           # Exported symbols can be pulled into shared objects from archives
16325           whole_archive_flag_spec_GCJ=' '
16326           archive_cmds_need_lc_GCJ=yes
16327           # This is similar to how AIX traditionally builds it's shared libraries.
16328           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16329         fi
16330       fi
16331       ;;
16332
16333     amigaos*)
16334       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)'
16335       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16336       hardcode_minus_L_GCJ=yes
16337       # see comment about different semantics on the GNU ld section
16338       ld_shlibs_GCJ=no
16339       ;;
16340
16341     bsdi4*)
16342       export_dynamic_flag_spec_GCJ=-rdynamic
16343       ;;
16344
16345     cygwin* | mingw* | pw32*)
16346       # When not using gcc, we currently assume that we are using
16347       # Microsoft Visual C++.
16348       # hardcode_libdir_flag_spec is actually meaningless, as there is
16349       # no search path for DLLs.
16350       hardcode_libdir_flag_spec_GCJ=' '
16351       allow_undefined_flag_GCJ=unsupported
16352       # Tell ltmain to make .lib files, not .a files.
16353       libext=lib
16354       # Tell ltmain to make .dll files, not .so files.
16355       shrext_cmds=".dll"
16356       # FIXME: Setting linknames here is a bad hack.
16357       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16358       # The linker will automatically build a .lib file if we build a DLL.
16359       old_archive_From_new_cmds_GCJ='true'
16360       # FIXME: Should let the user specify the lib program.
16361       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16362       fix_srcfile_path='`cygpath -w "$srcfile"`'
16363       enable_shared_with_static_runtimes_GCJ=yes
16364       ;;
16365
16366     darwin* | rhapsody*)
16367     if test "$GXX" = yes ; then
16368       archive_cmds_need_lc_GCJ=no
16369       case "$host_os" in
16370       rhapsody* | darwin1.[012])
16371         allow_undefined_flag_GCJ='-undefined suppress'
16372         ;;
16373       *) # Darwin 1.3 on
16374       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16375         allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16376       else
16377         case ${MACOSX_DEPLOYMENT_TARGET} in
16378           10.[012])
16379             allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16380             ;;
16381           10.*)
16382             allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16383             ;;
16384         esac
16385       fi
16386         ;;
16387       esac
16388         lt_int_apple_cc_single_mod=no
16389         output_verbose_link_cmd='echo'
16390         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16391           lt_int_apple_cc_single_mod=yes
16392         fi
16393         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16394           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16395         else
16396         archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16397       fi
16398       module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16399       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16400         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16401           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16402         else
16403           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16404         fi
16405           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}'
16406       hardcode_direct_GCJ=no
16407       hardcode_automatic_GCJ=yes
16408       hardcode_shlibpath_var_GCJ=unsupported
16409       whole_archive_flag_spec_GCJ='-all_load $convenience'
16410       link_all_deplibs_GCJ=yes
16411     else
16412       ld_shlibs_GCJ=no
16413     fi
16414       ;;
16415
16416     dgux*)
16417       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16418       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16419       hardcode_shlibpath_var_GCJ=no
16420       ;;
16421
16422     freebsd1*)
16423       ld_shlibs_GCJ=no
16424       ;;
16425
16426     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16427     # support.  Future versions do this automatically, but an explicit c++rt0.o
16428     # does not break anything, and helps significantly (at the cost of a little
16429     # extra space).
16430     freebsd2.2*)
16431       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16432       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16433       hardcode_direct_GCJ=yes
16434       hardcode_shlibpath_var_GCJ=no
16435       ;;
16436
16437     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16438     freebsd2*)
16439       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16440       hardcode_direct_GCJ=yes
16441       hardcode_minus_L_GCJ=yes
16442       hardcode_shlibpath_var_GCJ=no
16443       ;;
16444
16445     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16446     freebsd* | kfreebsd*-gnu)
16447       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16448       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16449       hardcode_direct_GCJ=yes
16450       hardcode_shlibpath_var_GCJ=no
16451       ;;
16452
16453     hpux9*)
16454       if test "$GCC" = yes; then
16455         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'
16456       else
16457         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'
16458       fi
16459       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16460       hardcode_libdir_separator_GCJ=:
16461       hardcode_direct_GCJ=yes
16462
16463       # hardcode_minus_L: Not really in the search PATH,
16464       # but as the default location of the library.
16465       hardcode_minus_L_GCJ=yes
16466       export_dynamic_flag_spec_GCJ='${wl}-E'
16467       ;;
16468
16469     hpux10* | hpux11*)
16470       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16471         case "$host_cpu" in
16472         hppa*64*|ia64*)
16473           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16474           ;;
16475         *)
16476           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16477           ;;
16478         esac
16479       else
16480         case "$host_cpu" in
16481         hppa*64*|ia64*)
16482           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16483           ;;
16484         *)
16485           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16486           ;;
16487         esac
16488       fi
16489       if test "$with_gnu_ld" = no; then
16490         case "$host_cpu" in
16491         hppa*64*)
16492           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16493           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16494           hardcode_libdir_separator_GCJ=:
16495           hardcode_direct_GCJ=no
16496           hardcode_shlibpath_var_GCJ=no
16497           ;;
16498         ia64*)
16499           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16500           hardcode_direct_GCJ=no
16501           hardcode_shlibpath_var_GCJ=no
16502
16503           # hardcode_minus_L: Not really in the search PATH,
16504           # but as the default location of the library.
16505           hardcode_minus_L_GCJ=yes
16506           ;;
16507         *)
16508           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16509           hardcode_libdir_separator_GCJ=:
16510           hardcode_direct_GCJ=yes
16511           export_dynamic_flag_spec_GCJ='${wl}-E'
16512
16513           # hardcode_minus_L: Not really in the search PATH,
16514           # but as the default location of the library.
16515           hardcode_minus_L_GCJ=yes
16516           ;;
16517         esac
16518       fi
16519       ;;
16520
16521     irix5* | irix6* | nonstopux*)
16522       if test "$GCC" = yes; then
16523         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'
16524       else
16525         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'
16526         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16527       fi
16528       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16529       hardcode_libdir_separator_GCJ=:
16530       link_all_deplibs_GCJ=yes
16531       ;;
16532
16533     netbsd*)
16534       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16535         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16536       else
16537         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16538       fi
16539       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16540       hardcode_direct_GCJ=yes
16541       hardcode_shlibpath_var_GCJ=no
16542       ;;
16543
16544     newsos6)
16545       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16546       hardcode_direct_GCJ=yes
16547       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16548       hardcode_libdir_separator_GCJ=:
16549       hardcode_shlibpath_var_GCJ=no
16550       ;;
16551
16552     openbsd*)
16553       hardcode_direct_GCJ=yes
16554       hardcode_shlibpath_var_GCJ=no
16555       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16556         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16557         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16558         export_dynamic_flag_spec_GCJ='${wl}-E'
16559       else
16560        case $host_os in
16561          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16562            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16563            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16564            ;;
16565          *)
16566            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16567            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16568            ;;
16569        esac
16570       fi
16571       ;;
16572
16573     os2*)
16574       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16575       hardcode_minus_L_GCJ=yes
16576       allow_undefined_flag_GCJ=unsupported
16577       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'
16578       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16579       ;;
16580
16581     osf3*)
16582       if test "$GCC" = yes; then
16583         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16584         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'
16585       else
16586         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16587         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'
16588       fi
16589       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16590       hardcode_libdir_separator_GCJ=:
16591       ;;
16592
16593     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16594       if test "$GCC" = yes; then
16595         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16596         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'
16597         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16598       else
16599         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16600         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'
16601         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~
16602         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16603
16604         # Both c and cxx compiler support -rpath directly
16605         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16606       fi
16607       hardcode_libdir_separator_GCJ=:
16608       ;;
16609
16610     sco3.2v5*)
16611       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16612       hardcode_shlibpath_var_GCJ=no
16613       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16614       runpath_var=LD_RUN_PATH
16615       hardcode_runpath_var=yes
16616       ;;
16617
16618     solaris*)
16619       no_undefined_flag_GCJ=' -z text'
16620       if test "$GCC" = yes; then
16621         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16622         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16623           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16624       else
16625         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16626         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16627         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16628       fi
16629       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16630       hardcode_shlibpath_var_GCJ=no
16631       case $host_os in
16632       solaris2.[0-5] | solaris2.[0-5].*) ;;
16633       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16634         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16635       esac
16636       link_all_deplibs_GCJ=yes
16637       ;;
16638
16639     sunos4*)
16640       if test "x$host_vendor" = xsequent; then
16641         # Use $CC to link under sequent, because it throws in some extra .o
16642         # files that make .init and .fini sections work.
16643         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16644       else
16645         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16646       fi
16647       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16648       hardcode_direct_GCJ=yes
16649       hardcode_minus_L_GCJ=yes
16650       hardcode_shlibpath_var_GCJ=no
16651       ;;
16652
16653     sysv4)
16654       case $host_vendor in
16655         sni)
16656           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16657           hardcode_direct_GCJ=yes # is this really true???
16658         ;;
16659         siemens)
16660           ## LD is ld it makes a PLAMLIB
16661           ## CC just makes a GrossModule.
16662           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16663           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16664           hardcode_direct_GCJ=no
16665         ;;
16666         motorola)
16667           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16668           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16669         ;;
16670       esac
16671       runpath_var='LD_RUN_PATH'
16672       hardcode_shlibpath_var_GCJ=no
16673       ;;
16674
16675     sysv4.3*)
16676       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16677       hardcode_shlibpath_var_GCJ=no
16678       export_dynamic_flag_spec_GCJ='-Bexport'
16679       ;;
16680
16681     sysv4*MP*)
16682       if test -d /usr/nec; then
16683         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16684         hardcode_shlibpath_var_GCJ=no
16685         runpath_var=LD_RUN_PATH
16686         hardcode_runpath_var=yes
16687         ld_shlibs_GCJ=yes
16688       fi
16689       ;;
16690
16691     sysv4.2uw2*)
16692       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16693       hardcode_direct_GCJ=yes
16694       hardcode_minus_L_GCJ=no
16695       hardcode_shlibpath_var_GCJ=no
16696       hardcode_runpath_var=yes
16697       runpath_var=LD_RUN_PATH
16698       ;;
16699
16700    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16701       no_undefined_flag_GCJ='${wl}-z ${wl}text'
16702       if test "$GCC" = yes; then
16703         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16704       else
16705         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16706       fi
16707       runpath_var='LD_RUN_PATH'
16708       hardcode_shlibpath_var_GCJ=no
16709       ;;
16710
16711     sysv5*)
16712       no_undefined_flag_GCJ=' -z text'
16713       # $CC -shared without GNU ld will not create a library from C++
16714       # object files and a static libstdc++, better avoid it by now
16715       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16716       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16717                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16718       hardcode_libdir_flag_spec_GCJ=
16719       hardcode_shlibpath_var_GCJ=no
16720       runpath_var='LD_RUN_PATH'
16721       ;;
16722
16723     uts4*)
16724       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16725       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16726       hardcode_shlibpath_var_GCJ=no
16727       ;;
16728
16729     *)
16730       ld_shlibs_GCJ=no
16731       ;;
16732     esac
16733   fi
16734
16735 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16736 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16737 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16738
16739 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16740 if test "$GCC" = yes; then
16741   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16742 fi
16743
16744 #
16745 # Do we need to explicitly link libc?
16746 #
16747 case "x$archive_cmds_need_lc_GCJ" in
16748 x|xyes)
16749   # Assume -lc should be added
16750   archive_cmds_need_lc_GCJ=yes
16751
16752   if test "$enable_shared" = yes && test "$GCC" = yes; then
16753     case $archive_cmds_GCJ in
16754     *'~'*)
16755       # FIXME: we may have to deal with multi-command sequences.
16756       ;;
16757     '$CC '*)
16758       # Test whether the compiler implicitly links with -lc since on some
16759       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16760       # to ld, don't add -lc before -lgcc.
16761       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16762 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16763       $rm conftest*
16764       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16765
16766       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16767   (eval $ac_compile) 2>&5
16768   ac_status=$?
16769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16770   (exit $ac_status); } 2>conftest.err; then
16771         soname=conftest
16772         lib=conftest
16773         libobjs=conftest.$ac_objext
16774         deplibs=
16775         wl=$lt_prog_compiler_wl_GCJ
16776         compiler_flags=-v
16777         linker_flags=-v
16778         verstring=
16779         output_objdir=.
16780         libname=conftest
16781         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16782         allow_undefined_flag_GCJ=
16783         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16784   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16785   ac_status=$?
16786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16787   (exit $ac_status); }
16788         then
16789           archive_cmds_need_lc_GCJ=no
16790         else
16791           archive_cmds_need_lc_GCJ=yes
16792         fi
16793         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16794       else
16795         cat conftest.err 1>&5
16796       fi
16797       $rm conftest*
16798       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16799 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16800       ;;
16801     esac
16802   fi
16803   ;;
16804 esac
16805
16806 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16807 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16808 library_names_spec=
16809 libname_spec='lib$name'
16810 soname_spec=
16811 shrext_cmds=".so"
16812 postinstall_cmds=
16813 postuninstall_cmds=
16814 finish_cmds=
16815 finish_eval=
16816 shlibpath_var=
16817 shlibpath_overrides_runpath=unknown
16818 version_type=none
16819 dynamic_linker="$host_os ld.so"
16820 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16821 if test "$GCC" = yes; then
16822   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16823   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16824     # if the path contains ";" then we assume it to be the separator
16825     # otherwise default to the standard path separator (i.e. ":") - it is
16826     # assumed that no part of a normal pathname contains ";" but that should
16827     # okay in the real world where ";" in dirpaths is itself problematic.
16828     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16829   else
16830     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16831   fi
16832 else
16833   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16834 fi
16835 need_lib_prefix=unknown
16836 hardcode_into_libs=no
16837
16838 # when you set need_version to no, make sure it does not cause -set_version
16839 # flags to be left without arguments
16840 need_version=unknown
16841
16842 case $host_os in
16843 aix3*)
16844   version_type=linux
16845   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16846   shlibpath_var=LIBPATH
16847
16848   # AIX 3 has no versioning support, so we append a major version to the name.
16849   soname_spec='${libname}${release}${shared_ext}$major'
16850   ;;
16851
16852 aix4* | aix5*)
16853   version_type=linux
16854   need_lib_prefix=no
16855   need_version=no
16856   hardcode_into_libs=yes
16857   if test "$host_cpu" = ia64; then
16858     # AIX 5 supports IA64
16859     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16860     shlibpath_var=LD_LIBRARY_PATH
16861   else
16862     # With GCC up to 2.95.x, collect2 would create an import file
16863     # for dependence libraries.  The import file would start with
16864     # the line `#! .'.  This would cause the generated library to
16865     # depend on `.', always an invalid library.  This was fixed in
16866     # development snapshots of GCC prior to 3.0.
16867     case $host_os in
16868       aix4 | aix4.[01] | aix4.[01].*)
16869       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16870            echo ' yes '
16871            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16872         :
16873       else
16874         can_build_shared=no
16875       fi
16876       ;;
16877     esac
16878     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16879     # soname into executable. Probably we can add versioning support to
16880     # collect2, so additional links can be useful in future.
16881     if test "$aix_use_runtimelinking" = yes; then
16882       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16883       # instead of lib<name>.a to let people know that these are not
16884       # typical AIX shared libraries.
16885       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16886     else
16887       # We preserve .a as extension for shared libraries through AIX4.2
16888       # and later when we are not doing run time linking.
16889       library_names_spec='${libname}${release}.a $libname.a'
16890       soname_spec='${libname}${release}${shared_ext}$major'
16891     fi
16892     shlibpath_var=LIBPATH
16893   fi
16894   ;;
16895
16896 amigaos*)
16897   library_names_spec='$libname.ixlibrary $libname.a'
16898   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16899   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'
16900   ;;
16901
16902 beos*)
16903   library_names_spec='${libname}${shared_ext}'
16904   dynamic_linker="$host_os ld.so"
16905   shlibpath_var=LIBRARY_PATH
16906   ;;
16907
16908 bsdi4*)
16909   version_type=linux
16910   need_version=no
16911   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16912   soname_spec='${libname}${release}${shared_ext}$major'
16913   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16914   shlibpath_var=LD_LIBRARY_PATH
16915   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16916   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16917   # the default ld.so.conf also contains /usr/contrib/lib and
16918   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16919   # libtool to hard-code these into programs
16920   ;;
16921
16922 cygwin* | mingw* | pw32*)
16923   version_type=windows
16924   shrext_cmds=".dll"
16925   need_version=no
16926   need_lib_prefix=no
16927
16928   case $GCC,$host_os in
16929   yes,cygwin* | yes,mingw* | yes,pw32*)
16930     library_names_spec='$libname.dll.a'
16931     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16932     postinstall_cmds='base_file=`basename \${file}`~
16933       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16934       dldir=$destdir/`dirname \$dlpath`~
16935       test -d \$dldir || mkdir -p \$dldir~
16936       $install_prog $dir/$dlname \$dldir/$dlname'
16937     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16938       dlpath=$dir/\$dldll~
16939        $rm \$dlpath'
16940     shlibpath_overrides_runpath=yes
16941
16942     case $host_os in
16943     cygwin*)
16944       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16945       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16946       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16947       ;;
16948     mingw*)
16949       # MinGW DLLs use traditional 'lib' prefix
16950       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16951       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16952       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16953         # It is most probably a Windows format PATH printed by
16954         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16955         # path with ; separators, and with drive letters. We can handle the
16956         # drive letters (cygwin fileutils understands them), so leave them,
16957         # especially as we might pass files found there to a mingw objdump,
16958         # which wouldn't understand a cygwinified path. Ahh.
16959         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16960       else
16961         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16962       fi
16963       ;;
16964     pw32*)
16965       # pw32 DLLs use 'pw' prefix rather than 'lib'
16966       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16967       ;;
16968     esac
16969     ;;
16970
16971   *)
16972     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16973     ;;
16974   esac
16975   dynamic_linker='Win32 ld.exe'
16976   # FIXME: first we should search . and the directory the executable is in
16977   shlibpath_var=PATH
16978   ;;
16979
16980 darwin* | rhapsody*)
16981   dynamic_linker="$host_os dyld"
16982   version_type=darwin
16983   need_lib_prefix=no
16984   need_version=no
16985   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16986   soname_spec='${libname}${release}${major}$shared_ext'
16987   shlibpath_overrides_runpath=yes
16988   shlibpath_var=DYLD_LIBRARY_PATH
16989   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16990   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16991   if test "$GCC" = yes; then
16992     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"`
16993   else
16994     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16995   fi
16996   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16997   ;;
16998
16999 dgux*)
17000   version_type=linux
17001   need_lib_prefix=no
17002   need_version=no
17003   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17004   soname_spec='${libname}${release}${shared_ext}$major'
17005   shlibpath_var=LD_LIBRARY_PATH
17006   ;;
17007
17008 freebsd1*)
17009   dynamic_linker=no
17010   ;;
17011
17012 kfreebsd*-gnu)
17013   version_type=linux
17014   need_lib_prefix=no
17015   need_version=no
17016   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17017   soname_spec='${libname}${release}${shared_ext}$major'
17018   shlibpath_var=LD_LIBRARY_PATH
17019   shlibpath_overrides_runpath=no
17020   hardcode_into_libs=yes
17021   dynamic_linker='GNU ld.so'
17022   ;;
17023
17024 freebsd*)
17025   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17026   version_type=freebsd-$objformat
17027   case $version_type in
17028     freebsd-elf*)
17029       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17030       need_version=no
17031       need_lib_prefix=no
17032       ;;
17033     freebsd-*)
17034       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17035       need_version=yes
17036       ;;
17037   esac
17038   shlibpath_var=LD_LIBRARY_PATH
17039   case $host_os in
17040   freebsd2*)
17041     shlibpath_overrides_runpath=yes
17042     ;;
17043   freebsd3.01* | freebsdelf3.01*)
17044     shlibpath_overrides_runpath=yes
17045     hardcode_into_libs=yes
17046     ;;
17047   *) # from 3.2 on
17048     shlibpath_overrides_runpath=no
17049     hardcode_into_libs=yes
17050     ;;
17051   esac
17052   ;;
17053
17054 gnu*)
17055   version_type=linux
17056   need_lib_prefix=no
17057   need_version=no
17058   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17059   soname_spec='${libname}${release}${shared_ext}$major'
17060   shlibpath_var=LD_LIBRARY_PATH
17061   hardcode_into_libs=yes
17062   ;;
17063
17064 hpux9* | hpux10* | hpux11*)
17065   # Give a soname corresponding to the major version so that dld.sl refuses to
17066   # link against other versions.
17067   version_type=sunos
17068   need_lib_prefix=no
17069   need_version=no
17070   case "$host_cpu" in
17071   ia64*)
17072     shrext_cmds='.so'
17073     hardcode_into_libs=yes
17074     dynamic_linker="$host_os dld.so"
17075     shlibpath_var=LD_LIBRARY_PATH
17076     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17077     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17078     soname_spec='${libname}${release}${shared_ext}$major'
17079     if test "X$HPUX_IA64_MODE" = X32; then
17080       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17081     else
17082       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17083     fi
17084     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17085     ;;
17086    hppa*64*)
17087      shrext_cmds='.sl'
17088      hardcode_into_libs=yes
17089      dynamic_linker="$host_os dld.sl"
17090      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17091      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17092      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17093      soname_spec='${libname}${release}${shared_ext}$major'
17094      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17095      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17096      ;;
17097    *)
17098     shrext_cmds='.sl'
17099     dynamic_linker="$host_os dld.sl"
17100     shlibpath_var=SHLIB_PATH
17101     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17102     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17103     soname_spec='${libname}${release}${shared_ext}$major'
17104     ;;
17105   esac
17106   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17107   postinstall_cmds='chmod 555 $lib'
17108   ;;
17109
17110 irix5* | irix6* | nonstopux*)
17111   case $host_os in
17112     nonstopux*) version_type=nonstopux ;;
17113     *)
17114         if test "$lt_cv_prog_gnu_ld" = yes; then
17115                 version_type=linux
17116         else
17117                 version_type=irix
17118         fi ;;
17119   esac
17120   need_lib_prefix=no
17121   need_version=no
17122   soname_spec='${libname}${release}${shared_ext}$major'
17123   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17124   case $host_os in
17125   irix5* | nonstopux*)
17126     libsuff= shlibsuff=
17127     ;;
17128   *)
17129     case $LD in # libtool.m4 will add one of these switches to LD
17130     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17131       libsuff= shlibsuff= libmagic=32-bit;;
17132     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17133       libsuff=32 shlibsuff=N32 libmagic=N32;;
17134     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17135       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17136     *) libsuff= shlibsuff= libmagic=never-match;;
17137     esac
17138     ;;
17139   esac
17140   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17141   shlibpath_overrides_runpath=no
17142   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17143   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17144   hardcode_into_libs=yes
17145   ;;
17146
17147 # No shared lib support for Linux oldld, aout, or coff.
17148 linux*oldld* | linux*aout* | linux*coff*)
17149   dynamic_linker=no
17150   ;;
17151
17152 # This must be Linux ELF.
17153 linux*)
17154   version_type=linux
17155   need_lib_prefix=no
17156   need_version=no
17157   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17158   soname_spec='${libname}${release}${shared_ext}$major'
17159   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17160   shlibpath_var=LD_LIBRARY_PATH
17161   shlibpath_overrides_runpath=no
17162   # This implies no fast_install, which is unacceptable.
17163   # Some rework will be needed to allow for fast_install
17164   # before this can be enabled.
17165   hardcode_into_libs=yes
17166
17167   # find out which ABI we are using
17168   libsuff=
17169   case "$host_cpu" in
17170   x86_64*|s390x*|powerpc64*)
17171     echo '#line 17171 "configure"' > conftest.$ac_ext
17172     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17173   (eval $ac_compile) 2>&5
17174   ac_status=$?
17175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17176   (exit $ac_status); }; then
17177       case `/usr/bin/file conftest.$ac_objext` in
17178       *64-bit*)
17179         libsuff=64
17180         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17181         ;;
17182       esac
17183     fi
17184     rm -rf conftest*
17185     ;;
17186   esac
17187
17188   # Append ld.so.conf contents to the search path
17189   if test -f /etc/ld.so.conf; then
17190     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17191     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17192   fi
17193
17194   # We used to test for /lib/ld.so.1 and disable shared libraries on
17195   # powerpc, because MkLinux only supported shared libraries with the
17196   # GNU dynamic linker.  Since this was broken with cross compilers,
17197   # most powerpc-linux boxes support dynamic linking these days and
17198   # people can always --disable-shared, the test was removed, and we
17199   # assume the GNU/Linux dynamic linker is in use.
17200   dynamic_linker='GNU/Linux ld.so'
17201   ;;
17202
17203 knetbsd*-gnu)
17204   version_type=linux
17205   need_lib_prefix=no
17206   need_version=no
17207   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17208   soname_spec='${libname}${release}${shared_ext}$major'
17209   shlibpath_var=LD_LIBRARY_PATH
17210   shlibpath_overrides_runpath=no
17211   hardcode_into_libs=yes
17212   dynamic_linker='GNU ld.so'
17213   ;;
17214
17215 netbsd*)
17216   version_type=sunos
17217   need_lib_prefix=no
17218   need_version=no
17219   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17220     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17221     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17222     dynamic_linker='NetBSD (a.out) ld.so'
17223   else
17224     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17225     soname_spec='${libname}${release}${shared_ext}$major'
17226     dynamic_linker='NetBSD ld.elf_so'
17227   fi
17228   shlibpath_var=LD_LIBRARY_PATH
17229   shlibpath_overrides_runpath=yes
17230   hardcode_into_libs=yes
17231   ;;
17232
17233 newsos6)
17234   version_type=linux
17235   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17236   shlibpath_var=LD_LIBRARY_PATH
17237   shlibpath_overrides_runpath=yes
17238   ;;
17239
17240 nto-qnx*)
17241   version_type=linux
17242   need_lib_prefix=no
17243   need_version=no
17244   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17245   soname_spec='${libname}${release}${shared_ext}$major'
17246   shlibpath_var=LD_LIBRARY_PATH
17247   shlibpath_overrides_runpath=yes
17248   ;;
17249
17250 openbsd*)
17251   version_type=sunos
17252   need_lib_prefix=no
17253   need_version=yes
17254   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17255   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17256   shlibpath_var=LD_LIBRARY_PATH
17257   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17258     case $host_os in
17259       openbsd2.[89] | openbsd2.[89].*)
17260         shlibpath_overrides_runpath=no
17261         ;;
17262       *)
17263         shlibpath_overrides_runpath=yes
17264         ;;
17265       esac
17266   else
17267     shlibpath_overrides_runpath=yes
17268   fi
17269   ;;
17270
17271 os2*)
17272   libname_spec='$name'
17273   shrext_cmds=".dll"
17274   need_lib_prefix=no
17275   library_names_spec='$libname${shared_ext} $libname.a'
17276   dynamic_linker='OS/2 ld.exe'
17277   shlibpath_var=LIBPATH
17278   ;;
17279
17280 osf3* | osf4* | osf5*)
17281   version_type=osf
17282   need_lib_prefix=no
17283   need_version=no
17284   soname_spec='${libname}${release}${shared_ext}$major'
17285   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17286   shlibpath_var=LD_LIBRARY_PATH
17287   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17288   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17289   ;;
17290
17291 sco3.2v5*)
17292   version_type=osf
17293   soname_spec='${libname}${release}${shared_ext}$major'
17294   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17295   shlibpath_var=LD_LIBRARY_PATH
17296   ;;
17297
17298 solaris*)
17299   version_type=linux
17300   need_lib_prefix=no
17301   need_version=no
17302   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17303   soname_spec='${libname}${release}${shared_ext}$major'
17304   shlibpath_var=LD_LIBRARY_PATH
17305   shlibpath_overrides_runpath=yes
17306   hardcode_into_libs=yes
17307   # ldd complains unless libraries are executable
17308   postinstall_cmds='chmod +x $lib'
17309   ;;
17310
17311 sunos4*)
17312   version_type=sunos
17313   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17314   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17315   shlibpath_var=LD_LIBRARY_PATH
17316   shlibpath_overrides_runpath=yes
17317   if test "$with_gnu_ld" = yes; then
17318     need_lib_prefix=no
17319   fi
17320   need_version=yes
17321   ;;
17322
17323 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17324   version_type=linux
17325   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17326   soname_spec='${libname}${release}${shared_ext}$major'
17327   shlibpath_var=LD_LIBRARY_PATH
17328   case $host_vendor in
17329     sni)
17330       shlibpath_overrides_runpath=no
17331       need_lib_prefix=no
17332       export_dynamic_flag_spec='${wl}-Blargedynsym'
17333       runpath_var=LD_RUN_PATH
17334       ;;
17335     siemens)
17336       need_lib_prefix=no
17337       ;;
17338     motorola)
17339       need_lib_prefix=no
17340       need_version=no
17341       shlibpath_overrides_runpath=no
17342       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17343       ;;
17344   esac
17345   ;;
17346
17347 sysv4*MP*)
17348   if test -d /usr/nec ;then
17349     version_type=linux
17350     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17351     soname_spec='$libname${shared_ext}.$major'
17352     shlibpath_var=LD_LIBRARY_PATH
17353   fi
17354   ;;
17355
17356 uts4*)
17357   version_type=linux
17358   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17359   soname_spec='${libname}${release}${shared_ext}$major'
17360   shlibpath_var=LD_LIBRARY_PATH
17361   ;;
17362
17363 *)
17364   dynamic_linker=no
17365   ;;
17366 esac
17367 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17368 echo "${ECHO_T}$dynamic_linker" >&6
17369 test "$dynamic_linker" = no && can_build_shared=no
17370
17371 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17372 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17373 hardcode_action_GCJ=
17374 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17375    test -n "$runpath_var GCJ" || \
17376    test "X$hardcode_automatic_GCJ"="Xyes" ; then
17377
17378   # We can hardcode non-existant directories.
17379   if test "$hardcode_direct_GCJ" != no &&
17380      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17381      # have to relink, otherwise we might link with an installed library
17382      # when we should be linking with a yet-to-be-installed one
17383      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17384      test "$hardcode_minus_L_GCJ" != no; then
17385     # Linking always hardcodes the temporary library directory.
17386     hardcode_action_GCJ=relink
17387   else
17388     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17389     hardcode_action_GCJ=immediate
17390   fi
17391 else
17392   # We cannot hardcode anything, or else we can only hardcode existing
17393   # directories.
17394   hardcode_action_GCJ=unsupported
17395 fi
17396 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17397 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17398
17399 if test "$hardcode_action_GCJ" = relink; then
17400   # Fast installation is not supported
17401   enable_fast_install=no
17402 elif test "$shlibpath_overrides_runpath" = yes ||
17403      test "$enable_shared" = no; then
17404   # Fast installation is not necessary
17405   enable_fast_install=needless
17406 fi
17407
17408 striplib=
17409 old_striplib=
17410 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17411 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17412 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17413   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17414   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17415   echo "$as_me:$LINENO: result: yes" >&5
17416 echo "${ECHO_T}yes" >&6
17417 else
17418 # FIXME - insert some real tests, host_os isn't really good enough
17419   case $host_os in
17420    darwin*)
17421        if test -n "$STRIP" ; then
17422          striplib="$STRIP -x"
17423          echo "$as_me:$LINENO: result: yes" >&5
17424 echo "${ECHO_T}yes" >&6
17425        else
17426   echo "$as_me:$LINENO: result: no" >&5
17427 echo "${ECHO_T}no" >&6
17428 fi
17429        ;;
17430    *)
17431   echo "$as_me:$LINENO: result: no" >&5
17432 echo "${ECHO_T}no" >&6
17433     ;;
17434   esac
17435 fi
17436
17437 if test "x$enable_dlopen" != xyes; then
17438   enable_dlopen=unknown
17439   enable_dlopen_self=unknown
17440   enable_dlopen_self_static=unknown
17441 else
17442   lt_cv_dlopen=no
17443   lt_cv_dlopen_libs=
17444
17445   case $host_os in
17446   beos*)
17447     lt_cv_dlopen="load_add_on"
17448     lt_cv_dlopen_libs=
17449     lt_cv_dlopen_self=yes
17450     ;;
17451
17452   mingw* | pw32*)
17453     lt_cv_dlopen="LoadLibrary"
17454     lt_cv_dlopen_libs=
17455    ;;
17456
17457   cygwin*)
17458     lt_cv_dlopen="dlopen"
17459     lt_cv_dlopen_libs=
17460    ;;
17461
17462   darwin*)
17463   # if libdl is installed we need to link against it
17464     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17465 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17466 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17467   echo $ECHO_N "(cached) $ECHO_C" >&6
17468 else
17469   ac_check_lib_save_LIBS=$LIBS
17470 LIBS="-ldl  $LIBS"
17471 cat >conftest.$ac_ext <<_ACEOF
17472 /* confdefs.h.  */
17473 _ACEOF
17474 cat confdefs.h >>conftest.$ac_ext
17475 cat >>conftest.$ac_ext <<_ACEOF
17476 /* end confdefs.h.  */
17477
17478 /* Override any gcc2 internal prototype to avoid an error.  */
17479 #ifdef __cplusplus
17480 extern "C"
17481 #endif
17482 /* We use char because int might match the return type of a gcc2
17483    builtin and then its argument prototype would still apply.  */
17484 char dlopen ();
17485 int
17486 main ()
17487 {
17488 dlopen ();
17489   ;
17490   return 0;
17491 }
17492 _ACEOF
17493 rm -f conftest.$ac_objext conftest$ac_exeext
17494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17495   (eval $ac_link) 2>conftest.er1
17496   ac_status=$?
17497   grep -v '^ *+' conftest.er1 >conftest.err
17498   rm -f conftest.er1
17499   cat conftest.err >&5
17500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17501   (exit $ac_status); } &&
17502          { ac_try='test -z "$ac_c_werror_flag"
17503                          || test ! -s conftest.err'
17504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17505   (eval $ac_try) 2>&5
17506   ac_status=$?
17507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17508   (exit $ac_status); }; } &&
17509          { ac_try='test -s conftest$ac_exeext'
17510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17511   (eval $ac_try) 2>&5
17512   ac_status=$?
17513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17514   (exit $ac_status); }; }; then
17515   ac_cv_lib_dl_dlopen=yes
17516 else
17517   echo "$as_me: failed program was:" >&5
17518 sed 's/^/| /' conftest.$ac_ext >&5
17519
17520 ac_cv_lib_dl_dlopen=no
17521 fi
17522 rm -f conftest.err conftest.$ac_objext \
17523       conftest$ac_exeext conftest.$ac_ext
17524 LIBS=$ac_check_lib_save_LIBS
17525 fi
17526 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17527 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17528 if test $ac_cv_lib_dl_dlopen = yes; then
17529   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17530 else
17531
17532     lt_cv_dlopen="dyld"
17533     lt_cv_dlopen_libs=
17534     lt_cv_dlopen_self=yes
17535
17536 fi
17537
17538    ;;
17539
17540   *)
17541     echo "$as_me:$LINENO: checking for shl_load" >&5
17542 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17543 if test "${ac_cv_func_shl_load+set}" = set; then
17544   echo $ECHO_N "(cached) $ECHO_C" >&6
17545 else
17546   cat >conftest.$ac_ext <<_ACEOF
17547 /* confdefs.h.  */
17548 _ACEOF
17549 cat confdefs.h >>conftest.$ac_ext
17550 cat >>conftest.$ac_ext <<_ACEOF
17551 /* end confdefs.h.  */
17552 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17553    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17554 #define shl_load innocuous_shl_load
17555
17556 /* System header to define __stub macros and hopefully few prototypes,
17557     which can conflict with char shl_load (); below.
17558     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17559     <limits.h> exists even on freestanding compilers.  */
17560
17561 #ifdef __STDC__
17562 # include <limits.h>
17563 #else
17564 # include <assert.h>
17565 #endif
17566
17567 #undef shl_load
17568
17569 /* Override any gcc2 internal prototype to avoid an error.  */
17570 #ifdef __cplusplus
17571 extern "C"
17572 {
17573 #endif
17574 /* We use char because int might match the return type of a gcc2
17575    builtin and then its argument prototype would still apply.  */
17576 char shl_load ();
17577 /* The GNU C library defines this for functions which it implements
17578     to always fail with ENOSYS.  Some functions are actually named
17579     something starting with __ and the normal name is an alias.  */
17580 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17581 choke me
17582 #else
17583 char (*f) () = shl_load;
17584 #endif
17585 #ifdef __cplusplus
17586 }
17587 #endif
17588
17589 int
17590 main ()
17591 {
17592 return f != shl_load;
17593   ;
17594   return 0;
17595 }
17596 _ACEOF
17597 rm -f conftest.$ac_objext conftest$ac_exeext
17598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17599   (eval $ac_link) 2>conftest.er1
17600   ac_status=$?
17601   grep -v '^ *+' conftest.er1 >conftest.err
17602   rm -f conftest.er1
17603   cat conftest.err >&5
17604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17605   (exit $ac_status); } &&
17606          { ac_try='test -z "$ac_c_werror_flag"
17607                          || test ! -s conftest.err'
17608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17609   (eval $ac_try) 2>&5
17610   ac_status=$?
17611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17612   (exit $ac_status); }; } &&
17613          { ac_try='test -s conftest$ac_exeext'
17614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17615   (eval $ac_try) 2>&5
17616   ac_status=$?
17617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17618   (exit $ac_status); }; }; then
17619   ac_cv_func_shl_load=yes
17620 else
17621   echo "$as_me: failed program was:" >&5
17622 sed 's/^/| /' conftest.$ac_ext >&5
17623
17624 ac_cv_func_shl_load=no
17625 fi
17626 rm -f conftest.err conftest.$ac_objext \
17627       conftest$ac_exeext conftest.$ac_ext
17628 fi
17629 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17630 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17631 if test $ac_cv_func_shl_load = yes; then
17632   lt_cv_dlopen="shl_load"
17633 else
17634   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17635 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17636 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17637   echo $ECHO_N "(cached) $ECHO_C" >&6
17638 else
17639   ac_check_lib_save_LIBS=$LIBS
17640 LIBS="-ldld  $LIBS"
17641 cat >conftest.$ac_ext <<_ACEOF
17642 /* confdefs.h.  */
17643 _ACEOF
17644 cat confdefs.h >>conftest.$ac_ext
17645 cat >>conftest.$ac_ext <<_ACEOF
17646 /* end confdefs.h.  */
17647
17648 /* Override any gcc2 internal prototype to avoid an error.  */
17649 #ifdef __cplusplus
17650 extern "C"
17651 #endif
17652 /* We use char because int might match the return type of a gcc2
17653    builtin and then its argument prototype would still apply.  */
17654 char shl_load ();
17655 int
17656 main ()
17657 {
17658 shl_load ();
17659   ;
17660   return 0;
17661 }
17662 _ACEOF
17663 rm -f conftest.$ac_objext conftest$ac_exeext
17664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17665   (eval $ac_link) 2>conftest.er1
17666   ac_status=$?
17667   grep -v '^ *+' conftest.er1 >conftest.err
17668   rm -f conftest.er1
17669   cat conftest.err >&5
17670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671   (exit $ac_status); } &&
17672          { ac_try='test -z "$ac_c_werror_flag"
17673                          || test ! -s conftest.err'
17674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17675   (eval $ac_try) 2>&5
17676   ac_status=$?
17677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17678   (exit $ac_status); }; } &&
17679          { ac_try='test -s conftest$ac_exeext'
17680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17681   (eval $ac_try) 2>&5
17682   ac_status=$?
17683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17684   (exit $ac_status); }; }; then
17685   ac_cv_lib_dld_shl_load=yes
17686 else
17687   echo "$as_me: failed program was:" >&5
17688 sed 's/^/| /' conftest.$ac_ext >&5
17689
17690 ac_cv_lib_dld_shl_load=no
17691 fi
17692 rm -f conftest.err conftest.$ac_objext \
17693       conftest$ac_exeext conftest.$ac_ext
17694 LIBS=$ac_check_lib_save_LIBS
17695 fi
17696 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17697 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17698 if test $ac_cv_lib_dld_shl_load = yes; then
17699   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17700 else
17701   echo "$as_me:$LINENO: checking for dlopen" >&5
17702 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17703 if test "${ac_cv_func_dlopen+set}" = set; then
17704   echo $ECHO_N "(cached) $ECHO_C" >&6
17705 else
17706   cat >conftest.$ac_ext <<_ACEOF
17707 /* confdefs.h.  */
17708 _ACEOF
17709 cat confdefs.h >>conftest.$ac_ext
17710 cat >>conftest.$ac_ext <<_ACEOF
17711 /* end confdefs.h.  */
17712 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17713    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17714 #define dlopen innocuous_dlopen
17715
17716 /* System header to define __stub macros and hopefully few prototypes,
17717     which can conflict with char dlopen (); below.
17718     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17719     <limits.h> exists even on freestanding compilers.  */
17720
17721 #ifdef __STDC__
17722 # include <limits.h>
17723 #else
17724 # include <assert.h>
17725 #endif
17726
17727 #undef dlopen
17728
17729 /* Override any gcc2 internal prototype to avoid an error.  */
17730 #ifdef __cplusplus
17731 extern "C"
17732 {
17733 #endif
17734 /* We use char because int might match the return type of a gcc2
17735    builtin and then its argument prototype would still apply.  */
17736 char dlopen ();
17737 /* The GNU C library defines this for functions which it implements
17738     to always fail with ENOSYS.  Some functions are actually named
17739     something starting with __ and the normal name is an alias.  */
17740 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17741 choke me
17742 #else
17743 char (*f) () = dlopen;
17744 #endif
17745 #ifdef __cplusplus
17746 }
17747 #endif
17748
17749 int
17750 main ()
17751 {
17752 return f != dlopen;
17753   ;
17754   return 0;
17755 }
17756 _ACEOF
17757 rm -f conftest.$ac_objext conftest$ac_exeext
17758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17759   (eval $ac_link) 2>conftest.er1
17760   ac_status=$?
17761   grep -v '^ *+' conftest.er1 >conftest.err
17762   rm -f conftest.er1
17763   cat conftest.err >&5
17764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765   (exit $ac_status); } &&
17766          { ac_try='test -z "$ac_c_werror_flag"
17767                          || test ! -s conftest.err'
17768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17769   (eval $ac_try) 2>&5
17770   ac_status=$?
17771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17772   (exit $ac_status); }; } &&
17773          { ac_try='test -s conftest$ac_exeext'
17774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17775   (eval $ac_try) 2>&5
17776   ac_status=$?
17777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17778   (exit $ac_status); }; }; then
17779   ac_cv_func_dlopen=yes
17780 else
17781   echo "$as_me: failed program was:" >&5
17782 sed 's/^/| /' conftest.$ac_ext >&5
17783
17784 ac_cv_func_dlopen=no
17785 fi
17786 rm -f conftest.err conftest.$ac_objext \
17787       conftest$ac_exeext conftest.$ac_ext
17788 fi
17789 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17790 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17791 if test $ac_cv_func_dlopen = yes; then
17792   lt_cv_dlopen="dlopen"
17793 else
17794   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17795 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17796 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17797   echo $ECHO_N "(cached) $ECHO_C" >&6
17798 else
17799   ac_check_lib_save_LIBS=$LIBS
17800 LIBS="-ldl  $LIBS"
17801 cat >conftest.$ac_ext <<_ACEOF
17802 /* confdefs.h.  */
17803 _ACEOF
17804 cat confdefs.h >>conftest.$ac_ext
17805 cat >>conftest.$ac_ext <<_ACEOF
17806 /* end confdefs.h.  */
17807
17808 /* Override any gcc2 internal prototype to avoid an error.  */
17809 #ifdef __cplusplus
17810 extern "C"
17811 #endif
17812 /* We use char because int might match the return type of a gcc2
17813    builtin and then its argument prototype would still apply.  */
17814 char dlopen ();
17815 int
17816 main ()
17817 {
17818 dlopen ();
17819   ;
17820   return 0;
17821 }
17822 _ACEOF
17823 rm -f conftest.$ac_objext conftest$ac_exeext
17824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17825   (eval $ac_link) 2>conftest.er1
17826   ac_status=$?
17827   grep -v '^ *+' conftest.er1 >conftest.err
17828   rm -f conftest.er1
17829   cat conftest.err >&5
17830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17831   (exit $ac_status); } &&
17832          { ac_try='test -z "$ac_c_werror_flag"
17833                          || test ! -s conftest.err'
17834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17835   (eval $ac_try) 2>&5
17836   ac_status=$?
17837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17838   (exit $ac_status); }; } &&
17839          { ac_try='test -s conftest$ac_exeext'
17840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17841   (eval $ac_try) 2>&5
17842   ac_status=$?
17843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17844   (exit $ac_status); }; }; then
17845   ac_cv_lib_dl_dlopen=yes
17846 else
17847   echo "$as_me: failed program was:" >&5
17848 sed 's/^/| /' conftest.$ac_ext >&5
17849
17850 ac_cv_lib_dl_dlopen=no
17851 fi
17852 rm -f conftest.err conftest.$ac_objext \
17853       conftest$ac_exeext conftest.$ac_ext
17854 LIBS=$ac_check_lib_save_LIBS
17855 fi
17856 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17857 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17858 if test $ac_cv_lib_dl_dlopen = yes; then
17859   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17860 else
17861   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17862 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17863 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17864   echo $ECHO_N "(cached) $ECHO_C" >&6
17865 else
17866   ac_check_lib_save_LIBS=$LIBS
17867 LIBS="-lsvld  $LIBS"
17868 cat >conftest.$ac_ext <<_ACEOF
17869 /* confdefs.h.  */
17870 _ACEOF
17871 cat confdefs.h >>conftest.$ac_ext
17872 cat >>conftest.$ac_ext <<_ACEOF
17873 /* end confdefs.h.  */
17874
17875 /* Override any gcc2 internal prototype to avoid an error.  */
17876 #ifdef __cplusplus
17877 extern "C"
17878 #endif
17879 /* We use char because int might match the return type of a gcc2
17880    builtin and then its argument prototype would still apply.  */
17881 char dlopen ();
17882 int
17883 main ()
17884 {
17885 dlopen ();
17886   ;
17887   return 0;
17888 }
17889 _ACEOF
17890 rm -f conftest.$ac_objext conftest$ac_exeext
17891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17892   (eval $ac_link) 2>conftest.er1
17893   ac_status=$?
17894   grep -v '^ *+' conftest.er1 >conftest.err
17895   rm -f conftest.er1
17896   cat conftest.err >&5
17897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17898   (exit $ac_status); } &&
17899          { ac_try='test -z "$ac_c_werror_flag"
17900                          || test ! -s conftest.err'
17901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17902   (eval $ac_try) 2>&5
17903   ac_status=$?
17904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17905   (exit $ac_status); }; } &&
17906          { ac_try='test -s conftest$ac_exeext'
17907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17908   (eval $ac_try) 2>&5
17909   ac_status=$?
17910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17911   (exit $ac_status); }; }; then
17912   ac_cv_lib_svld_dlopen=yes
17913 else
17914   echo "$as_me: failed program was:" >&5
17915 sed 's/^/| /' conftest.$ac_ext >&5
17916
17917 ac_cv_lib_svld_dlopen=no
17918 fi
17919 rm -f conftest.err conftest.$ac_objext \
17920       conftest$ac_exeext conftest.$ac_ext
17921 LIBS=$ac_check_lib_save_LIBS
17922 fi
17923 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17924 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17925 if test $ac_cv_lib_svld_dlopen = yes; then
17926   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17927 else
17928   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17929 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17930 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17931   echo $ECHO_N "(cached) $ECHO_C" >&6
17932 else
17933   ac_check_lib_save_LIBS=$LIBS
17934 LIBS="-ldld  $LIBS"
17935 cat >conftest.$ac_ext <<_ACEOF
17936 /* confdefs.h.  */
17937 _ACEOF
17938 cat confdefs.h >>conftest.$ac_ext
17939 cat >>conftest.$ac_ext <<_ACEOF
17940 /* end confdefs.h.  */
17941
17942 /* Override any gcc2 internal prototype to avoid an error.  */
17943 #ifdef __cplusplus
17944 extern "C"
17945 #endif
17946 /* We use char because int might match the return type of a gcc2
17947    builtin and then its argument prototype would still apply.  */
17948 char dld_link ();
17949 int
17950 main ()
17951 {
17952 dld_link ();
17953   ;
17954   return 0;
17955 }
17956 _ACEOF
17957 rm -f conftest.$ac_objext conftest$ac_exeext
17958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17959   (eval $ac_link) 2>conftest.er1
17960   ac_status=$?
17961   grep -v '^ *+' conftest.er1 >conftest.err
17962   rm -f conftest.er1
17963   cat conftest.err >&5
17964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17965   (exit $ac_status); } &&
17966          { ac_try='test -z "$ac_c_werror_flag"
17967                          || test ! -s conftest.err'
17968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17969   (eval $ac_try) 2>&5
17970   ac_status=$?
17971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17972   (exit $ac_status); }; } &&
17973          { ac_try='test -s conftest$ac_exeext'
17974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17975   (eval $ac_try) 2>&5
17976   ac_status=$?
17977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17978   (exit $ac_status); }; }; then
17979   ac_cv_lib_dld_dld_link=yes
17980 else
17981   echo "$as_me: failed program was:" >&5
17982 sed 's/^/| /' conftest.$ac_ext >&5
17983
17984 ac_cv_lib_dld_dld_link=no
17985 fi
17986 rm -f conftest.err conftest.$ac_objext \
17987       conftest$ac_exeext conftest.$ac_ext
17988 LIBS=$ac_check_lib_save_LIBS
17989 fi
17990 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17991 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17992 if test $ac_cv_lib_dld_dld_link = yes; then
17993   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17994 fi
17995
17996
17997 fi
17998
17999
18000 fi
18001
18002
18003 fi
18004
18005
18006 fi
18007
18008
18009 fi
18010
18011     ;;
18012   esac
18013
18014   if test "x$lt_cv_dlopen" != xno; then
18015     enable_dlopen=yes
18016   else
18017     enable_dlopen=no
18018   fi
18019
18020   case $lt_cv_dlopen in
18021   dlopen)
18022     save_CPPFLAGS="$CPPFLAGS"
18023     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18024
18025     save_LDFLAGS="$LDFLAGS"
18026     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18027
18028     save_LIBS="$LIBS"
18029     LIBS="$lt_cv_dlopen_libs $LIBS"
18030
18031     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18032 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18033 if test "${lt_cv_dlopen_self+set}" = set; then
18034   echo $ECHO_N "(cached) $ECHO_C" >&6
18035 else
18036           if test "$cross_compiling" = yes; then :
18037   lt_cv_dlopen_self=cross
18038 else
18039   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18040   lt_status=$lt_dlunknown
18041   cat > conftest.$ac_ext <<EOF
18042 #line 18042 "configure"
18043 #include "confdefs.h"
18044
18045 #if HAVE_DLFCN_H
18046 #include <dlfcn.h>
18047 #endif
18048
18049 #include <stdio.h>
18050
18051 #ifdef RTLD_GLOBAL
18052 #  define LT_DLGLOBAL           RTLD_GLOBAL
18053 #else
18054 #  ifdef DL_GLOBAL
18055 #    define LT_DLGLOBAL         DL_GLOBAL
18056 #  else
18057 #    define LT_DLGLOBAL         0
18058 #  endif
18059 #endif
18060
18061 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18062    find out it does not work in some platform. */
18063 #ifndef LT_DLLAZY_OR_NOW
18064 #  ifdef RTLD_LAZY
18065 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18066 #  else
18067 #    ifdef DL_LAZY
18068 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18069 #    else
18070 #      ifdef RTLD_NOW
18071 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18072 #      else
18073 #        ifdef DL_NOW
18074 #          define LT_DLLAZY_OR_NOW      DL_NOW
18075 #        else
18076 #          define LT_DLLAZY_OR_NOW      0
18077 #        endif
18078 #      endif
18079 #    endif
18080 #  endif
18081 #endif
18082
18083 #ifdef __cplusplus
18084 extern "C" void exit (int);
18085 #endif
18086
18087 void fnord() { int i=42;}
18088 int main ()
18089 {
18090   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18091   int status = $lt_dlunknown;
18092
18093   if (self)
18094     {
18095       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18096       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18097       /* dlclose (self); */
18098     }
18099
18100     exit (status);
18101 }
18102 EOF
18103   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18104   (eval $ac_link) 2>&5
18105   ac_status=$?
18106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18107   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18108     (./conftest; exit; ) 2>/dev/null
18109     lt_status=$?
18110     case x$lt_status in
18111       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18112       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18113       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18114     esac
18115   else :
18116     # compilation failed
18117     lt_cv_dlopen_self=no
18118   fi
18119 fi
18120 rm -fr conftest*
18121
18122
18123 fi
18124 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18125 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18126
18127     if test "x$lt_cv_dlopen_self" = xyes; then
18128       LDFLAGS="$LDFLAGS $link_static_flag"
18129       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18130 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18131 if test "${lt_cv_dlopen_self_static+set}" = set; then
18132   echo $ECHO_N "(cached) $ECHO_C" >&6
18133 else
18134           if test "$cross_compiling" = yes; then :
18135   lt_cv_dlopen_self_static=cross
18136 else
18137   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18138   lt_status=$lt_dlunknown
18139   cat > conftest.$ac_ext <<EOF
18140 #line 18140 "configure"
18141 #include "confdefs.h"
18142
18143 #if HAVE_DLFCN_H
18144 #include <dlfcn.h>
18145 #endif
18146
18147 #include <stdio.h>
18148
18149 #ifdef RTLD_GLOBAL
18150 #  define LT_DLGLOBAL           RTLD_GLOBAL
18151 #else
18152 #  ifdef DL_GLOBAL
18153 #    define LT_DLGLOBAL         DL_GLOBAL
18154 #  else
18155 #    define LT_DLGLOBAL         0
18156 #  endif
18157 #endif
18158
18159 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18160    find out it does not work in some platform. */
18161 #ifndef LT_DLLAZY_OR_NOW
18162 #  ifdef RTLD_LAZY
18163 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18164 #  else
18165 #    ifdef DL_LAZY
18166 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18167 #    else
18168 #      ifdef RTLD_NOW
18169 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18170 #      else
18171 #        ifdef DL_NOW
18172 #          define LT_DLLAZY_OR_NOW      DL_NOW
18173 #        else
18174 #          define LT_DLLAZY_OR_NOW      0
18175 #        endif
18176 #      endif
18177 #    endif
18178 #  endif
18179 #endif
18180
18181 #ifdef __cplusplus
18182 extern "C" void exit (int);
18183 #endif
18184
18185 void fnord() { int i=42;}
18186 int main ()
18187 {
18188   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18189   int status = $lt_dlunknown;
18190
18191   if (self)
18192     {
18193       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18194       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18195       /* dlclose (self); */
18196     }
18197
18198     exit (status);
18199 }
18200 EOF
18201   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18202   (eval $ac_link) 2>&5
18203   ac_status=$?
18204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18205   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18206     (./conftest; exit; ) 2>/dev/null
18207     lt_status=$?
18208     case x$lt_status in
18209       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18210       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18211       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18212     esac
18213   else :
18214     # compilation failed
18215     lt_cv_dlopen_self_static=no
18216   fi
18217 fi
18218 rm -fr conftest*
18219
18220
18221 fi
18222 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18223 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18224     fi
18225
18226     CPPFLAGS="$save_CPPFLAGS"
18227     LDFLAGS="$save_LDFLAGS"
18228     LIBS="$save_LIBS"
18229     ;;
18230   esac
18231
18232   case $lt_cv_dlopen_self in
18233   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18234   *) enable_dlopen_self=unknown ;;
18235   esac
18236
18237   case $lt_cv_dlopen_self_static in
18238   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18239   *) enable_dlopen_self_static=unknown ;;
18240   esac
18241 fi
18242
18243
18244 # The else clause should only fire when bootstrapping the
18245 # libtool distribution, otherwise you forgot to ship ltmain.sh
18246 # with your package, and you will get complaints that there are
18247 # no rules to generate ltmain.sh.
18248 if test -f "$ltmain"; then
18249   # See if we are running on zsh, and set the options which allow our commands through
18250   # without removal of \ escapes.
18251   if test -n "${ZSH_VERSION+set}" ; then
18252     setopt NO_GLOB_SUBST
18253   fi
18254   # Now quote all the things that may contain metacharacters while being
18255   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18256   # variables and quote the copies for generation of the libtool script.
18257   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18258     SED SHELL STRIP \
18259     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18260     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18261     deplibs_check_method reload_flag reload_cmds need_locks \
18262     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18263     lt_cv_sys_global_symbol_to_c_name_address \
18264     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18265     old_postinstall_cmds old_postuninstall_cmds \
18266     compiler_GCJ \
18267     CC_GCJ \
18268     LD_GCJ \
18269     lt_prog_compiler_wl_GCJ \
18270     lt_prog_compiler_pic_GCJ \
18271     lt_prog_compiler_static_GCJ \
18272     lt_prog_compiler_no_builtin_flag_GCJ \
18273     export_dynamic_flag_spec_GCJ \
18274     thread_safe_flag_spec_GCJ \
18275     whole_archive_flag_spec_GCJ \
18276     enable_shared_with_static_runtimes_GCJ \
18277     old_archive_cmds_GCJ \
18278     old_archive_from_new_cmds_GCJ \
18279     predep_objects_GCJ \
18280     postdep_objects_GCJ \
18281     predeps_GCJ \
18282     postdeps_GCJ \
18283     compiler_lib_search_path_GCJ \
18284     archive_cmds_GCJ \
18285     archive_expsym_cmds_GCJ \
18286     postinstall_cmds_GCJ \
18287     postuninstall_cmds_GCJ \
18288     old_archive_from_expsyms_cmds_GCJ \
18289     allow_undefined_flag_GCJ \
18290     no_undefined_flag_GCJ \
18291     export_symbols_cmds_GCJ \
18292     hardcode_libdir_flag_spec_GCJ \
18293     hardcode_libdir_flag_spec_ld_GCJ \
18294     hardcode_libdir_separator_GCJ \
18295     hardcode_automatic_GCJ \
18296     module_cmds_GCJ \
18297     module_expsym_cmds_GCJ \
18298     lt_cv_prog_compiler_c_o_GCJ \
18299     exclude_expsyms_GCJ \
18300     include_expsyms_GCJ; do
18301
18302     case $var in
18303     old_archive_cmds_GCJ | \
18304     old_archive_from_new_cmds_GCJ | \
18305     archive_cmds_GCJ | \
18306     archive_expsym_cmds_GCJ | \
18307     module_cmds_GCJ | \
18308     module_expsym_cmds_GCJ | \
18309     old_archive_from_expsyms_cmds_GCJ | \
18310     export_symbols_cmds_GCJ | \
18311     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18312     postinstall_cmds | postuninstall_cmds | \
18313     old_postinstall_cmds | old_postuninstall_cmds | \
18314     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18315       # Double-quote double-evaled strings.
18316       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18317       ;;
18318     *)
18319       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18320       ;;
18321     esac
18322   done
18323
18324   case $lt_echo in
18325   *'\$0 --fallback-echo"')
18326     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18327     ;;
18328   esac
18329
18330 cfgfile="$ofile"
18331
18332   cat <<__EOF__ >> "$cfgfile"
18333 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18334
18335 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18336
18337 # Shell to use when invoking shell scripts.
18338 SHELL=$lt_SHELL
18339
18340 # Whether or not to build shared libraries.
18341 build_libtool_libs=$enable_shared
18342
18343 # Whether or not to build static libraries.
18344 build_old_libs=$enable_static
18345
18346 # Whether or not to add -lc for building shared libraries.
18347 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18348
18349 # Whether or not to disallow shared libs when runtime libs are static
18350 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18351
18352 # Whether or not to optimize for fast installation.
18353 fast_install=$enable_fast_install
18354
18355 # The host system.
18356 host_alias=$host_alias
18357 host=$host
18358
18359 # An echo program that does not interpret backslashes.
18360 echo=$lt_echo
18361
18362 # The archiver.
18363 AR=$lt_AR
18364 AR_FLAGS=$lt_AR_FLAGS
18365
18366 # A C compiler.
18367 LTCC=$lt_LTCC
18368
18369 # A language-specific compiler.
18370 CC=$lt_compiler_GCJ
18371
18372 # Is the compiler the GNU C compiler?
18373 with_gcc=$GCC_GCJ
18374
18375 # An ERE matcher.
18376 EGREP=$lt_EGREP
18377
18378 # The linker used to build libraries.
18379 LD=$lt_LD_GCJ
18380
18381 # Whether we need hard or soft links.
18382 LN_S=$lt_LN_S
18383
18384 # A BSD-compatible nm program.
18385 NM=$lt_NM
18386
18387 # A symbol stripping program
18388 STRIP=$lt_STRIP
18389
18390 # Used to examine libraries when file_magic_cmd begins "file"
18391 MAGIC_CMD=$MAGIC_CMD
18392
18393 # Used on cygwin: DLL creation program.
18394 DLLTOOL="$DLLTOOL"
18395
18396 # Used on cygwin: object dumper.
18397 OBJDUMP="$OBJDUMP"
18398
18399 # Used on cygwin: assembler.
18400 AS="$AS"
18401
18402 # The name of the directory that contains temporary libtool files.
18403 objdir=$objdir
18404
18405 # How to create reloadable object files.
18406 reload_flag=$lt_reload_flag
18407 reload_cmds=$lt_reload_cmds
18408
18409 # How to pass a linker flag through the compiler.
18410 wl=$lt_lt_prog_compiler_wl_GCJ
18411
18412 # Object file suffix (normally "o").
18413 objext="$ac_objext"
18414
18415 # Old archive suffix (normally "a").
18416 libext="$libext"
18417
18418 # Shared library suffix (normally ".so").
18419 shrext_cmds='$shrext_cmds'
18420
18421 # Executable file suffix (normally "").
18422 exeext="$exeext"
18423
18424 # Additional compiler flags for building library objects.
18425 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18426 pic_mode=$pic_mode
18427
18428 # What is the maximum length of a command?
18429 max_cmd_len=$lt_cv_sys_max_cmd_len
18430
18431 # Does compiler simultaneously support -c and -o options?
18432 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18433
18434 # Must we lock files when doing compilation ?
18435 need_locks=$lt_need_locks
18436
18437 # Do we need the lib prefix for modules?
18438 need_lib_prefix=$need_lib_prefix
18439
18440 # Do we need a version for libraries?
18441 need_version=$need_version
18442
18443 # Whether dlopen is supported.
18444 dlopen_support=$enable_dlopen
18445
18446 # Whether dlopen of programs is supported.
18447 dlopen_self=$enable_dlopen_self
18448
18449 # Whether dlopen of statically linked programs is supported.
18450 dlopen_self_static=$enable_dlopen_self_static
18451
18452 # Compiler flag to prevent dynamic linking.
18453 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18454
18455 # Compiler flag to turn off builtin functions.
18456 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18457
18458 # Compiler flag to allow reflexive dlopens.
18459 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18460
18461 # Compiler flag to generate shared objects directly from archives.
18462 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18463
18464 # Compiler flag to generate thread-safe objects.
18465 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18466
18467 # Library versioning type.
18468 version_type=$version_type
18469
18470 # Format of library name prefix.
18471 libname_spec=$lt_libname_spec
18472
18473 # List of archive names.  First name is the real one, the rest are links.
18474 # The last name is the one that the linker finds with -lNAME.
18475 library_names_spec=$lt_library_names_spec
18476
18477 # The coded name of the library, if different from the real name.
18478 soname_spec=$lt_soname_spec
18479
18480 # Commands used to build and install an old-style archive.
18481 RANLIB=$lt_RANLIB
18482 old_archive_cmds=$lt_old_archive_cmds_GCJ
18483 old_postinstall_cmds=$lt_old_postinstall_cmds
18484 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18485
18486 # Create an old-style archive from a shared archive.
18487 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18488
18489 # Create a temporary old-style archive to link instead of a shared archive.
18490 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18491
18492 # Commands used to build and install a shared archive.
18493 archive_cmds=$lt_archive_cmds_GCJ
18494 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18495 postinstall_cmds=$lt_postinstall_cmds
18496 postuninstall_cmds=$lt_postuninstall_cmds
18497
18498 # Commands used to build a loadable module (assumed same as above if empty)
18499 module_cmds=$lt_module_cmds_GCJ
18500 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18501
18502 # Commands to strip libraries.
18503 old_striplib=$lt_old_striplib
18504 striplib=$lt_striplib
18505
18506 # Dependencies to place before the objects being linked to create a
18507 # shared library.
18508 predep_objects=$lt_predep_objects_GCJ
18509
18510 # Dependencies to place after the objects being linked to create a
18511 # shared library.
18512 postdep_objects=$lt_postdep_objects_GCJ
18513
18514 # Dependencies to place before the objects being linked to create a
18515 # shared library.
18516 predeps=$lt_predeps_GCJ
18517
18518 # Dependencies to place after the objects being linked to create a
18519 # shared library.
18520 postdeps=$lt_postdeps_GCJ
18521
18522 # The library search path used internally by the compiler when linking
18523 # a shared library.
18524 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18525
18526 # Method to check whether dependent libraries are shared objects.
18527 deplibs_check_method=$lt_deplibs_check_method
18528
18529 # Command to use when deplibs_check_method == file_magic.
18530 file_magic_cmd=$lt_file_magic_cmd
18531
18532 # Flag that allows shared libraries with undefined symbols to be built.
18533 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18534
18535 # Flag that forces no undefined symbols.
18536 no_undefined_flag=$lt_no_undefined_flag_GCJ
18537
18538 # Commands used to finish a libtool library installation in a directory.
18539 finish_cmds=$lt_finish_cmds
18540
18541 # Same as above, but a single script fragment to be evaled but not shown.
18542 finish_eval=$lt_finish_eval
18543
18544 # Take the output of nm and produce a listing of raw symbols and C names.
18545 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18546
18547 # Transform the output of nm in a proper C declaration
18548 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18549
18550 # Transform the output of nm in a C name address pair
18551 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18552
18553 # This is the shared library runtime path variable.
18554 runpath_var=$runpath_var
18555
18556 # This is the shared library path variable.
18557 shlibpath_var=$shlibpath_var
18558
18559 # Is shlibpath searched before the hard-coded library search path?
18560 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18561
18562 # How to hardcode a shared library path into an executable.
18563 hardcode_action=$hardcode_action_GCJ
18564
18565 # Whether we should hardcode library paths into libraries.
18566 hardcode_into_libs=$hardcode_into_libs
18567
18568 # Flag to hardcode \$libdir into a binary during linking.
18569 # This must work even if \$libdir does not exist.
18570 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18571
18572 # If ld is used when linking, flag to hardcode \$libdir into
18573 # a binary during linking. This must work even if \$libdir does
18574 # not exist.
18575 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18576
18577 # Whether we need a single -rpath flag with a separated argument.
18578 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18579
18580 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18581 # resulting binary.
18582 hardcode_direct=$hardcode_direct_GCJ
18583
18584 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18585 # resulting binary.
18586 hardcode_minus_L=$hardcode_minus_L_GCJ
18587
18588 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18589 # the resulting binary.
18590 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18591
18592 # Set to yes if building a shared library automatically hardcodes DIR into the library
18593 # and all subsequent libraries and executables linked against it.
18594 hardcode_automatic=$hardcode_automatic_GCJ
18595
18596 # Variables whose values should be saved in libtool wrapper scripts and
18597 # restored at relink time.
18598 variables_saved_for_relink="$variables_saved_for_relink"
18599
18600 # Whether libtool must link a program against all its dependency libraries.
18601 link_all_deplibs=$link_all_deplibs_GCJ
18602
18603 # Compile-time system search path for libraries
18604 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18605
18606 # Run-time system search path for libraries
18607 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18608
18609 # Fix the shell variable \$srcfile for the compiler.
18610 fix_srcfile_path="$fix_srcfile_path_GCJ"
18611
18612 # Set to yes if exported symbols are required.
18613 always_export_symbols=$always_export_symbols_GCJ
18614
18615 # The commands to list exported symbols.
18616 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18617
18618 # The commands to extract the exported symbol list from a shared archive.
18619 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18620
18621 # Symbols that should not be listed in the preloaded symbols.
18622 exclude_expsyms=$lt_exclude_expsyms_GCJ
18623
18624 # Symbols that must always be exported.
18625 include_expsyms=$lt_include_expsyms_GCJ
18626
18627 # ### END LIBTOOL TAG CONFIG: $tagname
18628
18629 __EOF__
18630
18631
18632 else
18633   # If there is no Makefile yet, we rely on a make rule to execute
18634   # `config.status --recheck' to rerun these tests and create the
18635   # libtool script then.
18636   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18637   if test -f "$ltmain_in"; then
18638     test -f Makefile && make "$ltmain"
18639   fi
18640 fi
18641
18642
18643 ac_ext=c
18644 ac_cpp='$CPP $CPPFLAGS'
18645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18648
18649 CC="$lt_save_CC"
18650
18651         else
18652           tagname=""
18653         fi
18654         ;;
18655
18656       RC)
18657
18658
18659
18660 # Source file extension for RC test sources.
18661 ac_ext=rc
18662
18663 # Object file extension for compiled RC test sources.
18664 objext=o
18665 objext_RC=$objext
18666
18667 # Code to be used in simple compile tests
18668 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18669
18670 # Code to be used in simple link tests
18671 lt_simple_link_test_code="$lt_simple_compile_test_code"
18672
18673 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18674
18675 # If no C compiler was specified, use CC.
18676 LTCC=${LTCC-"$CC"}
18677
18678 # Allow CC to be a program name with arguments.
18679 compiler=$CC
18680
18681
18682 # Allow CC to be a program name with arguments.
18683 lt_save_CC="$CC"
18684 CC=${RC-"windres"}
18685 compiler=$CC
18686 compiler_RC=$CC
18687 lt_cv_prog_compiler_c_o_RC=yes
18688
18689 # The else clause should only fire when bootstrapping the
18690 # libtool distribution, otherwise you forgot to ship ltmain.sh
18691 # with your package, and you will get complaints that there are
18692 # no rules to generate ltmain.sh.
18693 if test -f "$ltmain"; then
18694   # See if we are running on zsh, and set the options which allow our commands through
18695   # without removal of \ escapes.
18696   if test -n "${ZSH_VERSION+set}" ; then
18697     setopt NO_GLOB_SUBST
18698   fi
18699   # Now quote all the things that may contain metacharacters while being
18700   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18701   # variables and quote the copies for generation of the libtool script.
18702   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18703     SED SHELL STRIP \
18704     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18705     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18706     deplibs_check_method reload_flag reload_cmds need_locks \
18707     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18708     lt_cv_sys_global_symbol_to_c_name_address \
18709     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18710     old_postinstall_cmds old_postuninstall_cmds \
18711     compiler_RC \
18712     CC_RC \
18713     LD_RC \
18714     lt_prog_compiler_wl_RC \
18715     lt_prog_compiler_pic_RC \
18716     lt_prog_compiler_static_RC \
18717     lt_prog_compiler_no_builtin_flag_RC \
18718     export_dynamic_flag_spec_RC \
18719     thread_safe_flag_spec_RC \
18720     whole_archive_flag_spec_RC \
18721     enable_shared_with_static_runtimes_RC \
18722     old_archive_cmds_RC \
18723     old_archive_from_new_cmds_RC \
18724     predep_objects_RC \
18725     postdep_objects_RC \
18726     predeps_RC \
18727     postdeps_RC \
18728     compiler_lib_search_path_RC \
18729     archive_cmds_RC \
18730     archive_expsym_cmds_RC \
18731     postinstall_cmds_RC \
18732     postuninstall_cmds_RC \
18733     old_archive_from_expsyms_cmds_RC \
18734     allow_undefined_flag_RC \
18735     no_undefined_flag_RC \
18736     export_symbols_cmds_RC \
18737     hardcode_libdir_flag_spec_RC \
18738     hardcode_libdir_flag_spec_ld_RC \
18739     hardcode_libdir_separator_RC \
18740     hardcode_automatic_RC \
18741     module_cmds_RC \
18742     module_expsym_cmds_RC \
18743     lt_cv_prog_compiler_c_o_RC \
18744     exclude_expsyms_RC \
18745     include_expsyms_RC; do
18746
18747     case $var in
18748     old_archive_cmds_RC | \
18749     old_archive_from_new_cmds_RC | \
18750     archive_cmds_RC | \
18751     archive_expsym_cmds_RC | \
18752     module_cmds_RC | \
18753     module_expsym_cmds_RC | \
18754     old_archive_from_expsyms_cmds_RC | \
18755     export_symbols_cmds_RC | \
18756     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18757     postinstall_cmds | postuninstall_cmds | \
18758     old_postinstall_cmds | old_postuninstall_cmds | \
18759     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18760       # Double-quote double-evaled strings.
18761       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18762       ;;
18763     *)
18764       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18765       ;;
18766     esac
18767   done
18768
18769   case $lt_echo in
18770   *'\$0 --fallback-echo"')
18771     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18772     ;;
18773   esac
18774
18775 cfgfile="$ofile"
18776
18777   cat <<__EOF__ >> "$cfgfile"
18778 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18779
18780 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18781
18782 # Shell to use when invoking shell scripts.
18783 SHELL=$lt_SHELL
18784
18785 # Whether or not to build shared libraries.
18786 build_libtool_libs=$enable_shared
18787
18788 # Whether or not to build static libraries.
18789 build_old_libs=$enable_static
18790
18791 # Whether or not to add -lc for building shared libraries.
18792 build_libtool_need_lc=$archive_cmds_need_lc_RC
18793
18794 # Whether or not to disallow shared libs when runtime libs are static
18795 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18796
18797 # Whether or not to optimize for fast installation.
18798 fast_install=$enable_fast_install
18799
18800 # The host system.
18801 host_alias=$host_alias
18802 host=$host
18803
18804 # An echo program that does not interpret backslashes.
18805 echo=$lt_echo
18806
18807 # The archiver.
18808 AR=$lt_AR
18809 AR_FLAGS=$lt_AR_FLAGS
18810
18811 # A C compiler.
18812 LTCC=$lt_LTCC
18813
18814 # A language-specific compiler.
18815 CC=$lt_compiler_RC
18816
18817 # Is the compiler the GNU C compiler?
18818 with_gcc=$GCC_RC
18819
18820 # An ERE matcher.
18821 EGREP=$lt_EGREP
18822
18823 # The linker used to build libraries.
18824 LD=$lt_LD_RC
18825
18826 # Whether we need hard or soft links.
18827 LN_S=$lt_LN_S
18828
18829 # A BSD-compatible nm program.
18830 NM=$lt_NM
18831
18832 # A symbol stripping program
18833 STRIP=$lt_STRIP
18834
18835 # Used to examine libraries when file_magic_cmd begins "file"
18836 MAGIC_CMD=$MAGIC_CMD
18837
18838 # Used on cygwin: DLL creation program.
18839 DLLTOOL="$DLLTOOL"
18840
18841 # Used on cygwin: object dumper.
18842 OBJDUMP="$OBJDUMP"
18843
18844 # Used on cygwin: assembler.
18845 AS="$AS"
18846
18847 # The name of the directory that contains temporary libtool files.
18848 objdir=$objdir
18849
18850 # How to create reloadable object files.
18851 reload_flag=$lt_reload_flag
18852 reload_cmds=$lt_reload_cmds
18853
18854 # How to pass a linker flag through the compiler.
18855 wl=$lt_lt_prog_compiler_wl_RC
18856
18857 # Object file suffix (normally "o").
18858 objext="$ac_objext"
18859
18860 # Old archive suffix (normally "a").
18861 libext="$libext"
18862
18863 # Shared library suffix (normally ".so").
18864 shrext_cmds='$shrext_cmds'
18865
18866 # Executable file suffix (normally "").
18867 exeext="$exeext"
18868
18869 # Additional compiler flags for building library objects.
18870 pic_flag=$lt_lt_prog_compiler_pic_RC
18871 pic_mode=$pic_mode
18872
18873 # What is the maximum length of a command?
18874 max_cmd_len=$lt_cv_sys_max_cmd_len
18875
18876 # Does compiler simultaneously support -c and -o options?
18877 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18878
18879 # Must we lock files when doing compilation ?
18880 need_locks=$lt_need_locks
18881
18882 # Do we need the lib prefix for modules?
18883 need_lib_prefix=$need_lib_prefix
18884
18885 # Do we need a version for libraries?
18886 need_version=$need_version
18887
18888 # Whether dlopen is supported.
18889 dlopen_support=$enable_dlopen
18890
18891 # Whether dlopen of programs is supported.
18892 dlopen_self=$enable_dlopen_self
18893
18894 # Whether dlopen of statically linked programs is supported.
18895 dlopen_self_static=$enable_dlopen_self_static
18896
18897 # Compiler flag to prevent dynamic linking.
18898 link_static_flag=$lt_lt_prog_compiler_static_RC
18899
18900 # Compiler flag to turn off builtin functions.
18901 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18902
18903 # Compiler flag to allow reflexive dlopens.
18904 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18905
18906 # Compiler flag to generate shared objects directly from archives.
18907 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18908
18909 # Compiler flag to generate thread-safe objects.
18910 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18911
18912 # Library versioning type.
18913 version_type=$version_type
18914
18915 # Format of library name prefix.
18916 libname_spec=$lt_libname_spec
18917
18918 # List of archive names.  First name is the real one, the rest are links.
18919 # The last name is the one that the linker finds with -lNAME.
18920 library_names_spec=$lt_library_names_spec
18921
18922 # The coded name of the library, if different from the real name.
18923 soname_spec=$lt_soname_spec
18924
18925 # Commands used to build and install an old-style archive.
18926 RANLIB=$lt_RANLIB
18927 old_archive_cmds=$lt_old_archive_cmds_RC
18928 old_postinstall_cmds=$lt_old_postinstall_cmds
18929 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18930
18931 # Create an old-style archive from a shared archive.
18932 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18933
18934 # Create a temporary old-style archive to link instead of a shared archive.
18935 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18936
18937 # Commands used to build and install a shared archive.
18938 archive_cmds=$lt_archive_cmds_RC
18939 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18940 postinstall_cmds=$lt_postinstall_cmds
18941 postuninstall_cmds=$lt_postuninstall_cmds
18942
18943 # Commands used to build a loadable module (assumed same as above if empty)
18944 module_cmds=$lt_module_cmds_RC
18945 module_expsym_cmds=$lt_module_expsym_cmds_RC
18946
18947 # Commands to strip libraries.
18948 old_striplib=$lt_old_striplib
18949 striplib=$lt_striplib
18950
18951 # Dependencies to place before the objects being linked to create a
18952 # shared library.
18953 predep_objects=$lt_predep_objects_RC
18954
18955 # Dependencies to place after the objects being linked to create a
18956 # shared library.
18957 postdep_objects=$lt_postdep_objects_RC
18958
18959 # Dependencies to place before the objects being linked to create a
18960 # shared library.
18961 predeps=$lt_predeps_RC
18962
18963 # Dependencies to place after the objects being linked to create a
18964 # shared library.
18965 postdeps=$lt_postdeps_RC
18966
18967 # The library search path used internally by the compiler when linking
18968 # a shared library.
18969 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18970
18971 # Method to check whether dependent libraries are shared objects.
18972 deplibs_check_method=$lt_deplibs_check_method
18973
18974 # Command to use when deplibs_check_method == file_magic.
18975 file_magic_cmd=$lt_file_magic_cmd
18976
18977 # Flag that allows shared libraries with undefined symbols to be built.
18978 allow_undefined_flag=$lt_allow_undefined_flag_RC
18979
18980 # Flag that forces no undefined symbols.
18981 no_undefined_flag=$lt_no_undefined_flag_RC
18982
18983 # Commands used to finish a libtool library installation in a directory.
18984 finish_cmds=$lt_finish_cmds
18985
18986 # Same as above, but a single script fragment to be evaled but not shown.
18987 finish_eval=$lt_finish_eval
18988
18989 # Take the output of nm and produce a listing of raw symbols and C names.
18990 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18991
18992 # Transform the output of nm in a proper C declaration
18993 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18994
18995 # Transform the output of nm in a C name address pair
18996 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18997
18998 # This is the shared library runtime path variable.
18999 runpath_var=$runpath_var
19000
19001 # This is the shared library path variable.
19002 shlibpath_var=$shlibpath_var
19003
19004 # Is shlibpath searched before the hard-coded library search path?
19005 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19006
19007 # How to hardcode a shared library path into an executable.
19008 hardcode_action=$hardcode_action_RC
19009
19010 # Whether we should hardcode library paths into libraries.
19011 hardcode_into_libs=$hardcode_into_libs
19012
19013 # Flag to hardcode \$libdir into a binary during linking.
19014 # This must work even if \$libdir does not exist.
19015 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19016
19017 # If ld is used when linking, flag to hardcode \$libdir into
19018 # a binary during linking. This must work even if \$libdir does
19019 # not exist.
19020 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19021
19022 # Whether we need a single -rpath flag with a separated argument.
19023 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19024
19025 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19026 # resulting binary.
19027 hardcode_direct=$hardcode_direct_RC
19028
19029 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19030 # resulting binary.
19031 hardcode_minus_L=$hardcode_minus_L_RC
19032
19033 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19034 # the resulting binary.
19035 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19036
19037 # Set to yes if building a shared library automatically hardcodes DIR into the library
19038 # and all subsequent libraries and executables linked against it.
19039 hardcode_automatic=$hardcode_automatic_RC
19040
19041 # Variables whose values should be saved in libtool wrapper scripts and
19042 # restored at relink time.
19043 variables_saved_for_relink="$variables_saved_for_relink"
19044
19045 # Whether libtool must link a program against all its dependency libraries.
19046 link_all_deplibs=$link_all_deplibs_RC
19047
19048 # Compile-time system search path for libraries
19049 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19050
19051 # Run-time system search path for libraries
19052 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19053
19054 # Fix the shell variable \$srcfile for the compiler.
19055 fix_srcfile_path="$fix_srcfile_path_RC"
19056
19057 # Set to yes if exported symbols are required.
19058 always_export_symbols=$always_export_symbols_RC
19059
19060 # The commands to list exported symbols.
19061 export_symbols_cmds=$lt_export_symbols_cmds_RC
19062
19063 # The commands to extract the exported symbol list from a shared archive.
19064 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19065
19066 # Symbols that should not be listed in the preloaded symbols.
19067 exclude_expsyms=$lt_exclude_expsyms_RC
19068
19069 # Symbols that must always be exported.
19070 include_expsyms=$lt_include_expsyms_RC
19071
19072 # ### END LIBTOOL TAG CONFIG: $tagname
19073
19074 __EOF__
19075
19076
19077 else
19078   # If there is no Makefile yet, we rely on a make rule to execute
19079   # `config.status --recheck' to rerun these tests and create the
19080   # libtool script then.
19081   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19082   if test -f "$ltmain_in"; then
19083     test -f Makefile && make "$ltmain"
19084   fi
19085 fi
19086
19087
19088 ac_ext=c
19089 ac_cpp='$CPP $CPPFLAGS'
19090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19093
19094 CC="$lt_save_CC"
19095
19096         ;;
19097
19098       *)
19099         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19100 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19101    { (exit 1); exit 1; }; }
19102         ;;
19103       esac
19104
19105       # Append the new tag name to the list of available tags.
19106       if test -n "$tagname" ; then
19107       available_tags="$available_tags $tagname"
19108     fi
19109     fi
19110   done
19111   IFS="$lt_save_ifs"
19112
19113   # Now substitute the updated list of available tags.
19114   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19115     mv "${ofile}T" "$ofile"
19116     chmod +x "$ofile"
19117   else
19118     rm -f "${ofile}T"
19119     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19120 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19121    { (exit 1); exit 1; }; }
19122   fi
19123 fi
19124
19125
19126
19127 # This can be used to rebuild libtool when needed
19128 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19129
19130 # Always use our own libtool.
19131 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19132
19133 # Prevent multiple expansion
19134
19135
19136
19137
19138
19139
19140
19141
19142
19143
19144
19145
19146
19147
19148
19149
19150
19151
19152
19153
19154
19155
19156 #AC_CONFIG_HEADERS(sysdep.h)
19157 #AC_VERSION(6.72)
19158 #PACKAGE=gettext
19159 #VERSION=0.14.5
19160 #AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
19161 #AC_DEFINE_UNQUOTED(VERSION, "$VERSION")
19162 #AC_SUBST(PACKAGE)
19163 #AC_SUBST(VERSION)
19164 #AM_INIT_AUTOMAKE(gettext, 0.14.5)
19165
19166
19167 #AC_CANONICAL_HOST
19168 # Find a good install program.  We prefer a C program (faster),
19169 # so one script is as good as another.  But avoid the broken or
19170 # incompatible versions:
19171 # SysV /etc/install, /usr/sbin/install
19172 # SunOS /usr/etc/install
19173 # IRIX /sbin/install
19174 # AIX /bin/install
19175 # AmigaOS /C/install, which installs bootblocks on floppy discs
19176 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
19177 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
19178 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
19179 # OS/2's system install, which has a completely different semantic
19180 # ./install, which can be erroneously created by make from ./install.sh.
19181 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
19182 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
19183 if test -z "$INSTALL"; then
19184 if test "${ac_cv_path_install+set}" = set; then
19185   echo $ECHO_N "(cached) $ECHO_C" >&6
19186 else
19187   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19188 for as_dir in $PATH
19189 do
19190   IFS=$as_save_IFS
19191   test -z "$as_dir" && as_dir=.
19192   # Account for people who put trailing slashes in PATH elements.
19193 case $as_dir/ in
19194   ./ | .// | /cC/* | \
19195   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
19196   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
19197   /usr/ucb/* ) ;;
19198   *)
19199     # OSF1 and SCO ODT 3.0 have their own names for install.
19200     # Don't use installbsd from OSF since it installs stuff as root
19201     # by default.
19202     for ac_prog in ginstall scoinst install; do
19203       for ac_exec_ext in '' $ac_executable_extensions; do
19204         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
19205           if test $ac_prog = install &&
19206             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19207             # AIX install.  It has an incompatible calling convention.
19208             :
19209           elif test $ac_prog = install &&
19210             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19211             # program-specific install script used by HP pwplus--don't use.
19212             :
19213           else
19214             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
19215             break 3
19216           fi
19217         fi
19218       done
19219     done
19220     ;;
19221 esac
19222 done
19223
19224
19225 fi
19226   if test "${ac_cv_path_install+set}" = set; then
19227     INSTALL=$ac_cv_path_install
19228   else
19229     # As a last resort, use the slow shell script.  We don't cache a
19230     # path for INSTALL within a source directory, because that will
19231     # break other packages using the cache if that directory is
19232     # removed, or if the path is relative.
19233     INSTALL=$ac_install_sh
19234   fi
19235 fi
19236 echo "$as_me:$LINENO: result: $INSTALL" >&5
19237 echo "${ECHO_T}$INSTALL" >&6
19238
19239 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
19240 # It thinks the first close brace ends the variable substitution.
19241 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
19242
19243 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
19244
19245 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
19246
19247 # Extract the first word of "autoconf", so it can be a program name with args.
19248 set dummy autoconf; ac_word=$2
19249 echo "$as_me:$LINENO: checking for $ac_word" >&5
19250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19251 if test "${ac_cv_prog_AUTOCONF+set}" = set; then
19252   echo $ECHO_N "(cached) $ECHO_C" >&6
19253 else
19254   if test -n "$AUTOCONF"; then
19255   ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
19256 else
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_prog_AUTOCONF=""
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 fi
19272 fi
19273 AUTOCONF=$ac_cv_prog_AUTOCONF
19274 if test -n "$AUTOCONF"; then
19275   echo "$as_me:$LINENO: result: $AUTOCONF" >&5
19276 echo "${ECHO_T}$AUTOCONF" >&6
19277 else
19278   echo "$as_me:$LINENO: result: no" >&5
19279 echo "${ECHO_T}no" >&6
19280 fi
19281
19282 # Extract the first word of "sed", so it can be a program name with args.
19283 set dummy sed; ac_word=$2
19284 echo "$as_me:$LINENO: checking for $ac_word" >&5
19285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19286 if test "${ac_cv_prog_SED+set}" = set; then
19287   echo $ECHO_N "(cached) $ECHO_C" >&6
19288 else
19289   if test -n "$SED"; then
19290   ac_cv_prog_SED="$SED" # Let the user override the test.
19291 else
19292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19293 for as_dir in $PATH
19294 do
19295   IFS=$as_save_IFS
19296   test -z "$as_dir" && as_dir=.
19297   for ac_exec_ext in '' $ac_executable_extensions; do
19298   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19299     ac_cv_prog_SED="sed"
19300     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19301     break 2
19302   fi
19303 done
19304 done
19305
19306   test -z "$ac_cv_prog_SED" && ac_cv_prog_SED="no"
19307 fi
19308 fi
19309 SED=$ac_cv_prog_SED
19310 if test -n "$SED"; then
19311   echo "$as_me:$LINENO: result: $SED" >&5
19312 echo "${ECHO_T}$SED" >&6
19313 else
19314   echo "$as_me:$LINENO: result: no" >&5
19315 echo "${ECHO_T}no" >&6
19316 fi
19317
19318
19319
19320 #AC_ARG_WITH(with_libical, [  --with-libical          use libical calendaring library])
19321 #AC_ARG_WITH(with_zlib,    [  --with-zlib             use zlib compression if present])
19322 #AC_ARG_WITH(with_newt,    [  --with-newt             use newt window library])
19323 #AC_ARG_WITH(ssl,
19324 #       [  --with-ssl=PATH         Specify path to OpenSSL installation ],
19325 #       [
19326 #               if test "x$withval" != "xno" ; then
19327 #                       tryssldir=$withval
19328 #               fi
19329 #       ]
19330 #)
19331 #AC_DEFINE([HAVE_ICAL], [  --with-libical          use libical calendaring library])
19332
19333 cat >>confdefs.h <<\_ACEOF
19334 #define HAVE_OPENSSL 1
19335 _ACEOF
19336
19337
19338
19339 PTHREAD_DEFS=-D_REENTRANT
19340 case "$host" in
19341                                 alpha*-dec-osf*)
19342                 test -z "$CC" && CC=cc
19343                 LIBS=-pthread
19344         ;;
19345                 *-*-freebsd*)
19346                 LIBS=-pthread
19347                 PTHREAD_DEFS=-D_THREAD_SAFE
19348         ;;
19349         *-*-solaris*)
19350                 PTHREAD_DEFS='-D_REENTRANT -D_PTHREADS'
19351         ;;
19352 esac
19353
19354
19355 ac_ext=c
19356 ac_cpp='$CPP $CPPFLAGS'
19357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19360 if test -n "$ac_tool_prefix"; then
19361   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19362 set dummy ${ac_tool_prefix}gcc; ac_word=$2
19363 echo "$as_me:$LINENO: checking for $ac_word" >&5
19364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19365 if test "${ac_cv_prog_CC+set}" = set; then
19366   echo $ECHO_N "(cached) $ECHO_C" >&6
19367 else
19368   if test -n "$CC"; then
19369   ac_cv_prog_CC="$CC" # Let the user override the test.
19370 else
19371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19372 for as_dir in $PATH
19373 do
19374   IFS=$as_save_IFS
19375   test -z "$as_dir" && as_dir=.
19376   for ac_exec_ext in '' $ac_executable_extensions; do
19377   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19378     ac_cv_prog_CC="${ac_tool_prefix}gcc"
19379     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19380     break 2
19381   fi
19382 done
19383 done
19384
19385 fi
19386 fi
19387 CC=$ac_cv_prog_CC
19388 if test -n "$CC"; then
19389   echo "$as_me:$LINENO: result: $CC" >&5
19390 echo "${ECHO_T}$CC" >&6
19391 else
19392   echo "$as_me:$LINENO: result: no" >&5
19393 echo "${ECHO_T}no" >&6
19394 fi
19395
19396 fi
19397 if test -z "$ac_cv_prog_CC"; then
19398   ac_ct_CC=$CC
19399   # Extract the first word of "gcc", so it can be a program name with args.
19400 set dummy gcc; ac_word=$2
19401 echo "$as_me:$LINENO: checking for $ac_word" >&5
19402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19403 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19404   echo $ECHO_N "(cached) $ECHO_C" >&6
19405 else
19406   if test -n "$ac_ct_CC"; then
19407   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19408 else
19409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19410 for as_dir in $PATH
19411 do
19412   IFS=$as_save_IFS
19413   test -z "$as_dir" && as_dir=.
19414   for ac_exec_ext in '' $ac_executable_extensions; do
19415   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19416     ac_cv_prog_ac_ct_CC="gcc"
19417     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19418     break 2
19419   fi
19420 done
19421 done
19422
19423 fi
19424 fi
19425 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19426 if test -n "$ac_ct_CC"; then
19427   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19428 echo "${ECHO_T}$ac_ct_CC" >&6
19429 else
19430   echo "$as_me:$LINENO: result: no" >&5
19431 echo "${ECHO_T}no" >&6
19432 fi
19433
19434   CC=$ac_ct_CC
19435 else
19436   CC="$ac_cv_prog_CC"
19437 fi
19438
19439 if test -z "$CC"; then
19440   if test -n "$ac_tool_prefix"; then
19441   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19442 set dummy ${ac_tool_prefix}cc; ac_word=$2
19443 echo "$as_me:$LINENO: checking for $ac_word" >&5
19444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19445 if test "${ac_cv_prog_CC+set}" = set; then
19446   echo $ECHO_N "(cached) $ECHO_C" >&6
19447 else
19448   if test -n "$CC"; then
19449   ac_cv_prog_CC="$CC" # Let the user override the test.
19450 else
19451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19452 for as_dir in $PATH
19453 do
19454   IFS=$as_save_IFS
19455   test -z "$as_dir" && as_dir=.
19456   for ac_exec_ext in '' $ac_executable_extensions; do
19457   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19458     ac_cv_prog_CC="${ac_tool_prefix}cc"
19459     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19460     break 2
19461   fi
19462 done
19463 done
19464
19465 fi
19466 fi
19467 CC=$ac_cv_prog_CC
19468 if test -n "$CC"; then
19469   echo "$as_me:$LINENO: result: $CC" >&5
19470 echo "${ECHO_T}$CC" >&6
19471 else
19472   echo "$as_me:$LINENO: result: no" >&5
19473 echo "${ECHO_T}no" >&6
19474 fi
19475
19476 fi
19477 if test -z "$ac_cv_prog_CC"; then
19478   ac_ct_CC=$CC
19479   # Extract the first word of "cc", so it can be a program name with args.
19480 set dummy cc; ac_word=$2
19481 echo "$as_me:$LINENO: checking for $ac_word" >&5
19482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19483 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19484   echo $ECHO_N "(cached) $ECHO_C" >&6
19485 else
19486   if test -n "$ac_ct_CC"; then
19487   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19488 else
19489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19490 for as_dir in $PATH
19491 do
19492   IFS=$as_save_IFS
19493   test -z "$as_dir" && as_dir=.
19494   for ac_exec_ext in '' $ac_executable_extensions; do
19495   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19496     ac_cv_prog_ac_ct_CC="cc"
19497     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19498     break 2
19499   fi
19500 done
19501 done
19502
19503 fi
19504 fi
19505 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19506 if test -n "$ac_ct_CC"; then
19507   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19508 echo "${ECHO_T}$ac_ct_CC" >&6
19509 else
19510   echo "$as_me:$LINENO: result: no" >&5
19511 echo "${ECHO_T}no" >&6
19512 fi
19513
19514   CC=$ac_ct_CC
19515 else
19516   CC="$ac_cv_prog_CC"
19517 fi
19518
19519 fi
19520 if test -z "$CC"; then
19521   # Extract the first word of "cc", so it can be a program name with args.
19522 set dummy cc; ac_word=$2
19523 echo "$as_me:$LINENO: checking for $ac_word" >&5
19524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19525 if test "${ac_cv_prog_CC+set}" = set; then
19526   echo $ECHO_N "(cached) $ECHO_C" >&6
19527 else
19528   if test -n "$CC"; then
19529   ac_cv_prog_CC="$CC" # Let the user override the test.
19530 else
19531   ac_prog_rejected=no
19532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19533 for as_dir in $PATH
19534 do
19535   IFS=$as_save_IFS
19536   test -z "$as_dir" && as_dir=.
19537   for ac_exec_ext in '' $ac_executable_extensions; do
19538   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19539     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19540        ac_prog_rejected=yes
19541        continue
19542      fi
19543     ac_cv_prog_CC="cc"
19544     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19545     break 2
19546   fi
19547 done
19548 done
19549
19550 if test $ac_prog_rejected = yes; then
19551   # We found a bogon in the path, so make sure we never use it.
19552   set dummy $ac_cv_prog_CC
19553   shift
19554   if test $# != 0; then
19555     # We chose a different compiler from the bogus one.
19556     # However, it has the same basename, so the bogon will be chosen
19557     # first if we set CC to just the basename; use the full file name.
19558     shift
19559     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19560   fi
19561 fi
19562 fi
19563 fi
19564 CC=$ac_cv_prog_CC
19565 if test -n "$CC"; then
19566   echo "$as_me:$LINENO: result: $CC" >&5
19567 echo "${ECHO_T}$CC" >&6
19568 else
19569   echo "$as_me:$LINENO: result: no" >&5
19570 echo "${ECHO_T}no" >&6
19571 fi
19572
19573 fi
19574 if test -z "$CC"; then
19575   if test -n "$ac_tool_prefix"; then
19576   for ac_prog in cl
19577   do
19578     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19579 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19580 echo "$as_me:$LINENO: checking for $ac_word" >&5
19581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19582 if test "${ac_cv_prog_CC+set}" = set; then
19583   echo $ECHO_N "(cached) $ECHO_C" >&6
19584 else
19585   if test -n "$CC"; then
19586   ac_cv_prog_CC="$CC" # Let the user override the test.
19587 else
19588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19589 for as_dir in $PATH
19590 do
19591   IFS=$as_save_IFS
19592   test -z "$as_dir" && as_dir=.
19593   for ac_exec_ext in '' $ac_executable_extensions; do
19594   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19595     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19596     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19597     break 2
19598   fi
19599 done
19600 done
19601
19602 fi
19603 fi
19604 CC=$ac_cv_prog_CC
19605 if test -n "$CC"; then
19606   echo "$as_me:$LINENO: result: $CC" >&5
19607 echo "${ECHO_T}$CC" >&6
19608 else
19609   echo "$as_me:$LINENO: result: no" >&5
19610 echo "${ECHO_T}no" >&6
19611 fi
19612
19613     test -n "$CC" && break
19614   done
19615 fi
19616 if test -z "$CC"; then
19617   ac_ct_CC=$CC
19618   for ac_prog in cl
19619 do
19620   # Extract the first word of "$ac_prog", so it can be a program name with args.
19621 set dummy $ac_prog; ac_word=$2
19622 echo "$as_me:$LINENO: checking for $ac_word" >&5
19623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19624 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19625   echo $ECHO_N "(cached) $ECHO_C" >&6
19626 else
19627   if test -n "$ac_ct_CC"; then
19628   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19629 else
19630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19631 for as_dir in $PATH
19632 do
19633   IFS=$as_save_IFS
19634   test -z "$as_dir" && as_dir=.
19635   for ac_exec_ext in '' $ac_executable_extensions; do
19636   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19637     ac_cv_prog_ac_ct_CC="$ac_prog"
19638     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19639     break 2
19640   fi
19641 done
19642 done
19643
19644 fi
19645 fi
19646 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19647 if test -n "$ac_ct_CC"; then
19648   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19649 echo "${ECHO_T}$ac_ct_CC" >&6
19650 else
19651   echo "$as_me:$LINENO: result: no" >&5
19652 echo "${ECHO_T}no" >&6
19653 fi
19654
19655   test -n "$ac_ct_CC" && break
19656 done
19657
19658   CC=$ac_ct_CC
19659 fi
19660
19661 fi
19662
19663
19664 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19665 See \`config.log' for more details." >&5
19666 echo "$as_me: error: no acceptable C compiler found in \$PATH
19667 See \`config.log' for more details." >&2;}
19668    { (exit 1); exit 1; }; }
19669
19670 # Provide some information about the compiler.
19671 echo "$as_me:$LINENO:" \
19672      "checking for C compiler version" >&5
19673 ac_compiler=`set X $ac_compile; echo $2`
19674 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
19675   (eval $ac_compiler --version </dev/null >&5) 2>&5
19676   ac_status=$?
19677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19678   (exit $ac_status); }
19679 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
19680   (eval $ac_compiler -v </dev/null >&5) 2>&5
19681   ac_status=$?
19682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19683   (exit $ac_status); }
19684 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
19685   (eval $ac_compiler -V </dev/null >&5) 2>&5
19686   ac_status=$?
19687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19688   (exit $ac_status); }
19689
19690 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19691 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
19692 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19693   echo $ECHO_N "(cached) $ECHO_C" >&6
19694 else
19695   cat >conftest.$ac_ext <<_ACEOF
19696 /* confdefs.h.  */
19697 _ACEOF
19698 cat confdefs.h >>conftest.$ac_ext
19699 cat >>conftest.$ac_ext <<_ACEOF
19700 /* end confdefs.h.  */
19701
19702 int
19703 main ()
19704 {
19705 #ifndef __GNUC__
19706        choke me
19707 #endif
19708
19709   ;
19710   return 0;
19711 }
19712 _ACEOF
19713 rm -f conftest.$ac_objext
19714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19715   (eval $ac_compile) 2>conftest.er1
19716   ac_status=$?
19717   grep -v '^ *+' conftest.er1 >conftest.err
19718   rm -f conftest.er1
19719   cat conftest.err >&5
19720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19721   (exit $ac_status); } &&
19722          { ac_try='test -z "$ac_c_werror_flag"
19723                          || test ! -s conftest.err'
19724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19725   (eval $ac_try) 2>&5
19726   ac_status=$?
19727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19728   (exit $ac_status); }; } &&
19729          { ac_try='test -s conftest.$ac_objext'
19730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19731   (eval $ac_try) 2>&5
19732   ac_status=$?
19733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19734   (exit $ac_status); }; }; then
19735   ac_compiler_gnu=yes
19736 else
19737   echo "$as_me: failed program was:" >&5
19738 sed 's/^/| /' conftest.$ac_ext >&5
19739
19740 ac_compiler_gnu=no
19741 fi
19742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19743 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19744
19745 fi
19746 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19747 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
19748 GCC=`test $ac_compiler_gnu = yes && echo yes`
19749 ac_test_CFLAGS=${CFLAGS+set}
19750 ac_save_CFLAGS=$CFLAGS
19751 CFLAGS="-g"
19752 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19753 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
19754 if test "${ac_cv_prog_cc_g+set}" = set; then
19755   echo $ECHO_N "(cached) $ECHO_C" >&6
19756 else
19757   cat >conftest.$ac_ext <<_ACEOF
19758 /* confdefs.h.  */
19759 _ACEOF
19760 cat confdefs.h >>conftest.$ac_ext
19761 cat >>conftest.$ac_ext <<_ACEOF
19762 /* end confdefs.h.  */
19763
19764 int
19765 main ()
19766 {
19767
19768   ;
19769   return 0;
19770 }
19771 _ACEOF
19772 rm -f conftest.$ac_objext
19773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19774   (eval $ac_compile) 2>conftest.er1
19775   ac_status=$?
19776   grep -v '^ *+' conftest.er1 >conftest.err
19777   rm -f conftest.er1
19778   cat conftest.err >&5
19779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19780   (exit $ac_status); } &&
19781          { ac_try='test -z "$ac_c_werror_flag"
19782                          || test ! -s conftest.err'
19783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19784   (eval $ac_try) 2>&5
19785   ac_status=$?
19786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19787   (exit $ac_status); }; } &&
19788          { ac_try='test -s conftest.$ac_objext'
19789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19790   (eval $ac_try) 2>&5
19791   ac_status=$?
19792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19793   (exit $ac_status); }; }; then
19794   ac_cv_prog_cc_g=yes
19795 else
19796   echo "$as_me: failed program was:" >&5
19797 sed 's/^/| /' conftest.$ac_ext >&5
19798
19799 ac_cv_prog_cc_g=no
19800 fi
19801 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19802 fi
19803 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19804 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
19805 if test "$ac_test_CFLAGS" = set; then
19806   CFLAGS=$ac_save_CFLAGS
19807 elif test $ac_cv_prog_cc_g = yes; then
19808   if test "$GCC" = yes; then
19809     CFLAGS="-g -O2"
19810   else
19811     CFLAGS="-g"
19812   fi
19813 else
19814   if test "$GCC" = yes; then
19815     CFLAGS="-O2"
19816   else
19817     CFLAGS=
19818   fi
19819 fi
19820 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
19821 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
19822 if test "${ac_cv_prog_cc_stdc+set}" = set; then
19823   echo $ECHO_N "(cached) $ECHO_C" >&6
19824 else
19825   ac_cv_prog_cc_stdc=no
19826 ac_save_CC=$CC
19827 cat >conftest.$ac_ext <<_ACEOF
19828 /* confdefs.h.  */
19829 _ACEOF
19830 cat confdefs.h >>conftest.$ac_ext
19831 cat >>conftest.$ac_ext <<_ACEOF
19832 /* end confdefs.h.  */
19833 #include <stdarg.h>
19834 #include <stdio.h>
19835 #include <sys/types.h>
19836 #include <sys/stat.h>
19837 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
19838 struct buf { int x; };
19839 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19840 static char *e (p, i)
19841      char **p;
19842      int i;
19843 {
19844   return p[i];
19845 }
19846 static char *f (char * (*g) (char **, int), char **p, ...)
19847 {
19848   char *s;
19849   va_list v;
19850   va_start (v,p);
19851   s = g (p, va_arg (v,int));
19852   va_end (v);
19853   return s;
19854 }
19855
19856 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
19857    function prototypes and stuff, but not '\xHH' hex character constants.
19858    These don't provoke an error unfortunately, instead are silently treated
19859    as 'x'.  The following induces an error, until -std1 is added to get
19860    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
19861    array size at least.  It's necessary to write '\x00'==0 to get something
19862    that's true only with -std1.  */
19863 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19864
19865 int test (int i, double x);
19866 struct s1 {int (*f) (int a);};
19867 struct s2 {int (*f) (double a);};
19868 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19869 int argc;
19870 char **argv;
19871 int
19872 main ()
19873 {
19874 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
19875   ;
19876   return 0;
19877 }
19878 _ACEOF
19879 # Don't try gcc -ansi; that turns off useful extensions and
19880 # breaks some systems' header files.
19881 # AIX                   -qlanglvl=ansi
19882 # Ultrix and OSF/1      -std1
19883 # HP-UX 10.20 and later -Ae
19884 # HP-UX older versions  -Aa -D_HPUX_SOURCE
19885 # SVR4                  -Xc -D__EXTENSIONS__
19886 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19887 do
19888   CC="$ac_save_CC $ac_arg"
19889   rm -f conftest.$ac_objext
19890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19891   (eval $ac_compile) 2>conftest.er1
19892   ac_status=$?
19893   grep -v '^ *+' conftest.er1 >conftest.err
19894   rm -f conftest.er1
19895   cat conftest.err >&5
19896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19897   (exit $ac_status); } &&
19898          { ac_try='test -z "$ac_c_werror_flag"
19899                          || test ! -s conftest.err'
19900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19901   (eval $ac_try) 2>&5
19902   ac_status=$?
19903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19904   (exit $ac_status); }; } &&
19905          { ac_try='test -s conftest.$ac_objext'
19906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19907   (eval $ac_try) 2>&5
19908   ac_status=$?
19909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19910   (exit $ac_status); }; }; then
19911   ac_cv_prog_cc_stdc=$ac_arg
19912 break
19913 else
19914   echo "$as_me: failed program was:" >&5
19915 sed 's/^/| /' conftest.$ac_ext >&5
19916
19917 fi
19918 rm -f conftest.err conftest.$ac_objext
19919 done
19920 rm -f conftest.$ac_ext conftest.$ac_objext
19921 CC=$ac_save_CC
19922
19923 fi
19924
19925 case "x$ac_cv_prog_cc_stdc" in
19926   x|xno)
19927     echo "$as_me:$LINENO: result: none needed" >&5
19928 echo "${ECHO_T}none needed" >&6 ;;
19929   *)
19930     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
19931 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
19932     CC="$CC $ac_cv_prog_cc_stdc" ;;
19933 esac
19934
19935 # Some people use a C++ compiler to compile C.  Since we use `exit',
19936 # in C++ we need to declare it.  In case someone uses the same compiler
19937 # for both compiling C and C++ we need to have the C++ compiler decide
19938 # the declaration of exit, since it's the most demanding environment.
19939 cat >conftest.$ac_ext <<_ACEOF
19940 #ifndef __cplusplus
19941   choke me
19942 #endif
19943 _ACEOF
19944 rm -f conftest.$ac_objext
19945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19946   (eval $ac_compile) 2>conftest.er1
19947   ac_status=$?
19948   grep -v '^ *+' conftest.er1 >conftest.err
19949   rm -f conftest.er1
19950   cat conftest.err >&5
19951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19952   (exit $ac_status); } &&
19953          { ac_try='test -z "$ac_c_werror_flag"
19954                          || test ! -s conftest.err'
19955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19956   (eval $ac_try) 2>&5
19957   ac_status=$?
19958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19959   (exit $ac_status); }; } &&
19960          { ac_try='test -s conftest.$ac_objext'
19961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19962   (eval $ac_try) 2>&5
19963   ac_status=$?
19964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19965   (exit $ac_status); }; }; then
19966   for ac_declaration in \
19967    '' \
19968    'extern "C" void std::exit (int) throw (); using std::exit;' \
19969    'extern "C" void std::exit (int); using std::exit;' \
19970    'extern "C" void exit (int) throw ();' \
19971    'extern "C" void exit (int);' \
19972    'void exit (int);'
19973 do
19974   cat >conftest.$ac_ext <<_ACEOF
19975 /* confdefs.h.  */
19976 _ACEOF
19977 cat confdefs.h >>conftest.$ac_ext
19978 cat >>conftest.$ac_ext <<_ACEOF
19979 /* end confdefs.h.  */
19980 $ac_declaration
19981 #include <stdlib.h>
19982 int
19983 main ()
19984 {
19985 exit (42);
19986   ;
19987   return 0;
19988 }
19989 _ACEOF
19990 rm -f conftest.$ac_objext
19991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19992   (eval $ac_compile) 2>conftest.er1
19993   ac_status=$?
19994   grep -v '^ *+' conftest.er1 >conftest.err
19995   rm -f conftest.er1
19996   cat conftest.err >&5
19997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19998   (exit $ac_status); } &&
19999          { ac_try='test -z "$ac_c_werror_flag"
20000                          || test ! -s conftest.err'
20001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20002   (eval $ac_try) 2>&5
20003   ac_status=$?
20004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20005   (exit $ac_status); }; } &&
20006          { ac_try='test -s conftest.$ac_objext'
20007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20008   (eval $ac_try) 2>&5
20009   ac_status=$?
20010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20011   (exit $ac_status); }; }; then
20012   :
20013 else
20014   echo "$as_me: failed program was:" >&5
20015 sed 's/^/| /' conftest.$ac_ext >&5
20016
20017 continue
20018 fi
20019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20020   cat >conftest.$ac_ext <<_ACEOF
20021 /* confdefs.h.  */
20022 _ACEOF
20023 cat confdefs.h >>conftest.$ac_ext
20024 cat >>conftest.$ac_ext <<_ACEOF
20025 /* end confdefs.h.  */
20026 $ac_declaration
20027 int
20028 main ()
20029 {
20030 exit (42);
20031   ;
20032   return 0;
20033 }
20034 _ACEOF
20035 rm -f conftest.$ac_objext
20036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20037   (eval $ac_compile) 2>conftest.er1
20038   ac_status=$?
20039   grep -v '^ *+' conftest.er1 >conftest.err
20040   rm -f conftest.er1
20041   cat conftest.err >&5
20042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20043   (exit $ac_status); } &&
20044          { ac_try='test -z "$ac_c_werror_flag"
20045                          || test ! -s conftest.err'
20046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20047   (eval $ac_try) 2>&5
20048   ac_status=$?
20049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20050   (exit $ac_status); }; } &&
20051          { ac_try='test -s conftest.$ac_objext'
20052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20053   (eval $ac_try) 2>&5
20054   ac_status=$?
20055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20056   (exit $ac_status); }; }; then
20057   break
20058 else
20059   echo "$as_me: failed program was:" >&5
20060 sed 's/^/| /' conftest.$ac_ext >&5
20061
20062 fi
20063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20064 done
20065 rm -f conftest*
20066 if test -n "$ac_declaration"; then
20067   echo '#ifdef __cplusplus' >>confdefs.h
20068   echo $ac_declaration      >>confdefs.h
20069   echo '#endif'             >>confdefs.h
20070 fi
20071
20072 else
20073   echo "$as_me: failed program was:" >&5
20074 sed 's/^/| /' conftest.$ac_ext >&5
20075
20076 fi
20077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20078 ac_ext=c
20079 ac_cpp='$CPP $CPPFLAGS'
20080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20083
20084 depcc="$CC"   am_compiler_list=
20085
20086 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20087 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
20088 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20089   echo $ECHO_N "(cached) $ECHO_C" >&6
20090 else
20091   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20092   # We make a subdir and do the tests there.  Otherwise we can end up
20093   # making bogus files that we don't know about and never remove.  For
20094   # instance it was reported that on HP-UX the gcc test will end up
20095   # making a dummy file named `D' -- because `-MD' means `put the output
20096   # in D'.
20097   mkdir conftest.dir
20098   # Copy depcomp to subdir because otherwise we won't find it if we're
20099   # using a relative directory.
20100   cp "$am_depcomp" conftest.dir
20101   cd conftest.dir
20102   # We will build objects and dependencies in a subdirectory because
20103   # it helps to detect inapplicable dependency modes.  For instance
20104   # both Tru64's cc and ICC support -MD to output dependencies as a
20105   # side effect of compilation, but ICC will put the dependencies in
20106   # the current directory while Tru64 will put them in the object
20107   # directory.
20108   mkdir sub
20109
20110   am_cv_CC_dependencies_compiler_type=none
20111   if test "$am_compiler_list" = ""; then
20112      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20113   fi
20114   for depmode in $am_compiler_list; do
20115     # Setup a source with many dependencies, because some compilers
20116     # like to wrap large dependency lists on column 80 (with \), and
20117     # we should not choose a depcomp mode which is confused by this.
20118     #
20119     # We need to recreate these files for each test, as the compiler may
20120     # overwrite some of them when testing with obscure command lines.
20121     # This happens at least with the AIX C compiler.
20122     : > sub/conftest.c
20123     for i in 1 2 3 4 5 6; do
20124       echo '#include "conftst'$i'.h"' >> sub/conftest.c
20125       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20126       # Solaris 8's {/usr,}/bin/sh.
20127       touch sub/conftst$i.h
20128     done
20129     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20130
20131     case $depmode in
20132     nosideeffect)
20133       # after this tag, mechanisms are not by side-effect, so they'll
20134       # only be used when explicitly requested
20135       if test "x$enable_dependency_tracking" = xyes; then
20136         continue
20137       else
20138         break
20139       fi
20140       ;;
20141     none) break ;;
20142     esac
20143     # We check with `-c' and `-o' for the sake of the "dashmstdout"
20144     # mode.  It turns out that the SunPro C++ compiler does not properly
20145     # handle `-M -o', and we need to detect this.
20146     if depmode=$depmode \
20147        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20148        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20149        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20150          >/dev/null 2>conftest.err &&
20151        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20152        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20153        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20154       # icc doesn't choke on unknown options, it will just issue warnings
20155       # or remarks (even with -Werror).  So we grep stderr for any message
20156       # that says an option was ignored or not supported.
20157       # When given -MP, icc 7.0 and 7.1 complain thusly:
20158       #   icc: Command line warning: ignoring option '-M'; no argument required
20159       # The diagnosis changed in icc 8.0:
20160       #   icc: Command line remark: option '-MP' not supported
20161       if (grep 'ignoring option' conftest.err ||
20162           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20163         am_cv_CC_dependencies_compiler_type=$depmode
20164         break
20165       fi
20166     fi
20167   done
20168
20169   cd ..
20170   rm -rf conftest.dir
20171 else
20172   am_cv_CC_dependencies_compiler_type=none
20173 fi
20174
20175 fi
20176 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20177 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
20178 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20179
20180
20181
20182 if
20183   test "x$enable_dependency_tracking" != xno \
20184   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20185   am__fastdepCC_TRUE=
20186   am__fastdepCC_FALSE='#'
20187 else
20188   am__fastdepCC_TRUE='#'
20189   am__fastdepCC_FALSE=
20190 fi
20191
20192
20193
20194 if test "$GCC" = yes; then
20195         case "$host" in
20196                 *-*-solaris*)
20197                         CFLAGS="$CFLAGS -Wall -Wno-char-subscripts"
20198                 ;;
20199                 *)
20200                         CFLAGS="$CFLAGS -Wall"
20201                 ;;
20202         esac
20203 fi
20204
20205 # missing_dir=`cd $ac_aux_dir && pwd`
20206 # AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
20207
20208 if test "$LIBS" != -pthread; then
20209
20210 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20211 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
20212 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20213   echo $ECHO_N "(cached) $ECHO_C" >&6
20214 else
20215   ac_check_lib_save_LIBS=$LIBS
20216 LIBS="-lpthread  $LIBS"
20217 cat >conftest.$ac_ext <<_ACEOF
20218 /* confdefs.h.  */
20219 _ACEOF
20220 cat confdefs.h >>conftest.$ac_ext
20221 cat >>conftest.$ac_ext <<_ACEOF
20222 /* end confdefs.h.  */
20223
20224 /* Override any gcc2 internal prototype to avoid an error.  */
20225 #ifdef __cplusplus
20226 extern "C"
20227 #endif
20228 /* We use char because int might match the return type of a gcc2
20229    builtin and then its argument prototype would still apply.  */
20230 char pthread_create ();
20231 int
20232 main ()
20233 {
20234 pthread_create ();
20235   ;
20236   return 0;
20237 }
20238 _ACEOF
20239 rm -f conftest.$ac_objext conftest$ac_exeext
20240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20241   (eval $ac_link) 2>conftest.er1
20242   ac_status=$?
20243   grep -v '^ *+' conftest.er1 >conftest.err
20244   rm -f conftest.er1
20245   cat conftest.err >&5
20246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20247   (exit $ac_status); } &&
20248          { ac_try='test -z "$ac_c_werror_flag"
20249                          || test ! -s conftest.err'
20250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20251   (eval $ac_try) 2>&5
20252   ac_status=$?
20253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20254   (exit $ac_status); }; } &&
20255          { ac_try='test -s conftest$ac_exeext'
20256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20257   (eval $ac_try) 2>&5
20258   ac_status=$?
20259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20260   (exit $ac_status); }; }; then
20261   ac_cv_lib_pthread_pthread_create=yes
20262 else
20263   echo "$as_me: failed program was:" >&5
20264 sed 's/^/| /' conftest.$ac_ext >&5
20265
20266 ac_cv_lib_pthread_pthread_create=no
20267 fi
20268 rm -f conftest.err conftest.$ac_objext \
20269       conftest$ac_exeext conftest.$ac_ext
20270 LIBS=$ac_check_lib_save_LIBS
20271 fi
20272 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
20273 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
20274 if test $ac_cv_lib_pthread_pthread_create = yes; then
20275   cat >>confdefs.h <<_ACEOF
20276 #define HAVE_LIBPTHREAD 1
20277 _ACEOF
20278
20279   LIBS="-lpthread $LIBS"
20280
20281 fi
20282
20283
20284 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
20285 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
20286 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
20287   echo $ECHO_N "(cached) $ECHO_C" >&6
20288 else
20289   ac_check_lib_save_LIBS=$LIBS
20290 LIBS="-lpthreads  $LIBS"
20291 cat >conftest.$ac_ext <<_ACEOF
20292 /* confdefs.h.  */
20293 _ACEOF
20294 cat confdefs.h >>conftest.$ac_ext
20295 cat >>conftest.$ac_ext <<_ACEOF
20296 /* end confdefs.h.  */
20297
20298 /* Override any gcc2 internal prototype to avoid an error.  */
20299 #ifdef __cplusplus
20300 extern "C"
20301 #endif
20302 /* We use char because int might match the return type of a gcc2
20303    builtin and then its argument prototype would still apply.  */
20304 char pthread_create ();
20305 int
20306 main ()
20307 {
20308 pthread_create ();
20309   ;
20310   return 0;
20311 }
20312 _ACEOF
20313 rm -f conftest.$ac_objext conftest$ac_exeext
20314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20315   (eval $ac_link) 2>conftest.er1
20316   ac_status=$?
20317   grep -v '^ *+' conftest.er1 >conftest.err
20318   rm -f conftest.er1
20319   cat conftest.err >&5
20320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20321   (exit $ac_status); } &&
20322          { ac_try='test -z "$ac_c_werror_flag"
20323                          || test ! -s conftest.err'
20324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20325   (eval $ac_try) 2>&5
20326   ac_status=$?
20327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20328   (exit $ac_status); }; } &&
20329          { ac_try='test -s conftest$ac_exeext'
20330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20331   (eval $ac_try) 2>&5
20332   ac_status=$?
20333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20334   (exit $ac_status); }; }; then
20335   ac_cv_lib_pthreads_pthread_create=yes
20336 else
20337   echo "$as_me: failed program was:" >&5
20338 sed 's/^/| /' conftest.$ac_ext >&5
20339
20340 ac_cv_lib_pthreads_pthread_create=no
20341 fi
20342 rm -f conftest.err conftest.$ac_objext \
20343       conftest$ac_exeext conftest.$ac_ext
20344 LIBS=$ac_check_lib_save_LIBS
20345 fi
20346 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
20347 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
20348 if test $ac_cv_lib_pthreads_pthread_create = yes; then
20349   cat >>confdefs.h <<_ACEOF
20350 #define HAVE_LIBPTHREADS 1
20351 _ACEOF
20352
20353   LIBS="-lpthreads $LIBS"
20354
20355 fi
20356
20357 fi
20358 echo "$as_me:$LINENO: checking for libiconv in -liconv" >&5
20359 echo $ECHO_N "checking for libiconv in -liconv... $ECHO_C" >&6
20360 if test "${ac_cv_lib_iconv_libiconv+set}" = set; then
20361   echo $ECHO_N "(cached) $ECHO_C" >&6
20362 else
20363   ac_check_lib_save_LIBS=$LIBS
20364 LIBS="-liconv  $LIBS"
20365 cat >conftest.$ac_ext <<_ACEOF
20366 /* confdefs.h.  */
20367 _ACEOF
20368 cat confdefs.h >>conftest.$ac_ext
20369 cat >>conftest.$ac_ext <<_ACEOF
20370 /* end confdefs.h.  */
20371
20372 /* Override any gcc2 internal prototype to avoid an error.  */
20373 #ifdef __cplusplus
20374 extern "C"
20375 #endif
20376 /* We use char because int might match the return type of a gcc2
20377    builtin and then its argument prototype would still apply.  */
20378 char libiconv ();
20379 int
20380 main ()
20381 {
20382 libiconv ();
20383   ;
20384   return 0;
20385 }
20386 _ACEOF
20387 rm -f conftest.$ac_objext conftest$ac_exeext
20388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20389   (eval $ac_link) 2>conftest.er1
20390   ac_status=$?
20391   grep -v '^ *+' conftest.er1 >conftest.err
20392   rm -f conftest.er1
20393   cat conftest.err >&5
20394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20395   (exit $ac_status); } &&
20396          { ac_try='test -z "$ac_c_werror_flag"
20397                          || test ! -s conftest.err'
20398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20399   (eval $ac_try) 2>&5
20400   ac_status=$?
20401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20402   (exit $ac_status); }; } &&
20403          { ac_try='test -s conftest$ac_exeext'
20404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20405   (eval $ac_try) 2>&5
20406   ac_status=$?
20407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20408   (exit $ac_status); }; }; then
20409   ac_cv_lib_iconv_libiconv=yes
20410 else
20411   echo "$as_me: failed program was:" >&5
20412 sed 's/^/| /' conftest.$ac_ext >&5
20413
20414 ac_cv_lib_iconv_libiconv=no
20415 fi
20416 rm -f conftest.err conftest.$ac_objext \
20417       conftest$ac_exeext conftest.$ac_ext
20418 LIBS=$ac_check_lib_save_LIBS
20419 fi
20420 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_libiconv" >&5
20421 echo "${ECHO_T}$ac_cv_lib_iconv_libiconv" >&6
20422 if test $ac_cv_lib_iconv_libiconv = yes; then
20423   LIBS="$LIBS -liconv"
20424 fi
20425
20426 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
20427 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
20428 if test "${ac_cv_search_gethostbyname+set}" = set; then
20429   echo $ECHO_N "(cached) $ECHO_C" >&6
20430 else
20431   ac_func_search_save_LIBS=$LIBS
20432 ac_cv_search_gethostbyname=no
20433 cat >conftest.$ac_ext <<_ACEOF
20434 /* confdefs.h.  */
20435 _ACEOF
20436 cat confdefs.h >>conftest.$ac_ext
20437 cat >>conftest.$ac_ext <<_ACEOF
20438 /* end confdefs.h.  */
20439
20440 /* Override any gcc2 internal prototype to avoid an error.  */
20441 #ifdef __cplusplus
20442 extern "C"
20443 #endif
20444 /* We use char because int might match the return type of a gcc2
20445    builtin and then its argument prototype would still apply.  */
20446 char gethostbyname ();
20447 int
20448 main ()
20449 {
20450 gethostbyname ();
20451   ;
20452   return 0;
20453 }
20454 _ACEOF
20455 rm -f conftest.$ac_objext conftest$ac_exeext
20456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20457   (eval $ac_link) 2>conftest.er1
20458   ac_status=$?
20459   grep -v '^ *+' conftest.er1 >conftest.err
20460   rm -f conftest.er1
20461   cat conftest.err >&5
20462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20463   (exit $ac_status); } &&
20464          { ac_try='test -z "$ac_c_werror_flag"
20465                          || test ! -s conftest.err'
20466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20467   (eval $ac_try) 2>&5
20468   ac_status=$?
20469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470   (exit $ac_status); }; } &&
20471          { ac_try='test -s conftest$ac_exeext'
20472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20473   (eval $ac_try) 2>&5
20474   ac_status=$?
20475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20476   (exit $ac_status); }; }; then
20477   ac_cv_search_gethostbyname="none required"
20478 else
20479   echo "$as_me: failed program was:" >&5
20480 sed 's/^/| /' conftest.$ac_ext >&5
20481
20482 fi
20483 rm -f conftest.err conftest.$ac_objext \
20484       conftest$ac_exeext conftest.$ac_ext
20485 if test "$ac_cv_search_gethostbyname" = no; then
20486   for ac_lib in nsl; do
20487     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20488     cat >conftest.$ac_ext <<_ACEOF
20489 /* confdefs.h.  */
20490 _ACEOF
20491 cat confdefs.h >>conftest.$ac_ext
20492 cat >>conftest.$ac_ext <<_ACEOF
20493 /* end confdefs.h.  */
20494
20495 /* Override any gcc2 internal prototype to avoid an error.  */
20496 #ifdef __cplusplus
20497 extern "C"
20498 #endif
20499 /* We use char because int might match the return type of a gcc2
20500    builtin and then its argument prototype would still apply.  */
20501 char gethostbyname ();
20502 int
20503 main ()
20504 {
20505 gethostbyname ();
20506   ;
20507   return 0;
20508 }
20509 _ACEOF
20510 rm -f conftest.$ac_objext conftest$ac_exeext
20511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20512   (eval $ac_link) 2>conftest.er1
20513   ac_status=$?
20514   grep -v '^ *+' conftest.er1 >conftest.err
20515   rm -f conftest.er1
20516   cat conftest.err >&5
20517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20518   (exit $ac_status); } &&
20519          { ac_try='test -z "$ac_c_werror_flag"
20520                          || test ! -s conftest.err'
20521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20522   (eval $ac_try) 2>&5
20523   ac_status=$?
20524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20525   (exit $ac_status); }; } &&
20526          { ac_try='test -s conftest$ac_exeext'
20527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20528   (eval $ac_try) 2>&5
20529   ac_status=$?
20530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20531   (exit $ac_status); }; }; then
20532   ac_cv_search_gethostbyname="-l$ac_lib"
20533 break
20534 else
20535   echo "$as_me: failed program was:" >&5
20536 sed 's/^/| /' conftest.$ac_ext >&5
20537
20538 fi
20539 rm -f conftest.err conftest.$ac_objext \
20540       conftest$ac_exeext conftest.$ac_ext
20541   done
20542 fi
20543 LIBS=$ac_func_search_save_LIBS
20544 fi
20545 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
20546 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
20547 if test "$ac_cv_search_gethostbyname" != no; then
20548   test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
20549
20550 fi
20551
20552 echo "$as_me:$LINENO: checking for library containing connect" >&5
20553 echo $ECHO_N "checking for library containing connect... $ECHO_C" >&6
20554 if test "${ac_cv_search_connect+set}" = set; then
20555   echo $ECHO_N "(cached) $ECHO_C" >&6
20556 else
20557   ac_func_search_save_LIBS=$LIBS
20558 ac_cv_search_connect=no
20559 cat >conftest.$ac_ext <<_ACEOF
20560 /* confdefs.h.  */
20561 _ACEOF
20562 cat confdefs.h >>conftest.$ac_ext
20563 cat >>conftest.$ac_ext <<_ACEOF
20564 /* end confdefs.h.  */
20565
20566 /* Override any gcc2 internal prototype to avoid an error.  */
20567 #ifdef __cplusplus
20568 extern "C"
20569 #endif
20570 /* We use char because int might match the return type of a gcc2
20571    builtin and then its argument prototype would still apply.  */
20572 char connect ();
20573 int
20574 main ()
20575 {
20576 connect ();
20577   ;
20578   return 0;
20579 }
20580 _ACEOF
20581 rm -f conftest.$ac_objext conftest$ac_exeext
20582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20583   (eval $ac_link) 2>conftest.er1
20584   ac_status=$?
20585   grep -v '^ *+' conftest.er1 >conftest.err
20586   rm -f conftest.er1
20587   cat conftest.err >&5
20588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20589   (exit $ac_status); } &&
20590          { ac_try='test -z "$ac_c_werror_flag"
20591                          || test ! -s conftest.err'
20592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20593   (eval $ac_try) 2>&5
20594   ac_status=$?
20595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20596   (exit $ac_status); }; } &&
20597          { ac_try='test -s conftest$ac_exeext'
20598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20599   (eval $ac_try) 2>&5
20600   ac_status=$?
20601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20602   (exit $ac_status); }; }; then
20603   ac_cv_search_connect="none required"
20604 else
20605   echo "$as_me: failed program was:" >&5
20606 sed 's/^/| /' conftest.$ac_ext >&5
20607
20608 fi
20609 rm -f conftest.err conftest.$ac_objext \
20610       conftest$ac_exeext conftest.$ac_ext
20611 if test "$ac_cv_search_connect" = no; then
20612   for ac_lib in socket; do
20613     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20614     cat >conftest.$ac_ext <<_ACEOF
20615 /* confdefs.h.  */
20616 _ACEOF
20617 cat confdefs.h >>conftest.$ac_ext
20618 cat >>conftest.$ac_ext <<_ACEOF
20619 /* end confdefs.h.  */
20620
20621 /* Override any gcc2 internal prototype to avoid an error.  */
20622 #ifdef __cplusplus
20623 extern "C"
20624 #endif
20625 /* We use char because int might match the return type of a gcc2
20626    builtin and then its argument prototype would still apply.  */
20627 char connect ();
20628 int
20629 main ()
20630 {
20631 connect ();
20632   ;
20633   return 0;
20634 }
20635 _ACEOF
20636 rm -f conftest.$ac_objext conftest$ac_exeext
20637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20638   (eval $ac_link) 2>conftest.er1
20639   ac_status=$?
20640   grep -v '^ *+' conftest.er1 >conftest.err
20641   rm -f conftest.er1
20642   cat conftest.err >&5
20643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20644   (exit $ac_status); } &&
20645          { ac_try='test -z "$ac_c_werror_flag"
20646                          || test ! -s conftest.err'
20647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20648   (eval $ac_try) 2>&5
20649   ac_status=$?
20650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20651   (exit $ac_status); }; } &&
20652          { ac_try='test -s conftest$ac_exeext'
20653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20654   (eval $ac_try) 2>&5
20655   ac_status=$?
20656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20657   (exit $ac_status); }; }; then
20658   ac_cv_search_connect="-l$ac_lib"
20659 break
20660 else
20661   echo "$as_me: failed program was:" >&5
20662 sed 's/^/| /' conftest.$ac_ext >&5
20663
20664 fi
20665 rm -f conftest.err conftest.$ac_objext \
20666       conftest$ac_exeext conftest.$ac_ext
20667   done
20668 fi
20669 LIBS=$ac_func_search_save_LIBS
20670 fi
20671 echo "$as_me:$LINENO: result: $ac_cv_search_connect" >&5
20672 echo "${ECHO_T}$ac_cv_search_connect" >&6
20673 if test "$ac_cv_search_connect" != no; then
20674   test "$ac_cv_search_connect" = "none required" || LIBS="$ac_cv_search_connect $LIBS"
20675
20676 fi
20677
20678
20679 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20680 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
20681 if test "${ac_cv_header_stdc+set}" = set; then
20682   echo $ECHO_N "(cached) $ECHO_C" >&6
20683 else
20684   cat >conftest.$ac_ext <<_ACEOF
20685 /* confdefs.h.  */
20686 _ACEOF
20687 cat confdefs.h >>conftest.$ac_ext
20688 cat >>conftest.$ac_ext <<_ACEOF
20689 /* end confdefs.h.  */
20690 #include <stdlib.h>
20691 #include <stdarg.h>
20692 #include <string.h>
20693 #include <float.h>
20694
20695 int
20696 main ()
20697 {
20698
20699   ;
20700   return 0;
20701 }
20702 _ACEOF
20703 rm -f conftest.$ac_objext
20704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20705   (eval $ac_compile) 2>conftest.er1
20706   ac_status=$?
20707   grep -v '^ *+' conftest.er1 >conftest.err
20708   rm -f conftest.er1
20709   cat conftest.err >&5
20710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20711   (exit $ac_status); } &&
20712          { ac_try='test -z "$ac_c_werror_flag"
20713                          || test ! -s conftest.err'
20714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20715   (eval $ac_try) 2>&5
20716   ac_status=$?
20717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20718   (exit $ac_status); }; } &&
20719          { ac_try='test -s conftest.$ac_objext'
20720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20721   (eval $ac_try) 2>&5
20722   ac_status=$?
20723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20724   (exit $ac_status); }; }; then
20725   ac_cv_header_stdc=yes
20726 else
20727   echo "$as_me: failed program was:" >&5
20728 sed 's/^/| /' conftest.$ac_ext >&5
20729
20730 ac_cv_header_stdc=no
20731 fi
20732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20733
20734 if test $ac_cv_header_stdc = yes; then
20735   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20736   cat >conftest.$ac_ext <<_ACEOF
20737 /* confdefs.h.  */
20738 _ACEOF
20739 cat confdefs.h >>conftest.$ac_ext
20740 cat >>conftest.$ac_ext <<_ACEOF
20741 /* end confdefs.h.  */
20742 #include <string.h>
20743
20744 _ACEOF
20745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20746   $EGREP "memchr" >/dev/null 2>&1; then
20747   :
20748 else
20749   ac_cv_header_stdc=no
20750 fi
20751 rm -f conftest*
20752
20753 fi
20754
20755 if test $ac_cv_header_stdc = yes; then
20756   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20757   cat >conftest.$ac_ext <<_ACEOF
20758 /* confdefs.h.  */
20759 _ACEOF
20760 cat confdefs.h >>conftest.$ac_ext
20761 cat >>conftest.$ac_ext <<_ACEOF
20762 /* end confdefs.h.  */
20763 #include <stdlib.h>
20764
20765 _ACEOF
20766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20767   $EGREP "free" >/dev/null 2>&1; then
20768   :
20769 else
20770   ac_cv_header_stdc=no
20771 fi
20772 rm -f conftest*
20773
20774 fi
20775
20776 if test $ac_cv_header_stdc = yes; then
20777   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20778   if test "$cross_compiling" = yes; then
20779   :
20780 else
20781   cat >conftest.$ac_ext <<_ACEOF
20782 /* confdefs.h.  */
20783 _ACEOF
20784 cat confdefs.h >>conftest.$ac_ext
20785 cat >>conftest.$ac_ext <<_ACEOF
20786 /* end confdefs.h.  */
20787 #include <ctype.h>
20788 #if ((' ' & 0x0FF) == 0x020)
20789 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20790 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20791 #else
20792 # define ISLOWER(c) \
20793                    (('a' <= (c) && (c) <= 'i') \
20794                      || ('j' <= (c) && (c) <= 'r') \
20795                      || ('s' <= (c) && (c) <= 'z'))
20796 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20797 #endif
20798
20799 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20800 int
20801 main ()
20802 {
20803   int i;
20804   for (i = 0; i < 256; i++)
20805     if (XOR (islower (i), ISLOWER (i))
20806         || toupper (i) != TOUPPER (i))
20807       exit(2);
20808   exit (0);
20809 }
20810 _ACEOF
20811 rm -f conftest$ac_exeext
20812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20813   (eval $ac_link) 2>&5
20814   ac_status=$?
20815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20816   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20818   (eval $ac_try) 2>&5
20819   ac_status=$?
20820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20821   (exit $ac_status); }; }; then
20822   :
20823 else
20824   echo "$as_me: program exited with status $ac_status" >&5
20825 echo "$as_me: failed program was:" >&5
20826 sed 's/^/| /' conftest.$ac_ext >&5
20827
20828 ( exit $ac_status )
20829 ac_cv_header_stdc=no
20830 fi
20831 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20832 fi
20833 fi
20834 fi
20835 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20836 echo "${ECHO_T}$ac_cv_header_stdc" >&6
20837 if test $ac_cv_header_stdc = yes; then
20838
20839 cat >>confdefs.h <<\_ACEOF
20840 #define STDC_HEADERS 1
20841 _ACEOF
20842
20843 fi
20844
20845
20846
20847
20848
20849 for ac_header in fcntl.h limits.h sys/time.h unistd.h
20850 do
20851 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20852 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20853   echo "$as_me:$LINENO: checking for $ac_header" >&5
20854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20855 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20856   echo $ECHO_N "(cached) $ECHO_C" >&6
20857 fi
20858 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20859 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20860 else
20861   # Is the header compilable?
20862 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20863 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20864 cat >conftest.$ac_ext <<_ACEOF
20865 /* confdefs.h.  */
20866 _ACEOF
20867 cat confdefs.h >>conftest.$ac_ext
20868 cat >>conftest.$ac_ext <<_ACEOF
20869 /* end confdefs.h.  */
20870 $ac_includes_default
20871 #include <$ac_header>
20872 _ACEOF
20873 rm -f conftest.$ac_objext
20874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20875   (eval $ac_compile) 2>conftest.er1
20876   ac_status=$?
20877   grep -v '^ *+' conftest.er1 >conftest.err
20878   rm -f conftest.er1
20879   cat conftest.err >&5
20880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20881   (exit $ac_status); } &&
20882          { ac_try='test -z "$ac_c_werror_flag"
20883                          || test ! -s conftest.err'
20884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20885   (eval $ac_try) 2>&5
20886   ac_status=$?
20887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20888   (exit $ac_status); }; } &&
20889          { ac_try='test -s conftest.$ac_objext'
20890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20891   (eval $ac_try) 2>&5
20892   ac_status=$?
20893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20894   (exit $ac_status); }; }; then
20895   ac_header_compiler=yes
20896 else
20897   echo "$as_me: failed program was:" >&5
20898 sed 's/^/| /' conftest.$ac_ext >&5
20899
20900 ac_header_compiler=no
20901 fi
20902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20903 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20904 echo "${ECHO_T}$ac_header_compiler" >&6
20905
20906 # Is the header present?
20907 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20908 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20909 cat >conftest.$ac_ext <<_ACEOF
20910 /* confdefs.h.  */
20911 _ACEOF
20912 cat confdefs.h >>conftest.$ac_ext
20913 cat >>conftest.$ac_ext <<_ACEOF
20914 /* end confdefs.h.  */
20915 #include <$ac_header>
20916 _ACEOF
20917 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20918   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20919   ac_status=$?
20920   grep -v '^ *+' conftest.er1 >conftest.err
20921   rm -f conftest.er1
20922   cat conftest.err >&5
20923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20924   (exit $ac_status); } >/dev/null; then
20925   if test -s conftest.err; then
20926     ac_cpp_err=$ac_c_preproc_warn_flag
20927     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20928   else
20929     ac_cpp_err=
20930   fi
20931 else
20932   ac_cpp_err=yes
20933 fi
20934 if test -z "$ac_cpp_err"; then
20935   ac_header_preproc=yes
20936 else
20937   echo "$as_me: failed program was:" >&5
20938 sed 's/^/| /' conftest.$ac_ext >&5
20939
20940   ac_header_preproc=no
20941 fi
20942 rm -f conftest.err conftest.$ac_ext
20943 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20944 echo "${ECHO_T}$ac_header_preproc" >&6
20945
20946 # So?  What about this header?
20947 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20948   yes:no: )
20949     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20950 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20951     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20952 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20953     ac_header_preproc=yes
20954     ;;
20955   no:yes:* )
20956     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20957 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20958     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20959 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20960     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20961 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20962     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20963 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20964     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20965 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20966     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20967 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20968     (
20969       cat <<\_ASBOX
20970 ## ------------------------------------- ##
20971 ## Report this to uncensored.citadel.org ##
20972 ## ------------------------------------- ##
20973 _ASBOX
20974     ) |
20975       sed "s/^/$as_me: WARNING:     /" >&2
20976     ;;
20977 esac
20978 echo "$as_me:$LINENO: checking for $ac_header" >&5
20979 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20980 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20981   echo $ECHO_N "(cached) $ECHO_C" >&6
20982 else
20983   eval "$as_ac_Header=\$ac_header_preproc"
20984 fi
20985 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20986 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20987
20988 fi
20989 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20990   cat >>confdefs.h <<_ACEOF
20991 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20992 _ACEOF
20993
20994 fi
20995
20996 done
20997
20998
20999
21000
21001
21002 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21003 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
21004 if test "${ac_cv_c_const+set}" = set; then
21005   echo $ECHO_N "(cached) $ECHO_C" >&6
21006 else
21007   cat >conftest.$ac_ext <<_ACEOF
21008 /* confdefs.h.  */
21009 _ACEOF
21010 cat confdefs.h >>conftest.$ac_ext
21011 cat >>conftest.$ac_ext <<_ACEOF
21012 /* end confdefs.h.  */
21013
21014 int
21015 main ()
21016 {
21017 /* FIXME: Include the comments suggested by Paul. */
21018 #ifndef __cplusplus
21019   /* Ultrix mips cc rejects this.  */
21020   typedef int charset[2];
21021   const charset x;
21022   /* SunOS 4.1.1 cc rejects this.  */
21023   char const *const *ccp;
21024   char **p;
21025   /* NEC SVR4.0.2 mips cc rejects this.  */
21026   struct point {int x, y;};
21027   static struct point const zero = {0,0};
21028   /* AIX XL C 1.02.0.0 rejects this.
21029      It does not let you subtract one const X* pointer from another in
21030      an arm of an if-expression whose if-part is not a constant
21031      expression */
21032   const char *g = "string";
21033   ccp = &g + (g ? g-g : 0);
21034   /* HPUX 7.0 cc rejects these. */
21035   ++ccp;
21036   p = (char**) ccp;
21037   ccp = (char const *const *) p;
21038   { /* SCO 3.2v4 cc rejects this.  */
21039     char *t;
21040     char const *s = 0 ? (char *) 0 : (char const *) 0;
21041
21042     *t++ = 0;
21043   }
21044   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21045     int x[] = {25, 17};
21046     const int *foo = &x[0];
21047     ++foo;
21048   }
21049   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21050     typedef const int *iptr;
21051     iptr p = 0;
21052     ++p;
21053   }
21054   { /* AIX XL C 1.02.0.0 rejects this saying
21055        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21056     struct s { int j; const int *ap[3]; };
21057     struct s *b; b->j = 5;
21058   }
21059   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21060     const int foo = 10;
21061   }
21062 #endif
21063
21064   ;
21065   return 0;
21066 }
21067 _ACEOF
21068 rm -f conftest.$ac_objext
21069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21070   (eval $ac_compile) 2>conftest.er1
21071   ac_status=$?
21072   grep -v '^ *+' conftest.er1 >conftest.err
21073   rm -f conftest.er1
21074   cat conftest.err >&5
21075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21076   (exit $ac_status); } &&
21077          { ac_try='test -z "$ac_c_werror_flag"
21078                          || test ! -s conftest.err'
21079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21080   (eval $ac_try) 2>&5
21081   ac_status=$?
21082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21083   (exit $ac_status); }; } &&
21084          { ac_try='test -s conftest.$ac_objext'
21085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21086   (eval $ac_try) 2>&5
21087   ac_status=$?
21088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21089   (exit $ac_status); }; }; then
21090   ac_cv_c_const=yes
21091 else
21092   echo "$as_me: failed program was:" >&5
21093 sed 's/^/| /' conftest.$ac_ext >&5
21094
21095 ac_cv_c_const=no
21096 fi
21097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21098 fi
21099 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21100 echo "${ECHO_T}$ac_cv_c_const" >&6
21101 if test $ac_cv_c_const = no; then
21102
21103 cat >>confdefs.h <<\_ACEOF
21104 #define const
21105 _ACEOF
21106
21107 fi
21108
21109 echo "$as_me:$LINENO: checking for off_t" >&5
21110 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
21111 if test "${ac_cv_type_off_t+set}" = set; then
21112   echo $ECHO_N "(cached) $ECHO_C" >&6
21113 else
21114   cat >conftest.$ac_ext <<_ACEOF
21115 /* confdefs.h.  */
21116 _ACEOF
21117 cat confdefs.h >>conftest.$ac_ext
21118 cat >>conftest.$ac_ext <<_ACEOF
21119 /* end confdefs.h.  */
21120 $ac_includes_default
21121 int
21122 main ()
21123 {
21124 if ((off_t *) 0)
21125   return 0;
21126 if (sizeof (off_t))
21127   return 0;
21128   ;
21129   return 0;
21130 }
21131 _ACEOF
21132 rm -f conftest.$ac_objext
21133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21134   (eval $ac_compile) 2>conftest.er1
21135   ac_status=$?
21136   grep -v '^ *+' conftest.er1 >conftest.err
21137   rm -f conftest.er1
21138   cat conftest.err >&5
21139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21140   (exit $ac_status); } &&
21141          { ac_try='test -z "$ac_c_werror_flag"
21142                          || test ! -s conftest.err'
21143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21144   (eval $ac_try) 2>&5
21145   ac_status=$?
21146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21147   (exit $ac_status); }; } &&
21148          { ac_try='test -s conftest.$ac_objext'
21149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21150   (eval $ac_try) 2>&5
21151   ac_status=$?
21152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21153   (exit $ac_status); }; }; then
21154   ac_cv_type_off_t=yes
21155 else
21156   echo "$as_me: failed program was:" >&5
21157 sed 's/^/| /' conftest.$ac_ext >&5
21158
21159 ac_cv_type_off_t=no
21160 fi
21161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21162 fi
21163 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21164 echo "${ECHO_T}$ac_cv_type_off_t" >&6
21165 if test $ac_cv_type_off_t = yes; then
21166   :
21167 else
21168
21169 cat >>confdefs.h <<_ACEOF
21170 #define off_t long
21171 _ACEOF
21172
21173 fi
21174
21175 echo "$as_me:$LINENO: checking for size_t" >&5
21176 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21177 if test "${ac_cv_type_size_t+set}" = set; then
21178   echo $ECHO_N "(cached) $ECHO_C" >&6
21179 else
21180   cat >conftest.$ac_ext <<_ACEOF
21181 /* confdefs.h.  */
21182 _ACEOF
21183 cat confdefs.h >>conftest.$ac_ext
21184 cat >>conftest.$ac_ext <<_ACEOF
21185 /* end confdefs.h.  */
21186 $ac_includes_default
21187 int
21188 main ()
21189 {
21190 if ((size_t *) 0)
21191   return 0;
21192 if (sizeof (size_t))
21193   return 0;
21194   ;
21195   return 0;
21196 }
21197 _ACEOF
21198 rm -f conftest.$ac_objext
21199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21200   (eval $ac_compile) 2>conftest.er1
21201   ac_status=$?
21202   grep -v '^ *+' conftest.er1 >conftest.err
21203   rm -f conftest.er1
21204   cat conftest.err >&5
21205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21206   (exit $ac_status); } &&
21207          { ac_try='test -z "$ac_c_werror_flag"
21208                          || test ! -s conftest.err'
21209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21210   (eval $ac_try) 2>&5
21211   ac_status=$?
21212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21213   (exit $ac_status); }; } &&
21214          { ac_try='test -s conftest.$ac_objext'
21215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21216   (eval $ac_try) 2>&5
21217   ac_status=$?
21218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21219   (exit $ac_status); }; }; then
21220   ac_cv_type_size_t=yes
21221 else
21222   echo "$as_me: failed program was:" >&5
21223 sed 's/^/| /' conftest.$ac_ext >&5
21224
21225 ac_cv_type_size_t=no
21226 fi
21227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21228 fi
21229 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21230 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21231 if test $ac_cv_type_size_t = yes; then
21232   :
21233 else
21234
21235 cat >>confdefs.h <<_ACEOF
21236 #define size_t unsigned
21237 _ACEOF
21238
21239 fi
21240
21241
21242 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21243 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
21244 if test "${ac_cv_type_signal+set}" = set; then
21245   echo $ECHO_N "(cached) $ECHO_C" >&6
21246 else
21247   cat >conftest.$ac_ext <<_ACEOF
21248 /* confdefs.h.  */
21249 _ACEOF
21250 cat confdefs.h >>conftest.$ac_ext
21251 cat >>conftest.$ac_ext <<_ACEOF
21252 /* end confdefs.h.  */
21253 #include <sys/types.h>
21254 #include <signal.h>
21255 #ifdef signal
21256 # undef signal
21257 #endif
21258 #ifdef __cplusplus
21259 extern "C" void (*signal (int, void (*)(int)))(int);
21260 #else
21261 void (*signal ()) ();
21262 #endif
21263
21264 int
21265 main ()
21266 {
21267 int i;
21268   ;
21269   return 0;
21270 }
21271 _ACEOF
21272 rm -f conftest.$ac_objext
21273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21274   (eval $ac_compile) 2>conftest.er1
21275   ac_status=$?
21276   grep -v '^ *+' conftest.er1 >conftest.err
21277   rm -f conftest.er1
21278   cat conftest.err >&5
21279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21280   (exit $ac_status); } &&
21281          { ac_try='test -z "$ac_c_werror_flag"
21282                          || test ! -s conftest.err'
21283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21284   (eval $ac_try) 2>&5
21285   ac_status=$?
21286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21287   (exit $ac_status); }; } &&
21288          { ac_try='test -s conftest.$ac_objext'
21289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21290   (eval $ac_try) 2>&5
21291   ac_status=$?
21292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21293   (exit $ac_status); }; }; then
21294   ac_cv_type_signal=void
21295 else
21296   echo "$as_me: failed program was:" >&5
21297 sed 's/^/| /' conftest.$ac_ext >&5
21298
21299 ac_cv_type_signal=int
21300 fi
21301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21302 fi
21303 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21304 echo "${ECHO_T}$ac_cv_type_signal" >&6
21305
21306 cat >>confdefs.h <<_ACEOF
21307 #define RETSIGTYPE $ac_cv_type_signal
21308 _ACEOF
21309
21310
21311
21312 for ac_func in backtrace
21313 do
21314 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21315 echo "$as_me:$LINENO: checking for $ac_func" >&5
21316 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21317 if eval "test \"\${$as_ac_var+set}\" = set"; then
21318   echo $ECHO_N "(cached) $ECHO_C" >&6
21319 else
21320   cat >conftest.$ac_ext <<_ACEOF
21321 /* confdefs.h.  */
21322 _ACEOF
21323 cat confdefs.h >>conftest.$ac_ext
21324 cat >>conftest.$ac_ext <<_ACEOF
21325 /* end confdefs.h.  */
21326 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21327    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21328 #define $ac_func innocuous_$ac_func
21329
21330 /* System header to define __stub macros and hopefully few prototypes,
21331     which can conflict with char $ac_func (); below.
21332     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21333     <limits.h> exists even on freestanding compilers.  */
21334
21335 #ifdef __STDC__
21336 # include <limits.h>
21337 #else
21338 # include <assert.h>
21339 #endif
21340
21341 #undef $ac_func
21342
21343 /* Override any gcc2 internal prototype to avoid an error.  */
21344 #ifdef __cplusplus
21345 extern "C"
21346 {
21347 #endif
21348 /* We use char because int might match the return type of a gcc2
21349    builtin and then its argument prototype would still apply.  */
21350 char $ac_func ();
21351 /* The GNU C library defines this for functions which it implements
21352     to always fail with ENOSYS.  Some functions are actually named
21353     something starting with __ and the normal name is an alias.  */
21354 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21355 choke me
21356 #else
21357 char (*f) () = $ac_func;
21358 #endif
21359 #ifdef __cplusplus
21360 }
21361 #endif
21362
21363 int
21364 main ()
21365 {
21366 return f != $ac_func;
21367   ;
21368   return 0;
21369 }
21370 _ACEOF
21371 rm -f conftest.$ac_objext conftest$ac_exeext
21372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21373   (eval $ac_link) 2>conftest.er1
21374   ac_status=$?
21375   grep -v '^ *+' conftest.er1 >conftest.err
21376   rm -f conftest.er1
21377   cat conftest.err >&5
21378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21379   (exit $ac_status); } &&
21380          { ac_try='test -z "$ac_c_werror_flag"
21381                          || test ! -s conftest.err'
21382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21383   (eval $ac_try) 2>&5
21384   ac_status=$?
21385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21386   (exit $ac_status); }; } &&
21387          { ac_try='test -s conftest$ac_exeext'
21388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21389   (eval $ac_try) 2>&5
21390   ac_status=$?
21391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21392   (exit $ac_status); }; }; then
21393   eval "$as_ac_var=yes"
21394 else
21395   echo "$as_me: failed program was:" >&5
21396 sed 's/^/| /' conftest.$ac_ext >&5
21397
21398 eval "$as_ac_var=no"
21399 fi
21400 rm -f conftest.err conftest.$ac_objext \
21401       conftest$ac_exeext conftest.$ac_ext
21402 fi
21403 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21404 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21405 if test `eval echo '${'$as_ac_var'}'` = yes; then
21406   cat >>confdefs.h <<_ACEOF
21407 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21408 _ACEOF
21409
21410 fi
21411 done
21412
21413
21414 for ac_func in snprintf
21415 do
21416 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21417 echo "$as_me:$LINENO: checking for $ac_func" >&5
21418 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21419 if eval "test \"\${$as_ac_var+set}\" = set"; then
21420   echo $ECHO_N "(cached) $ECHO_C" >&6
21421 else
21422   cat >conftest.$ac_ext <<_ACEOF
21423 /* confdefs.h.  */
21424 _ACEOF
21425 cat confdefs.h >>conftest.$ac_ext
21426 cat >>conftest.$ac_ext <<_ACEOF
21427 /* end confdefs.h.  */
21428 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21429    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21430 #define $ac_func innocuous_$ac_func
21431
21432 /* System header to define __stub macros and hopefully few prototypes,
21433     which can conflict with char $ac_func (); below.
21434     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21435     <limits.h> exists even on freestanding compilers.  */
21436
21437 #ifdef __STDC__
21438 # include <limits.h>
21439 #else
21440 # include <assert.h>
21441 #endif
21442
21443 #undef $ac_func
21444
21445 /* Override any gcc2 internal prototype to avoid an error.  */
21446 #ifdef __cplusplus
21447 extern "C"
21448 {
21449 #endif
21450 /* We use char because int might match the return type of a gcc2
21451    builtin and then its argument prototype would still apply.  */
21452 char $ac_func ();
21453 /* The GNU C library defines this for functions which it implements
21454     to always fail with ENOSYS.  Some functions are actually named
21455     something starting with __ and the normal name is an alias.  */
21456 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21457 choke me
21458 #else
21459 char (*f) () = $ac_func;
21460 #endif
21461 #ifdef __cplusplus
21462 }
21463 #endif
21464
21465 int
21466 main ()
21467 {
21468 return f != $ac_func;
21469   ;
21470   return 0;
21471 }
21472 _ACEOF
21473 rm -f conftest.$ac_objext conftest$ac_exeext
21474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21475   (eval $ac_link) 2>conftest.er1
21476   ac_status=$?
21477   grep -v '^ *+' conftest.er1 >conftest.err
21478   rm -f conftest.er1
21479   cat conftest.err >&5
21480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21481   (exit $ac_status); } &&
21482          { ac_try='test -z "$ac_c_werror_flag"
21483                          || test ! -s conftest.err'
21484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21485   (eval $ac_try) 2>&5
21486   ac_status=$?
21487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21488   (exit $ac_status); }; } &&
21489          { ac_try='test -s conftest$ac_exeext'
21490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21491   (eval $ac_try) 2>&5
21492   ac_status=$?
21493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21494   (exit $ac_status); }; }; then
21495   eval "$as_ac_var=yes"
21496 else
21497   echo "$as_me: failed program was:" >&5
21498 sed 's/^/| /' conftest.$ac_ext >&5
21499
21500 eval "$as_ac_var=no"
21501 fi
21502 rm -f conftest.err conftest.$ac_objext \
21503       conftest$ac_exeext conftest.$ac_ext
21504 fi
21505 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21506 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21507 if test `eval echo '${'$as_ac_var'}'` = yes; then
21508   cat >>confdefs.h <<_ACEOF
21509 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21510 _ACEOF
21511
21512 else
21513   case $LIBOBJS in
21514     "$ac_func.$ac_objext"   | \
21515   *" $ac_func.$ac_objext"   | \
21516     "$ac_func.$ac_objext "* | \
21517   *" $ac_func.$ac_objext "* ) ;;
21518   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
21519 esac
21520
21521 fi
21522 done
21523
21524
21525
21526
21527 cat >>confdefs.h <<\_ACEOF
21528 #define HAVE_LIBICAL 1
21529 _ACEOF
21530
21531
21532 if test "x$with_libical" != xno ; then
21533
21534 for ac_header in ical.h
21535 do
21536 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21537 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21538   echo "$as_me:$LINENO: checking for $ac_header" >&5
21539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21540 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21541   echo $ECHO_N "(cached) $ECHO_C" >&6
21542 fi
21543 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21544 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21545 else
21546   # Is the header compilable?
21547 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21548 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21549 cat >conftest.$ac_ext <<_ACEOF
21550 /* confdefs.h.  */
21551 _ACEOF
21552 cat confdefs.h >>conftest.$ac_ext
21553 cat >>conftest.$ac_ext <<_ACEOF
21554 /* end confdefs.h.  */
21555 $ac_includes_default
21556 #include <$ac_header>
21557 _ACEOF
21558 rm -f conftest.$ac_objext
21559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21560   (eval $ac_compile) 2>conftest.er1
21561   ac_status=$?
21562   grep -v '^ *+' conftest.er1 >conftest.err
21563   rm -f conftest.er1
21564   cat conftest.err >&5
21565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21566   (exit $ac_status); } &&
21567          { ac_try='test -z "$ac_c_werror_flag"
21568                          || test ! -s conftest.err'
21569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21570   (eval $ac_try) 2>&5
21571   ac_status=$?
21572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21573   (exit $ac_status); }; } &&
21574          { ac_try='test -s conftest.$ac_objext'
21575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21576   (eval $ac_try) 2>&5
21577   ac_status=$?
21578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21579   (exit $ac_status); }; }; then
21580   ac_header_compiler=yes
21581 else
21582   echo "$as_me: failed program was:" >&5
21583 sed 's/^/| /' conftest.$ac_ext >&5
21584
21585 ac_header_compiler=no
21586 fi
21587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21588 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21589 echo "${ECHO_T}$ac_header_compiler" >&6
21590
21591 # Is the header present?
21592 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21593 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21594 cat >conftest.$ac_ext <<_ACEOF
21595 /* confdefs.h.  */
21596 _ACEOF
21597 cat confdefs.h >>conftest.$ac_ext
21598 cat >>conftest.$ac_ext <<_ACEOF
21599 /* end confdefs.h.  */
21600 #include <$ac_header>
21601 _ACEOF
21602 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21603   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21604   ac_status=$?
21605   grep -v '^ *+' conftest.er1 >conftest.err
21606   rm -f conftest.er1
21607   cat conftest.err >&5
21608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21609   (exit $ac_status); } >/dev/null; then
21610   if test -s conftest.err; then
21611     ac_cpp_err=$ac_c_preproc_warn_flag
21612     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21613   else
21614     ac_cpp_err=
21615   fi
21616 else
21617   ac_cpp_err=yes
21618 fi
21619 if test -z "$ac_cpp_err"; then
21620   ac_header_preproc=yes
21621 else
21622   echo "$as_me: failed program was:" >&5
21623 sed 's/^/| /' conftest.$ac_ext >&5
21624
21625   ac_header_preproc=no
21626 fi
21627 rm -f conftest.err conftest.$ac_ext
21628 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21629 echo "${ECHO_T}$ac_header_preproc" >&6
21630
21631 # So?  What about this header?
21632 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21633   yes:no: )
21634     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21635 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21636     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21637 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21638     ac_header_preproc=yes
21639     ;;
21640   no:yes:* )
21641     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21642 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21643     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21644 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21645     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21646 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21647     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21648 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21649     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21650 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21651     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21652 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21653     (
21654       cat <<\_ASBOX
21655 ## ------------------------------------- ##
21656 ## Report this to uncensored.citadel.org ##
21657 ## ------------------------------------- ##
21658 _ASBOX
21659     ) |
21660       sed "s/^/$as_me: WARNING:     /" >&2
21661     ;;
21662 esac
21663 echo "$as_me:$LINENO: checking for $ac_header" >&5
21664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21665 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21666   echo $ECHO_N "(cached) $ECHO_C" >&6
21667 else
21668   eval "$as_ac_Header=\$ac_header_preproc"
21669 fi
21670 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21671 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21672
21673 fi
21674 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21675   cat >>confdefs.h <<_ACEOF
21676 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21677 _ACEOF
21678  echo "$as_me:$LINENO: checking for icalcomponent_new in -lical" >&5
21679 echo $ECHO_N "checking for icalcomponent_new in -lical... $ECHO_C" >&6
21680 if test "${ac_cv_lib_ical_icalcomponent_new+set}" = set; then
21681   echo $ECHO_N "(cached) $ECHO_C" >&6
21682 else
21683   ac_check_lib_save_LIBS=$LIBS
21684 LIBS="-lical  $LIBS"
21685 cat >conftest.$ac_ext <<_ACEOF
21686 /* confdefs.h.  */
21687 _ACEOF
21688 cat confdefs.h >>conftest.$ac_ext
21689 cat >>conftest.$ac_ext <<_ACEOF
21690 /* end confdefs.h.  */
21691
21692 /* Override any gcc2 internal prototype to avoid an error.  */
21693 #ifdef __cplusplus
21694 extern "C"
21695 #endif
21696 /* We use char because int might match the return type of a gcc2
21697    builtin and then its argument prototype would still apply.  */
21698 char icalcomponent_new ();
21699 int
21700 main ()
21701 {
21702 icalcomponent_new ();
21703   ;
21704   return 0;
21705 }
21706 _ACEOF
21707 rm -f conftest.$ac_objext conftest$ac_exeext
21708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21709   (eval $ac_link) 2>conftest.er1
21710   ac_status=$?
21711   grep -v '^ *+' conftest.er1 >conftest.err
21712   rm -f conftest.er1
21713   cat conftest.err >&5
21714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21715   (exit $ac_status); } &&
21716          { ac_try='test -z "$ac_c_werror_flag"
21717                          || test ! -s conftest.err'
21718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21719   (eval $ac_try) 2>&5
21720   ac_status=$?
21721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21722   (exit $ac_status); }; } &&
21723          { ac_try='test -s conftest$ac_exeext'
21724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21725   (eval $ac_try) 2>&5
21726   ac_status=$?
21727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21728   (exit $ac_status); }; }; then
21729   ac_cv_lib_ical_icalcomponent_new=yes
21730 else
21731   echo "$as_me: failed program was:" >&5
21732 sed 's/^/| /' conftest.$ac_ext >&5
21733
21734 ac_cv_lib_ical_icalcomponent_new=no
21735 fi
21736 rm -f conftest.err conftest.$ac_objext \
21737       conftest$ac_exeext conftest.$ac_ext
21738 LIBS=$ac_check_lib_save_LIBS
21739 fi
21740 echo "$as_me:$LINENO: result: $ac_cv_lib_ical_icalcomponent_new" >&5
21741 echo "${ECHO_T}$ac_cv_lib_ical_icalcomponent_new" >&6
21742 if test $ac_cv_lib_ical_icalcomponent_new = yes; then
21743   ok_libical=yes
21744 fi
21745
21746 fi
21747
21748 done
21749
21750 fi
21751
21752 if test "x$ok_libical" = xyes ; then
21753
21754         if test "$cross_compiling" = yes; then
21755   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21756 See \`config.log' for more details." >&5
21757 echo "$as_me: error: cannot run test program while cross compiling
21758 See \`config.log' for more details." >&2;}
21759    { (exit 1); exit 1; }; }
21760 else
21761   cat >conftest.$ac_ext <<_ACEOF
21762 /* confdefs.h.  */
21763 _ACEOF
21764 cat confdefs.h >>conftest.$ac_ext
21765 cat >>conftest.$ac_ext <<_ACEOF
21766 /* end confdefs.h.  */
21767
21768 #include <ical.h>
21769 main() {
21770         int major, minor, v;
21771         sscanf(ICAL_VERSION, "%d.%d", &major, &minor);
21772         v = 100*major + minor;
21773         printf("libical version: %i\n", v);
21774         if (v >= 24) {
21775                 printf("This version is ok.\n");
21776                 return(0);
21777         }
21778         printf("libical 0.24 or newer required.\n");
21779         printf("Citadel will be built without calendar support.\n");
21780         return(1);
21781 }
21782
21783 _ACEOF
21784 rm -f conftest$ac_exeext
21785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21786   (eval $ac_link) 2>&5
21787   ac_status=$?
21788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21789   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21791   (eval $ac_try) 2>&5
21792   ac_status=$?
21793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21794   (exit $ac_status); }; }; then
21795
21796                         LIBS="-lical $LIBS"
21797                         cat >>confdefs.h <<\_ACEOF
21798 #define HAVE_LIBICAL 1
21799 _ACEOF
21800
21801
21802
21803 else
21804   echo "$as_me: program exited with status $ac_status" >&5
21805 echo "$as_me: failed program was:" >&5
21806 sed 's/^/| /' conftest.$ac_ext >&5
21807
21808 fi
21809 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21810 fi
21811 fi
21812
21813
21814
21815
21816 cat >>confdefs.h <<\_ACEOF
21817 #define with_zlib 1
21818 _ACEOF
21819
21820
21821 if test "x$ok_zlib" = xyes ; then
21822         LIBS="-lz $LIBS"
21823 fi
21824
21825
21826 # Check whether --with-ok_newt or --without-ok_newt was given.
21827 if test "${with_ok_newt+set}" = set; then
21828   withval="$with_ok_newt"
21829   ok_newt=no
21830 else
21831
21832 for ac_header in newt.h
21833 do
21834 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21835 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21836   echo "$as_me:$LINENO: checking for $ac_header" >&5
21837 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21838 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21839   echo $ECHO_N "(cached) $ECHO_C" >&6
21840 fi
21841 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21842 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21843 else
21844   # Is the header compilable?
21845 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21846 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21847 cat >conftest.$ac_ext <<_ACEOF
21848 /* confdefs.h.  */
21849 _ACEOF
21850 cat confdefs.h >>conftest.$ac_ext
21851 cat >>conftest.$ac_ext <<_ACEOF
21852 /* end confdefs.h.  */
21853 $ac_includes_default
21854 #include <$ac_header>
21855 _ACEOF
21856 rm -f conftest.$ac_objext
21857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21858   (eval $ac_compile) 2>conftest.er1
21859   ac_status=$?
21860   grep -v '^ *+' conftest.er1 >conftest.err
21861   rm -f conftest.er1
21862   cat conftest.err >&5
21863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21864   (exit $ac_status); } &&
21865          { ac_try='test -z "$ac_c_werror_flag"
21866                          || test ! -s conftest.err'
21867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21868   (eval $ac_try) 2>&5
21869   ac_status=$?
21870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21871   (exit $ac_status); }; } &&
21872          { ac_try='test -s conftest.$ac_objext'
21873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21874   (eval $ac_try) 2>&5
21875   ac_status=$?
21876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21877   (exit $ac_status); }; }; then
21878   ac_header_compiler=yes
21879 else
21880   echo "$as_me: failed program was:" >&5
21881 sed 's/^/| /' conftest.$ac_ext >&5
21882
21883 ac_header_compiler=no
21884 fi
21885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21886 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21887 echo "${ECHO_T}$ac_header_compiler" >&6
21888
21889 # Is the header present?
21890 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21891 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21892 cat >conftest.$ac_ext <<_ACEOF
21893 /* confdefs.h.  */
21894 _ACEOF
21895 cat confdefs.h >>conftest.$ac_ext
21896 cat >>conftest.$ac_ext <<_ACEOF
21897 /* end confdefs.h.  */
21898 #include <$ac_header>
21899 _ACEOF
21900 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21901   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21902   ac_status=$?
21903   grep -v '^ *+' conftest.er1 >conftest.err
21904   rm -f conftest.er1
21905   cat conftest.err >&5
21906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21907   (exit $ac_status); } >/dev/null; then
21908   if test -s conftest.err; then
21909     ac_cpp_err=$ac_c_preproc_warn_flag
21910     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21911   else
21912     ac_cpp_err=
21913   fi
21914 else
21915   ac_cpp_err=yes
21916 fi
21917 if test -z "$ac_cpp_err"; then
21918   ac_header_preproc=yes
21919 else
21920   echo "$as_me: failed program was:" >&5
21921 sed 's/^/| /' conftest.$ac_ext >&5
21922
21923   ac_header_preproc=no
21924 fi
21925 rm -f conftest.err conftest.$ac_ext
21926 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21927 echo "${ECHO_T}$ac_header_preproc" >&6
21928
21929 # So?  What about this header?
21930 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21931   yes:no: )
21932     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21933 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21934     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21935 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21936     ac_header_preproc=yes
21937     ;;
21938   no:yes:* )
21939     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21940 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21941     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21942 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21943     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21944 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21945     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21946 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21947     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21948 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21949     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21950 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21951     (
21952       cat <<\_ASBOX
21953 ## ------------------------------------- ##
21954 ## Report this to uncensored.citadel.org ##
21955 ## ------------------------------------- ##
21956 _ASBOX
21957     ) |
21958       sed "s/^/$as_me: WARNING:     /" >&2
21959     ;;
21960 esac
21961 echo "$as_me:$LINENO: checking for $ac_header" >&5
21962 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21964   echo $ECHO_N "(cached) $ECHO_C" >&6
21965 else
21966   eval "$as_ac_Header=\$ac_header_preproc"
21967 fi
21968 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21969 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21970
21971 fi
21972 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21973   cat >>confdefs.h <<_ACEOF
21974 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21975 _ACEOF
21976  echo "$as_me:$LINENO: checking for newtInit in -lnewt" >&5
21977 echo $ECHO_N "checking for newtInit in -lnewt... $ECHO_C" >&6
21978 if test "${ac_cv_lib_newt_newtInit+set}" = set; then
21979   echo $ECHO_N "(cached) $ECHO_C" >&6
21980 else
21981   ac_check_lib_save_LIBS=$LIBS
21982 LIBS="-lnewt  $LIBS"
21983 cat >conftest.$ac_ext <<_ACEOF
21984 /* confdefs.h.  */
21985 _ACEOF
21986 cat confdefs.h >>conftest.$ac_ext
21987 cat >>conftest.$ac_ext <<_ACEOF
21988 /* end confdefs.h.  */
21989
21990 /* Override any gcc2 internal prototype to avoid an error.  */
21991 #ifdef __cplusplus
21992 extern "C"
21993 #endif
21994 /* We use char because int might match the return type of a gcc2
21995    builtin and then its argument prototype would still apply.  */
21996 char newtInit ();
21997 int
21998 main ()
21999 {
22000 newtInit ();
22001   ;
22002   return 0;
22003 }
22004 _ACEOF
22005 rm -f conftest.$ac_objext conftest$ac_exeext
22006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22007   (eval $ac_link) 2>conftest.er1
22008   ac_status=$?
22009   grep -v '^ *+' conftest.er1 >conftest.err
22010   rm -f conftest.er1
22011   cat conftest.err >&5
22012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22013   (exit $ac_status); } &&
22014          { ac_try='test -z "$ac_c_werror_flag"
22015                          || test ! -s conftest.err'
22016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22017   (eval $ac_try) 2>&5
22018   ac_status=$?
22019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22020   (exit $ac_status); }; } &&
22021          { ac_try='test -s conftest$ac_exeext'
22022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22023   (eval $ac_try) 2>&5
22024   ac_status=$?
22025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22026   (exit $ac_status); }; }; then
22027   ac_cv_lib_newt_newtInit=yes
22028 else
22029   echo "$as_me: failed program was:" >&5
22030 sed 's/^/| /' conftest.$ac_ext >&5
22031
22032 ac_cv_lib_newt_newtInit=no
22033 fi
22034 rm -f conftest.err conftest.$ac_objext \
22035       conftest$ac_exeext conftest.$ac_ext
22036 LIBS=$ac_check_lib_save_LIBS
22037 fi
22038 echo "$as_me:$LINENO: result: $ac_cv_lib_newt_newtInit" >&5
22039 echo "${ECHO_T}$ac_cv_lib_newt_newtInit" >&6
22040 if test $ac_cv_lib_newt_newtInit = yes; then
22041   ok_newt=yes
22042 else
22043   ok_newt=no
22044 fi
22045
22046
22047 fi
22048
22049 done
22050
22051
22052
22053 fi;
22054 if test "x$ok_newt" = xyes ; then
22055         SETUP_LIBS="-lnewt $SETUP_LIBS"
22056 fi
22057
22058 # The big search for OpenSSL
22059 if test "$with_ssl" != "no"; then
22060         saved_LIBS="$LIBS"
22061         saved_LDFLAGS="$LDFLAGS"
22062         saved_CFLAGS="$CFLAGS"
22063         if test "x$prefix" != "xNONE"; then
22064                 tryssldir="$tryssldir $prefix"
22065         fi
22066         echo "$as_me:$LINENO: checking for OpenSSL" >&5
22067 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
22068 if test "${ac_cv_openssldir+set}" = set; then
22069   echo $ECHO_N "(cached) $ECHO_C" >&6
22070 else
22071
22072                 for ssldir in $tryssldir "" /usr /usr/local/openssl /usr/lib/openssl /usr/local/ssl /usr/lib/ssl /usr/local /usr/pkg /opt /opt/openssl ; do
22073                         CFLAGS="$saved_CFLAGS"
22074                         LDFLAGS="$saved_LDFLAGS"
22075                         LIBS="$saved_LIBS -lssl -lcrypto"
22076
22077                         # Skip directories if they don't exist
22078                         if test ! -z "$ssldir" -a ! -d "$ssldir" ; then
22079                                 continue;
22080                         fi
22081                         if test ! -z "$ssldir" -a "x$ssldir" != "x/usr"; then
22082                                 # Try to use $ssldir/lib if it exists, otherwise
22083                                 # $ssldir
22084                                 if test -d "$ssldir/lib" ; then
22085                                         LDFLAGS="-L$ssldir/lib $saved_LDFLAGS"
22086                                         if test ! -z "$need_dash_r" ; then
22087                                                 LDFLAGS="-R$ssldir/lib $LDFLAGS"
22088                                         fi
22089                                 else
22090                                         LDFLAGS="-L$ssldir $saved_LDFLAGS"
22091                                         if test ! -z "$need_dash_r" ; then
22092                                                 LDFLAGS="-R$ssldir $LDFLAGS"
22093                                         fi
22094                                 fi
22095                                 # Try to use $ssldir/include if it exists, otherwise
22096                                 # $ssldir
22097                                 if test -d "$ssldir/include" ; then
22098                                         CFLAGS="-I$ssldir/include $saved_CFLAGS"
22099                                 else
22100                                         CFLAGS="-I$ssldir $saved_CFLAGS"
22101                                 fi
22102                         fi
22103
22104                         # Basic test to check for compatible version and correct linking
22105                         # *does not* test for RSA - that comes later.
22106                         if test "$cross_compiling" = yes; then
22107   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22108 See \`config.log' for more details." >&5
22109 echo "$as_me: error: cannot run test program while cross compiling
22110 See \`config.log' for more details." >&2;}
22111    { (exit 1); exit 1; }; }
22112 else
22113   cat >conftest.$ac_ext <<_ACEOF
22114 /* confdefs.h.  */
22115 _ACEOF
22116 cat confdefs.h >>conftest.$ac_ext
22117 cat >>conftest.$ac_ext <<_ACEOF
22118 /* end confdefs.h.  */
22119
22120         #include <string.h>
22121         #include <openssl/rand.h>
22122         int main(void)
22123         {
22124                 char a[2048];
22125                 memset(a, 0, sizeof(a));
22126                 RAND_add(a, sizeof(a), sizeof(a));
22127                 return(RAND_status() <= 0);
22128         }
22129
22130 _ACEOF
22131 rm -f conftest$ac_exeext
22132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22133   (eval $ac_link) 2>&5
22134   ac_status=$?
22135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22136   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22138   (eval $ac_try) 2>&5
22139   ac_status=$?
22140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22141   (exit $ac_status); }; }; then
22142
22143                                         found_crypto=1
22144                                         break;
22145
22146 else
22147   echo "$as_me: program exited with status $ac_status" >&5
22148 echo "$as_me: failed program was:" >&5
22149 sed 's/^/| /' conftest.$ac_ext >&5
22150
22151 ( exit $ac_status )
22152
22153
22154 fi
22155 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22156 fi
22157
22158                         if test ! -z "$found_crypto" ; then
22159                                 break;
22160                         fi
22161                 done
22162
22163                 if test -z "$ssldir" ; then
22164                         ssldir="(system)"
22165                 fi
22166
22167                 if test ! -z "$found_crypto" ; then
22168                         ac_cv_openssldir=$ssldir
22169                 else
22170                         ac_cv_openssldir="no"
22171                 fi
22172
22173 fi
22174 echo "$as_me:$LINENO: result: $ac_cv_openssldir" >&5
22175 echo "${ECHO_T}$ac_cv_openssldir" >&6
22176         LIBS="$saved_LIBS"
22177         LDFLAGS="$saved_LDFLAGS"
22178         CFLAGS="$saved_CFLAGS"
22179
22180         if test "x$ac_cv_openssldir" != "xno" ; then
22181                 cat >>confdefs.h <<\_ACEOF
22182 #define HAVE_OPENSSL 1
22183 _ACEOF
22184
22185                 LIBS="-lssl -lcrypto $LIBS"
22186                                 ssldir=$ac_cv_openssldir
22187                 if test ! -z "$ssldir" -a "x$ssldir" != "x/usr" -a "x$ssldir" != "x(system)"; then
22188                         # Try to use $ssldir/lib if it exists, otherwise
22189                         # $ssldir
22190                         if test -d "$ssldir/lib" ; then
22191                                 LDFLAGS="-L$ssldir/lib $saved_LDFLAGS"
22192                                 if test ! -z "$need_dash_r" ; then
22193                                         LDFLAGS="-R$ssldir/lib $LDFLAGS"
22194                                 fi
22195                         else
22196                                 LDFLAGS="-L$ssldir $saved_LDFLAGS"
22197                                 if test ! -z "$need_dash_r" ; then
22198                                         LDFLAGS="-R$ssldir $LDFLAGS"
22199                                 fi
22200                         fi
22201                         # Try to use $ssldir/include if it exists, otherwise
22202                         # $ssldir
22203                         if test -d "$ssldir/include" ; then
22204                                 CFLAGS="-I$ssldir/include $saved_CFLAGS"
22205                         else
22206                                 CFLAGS="-I$ssldir $saved_CFLAGS"
22207                         fi
22208                 fi
22209         fi
22210 fi
22211
22212
22213
22214 cat >>confdefs.h <<\_ACEOF
22215 #define HAVE_ICONV 1
22216 _ACEOF
22217
22218
22219 if test "$ok_nls" != "no"; then
22220         echo "$as_me:$LINENO: result: Checking to see if your system supports iconv..." >&5
22221 echo "${ECHO_T}Checking to see if your system supports iconv..." >&6
22222         if test "$cross_compiling" = yes; then
22223   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22224 See \`config.log' for more details." >&5
22225 echo "$as_me: error: cannot run test program while cross compiling
22226 See \`config.log' for more details." >&2;}
22227    { (exit 1); exit 1; }; }
22228 else
22229   cat >conftest.$ac_ext <<_ACEOF
22230 /* confdefs.h.  */
22231 _ACEOF
22232 cat confdefs.h >>conftest.$ac_ext
22233 cat >>conftest.$ac_ext <<_ACEOF
22234 /* end confdefs.h.  */
22235
22236                 #include <iconv.h>
22237                 main() {
22238                         iconv_t ic = (iconv_t)(-1) ;
22239                         ic = iconv_open("UTF-8", "us-ascii");
22240                         iconv_close(ic);
22241                         exit(0);
22242                 }
22243
22244 _ACEOF
22245 rm -f conftest$ac_exeext
22246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22247   (eval $ac_link) 2>&5
22248   ac_status=$?
22249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22250   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22252   (eval $ac_try) 2>&5
22253   ac_status=$?
22254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22255   (exit $ac_status); }; }; then
22256   ok_iconv=yes
22257 else
22258   echo "$as_me: program exited with status $ac_status" >&5
22259 echo "$as_me: failed program was:" >&5
22260 sed 's/^/| /' conftest.$ac_ext >&5
22261
22262 ( exit $ac_status )
22263 ok_iconv=no
22264
22265 fi
22266 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22267 fi
22268 fi
22269
22270 if test "$ok_iconv" != "no"; then
22271         echo "$as_me:$LINENO: result: WebCit will be built with character set conversion." >&5
22272 echo "${ECHO_T}WebCit will be built with character set conversion." >&6
22273         cat >>confdefs.h <<\_ACEOF
22274 #define HAVE_ICONV 1
22275 _ACEOF
22276
22277 else
22278         echo "$as_me:$LINENO: result: WebCit will be built without character set conversion." >&5
22279 echo "${ECHO_T}WebCit will be built without character set conversion." >&6
22280 fi
22281
22282
22283 cat >>confdefs.h <<_ACEOF
22284 #define PREFIX "$prefix"
22285 _ACEOF
22286
22287
22288
22289
22290 #AM_GNU_GETTEXT
22291 # if we have intl/...
22292 IT_PROG_INTLTOOL
22293
22294         MKINSTALLDIRS=
22295   if test -n "$ac_aux_dir"; then
22296     case "$ac_aux_dir" in
22297       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
22298       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
22299     esac
22300   fi
22301   if test -z "$MKINSTALLDIRS"; then
22302     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
22303   fi
22304
22305
22306
22307   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
22308 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
22309     # Check whether --enable-nls or --disable-nls was given.
22310 if test "${enable_nls+set}" = set; then
22311   enableval="$enable_nls"
22312   USE_NLS=$enableval
22313 else
22314   USE_NLS=yes
22315 fi;
22316   echo "$as_me:$LINENO: result: $USE_NLS" >&5
22317 echo "${ECHO_T}$USE_NLS" >&6
22318
22319
22320
22321
22322
22323
22324 # Prepare PATH_SEPARATOR.
22325 # The user is always right.
22326 if test "${PATH_SEPARATOR+set}" != set; then
22327   echo "#! /bin/sh" >conf$$.sh
22328   echo  "exit 0"   >>conf$$.sh
22329   chmod +x conf$$.sh
22330   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22331     PATH_SEPARATOR=';'
22332   else
22333     PATH_SEPARATOR=:
22334   fi
22335   rm -f conf$$.sh
22336 fi
22337
22338 # Find out how to test for executable files. Don't use a zero-byte file,
22339 # as systems may use methods other than mode bits to determine executability.
22340 cat >conf$$.file <<_ASEOF
22341 #! /bin/sh
22342 exit 0
22343 _ASEOF
22344 chmod +x conf$$.file
22345 if test -x conf$$.file >/dev/null 2>&1; then
22346   ac_executable_p="test -x"
22347 else
22348   ac_executable_p="test -f"
22349 fi
22350 rm -f conf$$.file
22351
22352 # Extract the first word of "msgfmt", so it can be a program name with args.
22353 set dummy msgfmt; ac_word=$2
22354 echo "$as_me:$LINENO: checking for $ac_word" >&5
22355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22356 if test "${ac_cv_path_MSGFMT+set}" = set; then
22357   echo $ECHO_N "(cached) $ECHO_C" >&6
22358 else
22359   case "$MSGFMT" in
22360   [\\/]* | ?:[\\/]*)
22361     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
22362     ;;
22363   *)
22364     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
22365     for ac_dir in $PATH; do
22366       IFS="$ac_save_IFS"
22367       test -z "$ac_dir" && ac_dir=.
22368       for ac_exec_ext in '' $ac_executable_extensions; do
22369         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
22370           if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
22371      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
22372             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
22373             break 2
22374           fi
22375         fi
22376       done
22377     done
22378     IFS="$ac_save_IFS"
22379   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
22380     ;;
22381 esac
22382 fi
22383 MSGFMT="$ac_cv_path_MSGFMT"
22384 if test "$MSGFMT" != ":"; then
22385   echo "$as_me:$LINENO: result: $MSGFMT" >&5
22386 echo "${ECHO_T}$MSGFMT" >&6
22387 else
22388   echo "$as_me:$LINENO: result: no" >&5
22389 echo "${ECHO_T}no" >&6
22390 fi
22391
22392   # Extract the first word of "gmsgfmt", so it can be a program name with args.
22393 set dummy gmsgfmt; ac_word=$2
22394 echo "$as_me:$LINENO: checking for $ac_word" >&5
22395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22396 if test "${ac_cv_path_GMSGFMT+set}" = set; then
22397   echo $ECHO_N "(cached) $ECHO_C" >&6
22398 else
22399   case $GMSGFMT in
22400   [\\/]* | ?:[\\/]*)
22401   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
22402   ;;
22403   *)
22404   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22405 for as_dir in $PATH
22406 do
22407   IFS=$as_save_IFS
22408   test -z "$as_dir" && as_dir=.
22409   for ac_exec_ext in '' $ac_executable_extensions; do
22410   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22411     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
22412     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22413     break 2
22414   fi
22415 done
22416 done
22417
22418   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
22419   ;;
22420 esac
22421 fi
22422 GMSGFMT=$ac_cv_path_GMSGFMT
22423
22424 if test -n "$GMSGFMT"; then
22425   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
22426 echo "${ECHO_T}$GMSGFMT" >&6
22427 else
22428   echo "$as_me:$LINENO: result: no" >&5
22429 echo "${ECHO_T}no" >&6
22430 fi
22431
22432
22433
22434 # Prepare PATH_SEPARATOR.
22435 # The user is always right.
22436 if test "${PATH_SEPARATOR+set}" != set; then
22437   echo "#! /bin/sh" >conf$$.sh
22438   echo  "exit 0"   >>conf$$.sh
22439   chmod +x conf$$.sh
22440   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22441     PATH_SEPARATOR=';'
22442   else
22443     PATH_SEPARATOR=:
22444   fi
22445   rm -f conf$$.sh
22446 fi
22447
22448 # Find out how to test for executable files. Don't use a zero-byte file,
22449 # as systems may use methods other than mode bits to determine executability.
22450 cat >conf$$.file <<_ASEOF
22451 #! /bin/sh
22452 exit 0
22453 _ASEOF
22454 chmod +x conf$$.file
22455 if test -x conf$$.file >/dev/null 2>&1; then
22456   ac_executable_p="test -x"
22457 else
22458   ac_executable_p="test -f"
22459 fi
22460 rm -f conf$$.file
22461
22462 # Extract the first word of "xgettext", so it can be a program name with args.
22463 set dummy xgettext; ac_word=$2
22464 echo "$as_me:$LINENO: checking for $ac_word" >&5
22465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22466 if test "${ac_cv_path_XGETTEXT+set}" = set; then
22467   echo $ECHO_N "(cached) $ECHO_C" >&6
22468 else
22469   case "$XGETTEXT" in
22470   [\\/]* | ?:[\\/]*)
22471     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
22472     ;;
22473   *)
22474     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
22475     for ac_dir in $PATH; do
22476       IFS="$ac_save_IFS"
22477       test -z "$ac_dir" && ac_dir=.
22478       for ac_exec_ext in '' $ac_executable_extensions; do
22479         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
22480           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
22481      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
22482             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
22483             break 2
22484           fi
22485         fi
22486       done
22487     done
22488     IFS="$ac_save_IFS"
22489   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
22490     ;;
22491 esac
22492 fi
22493 XGETTEXT="$ac_cv_path_XGETTEXT"
22494 if test "$XGETTEXT" != ":"; then
22495   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
22496 echo "${ECHO_T}$XGETTEXT" >&6
22497 else
22498   echo "$as_me:$LINENO: result: no" >&5
22499 echo "${ECHO_T}no" >&6
22500 fi
22501
22502     rm -f messages.po
22503
22504
22505 # Prepare PATH_SEPARATOR.
22506 # The user is always right.
22507 if test "${PATH_SEPARATOR+set}" != set; then
22508   echo "#! /bin/sh" >conf$$.sh
22509   echo  "exit 0"   >>conf$$.sh
22510   chmod +x conf$$.sh
22511   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22512     PATH_SEPARATOR=';'
22513   else
22514     PATH_SEPARATOR=:
22515   fi
22516   rm -f conf$$.sh
22517 fi
22518
22519 # Find out how to test for executable files. Don't use a zero-byte file,
22520 # as systems may use methods other than mode bits to determine executability.
22521 cat >conf$$.file <<_ASEOF
22522 #! /bin/sh
22523 exit 0
22524 _ASEOF
22525 chmod +x conf$$.file
22526 if test -x conf$$.file >/dev/null 2>&1; then
22527   ac_executable_p="test -x"
22528 else
22529   ac_executable_p="test -f"
22530 fi
22531 rm -f conf$$.file
22532
22533 # Extract the first word of "msgmerge", so it can be a program name with args.
22534 set dummy msgmerge; ac_word=$2
22535 echo "$as_me:$LINENO: checking for $ac_word" >&5
22536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22537 if test "${ac_cv_path_MSGMERGE+set}" = set; then
22538   echo $ECHO_N "(cached) $ECHO_C" >&6
22539 else
22540   case "$MSGMERGE" in
22541   [\\/]* | ?:[\\/]*)
22542     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
22543     ;;
22544   *)
22545     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
22546     for ac_dir in $PATH; do
22547       IFS="$ac_save_IFS"
22548       test -z "$ac_dir" && ac_dir=.
22549       for ac_exec_ext in '' $ac_executable_extensions; do
22550         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
22551           if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
22552             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
22553             break 2
22554           fi
22555         fi
22556       done
22557     done
22558     IFS="$ac_save_IFS"
22559   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
22560     ;;
22561 esac
22562 fi
22563 MSGMERGE="$ac_cv_path_MSGMERGE"
22564 if test "$MSGMERGE" != ":"; then
22565   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
22566 echo "${ECHO_T}$MSGMERGE" >&6
22567 else
22568   echo "$as_me:$LINENO: result: no" >&5
22569 echo "${ECHO_T}no" >&6
22570 fi
22571
22572
22573       if test "$GMSGFMT" != ":"; then
22574             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
22575        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
22576       : ;
22577     else
22578       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
22579       echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
22580 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
22581       GMSGFMT=":"
22582     fi
22583   fi
22584
22585       if test "$XGETTEXT" != ":"; then
22586             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
22587        (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
22588       : ;
22589     else
22590       echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
22591 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
22592       XGETTEXT=":"
22593     fi
22594         rm -f messages.po
22595   fi
22596
22597             ac_config_commands="$ac_config_commands default-1"
22598
22599
22600
22601       if test "X$prefix" = "XNONE"; then
22602     acl_final_prefix="$ac_default_prefix"
22603   else
22604     acl_final_prefix="$prefix"
22605   fi
22606   if test "X$exec_prefix" = "XNONE"; then
22607     acl_final_exec_prefix='${prefix}'
22608   else
22609     acl_final_exec_prefix="$exec_prefix"
22610   fi
22611   acl_save_prefix="$prefix"
22612   prefix="$acl_final_prefix"
22613   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
22614   prefix="$acl_save_prefix"
22615
22616
22617 # Check whether --with-gnu-ld or --without-gnu-ld was given.
22618 if test "${with_gnu_ld+set}" = set; then
22619   withval="$with_gnu_ld"
22620   test "$withval" = no || with_gnu_ld=yes
22621 else
22622   with_gnu_ld=no
22623 fi;
22624 # Prepare PATH_SEPARATOR.
22625 # The user is always right.
22626 if test "${PATH_SEPARATOR+set}" != set; then
22627   echo "#! /bin/sh" >conf$$.sh
22628   echo  "exit 0"   >>conf$$.sh
22629   chmod +x conf$$.sh
22630   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22631     PATH_SEPARATOR=';'
22632   else
22633     PATH_SEPARATOR=:
22634   fi
22635   rm -f conf$$.sh
22636 fi
22637 ac_prog=ld
22638 if test "$GCC" = yes; then
22639   # Check if gcc -print-prog-name=ld gives a path.
22640   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
22641 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
22642   case $host in
22643   *-*-mingw*)
22644     # gcc leaves a trailing carriage return which upsets mingw
22645     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
22646   *)
22647     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
22648   esac
22649   case $ac_prog in
22650     # Accept absolute paths.
22651     [\\/]* | [A-Za-z]:[\\/]*)
22652       re_direlt='/[^/][^/]*/\.\./'
22653       # Canonicalize the path of ld
22654       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
22655       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
22656         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
22657       done
22658       test -z "$LD" && LD="$ac_prog"
22659       ;;
22660   "")
22661     # If it fails, then pretend we aren't using GCC.
22662     ac_prog=ld
22663     ;;
22664   *)
22665     # If it is relative, then search for the first ld in PATH.
22666     with_gnu_ld=unknown
22667     ;;
22668   esac
22669 elif test "$with_gnu_ld" = yes; then
22670   echo "$as_me:$LINENO: checking for GNU ld" >&5
22671 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
22672 else
22673   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
22674 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
22675 fi
22676 if test "${acl_cv_path_LD+set}" = set; then
22677   echo $ECHO_N "(cached) $ECHO_C" >&6
22678 else
22679   if test -z "$LD"; then
22680   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
22681   for ac_dir in $PATH; do
22682     test -z "$ac_dir" && ac_dir=.
22683     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
22684       acl_cv_path_LD="$ac_dir/$ac_prog"
22685       # Check to see if the program is GNU ld.  I'd rather use --version,
22686       # but apparently some GNU ld's only accept -v.
22687       # Break only if it was the GNU/non-GNU ld that we prefer.
22688       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
22689       *GNU* | *'with BFD'*)
22690         test "$with_gnu_ld" != no && break ;;
22691       *)
22692         test "$with_gnu_ld" != yes && break ;;
22693       esac
22694     fi
22695   done
22696   IFS="$ac_save_ifs"
22697 else
22698   acl_cv_path_LD="$LD" # Let the user override the test with a path.
22699 fi
22700 fi
22701
22702 LD="$acl_cv_path_LD"
22703 if test -n "$LD"; then
22704   echo "$as_me:$LINENO: result: $LD" >&5
22705 echo "${ECHO_T}$LD" >&6
22706 else
22707   echo "$as_me:$LINENO: result: no" >&5
22708 echo "${ECHO_T}no" >&6
22709 fi
22710 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
22711 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
22712    { (exit 1); exit 1; }; }
22713 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
22714 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
22715 if test "${acl_cv_prog_gnu_ld+set}" = set; then
22716   echo $ECHO_N "(cached) $ECHO_C" >&6
22717 else
22718   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
22719 case `$LD -v 2>&1 </dev/null` in
22720 *GNU* | *'with BFD'*)
22721   acl_cv_prog_gnu_ld=yes ;;
22722 *)
22723   acl_cv_prog_gnu_ld=no ;;
22724 esac
22725 fi
22726 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
22727 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
22728 with_gnu_ld=$acl_cv_prog_gnu_ld
22729
22730
22731
22732                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
22733 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
22734 if test "${acl_cv_rpath+set}" = set; then
22735   echo $ECHO_N "(cached) $ECHO_C" >&6
22736 else
22737
22738     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
22739     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
22740     . ./conftest.sh
22741     rm -f ./conftest.sh
22742     acl_cv_rpath=done
22743
22744 fi
22745 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
22746 echo "${ECHO_T}$acl_cv_rpath" >&6
22747   wl="$acl_cv_wl"
22748   libext="$acl_cv_libext"
22749   shlibext="$acl_cv_shlibext"
22750   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
22751   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
22752   hardcode_direct="$acl_cv_hardcode_direct"
22753   hardcode_minus_L="$acl_cv_hardcode_minus_L"
22754     # Check whether --enable-rpath or --disable-rpath was given.
22755 if test "${enable_rpath+set}" = set; then
22756   enableval="$enable_rpath"
22757   :
22758 else
22759   enable_rpath=yes
22760 fi;
22761
22762
22763
22764
22765
22766
22767
22768     use_additional=yes
22769
22770   acl_save_prefix="$prefix"
22771   prefix="$acl_final_prefix"
22772   acl_save_exec_prefix="$exec_prefix"
22773   exec_prefix="$acl_final_exec_prefix"
22774
22775     eval additional_includedir=\"$includedir\"
22776     eval additional_libdir=\"$libdir\"
22777
22778   exec_prefix="$acl_save_exec_prefix"
22779   prefix="$acl_save_prefix"
22780
22781
22782 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
22783 if test "${with_libiconv_prefix+set}" = set; then
22784   withval="$with_libiconv_prefix"
22785
22786     if test "X$withval" = "Xno"; then
22787       use_additional=no
22788     else
22789       if test "X$withval" = "X"; then
22790
22791   acl_save_prefix="$prefix"
22792   prefix="$acl_final_prefix"
22793   acl_save_exec_prefix="$exec_prefix"
22794   exec_prefix="$acl_final_exec_prefix"
22795
22796           eval additional_includedir=\"$includedir\"
22797           eval additional_libdir=\"$libdir\"
22798
22799   exec_prefix="$acl_save_exec_prefix"
22800   prefix="$acl_save_prefix"
22801
22802       else
22803         additional_includedir="$withval/include"
22804         additional_libdir="$withval/lib"
22805       fi
22806     fi
22807
22808 fi;
22809       LIBICONV=
22810   LTLIBICONV=
22811   INCICONV=
22812   rpathdirs=
22813   ltrpathdirs=
22814   names_already_handled=
22815   names_next_round='iconv '
22816   while test -n "$names_next_round"; do
22817     names_this_round="$names_next_round"
22818     names_next_round=
22819     for name in $names_this_round; do
22820       already_handled=
22821       for n in $names_already_handled; do
22822         if test "$n" = "$name"; then
22823           already_handled=yes
22824           break
22825         fi
22826       done
22827       if test -z "$already_handled"; then
22828         names_already_handled="$names_already_handled $name"
22829                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
22830         eval value=\"\$HAVE_LIB$uppername\"
22831         if test -n "$value"; then
22832           if test "$value" = yes; then
22833             eval value=\"\$LIB$uppername\"
22834             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
22835             eval value=\"\$LTLIB$uppername\"
22836             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
22837           else
22838                                     :
22839           fi
22840         else
22841                               found_dir=
22842           found_la=
22843           found_so=
22844           found_a=
22845           if test $use_additional = yes; then
22846             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
22847               found_dir="$additional_libdir"
22848               found_so="$additional_libdir/lib$name.$shlibext"
22849               if test -f "$additional_libdir/lib$name.la"; then
22850                 found_la="$additional_libdir/lib$name.la"
22851               fi
22852             else
22853               if test -f "$additional_libdir/lib$name.$libext"; then
22854                 found_dir="$additional_libdir"
22855                 found_a="$additional_libdir/lib$name.$libext"
22856                 if test -f "$additional_libdir/lib$name.la"; then
22857                   found_la="$additional_libdir/lib$name.la"
22858                 fi
22859               fi
22860             fi
22861           fi
22862           if test "X$found_dir" = "X"; then
22863             for x in $LDFLAGS $LTLIBICONV; do
22864
22865   acl_save_prefix="$prefix"
22866   prefix="$acl_final_prefix"
22867   acl_save_exec_prefix="$exec_prefix"
22868   exec_prefix="$acl_final_exec_prefix"
22869   eval x=\"$x\"
22870   exec_prefix="$acl_save_exec_prefix"
22871   prefix="$acl_save_prefix"
22872
22873               case "$x" in
22874                 -L*)
22875                   dir=`echo "X$x" | sed -e 's/^X-L//'`
22876                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
22877                     found_dir="$dir"
22878                     found_so="$dir/lib$name.$shlibext"
22879                     if test -f "$dir/lib$name.la"; then
22880                       found_la="$dir/lib$name.la"
22881                     fi
22882                   else
22883                     if test -f "$dir/lib$name.$libext"; then
22884                       found_dir="$dir"
22885                       found_a="$dir/lib$name.$libext"
22886                       if test -f "$dir/lib$name.la"; then
22887                         found_la="$dir/lib$name.la"
22888                       fi
22889                     fi
22890                   fi
22891                   ;;
22892               esac
22893               if test "X$found_dir" != "X"; then
22894                 break
22895               fi
22896             done
22897           fi
22898           if test "X$found_dir" != "X"; then
22899                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
22900             if test "X$found_so" != "X"; then
22901                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
22902                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22903               else
22904                                                                                 haveit=
22905                 for x in $ltrpathdirs; do
22906                   if test "X$x" = "X$found_dir"; then
22907                     haveit=yes
22908                     break
22909                   fi
22910                 done
22911                 if test -z "$haveit"; then
22912                   ltrpathdirs="$ltrpathdirs $found_dir"
22913                 fi
22914                                 if test "$hardcode_direct" = yes; then
22915                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22916                 else
22917                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
22918                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22919                                                             haveit=
22920                     for x in $rpathdirs; do
22921                       if test "X$x" = "X$found_dir"; then
22922                         haveit=yes
22923                         break
22924                       fi
22925                     done
22926                     if test -z "$haveit"; then
22927                       rpathdirs="$rpathdirs $found_dir"
22928                     fi
22929                   else
22930                                                                                 haveit=
22931                     for x in $LDFLAGS $LIBICONV; do
22932
22933   acl_save_prefix="$prefix"
22934   prefix="$acl_final_prefix"
22935   acl_save_exec_prefix="$exec_prefix"
22936   exec_prefix="$acl_final_exec_prefix"
22937   eval x=\"$x\"
22938   exec_prefix="$acl_save_exec_prefix"
22939   prefix="$acl_save_prefix"
22940
22941                       if test "X$x" = "X-L$found_dir"; then
22942                         haveit=yes
22943                         break
22944                       fi
22945                     done
22946                     if test -z "$haveit"; then
22947                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
22948                     fi
22949                     if test "$hardcode_minus_L" != no; then
22950                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22951                     else
22952                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
22953                     fi
22954                   fi
22955                 fi
22956               fi
22957             else
22958               if test "X$found_a" != "X"; then
22959                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
22960               else
22961                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
22962               fi
22963             fi
22964                         additional_includedir=
22965             case "$found_dir" in
22966               */lib | */lib/)
22967                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
22968                 additional_includedir="$basedir/include"
22969                 ;;
22970             esac
22971             if test "X$additional_includedir" != "X"; then
22972                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
22973                 haveit=
22974                 if test "X$additional_includedir" = "X/usr/local/include"; then
22975                   if test -n "$GCC"; then
22976                     case $host_os in
22977                       linux*) haveit=yes;;
22978                     esac
22979                   fi
22980                 fi
22981                 if test -z "$haveit"; then
22982                   for x in $CPPFLAGS $INCICONV; do
22983
22984   acl_save_prefix="$prefix"
22985   prefix="$acl_final_prefix"
22986   acl_save_exec_prefix="$exec_prefix"
22987   exec_prefix="$acl_final_exec_prefix"
22988   eval x=\"$x\"
22989   exec_prefix="$acl_save_exec_prefix"
22990   prefix="$acl_save_prefix"
22991
22992                     if test "X$x" = "X-I$additional_includedir"; then
22993                       haveit=yes
22994                       break
22995                     fi
22996                   done
22997                   if test -z "$haveit"; then
22998                     if test -d "$additional_includedir"; then
22999                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
23000                     fi
23001                   fi
23002                 fi
23003               fi
23004             fi
23005                         if test -n "$found_la"; then
23006                                                         save_libdir="$libdir"
23007               case "$found_la" in
23008                 */* | *\\*) . "$found_la" ;;
23009                 *) . "./$found_la" ;;
23010               esac
23011               libdir="$save_libdir"
23012                             for dep in $dependency_libs; do
23013                 case "$dep" in
23014                   -L*)
23015                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23016                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
23017                       haveit=
23018                       if test "X$additional_libdir" = "X/usr/local/lib"; then
23019                         if test -n "$GCC"; then
23020                           case $host_os in
23021                             linux*) haveit=yes;;
23022                           esac
23023                         fi
23024                       fi
23025                       if test -z "$haveit"; then
23026                         haveit=
23027                         for x in $LDFLAGS $LIBICONV; do
23028
23029   acl_save_prefix="$prefix"
23030   prefix="$acl_final_prefix"
23031   acl_save_exec_prefix="$exec_prefix"
23032   exec_prefix="$acl_final_exec_prefix"
23033   eval x=\"$x\"
23034   exec_prefix="$acl_save_exec_prefix"
23035   prefix="$acl_save_prefix"
23036
23037                           if test "X$x" = "X-L$additional_libdir"; then
23038                             haveit=yes
23039                             break
23040                           fi
23041                         done
23042                         if test -z "$haveit"; then
23043                           if test -d "$additional_libdir"; then
23044                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
23045                           fi
23046                         fi
23047                         haveit=
23048                         for x in $LDFLAGS $LTLIBICONV; do
23049
23050   acl_save_prefix="$prefix"
23051   prefix="$acl_final_prefix"
23052   acl_save_exec_prefix="$exec_prefix"
23053   exec_prefix="$acl_final_exec_prefix"
23054   eval x=\"$x\"
23055   exec_prefix="$acl_save_exec_prefix"
23056   prefix="$acl_save_prefix"
23057
23058                           if test "X$x" = "X-L$additional_libdir"; then
23059                             haveit=yes
23060                             break
23061                           fi
23062                         done
23063                         if test -z "$haveit"; then
23064                           if test -d "$additional_libdir"; then
23065                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
23066                           fi
23067                         fi
23068                       fi
23069                     fi
23070                     ;;
23071                   -R*)
23072                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
23073                     if test "$enable_rpath" != no; then
23074                                                                   haveit=
23075                       for x in $rpathdirs; do
23076                         if test "X$x" = "X$dir"; then
23077                           haveit=yes
23078                           break
23079                         fi
23080                       done
23081                       if test -z "$haveit"; then
23082                         rpathdirs="$rpathdirs $dir"
23083                       fi
23084                                                                   haveit=
23085                       for x in $ltrpathdirs; do
23086                         if test "X$x" = "X$dir"; then
23087                           haveit=yes
23088                           break
23089                         fi
23090                       done
23091                       if test -z "$haveit"; then
23092                         ltrpathdirs="$ltrpathdirs $dir"
23093                       fi
23094                     fi
23095                     ;;
23096                   -l*)
23097                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23098                     ;;
23099                   *.la)
23100                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23101                     ;;
23102                   *)
23103                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
23104                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
23105                     ;;
23106                 esac
23107               done
23108             fi
23109           else
23110                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
23111             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
23112           fi
23113         fi
23114       fi
23115     done
23116   done
23117   if test "X$rpathdirs" != "X"; then
23118     if test -n "$hardcode_libdir_separator"; then
23119                         alldirs=
23120       for found_dir in $rpathdirs; do
23121         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23122       done
23123             acl_save_libdir="$libdir"
23124       libdir="$alldirs"
23125       eval flag=\"$hardcode_libdir_flag_spec\"
23126       libdir="$acl_save_libdir"
23127       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
23128     else
23129             for found_dir in $rpathdirs; do
23130         acl_save_libdir="$libdir"
23131         libdir="$found_dir"
23132         eval flag=\"$hardcode_libdir_flag_spec\"
23133         libdir="$acl_save_libdir"
23134         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
23135       done
23136     fi
23137   fi
23138   if test "X$ltrpathdirs" != "X"; then
23139             for found_dir in $ltrpathdirs; do
23140       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
23141     done
23142   fi
23143
23144
23145 cat >conftest.$ac_ext <<_ACEOF
23146 /* confdefs.h.  */
23147 _ACEOF
23148 cat confdefs.h >>conftest.$ac_ext
23149 cat >>conftest.$ac_ext <<_ACEOF
23150 /* end confdefs.h.  */
23151 #include <locale.h>
23152 int
23153 main ()
23154 {
23155  extern locale_t wc_locales[]
23156   ;
23157   return 0;
23158 }
23159 _ACEOF
23160 rm -f conftest.$ac_objext
23161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23162   (eval $ac_compile) 2>conftest.er1
23163   ac_status=$?
23164   grep -v '^ *+' conftest.er1 >conftest.err
23165   rm -f conftest.er1
23166   cat conftest.err >&5
23167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23168   (exit $ac_status); } &&
23169          { ac_try='test -z "$ac_c_werror_flag"
23170                          || test ! -s conftest.err'
23171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23172   (eval $ac_try) 2>&5
23173   ac_status=$?
23174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23175   (exit $ac_status); }; } &&
23176          { ac_try='test -s conftest.$ac_objext'
23177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23178   (eval $ac_try) 2>&5
23179   ac_status=$?
23180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23181   (exit $ac_status); }; }; then
23182
23183                         _nls_avail=yes
23184
23185
23186
23187
23188
23189
23190
23191
23192
23193
23194
23195
23196
23197
23198
23199
23200   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
23201 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
23202     # Check whether --enable-nls or --disable-nls was given.
23203 if test "${enable_nls+set}" = set; then
23204   enableval="$enable_nls"
23205   USE_NLS=$enableval
23206 else
23207   USE_NLS=yes
23208 fi;
23209   echo "$as_me:$LINENO: result: $USE_NLS" >&5
23210 echo "${ECHO_T}$USE_NLS" >&6
23211
23212
23213
23214
23215   LIBINTL=
23216   LTLIBINTL=
23217   POSUB=
23218
23219     if test "$USE_NLS" = "yes"; then
23220     gt_use_preinstalled_gnugettext=no
23221
23222
23223
23224
23225
23226
23227         echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
23228 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
23229 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
23230   echo $ECHO_N "(cached) $ECHO_C" >&6
23231 else
23232   cat >conftest.$ac_ext <<_ACEOF
23233 /* confdefs.h.  */
23234 _ACEOF
23235 cat confdefs.h >>conftest.$ac_ext
23236 cat >>conftest.$ac_ext <<_ACEOF
23237 /* end confdefs.h.  */
23238 #include <libintl.h>
23239 extern int _nl_msg_cat_cntr;
23240 extern int *_nl_domain_bindings;
23241 int
23242 main ()
23243 {
23244 bindtextdomain ("", "");
23245 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
23246   ;
23247   return 0;
23248 }
23249 _ACEOF
23250 rm -f conftest.$ac_objext conftest$ac_exeext
23251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23252   (eval $ac_link) 2>conftest.er1
23253   ac_status=$?
23254   grep -v '^ *+' conftest.er1 >conftest.err
23255   rm -f conftest.er1
23256   cat conftest.err >&5
23257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23258   (exit $ac_status); } &&
23259          { ac_try='test -z "$ac_c_werror_flag"
23260                          || test ! -s conftest.err'
23261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23262   (eval $ac_try) 2>&5
23263   ac_status=$?
23264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23265   (exit $ac_status); }; } &&
23266          { ac_try='test -s conftest$ac_exeext'
23267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23268   (eval $ac_try) 2>&5
23269   ac_status=$?
23270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23271   (exit $ac_status); }; }; then
23272   gt_cv_func_gnugettext2_libc=yes
23273 else
23274   echo "$as_me: failed program was:" >&5
23275 sed 's/^/| /' conftest.$ac_ext >&5
23276
23277 gt_cv_func_gnugettext2_libc=no
23278 fi
23279 rm -f conftest.err conftest.$ac_objext \
23280       conftest$ac_exeext conftest.$ac_ext
23281 fi
23282 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
23283 echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
23284
23285         if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
23286
23287
23288
23289
23290
23291           am_save_CPPFLAGS="$CPPFLAGS"
23292
23293   for element in $INCICONV; do
23294     haveit=
23295     for x in $CPPFLAGS; do
23296
23297   acl_save_prefix="$prefix"
23298   prefix="$acl_final_prefix"
23299   acl_save_exec_prefix="$exec_prefix"
23300   exec_prefix="$acl_final_exec_prefix"
23301   eval x=\"$x\"
23302   exec_prefix="$acl_save_exec_prefix"
23303   prefix="$acl_save_prefix"
23304
23305       if test "X$x" = "X$element"; then
23306         haveit=yes
23307         break
23308       fi
23309     done
23310     if test -z "$haveit"; then
23311       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23312     fi
23313   done
23314
23315
23316   echo "$as_me:$LINENO: checking for iconv" >&5
23317 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
23318 if test "${am_cv_func_iconv+set}" = set; then
23319   echo $ECHO_N "(cached) $ECHO_C" >&6
23320 else
23321
23322     am_cv_func_iconv="no, consider installing GNU libiconv"
23323     am_cv_lib_iconv=no
23324     cat >conftest.$ac_ext <<_ACEOF
23325 /* confdefs.h.  */
23326 _ACEOF
23327 cat confdefs.h >>conftest.$ac_ext
23328 cat >>conftest.$ac_ext <<_ACEOF
23329 /* end confdefs.h.  */
23330 #include <stdlib.h>
23331 #include <iconv.h>
23332 int
23333 main ()
23334 {
23335 iconv_t cd = iconv_open("","");
23336        iconv(cd,NULL,NULL,NULL,NULL);
23337        iconv_close(cd);
23338   ;
23339   return 0;
23340 }
23341 _ACEOF
23342 rm -f conftest.$ac_objext conftest$ac_exeext
23343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23344   (eval $ac_link) 2>conftest.er1
23345   ac_status=$?
23346   grep -v '^ *+' conftest.er1 >conftest.err
23347   rm -f conftest.er1
23348   cat conftest.err >&5
23349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23350   (exit $ac_status); } &&
23351          { ac_try='test -z "$ac_c_werror_flag"
23352                          || test ! -s conftest.err'
23353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23354   (eval $ac_try) 2>&5
23355   ac_status=$?
23356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23357   (exit $ac_status); }; } &&
23358          { ac_try='test -s conftest$ac_exeext'
23359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23360   (eval $ac_try) 2>&5
23361   ac_status=$?
23362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23363   (exit $ac_status); }; }; then
23364   am_cv_func_iconv=yes
23365 else
23366   echo "$as_me: failed program was:" >&5
23367 sed 's/^/| /' conftest.$ac_ext >&5
23368
23369 fi
23370 rm -f conftest.err conftest.$ac_objext \
23371       conftest$ac_exeext conftest.$ac_ext
23372     if test "$am_cv_func_iconv" != yes; then
23373       am_save_LIBS="$LIBS"
23374       LIBS="$LIBS $LIBICONV"
23375       cat >conftest.$ac_ext <<_ACEOF
23376 /* confdefs.h.  */
23377 _ACEOF
23378 cat confdefs.h >>conftest.$ac_ext
23379 cat >>conftest.$ac_ext <<_ACEOF
23380 /* end confdefs.h.  */
23381 #include <stdlib.h>
23382 #include <iconv.h>
23383 int
23384 main ()
23385 {
23386 iconv_t cd = iconv_open("","");
23387          iconv(cd,NULL,NULL,NULL,NULL);
23388          iconv_close(cd);
23389   ;
23390   return 0;
23391 }
23392 _ACEOF
23393 rm -f conftest.$ac_objext conftest$ac_exeext
23394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23395   (eval $ac_link) 2>conftest.er1
23396   ac_status=$?
23397   grep -v '^ *+' conftest.er1 >conftest.err
23398   rm -f conftest.er1
23399   cat conftest.err >&5
23400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23401   (exit $ac_status); } &&
23402          { ac_try='test -z "$ac_c_werror_flag"
23403                          || test ! -s conftest.err'
23404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23405   (eval $ac_try) 2>&5
23406   ac_status=$?
23407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23408   (exit $ac_status); }; } &&
23409          { ac_try='test -s conftest$ac_exeext'
23410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23411   (eval $ac_try) 2>&5
23412   ac_status=$?
23413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23414   (exit $ac_status); }; }; then
23415   am_cv_lib_iconv=yes
23416         am_cv_func_iconv=yes
23417 else
23418   echo "$as_me: failed program was:" >&5
23419 sed 's/^/| /' conftest.$ac_ext >&5
23420
23421 fi
23422 rm -f conftest.err conftest.$ac_objext \
23423       conftest$ac_exeext conftest.$ac_ext
23424       LIBS="$am_save_LIBS"
23425     fi
23426
23427 fi
23428 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
23429 echo "${ECHO_T}$am_cv_func_iconv" >&6
23430   if test "$am_cv_func_iconv" = yes; then
23431
23432 cat >>confdefs.h <<\_ACEOF
23433 #define HAVE_ICONV 1
23434 _ACEOF
23435
23436   fi
23437   if test "$am_cv_lib_iconv" = yes; then
23438     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
23439 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
23440     echo "$as_me:$LINENO: result: $LIBICONV" >&5
23441 echo "${ECHO_T}$LIBICONV" >&6
23442   else
23443             CPPFLAGS="$am_save_CPPFLAGS"
23444     LIBICONV=
23445     LTLIBICONV=
23446   fi
23447
23448
23449
23450
23451
23452
23453     use_additional=yes
23454
23455   acl_save_prefix="$prefix"
23456   prefix="$acl_final_prefix"
23457   acl_save_exec_prefix="$exec_prefix"
23458   exec_prefix="$acl_final_exec_prefix"
23459
23460     eval additional_includedir=\"$includedir\"
23461     eval additional_libdir=\"$libdir\"
23462
23463   exec_prefix="$acl_save_exec_prefix"
23464   prefix="$acl_save_prefix"
23465
23466
23467 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
23468 if test "${with_libintl_prefix+set}" = set; then
23469   withval="$with_libintl_prefix"
23470
23471     if test "X$withval" = "Xno"; then
23472       use_additional=no
23473     else
23474       if test "X$withval" = "X"; then
23475
23476   acl_save_prefix="$prefix"
23477   prefix="$acl_final_prefix"
23478   acl_save_exec_prefix="$exec_prefix"
23479   exec_prefix="$acl_final_exec_prefix"
23480
23481           eval additional_includedir=\"$includedir\"
23482           eval additional_libdir=\"$libdir\"
23483
23484   exec_prefix="$acl_save_exec_prefix"
23485   prefix="$acl_save_prefix"
23486
23487       else
23488         additional_includedir="$withval/include"
23489         additional_libdir="$withval/lib"
23490       fi
23491     fi
23492
23493 fi;
23494       LIBINTL=
23495   LTLIBINTL=
23496   INCINTL=
23497   rpathdirs=
23498   ltrpathdirs=
23499   names_already_handled=
23500   names_next_round='intl '
23501   while test -n "$names_next_round"; do
23502     names_this_round="$names_next_round"
23503     names_next_round=
23504     for name in $names_this_round; do
23505       already_handled=
23506       for n in $names_already_handled; do
23507         if test "$n" = "$name"; then
23508           already_handled=yes
23509           break
23510         fi
23511       done
23512       if test -z "$already_handled"; then
23513         names_already_handled="$names_already_handled $name"
23514                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23515         eval value=\"\$HAVE_LIB$uppername\"
23516         if test -n "$value"; then
23517           if test "$value" = yes; then
23518             eval value=\"\$LIB$uppername\"
23519             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23520             eval value=\"\$LTLIB$uppername\"
23521             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23522           else
23523                                     :
23524           fi
23525         else
23526                               found_dir=
23527           found_la=
23528           found_so=
23529           found_a=
23530           if test $use_additional = yes; then
23531             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23532               found_dir="$additional_libdir"
23533               found_so="$additional_libdir/lib$name.$shlibext"
23534               if test -f "$additional_libdir/lib$name.la"; then
23535                 found_la="$additional_libdir/lib$name.la"
23536               fi
23537             else
23538               if test -f "$additional_libdir/lib$name.$libext"; then
23539                 found_dir="$additional_libdir"
23540                 found_a="$additional_libdir/lib$name.$libext"
23541                 if test -f "$additional_libdir/lib$name.la"; then
23542                   found_la="$additional_libdir/lib$name.la"
23543                 fi
23544               fi
23545             fi
23546           fi
23547           if test "X$found_dir" = "X"; then
23548             for x in $LDFLAGS $LTLIBINTL; do
23549
23550   acl_save_prefix="$prefix"
23551   prefix="$acl_final_prefix"
23552   acl_save_exec_prefix="$exec_prefix"
23553   exec_prefix="$acl_final_exec_prefix"
23554   eval x=\"$x\"
23555   exec_prefix="$acl_save_exec_prefix"
23556   prefix="$acl_save_prefix"
23557
23558               case "$x" in
23559                 -L*)
23560                   dir=`echo "X$x" | sed -e 's/^X-L//'`
23561                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23562                     found_dir="$dir"
23563                     found_so="$dir/lib$name.$shlibext"
23564                     if test -f "$dir/lib$name.la"; then
23565                       found_la="$dir/lib$name.la"
23566                     fi
23567                   else
23568                     if test -f "$dir/lib$name.$libext"; then
23569                       found_dir="$dir"
23570                       found_a="$dir/lib$name.$libext"
23571                       if test -f "$dir/lib$name.la"; then
23572                         found_la="$dir/lib$name.la"
23573                       fi
23574                     fi
23575                   fi
23576                   ;;
23577               esac
23578               if test "X$found_dir" != "X"; then
23579                 break
23580               fi
23581             done
23582           fi
23583           if test "X$found_dir" != "X"; then
23584                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
23585             if test "X$found_so" != "X"; then
23586                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
23587                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23588               else
23589                                                                                 haveit=
23590                 for x in $ltrpathdirs; do
23591                   if test "X$x" = "X$found_dir"; then
23592                     haveit=yes
23593                     break
23594                   fi
23595                 done
23596                 if test -z "$haveit"; then
23597                   ltrpathdirs="$ltrpathdirs $found_dir"
23598                 fi
23599                                 if test "$hardcode_direct" = yes; then
23600                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23601                 else
23602                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
23603                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23604                                                             haveit=
23605                     for x in $rpathdirs; do
23606                       if test "X$x" = "X$found_dir"; then
23607                         haveit=yes
23608                         break
23609                       fi
23610                     done
23611                     if test -z "$haveit"; then
23612                       rpathdirs="$rpathdirs $found_dir"
23613                     fi
23614                   else
23615                                                                                 haveit=
23616                     for x in $LDFLAGS $LIBINTL; do
23617
23618   acl_save_prefix="$prefix"
23619   prefix="$acl_final_prefix"
23620   acl_save_exec_prefix="$exec_prefix"
23621   exec_prefix="$acl_final_exec_prefix"
23622   eval x=\"$x\"
23623   exec_prefix="$acl_save_exec_prefix"
23624   prefix="$acl_save_prefix"
23625
23626                       if test "X$x" = "X-L$found_dir"; then
23627                         haveit=yes
23628                         break
23629                       fi
23630                     done
23631                     if test -z "$haveit"; then
23632                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
23633                     fi
23634                     if test "$hardcode_minus_L" != no; then
23635                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23636                     else
23637                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23638                     fi
23639                   fi
23640                 fi
23641               fi
23642             else
23643               if test "X$found_a" != "X"; then
23644                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
23645               else
23646                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
23647               fi
23648             fi
23649                         additional_includedir=
23650             case "$found_dir" in
23651               */lib | */lib/)
23652                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
23653                 additional_includedir="$basedir/include"
23654                 ;;
23655             esac
23656             if test "X$additional_includedir" != "X"; then
23657                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
23658                 haveit=
23659                 if test "X$additional_includedir" = "X/usr/local/include"; then
23660                   if test -n "$GCC"; then
23661                     case $host_os in
23662                       linux*) haveit=yes;;
23663                     esac
23664                   fi
23665                 fi
23666                 if test -z "$haveit"; then
23667                   for x in $CPPFLAGS $INCINTL; do
23668
23669   acl_save_prefix="$prefix"
23670   prefix="$acl_final_prefix"
23671   acl_save_exec_prefix="$exec_prefix"
23672   exec_prefix="$acl_final_exec_prefix"
23673   eval x=\"$x\"
23674   exec_prefix="$acl_save_exec_prefix"
23675   prefix="$acl_save_prefix"
23676
23677                     if test "X$x" = "X-I$additional_includedir"; then
23678                       haveit=yes
23679                       break
23680                     fi
23681                   done
23682                   if test -z "$haveit"; then
23683                     if test -d "$additional_includedir"; then
23684                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
23685                     fi
23686                   fi
23687                 fi
23688               fi
23689             fi
23690                         if test -n "$found_la"; then
23691                                                         save_libdir="$libdir"
23692               case "$found_la" in
23693                 */* | *\\*) . "$found_la" ;;
23694                 *) . "./$found_la" ;;
23695               esac
23696               libdir="$save_libdir"
23697                             for dep in $dependency_libs; do
23698                 case "$dep" in
23699                   -L*)
23700                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23701                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
23702                       haveit=
23703                       if test "X$additional_libdir" = "X/usr/local/lib"; then
23704                         if test -n "$GCC"; then
23705                           case $host_os in
23706                             linux*) haveit=yes;;
23707                           esac
23708                         fi
23709                       fi
23710                       if test -z "$haveit"; then
23711                         haveit=
23712                         for x in $LDFLAGS $LIBINTL; do
23713
23714   acl_save_prefix="$prefix"
23715   prefix="$acl_final_prefix"
23716   acl_save_exec_prefix="$exec_prefix"
23717   exec_prefix="$acl_final_exec_prefix"
23718   eval x=\"$x\"
23719   exec_prefix="$acl_save_exec_prefix"
23720   prefix="$acl_save_prefix"
23721
23722                           if test "X$x" = "X-L$additional_libdir"; then
23723                             haveit=yes
23724                             break
23725                           fi
23726                         done
23727                         if test -z "$haveit"; then
23728                           if test -d "$additional_libdir"; then
23729                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
23730                           fi
23731                         fi
23732                         haveit=
23733                         for x in $LDFLAGS $LTLIBINTL; do
23734
23735   acl_save_prefix="$prefix"
23736   prefix="$acl_final_prefix"
23737   acl_save_exec_prefix="$exec_prefix"
23738   exec_prefix="$acl_final_exec_prefix"
23739   eval x=\"$x\"
23740   exec_prefix="$acl_save_exec_prefix"
23741   prefix="$acl_save_prefix"
23742
23743                           if test "X$x" = "X-L$additional_libdir"; then
23744                             haveit=yes
23745                             break
23746                           fi
23747                         done
23748                         if test -z "$haveit"; then
23749                           if test -d "$additional_libdir"; then
23750                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
23751                           fi
23752                         fi
23753                       fi
23754                     fi
23755                     ;;
23756                   -R*)
23757                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
23758                     if test "$enable_rpath" != no; then
23759                                                                   haveit=
23760                       for x in $rpathdirs; do
23761                         if test "X$x" = "X$dir"; then
23762                           haveit=yes
23763                           break
23764                         fi
23765                       done
23766                       if test -z "$haveit"; then
23767                         rpathdirs="$rpathdirs $dir"
23768                       fi
23769                                                                   haveit=
23770                       for x in $ltrpathdirs; do
23771                         if test "X$x" = "X$dir"; then
23772                           haveit=yes
23773                           break
23774                         fi
23775                       done
23776                       if test -z "$haveit"; then
23777                         ltrpathdirs="$ltrpathdirs $dir"
23778                       fi
23779                     fi
23780                     ;;
23781                   -l*)
23782                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23783                     ;;
23784                   *.la)
23785                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23786                     ;;
23787                   *)
23788                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
23789                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
23790                     ;;
23791                 esac
23792               done
23793             fi
23794           else
23795                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23796             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
23797           fi
23798         fi
23799       fi
23800     done
23801   done
23802   if test "X$rpathdirs" != "X"; then
23803     if test -n "$hardcode_libdir_separator"; then
23804                         alldirs=
23805       for found_dir in $rpathdirs; do
23806         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23807       done
23808             acl_save_libdir="$libdir"
23809       libdir="$alldirs"
23810       eval flag=\"$hardcode_libdir_flag_spec\"
23811       libdir="$acl_save_libdir"
23812       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23813     else
23814             for found_dir in $rpathdirs; do
23815         acl_save_libdir="$libdir"
23816         libdir="$found_dir"
23817         eval flag=\"$hardcode_libdir_flag_spec\"
23818         libdir="$acl_save_libdir"
23819         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23820       done
23821     fi
23822   fi
23823   if test "X$ltrpathdirs" != "X"; then
23824             for found_dir in $ltrpathdirs; do
23825       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
23826     done
23827   fi
23828
23829           echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
23830 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
23831 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
23832   echo $ECHO_N "(cached) $ECHO_C" >&6
23833 else
23834   gt_save_CPPFLAGS="$CPPFLAGS"
23835             CPPFLAGS="$CPPFLAGS $INCINTL"
23836             gt_save_LIBS="$LIBS"
23837             LIBS="$LIBS $LIBINTL"
23838                         cat >conftest.$ac_ext <<_ACEOF
23839 /* confdefs.h.  */
23840 _ACEOF
23841 cat confdefs.h >>conftest.$ac_ext
23842 cat >>conftest.$ac_ext <<_ACEOF
23843 /* end confdefs.h.  */
23844 #include <libintl.h>
23845 extern int _nl_msg_cat_cntr;
23846 extern
23847 #ifdef __cplusplus
23848 "C"
23849 #endif
23850 const char *_nl_expand_alias ();
23851 int
23852 main ()
23853 {
23854 bindtextdomain ("", "");
23855 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
23856   ;
23857   return 0;
23858 }
23859 _ACEOF
23860 rm -f conftest.$ac_objext conftest$ac_exeext
23861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23862   (eval $ac_link) 2>conftest.er1
23863   ac_status=$?
23864   grep -v '^ *+' conftest.er1 >conftest.err
23865   rm -f conftest.er1
23866   cat conftest.err >&5
23867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23868   (exit $ac_status); } &&
23869          { ac_try='test -z "$ac_c_werror_flag"
23870                          || test ! -s conftest.err'
23871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23872   (eval $ac_try) 2>&5
23873   ac_status=$?
23874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23875   (exit $ac_status); }; } &&
23876          { ac_try='test -s conftest$ac_exeext'
23877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23878   (eval $ac_try) 2>&5
23879   ac_status=$?
23880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23881   (exit $ac_status); }; }; then
23882   gt_cv_func_gnugettext2_libintl=yes
23883 else
23884   echo "$as_me: failed program was:" >&5
23885 sed 's/^/| /' conftest.$ac_ext >&5
23886
23887 gt_cv_func_gnugettext2_libintl=no
23888 fi
23889 rm -f conftest.err conftest.$ac_objext \
23890       conftest$ac_exeext conftest.$ac_ext
23891                         if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
23892               LIBS="$LIBS $LIBICONV"
23893               cat >conftest.$ac_ext <<_ACEOF
23894 /* confdefs.h.  */
23895 _ACEOF
23896 cat confdefs.h >>conftest.$ac_ext
23897 cat >>conftest.$ac_ext <<_ACEOF
23898 /* end confdefs.h.  */
23899 #include <libintl.h>
23900 extern int _nl_msg_cat_cntr;
23901 extern
23902 #ifdef __cplusplus
23903 "C"
23904 #endif
23905 const char *_nl_expand_alias ();
23906 int
23907 main ()
23908 {
23909 bindtextdomain ("", "");
23910 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
23911   ;
23912   return 0;
23913 }
23914 _ACEOF
23915 rm -f conftest.$ac_objext conftest$ac_exeext
23916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23917   (eval $ac_link) 2>conftest.er1
23918   ac_status=$?
23919   grep -v '^ *+' conftest.er1 >conftest.err
23920   rm -f conftest.er1
23921   cat conftest.err >&5
23922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23923   (exit $ac_status); } &&
23924          { ac_try='test -z "$ac_c_werror_flag"
23925                          || test ! -s conftest.err'
23926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23927   (eval $ac_try) 2>&5
23928   ac_status=$?
23929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23930   (exit $ac_status); }; } &&
23931          { ac_try='test -s conftest$ac_exeext'
23932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23933   (eval $ac_try) 2>&5
23934   ac_status=$?
23935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23936   (exit $ac_status); }; }; then
23937   LIBINTL="$LIBINTL $LIBICONV"
23938                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
23939                 gt_cv_func_gnugettext2_libintl=yes
23940
23941 else
23942   echo "$as_me: failed program was:" >&5
23943 sed 's/^/| /' conftest.$ac_ext >&5
23944
23945 fi
23946 rm -f conftest.err conftest.$ac_objext \
23947       conftest$ac_exeext conftest.$ac_ext
23948             fi
23949             CPPFLAGS="$gt_save_CPPFLAGS"
23950             LIBS="$gt_save_LIBS"
23951 fi
23952 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
23953 echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
23954         fi
23955
23956                                         if test "$gt_cv_func_gnugettext2_libc" = "yes" \
23957            || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
23958                 && test "$PACKAGE" != gettext-runtime \
23959                 && test "$PACKAGE" != gettext-tools; }; then
23960           gt_use_preinstalled_gnugettext=yes
23961         else
23962                     LIBINTL=
23963           LTLIBINTL=
23964           INCINTL=
23965         fi
23966
23967
23968
23969     if test "$gt_use_preinstalled_gnugettext" = "yes" \
23970        || test "$nls_cv_use_gnu_gettext" = "yes"; then
23971
23972 cat >>confdefs.h <<\_ACEOF
23973 #define ENABLE_NLS 1
23974 _ACEOF
23975
23976     else
23977       USE_NLS=no
23978     fi
23979   fi
23980
23981   echo "$as_me:$LINENO: checking whether to use NLS" >&5
23982 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
23983   echo "$as_me:$LINENO: result: $USE_NLS" >&5
23984 echo "${ECHO_T}$USE_NLS" >&6
23985   if test "$USE_NLS" = "yes"; then
23986     echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
23987 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
23988     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23989       if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
23990         gt_source="external libintl"
23991       else
23992         gt_source="libc"
23993       fi
23994     else
23995       gt_source="included intl directory"
23996     fi
23997     echo "$as_me:$LINENO: result: $gt_source" >&5
23998 echo "${ECHO_T}$gt_source" >&6
23999   fi
24000
24001   if test "$USE_NLS" = "yes"; then
24002
24003     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
24004       if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
24005         echo "$as_me:$LINENO: checking how to link with libintl" >&5
24006 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
24007         echo "$as_me:$LINENO: result: $LIBINTL" >&5
24008 echo "${ECHO_T}$LIBINTL" >&6
24009
24010   for element in $INCINTL; do
24011     haveit=
24012     for x in $CPPFLAGS; do
24013
24014   acl_save_prefix="$prefix"
24015   prefix="$acl_final_prefix"
24016   acl_save_exec_prefix="$exec_prefix"
24017   exec_prefix="$acl_final_exec_prefix"
24018   eval x=\"$x\"
24019   exec_prefix="$acl_save_exec_prefix"
24020   prefix="$acl_save_prefix"
24021
24022       if test "X$x" = "X$element"; then
24023         haveit=yes
24024         break
24025       fi
24026     done
24027     if test -z "$haveit"; then
24028       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
24029     fi
24030   done
24031
24032       fi
24033
24034
24035 cat >>confdefs.h <<\_ACEOF
24036 #define HAVE_GETTEXT 1
24037 _ACEOF
24038
24039
24040 cat >>confdefs.h <<\_ACEOF
24041 #define HAVE_DCGETTEXT 1
24042 _ACEOF
24043
24044     fi
24045
24046         POSUB=po
24047   fi
24048
24049
24050
24051     INTLLIBS="$LIBINTL"
24052
24053
24054
24055
24056
24057
24058
24059 else
24060   echo "$as_me: failed program was:" >&5
24061 sed 's/^/| /' conftest.$ac_ext >&5
24062
24063 _nls_avail=no
24064 fi
24065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24066
24067
24068
24069
24070
24071
24072
24073
24074
24075
24076
24077
24078
24079
24080 # Check whether --with-rundir or --without-rundir was given.
24081 if test "${with_rundir+set}" = set; then
24082   withval="$with_rundir"
24083    rundir=$withval
24084 else
24085    rundir=/usr/local/citadel
24086 fi;
24087
24088 cat >>confdefs.h <<_ACEOF
24089 #define RUNDIR "$rundir"
24090 _ACEOF
24091
24092
24093
24094
24095 # Check whether --with-staticdir or --without-staticdir was given.
24096 if test "${with_staticdir+set}" = set; then
24097   withval="$with_staticdir"
24098    staticdir=$withval
24099 else
24100    staticdir=$prefix
24101 fi;
24102
24103
24104
24105 # Check whether --with-staticrundir or --without-staticrundir was given.
24106 if test "${with_staticrundir+set}" = set; then
24107   withval="$with_staticrundir"
24108    staticrundir=$withval
24109 else
24110    staticrundir=$staticdir
24111 fi;
24112
24113
24114 cat >>confdefs.h <<_ACEOF
24115 #define DATADIR "$staticrundir"
24116 _ACEOF
24117
24118
24119
24120
24121 # Check whether --with-editordir or --without-editordir was given.
24122 if test "${with_editordir+set}" = set; then
24123   withval="$with_editordir"
24124    editordir=$withval
24125 else
24126    editordir=$staticrundir
24127 fi;
24128
24129
24130 cat >>confdefs.h <<_ACEOF
24131 #define EDITORDIR "$editordir"
24132 _ACEOF
24133
24134
24135
24136
24137                               ac_config_files="$ac_config_files Makefile src/Makefile po/Makefile.in"
24138 cat >confcache <<\_ACEOF
24139 # This file is a shell script that caches the results of configure
24140 # tests run on this system so they can be shared between configure
24141 # scripts and configure runs, see configure's option --config-cache.
24142 # It is not useful on other systems.  If it contains results you don't
24143 # want to keep, you may remove or edit it.
24144 #
24145 # config.status only pays attention to the cache file if you give it
24146 # the --recheck option to rerun configure.
24147 #
24148 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24149 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24150 # following values.
24151
24152 _ACEOF
24153
24154 # The following way of writing the cache mishandles newlines in values,
24155 # but we know of no workaround that is simple, portable, and efficient.
24156 # So, don't put newlines in cache variables' values.
24157 # Ultrix sh set writes to stderr and can't be redirected directly,
24158 # and sets the high bit in the cache file unless we assign to the vars.
24159 {
24160   (set) 2>&1 |
24161     case `(ac_space=' '; set | grep ac_space) 2>&1` in
24162     *ac_space=\ *)
24163       # `set' does not quote correctly, so add quotes (double-quote
24164       # substitution turns \\\\ into \\, and sed turns \\ into \).
24165       sed -n \
24166         "s/'/'\\\\''/g;
24167           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24168       ;;
24169     *)
24170       # `set' quotes correctly as required by POSIX, so do not add quotes.
24171       sed -n \
24172         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
24173       ;;
24174     esac;
24175 } |
24176   sed '
24177      t clear
24178      : clear
24179      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24180      t end
24181      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24182      : end' >>confcache
24183 if diff $cache_file confcache >/dev/null 2>&1; then :; else
24184   if test -w $cache_file; then
24185     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24186     cat confcache >$cache_file
24187   else
24188     echo "not updating unwritable cache $cache_file"
24189   fi
24190 fi
24191 rm -f confcache
24192
24193 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24194 # Let make expand exec_prefix.
24195 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24196
24197 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24198 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24199 # trailing colons and then remove the whole line if VPATH becomes empty
24200 # (actually we leave an empty line to preserve line numbers).
24201 if test "x$srcdir" = x.; then
24202   ac_vpsub='/^[  ]*VPATH[        ]*=/{
24203 s/:*\$(srcdir):*/:/;
24204 s/:*\${srcdir}:*/:/;
24205 s/:*@srcdir@:*/:/;
24206 s/^\([^=]*=[     ]*\):*/\1/;
24207 s/:*$//;
24208 s/^[^=]*=[       ]*$//;
24209 }'
24210 fi
24211
24212 DEFS=-DHAVE_CONFIG_H
24213
24214 ac_libobjs=
24215 ac_ltlibobjs=
24216 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24217   # 1. Remove the extension, and $U if already installed.
24218   ac_i=`echo "$ac_i" |
24219          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
24220   # 2. Add them.
24221   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
24222   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
24223 done
24224 LIBOBJS=$ac_libobjs
24225
24226 LTLIBOBJS=$ac_ltlibobjs
24227
24228
24229 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24230   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
24231 Usually this means the macro was only invoked conditionally." >&5
24232 echo "$as_me: error: conditional \"AMDEP\" was never defined.
24233 Usually this means the macro was only invoked conditionally." >&2;}
24234    { (exit 1); exit 1; }; }
24235 fi
24236 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24237   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
24238 Usually this means the macro was only invoked conditionally." >&5
24239 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
24240 Usually this means the macro was only invoked conditionally." >&2;}
24241    { (exit 1); exit 1; }; }
24242 fi
24243 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24244   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
24245 Usually this means the macro was only invoked conditionally." >&5
24246 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
24247 Usually this means the macro was only invoked conditionally." >&2;}
24248    { (exit 1); exit 1; }; }
24249 fi
24250 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24251   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
24252 Usually this means the macro was only invoked conditionally." >&5
24253 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
24254 Usually this means the macro was only invoked conditionally." >&2;}
24255    { (exit 1); exit 1; }; }
24256 fi
24257
24258 : ${CONFIG_STATUS=./config.status}
24259 ac_clean_files_save=$ac_clean_files
24260 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24261 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24262 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24263 cat >$CONFIG_STATUS <<_ACEOF
24264 #! $SHELL
24265 # Generated by $as_me.
24266 # Run this file to recreate the current configuration.
24267 # Compiler output produced by configure, useful for debugging
24268 # configure, is in config.log if it exists.
24269
24270 debug=false
24271 ac_cs_recheck=false
24272 ac_cs_silent=false
24273 SHELL=\${CONFIG_SHELL-$SHELL}
24274 _ACEOF
24275
24276 cat >>$CONFIG_STATUS <<\_ACEOF
24277 ## --------------------- ##
24278 ## M4sh Initialization.  ##
24279 ## --------------------- ##
24280
24281 # Be Bourne compatible
24282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24283   emulate sh
24284   NULLCMD=:
24285   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24286   # is contrary to our usage.  Disable this feature.
24287   alias -g '${1+"$@"}'='"$@"'
24288 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24289   set -o posix
24290 fi
24291 DUALCASE=1; export DUALCASE # for MKS sh
24292
24293 # Support unset when possible.
24294 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24295   as_unset=unset
24296 else
24297   as_unset=false
24298 fi
24299
24300
24301 # Work around bugs in pre-3.0 UWIN ksh.
24302 $as_unset ENV MAIL MAILPATH
24303 PS1='$ '
24304 PS2='> '
24305 PS4='+ '
24306
24307 # NLS nuisances.
24308 for as_var in \
24309   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24310   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24311   LC_TELEPHONE LC_TIME
24312 do
24313   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24314     eval $as_var=C; export $as_var
24315   else
24316     $as_unset $as_var
24317   fi
24318 done
24319
24320 # Required to use basename.
24321 if expr a : '\(a\)' >/dev/null 2>&1; then
24322   as_expr=expr
24323 else
24324   as_expr=false
24325 fi
24326
24327 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
24328   as_basename=basename
24329 else
24330   as_basename=false
24331 fi
24332
24333
24334 # Name of the executable.
24335 as_me=`$as_basename "$0" ||
24336 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24337          X"$0" : 'X\(//\)$' \| \
24338          X"$0" : 'X\(/\)$' \| \
24339          .     : '\(.\)' 2>/dev/null ||
24340 echo X/"$0" |
24341     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24342           /^X\/\(\/\/\)$/{ s//\1/; q; }
24343           /^X\/\(\/\).*/{ s//\1/; q; }
24344           s/.*/./; q'`
24345
24346
24347 # PATH needs CR, and LINENO needs CR and PATH.
24348 # Avoid depending upon Character Ranges.
24349 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24350 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24351 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24352 as_cr_digits='0123456789'
24353 as_cr_alnum=$as_cr_Letters$as_cr_digits
24354
24355 # The user is always right.
24356 if test "${PATH_SEPARATOR+set}" != set; then
24357   echo "#! /bin/sh" >conf$$.sh
24358   echo  "exit 0"   >>conf$$.sh
24359   chmod +x conf$$.sh
24360   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24361     PATH_SEPARATOR=';'
24362   else
24363     PATH_SEPARATOR=:
24364   fi
24365   rm -f conf$$.sh
24366 fi
24367
24368
24369   as_lineno_1=$LINENO
24370   as_lineno_2=$LINENO
24371   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24372   test "x$as_lineno_1" != "x$as_lineno_2" &&
24373   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
24374   # Find who we are.  Look in the path if we contain no path at all
24375   # relative or not.
24376   case $0 in
24377     *[\\/]* ) as_myself=$0 ;;
24378     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24379 for as_dir in $PATH
24380 do
24381   IFS=$as_save_IFS
24382   test -z "$as_dir" && as_dir=.
24383   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24384 done
24385
24386        ;;
24387   esac
24388   # We did not find ourselves, most probably we were run as `sh COMMAND'
24389   # in which case we are not to be found in the path.
24390   if test "x$as_myself" = x; then
24391     as_myself=$0
24392   fi
24393   if test ! -f "$as_myself"; then
24394     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24395 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24396    { (exit 1); exit 1; }; }
24397   fi
24398   case $CONFIG_SHELL in
24399   '')
24400     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24401 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24402 do
24403   IFS=$as_save_IFS
24404   test -z "$as_dir" && as_dir=.
24405   for as_base in sh bash ksh sh5; do
24406          case $as_dir in
24407          /*)
24408            if ("$as_dir/$as_base" -c '
24409   as_lineno_1=$LINENO
24410   as_lineno_2=$LINENO
24411   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24412   test "x$as_lineno_1" != "x$as_lineno_2" &&
24413   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
24414              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24415              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24416              CONFIG_SHELL=$as_dir/$as_base
24417              export CONFIG_SHELL
24418              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24419            fi;;
24420          esac
24421        done
24422 done
24423 ;;
24424   esac
24425
24426   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24427   # uniformly replaced by the line number.  The first 'sed' inserts a
24428   # line-number line before each line; the second 'sed' does the real
24429   # work.  The second script uses 'N' to pair each line-number line
24430   # with the numbered line, and appends trailing '-' during
24431   # substitution so that $LINENO is not a special case at line end.
24432   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24433   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
24434   sed '=' <$as_myself |
24435     sed '
24436       N
24437       s,$,-,
24438       : loop
24439       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24440       t loop
24441       s,-$,,
24442       s,^['$as_cr_digits']*\n,,
24443     ' >$as_me.lineno &&
24444   chmod +x $as_me.lineno ||
24445     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24446 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24447    { (exit 1); exit 1; }; }
24448
24449   # Don't try to exec as it changes $[0], causing all sort of problems
24450   # (the dirname of $[0] is not the place where we might find the
24451   # original and so on.  Autoconf is especially sensible to this).
24452   . ./$as_me.lineno
24453   # Exit status is that of the last command.
24454   exit
24455 }
24456
24457
24458 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24459   *c*,-n*) ECHO_N= ECHO_C='
24460 ' ECHO_T='      ' ;;
24461   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24462   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
24463 esac
24464
24465 if expr a : '\(a\)' >/dev/null 2>&1; then
24466   as_expr=expr
24467 else
24468   as_expr=false
24469 fi
24470
24471 rm -f conf$$ conf$$.exe conf$$.file
24472 echo >conf$$.file
24473 if ln -s conf$$.file conf$$ 2>/dev/null; then
24474   # We could just check for DJGPP; but this test a) works b) is more generic
24475   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24476   if test -f conf$$.exe; then
24477     # Don't use ln at all; we don't have any links
24478     as_ln_s='cp -p'
24479   else
24480     as_ln_s='ln -s'
24481   fi
24482 elif ln conf$$.file conf$$ 2>/dev/null; then
24483   as_ln_s=ln
24484 else
24485   as_ln_s='cp -p'
24486 fi
24487 rm -f conf$$ conf$$.exe conf$$.file
24488
24489 if mkdir -p . 2>/dev/null; then
24490   as_mkdir_p=:
24491 else
24492   test -d ./-p && rmdir ./-p
24493   as_mkdir_p=false
24494 fi
24495
24496 as_executable_p="test -f"
24497
24498 # Sed expression to map a string onto a valid CPP name.
24499 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24500
24501 # Sed expression to map a string onto a valid variable name.
24502 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24503
24504
24505 # IFS
24506 # We need space, tab and new line, in precisely that order.
24507 as_nl='
24508 '
24509 IFS="   $as_nl"
24510
24511 # CDPATH.
24512 $as_unset CDPATH
24513
24514 exec 6>&1
24515
24516 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24517 # report actual input values of CONFIG_FILES etc. instead of their
24518 # values after options handling.  Logging --version etc. is OK.
24519 exec 5>>config.log
24520 {
24521   echo
24522   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24523 ## Running $as_me. ##
24524 _ASBOX
24525 } >&5
24526 cat >&5 <<_CSEOF
24527
24528 This file was extended by webcit $as_me 6.80, which was
24529 generated by GNU Autoconf 2.59.  Invocation command line was
24530
24531   CONFIG_FILES    = $CONFIG_FILES
24532   CONFIG_HEADERS  = $CONFIG_HEADERS
24533   CONFIG_LINKS    = $CONFIG_LINKS
24534   CONFIG_COMMANDS = $CONFIG_COMMANDS
24535   $ $0 $@
24536
24537 _CSEOF
24538 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24539 echo >&5
24540 _ACEOF
24541
24542 # Files that config.status was made for.
24543 if test -n "$ac_config_files"; then
24544   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24545 fi
24546
24547 if test -n "$ac_config_headers"; then
24548   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24549 fi
24550
24551 if test -n "$ac_config_links"; then
24552   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24553 fi
24554
24555 if test -n "$ac_config_commands"; then
24556   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24557 fi
24558
24559 cat >>$CONFIG_STATUS <<\_ACEOF
24560
24561 ac_cs_usage="\
24562 \`$as_me' instantiates files from templates according to the
24563 current configuration.
24564
24565 Usage: $0 [OPTIONS] [FILE]...
24566
24567   -h, --help       print this help, then exit
24568   -V, --version    print version number, then exit
24569   -q, --quiet      do not print progress messages
24570   -d, --debug      don't remove temporary files
24571       --recheck    update $as_me by reconfiguring in the same conditions
24572   --file=FILE[:TEMPLATE]
24573                    instantiate the configuration file FILE
24574   --header=FILE[:TEMPLATE]
24575                    instantiate the configuration header FILE
24576
24577 Configuration files:
24578 $config_files
24579
24580 Configuration headers:
24581 $config_headers
24582
24583 Configuration commands:
24584 $config_commands
24585
24586 Report bugs to <bug-autoconf@gnu.org>."
24587 _ACEOF
24588
24589 cat >>$CONFIG_STATUS <<_ACEOF
24590 ac_cs_version="\\
24591 webcit config.status 6.80
24592 configured by $0, generated by GNU Autoconf 2.59,
24593   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24594
24595 Copyright (C) 2003 Free Software Foundation, Inc.
24596 This config.status script is free software; the Free Software Foundation
24597 gives unlimited permission to copy, distribute and modify it."
24598 srcdir=$srcdir
24599 INSTALL="$INSTALL"
24600 _ACEOF
24601
24602 cat >>$CONFIG_STATUS <<\_ACEOF
24603 # If no file are specified by the user, then we need to provide default
24604 # value.  By we need to know if files were specified by the user.
24605 ac_need_defaults=:
24606 while test $# != 0
24607 do
24608   case $1 in
24609   --*=*)
24610     ac_option=`expr "x$1" : 'x\([^=]*\)='`
24611     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24612     ac_shift=:
24613     ;;
24614   -*)
24615     ac_option=$1
24616     ac_optarg=$2
24617     ac_shift=shift
24618     ;;
24619   *) # This is not an option, so the user has probably given explicit
24620      # arguments.
24621      ac_option=$1
24622      ac_need_defaults=false;;
24623   esac
24624
24625   case $ac_option in
24626   # Handling of the options.
24627 _ACEOF
24628 cat >>$CONFIG_STATUS <<\_ACEOF
24629   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24630     ac_cs_recheck=: ;;
24631   --version | --vers* | -V )
24632     echo "$ac_cs_version"; exit 0 ;;
24633   --he | --h)
24634     # Conflict between --help and --header
24635     { { echo "$as_me:$LINENO: error: ambiguous option: $1
24636 Try \`$0 --help' for more information." >&5
24637 echo "$as_me: error: ambiguous option: $1
24638 Try \`$0 --help' for more information." >&2;}
24639    { (exit 1); exit 1; }; };;
24640   --help | --hel | -h )
24641     echo "$ac_cs_usage"; exit 0 ;;
24642   --debug | --d* | -d )
24643     debug=: ;;
24644   --file | --fil | --fi | --f )
24645     $ac_shift
24646     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24647     ac_need_defaults=false;;
24648   --header | --heade | --head | --hea )
24649     $ac_shift
24650     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24651     ac_need_defaults=false;;
24652   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24653   | -silent | --silent | --silen | --sile | --sil | --si | --s)
24654     ac_cs_silent=: ;;
24655
24656   # This is an error.
24657   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24658 Try \`$0 --help' for more information." >&5
24659 echo "$as_me: error: unrecognized option: $1
24660 Try \`$0 --help' for more information." >&2;}
24661    { (exit 1); exit 1; }; } ;;
24662
24663   *) ac_config_targets="$ac_config_targets $1" ;;
24664
24665   esac
24666   shift
24667 done
24668
24669 ac_configure_extra_args=
24670
24671 if $ac_cs_silent; then
24672   exec 6>/dev/null
24673   ac_configure_extra_args="$ac_configure_extra_args --silent"
24674 fi
24675
24676 _ACEOF
24677 cat >>$CONFIG_STATUS <<_ACEOF
24678 if \$ac_cs_recheck; then
24679   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24680   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24681 fi
24682
24683 _ACEOF
24684
24685 cat >>$CONFIG_STATUS <<_ACEOF
24686 #
24687 # INIT-COMMANDS section.
24688 #
24689
24690 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24691 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
24692     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
24693     # from automake.
24694     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
24695     # Capture the value of LINGUAS because we need it to compute CATALOGS.
24696     LINGUAS="${LINGUAS-%UNSET%}"
24697
24698
24699 _ACEOF
24700
24701
24702
24703 cat >>$CONFIG_STATUS <<\_ACEOF
24704 for ac_config_target in $ac_config_targets
24705 do
24706   case "$ac_config_target" in
24707   # Handling of arguments.
24708   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24709   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
24710   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
24711   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24712   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
24713   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
24714   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24715 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24716    { (exit 1); exit 1; }; };;
24717   esac
24718 done
24719
24720 # If the user did not use the arguments to specify the items to instantiate,
24721 # then the envvar interface is used.  Set only those that are not.
24722 # We use the long form for the default assignment because of an extremely
24723 # bizarre bug on SunOS 4.1.3.
24724 if $ac_need_defaults; then
24725   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24726   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24727   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24728 fi
24729
24730 # Have a temporary directory for convenience.  Make it in the build tree
24731 # simply because there is no reason to put it here, and in addition,
24732 # creating and moving files from /tmp can sometimes cause problems.
24733 # Create a temporary directory, and hook for its removal unless debugging.
24734 $debug ||
24735 {
24736   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24737   trap '{ (exit 1); exit 1; }' 1 2 13 15
24738 }
24739
24740 # Create a (secure) tmp directory for tmp files.
24741
24742 {
24743   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24744   test -n "$tmp" && test -d "$tmp"
24745 }  ||
24746 {
24747   tmp=./confstat$$-$RANDOM
24748   (umask 077 && mkdir $tmp)
24749 } ||
24750 {
24751    echo "$me: cannot create a temporary directory in ." >&2
24752    { (exit 1); exit 1; }
24753 }
24754
24755 _ACEOF
24756
24757 cat >>$CONFIG_STATUS <<_ACEOF
24758
24759 #
24760 # CONFIG_FILES section.
24761 #
24762
24763 # No need to generate the scripts if there are no CONFIG_FILES.
24764 # This happens for instance when ./config.status config.h
24765 if test -n "\$CONFIG_FILES"; then
24766   # Protect against being on the right side of a sed subst in config.status.
24767   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24768    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24769 s,@SHELL@,$SHELL,;t t
24770 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24771 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24772 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24773 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24774 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24775 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24776 s,@exec_prefix@,$exec_prefix,;t t
24777 s,@prefix@,$prefix,;t t
24778 s,@program_transform_name@,$program_transform_name,;t t
24779 s,@bindir@,$bindir,;t t
24780 s,@sbindir@,$sbindir,;t t
24781 s,@libexecdir@,$libexecdir,;t t
24782 s,@datadir@,$datadir,;t t
24783 s,@sysconfdir@,$sysconfdir,;t t
24784 s,@sharedstatedir@,$sharedstatedir,;t t
24785 s,@localstatedir@,$localstatedir,;t t
24786 s,@libdir@,$libdir,;t t
24787 s,@includedir@,$includedir,;t t
24788 s,@oldincludedir@,$oldincludedir,;t t
24789 s,@infodir@,$infodir,;t t
24790 s,@mandir@,$mandir,;t t
24791 s,@build_alias@,$build_alias,;t t
24792 s,@host_alias@,$host_alias,;t t
24793 s,@target_alias@,$target_alias,;t t
24794 s,@DEFS@,$DEFS,;t t
24795 s,@ECHO_C@,$ECHO_C,;t t
24796 s,@ECHO_N@,$ECHO_N,;t t
24797 s,@ECHO_T@,$ECHO_T,;t t
24798 s,@LIBS@,$LIBS,;t t
24799 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24800 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24801 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24802 s,@CYGPATH_W@,$CYGPATH_W,;t t
24803 s,@PACKAGE@,$PACKAGE,;t t
24804 s,@VERSION@,$VERSION,;t t
24805 s,@ACLOCAL@,$ACLOCAL,;t t
24806 s,@AUTOCONF@,$AUTOCONF,;t t
24807 s,@AUTOMAKE@,$AUTOMAKE,;t t
24808 s,@AUTOHEADER@,$AUTOHEADER,;t t
24809 s,@MAKEINFO@,$MAKEINFO,;t t
24810 s,@install_sh@,$install_sh,;t t
24811 s,@STRIP@,$STRIP,;t t
24812 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24813 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
24814 s,@mkdir_p@,$mkdir_p,;t t
24815 s,@AWK@,$AWK,;t t
24816 s,@SET_MAKE@,$SET_MAKE,;t t
24817 s,@am__leading_dot@,$am__leading_dot,;t t
24818 s,@AMTAR@,$AMTAR,;t t
24819 s,@am__tar@,$am__tar,;t t
24820 s,@am__untar@,$am__untar,;t t
24821 s,@build@,$build,;t t
24822 s,@build_cpu@,$build_cpu,;t t
24823 s,@build_vendor@,$build_vendor,;t t
24824 s,@build_os@,$build_os,;t t
24825 s,@host@,$host,;t t
24826 s,@host_cpu@,$host_cpu,;t t
24827 s,@host_vendor@,$host_vendor,;t t
24828 s,@host_os@,$host_os,;t t
24829 s,@CC@,$CC,;t t
24830 s,@CFLAGS@,$CFLAGS,;t t
24831 s,@LDFLAGS@,$LDFLAGS,;t t
24832 s,@CPPFLAGS@,$CPPFLAGS,;t t
24833 s,@ac_ct_CC@,$ac_ct_CC,;t t
24834 s,@EXEEXT@,$EXEEXT,;t t
24835 s,@OBJEXT@,$OBJEXT,;t t
24836 s,@DEPDIR@,$DEPDIR,;t t
24837 s,@am__include@,$am__include,;t t
24838 s,@am__quote@,$am__quote,;t t
24839 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
24840 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
24841 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
24842 s,@CCDEPMODE@,$CCDEPMODE,;t t
24843 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
24844 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
24845 s,@EGREP@,$EGREP,;t t
24846 s,@LN_S@,$LN_S,;t t
24847 s,@ECHO@,$ECHO,;t t
24848 s,@AR@,$AR,;t t
24849 s,@ac_ct_AR@,$ac_ct_AR,;t t
24850 s,@RANLIB@,$RANLIB,;t t
24851 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24852 s,@CPP@,$CPP,;t t
24853 s,@CXX@,$CXX,;t t
24854 s,@CXXFLAGS@,$CXXFLAGS,;t t
24855 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24856 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
24857 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
24858 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
24859 s,@CXXCPP@,$CXXCPP,;t t
24860 s,@F77@,$F77,;t t
24861 s,@FFLAGS@,$FFLAGS,;t t
24862 s,@ac_ct_F77@,$ac_ct_F77,;t t
24863 s,@LIBTOOL@,$LIBTOOL,;t t
24864 s,@PROG_SUBDIRS@,$PROG_SUBDIRS,;t t
24865 s,@SED@,$SED,;t t
24866 s,@PTHREAD_DEFS@,$PTHREAD_DEFS,;t t
24867 s,@LIBOBJS@,$LIBOBJS,;t t
24868 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
24869 s,@USE_NLS@,$USE_NLS,;t t
24870 s,@MSGFMT@,$MSGFMT,;t t
24871 s,@GMSGFMT@,$GMSGFMT,;t t
24872 s,@XGETTEXT@,$XGETTEXT,;t t
24873 s,@MSGMERGE@,$MSGMERGE,;t t
24874 s,@LIBICONV@,$LIBICONV,;t t
24875 s,@LTLIBICONV@,$LTLIBICONV,;t t
24876 s,@INTLLIBS@,$INTLLIBS,;t t
24877 s,@LIBINTL@,$LIBINTL,;t t
24878 s,@LTLIBINTL@,$LTLIBINTL,;t t
24879 s,@POSUB@,$POSUB,;t t
24880 s,@SETUP_LIBS@,$SETUP_LIBS,;t t
24881 s,@staticdir@,$staticdir,;t t
24882 s,@editordir@,$editordir,;t t
24883 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24884 CEOF
24885
24886 _ACEOF
24887
24888   cat >>$CONFIG_STATUS <<\_ACEOF
24889   # Split the substitutions into bite-sized pieces for seds with
24890   # small command number limits, like on Digital OSF/1 and HP-UX.
24891   ac_max_sed_lines=48
24892   ac_sed_frag=1 # Number of current file.
24893   ac_beg=1 # First line for current file.
24894   ac_end=$ac_max_sed_lines # Line after last line for current file.
24895   ac_more_lines=:
24896   ac_sed_cmds=
24897   while $ac_more_lines; do
24898     if test $ac_beg -gt 1; then
24899       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24900     else
24901       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24902     fi
24903     if test ! -s $tmp/subs.frag; then
24904       ac_more_lines=false
24905     else
24906       # The purpose of the label and of the branching condition is to
24907       # speed up the sed processing (if there are no `@' at all, there
24908       # is no need to browse any of the substitutions).
24909       # These are the two extra sed commands mentioned above.
24910       (echo ':t
24911   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24912       if test -z "$ac_sed_cmds"; then
24913         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24914       else
24915         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24916       fi
24917       ac_sed_frag=`expr $ac_sed_frag + 1`
24918       ac_beg=$ac_end
24919       ac_end=`expr $ac_end + $ac_max_sed_lines`
24920     fi
24921   done
24922   if test -z "$ac_sed_cmds"; then
24923     ac_sed_cmds=cat
24924   fi
24925 fi # test -n "$CONFIG_FILES"
24926
24927 _ACEOF
24928 cat >>$CONFIG_STATUS <<\_ACEOF
24929 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24930   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24931   case $ac_file in
24932   - | *:- | *:-:* ) # input from stdin
24933         cat >$tmp/stdin
24934         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24935         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24936   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24937         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24938   * )   ac_file_in=$ac_file.in ;;
24939   esac
24940
24941   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24942   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24943 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24944          X"$ac_file" : 'X\(//\)[^/]' \| \
24945          X"$ac_file" : 'X\(//\)$' \| \
24946          X"$ac_file" : 'X\(/\)' \| \
24947          .     : '\(.\)' 2>/dev/null ||
24948 echo X"$ac_file" |
24949     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24950           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24951           /^X\(\/\/\)$/{ s//\1/; q; }
24952           /^X\(\/\).*/{ s//\1/; q; }
24953           s/.*/./; q'`
24954   { if $as_mkdir_p; then
24955     mkdir -p "$ac_dir"
24956   else
24957     as_dir="$ac_dir"
24958     as_dirs=
24959     while test ! -d "$as_dir"; do
24960       as_dirs="$as_dir $as_dirs"
24961       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24962 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24963          X"$as_dir" : 'X\(//\)[^/]' \| \
24964          X"$as_dir" : 'X\(//\)$' \| \
24965          X"$as_dir" : 'X\(/\)' \| \
24966          .     : '\(.\)' 2>/dev/null ||
24967 echo X"$as_dir" |
24968     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24969           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24970           /^X\(\/\/\)$/{ s//\1/; q; }
24971           /^X\(\/\).*/{ s//\1/; q; }
24972           s/.*/./; q'`
24973     done
24974     test ! -n "$as_dirs" || mkdir $as_dirs
24975   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24976 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24977    { (exit 1); exit 1; }; }; }
24978
24979   ac_builddir=.
24980
24981 if test "$ac_dir" != .; then
24982   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24983   # A "../" for each directory in $ac_dir_suffix.
24984   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24985 else
24986   ac_dir_suffix= ac_top_builddir=
24987 fi
24988
24989 case $srcdir in
24990   .)  # No --srcdir option.  We are building in place.
24991     ac_srcdir=.
24992     if test -z "$ac_top_builddir"; then
24993        ac_top_srcdir=.
24994     else
24995        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24996     fi ;;
24997   [\\/]* | ?:[\\/]* )  # Absolute path.
24998     ac_srcdir=$srcdir$ac_dir_suffix;
24999     ac_top_srcdir=$srcdir ;;
25000   *) # Relative path.
25001     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25002     ac_top_srcdir=$ac_top_builddir$srcdir ;;
25003 esac
25004
25005 # Do not use `cd foo && pwd` to compute absolute paths, because
25006 # the directories may not exist.
25007 case `pwd` in
25008 .) ac_abs_builddir="$ac_dir";;
25009 *)
25010   case "$ac_dir" in
25011   .) ac_abs_builddir=`pwd`;;
25012   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25013   *) ac_abs_builddir=`pwd`/"$ac_dir";;
25014   esac;;
25015 esac
25016 case $ac_abs_builddir in
25017 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25018 *)
25019   case ${ac_top_builddir}. in
25020   .) ac_abs_top_builddir=$ac_abs_builddir;;
25021   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25022   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25023   esac;;
25024 esac
25025 case $ac_abs_builddir in
25026 .) ac_abs_srcdir=$ac_srcdir;;
25027 *)
25028   case $ac_srcdir in
25029   .) ac_abs_srcdir=$ac_abs_builddir;;
25030   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25031   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25032   esac;;
25033 esac
25034 case $ac_abs_builddir in
25035 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25036 *)
25037   case $ac_top_srcdir in
25038   .) ac_abs_top_srcdir=$ac_abs_builddir;;
25039   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25040   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25041   esac;;
25042 esac
25043
25044
25045   case $INSTALL in
25046   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25047   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
25048   esac
25049
25050   if test x"$ac_file" != x-; then
25051     { echo "$as_me:$LINENO: creating $ac_file" >&5
25052 echo "$as_me: creating $ac_file" >&6;}
25053     rm -f "$ac_file"
25054   fi
25055   # Let's still pretend it is `configure' which instantiates (i.e., don't
25056   # use $as_me), people would be surprised to read:
25057   #    /* config.h.  Generated by config.status.  */
25058   if test x"$ac_file" = x-; then
25059     configure_input=
25060   else
25061     configure_input="$ac_file.  "
25062   fi
25063   configure_input=$configure_input"Generated from `echo $ac_file_in |
25064                                      sed 's,.*/,,'` by configure."
25065
25066   # First look for the input files in the build tree, otherwise in the
25067   # src tree.
25068   ac_file_inputs=`IFS=:
25069     for f in $ac_file_in; do
25070       case $f in
25071       -) echo $tmp/stdin ;;
25072       [\\/$]*)
25073          # Absolute (can't be DOS-style, as IFS=:)
25074          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25075 echo "$as_me: error: cannot find input file: $f" >&2;}
25076    { (exit 1); exit 1; }; }
25077          echo "$f";;
25078       *) # Relative
25079          if test -f "$f"; then
25080            # Build tree
25081            echo "$f"
25082          elif test -f "$srcdir/$f"; then
25083            # Source tree
25084            echo "$srcdir/$f"
25085          else
25086            # /dev/null tree
25087            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25088 echo "$as_me: error: cannot find input file: $f" >&2;}
25089    { (exit 1); exit 1; }; }
25090          fi;;
25091       esac
25092     done` || { (exit 1); exit 1; }
25093 _ACEOF
25094 cat >>$CONFIG_STATUS <<_ACEOF
25095   sed "$ac_vpsub
25096 $extrasub
25097 _ACEOF
25098 cat >>$CONFIG_STATUS <<\_ACEOF
25099 :t
25100 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25101 s,@configure_input@,$configure_input,;t t
25102 s,@srcdir@,$ac_srcdir,;t t
25103 s,@abs_srcdir@,$ac_abs_srcdir,;t t
25104 s,@top_srcdir@,$ac_top_srcdir,;t t
25105 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
25106 s,@builddir@,$ac_builddir,;t t
25107 s,@abs_builddir@,$ac_abs_builddir,;t t
25108 s,@top_builddir@,$ac_top_builddir,;t t
25109 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
25110 s,@INSTALL@,$ac_INSTALL,;t t
25111 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
25112   rm -f $tmp/stdin
25113   if test x"$ac_file" != x-; then
25114     mv $tmp/out $ac_file
25115   else
25116     cat $tmp/out
25117     rm -f $tmp/out
25118   fi
25119
25120 done
25121 _ACEOF
25122 cat >>$CONFIG_STATUS <<\_ACEOF
25123
25124 #
25125 # CONFIG_HEADER section.
25126 #
25127
25128 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
25129 # NAME is the cpp macro being defined and VALUE is the value it is being given.
25130 #
25131 # ac_d sets the value in "#define NAME VALUE" lines.
25132 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
25133 ac_dB='[         ].*$,\1#\2'
25134 ac_dC=' '
25135 ac_dD=',;t'
25136 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
25137 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
25138 ac_uB='$,\1#\2define\3'
25139 ac_uC=' '
25140 ac_uD=',;t'
25141
25142 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
25143   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25144   case $ac_file in
25145   - | *:- | *:-:* ) # input from stdin
25146         cat >$tmp/stdin
25147         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25148         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25149   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25150         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25151   * )   ac_file_in=$ac_file.in ;;
25152   esac
25153
25154   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
25155 echo "$as_me: creating $ac_file" >&6;}
25156
25157   # First look for the input files in the build tree, otherwise in the
25158   # src tree.
25159   ac_file_inputs=`IFS=:
25160     for f in $ac_file_in; do
25161       case $f in
25162       -) echo $tmp/stdin ;;
25163       [\\/$]*)
25164          # Absolute (can't be DOS-style, as IFS=:)
25165          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25166 echo "$as_me: error: cannot find input file: $f" >&2;}
25167    { (exit 1); exit 1; }; }
25168          # Do quote $f, to prevent DOS paths from being IFS'd.
25169          echo "$f";;
25170       *) # Relative
25171          if test -f "$f"; then
25172            # Build tree
25173            echo "$f"
25174          elif test -f "$srcdir/$f"; then
25175            # Source tree
25176            echo "$srcdir/$f"
25177          else
25178            # /dev/null tree
25179            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25180 echo "$as_me: error: cannot find input file: $f" >&2;}
25181    { (exit 1); exit 1; }; }
25182          fi;;
25183       esac
25184     done` || { (exit 1); exit 1; }
25185   # Remove the trailing spaces.
25186   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
25187
25188 _ACEOF
25189
25190 # Transform confdefs.h into two sed scripts, `conftest.defines' and
25191 # `conftest.undefs', that substitutes the proper values into
25192 # config.h.in to produce config.h.  The first handles `#define'
25193 # templates, and the second `#undef' templates.
25194 # And first: Protect against being on the right side of a sed subst in
25195 # config.status.  Protect against being in an unquoted here document
25196 # in config.status.
25197 rm -f conftest.defines conftest.undefs
25198 # Using a here document instead of a string reduces the quoting nightmare.
25199 # Putting comments in sed scripts is not portable.
25200 #
25201 # `end' is used to avoid that the second main sed command (meant for
25202 # 0-ary CPP macros) applies to n-ary macro definitions.
25203 # See the Autoconf documentation for `clear'.
25204 cat >confdef2sed.sed <<\_ACEOF
25205 s/[\\&,]/\\&/g
25206 s,[\\$`],\\&,g
25207 t clear
25208 : clear
25209 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
25210 t end
25211 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
25212 : end
25213 _ACEOF
25214 # If some macros were called several times there might be several times
25215 # the same #defines, which is useless.  Nevertheless, we may not want to
25216 # sort them, since we want the *last* AC-DEFINE to be honored.
25217 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
25218 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
25219 rm -f confdef2sed.sed
25220
25221 # This sed command replaces #undef with comments.  This is necessary, for
25222 # example, in the case of _POSIX_SOURCE, which is predefined and required
25223 # on some systems where configure will not decide to define it.
25224 cat >>conftest.undefs <<\_ACEOF
25225 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
25226 _ACEOF
25227
25228 # Break up conftest.defines because some shells have a limit on the size
25229 # of here documents, and old seds have small limits too (100 cmds).
25230 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
25231 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
25232 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25233 echo '  :' >>$CONFIG_STATUS
25234 rm -f conftest.tail
25235 while grep . conftest.defines >/dev/null
25236 do
25237   # Write a limited-size here document to $tmp/defines.sed.
25238   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25239   # Speed up: don't consider the non `#define' lines.
25240   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
25241   # Work around the forget-to-reset-the-flag bug.
25242   echo 't clr' >>$CONFIG_STATUS
25243   echo ': clr' >>$CONFIG_STATUS
25244   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
25245   echo 'CEOF
25246   sed -f $tmp/defines.sed $tmp/in >$tmp/out
25247   rm -f $tmp/in
25248   mv $tmp/out $tmp/in
25249 ' >>$CONFIG_STATUS
25250   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
25251   rm -f conftest.defines
25252   mv conftest.tail conftest.defines
25253 done
25254 rm -f conftest.defines
25255 echo '  fi # grep' >>$CONFIG_STATUS
25256 echo >>$CONFIG_STATUS
25257
25258 # Break up conftest.undefs because some shells have a limit on the size
25259 # of here documents, and old seds have small limits too (100 cmds).
25260 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
25261 rm -f conftest.tail
25262 while grep . conftest.undefs >/dev/null
25263 do
25264   # Write a limited-size here document to $tmp/undefs.sed.
25265   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25266   # Speed up: don't consider the non `#undef'
25267   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
25268   # Work around the forget-to-reset-the-flag bug.
25269   echo 't clr' >>$CONFIG_STATUS
25270   echo ': clr' >>$CONFIG_STATUS
25271   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25272   echo 'CEOF
25273   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25274   rm -f $tmp/in
25275   mv $tmp/out $tmp/in
25276 ' >>$CONFIG_STATUS
25277   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25278   rm -f conftest.undefs
25279   mv conftest.tail conftest.undefs
25280 done
25281 rm -f conftest.undefs
25282
25283 cat >>$CONFIG_STATUS <<\_ACEOF
25284   # Let's still pretend it is `configure' which instantiates (i.e., don't
25285   # use $as_me), people would be surprised to read:
25286   #    /* config.h.  Generated by config.status.  */
25287   if test x"$ac_file" = x-; then
25288     echo "/* Generated by configure.  */" >$tmp/config.h
25289   else
25290     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
25291   fi
25292   cat $tmp/in >>$tmp/config.h
25293   rm -f $tmp/in
25294   if test x"$ac_file" != x-; then
25295     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
25296       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25297 echo "$as_me: $ac_file is unchanged" >&6;}
25298     else
25299       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25300 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25301          X"$ac_file" : 'X\(//\)[^/]' \| \
25302          X"$ac_file" : 'X\(//\)$' \| \
25303          X"$ac_file" : 'X\(/\)' \| \
25304          .     : '\(.\)' 2>/dev/null ||
25305 echo X"$ac_file" |
25306     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25307           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25308           /^X\(\/\/\)$/{ s//\1/; q; }
25309           /^X\(\/\).*/{ s//\1/; q; }
25310           s/.*/./; q'`
25311       { if $as_mkdir_p; then
25312     mkdir -p "$ac_dir"
25313   else
25314     as_dir="$ac_dir"
25315     as_dirs=
25316     while test ! -d "$as_dir"; do
25317       as_dirs="$as_dir $as_dirs"
25318       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25319 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25320          X"$as_dir" : 'X\(//\)[^/]' \| \
25321          X"$as_dir" : 'X\(//\)$' \| \
25322          X"$as_dir" : 'X\(/\)' \| \
25323          .     : '\(.\)' 2>/dev/null ||
25324 echo X"$as_dir" |
25325     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25326           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25327           /^X\(\/\/\)$/{ s//\1/; q; }
25328           /^X\(\/\).*/{ s//\1/; q; }
25329           s/.*/./; q'`
25330     done
25331     test ! -n "$as_dirs" || mkdir $as_dirs
25332   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25333 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25334    { (exit 1); exit 1; }; }; }
25335
25336       rm -f $ac_file
25337       mv $tmp/config.h $ac_file
25338     fi
25339   else
25340     cat $tmp/config.h
25341     rm -f $tmp/config.h
25342   fi
25343 # Compute $ac_file's index in $config_headers.
25344 _am_stamp_count=1
25345 for _am_header in $config_headers :; do
25346   case $_am_header in
25347     $ac_file | $ac_file:* )
25348       break ;;
25349     * )
25350       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25351   esac
25352 done
25353 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
25354 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25355          X$ac_file : 'X\(//\)[^/]' \| \
25356          X$ac_file : 'X\(//\)$' \| \
25357          X$ac_file : 'X\(/\)' \| \
25358          .     : '\(.\)' 2>/dev/null ||
25359 echo X$ac_file |
25360     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25361           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25362           /^X\(\/\/\)$/{ s//\1/; q; }
25363           /^X\(\/\).*/{ s//\1/; q; }
25364           s/.*/./; q'`/stamp-h$_am_stamp_count
25365 done
25366 _ACEOF
25367 cat >>$CONFIG_STATUS <<\_ACEOF
25368
25369 #
25370 # CONFIG_COMMANDS section.
25371 #
25372 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25373   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25374   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25375   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25376 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25377          X"$ac_dest" : 'X\(//\)[^/]' \| \
25378          X"$ac_dest" : 'X\(//\)$' \| \
25379          X"$ac_dest" : 'X\(/\)' \| \
25380          .     : '\(.\)' 2>/dev/null ||
25381 echo X"$ac_dest" |
25382     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25383           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25384           /^X\(\/\/\)$/{ s//\1/; q; }
25385           /^X\(\/\).*/{ s//\1/; q; }
25386           s/.*/./; q'`
25387   { if $as_mkdir_p; then
25388     mkdir -p "$ac_dir"
25389   else
25390     as_dir="$ac_dir"
25391     as_dirs=
25392     while test ! -d "$as_dir"; do
25393       as_dirs="$as_dir $as_dirs"
25394       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25395 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25396          X"$as_dir" : 'X\(//\)[^/]' \| \
25397          X"$as_dir" : 'X\(//\)$' \| \
25398          X"$as_dir" : 'X\(/\)' \| \
25399          .     : '\(.\)' 2>/dev/null ||
25400 echo X"$as_dir" |
25401     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25402           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25403           /^X\(\/\/\)$/{ s//\1/; q; }
25404           /^X\(\/\).*/{ s//\1/; q; }
25405           s/.*/./; q'`
25406     done
25407     test ! -n "$as_dirs" || mkdir $as_dirs
25408   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25409 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25410    { (exit 1); exit 1; }; }; }
25411
25412   ac_builddir=.
25413
25414 if test "$ac_dir" != .; then
25415   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25416   # A "../" for each directory in $ac_dir_suffix.
25417   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25418 else
25419   ac_dir_suffix= ac_top_builddir=
25420 fi
25421
25422 case $srcdir in
25423   .)  # No --srcdir option.  We are building in place.
25424     ac_srcdir=.
25425     if test -z "$ac_top_builddir"; then
25426        ac_top_srcdir=.
25427     else
25428        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25429     fi ;;
25430   [\\/]* | ?:[\\/]* )  # Absolute path.
25431     ac_srcdir=$srcdir$ac_dir_suffix;
25432     ac_top_srcdir=$srcdir ;;
25433   *) # Relative path.
25434     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25435     ac_top_srcdir=$ac_top_builddir$srcdir ;;
25436 esac
25437
25438 # Do not use `cd foo && pwd` to compute absolute paths, because
25439 # the directories may not exist.
25440 case `pwd` in
25441 .) ac_abs_builddir="$ac_dir";;
25442 *)
25443   case "$ac_dir" in
25444   .) ac_abs_builddir=`pwd`;;
25445   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25446   *) ac_abs_builddir=`pwd`/"$ac_dir";;
25447   esac;;
25448 esac
25449 case $ac_abs_builddir in
25450 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25451 *)
25452   case ${ac_top_builddir}. in
25453   .) ac_abs_top_builddir=$ac_abs_builddir;;
25454   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25455   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25456   esac;;
25457 esac
25458 case $ac_abs_builddir in
25459 .) ac_abs_srcdir=$ac_srcdir;;
25460 *)
25461   case $ac_srcdir in
25462   .) ac_abs_srcdir=$ac_abs_builddir;;
25463   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25464   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25465   esac;;
25466 esac
25467 case $ac_abs_builddir in
25468 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25469 *)
25470   case $ac_top_srcdir in
25471   .) ac_abs_top_srcdir=$ac_abs_builddir;;
25472   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25473   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25474   esac;;
25475 esac
25476
25477
25478   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25479 echo "$as_me: executing $ac_dest commands" >&6;}
25480   case $ac_dest in
25481     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
25482   # Strip MF so we end up with the name of the file.
25483   mf=`echo "$mf" | sed -e 's/:.*$//'`
25484   # Check whether this is an Automake generated Makefile or not.
25485   # We used to match only the files named `Makefile.in', but
25486   # some people rename them; so instead we look at the file content.
25487   # Grep'ing the first line is not enough: some people post-process
25488   # each Makefile.in and add a new line on top of each file to say so.
25489   # So let's grep whole file.
25490   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
25491     dirpart=`(dirname "$mf") 2>/dev/null ||
25492 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25493          X"$mf" : 'X\(//\)[^/]' \| \
25494          X"$mf" : 'X\(//\)$' \| \
25495          X"$mf" : 'X\(/\)' \| \
25496          .     : '\(.\)' 2>/dev/null ||
25497 echo X"$mf" |
25498     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25499           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25500           /^X\(\/\/\)$/{ s//\1/; q; }
25501           /^X\(\/\).*/{ s//\1/; q; }
25502           s/.*/./; q'`
25503   else
25504     continue
25505   fi
25506   # Extract the definition of DEPDIR, am__include, and am__quote
25507   # from the Makefile without running `make'.
25508   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25509   test -z "$DEPDIR" && continue
25510   am__include=`sed -n 's/^am__include = //p' < "$mf"`
25511   test -z "am__include" && continue
25512   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25513   # When using ansi2knr, U may be empty or an underscore; expand it
25514   U=`sed -n 's/^U = //p' < "$mf"`
25515   # Find all dependency output files, they are included files with
25516   # $(DEPDIR) in their names.  We invoke sed twice because it is the
25517   # simplest approach to changing $(DEPDIR) to its actual value in the
25518   # expansion.
25519   for file in `sed -n "
25520     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25521        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25522     # Make sure the directory exists.
25523     test -f "$dirpart/$file" && continue
25524     fdir=`(dirname "$file") 2>/dev/null ||
25525 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25526          X"$file" : 'X\(//\)[^/]' \| \
25527          X"$file" : 'X\(//\)$' \| \
25528          X"$file" : 'X\(/\)' \| \
25529          .     : '\(.\)' 2>/dev/null ||
25530 echo X"$file" |
25531     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25532           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25533           /^X\(\/\/\)$/{ s//\1/; q; }
25534           /^X\(\/\).*/{ s//\1/; q; }
25535           s/.*/./; q'`
25536     { if $as_mkdir_p; then
25537     mkdir -p $dirpart/$fdir
25538   else
25539     as_dir=$dirpart/$fdir
25540     as_dirs=
25541     while test ! -d "$as_dir"; do
25542       as_dirs="$as_dir $as_dirs"
25543       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25544 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25545          X"$as_dir" : 'X\(//\)[^/]' \| \
25546          X"$as_dir" : 'X\(//\)$' \| \
25547          X"$as_dir" : 'X\(/\)' \| \
25548          .     : '\(.\)' 2>/dev/null ||
25549 echo X"$as_dir" |
25550     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25551           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25552           /^X\(\/\/\)$/{ s//\1/; q; }
25553           /^X\(\/\).*/{ s//\1/; q; }
25554           s/.*/./; q'`
25555     done
25556     test ! -n "$as_dirs" || mkdir $as_dirs
25557   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
25558 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
25559    { (exit 1); exit 1; }; }; }
25560
25561     # echo "creating $dirpart/$file"
25562     echo '# dummy' > "$dirpart/$file"
25563   done
25564 done
25565  ;;
25566     default-1 )
25567     for ac_file in $CONFIG_FILES; do
25568       # Support "outfile[:infile[:infile...]]"
25569       case "$ac_file" in
25570         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
25571       esac
25572       # PO directories have a Makefile.in generated from Makefile.in.in.
25573       case "$ac_file" in */Makefile.in)
25574         # Adjust a relative srcdir.
25575         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
25576         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
25577         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
25578         # In autoconf-2.13 it is called $ac_given_srcdir.
25579         # In autoconf-2.50 it is called $srcdir.
25580         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
25581         case "$ac_given_srcdir" in
25582           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
25583           /*) top_srcdir="$ac_given_srcdir" ;;
25584           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
25585         esac
25586         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
25587           rm -f "$ac_dir/POTFILES"
25588           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
25589           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
25590           POMAKEFILEDEPS="POTFILES.in"
25591           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
25592           # on $ac_dir but don't depend on user-specified configuration
25593           # parameters.
25594           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
25595             # The LINGUAS file contains the set of available languages.
25596             if test -n "$OBSOLETE_ALL_LINGUAS"; then
25597               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
25598             fi
25599             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
25600             # Hide the ALL_LINGUAS assigment from automake.
25601             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
25602             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
25603           else
25604             # The set of available languages was given in configure.in.
25605             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
25606           fi
25607           # Compute POFILES
25608           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
25609           # Compute UPDATEPOFILES
25610           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
25611           # Compute DUMMYPOFILES
25612           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
25613           # Compute GMOFILES
25614           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
25615           case "$ac_given_srcdir" in
25616             .) srcdirpre= ;;
25617             *) srcdirpre='$(srcdir)/' ;;
25618           esac
25619           POFILES=
25620           UPDATEPOFILES=
25621           DUMMYPOFILES=
25622           GMOFILES=
25623           for lang in $ALL_LINGUAS; do
25624             POFILES="$POFILES $srcdirpre$lang.po"
25625             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
25626             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
25627             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
25628           done
25629           # CATALOGS depends on both $ac_dir and the user's LINGUAS
25630           # environment variable.
25631           INST_LINGUAS=
25632           if test -n "$ALL_LINGUAS"; then
25633             for presentlang in $ALL_LINGUAS; do
25634               useit=no
25635               if test "%UNSET%" != "$LINGUAS"; then
25636                 desiredlanguages="$LINGUAS"
25637               else
25638                 desiredlanguages="$ALL_LINGUAS"
25639               fi
25640               for desiredlang in $desiredlanguages; do
25641                 # Use the presentlang catalog if desiredlang is
25642                 #   a. equal to presentlang, or
25643                 #   b. a variant of presentlang (because in this case,
25644                 #      presentlang can be used as a fallback for messages
25645                 #      which are not translated in the desiredlang catalog).
25646                 case "$desiredlang" in
25647                   "$presentlang"*) useit=yes;;
25648                 esac
25649               done
25650               if test $useit = yes; then
25651                 INST_LINGUAS="$INST_LINGUAS $presentlang"
25652               fi
25653             done
25654           fi
25655           CATALOGS=
25656           if test -n "$INST_LINGUAS"; then
25657             for lang in $INST_LINGUAS; do
25658               CATALOGS="$CATALOGS $lang.gmo"
25659             done
25660           fi
25661           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
25662           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
25663           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
25664             if test -f "$f"; then
25665               case "$f" in
25666                 *.orig | *.bak | *~) ;;
25667                 *) cat "$f" >> "$ac_dir/Makefile" ;;
25668               esac
25669             fi
25670           done
25671         fi
25672         ;;
25673       esac
25674     done ;;
25675   esac
25676 done
25677 _ACEOF
25678
25679 cat >>$CONFIG_STATUS <<\_ACEOF
25680
25681 { (exit 0); exit 0; }
25682 _ACEOF
25683 chmod +x $CONFIG_STATUS
25684 ac_clean_files=$ac_clean_files_save
25685
25686
25687 # configure is writing to config.log, and then calls config.status.
25688 # config.status does its own redirection, appending to config.log.
25689 # Unfortunately, on DOS this fails, as config.log is still kept open
25690 # by configure, so config.status won't be able to write to it; its
25691 # output is simply discarded.  So we exec the FD to /dev/null,
25692 # effectively closing config.log, so it can be properly (re)opened and
25693 # appended to by config.status.  When coming back to configure, we
25694 # need to make the FD available again.
25695 if test "$no_create" != yes; then
25696   ac_cs_success=:
25697   ac_config_status_args=
25698   test "$silent" = yes &&
25699     ac_config_status_args="$ac_config_status_args --quiet"
25700   exec 5>/dev/null
25701   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25702   exec 5>>config.log
25703   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25704   # would make configure fail if this is the last instruction.
25705   $ac_cs_success || { (exit 1); exit 1; }
25706 fi
25707
25708
25709
25710 echo ------------------------------------------------------------------------
25711 echo 'zlib compression:                ' $ok_zlib
25712 echo 'Calendar support:                ' $ok_libical
25713 echo 'Character set conversion support:' $ok_iconv
25714 echo 'National language support:       ' $_nls_avail
25715 echo