Removed the old NLS output from the configure.in summary,
[citadel.git] / webcit / autom4te.cache / output.0
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 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
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 LIB@&t@OBJS INTLTOOL_DESKTOP_RULE INTLTOOL_DIRECTORY_RULE INTLTOOL_KEYS_RULE INTLTOOL_PROP_RULE INTLTOOL_OAF_RULE INTLTOOL_PONG_RULE INTLTOOL_SERVER_RULE INTLTOOL_SHEET_RULE INTLTOOL_SOUNDLIST_RULE INTLTOOL_UI_RULE INTLTOOL_XAM_RULE INTLTOOL_KBD_RULE INTLTOOL_XML_RULE INTLTOOL_XML_NOMERGE_RULE INTLTOOL_CAVES_RULE INTLTOOL_SCHEMAS_RULE INTLTOOL_THEME_RULE INTLTOOL_EXTRACT INTLTOOL_MERGE INTLTOOL_UPDATE INTLTOOL_PERL INTLTOOL_ICONV INTLTOOL_MSGFMT INTLTOOL_MSGMERGE INTLTOOL_XGETTEXT 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 && continue
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
3250 fi
3251
3252 SED=$lt_cv_path_SED
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 variants of GNU ld 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 lds 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 case $host_os in
3394   darwin*)
3395     if test "$GCC" = yes; then
3396       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3397     else
3398       reload_cmds='$LD$reload_flag -o $output$reload_objs'
3399     fi
3400     ;;
3401 esac
3402
3403 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3404 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3405 if test "${lt_cv_path_NM+set}" = set; then
3406   echo $ECHO_N "(cached) $ECHO_C" >&6
3407 else
3408   if test -n "$NM"; then
3409   # Let the user override the test.
3410   lt_cv_path_NM="$NM"
3411 else
3412   lt_nm_to_check="${ac_tool_prefix}nm"
3413   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 
3414     lt_nm_to_check="$lt_nm_to_check nm"
3415   fi
3416   for lt_tmp_nm in $lt_nm_to_check; do
3417     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3418     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3419       IFS="$lt_save_ifs"
3420       test -z "$ac_dir" && ac_dir=.
3421       tmp_nm="$ac_dir/$lt_tmp_nm"
3422       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3423         # Check to see if the nm accepts a BSD-compat flag.
3424         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3425         #   nm: unknown option "B" ignored
3426         # Tru64's nm complains that /dev/null is an invalid object file
3427         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3428         */dev/null* | *'Invalid file or object type'*)
3429           lt_cv_path_NM="$tmp_nm -B"
3430           break
3431           ;;
3432         *)
3433           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3434           */dev/null*)
3435             lt_cv_path_NM="$tmp_nm -p"
3436             break
3437             ;;
3438           *)
3439             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3440             continue # so that we can try to find one that supports BSD flags
3441             ;;
3442           esac
3443           ;;
3444         esac
3445       fi
3446     done
3447     IFS="$lt_save_ifs"
3448   done
3449   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3450 fi
3451 fi
3452 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3453 echo "${ECHO_T}$lt_cv_path_NM" >&6
3454 NM="$lt_cv_path_NM"
3455
3456 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3457 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3458 LN_S=$as_ln_s
3459 if test "$LN_S" = "ln -s"; then
3460   echo "$as_me:$LINENO: result: yes" >&5
3461 echo "${ECHO_T}yes" >&6
3462 else
3463   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3464 echo "${ECHO_T}no, using $LN_S" >&6
3465 fi
3466
3467 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3468 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3469 if test "${lt_cv_deplibs_check_method+set}" = set; then
3470   echo $ECHO_N "(cached) $ECHO_C" >&6
3471 else
3472   lt_cv_file_magic_cmd='$MAGIC_CMD'
3473 lt_cv_file_magic_test_file=
3474 lt_cv_deplibs_check_method='unknown'
3475 # Need to set the preceding variable on all platforms that support
3476 # interlibrary dependencies.
3477 # 'none' -- dependencies not supported.
3478 # `unknown' -- same as none, but documents that we really don't know.
3479 # 'pass_all' -- all dependencies passed with no checks.
3480 # 'test_compile' -- check by making test program.
3481 # 'file_magic [[regex]]' -- check by looking for files in library path
3482 # which responds to the $file_magic_cmd with a given extended regex.
3483 # If you have `file' or equivalent on your system and you're not sure
3484 # whether `pass_all' will *always* work, you probably want this one.
3485
3486 case $host_os in
3487 aix4* | aix5*)
3488   lt_cv_deplibs_check_method=pass_all
3489   ;;
3490
3491 beos*)
3492   lt_cv_deplibs_check_method=pass_all
3493   ;;
3494
3495 bsdi[45]*)
3496   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3497   lt_cv_file_magic_cmd='/usr/bin/file -L'
3498   lt_cv_file_magic_test_file=/shlib/libc.so
3499   ;;
3500
3501 cygwin*)
3502   # func_win32_libid is a shell function defined in ltmain.sh
3503   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3504   lt_cv_file_magic_cmd='func_win32_libid'
3505   ;;
3506
3507 mingw* | pw32*)
3508   # Base MSYS/MinGW do not provide the 'file' command needed by
3509   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3510   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3511   lt_cv_file_magic_cmd='$OBJDUMP -f'
3512   ;;
3513
3514 darwin* | rhapsody*)
3515   lt_cv_deplibs_check_method=pass_all
3516   ;;
3517
3518 freebsd* | kfreebsd*-gnu | dragonfly*)
3519   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3520     case $host_cpu in
3521     i*86 )
3522       # Not sure whether the presence of OpenBSD here was a mistake.
3523       # Let's accept both of them until this is cleared up.
3524       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3525       lt_cv_file_magic_cmd=/usr/bin/file
3526       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3527       ;;
3528     esac
3529   else
3530     lt_cv_deplibs_check_method=pass_all
3531   fi
3532   ;;
3533
3534 gnu*)
3535   lt_cv_deplibs_check_method=pass_all
3536   ;;
3537
3538 hpux10.20* | hpux11*)
3539   lt_cv_file_magic_cmd=/usr/bin/file
3540   case $host_cpu in
3541   ia64*)
3542     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3543     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3544     ;;
3545   hppa*64*)
3546     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]'
3547     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3548     ;;
3549   *)
3550     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3551     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3552     ;;
3553   esac
3554   ;;
3555
3556 interix3*)
3557   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3558   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3559   ;;
3560
3561 irix5* | irix6* | nonstopux*)
3562   case $LD in
3563   *-32|*"-32 ") libmagic=32-bit;;
3564   *-n32|*"-n32 ") libmagic=N32;;
3565   *-64|*"-64 ") libmagic=64-bit;;
3566   *) libmagic=never-match;;
3567   esac
3568   lt_cv_deplibs_check_method=pass_all
3569   ;;
3570
3571 # This must be Linux ELF.
3572 linux*)
3573   lt_cv_deplibs_check_method=pass_all
3574   ;;
3575
3576 netbsd*)
3577   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3578     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3579   else
3580     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3581   fi
3582   ;;
3583
3584 newos6*)
3585   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3586   lt_cv_file_magic_cmd=/usr/bin/file
3587   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3588   ;;
3589
3590 nto-qnx*)
3591   lt_cv_deplibs_check_method=unknown
3592   ;;
3593
3594 openbsd*)
3595   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3596     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3597   else
3598     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3599   fi
3600   ;;
3601
3602 osf3* | osf4* | osf5*)
3603   lt_cv_deplibs_check_method=pass_all
3604   ;;
3605
3606 solaris*)
3607   lt_cv_deplibs_check_method=pass_all
3608   ;;
3609
3610 sysv4 | sysv4.3*)
3611   case $host_vendor in
3612   motorola)
3613     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]'
3614     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3615     ;;
3616   ncr)
3617     lt_cv_deplibs_check_method=pass_all
3618     ;;
3619   sequent)
3620     lt_cv_file_magic_cmd='/bin/file'
3621     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3622     ;;
3623   sni)
3624     lt_cv_file_magic_cmd='/bin/file'
3625     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3626     lt_cv_file_magic_test_file=/lib/libc.so
3627     ;;
3628   siemens)
3629     lt_cv_deplibs_check_method=pass_all
3630     ;;
3631   pc)
3632     lt_cv_deplibs_check_method=pass_all
3633     ;;
3634   esac
3635   ;;
3636
3637 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3638   lt_cv_deplibs_check_method=pass_all
3639   ;;
3640 esac
3641
3642 fi
3643 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3644 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3645 file_magic_cmd=$lt_cv_file_magic_cmd
3646 deplibs_check_method=$lt_cv_deplibs_check_method
3647 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3648
3649
3650
3651
3652 # If no C compiler was specified, use CC.
3653 LTCC=${LTCC-"$CC"}
3654
3655 # If no C compiler flags were specified, use CFLAGS.
3656 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3657
3658 # Allow CC to be a program name with arguments.
3659 compiler=$CC
3660
3661
3662 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3663 if test "${enable_libtool_lock+set}" = set; then
3664   enableval="$enable_libtool_lock"
3665   
3666 fi; 
3667 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3668
3669 # Some flags need to be propagated to the compiler or linker for good
3670 # libtool support.
3671 case $host in
3672 ia64-*-hpux*)
3673   # Find out which ABI we are using.
3674   echo 'int i;' > conftest.$ac_ext
3675   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3676   (eval $ac_compile) 2>&5
3677   ac_status=$?
3678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679   (exit $ac_status); }; then
3680     case `/usr/bin/file conftest.$ac_objext` in
3681     *ELF-32*)
3682       HPUX_IA64_MODE="32"
3683       ;;
3684     *ELF-64*)
3685       HPUX_IA64_MODE="64"
3686       ;;
3687     esac
3688   fi
3689   rm -rf conftest*
3690   ;;
3691 *-*-irix6*)
3692   # Find out which ABI we are using.
3693   echo '#line __oline__ "configure"' > conftest.$ac_ext
3694   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3695   (eval $ac_compile) 2>&5
3696   ac_status=$?
3697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3698   (exit $ac_status); }; then
3699    if test "$lt_cv_prog_gnu_ld" = yes; then
3700     case `/usr/bin/file conftest.$ac_objext` in
3701     *32-bit*)
3702       LD="${LD-ld} -melf32bsmip"
3703       ;;
3704     *N32*)
3705       LD="${LD-ld} -melf32bmipn32"
3706       ;;
3707     *64-bit*)
3708       LD="${LD-ld} -melf64bmip"
3709       ;;
3710     esac
3711    else
3712     case `/usr/bin/file conftest.$ac_objext` in
3713     *32-bit*)
3714       LD="${LD-ld} -32"
3715       ;;
3716     *N32*)
3717       LD="${LD-ld} -n32"
3718       ;;
3719     *64-bit*)
3720       LD="${LD-ld} -64"
3721       ;;
3722     esac
3723    fi
3724   fi
3725   rm -rf conftest*
3726   ;;
3727
3728 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3729   # Find out which ABI we are using.
3730   echo 'int i;' > conftest.$ac_ext
3731   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3732   (eval $ac_compile) 2>&5
3733   ac_status=$?
3734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735   (exit $ac_status); }; then
3736     case `/usr/bin/file conftest.o` in
3737     *32-bit*)
3738       case $host in
3739         x86_64-*linux*)
3740           LD="${LD-ld} -m elf_i386"
3741           ;;
3742         ppc64-*linux*|powerpc64-*linux*)
3743           LD="${LD-ld} -m elf32ppclinux"
3744           ;;
3745         s390x-*linux*)
3746           LD="${LD-ld} -m elf_s390"
3747           ;;
3748         sparc64-*linux*)
3749           LD="${LD-ld} -m elf32_sparc"
3750           ;;
3751       esac
3752       ;;
3753     *64-bit*)
3754       case $host in
3755         x86_64-*linux*)
3756           LD="${LD-ld} -m elf_x86_64"
3757           ;;
3758         ppc*-*linux*|powerpc*-*linux*)
3759           LD="${LD-ld} -m elf64ppc"
3760           ;;
3761         s390*-*linux*)
3762           LD="${LD-ld} -m elf64_s390"
3763           ;;
3764         sparc*-*linux*)
3765           LD="${LD-ld} -m elf64_sparc"
3766           ;;
3767       esac
3768       ;;
3769     esac
3770   fi
3771   rm -rf conftest*
3772   ;;
3773
3774 *-*-sco3.2v5*)
3775   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3776   SAVE_CFLAGS="$CFLAGS"
3777   CFLAGS="$CFLAGS -belf"
3778   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3779 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3780 if test "${lt_cv_cc_needs_belf+set}" = set; then
3781   echo $ECHO_N "(cached) $ECHO_C" >&6
3782 else
3783   ac_ext=c
3784 ac_cpp='$CPP $CPPFLAGS'
3785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3788
3789      cat >conftest.$ac_ext <<_ACEOF
3790 /* confdefs.h.  */
3791 _ACEOF
3792 cat confdefs.h >>conftest.$ac_ext
3793 cat >>conftest.$ac_ext <<_ACEOF
3794 /* end confdefs.h.  */
3795
3796 int
3797 main ()
3798 {
3799
3800   ;
3801   return 0;
3802 }
3803 _ACEOF
3804 rm -f conftest.$ac_objext conftest$ac_exeext
3805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3806   (eval $ac_link) 2>conftest.er1
3807   ac_status=$?
3808   grep -v '^ *+' conftest.er1 >conftest.err
3809   rm -f conftest.er1
3810   cat conftest.err >&5
3811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812   (exit $ac_status); } &&
3813          { ac_try='test -z "$ac_c_werror_flag"
3814                          || test ! -s conftest.err'
3815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3816   (eval $ac_try) 2>&5
3817   ac_status=$?
3818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819   (exit $ac_status); }; } &&
3820          { ac_try='test -s conftest$ac_exeext'
3821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3822   (eval $ac_try) 2>&5
3823   ac_status=$?
3824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825   (exit $ac_status); }; }; then
3826   lt_cv_cc_needs_belf=yes
3827 else
3828   echo "$as_me: failed program was:" >&5
3829 sed 's/^/| /' conftest.$ac_ext >&5
3830
3831 lt_cv_cc_needs_belf=no
3832 fi
3833 rm -f conftest.err conftest.$ac_objext \
3834       conftest$ac_exeext conftest.$ac_ext
3835      ac_ext=c
3836 ac_cpp='$CPP $CPPFLAGS'
3837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3840
3841 fi
3842 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3843 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3844   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3845     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3846     CFLAGS="$SAVE_CFLAGS"
3847   fi
3848   ;;
3849 sparc*-*solaris*)
3850   # Find out which ABI we are using.
3851   echo 'int i;' > conftest.$ac_ext
3852   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3853   (eval $ac_compile) 2>&5
3854   ac_status=$?
3855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856   (exit $ac_status); }; then
3857     case `/usr/bin/file conftest.o` in
3858     *64-bit*)
3859       case $lt_cv_prog_gnu_ld in
3860       yes*) LD="${LD-ld} -m elf64_sparc" ;;
3861       *)    LD="${LD-ld} -64" ;;
3862       esac
3863       ;;
3864     esac
3865   fi
3866   rm -rf conftest*
3867   ;;
3868
3869
3870 esac
3871
3872 need_locks="$enable_libtool_lock"
3873
3874
3875 ac_ext=c
3876 ac_cpp='$CPP $CPPFLAGS'
3877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3880 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3881 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3882 # On Suns, sometimes $CPP names a directory.
3883 if test -n "$CPP" && test -d "$CPP"; then
3884   CPP=
3885 fi
3886 if test -z "$CPP"; then
3887   if test "${ac_cv_prog_CPP+set}" = set; then
3888   echo $ECHO_N "(cached) $ECHO_C" >&6
3889 else
3890       # Double quotes because CPP needs to be expanded
3891     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3892     do
3893       ac_preproc_ok=false
3894 for ac_c_preproc_warn_flag in '' yes
3895 do
3896   # Use a header file that comes with gcc, so configuring glibc
3897   # with a fresh cross-compiler works.
3898   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3899   # <limits.h> exists even on freestanding compilers.
3900   # On the NeXT, cc -E runs the code through the compiler's parser,
3901   # not just through cpp. "Syntax error" is here to catch this case.
3902   cat >conftest.$ac_ext <<_ACEOF
3903 /* confdefs.h.  */
3904 _ACEOF
3905 cat confdefs.h >>conftest.$ac_ext
3906 cat >>conftest.$ac_ext <<_ACEOF
3907 /* end confdefs.h.  */
3908 @%:@ifdef __STDC__
3909 @%:@ include <limits.h>
3910 @%:@else
3911 @%:@ include <assert.h>
3912 @%:@endif
3913                      Syntax error
3914 _ACEOF
3915 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3916   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3917   ac_status=$?
3918   grep -v '^ *+' conftest.er1 >conftest.err
3919   rm -f conftest.er1
3920   cat conftest.err >&5
3921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922   (exit $ac_status); } >/dev/null; then
3923   if test -s conftest.err; then
3924     ac_cpp_err=$ac_c_preproc_warn_flag
3925     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3926   else
3927     ac_cpp_err=
3928   fi
3929 else
3930   ac_cpp_err=yes
3931 fi
3932 if test -z "$ac_cpp_err"; then
3933   :
3934 else
3935   echo "$as_me: failed program was:" >&5
3936 sed 's/^/| /' conftest.$ac_ext >&5
3937
3938   # Broken: fails on valid input.
3939 continue
3940 fi
3941 rm -f conftest.err conftest.$ac_ext
3942
3943   # OK, works on sane cases.  Now check whether non-existent headers
3944   # can be detected and how.
3945   cat >conftest.$ac_ext <<_ACEOF
3946 /* confdefs.h.  */
3947 _ACEOF
3948 cat confdefs.h >>conftest.$ac_ext
3949 cat >>conftest.$ac_ext <<_ACEOF
3950 /* end confdefs.h.  */
3951 @%:@include <ac_nonexistent.h>
3952 _ACEOF
3953 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3954   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3955   ac_status=$?
3956   grep -v '^ *+' conftest.er1 >conftest.err
3957   rm -f conftest.er1
3958   cat conftest.err >&5
3959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960   (exit $ac_status); } >/dev/null; then
3961   if test -s conftest.err; then
3962     ac_cpp_err=$ac_c_preproc_warn_flag
3963     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3964   else
3965     ac_cpp_err=
3966   fi
3967 else
3968   ac_cpp_err=yes
3969 fi
3970 if test -z "$ac_cpp_err"; then
3971   # Broken: success on invalid input.
3972 continue
3973 else
3974   echo "$as_me: failed program was:" >&5
3975 sed 's/^/| /' conftest.$ac_ext >&5
3976
3977   # Passes both tests.
3978 ac_preproc_ok=:
3979 break
3980 fi
3981 rm -f conftest.err conftest.$ac_ext
3982
3983 done
3984 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3985 rm -f conftest.err conftest.$ac_ext
3986 if $ac_preproc_ok; then
3987   break
3988 fi
3989
3990     done
3991     ac_cv_prog_CPP=$CPP
3992   
3993 fi
3994   CPP=$ac_cv_prog_CPP
3995 else
3996   ac_cv_prog_CPP=$CPP
3997 fi
3998 echo "$as_me:$LINENO: result: $CPP" >&5
3999 echo "${ECHO_T}$CPP" >&6
4000 ac_preproc_ok=false
4001 for ac_c_preproc_warn_flag in '' yes
4002 do
4003   # Use a header file that comes with gcc, so configuring glibc
4004   # with a fresh cross-compiler works.
4005   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4006   # <limits.h> exists even on freestanding compilers.
4007   # On the NeXT, cc -E runs the code through the compiler's parser,
4008   # not just through cpp. "Syntax error" is here to catch this case.
4009   cat >conftest.$ac_ext <<_ACEOF
4010 /* confdefs.h.  */
4011 _ACEOF
4012 cat confdefs.h >>conftest.$ac_ext
4013 cat >>conftest.$ac_ext <<_ACEOF
4014 /* end confdefs.h.  */
4015 @%:@ifdef __STDC__
4016 @%:@ include <limits.h>
4017 @%:@else
4018 @%:@ include <assert.h>
4019 @%:@endif
4020                      Syntax error
4021 _ACEOF
4022 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4023   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4024   ac_status=$?
4025   grep -v '^ *+' conftest.er1 >conftest.err
4026   rm -f conftest.er1
4027   cat conftest.err >&5
4028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029   (exit $ac_status); } >/dev/null; then
4030   if test -s conftest.err; then
4031     ac_cpp_err=$ac_c_preproc_warn_flag
4032     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4033   else
4034     ac_cpp_err=
4035   fi
4036 else
4037   ac_cpp_err=yes
4038 fi
4039 if test -z "$ac_cpp_err"; then
4040   :
4041 else
4042   echo "$as_me: failed program was:" >&5
4043 sed 's/^/| /' conftest.$ac_ext >&5
4044
4045   # Broken: fails on valid input.
4046 continue
4047 fi
4048 rm -f conftest.err conftest.$ac_ext
4049
4050   # OK, works on sane cases.  Now check whether non-existent headers
4051   # can be detected and how.
4052   cat >conftest.$ac_ext <<_ACEOF
4053 /* confdefs.h.  */
4054 _ACEOF
4055 cat confdefs.h >>conftest.$ac_ext
4056 cat >>conftest.$ac_ext <<_ACEOF
4057 /* end confdefs.h.  */
4058 @%:@include <ac_nonexistent.h>
4059 _ACEOF
4060 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4061   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4062   ac_status=$?
4063   grep -v '^ *+' conftest.er1 >conftest.err
4064   rm -f conftest.er1
4065   cat conftest.err >&5
4066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067   (exit $ac_status); } >/dev/null; then
4068   if test -s conftest.err; then
4069     ac_cpp_err=$ac_c_preproc_warn_flag
4070     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4071   else
4072     ac_cpp_err=
4073   fi
4074 else
4075   ac_cpp_err=yes
4076 fi
4077 if test -z "$ac_cpp_err"; then
4078   # Broken: success on invalid input.
4079 continue
4080 else
4081   echo "$as_me: failed program was:" >&5
4082 sed 's/^/| /' conftest.$ac_ext >&5
4083
4084   # Passes both tests.
4085 ac_preproc_ok=:
4086 break
4087 fi
4088 rm -f conftest.err conftest.$ac_ext
4089
4090 done
4091 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4092 rm -f conftest.err conftest.$ac_ext
4093 if $ac_preproc_ok; then
4094   :
4095 else
4096   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4097 See \`config.log' for more details." >&5
4098 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4099 See \`config.log' for more details." >&2;}
4100    { (exit 1); exit 1; }; }
4101 fi
4102
4103 ac_ext=c
4104 ac_cpp='$CPP $CPPFLAGS'
4105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4108
4109
4110 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4111 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4112 if test "${ac_cv_header_stdc+set}" = set; then
4113   echo $ECHO_N "(cached) $ECHO_C" >&6
4114 else
4115   cat >conftest.$ac_ext <<_ACEOF
4116 /* confdefs.h.  */
4117 _ACEOF
4118 cat confdefs.h >>conftest.$ac_ext
4119 cat >>conftest.$ac_ext <<_ACEOF
4120 /* end confdefs.h.  */
4121 #include <stdlib.h>
4122 #include <stdarg.h>
4123 #include <string.h>
4124 #include <float.h>
4125
4126 int
4127 main ()
4128 {
4129
4130   ;
4131   return 0;
4132 }
4133 _ACEOF
4134 rm -f conftest.$ac_objext
4135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4136   (eval $ac_compile) 2>conftest.er1
4137   ac_status=$?
4138   grep -v '^ *+' conftest.er1 >conftest.err
4139   rm -f conftest.er1
4140   cat conftest.err >&5
4141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142   (exit $ac_status); } &&
4143          { ac_try='test -z "$ac_c_werror_flag"
4144                          || test ! -s conftest.err'
4145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4146   (eval $ac_try) 2>&5
4147   ac_status=$?
4148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149   (exit $ac_status); }; } &&
4150          { ac_try='test -s conftest.$ac_objext'
4151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4152   (eval $ac_try) 2>&5
4153   ac_status=$?
4154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155   (exit $ac_status); }; }; then
4156   ac_cv_header_stdc=yes
4157 else
4158   echo "$as_me: failed program was:" >&5
4159 sed 's/^/| /' conftest.$ac_ext >&5
4160
4161 ac_cv_header_stdc=no
4162 fi
4163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4164
4165 if test $ac_cv_header_stdc = yes; then
4166   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4167   cat >conftest.$ac_ext <<_ACEOF
4168 /* confdefs.h.  */
4169 _ACEOF
4170 cat confdefs.h >>conftest.$ac_ext
4171 cat >>conftest.$ac_ext <<_ACEOF
4172 /* end confdefs.h.  */
4173 #include <string.h>
4174
4175 _ACEOF
4176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4177   $EGREP "memchr" >/dev/null 2>&1; then
4178   :
4179 else
4180   ac_cv_header_stdc=no
4181 fi
4182 rm -f conftest*
4183
4184 fi
4185
4186 if test $ac_cv_header_stdc = yes; then
4187   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4188   cat >conftest.$ac_ext <<_ACEOF
4189 /* confdefs.h.  */
4190 _ACEOF
4191 cat confdefs.h >>conftest.$ac_ext
4192 cat >>conftest.$ac_ext <<_ACEOF
4193 /* end confdefs.h.  */
4194 #include <stdlib.h>
4195
4196 _ACEOF
4197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4198   $EGREP "free" >/dev/null 2>&1; then
4199   :
4200 else
4201   ac_cv_header_stdc=no
4202 fi
4203 rm -f conftest*
4204
4205 fi
4206
4207 if test $ac_cv_header_stdc = yes; then
4208   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4209   if test "$cross_compiling" = yes; then
4210   :
4211 else
4212   cat >conftest.$ac_ext <<_ACEOF
4213 /* confdefs.h.  */
4214 _ACEOF
4215 cat confdefs.h >>conftest.$ac_ext
4216 cat >>conftest.$ac_ext <<_ACEOF
4217 /* end confdefs.h.  */
4218 #include <ctype.h>
4219 #if ((' ' & 0x0FF) == 0x020)
4220 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4221 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4222 #else
4223 # define ISLOWER(c) \
4224                    (('a' <= (c) && (c) <= 'i') \
4225                      || ('j' <= (c) && (c) <= 'r') \
4226                      || ('s' <= (c) && (c) <= 'z'))
4227 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4228 #endif
4229
4230 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4231 int
4232 main ()
4233 {
4234   int i;
4235   for (i = 0; i < 256; i++)
4236     if (XOR (islower (i), ISLOWER (i))
4237         || toupper (i) != TOUPPER (i))
4238       exit(2);
4239   exit (0);
4240 }
4241 _ACEOF
4242 rm -f conftest$ac_exeext
4243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4244   (eval $ac_link) 2>&5
4245   ac_status=$?
4246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4247   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4249   (eval $ac_try) 2>&5
4250   ac_status=$?
4251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4252   (exit $ac_status); }; }; then
4253   :
4254 else
4255   echo "$as_me: program exited with status $ac_status" >&5
4256 echo "$as_me: failed program was:" >&5
4257 sed 's/^/| /' conftest.$ac_ext >&5
4258
4259 ( exit $ac_status )
4260 ac_cv_header_stdc=no
4261 fi
4262 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4263 fi
4264 fi
4265 fi
4266 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4267 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4268 if test $ac_cv_header_stdc = yes; then
4269   
4270 cat >>confdefs.h <<\_ACEOF
4271 @%:@define STDC_HEADERS 1
4272 _ACEOF
4273
4274 fi
4275
4276 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4287                   inttypes.h stdint.h unistd.h
4288 do
4289 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4290 echo "$as_me:$LINENO: checking for $ac_header" >&5
4291 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4292 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4293   echo $ECHO_N "(cached) $ECHO_C" >&6
4294 else
4295   cat >conftest.$ac_ext <<_ACEOF
4296 /* confdefs.h.  */
4297 _ACEOF
4298 cat confdefs.h >>conftest.$ac_ext
4299 cat >>conftest.$ac_ext <<_ACEOF
4300 /* end confdefs.h.  */
4301 $ac_includes_default
4302
4303 @%:@include <$ac_header>
4304 _ACEOF
4305 rm -f conftest.$ac_objext
4306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4307   (eval $ac_compile) 2>conftest.er1
4308   ac_status=$?
4309   grep -v '^ *+' conftest.er1 >conftest.err
4310   rm -f conftest.er1
4311   cat conftest.err >&5
4312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313   (exit $ac_status); } &&
4314          { ac_try='test -z "$ac_c_werror_flag"
4315                          || test ! -s conftest.err'
4316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4317   (eval $ac_try) 2>&5
4318   ac_status=$?
4319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4320   (exit $ac_status); }; } &&
4321          { ac_try='test -s conftest.$ac_objext'
4322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4323   (eval $ac_try) 2>&5
4324   ac_status=$?
4325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326   (exit $ac_status); }; }; then
4327   eval "$as_ac_Header=yes"
4328 else
4329   echo "$as_me: failed program was:" >&5
4330 sed 's/^/| /' conftest.$ac_ext >&5
4331
4332 eval "$as_ac_Header=no"
4333 fi
4334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4335 fi
4336 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4337 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4338 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4339   cat >>confdefs.h <<_ACEOF
4340 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4341 _ACEOF
4342  
4343 fi
4344
4345 done
4346
4347
4348
4349 for ac_header in dlfcn.h
4350 do
4351 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4352 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4353   echo "$as_me:$LINENO: checking for $ac_header" >&5
4354 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4355 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4356   echo $ECHO_N "(cached) $ECHO_C" >&6
4357 fi
4358 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4359 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4360 else
4361   # Is the header compilable?
4362 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4363 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4364 cat >conftest.$ac_ext <<_ACEOF
4365 /* confdefs.h.  */
4366 _ACEOF
4367 cat confdefs.h >>conftest.$ac_ext
4368 cat >>conftest.$ac_ext <<_ACEOF
4369 /* end confdefs.h.  */
4370 $ac_includes_default
4371 @%:@include <$ac_header>
4372 _ACEOF
4373 rm -f conftest.$ac_objext
4374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4375   (eval $ac_compile) 2>conftest.er1
4376   ac_status=$?
4377   grep -v '^ *+' conftest.er1 >conftest.err
4378   rm -f conftest.er1
4379   cat conftest.err >&5
4380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381   (exit $ac_status); } &&
4382          { ac_try='test -z "$ac_c_werror_flag"
4383                          || test ! -s conftest.err'
4384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4385   (eval $ac_try) 2>&5
4386   ac_status=$?
4387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388   (exit $ac_status); }; } &&
4389          { ac_try='test -s conftest.$ac_objext'
4390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4391   (eval $ac_try) 2>&5
4392   ac_status=$?
4393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394   (exit $ac_status); }; }; then
4395   ac_header_compiler=yes
4396 else
4397   echo "$as_me: failed program was:" >&5
4398 sed 's/^/| /' conftest.$ac_ext >&5
4399
4400 ac_header_compiler=no
4401 fi
4402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4403 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4404 echo "${ECHO_T}$ac_header_compiler" >&6
4405
4406 # Is the header present?
4407 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4408 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4409 cat >conftest.$ac_ext <<_ACEOF
4410 /* confdefs.h.  */
4411 _ACEOF
4412 cat confdefs.h >>conftest.$ac_ext
4413 cat >>conftest.$ac_ext <<_ACEOF
4414 /* end confdefs.h.  */
4415 @%:@include <$ac_header>
4416 _ACEOF
4417 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4418   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4419   ac_status=$?
4420   grep -v '^ *+' conftest.er1 >conftest.err
4421   rm -f conftest.er1
4422   cat conftest.err >&5
4423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424   (exit $ac_status); } >/dev/null; then
4425   if test -s conftest.err; then
4426     ac_cpp_err=$ac_c_preproc_warn_flag
4427     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4428   else
4429     ac_cpp_err=
4430   fi
4431 else
4432   ac_cpp_err=yes
4433 fi
4434 if test -z "$ac_cpp_err"; then
4435   ac_header_preproc=yes
4436 else
4437   echo "$as_me: failed program was:" >&5
4438 sed 's/^/| /' conftest.$ac_ext >&5
4439
4440   ac_header_preproc=no
4441 fi
4442 rm -f conftest.err conftest.$ac_ext
4443 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4444 echo "${ECHO_T}$ac_header_preproc" >&6
4445
4446 # So?  What about this header?
4447 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4448   yes:no: )
4449     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4450 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4451     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4452 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4453     ac_header_preproc=yes
4454     ;;
4455   no:yes:* )
4456     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4457 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4458     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4459 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4460     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4461 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4462     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4463 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4464     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4465 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4466     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4467 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4468     (
4469       cat <<\_ASBOX
4470 @%:@@%:@ ------------------------------------- @%:@@%:@
4471 @%:@@%:@ Report this to uncensored.citadel.org @%:@@%:@
4472 @%:@@%:@ ------------------------------------- @%:@@%:@
4473 _ASBOX
4474     ) |
4475       sed "s/^/$as_me: WARNING:     /" >&2
4476     ;;
4477 esac
4478 echo "$as_me:$LINENO: checking for $ac_header" >&5
4479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4480 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4481   echo $ECHO_N "(cached) $ECHO_C" >&6
4482 else
4483   eval "$as_ac_Header=\$ac_header_preproc"
4484 fi
4485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4486 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4487
4488 fi
4489 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4490   cat >>confdefs.h <<_ACEOF
4491 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4492 _ACEOF
4493  
4494 fi
4495
4496 done
4497
4498 ac_ext=cc
4499 ac_cpp='$CXXCPP $CPPFLAGS'
4500 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4501 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4502 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4503 if test -n "$ac_tool_prefix"; then
4504   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4505   do
4506     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4507 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4508 echo "$as_me:$LINENO: checking for $ac_word" >&5
4509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4510 if test "${ac_cv_prog_CXX+set}" = set; then
4511   echo $ECHO_N "(cached) $ECHO_C" >&6
4512 else
4513   if test -n "$CXX"; then
4514   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4515 else
4516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4517 for as_dir in $PATH
4518 do
4519   IFS=$as_save_IFS
4520   test -z "$as_dir" && as_dir=.
4521   for ac_exec_ext in '' $ac_executable_extensions; do
4522   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4523     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4524     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4525     break 2
4526   fi
4527 done
4528 done
4529
4530 fi
4531 fi
4532 CXX=$ac_cv_prog_CXX
4533 if test -n "$CXX"; then
4534   echo "$as_me:$LINENO: result: $CXX" >&5
4535 echo "${ECHO_T}$CXX" >&6
4536 else
4537   echo "$as_me:$LINENO: result: no" >&5
4538 echo "${ECHO_T}no" >&6
4539 fi
4540
4541     test -n "$CXX" && break
4542   done
4543 fi
4544 if test -z "$CXX"; then
4545   ac_ct_CXX=$CXX
4546   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4547 do
4548   # Extract the first word of "$ac_prog", so it can be a program name with args.
4549 set dummy $ac_prog; ac_word=$2
4550 echo "$as_me:$LINENO: checking for $ac_word" >&5
4551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4552 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4553   echo $ECHO_N "(cached) $ECHO_C" >&6
4554 else
4555   if test -n "$ac_ct_CXX"; then
4556   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4557 else
4558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4559 for as_dir in $PATH
4560 do
4561   IFS=$as_save_IFS
4562   test -z "$as_dir" && as_dir=.
4563   for ac_exec_ext in '' $ac_executable_extensions; do
4564   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4565     ac_cv_prog_ac_ct_CXX="$ac_prog"
4566     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4567     break 2
4568   fi
4569 done
4570 done
4571
4572 fi
4573 fi
4574 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4575 if test -n "$ac_ct_CXX"; then
4576   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4577 echo "${ECHO_T}$ac_ct_CXX" >&6
4578 else
4579   echo "$as_me:$LINENO: result: no" >&5
4580 echo "${ECHO_T}no" >&6
4581 fi
4582
4583   test -n "$ac_ct_CXX" && break
4584 done
4585 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4586
4587   CXX=$ac_ct_CXX
4588 fi
4589
4590
4591 # Provide some information about the compiler.
4592 echo "$as_me:$LINENO:" \
4593      "checking for C++ compiler version" >&5
4594 ac_compiler=`set X $ac_compile; echo $2`
4595 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4596   (eval $ac_compiler --version </dev/null >&5) 2>&5
4597   ac_status=$?
4598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599   (exit $ac_status); }
4600 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4601   (eval $ac_compiler -v </dev/null >&5) 2>&5
4602   ac_status=$?
4603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604   (exit $ac_status); }
4605 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4606   (eval $ac_compiler -V </dev/null >&5) 2>&5
4607   ac_status=$?
4608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609   (exit $ac_status); }
4610
4611 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4612 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4613 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4614   echo $ECHO_N "(cached) $ECHO_C" >&6
4615 else
4616   cat >conftest.$ac_ext <<_ACEOF
4617 /* confdefs.h.  */
4618 _ACEOF
4619 cat confdefs.h >>conftest.$ac_ext
4620 cat >>conftest.$ac_ext <<_ACEOF
4621 /* end confdefs.h.  */
4622
4623 int
4624 main ()
4625 {
4626 #ifndef __GNUC__
4627        choke me
4628 #endif
4629
4630   ;
4631   return 0;
4632 }
4633 _ACEOF
4634 rm -f conftest.$ac_objext
4635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4636   (eval $ac_compile) 2>conftest.er1
4637   ac_status=$?
4638   grep -v '^ *+' conftest.er1 >conftest.err
4639   rm -f conftest.er1
4640   cat conftest.err >&5
4641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642   (exit $ac_status); } &&
4643          { ac_try='test -z "$ac_cxx_werror_flag"
4644                          || test ! -s conftest.err'
4645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4646   (eval $ac_try) 2>&5
4647   ac_status=$?
4648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649   (exit $ac_status); }; } &&
4650          { ac_try='test -s conftest.$ac_objext'
4651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4652   (eval $ac_try) 2>&5
4653   ac_status=$?
4654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655   (exit $ac_status); }; }; then
4656   ac_compiler_gnu=yes
4657 else
4658   echo "$as_me: failed program was:" >&5
4659 sed 's/^/| /' conftest.$ac_ext >&5
4660
4661 ac_compiler_gnu=no
4662 fi
4663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4664 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4665
4666 fi
4667 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4668 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4669 GXX=`test $ac_compiler_gnu = yes && echo yes`
4670 ac_test_CXXFLAGS=${CXXFLAGS+set}
4671 ac_save_CXXFLAGS=$CXXFLAGS
4672 CXXFLAGS="-g"
4673 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4674 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4675 if test "${ac_cv_prog_cxx_g+set}" = set; then
4676   echo $ECHO_N "(cached) $ECHO_C" >&6
4677 else
4678   cat >conftest.$ac_ext <<_ACEOF
4679 /* confdefs.h.  */
4680 _ACEOF
4681 cat confdefs.h >>conftest.$ac_ext
4682 cat >>conftest.$ac_ext <<_ACEOF
4683 /* end confdefs.h.  */
4684
4685 int
4686 main ()
4687 {
4688
4689   ;
4690   return 0;
4691 }
4692 _ACEOF
4693 rm -f conftest.$ac_objext
4694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4695   (eval $ac_compile) 2>conftest.er1
4696   ac_status=$?
4697   grep -v '^ *+' conftest.er1 >conftest.err
4698   rm -f conftest.er1
4699   cat conftest.err >&5
4700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701   (exit $ac_status); } &&
4702          { ac_try='test -z "$ac_cxx_werror_flag"
4703                          || test ! -s conftest.err'
4704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4705   (eval $ac_try) 2>&5
4706   ac_status=$?
4707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708   (exit $ac_status); }; } &&
4709          { ac_try='test -s conftest.$ac_objext'
4710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4711   (eval $ac_try) 2>&5
4712   ac_status=$?
4713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714   (exit $ac_status); }; }; then
4715   ac_cv_prog_cxx_g=yes
4716 else
4717   echo "$as_me: failed program was:" >&5
4718 sed 's/^/| /' conftest.$ac_ext >&5
4719
4720 ac_cv_prog_cxx_g=no
4721 fi
4722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4723 fi
4724 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4725 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4726 if test "$ac_test_CXXFLAGS" = set; then
4727   CXXFLAGS=$ac_save_CXXFLAGS
4728 elif test $ac_cv_prog_cxx_g = yes; then
4729   if test "$GXX" = yes; then
4730     CXXFLAGS="-g -O2"
4731   else
4732     CXXFLAGS="-g"
4733   fi
4734 else
4735   if test "$GXX" = yes; then
4736     CXXFLAGS="-O2"
4737   else
4738     CXXFLAGS=
4739   fi
4740 fi
4741 for ac_declaration in \
4742    '' \
4743    'extern "C" void std::exit (int) throw (); using std::exit;' \
4744    'extern "C" void std::exit (int); using std::exit;' \
4745    'extern "C" void exit (int) throw ();' \
4746    'extern "C" void exit (int);' \
4747    'void exit (int);'
4748 do
4749   cat >conftest.$ac_ext <<_ACEOF
4750 /* confdefs.h.  */
4751 _ACEOF
4752 cat confdefs.h >>conftest.$ac_ext
4753 cat >>conftest.$ac_ext <<_ACEOF
4754 /* end confdefs.h.  */
4755 $ac_declaration
4756 @%:@include <stdlib.h>
4757 int
4758 main ()
4759 {
4760 exit (42);
4761   ;
4762   return 0;
4763 }
4764 _ACEOF
4765 rm -f conftest.$ac_objext
4766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4767   (eval $ac_compile) 2>conftest.er1
4768   ac_status=$?
4769   grep -v '^ *+' conftest.er1 >conftest.err
4770   rm -f conftest.er1
4771   cat conftest.err >&5
4772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773   (exit $ac_status); } &&
4774          { ac_try='test -z "$ac_cxx_werror_flag"
4775                          || test ! -s conftest.err'
4776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4777   (eval $ac_try) 2>&5
4778   ac_status=$?
4779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780   (exit $ac_status); }; } &&
4781          { ac_try='test -s conftest.$ac_objext'
4782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4783   (eval $ac_try) 2>&5
4784   ac_status=$?
4785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786   (exit $ac_status); }; }; then
4787   :
4788 else
4789   echo "$as_me: failed program was:" >&5
4790 sed 's/^/| /' conftest.$ac_ext >&5
4791
4792 continue
4793 fi
4794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4795   cat >conftest.$ac_ext <<_ACEOF
4796 /* confdefs.h.  */
4797 _ACEOF
4798 cat confdefs.h >>conftest.$ac_ext
4799 cat >>conftest.$ac_ext <<_ACEOF
4800 /* end confdefs.h.  */
4801 $ac_declaration
4802 int
4803 main ()
4804 {
4805 exit (42);
4806   ;
4807   return 0;
4808 }
4809 _ACEOF
4810 rm -f conftest.$ac_objext
4811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4812   (eval $ac_compile) 2>conftest.er1
4813   ac_status=$?
4814   grep -v '^ *+' conftest.er1 >conftest.err
4815   rm -f conftest.er1
4816   cat conftest.err >&5
4817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818   (exit $ac_status); } &&
4819          { ac_try='test -z "$ac_cxx_werror_flag"
4820                          || test ! -s conftest.err'
4821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4822   (eval $ac_try) 2>&5
4823   ac_status=$?
4824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825   (exit $ac_status); }; } &&
4826          { ac_try='test -s conftest.$ac_objext'
4827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4828   (eval $ac_try) 2>&5
4829   ac_status=$?
4830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831   (exit $ac_status); }; }; then
4832   break
4833 else
4834   echo "$as_me: failed program was:" >&5
4835 sed 's/^/| /' conftest.$ac_ext >&5
4836
4837 fi
4838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4839 done
4840 rm -f conftest*
4841 if test -n "$ac_declaration"; then
4842   echo '#ifdef __cplusplus' >>confdefs.h
4843   echo $ac_declaration      >>confdefs.h
4844   echo '#endif'             >>confdefs.h
4845 fi
4846
4847 ac_ext=cc
4848 ac_cpp='$CXXCPP $CPPFLAGS'
4849 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4850 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4851 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4852
4853 depcc="$CXX"  am_compiler_list=
4854
4855 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4856 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4857 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4858   echo $ECHO_N "(cached) $ECHO_C" >&6
4859 else
4860   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4861   # We make a subdir and do the tests there.  Otherwise we can end up
4862   # making bogus files that we don't know about and never remove.  For
4863   # instance it was reported that on HP-UX the gcc test will end up
4864   # making a dummy file named `D' -- because `-MD' means `put the output
4865   # in D'.
4866   mkdir conftest.dir
4867   # Copy depcomp to subdir because otherwise we won't find it if we're
4868   # using a relative directory.
4869   cp "$am_depcomp" conftest.dir
4870   cd conftest.dir
4871   # We will build objects and dependencies in a subdirectory because
4872   # it helps to detect inapplicable dependency modes.  For instance
4873   # both Tru64's cc and ICC support -MD to output dependencies as a
4874   # side effect of compilation, but ICC will put the dependencies in
4875   # the current directory while Tru64 will put them in the object
4876   # directory.
4877   mkdir sub
4878
4879   am_cv_CXX_dependencies_compiler_type=none
4880   if test "$am_compiler_list" = ""; then
4881      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4882   fi
4883   for depmode in $am_compiler_list; do
4884     # Setup a source with many dependencies, because some compilers
4885     # like to wrap large dependency lists on column 80 (with \), and
4886     # we should not choose a depcomp mode which is confused by this.
4887     #
4888     # We need to recreate these files for each test, as the compiler may
4889     # overwrite some of them when testing with obscure command lines.
4890     # This happens at least with the AIX C compiler.
4891     : > sub/conftest.c
4892     for i in 1 2 3 4 5 6; do
4893       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4894       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4895       # Solaris 8's {/usr,}/bin/sh.
4896       touch sub/conftst$i.h
4897     done
4898     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4899
4900     case $depmode in
4901     nosideeffect)
4902       # after this tag, mechanisms are not by side-effect, so they'll
4903       # only be used when explicitly requested
4904       if test "x$enable_dependency_tracking" = xyes; then
4905         continue
4906       else
4907         break
4908       fi
4909       ;;
4910     none) break ;;
4911     esac
4912     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4913     # mode.  It turns out that the SunPro C++ compiler does not properly
4914     # handle `-M -o', and we need to detect this.
4915     if depmode=$depmode \
4916        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4917        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4918        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4919          >/dev/null 2>conftest.err &&
4920        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4921        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4922        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4923       # icc doesn't choke on unknown options, it will just issue warnings
4924       # or remarks (even with -Werror).  So we grep stderr for any message
4925       # that says an option was ignored or not supported.
4926       # When given -MP, icc 7.0 and 7.1 complain thusly:
4927       #   icc: Command line warning: ignoring option '-M'; no argument required
4928       # The diagnosis changed in icc 8.0:
4929       #   icc: Command line remark: option '-MP' not supported
4930       if (grep 'ignoring option' conftest.err ||
4931           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4932         am_cv_CXX_dependencies_compiler_type=$depmode
4933         break
4934       fi
4935     fi
4936   done
4937
4938   cd ..
4939   rm -rf conftest.dir
4940 else
4941   am_cv_CXX_dependencies_compiler_type=none
4942 fi
4943
4944 fi
4945 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4946 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4947 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4948
4949  
4950
4951 if 
4952   test "x$enable_dependency_tracking" != xno \
4953   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4954   am__fastdepCXX_TRUE=
4955   am__fastdepCXX_FALSE='#'
4956 else
4957   am__fastdepCXX_TRUE='#'
4958   am__fastdepCXX_FALSE=
4959 fi
4960
4961
4962
4963
4964 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4965     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4966     (test "X$CXX" != "Xg++"))) ; then
4967   ac_ext=cc
4968 ac_cpp='$CXXCPP $CPPFLAGS'
4969 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4970 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4971 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4972 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4973 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4974 if test -z "$CXXCPP"; then
4975   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4976   echo $ECHO_N "(cached) $ECHO_C" >&6
4977 else
4978       # Double quotes because CXXCPP needs to be expanded
4979     for CXXCPP in "$CXX -E" "/lib/cpp"
4980     do
4981       ac_preproc_ok=false
4982 for ac_cxx_preproc_warn_flag in '' yes
4983 do
4984   # Use a header file that comes with gcc, so configuring glibc
4985   # with a fresh cross-compiler works.
4986   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4987   # <limits.h> exists even on freestanding compilers.
4988   # On the NeXT, cc -E runs the code through the compiler's parser,
4989   # not just through cpp. "Syntax error" is here to catch this case.
4990   cat >conftest.$ac_ext <<_ACEOF
4991 /* confdefs.h.  */
4992 _ACEOF
4993 cat confdefs.h >>conftest.$ac_ext
4994 cat >>conftest.$ac_ext <<_ACEOF
4995 /* end confdefs.h.  */
4996 @%:@ifdef __STDC__
4997 @%:@ include <limits.h>
4998 @%:@else
4999 @%:@ include <assert.h>
5000 @%:@endif
5001                      Syntax error
5002 _ACEOF
5003 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5004   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5005   ac_status=$?
5006   grep -v '^ *+' conftest.er1 >conftest.err
5007   rm -f conftest.er1
5008   cat conftest.err >&5
5009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010   (exit $ac_status); } >/dev/null; then
5011   if test -s conftest.err; then
5012     ac_cpp_err=$ac_cxx_preproc_warn_flag
5013     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5014   else
5015     ac_cpp_err=
5016   fi
5017 else
5018   ac_cpp_err=yes
5019 fi
5020 if test -z "$ac_cpp_err"; then
5021   :
5022 else
5023   echo "$as_me: failed program was:" >&5
5024 sed 's/^/| /' conftest.$ac_ext >&5
5025
5026   # Broken: fails on valid input.
5027 continue
5028 fi
5029 rm -f conftest.err conftest.$ac_ext
5030
5031   # OK, works on sane cases.  Now check whether non-existent headers
5032   # can be detected and how.
5033   cat >conftest.$ac_ext <<_ACEOF
5034 /* confdefs.h.  */
5035 _ACEOF
5036 cat confdefs.h >>conftest.$ac_ext
5037 cat >>conftest.$ac_ext <<_ACEOF
5038 /* end confdefs.h.  */
5039 @%:@include <ac_nonexistent.h>
5040 _ACEOF
5041 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5042   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5043   ac_status=$?
5044   grep -v '^ *+' conftest.er1 >conftest.err
5045   rm -f conftest.er1
5046   cat conftest.err >&5
5047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048   (exit $ac_status); } >/dev/null; then
5049   if test -s conftest.err; then
5050     ac_cpp_err=$ac_cxx_preproc_warn_flag
5051     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5052   else
5053     ac_cpp_err=
5054   fi
5055 else
5056   ac_cpp_err=yes
5057 fi
5058 if test -z "$ac_cpp_err"; then
5059   # Broken: success on invalid input.
5060 continue
5061 else
5062   echo "$as_me: failed program was:" >&5
5063 sed 's/^/| /' conftest.$ac_ext >&5
5064
5065   # Passes both tests.
5066 ac_preproc_ok=:
5067 break
5068 fi
5069 rm -f conftest.err conftest.$ac_ext
5070
5071 done
5072 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5073 rm -f conftest.err conftest.$ac_ext
5074 if $ac_preproc_ok; then
5075   break
5076 fi
5077
5078     done
5079     ac_cv_prog_CXXCPP=$CXXCPP
5080   
5081 fi
5082   CXXCPP=$ac_cv_prog_CXXCPP
5083 else
5084   ac_cv_prog_CXXCPP=$CXXCPP
5085 fi
5086 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5087 echo "${ECHO_T}$CXXCPP" >&6
5088 ac_preproc_ok=false
5089 for ac_cxx_preproc_warn_flag in '' yes
5090 do
5091   # Use a header file that comes with gcc, so configuring glibc
5092   # with a fresh cross-compiler works.
5093   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5094   # <limits.h> exists even on freestanding compilers.
5095   # On the NeXT, cc -E runs the code through the compiler's parser,
5096   # not just through cpp. "Syntax error" is here to catch this case.
5097   cat >conftest.$ac_ext <<_ACEOF
5098 /* confdefs.h.  */
5099 _ACEOF
5100 cat confdefs.h >>conftest.$ac_ext
5101 cat >>conftest.$ac_ext <<_ACEOF
5102 /* end confdefs.h.  */
5103 @%:@ifdef __STDC__
5104 @%:@ include <limits.h>
5105 @%:@else
5106 @%:@ include <assert.h>
5107 @%:@endif
5108                      Syntax error
5109 _ACEOF
5110 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5111   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5112   ac_status=$?
5113   grep -v '^ *+' conftest.er1 >conftest.err
5114   rm -f conftest.er1
5115   cat conftest.err >&5
5116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117   (exit $ac_status); } >/dev/null; then
5118   if test -s conftest.err; then
5119     ac_cpp_err=$ac_cxx_preproc_warn_flag
5120     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5121   else
5122     ac_cpp_err=
5123   fi
5124 else
5125   ac_cpp_err=yes
5126 fi
5127 if test -z "$ac_cpp_err"; then
5128   :
5129 else
5130   echo "$as_me: failed program was:" >&5
5131 sed 's/^/| /' conftest.$ac_ext >&5
5132
5133   # Broken: fails on valid input.
5134 continue
5135 fi
5136 rm -f conftest.err conftest.$ac_ext
5137
5138   # OK, works on sane cases.  Now check whether non-existent headers
5139   # can be detected and how.
5140   cat >conftest.$ac_ext <<_ACEOF
5141 /* confdefs.h.  */
5142 _ACEOF
5143 cat confdefs.h >>conftest.$ac_ext
5144 cat >>conftest.$ac_ext <<_ACEOF
5145 /* end confdefs.h.  */
5146 @%:@include <ac_nonexistent.h>
5147 _ACEOF
5148 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5149   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5150   ac_status=$?
5151   grep -v '^ *+' conftest.er1 >conftest.err
5152   rm -f conftest.er1
5153   cat conftest.err >&5
5154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5155   (exit $ac_status); } >/dev/null; then
5156   if test -s conftest.err; then
5157     ac_cpp_err=$ac_cxx_preproc_warn_flag
5158     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5159   else
5160     ac_cpp_err=
5161   fi
5162 else
5163   ac_cpp_err=yes
5164 fi
5165 if test -z "$ac_cpp_err"; then
5166   # Broken: success on invalid input.
5167 continue
5168 else
5169   echo "$as_me: failed program was:" >&5
5170 sed 's/^/| /' conftest.$ac_ext >&5
5171
5172   # Passes both tests.
5173 ac_preproc_ok=:
5174 break
5175 fi
5176 rm -f conftest.err conftest.$ac_ext
5177
5178 done
5179 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5180 rm -f conftest.err conftest.$ac_ext
5181 if $ac_preproc_ok; then
5182   :
5183 else
5184   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5185 See \`config.log' for more details." >&5
5186 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5187 See \`config.log' for more details." >&2;}
5188    { (exit 1); exit 1; }; }
5189 fi
5190
5191 ac_ext=cc
5192 ac_cpp='$CXXCPP $CPPFLAGS'
5193 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5194 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5195 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5196
5197 fi
5198
5199
5200 ac_ext=f
5201 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5202 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5203 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5204 if test -n "$ac_tool_prefix"; then
5205   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5206   do
5207     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5208 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5209 echo "$as_me:$LINENO: checking for $ac_word" >&5
5210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5211 if test "${ac_cv_prog_F77+set}" = set; then
5212   echo $ECHO_N "(cached) $ECHO_C" >&6
5213 else
5214   if test -n "$F77"; then
5215   ac_cv_prog_F77="$F77" # Let the user override the test.
5216 else
5217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5218 for as_dir in $PATH
5219 do
5220   IFS=$as_save_IFS
5221   test -z "$as_dir" && as_dir=.
5222   for ac_exec_ext in '' $ac_executable_extensions; do
5223   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5224     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5225     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5226     break 2
5227   fi
5228 done
5229 done
5230
5231 fi
5232 fi
5233 F77=$ac_cv_prog_F77
5234 if test -n "$F77"; then
5235   echo "$as_me:$LINENO: result: $F77" >&5
5236 echo "${ECHO_T}$F77" >&6
5237 else
5238   echo "$as_me:$LINENO: result: no" >&5
5239 echo "${ECHO_T}no" >&6
5240 fi
5241
5242     test -n "$F77" && break
5243   done
5244 fi
5245 if test -z "$F77"; then
5246   ac_ct_F77=$F77
5247   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5248 do
5249   # Extract the first word of "$ac_prog", so it can be a program name with args.
5250 set dummy $ac_prog; ac_word=$2
5251 echo "$as_me:$LINENO: checking for $ac_word" >&5
5252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5253 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5254   echo $ECHO_N "(cached) $ECHO_C" >&6
5255 else
5256   if test -n "$ac_ct_F77"; then
5257   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5258 else
5259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5260 for as_dir in $PATH
5261 do
5262   IFS=$as_save_IFS
5263   test -z "$as_dir" && as_dir=.
5264   for ac_exec_ext in '' $ac_executable_extensions; do
5265   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5266     ac_cv_prog_ac_ct_F77="$ac_prog"
5267     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5268     break 2
5269   fi
5270 done
5271 done
5272
5273 fi
5274 fi
5275 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5276 if test -n "$ac_ct_F77"; then
5277   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5278 echo "${ECHO_T}$ac_ct_F77" >&6
5279 else
5280   echo "$as_me:$LINENO: result: no" >&5
5281 echo "${ECHO_T}no" >&6
5282 fi
5283
5284   test -n "$ac_ct_F77" && break
5285 done
5286
5287   F77=$ac_ct_F77
5288 fi
5289
5290
5291 # Provide some information about the compiler.
5292 echo "$as_me:__oline__:" \
5293      "checking for Fortran 77 compiler version" >&5
5294 ac_compiler=`set X $ac_compile; echo $2`
5295 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5296   (eval $ac_compiler --version </dev/null >&5) 2>&5
5297   ac_status=$?
5298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299   (exit $ac_status); }
5300 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5301   (eval $ac_compiler -v </dev/null >&5) 2>&5
5302   ac_status=$?
5303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304   (exit $ac_status); }
5305 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5306   (eval $ac_compiler -V </dev/null >&5) 2>&5
5307   ac_status=$?
5308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309   (exit $ac_status); }
5310 rm -f a.out
5311
5312 # If we don't use `.F' as extension, the preprocessor is not run on the
5313 # input file.  (Note that this only needs to work for GNU compilers.)
5314 ac_save_ext=$ac_ext
5315 ac_ext=F
5316 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5317 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5318 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5319   echo $ECHO_N "(cached) $ECHO_C" >&6
5320 else
5321   cat >conftest.$ac_ext <<_ACEOF
5322       program main
5323 #ifndef __GNUC__
5324        choke me
5325 #endif
5326
5327       end
5328 _ACEOF
5329 rm -f conftest.$ac_objext
5330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5331   (eval $ac_compile) 2>conftest.er1
5332   ac_status=$?
5333   grep -v '^ *+' conftest.er1 >conftest.err
5334   rm -f conftest.er1
5335   cat conftest.err >&5
5336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337   (exit $ac_status); } &&
5338          { ac_try='test -z "$ac_f77_werror_flag"
5339                          || test ! -s conftest.err'
5340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5341   (eval $ac_try) 2>&5
5342   ac_status=$?
5343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344   (exit $ac_status); }; } &&
5345          { ac_try='test -s conftest.$ac_objext'
5346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5347   (eval $ac_try) 2>&5
5348   ac_status=$?
5349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5350   (exit $ac_status); }; }; then
5351   ac_compiler_gnu=yes
5352 else
5353   echo "$as_me: failed program was:" >&5
5354 sed 's/^/| /' conftest.$ac_ext >&5
5355
5356 ac_compiler_gnu=no
5357 fi
5358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5359 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5360
5361 fi
5362 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5363 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5364 ac_ext=$ac_save_ext
5365 ac_test_FFLAGS=${FFLAGS+set}
5366 ac_save_FFLAGS=$FFLAGS
5367 FFLAGS=
5368 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5369 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5370 if test "${ac_cv_prog_f77_g+set}" = set; then
5371   echo $ECHO_N "(cached) $ECHO_C" >&6
5372 else
5373   FFLAGS=-g
5374 cat >conftest.$ac_ext <<_ACEOF
5375       program main
5376
5377       end
5378 _ACEOF
5379 rm -f conftest.$ac_objext
5380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5381   (eval $ac_compile) 2>conftest.er1
5382   ac_status=$?
5383   grep -v '^ *+' conftest.er1 >conftest.err
5384   rm -f conftest.er1
5385   cat conftest.err >&5
5386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387   (exit $ac_status); } &&
5388          { ac_try='test -z "$ac_f77_werror_flag"
5389                          || test ! -s conftest.err'
5390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5391   (eval $ac_try) 2>&5
5392   ac_status=$?
5393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394   (exit $ac_status); }; } &&
5395          { ac_try='test -s conftest.$ac_objext'
5396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5397   (eval $ac_try) 2>&5
5398   ac_status=$?
5399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5400   (exit $ac_status); }; }; then
5401   ac_cv_prog_f77_g=yes
5402 else
5403   echo "$as_me: failed program was:" >&5
5404 sed 's/^/| /' conftest.$ac_ext >&5
5405
5406 ac_cv_prog_f77_g=no
5407 fi
5408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5409
5410 fi
5411 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5412 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5413 if test "$ac_test_FFLAGS" = set; then
5414   FFLAGS=$ac_save_FFLAGS
5415 elif test $ac_cv_prog_f77_g = yes; then
5416   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5417     FFLAGS="-g -O2"
5418   else
5419     FFLAGS="-g"
5420   fi
5421 else
5422   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5423     FFLAGS="-O2"
5424   else
5425     FFLAGS=
5426   fi
5427 fi
5428
5429 G77=`test $ac_compiler_gnu = yes && echo yes`
5430 ac_ext=c
5431 ac_cpp='$CPP $CPPFLAGS'
5432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5435
5436
5437
5438 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5439
5440 # find the maximum length of command line arguments
5441 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5442 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5443 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5444   echo $ECHO_N "(cached) $ECHO_C" >&6
5445 else
5446     i=0
5447   teststring="ABCD"
5448
5449   case $build_os in
5450   msdosdjgpp*)
5451     # On DJGPP, this test can blow up pretty badly due to problems in libc
5452     # (any single argument exceeding 2000 bytes causes a buffer overrun
5453     # during glob expansion).  Even if it were fixed, the result of this
5454     # check would be larger than it should be.
5455     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5456     ;;
5457
5458   gnu*)
5459     # Under GNU Hurd, this test is not required because there is
5460     # no limit to the length of command line arguments.
5461     # Libtool will interpret -1 as no limit whatsoever
5462     lt_cv_sys_max_cmd_len=-1;
5463     ;;
5464
5465   cygwin* | mingw*)
5466     # On Win9x/ME, this test blows up -- it succeeds, but takes
5467     # about 5 minutes as the teststring grows exponentially.
5468     # Worse, since 9x/ME are not pre-emptively multitasking,
5469     # you end up with a "frozen" computer, even though with patience
5470     # the test eventually succeeds (with a max line length of 256k).
5471     # Instead, let's just punt: use the minimum linelength reported by
5472     # all of the supported platforms: 8192 (on NT/2K/XP).
5473     lt_cv_sys_max_cmd_len=8192;
5474     ;;
5475
5476   amigaos*)
5477     # On AmigaOS with pdksh, this test takes hours, literally.
5478     # So we just punt and use a minimum line length of 8192.
5479     lt_cv_sys_max_cmd_len=8192;
5480     ;;
5481
5482   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5483     # This has been around since 386BSD, at least.  Likely further.
5484     if test -x /sbin/sysctl; then
5485       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5486     elif test -x /usr/sbin/sysctl; then
5487       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5488     else
5489       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5490     fi
5491     # And add a safety zone
5492     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5493     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5494     ;;
5495
5496   interix*)
5497     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5498     lt_cv_sys_max_cmd_len=196608
5499     ;;
5500
5501   osf*)
5502     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5503     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5504     # nice to cause kernel panics so lets avoid the loop below.
5505     # First set a reasonable default.
5506     lt_cv_sys_max_cmd_len=16384
5507     #
5508     if test -x /sbin/sysconfig; then
5509       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5510         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5511       esac
5512     fi
5513     ;;
5514   sco3.2v5*)
5515     lt_cv_sys_max_cmd_len=102400
5516     ;;
5517   sysv5* | sco5v6* | sysv4.2uw2*)
5518     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5519     if test -n "$kargmax"; then
5520       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
5521     else
5522       lt_cv_sys_max_cmd_len=32768
5523     fi
5524     ;;
5525   *)
5526     # If test is not a shell built-in, we'll probably end up computing a
5527     # maximum length that is only half of the actual maximum length, but
5528     # we can't tell.
5529     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5530     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5531                = "XX$teststring") >/dev/null 2>&1 &&
5532             new_result=`expr "X$teststring" : ".*" 2>&1` &&
5533             lt_cv_sys_max_cmd_len=$new_result &&
5534             test $i != 17 # 1/2 MB should be enough
5535     do
5536       i=`expr $i + 1`
5537       teststring=$teststring$teststring
5538     done
5539     teststring=
5540     # Add a significant safety factor because C++ compilers can tack on massive
5541     # amounts of additional arguments before passing them to the linker.
5542     # It appears as though 1/2 is a usable value.
5543     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5544     ;;
5545   esac
5546
5547 fi
5548
5549 if test -n $lt_cv_sys_max_cmd_len ; then
5550   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5551 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5552 else
5553   echo "$as_me:$LINENO: result: none" >&5
5554 echo "${ECHO_T}none" >&6
5555 fi
5556
5557
5558
5559
5560 # Check for command to grab the raw symbol name followed by C symbol from nm.
5561 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5562 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5563 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5564   echo $ECHO_N "(cached) $ECHO_C" >&6
5565 else
5566   
5567 # These are sane defaults that work on at least a few old systems.
5568 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5569
5570 # Character class describing NM global symbol codes.
5571 symcode='[BCDEGRST]'
5572
5573 # Regexp to match symbols that can be accessed directly from C.
5574 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5575
5576 # Transform an extracted symbol line into a proper C declaration
5577 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5578
5579 # Transform an extracted symbol line into symbol name and symbol address
5580 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'"
5581
5582 # Define system-specific variables.
5583 case $host_os in
5584 aix*)
5585   symcode='[BCDT]'
5586   ;;
5587 cygwin* | mingw* | pw32*)
5588   symcode='[ABCDGISTW]'
5589   ;;
5590 hpux*) # Its linker distinguishes data from code symbols
5591   if test "$host_cpu" = ia64; then
5592     symcode='[ABCDEGRST]'
5593   fi
5594   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5595   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'"
5596   ;;
5597 linux*)
5598   if test "$host_cpu" = ia64; then
5599     symcode='[ABCDGIRSTW]'
5600     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5601     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'"
5602   fi
5603   ;;
5604 irix* | nonstopux*)
5605   symcode='[BCDEGRST]'
5606   ;;
5607 osf*)
5608   symcode='[BCDEGQRST]'
5609   ;;
5610 solaris*)
5611   symcode='[BDRT]'
5612   ;;
5613 sco3.2v5*)
5614   symcode='[DT]'
5615   ;;
5616 sysv4.2uw2*)
5617   symcode='[DT]'
5618   ;;
5619 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5620   symcode='[ABDT]'
5621   ;;
5622 sysv4)
5623   symcode='[DFNSTU]'
5624   ;;
5625 esac
5626
5627 # Handle CRLF in mingw tool chain
5628 opt_cr=
5629 case $build_os in
5630 mingw*)
5631   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5632   ;;
5633 esac
5634
5635 # If we're using GNU nm, then use its standard symbol codes.
5636 case `$NM -V 2>&1` in
5637 *GNU* | *'with BFD'*)
5638   symcode='[ABCDGIRSTW]' ;;
5639 esac
5640
5641 # Try without a prefix undercore, then with it.
5642 for ac_symprfx in "" "_"; do
5643
5644   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5645   symxfrm="\\1 $ac_symprfx\\2 \\2"
5646
5647   # Write the raw and C identifiers.
5648   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5649
5650   # Check to see that the pipe works correctly.
5651   pipe_works=no
5652
5653   rm -f conftest*
5654   cat > conftest.$ac_ext <<EOF
5655 #ifdef __cplusplus
5656 extern "C" {
5657 #endif
5658 char nm_test_var;
5659 void nm_test_func(){}
5660 #ifdef __cplusplus
5661 }
5662 #endif
5663 int main(){nm_test_var='a';nm_test_func();return(0);}
5664 EOF
5665
5666   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5667   (eval $ac_compile) 2>&5
5668   ac_status=$?
5669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670   (exit $ac_status); }; then
5671     # Now try to grab the symbols.
5672     nlist=conftest.nm
5673     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5674   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5675   ac_status=$?
5676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677   (exit $ac_status); } && test -s "$nlist"; then
5678       # Try sorting and uniquifying the output.
5679       if sort "$nlist" | uniq > "$nlist"T; then
5680         mv -f "$nlist"T "$nlist"
5681       else
5682         rm -f "$nlist"T
5683       fi
5684
5685       # Make sure that we snagged all the symbols we need.
5686       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5687         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5688           cat <<EOF > conftest.$ac_ext
5689 #ifdef __cplusplus
5690 extern "C" {
5691 #endif
5692
5693 EOF
5694           # Now generate the symbol file.
5695           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5696
5697           cat <<EOF >> conftest.$ac_ext
5698 #if defined (__STDC__) && __STDC__
5699 # define lt_ptr_t void *
5700 #else
5701 # define lt_ptr_t char *
5702 # define const
5703 #endif
5704
5705 /* The mapping between symbol names and symbols. */
5706 const struct {
5707   const char *name;
5708   lt_ptr_t address;
5709 }
5710 lt_preloaded_symbols[] =
5711 {
5712 EOF
5713           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5714           cat <<\EOF >> conftest.$ac_ext
5715   {0, (lt_ptr_t) 0}
5716 };
5717
5718 #ifdef __cplusplus
5719 }
5720 #endif
5721 EOF
5722           # Now try linking the two files.
5723           mv conftest.$ac_objext conftstm.$ac_objext
5724           lt_save_LIBS="$LIBS"
5725           lt_save_CFLAGS="$CFLAGS"
5726           LIBS="conftstm.$ac_objext"
5727           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5728           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5729   (eval $ac_link) 2>&5
5730   ac_status=$?
5731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5733             pipe_works=yes
5734           fi
5735           LIBS="$lt_save_LIBS"
5736           CFLAGS="$lt_save_CFLAGS"
5737         else
5738           echo "cannot find nm_test_func in $nlist" >&5
5739         fi
5740       else
5741         echo "cannot find nm_test_var in $nlist" >&5
5742       fi
5743     else
5744       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5745     fi
5746   else
5747     echo "$progname: failed program was:" >&5
5748     cat conftest.$ac_ext >&5
5749   fi
5750   rm -f conftest* conftst*
5751
5752   # Do not use the global_symbol_pipe unless it works.
5753   if test "$pipe_works" = yes; then
5754     break
5755   else
5756     lt_cv_sys_global_symbol_pipe=
5757   fi
5758 done
5759
5760 fi
5761
5762 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5763   lt_cv_sys_global_symbol_to_cdecl=
5764 fi
5765 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5766   echo "$as_me:$LINENO: result: failed" >&5
5767 echo "${ECHO_T}failed" >&6
5768 else
5769   echo "$as_me:$LINENO: result: ok" >&5
5770 echo "${ECHO_T}ok" >&6
5771 fi
5772
5773 echo "$as_me:$LINENO: checking for objdir" >&5
5774 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5775 if test "${lt_cv_objdir+set}" = set; then
5776   echo $ECHO_N "(cached) $ECHO_C" >&6
5777 else
5778   rm -f .libs 2>/dev/null
5779 mkdir .libs 2>/dev/null
5780 if test -d .libs; then
5781   lt_cv_objdir=.libs
5782 else
5783   # MS-DOS does not allow filenames that begin with a dot.
5784   lt_cv_objdir=_libs
5785 fi
5786 rmdir .libs 2>/dev/null
5787 fi
5788 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5789 echo "${ECHO_T}$lt_cv_objdir" >&6
5790 objdir=$lt_cv_objdir
5791
5792
5793
5794
5795
5796 case $host_os in
5797 aix3*)
5798   # AIX sometimes has problems with the GCC collect2 program.  For some
5799   # reason, if we set the COLLECT_NAMES environment variable, the problems
5800   # vanish in a puff of smoke.
5801   if test "X${COLLECT_NAMES+set}" != Xset; then
5802     COLLECT_NAMES=
5803     export COLLECT_NAMES
5804   fi
5805   ;;
5806 esac
5807
5808 # Sed substitution that helps us do robust quoting.  It backslashifies
5809 # metacharacters that are still active within double-quoted strings.
5810 Xsed='sed -e 1s/^X//'
5811 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5812
5813 # Same as above, but do not quote variable references.
5814 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5815
5816 # Sed substitution to delay expansion of an escaped shell variable in a
5817 # double_quote_subst'ed string.
5818 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5819
5820 # Sed substitution to avoid accidental globbing in evaled expressions
5821 no_glob_subst='s/\*/\\\*/g'
5822
5823 # Constants:
5824 rm="rm -f"
5825
5826 # Global variables:
5827 default_ofile=libtool
5828 can_build_shared=yes
5829
5830 # All known linkers require a `.a' archive for static linking (except MSVC,
5831 # which needs '.lib').
5832 libext=a
5833 ltmain="$ac_aux_dir/ltmain.sh"
5834 ofile="$default_ofile"
5835 with_gnu_ld="$lt_cv_prog_gnu_ld"
5836
5837 if test -n "$ac_tool_prefix"; then
5838   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5839 set dummy ${ac_tool_prefix}ar; ac_word=$2
5840 echo "$as_me:$LINENO: checking for $ac_word" >&5
5841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5842 if test "${ac_cv_prog_AR+set}" = set; then
5843   echo $ECHO_N "(cached) $ECHO_C" >&6
5844 else
5845   if test -n "$AR"; then
5846   ac_cv_prog_AR="$AR" # Let the user override the test.
5847 else
5848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5849 for as_dir in $PATH
5850 do
5851   IFS=$as_save_IFS
5852   test -z "$as_dir" && as_dir=.
5853   for ac_exec_ext in '' $ac_executable_extensions; do
5854   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5855     ac_cv_prog_AR="${ac_tool_prefix}ar"
5856     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5857     break 2
5858   fi
5859 done
5860 done
5861
5862 fi
5863 fi
5864 AR=$ac_cv_prog_AR
5865 if test -n "$AR"; then
5866   echo "$as_me:$LINENO: result: $AR" >&5
5867 echo "${ECHO_T}$AR" >&6
5868 else
5869   echo "$as_me:$LINENO: result: no" >&5
5870 echo "${ECHO_T}no" >&6
5871 fi
5872
5873 fi
5874 if test -z "$ac_cv_prog_AR"; then
5875   ac_ct_AR=$AR
5876   # Extract the first word of "ar", so it can be a program name with args.
5877 set dummy ar; ac_word=$2
5878 echo "$as_me:$LINENO: checking for $ac_word" >&5
5879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5880 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5881   echo $ECHO_N "(cached) $ECHO_C" >&6
5882 else
5883   if test -n "$ac_ct_AR"; then
5884   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5885 else
5886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5887 for as_dir in $PATH
5888 do
5889   IFS=$as_save_IFS
5890   test -z "$as_dir" && as_dir=.
5891   for ac_exec_ext in '' $ac_executable_extensions; do
5892   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5893     ac_cv_prog_ac_ct_AR="ar"
5894     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5895     break 2
5896   fi
5897 done
5898 done
5899
5900   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5901 fi
5902 fi
5903 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5904 if test -n "$ac_ct_AR"; then
5905   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5906 echo "${ECHO_T}$ac_ct_AR" >&6
5907 else
5908   echo "$as_me:$LINENO: result: no" >&5
5909 echo "${ECHO_T}no" >&6
5910 fi
5911
5912   AR=$ac_ct_AR
5913 else
5914   AR="$ac_cv_prog_AR"
5915 fi
5916
5917 if test -n "$ac_tool_prefix"; then
5918   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5919 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5920 echo "$as_me:$LINENO: checking for $ac_word" >&5
5921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5922 if test "${ac_cv_prog_RANLIB+set}" = set; then
5923   echo $ECHO_N "(cached) $ECHO_C" >&6
5924 else
5925   if test -n "$RANLIB"; then
5926   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5927 else
5928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5929 for as_dir in $PATH
5930 do
5931   IFS=$as_save_IFS
5932   test -z "$as_dir" && as_dir=.
5933   for ac_exec_ext in '' $ac_executable_extensions; do
5934   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5935     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5936     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5937     break 2
5938   fi
5939 done
5940 done
5941
5942 fi
5943 fi
5944 RANLIB=$ac_cv_prog_RANLIB
5945 if test -n "$RANLIB"; then
5946   echo "$as_me:$LINENO: result: $RANLIB" >&5
5947 echo "${ECHO_T}$RANLIB" >&6
5948 else
5949   echo "$as_me:$LINENO: result: no" >&5
5950 echo "${ECHO_T}no" >&6
5951 fi
5952
5953 fi
5954 if test -z "$ac_cv_prog_RANLIB"; then
5955   ac_ct_RANLIB=$RANLIB
5956   # Extract the first word of "ranlib", so it can be a program name with args.
5957 set dummy ranlib; ac_word=$2
5958 echo "$as_me:$LINENO: checking for $ac_word" >&5
5959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5960 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5961   echo $ECHO_N "(cached) $ECHO_C" >&6
5962 else
5963   if test -n "$ac_ct_RANLIB"; then
5964   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5965 else
5966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5967 for as_dir in $PATH
5968 do
5969   IFS=$as_save_IFS
5970   test -z "$as_dir" && as_dir=.
5971   for ac_exec_ext in '' $ac_executable_extensions; do
5972   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5973     ac_cv_prog_ac_ct_RANLIB="ranlib"
5974     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5975     break 2
5976   fi
5977 done
5978 done
5979
5980   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5981 fi
5982 fi
5983 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5984 if test -n "$ac_ct_RANLIB"; then
5985   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5986 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5987 else
5988   echo "$as_me:$LINENO: result: no" >&5
5989 echo "${ECHO_T}no" >&6
5990 fi
5991
5992   RANLIB=$ac_ct_RANLIB
5993 else
5994   RANLIB="$ac_cv_prog_RANLIB"
5995 fi
5996
5997 if test -n "$ac_tool_prefix"; then
5998   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5999 set dummy ${ac_tool_prefix}strip; ac_word=$2
6000 echo "$as_me:$LINENO: checking for $ac_word" >&5
6001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6002 if test "${ac_cv_prog_STRIP+set}" = set; then
6003   echo $ECHO_N "(cached) $ECHO_C" >&6
6004 else
6005   if test -n "$STRIP"; then
6006   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6007 else
6008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6009 for as_dir in $PATH
6010 do
6011   IFS=$as_save_IFS
6012   test -z "$as_dir" && as_dir=.
6013   for ac_exec_ext in '' $ac_executable_extensions; do
6014   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6015     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6016     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6017     break 2
6018   fi
6019 done
6020 done
6021
6022 fi
6023 fi
6024 STRIP=$ac_cv_prog_STRIP
6025 if test -n "$STRIP"; then
6026   echo "$as_me:$LINENO: result: $STRIP" >&5
6027 echo "${ECHO_T}$STRIP" >&6
6028 else
6029   echo "$as_me:$LINENO: result: no" >&5
6030 echo "${ECHO_T}no" >&6
6031 fi
6032
6033 fi
6034 if test -z "$ac_cv_prog_STRIP"; then
6035   ac_ct_STRIP=$STRIP
6036   # Extract the first word of "strip", so it can be a program name with args.
6037 set dummy strip; ac_word=$2
6038 echo "$as_me:$LINENO: checking for $ac_word" >&5
6039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6040 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6041   echo $ECHO_N "(cached) $ECHO_C" >&6
6042 else
6043   if test -n "$ac_ct_STRIP"; then
6044   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6045 else
6046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6047 for as_dir in $PATH
6048 do
6049   IFS=$as_save_IFS
6050   test -z "$as_dir" && as_dir=.
6051   for ac_exec_ext in '' $ac_executable_extensions; do
6052   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6053     ac_cv_prog_ac_ct_STRIP="strip"
6054     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6055     break 2
6056   fi
6057 done
6058 done
6059
6060   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6061 fi
6062 fi
6063 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6064 if test -n "$ac_ct_STRIP"; then
6065   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6066 echo "${ECHO_T}$ac_ct_STRIP" >&6
6067 else
6068   echo "$as_me:$LINENO: result: no" >&5
6069 echo "${ECHO_T}no" >&6
6070 fi
6071
6072   STRIP=$ac_ct_STRIP
6073 else
6074   STRIP="$ac_cv_prog_STRIP"
6075 fi
6076
6077
6078 old_CC="$CC"
6079 old_CFLAGS="$CFLAGS"
6080
6081 # Set sane defaults for various variables
6082 test -z "$AR" && AR=ar
6083 test -z "$AR_FLAGS" && AR_FLAGS=cru
6084 test -z "$AS" && AS=as
6085 test -z "$CC" && CC=cc
6086 test -z "$LTCC" && LTCC=$CC
6087 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6088 test -z "$DLLTOOL" && DLLTOOL=dlltool
6089 test -z "$LD" && LD=ld
6090 test -z "$LN_S" && LN_S="ln -s"
6091 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6092 test -z "$NM" && NM=nm
6093 test -z "$SED" && SED=sed
6094 test -z "$OBJDUMP" && OBJDUMP=objdump
6095 test -z "$RANLIB" && RANLIB=:
6096 test -z "$STRIP" && STRIP=:
6097 test -z "$ac_objext" && ac_objext=o
6098
6099 # Determine commands to create old-style static archives.
6100 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6101 old_postinstall_cmds='chmod 644 $oldlib'
6102 old_postuninstall_cmds=
6103
6104 if test -n "$RANLIB"; then
6105   case $host_os in
6106   openbsd*)
6107     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6108     ;;
6109   *)
6110     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6111     ;;
6112   esac
6113   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6114 fi
6115
6116 for cc_temp in $compiler""; do
6117   case $cc_temp in
6118     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6119     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6120     \-*) ;;
6121     *) break;;
6122   esac
6123 done
6124 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6125
6126
6127 # Only perform the check for file, if the check method requires it
6128 case $deplibs_check_method in
6129 file_magic*)
6130   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6131     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6132 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6133 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6134   echo $ECHO_N "(cached) $ECHO_C" >&6
6135 else
6136   case $MAGIC_CMD in
6137 [\\/*] |  ?:[\\/]*)
6138   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6139   ;;
6140 *)
6141   lt_save_MAGIC_CMD="$MAGIC_CMD"
6142   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6143   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6144   for ac_dir in $ac_dummy; do
6145     IFS="$lt_save_ifs"
6146     test -z "$ac_dir" && ac_dir=.
6147     if test -f $ac_dir/${ac_tool_prefix}file; then
6148       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6149       if test -n "$file_magic_test_file"; then
6150         case $deplibs_check_method in
6151         "file_magic "*)
6152           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6153           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6154           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6155             $EGREP "$file_magic_regex" > /dev/null; then
6156             :
6157           else
6158             cat <<EOF 1>&2
6159
6160 *** Warning: the command libtool uses to detect shared libraries,
6161 *** $file_magic_cmd, produces output that libtool cannot recognize.
6162 *** The result is that libtool may fail to recognize shared libraries
6163 *** as such.  This will affect the creation of libtool libraries that
6164 *** depend on shared libraries, but programs linked with such libtool
6165 *** libraries will work regardless of this problem.  Nevertheless, you
6166 *** may want to report the problem to your system manager and/or to
6167 *** bug-libtool@gnu.org
6168
6169 EOF
6170           fi ;;
6171         esac
6172       fi
6173       break
6174     fi
6175   done
6176   IFS="$lt_save_ifs"
6177   MAGIC_CMD="$lt_save_MAGIC_CMD"
6178   ;;
6179 esac
6180 fi
6181
6182 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6183 if test -n "$MAGIC_CMD"; then
6184   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6185 echo "${ECHO_T}$MAGIC_CMD" >&6
6186 else
6187   echo "$as_me:$LINENO: result: no" >&5
6188 echo "${ECHO_T}no" >&6
6189 fi
6190
6191 if test -z "$lt_cv_path_MAGIC_CMD"; then
6192   if test -n "$ac_tool_prefix"; then
6193     echo "$as_me:$LINENO: checking for file" >&5
6194 echo $ECHO_N "checking for file... $ECHO_C" >&6
6195 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6196   echo $ECHO_N "(cached) $ECHO_C" >&6
6197 else
6198   case $MAGIC_CMD in
6199 [\\/*] |  ?:[\\/]*)
6200   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6201   ;;
6202 *)
6203   lt_save_MAGIC_CMD="$MAGIC_CMD"
6204   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6205   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6206   for ac_dir in $ac_dummy; do
6207     IFS="$lt_save_ifs"
6208     test -z "$ac_dir" && ac_dir=.
6209     if test -f $ac_dir/file; then
6210       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6211       if test -n "$file_magic_test_file"; then
6212         case $deplibs_check_method in
6213         "file_magic "*)
6214           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6215           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6216           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6217             $EGREP "$file_magic_regex" > /dev/null; then
6218             :
6219           else
6220             cat <<EOF 1>&2
6221
6222 *** Warning: the command libtool uses to detect shared libraries,
6223 *** $file_magic_cmd, produces output that libtool cannot recognize.
6224 *** The result is that libtool may fail to recognize shared libraries
6225 *** as such.  This will affect the creation of libtool libraries that
6226 *** depend on shared libraries, but programs linked with such libtool
6227 *** libraries will work regardless of this problem.  Nevertheless, you
6228 *** may want to report the problem to your system manager and/or to
6229 *** bug-libtool@gnu.org
6230
6231 EOF
6232           fi ;;
6233         esac
6234       fi
6235       break
6236     fi
6237   done
6238   IFS="$lt_save_ifs"
6239   MAGIC_CMD="$lt_save_MAGIC_CMD"
6240   ;;
6241 esac
6242 fi
6243
6244 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6245 if test -n "$MAGIC_CMD"; then
6246   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6247 echo "${ECHO_T}$MAGIC_CMD" >&6
6248 else
6249   echo "$as_me:$LINENO: result: no" >&5
6250 echo "${ECHO_T}no" >&6
6251 fi
6252
6253   else
6254     MAGIC_CMD=:
6255   fi
6256 fi
6257
6258   fi
6259   ;;
6260 esac
6261
6262 enable_dlopen=no
6263 enable_win32_dll=no
6264
6265 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6266 if test "${enable_libtool_lock+set}" = set; then
6267   enableval="$enable_libtool_lock"
6268   
6269 fi; 
6270 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6271
6272
6273 # Check whether --with-pic or --without-pic was given.
6274 if test "${with_pic+set}" = set; then
6275   withval="$with_pic"
6276   pic_mode="$withval"
6277 else
6278   pic_mode=default
6279 fi; 
6280 test -z "$pic_mode" && pic_mode=default
6281
6282 # Use C for the default configuration in the libtool script
6283 tagname=
6284 lt_save_CC="$CC"
6285 ac_ext=c
6286 ac_cpp='$CPP $CPPFLAGS'
6287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6290
6291
6292 # Source file extension for C test sources.
6293 ac_ext=c
6294
6295 # Object file extension for compiled C test sources.
6296 objext=o
6297 objext=$objext
6298
6299 # Code to be used in simple compile tests
6300 lt_simple_compile_test_code="int some_variable = 0;\n"
6301
6302 # Code to be used in simple link tests
6303 lt_simple_link_test_code='int main(){return(0);}\n'
6304
6305
6306 # If no C compiler was specified, use CC.
6307 LTCC=${LTCC-"$CC"}
6308
6309 # If no C compiler flags were specified, use CFLAGS.
6310 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6311
6312 # Allow CC to be a program name with arguments.
6313 compiler=$CC
6314
6315
6316 # save warnings/boilerplate of simple test code
6317 ac_outfile=conftest.$ac_objext
6318 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6319 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6320 _lt_compiler_boilerplate=`cat conftest.err`
6321 $rm conftest*
6322
6323 ac_outfile=conftest.$ac_objext
6324 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6325 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6326 _lt_linker_boilerplate=`cat conftest.err`
6327 $rm conftest*
6328
6329
6330 ## CAVEAT EMPTOR:
6331 ## There is no encapsulation within the following macros, do not change
6332 ## the running order or otherwise move them around unless you know exactly
6333 ## what you are doing...
6334
6335 lt_prog_compiler_no_builtin_flag=
6336
6337 if test "$GCC" = yes; then
6338   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6339
6340   
6341 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6342 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6343 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6344   echo $ECHO_N "(cached) $ECHO_C" >&6
6345 else
6346   lt_cv_prog_compiler_rtti_exceptions=no
6347   ac_outfile=conftest.$ac_objext
6348    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6349    lt_compiler_flag="-fno-rtti -fno-exceptions"
6350    # Insert the option either (1) after the last *FLAGS variable, or
6351    # (2) before a word containing "conftest.", or (3) at the end.
6352    # Note that $ac_compile itself does not contain backslashes and begins
6353    # with a dollar sign (not a hyphen), so the echo should work correctly.
6354    # The option is referenced via a variable to avoid confusing sed.
6355    lt_compile=`echo "$ac_compile" | $SED \
6356    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6357    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6358    -e 's:$: $lt_compiler_flag:'`
6359    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
6360    (eval "$lt_compile" 2>conftest.err)
6361    ac_status=$?
6362    cat conftest.err >&5
6363    echo "$as_me:__oline__: \$? = $ac_status" >&5
6364    if (exit $ac_status) && test -s "$ac_outfile"; then
6365      # The compiler can only warn and ignore the option if not recognized
6366      # So say no if there are warnings other than the usual output.
6367      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6368      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6369      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6370        lt_cv_prog_compiler_rtti_exceptions=yes
6371      fi
6372    fi
6373    $rm conftest*
6374
6375 fi
6376 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6377 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6378
6379 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6380     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6381 else
6382     :
6383 fi
6384
6385 fi
6386
6387 lt_prog_compiler_wl=
6388 lt_prog_compiler_pic=
6389 lt_prog_compiler_static=
6390
6391 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6392 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6393  
6394   if test "$GCC" = yes; then
6395     lt_prog_compiler_wl='-Wl,'
6396     lt_prog_compiler_static='-static'
6397
6398     case $host_os in
6399       aix*)
6400       # All AIX code is PIC.
6401       if test "$host_cpu" = ia64; then
6402         # AIX 5 now supports IA64 processor
6403         lt_prog_compiler_static='-Bstatic'
6404       fi
6405       ;;
6406
6407     amigaos*)
6408       # FIXME: we need at least 68020 code to build shared libraries, but
6409       # adding the `-m68020' flag to GCC prevents building anything better,
6410       # like `-m68040'.
6411       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6412       ;;
6413
6414     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6415       # PIC is the default for these OSes.
6416       ;;
6417
6418     mingw* | pw32* | os2*)
6419       # This hack is so that the source file can tell whether it is being
6420       # built for inclusion in a dll (and should export symbols for example).
6421       lt_prog_compiler_pic='-DDLL_EXPORT'
6422       ;;
6423
6424     darwin* | rhapsody*)
6425       # PIC is the default on this platform
6426       # Common symbols not allowed in MH_DYLIB files
6427       lt_prog_compiler_pic='-fno-common'
6428       ;;
6429
6430     interix3*)
6431       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6432       # Instead, we relocate shared libraries at runtime.
6433       ;;
6434
6435     msdosdjgpp*)
6436       # Just because we use GCC doesn't mean we suddenly get shared libraries
6437       # on systems that don't support them.
6438       lt_prog_compiler_can_build_shared=no
6439       enable_shared=no
6440       ;;
6441
6442     sysv4*MP*)
6443       if test -d /usr/nec; then
6444         lt_prog_compiler_pic=-Kconform_pic
6445       fi
6446       ;;
6447
6448     hpux*)
6449       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6450       # not for PA HP-UX.
6451       case $host_cpu in
6452       hppa*64*|ia64*)
6453         # +Z the default
6454         ;;
6455       *)
6456         lt_prog_compiler_pic='-fPIC'
6457         ;;
6458       esac
6459       ;;
6460
6461     *)
6462       lt_prog_compiler_pic='-fPIC'
6463       ;;
6464     esac
6465   else
6466     # PORTME Check for flag to pass linker flags through the system compiler.
6467     case $host_os in
6468     aix*)
6469       lt_prog_compiler_wl='-Wl,'
6470       if test "$host_cpu" = ia64; then
6471         # AIX 5 now supports IA64 processor
6472         lt_prog_compiler_static='-Bstatic'
6473       else
6474         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6475       fi
6476       ;;
6477       darwin*)
6478         # PIC is the default on this platform
6479         # Common symbols not allowed in MH_DYLIB files
6480        case $cc_basename in
6481          xlc*)
6482          lt_prog_compiler_pic='-qnocommon'
6483          lt_prog_compiler_wl='-Wl,'
6484          ;;
6485        esac
6486        ;;
6487
6488     mingw* | pw32* | os2*)
6489       # This hack is so that the source file can tell whether it is being
6490       # built for inclusion in a dll (and should export symbols for example).
6491       lt_prog_compiler_pic='-DDLL_EXPORT'
6492       ;;
6493
6494     hpux9* | hpux10* | hpux11*)
6495       lt_prog_compiler_wl='-Wl,'
6496       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6497       # not for PA HP-UX.
6498       case $host_cpu in
6499       hppa*64*|ia64*)
6500         # +Z the default
6501         ;;
6502       *)
6503         lt_prog_compiler_pic='+Z'
6504         ;;
6505       esac
6506       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6507       lt_prog_compiler_static='${wl}-a ${wl}archive'
6508       ;;
6509
6510     irix5* | irix6* | nonstopux*)
6511       lt_prog_compiler_wl='-Wl,'
6512       # PIC (with -KPIC) is the default.
6513       lt_prog_compiler_static='-non_shared'
6514       ;;
6515
6516     newsos6)
6517       lt_prog_compiler_pic='-KPIC'
6518       lt_prog_compiler_static='-Bstatic'
6519       ;;
6520
6521     linux*)
6522       case $cc_basename in
6523       icc* | ecc*)
6524         lt_prog_compiler_wl='-Wl,'
6525         lt_prog_compiler_pic='-KPIC'
6526         lt_prog_compiler_static='-static'
6527         ;;
6528       pgcc* | pgf77* | pgf90* | pgf95*)
6529         # Portland Group compilers (*not* the Pentium gcc compiler,
6530         # which looks to be a dead project)
6531         lt_prog_compiler_wl='-Wl,'
6532         lt_prog_compiler_pic='-fpic'
6533         lt_prog_compiler_static='-Bstatic'
6534         ;;
6535       ccc*)
6536         lt_prog_compiler_wl='-Wl,'
6537         # All Alpha code is PIC.
6538         lt_prog_compiler_static='-non_shared'
6539         ;;
6540       esac
6541       ;;
6542
6543     osf3* | osf4* | osf5*)
6544       lt_prog_compiler_wl='-Wl,'
6545       # All OSF/1 code is PIC.
6546       lt_prog_compiler_static='-non_shared'
6547       ;;
6548
6549     solaris*)
6550       lt_prog_compiler_pic='-KPIC'
6551       lt_prog_compiler_static='-Bstatic'
6552       case $cc_basename in
6553       f77* | f90* | f95*)
6554         lt_prog_compiler_wl='-Qoption ld ';;
6555       *)
6556         lt_prog_compiler_wl='-Wl,';;
6557       esac
6558       ;;
6559
6560     sunos4*)
6561       lt_prog_compiler_wl='-Qoption ld '
6562       lt_prog_compiler_pic='-PIC'
6563       lt_prog_compiler_static='-Bstatic'
6564       ;;
6565
6566     sysv4 | sysv4.2uw2* | sysv4.3*)
6567       lt_prog_compiler_wl='-Wl,'
6568       lt_prog_compiler_pic='-KPIC'
6569       lt_prog_compiler_static='-Bstatic'
6570       ;;
6571
6572     sysv4*MP*)
6573       if test -d /usr/nec ;then
6574         lt_prog_compiler_pic='-Kconform_pic'
6575         lt_prog_compiler_static='-Bstatic'
6576       fi
6577       ;;
6578
6579     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6580       lt_prog_compiler_wl='-Wl,'
6581       lt_prog_compiler_pic='-KPIC'
6582       lt_prog_compiler_static='-Bstatic'
6583       ;;
6584
6585     unicos*)
6586       lt_prog_compiler_wl='-Wl,'
6587       lt_prog_compiler_can_build_shared=no
6588       ;;
6589
6590     uts4*)
6591       lt_prog_compiler_pic='-pic'
6592       lt_prog_compiler_static='-Bstatic'
6593       ;;
6594
6595     *)
6596       lt_prog_compiler_can_build_shared=no
6597       ;;
6598     esac
6599   fi
6600
6601 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6602 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6603
6604 #
6605 # Check to make sure the PIC flag actually works.
6606 #
6607 if test -n "$lt_prog_compiler_pic"; then
6608   
6609 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6610 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6611 if test "${lt_prog_compiler_pic_works+set}" = set; then
6612   echo $ECHO_N "(cached) $ECHO_C" >&6
6613 else
6614   lt_prog_compiler_pic_works=no
6615   ac_outfile=conftest.$ac_objext
6616    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6617    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6618    # Insert the option either (1) after the last *FLAGS variable, or
6619    # (2) before a word containing "conftest.", or (3) at the end.
6620    # Note that $ac_compile itself does not contain backslashes and begins
6621    # with a dollar sign (not a hyphen), so the echo should work correctly.
6622    # The option is referenced via a variable to avoid confusing sed.
6623    lt_compile=`echo "$ac_compile" | $SED \
6624    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6625    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6626    -e 's:$: $lt_compiler_flag:'`
6627    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
6628    (eval "$lt_compile" 2>conftest.err)
6629    ac_status=$?
6630    cat conftest.err >&5
6631    echo "$as_me:__oline__: \$? = $ac_status" >&5
6632    if (exit $ac_status) && test -s "$ac_outfile"; then
6633      # The compiler can only warn and ignore the option if not recognized
6634      # So say no if there are warnings other than the usual output.
6635      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6636      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6637      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6638        lt_prog_compiler_pic_works=yes
6639      fi
6640    fi
6641    $rm conftest*
6642
6643 fi
6644 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6645 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6646
6647 if test x"$lt_prog_compiler_pic_works" = xyes; then
6648     case $lt_prog_compiler_pic in
6649      "" | " "*) ;;
6650      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6651      esac
6652 else
6653     lt_prog_compiler_pic=
6654      lt_prog_compiler_can_build_shared=no
6655 fi
6656
6657 fi
6658 case $host_os in
6659   # For platforms which do not support PIC, -DPIC is meaningless:
6660   *djgpp*)
6661     lt_prog_compiler_pic=
6662     ;;
6663   *)
6664     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6665     ;;
6666 esac
6667
6668 #
6669 # Check to make sure the static flag actually works.
6670 #
6671 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6672 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6673 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6674 if test "${lt_prog_compiler_static_works+set}" = set; then
6675   echo $ECHO_N "(cached) $ECHO_C" >&6
6676 else
6677   lt_prog_compiler_static_works=no
6678    save_LDFLAGS="$LDFLAGS"
6679    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6680    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6681    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6682      # The linker can only warn and ignore the option if not recognized
6683      # So say no if there are warnings
6684      if test -s conftest.err; then
6685        # Append any errors to the config.log.
6686        cat conftest.err 1>&5
6687        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6688        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6689        if diff conftest.exp conftest.er2 >/dev/null; then
6690          lt_prog_compiler_static_works=yes
6691        fi
6692      else
6693        lt_prog_compiler_static_works=yes
6694      fi
6695    fi
6696    $rm conftest*
6697    LDFLAGS="$save_LDFLAGS"
6698
6699 fi
6700 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6701 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6702
6703 if test x"$lt_prog_compiler_static_works" = xyes; then
6704     :
6705 else
6706     lt_prog_compiler_static=
6707 fi
6708
6709
6710 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6711 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6712 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6713   echo $ECHO_N "(cached) $ECHO_C" >&6
6714 else
6715   lt_cv_prog_compiler_c_o=no
6716    $rm -r conftest 2>/dev/null
6717    mkdir conftest
6718    cd conftest
6719    mkdir out
6720    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6721
6722    lt_compiler_flag="-o out/conftest2.$ac_objext"
6723    # Insert the option either (1) after the last *FLAGS variable, or
6724    # (2) before a word containing "conftest.", or (3) at the end.
6725    # Note that $ac_compile itself does not contain backslashes and begins
6726    # with a dollar sign (not a hyphen), so the echo should work correctly.
6727    lt_compile=`echo "$ac_compile" | $SED \
6728    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6729    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6730    -e 's:$: $lt_compiler_flag:'`
6731    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
6732    (eval "$lt_compile" 2>out/conftest.err)
6733    ac_status=$?
6734    cat out/conftest.err >&5
6735    echo "$as_me:__oline__: \$? = $ac_status" >&5
6736    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6737    then
6738      # The compiler can only warn and ignore the option if not recognized
6739      # So say no if there are warnings
6740      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6741      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6742      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6743        lt_cv_prog_compiler_c_o=yes
6744      fi
6745    fi
6746    chmod u+w . 2>&5
6747    $rm conftest*
6748    # SGI C++ compiler will create directory out/ii_files/ for
6749    # template instantiation
6750    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6751    $rm out/* && rmdir out
6752    cd ..
6753    rmdir conftest
6754    $rm conftest*
6755
6756 fi
6757 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6758 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6759
6760
6761 hard_links="nottested"
6762 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6763   # do not overwrite the value of need_locks provided by the user
6764   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6765 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6766   hard_links=yes
6767   $rm conftest*
6768   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6769   touch conftest.a
6770   ln conftest.a conftest.b 2>&5 || hard_links=no
6771   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6772   echo "$as_me:$LINENO: result: $hard_links" >&5
6773 echo "${ECHO_T}$hard_links" >&6
6774   if test "$hard_links" = no; then
6775     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6776 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6777     need_locks=warn
6778   fi
6779 else
6780   need_locks=no
6781 fi
6782
6783 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6784 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6785
6786   runpath_var=
6787   allow_undefined_flag=
6788   enable_shared_with_static_runtimes=no
6789   archive_cmds=
6790   archive_expsym_cmds=
6791   old_archive_From_new_cmds=
6792   old_archive_from_expsyms_cmds=
6793   export_dynamic_flag_spec=
6794   whole_archive_flag_spec=
6795   thread_safe_flag_spec=
6796   hardcode_libdir_flag_spec=
6797   hardcode_libdir_flag_spec_ld=
6798   hardcode_libdir_separator=
6799   hardcode_direct=no
6800   hardcode_minus_L=no
6801   hardcode_shlibpath_var=unsupported
6802   link_all_deplibs=unknown
6803   hardcode_automatic=no
6804   module_cmds=
6805   module_expsym_cmds=
6806   always_export_symbols=no
6807   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6808   # include_expsyms should be a list of space-separated symbols to be *always*
6809   # included in the symbol list
6810   include_expsyms=
6811   # exclude_expsyms can be an extended regexp of symbols to exclude
6812   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6813   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6814   # as well as any symbol that contains `d'.
6815   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6816   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6817   # platforms (ab)use it in PIC code, but their linkers get confused if
6818   # the symbol is explicitly referenced.  Since portable code cannot
6819   # rely on this symbol name, it's probably fine to never include it in
6820   # preloaded symbol tables.
6821   extract_expsyms_cmds=
6822   # Just being paranoid about ensuring that cc_basename is set.
6823   for cc_temp in $compiler""; do
6824   case $cc_temp in
6825     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6826     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6827     \-*) ;;
6828     *) break;;
6829   esac
6830 done
6831 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6832
6833   case $host_os in
6834   cygwin* | mingw* | pw32*)
6835     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6836     # When not using gcc, we currently assume that we are using
6837     # Microsoft Visual C++.
6838     if test "$GCC" != yes; then
6839       with_gnu_ld=no
6840     fi
6841     ;;
6842   interix*)
6843     # we just hope/assume this is gcc and not c89 (= MSVC++)
6844     with_gnu_ld=yes
6845     ;;
6846   openbsd*)
6847     with_gnu_ld=no
6848     ;;
6849   esac
6850
6851   ld_shlibs=yes
6852   if test "$with_gnu_ld" = yes; then
6853     # If archive_cmds runs LD, not CC, wlarc should be empty
6854     wlarc='${wl}'
6855
6856     # Set some defaults for GNU ld with shared library support. These
6857     # are reset later if shared libraries are not supported. Putting them
6858     # here allows them to be overridden if necessary.
6859     runpath_var=LD_RUN_PATH
6860     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6861     export_dynamic_flag_spec='${wl}--export-dynamic'
6862     # ancient GNU ld didn't support --whole-archive et. al.
6863     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6864         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6865       else
6866         whole_archive_flag_spec=
6867     fi
6868     supports_anon_versioning=no
6869     case `$LD -v 2>/dev/null` in
6870       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6871       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6872       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6873       *\ 2.11.*) ;; # other 2.11 versions
6874       *) supports_anon_versioning=yes ;;
6875     esac
6876
6877     # See if GNU ld supports shared libraries.
6878     case $host_os in
6879     aix3* | aix4* | aix5*)
6880       # On AIX/PPC, the GNU linker is very broken
6881       if test "$host_cpu" != ia64; then
6882         ld_shlibs=no
6883         cat <<EOF 1>&2
6884
6885 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6886 *** to be unable to reliably create shared libraries on AIX.
6887 *** Therefore, libtool is disabling shared libraries support.  If you
6888 *** really care for shared libraries, you may want to modify your PATH
6889 *** so that a non-GNU linker is found, and then restart.
6890
6891 EOF
6892       fi
6893       ;;
6894
6895     amigaos*)
6896       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)'
6897       hardcode_libdir_flag_spec='-L$libdir'
6898       hardcode_minus_L=yes
6899
6900       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6901       # that the semantics of dynamic libraries on AmigaOS, at least up
6902       # to version 4, is to share data among multiple programs linked
6903       # with the same dynamic library.  Since this doesn't match the
6904       # behavior of shared libraries on other platforms, we can't use
6905       # them.
6906       ld_shlibs=no
6907       ;;
6908
6909     beos*)
6910       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6911         allow_undefined_flag=unsupported
6912         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6913         # support --undefined.  This deserves some investigation.  FIXME
6914         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6915       else
6916         ld_shlibs=no
6917       fi
6918       ;;
6919
6920     cygwin* | mingw* | pw32*)
6921       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6922       # as there is no search path for DLLs.
6923       hardcode_libdir_flag_spec='-L$libdir'
6924       allow_undefined_flag=unsupported
6925       always_export_symbols=no
6926       enable_shared_with_static_runtimes=yes
6927       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6928
6929       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6930         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6931         # If the export-symbols file already is a .def file (1st line
6932         # is EXPORTS), use it as is; otherwise, prepend...
6933         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6934           cp $export_symbols $output_objdir/$soname.def;
6935         else
6936           echo EXPORTS > $output_objdir/$soname.def;
6937           cat $export_symbols >> $output_objdir/$soname.def;
6938         fi~
6939         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6940       else
6941         ld_shlibs=no
6942       fi
6943       ;;
6944
6945     interix3*)
6946       hardcode_direct=no
6947       hardcode_shlibpath_var=no
6948       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6949       export_dynamic_flag_spec='${wl}-E'
6950       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6951       # Instead, shared libraries are loaded at an image base (0x10000000 by
6952       # default) and relocated if they conflict, which is a slow very memory
6953       # consuming and fragmenting process.  To avoid this, we pick a random,
6954       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6955       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
6956       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6957       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6958       ;;
6959
6960     linux*)
6961       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6962         tmp_addflag=
6963         case $cc_basename,$host_cpu in
6964         pgcc*)                          # Portland Group C compiler
6965           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6966           tmp_addflag=' $pic_flag'
6967           ;;
6968         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
6969           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6970           tmp_addflag=' $pic_flag -Mnomain' ;;
6971         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
6972           tmp_addflag=' -i_dynamic' ;;
6973         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
6974           tmp_addflag=' -i_dynamic -nofor_main' ;;
6975         ifc* | ifort*)                  # Intel Fortran compiler
6976           tmp_addflag=' -nofor_main' ;;
6977         esac
6978         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6979
6980         if test $supports_anon_versioning = yes; then
6981           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6982   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6983   $echo "local: *; };" >> $output_objdir/$libname.ver~
6984           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6985         fi
6986       else
6987         ld_shlibs=no
6988       fi
6989       ;;
6990
6991     netbsd*)
6992       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6993         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6994         wlarc=
6995       else
6996         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6997         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6998       fi
6999       ;;
7000
7001     solaris*)
7002       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7003         ld_shlibs=no
7004         cat <<EOF 1>&2
7005
7006 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7007 *** create shared libraries on Solaris systems.  Therefore, libtool
7008 *** is disabling shared libraries support.  We urge you to upgrade GNU
7009 *** binutils to release 2.9.1 or newer.  Another option is to modify
7010 *** your PATH or compiler configuration so that the native linker is
7011 *** used, and then restart.
7012
7013 EOF
7014       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7015         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7016         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7017       else
7018         ld_shlibs=no
7019       fi
7020       ;;
7021
7022     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7023       case `$LD -v 2>&1` in
7024         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 
7025         ld_shlibs=no
7026         cat <<_LT_EOF 1>&2
7027
7028 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7029 *** reliably create shared libraries on SCO systems.  Therefore, libtool
7030 *** is disabling shared libraries support.  We urge you to upgrade GNU
7031 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7032 *** your PATH or compiler configuration so that the native linker is
7033 *** used, and then restart.
7034
7035 _LT_EOF
7036         ;;
7037         *)
7038           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7039             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7040             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7041             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7042           else
7043             ld_shlibs=no
7044           fi
7045         ;;
7046       esac
7047       ;;
7048
7049     sunos4*)
7050       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7051       wlarc=
7052       hardcode_direct=yes
7053       hardcode_shlibpath_var=no
7054       ;;
7055
7056     *)
7057       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7058         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7059         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7060       else
7061         ld_shlibs=no
7062       fi
7063       ;;
7064     esac
7065
7066     if test "$ld_shlibs" = no; then
7067       runpath_var=
7068       hardcode_libdir_flag_spec=
7069       export_dynamic_flag_spec=
7070       whole_archive_flag_spec=
7071     fi
7072   else
7073     # PORTME fill in a description of your system's linker (not GNU ld)
7074     case $host_os in
7075     aix3*)
7076       allow_undefined_flag=unsupported
7077       always_export_symbols=yes
7078       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'
7079       # Note: this linker hardcodes the directories in LIBPATH if there
7080       # are no directories specified by -L.
7081       hardcode_minus_L=yes
7082       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7083         # Neither direct hardcoding nor static linking is supported with a
7084         # broken collect2.
7085         hardcode_direct=unsupported
7086       fi
7087       ;;
7088
7089     aix4* | aix5*)
7090       if test "$host_cpu" = ia64; then
7091         # On IA64, the linker does run time linking by default, so we don't
7092         # have to do anything special.
7093         aix_use_runtimelinking=no
7094         exp_sym_flag='-Bexport'
7095         no_entry_flag=""
7096       else
7097         # If we're using GNU nm, then we don't want the "-C" option.
7098         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7099         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7100           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'
7101         else
7102           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'
7103         fi
7104         aix_use_runtimelinking=no
7105
7106         # Test if we are trying to use run time linking or normal
7107         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7108         # need to do runtime linking.
7109         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7110           for ld_flag in $LDFLAGS; do
7111           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7112             aix_use_runtimelinking=yes
7113             break
7114           fi
7115           done
7116           ;;
7117         esac
7118
7119         exp_sym_flag='-bexport'
7120         no_entry_flag='-bnoentry'
7121       fi
7122
7123       # When large executables or shared objects are built, AIX ld can
7124       # have problems creating the table of contents.  If linking a library
7125       # or program results in "error TOC overflow" add -mminimal-toc to
7126       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7127       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7128
7129       archive_cmds=''
7130       hardcode_direct=yes
7131       hardcode_libdir_separator=':'
7132       link_all_deplibs=yes
7133
7134       if test "$GCC" = yes; then
7135         case $host_os in aix4.[012]|aix4.[012].*)
7136         # We only want to do this on AIX 4.2 and lower, the check
7137         # below for broken collect2 doesn't work under 4.3+
7138           collect2name=`${CC} -print-prog-name=collect2`
7139           if test -f "$collect2name" && \
7140            strings "$collect2name" | grep resolve_lib_name >/dev/null
7141           then
7142           # We have reworked collect2
7143           hardcode_direct=yes
7144           else
7145           # We have old collect2
7146           hardcode_direct=unsupported
7147           # It fails to find uninstalled libraries when the uninstalled
7148           # path is not listed in the libpath.  Setting hardcode_minus_L
7149           # to unsupported forces relinking
7150           hardcode_minus_L=yes
7151           hardcode_libdir_flag_spec='-L$libdir'
7152           hardcode_libdir_separator=
7153           fi
7154           ;;
7155         esac
7156         shared_flag='-shared'
7157         if test "$aix_use_runtimelinking" = yes; then
7158           shared_flag="$shared_flag "'${wl}-G'
7159         fi
7160       else
7161         # not using gcc
7162         if test "$host_cpu" = ia64; then
7163         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7164         # chokes on -Wl,-G. The following line is correct:
7165           shared_flag='-G'
7166         else
7167           if test "$aix_use_runtimelinking" = yes; then
7168             shared_flag='${wl}-G'
7169           else
7170             shared_flag='${wl}-bM:SRE'
7171           fi
7172         fi
7173       fi
7174
7175       # It seems that -bexpall does not export symbols beginning with
7176       # underscore (_), so it is better to generate a list of symbols to export.
7177       always_export_symbols=yes
7178       if test "$aix_use_runtimelinking" = yes; then
7179         # Warning - without using the other runtime loading flags (-brtl),
7180         # -berok will link without error, but may produce a broken library.
7181         allow_undefined_flag='-berok'
7182        # Determine the default libpath from the value encoded in an empty executable.
7183        cat >conftest.$ac_ext <<_ACEOF
7184 /* confdefs.h.  */
7185 _ACEOF
7186 cat confdefs.h >>conftest.$ac_ext
7187 cat >>conftest.$ac_ext <<_ACEOF
7188 /* end confdefs.h.  */
7189
7190 int
7191 main ()
7192 {
7193
7194   ;
7195   return 0;
7196 }
7197 _ACEOF
7198 rm -f conftest.$ac_objext conftest$ac_exeext
7199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7200   (eval $ac_link) 2>conftest.er1
7201   ac_status=$?
7202   grep -v '^ *+' conftest.er1 >conftest.err
7203   rm -f conftest.er1
7204   cat conftest.err >&5
7205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206   (exit $ac_status); } &&
7207          { ac_try='test -z "$ac_c_werror_flag"
7208                          || test ! -s conftest.err'
7209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7210   (eval $ac_try) 2>&5
7211   ac_status=$?
7212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7213   (exit $ac_status); }; } &&
7214          { ac_try='test -s conftest$ac_exeext'
7215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7216   (eval $ac_try) 2>&5
7217   ac_status=$?
7218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7219   (exit $ac_status); }; }; then
7220   
7221 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7222 }'`
7223 # Check for a 64-bit object if we didn't find anything.
7224 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; }
7225 }'`; fi
7226 else
7227   echo "$as_me: failed program was:" >&5
7228 sed 's/^/| /' conftest.$ac_ext >&5
7229
7230 fi
7231 rm -f conftest.err conftest.$ac_objext \
7232       conftest$ac_exeext conftest.$ac_ext
7233 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7234
7235        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7236         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7237        else
7238         if test "$host_cpu" = ia64; then
7239           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7240           allow_undefined_flag="-z nodefs"
7241           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7242         else
7243          # Determine the default libpath from the value encoded in an empty executable.
7244          cat >conftest.$ac_ext <<_ACEOF
7245 /* confdefs.h.  */
7246 _ACEOF
7247 cat confdefs.h >>conftest.$ac_ext
7248 cat >>conftest.$ac_ext <<_ACEOF
7249 /* end confdefs.h.  */
7250
7251 int
7252 main ()
7253 {
7254
7255   ;
7256   return 0;
7257 }
7258 _ACEOF
7259 rm -f conftest.$ac_objext conftest$ac_exeext
7260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7261   (eval $ac_link) 2>conftest.er1
7262   ac_status=$?
7263   grep -v '^ *+' conftest.er1 >conftest.err
7264   rm -f conftest.er1
7265   cat conftest.err >&5
7266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267   (exit $ac_status); } &&
7268          { ac_try='test -z "$ac_c_werror_flag"
7269                          || test ! -s conftest.err'
7270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7271   (eval $ac_try) 2>&5
7272   ac_status=$?
7273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7274   (exit $ac_status); }; } &&
7275          { ac_try='test -s conftest$ac_exeext'
7276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7277   (eval $ac_try) 2>&5
7278   ac_status=$?
7279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7280   (exit $ac_status); }; }; then
7281   
7282 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7283 }'`
7284 # Check for a 64-bit object if we didn't find anything.
7285 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; }
7286 }'`; fi
7287 else
7288   echo "$as_me: failed program was:" >&5
7289 sed 's/^/| /' conftest.$ac_ext >&5
7290
7291 fi
7292 rm -f conftest.err conftest.$ac_objext \
7293       conftest$ac_exeext conftest.$ac_ext
7294 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7295
7296          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7297           # Warning - without using the other run time loading flags,
7298           # -berok will link without error, but may produce a broken library.
7299           no_undefined_flag=' ${wl}-bernotok'
7300           allow_undefined_flag=' ${wl}-berok'
7301           # Exported symbols can be pulled into shared objects from archives
7302           whole_archive_flag_spec='$convenience'
7303           archive_cmds_need_lc=yes
7304           # This is similar to how AIX traditionally builds its shared libraries.
7305           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7306         fi
7307       fi
7308       ;;
7309
7310     amigaos*)
7311       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)'
7312       hardcode_libdir_flag_spec='-L$libdir'
7313       hardcode_minus_L=yes
7314       # see comment about different semantics on the GNU ld section
7315       ld_shlibs=no
7316       ;;
7317
7318     bsdi[45]*)
7319       export_dynamic_flag_spec=-rdynamic
7320       ;;
7321
7322     cygwin* | mingw* | pw32*)
7323       # When not using gcc, we currently assume that we are using
7324       # Microsoft Visual C++.
7325       # hardcode_libdir_flag_spec is actually meaningless, as there is
7326       # no search path for DLLs.
7327       hardcode_libdir_flag_spec=' '
7328       allow_undefined_flag=unsupported
7329       # Tell ltmain to make .lib files, not .a files.
7330       libext=lib
7331       # Tell ltmain to make .dll files, not .so files.
7332       shrext_cmds=".dll"
7333       # FIXME: Setting linknames here is a bad hack.
7334       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7335       # The linker will automatically build a .lib file if we build a DLL.
7336       old_archive_From_new_cmds='true'
7337       # FIXME: Should let the user specify the lib program.
7338       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7339       fix_srcfile_path='`cygpath -w "$srcfile"`'
7340       enable_shared_with_static_runtimes=yes
7341       ;;
7342
7343     darwin* | rhapsody*)
7344       case $host_os in
7345         rhapsody* | darwin1.[012])
7346          allow_undefined_flag='${wl}-undefined ${wl}suppress'
7347          ;;
7348        *) # Darwin 1.3 on
7349          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7350            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7351          else
7352            case ${MACOSX_DEPLOYMENT_TARGET} in
7353              10.[012])
7354                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7355                ;;
7356              10.*)
7357                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7358                ;;
7359            esac
7360          fi
7361          ;;
7362       esac
7363       archive_cmds_need_lc=no
7364       hardcode_direct=no
7365       hardcode_automatic=yes
7366       hardcode_shlibpath_var=unsupported
7367       whole_archive_flag_spec=''
7368       link_all_deplibs=yes
7369     if test "$GCC" = yes ; then
7370         output_verbose_link_cmd='echo'
7371         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7372       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7373       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7374       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}'
7375       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}'
7376     else
7377       case $cc_basename in
7378         xlc*)
7379          output_verbose_link_cmd='echo'
7380          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7381          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7382           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7383          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7384           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}'
7385           ;;
7386        *)
7387          ld_shlibs=no
7388           ;;
7389       esac
7390     fi
7391       ;;
7392
7393     dgux*)
7394       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7395       hardcode_libdir_flag_spec='-L$libdir'
7396       hardcode_shlibpath_var=no
7397       ;;
7398
7399     freebsd1*)
7400       ld_shlibs=no
7401       ;;
7402
7403     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7404     # support.  Future versions do this automatically, but an explicit c++rt0.o
7405     # does not break anything, and helps significantly (at the cost of a little
7406     # extra space).
7407     freebsd2.2*)
7408       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7409       hardcode_libdir_flag_spec='-R$libdir'
7410       hardcode_direct=yes
7411       hardcode_shlibpath_var=no
7412       ;;
7413
7414     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7415     freebsd2*)
7416       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7417       hardcode_direct=yes
7418       hardcode_minus_L=yes
7419       hardcode_shlibpath_var=no
7420       ;;
7421
7422     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7423     freebsd* | kfreebsd*-gnu | dragonfly*)
7424       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7425       hardcode_libdir_flag_spec='-R$libdir'
7426       hardcode_direct=yes
7427       hardcode_shlibpath_var=no
7428       ;;
7429
7430     hpux9*)
7431       if test "$GCC" = yes; then
7432         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'
7433       else
7434         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'
7435       fi
7436       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7437       hardcode_libdir_separator=:
7438       hardcode_direct=yes
7439
7440       # hardcode_minus_L: Not really in the search PATH,
7441       # but as the default location of the library.
7442       hardcode_minus_L=yes
7443       export_dynamic_flag_spec='${wl}-E'
7444       ;;
7445
7446     hpux10*)
7447       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7448         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7449       else
7450         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7451       fi
7452       if test "$with_gnu_ld" = no; then
7453         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7454         hardcode_libdir_separator=:
7455
7456         hardcode_direct=yes
7457         export_dynamic_flag_spec='${wl}-E'
7458
7459         # hardcode_minus_L: Not really in the search PATH,
7460         # but as the default location of the library.
7461         hardcode_minus_L=yes
7462       fi
7463       ;;
7464
7465     hpux11*)
7466       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7467         case $host_cpu in
7468         hppa*64*)
7469           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7470           ;;
7471         ia64*)
7472           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7473           ;;
7474         *)
7475           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7476           ;;
7477         esac
7478       else
7479         case $host_cpu in
7480         hppa*64*)
7481           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7482           ;;
7483         ia64*)
7484           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7485           ;;
7486         *)
7487           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7488           ;;
7489         esac
7490       fi
7491       if test "$with_gnu_ld" = no; then
7492         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7493         hardcode_libdir_separator=:
7494
7495         case $host_cpu in
7496         hppa*64*|ia64*)
7497           hardcode_libdir_flag_spec_ld='+b $libdir'
7498           hardcode_direct=no
7499           hardcode_shlibpath_var=no
7500           ;;
7501         *)
7502           hardcode_direct=yes
7503           export_dynamic_flag_spec='${wl}-E'
7504
7505           # hardcode_minus_L: Not really in the search PATH,
7506           # but as the default location of the library.
7507           hardcode_minus_L=yes
7508           ;;
7509         esac
7510       fi
7511       ;;
7512
7513     irix5* | irix6* | nonstopux*)
7514       if test "$GCC" = yes; then
7515         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'
7516       else
7517         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'
7518         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7519       fi
7520       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7521       hardcode_libdir_separator=:
7522       link_all_deplibs=yes
7523       ;;
7524
7525     netbsd*)
7526       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7527         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7528       else
7529         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7530       fi
7531       hardcode_libdir_flag_spec='-R$libdir'
7532       hardcode_direct=yes
7533       hardcode_shlibpath_var=no
7534       ;;
7535
7536     newsos6)
7537       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7538       hardcode_direct=yes
7539       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7540       hardcode_libdir_separator=:
7541       hardcode_shlibpath_var=no
7542       ;;
7543
7544     openbsd*)
7545       hardcode_direct=yes
7546       hardcode_shlibpath_var=no
7547       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7548         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7549         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7550         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7551         export_dynamic_flag_spec='${wl}-E'
7552       else
7553        case $host_os in
7554          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7555            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7556            hardcode_libdir_flag_spec='-R$libdir'
7557            ;;
7558          *)
7559            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7560            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7561            ;;
7562        esac
7563       fi
7564       ;;
7565
7566     os2*)
7567       hardcode_libdir_flag_spec='-L$libdir'
7568       hardcode_minus_L=yes
7569       allow_undefined_flag=unsupported
7570       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'
7571       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7572       ;;
7573
7574     osf3*)
7575       if test "$GCC" = yes; then
7576         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7577         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'
7578       else
7579         allow_undefined_flag=' -expect_unresolved \*'
7580         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'
7581       fi
7582       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7583       hardcode_libdir_separator=:
7584       ;;
7585
7586     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7587       if test "$GCC" = yes; then
7588         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7589         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'
7590         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7591       else
7592         allow_undefined_flag=' -expect_unresolved \*'
7593         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'
7594         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7595         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7596
7597         # Both c and cxx compiler support -rpath directly
7598         hardcode_libdir_flag_spec='-rpath $libdir'
7599       fi
7600       hardcode_libdir_separator=:
7601       ;;
7602
7603     solaris*)
7604       no_undefined_flag=' -z text'
7605       if test "$GCC" = yes; then
7606         wlarc='${wl}'
7607         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7608         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7609           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7610       else
7611         wlarc=''
7612         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7613         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7614         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7615       fi
7616       hardcode_libdir_flag_spec='-R$libdir'
7617       hardcode_shlibpath_var=no
7618       case $host_os in
7619       solaris2.[0-5] | solaris2.[0-5].*) ;;
7620       *)
7621         # The compiler driver will combine linker options so we
7622         # cannot just pass the convience library names through
7623         # without $wl, iff we do not link with $LD.
7624         # Luckily, gcc supports the same syntax we need for Sun Studio.
7625         # Supported since Solaris 2.6 (maybe 2.5.1?)
7626         case $wlarc in
7627         '')
7628           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7629         *)
7630           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7631         esac ;;
7632       esac
7633       link_all_deplibs=yes
7634       ;;
7635
7636     sunos4*)
7637       if test "x$host_vendor" = xsequent; then
7638         # Use $CC to link under sequent, because it throws in some extra .o
7639         # files that make .init and .fini sections work.
7640         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7641       else
7642         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7643       fi
7644       hardcode_libdir_flag_spec='-L$libdir'
7645       hardcode_direct=yes
7646       hardcode_minus_L=yes
7647       hardcode_shlibpath_var=no
7648       ;;
7649
7650     sysv4)
7651       case $host_vendor in
7652         sni)
7653           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7654           hardcode_direct=yes # is this really true???
7655         ;;
7656         siemens)
7657           ## LD is ld it makes a PLAMLIB
7658           ## CC just makes a GrossModule.
7659           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7660           reload_cmds='$CC -r -o $output$reload_objs'
7661           hardcode_direct=no
7662         ;;
7663         motorola)
7664           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7665           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7666         ;;
7667       esac
7668       runpath_var='LD_RUN_PATH'
7669       hardcode_shlibpath_var=no
7670       ;;
7671
7672     sysv4.3*)
7673       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7674       hardcode_shlibpath_var=no
7675       export_dynamic_flag_spec='-Bexport'
7676       ;;
7677
7678     sysv4*MP*)
7679       if test -d /usr/nec; then
7680         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7681         hardcode_shlibpath_var=no
7682         runpath_var=LD_RUN_PATH
7683         hardcode_runpath_var=yes
7684         ld_shlibs=yes
7685       fi
7686       ;;
7687
7688     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7689       no_undefined_flag='${wl}-z,text'
7690       archive_cmds_need_lc=no
7691       hardcode_shlibpath_var=no
7692       runpath_var='LD_RUN_PATH'
7693
7694       if test "$GCC" = yes; then
7695         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7696         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7697       else
7698         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7699         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7700       fi
7701       ;;
7702
7703     sysv5* | sco3.2v5* | sco5v6*)
7704       # Note: We can NOT use -z defs as we might desire, because we do not
7705       # link with -lc, and that would cause any symbols used from libc to
7706       # always be unresolved, which means just about no library would
7707       # ever link correctly.  If we're not using GNU ld we use -z text
7708       # though, which does catch some bad symbols but isn't as heavy-handed
7709       # as -z defs.
7710       no_undefined_flag='${wl}-z,text'
7711       allow_undefined_flag='${wl}-z,nodefs'
7712       archive_cmds_need_lc=no
7713       hardcode_shlibpath_var=no
7714       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7715       hardcode_libdir_separator=':'
7716       link_all_deplibs=yes
7717       export_dynamic_flag_spec='${wl}-Bexport'
7718       runpath_var='LD_RUN_PATH'
7719
7720       if test "$GCC" = yes; then
7721         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7722         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7723       else
7724         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7725         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7726       fi
7727       ;;
7728
7729     uts4*)
7730       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7731       hardcode_libdir_flag_spec='-L$libdir'
7732       hardcode_shlibpath_var=no
7733       ;;
7734
7735     *)
7736       ld_shlibs=no
7737       ;;
7738     esac
7739   fi
7740
7741 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7742 echo "${ECHO_T}$ld_shlibs" >&6
7743 test "$ld_shlibs" = no && can_build_shared=no
7744
7745 #
7746 # Do we need to explicitly link libc?
7747 #
7748 case "x$archive_cmds_need_lc" in
7749 x|xyes)
7750   # Assume -lc should be added
7751   archive_cmds_need_lc=yes
7752
7753   if test "$enable_shared" = yes && test "$GCC" = yes; then
7754     case $archive_cmds in
7755     *'~'*)
7756       # FIXME: we may have to deal with multi-command sequences.
7757       ;;
7758     '$CC '*)
7759       # Test whether the compiler implicitly links with -lc since on some
7760       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7761       # to ld, don't add -lc before -lgcc.
7762       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7763 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7764       $rm conftest*
7765       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7766
7767       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7768   (eval $ac_compile) 2>&5
7769   ac_status=$?
7770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7771   (exit $ac_status); } 2>conftest.err; then
7772         soname=conftest
7773         lib=conftest
7774         libobjs=conftest.$ac_objext
7775         deplibs=
7776         wl=$lt_prog_compiler_wl
7777         pic_flag=$lt_prog_compiler_pic
7778         compiler_flags=-v
7779         linker_flags=-v
7780         verstring=
7781         output_objdir=.
7782         libname=conftest
7783         lt_save_allow_undefined_flag=$allow_undefined_flag
7784         allow_undefined_flag=
7785         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7786   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7787   ac_status=$?
7788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789   (exit $ac_status); }
7790         then
7791           archive_cmds_need_lc=no
7792         else
7793           archive_cmds_need_lc=yes
7794         fi
7795         allow_undefined_flag=$lt_save_allow_undefined_flag
7796       else
7797         cat conftest.err 1>&5
7798       fi
7799       $rm conftest*
7800       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7801 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7802       ;;
7803     esac
7804   fi
7805   ;;
7806 esac
7807
7808 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7809 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7810 library_names_spec=
7811 libname_spec='lib$name'
7812 soname_spec=
7813 shrext_cmds=".so"
7814 postinstall_cmds=
7815 postuninstall_cmds=
7816 finish_cmds=
7817 finish_eval=
7818 shlibpath_var=
7819 shlibpath_overrides_runpath=unknown
7820 version_type=none
7821 dynamic_linker="$host_os ld.so"
7822 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7823 if test "$GCC" = yes; then
7824   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7825   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7826     # if the path contains ";" then we assume it to be the separator
7827     # otherwise default to the standard path separator (i.e. ":") - it is
7828     # assumed that no part of a normal pathname contains ";" but that should
7829     # okay in the real world where ";" in dirpaths is itself problematic.
7830     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7831   else
7832     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7833   fi
7834 else
7835   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7836 fi
7837 need_lib_prefix=unknown
7838 hardcode_into_libs=no
7839
7840 # when you set need_version to no, make sure it does not cause -set_version
7841 # flags to be left without arguments
7842 need_version=unknown
7843
7844 case $host_os in
7845 aix3*)
7846   version_type=linux
7847   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7848   shlibpath_var=LIBPATH
7849
7850   # AIX 3 has no versioning support, so we append a major version to the name.
7851   soname_spec='${libname}${release}${shared_ext}$major'
7852   ;;
7853
7854 aix4* | aix5*)
7855   version_type=linux
7856   need_lib_prefix=no
7857   need_version=no
7858   hardcode_into_libs=yes
7859   if test "$host_cpu" = ia64; then
7860     # AIX 5 supports IA64
7861     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7862     shlibpath_var=LD_LIBRARY_PATH
7863   else
7864     # With GCC up to 2.95.x, collect2 would create an import file
7865     # for dependence libraries.  The import file would start with
7866     # the line `#! .'.  This would cause the generated library to
7867     # depend on `.', always an invalid library.  This was fixed in
7868     # development snapshots of GCC prior to 3.0.
7869     case $host_os in
7870       aix4 | aix4.[01] | aix4.[01].*)
7871       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7872            echo ' yes '
7873            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7874         :
7875       else
7876         can_build_shared=no
7877       fi
7878       ;;
7879     esac
7880     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7881     # soname into executable. Probably we can add versioning support to
7882     # collect2, so additional links can be useful in future.
7883     if test "$aix_use_runtimelinking" = yes; then
7884       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7885       # instead of lib<name>.a to let people know that these are not
7886       # typical AIX shared libraries.
7887       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7888     else
7889       # We preserve .a as extension for shared libraries through AIX4.2
7890       # and later when we are not doing run time linking.
7891       library_names_spec='${libname}${release}.a $libname.a'
7892       soname_spec='${libname}${release}${shared_ext}$major'
7893     fi
7894     shlibpath_var=LIBPATH
7895   fi
7896   ;;
7897
7898 amigaos*)
7899   library_names_spec='$libname.ixlibrary $libname.a'
7900   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7901   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'
7902   ;;
7903
7904 beos*)
7905   library_names_spec='${libname}${shared_ext}'
7906   dynamic_linker="$host_os ld.so"
7907   shlibpath_var=LIBRARY_PATH
7908   ;;
7909
7910 bsdi[45]*)
7911   version_type=linux
7912   need_version=no
7913   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7914   soname_spec='${libname}${release}${shared_ext}$major'
7915   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7916   shlibpath_var=LD_LIBRARY_PATH
7917   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7918   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7919   # the default ld.so.conf also contains /usr/contrib/lib and
7920   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7921   # libtool to hard-code these into programs
7922   ;;
7923
7924 cygwin* | mingw* | pw32*)
7925   version_type=windows
7926   shrext_cmds=".dll"
7927   need_version=no
7928   need_lib_prefix=no
7929
7930   case $GCC,$host_os in
7931   yes,cygwin* | yes,mingw* | yes,pw32*)
7932     library_names_spec='$libname.dll.a'
7933     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7934     postinstall_cmds='base_file=`basename \${file}`~
7935       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7936       dldir=$destdir/`dirname \$dlpath`~
7937       test -d \$dldir || mkdir -p \$dldir~
7938       $install_prog $dir/$dlname \$dldir/$dlname~
7939       chmod a+x \$dldir/$dlname'
7940     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7941       dlpath=$dir/\$dldll~
7942        $rm \$dlpath'
7943     shlibpath_overrides_runpath=yes
7944
7945     case $host_os in
7946     cygwin*)
7947       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7948       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7949       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7950       ;;
7951     mingw*)
7952       # MinGW DLLs use traditional 'lib' prefix
7953       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7954       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7955       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7956         # It is most probably a Windows format PATH printed by
7957         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7958         # path with ; separators, and with drive letters. We can handle the
7959         # drive letters (cygwin fileutils understands them), so leave them,
7960         # especially as we might pass files found there to a mingw objdump,
7961         # which wouldn't understand a cygwinified path. Ahh.
7962         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7963       else
7964         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7965       fi
7966       ;;
7967     pw32*)
7968       # pw32 DLLs use 'pw' prefix rather than 'lib'
7969       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7970       ;;
7971     esac
7972     ;;
7973
7974   *)
7975     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7976     ;;
7977   esac
7978   dynamic_linker='Win32 ld.exe'
7979   # FIXME: first we should search . and the directory the executable is in
7980   shlibpath_var=PATH
7981   ;;
7982
7983 darwin* | rhapsody*)
7984   dynamic_linker="$host_os dyld"
7985   version_type=darwin
7986   need_lib_prefix=no
7987   need_version=no
7988   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7989   soname_spec='${libname}${release}${major}$shared_ext'
7990   shlibpath_overrides_runpath=yes
7991   shlibpath_var=DYLD_LIBRARY_PATH
7992   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
7993   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7994   if test "$GCC" = yes; then
7995     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"`
7996   else
7997     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7998   fi
7999   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8000   ;;
8001
8002 dgux*)
8003   version_type=linux
8004   need_lib_prefix=no
8005   need_version=no
8006   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8007   soname_spec='${libname}${release}${shared_ext}$major'
8008   shlibpath_var=LD_LIBRARY_PATH
8009   ;;
8010
8011 freebsd1*)
8012   dynamic_linker=no
8013   ;;
8014
8015 kfreebsd*-gnu)
8016   version_type=linux
8017   need_lib_prefix=no
8018   need_version=no
8019   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8020   soname_spec='${libname}${release}${shared_ext}$major'
8021   shlibpath_var=LD_LIBRARY_PATH
8022   shlibpath_overrides_runpath=no
8023   hardcode_into_libs=yes
8024   dynamic_linker='GNU ld.so'
8025   ;;
8026
8027 freebsd* | dragonfly*)
8028   # DragonFly does not have aout.  When/if they implement a new
8029   # versioning mechanism, adjust this.
8030   if test -x /usr/bin/objformat; then
8031     objformat=`/usr/bin/objformat`
8032   else
8033     case $host_os in
8034     freebsd[123]*) objformat=aout ;;
8035     *) objformat=elf ;;
8036     esac
8037   fi
8038   version_type=freebsd-$objformat
8039   case $version_type in
8040     freebsd-elf*)
8041       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8042       need_version=no
8043       need_lib_prefix=no
8044       ;;
8045     freebsd-*)
8046       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8047       need_version=yes
8048       ;;
8049   esac
8050   shlibpath_var=LD_LIBRARY_PATH
8051   case $host_os in
8052   freebsd2*)
8053     shlibpath_overrides_runpath=yes
8054     ;;
8055   freebsd3.[01]* | freebsdelf3.[01]*)
8056     shlibpath_overrides_runpath=yes
8057     hardcode_into_libs=yes
8058     ;;
8059   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8060   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8061     shlibpath_overrides_runpath=no
8062     hardcode_into_libs=yes
8063     ;;
8064   freebsd*) # from 4.6 on
8065     shlibpath_overrides_runpath=yes
8066     hardcode_into_libs=yes
8067     ;;
8068   esac
8069   ;;
8070
8071 gnu*)
8072   version_type=linux
8073   need_lib_prefix=no
8074   need_version=no
8075   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8076   soname_spec='${libname}${release}${shared_ext}$major'
8077   shlibpath_var=LD_LIBRARY_PATH
8078   hardcode_into_libs=yes
8079   ;;
8080
8081 hpux9* | hpux10* | hpux11*)
8082   # Give a soname corresponding to the major version so that dld.sl refuses to
8083   # link against other versions.
8084   version_type=sunos
8085   need_lib_prefix=no
8086   need_version=no
8087   case $host_cpu in
8088   ia64*)
8089     shrext_cmds='.so'
8090     hardcode_into_libs=yes
8091     dynamic_linker="$host_os dld.so"
8092     shlibpath_var=LD_LIBRARY_PATH
8093     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8094     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8095     soname_spec='${libname}${release}${shared_ext}$major'
8096     if test "X$HPUX_IA64_MODE" = X32; then
8097       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8098     else
8099       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8100     fi
8101     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8102     ;;
8103    hppa*64*)
8104      shrext_cmds='.sl'
8105      hardcode_into_libs=yes
8106      dynamic_linker="$host_os dld.sl"
8107      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8108      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8109      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8110      soname_spec='${libname}${release}${shared_ext}$major'
8111      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8112      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8113      ;;
8114    *)
8115     shrext_cmds='.sl'
8116     dynamic_linker="$host_os dld.sl"
8117     shlibpath_var=SHLIB_PATH
8118     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8119     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8120     soname_spec='${libname}${release}${shared_ext}$major'
8121     ;;
8122   esac
8123   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8124   postinstall_cmds='chmod 555 $lib'
8125   ;;
8126
8127 interix3*)
8128   version_type=linux
8129   need_lib_prefix=no
8130   need_version=no
8131   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8132   soname_spec='${libname}${release}${shared_ext}$major'
8133   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8134   shlibpath_var=LD_LIBRARY_PATH
8135   shlibpath_overrides_runpath=no
8136   hardcode_into_libs=yes
8137   ;;
8138
8139 irix5* | irix6* | nonstopux*)
8140   case $host_os in
8141     nonstopux*) version_type=nonstopux ;;
8142     *)
8143         if test "$lt_cv_prog_gnu_ld" = yes; then
8144                 version_type=linux
8145         else
8146                 version_type=irix
8147         fi ;;
8148   esac
8149   need_lib_prefix=no
8150   need_version=no
8151   soname_spec='${libname}${release}${shared_ext}$major'
8152   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8153   case $host_os in
8154   irix5* | nonstopux*)
8155     libsuff= shlibsuff=
8156     ;;
8157   *)
8158     case $LD in # libtool.m4 will add one of these switches to LD
8159     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8160       libsuff= shlibsuff= libmagic=32-bit;;
8161     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8162       libsuff=32 shlibsuff=N32 libmagic=N32;;
8163     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8164       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8165     *) libsuff= shlibsuff= libmagic=never-match;;
8166     esac
8167     ;;
8168   esac
8169   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8170   shlibpath_overrides_runpath=no
8171   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8172   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8173   hardcode_into_libs=yes
8174   ;;
8175
8176 # No shared lib support for Linux oldld, aout, or coff.
8177 linux*oldld* | linux*aout* | linux*coff*)
8178   dynamic_linker=no
8179   ;;
8180
8181 # This must be Linux ELF.
8182 linux*)
8183   version_type=linux
8184   need_lib_prefix=no
8185   need_version=no
8186   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8187   soname_spec='${libname}${release}${shared_ext}$major'
8188   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8189   shlibpath_var=LD_LIBRARY_PATH
8190   shlibpath_overrides_runpath=no
8191   # This implies no fast_install, which is unacceptable.
8192   # Some rework will be needed to allow for fast_install
8193   # before this can be enabled.
8194   hardcode_into_libs=yes
8195
8196   # Append ld.so.conf contents to the search path
8197   if test -f /etc/ld.so.conf; then
8198     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8199     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8200   fi
8201
8202   # We used to test for /lib/ld.so.1 and disable shared libraries on
8203   # powerpc, because MkLinux only supported shared libraries with the
8204   # GNU dynamic linker.  Since this was broken with cross compilers,
8205   # most powerpc-linux boxes support dynamic linking these days and
8206   # people can always --disable-shared, the test was removed, and we
8207   # assume the GNU/Linux dynamic linker is in use.
8208   dynamic_linker='GNU/Linux ld.so'
8209   ;;
8210
8211 knetbsd*-gnu)
8212   version_type=linux
8213   need_lib_prefix=no
8214   need_version=no
8215   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8216   soname_spec='${libname}${release}${shared_ext}$major'
8217   shlibpath_var=LD_LIBRARY_PATH
8218   shlibpath_overrides_runpath=no
8219   hardcode_into_libs=yes
8220   dynamic_linker='GNU ld.so'
8221   ;;
8222
8223 netbsd*)
8224   version_type=sunos
8225   need_lib_prefix=no
8226   need_version=no
8227   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8228     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8229     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8230     dynamic_linker='NetBSD (a.out) ld.so'
8231   else
8232     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8233     soname_spec='${libname}${release}${shared_ext}$major'
8234     dynamic_linker='NetBSD ld.elf_so'
8235   fi
8236   shlibpath_var=LD_LIBRARY_PATH
8237   shlibpath_overrides_runpath=yes
8238   hardcode_into_libs=yes
8239   ;;
8240
8241 newsos6)
8242   version_type=linux
8243   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8244   shlibpath_var=LD_LIBRARY_PATH
8245   shlibpath_overrides_runpath=yes
8246   ;;
8247
8248 nto-qnx*)
8249   version_type=linux
8250   need_lib_prefix=no
8251   need_version=no
8252   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8253   soname_spec='${libname}${release}${shared_ext}$major'
8254   shlibpath_var=LD_LIBRARY_PATH
8255   shlibpath_overrides_runpath=yes
8256   ;;
8257
8258 openbsd*)
8259   version_type=sunos
8260   sys_lib_dlsearch_path_spec="/usr/lib"
8261   need_lib_prefix=no
8262   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8263   case $host_os in
8264     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8265     *)                         need_version=no  ;;
8266   esac
8267   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8268   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8269   shlibpath_var=LD_LIBRARY_PATH
8270   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8271     case $host_os in
8272       openbsd2.[89] | openbsd2.[89].*)
8273         shlibpath_overrides_runpath=no
8274         ;;
8275       *)
8276         shlibpath_overrides_runpath=yes
8277         ;;
8278       esac
8279   else
8280     shlibpath_overrides_runpath=yes
8281   fi
8282   ;;
8283
8284 os2*)
8285   libname_spec='$name'
8286   shrext_cmds=".dll"
8287   need_lib_prefix=no
8288   library_names_spec='$libname${shared_ext} $libname.a'
8289   dynamic_linker='OS/2 ld.exe'
8290   shlibpath_var=LIBPATH
8291   ;;
8292
8293 osf3* | osf4* | osf5*)
8294   version_type=osf
8295   need_lib_prefix=no
8296   need_version=no
8297   soname_spec='${libname}${release}${shared_ext}$major'
8298   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8299   shlibpath_var=LD_LIBRARY_PATH
8300   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8301   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8302   ;;
8303
8304 solaris*)
8305   version_type=linux
8306   need_lib_prefix=no
8307   need_version=no
8308   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8309   soname_spec='${libname}${release}${shared_ext}$major'
8310   shlibpath_var=LD_LIBRARY_PATH
8311   shlibpath_overrides_runpath=yes
8312   hardcode_into_libs=yes
8313   # ldd complains unless libraries are executable
8314   postinstall_cmds='chmod +x $lib'
8315   ;;
8316
8317 sunos4*)
8318   version_type=sunos
8319   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8320   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8321   shlibpath_var=LD_LIBRARY_PATH
8322   shlibpath_overrides_runpath=yes
8323   if test "$with_gnu_ld" = yes; then
8324     need_lib_prefix=no
8325   fi
8326   need_version=yes
8327   ;;
8328
8329 sysv4 | sysv4.3*)
8330   version_type=linux
8331   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8332   soname_spec='${libname}${release}${shared_ext}$major'
8333   shlibpath_var=LD_LIBRARY_PATH
8334   case $host_vendor in
8335     sni)
8336       shlibpath_overrides_runpath=no
8337       need_lib_prefix=no
8338       export_dynamic_flag_spec='${wl}-Blargedynsym'
8339       runpath_var=LD_RUN_PATH
8340       ;;
8341     siemens)
8342       need_lib_prefix=no
8343       ;;
8344     motorola)
8345       need_lib_prefix=no
8346       need_version=no
8347       shlibpath_overrides_runpath=no
8348       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8349       ;;
8350   esac
8351   ;;
8352
8353 sysv4*MP*)
8354   if test -d /usr/nec ;then
8355     version_type=linux
8356     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8357     soname_spec='$libname${shared_ext}.$major'
8358     shlibpath_var=LD_LIBRARY_PATH
8359   fi
8360   ;;
8361
8362 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8363   version_type=freebsd-elf
8364   need_lib_prefix=no
8365   need_version=no
8366   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8367   soname_spec='${libname}${release}${shared_ext}$major'
8368   shlibpath_var=LD_LIBRARY_PATH
8369   hardcode_into_libs=yes
8370   if test "$with_gnu_ld" = yes; then
8371     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8372     shlibpath_overrides_runpath=no
8373   else
8374     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8375     shlibpath_overrides_runpath=yes
8376     case $host_os in
8377       sco3.2v5*)
8378         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8379         ;;
8380     esac
8381   fi
8382   sys_lib_dlsearch_path_spec='/usr/lib'
8383   ;;
8384
8385 uts4*)
8386   version_type=linux
8387   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8388   soname_spec='${libname}${release}${shared_ext}$major'
8389   shlibpath_var=LD_LIBRARY_PATH
8390   ;;
8391
8392 *)
8393   dynamic_linker=no
8394   ;;
8395 esac
8396 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8397 echo "${ECHO_T}$dynamic_linker" >&6
8398 test "$dynamic_linker" = no && can_build_shared=no
8399
8400 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8401 if test "$GCC" = yes; then
8402   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8403 fi
8404
8405 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8406 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8407 hardcode_action=
8408 if test -n "$hardcode_libdir_flag_spec" || \
8409    test -n "$runpath_var" || \
8410    test "X$hardcode_automatic" = "Xyes" ; then
8411
8412   # We can hardcode non-existant directories.
8413   if test "$hardcode_direct" != no &&
8414      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8415      # have to relink, otherwise we might link with an installed library
8416      # when we should be linking with a yet-to-be-installed one
8417      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8418      test "$hardcode_minus_L" != no; then
8419     # Linking always hardcodes the temporary library directory.
8420     hardcode_action=relink
8421   else
8422     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8423     hardcode_action=immediate
8424   fi
8425 else
8426   # We cannot hardcode anything, or else we can only hardcode existing
8427   # directories.
8428   hardcode_action=unsupported
8429 fi
8430 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8431 echo "${ECHO_T}$hardcode_action" >&6
8432
8433 if test "$hardcode_action" = relink; then
8434   # Fast installation is not supported
8435   enable_fast_install=no
8436 elif test "$shlibpath_overrides_runpath" = yes ||
8437      test "$enable_shared" = no; then
8438   # Fast installation is not necessary
8439   enable_fast_install=needless
8440 fi
8441
8442 striplib=
8443 old_striplib=
8444 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8445 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8446 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8447   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8448   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8449   echo "$as_me:$LINENO: result: yes" >&5
8450 echo "${ECHO_T}yes" >&6
8451 else
8452 # FIXME - insert some real tests, host_os isn't really good enough
8453   case $host_os in
8454    darwin*)
8455        if test -n "$STRIP" ; then
8456          striplib="$STRIP -x"
8457          echo "$as_me:$LINENO: result: yes" >&5
8458 echo "${ECHO_T}yes" >&6
8459        else
8460   echo "$as_me:$LINENO: result: no" >&5
8461 echo "${ECHO_T}no" >&6
8462 fi
8463        ;;
8464    *)
8465   echo "$as_me:$LINENO: result: no" >&5
8466 echo "${ECHO_T}no" >&6
8467     ;;
8468   esac
8469 fi
8470
8471 if test "x$enable_dlopen" != xyes; then
8472   enable_dlopen=unknown
8473   enable_dlopen_self=unknown
8474   enable_dlopen_self_static=unknown
8475 else
8476   lt_cv_dlopen=no
8477   lt_cv_dlopen_libs=
8478
8479   case $host_os in
8480   beos*)
8481     lt_cv_dlopen="load_add_on"
8482     lt_cv_dlopen_libs=
8483     lt_cv_dlopen_self=yes
8484     ;;
8485
8486   mingw* | pw32*)
8487     lt_cv_dlopen="LoadLibrary"
8488     lt_cv_dlopen_libs=
8489    ;;
8490
8491   cygwin*)
8492     lt_cv_dlopen="dlopen"
8493     lt_cv_dlopen_libs=
8494    ;;
8495
8496   darwin*)
8497   # if libdl is installed we need to link against it
8498     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8499 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8500 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8501   echo $ECHO_N "(cached) $ECHO_C" >&6
8502 else
8503   ac_check_lib_save_LIBS=$LIBS
8504 LIBS="-ldl  $LIBS"
8505 cat >conftest.$ac_ext <<_ACEOF
8506 /* confdefs.h.  */
8507 _ACEOF
8508 cat confdefs.h >>conftest.$ac_ext
8509 cat >>conftest.$ac_ext <<_ACEOF
8510 /* end confdefs.h.  */
8511
8512 /* Override any gcc2 internal prototype to avoid an error.  */
8513 #ifdef __cplusplus
8514 extern "C"
8515 #endif
8516 /* We use char because int might match the return type of a gcc2
8517    builtin and then its argument prototype would still apply.  */
8518 char dlopen ();
8519 int
8520 main ()
8521 {
8522 dlopen ();
8523   ;
8524   return 0;
8525 }
8526 _ACEOF
8527 rm -f conftest.$ac_objext conftest$ac_exeext
8528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8529   (eval $ac_link) 2>conftest.er1
8530   ac_status=$?
8531   grep -v '^ *+' conftest.er1 >conftest.err
8532   rm -f conftest.er1
8533   cat conftest.err >&5
8534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535   (exit $ac_status); } &&
8536          { ac_try='test -z "$ac_c_werror_flag"
8537                          || test ! -s conftest.err'
8538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8539   (eval $ac_try) 2>&5
8540   ac_status=$?
8541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542   (exit $ac_status); }; } &&
8543          { ac_try='test -s conftest$ac_exeext'
8544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8545   (eval $ac_try) 2>&5
8546   ac_status=$?
8547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548   (exit $ac_status); }; }; then
8549   ac_cv_lib_dl_dlopen=yes
8550 else
8551   echo "$as_me: failed program was:" >&5
8552 sed 's/^/| /' conftest.$ac_ext >&5
8553
8554 ac_cv_lib_dl_dlopen=no
8555 fi
8556 rm -f conftest.err conftest.$ac_objext \
8557       conftest$ac_exeext conftest.$ac_ext
8558 LIBS=$ac_check_lib_save_LIBS
8559 fi
8560 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8561 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8562 if test $ac_cv_lib_dl_dlopen = yes; then
8563   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8564 else
8565   
8566     lt_cv_dlopen="dyld"
8567     lt_cv_dlopen_libs=
8568     lt_cv_dlopen_self=yes
8569     
8570 fi
8571
8572    ;;
8573
8574   *)
8575     echo "$as_me:$LINENO: checking for shl_load" >&5
8576 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8577 if test "${ac_cv_func_shl_load+set}" = set; then
8578   echo $ECHO_N "(cached) $ECHO_C" >&6
8579 else
8580   cat >conftest.$ac_ext <<_ACEOF
8581 /* confdefs.h.  */
8582 _ACEOF
8583 cat confdefs.h >>conftest.$ac_ext
8584 cat >>conftest.$ac_ext <<_ACEOF
8585 /* end confdefs.h.  */
8586 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8587    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8588 #define shl_load innocuous_shl_load
8589
8590 /* System header to define __stub macros and hopefully few prototypes,
8591     which can conflict with char shl_load (); below.
8592     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8593     <limits.h> exists even on freestanding compilers.  */
8594
8595 #ifdef __STDC__
8596 # include <limits.h>
8597 #else
8598 # include <assert.h>
8599 #endif
8600
8601 #undef shl_load
8602
8603 /* Override any gcc2 internal prototype to avoid an error.  */
8604 #ifdef __cplusplus
8605 extern "C"
8606 {
8607 #endif
8608 /* We use char because int might match the return type of a gcc2
8609    builtin and then its argument prototype would still apply.  */
8610 char shl_load ();
8611 /* The GNU C library defines this for functions which it implements
8612     to always fail with ENOSYS.  Some functions are actually named
8613     something starting with __ and the normal name is an alias.  */
8614 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8615 choke me
8616 #else
8617 char (*f) () = shl_load;
8618 #endif
8619 #ifdef __cplusplus
8620 }
8621 #endif
8622
8623 int
8624 main ()
8625 {
8626 return f != shl_load;
8627   ;
8628   return 0;
8629 }
8630 _ACEOF
8631 rm -f conftest.$ac_objext conftest$ac_exeext
8632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8633   (eval $ac_link) 2>conftest.er1
8634   ac_status=$?
8635   grep -v '^ *+' conftest.er1 >conftest.err
8636   rm -f conftest.er1
8637   cat conftest.err >&5
8638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639   (exit $ac_status); } &&
8640          { ac_try='test -z "$ac_c_werror_flag"
8641                          || test ! -s conftest.err'
8642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8643   (eval $ac_try) 2>&5
8644   ac_status=$?
8645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646   (exit $ac_status); }; } &&
8647          { ac_try='test -s conftest$ac_exeext'
8648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8649   (eval $ac_try) 2>&5
8650   ac_status=$?
8651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652   (exit $ac_status); }; }; then
8653   ac_cv_func_shl_load=yes
8654 else
8655   echo "$as_me: failed program was:" >&5
8656 sed 's/^/| /' conftest.$ac_ext >&5
8657
8658 ac_cv_func_shl_load=no
8659 fi
8660 rm -f conftest.err conftest.$ac_objext \
8661       conftest$ac_exeext conftest.$ac_ext
8662 fi
8663 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8664 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8665 if test $ac_cv_func_shl_load = yes; then
8666   lt_cv_dlopen="shl_load"
8667 else
8668   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8669 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8670 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8671   echo $ECHO_N "(cached) $ECHO_C" >&6
8672 else
8673   ac_check_lib_save_LIBS=$LIBS
8674 LIBS="-ldld  $LIBS"
8675 cat >conftest.$ac_ext <<_ACEOF
8676 /* confdefs.h.  */
8677 _ACEOF
8678 cat confdefs.h >>conftest.$ac_ext
8679 cat >>conftest.$ac_ext <<_ACEOF
8680 /* end confdefs.h.  */
8681
8682 /* Override any gcc2 internal prototype to avoid an error.  */
8683 #ifdef __cplusplus
8684 extern "C"
8685 #endif
8686 /* We use char because int might match the return type of a gcc2
8687    builtin and then its argument prototype would still apply.  */
8688 char shl_load ();
8689 int
8690 main ()
8691 {
8692 shl_load ();
8693   ;
8694   return 0;
8695 }
8696 _ACEOF
8697 rm -f conftest.$ac_objext conftest$ac_exeext
8698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8699   (eval $ac_link) 2>conftest.er1
8700   ac_status=$?
8701   grep -v '^ *+' conftest.er1 >conftest.err
8702   rm -f conftest.er1
8703   cat conftest.err >&5
8704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705   (exit $ac_status); } &&
8706          { ac_try='test -z "$ac_c_werror_flag"
8707                          || test ! -s conftest.err'
8708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8709   (eval $ac_try) 2>&5
8710   ac_status=$?
8711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712   (exit $ac_status); }; } &&
8713          { ac_try='test -s conftest$ac_exeext'
8714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8715   (eval $ac_try) 2>&5
8716   ac_status=$?
8717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8718   (exit $ac_status); }; }; then
8719   ac_cv_lib_dld_shl_load=yes
8720 else
8721   echo "$as_me: failed program was:" >&5
8722 sed 's/^/| /' conftest.$ac_ext >&5
8723
8724 ac_cv_lib_dld_shl_load=no
8725 fi
8726 rm -f conftest.err conftest.$ac_objext \
8727       conftest$ac_exeext conftest.$ac_ext
8728 LIBS=$ac_check_lib_save_LIBS
8729 fi
8730 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8731 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8732 if test $ac_cv_lib_dld_shl_load = yes; then
8733   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8734 else
8735   echo "$as_me:$LINENO: checking for dlopen" >&5
8736 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8737 if test "${ac_cv_func_dlopen+set}" = set; then
8738   echo $ECHO_N "(cached) $ECHO_C" >&6
8739 else
8740   cat >conftest.$ac_ext <<_ACEOF
8741 /* confdefs.h.  */
8742 _ACEOF
8743 cat confdefs.h >>conftest.$ac_ext
8744 cat >>conftest.$ac_ext <<_ACEOF
8745 /* end confdefs.h.  */
8746 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8747    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8748 #define dlopen innocuous_dlopen
8749
8750 /* System header to define __stub macros and hopefully few prototypes,
8751     which can conflict with char dlopen (); below.
8752     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8753     <limits.h> exists even on freestanding compilers.  */
8754
8755 #ifdef __STDC__
8756 # include <limits.h>
8757 #else
8758 # include <assert.h>
8759 #endif
8760
8761 #undef dlopen
8762
8763 /* Override any gcc2 internal prototype to avoid an error.  */
8764 #ifdef __cplusplus
8765 extern "C"
8766 {
8767 #endif
8768 /* We use char because int might match the return type of a gcc2
8769    builtin and then its argument prototype would still apply.  */
8770 char dlopen ();
8771 /* The GNU C library defines this for functions which it implements
8772     to always fail with ENOSYS.  Some functions are actually named
8773     something starting with __ and the normal name is an alias.  */
8774 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8775 choke me
8776 #else
8777 char (*f) () = dlopen;
8778 #endif
8779 #ifdef __cplusplus
8780 }
8781 #endif
8782
8783 int
8784 main ()
8785 {
8786 return f != dlopen;
8787   ;
8788   return 0;
8789 }
8790 _ACEOF
8791 rm -f conftest.$ac_objext conftest$ac_exeext
8792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8793   (eval $ac_link) 2>conftest.er1
8794   ac_status=$?
8795   grep -v '^ *+' conftest.er1 >conftest.err
8796   rm -f conftest.er1
8797   cat conftest.err >&5
8798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8799   (exit $ac_status); } &&
8800          { ac_try='test -z "$ac_c_werror_flag"
8801                          || test ! -s conftest.err'
8802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8803   (eval $ac_try) 2>&5
8804   ac_status=$?
8805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806   (exit $ac_status); }; } &&
8807          { ac_try='test -s conftest$ac_exeext'
8808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8809   (eval $ac_try) 2>&5
8810   ac_status=$?
8811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8812   (exit $ac_status); }; }; then
8813   ac_cv_func_dlopen=yes
8814 else
8815   echo "$as_me: failed program was:" >&5
8816 sed 's/^/| /' conftest.$ac_ext >&5
8817
8818 ac_cv_func_dlopen=no
8819 fi
8820 rm -f conftest.err conftest.$ac_objext \
8821       conftest$ac_exeext conftest.$ac_ext
8822 fi
8823 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8824 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8825 if test $ac_cv_func_dlopen = yes; then
8826   lt_cv_dlopen="dlopen"
8827 else
8828   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8829 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8830 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8831   echo $ECHO_N "(cached) $ECHO_C" >&6
8832 else
8833   ac_check_lib_save_LIBS=$LIBS
8834 LIBS="-ldl  $LIBS"
8835 cat >conftest.$ac_ext <<_ACEOF
8836 /* confdefs.h.  */
8837 _ACEOF
8838 cat confdefs.h >>conftest.$ac_ext
8839 cat >>conftest.$ac_ext <<_ACEOF
8840 /* end confdefs.h.  */
8841
8842 /* Override any gcc2 internal prototype to avoid an error.  */
8843 #ifdef __cplusplus
8844 extern "C"
8845 #endif
8846 /* We use char because int might match the return type of a gcc2
8847    builtin and then its argument prototype would still apply.  */
8848 char dlopen ();
8849 int
8850 main ()
8851 {
8852 dlopen ();
8853   ;
8854   return 0;
8855 }
8856 _ACEOF
8857 rm -f conftest.$ac_objext conftest$ac_exeext
8858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8859   (eval $ac_link) 2>conftest.er1
8860   ac_status=$?
8861   grep -v '^ *+' conftest.er1 >conftest.err
8862   rm -f conftest.er1
8863   cat conftest.err >&5
8864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865   (exit $ac_status); } &&
8866          { ac_try='test -z "$ac_c_werror_flag"
8867                          || test ! -s conftest.err'
8868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8869   (eval $ac_try) 2>&5
8870   ac_status=$?
8871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8872   (exit $ac_status); }; } &&
8873          { ac_try='test -s conftest$ac_exeext'
8874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8875   (eval $ac_try) 2>&5
8876   ac_status=$?
8877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8878   (exit $ac_status); }; }; then
8879   ac_cv_lib_dl_dlopen=yes
8880 else
8881   echo "$as_me: failed program was:" >&5
8882 sed 's/^/| /' conftest.$ac_ext >&5
8883
8884 ac_cv_lib_dl_dlopen=no
8885 fi
8886 rm -f conftest.err conftest.$ac_objext \
8887       conftest$ac_exeext conftest.$ac_ext
8888 LIBS=$ac_check_lib_save_LIBS
8889 fi
8890 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8891 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8892 if test $ac_cv_lib_dl_dlopen = yes; then
8893   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8894 else
8895   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8896 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8897 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8898   echo $ECHO_N "(cached) $ECHO_C" >&6
8899 else
8900   ac_check_lib_save_LIBS=$LIBS
8901 LIBS="-lsvld  $LIBS"
8902 cat >conftest.$ac_ext <<_ACEOF
8903 /* confdefs.h.  */
8904 _ACEOF
8905 cat confdefs.h >>conftest.$ac_ext
8906 cat >>conftest.$ac_ext <<_ACEOF
8907 /* end confdefs.h.  */
8908
8909 /* Override any gcc2 internal prototype to avoid an error.  */
8910 #ifdef __cplusplus
8911 extern "C"
8912 #endif
8913 /* We use char because int might match the return type of a gcc2
8914    builtin and then its argument prototype would still apply.  */
8915 char dlopen ();
8916 int
8917 main ()
8918 {
8919 dlopen ();
8920   ;
8921   return 0;
8922 }
8923 _ACEOF
8924 rm -f conftest.$ac_objext conftest$ac_exeext
8925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8926   (eval $ac_link) 2>conftest.er1
8927   ac_status=$?
8928   grep -v '^ *+' conftest.er1 >conftest.err
8929   rm -f conftest.er1
8930   cat conftest.err >&5
8931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8932   (exit $ac_status); } &&
8933          { ac_try='test -z "$ac_c_werror_flag"
8934                          || test ! -s conftest.err'
8935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8936   (eval $ac_try) 2>&5
8937   ac_status=$?
8938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939   (exit $ac_status); }; } &&
8940          { ac_try='test -s conftest$ac_exeext'
8941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8942   (eval $ac_try) 2>&5
8943   ac_status=$?
8944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945   (exit $ac_status); }; }; then
8946   ac_cv_lib_svld_dlopen=yes
8947 else
8948   echo "$as_me: failed program was:" >&5
8949 sed 's/^/| /' conftest.$ac_ext >&5
8950
8951 ac_cv_lib_svld_dlopen=no
8952 fi
8953 rm -f conftest.err conftest.$ac_objext \
8954       conftest$ac_exeext conftest.$ac_ext
8955 LIBS=$ac_check_lib_save_LIBS
8956 fi
8957 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8958 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8959 if test $ac_cv_lib_svld_dlopen = yes; then
8960   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8961 else
8962   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8963 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8964 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8965   echo $ECHO_N "(cached) $ECHO_C" >&6
8966 else
8967   ac_check_lib_save_LIBS=$LIBS
8968 LIBS="-ldld  $LIBS"
8969 cat >conftest.$ac_ext <<_ACEOF
8970 /* confdefs.h.  */
8971 _ACEOF
8972 cat confdefs.h >>conftest.$ac_ext
8973 cat >>conftest.$ac_ext <<_ACEOF
8974 /* end confdefs.h.  */
8975
8976 /* Override any gcc2 internal prototype to avoid an error.  */
8977 #ifdef __cplusplus
8978 extern "C"
8979 #endif
8980 /* We use char because int might match the return type of a gcc2
8981    builtin and then its argument prototype would still apply.  */
8982 char dld_link ();
8983 int
8984 main ()
8985 {
8986 dld_link ();
8987   ;
8988   return 0;
8989 }
8990 _ACEOF
8991 rm -f conftest.$ac_objext conftest$ac_exeext
8992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8993   (eval $ac_link) 2>conftest.er1
8994   ac_status=$?
8995   grep -v '^ *+' conftest.er1 >conftest.err
8996   rm -f conftest.er1
8997   cat conftest.err >&5
8998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8999   (exit $ac_status); } &&
9000          { ac_try='test -z "$ac_c_werror_flag"
9001                          || test ! -s conftest.err'
9002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9003   (eval $ac_try) 2>&5
9004   ac_status=$?
9005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006   (exit $ac_status); }; } &&
9007          { ac_try='test -s conftest$ac_exeext'
9008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9009   (eval $ac_try) 2>&5
9010   ac_status=$?
9011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012   (exit $ac_status); }; }; then
9013   ac_cv_lib_dld_dld_link=yes
9014 else
9015   echo "$as_me: failed program was:" >&5
9016 sed 's/^/| /' conftest.$ac_ext >&5
9017
9018 ac_cv_lib_dld_dld_link=no
9019 fi
9020 rm -f conftest.err conftest.$ac_objext \
9021       conftest$ac_exeext conftest.$ac_ext
9022 LIBS=$ac_check_lib_save_LIBS
9023 fi
9024 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9025 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9026 if test $ac_cv_lib_dld_dld_link = yes; then
9027   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9028 fi
9029
9030               
9031 fi
9032
9033             
9034 fi
9035
9036           
9037 fi
9038
9039         
9040 fi
9041
9042       
9043 fi
9044
9045     ;;
9046   esac
9047
9048   if test "x$lt_cv_dlopen" != xno; then
9049     enable_dlopen=yes
9050   else
9051     enable_dlopen=no
9052   fi
9053
9054   case $lt_cv_dlopen in
9055   dlopen)
9056     save_CPPFLAGS="$CPPFLAGS"
9057     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9058
9059     save_LDFLAGS="$LDFLAGS"
9060     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9061
9062     save_LIBS="$LIBS"
9063     LIBS="$lt_cv_dlopen_libs $LIBS"
9064
9065     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9066 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9067 if test "${lt_cv_dlopen_self+set}" = set; then
9068   echo $ECHO_N "(cached) $ECHO_C" >&6
9069 else
9070           if test "$cross_compiling" = yes; then :
9071   lt_cv_dlopen_self=cross
9072 else
9073   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9074   lt_status=$lt_dlunknown
9075   cat > conftest.$ac_ext <<EOF
9076 #line __oline__ "configure"
9077 #include "confdefs.h"
9078
9079 #if HAVE_DLFCN_H
9080 #include <dlfcn.h>
9081 #endif
9082
9083 #include <stdio.h>
9084
9085 #ifdef RTLD_GLOBAL
9086 #  define LT_DLGLOBAL           RTLD_GLOBAL
9087 #else
9088 #  ifdef DL_GLOBAL
9089 #    define LT_DLGLOBAL         DL_GLOBAL
9090 #  else
9091 #    define LT_DLGLOBAL         0
9092 #  endif
9093 #endif
9094
9095 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9096    find out it does not work in some platform. */
9097 #ifndef LT_DLLAZY_OR_NOW
9098 #  ifdef RTLD_LAZY
9099 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9100 #  else
9101 #    ifdef DL_LAZY
9102 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9103 #    else
9104 #      ifdef RTLD_NOW
9105 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9106 #      else
9107 #        ifdef DL_NOW
9108 #          define LT_DLLAZY_OR_NOW      DL_NOW
9109 #        else
9110 #          define LT_DLLAZY_OR_NOW      0
9111 #        endif
9112 #      endif
9113 #    endif
9114 #  endif
9115 #endif
9116
9117 #ifdef __cplusplus
9118 extern "C" void exit (int);
9119 #endif
9120
9121 void fnord() { int i=42;}
9122 int main ()
9123 {
9124   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9125   int status = $lt_dlunknown;
9126
9127   if (self)
9128     {
9129       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9130       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9131       /* dlclose (self); */
9132     }
9133   else
9134     puts (dlerror ());
9135
9136     exit (status);
9137 }
9138 EOF
9139   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9140   (eval $ac_link) 2>&5
9141   ac_status=$?
9142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9143   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9144     (./conftest; exit; ) >&5 2>/dev/null
9145     lt_status=$?
9146     case x$lt_status in
9147       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9148       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9149       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9150     esac
9151   else :
9152     # compilation failed
9153     lt_cv_dlopen_self=no
9154   fi
9155 fi
9156 rm -fr conftest*
9157
9158     
9159 fi
9160 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9161 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9162
9163     if test "x$lt_cv_dlopen_self" = xyes; then
9164       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9165       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9166 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9167 if test "${lt_cv_dlopen_self_static+set}" = set; then
9168   echo $ECHO_N "(cached) $ECHO_C" >&6
9169 else
9170           if test "$cross_compiling" = yes; then :
9171   lt_cv_dlopen_self_static=cross
9172 else
9173   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9174   lt_status=$lt_dlunknown
9175   cat > conftest.$ac_ext <<EOF
9176 #line __oline__ "configure"
9177 #include "confdefs.h"
9178
9179 #if HAVE_DLFCN_H
9180 #include <dlfcn.h>
9181 #endif
9182
9183 #include <stdio.h>
9184
9185 #ifdef RTLD_GLOBAL
9186 #  define LT_DLGLOBAL           RTLD_GLOBAL
9187 #else
9188 #  ifdef DL_GLOBAL
9189 #    define LT_DLGLOBAL         DL_GLOBAL
9190 #  else
9191 #    define LT_DLGLOBAL         0
9192 #  endif
9193 #endif
9194
9195 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9196    find out it does not work in some platform. */
9197 #ifndef LT_DLLAZY_OR_NOW
9198 #  ifdef RTLD_LAZY
9199 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9200 #  else
9201 #    ifdef DL_LAZY
9202 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9203 #    else
9204 #      ifdef RTLD_NOW
9205 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9206 #      else
9207 #        ifdef DL_NOW
9208 #          define LT_DLLAZY_OR_NOW      DL_NOW
9209 #        else
9210 #          define LT_DLLAZY_OR_NOW      0
9211 #        endif
9212 #      endif
9213 #    endif
9214 #  endif
9215 #endif
9216
9217 #ifdef __cplusplus
9218 extern "C" void exit (int);
9219 #endif
9220
9221 void fnord() { int i=42;}
9222 int main ()
9223 {
9224   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9225   int status = $lt_dlunknown;
9226
9227   if (self)
9228     {
9229       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9230       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9231       /* dlclose (self); */
9232     }
9233   else
9234     puts (dlerror ());
9235
9236     exit (status);
9237 }
9238 EOF
9239   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9240   (eval $ac_link) 2>&5
9241   ac_status=$?
9242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9244     (./conftest; exit; ) >&5 2>/dev/null
9245     lt_status=$?
9246     case x$lt_status in
9247       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9248       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9249       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9250     esac
9251   else :
9252     # compilation failed
9253     lt_cv_dlopen_self_static=no
9254   fi
9255 fi
9256 rm -fr conftest*
9257
9258       
9259 fi
9260 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9261 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9262     fi
9263
9264     CPPFLAGS="$save_CPPFLAGS"
9265     LDFLAGS="$save_LDFLAGS"
9266     LIBS="$save_LIBS"
9267     ;;
9268   esac
9269
9270   case $lt_cv_dlopen_self in
9271   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9272   *) enable_dlopen_self=unknown ;;
9273   esac
9274
9275   case $lt_cv_dlopen_self_static in
9276   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9277   *) enable_dlopen_self_static=unknown ;;
9278   esac
9279 fi
9280
9281
9282 # Report which library types will actually be built
9283 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9284 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9285 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9286 echo "${ECHO_T}$can_build_shared" >&6
9287
9288 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9289 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9290 test "$can_build_shared" = "no" && enable_shared=no
9291
9292 # On AIX, shared libraries and static libraries use the same namespace, and
9293 # are all built from PIC.
9294 case $host_os in
9295 aix3*)
9296   test "$enable_shared" = yes && enable_static=no
9297   if test -n "$RANLIB"; then
9298     archive_cmds="$archive_cmds~\$RANLIB \$lib"
9299     postinstall_cmds='$RANLIB $lib'
9300   fi
9301   ;;
9302
9303 aix4* | aix5*)
9304   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9305     test "$enable_shared" = yes && enable_static=no
9306   fi
9307     ;;
9308 esac
9309 echo "$as_me:$LINENO: result: $enable_shared" >&5
9310 echo "${ECHO_T}$enable_shared" >&6
9311
9312 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9313 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9314 # Make sure either enable_shared or enable_static is yes.
9315 test "$enable_shared" = yes || enable_static=yes
9316 echo "$as_me:$LINENO: result: $enable_static" >&5
9317 echo "${ECHO_T}$enable_static" >&6
9318
9319 # The else clause should only fire when bootstrapping the
9320 # libtool distribution, otherwise you forgot to ship ltmain.sh
9321 # with your package, and you will get complaints that there are
9322 # no rules to generate ltmain.sh.
9323 if test -f "$ltmain"; then
9324   # See if we are running on zsh, and set the options which allow our commands through
9325   # without removal of \ escapes.
9326   if test -n "${ZSH_VERSION+set}" ; then
9327     setopt NO_GLOB_SUBST
9328   fi
9329   # Now quote all the things that may contain metacharacters while being
9330   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9331   # variables and quote the copies for generation of the libtool script.
9332   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9333     SED SHELL STRIP \
9334     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9335     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9336     deplibs_check_method reload_flag reload_cmds need_locks \
9337     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9338     lt_cv_sys_global_symbol_to_c_name_address \
9339     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9340     old_postinstall_cmds old_postuninstall_cmds \
9341     compiler \
9342     CC \
9343     LD \
9344     lt_prog_compiler_wl \
9345     lt_prog_compiler_pic \
9346     lt_prog_compiler_static \
9347     lt_prog_compiler_no_builtin_flag \
9348     export_dynamic_flag_spec \
9349     thread_safe_flag_spec \
9350     whole_archive_flag_spec \
9351     enable_shared_with_static_runtimes \
9352     old_archive_cmds \
9353     old_archive_from_new_cmds \
9354     predep_objects \
9355     postdep_objects \
9356     predeps \
9357     postdeps \
9358     compiler_lib_search_path \
9359     archive_cmds \
9360     archive_expsym_cmds \
9361     postinstall_cmds \
9362     postuninstall_cmds \
9363     old_archive_from_expsyms_cmds \
9364     allow_undefined_flag \
9365     no_undefined_flag \
9366     export_symbols_cmds \
9367     hardcode_libdir_flag_spec \
9368     hardcode_libdir_flag_spec_ld \
9369     hardcode_libdir_separator \
9370     hardcode_automatic \
9371     module_cmds \
9372     module_expsym_cmds \
9373     lt_cv_prog_compiler_c_o \
9374     exclude_expsyms \
9375     include_expsyms; do
9376
9377     case $var in
9378     old_archive_cmds | \
9379     old_archive_from_new_cmds | \
9380     archive_cmds | \
9381     archive_expsym_cmds | \
9382     module_cmds | \
9383     module_expsym_cmds | \
9384     old_archive_from_expsyms_cmds | \
9385     export_symbols_cmds | \
9386     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9387     postinstall_cmds | postuninstall_cmds | \
9388     old_postinstall_cmds | old_postuninstall_cmds | \
9389     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9390       # Double-quote double-evaled strings.
9391       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9392       ;;
9393     *)
9394       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9395       ;;
9396     esac
9397   done
9398
9399   case $lt_echo in
9400   *'\$0 --fallback-echo"')
9401     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9402     ;;
9403   esac
9404
9405 cfgfile="${ofile}T"
9406   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9407   $rm -f "$cfgfile"
9408   { echo "$as_me:$LINENO: creating $ofile" >&5
9409 echo "$as_me: creating $ofile" >&6;}
9410
9411   cat <<__EOF__ >> "$cfgfile"
9412 #! $SHELL
9413
9414 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9415 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9416 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9417 #
9418 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9419 # Free Software Foundation, Inc.
9420 #
9421 # This file is part of GNU Libtool:
9422 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9423 #
9424 # This program is free software; you can redistribute it and/or modify
9425 # it under the terms of the GNU General Public License as published by
9426 # the Free Software Foundation; either version 2 of the License, or
9427 # (at your option) any later version.
9428 #
9429 # This program is distributed in the hope that it will be useful, but
9430 # WITHOUT ANY WARRANTY; without even the implied warranty of
9431 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9432 # General Public License for more details.
9433 #
9434 # You should have received a copy of the GNU General Public License
9435 # along with this program; if not, write to the Free Software
9436 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9437 #
9438 # As a special exception to the GNU General Public License, if you
9439 # distribute this file as part of a program that contains a
9440 # configuration script generated by Autoconf, you may include it under
9441 # the same distribution terms that you use for the rest of that program.
9442
9443 # A sed program that does not truncate output.
9444 SED=$lt_SED
9445
9446 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9447 Xsed="$SED -e 1s/^X//"
9448
9449 # The HP-UX ksh and POSIX shell print the target directory to stdout
9450 # if CDPATH is set.
9451 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9452
9453 # The names of the tagged configurations supported by this script.
9454 available_tags=
9455
9456 # ### BEGIN LIBTOOL CONFIG
9457
9458 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9459
9460 # Shell to use when invoking shell scripts.
9461 SHELL=$lt_SHELL
9462
9463 # Whether or not to build shared libraries.
9464 build_libtool_libs=$enable_shared
9465
9466 # Whether or not to build static libraries.
9467 build_old_libs=$enable_static
9468
9469 # Whether or not to add -lc for building shared libraries.
9470 build_libtool_need_lc=$archive_cmds_need_lc
9471
9472 # Whether or not to disallow shared libs when runtime libs are static
9473 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9474
9475 # Whether or not to optimize for fast installation.
9476 fast_install=$enable_fast_install
9477
9478 # The host system.
9479 host_alias=$host_alias
9480 host=$host
9481 host_os=$host_os
9482
9483 # The build system.
9484 build_alias=$build_alias
9485 build=$build
9486 build_os=$build_os
9487
9488 # An echo program that does not interpret backslashes.
9489 echo=$lt_echo
9490
9491 # The archiver.
9492 AR=$lt_AR
9493 AR_FLAGS=$lt_AR_FLAGS
9494
9495 # A C compiler.
9496 LTCC=$lt_LTCC
9497
9498 # LTCC compiler flags.
9499 LTCFLAGS=$lt_LTCFLAGS
9500
9501 # A language-specific compiler.
9502 CC=$lt_compiler
9503
9504 # Is the compiler the GNU C compiler?
9505 with_gcc=$GCC
9506
9507 # An ERE matcher.
9508 EGREP=$lt_EGREP
9509
9510 # The linker used to build libraries.
9511 LD=$lt_LD
9512
9513 # Whether we need hard or soft links.
9514 LN_S=$lt_LN_S
9515
9516 # A BSD-compatible nm program.
9517 NM=$lt_NM
9518
9519 # A symbol stripping program
9520 STRIP=$lt_STRIP
9521
9522 # Used to examine libraries when file_magic_cmd begins "file"
9523 MAGIC_CMD=$MAGIC_CMD
9524
9525 # Used on cygwin: DLL creation program.
9526 DLLTOOL="$DLLTOOL"
9527
9528 # Used on cygwin: object dumper.
9529 OBJDUMP="$OBJDUMP"
9530
9531 # Used on cygwin: assembler.
9532 AS="$AS"
9533
9534 # The name of the directory that contains temporary libtool files.
9535 objdir=$objdir
9536
9537 # How to create reloadable object files.
9538 reload_flag=$lt_reload_flag
9539 reload_cmds=$lt_reload_cmds
9540
9541 # How to pass a linker flag through the compiler.
9542 wl=$lt_lt_prog_compiler_wl
9543
9544 # Object file suffix (normally "o").
9545 objext="$ac_objext"
9546
9547 # Old archive suffix (normally "a").
9548 libext="$libext"
9549
9550 # Shared library suffix (normally ".so").
9551 shrext_cmds='$shrext_cmds'
9552
9553 # Executable file suffix (normally "").
9554 exeext="$exeext"
9555
9556 # Additional compiler flags for building library objects.
9557 pic_flag=$lt_lt_prog_compiler_pic
9558 pic_mode=$pic_mode
9559
9560 # What is the maximum length of a command?
9561 max_cmd_len=$lt_cv_sys_max_cmd_len
9562
9563 # Does compiler simultaneously support -c and -o options?
9564 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9565
9566 # Must we lock files when doing compilation?
9567 need_locks=$lt_need_locks
9568
9569 # Do we need the lib prefix for modules?
9570 need_lib_prefix=$need_lib_prefix
9571
9572 # Do we need a version for libraries?
9573 need_version=$need_version
9574
9575 # Whether dlopen is supported.
9576 dlopen_support=$enable_dlopen
9577
9578 # Whether dlopen of programs is supported.
9579 dlopen_self=$enable_dlopen_self
9580
9581 # Whether dlopen of statically linked programs is supported.
9582 dlopen_self_static=$enable_dlopen_self_static
9583
9584 # Compiler flag to prevent dynamic linking.
9585 link_static_flag=$lt_lt_prog_compiler_static
9586
9587 # Compiler flag to turn off builtin functions.
9588 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9589
9590 # Compiler flag to allow reflexive dlopens.
9591 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9592
9593 # Compiler flag to generate shared objects directly from archives.
9594 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9595
9596 # Compiler flag to generate thread-safe objects.
9597 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9598
9599 # Library versioning type.
9600 version_type=$version_type
9601
9602 # Format of library name prefix.
9603 libname_spec=$lt_libname_spec
9604
9605 # List of archive names.  First name is the real one, the rest are links.
9606 # The last name is the one that the linker finds with -lNAME.
9607 library_names_spec=$lt_library_names_spec
9608
9609 # The coded name of the library, if different from the real name.
9610 soname_spec=$lt_soname_spec
9611
9612 # Commands used to build and install an old-style archive.
9613 RANLIB=$lt_RANLIB
9614 old_archive_cmds=$lt_old_archive_cmds
9615 old_postinstall_cmds=$lt_old_postinstall_cmds
9616 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9617
9618 # Create an old-style archive from a shared archive.
9619 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9620
9621 # Create a temporary old-style archive to link instead of a shared archive.
9622 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9623
9624 # Commands used to build and install a shared archive.
9625 archive_cmds=$lt_archive_cmds
9626 archive_expsym_cmds=$lt_archive_expsym_cmds
9627 postinstall_cmds=$lt_postinstall_cmds
9628 postuninstall_cmds=$lt_postuninstall_cmds
9629
9630 # Commands used to build a loadable module (assumed same as above if empty)
9631 module_cmds=$lt_module_cmds
9632 module_expsym_cmds=$lt_module_expsym_cmds
9633
9634 # Commands to strip libraries.
9635 old_striplib=$lt_old_striplib
9636 striplib=$lt_striplib
9637
9638 # Dependencies to place before the objects being linked to create a
9639 # shared library.
9640 predep_objects=$lt_predep_objects
9641
9642 # Dependencies to place after the objects being linked to create a
9643 # shared library.
9644 postdep_objects=$lt_postdep_objects
9645
9646 # Dependencies to place before the objects being linked to create a
9647 # shared library.
9648 predeps=$lt_predeps
9649
9650 # Dependencies to place after the objects being linked to create a
9651 # shared library.
9652 postdeps=$lt_postdeps
9653
9654 # The library search path used internally by the compiler when linking
9655 # a shared library.
9656 compiler_lib_search_path=$lt_compiler_lib_search_path
9657
9658 # Method to check whether dependent libraries are shared objects.
9659 deplibs_check_method=$lt_deplibs_check_method
9660
9661 # Command to use when deplibs_check_method == file_magic.
9662 file_magic_cmd=$lt_file_magic_cmd
9663
9664 # Flag that allows shared libraries with undefined symbols to be built.
9665 allow_undefined_flag=$lt_allow_undefined_flag
9666
9667 # Flag that forces no undefined symbols.
9668 no_undefined_flag=$lt_no_undefined_flag
9669
9670 # Commands used to finish a libtool library installation in a directory.
9671 finish_cmds=$lt_finish_cmds
9672
9673 # Same as above, but a single script fragment to be evaled but not shown.
9674 finish_eval=$lt_finish_eval
9675
9676 # Take the output of nm and produce a listing of raw symbols and C names.
9677 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9678
9679 # Transform the output of nm in a proper C declaration
9680 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9681
9682 # Transform the output of nm in a C name address pair
9683 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9684
9685 # This is the shared library runtime path variable.
9686 runpath_var=$runpath_var
9687
9688 # This is the shared library path variable.
9689 shlibpath_var=$shlibpath_var
9690
9691 # Is shlibpath searched before the hard-coded library search path?
9692 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9693
9694 # How to hardcode a shared library path into an executable.
9695 hardcode_action=$hardcode_action
9696
9697 # Whether we should hardcode library paths into libraries.
9698 hardcode_into_libs=$hardcode_into_libs
9699
9700 # Flag to hardcode \$libdir into a binary during linking.
9701 # This must work even if \$libdir does not exist.
9702 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9703
9704 # If ld is used when linking, flag to hardcode \$libdir into
9705 # a binary during linking. This must work even if \$libdir does
9706 # not exist.
9707 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9708
9709 # Whether we need a single -rpath flag with a separated argument.
9710 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9711
9712 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9713 # resulting binary.
9714 hardcode_direct=$hardcode_direct
9715
9716 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9717 # resulting binary.
9718 hardcode_minus_L=$hardcode_minus_L
9719
9720 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9721 # the resulting binary.
9722 hardcode_shlibpath_var=$hardcode_shlibpath_var
9723
9724 # Set to yes if building a shared library automatically hardcodes DIR into the library
9725 # and all subsequent libraries and executables linked against it.
9726 hardcode_automatic=$hardcode_automatic
9727
9728 # Variables whose values should be saved in libtool wrapper scripts and
9729 # restored at relink time.
9730 variables_saved_for_relink="$variables_saved_for_relink"
9731
9732 # Whether libtool must link a program against all its dependency libraries.
9733 link_all_deplibs=$link_all_deplibs
9734
9735 # Compile-time system search path for libraries
9736 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9737
9738 # Run-time system search path for libraries
9739 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9740
9741 # Fix the shell variable \$srcfile for the compiler.
9742 fix_srcfile_path="$fix_srcfile_path"
9743
9744 # Set to yes if exported symbols are required.
9745 always_export_symbols=$always_export_symbols
9746
9747 # The commands to list exported symbols.
9748 export_symbols_cmds=$lt_export_symbols_cmds
9749
9750 # The commands to extract the exported symbol list from a shared archive.
9751 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9752
9753 # Symbols that should not be listed in the preloaded symbols.
9754 exclude_expsyms=$lt_exclude_expsyms
9755
9756 # Symbols that must always be exported.
9757 include_expsyms=$lt_include_expsyms
9758
9759 # ### END LIBTOOL CONFIG
9760
9761 __EOF__
9762
9763
9764   case $host_os in
9765   aix3*)
9766     cat <<\EOF >> "$cfgfile"
9767
9768 # AIX sometimes has problems with the GCC collect2 program.  For some
9769 # reason, if we set the COLLECT_NAMES environment variable, the problems
9770 # vanish in a puff of smoke.
9771 if test "X${COLLECT_NAMES+set}" != Xset; then
9772   COLLECT_NAMES=
9773   export COLLECT_NAMES
9774 fi
9775 EOF
9776     ;;
9777   esac
9778
9779   # We use sed instead of cat because bash on DJGPP gets confused if
9780   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9781   # text mode, it properly converts lines to CR/LF.  This bash problem
9782   # is reportedly fixed, but why not run on old versions too?
9783   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9784
9785   mv -f "$cfgfile" "$ofile" || \
9786     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9787   chmod +x "$ofile"
9788
9789 else
9790   # If there is no Makefile yet, we rely on a make rule to execute
9791   # `config.status --recheck' to rerun these tests and create the
9792   # libtool script then.
9793   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9794   if test -f "$ltmain_in"; then
9795     test -f Makefile && make "$ltmain"
9796   fi
9797 fi
9798
9799
9800 ac_ext=c
9801 ac_cpp='$CPP $CPPFLAGS'
9802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9805
9806 CC="$lt_save_CC"
9807
9808
9809 # Check whether --with-tags or --without-tags was given.
9810 if test "${with_tags+set}" = set; then
9811   withval="$with_tags"
9812   tagnames="$withval"
9813 fi; 
9814
9815 if test -f "$ltmain" && test -n "$tagnames"; then
9816   if test ! -f "${ofile}"; then
9817     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9818 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9819   fi
9820
9821   if test -z "$LTCC"; then
9822     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9823     if test -z "$LTCC"; then
9824       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9825 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9826     else
9827       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9828 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9829     fi
9830   fi
9831   if test -z "$LTCFLAGS"; then
9832     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9833   fi
9834
9835   # Extract list of available tagged configurations in $ofile.
9836   # Note that this assumes the entire list is on one line.
9837   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9838
9839   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9840   for tagname in $tagnames; do
9841     IFS="$lt_save_ifs"
9842     # Check whether tagname contains only valid characters
9843     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9844     "") ;;
9845     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9846 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9847    { (exit 1); exit 1; }; }
9848         ;;
9849     esac
9850
9851     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9852     then
9853       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9854 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9855    { (exit 1); exit 1; }; }
9856     fi
9857
9858     # Update the list of available tags.
9859     if test -n "$tagname"; then
9860       echo appending configuration tag \"$tagname\" to $ofile
9861
9862       case $tagname in
9863       CXX)
9864         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9865             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9866             (test "X$CXX" != "Xg++"))) ; then
9867           ac_ext=cc
9868 ac_cpp='$CXXCPP $CPPFLAGS'
9869 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9870 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9871 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9872
9873
9874
9875
9876 archive_cmds_need_lc_CXX=no
9877 allow_undefined_flag_CXX=
9878 always_export_symbols_CXX=no
9879 archive_expsym_cmds_CXX=
9880 export_dynamic_flag_spec_CXX=
9881 hardcode_direct_CXX=no
9882 hardcode_libdir_flag_spec_CXX=
9883 hardcode_libdir_flag_spec_ld_CXX=
9884 hardcode_libdir_separator_CXX=
9885 hardcode_minus_L_CXX=no
9886 hardcode_shlibpath_var_CXX=unsupported
9887 hardcode_automatic_CXX=no
9888 module_cmds_CXX=
9889 module_expsym_cmds_CXX=
9890 link_all_deplibs_CXX=unknown
9891 old_archive_cmds_CXX=$old_archive_cmds
9892 no_undefined_flag_CXX=
9893 whole_archive_flag_spec_CXX=
9894 enable_shared_with_static_runtimes_CXX=no
9895
9896 # Dependencies to place before and after the object being linked:
9897 predep_objects_CXX=
9898 postdep_objects_CXX=
9899 predeps_CXX=
9900 postdeps_CXX=
9901 compiler_lib_search_path_CXX=
9902
9903 # Source file extension for C++ test sources.
9904 ac_ext=cpp
9905
9906 # Object file extension for compiled C++ test sources.
9907 objext=o
9908 objext_CXX=$objext
9909
9910 # Code to be used in simple compile tests
9911 lt_simple_compile_test_code="int some_variable = 0;\n"
9912
9913 # Code to be used in simple link tests
9914 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
9915
9916 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9917
9918 # If no C compiler was specified, use CC.
9919 LTCC=${LTCC-"$CC"}
9920
9921 # If no C compiler flags were specified, use CFLAGS.
9922 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9923
9924 # Allow CC to be a program name with arguments.
9925 compiler=$CC
9926
9927
9928 # save warnings/boilerplate of simple test code
9929 ac_outfile=conftest.$ac_objext
9930 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9931 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9932 _lt_compiler_boilerplate=`cat conftest.err`
9933 $rm conftest*
9934
9935 ac_outfile=conftest.$ac_objext
9936 printf "$lt_simple_link_test_code" >conftest.$ac_ext
9937 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9938 _lt_linker_boilerplate=`cat conftest.err`
9939 $rm conftest*
9940
9941
9942 # Allow CC to be a program name with arguments.
9943 lt_save_CC=$CC
9944 lt_save_LD=$LD
9945 lt_save_GCC=$GCC
9946 GCC=$GXX
9947 lt_save_with_gnu_ld=$with_gnu_ld
9948 lt_save_path_LD=$lt_cv_path_LD
9949 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9950   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9951 else
9952   $as_unset lt_cv_prog_gnu_ld
9953 fi
9954 if test -n "${lt_cv_path_LDCXX+set}"; then
9955   lt_cv_path_LD=$lt_cv_path_LDCXX
9956 else
9957   $as_unset lt_cv_path_LD
9958 fi
9959 test -z "${LDCXX+set}" || LD=$LDCXX
9960 CC=${CXX-"c++"}
9961 compiler=$CC
9962 compiler_CXX=$CC
9963 for cc_temp in $compiler""; do
9964   case $cc_temp in
9965     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9966     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9967     \-*) ;;
9968     *) break;;
9969   esac
9970 done
9971 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9972
9973
9974 # We don't want -fno-exception wen compiling C++ code, so set the
9975 # no_builtin_flag separately
9976 if test "$GXX" = yes; then
9977   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9978 else
9979   lt_prog_compiler_no_builtin_flag_CXX=
9980 fi
9981
9982 if test "$GXX" = yes; then
9983   # Set up default GNU C++ configuration
9984
9985   
9986 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9987 if test "${with_gnu_ld+set}" = set; then
9988   withval="$with_gnu_ld"
9989   test "$withval" = no || with_gnu_ld=yes
9990 else
9991   with_gnu_ld=no
9992 fi; 
9993 ac_prog=ld
9994 if test "$GCC" = yes; then
9995   # Check if gcc -print-prog-name=ld gives a path.
9996   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9997 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9998   case $host in
9999   *-*-mingw*)
10000     # gcc leaves a trailing carriage return which upsets mingw
10001     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10002   *)
10003     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10004   esac
10005   case $ac_prog in
10006     # Accept absolute paths.
10007     [\\/]* | ?:[\\/]*)
10008       re_direlt='/[^/][^/]*/\.\./'
10009       # Canonicalize the pathname of ld
10010       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10011       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10012         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10013       done
10014       test -z "$LD" && LD="$ac_prog"
10015       ;;
10016   "")
10017     # If it fails, then pretend we aren't using GCC.
10018     ac_prog=ld
10019     ;;
10020   *)
10021     # If it is relative, then search for the first ld in PATH.
10022     with_gnu_ld=unknown
10023     ;;
10024   esac
10025 elif test "$with_gnu_ld" = yes; then
10026   echo "$as_me:$LINENO: checking for GNU ld" >&5
10027 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10028 else
10029   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10030 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10031 fi
10032 if test "${lt_cv_path_LD+set}" = set; then
10033   echo $ECHO_N "(cached) $ECHO_C" >&6
10034 else
10035   if test -z "$LD"; then
10036   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10037   for ac_dir in $PATH; do
10038     IFS="$lt_save_ifs"
10039     test -z "$ac_dir" && ac_dir=.
10040     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10041       lt_cv_path_LD="$ac_dir/$ac_prog"
10042       # Check to see if the program is GNU ld.  I'd rather use --version,
10043       # but apparently some variants of GNU ld only accept -v.
10044       # Break only if it was the GNU/non-GNU ld that we prefer.
10045       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10046       *GNU* | *'with BFD'*)
10047         test "$with_gnu_ld" != no && break
10048         ;;
10049       *)
10050         test "$with_gnu_ld" != yes && break
10051         ;;
10052       esac
10053     fi
10054   done
10055   IFS="$lt_save_ifs"
10056 else
10057   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10058 fi
10059 fi
10060
10061 LD="$lt_cv_path_LD"
10062 if test -n "$LD"; then
10063   echo "$as_me:$LINENO: result: $LD" >&5
10064 echo "${ECHO_T}$LD" >&6
10065 else
10066   echo "$as_me:$LINENO: result: no" >&5
10067 echo "${ECHO_T}no" >&6
10068 fi
10069 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10070 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10071    { (exit 1); exit 1; }; }
10072 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10073 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10074 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10075   echo $ECHO_N "(cached) $ECHO_C" >&6
10076 else
10077   # I'd rather use --version here, but apparently some GNU lds only accept -v.
10078 case `$LD -v 2>&1 </dev/null` in
10079 *GNU* | *'with BFD'*)
10080   lt_cv_prog_gnu_ld=yes
10081   ;;
10082 *)
10083   lt_cv_prog_gnu_ld=no
10084   ;;
10085 esac
10086 fi
10087 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10088 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10089 with_gnu_ld=$lt_cv_prog_gnu_ld
10090
10091
10092
10093   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10094   # archiving commands below assume that GNU ld is being used.
10095   if test "$with_gnu_ld" = yes; then
10096     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10097     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'
10098
10099     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10100     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10101
10102     # If archive_cmds runs LD, not CC, wlarc should be empty
10103     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10104     #     investigate it a little bit more. (MM)
10105     wlarc='${wl}'
10106
10107     # ancient GNU ld didn't support --whole-archive et. al.
10108     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10109         grep 'no-whole-archive' > /dev/null; then
10110       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10111     else
10112       whole_archive_flag_spec_CXX=
10113     fi
10114   else
10115     with_gnu_ld=no
10116     wlarc=
10117
10118     # A generic and very simple default shared library creation
10119     # command for GNU C++ for the case where it uses the native
10120     # linker, instead of GNU ld.  If possible, this setting should
10121     # overridden to take advantage of the native linker features on
10122     # the platform it is being used on.
10123     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10124   fi
10125
10126   # Commands to make compiler produce verbose output that lists
10127   # what "hidden" libraries, object files and flags are used when
10128   # linking a shared library.
10129   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10130
10131 else
10132   GXX=no
10133   with_gnu_ld=no
10134   wlarc=
10135 fi
10136
10137 # PORTME: fill in a description of your system's C++ link characteristics
10138 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10139 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10140 ld_shlibs_CXX=yes
10141 case $host_os in
10142   aix3*)
10143     # FIXME: insert proper C++ library support
10144     ld_shlibs_CXX=no
10145     ;;
10146   aix4* | aix5*)
10147     if test "$host_cpu" = ia64; then
10148       # On IA64, the linker does run time linking by default, so we don't
10149       # have to do anything special.
10150       aix_use_runtimelinking=no
10151       exp_sym_flag='-Bexport'
10152       no_entry_flag=""
10153     else
10154       aix_use_runtimelinking=no
10155
10156       # Test if we are trying to use run time linking or normal
10157       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10158       # need to do runtime linking.
10159       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10160         for ld_flag in $LDFLAGS; do
10161           case $ld_flag in
10162           *-brtl*)
10163             aix_use_runtimelinking=yes
10164             break
10165             ;;
10166           esac
10167         done
10168         ;;
10169       esac
10170
10171       exp_sym_flag='-bexport'
10172       no_entry_flag='-bnoentry'
10173     fi
10174
10175     # When large executables or shared objects are built, AIX ld can
10176     # have problems creating the table of contents.  If linking a library
10177     # or program results in "error TOC overflow" add -mminimal-toc to
10178     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10179     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10180
10181     archive_cmds_CXX=''
10182     hardcode_direct_CXX=yes
10183     hardcode_libdir_separator_CXX=':'
10184     link_all_deplibs_CXX=yes
10185
10186     if test "$GXX" = yes; then
10187       case $host_os in aix4.[012]|aix4.[012].*)
10188       # We only want to do this on AIX 4.2 and lower, the check
10189       # below for broken collect2 doesn't work under 4.3+
10190         collect2name=`${CC} -print-prog-name=collect2`
10191         if test -f "$collect2name" && \
10192            strings "$collect2name" | grep resolve_lib_name >/dev/null
10193         then
10194           # We have reworked collect2
10195           hardcode_direct_CXX=yes
10196         else
10197           # We have old collect2
10198           hardcode_direct_CXX=unsupported
10199           # It fails to find uninstalled libraries when the uninstalled
10200           # path is not listed in the libpath.  Setting hardcode_minus_L
10201           # to unsupported forces relinking
10202           hardcode_minus_L_CXX=yes
10203           hardcode_libdir_flag_spec_CXX='-L$libdir'
10204           hardcode_libdir_separator_CXX=
10205         fi
10206         ;;
10207       esac
10208       shared_flag='-shared'
10209       if test "$aix_use_runtimelinking" = yes; then
10210         shared_flag="$shared_flag "'${wl}-G'
10211       fi
10212     else
10213       # not using gcc
10214       if test "$host_cpu" = ia64; then
10215         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10216         # chokes on -Wl,-G. The following line is correct:
10217         shared_flag='-G'
10218       else
10219         if test "$aix_use_runtimelinking" = yes; then
10220           shared_flag='${wl}-G'
10221         else
10222           shared_flag='${wl}-bM:SRE'
10223         fi
10224       fi
10225     fi
10226
10227     # It seems that -bexpall does not export symbols beginning with
10228     # underscore (_), so it is better to generate a list of symbols to export.
10229     always_export_symbols_CXX=yes
10230     if test "$aix_use_runtimelinking" = yes; then
10231       # Warning - without using the other runtime loading flags (-brtl),
10232       # -berok will link without error, but may produce a broken library.
10233       allow_undefined_flag_CXX='-berok'
10234       # Determine the default libpath from the value encoded in an empty executable.
10235       cat >conftest.$ac_ext <<_ACEOF
10236 /* confdefs.h.  */
10237 _ACEOF
10238 cat confdefs.h >>conftest.$ac_ext
10239 cat >>conftest.$ac_ext <<_ACEOF
10240 /* end confdefs.h.  */
10241
10242 int
10243 main ()
10244 {
10245
10246   ;
10247   return 0;
10248 }
10249 _ACEOF
10250 rm -f conftest.$ac_objext conftest$ac_exeext
10251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10252   (eval $ac_link) 2>conftest.er1
10253   ac_status=$?
10254   grep -v '^ *+' conftest.er1 >conftest.err
10255   rm -f conftest.er1
10256   cat conftest.err >&5
10257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10258   (exit $ac_status); } &&
10259          { ac_try='test -z "$ac_cxx_werror_flag"
10260                          || test ! -s conftest.err'
10261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10262   (eval $ac_try) 2>&5
10263   ac_status=$?
10264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10265   (exit $ac_status); }; } &&
10266          { ac_try='test -s conftest$ac_exeext'
10267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10268   (eval $ac_try) 2>&5
10269   ac_status=$?
10270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271   (exit $ac_status); }; }; then
10272   
10273 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10274 }'`
10275 # Check for a 64-bit object if we didn't find anything.
10276 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; }
10277 }'`; fi
10278 else
10279   echo "$as_me: failed program was:" >&5
10280 sed 's/^/| /' conftest.$ac_ext >&5
10281
10282 fi
10283 rm -f conftest.err conftest.$ac_objext \
10284       conftest$ac_exeext conftest.$ac_ext
10285 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10286
10287       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10288
10289       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10290      else
10291       if test "$host_cpu" = ia64; then
10292         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10293         allow_undefined_flag_CXX="-z nodefs"
10294         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10295       else
10296         # Determine the default libpath from the value encoded in an empty executable.
10297         cat >conftest.$ac_ext <<_ACEOF
10298 /* confdefs.h.  */
10299 _ACEOF
10300 cat confdefs.h >>conftest.$ac_ext
10301 cat >>conftest.$ac_ext <<_ACEOF
10302 /* end confdefs.h.  */
10303
10304 int
10305 main ()
10306 {
10307
10308   ;
10309   return 0;
10310 }
10311 _ACEOF
10312 rm -f conftest.$ac_objext conftest$ac_exeext
10313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10314   (eval $ac_link) 2>conftest.er1
10315   ac_status=$?
10316   grep -v '^ *+' conftest.er1 >conftest.err
10317   rm -f conftest.er1
10318   cat conftest.err >&5
10319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10320   (exit $ac_status); } &&
10321          { ac_try='test -z "$ac_cxx_werror_flag"
10322                          || test ! -s conftest.err'
10323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10324   (eval $ac_try) 2>&5
10325   ac_status=$?
10326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10327   (exit $ac_status); }; } &&
10328          { ac_try='test -s conftest$ac_exeext'
10329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10330   (eval $ac_try) 2>&5
10331   ac_status=$?
10332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10333   (exit $ac_status); }; }; then
10334   
10335 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10336 }'`
10337 # Check for a 64-bit object if we didn't find anything.
10338 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; }
10339 }'`; fi
10340 else
10341   echo "$as_me: failed program was:" >&5
10342 sed 's/^/| /' conftest.$ac_ext >&5
10343
10344 fi
10345 rm -f conftest.err conftest.$ac_objext \
10346       conftest$ac_exeext conftest.$ac_ext
10347 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10348
10349         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10350         # Warning - without using the other run time loading flags,
10351         # -berok will link without error, but may produce a broken library.
10352         no_undefined_flag_CXX=' ${wl}-bernotok'
10353         allow_undefined_flag_CXX=' ${wl}-berok'
10354         # Exported symbols can be pulled into shared objects from archives
10355         whole_archive_flag_spec_CXX='$convenience'
10356         archive_cmds_need_lc_CXX=yes
10357         # This is similar to how AIX traditionally builds its shared libraries.
10358         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10359       fi
10360     fi
10361     ;;
10362
10363   beos*)
10364     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10365       allow_undefined_flag_CXX=unsupported
10366       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10367       # support --undefined.  This deserves some investigation.  FIXME
10368       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10369     else
10370       ld_shlibs_CXX=no
10371     fi
10372     ;;
10373
10374   chorus*)
10375     case $cc_basename in
10376       *)
10377         # FIXME: insert proper C++ library support
10378         ld_shlibs_CXX=no
10379         ;;
10380     esac
10381     ;;
10382
10383   cygwin* | mingw* | pw32*)
10384     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10385     # as there is no search path for DLLs.
10386     hardcode_libdir_flag_spec_CXX='-L$libdir'
10387     allow_undefined_flag_CXX=unsupported
10388     always_export_symbols_CXX=no
10389     enable_shared_with_static_runtimes_CXX=yes
10390
10391     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10392       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10393       # If the export-symbols file already is a .def file (1st line
10394       # is EXPORTS), use it as is; otherwise, prepend...
10395       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10396         cp $export_symbols $output_objdir/$soname.def;
10397       else
10398         echo EXPORTS > $output_objdir/$soname.def;
10399         cat $export_symbols >> $output_objdir/$soname.def;
10400       fi~
10401       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10402     else
10403       ld_shlibs_CXX=no
10404     fi
10405   ;;
10406       darwin* | rhapsody*)
10407         case $host_os in
10408         rhapsody* | darwin1.[012])
10409          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10410          ;;
10411        *) # Darwin 1.3 on
10412          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10413            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10414          else
10415            case ${MACOSX_DEPLOYMENT_TARGET} in
10416              10.[012])
10417                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10418                ;;
10419              10.*)
10420                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10421                ;;
10422            esac
10423          fi
10424          ;;
10425         esac
10426       archive_cmds_need_lc_CXX=no
10427       hardcode_direct_CXX=no
10428       hardcode_automatic_CXX=yes
10429       hardcode_shlibpath_var_CXX=unsupported
10430       whole_archive_flag_spec_CXX=''
10431       link_all_deplibs_CXX=yes
10432
10433     if test "$GXX" = yes ; then
10434       lt_int_apple_cc_single_mod=no
10435       output_verbose_link_cmd='echo'
10436       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10437        lt_int_apple_cc_single_mod=yes
10438       fi
10439       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10440        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10441       else
10442           archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10443         fi
10444         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10445         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10446           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10447             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}'
10448           else
10449             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10450           fi
10451             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}'
10452       else
10453       case $cc_basename in
10454         xlc*)
10455          output_verbose_link_cmd='echo'
10456           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10457           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10458           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10459           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10460           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}'
10461           ;;
10462        *)
10463          ld_shlibs_CXX=no
10464           ;;
10465       esac
10466       fi
10467         ;;
10468
10469   dgux*)
10470     case $cc_basename in
10471       ec++*)
10472         # FIXME: insert proper C++ library support
10473         ld_shlibs_CXX=no
10474         ;;
10475       ghcx*)
10476         # Green Hills C++ Compiler
10477         # FIXME: insert proper C++ library support
10478         ld_shlibs_CXX=no
10479         ;;
10480       *)
10481         # FIXME: insert proper C++ library support
10482         ld_shlibs_CXX=no
10483         ;;
10484     esac
10485     ;;
10486   freebsd[12]*)
10487     # C++ shared libraries reported to be fairly broken before switch to ELF
10488     ld_shlibs_CXX=no
10489     ;;
10490   freebsd-elf*)
10491     archive_cmds_need_lc_CXX=no
10492     ;;
10493   freebsd* | kfreebsd*-gnu | dragonfly*)
10494     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10495     # conventions
10496     ld_shlibs_CXX=yes
10497     ;;
10498   gnu*)
10499     ;;
10500   hpux9*)
10501     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10502     hardcode_libdir_separator_CXX=:
10503     export_dynamic_flag_spec_CXX='${wl}-E'
10504     hardcode_direct_CXX=yes
10505     hardcode_minus_L_CXX=yes # Not in the search PATH,
10506                                 # but as the default
10507                                 # location of the library.
10508
10509     case $cc_basename in
10510     CC*)
10511       # FIXME: insert proper C++ library support
10512       ld_shlibs_CXX=no
10513       ;;
10514     aCC*)
10515       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'
10516       # Commands to make compiler produce verbose output that lists
10517       # what "hidden" libraries, object files and flags are used when
10518       # linking a shared library.
10519       #
10520       # There doesn't appear to be a way to prevent this compiler from
10521       # explicitly linking system object files so we need to strip them
10522       # from the output so that they don't get included in the library
10523       # dependencies.
10524       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'
10525       ;;
10526     *)
10527       if test "$GXX" = yes; then
10528         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'
10529       else
10530         # FIXME: insert proper C++ library support
10531         ld_shlibs_CXX=no
10532       fi
10533       ;;
10534     esac
10535     ;;
10536   hpux10*|hpux11*)
10537     if test $with_gnu_ld = no; then
10538       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10539       hardcode_libdir_separator_CXX=:
10540
10541       case $host_cpu in
10542       hppa*64*|ia64*)
10543         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10544         ;;
10545       *)
10546         export_dynamic_flag_spec_CXX='${wl}-E'
10547         ;;
10548       esac
10549     fi
10550     case $host_cpu in
10551     hppa*64*|ia64*)
10552       hardcode_direct_CXX=no
10553       hardcode_shlibpath_var_CXX=no
10554       ;;
10555     *)
10556       hardcode_direct_CXX=yes
10557       hardcode_minus_L_CXX=yes # Not in the search PATH,
10558                                               # but as the default
10559                                               # location of the library.
10560       ;;
10561     esac
10562
10563     case $cc_basename in
10564       CC*)
10565         # FIXME: insert proper C++ library support
10566         ld_shlibs_CXX=no
10567         ;;
10568       aCC*)
10569         case $host_cpu in
10570         hppa*64*)
10571           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10572           ;;
10573         ia64*)
10574           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10575           ;;
10576         *)
10577           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10578           ;;
10579         esac
10580         # Commands to make compiler produce verbose output that lists
10581         # what "hidden" libraries, object files and flags are used when
10582         # linking a shared library.
10583         #
10584         # There doesn't appear to be a way to prevent this compiler from
10585         # explicitly linking system object files so we need to strip them
10586         # from the output so that they don't get included in the library
10587         # dependencies.
10588         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'
10589         ;;
10590       *)
10591         if test "$GXX" = yes; then
10592           if test $with_gnu_ld = no; then
10593             case $host_cpu in
10594             hppa*64*)
10595               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10596               ;;
10597             ia64*)
10598               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10599               ;;
10600             *)
10601               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'
10602               ;;
10603             esac
10604           fi
10605         else
10606           # FIXME: insert proper C++ library support
10607           ld_shlibs_CXX=no
10608         fi
10609         ;;
10610     esac
10611     ;;
10612   interix3*)
10613     hardcode_direct_CXX=no
10614     hardcode_shlibpath_var_CXX=no
10615     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10616     export_dynamic_flag_spec_CXX='${wl}-E'
10617     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10618     # Instead, shared libraries are loaded at an image base (0x10000000 by
10619     # default) and relocated if they conflict, which is a slow very memory
10620     # consuming and fragmenting process.  To avoid this, we pick a random,
10621     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10622     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10623     archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10624     archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10625     ;;
10626   irix5* | irix6*)
10627     case $cc_basename in
10628       CC*)
10629         # SGI C++
10630         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10631
10632         # Archives containing C++ object files must be created using
10633         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10634         # necessary to make sure instantiated templates are included
10635         # in the archive.
10636         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10637         ;;
10638       *)
10639         if test "$GXX" = yes; then
10640           if test "$with_gnu_ld" = no; then
10641             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10642           else
10643             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'
10644           fi
10645         fi
10646         link_all_deplibs_CXX=yes
10647         ;;
10648     esac
10649     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10650     hardcode_libdir_separator_CXX=:
10651     ;;
10652   linux*)
10653     case $cc_basename in
10654       KCC*)
10655         # Kuck and Associates, Inc. (KAI) C++ Compiler
10656
10657         # KCC will only create a shared library if the output file
10658         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10659         # to its proper name (with version) after linking.
10660         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'
10661         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'
10662         # Commands to make compiler produce verbose output that lists
10663         # what "hidden" libraries, object files and flags are used when
10664         # linking a shared library.
10665         #
10666         # There doesn't appear to be a way to prevent this compiler from
10667         # explicitly linking system object files so we need to strip them
10668         # from the output so that they don't get included in the library
10669         # dependencies.
10670         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'
10671
10672         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10673         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10674
10675         # Archives containing C++ object files must be created using
10676         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10677         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10678         ;;
10679       icpc*)
10680         # Intel C++
10681         with_gnu_ld=yes
10682         # version 8.0 and above of icpc choke on multiply defined symbols
10683         # if we add $predep_objects and $postdep_objects, however 7.1 and
10684         # earlier do not add the objects themselves.
10685         case `$CC -V 2>&1` in
10686         *"Version 7."*)
10687           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10688           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'
10689           ;;
10690         *)  # Version 8.0 or newer
10691           tmp_idyn=
10692           case $host_cpu in
10693             ia64*) tmp_idyn=' -i_dynamic';;
10694           esac
10695           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10696           archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10697           ;;
10698         esac
10699         archive_cmds_need_lc_CXX=no
10700         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10701         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10702         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10703         ;;
10704       pgCC*)
10705         # Portland Group C++ compiler
10706         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10707         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
10708
10709         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10710         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10711         whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10712         ;;
10713       cxx*)
10714         # Compaq C++
10715         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10716         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'
10717
10718         runpath_var=LD_RUN_PATH
10719         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10720         hardcode_libdir_separator_CXX=:
10721
10722         # Commands to make compiler produce verbose output that lists
10723         # what "hidden" libraries, object files and flags are used when
10724         # linking a shared library.
10725         #
10726         # There doesn't appear to be a way to prevent this compiler from
10727         # explicitly linking system object files so we need to strip them
10728         # from the output so that they don't get included in the library
10729         # dependencies.
10730         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'
10731         ;;
10732     esac
10733     ;;
10734   lynxos*)
10735     # FIXME: insert proper C++ library support
10736     ld_shlibs_CXX=no
10737     ;;
10738   m88k*)
10739     # FIXME: insert proper C++ library support
10740     ld_shlibs_CXX=no
10741     ;;
10742   mvs*)
10743     case $cc_basename in
10744       cxx*)
10745         # FIXME: insert proper C++ library support
10746         ld_shlibs_CXX=no
10747         ;;
10748       *)
10749         # FIXME: insert proper C++ library support
10750         ld_shlibs_CXX=no
10751         ;;
10752     esac
10753     ;;
10754   netbsd*)
10755     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10756       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10757       wlarc=
10758       hardcode_libdir_flag_spec_CXX='-R$libdir'
10759       hardcode_direct_CXX=yes
10760       hardcode_shlibpath_var_CXX=no
10761     fi
10762     # Workaround some broken pre-1.5 toolchains
10763     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10764     ;;
10765   openbsd2*)
10766     # C++ shared libraries are fairly broken
10767     ld_shlibs_CXX=no
10768     ;;
10769   openbsd*)
10770     hardcode_direct_CXX=yes
10771     hardcode_shlibpath_var_CXX=no
10772     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10773     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10774     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10775       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10776       export_dynamic_flag_spec_CXX='${wl}-E'
10777       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10778     fi
10779     output_verbose_link_cmd='echo'
10780     ;;
10781   osf3*)
10782     case $cc_basename in
10783       KCC*)
10784         # Kuck and Associates, Inc. (KAI) C++ Compiler
10785
10786         # KCC will only create a shared library if the output file
10787         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10788         # to its proper name (with version) after linking.
10789         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'
10790
10791         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10792         hardcode_libdir_separator_CXX=:
10793
10794         # Archives containing C++ object files must be created using
10795         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10796         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10797
10798         ;;
10799       RCC*)
10800         # Rational C++ 2.4.1
10801         # FIXME: insert proper C++ library support
10802         ld_shlibs_CXX=no
10803         ;;
10804       cxx*)
10805         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10806         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10807
10808         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10809         hardcode_libdir_separator_CXX=:
10810
10811         # Commands to make compiler produce verbose output that lists
10812         # what "hidden" libraries, object files and flags are used when
10813         # linking a shared library.
10814         #
10815         # There doesn't appear to be a way to prevent this compiler from
10816         # explicitly linking system object files so we need to strip them
10817         # from the output so that they don't get included in the library
10818         # dependencies.
10819         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'
10820         ;;
10821       *)
10822         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10823           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10824           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10825
10826           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10827           hardcode_libdir_separator_CXX=:
10828
10829           # Commands to make compiler produce verbose output that lists
10830           # what "hidden" libraries, object files and flags are used when
10831           # linking a shared library.
10832           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10833
10834         else
10835           # FIXME: insert proper C++ library support
10836           ld_shlibs_CXX=no
10837         fi
10838         ;;
10839     esac
10840     ;;
10841   osf4* | osf5*)
10842     case $cc_basename in
10843       KCC*)
10844         # Kuck and Associates, Inc. (KAI) C++ Compiler
10845
10846         # KCC will only create a shared library if the output file
10847         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10848         # to its proper name (with version) after linking.
10849         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'
10850
10851         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10852         hardcode_libdir_separator_CXX=:
10853
10854         # Archives containing C++ object files must be created using
10855         # the KAI C++ compiler.
10856         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10857         ;;
10858       RCC*)
10859         # Rational C++ 2.4.1
10860         # FIXME: insert proper C++ library support
10861         ld_shlibs_CXX=no
10862         ;;
10863       cxx*)
10864         allow_undefined_flag_CXX=' -expect_unresolved \*'
10865         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10866         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10867           echo "-hidden">> $lib.exp~
10868           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
10869           $rm $lib.exp'
10870
10871         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10872         hardcode_libdir_separator_CXX=:
10873
10874         # Commands to make compiler produce verbose output that lists
10875         # what "hidden" libraries, object files and flags are used when
10876         # linking a shared library.
10877         #
10878         # There doesn't appear to be a way to prevent this compiler from
10879         # explicitly linking system object files so we need to strip them
10880         # from the output so that they don't get included in the library
10881         # dependencies.
10882         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'
10883         ;;
10884       *)
10885         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10886           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10887          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10888
10889           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10890           hardcode_libdir_separator_CXX=:
10891
10892           # Commands to make compiler produce verbose output that lists
10893           # what "hidden" libraries, object files and flags are used when
10894           # linking a shared library.
10895           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10896
10897         else
10898           # FIXME: insert proper C++ library support
10899           ld_shlibs_CXX=no
10900         fi
10901         ;;
10902     esac
10903     ;;
10904   psos*)
10905     # FIXME: insert proper C++ library support
10906     ld_shlibs_CXX=no
10907     ;;
10908   sunos4*)
10909     case $cc_basename in
10910       CC*)
10911         # Sun C++ 4.x
10912         # FIXME: insert proper C++ library support
10913         ld_shlibs_CXX=no
10914         ;;
10915       lcc*)
10916         # Lucid
10917         # FIXME: insert proper C++ library support
10918         ld_shlibs_CXX=no
10919         ;;
10920       *)
10921         # FIXME: insert proper C++ library support
10922         ld_shlibs_CXX=no
10923         ;;
10924     esac
10925     ;;
10926   solaris*)
10927     case $cc_basename in
10928       CC*)
10929         # Sun C++ 4.2, 5.x and Centerline C++
10930         archive_cmds_need_lc_CXX=yes
10931         no_undefined_flag_CXX=' -zdefs'
10932         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10933         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10934         $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10935
10936         hardcode_libdir_flag_spec_CXX='-R$libdir'
10937         hardcode_shlibpath_var_CXX=no
10938         case $host_os in
10939           solaris2.[0-5] | solaris2.[0-5].*) ;;
10940           *)
10941             # The C++ compiler is used as linker so we must use $wl
10942             # flag to pass the commands to the underlying system
10943             # linker. We must also pass each convience library through
10944             # to the system linker between allextract/defaultextract.
10945             # The C++ compiler will combine linker options so we
10946             # cannot just pass the convience library names through
10947             # without $wl.
10948             # Supported since Solaris 2.6 (maybe 2.5.1?)
10949             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
10950             ;;
10951         esac
10952         link_all_deplibs_CXX=yes
10953
10954         output_verbose_link_cmd='echo'
10955
10956         # Archives containing C++ object files must be created using
10957         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10958         # necessary to make sure instantiated templates are included
10959         # in the archive.
10960         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10961         ;;
10962       gcx*)
10963         # Green Hills C++ Compiler
10964         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10965
10966         # The C++ compiler must be used to create the archive.
10967         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10968         ;;
10969       *)
10970         # GNU C++ compiler with Solaris linker
10971         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10972           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10973           if $CC --version | grep -v '^2\.7' > /dev/null; then
10974             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10975             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10976                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10977
10978             # Commands to make compiler produce verbose output that lists
10979             # what "hidden" libraries, object files and flags are used when
10980             # linking a shared library.
10981             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10982           else
10983             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10984             # platform.
10985             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10986             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10987                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10988
10989             # Commands to make compiler produce verbose output that lists
10990             # what "hidden" libraries, object files and flags are used when
10991             # linking a shared library.
10992             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10993           fi
10994
10995           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10996         fi
10997         ;;
10998     esac
10999     ;;
11000   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11001     no_undefined_flag_CXX='${wl}-z,text'
11002     archive_cmds_need_lc_CXX=no
11003     hardcode_shlibpath_var_CXX=no
11004     runpath_var='LD_RUN_PATH'
11005
11006     case $cc_basename in
11007       CC*)
11008         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11009         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11010         ;;
11011       *)
11012         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11013         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11014         ;;
11015     esac
11016     ;;
11017   sysv5* | sco3.2v5* | sco5v6*)
11018     # Note: We can NOT use -z defs as we might desire, because we do not
11019     # link with -lc, and that would cause any symbols used from libc to
11020     # always be unresolved, which means just about no library would
11021     # ever link correctly.  If we're not using GNU ld we use -z text
11022     # though, which does catch some bad symbols but isn't as heavy-handed
11023     # as -z defs.
11024     # For security reasons, it is highly recommended that you always
11025     # use absolute paths for naming shared libraries, and exclude the
11026     # DT_RUNPATH tag from executables and libraries.  But doing so
11027     # requires that you compile everything twice, which is a pain.
11028     # So that behaviour is only enabled if SCOABSPATH is set to a
11029     # non-empty value in the environment.  Most likely only useful for
11030     # creating official distributions of packages.
11031     # This is a hack until libtool officially supports absolute path
11032     # names for shared libraries.
11033     no_undefined_flag_CXX='${wl}-z,text'
11034     allow_undefined_flag_CXX='${wl}-z,nodefs'
11035     archive_cmds_need_lc_CXX=no
11036     hardcode_shlibpath_var_CXX=no
11037     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11038     hardcode_libdir_separator_CXX=':'
11039     link_all_deplibs_CXX=yes
11040     export_dynamic_flag_spec_CXX='${wl}-Bexport'
11041     runpath_var='LD_RUN_PATH'
11042
11043     case $cc_basename in
11044       CC*)
11045         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11046         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11047         ;;
11048       *)
11049         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11050         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11051         ;;
11052     esac
11053     ;;
11054   tandem*)
11055     case $cc_basename in
11056       NCC*)
11057         # NonStop-UX NCC 3.20
11058         # FIXME: insert proper C++ library support
11059         ld_shlibs_CXX=no
11060         ;;
11061       *)
11062         # FIXME: insert proper C++ library support
11063         ld_shlibs_CXX=no
11064         ;;
11065     esac
11066     ;;
11067   vxworks*)
11068     # FIXME: insert proper C++ library support
11069     ld_shlibs_CXX=no
11070     ;;
11071   *)
11072     # FIXME: insert proper C++ library support
11073     ld_shlibs_CXX=no
11074     ;;
11075 esac
11076 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11077 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11078 test "$ld_shlibs_CXX" = no && can_build_shared=no
11079
11080 GCC_CXX="$GXX"
11081 LD_CXX="$LD"
11082
11083 ## CAVEAT EMPTOR:
11084 ## There is no encapsulation within the following macros, do not change
11085 ## the running order or otherwise move them around unless you know exactly
11086 ## what you are doing...
11087
11088 cat > conftest.$ac_ext <<EOF
11089 class Foo
11090 {
11091 public:
11092   Foo (void) { a = 0; }
11093 private:
11094   int a;
11095 };
11096 EOF
11097
11098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11099   (eval $ac_compile) 2>&5
11100   ac_status=$?
11101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102   (exit $ac_status); }; then
11103   # Parse the compiler output and extract the necessary
11104   # objects, libraries and library flags.
11105
11106   # Sentinel used to keep track of whether or not we are before
11107   # the conftest object file.
11108   pre_test_object_deps_done=no
11109
11110   # The `*' in the case matches for architectures that use `case' in
11111   # $output_verbose_cmd can trigger glob expansion during the loop
11112   # eval without this substitution.
11113   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11114
11115   for p in `eval $output_verbose_link_cmd`; do
11116     case $p in
11117
11118     -L* | -R* | -l*)
11119        # Some compilers place space between "-{L,R}" and the path.
11120        # Remove the space.
11121        if test $p = "-L" \
11122           || test $p = "-R"; then
11123          prev=$p
11124          continue
11125        else
11126          prev=
11127        fi
11128
11129        if test "$pre_test_object_deps_done" = no; then
11130          case $p in
11131          -L* | -R*)
11132            # Internal compiler library paths should come after those
11133            # provided the user.  The postdeps already come after the
11134            # user supplied libs so there is no need to process them.
11135            if test -z "$compiler_lib_search_path_CXX"; then
11136              compiler_lib_search_path_CXX="${prev}${p}"
11137            else
11138              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11139            fi
11140            ;;
11141          # The "-l" case would never come before the object being
11142          # linked, so don't bother handling this case.
11143          esac
11144        else
11145          if test -z "$postdeps_CXX"; then
11146            postdeps_CXX="${prev}${p}"
11147          else
11148            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11149          fi
11150        fi
11151        ;;
11152
11153     *.$objext)
11154        # This assumes that the test object file only shows up
11155        # once in the compiler output.
11156        if test "$p" = "conftest.$objext"; then
11157          pre_test_object_deps_done=yes
11158          continue
11159        fi
11160
11161        if test "$pre_test_object_deps_done" = no; then
11162          if test -z "$predep_objects_CXX"; then
11163            predep_objects_CXX="$p"
11164          else
11165            predep_objects_CXX="$predep_objects_CXX $p"
11166          fi
11167        else
11168          if test -z "$postdep_objects_CXX"; then
11169            postdep_objects_CXX="$p"
11170          else
11171            postdep_objects_CXX="$postdep_objects_CXX $p"
11172          fi
11173        fi
11174        ;;
11175
11176     *) ;; # Ignore the rest.
11177
11178     esac
11179   done
11180
11181   # Clean up.
11182   rm -f a.out a.exe
11183 else
11184   echo "libtool.m4: error: problem compiling CXX test program"
11185 fi
11186
11187 $rm -f confest.$objext
11188
11189 # PORTME: override above test on systems where it is broken
11190 case $host_os in
11191 interix3*)
11192   # Interix 3.5 installs completely hosed .la files for C++, so rather than
11193   # hack all around it, let's just trust "g++" to DTRT.
11194   predep_objects_CXX=
11195   postdep_objects_CXX=
11196   postdeps_CXX=
11197   ;;
11198
11199 solaris*)
11200   case $cc_basename in
11201   CC*)
11202     # Adding this requires a known-good setup of shared libraries for
11203     # Sun compiler versions before 5.6, else PIC objects from an old
11204     # archive will be linked into the output, leading to subtle bugs.
11205     postdeps_CXX='-lCstd -lCrun'
11206     ;;
11207   esac
11208   ;;
11209 esac
11210
11211
11212 case " $postdeps_CXX " in
11213 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11214 esac
11215
11216 lt_prog_compiler_wl_CXX=
11217 lt_prog_compiler_pic_CXX=
11218 lt_prog_compiler_static_CXX=
11219
11220 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11221 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11222  
11223   # C++ specific cases for pic, static, wl, etc.
11224   if test "$GXX" = yes; then
11225     lt_prog_compiler_wl_CXX='-Wl,'
11226     lt_prog_compiler_static_CXX='-static'
11227
11228     case $host_os in
11229     aix*)
11230       # All AIX code is PIC.
11231       if test "$host_cpu" = ia64; then
11232         # AIX 5 now supports IA64 processor
11233         lt_prog_compiler_static_CXX='-Bstatic'
11234       fi
11235       ;;
11236     amigaos*)
11237       # FIXME: we need at least 68020 code to build shared libraries, but
11238       # adding the `-m68020' flag to GCC prevents building anything better,
11239       # like `-m68040'.
11240       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11241       ;;
11242     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11243       # PIC is the default for these OSes.
11244       ;;
11245     mingw* | os2* | pw32*)
11246       # This hack is so that the source file can tell whether it is being
11247       # built for inclusion in a dll (and should export symbols for example).
11248       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11249       ;;
11250     darwin* | rhapsody*)
11251       # PIC is the default on this platform
11252       # Common symbols not allowed in MH_DYLIB files
11253       lt_prog_compiler_pic_CXX='-fno-common'
11254       ;;
11255     *djgpp*)
11256       # DJGPP does not support shared libraries at all
11257       lt_prog_compiler_pic_CXX=
11258       ;;
11259     interix3*)
11260       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11261       # Instead, we relocate shared libraries at runtime.
11262       ;;
11263     sysv4*MP*)
11264       if test -d /usr/nec; then
11265         lt_prog_compiler_pic_CXX=-Kconform_pic
11266       fi
11267       ;;
11268     hpux*)
11269       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11270       # not for PA HP-UX.
11271       case $host_cpu in
11272       hppa*64*|ia64*)
11273         ;;
11274       *)
11275         lt_prog_compiler_pic_CXX='-fPIC'
11276         ;;
11277       esac
11278       ;;
11279     *)
11280       lt_prog_compiler_pic_CXX='-fPIC'
11281       ;;
11282     esac
11283   else
11284     case $host_os in
11285       aix4* | aix5*)
11286         # All AIX code is PIC.
11287         if test "$host_cpu" = ia64; then
11288           # AIX 5 now supports IA64 processor
11289           lt_prog_compiler_static_CXX='-Bstatic'
11290         else
11291           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11292         fi
11293         ;;
11294       chorus*)
11295         case $cc_basename in
11296         cxch68*)
11297           # Green Hills C++ Compiler
11298           # _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"
11299           ;;
11300         esac
11301         ;;
11302        darwin*)
11303          # PIC is the default on this platform
11304          # Common symbols not allowed in MH_DYLIB files
11305          case $cc_basename in
11306            xlc*)
11307            lt_prog_compiler_pic_CXX='-qnocommon'
11308            lt_prog_compiler_wl_CXX='-Wl,'
11309            ;;
11310          esac
11311        ;;
11312       dgux*)
11313         case $cc_basename in
11314           ec++*)
11315             lt_prog_compiler_pic_CXX='-KPIC'
11316             ;;
11317           ghcx*)
11318             # Green Hills C++ Compiler
11319             lt_prog_compiler_pic_CXX='-pic'
11320             ;;
11321           *)
11322             ;;
11323         esac
11324         ;;
11325       freebsd* | kfreebsd*-gnu | dragonfly*)
11326         # FreeBSD uses GNU C++
11327         ;;
11328       hpux9* | hpux10* | hpux11*)
11329         case $cc_basename in
11330           CC*)
11331             lt_prog_compiler_wl_CXX='-Wl,'
11332             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11333             if test "$host_cpu" != ia64; then
11334               lt_prog_compiler_pic_CXX='+Z'
11335             fi
11336             ;;
11337           aCC*)
11338             lt_prog_compiler_wl_CXX='-Wl,'
11339             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11340             case $host_cpu in
11341             hppa*64*|ia64*)
11342               # +Z the default
11343               ;;
11344             *)
11345               lt_prog_compiler_pic_CXX='+Z'
11346               ;;
11347             esac
11348             ;;
11349           *)
11350             ;;
11351         esac
11352         ;;
11353       interix*)
11354         # This is c89, which is MS Visual C++ (no shared libs)
11355         # Anyone wants to do a port?
11356         ;;
11357       irix5* | irix6* | nonstopux*)
11358         case $cc_basename in
11359           CC*)
11360             lt_prog_compiler_wl_CXX='-Wl,'
11361             lt_prog_compiler_static_CXX='-non_shared'
11362             # CC pic flag -KPIC is the default.
11363             ;;
11364           *)
11365             ;;
11366         esac
11367         ;;
11368       linux*)
11369         case $cc_basename in
11370           KCC*)
11371             # KAI C++ Compiler
11372             lt_prog_compiler_wl_CXX='--backend -Wl,'
11373             lt_prog_compiler_pic_CXX='-fPIC'
11374             ;;
11375           icpc* | ecpc*)
11376             # Intel C++
11377             lt_prog_compiler_wl_CXX='-Wl,'
11378             lt_prog_compiler_pic_CXX='-KPIC'
11379             lt_prog_compiler_static_CXX='-static'
11380             ;;
11381           pgCC*)
11382             # Portland Group C++ compiler.
11383             lt_prog_compiler_wl_CXX='-Wl,'
11384             lt_prog_compiler_pic_CXX='-fpic'
11385             lt_prog_compiler_static_CXX='-Bstatic'
11386             ;;
11387           cxx*)
11388             # Compaq C++
11389             # Make sure the PIC flag is empty.  It appears that all Alpha
11390             # Linux and Compaq Tru64 Unix objects are PIC.
11391             lt_prog_compiler_pic_CXX=
11392             lt_prog_compiler_static_CXX='-non_shared'
11393             ;;
11394           *)
11395             ;;
11396         esac
11397         ;;
11398       lynxos*)
11399         ;;
11400       m88k*)
11401         ;;
11402       mvs*)
11403         case $cc_basename in
11404           cxx*)
11405             lt_prog_compiler_pic_CXX='-W c,exportall'
11406             ;;
11407           *)
11408             ;;
11409         esac
11410         ;;
11411       netbsd*)
11412         ;;
11413       osf3* | osf4* | osf5*)
11414         case $cc_basename in
11415           KCC*)
11416             lt_prog_compiler_wl_CXX='--backend -Wl,'
11417             ;;
11418           RCC*)
11419             # Rational C++ 2.4.1
11420             lt_prog_compiler_pic_CXX='-pic'
11421             ;;
11422           cxx*)
11423             # Digital/Compaq C++
11424             lt_prog_compiler_wl_CXX='-Wl,'
11425             # Make sure the PIC flag is empty.  It appears that all Alpha
11426             # Linux and Compaq Tru64 Unix objects are PIC.
11427             lt_prog_compiler_pic_CXX=
11428             lt_prog_compiler_static_CXX='-non_shared'
11429             ;;
11430           *)
11431             ;;
11432         esac
11433         ;;
11434       psos*)
11435         ;;
11436       solaris*)
11437         case $cc_basename in
11438           CC*)
11439             # Sun C++ 4.2, 5.x and Centerline C++
11440             lt_prog_compiler_pic_CXX='-KPIC'
11441             lt_prog_compiler_static_CXX='-Bstatic'
11442             lt_prog_compiler_wl_CXX='-Qoption ld '
11443             ;;
11444           gcx*)
11445             # Green Hills C++ Compiler
11446             lt_prog_compiler_pic_CXX='-PIC'
11447             ;;
11448           *)
11449             ;;
11450         esac
11451         ;;
11452       sunos4*)
11453         case $cc_basename in
11454           CC*)
11455             # Sun C++ 4.x
11456             lt_prog_compiler_pic_CXX='-pic'
11457             lt_prog_compiler_static_CXX='-Bstatic'
11458             ;;
11459           lcc*)
11460             # Lucid
11461             lt_prog_compiler_pic_CXX='-pic'
11462             ;;
11463           *)
11464             ;;
11465         esac
11466         ;;
11467       tandem*)
11468         case $cc_basename in
11469           NCC*)
11470             # NonStop-UX NCC 3.20
11471             lt_prog_compiler_pic_CXX='-KPIC'
11472             ;;
11473           *)
11474             ;;
11475         esac
11476         ;;
11477       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11478         case $cc_basename in
11479           CC*)
11480             lt_prog_compiler_wl_CXX='-Wl,'
11481             lt_prog_compiler_pic_CXX='-KPIC'
11482             lt_prog_compiler_static_CXX='-Bstatic'
11483             ;;
11484         esac
11485         ;;
11486       vxworks*)
11487         ;;
11488       *)
11489         lt_prog_compiler_can_build_shared_CXX=no
11490         ;;
11491     esac
11492   fi
11493
11494 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11495 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11496
11497 #
11498 # Check to make sure the PIC flag actually works.
11499 #
11500 if test -n "$lt_prog_compiler_pic_CXX"; then
11501   
11502 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11503 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11504 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11505   echo $ECHO_N "(cached) $ECHO_C" >&6
11506 else
11507   lt_prog_compiler_pic_works_CXX=no
11508   ac_outfile=conftest.$ac_objext
11509    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11510    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11511    # Insert the option either (1) after the last *FLAGS variable, or
11512    # (2) before a word containing "conftest.", or (3) at the end.
11513    # Note that $ac_compile itself does not contain backslashes and begins
11514    # with a dollar sign (not a hyphen), so the echo should work correctly.
11515    # The option is referenced via a variable to avoid confusing sed.
11516    lt_compile=`echo "$ac_compile" | $SED \
11517    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11518    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11519    -e 's:$: $lt_compiler_flag:'`
11520    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
11521    (eval "$lt_compile" 2>conftest.err)
11522    ac_status=$?
11523    cat conftest.err >&5
11524    echo "$as_me:__oline__: \$? = $ac_status" >&5
11525    if (exit $ac_status) && test -s "$ac_outfile"; then
11526      # The compiler can only warn and ignore the option if not recognized
11527      # So say no if there are warnings other than the usual output.
11528      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11529      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11530      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11531        lt_prog_compiler_pic_works_CXX=yes
11532      fi
11533    fi
11534    $rm conftest*
11535
11536 fi
11537 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11538 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11539
11540 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11541     case $lt_prog_compiler_pic_CXX in
11542      "" | " "*) ;;
11543      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11544      esac
11545 else
11546     lt_prog_compiler_pic_CXX=
11547      lt_prog_compiler_can_build_shared_CXX=no
11548 fi
11549
11550 fi
11551 case $host_os in
11552   # For platforms which do not support PIC, -DPIC is meaningless:
11553   *djgpp*)
11554     lt_prog_compiler_pic_CXX=
11555     ;;
11556   *)
11557     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11558     ;;
11559 esac
11560
11561 #
11562 # Check to make sure the static flag actually works.
11563 #
11564 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11565 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11566 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11567 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11568   echo $ECHO_N "(cached) $ECHO_C" >&6
11569 else
11570   lt_prog_compiler_static_works_CXX=no
11571    save_LDFLAGS="$LDFLAGS"
11572    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11573    printf "$lt_simple_link_test_code" > conftest.$ac_ext
11574    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11575      # The linker can only warn and ignore the option if not recognized
11576      # So say no if there are warnings
11577      if test -s conftest.err; then
11578        # Append any errors to the config.log.
11579        cat conftest.err 1>&5
11580        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11581        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11582        if diff conftest.exp conftest.er2 >/dev/null; then
11583          lt_prog_compiler_static_works_CXX=yes
11584        fi
11585      else
11586        lt_prog_compiler_static_works_CXX=yes
11587      fi
11588    fi
11589    $rm conftest*
11590    LDFLAGS="$save_LDFLAGS"
11591
11592 fi
11593 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11594 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11595
11596 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11597     :
11598 else
11599     lt_prog_compiler_static_CXX=
11600 fi
11601
11602
11603 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11604 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11605 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11606   echo $ECHO_N "(cached) $ECHO_C" >&6
11607 else
11608   lt_cv_prog_compiler_c_o_CXX=no
11609    $rm -r conftest 2>/dev/null
11610    mkdir conftest
11611    cd conftest
11612    mkdir out
11613    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11614
11615    lt_compiler_flag="-o out/conftest2.$ac_objext"
11616    # Insert the option either (1) after the last *FLAGS variable, or
11617    # (2) before a word containing "conftest.", or (3) at the end.
11618    # Note that $ac_compile itself does not contain backslashes and begins
11619    # with a dollar sign (not a hyphen), so the echo should work correctly.
11620    lt_compile=`echo "$ac_compile" | $SED \
11621    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11622    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11623    -e 's:$: $lt_compiler_flag:'`
11624    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
11625    (eval "$lt_compile" 2>out/conftest.err)
11626    ac_status=$?
11627    cat out/conftest.err >&5
11628    echo "$as_me:__oline__: \$? = $ac_status" >&5
11629    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11630    then
11631      # The compiler can only warn and ignore the option if not recognized
11632      # So say no if there are warnings
11633      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11634      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11635      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11636        lt_cv_prog_compiler_c_o_CXX=yes
11637      fi
11638    fi
11639    chmod u+w . 2>&5
11640    $rm conftest*
11641    # SGI C++ compiler will create directory out/ii_files/ for
11642    # template instantiation
11643    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11644    $rm out/* && rmdir out
11645    cd ..
11646    rmdir conftest
11647    $rm conftest*
11648
11649 fi
11650 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11651 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11652
11653
11654 hard_links="nottested"
11655 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11656   # do not overwrite the value of need_locks provided by the user
11657   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11658 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11659   hard_links=yes
11660   $rm conftest*
11661   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11662   touch conftest.a
11663   ln conftest.a conftest.b 2>&5 || hard_links=no
11664   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11665   echo "$as_me:$LINENO: result: $hard_links" >&5
11666 echo "${ECHO_T}$hard_links" >&6
11667   if test "$hard_links" = no; then
11668     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11669 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11670     need_locks=warn
11671   fi
11672 else
11673   need_locks=no
11674 fi
11675
11676 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11677 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11678
11679   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11680   case $host_os in
11681   aix4* | aix5*)
11682     # If we're using GNU nm, then we don't want the "-C" option.
11683     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11684     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11685       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'
11686     else
11687       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'
11688     fi
11689     ;;
11690   pw32*)
11691     export_symbols_cmds_CXX="$ltdll_cmds"
11692   ;;
11693   cygwin* | mingw*)
11694     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11695   ;;
11696   *)
11697     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11698   ;;
11699   esac
11700
11701 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11702 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11703 test "$ld_shlibs_CXX" = no && can_build_shared=no
11704
11705 #
11706 # Do we need to explicitly link libc?
11707 #
11708 case "x$archive_cmds_need_lc_CXX" in
11709 x|xyes)
11710   # Assume -lc should be added
11711   archive_cmds_need_lc_CXX=yes
11712
11713   if test "$enable_shared" = yes && test "$GCC" = yes; then
11714     case $archive_cmds_CXX in
11715     *'~'*)
11716       # FIXME: we may have to deal with multi-command sequences.
11717       ;;
11718     '$CC '*)
11719       # Test whether the compiler implicitly links with -lc since on some
11720       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11721       # to ld, don't add -lc before -lgcc.
11722       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11723 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11724       $rm conftest*
11725       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11726
11727       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11728   (eval $ac_compile) 2>&5
11729   ac_status=$?
11730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731   (exit $ac_status); } 2>conftest.err; then
11732         soname=conftest
11733         lib=conftest
11734         libobjs=conftest.$ac_objext
11735         deplibs=
11736         wl=$lt_prog_compiler_wl_CXX
11737         pic_flag=$lt_prog_compiler_pic_CXX
11738         compiler_flags=-v
11739         linker_flags=-v
11740         verstring=
11741         output_objdir=.
11742         libname=conftest
11743         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11744         allow_undefined_flag_CXX=
11745         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11746   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11747   ac_status=$?
11748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11749   (exit $ac_status); }
11750         then
11751           archive_cmds_need_lc_CXX=no
11752         else
11753           archive_cmds_need_lc_CXX=yes
11754         fi
11755         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11756       else
11757         cat conftest.err 1>&5
11758       fi
11759       $rm conftest*
11760       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11761 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11762       ;;
11763     esac
11764   fi
11765   ;;
11766 esac
11767
11768 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11769 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11770 library_names_spec=
11771 libname_spec='lib$name'
11772 soname_spec=
11773 shrext_cmds=".so"
11774 postinstall_cmds=
11775 postuninstall_cmds=
11776 finish_cmds=
11777 finish_eval=
11778 shlibpath_var=
11779 shlibpath_overrides_runpath=unknown
11780 version_type=none
11781 dynamic_linker="$host_os ld.so"
11782 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11783 if test "$GCC" = yes; then
11784   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11785   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11786     # if the path contains ";" then we assume it to be the separator
11787     # otherwise default to the standard path separator (i.e. ":") - it is
11788     # assumed that no part of a normal pathname contains ";" but that should
11789     # okay in the real world where ";" in dirpaths is itself problematic.
11790     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11791   else
11792     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11793   fi
11794 else
11795   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11796 fi
11797 need_lib_prefix=unknown
11798 hardcode_into_libs=no
11799
11800 # when you set need_version to no, make sure it does not cause -set_version
11801 # flags to be left without arguments
11802 need_version=unknown
11803
11804 case $host_os in
11805 aix3*)
11806   version_type=linux
11807   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11808   shlibpath_var=LIBPATH
11809
11810   # AIX 3 has no versioning support, so we append a major version to the name.
11811   soname_spec='${libname}${release}${shared_ext}$major'
11812   ;;
11813
11814 aix4* | aix5*)
11815   version_type=linux
11816   need_lib_prefix=no
11817   need_version=no
11818   hardcode_into_libs=yes
11819   if test "$host_cpu" = ia64; then
11820     # AIX 5 supports IA64
11821     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11822     shlibpath_var=LD_LIBRARY_PATH
11823   else
11824     # With GCC up to 2.95.x, collect2 would create an import file
11825     # for dependence libraries.  The import file would start with
11826     # the line `#! .'.  This would cause the generated library to
11827     # depend on `.', always an invalid library.  This was fixed in
11828     # development snapshots of GCC prior to 3.0.
11829     case $host_os in
11830       aix4 | aix4.[01] | aix4.[01].*)
11831       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11832            echo ' yes '
11833            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11834         :
11835       else
11836         can_build_shared=no
11837       fi
11838       ;;
11839     esac
11840     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11841     # soname into executable. Probably we can add versioning support to
11842     # collect2, so additional links can be useful in future.
11843     if test "$aix_use_runtimelinking" = yes; then
11844       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11845       # instead of lib<name>.a to let people know that these are not
11846       # typical AIX shared libraries.
11847       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11848     else
11849       # We preserve .a as extension for shared libraries through AIX4.2
11850       # and later when we are not doing run time linking.
11851       library_names_spec='${libname}${release}.a $libname.a'
11852       soname_spec='${libname}${release}${shared_ext}$major'
11853     fi
11854     shlibpath_var=LIBPATH
11855   fi
11856   ;;
11857
11858 amigaos*)
11859   library_names_spec='$libname.ixlibrary $libname.a'
11860   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11861   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'
11862   ;;
11863
11864 beos*)
11865   library_names_spec='${libname}${shared_ext}'
11866   dynamic_linker="$host_os ld.so"
11867   shlibpath_var=LIBRARY_PATH
11868   ;;
11869
11870 bsdi[45]*)
11871   version_type=linux
11872   need_version=no
11873   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11874   soname_spec='${libname}${release}${shared_ext}$major'
11875   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11876   shlibpath_var=LD_LIBRARY_PATH
11877   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11878   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11879   # the default ld.so.conf also contains /usr/contrib/lib and
11880   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11881   # libtool to hard-code these into programs
11882   ;;
11883
11884 cygwin* | mingw* | pw32*)
11885   version_type=windows
11886   shrext_cmds=".dll"
11887   need_version=no
11888   need_lib_prefix=no
11889
11890   case $GCC,$host_os in
11891   yes,cygwin* | yes,mingw* | yes,pw32*)
11892     library_names_spec='$libname.dll.a'
11893     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11894     postinstall_cmds='base_file=`basename \${file}`~
11895       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11896       dldir=$destdir/`dirname \$dlpath`~
11897       test -d \$dldir || mkdir -p \$dldir~
11898       $install_prog $dir/$dlname \$dldir/$dlname~
11899       chmod a+x \$dldir/$dlname'
11900     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11901       dlpath=$dir/\$dldll~
11902        $rm \$dlpath'
11903     shlibpath_overrides_runpath=yes
11904
11905     case $host_os in
11906     cygwin*)
11907       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11908       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11909       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11910       ;;
11911     mingw*)
11912       # MinGW DLLs use traditional 'lib' prefix
11913       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11914       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11915       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11916         # It is most probably a Windows format PATH printed by
11917         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11918         # path with ; separators, and with drive letters. We can handle the
11919         # drive letters (cygwin fileutils understands them), so leave them,
11920         # especially as we might pass files found there to a mingw objdump,
11921         # which wouldn't understand a cygwinified path. Ahh.
11922         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11923       else
11924         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11925       fi
11926       ;;
11927     pw32*)
11928       # pw32 DLLs use 'pw' prefix rather than 'lib'
11929       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11930       ;;
11931     esac
11932     ;;
11933
11934   *)
11935     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11936     ;;
11937   esac
11938   dynamic_linker='Win32 ld.exe'
11939   # FIXME: first we should search . and the directory the executable is in
11940   shlibpath_var=PATH
11941   ;;
11942
11943 darwin* | rhapsody*)
11944   dynamic_linker="$host_os dyld"
11945   version_type=darwin
11946   need_lib_prefix=no
11947   need_version=no
11948   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11949   soname_spec='${libname}${release}${major}$shared_ext'
11950   shlibpath_overrides_runpath=yes
11951   shlibpath_var=DYLD_LIBRARY_PATH
11952   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11953   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11954   if test "$GCC" = yes; then
11955     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"`
11956   else
11957     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11958   fi
11959   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11960   ;;
11961
11962 dgux*)
11963   version_type=linux
11964   need_lib_prefix=no
11965   need_version=no
11966   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11967   soname_spec='${libname}${release}${shared_ext}$major'
11968   shlibpath_var=LD_LIBRARY_PATH
11969   ;;
11970
11971 freebsd1*)
11972   dynamic_linker=no
11973   ;;
11974
11975 kfreebsd*-gnu)
11976   version_type=linux
11977   need_lib_prefix=no
11978   need_version=no
11979   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11980   soname_spec='${libname}${release}${shared_ext}$major'
11981   shlibpath_var=LD_LIBRARY_PATH
11982   shlibpath_overrides_runpath=no
11983   hardcode_into_libs=yes
11984   dynamic_linker='GNU ld.so'
11985   ;;
11986
11987 freebsd* | dragonfly*)
11988   # DragonFly does not have aout.  When/if they implement a new
11989   # versioning mechanism, adjust this.
11990   if test -x /usr/bin/objformat; then
11991     objformat=`/usr/bin/objformat`
11992   else
11993     case $host_os in
11994     freebsd[123]*) objformat=aout ;;
11995     *) objformat=elf ;;
11996     esac
11997   fi
11998   version_type=freebsd-$objformat
11999   case $version_type in
12000     freebsd-elf*)
12001       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12002       need_version=no
12003       need_lib_prefix=no
12004       ;;
12005     freebsd-*)
12006       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12007       need_version=yes
12008       ;;
12009   esac
12010   shlibpath_var=LD_LIBRARY_PATH
12011   case $host_os in
12012   freebsd2*)
12013     shlibpath_overrides_runpath=yes
12014     ;;
12015   freebsd3.[01]* | freebsdelf3.[01]*)
12016     shlibpath_overrides_runpath=yes
12017     hardcode_into_libs=yes
12018     ;;
12019   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12020   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12021     shlibpath_overrides_runpath=no
12022     hardcode_into_libs=yes
12023     ;;
12024   freebsd*) # from 4.6 on
12025     shlibpath_overrides_runpath=yes
12026     hardcode_into_libs=yes
12027     ;;
12028   esac
12029   ;;
12030
12031 gnu*)
12032   version_type=linux
12033   need_lib_prefix=no
12034   need_version=no
12035   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12036   soname_spec='${libname}${release}${shared_ext}$major'
12037   shlibpath_var=LD_LIBRARY_PATH
12038   hardcode_into_libs=yes
12039   ;;
12040
12041 hpux9* | hpux10* | hpux11*)
12042   # Give a soname corresponding to the major version so that dld.sl refuses to
12043   # link against other versions.
12044   version_type=sunos
12045   need_lib_prefix=no
12046   need_version=no
12047   case $host_cpu in
12048   ia64*)
12049     shrext_cmds='.so'
12050     hardcode_into_libs=yes
12051     dynamic_linker="$host_os dld.so"
12052     shlibpath_var=LD_LIBRARY_PATH
12053     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12054     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12055     soname_spec='${libname}${release}${shared_ext}$major'
12056     if test "X$HPUX_IA64_MODE" = X32; then
12057       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12058     else
12059       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12060     fi
12061     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12062     ;;
12063    hppa*64*)
12064      shrext_cmds='.sl'
12065      hardcode_into_libs=yes
12066      dynamic_linker="$host_os dld.sl"
12067      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12068      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12069      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12070      soname_spec='${libname}${release}${shared_ext}$major'
12071      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12072      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12073      ;;
12074    *)
12075     shrext_cmds='.sl'
12076     dynamic_linker="$host_os dld.sl"
12077     shlibpath_var=SHLIB_PATH
12078     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12079     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12080     soname_spec='${libname}${release}${shared_ext}$major'
12081     ;;
12082   esac
12083   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12084   postinstall_cmds='chmod 555 $lib'
12085   ;;
12086
12087 interix3*)
12088   version_type=linux
12089   need_lib_prefix=no
12090   need_version=no
12091   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12092   soname_spec='${libname}${release}${shared_ext}$major'
12093   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12094   shlibpath_var=LD_LIBRARY_PATH
12095   shlibpath_overrides_runpath=no
12096   hardcode_into_libs=yes
12097   ;;
12098
12099 irix5* | irix6* | nonstopux*)
12100   case $host_os in
12101     nonstopux*) version_type=nonstopux ;;
12102     *)
12103         if test "$lt_cv_prog_gnu_ld" = yes; then
12104                 version_type=linux
12105         else
12106                 version_type=irix
12107         fi ;;
12108   esac
12109   need_lib_prefix=no
12110   need_version=no
12111   soname_spec='${libname}${release}${shared_ext}$major'
12112   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12113   case $host_os in
12114   irix5* | nonstopux*)
12115     libsuff= shlibsuff=
12116     ;;
12117   *)
12118     case $LD in # libtool.m4 will add one of these switches to LD
12119     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12120       libsuff= shlibsuff= libmagic=32-bit;;
12121     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12122       libsuff=32 shlibsuff=N32 libmagic=N32;;
12123     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12124       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12125     *) libsuff= shlibsuff= libmagic=never-match;;
12126     esac
12127     ;;
12128   esac
12129   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12130   shlibpath_overrides_runpath=no
12131   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12132   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12133   hardcode_into_libs=yes
12134   ;;
12135
12136 # No shared lib support for Linux oldld, aout, or coff.
12137 linux*oldld* | linux*aout* | linux*coff*)
12138   dynamic_linker=no
12139   ;;
12140
12141 # This must be Linux ELF.
12142 linux*)
12143   version_type=linux
12144   need_lib_prefix=no
12145   need_version=no
12146   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12147   soname_spec='${libname}${release}${shared_ext}$major'
12148   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12149   shlibpath_var=LD_LIBRARY_PATH
12150   shlibpath_overrides_runpath=no
12151   # This implies no fast_install, which is unacceptable.
12152   # Some rework will be needed to allow for fast_install
12153   # before this can be enabled.
12154   hardcode_into_libs=yes
12155
12156   # Append ld.so.conf contents to the search path
12157   if test -f /etc/ld.so.conf; then
12158     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12159     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12160   fi
12161
12162   # We used to test for /lib/ld.so.1 and disable shared libraries on
12163   # powerpc, because MkLinux only supported shared libraries with the
12164   # GNU dynamic linker.  Since this was broken with cross compilers,
12165   # most powerpc-linux boxes support dynamic linking these days and
12166   # people can always --disable-shared, the test was removed, and we
12167   # assume the GNU/Linux dynamic linker is in use.
12168   dynamic_linker='GNU/Linux ld.so'
12169   ;;
12170
12171 knetbsd*-gnu)
12172   version_type=linux
12173   need_lib_prefix=no
12174   need_version=no
12175   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12176   soname_spec='${libname}${release}${shared_ext}$major'
12177   shlibpath_var=LD_LIBRARY_PATH
12178   shlibpath_overrides_runpath=no
12179   hardcode_into_libs=yes
12180   dynamic_linker='GNU ld.so'
12181   ;;
12182
12183 netbsd*)
12184   version_type=sunos
12185   need_lib_prefix=no
12186   need_version=no
12187   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12188     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12189     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12190     dynamic_linker='NetBSD (a.out) ld.so'
12191   else
12192     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12193     soname_spec='${libname}${release}${shared_ext}$major'
12194     dynamic_linker='NetBSD ld.elf_so'
12195   fi
12196   shlibpath_var=LD_LIBRARY_PATH
12197   shlibpath_overrides_runpath=yes
12198   hardcode_into_libs=yes
12199   ;;
12200
12201 newsos6)
12202   version_type=linux
12203   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12204   shlibpath_var=LD_LIBRARY_PATH
12205   shlibpath_overrides_runpath=yes
12206   ;;
12207
12208 nto-qnx*)
12209   version_type=linux
12210   need_lib_prefix=no
12211   need_version=no
12212   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12213   soname_spec='${libname}${release}${shared_ext}$major'
12214   shlibpath_var=LD_LIBRARY_PATH
12215   shlibpath_overrides_runpath=yes
12216   ;;
12217
12218 openbsd*)
12219   version_type=sunos
12220   sys_lib_dlsearch_path_spec="/usr/lib"
12221   need_lib_prefix=no
12222   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12223   case $host_os in
12224     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12225     *)                         need_version=no  ;;
12226   esac
12227   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12228   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12229   shlibpath_var=LD_LIBRARY_PATH
12230   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12231     case $host_os in
12232       openbsd2.[89] | openbsd2.[89].*)
12233         shlibpath_overrides_runpath=no
12234         ;;
12235       *)
12236         shlibpath_overrides_runpath=yes
12237         ;;
12238       esac
12239   else
12240     shlibpath_overrides_runpath=yes
12241   fi
12242   ;;
12243
12244 os2*)
12245   libname_spec='$name'
12246   shrext_cmds=".dll"
12247   need_lib_prefix=no
12248   library_names_spec='$libname${shared_ext} $libname.a'
12249   dynamic_linker='OS/2 ld.exe'
12250   shlibpath_var=LIBPATH
12251   ;;
12252
12253 osf3* | osf4* | osf5*)
12254   version_type=osf
12255   need_lib_prefix=no
12256   need_version=no
12257   soname_spec='${libname}${release}${shared_ext}$major'
12258   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12259   shlibpath_var=LD_LIBRARY_PATH
12260   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12261   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12262   ;;
12263
12264 solaris*)
12265   version_type=linux
12266   need_lib_prefix=no
12267   need_version=no
12268   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12269   soname_spec='${libname}${release}${shared_ext}$major'
12270   shlibpath_var=LD_LIBRARY_PATH
12271   shlibpath_overrides_runpath=yes
12272   hardcode_into_libs=yes
12273   # ldd complains unless libraries are executable
12274   postinstall_cmds='chmod +x $lib'
12275   ;;
12276
12277 sunos4*)
12278   version_type=sunos
12279   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12280   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12281   shlibpath_var=LD_LIBRARY_PATH
12282   shlibpath_overrides_runpath=yes
12283   if test "$with_gnu_ld" = yes; then
12284     need_lib_prefix=no
12285   fi
12286   need_version=yes
12287   ;;
12288
12289 sysv4 | sysv4.3*)
12290   version_type=linux
12291   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12292   soname_spec='${libname}${release}${shared_ext}$major'
12293   shlibpath_var=LD_LIBRARY_PATH
12294   case $host_vendor in
12295     sni)
12296       shlibpath_overrides_runpath=no
12297       need_lib_prefix=no
12298       export_dynamic_flag_spec='${wl}-Blargedynsym'
12299       runpath_var=LD_RUN_PATH
12300       ;;
12301     siemens)
12302       need_lib_prefix=no
12303       ;;
12304     motorola)
12305       need_lib_prefix=no
12306       need_version=no
12307       shlibpath_overrides_runpath=no
12308       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12309       ;;
12310   esac
12311   ;;
12312
12313 sysv4*MP*)
12314   if test -d /usr/nec ;then
12315     version_type=linux
12316     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12317     soname_spec='$libname${shared_ext}.$major'
12318     shlibpath_var=LD_LIBRARY_PATH
12319   fi
12320   ;;
12321
12322 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12323   version_type=freebsd-elf
12324   need_lib_prefix=no
12325   need_version=no
12326   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12327   soname_spec='${libname}${release}${shared_ext}$major'
12328   shlibpath_var=LD_LIBRARY_PATH
12329   hardcode_into_libs=yes
12330   if test "$with_gnu_ld" = yes; then
12331     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12332     shlibpath_overrides_runpath=no
12333   else
12334     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12335     shlibpath_overrides_runpath=yes
12336     case $host_os in
12337       sco3.2v5*)
12338         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12339         ;;
12340     esac
12341   fi
12342   sys_lib_dlsearch_path_spec='/usr/lib'
12343   ;;
12344
12345 uts4*)
12346   version_type=linux
12347   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12348   soname_spec='${libname}${release}${shared_ext}$major'
12349   shlibpath_var=LD_LIBRARY_PATH
12350   ;;
12351
12352 *)
12353   dynamic_linker=no
12354   ;;
12355 esac
12356 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12357 echo "${ECHO_T}$dynamic_linker" >&6
12358 test "$dynamic_linker" = no && can_build_shared=no
12359
12360 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12361 if test "$GCC" = yes; then
12362   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12363 fi
12364
12365 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12366 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12367 hardcode_action_CXX=
12368 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12369    test -n "$runpath_var_CXX" || \
12370    test "X$hardcode_automatic_CXX" = "Xyes" ; then
12371
12372   # We can hardcode non-existant directories.
12373   if test "$hardcode_direct_CXX" != no &&
12374      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12375      # have to relink, otherwise we might link with an installed library
12376      # when we should be linking with a yet-to-be-installed one
12377      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12378      test "$hardcode_minus_L_CXX" != no; then
12379     # Linking always hardcodes the temporary library directory.
12380     hardcode_action_CXX=relink
12381   else
12382     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12383     hardcode_action_CXX=immediate
12384   fi
12385 else
12386   # We cannot hardcode anything, or else we can only hardcode existing
12387   # directories.
12388   hardcode_action_CXX=unsupported
12389 fi
12390 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12391 echo "${ECHO_T}$hardcode_action_CXX" >&6
12392
12393 if test "$hardcode_action_CXX" = relink; then
12394   # Fast installation is not supported
12395   enable_fast_install=no
12396 elif test "$shlibpath_overrides_runpath" = yes ||
12397      test "$enable_shared" = no; then
12398   # Fast installation is not necessary
12399   enable_fast_install=needless
12400 fi
12401
12402
12403 # The else clause should only fire when bootstrapping the
12404 # libtool distribution, otherwise you forgot to ship ltmain.sh
12405 # with your package, and you will get complaints that there are
12406 # no rules to generate ltmain.sh.
12407 if test -f "$ltmain"; then
12408   # See if we are running on zsh, and set the options which allow our commands through
12409   # without removal of \ escapes.
12410   if test -n "${ZSH_VERSION+set}" ; then
12411     setopt NO_GLOB_SUBST
12412   fi
12413   # Now quote all the things that may contain metacharacters while being
12414   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12415   # variables and quote the copies for generation of the libtool script.
12416   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12417     SED SHELL STRIP \
12418     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12419     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12420     deplibs_check_method reload_flag reload_cmds need_locks \
12421     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12422     lt_cv_sys_global_symbol_to_c_name_address \
12423     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12424     old_postinstall_cmds old_postuninstall_cmds \
12425     compiler_CXX \
12426     CC_CXX \
12427     LD_CXX \
12428     lt_prog_compiler_wl_CXX \
12429     lt_prog_compiler_pic_CXX \
12430     lt_prog_compiler_static_CXX \
12431     lt_prog_compiler_no_builtin_flag_CXX \
12432     export_dynamic_flag_spec_CXX \
12433     thread_safe_flag_spec_CXX \
12434     whole_archive_flag_spec_CXX \
12435     enable_shared_with_static_runtimes_CXX \
12436     old_archive_cmds_CXX \
12437     old_archive_from_new_cmds_CXX \
12438     predep_objects_CXX \
12439     postdep_objects_CXX \
12440     predeps_CXX \
12441     postdeps_CXX \
12442     compiler_lib_search_path_CXX \
12443     archive_cmds_CXX \
12444     archive_expsym_cmds_CXX \
12445     postinstall_cmds_CXX \
12446     postuninstall_cmds_CXX \
12447     old_archive_from_expsyms_cmds_CXX \
12448     allow_undefined_flag_CXX \
12449     no_undefined_flag_CXX \
12450     export_symbols_cmds_CXX \
12451     hardcode_libdir_flag_spec_CXX \
12452     hardcode_libdir_flag_spec_ld_CXX \
12453     hardcode_libdir_separator_CXX \
12454     hardcode_automatic_CXX \
12455     module_cmds_CXX \
12456     module_expsym_cmds_CXX \
12457     lt_cv_prog_compiler_c_o_CXX \
12458     exclude_expsyms_CXX \
12459     include_expsyms_CXX; do
12460
12461     case $var in
12462     old_archive_cmds_CXX | \
12463     old_archive_from_new_cmds_CXX | \
12464     archive_cmds_CXX | \
12465     archive_expsym_cmds_CXX | \
12466     module_cmds_CXX | \
12467     module_expsym_cmds_CXX | \
12468     old_archive_from_expsyms_cmds_CXX | \
12469     export_symbols_cmds_CXX | \
12470     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12471     postinstall_cmds | postuninstall_cmds | \
12472     old_postinstall_cmds | old_postuninstall_cmds | \
12473     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12474       # Double-quote double-evaled strings.
12475       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12476       ;;
12477     *)
12478       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12479       ;;
12480     esac
12481   done
12482
12483   case $lt_echo in
12484   *'\$0 --fallback-echo"')
12485     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12486     ;;
12487   esac
12488
12489 cfgfile="$ofile"
12490
12491   cat <<__EOF__ >> "$cfgfile"
12492 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12493
12494 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12495
12496 # Shell to use when invoking shell scripts.
12497 SHELL=$lt_SHELL
12498
12499 # Whether or not to build shared libraries.
12500 build_libtool_libs=$enable_shared
12501
12502 # Whether or not to build static libraries.
12503 build_old_libs=$enable_static
12504
12505 # Whether or not to add -lc for building shared libraries.
12506 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12507
12508 # Whether or not to disallow shared libs when runtime libs are static
12509 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12510
12511 # Whether or not to optimize for fast installation.
12512 fast_install=$enable_fast_install
12513
12514 # The host system.
12515 host_alias=$host_alias
12516 host=$host
12517 host_os=$host_os
12518
12519 # The build system.
12520 build_alias=$build_alias
12521 build=$build
12522 build_os=$build_os
12523
12524 # An echo program that does not interpret backslashes.
12525 echo=$lt_echo
12526
12527 # The archiver.
12528 AR=$lt_AR
12529 AR_FLAGS=$lt_AR_FLAGS
12530
12531 # A C compiler.
12532 LTCC=$lt_LTCC
12533
12534 # LTCC compiler flags.
12535 LTCFLAGS=$lt_LTCFLAGS
12536
12537 # A language-specific compiler.
12538 CC=$lt_compiler_CXX
12539
12540 # Is the compiler the GNU C compiler?
12541 with_gcc=$GCC_CXX
12542
12543 # An ERE matcher.
12544 EGREP=$lt_EGREP
12545
12546 # The linker used to build libraries.
12547 LD=$lt_LD_CXX
12548
12549 # Whether we need hard or soft links.
12550 LN_S=$lt_LN_S
12551
12552 # A BSD-compatible nm program.
12553 NM=$lt_NM
12554
12555 # A symbol stripping program
12556 STRIP=$lt_STRIP
12557
12558 # Used to examine libraries when file_magic_cmd begins "file"
12559 MAGIC_CMD=$MAGIC_CMD
12560
12561 # Used on cygwin: DLL creation program.
12562 DLLTOOL="$DLLTOOL"
12563
12564 # Used on cygwin: object dumper.
12565 OBJDUMP="$OBJDUMP"
12566
12567 # Used on cygwin: assembler.
12568 AS="$AS"
12569
12570 # The name of the directory that contains temporary libtool files.
12571 objdir=$objdir
12572
12573 # How to create reloadable object files.
12574 reload_flag=$lt_reload_flag
12575 reload_cmds=$lt_reload_cmds
12576
12577 # How to pass a linker flag through the compiler.
12578 wl=$lt_lt_prog_compiler_wl_CXX
12579
12580 # Object file suffix (normally "o").
12581 objext="$ac_objext"
12582
12583 # Old archive suffix (normally "a").
12584 libext="$libext"
12585
12586 # Shared library suffix (normally ".so").
12587 shrext_cmds='$shrext_cmds'
12588
12589 # Executable file suffix (normally "").
12590 exeext="$exeext"
12591
12592 # Additional compiler flags for building library objects.
12593 pic_flag=$lt_lt_prog_compiler_pic_CXX
12594 pic_mode=$pic_mode
12595
12596 # What is the maximum length of a command?
12597 max_cmd_len=$lt_cv_sys_max_cmd_len
12598
12599 # Does compiler simultaneously support -c and -o options?
12600 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12601
12602 # Must we lock files when doing compilation?
12603 need_locks=$lt_need_locks
12604
12605 # Do we need the lib prefix for modules?
12606 need_lib_prefix=$need_lib_prefix
12607
12608 # Do we need a version for libraries?
12609 need_version=$need_version
12610
12611 # Whether dlopen is supported.
12612 dlopen_support=$enable_dlopen
12613
12614 # Whether dlopen of programs is supported.
12615 dlopen_self=$enable_dlopen_self
12616
12617 # Whether dlopen of statically linked programs is supported.
12618 dlopen_self_static=$enable_dlopen_self_static
12619
12620 # Compiler flag to prevent dynamic linking.
12621 link_static_flag=$lt_lt_prog_compiler_static_CXX
12622
12623 # Compiler flag to turn off builtin functions.
12624 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12625
12626 # Compiler flag to allow reflexive dlopens.
12627 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12628
12629 # Compiler flag to generate shared objects directly from archives.
12630 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12631
12632 # Compiler flag to generate thread-safe objects.
12633 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12634
12635 # Library versioning type.
12636 version_type=$version_type
12637
12638 # Format of library name prefix.
12639 libname_spec=$lt_libname_spec
12640
12641 # List of archive names.  First name is the real one, the rest are links.
12642 # The last name is the one that the linker finds with -lNAME.
12643 library_names_spec=$lt_library_names_spec
12644
12645 # The coded name of the library, if different from the real name.
12646 soname_spec=$lt_soname_spec
12647
12648 # Commands used to build and install an old-style archive.
12649 RANLIB=$lt_RANLIB
12650 old_archive_cmds=$lt_old_archive_cmds_CXX
12651 old_postinstall_cmds=$lt_old_postinstall_cmds
12652 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12653
12654 # Create an old-style archive from a shared archive.
12655 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12656
12657 # Create a temporary old-style archive to link instead of a shared archive.
12658 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12659
12660 # Commands used to build and install a shared archive.
12661 archive_cmds=$lt_archive_cmds_CXX
12662 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12663 postinstall_cmds=$lt_postinstall_cmds
12664 postuninstall_cmds=$lt_postuninstall_cmds
12665
12666 # Commands used to build a loadable module (assumed same as above if empty)
12667 module_cmds=$lt_module_cmds_CXX
12668 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12669
12670 # Commands to strip libraries.
12671 old_striplib=$lt_old_striplib
12672 striplib=$lt_striplib
12673
12674 # Dependencies to place before the objects being linked to create a
12675 # shared library.
12676 predep_objects=$lt_predep_objects_CXX
12677
12678 # Dependencies to place after the objects being linked to create a
12679 # shared library.
12680 postdep_objects=$lt_postdep_objects_CXX
12681
12682 # Dependencies to place before the objects being linked to create a
12683 # shared library.
12684 predeps=$lt_predeps_CXX
12685
12686 # Dependencies to place after the objects being linked to create a
12687 # shared library.
12688 postdeps=$lt_postdeps_CXX
12689
12690 # The library search path used internally by the compiler when linking
12691 # a shared library.
12692 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12693
12694 # Method to check whether dependent libraries are shared objects.
12695 deplibs_check_method=$lt_deplibs_check_method
12696
12697 # Command to use when deplibs_check_method == file_magic.
12698 file_magic_cmd=$lt_file_magic_cmd
12699
12700 # Flag that allows shared libraries with undefined symbols to be built.
12701 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12702
12703 # Flag that forces no undefined symbols.
12704 no_undefined_flag=$lt_no_undefined_flag_CXX
12705
12706 # Commands used to finish a libtool library installation in a directory.
12707 finish_cmds=$lt_finish_cmds
12708
12709 # Same as above, but a single script fragment to be evaled but not shown.
12710 finish_eval=$lt_finish_eval
12711
12712 # Take the output of nm and produce a listing of raw symbols and C names.
12713 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12714
12715 # Transform the output of nm in a proper C declaration
12716 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12717
12718 # Transform the output of nm in a C name address pair
12719 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12720
12721 # This is the shared library runtime path variable.
12722 runpath_var=$runpath_var
12723
12724 # This is the shared library path variable.
12725 shlibpath_var=$shlibpath_var
12726
12727 # Is shlibpath searched before the hard-coded library search path?
12728 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12729
12730 # How to hardcode a shared library path into an executable.
12731 hardcode_action=$hardcode_action_CXX
12732
12733 # Whether we should hardcode library paths into libraries.
12734 hardcode_into_libs=$hardcode_into_libs
12735
12736 # Flag to hardcode \$libdir into a binary during linking.
12737 # This must work even if \$libdir does not exist.
12738 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12739
12740 # If ld is used when linking, flag to hardcode \$libdir into
12741 # a binary during linking. This must work even if \$libdir does
12742 # not exist.
12743 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12744
12745 # Whether we need a single -rpath flag with a separated argument.
12746 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12747
12748 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12749 # resulting binary.
12750 hardcode_direct=$hardcode_direct_CXX
12751
12752 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12753 # resulting binary.
12754 hardcode_minus_L=$hardcode_minus_L_CXX
12755
12756 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12757 # the resulting binary.
12758 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12759
12760 # Set to yes if building a shared library automatically hardcodes DIR into the library
12761 # and all subsequent libraries and executables linked against it.
12762 hardcode_automatic=$hardcode_automatic_CXX
12763
12764 # Variables whose values should be saved in libtool wrapper scripts and
12765 # restored at relink time.
12766 variables_saved_for_relink="$variables_saved_for_relink"
12767
12768 # Whether libtool must link a program against all its dependency libraries.
12769 link_all_deplibs=$link_all_deplibs_CXX
12770
12771 # Compile-time system search path for libraries
12772 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12773
12774 # Run-time system search path for libraries
12775 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12776
12777 # Fix the shell variable \$srcfile for the compiler.
12778 fix_srcfile_path="$fix_srcfile_path_CXX"
12779
12780 # Set to yes if exported symbols are required.
12781 always_export_symbols=$always_export_symbols_CXX
12782
12783 # The commands to list exported symbols.
12784 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12785
12786 # The commands to extract the exported symbol list from a shared archive.
12787 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12788
12789 # Symbols that should not be listed in the preloaded symbols.
12790 exclude_expsyms=$lt_exclude_expsyms_CXX
12791
12792 # Symbols that must always be exported.
12793 include_expsyms=$lt_include_expsyms_CXX
12794
12795 # ### END LIBTOOL TAG CONFIG: $tagname
12796
12797 __EOF__
12798
12799
12800 else
12801   # If there is no Makefile yet, we rely on a make rule to execute
12802   # `config.status --recheck' to rerun these tests and create the
12803   # libtool script then.
12804   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12805   if test -f "$ltmain_in"; then
12806     test -f Makefile && make "$ltmain"
12807   fi
12808 fi
12809
12810
12811 ac_ext=c
12812 ac_cpp='$CPP $CPPFLAGS'
12813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12816
12817 CC=$lt_save_CC
12818 LDCXX=$LD
12819 LD=$lt_save_LD
12820 GCC=$lt_save_GCC
12821 with_gnu_ldcxx=$with_gnu_ld
12822 with_gnu_ld=$lt_save_with_gnu_ld
12823 lt_cv_path_LDCXX=$lt_cv_path_LD
12824 lt_cv_path_LD=$lt_save_path_LD
12825 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12826 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12827
12828         else
12829           tagname=""
12830         fi
12831         ;;
12832
12833       F77)
12834         if test -n "$F77" && test "X$F77" != "Xno"; then
12835           
12836 ac_ext=f
12837 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12838 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12839 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12840
12841
12842 archive_cmds_need_lc_F77=no
12843 allow_undefined_flag_F77=
12844 always_export_symbols_F77=no
12845 archive_expsym_cmds_F77=
12846 export_dynamic_flag_spec_F77=
12847 hardcode_direct_F77=no
12848 hardcode_libdir_flag_spec_F77=
12849 hardcode_libdir_flag_spec_ld_F77=
12850 hardcode_libdir_separator_F77=
12851 hardcode_minus_L_F77=no
12852 hardcode_automatic_F77=no
12853 module_cmds_F77=
12854 module_expsym_cmds_F77=
12855 link_all_deplibs_F77=unknown
12856 old_archive_cmds_F77=$old_archive_cmds
12857 no_undefined_flag_F77=
12858 whole_archive_flag_spec_F77=
12859 enable_shared_with_static_runtimes_F77=no
12860
12861 # Source file extension for f77 test sources.
12862 ac_ext=f
12863
12864 # Object file extension for compiled f77 test sources.
12865 objext=o
12866 objext_F77=$objext
12867
12868 # Code to be used in simple compile tests
12869 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12870
12871 # Code to be used in simple link tests
12872 lt_simple_link_test_code="      program t\n      end\n"
12873
12874 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12875
12876 # If no C compiler was specified, use CC.
12877 LTCC=${LTCC-"$CC"}
12878
12879 # If no C compiler flags were specified, use CFLAGS.
12880 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12881
12882 # Allow CC to be a program name with arguments.
12883 compiler=$CC
12884
12885
12886 # save warnings/boilerplate of simple test code
12887 ac_outfile=conftest.$ac_objext
12888 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12889 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12890 _lt_compiler_boilerplate=`cat conftest.err`
12891 $rm conftest*
12892
12893 ac_outfile=conftest.$ac_objext
12894 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12895 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12896 _lt_linker_boilerplate=`cat conftest.err`
12897 $rm conftest*
12898
12899
12900 # Allow CC to be a program name with arguments.
12901 lt_save_CC="$CC"
12902 CC=${F77-"f77"}
12903 compiler=$CC
12904 compiler_F77=$CC
12905 for cc_temp in $compiler""; do
12906   case $cc_temp in
12907     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12908     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12909     \-*) ;;
12910     *) break;;
12911   esac
12912 done
12913 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12914
12915
12916 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12917 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12918 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12919 echo "${ECHO_T}$can_build_shared" >&6
12920
12921 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12922 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12923 test "$can_build_shared" = "no" && enable_shared=no
12924
12925 # On AIX, shared libraries and static libraries use the same namespace, and
12926 # are all built from PIC.
12927 case $host_os in
12928 aix3*)
12929   test "$enable_shared" = yes && enable_static=no
12930   if test -n "$RANLIB"; then
12931     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12932     postinstall_cmds='$RANLIB $lib'
12933   fi
12934   ;;
12935 aix4* | aix5*)
12936   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12937     test "$enable_shared" = yes && enable_static=no
12938   fi
12939   ;;
12940 esac
12941 echo "$as_me:$LINENO: result: $enable_shared" >&5
12942 echo "${ECHO_T}$enable_shared" >&6
12943
12944 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12945 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12946 # Make sure either enable_shared or enable_static is yes.
12947 test "$enable_shared" = yes || enable_static=yes
12948 echo "$as_me:$LINENO: result: $enable_static" >&5
12949 echo "${ECHO_T}$enable_static" >&6
12950
12951 GCC_F77="$G77"
12952 LD_F77="$LD"
12953
12954 lt_prog_compiler_wl_F77=
12955 lt_prog_compiler_pic_F77=
12956 lt_prog_compiler_static_F77=
12957
12958 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12959 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12960  
12961   if test "$GCC" = yes; then
12962     lt_prog_compiler_wl_F77='-Wl,'
12963     lt_prog_compiler_static_F77='-static'
12964
12965     case $host_os in
12966       aix*)
12967       # All AIX code is PIC.
12968       if test "$host_cpu" = ia64; then
12969         # AIX 5 now supports IA64 processor
12970         lt_prog_compiler_static_F77='-Bstatic'
12971       fi
12972       ;;
12973
12974     amigaos*)
12975       # FIXME: we need at least 68020 code to build shared libraries, but
12976       # adding the `-m68020' flag to GCC prevents building anything better,
12977       # like `-m68040'.
12978       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12979       ;;
12980
12981     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12982       # PIC is the default for these OSes.
12983       ;;
12984
12985     mingw* | pw32* | os2*)
12986       # This hack is so that the source file can tell whether it is being
12987       # built for inclusion in a dll (and should export symbols for example).
12988       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12989       ;;
12990
12991     darwin* | rhapsody*)
12992       # PIC is the default on this platform
12993       # Common symbols not allowed in MH_DYLIB files
12994       lt_prog_compiler_pic_F77='-fno-common'
12995       ;;
12996
12997     interix3*)
12998       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12999       # Instead, we relocate shared libraries at runtime.
13000       ;;
13001
13002     msdosdjgpp*)
13003       # Just because we use GCC doesn't mean we suddenly get shared libraries
13004       # on systems that don't support them.
13005       lt_prog_compiler_can_build_shared_F77=no
13006       enable_shared=no
13007       ;;
13008
13009     sysv4*MP*)
13010       if test -d /usr/nec; then
13011         lt_prog_compiler_pic_F77=-Kconform_pic
13012       fi
13013       ;;
13014
13015     hpux*)
13016       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13017       # not for PA HP-UX.
13018       case $host_cpu in
13019       hppa*64*|ia64*)
13020         # +Z the default
13021         ;;
13022       *)
13023         lt_prog_compiler_pic_F77='-fPIC'
13024         ;;
13025       esac
13026       ;;
13027
13028     *)
13029       lt_prog_compiler_pic_F77='-fPIC'
13030       ;;
13031     esac
13032   else
13033     # PORTME Check for flag to pass linker flags through the system compiler.
13034     case $host_os in
13035     aix*)
13036       lt_prog_compiler_wl_F77='-Wl,'
13037       if test "$host_cpu" = ia64; then
13038         # AIX 5 now supports IA64 processor
13039         lt_prog_compiler_static_F77='-Bstatic'
13040       else
13041         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13042       fi
13043       ;;
13044       darwin*)
13045         # PIC is the default on this platform
13046         # Common symbols not allowed in MH_DYLIB files
13047        case $cc_basename in
13048          xlc*)
13049          lt_prog_compiler_pic_F77='-qnocommon'
13050          lt_prog_compiler_wl_F77='-Wl,'
13051          ;;
13052        esac
13053        ;;
13054
13055     mingw* | pw32* | os2*)
13056       # This hack is so that the source file can tell whether it is being
13057       # built for inclusion in a dll (and should export symbols for example).
13058       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13059       ;;
13060
13061     hpux9* | hpux10* | hpux11*)
13062       lt_prog_compiler_wl_F77='-Wl,'
13063       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13064       # not for PA HP-UX.
13065       case $host_cpu in
13066       hppa*64*|ia64*)
13067         # +Z the default
13068         ;;
13069       *)
13070         lt_prog_compiler_pic_F77='+Z'
13071         ;;
13072       esac
13073       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13074       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13075       ;;
13076
13077     irix5* | irix6* | nonstopux*)
13078       lt_prog_compiler_wl_F77='-Wl,'
13079       # PIC (with -KPIC) is the default.
13080       lt_prog_compiler_static_F77='-non_shared'
13081       ;;
13082
13083     newsos6)
13084       lt_prog_compiler_pic_F77='-KPIC'
13085       lt_prog_compiler_static_F77='-Bstatic'
13086       ;;
13087
13088     linux*)
13089       case $cc_basename in
13090       icc* | ecc*)
13091         lt_prog_compiler_wl_F77='-Wl,'
13092         lt_prog_compiler_pic_F77='-KPIC'
13093         lt_prog_compiler_static_F77='-static'
13094         ;;
13095       pgcc* | pgf77* | pgf90* | pgf95*)
13096         # Portland Group compilers (*not* the Pentium gcc compiler,
13097         # which looks to be a dead project)
13098         lt_prog_compiler_wl_F77='-Wl,'
13099         lt_prog_compiler_pic_F77='-fpic'
13100         lt_prog_compiler_static_F77='-Bstatic'
13101         ;;
13102       ccc*)
13103         lt_prog_compiler_wl_F77='-Wl,'
13104         # All Alpha code is PIC.
13105         lt_prog_compiler_static_F77='-non_shared'
13106         ;;
13107       esac
13108       ;;
13109
13110     osf3* | osf4* | osf5*)
13111       lt_prog_compiler_wl_F77='-Wl,'
13112       # All OSF/1 code is PIC.
13113       lt_prog_compiler_static_F77='-non_shared'
13114       ;;
13115
13116     solaris*)
13117       lt_prog_compiler_pic_F77='-KPIC'
13118       lt_prog_compiler_static_F77='-Bstatic'
13119       case $cc_basename in
13120       f77* | f90* | f95*)
13121         lt_prog_compiler_wl_F77='-Qoption ld ';;
13122       *)
13123         lt_prog_compiler_wl_F77='-Wl,';;
13124       esac
13125       ;;
13126
13127     sunos4*)
13128       lt_prog_compiler_wl_F77='-Qoption ld '
13129       lt_prog_compiler_pic_F77='-PIC'
13130       lt_prog_compiler_static_F77='-Bstatic'
13131       ;;
13132
13133     sysv4 | sysv4.2uw2* | sysv4.3*)
13134       lt_prog_compiler_wl_F77='-Wl,'
13135       lt_prog_compiler_pic_F77='-KPIC'
13136       lt_prog_compiler_static_F77='-Bstatic'
13137       ;;
13138
13139     sysv4*MP*)
13140       if test -d /usr/nec ;then
13141         lt_prog_compiler_pic_F77='-Kconform_pic'
13142         lt_prog_compiler_static_F77='-Bstatic'
13143       fi
13144       ;;
13145
13146     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13147       lt_prog_compiler_wl_F77='-Wl,'
13148       lt_prog_compiler_pic_F77='-KPIC'
13149       lt_prog_compiler_static_F77='-Bstatic'
13150       ;;
13151
13152     unicos*)
13153       lt_prog_compiler_wl_F77='-Wl,'
13154       lt_prog_compiler_can_build_shared_F77=no
13155       ;;
13156
13157     uts4*)
13158       lt_prog_compiler_pic_F77='-pic'
13159       lt_prog_compiler_static_F77='-Bstatic'
13160       ;;
13161
13162     *)
13163       lt_prog_compiler_can_build_shared_F77=no
13164       ;;
13165     esac
13166   fi
13167
13168 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13169 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13170
13171 #
13172 # Check to make sure the PIC flag actually works.
13173 #
13174 if test -n "$lt_prog_compiler_pic_F77"; then
13175   
13176 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13177 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13178 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13179   echo $ECHO_N "(cached) $ECHO_C" >&6
13180 else
13181   lt_prog_compiler_pic_works_F77=no
13182   ac_outfile=conftest.$ac_objext
13183    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13184    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13185    # Insert the option either (1) after the last *FLAGS variable, or
13186    # (2) before a word containing "conftest.", or (3) at the end.
13187    # Note that $ac_compile itself does not contain backslashes and begins
13188    # with a dollar sign (not a hyphen), so the echo should work correctly.
13189    # The option is referenced via a variable to avoid confusing sed.
13190    lt_compile=`echo "$ac_compile" | $SED \
13191    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13192    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13193    -e 's:$: $lt_compiler_flag:'`
13194    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13195    (eval "$lt_compile" 2>conftest.err)
13196    ac_status=$?
13197    cat conftest.err >&5
13198    echo "$as_me:__oline__: \$? = $ac_status" >&5
13199    if (exit $ac_status) && test -s "$ac_outfile"; then
13200      # The compiler can only warn and ignore the option if not recognized
13201      # So say no if there are warnings other than the usual output.
13202      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13203      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13204      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13205        lt_prog_compiler_pic_works_F77=yes
13206      fi
13207    fi
13208    $rm conftest*
13209
13210 fi
13211 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13212 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13213
13214 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13215     case $lt_prog_compiler_pic_F77 in
13216      "" | " "*) ;;
13217      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13218      esac
13219 else
13220     lt_prog_compiler_pic_F77=
13221      lt_prog_compiler_can_build_shared_F77=no
13222 fi
13223
13224 fi
13225 case $host_os in
13226   # For platforms which do not support PIC, -DPIC is meaningless:
13227   *djgpp*)
13228     lt_prog_compiler_pic_F77=
13229     ;;
13230   *)
13231     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13232     ;;
13233 esac
13234
13235 #
13236 # Check to make sure the static flag actually works.
13237 #
13238 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13239 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13240 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13241 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13242   echo $ECHO_N "(cached) $ECHO_C" >&6
13243 else
13244   lt_prog_compiler_static_works_F77=no
13245    save_LDFLAGS="$LDFLAGS"
13246    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13247    printf "$lt_simple_link_test_code" > conftest.$ac_ext
13248    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13249      # The linker can only warn and ignore the option if not recognized
13250      # So say no if there are warnings
13251      if test -s conftest.err; then
13252        # Append any errors to the config.log.
13253        cat conftest.err 1>&5
13254        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13255        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13256        if diff conftest.exp conftest.er2 >/dev/null; then
13257          lt_prog_compiler_static_works_F77=yes
13258        fi
13259      else
13260        lt_prog_compiler_static_works_F77=yes
13261      fi
13262    fi
13263    $rm conftest*
13264    LDFLAGS="$save_LDFLAGS"
13265
13266 fi
13267 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13268 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13269
13270 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13271     :
13272 else
13273     lt_prog_compiler_static_F77=
13274 fi
13275
13276
13277 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13278 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13279 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13280   echo $ECHO_N "(cached) $ECHO_C" >&6
13281 else
13282   lt_cv_prog_compiler_c_o_F77=no
13283    $rm -r conftest 2>/dev/null
13284    mkdir conftest
13285    cd conftest
13286    mkdir out
13287    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13288
13289    lt_compiler_flag="-o out/conftest2.$ac_objext"
13290    # Insert the option either (1) after the last *FLAGS variable, or
13291    # (2) before a word containing "conftest.", or (3) at the end.
13292    # Note that $ac_compile itself does not contain backslashes and begins
13293    # with a dollar sign (not a hyphen), so the echo should work correctly.
13294    lt_compile=`echo "$ac_compile" | $SED \
13295    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13296    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13297    -e 's:$: $lt_compiler_flag:'`
13298    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13299    (eval "$lt_compile" 2>out/conftest.err)
13300    ac_status=$?
13301    cat out/conftest.err >&5
13302    echo "$as_me:__oline__: \$? = $ac_status" >&5
13303    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13304    then
13305      # The compiler can only warn and ignore the option if not recognized
13306      # So say no if there are warnings
13307      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13308      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13309      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13310        lt_cv_prog_compiler_c_o_F77=yes
13311      fi
13312    fi
13313    chmod u+w . 2>&5
13314    $rm conftest*
13315    # SGI C++ compiler will create directory out/ii_files/ for
13316    # template instantiation
13317    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13318    $rm out/* && rmdir out
13319    cd ..
13320    rmdir conftest
13321    $rm conftest*
13322
13323 fi
13324 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13325 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13326
13327
13328 hard_links="nottested"
13329 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13330   # do not overwrite the value of need_locks provided by the user
13331   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13332 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13333   hard_links=yes
13334   $rm conftest*
13335   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13336   touch conftest.a
13337   ln conftest.a conftest.b 2>&5 || hard_links=no
13338   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13339   echo "$as_me:$LINENO: result: $hard_links" >&5
13340 echo "${ECHO_T}$hard_links" >&6
13341   if test "$hard_links" = no; then
13342     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13343 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13344     need_locks=warn
13345   fi
13346 else
13347   need_locks=no
13348 fi
13349
13350 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13351 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13352
13353   runpath_var=
13354   allow_undefined_flag_F77=
13355   enable_shared_with_static_runtimes_F77=no
13356   archive_cmds_F77=
13357   archive_expsym_cmds_F77=
13358   old_archive_From_new_cmds_F77=
13359   old_archive_from_expsyms_cmds_F77=
13360   export_dynamic_flag_spec_F77=
13361   whole_archive_flag_spec_F77=
13362   thread_safe_flag_spec_F77=
13363   hardcode_libdir_flag_spec_F77=
13364   hardcode_libdir_flag_spec_ld_F77=
13365   hardcode_libdir_separator_F77=
13366   hardcode_direct_F77=no
13367   hardcode_minus_L_F77=no
13368   hardcode_shlibpath_var_F77=unsupported
13369   link_all_deplibs_F77=unknown
13370   hardcode_automatic_F77=no
13371   module_cmds_F77=
13372   module_expsym_cmds_F77=
13373   always_export_symbols_F77=no
13374   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13375   # include_expsyms should be a list of space-separated symbols to be *always*
13376   # included in the symbol list
13377   include_expsyms_F77=
13378   # exclude_expsyms can be an extended regexp of symbols to exclude
13379   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13380   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13381   # as well as any symbol that contains `d'.
13382   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13383   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13384   # platforms (ab)use it in PIC code, but their linkers get confused if
13385   # the symbol is explicitly referenced.  Since portable code cannot
13386   # rely on this symbol name, it's probably fine to never include it in
13387   # preloaded symbol tables.
13388   extract_expsyms_cmds=
13389   # Just being paranoid about ensuring that cc_basename is set.
13390   for cc_temp in $compiler""; do
13391   case $cc_temp in
13392     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13393     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13394     \-*) ;;
13395     *) break;;
13396   esac
13397 done
13398 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13399
13400   case $host_os in
13401   cygwin* | mingw* | pw32*)
13402     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13403     # When not using gcc, we currently assume that we are using
13404     # Microsoft Visual C++.
13405     if test "$GCC" != yes; then
13406       with_gnu_ld=no
13407     fi
13408     ;;
13409   interix*)
13410     # we just hope/assume this is gcc and not c89 (= MSVC++)
13411     with_gnu_ld=yes
13412     ;;
13413   openbsd*)
13414     with_gnu_ld=no
13415     ;;
13416   esac
13417
13418   ld_shlibs_F77=yes
13419   if test "$with_gnu_ld" = yes; then
13420     # If archive_cmds runs LD, not CC, wlarc should be empty
13421     wlarc='${wl}'
13422
13423     # Set some defaults for GNU ld with shared library support. These
13424     # are reset later if shared libraries are not supported. Putting them
13425     # here allows them to be overridden if necessary.
13426     runpath_var=LD_RUN_PATH
13427     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13428     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13429     # ancient GNU ld didn't support --whole-archive et. al.
13430     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13431         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13432       else
13433         whole_archive_flag_spec_F77=
13434     fi
13435     supports_anon_versioning=no
13436     case `$LD -v 2>/dev/null` in
13437       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13438       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13439       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13440       *\ 2.11.*) ;; # other 2.11 versions
13441       *) supports_anon_versioning=yes ;;
13442     esac
13443
13444     # See if GNU ld supports shared libraries.
13445     case $host_os in
13446     aix3* | aix4* | aix5*)
13447       # On AIX/PPC, the GNU linker is very broken
13448       if test "$host_cpu" != ia64; then
13449         ld_shlibs_F77=no
13450         cat <<EOF 1>&2
13451
13452 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13453 *** to be unable to reliably create shared libraries on AIX.
13454 *** Therefore, libtool is disabling shared libraries support.  If you
13455 *** really care for shared libraries, you may want to modify your PATH
13456 *** so that a non-GNU linker is found, and then restart.
13457
13458 EOF
13459       fi
13460       ;;
13461
13462     amigaos*)
13463       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)'
13464       hardcode_libdir_flag_spec_F77='-L$libdir'
13465       hardcode_minus_L_F77=yes
13466
13467       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13468       # that the semantics of dynamic libraries on AmigaOS, at least up
13469       # to version 4, is to share data among multiple programs linked
13470       # with the same dynamic library.  Since this doesn't match the
13471       # behavior of shared libraries on other platforms, we can't use
13472       # them.
13473       ld_shlibs_F77=no
13474       ;;
13475
13476     beos*)
13477       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13478         allow_undefined_flag_F77=unsupported
13479         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13480         # support --undefined.  This deserves some investigation.  FIXME
13481         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13482       else
13483         ld_shlibs_F77=no
13484       fi
13485       ;;
13486
13487     cygwin* | mingw* | pw32*)
13488       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13489       # as there is no search path for DLLs.
13490       hardcode_libdir_flag_spec_F77='-L$libdir'
13491       allow_undefined_flag_F77=unsupported
13492       always_export_symbols_F77=no
13493       enable_shared_with_static_runtimes_F77=yes
13494       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13495
13496       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13497         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13498         # If the export-symbols file already is a .def file (1st line
13499         # is EXPORTS), use it as is; otherwise, prepend...
13500         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13501           cp $export_symbols $output_objdir/$soname.def;
13502         else
13503           echo EXPORTS > $output_objdir/$soname.def;
13504           cat $export_symbols >> $output_objdir/$soname.def;
13505         fi~
13506         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13507       else
13508         ld_shlibs_F77=no
13509       fi
13510       ;;
13511
13512     interix3*)
13513       hardcode_direct_F77=no
13514       hardcode_shlibpath_var_F77=no
13515       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13516       export_dynamic_flag_spec_F77='${wl}-E'
13517       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13518       # Instead, shared libraries are loaded at an image base (0x10000000 by
13519       # default) and relocated if they conflict, which is a slow very memory
13520       # consuming and fragmenting process.  To avoid this, we pick a random,
13521       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13522       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13523       archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13524       archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13525       ;;
13526
13527     linux*)
13528       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13529         tmp_addflag=
13530         case $cc_basename,$host_cpu in
13531         pgcc*)                          # Portland Group C compiler
13532           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13533           tmp_addflag=' $pic_flag'
13534           ;;
13535         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
13536           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13537           tmp_addflag=' $pic_flag -Mnomain' ;;
13538         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
13539           tmp_addflag=' -i_dynamic' ;;
13540         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
13541           tmp_addflag=' -i_dynamic -nofor_main' ;;
13542         ifc* | ifort*)                  # Intel Fortran compiler
13543           tmp_addflag=' -nofor_main' ;;
13544         esac
13545         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13546
13547         if test $supports_anon_versioning = yes; then
13548           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13549   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13550   $echo "local: *; };" >> $output_objdir/$libname.ver~
13551           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13552         fi
13553       else
13554         ld_shlibs_F77=no
13555       fi
13556       ;;
13557
13558     netbsd*)
13559       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13560         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13561         wlarc=
13562       else
13563         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13564         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13565       fi
13566       ;;
13567
13568     solaris*)
13569       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13570         ld_shlibs_F77=no
13571         cat <<EOF 1>&2
13572
13573 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13574 *** create shared libraries on Solaris systems.  Therefore, libtool
13575 *** is disabling shared libraries support.  We urge you to upgrade GNU
13576 *** binutils to release 2.9.1 or newer.  Another option is to modify
13577 *** your PATH or compiler configuration so that the native linker is
13578 *** used, and then restart.
13579
13580 EOF
13581       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13582         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13583         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13584       else
13585         ld_shlibs_F77=no
13586       fi
13587       ;;
13588
13589     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13590       case `$LD -v 2>&1` in
13591         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 
13592         ld_shlibs_F77=no
13593         cat <<_LT_EOF 1>&2
13594
13595 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13596 *** reliably create shared libraries on SCO systems.  Therefore, libtool
13597 *** is disabling shared libraries support.  We urge you to upgrade GNU
13598 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13599 *** your PATH or compiler configuration so that the native linker is
13600 *** used, and then restart.
13601
13602 _LT_EOF
13603         ;;
13604         *)
13605           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13606             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13607             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13608             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13609           else
13610             ld_shlibs_F77=no
13611           fi
13612         ;;
13613       esac
13614       ;;
13615
13616     sunos4*)
13617       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13618       wlarc=
13619       hardcode_direct_F77=yes
13620       hardcode_shlibpath_var_F77=no
13621       ;;
13622
13623     *)
13624       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13625         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13626         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13627       else
13628         ld_shlibs_F77=no
13629       fi
13630       ;;
13631     esac
13632
13633     if test "$ld_shlibs_F77" = no; then
13634       runpath_var=
13635       hardcode_libdir_flag_spec_F77=
13636       export_dynamic_flag_spec_F77=
13637       whole_archive_flag_spec_F77=
13638     fi
13639   else
13640     # PORTME fill in a description of your system's linker (not GNU ld)
13641     case $host_os in
13642     aix3*)
13643       allow_undefined_flag_F77=unsupported
13644       always_export_symbols_F77=yes
13645       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'
13646       # Note: this linker hardcodes the directories in LIBPATH if there
13647       # are no directories specified by -L.
13648       hardcode_minus_L_F77=yes
13649       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13650         # Neither direct hardcoding nor static linking is supported with a
13651         # broken collect2.
13652         hardcode_direct_F77=unsupported
13653       fi
13654       ;;
13655
13656     aix4* | aix5*)
13657       if test "$host_cpu" = ia64; then
13658         # On IA64, the linker does run time linking by default, so we don't
13659         # have to do anything special.
13660         aix_use_runtimelinking=no
13661         exp_sym_flag='-Bexport'
13662         no_entry_flag=""
13663       else
13664         # If we're using GNU nm, then we don't want the "-C" option.
13665         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13666         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13667           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'
13668         else
13669           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'
13670         fi
13671         aix_use_runtimelinking=no
13672
13673         # Test if we are trying to use run time linking or normal
13674         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13675         # need to do runtime linking.
13676         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13677           for ld_flag in $LDFLAGS; do
13678           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13679             aix_use_runtimelinking=yes
13680             break
13681           fi
13682           done
13683           ;;
13684         esac
13685
13686         exp_sym_flag='-bexport'
13687         no_entry_flag='-bnoentry'
13688       fi
13689
13690       # When large executables or shared objects are built, AIX ld can
13691       # have problems creating the table of contents.  If linking a library
13692       # or program results in "error TOC overflow" add -mminimal-toc to
13693       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13694       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13695
13696       archive_cmds_F77=''
13697       hardcode_direct_F77=yes
13698       hardcode_libdir_separator_F77=':'
13699       link_all_deplibs_F77=yes
13700
13701       if test "$GCC" = yes; then
13702         case $host_os in aix4.[012]|aix4.[012].*)
13703         # We only want to do this on AIX 4.2 and lower, the check
13704         # below for broken collect2 doesn't work under 4.3+
13705           collect2name=`${CC} -print-prog-name=collect2`
13706           if test -f "$collect2name" && \
13707            strings "$collect2name" | grep resolve_lib_name >/dev/null
13708           then
13709           # We have reworked collect2
13710           hardcode_direct_F77=yes
13711           else
13712           # We have old collect2
13713           hardcode_direct_F77=unsupported
13714           # It fails to find uninstalled libraries when the uninstalled
13715           # path is not listed in the libpath.  Setting hardcode_minus_L
13716           # to unsupported forces relinking
13717           hardcode_minus_L_F77=yes
13718           hardcode_libdir_flag_spec_F77='-L$libdir'
13719           hardcode_libdir_separator_F77=
13720           fi
13721           ;;
13722         esac
13723         shared_flag='-shared'
13724         if test "$aix_use_runtimelinking" = yes; then
13725           shared_flag="$shared_flag "'${wl}-G'
13726         fi
13727       else
13728         # not using gcc
13729         if test "$host_cpu" = ia64; then
13730         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13731         # chokes on -Wl,-G. The following line is correct:
13732           shared_flag='-G'
13733         else
13734           if test "$aix_use_runtimelinking" = yes; then
13735             shared_flag='${wl}-G'
13736           else
13737             shared_flag='${wl}-bM:SRE'
13738           fi
13739         fi
13740       fi
13741
13742       # It seems that -bexpall does not export symbols beginning with
13743       # underscore (_), so it is better to generate a list of symbols to export.
13744       always_export_symbols_F77=yes
13745       if test "$aix_use_runtimelinking" = yes; then
13746         # Warning - without using the other runtime loading flags (-brtl),
13747         # -berok will link without error, but may produce a broken library.
13748         allow_undefined_flag_F77='-berok'
13749        # Determine the default libpath from the value encoded in an empty executable.
13750        cat >conftest.$ac_ext <<_ACEOF
13751       program main
13752
13753       end
13754 _ACEOF
13755 rm -f conftest.$ac_objext conftest$ac_exeext
13756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13757   (eval $ac_link) 2>conftest.er1
13758   ac_status=$?
13759   grep -v '^ *+' conftest.er1 >conftest.err
13760   rm -f conftest.er1
13761   cat conftest.err >&5
13762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13763   (exit $ac_status); } &&
13764          { ac_try='test -z "$ac_f77_werror_flag"
13765                          || test ! -s conftest.err'
13766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13767   (eval $ac_try) 2>&5
13768   ac_status=$?
13769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13770   (exit $ac_status); }; } &&
13771          { ac_try='test -s conftest$ac_exeext'
13772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13773   (eval $ac_try) 2>&5
13774   ac_status=$?
13775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776   (exit $ac_status); }; }; then
13777   
13778 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13779 }'`
13780 # Check for a 64-bit object if we didn't find anything.
13781 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; }
13782 }'`; fi
13783 else
13784   echo "$as_me: failed program was:" >&5
13785 sed 's/^/| /' conftest.$ac_ext >&5
13786
13787 fi
13788 rm -f conftest.err conftest.$ac_objext \
13789       conftest$ac_exeext conftest.$ac_ext
13790 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13791
13792        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13793         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13794        else
13795         if test "$host_cpu" = ia64; then
13796           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13797           allow_undefined_flag_F77="-z nodefs"
13798           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
13799         else
13800          # Determine the default libpath from the value encoded in an empty executable.
13801          cat >conftest.$ac_ext <<_ACEOF
13802       program main
13803
13804       end
13805 _ACEOF
13806 rm -f conftest.$ac_objext conftest$ac_exeext
13807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13808   (eval $ac_link) 2>conftest.er1
13809   ac_status=$?
13810   grep -v '^ *+' conftest.er1 >conftest.err
13811   rm -f conftest.er1
13812   cat conftest.err >&5
13813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814   (exit $ac_status); } &&
13815          { ac_try='test -z "$ac_f77_werror_flag"
13816                          || test ! -s conftest.err'
13817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13818   (eval $ac_try) 2>&5
13819   ac_status=$?
13820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13821   (exit $ac_status); }; } &&
13822          { ac_try='test -s conftest$ac_exeext'
13823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13824   (eval $ac_try) 2>&5
13825   ac_status=$?
13826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827   (exit $ac_status); }; }; then
13828   
13829 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13830 }'`
13831 # Check for a 64-bit object if we didn't find anything.
13832 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; }
13833 }'`; fi
13834 else
13835   echo "$as_me: failed program was:" >&5
13836 sed 's/^/| /' conftest.$ac_ext >&5
13837
13838 fi
13839 rm -f conftest.err conftest.$ac_objext \
13840       conftest$ac_exeext conftest.$ac_ext
13841 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13842
13843          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13844           # Warning - without using the other run time loading flags,
13845           # -berok will link without error, but may produce a broken library.
13846           no_undefined_flag_F77=' ${wl}-bernotok'
13847           allow_undefined_flag_F77=' ${wl}-berok'
13848           # Exported symbols can be pulled into shared objects from archives
13849           whole_archive_flag_spec_F77='$convenience'
13850           archive_cmds_need_lc_F77=yes
13851           # This is similar to how AIX traditionally builds its shared libraries.
13852           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13853         fi
13854       fi
13855       ;;
13856
13857     amigaos*)
13858       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)'
13859       hardcode_libdir_flag_spec_F77='-L$libdir'
13860       hardcode_minus_L_F77=yes
13861       # see comment about different semantics on the GNU ld section
13862       ld_shlibs_F77=no
13863       ;;
13864
13865     bsdi[45]*)
13866       export_dynamic_flag_spec_F77=-rdynamic
13867       ;;
13868
13869     cygwin* | mingw* | pw32*)
13870       # When not using gcc, we currently assume that we are using
13871       # Microsoft Visual C++.
13872       # hardcode_libdir_flag_spec is actually meaningless, as there is
13873       # no search path for DLLs.
13874       hardcode_libdir_flag_spec_F77=' '
13875       allow_undefined_flag_F77=unsupported
13876       # Tell ltmain to make .lib files, not .a files.
13877       libext=lib
13878       # Tell ltmain to make .dll files, not .so files.
13879       shrext_cmds=".dll"
13880       # FIXME: Setting linknames here is a bad hack.
13881       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13882       # The linker will automatically build a .lib file if we build a DLL.
13883       old_archive_From_new_cmds_F77='true'
13884       # FIXME: Should let the user specify the lib program.
13885       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13886       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
13887       enable_shared_with_static_runtimes_F77=yes
13888       ;;
13889
13890     darwin* | rhapsody*)
13891       case $host_os in
13892         rhapsody* | darwin1.[012])
13893          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13894          ;;
13895        *) # Darwin 1.3 on
13896          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13897            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13898          else
13899            case ${MACOSX_DEPLOYMENT_TARGET} in
13900              10.[012])
13901                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13902                ;;
13903              10.*)
13904                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13905                ;;
13906            esac
13907          fi
13908          ;;
13909       esac
13910       archive_cmds_need_lc_F77=no
13911       hardcode_direct_F77=no
13912       hardcode_automatic_F77=yes
13913       hardcode_shlibpath_var_F77=unsupported
13914       whole_archive_flag_spec_F77=''
13915       link_all_deplibs_F77=yes
13916     if test "$GCC" = yes ; then
13917         output_verbose_link_cmd='echo'
13918         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13919       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13920       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13921       archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13922       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}'
13923     else
13924       case $cc_basename in
13925         xlc*)
13926          output_verbose_link_cmd='echo'
13927          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13928          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13929           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13930          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13931           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}'
13932           ;;
13933        *)
13934          ld_shlibs_F77=no
13935           ;;
13936       esac
13937     fi
13938       ;;
13939
13940     dgux*)
13941       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13942       hardcode_libdir_flag_spec_F77='-L$libdir'
13943       hardcode_shlibpath_var_F77=no
13944       ;;
13945
13946     freebsd1*)
13947       ld_shlibs_F77=no
13948       ;;
13949
13950     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13951     # support.  Future versions do this automatically, but an explicit c++rt0.o
13952     # does not break anything, and helps significantly (at the cost of a little
13953     # extra space).
13954     freebsd2.2*)
13955       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13956       hardcode_libdir_flag_spec_F77='-R$libdir'
13957       hardcode_direct_F77=yes
13958       hardcode_shlibpath_var_F77=no
13959       ;;
13960
13961     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13962     freebsd2*)
13963       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13964       hardcode_direct_F77=yes
13965       hardcode_minus_L_F77=yes
13966       hardcode_shlibpath_var_F77=no
13967       ;;
13968
13969     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13970     freebsd* | kfreebsd*-gnu | dragonfly*)
13971       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13972       hardcode_libdir_flag_spec_F77='-R$libdir'
13973       hardcode_direct_F77=yes
13974       hardcode_shlibpath_var_F77=no
13975       ;;
13976
13977     hpux9*)
13978       if test "$GCC" = yes; then
13979         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'
13980       else
13981         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'
13982       fi
13983       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13984       hardcode_libdir_separator_F77=:
13985       hardcode_direct_F77=yes
13986
13987       # hardcode_minus_L: Not really in the search PATH,
13988       # but as the default location of the library.
13989       hardcode_minus_L_F77=yes
13990       export_dynamic_flag_spec_F77='${wl}-E'
13991       ;;
13992
13993     hpux10*)
13994       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13995         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13996       else
13997         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13998       fi
13999       if test "$with_gnu_ld" = no; then
14000         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14001         hardcode_libdir_separator_F77=:
14002
14003         hardcode_direct_F77=yes
14004         export_dynamic_flag_spec_F77='${wl}-E'
14005
14006         # hardcode_minus_L: Not really in the search PATH,
14007         # but as the default location of the library.
14008         hardcode_minus_L_F77=yes
14009       fi
14010       ;;
14011
14012     hpux11*)
14013       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14014         case $host_cpu in
14015         hppa*64*)
14016           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14017           ;;
14018         ia64*)
14019           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14020           ;;
14021         *)
14022           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14023           ;;
14024         esac
14025       else
14026         case $host_cpu in
14027         hppa*64*)
14028           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14029           ;;
14030         ia64*)
14031           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14032           ;;
14033         *)
14034           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14035           ;;
14036         esac
14037       fi
14038       if test "$with_gnu_ld" = no; then
14039         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14040         hardcode_libdir_separator_F77=:
14041
14042         case $host_cpu in
14043         hppa*64*|ia64*)
14044           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14045           hardcode_direct_F77=no
14046           hardcode_shlibpath_var_F77=no
14047           ;;
14048         *)
14049           hardcode_direct_F77=yes
14050           export_dynamic_flag_spec_F77='${wl}-E'
14051
14052           # hardcode_minus_L: Not really in the search PATH,
14053           # but as the default location of the library.
14054           hardcode_minus_L_F77=yes
14055           ;;
14056         esac
14057       fi
14058       ;;
14059
14060     irix5* | irix6* | nonstopux*)
14061       if test "$GCC" = yes; then
14062         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'
14063       else
14064         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'
14065         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14066       fi
14067       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14068       hardcode_libdir_separator_F77=:
14069       link_all_deplibs_F77=yes
14070       ;;
14071
14072     netbsd*)
14073       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14074         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14075       else
14076         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14077       fi
14078       hardcode_libdir_flag_spec_F77='-R$libdir'
14079       hardcode_direct_F77=yes
14080       hardcode_shlibpath_var_F77=no
14081       ;;
14082
14083     newsos6)
14084       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14085       hardcode_direct_F77=yes
14086       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14087       hardcode_libdir_separator_F77=:
14088       hardcode_shlibpath_var_F77=no
14089       ;;
14090
14091     openbsd*)
14092       hardcode_direct_F77=yes
14093       hardcode_shlibpath_var_F77=no
14094       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14095         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14096         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14097         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14098         export_dynamic_flag_spec_F77='${wl}-E'
14099       else
14100        case $host_os in
14101          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14102            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14103            hardcode_libdir_flag_spec_F77='-R$libdir'
14104            ;;
14105          *)
14106            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14107            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14108            ;;
14109        esac
14110       fi
14111       ;;
14112
14113     os2*)
14114       hardcode_libdir_flag_spec_F77='-L$libdir'
14115       hardcode_minus_L_F77=yes
14116       allow_undefined_flag_F77=unsupported
14117       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'
14118       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14119       ;;
14120
14121     osf3*)
14122       if test "$GCC" = yes; then
14123         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14124         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'
14125       else
14126         allow_undefined_flag_F77=' -expect_unresolved \*'
14127         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'
14128       fi
14129       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14130       hardcode_libdir_separator_F77=:
14131       ;;
14132
14133     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14134       if test "$GCC" = yes; then
14135         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14136         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'
14137         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14138       else
14139         allow_undefined_flag_F77=' -expect_unresolved \*'
14140         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'
14141         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~
14142         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14143
14144         # Both c and cxx compiler support -rpath directly
14145         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14146       fi
14147       hardcode_libdir_separator_F77=:
14148       ;;
14149
14150     solaris*)
14151       no_undefined_flag_F77=' -z text'
14152       if test "$GCC" = yes; then
14153         wlarc='${wl}'
14154         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14155         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14156           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14157       else
14158         wlarc=''
14159         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14160         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14161         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14162       fi
14163       hardcode_libdir_flag_spec_F77='-R$libdir'
14164       hardcode_shlibpath_var_F77=no
14165       case $host_os in
14166       solaris2.[0-5] | solaris2.[0-5].*) ;;
14167       *)
14168         # The compiler driver will combine linker options so we
14169         # cannot just pass the convience library names through
14170         # without $wl, iff we do not link with $LD.
14171         # Luckily, gcc supports the same syntax we need for Sun Studio.
14172         # Supported since Solaris 2.6 (maybe 2.5.1?)
14173         case $wlarc in
14174         '')
14175           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14176         *)
14177           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14178         esac ;;
14179       esac
14180       link_all_deplibs_F77=yes
14181       ;;
14182
14183     sunos4*)
14184       if test "x$host_vendor" = xsequent; then
14185         # Use $CC to link under sequent, because it throws in some extra .o
14186         # files that make .init and .fini sections work.
14187         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14188       else
14189         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14190       fi
14191       hardcode_libdir_flag_spec_F77='-L$libdir'
14192       hardcode_direct_F77=yes
14193       hardcode_minus_L_F77=yes
14194       hardcode_shlibpath_var_F77=no
14195       ;;
14196
14197     sysv4)
14198       case $host_vendor in
14199         sni)
14200           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14201           hardcode_direct_F77=yes # is this really true???
14202         ;;
14203         siemens)
14204           ## LD is ld it makes a PLAMLIB
14205           ## CC just makes a GrossModule.
14206           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14207           reload_cmds_F77='$CC -r -o $output$reload_objs'
14208           hardcode_direct_F77=no
14209         ;;
14210         motorola)
14211           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14212           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14213         ;;
14214       esac
14215       runpath_var='LD_RUN_PATH'
14216       hardcode_shlibpath_var_F77=no
14217       ;;
14218
14219     sysv4.3*)
14220       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14221       hardcode_shlibpath_var_F77=no
14222       export_dynamic_flag_spec_F77='-Bexport'
14223       ;;
14224
14225     sysv4*MP*)
14226       if test -d /usr/nec; then
14227         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14228         hardcode_shlibpath_var_F77=no
14229         runpath_var=LD_RUN_PATH
14230         hardcode_runpath_var=yes
14231         ld_shlibs_F77=yes
14232       fi
14233       ;;
14234
14235     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14236       no_undefined_flag_F77='${wl}-z,text'
14237       archive_cmds_need_lc_F77=no
14238       hardcode_shlibpath_var_F77=no
14239       runpath_var='LD_RUN_PATH'
14240
14241       if test "$GCC" = yes; then
14242         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14243         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14244       else
14245         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14246         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14247       fi
14248       ;;
14249
14250     sysv5* | sco3.2v5* | sco5v6*)
14251       # Note: We can NOT use -z defs as we might desire, because we do not
14252       # link with -lc, and that would cause any symbols used from libc to
14253       # always be unresolved, which means just about no library would
14254       # ever link correctly.  If we're not using GNU ld we use -z text
14255       # though, which does catch some bad symbols but isn't as heavy-handed
14256       # as -z defs.
14257       no_undefined_flag_F77='${wl}-z,text'
14258       allow_undefined_flag_F77='${wl}-z,nodefs'
14259       archive_cmds_need_lc_F77=no
14260       hardcode_shlibpath_var_F77=no
14261       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14262       hardcode_libdir_separator_F77=':'
14263       link_all_deplibs_F77=yes
14264       export_dynamic_flag_spec_F77='${wl}-Bexport'
14265       runpath_var='LD_RUN_PATH'
14266
14267       if test "$GCC" = yes; then
14268         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14269         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14270       else
14271         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14272         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14273       fi
14274       ;;
14275
14276     uts4*)
14277       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14278       hardcode_libdir_flag_spec_F77='-L$libdir'
14279       hardcode_shlibpath_var_F77=no
14280       ;;
14281
14282     *)
14283       ld_shlibs_F77=no
14284       ;;
14285     esac
14286   fi
14287
14288 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14289 echo "${ECHO_T}$ld_shlibs_F77" >&6
14290 test "$ld_shlibs_F77" = no && can_build_shared=no
14291
14292 #
14293 # Do we need to explicitly link libc?
14294 #
14295 case "x$archive_cmds_need_lc_F77" in
14296 x|xyes)
14297   # Assume -lc should be added
14298   archive_cmds_need_lc_F77=yes
14299
14300   if test "$enable_shared" = yes && test "$GCC" = yes; then
14301     case $archive_cmds_F77 in
14302     *'~'*)
14303       # FIXME: we may have to deal with multi-command sequences.
14304       ;;
14305     '$CC '*)
14306       # Test whether the compiler implicitly links with -lc since on some
14307       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14308       # to ld, don't add -lc before -lgcc.
14309       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14310 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14311       $rm conftest*
14312       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14313
14314       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14315   (eval $ac_compile) 2>&5
14316   ac_status=$?
14317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14318   (exit $ac_status); } 2>conftest.err; then
14319         soname=conftest
14320         lib=conftest
14321         libobjs=conftest.$ac_objext
14322         deplibs=
14323         wl=$lt_prog_compiler_wl_F77
14324         pic_flag=$lt_prog_compiler_pic_F77
14325         compiler_flags=-v
14326         linker_flags=-v
14327         verstring=
14328         output_objdir=.
14329         libname=conftest
14330         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14331         allow_undefined_flag_F77=
14332         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14333   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14334   ac_status=$?
14335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14336   (exit $ac_status); }
14337         then
14338           archive_cmds_need_lc_F77=no
14339         else
14340           archive_cmds_need_lc_F77=yes
14341         fi
14342         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14343       else
14344         cat conftest.err 1>&5
14345       fi
14346       $rm conftest*
14347       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14348 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14349       ;;
14350     esac
14351   fi
14352   ;;
14353 esac
14354
14355 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14356 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14357 library_names_spec=
14358 libname_spec='lib$name'
14359 soname_spec=
14360 shrext_cmds=".so"
14361 postinstall_cmds=
14362 postuninstall_cmds=
14363 finish_cmds=
14364 finish_eval=
14365 shlibpath_var=
14366 shlibpath_overrides_runpath=unknown
14367 version_type=none
14368 dynamic_linker="$host_os ld.so"
14369 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14370 if test "$GCC" = yes; then
14371   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14372   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14373     # if the path contains ";" then we assume it to be the separator
14374     # otherwise default to the standard path separator (i.e. ":") - it is
14375     # assumed that no part of a normal pathname contains ";" but that should
14376     # okay in the real world where ";" in dirpaths is itself problematic.
14377     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14378   else
14379     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14380   fi
14381 else
14382   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14383 fi
14384 need_lib_prefix=unknown
14385 hardcode_into_libs=no
14386
14387 # when you set need_version to no, make sure it does not cause -set_version
14388 # flags to be left without arguments
14389 need_version=unknown
14390
14391 case $host_os in
14392 aix3*)
14393   version_type=linux
14394   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14395   shlibpath_var=LIBPATH
14396
14397   # AIX 3 has no versioning support, so we append a major version to the name.
14398   soname_spec='${libname}${release}${shared_ext}$major'
14399   ;;
14400
14401 aix4* | aix5*)
14402   version_type=linux
14403   need_lib_prefix=no
14404   need_version=no
14405   hardcode_into_libs=yes
14406   if test "$host_cpu" = ia64; then
14407     # AIX 5 supports IA64
14408     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14409     shlibpath_var=LD_LIBRARY_PATH
14410   else
14411     # With GCC up to 2.95.x, collect2 would create an import file
14412     # for dependence libraries.  The import file would start with
14413     # the line `#! .'.  This would cause the generated library to
14414     # depend on `.', always an invalid library.  This was fixed in
14415     # development snapshots of GCC prior to 3.0.
14416     case $host_os in
14417       aix4 | aix4.[01] | aix4.[01].*)
14418       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14419            echo ' yes '
14420            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14421         :
14422       else
14423         can_build_shared=no
14424       fi
14425       ;;
14426     esac
14427     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14428     # soname into executable. Probably we can add versioning support to
14429     # collect2, so additional links can be useful in future.
14430     if test "$aix_use_runtimelinking" = yes; then
14431       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14432       # instead of lib<name>.a to let people know that these are not
14433       # typical AIX shared libraries.
14434       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14435     else
14436       # We preserve .a as extension for shared libraries through AIX4.2
14437       # and later when we are not doing run time linking.
14438       library_names_spec='${libname}${release}.a $libname.a'
14439       soname_spec='${libname}${release}${shared_ext}$major'
14440     fi
14441     shlibpath_var=LIBPATH
14442   fi
14443   ;;
14444
14445 amigaos*)
14446   library_names_spec='$libname.ixlibrary $libname.a'
14447   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14448   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'
14449   ;;
14450
14451 beos*)
14452   library_names_spec='${libname}${shared_ext}'
14453   dynamic_linker="$host_os ld.so"
14454   shlibpath_var=LIBRARY_PATH
14455   ;;
14456
14457 bsdi[45]*)
14458   version_type=linux
14459   need_version=no
14460   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14461   soname_spec='${libname}${release}${shared_ext}$major'
14462   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14463   shlibpath_var=LD_LIBRARY_PATH
14464   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14465   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14466   # the default ld.so.conf also contains /usr/contrib/lib and
14467   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14468   # libtool to hard-code these into programs
14469   ;;
14470
14471 cygwin* | mingw* | pw32*)
14472   version_type=windows
14473   shrext_cmds=".dll"
14474   need_version=no
14475   need_lib_prefix=no
14476
14477   case $GCC,$host_os in
14478   yes,cygwin* | yes,mingw* | yes,pw32*)
14479     library_names_spec='$libname.dll.a'
14480     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14481     postinstall_cmds='base_file=`basename \${file}`~
14482       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14483       dldir=$destdir/`dirname \$dlpath`~
14484       test -d \$dldir || mkdir -p \$dldir~
14485       $install_prog $dir/$dlname \$dldir/$dlname~
14486       chmod a+x \$dldir/$dlname'
14487     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14488       dlpath=$dir/\$dldll~
14489        $rm \$dlpath'
14490     shlibpath_overrides_runpath=yes
14491
14492     case $host_os in
14493     cygwin*)
14494       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14495       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14496       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14497       ;;
14498     mingw*)
14499       # MinGW DLLs use traditional 'lib' prefix
14500       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14501       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14502       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14503         # It is most probably a Windows format PATH printed by
14504         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14505         # path with ; separators, and with drive letters. We can handle the
14506         # drive letters (cygwin fileutils understands them), so leave them,
14507         # especially as we might pass files found there to a mingw objdump,
14508         # which wouldn't understand a cygwinified path. Ahh.
14509         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14510       else
14511         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14512       fi
14513       ;;
14514     pw32*)
14515       # pw32 DLLs use 'pw' prefix rather than 'lib'
14516       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14517       ;;
14518     esac
14519     ;;
14520
14521   *)
14522     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14523     ;;
14524   esac
14525   dynamic_linker='Win32 ld.exe'
14526   # FIXME: first we should search . and the directory the executable is in
14527   shlibpath_var=PATH
14528   ;;
14529
14530 darwin* | rhapsody*)
14531   dynamic_linker="$host_os dyld"
14532   version_type=darwin
14533   need_lib_prefix=no
14534   need_version=no
14535   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14536   soname_spec='${libname}${release}${major}$shared_ext'
14537   shlibpath_overrides_runpath=yes
14538   shlibpath_var=DYLD_LIBRARY_PATH
14539   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14540   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14541   if test "$GCC" = yes; then
14542     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"`
14543   else
14544     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14545   fi
14546   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14547   ;;
14548
14549 dgux*)
14550   version_type=linux
14551   need_lib_prefix=no
14552   need_version=no
14553   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14554   soname_spec='${libname}${release}${shared_ext}$major'
14555   shlibpath_var=LD_LIBRARY_PATH
14556   ;;
14557
14558 freebsd1*)
14559   dynamic_linker=no
14560   ;;
14561
14562 kfreebsd*-gnu)
14563   version_type=linux
14564   need_lib_prefix=no
14565   need_version=no
14566   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14567   soname_spec='${libname}${release}${shared_ext}$major'
14568   shlibpath_var=LD_LIBRARY_PATH
14569   shlibpath_overrides_runpath=no
14570   hardcode_into_libs=yes
14571   dynamic_linker='GNU ld.so'
14572   ;;
14573
14574 freebsd* | dragonfly*)
14575   # DragonFly does not have aout.  When/if they implement a new
14576   # versioning mechanism, adjust this.
14577   if test -x /usr/bin/objformat; then
14578     objformat=`/usr/bin/objformat`
14579   else
14580     case $host_os in
14581     freebsd[123]*) objformat=aout ;;
14582     *) objformat=elf ;;
14583     esac
14584   fi
14585   version_type=freebsd-$objformat
14586   case $version_type in
14587     freebsd-elf*)
14588       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14589       need_version=no
14590       need_lib_prefix=no
14591       ;;
14592     freebsd-*)
14593       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14594       need_version=yes
14595       ;;
14596   esac
14597   shlibpath_var=LD_LIBRARY_PATH
14598   case $host_os in
14599   freebsd2*)
14600     shlibpath_overrides_runpath=yes
14601     ;;
14602   freebsd3.[01]* | freebsdelf3.[01]*)
14603     shlibpath_overrides_runpath=yes
14604     hardcode_into_libs=yes
14605     ;;
14606   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14607   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14608     shlibpath_overrides_runpath=no
14609     hardcode_into_libs=yes
14610     ;;
14611   freebsd*) # from 4.6 on
14612     shlibpath_overrides_runpath=yes
14613     hardcode_into_libs=yes
14614     ;;
14615   esac
14616   ;;
14617
14618 gnu*)
14619   version_type=linux
14620   need_lib_prefix=no
14621   need_version=no
14622   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14623   soname_spec='${libname}${release}${shared_ext}$major'
14624   shlibpath_var=LD_LIBRARY_PATH
14625   hardcode_into_libs=yes
14626   ;;
14627
14628 hpux9* | hpux10* | hpux11*)
14629   # Give a soname corresponding to the major version so that dld.sl refuses to
14630   # link against other versions.
14631   version_type=sunos
14632   need_lib_prefix=no
14633   need_version=no
14634   case $host_cpu in
14635   ia64*)
14636     shrext_cmds='.so'
14637     hardcode_into_libs=yes
14638     dynamic_linker="$host_os dld.so"
14639     shlibpath_var=LD_LIBRARY_PATH
14640     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14641     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14642     soname_spec='${libname}${release}${shared_ext}$major'
14643     if test "X$HPUX_IA64_MODE" = X32; then
14644       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14645     else
14646       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14647     fi
14648     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14649     ;;
14650    hppa*64*)
14651      shrext_cmds='.sl'
14652      hardcode_into_libs=yes
14653      dynamic_linker="$host_os dld.sl"
14654      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14655      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14656      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14657      soname_spec='${libname}${release}${shared_ext}$major'
14658      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14659      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14660      ;;
14661    *)
14662     shrext_cmds='.sl'
14663     dynamic_linker="$host_os dld.sl"
14664     shlibpath_var=SHLIB_PATH
14665     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14666     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14667     soname_spec='${libname}${release}${shared_ext}$major'
14668     ;;
14669   esac
14670   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14671   postinstall_cmds='chmod 555 $lib'
14672   ;;
14673
14674 interix3*)
14675   version_type=linux
14676   need_lib_prefix=no
14677   need_version=no
14678   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14679   soname_spec='${libname}${release}${shared_ext}$major'
14680   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14681   shlibpath_var=LD_LIBRARY_PATH
14682   shlibpath_overrides_runpath=no
14683   hardcode_into_libs=yes
14684   ;;
14685
14686 irix5* | irix6* | nonstopux*)
14687   case $host_os in
14688     nonstopux*) version_type=nonstopux ;;
14689     *)
14690         if test "$lt_cv_prog_gnu_ld" = yes; then
14691                 version_type=linux
14692         else
14693                 version_type=irix
14694         fi ;;
14695   esac
14696   need_lib_prefix=no
14697   need_version=no
14698   soname_spec='${libname}${release}${shared_ext}$major'
14699   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14700   case $host_os in
14701   irix5* | nonstopux*)
14702     libsuff= shlibsuff=
14703     ;;
14704   *)
14705     case $LD in # libtool.m4 will add one of these switches to LD
14706     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14707       libsuff= shlibsuff= libmagic=32-bit;;
14708     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14709       libsuff=32 shlibsuff=N32 libmagic=N32;;
14710     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14711       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14712     *) libsuff= shlibsuff= libmagic=never-match;;
14713     esac
14714     ;;
14715   esac
14716   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14717   shlibpath_overrides_runpath=no
14718   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14719   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14720   hardcode_into_libs=yes
14721   ;;
14722
14723 # No shared lib support for Linux oldld, aout, or coff.
14724 linux*oldld* | linux*aout* | linux*coff*)
14725   dynamic_linker=no
14726   ;;
14727
14728 # This must be Linux ELF.
14729 linux*)
14730   version_type=linux
14731   need_lib_prefix=no
14732   need_version=no
14733   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14734   soname_spec='${libname}${release}${shared_ext}$major'
14735   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14736   shlibpath_var=LD_LIBRARY_PATH
14737   shlibpath_overrides_runpath=no
14738   # This implies no fast_install, which is unacceptable.
14739   # Some rework will be needed to allow for fast_install
14740   # before this can be enabled.
14741   hardcode_into_libs=yes
14742
14743   # Append ld.so.conf contents to the search path
14744   if test -f /etc/ld.so.conf; then
14745     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14746     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14747   fi
14748
14749   # We used to test for /lib/ld.so.1 and disable shared libraries on
14750   # powerpc, because MkLinux only supported shared libraries with the
14751   # GNU dynamic linker.  Since this was broken with cross compilers,
14752   # most powerpc-linux boxes support dynamic linking these days and
14753   # people can always --disable-shared, the test was removed, and we
14754   # assume the GNU/Linux dynamic linker is in use.
14755   dynamic_linker='GNU/Linux ld.so'
14756   ;;
14757
14758 knetbsd*-gnu)
14759   version_type=linux
14760   need_lib_prefix=no
14761   need_version=no
14762   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14763   soname_spec='${libname}${release}${shared_ext}$major'
14764   shlibpath_var=LD_LIBRARY_PATH
14765   shlibpath_overrides_runpath=no
14766   hardcode_into_libs=yes
14767   dynamic_linker='GNU ld.so'
14768   ;;
14769
14770 netbsd*)
14771   version_type=sunos
14772   need_lib_prefix=no
14773   need_version=no
14774   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14775     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14776     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14777     dynamic_linker='NetBSD (a.out) ld.so'
14778   else
14779     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14780     soname_spec='${libname}${release}${shared_ext}$major'
14781     dynamic_linker='NetBSD ld.elf_so'
14782   fi
14783   shlibpath_var=LD_LIBRARY_PATH
14784   shlibpath_overrides_runpath=yes
14785   hardcode_into_libs=yes
14786   ;;
14787
14788 newsos6)
14789   version_type=linux
14790   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14791   shlibpath_var=LD_LIBRARY_PATH
14792   shlibpath_overrides_runpath=yes
14793   ;;
14794
14795 nto-qnx*)
14796   version_type=linux
14797   need_lib_prefix=no
14798   need_version=no
14799   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14800   soname_spec='${libname}${release}${shared_ext}$major'
14801   shlibpath_var=LD_LIBRARY_PATH
14802   shlibpath_overrides_runpath=yes
14803   ;;
14804
14805 openbsd*)
14806   version_type=sunos
14807   sys_lib_dlsearch_path_spec="/usr/lib"
14808   need_lib_prefix=no
14809   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14810   case $host_os in
14811     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14812     *)                         need_version=no  ;;
14813   esac
14814   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14815   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14816   shlibpath_var=LD_LIBRARY_PATH
14817   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14818     case $host_os in
14819       openbsd2.[89] | openbsd2.[89].*)
14820         shlibpath_overrides_runpath=no
14821         ;;
14822       *)
14823         shlibpath_overrides_runpath=yes
14824         ;;
14825       esac
14826   else
14827     shlibpath_overrides_runpath=yes
14828   fi
14829   ;;
14830
14831 os2*)
14832   libname_spec='$name'
14833   shrext_cmds=".dll"
14834   need_lib_prefix=no
14835   library_names_spec='$libname${shared_ext} $libname.a'
14836   dynamic_linker='OS/2 ld.exe'
14837   shlibpath_var=LIBPATH
14838   ;;
14839
14840 osf3* | osf4* | osf5*)
14841   version_type=osf
14842   need_lib_prefix=no
14843   need_version=no
14844   soname_spec='${libname}${release}${shared_ext}$major'
14845   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14846   shlibpath_var=LD_LIBRARY_PATH
14847   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14848   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14849   ;;
14850
14851 solaris*)
14852   version_type=linux
14853   need_lib_prefix=no
14854   need_version=no
14855   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14856   soname_spec='${libname}${release}${shared_ext}$major'
14857   shlibpath_var=LD_LIBRARY_PATH
14858   shlibpath_overrides_runpath=yes
14859   hardcode_into_libs=yes
14860   # ldd complains unless libraries are executable
14861   postinstall_cmds='chmod +x $lib'
14862   ;;
14863
14864 sunos4*)
14865   version_type=sunos
14866   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14867   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14868   shlibpath_var=LD_LIBRARY_PATH
14869   shlibpath_overrides_runpath=yes
14870   if test "$with_gnu_ld" = yes; then
14871     need_lib_prefix=no
14872   fi
14873   need_version=yes
14874   ;;
14875
14876 sysv4 | sysv4.3*)
14877   version_type=linux
14878   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14879   soname_spec='${libname}${release}${shared_ext}$major'
14880   shlibpath_var=LD_LIBRARY_PATH
14881   case $host_vendor in
14882     sni)
14883       shlibpath_overrides_runpath=no
14884       need_lib_prefix=no
14885       export_dynamic_flag_spec='${wl}-Blargedynsym'
14886       runpath_var=LD_RUN_PATH
14887       ;;
14888     siemens)
14889       need_lib_prefix=no
14890       ;;
14891     motorola)
14892       need_lib_prefix=no
14893       need_version=no
14894       shlibpath_overrides_runpath=no
14895       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14896       ;;
14897   esac
14898   ;;
14899
14900 sysv4*MP*)
14901   if test -d /usr/nec ;then
14902     version_type=linux
14903     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14904     soname_spec='$libname${shared_ext}.$major'
14905     shlibpath_var=LD_LIBRARY_PATH
14906   fi
14907   ;;
14908
14909 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14910   version_type=freebsd-elf
14911   need_lib_prefix=no
14912   need_version=no
14913   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14914   soname_spec='${libname}${release}${shared_ext}$major'
14915   shlibpath_var=LD_LIBRARY_PATH
14916   hardcode_into_libs=yes
14917   if test "$with_gnu_ld" = yes; then
14918     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14919     shlibpath_overrides_runpath=no
14920   else
14921     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14922     shlibpath_overrides_runpath=yes
14923     case $host_os in
14924       sco3.2v5*)
14925         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14926         ;;
14927     esac
14928   fi
14929   sys_lib_dlsearch_path_spec='/usr/lib'
14930   ;;
14931
14932 uts4*)
14933   version_type=linux
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   ;;
14938
14939 *)
14940   dynamic_linker=no
14941   ;;
14942 esac
14943 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14944 echo "${ECHO_T}$dynamic_linker" >&6
14945 test "$dynamic_linker" = no && can_build_shared=no
14946
14947 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14948 if test "$GCC" = yes; then
14949   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14950 fi
14951
14952 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14953 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14954 hardcode_action_F77=
14955 if test -n "$hardcode_libdir_flag_spec_F77" || \
14956    test -n "$runpath_var_F77" || \
14957    test "X$hardcode_automatic_F77" = "Xyes" ; then
14958
14959   # We can hardcode non-existant directories.
14960   if test "$hardcode_direct_F77" != no &&
14961      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14962      # have to relink, otherwise we might link with an installed library
14963      # when we should be linking with a yet-to-be-installed one
14964      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14965      test "$hardcode_minus_L_F77" != no; then
14966     # Linking always hardcodes the temporary library directory.
14967     hardcode_action_F77=relink
14968   else
14969     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14970     hardcode_action_F77=immediate
14971   fi
14972 else
14973   # We cannot hardcode anything, or else we can only hardcode existing
14974   # directories.
14975   hardcode_action_F77=unsupported
14976 fi
14977 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14978 echo "${ECHO_T}$hardcode_action_F77" >&6
14979
14980 if test "$hardcode_action_F77" = relink; then
14981   # Fast installation is not supported
14982   enable_fast_install=no
14983 elif test "$shlibpath_overrides_runpath" = yes ||
14984      test "$enable_shared" = no; then
14985   # Fast installation is not necessary
14986   enable_fast_install=needless
14987 fi
14988
14989
14990 # The else clause should only fire when bootstrapping the
14991 # libtool distribution, otherwise you forgot to ship ltmain.sh
14992 # with your package, and you will get complaints that there are
14993 # no rules to generate ltmain.sh.
14994 if test -f "$ltmain"; then
14995   # See if we are running on zsh, and set the options which allow our commands through
14996   # without removal of \ escapes.
14997   if test -n "${ZSH_VERSION+set}" ; then
14998     setopt NO_GLOB_SUBST
14999   fi
15000   # Now quote all the things that may contain metacharacters while being
15001   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15002   # variables and quote the copies for generation of the libtool script.
15003   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15004     SED SHELL STRIP \
15005     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15006     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15007     deplibs_check_method reload_flag reload_cmds need_locks \
15008     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15009     lt_cv_sys_global_symbol_to_c_name_address \
15010     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15011     old_postinstall_cmds old_postuninstall_cmds \
15012     compiler_F77 \
15013     CC_F77 \
15014     LD_F77 \
15015     lt_prog_compiler_wl_F77 \
15016     lt_prog_compiler_pic_F77 \
15017     lt_prog_compiler_static_F77 \
15018     lt_prog_compiler_no_builtin_flag_F77 \
15019     export_dynamic_flag_spec_F77 \
15020     thread_safe_flag_spec_F77 \
15021     whole_archive_flag_spec_F77 \
15022     enable_shared_with_static_runtimes_F77 \
15023     old_archive_cmds_F77 \
15024     old_archive_from_new_cmds_F77 \
15025     predep_objects_F77 \
15026     postdep_objects_F77 \
15027     predeps_F77 \
15028     postdeps_F77 \
15029     compiler_lib_search_path_F77 \
15030     archive_cmds_F77 \
15031     archive_expsym_cmds_F77 \
15032     postinstall_cmds_F77 \
15033     postuninstall_cmds_F77 \
15034     old_archive_from_expsyms_cmds_F77 \
15035     allow_undefined_flag_F77 \
15036     no_undefined_flag_F77 \
15037     export_symbols_cmds_F77 \
15038     hardcode_libdir_flag_spec_F77 \
15039     hardcode_libdir_flag_spec_ld_F77 \
15040     hardcode_libdir_separator_F77 \
15041     hardcode_automatic_F77 \
15042     module_cmds_F77 \
15043     module_expsym_cmds_F77 \
15044     lt_cv_prog_compiler_c_o_F77 \
15045     exclude_expsyms_F77 \
15046     include_expsyms_F77; do
15047
15048     case $var in
15049     old_archive_cmds_F77 | \
15050     old_archive_from_new_cmds_F77 | \
15051     archive_cmds_F77 | \
15052     archive_expsym_cmds_F77 | \
15053     module_cmds_F77 | \
15054     module_expsym_cmds_F77 | \
15055     old_archive_from_expsyms_cmds_F77 | \
15056     export_symbols_cmds_F77 | \
15057     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15058     postinstall_cmds | postuninstall_cmds | \
15059     old_postinstall_cmds | old_postuninstall_cmds | \
15060     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15061       # Double-quote double-evaled strings.
15062       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15063       ;;
15064     *)
15065       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15066       ;;
15067     esac
15068   done
15069
15070   case $lt_echo in
15071   *'\$0 --fallback-echo"')
15072     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15073     ;;
15074   esac
15075
15076 cfgfile="$ofile"
15077
15078   cat <<__EOF__ >> "$cfgfile"
15079 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15080
15081 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15082
15083 # Shell to use when invoking shell scripts.
15084 SHELL=$lt_SHELL
15085
15086 # Whether or not to build shared libraries.
15087 build_libtool_libs=$enable_shared
15088
15089 # Whether or not to build static libraries.
15090 build_old_libs=$enable_static
15091
15092 # Whether or not to add -lc for building shared libraries.
15093 build_libtool_need_lc=$archive_cmds_need_lc_F77
15094
15095 # Whether or not to disallow shared libs when runtime libs are static
15096 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15097
15098 # Whether or not to optimize for fast installation.
15099 fast_install=$enable_fast_install
15100
15101 # The host system.
15102 host_alias=$host_alias
15103 host=$host
15104 host_os=$host_os
15105
15106 # The build system.
15107 build_alias=$build_alias
15108 build=$build
15109 build_os=$build_os
15110
15111 # An echo program that does not interpret backslashes.
15112 echo=$lt_echo
15113
15114 # The archiver.
15115 AR=$lt_AR
15116 AR_FLAGS=$lt_AR_FLAGS
15117
15118 # A C compiler.
15119 LTCC=$lt_LTCC
15120
15121 # LTCC compiler flags.
15122 LTCFLAGS=$lt_LTCFLAGS
15123
15124 # A language-specific compiler.
15125 CC=$lt_compiler_F77
15126
15127 # Is the compiler the GNU C compiler?
15128 with_gcc=$GCC_F77
15129
15130 # An ERE matcher.
15131 EGREP=$lt_EGREP
15132
15133 # The linker used to build libraries.
15134 LD=$lt_LD_F77
15135
15136 # Whether we need hard or soft links.
15137 LN_S=$lt_LN_S
15138
15139 # A BSD-compatible nm program.
15140 NM=$lt_NM
15141
15142 # A symbol stripping program
15143 STRIP=$lt_STRIP
15144
15145 # Used to examine libraries when file_magic_cmd begins "file"
15146 MAGIC_CMD=$MAGIC_CMD
15147
15148 # Used on cygwin: DLL creation program.
15149 DLLTOOL="$DLLTOOL"
15150
15151 # Used on cygwin: object dumper.
15152 OBJDUMP="$OBJDUMP"
15153
15154 # Used on cygwin: assembler.
15155 AS="$AS"
15156
15157 # The name of the directory that contains temporary libtool files.
15158 objdir=$objdir
15159
15160 # How to create reloadable object files.
15161 reload_flag=$lt_reload_flag
15162 reload_cmds=$lt_reload_cmds
15163
15164 # How to pass a linker flag through the compiler.
15165 wl=$lt_lt_prog_compiler_wl_F77
15166
15167 # Object file suffix (normally "o").
15168 objext="$ac_objext"
15169
15170 # Old archive suffix (normally "a").
15171 libext="$libext"
15172
15173 # Shared library suffix (normally ".so").
15174 shrext_cmds='$shrext_cmds'
15175
15176 # Executable file suffix (normally "").
15177 exeext="$exeext"
15178
15179 # Additional compiler flags for building library objects.
15180 pic_flag=$lt_lt_prog_compiler_pic_F77
15181 pic_mode=$pic_mode
15182
15183 # What is the maximum length of a command?
15184 max_cmd_len=$lt_cv_sys_max_cmd_len
15185
15186 # Does compiler simultaneously support -c and -o options?
15187 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15188
15189 # Must we lock files when doing compilation?
15190 need_locks=$lt_need_locks
15191
15192 # Do we need the lib prefix for modules?
15193 need_lib_prefix=$need_lib_prefix
15194
15195 # Do we need a version for libraries?
15196 need_version=$need_version
15197
15198 # Whether dlopen is supported.
15199 dlopen_support=$enable_dlopen
15200
15201 # Whether dlopen of programs is supported.
15202 dlopen_self=$enable_dlopen_self
15203
15204 # Whether dlopen of statically linked programs is supported.
15205 dlopen_self_static=$enable_dlopen_self_static
15206
15207 # Compiler flag to prevent dynamic linking.
15208 link_static_flag=$lt_lt_prog_compiler_static_F77
15209
15210 # Compiler flag to turn off builtin functions.
15211 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15212
15213 # Compiler flag to allow reflexive dlopens.
15214 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15215
15216 # Compiler flag to generate shared objects directly from archives.
15217 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15218
15219 # Compiler flag to generate thread-safe objects.
15220 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15221
15222 # Library versioning type.
15223 version_type=$version_type
15224
15225 # Format of library name prefix.
15226 libname_spec=$lt_libname_spec
15227
15228 # List of archive names.  First name is the real one, the rest are links.
15229 # The last name is the one that the linker finds with -lNAME.
15230 library_names_spec=$lt_library_names_spec
15231
15232 # The coded name of the library, if different from the real name.
15233 soname_spec=$lt_soname_spec
15234
15235 # Commands used to build and install an old-style archive.
15236 RANLIB=$lt_RANLIB
15237 old_archive_cmds=$lt_old_archive_cmds_F77
15238 old_postinstall_cmds=$lt_old_postinstall_cmds
15239 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15240
15241 # Create an old-style archive from a shared archive.
15242 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15243
15244 # Create a temporary old-style archive to link instead of a shared archive.
15245 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15246
15247 # Commands used to build and install a shared archive.
15248 archive_cmds=$lt_archive_cmds_F77
15249 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15250 postinstall_cmds=$lt_postinstall_cmds
15251 postuninstall_cmds=$lt_postuninstall_cmds
15252
15253 # Commands used to build a loadable module (assumed same as above if empty)
15254 module_cmds=$lt_module_cmds_F77
15255 module_expsym_cmds=$lt_module_expsym_cmds_F77
15256
15257 # Commands to strip libraries.
15258 old_striplib=$lt_old_striplib
15259 striplib=$lt_striplib
15260
15261 # Dependencies to place before the objects being linked to create a
15262 # shared library.
15263 predep_objects=$lt_predep_objects_F77
15264
15265 # Dependencies to place after the objects being linked to create a
15266 # shared library.
15267 postdep_objects=$lt_postdep_objects_F77
15268
15269 # Dependencies to place before the objects being linked to create a
15270 # shared library.
15271 predeps=$lt_predeps_F77
15272
15273 # Dependencies to place after the objects being linked to create a
15274 # shared library.
15275 postdeps=$lt_postdeps_F77
15276
15277 # The library search path used internally by the compiler when linking
15278 # a shared library.
15279 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15280
15281 # Method to check whether dependent libraries are shared objects.
15282 deplibs_check_method=$lt_deplibs_check_method
15283
15284 # Command to use when deplibs_check_method == file_magic.
15285 file_magic_cmd=$lt_file_magic_cmd
15286
15287 # Flag that allows shared libraries with undefined symbols to be built.
15288 allow_undefined_flag=$lt_allow_undefined_flag_F77
15289
15290 # Flag that forces no undefined symbols.
15291 no_undefined_flag=$lt_no_undefined_flag_F77
15292
15293 # Commands used to finish a libtool library installation in a directory.
15294 finish_cmds=$lt_finish_cmds
15295
15296 # Same as above, but a single script fragment to be evaled but not shown.
15297 finish_eval=$lt_finish_eval
15298
15299 # Take the output of nm and produce a listing of raw symbols and C names.
15300 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15301
15302 # Transform the output of nm in a proper C declaration
15303 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15304
15305 # Transform the output of nm in a C name address pair
15306 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15307
15308 # This is the shared library runtime path variable.
15309 runpath_var=$runpath_var
15310
15311 # This is the shared library path variable.
15312 shlibpath_var=$shlibpath_var
15313
15314 # Is shlibpath searched before the hard-coded library search path?
15315 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15316
15317 # How to hardcode a shared library path into an executable.
15318 hardcode_action=$hardcode_action_F77
15319
15320 # Whether we should hardcode library paths into libraries.
15321 hardcode_into_libs=$hardcode_into_libs
15322
15323 # Flag to hardcode \$libdir into a binary during linking.
15324 # This must work even if \$libdir does not exist.
15325 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15326
15327 # If ld is used when linking, flag to hardcode \$libdir into
15328 # a binary during linking. This must work even if \$libdir does
15329 # not exist.
15330 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15331
15332 # Whether we need a single -rpath flag with a separated argument.
15333 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15334
15335 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15336 # resulting binary.
15337 hardcode_direct=$hardcode_direct_F77
15338
15339 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15340 # resulting binary.
15341 hardcode_minus_L=$hardcode_minus_L_F77
15342
15343 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15344 # the resulting binary.
15345 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15346
15347 # Set to yes if building a shared library automatically hardcodes DIR into the library
15348 # and all subsequent libraries and executables linked against it.
15349 hardcode_automatic=$hardcode_automatic_F77
15350
15351 # Variables whose values should be saved in libtool wrapper scripts and
15352 # restored at relink time.
15353 variables_saved_for_relink="$variables_saved_for_relink"
15354
15355 # Whether libtool must link a program against all its dependency libraries.
15356 link_all_deplibs=$link_all_deplibs_F77
15357
15358 # Compile-time system search path for libraries
15359 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15360
15361 # Run-time system search path for libraries
15362 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15363
15364 # Fix the shell variable \$srcfile for the compiler.
15365 fix_srcfile_path="$fix_srcfile_path_F77"
15366
15367 # Set to yes if exported symbols are required.
15368 always_export_symbols=$always_export_symbols_F77
15369
15370 # The commands to list exported symbols.
15371 export_symbols_cmds=$lt_export_symbols_cmds_F77
15372
15373 # The commands to extract the exported symbol list from a shared archive.
15374 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15375
15376 # Symbols that should not be listed in the preloaded symbols.
15377 exclude_expsyms=$lt_exclude_expsyms_F77
15378
15379 # Symbols that must always be exported.
15380 include_expsyms=$lt_include_expsyms_F77
15381
15382 # ### END LIBTOOL TAG CONFIG: $tagname
15383
15384 __EOF__
15385
15386
15387 else
15388   # If there is no Makefile yet, we rely on a make rule to execute
15389   # `config.status --recheck' to rerun these tests and create the
15390   # libtool script then.
15391   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15392   if test -f "$ltmain_in"; then
15393     test -f Makefile && make "$ltmain"
15394   fi
15395 fi
15396
15397
15398 ac_ext=c
15399 ac_cpp='$CPP $CPPFLAGS'
15400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15403
15404 CC="$lt_save_CC"
15405
15406         else
15407           tagname=""
15408         fi
15409         ;;
15410
15411       GCJ)
15412         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15413           
15414
15415
15416 # Source file extension for Java test sources.
15417 ac_ext=java
15418
15419 # Object file extension for compiled Java test sources.
15420 objext=o
15421 objext_GCJ=$objext
15422
15423 # Code to be used in simple compile tests
15424 lt_simple_compile_test_code="class foo {}\n"
15425
15426 # Code to be used in simple link tests
15427 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15428
15429 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15430
15431 # If no C compiler was specified, use CC.
15432 LTCC=${LTCC-"$CC"}
15433
15434 # If no C compiler flags were specified, use CFLAGS.
15435 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15436
15437 # Allow CC to be a program name with arguments.
15438 compiler=$CC
15439
15440
15441 # save warnings/boilerplate of simple test code
15442 ac_outfile=conftest.$ac_objext
15443 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15444 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15445 _lt_compiler_boilerplate=`cat conftest.err`
15446 $rm conftest*
15447
15448 ac_outfile=conftest.$ac_objext
15449 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15450 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15451 _lt_linker_boilerplate=`cat conftest.err`
15452 $rm conftest*
15453
15454
15455 # Allow CC to be a program name with arguments.
15456 lt_save_CC="$CC"
15457 CC=${GCJ-"gcj"}
15458 compiler=$CC
15459 compiler_GCJ=$CC
15460 for cc_temp in $compiler""; do
15461   case $cc_temp in
15462     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15463     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15464     \-*) ;;
15465     *) break;;
15466   esac
15467 done
15468 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15469
15470
15471 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15472 archive_cmds_need_lc_GCJ=no
15473
15474 old_archive_cmds_GCJ=$old_archive_cmds
15475
15476 ## CAVEAT EMPTOR:
15477 ## There is no encapsulation within the following macros, do not change
15478 ## the running order or otherwise move them around unless you know exactly
15479 ## what you are doing...
15480
15481 lt_prog_compiler_no_builtin_flag_GCJ=
15482
15483 if test "$GCC" = yes; then
15484   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15485
15486   
15487 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15488 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15489 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15490   echo $ECHO_N "(cached) $ECHO_C" >&6
15491 else
15492   lt_cv_prog_compiler_rtti_exceptions=no
15493   ac_outfile=conftest.$ac_objext
15494    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15495    lt_compiler_flag="-fno-rtti -fno-exceptions"
15496    # Insert the option either (1) after the last *FLAGS variable, or
15497    # (2) before a word containing "conftest.", or (3) at the end.
15498    # Note that $ac_compile itself does not contain backslashes and begins
15499    # with a dollar sign (not a hyphen), so the echo should work correctly.
15500    # The option is referenced via a variable to avoid confusing sed.
15501    lt_compile=`echo "$ac_compile" | $SED \
15502    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15503    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15504    -e 's:$: $lt_compiler_flag:'`
15505    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15506    (eval "$lt_compile" 2>conftest.err)
15507    ac_status=$?
15508    cat conftest.err >&5
15509    echo "$as_me:__oline__: \$? = $ac_status" >&5
15510    if (exit $ac_status) && test -s "$ac_outfile"; then
15511      # The compiler can only warn and ignore the option if not recognized
15512      # So say no if there are warnings other than the usual output.
15513      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15514      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15515      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15516        lt_cv_prog_compiler_rtti_exceptions=yes
15517      fi
15518    fi
15519    $rm conftest*
15520
15521 fi
15522 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15523 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15524
15525 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15526     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15527 else
15528     :
15529 fi
15530
15531 fi
15532
15533 lt_prog_compiler_wl_GCJ=
15534 lt_prog_compiler_pic_GCJ=
15535 lt_prog_compiler_static_GCJ=
15536
15537 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15538 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15539  
15540   if test "$GCC" = yes; then
15541     lt_prog_compiler_wl_GCJ='-Wl,'
15542     lt_prog_compiler_static_GCJ='-static'
15543
15544     case $host_os in
15545       aix*)
15546       # All AIX code is PIC.
15547       if test "$host_cpu" = ia64; then
15548         # AIX 5 now supports IA64 processor
15549         lt_prog_compiler_static_GCJ='-Bstatic'
15550       fi
15551       ;;
15552
15553     amigaos*)
15554       # FIXME: we need at least 68020 code to build shared libraries, but
15555       # adding the `-m68020' flag to GCC prevents building anything better,
15556       # like `-m68040'.
15557       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15558       ;;
15559
15560     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15561       # PIC is the default for these OSes.
15562       ;;
15563
15564     mingw* | pw32* | os2*)
15565       # This hack is so that the source file can tell whether it is being
15566       # built for inclusion in a dll (and should export symbols for example).
15567       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15568       ;;
15569
15570     darwin* | rhapsody*)
15571       # PIC is the default on this platform
15572       # Common symbols not allowed in MH_DYLIB files
15573       lt_prog_compiler_pic_GCJ='-fno-common'
15574       ;;
15575
15576     interix3*)
15577       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15578       # Instead, we relocate shared libraries at runtime.
15579       ;;
15580
15581     msdosdjgpp*)
15582       # Just because we use GCC doesn't mean we suddenly get shared libraries
15583       # on systems that don't support them.
15584       lt_prog_compiler_can_build_shared_GCJ=no
15585       enable_shared=no
15586       ;;
15587
15588     sysv4*MP*)
15589       if test -d /usr/nec; then
15590         lt_prog_compiler_pic_GCJ=-Kconform_pic
15591       fi
15592       ;;
15593
15594     hpux*)
15595       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15596       # not for PA HP-UX.
15597       case $host_cpu in
15598       hppa*64*|ia64*)
15599         # +Z the default
15600         ;;
15601       *)
15602         lt_prog_compiler_pic_GCJ='-fPIC'
15603         ;;
15604       esac
15605       ;;
15606
15607     *)
15608       lt_prog_compiler_pic_GCJ='-fPIC'
15609       ;;
15610     esac
15611   else
15612     # PORTME Check for flag to pass linker flags through the system compiler.
15613     case $host_os in
15614     aix*)
15615       lt_prog_compiler_wl_GCJ='-Wl,'
15616       if test "$host_cpu" = ia64; then
15617         # AIX 5 now supports IA64 processor
15618         lt_prog_compiler_static_GCJ='-Bstatic'
15619       else
15620         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15621       fi
15622       ;;
15623       darwin*)
15624         # PIC is the default on this platform
15625         # Common symbols not allowed in MH_DYLIB files
15626        case $cc_basename in
15627          xlc*)
15628          lt_prog_compiler_pic_GCJ='-qnocommon'
15629          lt_prog_compiler_wl_GCJ='-Wl,'
15630          ;;
15631        esac
15632        ;;
15633
15634     mingw* | pw32* | os2*)
15635       # This hack is so that the source file can tell whether it is being
15636       # built for inclusion in a dll (and should export symbols for example).
15637       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15638       ;;
15639
15640     hpux9* | hpux10* | hpux11*)
15641       lt_prog_compiler_wl_GCJ='-Wl,'
15642       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15643       # not for PA HP-UX.
15644       case $host_cpu in
15645       hppa*64*|ia64*)
15646         # +Z the default
15647         ;;
15648       *)
15649         lt_prog_compiler_pic_GCJ='+Z'
15650         ;;
15651       esac
15652       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15653       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15654       ;;
15655
15656     irix5* | irix6* | nonstopux*)
15657       lt_prog_compiler_wl_GCJ='-Wl,'
15658       # PIC (with -KPIC) is the default.
15659       lt_prog_compiler_static_GCJ='-non_shared'
15660       ;;
15661
15662     newsos6)
15663       lt_prog_compiler_pic_GCJ='-KPIC'
15664       lt_prog_compiler_static_GCJ='-Bstatic'
15665       ;;
15666
15667     linux*)
15668       case $cc_basename in
15669       icc* | ecc*)
15670         lt_prog_compiler_wl_GCJ='-Wl,'
15671         lt_prog_compiler_pic_GCJ='-KPIC'
15672         lt_prog_compiler_static_GCJ='-static'
15673         ;;
15674       pgcc* | pgf77* | pgf90* | pgf95*)
15675         # Portland Group compilers (*not* the Pentium gcc compiler,
15676         # which looks to be a dead project)
15677         lt_prog_compiler_wl_GCJ='-Wl,'
15678         lt_prog_compiler_pic_GCJ='-fpic'
15679         lt_prog_compiler_static_GCJ='-Bstatic'
15680         ;;
15681       ccc*)
15682         lt_prog_compiler_wl_GCJ='-Wl,'
15683         # All Alpha code is PIC.
15684         lt_prog_compiler_static_GCJ='-non_shared'
15685         ;;
15686       esac
15687       ;;
15688
15689     osf3* | osf4* | osf5*)
15690       lt_prog_compiler_wl_GCJ='-Wl,'
15691       # All OSF/1 code is PIC.
15692       lt_prog_compiler_static_GCJ='-non_shared'
15693       ;;
15694
15695     solaris*)
15696       lt_prog_compiler_pic_GCJ='-KPIC'
15697       lt_prog_compiler_static_GCJ='-Bstatic'
15698       case $cc_basename in
15699       f77* | f90* | f95*)
15700         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15701       *)
15702         lt_prog_compiler_wl_GCJ='-Wl,';;
15703       esac
15704       ;;
15705
15706     sunos4*)
15707       lt_prog_compiler_wl_GCJ='-Qoption ld '
15708       lt_prog_compiler_pic_GCJ='-PIC'
15709       lt_prog_compiler_static_GCJ='-Bstatic'
15710       ;;
15711
15712     sysv4 | sysv4.2uw2* | sysv4.3*)
15713       lt_prog_compiler_wl_GCJ='-Wl,'
15714       lt_prog_compiler_pic_GCJ='-KPIC'
15715       lt_prog_compiler_static_GCJ='-Bstatic'
15716       ;;
15717
15718     sysv4*MP*)
15719       if test -d /usr/nec ;then
15720         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15721         lt_prog_compiler_static_GCJ='-Bstatic'
15722       fi
15723       ;;
15724
15725     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15726       lt_prog_compiler_wl_GCJ='-Wl,'
15727       lt_prog_compiler_pic_GCJ='-KPIC'
15728       lt_prog_compiler_static_GCJ='-Bstatic'
15729       ;;
15730
15731     unicos*)
15732       lt_prog_compiler_wl_GCJ='-Wl,'
15733       lt_prog_compiler_can_build_shared_GCJ=no
15734       ;;
15735
15736     uts4*)
15737       lt_prog_compiler_pic_GCJ='-pic'
15738       lt_prog_compiler_static_GCJ='-Bstatic'
15739       ;;
15740
15741     *)
15742       lt_prog_compiler_can_build_shared_GCJ=no
15743       ;;
15744     esac
15745   fi
15746
15747 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15748 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15749
15750 #
15751 # Check to make sure the PIC flag actually works.
15752 #
15753 if test -n "$lt_prog_compiler_pic_GCJ"; then
15754   
15755 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15756 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15757 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15758   echo $ECHO_N "(cached) $ECHO_C" >&6
15759 else
15760   lt_prog_compiler_pic_works_GCJ=no
15761   ac_outfile=conftest.$ac_objext
15762    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15763    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15764    # Insert the option either (1) after the last *FLAGS variable, or
15765    # (2) before a word containing "conftest.", or (3) at the end.
15766    # Note that $ac_compile itself does not contain backslashes and begins
15767    # with a dollar sign (not a hyphen), so the echo should work correctly.
15768    # The option is referenced via a variable to avoid confusing sed.
15769    lt_compile=`echo "$ac_compile" | $SED \
15770    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15771    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15772    -e 's:$: $lt_compiler_flag:'`
15773    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15774    (eval "$lt_compile" 2>conftest.err)
15775    ac_status=$?
15776    cat conftest.err >&5
15777    echo "$as_me:__oline__: \$? = $ac_status" >&5
15778    if (exit $ac_status) && test -s "$ac_outfile"; then
15779      # The compiler can only warn and ignore the option if not recognized
15780      # So say no if there are warnings other than the usual output.
15781      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15782      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15783      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15784        lt_prog_compiler_pic_works_GCJ=yes
15785      fi
15786    fi
15787    $rm conftest*
15788
15789 fi
15790 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15791 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15792
15793 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15794     case $lt_prog_compiler_pic_GCJ in
15795      "" | " "*) ;;
15796      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15797      esac
15798 else
15799     lt_prog_compiler_pic_GCJ=
15800      lt_prog_compiler_can_build_shared_GCJ=no
15801 fi
15802
15803 fi
15804 case $host_os in
15805   # For platforms which do not support PIC, -DPIC is meaningless:
15806   *djgpp*)
15807     lt_prog_compiler_pic_GCJ=
15808     ;;
15809   *)
15810     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15811     ;;
15812 esac
15813
15814 #
15815 # Check to make sure the static flag actually works.
15816 #
15817 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
15818 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15819 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15820 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
15821   echo $ECHO_N "(cached) $ECHO_C" >&6
15822 else
15823   lt_prog_compiler_static_works_GCJ=no
15824    save_LDFLAGS="$LDFLAGS"
15825    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15826    printf "$lt_simple_link_test_code" > conftest.$ac_ext
15827    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15828      # The linker can only warn and ignore the option if not recognized
15829      # So say no if there are warnings
15830      if test -s conftest.err; then
15831        # Append any errors to the config.log.
15832        cat conftest.err 1>&5
15833        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15834        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15835        if diff conftest.exp conftest.er2 >/dev/null; then
15836          lt_prog_compiler_static_works_GCJ=yes
15837        fi
15838      else
15839        lt_prog_compiler_static_works_GCJ=yes
15840      fi
15841    fi
15842    $rm conftest*
15843    LDFLAGS="$save_LDFLAGS"
15844
15845 fi
15846 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
15847 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
15848
15849 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
15850     :
15851 else
15852     lt_prog_compiler_static_GCJ=
15853 fi
15854
15855
15856 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15857 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15858 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15859   echo $ECHO_N "(cached) $ECHO_C" >&6
15860 else
15861   lt_cv_prog_compiler_c_o_GCJ=no
15862    $rm -r conftest 2>/dev/null
15863    mkdir conftest
15864    cd conftest
15865    mkdir out
15866    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15867
15868    lt_compiler_flag="-o out/conftest2.$ac_objext"
15869    # Insert the option either (1) after the last *FLAGS variable, or
15870    # (2) before a word containing "conftest.", or (3) at the end.
15871    # Note that $ac_compile itself does not contain backslashes and begins
15872    # with a dollar sign (not a hyphen), so the echo should work correctly.
15873    lt_compile=`echo "$ac_compile" | $SED \
15874    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15875    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15876    -e 's:$: $lt_compiler_flag:'`
15877    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15878    (eval "$lt_compile" 2>out/conftest.err)
15879    ac_status=$?
15880    cat out/conftest.err >&5
15881    echo "$as_me:__oline__: \$? = $ac_status" >&5
15882    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15883    then
15884      # The compiler can only warn and ignore the option if not recognized
15885      # So say no if there are warnings
15886      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15887      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15888      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15889        lt_cv_prog_compiler_c_o_GCJ=yes
15890      fi
15891    fi
15892    chmod u+w . 2>&5
15893    $rm conftest*
15894    # SGI C++ compiler will create directory out/ii_files/ for
15895    # template instantiation
15896    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15897    $rm out/* && rmdir out
15898    cd ..
15899    rmdir conftest
15900    $rm conftest*
15901
15902 fi
15903 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15904 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15905
15906
15907 hard_links="nottested"
15908 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15909   # do not overwrite the value of need_locks provided by the user
15910   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15911 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15912   hard_links=yes
15913   $rm conftest*
15914   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15915   touch conftest.a
15916   ln conftest.a conftest.b 2>&5 || hard_links=no
15917   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15918   echo "$as_me:$LINENO: result: $hard_links" >&5
15919 echo "${ECHO_T}$hard_links" >&6
15920   if test "$hard_links" = no; then
15921     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15922 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15923     need_locks=warn
15924   fi
15925 else
15926   need_locks=no
15927 fi
15928
15929 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15930 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15931
15932   runpath_var=
15933   allow_undefined_flag_GCJ=
15934   enable_shared_with_static_runtimes_GCJ=no
15935   archive_cmds_GCJ=
15936   archive_expsym_cmds_GCJ=
15937   old_archive_From_new_cmds_GCJ=
15938   old_archive_from_expsyms_cmds_GCJ=
15939   export_dynamic_flag_spec_GCJ=
15940   whole_archive_flag_spec_GCJ=
15941   thread_safe_flag_spec_GCJ=
15942   hardcode_libdir_flag_spec_GCJ=
15943   hardcode_libdir_flag_spec_ld_GCJ=
15944   hardcode_libdir_separator_GCJ=
15945   hardcode_direct_GCJ=no
15946   hardcode_minus_L_GCJ=no
15947   hardcode_shlibpath_var_GCJ=unsupported
15948   link_all_deplibs_GCJ=unknown
15949   hardcode_automatic_GCJ=no
15950   module_cmds_GCJ=
15951   module_expsym_cmds_GCJ=
15952   always_export_symbols_GCJ=no
15953   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15954   # include_expsyms should be a list of space-separated symbols to be *always*
15955   # included in the symbol list
15956   include_expsyms_GCJ=
15957   # exclude_expsyms can be an extended regexp of symbols to exclude
15958   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15959   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15960   # as well as any symbol that contains `d'.
15961   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15962   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15963   # platforms (ab)use it in PIC code, but their linkers get confused if
15964   # the symbol is explicitly referenced.  Since portable code cannot
15965   # rely on this symbol name, it's probably fine to never include it in
15966   # preloaded symbol tables.
15967   extract_expsyms_cmds=
15968   # Just being paranoid about ensuring that cc_basename is set.
15969   for cc_temp in $compiler""; do
15970   case $cc_temp in
15971     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15972     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15973     \-*) ;;
15974     *) break;;
15975   esac
15976 done
15977 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15978
15979   case $host_os in
15980   cygwin* | mingw* | pw32*)
15981     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15982     # When not using gcc, we currently assume that we are using
15983     # Microsoft Visual C++.
15984     if test "$GCC" != yes; then
15985       with_gnu_ld=no
15986     fi
15987     ;;
15988   interix*)
15989     # we just hope/assume this is gcc and not c89 (= MSVC++)
15990     with_gnu_ld=yes
15991     ;;
15992   openbsd*)
15993     with_gnu_ld=no
15994     ;;
15995   esac
15996
15997   ld_shlibs_GCJ=yes
15998   if test "$with_gnu_ld" = yes; then
15999     # If archive_cmds runs LD, not CC, wlarc should be empty
16000     wlarc='${wl}'
16001
16002     # Set some defaults for GNU ld with shared library support. These
16003     # are reset later if shared libraries are not supported. Putting them
16004     # here allows them to be overridden if necessary.
16005     runpath_var=LD_RUN_PATH
16006     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16007     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16008     # ancient GNU ld didn't support --whole-archive et. al.
16009     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16010         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16011       else
16012         whole_archive_flag_spec_GCJ=
16013     fi
16014     supports_anon_versioning=no
16015     case `$LD -v 2>/dev/null` in
16016       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16017       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16018       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16019       *\ 2.11.*) ;; # other 2.11 versions
16020       *) supports_anon_versioning=yes ;;
16021     esac
16022
16023     # See if GNU ld supports shared libraries.
16024     case $host_os in
16025     aix3* | aix4* | aix5*)
16026       # On AIX/PPC, the GNU linker is very broken
16027       if test "$host_cpu" != ia64; then
16028         ld_shlibs_GCJ=no
16029         cat <<EOF 1>&2
16030
16031 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16032 *** to be unable to reliably create shared libraries on AIX.
16033 *** Therefore, libtool is disabling shared libraries support.  If you
16034 *** really care for shared libraries, you may want to modify your PATH
16035 *** so that a non-GNU linker is found, and then restart.
16036
16037 EOF
16038       fi
16039       ;;
16040
16041     amigaos*)
16042       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)'
16043       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16044       hardcode_minus_L_GCJ=yes
16045
16046       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16047       # that the semantics of dynamic libraries on AmigaOS, at least up
16048       # to version 4, is to share data among multiple programs linked
16049       # with the same dynamic library.  Since this doesn't match the
16050       # behavior of shared libraries on other platforms, we can't use
16051       # them.
16052       ld_shlibs_GCJ=no
16053       ;;
16054
16055     beos*)
16056       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16057         allow_undefined_flag_GCJ=unsupported
16058         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16059         # support --undefined.  This deserves some investigation.  FIXME
16060         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16061       else
16062         ld_shlibs_GCJ=no
16063       fi
16064       ;;
16065
16066     cygwin* | mingw* | pw32*)
16067       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16068       # as there is no search path for DLLs.
16069       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16070       allow_undefined_flag_GCJ=unsupported
16071       always_export_symbols_GCJ=no
16072       enable_shared_with_static_runtimes_GCJ=yes
16073       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16074
16075       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16076         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16077         # If the export-symbols file already is a .def file (1st line
16078         # is EXPORTS), use it as is; otherwise, prepend...
16079         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16080           cp $export_symbols $output_objdir/$soname.def;
16081         else
16082           echo EXPORTS > $output_objdir/$soname.def;
16083           cat $export_symbols >> $output_objdir/$soname.def;
16084         fi~
16085         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16086       else
16087         ld_shlibs_GCJ=no
16088       fi
16089       ;;
16090
16091     interix3*)
16092       hardcode_direct_GCJ=no
16093       hardcode_shlibpath_var_GCJ=no
16094       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16095       export_dynamic_flag_spec_GCJ='${wl}-E'
16096       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16097       # Instead, shared libraries are loaded at an image base (0x10000000 by
16098       # default) and relocated if they conflict, which is a slow very memory
16099       # consuming and fragmenting process.  To avoid this, we pick a random,
16100       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16101       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16102       archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16103       archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16104       ;;
16105
16106     linux*)
16107       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16108         tmp_addflag=
16109         case $cc_basename,$host_cpu in
16110         pgcc*)                          # Portland Group C compiler
16111           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16112           tmp_addflag=' $pic_flag'
16113           ;;
16114         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16115           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16116           tmp_addflag=' $pic_flag -Mnomain' ;;
16117         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16118           tmp_addflag=' -i_dynamic' ;;
16119         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16120           tmp_addflag=' -i_dynamic -nofor_main' ;;
16121         ifc* | ifort*)                  # Intel Fortran compiler
16122           tmp_addflag=' -nofor_main' ;;
16123         esac
16124         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16125
16126         if test $supports_anon_versioning = yes; then
16127           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16128   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16129   $echo "local: *; };" >> $output_objdir/$libname.ver~
16130           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16131         fi
16132       else
16133         ld_shlibs_GCJ=no
16134       fi
16135       ;;
16136
16137     netbsd*)
16138       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16139         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16140         wlarc=
16141       else
16142         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16143         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16144       fi
16145       ;;
16146
16147     solaris*)
16148       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16149         ld_shlibs_GCJ=no
16150         cat <<EOF 1>&2
16151
16152 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16153 *** create shared libraries on Solaris systems.  Therefore, libtool
16154 *** is disabling shared libraries support.  We urge you to upgrade GNU
16155 *** binutils to release 2.9.1 or newer.  Another option is to modify
16156 *** your PATH or compiler configuration so that the native linker is
16157 *** used, and then restart.
16158
16159 EOF
16160       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16161         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16162         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16163       else
16164         ld_shlibs_GCJ=no
16165       fi
16166       ;;
16167
16168     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16169       case `$LD -v 2>&1` in
16170         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 
16171         ld_shlibs_GCJ=no
16172         cat <<_LT_EOF 1>&2
16173
16174 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16175 *** reliably create shared libraries on SCO systems.  Therefore, libtool
16176 *** is disabling shared libraries support.  We urge you to upgrade GNU
16177 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16178 *** your PATH or compiler configuration so that the native linker is
16179 *** used, and then restart.
16180
16181 _LT_EOF
16182         ;;
16183         *)
16184           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16185             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16186             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16187             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16188           else
16189             ld_shlibs_GCJ=no
16190           fi
16191         ;;
16192       esac
16193       ;;
16194
16195     sunos4*)
16196       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16197       wlarc=
16198       hardcode_direct_GCJ=yes
16199       hardcode_shlibpath_var_GCJ=no
16200       ;;
16201
16202     *)
16203       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16204         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16205         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16206       else
16207         ld_shlibs_GCJ=no
16208       fi
16209       ;;
16210     esac
16211
16212     if test "$ld_shlibs_GCJ" = no; then
16213       runpath_var=
16214       hardcode_libdir_flag_spec_GCJ=
16215       export_dynamic_flag_spec_GCJ=
16216       whole_archive_flag_spec_GCJ=
16217     fi
16218   else
16219     # PORTME fill in a description of your system's linker (not GNU ld)
16220     case $host_os in
16221     aix3*)
16222       allow_undefined_flag_GCJ=unsupported
16223       always_export_symbols_GCJ=yes
16224       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'
16225       # Note: this linker hardcodes the directories in LIBPATH if there
16226       # are no directories specified by -L.
16227       hardcode_minus_L_GCJ=yes
16228       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16229         # Neither direct hardcoding nor static linking is supported with a
16230         # broken collect2.
16231         hardcode_direct_GCJ=unsupported
16232       fi
16233       ;;
16234
16235     aix4* | aix5*)
16236       if test "$host_cpu" = ia64; then
16237         # On IA64, the linker does run time linking by default, so we don't
16238         # have to do anything special.
16239         aix_use_runtimelinking=no
16240         exp_sym_flag='-Bexport'
16241         no_entry_flag=""
16242       else
16243         # If we're using GNU nm, then we don't want the "-C" option.
16244         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16245         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16246           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'
16247         else
16248           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'
16249         fi
16250         aix_use_runtimelinking=no
16251
16252         # Test if we are trying to use run time linking or normal
16253         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16254         # need to do runtime linking.
16255         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16256           for ld_flag in $LDFLAGS; do
16257           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16258             aix_use_runtimelinking=yes
16259             break
16260           fi
16261           done
16262           ;;
16263         esac
16264
16265         exp_sym_flag='-bexport'
16266         no_entry_flag='-bnoentry'
16267       fi
16268
16269       # When large executables or shared objects are built, AIX ld can
16270       # have problems creating the table of contents.  If linking a library
16271       # or program results in "error TOC overflow" add -mminimal-toc to
16272       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16273       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16274
16275       archive_cmds_GCJ=''
16276       hardcode_direct_GCJ=yes
16277       hardcode_libdir_separator_GCJ=':'
16278       link_all_deplibs_GCJ=yes
16279
16280       if test "$GCC" = yes; then
16281         case $host_os in aix4.[012]|aix4.[012].*)
16282         # We only want to do this on AIX 4.2 and lower, the check
16283         # below for broken collect2 doesn't work under 4.3+
16284           collect2name=`${CC} -print-prog-name=collect2`
16285           if test -f "$collect2name" && \
16286            strings "$collect2name" | grep resolve_lib_name >/dev/null
16287           then
16288           # We have reworked collect2
16289           hardcode_direct_GCJ=yes
16290           else
16291           # We have old collect2
16292           hardcode_direct_GCJ=unsupported
16293           # It fails to find uninstalled libraries when the uninstalled
16294           # path is not listed in the libpath.  Setting hardcode_minus_L
16295           # to unsupported forces relinking
16296           hardcode_minus_L_GCJ=yes
16297           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16298           hardcode_libdir_separator_GCJ=
16299           fi
16300           ;;
16301         esac
16302         shared_flag='-shared'
16303         if test "$aix_use_runtimelinking" = yes; then
16304           shared_flag="$shared_flag "'${wl}-G'
16305         fi
16306       else
16307         # not using gcc
16308         if test "$host_cpu" = ia64; then
16309         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16310         # chokes on -Wl,-G. The following line is correct:
16311           shared_flag='-G'
16312         else
16313           if test "$aix_use_runtimelinking" = yes; then
16314             shared_flag='${wl}-G'
16315           else
16316             shared_flag='${wl}-bM:SRE'
16317           fi
16318         fi
16319       fi
16320
16321       # It seems that -bexpall does not export symbols beginning with
16322       # underscore (_), so it is better to generate a list of symbols to export.
16323       always_export_symbols_GCJ=yes
16324       if test "$aix_use_runtimelinking" = yes; then
16325         # Warning - without using the other runtime loading flags (-brtl),
16326         # -berok will link without error, but may produce a broken library.
16327         allow_undefined_flag_GCJ='-berok'
16328        # Determine the default libpath from the value encoded in an empty executable.
16329        cat >conftest.$ac_ext <<_ACEOF
16330 /* confdefs.h.  */
16331 _ACEOF
16332 cat confdefs.h >>conftest.$ac_ext
16333 cat >>conftest.$ac_ext <<_ACEOF
16334 /* end confdefs.h.  */
16335
16336 int
16337 main ()
16338 {
16339
16340   ;
16341   return 0;
16342 }
16343 _ACEOF
16344 rm -f conftest.$ac_objext conftest$ac_exeext
16345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16346   (eval $ac_link) 2>conftest.er1
16347   ac_status=$?
16348   grep -v '^ *+' conftest.er1 >conftest.err
16349   rm -f conftest.er1
16350   cat conftest.err >&5
16351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16352   (exit $ac_status); } &&
16353          { ac_try='test -z "$ac_c_werror_flag"
16354                          || test ! -s conftest.err'
16355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16356   (eval $ac_try) 2>&5
16357   ac_status=$?
16358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16359   (exit $ac_status); }; } &&
16360          { ac_try='test -s conftest$ac_exeext'
16361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16362   (eval $ac_try) 2>&5
16363   ac_status=$?
16364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16365   (exit $ac_status); }; }; then
16366   
16367 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16368 }'`
16369 # Check for a 64-bit object if we didn't find anything.
16370 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; }
16371 }'`; fi
16372 else
16373   echo "$as_me: failed program was:" >&5
16374 sed 's/^/| /' conftest.$ac_ext >&5
16375
16376 fi
16377 rm -f conftest.err conftest.$ac_objext \
16378       conftest$ac_exeext conftest.$ac_ext
16379 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16380
16381        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16382         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16383        else
16384         if test "$host_cpu" = ia64; then
16385           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16386           allow_undefined_flag_GCJ="-z nodefs"
16387           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16388         else
16389          # Determine the default libpath from the value encoded in an empty executable.
16390          cat >conftest.$ac_ext <<_ACEOF
16391 /* confdefs.h.  */
16392 _ACEOF
16393 cat confdefs.h >>conftest.$ac_ext
16394 cat >>conftest.$ac_ext <<_ACEOF
16395 /* end confdefs.h.  */
16396
16397 int
16398 main ()
16399 {
16400
16401   ;
16402   return 0;
16403 }
16404 _ACEOF
16405 rm -f conftest.$ac_objext conftest$ac_exeext
16406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16407   (eval $ac_link) 2>conftest.er1
16408   ac_status=$?
16409   grep -v '^ *+' conftest.er1 >conftest.err
16410   rm -f conftest.er1
16411   cat conftest.err >&5
16412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16413   (exit $ac_status); } &&
16414          { ac_try='test -z "$ac_c_werror_flag"
16415                          || test ! -s conftest.err'
16416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16417   (eval $ac_try) 2>&5
16418   ac_status=$?
16419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16420   (exit $ac_status); }; } &&
16421          { ac_try='test -s conftest$ac_exeext'
16422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16423   (eval $ac_try) 2>&5
16424   ac_status=$?
16425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16426   (exit $ac_status); }; }; then
16427   
16428 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16429 }'`
16430 # Check for a 64-bit object if we didn't find anything.
16431 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; }
16432 }'`; fi
16433 else
16434   echo "$as_me: failed program was:" >&5
16435 sed 's/^/| /' conftest.$ac_ext >&5
16436
16437 fi
16438 rm -f conftest.err conftest.$ac_objext \
16439       conftest$ac_exeext conftest.$ac_ext
16440 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16441
16442          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16443           # Warning - without using the other run time loading flags,
16444           # -berok will link without error, but may produce a broken library.
16445           no_undefined_flag_GCJ=' ${wl}-bernotok'
16446           allow_undefined_flag_GCJ=' ${wl}-berok'
16447           # Exported symbols can be pulled into shared objects from archives
16448           whole_archive_flag_spec_GCJ='$convenience'
16449           archive_cmds_need_lc_GCJ=yes
16450           # This is similar to how AIX traditionally builds its shared libraries.
16451           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16452         fi
16453       fi
16454       ;;
16455
16456     amigaos*)
16457       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)'
16458       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16459       hardcode_minus_L_GCJ=yes
16460       # see comment about different semantics on the GNU ld section
16461       ld_shlibs_GCJ=no
16462       ;;
16463
16464     bsdi[45]*)
16465       export_dynamic_flag_spec_GCJ=-rdynamic
16466       ;;
16467
16468     cygwin* | mingw* | pw32*)
16469       # When not using gcc, we currently assume that we are using
16470       # Microsoft Visual C++.
16471       # hardcode_libdir_flag_spec is actually meaningless, as there is
16472       # no search path for DLLs.
16473       hardcode_libdir_flag_spec_GCJ=' '
16474       allow_undefined_flag_GCJ=unsupported
16475       # Tell ltmain to make .lib files, not .a files.
16476       libext=lib
16477       # Tell ltmain to make .dll files, not .so files.
16478       shrext_cmds=".dll"
16479       # FIXME: Setting linknames here is a bad hack.
16480       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16481       # The linker will automatically build a .lib file if we build a DLL.
16482       old_archive_From_new_cmds_GCJ='true'
16483       # FIXME: Should let the user specify the lib program.
16484       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16485       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16486       enable_shared_with_static_runtimes_GCJ=yes
16487       ;;
16488
16489     darwin* | rhapsody*)
16490       case $host_os in
16491         rhapsody* | darwin1.[012])
16492          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16493          ;;
16494        *) # Darwin 1.3 on
16495          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16496            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16497          else
16498            case ${MACOSX_DEPLOYMENT_TARGET} in
16499              10.[012])
16500                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16501                ;;
16502              10.*)
16503                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16504                ;;
16505            esac
16506          fi
16507          ;;
16508       esac
16509       archive_cmds_need_lc_GCJ=no
16510       hardcode_direct_GCJ=no
16511       hardcode_automatic_GCJ=yes
16512       hardcode_shlibpath_var_GCJ=unsupported
16513       whole_archive_flag_spec_GCJ=''
16514       link_all_deplibs_GCJ=yes
16515     if test "$GCC" = yes ; then
16516         output_verbose_link_cmd='echo'
16517         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16518       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16519       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16520       archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16521       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}'
16522     else
16523       case $cc_basename in
16524         xlc*)
16525          output_verbose_link_cmd='echo'
16526          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16527          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16528           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16529          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16530           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}'
16531           ;;
16532        *)
16533          ld_shlibs_GCJ=no
16534           ;;
16535       esac
16536     fi
16537       ;;
16538
16539     dgux*)
16540       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16541       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16542       hardcode_shlibpath_var_GCJ=no
16543       ;;
16544
16545     freebsd1*)
16546       ld_shlibs_GCJ=no
16547       ;;
16548
16549     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16550     # support.  Future versions do this automatically, but an explicit c++rt0.o
16551     # does not break anything, and helps significantly (at the cost of a little
16552     # extra space).
16553     freebsd2.2*)
16554       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16555       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16556       hardcode_direct_GCJ=yes
16557       hardcode_shlibpath_var_GCJ=no
16558       ;;
16559
16560     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16561     freebsd2*)
16562       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16563       hardcode_direct_GCJ=yes
16564       hardcode_minus_L_GCJ=yes
16565       hardcode_shlibpath_var_GCJ=no
16566       ;;
16567
16568     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16569     freebsd* | kfreebsd*-gnu | dragonfly*)
16570       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16571       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16572       hardcode_direct_GCJ=yes
16573       hardcode_shlibpath_var_GCJ=no
16574       ;;
16575
16576     hpux9*)
16577       if test "$GCC" = yes; then
16578         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'
16579       else
16580         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'
16581       fi
16582       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16583       hardcode_libdir_separator_GCJ=:
16584       hardcode_direct_GCJ=yes
16585
16586       # hardcode_minus_L: Not really in the search PATH,
16587       # but as the default location of the library.
16588       hardcode_minus_L_GCJ=yes
16589       export_dynamic_flag_spec_GCJ='${wl}-E'
16590       ;;
16591
16592     hpux10*)
16593       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16594         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16595       else
16596         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16597       fi
16598       if test "$with_gnu_ld" = no; then
16599         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16600         hardcode_libdir_separator_GCJ=:
16601
16602         hardcode_direct_GCJ=yes
16603         export_dynamic_flag_spec_GCJ='${wl}-E'
16604
16605         # hardcode_minus_L: Not really in the search PATH,
16606         # but as the default location of the library.
16607         hardcode_minus_L_GCJ=yes
16608       fi
16609       ;;
16610
16611     hpux11*)
16612       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16613         case $host_cpu in
16614         hppa*64*)
16615           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16616           ;;
16617         ia64*)
16618           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16619           ;;
16620         *)
16621           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16622           ;;
16623         esac
16624       else
16625         case $host_cpu in
16626         hppa*64*)
16627           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16628           ;;
16629         ia64*)
16630           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16631           ;;
16632         *)
16633           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16634           ;;
16635         esac
16636       fi
16637       if test "$with_gnu_ld" = no; then
16638         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16639         hardcode_libdir_separator_GCJ=:
16640
16641         case $host_cpu in
16642         hppa*64*|ia64*)
16643           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16644           hardcode_direct_GCJ=no
16645           hardcode_shlibpath_var_GCJ=no
16646           ;;
16647         *)
16648           hardcode_direct_GCJ=yes
16649           export_dynamic_flag_spec_GCJ='${wl}-E'
16650
16651           # hardcode_minus_L: Not really in the search PATH,
16652           # but as the default location of the library.
16653           hardcode_minus_L_GCJ=yes
16654           ;;
16655         esac
16656       fi
16657       ;;
16658
16659     irix5* | irix6* | nonstopux*)
16660       if test "$GCC" = yes; then
16661         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'
16662       else
16663         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'
16664         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16665       fi
16666       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16667       hardcode_libdir_separator_GCJ=:
16668       link_all_deplibs_GCJ=yes
16669       ;;
16670
16671     netbsd*)
16672       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16673         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16674       else
16675         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16676       fi
16677       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16678       hardcode_direct_GCJ=yes
16679       hardcode_shlibpath_var_GCJ=no
16680       ;;
16681
16682     newsos6)
16683       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16684       hardcode_direct_GCJ=yes
16685       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16686       hardcode_libdir_separator_GCJ=:
16687       hardcode_shlibpath_var_GCJ=no
16688       ;;
16689
16690     openbsd*)
16691       hardcode_direct_GCJ=yes
16692       hardcode_shlibpath_var_GCJ=no
16693       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16694         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16695         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16696         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16697         export_dynamic_flag_spec_GCJ='${wl}-E'
16698       else
16699        case $host_os in
16700          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16701            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16702            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16703            ;;
16704          *)
16705            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16706            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16707            ;;
16708        esac
16709       fi
16710       ;;
16711
16712     os2*)
16713       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16714       hardcode_minus_L_GCJ=yes
16715       allow_undefined_flag_GCJ=unsupported
16716       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'
16717       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16718       ;;
16719
16720     osf3*)
16721       if test "$GCC" = yes; then
16722         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16723         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'
16724       else
16725         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16726         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'
16727       fi
16728       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16729       hardcode_libdir_separator_GCJ=:
16730       ;;
16731
16732     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16733       if test "$GCC" = yes; then
16734         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16735         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'
16736         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16737       else
16738         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16739         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'
16740         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~
16741         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
16742
16743         # Both c and cxx compiler support -rpath directly
16744         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16745       fi
16746       hardcode_libdir_separator_GCJ=:
16747       ;;
16748
16749     solaris*)
16750       no_undefined_flag_GCJ=' -z text'
16751       if test "$GCC" = yes; then
16752         wlarc='${wl}'
16753         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16754         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16755           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16756       else
16757         wlarc=''
16758         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16759         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16760         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16761       fi
16762       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16763       hardcode_shlibpath_var_GCJ=no
16764       case $host_os in
16765       solaris2.[0-5] | solaris2.[0-5].*) ;;
16766       *)
16767         # The compiler driver will combine linker options so we
16768         # cannot just pass the convience library names through
16769         # without $wl, iff we do not link with $LD.
16770         # Luckily, gcc supports the same syntax we need for Sun Studio.
16771         # Supported since Solaris 2.6 (maybe 2.5.1?)
16772         case $wlarc in
16773         '')
16774           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16775         *)
16776           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16777         esac ;;
16778       esac
16779       link_all_deplibs_GCJ=yes
16780       ;;
16781
16782     sunos4*)
16783       if test "x$host_vendor" = xsequent; then
16784         # Use $CC to link under sequent, because it throws in some extra .o
16785         # files that make .init and .fini sections work.
16786         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16787       else
16788         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16789       fi
16790       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16791       hardcode_direct_GCJ=yes
16792       hardcode_minus_L_GCJ=yes
16793       hardcode_shlibpath_var_GCJ=no
16794       ;;
16795
16796     sysv4)
16797       case $host_vendor in
16798         sni)
16799           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16800           hardcode_direct_GCJ=yes # is this really true???
16801         ;;
16802         siemens)
16803           ## LD is ld it makes a PLAMLIB
16804           ## CC just makes a GrossModule.
16805           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16806           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16807           hardcode_direct_GCJ=no
16808         ;;
16809         motorola)
16810           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16811           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16812         ;;
16813       esac
16814       runpath_var='LD_RUN_PATH'
16815       hardcode_shlibpath_var_GCJ=no
16816       ;;
16817
16818     sysv4.3*)
16819       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16820       hardcode_shlibpath_var_GCJ=no
16821       export_dynamic_flag_spec_GCJ='-Bexport'
16822       ;;
16823
16824     sysv4*MP*)
16825       if test -d /usr/nec; then
16826         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16827         hardcode_shlibpath_var_GCJ=no
16828         runpath_var=LD_RUN_PATH
16829         hardcode_runpath_var=yes
16830         ld_shlibs_GCJ=yes
16831       fi
16832       ;;
16833
16834     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16835       no_undefined_flag_GCJ='${wl}-z,text'
16836       archive_cmds_need_lc_GCJ=no
16837       hardcode_shlibpath_var_GCJ=no
16838       runpath_var='LD_RUN_PATH'
16839
16840       if test "$GCC" = yes; then
16841         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16842         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16843       else
16844         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16845         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16846       fi
16847       ;;
16848
16849     sysv5* | sco3.2v5* | sco5v6*)
16850       # Note: We can NOT use -z defs as we might desire, because we do not
16851       # link with -lc, and that would cause any symbols used from libc to
16852       # always be unresolved, which means just about no library would
16853       # ever link correctly.  If we're not using GNU ld we use -z text
16854       # though, which does catch some bad symbols but isn't as heavy-handed
16855       # as -z defs.
16856       no_undefined_flag_GCJ='${wl}-z,text'
16857       allow_undefined_flag_GCJ='${wl}-z,nodefs'
16858       archive_cmds_need_lc_GCJ=no
16859       hardcode_shlibpath_var_GCJ=no
16860       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16861       hardcode_libdir_separator_GCJ=':'
16862       link_all_deplibs_GCJ=yes
16863       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16864       runpath_var='LD_RUN_PATH'
16865
16866       if test "$GCC" = yes; then
16867         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16868         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16869       else
16870         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16871         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16872       fi
16873       ;;
16874
16875     uts4*)
16876       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16877       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16878       hardcode_shlibpath_var_GCJ=no
16879       ;;
16880
16881     *)
16882       ld_shlibs_GCJ=no
16883       ;;
16884     esac
16885   fi
16886
16887 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16888 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16889 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16890
16891 #
16892 # Do we need to explicitly link libc?
16893 #
16894 case "x$archive_cmds_need_lc_GCJ" in
16895 x|xyes)
16896   # Assume -lc should be added
16897   archive_cmds_need_lc_GCJ=yes
16898
16899   if test "$enable_shared" = yes && test "$GCC" = yes; then
16900     case $archive_cmds_GCJ in
16901     *'~'*)
16902       # FIXME: we may have to deal with multi-command sequences.
16903       ;;
16904     '$CC '*)
16905       # Test whether the compiler implicitly links with -lc since on some
16906       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16907       # to ld, don't add -lc before -lgcc.
16908       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16909 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16910       $rm conftest*
16911       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16912
16913       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16914   (eval $ac_compile) 2>&5
16915   ac_status=$?
16916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16917   (exit $ac_status); } 2>conftest.err; then
16918         soname=conftest
16919         lib=conftest
16920         libobjs=conftest.$ac_objext
16921         deplibs=
16922         wl=$lt_prog_compiler_wl_GCJ
16923         pic_flag=$lt_prog_compiler_pic_GCJ
16924         compiler_flags=-v
16925         linker_flags=-v
16926         verstring=
16927         output_objdir=.
16928         libname=conftest
16929         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16930         allow_undefined_flag_GCJ=
16931         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16932   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16933   ac_status=$?
16934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16935   (exit $ac_status); }
16936         then
16937           archive_cmds_need_lc_GCJ=no
16938         else
16939           archive_cmds_need_lc_GCJ=yes
16940         fi
16941         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16942       else
16943         cat conftest.err 1>&5
16944       fi
16945       $rm conftest*
16946       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16947 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16948       ;;
16949     esac
16950   fi
16951   ;;
16952 esac
16953
16954 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16955 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16956 library_names_spec=
16957 libname_spec='lib$name'
16958 soname_spec=
16959 shrext_cmds=".so"
16960 postinstall_cmds=
16961 postuninstall_cmds=
16962 finish_cmds=
16963 finish_eval=
16964 shlibpath_var=
16965 shlibpath_overrides_runpath=unknown
16966 version_type=none
16967 dynamic_linker="$host_os ld.so"
16968 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16969 if test "$GCC" = yes; then
16970   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16971   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16972     # if the path contains ";" then we assume it to be the separator
16973     # otherwise default to the standard path separator (i.e. ":") - it is
16974     # assumed that no part of a normal pathname contains ";" but that should
16975     # okay in the real world where ";" in dirpaths is itself problematic.
16976     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16977   else
16978     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16979   fi
16980 else
16981   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16982 fi
16983 need_lib_prefix=unknown
16984 hardcode_into_libs=no
16985
16986 # when you set need_version to no, make sure it does not cause -set_version
16987 # flags to be left without arguments
16988 need_version=unknown
16989
16990 case $host_os in
16991 aix3*)
16992   version_type=linux
16993   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16994   shlibpath_var=LIBPATH
16995
16996   # AIX 3 has no versioning support, so we append a major version to the name.
16997   soname_spec='${libname}${release}${shared_ext}$major'
16998   ;;
16999
17000 aix4* | aix5*)
17001   version_type=linux
17002   need_lib_prefix=no
17003   need_version=no
17004   hardcode_into_libs=yes
17005   if test "$host_cpu" = ia64; then
17006     # AIX 5 supports IA64
17007     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17008     shlibpath_var=LD_LIBRARY_PATH
17009   else
17010     # With GCC up to 2.95.x, collect2 would create an import file
17011     # for dependence libraries.  The import file would start with
17012     # the line `#! .'.  This would cause the generated library to
17013     # depend on `.', always an invalid library.  This was fixed in
17014     # development snapshots of GCC prior to 3.0.
17015     case $host_os in
17016       aix4 | aix4.[01] | aix4.[01].*)
17017       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17018            echo ' yes '
17019            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17020         :
17021       else
17022         can_build_shared=no
17023       fi
17024       ;;
17025     esac
17026     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17027     # soname into executable. Probably we can add versioning support to
17028     # collect2, so additional links can be useful in future.
17029     if test "$aix_use_runtimelinking" = yes; then
17030       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17031       # instead of lib<name>.a to let people know that these are not
17032       # typical AIX shared libraries.
17033       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17034     else
17035       # We preserve .a as extension for shared libraries through AIX4.2
17036       # and later when we are not doing run time linking.
17037       library_names_spec='${libname}${release}.a $libname.a'
17038       soname_spec='${libname}${release}${shared_ext}$major'
17039     fi
17040     shlibpath_var=LIBPATH
17041   fi
17042   ;;
17043
17044 amigaos*)
17045   library_names_spec='$libname.ixlibrary $libname.a'
17046   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17047   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'
17048   ;;
17049
17050 beos*)
17051   library_names_spec='${libname}${shared_ext}'
17052   dynamic_linker="$host_os ld.so"
17053   shlibpath_var=LIBRARY_PATH
17054   ;;
17055
17056 bsdi[45]*)
17057   version_type=linux
17058   need_version=no
17059   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17060   soname_spec='${libname}${release}${shared_ext}$major'
17061   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17062   shlibpath_var=LD_LIBRARY_PATH
17063   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17064   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17065   # the default ld.so.conf also contains /usr/contrib/lib and
17066   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17067   # libtool to hard-code these into programs
17068   ;;
17069
17070 cygwin* | mingw* | pw32*)
17071   version_type=windows
17072   shrext_cmds=".dll"
17073   need_version=no
17074   need_lib_prefix=no
17075
17076   case $GCC,$host_os in
17077   yes,cygwin* | yes,mingw* | yes,pw32*)
17078     library_names_spec='$libname.dll.a'
17079     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17080     postinstall_cmds='base_file=`basename \${file}`~
17081       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17082       dldir=$destdir/`dirname \$dlpath`~
17083       test -d \$dldir || mkdir -p \$dldir~
17084       $install_prog $dir/$dlname \$dldir/$dlname~
17085       chmod a+x \$dldir/$dlname'
17086     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17087       dlpath=$dir/\$dldll~
17088        $rm \$dlpath'
17089     shlibpath_overrides_runpath=yes
17090
17091     case $host_os in
17092     cygwin*)
17093       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17094       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17095       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17096       ;;
17097     mingw*)
17098       # MinGW DLLs use traditional 'lib' prefix
17099       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17100       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17101       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17102         # It is most probably a Windows format PATH printed by
17103         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17104         # path with ; separators, and with drive letters. We can handle the
17105         # drive letters (cygwin fileutils understands them), so leave them,
17106         # especially as we might pass files found there to a mingw objdump,
17107         # which wouldn't understand a cygwinified path. Ahh.
17108         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17109       else
17110         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17111       fi
17112       ;;
17113     pw32*)
17114       # pw32 DLLs use 'pw' prefix rather than 'lib'
17115       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17116       ;;
17117     esac
17118     ;;
17119
17120   *)
17121     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17122     ;;
17123   esac
17124   dynamic_linker='Win32 ld.exe'
17125   # FIXME: first we should search . and the directory the executable is in
17126   shlibpath_var=PATH
17127   ;;
17128
17129 darwin* | rhapsody*)
17130   dynamic_linker="$host_os dyld"
17131   version_type=darwin
17132   need_lib_prefix=no
17133   need_version=no
17134   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17135   soname_spec='${libname}${release}${major}$shared_ext'
17136   shlibpath_overrides_runpath=yes
17137   shlibpath_var=DYLD_LIBRARY_PATH
17138   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17139   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17140   if test "$GCC" = yes; then
17141     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"`
17142   else
17143     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17144   fi
17145   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17146   ;;
17147
17148 dgux*)
17149   version_type=linux
17150   need_lib_prefix=no
17151   need_version=no
17152   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17153   soname_spec='${libname}${release}${shared_ext}$major'
17154   shlibpath_var=LD_LIBRARY_PATH
17155   ;;
17156
17157 freebsd1*)
17158   dynamic_linker=no
17159   ;;
17160
17161 kfreebsd*-gnu)
17162   version_type=linux
17163   need_lib_prefix=no
17164   need_version=no
17165   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17166   soname_spec='${libname}${release}${shared_ext}$major'
17167   shlibpath_var=LD_LIBRARY_PATH
17168   shlibpath_overrides_runpath=no
17169   hardcode_into_libs=yes
17170   dynamic_linker='GNU ld.so'
17171   ;;
17172
17173 freebsd* | dragonfly*)
17174   # DragonFly does not have aout.  When/if they implement a new
17175   # versioning mechanism, adjust this.
17176   if test -x /usr/bin/objformat; then
17177     objformat=`/usr/bin/objformat`
17178   else
17179     case $host_os in
17180     freebsd[123]*) objformat=aout ;;
17181     *) objformat=elf ;;
17182     esac
17183   fi
17184   version_type=freebsd-$objformat
17185   case $version_type in
17186     freebsd-elf*)
17187       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17188       need_version=no
17189       need_lib_prefix=no
17190       ;;
17191     freebsd-*)
17192       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17193       need_version=yes
17194       ;;
17195   esac
17196   shlibpath_var=LD_LIBRARY_PATH
17197   case $host_os in
17198   freebsd2*)
17199     shlibpath_overrides_runpath=yes
17200     ;;
17201   freebsd3.[01]* | freebsdelf3.[01]*)
17202     shlibpath_overrides_runpath=yes
17203     hardcode_into_libs=yes
17204     ;;
17205   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17206   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17207     shlibpath_overrides_runpath=no
17208     hardcode_into_libs=yes
17209     ;;
17210   freebsd*) # from 4.6 on
17211     shlibpath_overrides_runpath=yes
17212     hardcode_into_libs=yes
17213     ;;
17214   esac
17215   ;;
17216
17217 gnu*)
17218   version_type=linux
17219   need_lib_prefix=no
17220   need_version=no
17221   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17222   soname_spec='${libname}${release}${shared_ext}$major'
17223   shlibpath_var=LD_LIBRARY_PATH
17224   hardcode_into_libs=yes
17225   ;;
17226
17227 hpux9* | hpux10* | hpux11*)
17228   # Give a soname corresponding to the major version so that dld.sl refuses to
17229   # link against other versions.
17230   version_type=sunos
17231   need_lib_prefix=no
17232   need_version=no
17233   case $host_cpu in
17234   ia64*)
17235     shrext_cmds='.so'
17236     hardcode_into_libs=yes
17237     dynamic_linker="$host_os dld.so"
17238     shlibpath_var=LD_LIBRARY_PATH
17239     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17240     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17241     soname_spec='${libname}${release}${shared_ext}$major'
17242     if test "X$HPUX_IA64_MODE" = X32; then
17243       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17244     else
17245       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17246     fi
17247     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17248     ;;
17249    hppa*64*)
17250      shrext_cmds='.sl'
17251      hardcode_into_libs=yes
17252      dynamic_linker="$host_os dld.sl"
17253      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17254      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17255      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17256      soname_spec='${libname}${release}${shared_ext}$major'
17257      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17258      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17259      ;;
17260    *)
17261     shrext_cmds='.sl'
17262     dynamic_linker="$host_os dld.sl"
17263     shlibpath_var=SHLIB_PATH
17264     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17265     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17266     soname_spec='${libname}${release}${shared_ext}$major'
17267     ;;
17268   esac
17269   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17270   postinstall_cmds='chmod 555 $lib'
17271   ;;
17272
17273 interix3*)
17274   version_type=linux
17275   need_lib_prefix=no
17276   need_version=no
17277   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17278   soname_spec='${libname}${release}${shared_ext}$major'
17279   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17280   shlibpath_var=LD_LIBRARY_PATH
17281   shlibpath_overrides_runpath=no
17282   hardcode_into_libs=yes
17283   ;;
17284
17285 irix5* | irix6* | nonstopux*)
17286   case $host_os in
17287     nonstopux*) version_type=nonstopux ;;
17288     *)
17289         if test "$lt_cv_prog_gnu_ld" = yes; then
17290                 version_type=linux
17291         else
17292                 version_type=irix
17293         fi ;;
17294   esac
17295   need_lib_prefix=no
17296   need_version=no
17297   soname_spec='${libname}${release}${shared_ext}$major'
17298   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17299   case $host_os in
17300   irix5* | nonstopux*)
17301     libsuff= shlibsuff=
17302     ;;
17303   *)
17304     case $LD in # libtool.m4 will add one of these switches to LD
17305     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17306       libsuff= shlibsuff= libmagic=32-bit;;
17307     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17308       libsuff=32 shlibsuff=N32 libmagic=N32;;
17309     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17310       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17311     *) libsuff= shlibsuff= libmagic=never-match;;
17312     esac
17313     ;;
17314   esac
17315   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17316   shlibpath_overrides_runpath=no
17317   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17318   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17319   hardcode_into_libs=yes
17320   ;;
17321
17322 # No shared lib support for Linux oldld, aout, or coff.
17323 linux*oldld* | linux*aout* | linux*coff*)
17324   dynamic_linker=no
17325   ;;
17326
17327 # This must be Linux ELF.
17328 linux*)
17329   version_type=linux
17330   need_lib_prefix=no
17331   need_version=no
17332   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17333   soname_spec='${libname}${release}${shared_ext}$major'
17334   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17335   shlibpath_var=LD_LIBRARY_PATH
17336   shlibpath_overrides_runpath=no
17337   # This implies no fast_install, which is unacceptable.
17338   # Some rework will be needed to allow for fast_install
17339   # before this can be enabled.
17340   hardcode_into_libs=yes
17341
17342   # Append ld.so.conf contents to the search path
17343   if test -f /etc/ld.so.conf; then
17344     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17345     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17346   fi
17347
17348   # We used to test for /lib/ld.so.1 and disable shared libraries on
17349   # powerpc, because MkLinux only supported shared libraries with the
17350   # GNU dynamic linker.  Since this was broken with cross compilers,
17351   # most powerpc-linux boxes support dynamic linking these days and
17352   # people can always --disable-shared, the test was removed, and we
17353   # assume the GNU/Linux dynamic linker is in use.
17354   dynamic_linker='GNU/Linux ld.so'
17355   ;;
17356
17357 knetbsd*-gnu)
17358   version_type=linux
17359   need_lib_prefix=no
17360   need_version=no
17361   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17362   soname_spec='${libname}${release}${shared_ext}$major'
17363   shlibpath_var=LD_LIBRARY_PATH
17364   shlibpath_overrides_runpath=no
17365   hardcode_into_libs=yes
17366   dynamic_linker='GNU ld.so'
17367   ;;
17368
17369 netbsd*)
17370   version_type=sunos
17371   need_lib_prefix=no
17372   need_version=no
17373   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17374     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17375     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17376     dynamic_linker='NetBSD (a.out) ld.so'
17377   else
17378     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17379     soname_spec='${libname}${release}${shared_ext}$major'
17380     dynamic_linker='NetBSD ld.elf_so'
17381   fi
17382   shlibpath_var=LD_LIBRARY_PATH
17383   shlibpath_overrides_runpath=yes
17384   hardcode_into_libs=yes
17385   ;;
17386
17387 newsos6)
17388   version_type=linux
17389   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17390   shlibpath_var=LD_LIBRARY_PATH
17391   shlibpath_overrides_runpath=yes
17392   ;;
17393
17394 nto-qnx*)
17395   version_type=linux
17396   need_lib_prefix=no
17397   need_version=no
17398   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17399   soname_spec='${libname}${release}${shared_ext}$major'
17400   shlibpath_var=LD_LIBRARY_PATH
17401   shlibpath_overrides_runpath=yes
17402   ;;
17403
17404 openbsd*)
17405   version_type=sunos
17406   sys_lib_dlsearch_path_spec="/usr/lib"
17407   need_lib_prefix=no
17408   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17409   case $host_os in
17410     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17411     *)                         need_version=no  ;;
17412   esac
17413   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17414   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17415   shlibpath_var=LD_LIBRARY_PATH
17416   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17417     case $host_os in
17418       openbsd2.[89] | openbsd2.[89].*)
17419         shlibpath_overrides_runpath=no
17420         ;;
17421       *)
17422         shlibpath_overrides_runpath=yes
17423         ;;
17424       esac
17425   else
17426     shlibpath_overrides_runpath=yes
17427   fi
17428   ;;
17429
17430 os2*)
17431   libname_spec='$name'
17432   shrext_cmds=".dll"
17433   need_lib_prefix=no
17434   library_names_spec='$libname${shared_ext} $libname.a'
17435   dynamic_linker='OS/2 ld.exe'
17436   shlibpath_var=LIBPATH
17437   ;;
17438
17439 osf3* | osf4* | osf5*)
17440   version_type=osf
17441   need_lib_prefix=no
17442   need_version=no
17443   soname_spec='${libname}${release}${shared_ext}$major'
17444   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17445   shlibpath_var=LD_LIBRARY_PATH
17446   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17447   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17448   ;;
17449
17450 solaris*)
17451   version_type=linux
17452   need_lib_prefix=no
17453   need_version=no
17454   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17455   soname_spec='${libname}${release}${shared_ext}$major'
17456   shlibpath_var=LD_LIBRARY_PATH
17457   shlibpath_overrides_runpath=yes
17458   hardcode_into_libs=yes
17459   # ldd complains unless libraries are executable
17460   postinstall_cmds='chmod +x $lib'
17461   ;;
17462
17463 sunos4*)
17464   version_type=sunos
17465   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17466   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17467   shlibpath_var=LD_LIBRARY_PATH
17468   shlibpath_overrides_runpath=yes
17469   if test "$with_gnu_ld" = yes; then
17470     need_lib_prefix=no
17471   fi
17472   need_version=yes
17473   ;;
17474
17475 sysv4 | sysv4.3*)
17476   version_type=linux
17477   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17478   soname_spec='${libname}${release}${shared_ext}$major'
17479   shlibpath_var=LD_LIBRARY_PATH
17480   case $host_vendor in
17481     sni)
17482       shlibpath_overrides_runpath=no
17483       need_lib_prefix=no
17484       export_dynamic_flag_spec='${wl}-Blargedynsym'
17485       runpath_var=LD_RUN_PATH
17486       ;;
17487     siemens)
17488       need_lib_prefix=no
17489       ;;
17490     motorola)
17491       need_lib_prefix=no
17492       need_version=no
17493       shlibpath_overrides_runpath=no
17494       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17495       ;;
17496   esac
17497   ;;
17498
17499 sysv4*MP*)
17500   if test -d /usr/nec ;then
17501     version_type=linux
17502     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17503     soname_spec='$libname${shared_ext}.$major'
17504     shlibpath_var=LD_LIBRARY_PATH
17505   fi
17506   ;;
17507
17508 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17509   version_type=freebsd-elf
17510   need_lib_prefix=no
17511   need_version=no
17512   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17513   soname_spec='${libname}${release}${shared_ext}$major'
17514   shlibpath_var=LD_LIBRARY_PATH
17515   hardcode_into_libs=yes
17516   if test "$with_gnu_ld" = yes; then
17517     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17518     shlibpath_overrides_runpath=no
17519   else
17520     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17521     shlibpath_overrides_runpath=yes
17522     case $host_os in
17523       sco3.2v5*)
17524         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17525         ;;
17526     esac
17527   fi
17528   sys_lib_dlsearch_path_spec='/usr/lib'
17529   ;;
17530
17531 uts4*)
17532   version_type=linux
17533   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17534   soname_spec='${libname}${release}${shared_ext}$major'
17535   shlibpath_var=LD_LIBRARY_PATH
17536   ;;
17537
17538 *)
17539   dynamic_linker=no
17540   ;;
17541 esac
17542 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17543 echo "${ECHO_T}$dynamic_linker" >&6
17544 test "$dynamic_linker" = no && can_build_shared=no
17545
17546 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17547 if test "$GCC" = yes; then
17548   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17549 fi
17550
17551 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17552 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17553 hardcode_action_GCJ=
17554 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17555    test -n "$runpath_var_GCJ" || \
17556    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17557
17558   # We can hardcode non-existant directories.
17559   if test "$hardcode_direct_GCJ" != no &&
17560      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17561      # have to relink, otherwise we might link with an installed library
17562      # when we should be linking with a yet-to-be-installed one
17563      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17564      test "$hardcode_minus_L_GCJ" != no; then
17565     # Linking always hardcodes the temporary library directory.
17566     hardcode_action_GCJ=relink
17567   else
17568     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17569     hardcode_action_GCJ=immediate
17570   fi
17571 else
17572   # We cannot hardcode anything, or else we can only hardcode existing
17573   # directories.
17574   hardcode_action_GCJ=unsupported
17575 fi
17576 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17577 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17578
17579 if test "$hardcode_action_GCJ" = relink; then
17580   # Fast installation is not supported
17581   enable_fast_install=no
17582 elif test "$shlibpath_overrides_runpath" = yes ||
17583      test "$enable_shared" = no; then
17584   # Fast installation is not necessary
17585   enable_fast_install=needless
17586 fi
17587
17588
17589 # The else clause should only fire when bootstrapping the
17590 # libtool distribution, otherwise you forgot to ship ltmain.sh
17591 # with your package, and you will get complaints that there are
17592 # no rules to generate ltmain.sh.
17593 if test -f "$ltmain"; then
17594   # See if we are running on zsh, and set the options which allow our commands through
17595   # without removal of \ escapes.
17596   if test -n "${ZSH_VERSION+set}" ; then
17597     setopt NO_GLOB_SUBST
17598   fi
17599   # Now quote all the things that may contain metacharacters while being
17600   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17601   # variables and quote the copies for generation of the libtool script.
17602   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17603     SED SHELL STRIP \
17604     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17605     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17606     deplibs_check_method reload_flag reload_cmds need_locks \
17607     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17608     lt_cv_sys_global_symbol_to_c_name_address \
17609     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17610     old_postinstall_cmds old_postuninstall_cmds \
17611     compiler_GCJ \
17612     CC_GCJ \
17613     LD_GCJ \
17614     lt_prog_compiler_wl_GCJ \
17615     lt_prog_compiler_pic_GCJ \
17616     lt_prog_compiler_static_GCJ \
17617     lt_prog_compiler_no_builtin_flag_GCJ \
17618     export_dynamic_flag_spec_GCJ \
17619     thread_safe_flag_spec_GCJ \
17620     whole_archive_flag_spec_GCJ \
17621     enable_shared_with_static_runtimes_GCJ \
17622     old_archive_cmds_GCJ \
17623     old_archive_from_new_cmds_GCJ \
17624     predep_objects_GCJ \
17625     postdep_objects_GCJ \
17626     predeps_GCJ \
17627     postdeps_GCJ \
17628     compiler_lib_search_path_GCJ \
17629     archive_cmds_GCJ \
17630     archive_expsym_cmds_GCJ \
17631     postinstall_cmds_GCJ \
17632     postuninstall_cmds_GCJ \
17633     old_archive_from_expsyms_cmds_GCJ \
17634     allow_undefined_flag_GCJ \
17635     no_undefined_flag_GCJ \
17636     export_symbols_cmds_GCJ \
17637     hardcode_libdir_flag_spec_GCJ \
17638     hardcode_libdir_flag_spec_ld_GCJ \
17639     hardcode_libdir_separator_GCJ \
17640     hardcode_automatic_GCJ \
17641     module_cmds_GCJ \
17642     module_expsym_cmds_GCJ \
17643     lt_cv_prog_compiler_c_o_GCJ \
17644     exclude_expsyms_GCJ \
17645     include_expsyms_GCJ; do
17646
17647     case $var in
17648     old_archive_cmds_GCJ | \
17649     old_archive_from_new_cmds_GCJ | \
17650     archive_cmds_GCJ | \
17651     archive_expsym_cmds_GCJ | \
17652     module_cmds_GCJ | \
17653     module_expsym_cmds_GCJ | \
17654     old_archive_from_expsyms_cmds_GCJ | \
17655     export_symbols_cmds_GCJ | \
17656     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17657     postinstall_cmds | postuninstall_cmds | \
17658     old_postinstall_cmds | old_postuninstall_cmds | \
17659     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17660       # Double-quote double-evaled strings.
17661       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17662       ;;
17663     *)
17664       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17665       ;;
17666     esac
17667   done
17668
17669   case $lt_echo in
17670   *'\$0 --fallback-echo"')
17671     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17672     ;;
17673   esac
17674
17675 cfgfile="$ofile"
17676
17677   cat <<__EOF__ >> "$cfgfile"
17678 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17679
17680 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17681
17682 # Shell to use when invoking shell scripts.
17683 SHELL=$lt_SHELL
17684
17685 # Whether or not to build shared libraries.
17686 build_libtool_libs=$enable_shared
17687
17688 # Whether or not to build static libraries.
17689 build_old_libs=$enable_static
17690
17691 # Whether or not to add -lc for building shared libraries.
17692 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17693
17694 # Whether or not to disallow shared libs when runtime libs are static
17695 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17696
17697 # Whether or not to optimize for fast installation.
17698 fast_install=$enable_fast_install
17699
17700 # The host system.
17701 host_alias=$host_alias
17702 host=$host
17703 host_os=$host_os
17704
17705 # The build system.
17706 build_alias=$build_alias
17707 build=$build
17708 build_os=$build_os
17709
17710 # An echo program that does not interpret backslashes.
17711 echo=$lt_echo
17712
17713 # The archiver.
17714 AR=$lt_AR
17715 AR_FLAGS=$lt_AR_FLAGS
17716
17717 # A C compiler.
17718 LTCC=$lt_LTCC
17719
17720 # LTCC compiler flags.
17721 LTCFLAGS=$lt_LTCFLAGS
17722
17723 # A language-specific compiler.
17724 CC=$lt_compiler_GCJ
17725
17726 # Is the compiler the GNU C compiler?
17727 with_gcc=$GCC_GCJ
17728
17729 # An ERE matcher.
17730 EGREP=$lt_EGREP
17731
17732 # The linker used to build libraries.
17733 LD=$lt_LD_GCJ
17734
17735 # Whether we need hard or soft links.
17736 LN_S=$lt_LN_S
17737
17738 # A BSD-compatible nm program.
17739 NM=$lt_NM
17740
17741 # A symbol stripping program
17742 STRIP=$lt_STRIP
17743
17744 # Used to examine libraries when file_magic_cmd begins "file"
17745 MAGIC_CMD=$MAGIC_CMD
17746
17747 # Used on cygwin: DLL creation program.
17748 DLLTOOL="$DLLTOOL"
17749
17750 # Used on cygwin: object dumper.
17751 OBJDUMP="$OBJDUMP"
17752
17753 # Used on cygwin: assembler.
17754 AS="$AS"
17755
17756 # The name of the directory that contains temporary libtool files.
17757 objdir=$objdir
17758
17759 # How to create reloadable object files.
17760 reload_flag=$lt_reload_flag
17761 reload_cmds=$lt_reload_cmds
17762
17763 # How to pass a linker flag through the compiler.
17764 wl=$lt_lt_prog_compiler_wl_GCJ
17765
17766 # Object file suffix (normally "o").
17767 objext="$ac_objext"
17768
17769 # Old archive suffix (normally "a").
17770 libext="$libext"
17771
17772 # Shared library suffix (normally ".so").
17773 shrext_cmds='$shrext_cmds'
17774
17775 # Executable file suffix (normally "").
17776 exeext="$exeext"
17777
17778 # Additional compiler flags for building library objects.
17779 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17780 pic_mode=$pic_mode
17781
17782 # What is the maximum length of a command?
17783 max_cmd_len=$lt_cv_sys_max_cmd_len
17784
17785 # Does compiler simultaneously support -c and -o options?
17786 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17787
17788 # Must we lock files when doing compilation?
17789 need_locks=$lt_need_locks
17790
17791 # Do we need the lib prefix for modules?
17792 need_lib_prefix=$need_lib_prefix
17793
17794 # Do we need a version for libraries?
17795 need_version=$need_version
17796
17797 # Whether dlopen is supported.
17798 dlopen_support=$enable_dlopen
17799
17800 # Whether dlopen of programs is supported.
17801 dlopen_self=$enable_dlopen_self
17802
17803 # Whether dlopen of statically linked programs is supported.
17804 dlopen_self_static=$enable_dlopen_self_static
17805
17806 # Compiler flag to prevent dynamic linking.
17807 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17808
17809 # Compiler flag to turn off builtin functions.
17810 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17811
17812 # Compiler flag to allow reflexive dlopens.
17813 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17814
17815 # Compiler flag to generate shared objects directly from archives.
17816 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17817
17818 # Compiler flag to generate thread-safe objects.
17819 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17820
17821 # Library versioning type.
17822 version_type=$version_type
17823
17824 # Format of library name prefix.
17825 libname_spec=$lt_libname_spec
17826
17827 # List of archive names.  First name is the real one, the rest are links.
17828 # The last name is the one that the linker finds with -lNAME.
17829 library_names_spec=$lt_library_names_spec
17830
17831 # The coded name of the library, if different from the real name.
17832 soname_spec=$lt_soname_spec
17833
17834 # Commands used to build and install an old-style archive.
17835 RANLIB=$lt_RANLIB
17836 old_archive_cmds=$lt_old_archive_cmds_GCJ
17837 old_postinstall_cmds=$lt_old_postinstall_cmds
17838 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17839
17840 # Create an old-style archive from a shared archive.
17841 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17842
17843 # Create a temporary old-style archive to link instead of a shared archive.
17844 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17845
17846 # Commands used to build and install a shared archive.
17847 archive_cmds=$lt_archive_cmds_GCJ
17848 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17849 postinstall_cmds=$lt_postinstall_cmds
17850 postuninstall_cmds=$lt_postuninstall_cmds
17851
17852 # Commands used to build a loadable module (assumed same as above if empty)
17853 module_cmds=$lt_module_cmds_GCJ
17854 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17855
17856 # Commands to strip libraries.
17857 old_striplib=$lt_old_striplib
17858 striplib=$lt_striplib
17859
17860 # Dependencies to place before the objects being linked to create a
17861 # shared library.
17862 predep_objects=$lt_predep_objects_GCJ
17863
17864 # Dependencies to place after the objects being linked to create a
17865 # shared library.
17866 postdep_objects=$lt_postdep_objects_GCJ
17867
17868 # Dependencies to place before the objects being linked to create a
17869 # shared library.
17870 predeps=$lt_predeps_GCJ
17871
17872 # Dependencies to place after the objects being linked to create a
17873 # shared library.
17874 postdeps=$lt_postdeps_GCJ
17875
17876 # The library search path used internally by the compiler when linking
17877 # a shared library.
17878 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17879
17880 # Method to check whether dependent libraries are shared objects.
17881 deplibs_check_method=$lt_deplibs_check_method
17882
17883 # Command to use when deplibs_check_method == file_magic.
17884 file_magic_cmd=$lt_file_magic_cmd
17885
17886 # Flag that allows shared libraries with undefined symbols to be built.
17887 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17888
17889 # Flag that forces no undefined symbols.
17890 no_undefined_flag=$lt_no_undefined_flag_GCJ
17891
17892 # Commands used to finish a libtool library installation in a directory.
17893 finish_cmds=$lt_finish_cmds
17894
17895 # Same as above, but a single script fragment to be evaled but not shown.
17896 finish_eval=$lt_finish_eval
17897
17898 # Take the output of nm and produce a listing of raw symbols and C names.
17899 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17900
17901 # Transform the output of nm in a proper C declaration
17902 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17903
17904 # Transform the output of nm in a C name address pair
17905 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17906
17907 # This is the shared library runtime path variable.
17908 runpath_var=$runpath_var
17909
17910 # This is the shared library path variable.
17911 shlibpath_var=$shlibpath_var
17912
17913 # Is shlibpath searched before the hard-coded library search path?
17914 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17915
17916 # How to hardcode a shared library path into an executable.
17917 hardcode_action=$hardcode_action_GCJ
17918
17919 # Whether we should hardcode library paths into libraries.
17920 hardcode_into_libs=$hardcode_into_libs
17921
17922 # Flag to hardcode \$libdir into a binary during linking.
17923 # This must work even if \$libdir does not exist.
17924 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17925
17926 # If ld is used when linking, flag to hardcode \$libdir into
17927 # a binary during linking. This must work even if \$libdir does
17928 # not exist.
17929 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17930
17931 # Whether we need a single -rpath flag with a separated argument.
17932 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17933
17934 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17935 # resulting binary.
17936 hardcode_direct=$hardcode_direct_GCJ
17937
17938 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17939 # resulting binary.
17940 hardcode_minus_L=$hardcode_minus_L_GCJ
17941
17942 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17943 # the resulting binary.
17944 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17945
17946 # Set to yes if building a shared library automatically hardcodes DIR into the library
17947 # and all subsequent libraries and executables linked against it.
17948 hardcode_automatic=$hardcode_automatic_GCJ
17949
17950 # Variables whose values should be saved in libtool wrapper scripts and
17951 # restored at relink time.
17952 variables_saved_for_relink="$variables_saved_for_relink"
17953
17954 # Whether libtool must link a program against all its dependency libraries.
17955 link_all_deplibs=$link_all_deplibs_GCJ
17956
17957 # Compile-time system search path for libraries
17958 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17959
17960 # Run-time system search path for libraries
17961 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17962
17963 # Fix the shell variable \$srcfile for the compiler.
17964 fix_srcfile_path="$fix_srcfile_path_GCJ"
17965
17966 # Set to yes if exported symbols are required.
17967 always_export_symbols=$always_export_symbols_GCJ
17968
17969 # The commands to list exported symbols.
17970 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17971
17972 # The commands to extract the exported symbol list from a shared archive.
17973 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17974
17975 # Symbols that should not be listed in the preloaded symbols.
17976 exclude_expsyms=$lt_exclude_expsyms_GCJ
17977
17978 # Symbols that must always be exported.
17979 include_expsyms=$lt_include_expsyms_GCJ
17980
17981 # ### END LIBTOOL TAG CONFIG: $tagname
17982
17983 __EOF__
17984
17985
17986 else
17987   # If there is no Makefile yet, we rely on a make rule to execute
17988   # `config.status --recheck' to rerun these tests and create the
17989   # libtool script then.
17990   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17991   if test -f "$ltmain_in"; then
17992     test -f Makefile && make "$ltmain"
17993   fi
17994 fi
17995
17996
17997 ac_ext=c
17998 ac_cpp='$CPP $CPPFLAGS'
17999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18002
18003 CC="$lt_save_CC"
18004
18005         else
18006           tagname=""
18007         fi
18008         ;;
18009
18010       RC)
18011         
18012
18013
18014 # Source file extension for RC test sources.
18015 ac_ext=rc
18016
18017 # Object file extension for compiled RC test sources.
18018 objext=o
18019 objext_RC=$objext
18020
18021 # Code to be used in simple compile tests
18022 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18023
18024 # Code to be used in simple link tests
18025 lt_simple_link_test_code="$lt_simple_compile_test_code"
18026
18027 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18028
18029 # If no C compiler was specified, use CC.
18030 LTCC=${LTCC-"$CC"}
18031
18032 # If no C compiler flags were specified, use CFLAGS.
18033 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18034
18035 # Allow CC to be a program name with arguments.
18036 compiler=$CC
18037
18038
18039 # save warnings/boilerplate of simple test code
18040 ac_outfile=conftest.$ac_objext
18041 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18042 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18043 _lt_compiler_boilerplate=`cat conftest.err`
18044 $rm conftest*
18045
18046 ac_outfile=conftest.$ac_objext
18047 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18048 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18049 _lt_linker_boilerplate=`cat conftest.err`
18050 $rm conftest*
18051
18052
18053 # Allow CC to be a program name with arguments.
18054 lt_save_CC="$CC"
18055 CC=${RC-"windres"}
18056 compiler=$CC
18057 compiler_RC=$CC
18058 for cc_temp in $compiler""; do
18059   case $cc_temp in
18060     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18061     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18062     \-*) ;;
18063     *) break;;
18064   esac
18065 done
18066 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18067
18068 lt_cv_prog_compiler_c_o_RC=yes
18069
18070 # The else clause should only fire when bootstrapping the
18071 # libtool distribution, otherwise you forgot to ship ltmain.sh
18072 # with your package, and you will get complaints that there are
18073 # no rules to generate ltmain.sh.
18074 if test -f "$ltmain"; then
18075   # See if we are running on zsh, and set the options which allow our commands through
18076   # without removal of \ escapes.
18077   if test -n "${ZSH_VERSION+set}" ; then
18078     setopt NO_GLOB_SUBST
18079   fi
18080   # Now quote all the things that may contain metacharacters while being
18081   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18082   # variables and quote the copies for generation of the libtool script.
18083   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18084     SED SHELL STRIP \
18085     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18086     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18087     deplibs_check_method reload_flag reload_cmds need_locks \
18088     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18089     lt_cv_sys_global_symbol_to_c_name_address \
18090     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18091     old_postinstall_cmds old_postuninstall_cmds \
18092     compiler_RC \
18093     CC_RC \
18094     LD_RC \
18095     lt_prog_compiler_wl_RC \
18096     lt_prog_compiler_pic_RC \
18097     lt_prog_compiler_static_RC \
18098     lt_prog_compiler_no_builtin_flag_RC \
18099     export_dynamic_flag_spec_RC \
18100     thread_safe_flag_spec_RC \
18101     whole_archive_flag_spec_RC \
18102     enable_shared_with_static_runtimes_RC \
18103     old_archive_cmds_RC \
18104     old_archive_from_new_cmds_RC \
18105     predep_objects_RC \
18106     postdep_objects_RC \
18107     predeps_RC \
18108     postdeps_RC \
18109     compiler_lib_search_path_RC \
18110     archive_cmds_RC \
18111     archive_expsym_cmds_RC \
18112     postinstall_cmds_RC \
18113     postuninstall_cmds_RC \
18114     old_archive_from_expsyms_cmds_RC \
18115     allow_undefined_flag_RC \
18116     no_undefined_flag_RC \
18117     export_symbols_cmds_RC \
18118     hardcode_libdir_flag_spec_RC \
18119     hardcode_libdir_flag_spec_ld_RC \
18120     hardcode_libdir_separator_RC \
18121     hardcode_automatic_RC \
18122     module_cmds_RC \
18123     module_expsym_cmds_RC \
18124     lt_cv_prog_compiler_c_o_RC \
18125     exclude_expsyms_RC \
18126     include_expsyms_RC; do
18127
18128     case $var in
18129     old_archive_cmds_RC | \
18130     old_archive_from_new_cmds_RC | \
18131     archive_cmds_RC | \
18132     archive_expsym_cmds_RC | \
18133     module_cmds_RC | \
18134     module_expsym_cmds_RC | \
18135     old_archive_from_expsyms_cmds_RC | \
18136     export_symbols_cmds_RC | \
18137     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18138     postinstall_cmds | postuninstall_cmds | \
18139     old_postinstall_cmds | old_postuninstall_cmds | \
18140     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18141       # Double-quote double-evaled strings.
18142       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18143       ;;
18144     *)
18145       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18146       ;;
18147     esac
18148   done
18149
18150   case $lt_echo in
18151   *'\$0 --fallback-echo"')
18152     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18153     ;;
18154   esac
18155
18156 cfgfile="$ofile"
18157
18158   cat <<__EOF__ >> "$cfgfile"
18159 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18160
18161 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18162
18163 # Shell to use when invoking shell scripts.
18164 SHELL=$lt_SHELL
18165
18166 # Whether or not to build shared libraries.
18167 build_libtool_libs=$enable_shared
18168
18169 # Whether or not to build static libraries.
18170 build_old_libs=$enable_static
18171
18172 # Whether or not to add -lc for building shared libraries.
18173 build_libtool_need_lc=$archive_cmds_need_lc_RC
18174
18175 # Whether or not to disallow shared libs when runtime libs are static
18176 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18177
18178 # Whether or not to optimize for fast installation.
18179 fast_install=$enable_fast_install
18180
18181 # The host system.
18182 host_alias=$host_alias
18183 host=$host
18184 host_os=$host_os
18185
18186 # The build system.
18187 build_alias=$build_alias
18188 build=$build
18189 build_os=$build_os
18190
18191 # An echo program that does not interpret backslashes.
18192 echo=$lt_echo
18193
18194 # The archiver.
18195 AR=$lt_AR
18196 AR_FLAGS=$lt_AR_FLAGS
18197
18198 # A C compiler.
18199 LTCC=$lt_LTCC
18200
18201 # LTCC compiler flags.
18202 LTCFLAGS=$lt_LTCFLAGS
18203
18204 # A language-specific compiler.
18205 CC=$lt_compiler_RC
18206
18207 # Is the compiler the GNU C compiler?
18208 with_gcc=$GCC_RC
18209
18210 # An ERE matcher.
18211 EGREP=$lt_EGREP
18212
18213 # The linker used to build libraries.
18214 LD=$lt_LD_RC
18215
18216 # Whether we need hard or soft links.
18217 LN_S=$lt_LN_S
18218
18219 # A BSD-compatible nm program.
18220 NM=$lt_NM
18221
18222 # A symbol stripping program
18223 STRIP=$lt_STRIP
18224
18225 # Used to examine libraries when file_magic_cmd begins "file"
18226 MAGIC_CMD=$MAGIC_CMD
18227
18228 # Used on cygwin: DLL creation program.
18229 DLLTOOL="$DLLTOOL"
18230
18231 # Used on cygwin: object dumper.
18232 OBJDUMP="$OBJDUMP"
18233
18234 # Used on cygwin: assembler.
18235 AS="$AS"
18236
18237 # The name of the directory that contains temporary libtool files.
18238 objdir=$objdir
18239
18240 # How to create reloadable object files.
18241 reload_flag=$lt_reload_flag
18242 reload_cmds=$lt_reload_cmds
18243
18244 # How to pass a linker flag through the compiler.
18245 wl=$lt_lt_prog_compiler_wl_RC
18246
18247 # Object file suffix (normally "o").
18248 objext="$ac_objext"
18249
18250 # Old archive suffix (normally "a").
18251 libext="$libext"
18252
18253 # Shared library suffix (normally ".so").
18254 shrext_cmds='$shrext_cmds'
18255
18256 # Executable file suffix (normally "").
18257 exeext="$exeext"
18258
18259 # Additional compiler flags for building library objects.
18260 pic_flag=$lt_lt_prog_compiler_pic_RC
18261 pic_mode=$pic_mode
18262
18263 # What is the maximum length of a command?
18264 max_cmd_len=$lt_cv_sys_max_cmd_len
18265
18266 # Does compiler simultaneously support -c and -o options?
18267 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18268
18269 # Must we lock files when doing compilation?
18270 need_locks=$lt_need_locks
18271
18272 # Do we need the lib prefix for modules?
18273 need_lib_prefix=$need_lib_prefix
18274
18275 # Do we need a version for libraries?
18276 need_version=$need_version
18277
18278 # Whether dlopen is supported.
18279 dlopen_support=$enable_dlopen
18280
18281 # Whether dlopen of programs is supported.
18282 dlopen_self=$enable_dlopen_self
18283
18284 # Whether dlopen of statically linked programs is supported.
18285 dlopen_self_static=$enable_dlopen_self_static
18286
18287 # Compiler flag to prevent dynamic linking.
18288 link_static_flag=$lt_lt_prog_compiler_static_RC
18289
18290 # Compiler flag to turn off builtin functions.
18291 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18292
18293 # Compiler flag to allow reflexive dlopens.
18294 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18295
18296 # Compiler flag to generate shared objects directly from archives.
18297 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18298
18299 # Compiler flag to generate thread-safe objects.
18300 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18301
18302 # Library versioning type.
18303 version_type=$version_type
18304
18305 # Format of library name prefix.
18306 libname_spec=$lt_libname_spec
18307
18308 # List of archive names.  First name is the real one, the rest are links.
18309 # The last name is the one that the linker finds with -lNAME.
18310 library_names_spec=$lt_library_names_spec
18311
18312 # The coded name of the library, if different from the real name.
18313 soname_spec=$lt_soname_spec
18314
18315 # Commands used to build and install an old-style archive.
18316 RANLIB=$lt_RANLIB
18317 old_archive_cmds=$lt_old_archive_cmds_RC
18318 old_postinstall_cmds=$lt_old_postinstall_cmds
18319 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18320
18321 # Create an old-style archive from a shared archive.
18322 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18323
18324 # Create a temporary old-style archive to link instead of a shared archive.
18325 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18326
18327 # Commands used to build and install a shared archive.
18328 archive_cmds=$lt_archive_cmds_RC
18329 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18330 postinstall_cmds=$lt_postinstall_cmds
18331 postuninstall_cmds=$lt_postuninstall_cmds
18332
18333 # Commands used to build a loadable module (assumed same as above if empty)
18334 module_cmds=$lt_module_cmds_RC
18335 module_expsym_cmds=$lt_module_expsym_cmds_RC
18336
18337 # Commands to strip libraries.
18338 old_striplib=$lt_old_striplib
18339 striplib=$lt_striplib
18340
18341 # Dependencies to place before the objects being linked to create a
18342 # shared library.
18343 predep_objects=$lt_predep_objects_RC
18344
18345 # Dependencies to place after the objects being linked to create a
18346 # shared library.
18347 postdep_objects=$lt_postdep_objects_RC
18348
18349 # Dependencies to place before the objects being linked to create a
18350 # shared library.
18351 predeps=$lt_predeps_RC
18352
18353 # Dependencies to place after the objects being linked to create a
18354 # shared library.
18355 postdeps=$lt_postdeps_RC
18356
18357 # The library search path used internally by the compiler when linking
18358 # a shared library.
18359 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18360
18361 # Method to check whether dependent libraries are shared objects.
18362 deplibs_check_method=$lt_deplibs_check_method
18363
18364 # Command to use when deplibs_check_method == file_magic.
18365 file_magic_cmd=$lt_file_magic_cmd
18366
18367 # Flag that allows shared libraries with undefined symbols to be built.
18368 allow_undefined_flag=$lt_allow_undefined_flag_RC
18369
18370 # Flag that forces no undefined symbols.
18371 no_undefined_flag=$lt_no_undefined_flag_RC
18372
18373 # Commands used to finish a libtool library installation in a directory.
18374 finish_cmds=$lt_finish_cmds
18375
18376 # Same as above, but a single script fragment to be evaled but not shown.
18377 finish_eval=$lt_finish_eval
18378
18379 # Take the output of nm and produce a listing of raw symbols and C names.
18380 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18381
18382 # Transform the output of nm in a proper C declaration
18383 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18384
18385 # Transform the output of nm in a C name address pair
18386 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18387
18388 # This is the shared library runtime path variable.
18389 runpath_var=$runpath_var
18390
18391 # This is the shared library path variable.
18392 shlibpath_var=$shlibpath_var
18393
18394 # Is shlibpath searched before the hard-coded library search path?
18395 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18396
18397 # How to hardcode a shared library path into an executable.
18398 hardcode_action=$hardcode_action_RC
18399
18400 # Whether we should hardcode library paths into libraries.
18401 hardcode_into_libs=$hardcode_into_libs
18402
18403 # Flag to hardcode \$libdir into a binary during linking.
18404 # This must work even if \$libdir does not exist.
18405 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18406
18407 # If ld is used when linking, flag to hardcode \$libdir into
18408 # a binary during linking. This must work even if \$libdir does
18409 # not exist.
18410 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18411
18412 # Whether we need a single -rpath flag with a separated argument.
18413 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18414
18415 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18416 # resulting binary.
18417 hardcode_direct=$hardcode_direct_RC
18418
18419 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18420 # resulting binary.
18421 hardcode_minus_L=$hardcode_minus_L_RC
18422
18423 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18424 # the resulting binary.
18425 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18426
18427 # Set to yes if building a shared library automatically hardcodes DIR into the library
18428 # and all subsequent libraries and executables linked against it.
18429 hardcode_automatic=$hardcode_automatic_RC
18430
18431 # Variables whose values should be saved in libtool wrapper scripts and
18432 # restored at relink time.
18433 variables_saved_for_relink="$variables_saved_for_relink"
18434
18435 # Whether libtool must link a program against all its dependency libraries.
18436 link_all_deplibs=$link_all_deplibs_RC
18437
18438 # Compile-time system search path for libraries
18439 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18440
18441 # Run-time system search path for libraries
18442 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18443
18444 # Fix the shell variable \$srcfile for the compiler.
18445 fix_srcfile_path="$fix_srcfile_path_RC"
18446
18447 # Set to yes if exported symbols are required.
18448 always_export_symbols=$always_export_symbols_RC
18449
18450 # The commands to list exported symbols.
18451 export_symbols_cmds=$lt_export_symbols_cmds_RC
18452
18453 # The commands to extract the exported symbol list from a shared archive.
18454 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18455
18456 # Symbols that should not be listed in the preloaded symbols.
18457 exclude_expsyms=$lt_exclude_expsyms_RC
18458
18459 # Symbols that must always be exported.
18460 include_expsyms=$lt_include_expsyms_RC
18461
18462 # ### END LIBTOOL TAG CONFIG: $tagname
18463
18464 __EOF__
18465
18466
18467 else
18468   # If there is no Makefile yet, we rely on a make rule to execute
18469   # `config.status --recheck' to rerun these tests and create the
18470   # libtool script then.
18471   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18472   if test -f "$ltmain_in"; then
18473     test -f Makefile && make "$ltmain"
18474   fi
18475 fi
18476
18477
18478 ac_ext=c
18479 ac_cpp='$CPP $CPPFLAGS'
18480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18483
18484 CC="$lt_save_CC"
18485
18486         ;;
18487
18488       *)
18489         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18490 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18491    { (exit 1); exit 1; }; }
18492         ;;
18493       esac
18494
18495       # Append the new tag name to the list of available tags.
18496       if test -n "$tagname" ; then
18497       available_tags="$available_tags $tagname"
18498     fi
18499     fi
18500   done
18501   IFS="$lt_save_ifs"
18502
18503   # Now substitute the updated list of available tags.
18504   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18505     mv "${ofile}T" "$ofile"
18506     chmod +x "$ofile"
18507   else
18508     rm -f "${ofile}T"
18509     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18510 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18511    { (exit 1); exit 1; }; }
18512   fi
18513 fi
18514
18515
18516
18517 # This can be used to rebuild libtool when needed
18518 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18519
18520 # Always use our own libtool.
18521 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18522
18523 # Prevent multiple expansion
18524
18525
18526
18527
18528
18529
18530
18531
18532
18533
18534
18535   
18536
18537   
18538
18539
18540   
18541        
18542        
18543
18544
18545
18546 #AC_CONFIG_HEADERS(sysdep.h)
18547 #AC_VERSION(6.72)
18548 #PACKAGE=gettext
18549 #VERSION=0.14.5
18550 #AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
18551 #AC_DEFINE_UNQUOTED(VERSION, "$VERSION")
18552 #AC_SUBST(PACKAGE)
18553 #AC_SUBST(VERSION)
18554 #AM_INIT_AUTOMAKE(gettext, 0.14.5)
18555
18556
18557 #AC_CANONICAL_HOST
18558 # Find a good install program.  We prefer a C program (faster),
18559 # so one script is as good as another.  But avoid the broken or
18560 # incompatible versions:
18561 # SysV /etc/install, /usr/sbin/install
18562 # SunOS /usr/etc/install
18563 # IRIX /sbin/install
18564 # AIX /bin/install
18565 # AmigaOS /C/install, which installs bootblocks on floppy discs
18566 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
18567 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
18568 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
18569 # OS/2's system install, which has a completely different semantic
18570 # ./install, which can be erroneously created by make from ./install.sh.
18571 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
18572 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
18573 if test -z "$INSTALL"; then
18574 if test "${ac_cv_path_install+set}" = set; then
18575   echo $ECHO_N "(cached) $ECHO_C" >&6
18576 else
18577   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18578 for as_dir in $PATH
18579 do
18580   IFS=$as_save_IFS
18581   test -z "$as_dir" && as_dir=.
18582   # Account for people who put trailing slashes in PATH elements.
18583 case $as_dir/ in
18584   ./ | .// | /cC/* | \
18585   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
18586   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
18587   /usr/ucb/* ) ;;
18588   *)
18589     # OSF1 and SCO ODT 3.0 have their own names for install.
18590     # Don't use installbsd from OSF since it installs stuff as root
18591     # by default.
18592     for ac_prog in ginstall scoinst install; do
18593       for ac_exec_ext in '' $ac_executable_extensions; do
18594         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
18595           if test $ac_prog = install &&
18596             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18597             # AIX install.  It has an incompatible calling convention.
18598             :
18599           elif test $ac_prog = install &&
18600             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18601             # program-specific install script used by HP pwplus--don't use.
18602             :
18603           else
18604             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
18605             break 3
18606           fi
18607         fi
18608       done
18609     done
18610     ;;
18611 esac
18612 done
18613
18614
18615 fi
18616   if test "${ac_cv_path_install+set}" = set; then
18617     INSTALL=$ac_cv_path_install
18618   else
18619     # As a last resort, use the slow shell script.  We don't cache a
18620     # path for INSTALL within a source directory, because that will
18621     # break other packages using the cache if that directory is
18622     # removed, or if the path is relative.
18623     INSTALL=$ac_install_sh
18624   fi
18625 fi
18626 echo "$as_me:$LINENO: result: $INSTALL" >&5
18627 echo "${ECHO_T}$INSTALL" >&6
18628
18629 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
18630 # It thinks the first close brace ends the variable substitution.
18631 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
18632
18633 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
18634
18635 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
18636
18637 # Extract the first word of "autoconf", so it can be a program name with args.
18638 set dummy autoconf; ac_word=$2
18639 echo "$as_me:$LINENO: checking for $ac_word" >&5
18640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18641 if test "${ac_cv_prog_AUTOCONF+set}" = set; then
18642   echo $ECHO_N "(cached) $ECHO_C" >&6
18643 else
18644   if test -n "$AUTOCONF"; then
18645   ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
18646 else
18647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18648 for as_dir in $PATH
18649 do
18650   IFS=$as_save_IFS
18651   test -z "$as_dir" && as_dir=.
18652   for ac_exec_ext in '' $ac_executable_extensions; do
18653   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18654     ac_cv_prog_AUTOCONF=""
18655     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18656     break 2
18657   fi
18658 done
18659 done
18660
18661 fi
18662 fi
18663 AUTOCONF=$ac_cv_prog_AUTOCONF
18664 if test -n "$AUTOCONF"; then
18665   echo "$as_me:$LINENO: result: $AUTOCONF" >&5
18666 echo "${ECHO_T}$AUTOCONF" >&6
18667 else
18668   echo "$as_me:$LINENO: result: no" >&5
18669 echo "${ECHO_T}no" >&6
18670 fi
18671
18672 # Extract the first word of "sed", so it can be a program name with args.
18673 set dummy sed; ac_word=$2
18674 echo "$as_me:$LINENO: checking for $ac_word" >&5
18675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18676 if test "${ac_cv_prog_SED+set}" = set; then
18677   echo $ECHO_N "(cached) $ECHO_C" >&6
18678 else
18679   if test -n "$SED"; then
18680   ac_cv_prog_SED="$SED" # Let the user override the test.
18681 else
18682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18683 for as_dir in $PATH
18684 do
18685   IFS=$as_save_IFS
18686   test -z "$as_dir" && as_dir=.
18687   for ac_exec_ext in '' $ac_executable_extensions; do
18688   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18689     ac_cv_prog_SED="sed"
18690     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18691     break 2
18692   fi
18693 done
18694 done
18695
18696   test -z "$ac_cv_prog_SED" && ac_cv_prog_SED="no"
18697 fi
18698 fi
18699 SED=$ac_cv_prog_SED
18700 if test -n "$SED"; then
18701   echo "$as_me:$LINENO: result: $SED" >&5
18702 echo "${ECHO_T}$SED" >&6
18703 else
18704   echo "$as_me:$LINENO: result: no" >&5
18705 echo "${ECHO_T}no" >&6
18706 fi
18707
18708
18709
18710 #AC_ARG_WITH(with_libical, [  --with-libical          use libical calendaring library])
18711 #AC_ARG_WITH(with_zlib,    [  --with-zlib             use zlib compression if present])
18712 #AC_ARG_WITH(with_newt,    [  --with-newt             use newt window library])
18713 #AC_ARG_WITH(ssl,
18714 #       [  --with-ssl=PATH         Specify path to OpenSSL installation ],
18715 #       [
18716 #               if test "x$withval" != "xno" ; then
18717 #                       tryssldir=$withval
18718 #               fi
18719 #       ]
18720 #)
18721 #AC_DEFINE([HAVE_ICAL], [  --with-libical          use libical calendaring library])
18722
18723 cat >>confdefs.h <<\_ACEOF
18724 @%:@define HAVE_OPENSSL 1
18725 _ACEOF
18726
18727
18728
18729 PTHREAD_DEFS=-D_REENTRANT
18730 case "$host" in
18731                                 alpha*-dec-osf*)
18732                 test -z "$CC" && CC=cc
18733                 LIBS=-pthread
18734         ;;
18735                 *-*-freebsd*)
18736                 LIBS=-pthread
18737                 PTHREAD_DEFS=-D_THREAD_SAFE
18738         ;;
18739         *-*-solaris*)
18740                 PTHREAD_DEFS='-D_REENTRANT -D_PTHREADS'
18741         ;;
18742 esac
18743
18744
18745 ac_ext=c
18746 ac_cpp='$CPP $CPPFLAGS'
18747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18750 if test -n "$ac_tool_prefix"; then
18751   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
18752 set dummy ${ac_tool_prefix}gcc; ac_word=$2
18753 echo "$as_me:$LINENO: checking for $ac_word" >&5
18754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18755 if test "${ac_cv_prog_CC+set}" = set; then
18756   echo $ECHO_N "(cached) $ECHO_C" >&6
18757 else
18758   if test -n "$CC"; then
18759   ac_cv_prog_CC="$CC" # Let the user override the test.
18760 else
18761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18762 for as_dir in $PATH
18763 do
18764   IFS=$as_save_IFS
18765   test -z "$as_dir" && as_dir=.
18766   for ac_exec_ext in '' $ac_executable_extensions; do
18767   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18768     ac_cv_prog_CC="${ac_tool_prefix}gcc"
18769     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18770     break 2
18771   fi
18772 done
18773 done
18774
18775 fi
18776 fi
18777 CC=$ac_cv_prog_CC
18778 if test -n "$CC"; then
18779   echo "$as_me:$LINENO: result: $CC" >&5
18780 echo "${ECHO_T}$CC" >&6
18781 else
18782   echo "$as_me:$LINENO: result: no" >&5
18783 echo "${ECHO_T}no" >&6
18784 fi
18785
18786 fi
18787 if test -z "$ac_cv_prog_CC"; then
18788   ac_ct_CC=$CC
18789   # Extract the first word of "gcc", so it can be a program name with args.
18790 set dummy gcc; ac_word=$2
18791 echo "$as_me:$LINENO: checking for $ac_word" >&5
18792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18793 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18794   echo $ECHO_N "(cached) $ECHO_C" >&6
18795 else
18796   if test -n "$ac_ct_CC"; then
18797   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18798 else
18799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18800 for as_dir in $PATH
18801 do
18802   IFS=$as_save_IFS
18803   test -z "$as_dir" && as_dir=.
18804   for ac_exec_ext in '' $ac_executable_extensions; do
18805   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18806     ac_cv_prog_ac_ct_CC="gcc"
18807     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18808     break 2
18809   fi
18810 done
18811 done
18812
18813 fi
18814 fi
18815 ac_ct_CC=$ac_cv_prog_ac_ct_CC
18816 if test -n "$ac_ct_CC"; then
18817   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
18818 echo "${ECHO_T}$ac_ct_CC" >&6
18819 else
18820   echo "$as_me:$LINENO: result: no" >&5
18821 echo "${ECHO_T}no" >&6
18822 fi
18823
18824   CC=$ac_ct_CC
18825 else
18826   CC="$ac_cv_prog_CC"
18827 fi
18828
18829 if test -z "$CC"; then
18830   if test -n "$ac_tool_prefix"; then
18831   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
18832 set dummy ${ac_tool_prefix}cc; ac_word=$2
18833 echo "$as_me:$LINENO: checking for $ac_word" >&5
18834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18835 if test "${ac_cv_prog_CC+set}" = set; then
18836   echo $ECHO_N "(cached) $ECHO_C" >&6
18837 else
18838   if test -n "$CC"; then
18839   ac_cv_prog_CC="$CC" # Let the user override the test.
18840 else
18841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18842 for as_dir in $PATH
18843 do
18844   IFS=$as_save_IFS
18845   test -z "$as_dir" && as_dir=.
18846   for ac_exec_ext in '' $ac_executable_extensions; do
18847   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18848     ac_cv_prog_CC="${ac_tool_prefix}cc"
18849     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18850     break 2
18851   fi
18852 done
18853 done
18854
18855 fi
18856 fi
18857 CC=$ac_cv_prog_CC
18858 if test -n "$CC"; then
18859   echo "$as_me:$LINENO: result: $CC" >&5
18860 echo "${ECHO_T}$CC" >&6
18861 else
18862   echo "$as_me:$LINENO: result: no" >&5
18863 echo "${ECHO_T}no" >&6
18864 fi
18865
18866 fi
18867 if test -z "$ac_cv_prog_CC"; then
18868   ac_ct_CC=$CC
18869   # Extract the first word of "cc", so it can be a program name with args.
18870 set dummy cc; ac_word=$2
18871 echo "$as_me:$LINENO: checking for $ac_word" >&5
18872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18873 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18874   echo $ECHO_N "(cached) $ECHO_C" >&6
18875 else
18876   if test -n "$ac_ct_CC"; then
18877   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18878 else
18879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18880 for as_dir in $PATH
18881 do
18882   IFS=$as_save_IFS
18883   test -z "$as_dir" && as_dir=.
18884   for ac_exec_ext in '' $ac_executable_extensions; do
18885   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18886     ac_cv_prog_ac_ct_CC="cc"
18887     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18888     break 2
18889   fi
18890 done
18891 done
18892
18893 fi
18894 fi
18895 ac_ct_CC=$ac_cv_prog_ac_ct_CC
18896 if test -n "$ac_ct_CC"; then
18897   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
18898 echo "${ECHO_T}$ac_ct_CC" >&6
18899 else
18900   echo "$as_me:$LINENO: result: no" >&5
18901 echo "${ECHO_T}no" >&6
18902 fi
18903
18904   CC=$ac_ct_CC
18905 else
18906   CC="$ac_cv_prog_CC"
18907 fi
18908
18909 fi
18910 if test -z "$CC"; then
18911   # Extract the first word of "cc", so it can be a program name with args.
18912 set dummy cc; ac_word=$2
18913 echo "$as_me:$LINENO: checking for $ac_word" >&5
18914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18915 if test "${ac_cv_prog_CC+set}" = set; then
18916   echo $ECHO_N "(cached) $ECHO_C" >&6
18917 else
18918   if test -n "$CC"; then
18919   ac_cv_prog_CC="$CC" # Let the user override the test.
18920 else
18921   ac_prog_rejected=no
18922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18923 for as_dir in $PATH
18924 do
18925   IFS=$as_save_IFS
18926   test -z "$as_dir" && as_dir=.
18927   for ac_exec_ext in '' $ac_executable_extensions; do
18928   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18929     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
18930        ac_prog_rejected=yes
18931        continue
18932      fi
18933     ac_cv_prog_CC="cc"
18934     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18935     break 2
18936   fi
18937 done
18938 done
18939
18940 if test $ac_prog_rejected = yes; then
18941   # We found a bogon in the path, so make sure we never use it.
18942   set dummy $ac_cv_prog_CC
18943   shift
18944   if test $@%:@ != 0; then
18945     # We chose a different compiler from the bogus one.
18946     # However, it has the same basename, so the bogon will be chosen
18947     # first if we set CC to just the basename; use the full file name.
18948     shift
18949     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
18950   fi
18951 fi
18952 fi
18953 fi
18954 CC=$ac_cv_prog_CC
18955 if test -n "$CC"; then
18956   echo "$as_me:$LINENO: result: $CC" >&5
18957 echo "${ECHO_T}$CC" >&6
18958 else
18959   echo "$as_me:$LINENO: result: no" >&5
18960 echo "${ECHO_T}no" >&6
18961 fi
18962
18963 fi
18964 if test -z "$CC"; then
18965   if test -n "$ac_tool_prefix"; then
18966   for ac_prog in cl
18967   do
18968     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
18969 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
18970 echo "$as_me:$LINENO: checking for $ac_word" >&5
18971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18972 if test "${ac_cv_prog_CC+set}" = set; then
18973   echo $ECHO_N "(cached) $ECHO_C" >&6
18974 else
18975   if test -n "$CC"; then
18976   ac_cv_prog_CC="$CC" # Let the user override the test.
18977 else
18978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18979 for as_dir in $PATH
18980 do
18981   IFS=$as_save_IFS
18982   test -z "$as_dir" && as_dir=.
18983   for ac_exec_ext in '' $ac_executable_extensions; do
18984   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18985     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
18986     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18987     break 2
18988   fi
18989 done
18990 done
18991
18992 fi
18993 fi
18994 CC=$ac_cv_prog_CC
18995 if test -n "$CC"; then
18996   echo "$as_me:$LINENO: result: $CC" >&5
18997 echo "${ECHO_T}$CC" >&6
18998 else
18999   echo "$as_me:$LINENO: result: no" >&5
19000 echo "${ECHO_T}no" >&6
19001 fi
19002
19003     test -n "$CC" && break
19004   done
19005 fi
19006 if test -z "$CC"; then
19007   ac_ct_CC=$CC
19008   for ac_prog in cl
19009 do
19010   # Extract the first word of "$ac_prog", so it can be a program name with args.
19011 set dummy $ac_prog; ac_word=$2
19012 echo "$as_me:$LINENO: checking for $ac_word" >&5
19013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19014 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19015   echo $ECHO_N "(cached) $ECHO_C" >&6
19016 else
19017   if test -n "$ac_ct_CC"; then
19018   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19019 else
19020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19021 for as_dir in $PATH
19022 do
19023   IFS=$as_save_IFS
19024   test -z "$as_dir" && as_dir=.
19025   for ac_exec_ext in '' $ac_executable_extensions; do
19026   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19027     ac_cv_prog_ac_ct_CC="$ac_prog"
19028     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19029     break 2
19030   fi
19031 done
19032 done
19033
19034 fi
19035 fi
19036 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19037 if test -n "$ac_ct_CC"; then
19038   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19039 echo "${ECHO_T}$ac_ct_CC" >&6
19040 else
19041   echo "$as_me:$LINENO: result: no" >&5
19042 echo "${ECHO_T}no" >&6
19043 fi
19044
19045   test -n "$ac_ct_CC" && break
19046 done
19047
19048   CC=$ac_ct_CC
19049 fi
19050
19051 fi
19052
19053
19054 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19055 See \`config.log' for more details." >&5
19056 echo "$as_me: error: no acceptable C compiler found in \$PATH
19057 See \`config.log' for more details." >&2;}
19058    { (exit 1); exit 1; }; }
19059
19060 # Provide some information about the compiler.
19061 echo "$as_me:$LINENO:" \
19062      "checking for C compiler version" >&5
19063 ac_compiler=`set X $ac_compile; echo $2`
19064 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
19065   (eval $ac_compiler --version </dev/null >&5) 2>&5
19066   ac_status=$?
19067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068   (exit $ac_status); }
19069 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
19070   (eval $ac_compiler -v </dev/null >&5) 2>&5
19071   ac_status=$?
19072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19073   (exit $ac_status); }
19074 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
19075   (eval $ac_compiler -V </dev/null >&5) 2>&5
19076   ac_status=$?
19077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078   (exit $ac_status); }
19079
19080 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19081 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
19082 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19083   echo $ECHO_N "(cached) $ECHO_C" >&6
19084 else
19085   cat >conftest.$ac_ext <<_ACEOF
19086 /* confdefs.h.  */
19087 _ACEOF
19088 cat confdefs.h >>conftest.$ac_ext
19089 cat >>conftest.$ac_ext <<_ACEOF
19090 /* end confdefs.h.  */
19091
19092 int
19093 main ()
19094 {
19095 #ifndef __GNUC__
19096        choke me
19097 #endif
19098
19099   ;
19100   return 0;
19101 }
19102 _ACEOF
19103 rm -f conftest.$ac_objext
19104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19105   (eval $ac_compile) 2>conftest.er1
19106   ac_status=$?
19107   grep -v '^ *+' conftest.er1 >conftest.err
19108   rm -f conftest.er1
19109   cat conftest.err >&5
19110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19111   (exit $ac_status); } &&
19112          { ac_try='test -z "$ac_c_werror_flag"
19113                          || test ! -s conftest.err'
19114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19115   (eval $ac_try) 2>&5
19116   ac_status=$?
19117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19118   (exit $ac_status); }; } &&
19119          { ac_try='test -s conftest.$ac_objext'
19120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19121   (eval $ac_try) 2>&5
19122   ac_status=$?
19123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19124   (exit $ac_status); }; }; then
19125   ac_compiler_gnu=yes
19126 else
19127   echo "$as_me: failed program was:" >&5
19128 sed 's/^/| /' conftest.$ac_ext >&5
19129
19130 ac_compiler_gnu=no
19131 fi
19132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19133 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19134
19135 fi
19136 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19137 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
19138 GCC=`test $ac_compiler_gnu = yes && echo yes`
19139 ac_test_CFLAGS=${CFLAGS+set}
19140 ac_save_CFLAGS=$CFLAGS
19141 CFLAGS="-g"
19142 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19143 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
19144 if test "${ac_cv_prog_cc_g+set}" = set; then
19145   echo $ECHO_N "(cached) $ECHO_C" >&6
19146 else
19147   cat >conftest.$ac_ext <<_ACEOF
19148 /* confdefs.h.  */
19149 _ACEOF
19150 cat confdefs.h >>conftest.$ac_ext
19151 cat >>conftest.$ac_ext <<_ACEOF
19152 /* end confdefs.h.  */
19153
19154 int
19155 main ()
19156 {
19157
19158   ;
19159   return 0;
19160 }
19161 _ACEOF
19162 rm -f conftest.$ac_objext
19163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19164   (eval $ac_compile) 2>conftest.er1
19165   ac_status=$?
19166   grep -v '^ *+' conftest.er1 >conftest.err
19167   rm -f conftest.er1
19168   cat conftest.err >&5
19169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19170   (exit $ac_status); } &&
19171          { ac_try='test -z "$ac_c_werror_flag"
19172                          || test ! -s conftest.err'
19173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19174   (eval $ac_try) 2>&5
19175   ac_status=$?
19176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19177   (exit $ac_status); }; } &&
19178          { ac_try='test -s conftest.$ac_objext'
19179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19180   (eval $ac_try) 2>&5
19181   ac_status=$?
19182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19183   (exit $ac_status); }; }; then
19184   ac_cv_prog_cc_g=yes
19185 else
19186   echo "$as_me: failed program was:" >&5
19187 sed 's/^/| /' conftest.$ac_ext >&5
19188
19189 ac_cv_prog_cc_g=no
19190 fi
19191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19192 fi
19193 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19194 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
19195 if test "$ac_test_CFLAGS" = set; then
19196   CFLAGS=$ac_save_CFLAGS
19197 elif test $ac_cv_prog_cc_g = yes; then
19198   if test "$GCC" = yes; then
19199     CFLAGS="-g -O2"
19200   else
19201     CFLAGS="-g"
19202   fi
19203 else
19204   if test "$GCC" = yes; then
19205     CFLAGS="-O2"
19206   else
19207     CFLAGS=
19208   fi
19209 fi
19210 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
19211 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
19212 if test "${ac_cv_prog_cc_stdc+set}" = set; then
19213   echo $ECHO_N "(cached) $ECHO_C" >&6
19214 else
19215   ac_cv_prog_cc_stdc=no
19216 ac_save_CC=$CC
19217 cat >conftest.$ac_ext <<_ACEOF
19218 /* confdefs.h.  */
19219 _ACEOF
19220 cat confdefs.h >>conftest.$ac_ext
19221 cat >>conftest.$ac_ext <<_ACEOF
19222 /* end confdefs.h.  */
19223 #include <stdarg.h>
19224 #include <stdio.h>
19225 #include <sys/types.h>
19226 #include <sys/stat.h>
19227 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
19228 struct buf { int x; };
19229 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19230 static char *e (p, i)
19231      char **p;
19232      int i;
19233 {
19234   return p[i];
19235 }
19236 static char *f (char * (*g) (char **, int), char **p, ...)
19237 {
19238   char *s;
19239   va_list v;
19240   va_start (v,p);
19241   s = g (p, va_arg (v,int));
19242   va_end (v);
19243   return s;
19244 }
19245
19246 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
19247    function prototypes and stuff, but not '\xHH' hex character constants.
19248    These don't provoke an error unfortunately, instead are silently treated
19249    as 'x'.  The following induces an error, until -std1 is added to get
19250    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
19251    array size at least.  It's necessary to write '\x00'==0 to get something
19252    that's true only with -std1.  */
19253 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19254
19255 int test (int i, double x);
19256 struct s1 {int (*f) (int a);};
19257 struct s2 {int (*f) (double a);};
19258 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19259 int argc;
19260 char **argv;
19261 int
19262 main ()
19263 {
19264 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
19265   ;
19266   return 0;
19267 }
19268 _ACEOF
19269 # Don't try gcc -ansi; that turns off useful extensions and
19270 # breaks some systems' header files.
19271 # AIX                   -qlanglvl=ansi
19272 # Ultrix and OSF/1      -std1
19273 # HP-UX 10.20 and later -Ae
19274 # HP-UX older versions  -Aa -D_HPUX_SOURCE
19275 # SVR4                  -Xc -D__EXTENSIONS__
19276 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19277 do
19278   CC="$ac_save_CC $ac_arg"
19279   rm -f conftest.$ac_objext
19280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19281   (eval $ac_compile) 2>conftest.er1
19282   ac_status=$?
19283   grep -v '^ *+' conftest.er1 >conftest.err
19284   rm -f conftest.er1
19285   cat conftest.err >&5
19286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19287   (exit $ac_status); } &&
19288          { ac_try='test -z "$ac_c_werror_flag"
19289                          || test ! -s conftest.err'
19290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19291   (eval $ac_try) 2>&5
19292   ac_status=$?
19293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19294   (exit $ac_status); }; } &&
19295          { ac_try='test -s conftest.$ac_objext'
19296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19297   (eval $ac_try) 2>&5
19298   ac_status=$?
19299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19300   (exit $ac_status); }; }; then
19301   ac_cv_prog_cc_stdc=$ac_arg
19302 break
19303 else
19304   echo "$as_me: failed program was:" >&5
19305 sed 's/^/| /' conftest.$ac_ext >&5
19306
19307 fi
19308 rm -f conftest.err conftest.$ac_objext 
19309 done
19310 rm -f conftest.$ac_ext conftest.$ac_objext
19311 CC=$ac_save_CC
19312
19313 fi
19314
19315 case "x$ac_cv_prog_cc_stdc" in
19316   x|xno)
19317     echo "$as_me:$LINENO: result: none needed" >&5
19318 echo "${ECHO_T}none needed" >&6 ;;
19319   *)
19320     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
19321 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
19322     CC="$CC $ac_cv_prog_cc_stdc" ;;
19323 esac
19324
19325 # Some people use a C++ compiler to compile C.  Since we use `exit',
19326 # in C++ we need to declare it.  In case someone uses the same compiler
19327 # for both compiling C and C++ we need to have the C++ compiler decide
19328 # the declaration of exit, since it's the most demanding environment.
19329 cat >conftest.$ac_ext <<_ACEOF
19330 @%:@ifndef __cplusplus
19331   choke me
19332 @%:@endif
19333 _ACEOF
19334 rm -f conftest.$ac_objext
19335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19336   (eval $ac_compile) 2>conftest.er1
19337   ac_status=$?
19338   grep -v '^ *+' conftest.er1 >conftest.err
19339   rm -f conftest.er1
19340   cat conftest.err >&5
19341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19342   (exit $ac_status); } &&
19343          { ac_try='test -z "$ac_c_werror_flag"
19344                          || test ! -s conftest.err'
19345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19346   (eval $ac_try) 2>&5
19347   ac_status=$?
19348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19349   (exit $ac_status); }; } &&
19350          { ac_try='test -s conftest.$ac_objext'
19351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19352   (eval $ac_try) 2>&5
19353   ac_status=$?
19354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19355   (exit $ac_status); }; }; then
19356   for ac_declaration in \
19357    '' \
19358    'extern "C" void std::exit (int) throw (); using std::exit;' \
19359    'extern "C" void std::exit (int); using std::exit;' \
19360    'extern "C" void exit (int) throw ();' \
19361    'extern "C" void exit (int);' \
19362    'void exit (int);'
19363 do
19364   cat >conftest.$ac_ext <<_ACEOF
19365 /* confdefs.h.  */
19366 _ACEOF
19367 cat confdefs.h >>conftest.$ac_ext
19368 cat >>conftest.$ac_ext <<_ACEOF
19369 /* end confdefs.h.  */
19370 $ac_declaration
19371 @%:@include <stdlib.h>
19372 int
19373 main ()
19374 {
19375 exit (42);
19376   ;
19377   return 0;
19378 }
19379 _ACEOF
19380 rm -f conftest.$ac_objext
19381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19382   (eval $ac_compile) 2>conftest.er1
19383   ac_status=$?
19384   grep -v '^ *+' conftest.er1 >conftest.err
19385   rm -f conftest.er1
19386   cat conftest.err >&5
19387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388   (exit $ac_status); } &&
19389          { ac_try='test -z "$ac_c_werror_flag"
19390                          || test ! -s conftest.err'
19391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19392   (eval $ac_try) 2>&5
19393   ac_status=$?
19394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19395   (exit $ac_status); }; } &&
19396          { ac_try='test -s conftest.$ac_objext'
19397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19398   (eval $ac_try) 2>&5
19399   ac_status=$?
19400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19401   (exit $ac_status); }; }; then
19402   :
19403 else
19404   echo "$as_me: failed program was:" >&5
19405 sed 's/^/| /' conftest.$ac_ext >&5
19406
19407 continue
19408 fi
19409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19410   cat >conftest.$ac_ext <<_ACEOF
19411 /* confdefs.h.  */
19412 _ACEOF
19413 cat confdefs.h >>conftest.$ac_ext
19414 cat >>conftest.$ac_ext <<_ACEOF
19415 /* end confdefs.h.  */
19416 $ac_declaration
19417 int
19418 main ()
19419 {
19420 exit (42);
19421   ;
19422   return 0;
19423 }
19424 _ACEOF
19425 rm -f conftest.$ac_objext
19426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19427   (eval $ac_compile) 2>conftest.er1
19428   ac_status=$?
19429   grep -v '^ *+' conftest.er1 >conftest.err
19430   rm -f conftest.er1
19431   cat conftest.err >&5
19432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19433   (exit $ac_status); } &&
19434          { ac_try='test -z "$ac_c_werror_flag"
19435                          || test ! -s conftest.err'
19436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19437   (eval $ac_try) 2>&5
19438   ac_status=$?
19439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19440   (exit $ac_status); }; } &&
19441          { ac_try='test -s conftest.$ac_objext'
19442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19443   (eval $ac_try) 2>&5
19444   ac_status=$?
19445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19446   (exit $ac_status); }; }; then
19447   break
19448 else
19449   echo "$as_me: failed program was:" >&5
19450 sed 's/^/| /' conftest.$ac_ext >&5
19451
19452 fi
19453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19454 done
19455 rm -f conftest*
19456 if test -n "$ac_declaration"; then
19457   echo '#ifdef __cplusplus' >>confdefs.h
19458   echo $ac_declaration      >>confdefs.h
19459   echo '#endif'             >>confdefs.h
19460 fi
19461
19462 else
19463   echo "$as_me: failed program was:" >&5
19464 sed 's/^/| /' conftest.$ac_ext >&5
19465
19466 fi
19467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19468 ac_ext=c
19469 ac_cpp='$CPP $CPPFLAGS'
19470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19473
19474 depcc="$CC"   am_compiler_list=
19475
19476 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19477 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
19478 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19479   echo $ECHO_N "(cached) $ECHO_C" >&6
19480 else
19481   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19482   # We make a subdir and do the tests there.  Otherwise we can end up
19483   # making bogus files that we don't know about and never remove.  For
19484   # instance it was reported that on HP-UX the gcc test will end up
19485   # making a dummy file named `D' -- because `-MD' means `put the output
19486   # in D'.
19487   mkdir conftest.dir
19488   # Copy depcomp to subdir because otherwise we won't find it if we're
19489   # using a relative directory.
19490   cp "$am_depcomp" conftest.dir
19491   cd conftest.dir
19492   # We will build objects and dependencies in a subdirectory because
19493   # it helps to detect inapplicable dependency modes.  For instance
19494   # both Tru64's cc and ICC support -MD to output dependencies as a
19495   # side effect of compilation, but ICC will put the dependencies in
19496   # the current directory while Tru64 will put them in the object
19497   # directory.
19498   mkdir sub
19499
19500   am_cv_CC_dependencies_compiler_type=none
19501   if test "$am_compiler_list" = ""; then
19502      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19503   fi
19504   for depmode in $am_compiler_list; do
19505     # Setup a source with many dependencies, because some compilers
19506     # like to wrap large dependency lists on column 80 (with \), and
19507     # we should not choose a depcomp mode which is confused by this.
19508     #
19509     # We need to recreate these files for each test, as the compiler may
19510     # overwrite some of them when testing with obscure command lines.
19511     # This happens at least with the AIX C compiler.
19512     : > sub/conftest.c
19513     for i in 1 2 3 4 5 6; do
19514       echo '#include "conftst'$i'.h"' >> sub/conftest.c
19515       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19516       # Solaris 8's {/usr,}/bin/sh.
19517       touch sub/conftst$i.h
19518     done
19519     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19520
19521     case $depmode in
19522     nosideeffect)
19523       # after this tag, mechanisms are not by side-effect, so they'll
19524       # only be used when explicitly requested
19525       if test "x$enable_dependency_tracking" = xyes; then
19526         continue
19527       else
19528         break
19529       fi
19530       ;;
19531     none) break ;;
19532     esac
19533     # We check with `-c' and `-o' for the sake of the "dashmstdout"
19534     # mode.  It turns out that the SunPro C++ compiler does not properly
19535     # handle `-M -o', and we need to detect this.
19536     if depmode=$depmode \
19537        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19538        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19539        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19540          >/dev/null 2>conftest.err &&
19541        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19542        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19543        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19544       # icc doesn't choke on unknown options, it will just issue warnings
19545       # or remarks (even with -Werror).  So we grep stderr for any message
19546       # that says an option was ignored or not supported.
19547       # When given -MP, icc 7.0 and 7.1 complain thusly:
19548       #   icc: Command line warning: ignoring option '-M'; no argument required
19549       # The diagnosis changed in icc 8.0:
19550       #   icc: Command line remark: option '-MP' not supported
19551       if (grep 'ignoring option' conftest.err ||
19552           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19553         am_cv_CC_dependencies_compiler_type=$depmode
19554         break
19555       fi
19556     fi
19557   done
19558
19559   cd ..
19560   rm -rf conftest.dir
19561 else
19562   am_cv_CC_dependencies_compiler_type=none
19563 fi
19564
19565 fi
19566 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19567 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
19568 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19569
19570  
19571
19572 if 
19573   test "x$enable_dependency_tracking" != xno \
19574   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19575   am__fastdepCC_TRUE=
19576   am__fastdepCC_FALSE='#'
19577 else
19578   am__fastdepCC_TRUE='#'
19579   am__fastdepCC_FALSE=
19580 fi
19581
19582
19583
19584 if test "$GCC" = yes; then
19585         case "$host" in
19586                 *-*-solaris*)
19587                         CFLAGS="$CFLAGS -Wall -Wno-char-subscripts"
19588                 ;;
19589                 *)
19590                         CFLAGS="$CFLAGS -Wall"
19591                 ;;
19592         esac
19593 fi
19594
19595 # missing_dir=`cd $ac_aux_dir && pwd`
19596 # AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
19597
19598 if test "$LIBS" != -pthread; then
19599         
19600 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
19601 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
19602 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
19603   echo $ECHO_N "(cached) $ECHO_C" >&6
19604 else
19605   ac_check_lib_save_LIBS=$LIBS
19606 LIBS="-lpthread  $LIBS"
19607 cat >conftest.$ac_ext <<_ACEOF
19608 /* confdefs.h.  */
19609 _ACEOF
19610 cat confdefs.h >>conftest.$ac_ext
19611 cat >>conftest.$ac_ext <<_ACEOF
19612 /* end confdefs.h.  */
19613
19614 /* Override any gcc2 internal prototype to avoid an error.  */
19615 #ifdef __cplusplus
19616 extern "C"
19617 #endif
19618 /* We use char because int might match the return type of a gcc2
19619    builtin and then its argument prototype would still apply.  */
19620 char pthread_create ();
19621 int
19622 main ()
19623 {
19624 pthread_create ();
19625   ;
19626   return 0;
19627 }
19628 _ACEOF
19629 rm -f conftest.$ac_objext conftest$ac_exeext
19630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19631   (eval $ac_link) 2>conftest.er1
19632   ac_status=$?
19633   grep -v '^ *+' conftest.er1 >conftest.err
19634   rm -f conftest.er1
19635   cat conftest.err >&5
19636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637   (exit $ac_status); } &&
19638          { ac_try='test -z "$ac_c_werror_flag"
19639                          || test ! -s conftest.err'
19640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19641   (eval $ac_try) 2>&5
19642   ac_status=$?
19643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19644   (exit $ac_status); }; } &&
19645          { ac_try='test -s conftest$ac_exeext'
19646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19647   (eval $ac_try) 2>&5
19648   ac_status=$?
19649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19650   (exit $ac_status); }; }; then
19651   ac_cv_lib_pthread_pthread_create=yes
19652 else
19653   echo "$as_me: failed program was:" >&5
19654 sed 's/^/| /' conftest.$ac_ext >&5
19655
19656 ac_cv_lib_pthread_pthread_create=no
19657 fi
19658 rm -f conftest.err conftest.$ac_objext \
19659       conftest$ac_exeext conftest.$ac_ext
19660 LIBS=$ac_check_lib_save_LIBS
19661 fi
19662 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
19663 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
19664 if test $ac_cv_lib_pthread_pthread_create = yes; then
19665   cat >>confdefs.h <<_ACEOF
19666 @%:@define HAVE_LIBPTHREAD 1
19667 _ACEOF
19668
19669   LIBS="-lpthread $LIBS"
19670
19671 fi
19672
19673         
19674 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
19675 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
19676 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
19677   echo $ECHO_N "(cached) $ECHO_C" >&6
19678 else
19679   ac_check_lib_save_LIBS=$LIBS
19680 LIBS="-lpthreads  $LIBS"
19681 cat >conftest.$ac_ext <<_ACEOF
19682 /* confdefs.h.  */
19683 _ACEOF
19684 cat confdefs.h >>conftest.$ac_ext
19685 cat >>conftest.$ac_ext <<_ACEOF
19686 /* end confdefs.h.  */
19687
19688 /* Override any gcc2 internal prototype to avoid an error.  */
19689 #ifdef __cplusplus
19690 extern "C"
19691 #endif
19692 /* We use char because int might match the return type of a gcc2
19693    builtin and then its argument prototype would still apply.  */
19694 char pthread_create ();
19695 int
19696 main ()
19697 {
19698 pthread_create ();
19699   ;
19700   return 0;
19701 }
19702 _ACEOF
19703 rm -f conftest.$ac_objext conftest$ac_exeext
19704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19705   (eval $ac_link) 2>conftest.er1
19706   ac_status=$?
19707   grep -v '^ *+' conftest.er1 >conftest.err
19708   rm -f conftest.er1
19709   cat conftest.err >&5
19710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19711   (exit $ac_status); } &&
19712          { ac_try='test -z "$ac_c_werror_flag"
19713                          || test ! -s conftest.err'
19714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19715   (eval $ac_try) 2>&5
19716   ac_status=$?
19717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19718   (exit $ac_status); }; } &&
19719          { ac_try='test -s conftest$ac_exeext'
19720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19721   (eval $ac_try) 2>&5
19722   ac_status=$?
19723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19724   (exit $ac_status); }; }; then
19725   ac_cv_lib_pthreads_pthread_create=yes
19726 else
19727   echo "$as_me: failed program was:" >&5
19728 sed 's/^/| /' conftest.$ac_ext >&5
19729
19730 ac_cv_lib_pthreads_pthread_create=no
19731 fi
19732 rm -f conftest.err conftest.$ac_objext \
19733       conftest$ac_exeext conftest.$ac_ext
19734 LIBS=$ac_check_lib_save_LIBS
19735 fi
19736 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
19737 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
19738 if test $ac_cv_lib_pthreads_pthread_create = yes; then
19739   cat >>confdefs.h <<_ACEOF
19740 @%:@define HAVE_LIBPTHREADS 1
19741 _ACEOF
19742
19743   LIBS="-lpthreads $LIBS"
19744
19745 fi
19746
19747 fi
19748 echo "$as_me:$LINENO: checking for libiconv in -liconv" >&5
19749 echo $ECHO_N "checking for libiconv in -liconv... $ECHO_C" >&6
19750 if test "${ac_cv_lib_iconv_libiconv+set}" = set; then
19751   echo $ECHO_N "(cached) $ECHO_C" >&6
19752 else
19753   ac_check_lib_save_LIBS=$LIBS
19754 LIBS="-liconv  $LIBS"
19755 cat >conftest.$ac_ext <<_ACEOF
19756 /* confdefs.h.  */
19757 _ACEOF
19758 cat confdefs.h >>conftest.$ac_ext
19759 cat >>conftest.$ac_ext <<_ACEOF
19760 /* end confdefs.h.  */
19761
19762 /* Override any gcc2 internal prototype to avoid an error.  */
19763 #ifdef __cplusplus
19764 extern "C"
19765 #endif
19766 /* We use char because int might match the return type of a gcc2
19767    builtin and then its argument prototype would still apply.  */
19768 char libiconv ();
19769 int
19770 main ()
19771 {
19772 libiconv ();
19773   ;
19774   return 0;
19775 }
19776 _ACEOF
19777 rm -f conftest.$ac_objext conftest$ac_exeext
19778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19779   (eval $ac_link) 2>conftest.er1
19780   ac_status=$?
19781   grep -v '^ *+' conftest.er1 >conftest.err
19782   rm -f conftest.er1
19783   cat conftest.err >&5
19784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19785   (exit $ac_status); } &&
19786          { ac_try='test -z "$ac_c_werror_flag"
19787                          || test ! -s conftest.err'
19788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19789   (eval $ac_try) 2>&5
19790   ac_status=$?
19791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19792   (exit $ac_status); }; } &&
19793          { ac_try='test -s conftest$ac_exeext'
19794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19795   (eval $ac_try) 2>&5
19796   ac_status=$?
19797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19798   (exit $ac_status); }; }; then
19799   ac_cv_lib_iconv_libiconv=yes
19800 else
19801   echo "$as_me: failed program was:" >&5
19802 sed 's/^/| /' conftest.$ac_ext >&5
19803
19804 ac_cv_lib_iconv_libiconv=no
19805 fi
19806 rm -f conftest.err conftest.$ac_objext \
19807       conftest$ac_exeext conftest.$ac_ext
19808 LIBS=$ac_check_lib_save_LIBS
19809 fi
19810 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_libiconv" >&5
19811 echo "${ECHO_T}$ac_cv_lib_iconv_libiconv" >&6
19812 if test $ac_cv_lib_iconv_libiconv = yes; then
19813   LIBS="$LIBS -liconv"
19814 fi
19815    
19816 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
19817 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
19818 if test "${ac_cv_search_gethostbyname+set}" = set; then
19819   echo $ECHO_N "(cached) $ECHO_C" >&6
19820 else
19821   ac_func_search_save_LIBS=$LIBS
19822 ac_cv_search_gethostbyname=no
19823 cat >conftest.$ac_ext <<_ACEOF
19824 /* confdefs.h.  */
19825 _ACEOF
19826 cat confdefs.h >>conftest.$ac_ext
19827 cat >>conftest.$ac_ext <<_ACEOF
19828 /* end confdefs.h.  */
19829
19830 /* Override any gcc2 internal prototype to avoid an error.  */
19831 #ifdef __cplusplus
19832 extern "C"
19833 #endif
19834 /* We use char because int might match the return type of a gcc2
19835    builtin and then its argument prototype would still apply.  */
19836 char gethostbyname ();
19837 int
19838 main ()
19839 {
19840 gethostbyname ();
19841   ;
19842   return 0;
19843 }
19844 _ACEOF
19845 rm -f conftest.$ac_objext conftest$ac_exeext
19846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19847   (eval $ac_link) 2>conftest.er1
19848   ac_status=$?
19849   grep -v '^ *+' conftest.er1 >conftest.err
19850   rm -f conftest.er1
19851   cat conftest.err >&5
19852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19853   (exit $ac_status); } &&
19854          { ac_try='test -z "$ac_c_werror_flag"
19855                          || test ! -s conftest.err'
19856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19857   (eval $ac_try) 2>&5
19858   ac_status=$?
19859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19860   (exit $ac_status); }; } &&
19861          { ac_try='test -s conftest$ac_exeext'
19862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19863   (eval $ac_try) 2>&5
19864   ac_status=$?
19865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19866   (exit $ac_status); }; }; then
19867   ac_cv_search_gethostbyname="none required"
19868 else
19869   echo "$as_me: failed program was:" >&5
19870 sed 's/^/| /' conftest.$ac_ext >&5
19871
19872 fi
19873 rm -f conftest.err conftest.$ac_objext \
19874       conftest$ac_exeext conftest.$ac_ext
19875 if test "$ac_cv_search_gethostbyname" = no; then
19876   for ac_lib in nsl; do
19877     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19878     cat >conftest.$ac_ext <<_ACEOF
19879 /* confdefs.h.  */
19880 _ACEOF
19881 cat confdefs.h >>conftest.$ac_ext
19882 cat >>conftest.$ac_ext <<_ACEOF
19883 /* end confdefs.h.  */
19884
19885 /* Override any gcc2 internal prototype to avoid an error.  */
19886 #ifdef __cplusplus
19887 extern "C"
19888 #endif
19889 /* We use char because int might match the return type of a gcc2
19890    builtin and then its argument prototype would still apply.  */
19891 char gethostbyname ();
19892 int
19893 main ()
19894 {
19895 gethostbyname ();
19896   ;
19897   return 0;
19898 }
19899 _ACEOF
19900 rm -f conftest.$ac_objext conftest$ac_exeext
19901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19902   (eval $ac_link) 2>conftest.er1
19903   ac_status=$?
19904   grep -v '^ *+' conftest.er1 >conftest.err
19905   rm -f conftest.er1
19906   cat conftest.err >&5
19907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19908   (exit $ac_status); } &&
19909          { ac_try='test -z "$ac_c_werror_flag"
19910                          || test ! -s conftest.err'
19911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19912   (eval $ac_try) 2>&5
19913   ac_status=$?
19914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19915   (exit $ac_status); }; } &&
19916          { ac_try='test -s conftest$ac_exeext'
19917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19918   (eval $ac_try) 2>&5
19919   ac_status=$?
19920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19921   (exit $ac_status); }; }; then
19922   ac_cv_search_gethostbyname="-l$ac_lib"
19923 break
19924 else
19925   echo "$as_me: failed program was:" >&5
19926 sed 's/^/| /' conftest.$ac_ext >&5
19927
19928 fi
19929 rm -f conftest.err conftest.$ac_objext \
19930       conftest$ac_exeext conftest.$ac_ext
19931   done
19932 fi
19933 LIBS=$ac_func_search_save_LIBS
19934 fi
19935 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
19936 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
19937 if test "$ac_cv_search_gethostbyname" != no; then
19938   test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
19939   
19940 fi
19941
19942 echo "$as_me:$LINENO: checking for library containing connect" >&5
19943 echo $ECHO_N "checking for library containing connect... $ECHO_C" >&6
19944 if test "${ac_cv_search_connect+set}" = set; then
19945   echo $ECHO_N "(cached) $ECHO_C" >&6
19946 else
19947   ac_func_search_save_LIBS=$LIBS
19948 ac_cv_search_connect=no
19949 cat >conftest.$ac_ext <<_ACEOF
19950 /* confdefs.h.  */
19951 _ACEOF
19952 cat confdefs.h >>conftest.$ac_ext
19953 cat >>conftest.$ac_ext <<_ACEOF
19954 /* end confdefs.h.  */
19955
19956 /* Override any gcc2 internal prototype to avoid an error.  */
19957 #ifdef __cplusplus
19958 extern "C"
19959 #endif
19960 /* We use char because int might match the return type of a gcc2
19961    builtin and then its argument prototype would still apply.  */
19962 char connect ();
19963 int
19964 main ()
19965 {
19966 connect ();
19967   ;
19968   return 0;
19969 }
19970 _ACEOF
19971 rm -f conftest.$ac_objext conftest$ac_exeext
19972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19973   (eval $ac_link) 2>conftest.er1
19974   ac_status=$?
19975   grep -v '^ *+' conftest.er1 >conftest.err
19976   rm -f conftest.er1
19977   cat conftest.err >&5
19978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19979   (exit $ac_status); } &&
19980          { ac_try='test -z "$ac_c_werror_flag"
19981                          || test ! -s conftest.err'
19982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19983   (eval $ac_try) 2>&5
19984   ac_status=$?
19985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19986   (exit $ac_status); }; } &&
19987          { ac_try='test -s conftest$ac_exeext'
19988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19989   (eval $ac_try) 2>&5
19990   ac_status=$?
19991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19992   (exit $ac_status); }; }; then
19993   ac_cv_search_connect="none required"
19994 else
19995   echo "$as_me: failed program was:" >&5
19996 sed 's/^/| /' conftest.$ac_ext >&5
19997
19998 fi
19999 rm -f conftest.err conftest.$ac_objext \
20000       conftest$ac_exeext conftest.$ac_ext
20001 if test "$ac_cv_search_connect" = no; then
20002   for ac_lib in socket; do
20003     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20004     cat >conftest.$ac_ext <<_ACEOF
20005 /* confdefs.h.  */
20006 _ACEOF
20007 cat confdefs.h >>conftest.$ac_ext
20008 cat >>conftest.$ac_ext <<_ACEOF
20009 /* end confdefs.h.  */
20010
20011 /* Override any gcc2 internal prototype to avoid an error.  */
20012 #ifdef __cplusplus
20013 extern "C"
20014 #endif
20015 /* We use char because int might match the return type of a gcc2
20016    builtin and then its argument prototype would still apply.  */
20017 char connect ();
20018 int
20019 main ()
20020 {
20021 connect ();
20022   ;
20023   return 0;
20024 }
20025 _ACEOF
20026 rm -f conftest.$ac_objext conftest$ac_exeext
20027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20028   (eval $ac_link) 2>conftest.er1
20029   ac_status=$?
20030   grep -v '^ *+' conftest.er1 >conftest.err
20031   rm -f conftest.er1
20032   cat conftest.err >&5
20033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20034   (exit $ac_status); } &&
20035          { ac_try='test -z "$ac_c_werror_flag"
20036                          || test ! -s conftest.err'
20037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20038   (eval $ac_try) 2>&5
20039   ac_status=$?
20040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20041   (exit $ac_status); }; } &&
20042          { ac_try='test -s conftest$ac_exeext'
20043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20044   (eval $ac_try) 2>&5
20045   ac_status=$?
20046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20047   (exit $ac_status); }; }; then
20048   ac_cv_search_connect="-l$ac_lib"
20049 break
20050 else
20051   echo "$as_me: failed program was:" >&5
20052 sed 's/^/| /' conftest.$ac_ext >&5
20053
20054 fi
20055 rm -f conftest.err conftest.$ac_objext \
20056       conftest$ac_exeext conftest.$ac_ext
20057   done
20058 fi
20059 LIBS=$ac_func_search_save_LIBS
20060 fi
20061 echo "$as_me:$LINENO: result: $ac_cv_search_connect" >&5
20062 echo "${ECHO_T}$ac_cv_search_connect" >&6
20063 if test "$ac_cv_search_connect" != no; then
20064   test "$ac_cv_search_connect" = "none required" || LIBS="$ac_cv_search_connect $LIBS"
20065   
20066 fi
20067
20068
20069 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20070 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
20071 if test "${ac_cv_header_stdc+set}" = set; then
20072   echo $ECHO_N "(cached) $ECHO_C" >&6
20073 else
20074   cat >conftest.$ac_ext <<_ACEOF
20075 /* confdefs.h.  */
20076 _ACEOF
20077 cat confdefs.h >>conftest.$ac_ext
20078 cat >>conftest.$ac_ext <<_ACEOF
20079 /* end confdefs.h.  */
20080 #include <stdlib.h>
20081 #include <stdarg.h>
20082 #include <string.h>
20083 #include <float.h>
20084
20085 int
20086 main ()
20087 {
20088
20089   ;
20090   return 0;
20091 }
20092 _ACEOF
20093 rm -f conftest.$ac_objext
20094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20095   (eval $ac_compile) 2>conftest.er1
20096   ac_status=$?
20097   grep -v '^ *+' conftest.er1 >conftest.err
20098   rm -f conftest.er1
20099   cat conftest.err >&5
20100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20101   (exit $ac_status); } &&
20102          { ac_try='test -z "$ac_c_werror_flag"
20103                          || test ! -s conftest.err'
20104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20105   (eval $ac_try) 2>&5
20106   ac_status=$?
20107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20108   (exit $ac_status); }; } &&
20109          { ac_try='test -s conftest.$ac_objext'
20110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20111   (eval $ac_try) 2>&5
20112   ac_status=$?
20113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20114   (exit $ac_status); }; }; then
20115   ac_cv_header_stdc=yes
20116 else
20117   echo "$as_me: failed program was:" >&5
20118 sed 's/^/| /' conftest.$ac_ext >&5
20119
20120 ac_cv_header_stdc=no
20121 fi
20122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20123
20124 if test $ac_cv_header_stdc = yes; then
20125   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20126   cat >conftest.$ac_ext <<_ACEOF
20127 /* confdefs.h.  */
20128 _ACEOF
20129 cat confdefs.h >>conftest.$ac_ext
20130 cat >>conftest.$ac_ext <<_ACEOF
20131 /* end confdefs.h.  */
20132 #include <string.h>
20133
20134 _ACEOF
20135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20136   $EGREP "memchr" >/dev/null 2>&1; then
20137   :
20138 else
20139   ac_cv_header_stdc=no
20140 fi
20141 rm -f conftest*
20142
20143 fi
20144
20145 if test $ac_cv_header_stdc = yes; then
20146   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20147   cat >conftest.$ac_ext <<_ACEOF
20148 /* confdefs.h.  */
20149 _ACEOF
20150 cat confdefs.h >>conftest.$ac_ext
20151 cat >>conftest.$ac_ext <<_ACEOF
20152 /* end confdefs.h.  */
20153 #include <stdlib.h>
20154
20155 _ACEOF
20156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20157   $EGREP "free" >/dev/null 2>&1; then
20158   :
20159 else
20160   ac_cv_header_stdc=no
20161 fi
20162 rm -f conftest*
20163
20164 fi
20165
20166 if test $ac_cv_header_stdc = yes; then
20167   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20168   if test "$cross_compiling" = yes; then
20169   :
20170 else
20171   cat >conftest.$ac_ext <<_ACEOF
20172 /* confdefs.h.  */
20173 _ACEOF
20174 cat confdefs.h >>conftest.$ac_ext
20175 cat >>conftest.$ac_ext <<_ACEOF
20176 /* end confdefs.h.  */
20177 #include <ctype.h>
20178 #if ((' ' & 0x0FF) == 0x020)
20179 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20180 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20181 #else
20182 # define ISLOWER(c) \
20183                    (('a' <= (c) && (c) <= 'i') \
20184                      || ('j' <= (c) && (c) <= 'r') \
20185                      || ('s' <= (c) && (c) <= 'z'))
20186 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20187 #endif
20188
20189 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20190 int
20191 main ()
20192 {
20193   int i;
20194   for (i = 0; i < 256; i++)
20195     if (XOR (islower (i), ISLOWER (i))
20196         || toupper (i) != TOUPPER (i))
20197       exit(2);
20198   exit (0);
20199 }
20200 _ACEOF
20201 rm -f conftest$ac_exeext
20202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20203   (eval $ac_link) 2>&5
20204   ac_status=$?
20205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20206   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20208   (eval $ac_try) 2>&5
20209   ac_status=$?
20210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20211   (exit $ac_status); }; }; then
20212   :
20213 else
20214   echo "$as_me: program exited with status $ac_status" >&5
20215 echo "$as_me: failed program was:" >&5
20216 sed 's/^/| /' conftest.$ac_ext >&5
20217
20218 ( exit $ac_status )
20219 ac_cv_header_stdc=no
20220 fi
20221 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20222 fi
20223 fi
20224 fi
20225 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20226 echo "${ECHO_T}$ac_cv_header_stdc" >&6
20227 if test $ac_cv_header_stdc = yes; then
20228   
20229 cat >>confdefs.h <<\_ACEOF
20230 @%:@define STDC_HEADERS 1
20231 _ACEOF
20232
20233 fi
20234
20235
20236
20237
20238
20239 for ac_header in fcntl.h limits.h sys/time.h unistd.h
20240 do
20241 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20242 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20243   echo "$as_me:$LINENO: checking for $ac_header" >&5
20244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20245 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20246   echo $ECHO_N "(cached) $ECHO_C" >&6
20247 fi
20248 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20249 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20250 else
20251   # Is the header compilable?
20252 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20253 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20254 cat >conftest.$ac_ext <<_ACEOF
20255 /* confdefs.h.  */
20256 _ACEOF
20257 cat confdefs.h >>conftest.$ac_ext
20258 cat >>conftest.$ac_ext <<_ACEOF
20259 /* end confdefs.h.  */
20260 $ac_includes_default
20261 @%:@include <$ac_header>
20262 _ACEOF
20263 rm -f conftest.$ac_objext
20264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20265   (eval $ac_compile) 2>conftest.er1
20266   ac_status=$?
20267   grep -v '^ *+' conftest.er1 >conftest.err
20268   rm -f conftest.er1
20269   cat conftest.err >&5
20270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20271   (exit $ac_status); } &&
20272          { ac_try='test -z "$ac_c_werror_flag"
20273                          || test ! -s conftest.err'
20274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20275   (eval $ac_try) 2>&5
20276   ac_status=$?
20277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20278   (exit $ac_status); }; } &&
20279          { ac_try='test -s conftest.$ac_objext'
20280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20281   (eval $ac_try) 2>&5
20282   ac_status=$?
20283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20284   (exit $ac_status); }; }; then
20285   ac_header_compiler=yes
20286 else
20287   echo "$as_me: failed program was:" >&5
20288 sed 's/^/| /' conftest.$ac_ext >&5
20289
20290 ac_header_compiler=no
20291 fi
20292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20293 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20294 echo "${ECHO_T}$ac_header_compiler" >&6
20295
20296 # Is the header present?
20297 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20298 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20299 cat >conftest.$ac_ext <<_ACEOF
20300 /* confdefs.h.  */
20301 _ACEOF
20302 cat confdefs.h >>conftest.$ac_ext
20303 cat >>conftest.$ac_ext <<_ACEOF
20304 /* end confdefs.h.  */
20305 @%:@include <$ac_header>
20306 _ACEOF
20307 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20308   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20309   ac_status=$?
20310   grep -v '^ *+' conftest.er1 >conftest.err
20311   rm -f conftest.er1
20312   cat conftest.err >&5
20313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20314   (exit $ac_status); } >/dev/null; then
20315   if test -s conftest.err; then
20316     ac_cpp_err=$ac_c_preproc_warn_flag
20317     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20318   else
20319     ac_cpp_err=
20320   fi
20321 else
20322   ac_cpp_err=yes
20323 fi
20324 if test -z "$ac_cpp_err"; then
20325   ac_header_preproc=yes
20326 else
20327   echo "$as_me: failed program was:" >&5
20328 sed 's/^/| /' conftest.$ac_ext >&5
20329
20330   ac_header_preproc=no
20331 fi
20332 rm -f conftest.err conftest.$ac_ext
20333 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20334 echo "${ECHO_T}$ac_header_preproc" >&6
20335
20336 # So?  What about this header?
20337 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20338   yes:no: )
20339     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20340 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20341     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20342 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20343     ac_header_preproc=yes
20344     ;;
20345   no:yes:* )
20346     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20347 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20348     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20349 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20350     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20351 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20352     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20353 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20354     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20355 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20356     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20357 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20358     (
20359       cat <<\_ASBOX
20360 @%:@@%:@ ------------------------------------- @%:@@%:@
20361 @%:@@%:@ Report this to uncensored.citadel.org @%:@@%:@
20362 @%:@@%:@ ------------------------------------- @%:@@%:@
20363 _ASBOX
20364     ) |
20365       sed "s/^/$as_me: WARNING:     /" >&2
20366     ;;
20367 esac
20368 echo "$as_me:$LINENO: checking for $ac_header" >&5
20369 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20370 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20371   echo $ECHO_N "(cached) $ECHO_C" >&6
20372 else
20373   eval "$as_ac_Header=\$ac_header_preproc"
20374 fi
20375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20376 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20377
20378 fi
20379 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20380   cat >>confdefs.h <<_ACEOF
20381 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20382 _ACEOF
20383  
20384 fi
20385
20386 done
20387
20388
20389
20390
20391
20392 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20393 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20394 if test "${ac_cv_c_const+set}" = set; then
20395   echo $ECHO_N "(cached) $ECHO_C" >&6
20396 else
20397   cat >conftest.$ac_ext <<_ACEOF
20398 /* confdefs.h.  */
20399 _ACEOF
20400 cat confdefs.h >>conftest.$ac_ext
20401 cat >>conftest.$ac_ext <<_ACEOF
20402 /* end confdefs.h.  */
20403
20404 int
20405 main ()
20406 {
20407 /* FIXME: Include the comments suggested by Paul. */
20408 #ifndef __cplusplus
20409   /* Ultrix mips cc rejects this.  */
20410   typedef int charset[2];
20411   const charset x;
20412   /* SunOS 4.1.1 cc rejects this.  */
20413   char const *const *ccp;
20414   char **p;
20415   /* NEC SVR4.0.2 mips cc rejects this.  */
20416   struct point {int x, y;};
20417   static struct point const zero = {0,0};
20418   /* AIX XL C 1.02.0.0 rejects this.
20419      It does not let you subtract one const X* pointer from another in
20420      an arm of an if-expression whose if-part is not a constant
20421      expression */
20422   const char *g = "string";
20423   ccp = &g + (g ? g-g : 0);
20424   /* HPUX 7.0 cc rejects these. */
20425   ++ccp;
20426   p = (char**) ccp;
20427   ccp = (char const *const *) p;
20428   { /* SCO 3.2v4 cc rejects this.  */
20429     char *t;
20430     char const *s = 0 ? (char *) 0 : (char const *) 0;
20431
20432     *t++ = 0;
20433   }
20434   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20435     int x[] = {25, 17};
20436     const int *foo = &x[0];
20437     ++foo;
20438   }
20439   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20440     typedef const int *iptr;
20441     iptr p = 0;
20442     ++p;
20443   }
20444   { /* AIX XL C 1.02.0.0 rejects this saying
20445        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20446     struct s { int j; const int *ap[3]; };
20447     struct s *b; b->j = 5;
20448   }
20449   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20450     const int foo = 10;
20451   }
20452 #endif
20453
20454   ;
20455   return 0;
20456 }
20457 _ACEOF
20458 rm -f conftest.$ac_objext
20459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20460   (eval $ac_compile) 2>conftest.er1
20461   ac_status=$?
20462   grep -v '^ *+' conftest.er1 >conftest.err
20463   rm -f conftest.er1
20464   cat conftest.err >&5
20465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20466   (exit $ac_status); } &&
20467          { ac_try='test -z "$ac_c_werror_flag"
20468                          || test ! -s conftest.err'
20469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20470   (eval $ac_try) 2>&5
20471   ac_status=$?
20472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20473   (exit $ac_status); }; } &&
20474          { ac_try='test -s conftest.$ac_objext'
20475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20476   (eval $ac_try) 2>&5
20477   ac_status=$?
20478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20479   (exit $ac_status); }; }; then
20480   ac_cv_c_const=yes
20481 else
20482   echo "$as_me: failed program was:" >&5
20483 sed 's/^/| /' conftest.$ac_ext >&5
20484
20485 ac_cv_c_const=no
20486 fi
20487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20488 fi
20489 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20490 echo "${ECHO_T}$ac_cv_c_const" >&6
20491 if test $ac_cv_c_const = no; then
20492   
20493 cat >>confdefs.h <<\_ACEOF
20494 @%:@define const 
20495 _ACEOF
20496
20497 fi
20498
20499 echo "$as_me:$LINENO: checking for off_t" >&5
20500 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
20501 if test "${ac_cv_type_off_t+set}" = set; then
20502   echo $ECHO_N "(cached) $ECHO_C" >&6
20503 else
20504   cat >conftest.$ac_ext <<_ACEOF
20505 /* confdefs.h.  */
20506 _ACEOF
20507 cat confdefs.h >>conftest.$ac_ext
20508 cat >>conftest.$ac_ext <<_ACEOF
20509 /* end confdefs.h.  */
20510 $ac_includes_default
20511 int
20512 main ()
20513 {
20514 if ((off_t *) 0)
20515   return 0;
20516 if (sizeof (off_t))
20517   return 0;
20518   ;
20519   return 0;
20520 }
20521 _ACEOF
20522 rm -f conftest.$ac_objext
20523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20524   (eval $ac_compile) 2>conftest.er1
20525   ac_status=$?
20526   grep -v '^ *+' conftest.er1 >conftest.err
20527   rm -f conftest.er1
20528   cat conftest.err >&5
20529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20530   (exit $ac_status); } &&
20531          { ac_try='test -z "$ac_c_werror_flag"
20532                          || test ! -s conftest.err'
20533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20534   (eval $ac_try) 2>&5
20535   ac_status=$?
20536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20537   (exit $ac_status); }; } &&
20538          { ac_try='test -s conftest.$ac_objext'
20539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20540   (eval $ac_try) 2>&5
20541   ac_status=$?
20542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20543   (exit $ac_status); }; }; then
20544   ac_cv_type_off_t=yes
20545 else
20546   echo "$as_me: failed program was:" >&5
20547 sed 's/^/| /' conftest.$ac_ext >&5
20548
20549 ac_cv_type_off_t=no
20550 fi
20551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20552 fi
20553 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
20554 echo "${ECHO_T}$ac_cv_type_off_t" >&6
20555 if test $ac_cv_type_off_t = yes; then
20556   :
20557 else
20558   
20559 cat >>confdefs.h <<_ACEOF
20560 @%:@define off_t long
20561 _ACEOF
20562
20563 fi
20564
20565 echo "$as_me:$LINENO: checking for size_t" >&5
20566 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20567 if test "${ac_cv_type_size_t+set}" = set; then
20568   echo $ECHO_N "(cached) $ECHO_C" >&6
20569 else
20570   cat >conftest.$ac_ext <<_ACEOF
20571 /* confdefs.h.  */
20572 _ACEOF
20573 cat confdefs.h >>conftest.$ac_ext
20574 cat >>conftest.$ac_ext <<_ACEOF
20575 /* end confdefs.h.  */
20576 $ac_includes_default
20577 int
20578 main ()
20579 {
20580 if ((size_t *) 0)
20581   return 0;
20582 if (sizeof (size_t))
20583   return 0;
20584   ;
20585   return 0;
20586 }
20587 _ACEOF
20588 rm -f conftest.$ac_objext
20589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20590   (eval $ac_compile) 2>conftest.er1
20591   ac_status=$?
20592   grep -v '^ *+' conftest.er1 >conftest.err
20593   rm -f conftest.er1
20594   cat conftest.err >&5
20595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20596   (exit $ac_status); } &&
20597          { ac_try='test -z "$ac_c_werror_flag"
20598                          || test ! -s conftest.err'
20599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20600   (eval $ac_try) 2>&5
20601   ac_status=$?
20602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20603   (exit $ac_status); }; } &&
20604          { ac_try='test -s conftest.$ac_objext'
20605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20606   (eval $ac_try) 2>&5
20607   ac_status=$?
20608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20609   (exit $ac_status); }; }; then
20610   ac_cv_type_size_t=yes
20611 else
20612   echo "$as_me: failed program was:" >&5
20613 sed 's/^/| /' conftest.$ac_ext >&5
20614
20615 ac_cv_type_size_t=no
20616 fi
20617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20618 fi
20619 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20620 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20621 if test $ac_cv_type_size_t = yes; then
20622   :
20623 else
20624   
20625 cat >>confdefs.h <<_ACEOF
20626 @%:@define size_t unsigned
20627 _ACEOF
20628
20629 fi
20630
20631
20632 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
20633 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
20634 if test "${ac_cv_type_signal+set}" = set; then
20635   echo $ECHO_N "(cached) $ECHO_C" >&6
20636 else
20637   cat >conftest.$ac_ext <<_ACEOF
20638 /* confdefs.h.  */
20639 _ACEOF
20640 cat confdefs.h >>conftest.$ac_ext
20641 cat >>conftest.$ac_ext <<_ACEOF
20642 /* end confdefs.h.  */
20643 #include <sys/types.h>
20644 #include <signal.h>
20645 #ifdef signal
20646 # undef signal
20647 #endif
20648 #ifdef __cplusplus
20649 extern "C" void (*signal (int, void (*)(int)))(int);
20650 #else
20651 void (*signal ()) ();
20652 #endif
20653
20654 int
20655 main ()
20656 {
20657 int i;
20658   ;
20659   return 0;
20660 }
20661 _ACEOF
20662 rm -f conftest.$ac_objext
20663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20664   (eval $ac_compile) 2>conftest.er1
20665   ac_status=$?
20666   grep -v '^ *+' conftest.er1 >conftest.err
20667   rm -f conftest.er1
20668   cat conftest.err >&5
20669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20670   (exit $ac_status); } &&
20671          { ac_try='test -z "$ac_c_werror_flag"
20672                          || test ! -s conftest.err'
20673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20674   (eval $ac_try) 2>&5
20675   ac_status=$?
20676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20677   (exit $ac_status); }; } &&
20678          { ac_try='test -s conftest.$ac_objext'
20679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20680   (eval $ac_try) 2>&5
20681   ac_status=$?
20682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20683   (exit $ac_status); }; }; then
20684   ac_cv_type_signal=void
20685 else
20686   echo "$as_me: failed program was:" >&5
20687 sed 's/^/| /' conftest.$ac_ext >&5
20688
20689 ac_cv_type_signal=int
20690 fi
20691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20692 fi
20693 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
20694 echo "${ECHO_T}$ac_cv_type_signal" >&6
20695
20696 cat >>confdefs.h <<_ACEOF
20697 @%:@define RETSIGTYPE $ac_cv_type_signal
20698 _ACEOF
20699
20700
20701
20702 for ac_func in backtrace
20703 do
20704 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20705 echo "$as_me:$LINENO: checking for $ac_func" >&5
20706 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20707 if eval "test \"\${$as_ac_var+set}\" = set"; then
20708   echo $ECHO_N "(cached) $ECHO_C" >&6
20709 else
20710   cat >conftest.$ac_ext <<_ACEOF
20711 /* confdefs.h.  */
20712 _ACEOF
20713 cat confdefs.h >>conftest.$ac_ext
20714 cat >>conftest.$ac_ext <<_ACEOF
20715 /* end confdefs.h.  */
20716 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20717    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20718 #define $ac_func innocuous_$ac_func
20719
20720 /* System header to define __stub macros and hopefully few prototypes,
20721     which can conflict with char $ac_func (); below.
20722     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20723     <limits.h> exists even on freestanding compilers.  */
20724
20725 #ifdef __STDC__
20726 # include <limits.h>
20727 #else
20728 # include <assert.h>
20729 #endif
20730
20731 #undef $ac_func
20732
20733 /* Override any gcc2 internal prototype to avoid an error.  */
20734 #ifdef __cplusplus
20735 extern "C"
20736 {
20737 #endif
20738 /* We use char because int might match the return type of a gcc2
20739    builtin and then its argument prototype would still apply.  */
20740 char $ac_func ();
20741 /* The GNU C library defines this for functions which it implements
20742     to always fail with ENOSYS.  Some functions are actually named
20743     something starting with __ and the normal name is an alias.  */
20744 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20745 choke me
20746 #else
20747 char (*f) () = $ac_func;
20748 #endif
20749 #ifdef __cplusplus
20750 }
20751 #endif
20752
20753 int
20754 main ()
20755 {
20756 return f != $ac_func;
20757   ;
20758   return 0;
20759 }
20760 _ACEOF
20761 rm -f conftest.$ac_objext conftest$ac_exeext
20762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20763   (eval $ac_link) 2>conftest.er1
20764   ac_status=$?
20765   grep -v '^ *+' conftest.er1 >conftest.err
20766   rm -f conftest.er1
20767   cat conftest.err >&5
20768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20769   (exit $ac_status); } &&
20770          { ac_try='test -z "$ac_c_werror_flag"
20771                          || test ! -s conftest.err'
20772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20773   (eval $ac_try) 2>&5
20774   ac_status=$?
20775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20776   (exit $ac_status); }; } &&
20777          { ac_try='test -s conftest$ac_exeext'
20778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20779   (eval $ac_try) 2>&5
20780   ac_status=$?
20781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20782   (exit $ac_status); }; }; then
20783   eval "$as_ac_var=yes"
20784 else
20785   echo "$as_me: failed program was:" >&5
20786 sed 's/^/| /' conftest.$ac_ext >&5
20787
20788 eval "$as_ac_var=no"
20789 fi
20790 rm -f conftest.err conftest.$ac_objext \
20791       conftest$ac_exeext conftest.$ac_ext
20792 fi
20793 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20794 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20795 if test `eval echo '${'$as_ac_var'}'` = yes; then
20796   cat >>confdefs.h <<_ACEOF
20797 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20798 _ACEOF
20799  
20800 fi
20801 done
20802
20803
20804 for ac_func in snprintf
20805 do
20806 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20807 echo "$as_me:$LINENO: checking for $ac_func" >&5
20808 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20809 if eval "test \"\${$as_ac_var+set}\" = set"; then
20810   echo $ECHO_N "(cached) $ECHO_C" >&6
20811 else
20812   cat >conftest.$ac_ext <<_ACEOF
20813 /* confdefs.h.  */
20814 _ACEOF
20815 cat confdefs.h >>conftest.$ac_ext
20816 cat >>conftest.$ac_ext <<_ACEOF
20817 /* end confdefs.h.  */
20818 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20819    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20820 #define $ac_func innocuous_$ac_func
20821
20822 /* System header to define __stub macros and hopefully few prototypes,
20823     which can conflict with char $ac_func (); below.
20824     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20825     <limits.h> exists even on freestanding compilers.  */
20826
20827 #ifdef __STDC__
20828 # include <limits.h>
20829 #else
20830 # include <assert.h>
20831 #endif
20832
20833 #undef $ac_func
20834
20835 /* Override any gcc2 internal prototype to avoid an error.  */
20836 #ifdef __cplusplus
20837 extern "C"
20838 {
20839 #endif
20840 /* We use char because int might match the return type of a gcc2
20841    builtin and then its argument prototype would still apply.  */
20842 char $ac_func ();
20843 /* The GNU C library defines this for functions which it implements
20844     to always fail with ENOSYS.  Some functions are actually named
20845     something starting with __ and the normal name is an alias.  */
20846 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20847 choke me
20848 #else
20849 char (*f) () = $ac_func;
20850 #endif
20851 #ifdef __cplusplus
20852 }
20853 #endif
20854
20855 int
20856 main ()
20857 {
20858 return f != $ac_func;
20859   ;
20860   return 0;
20861 }
20862 _ACEOF
20863 rm -f conftest.$ac_objext conftest$ac_exeext
20864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20865   (eval $ac_link) 2>conftest.er1
20866   ac_status=$?
20867   grep -v '^ *+' conftest.er1 >conftest.err
20868   rm -f conftest.er1
20869   cat conftest.err >&5
20870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20871   (exit $ac_status); } &&
20872          { ac_try='test -z "$ac_c_werror_flag"
20873                          || test ! -s conftest.err'
20874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20875   (eval $ac_try) 2>&5
20876   ac_status=$?
20877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20878   (exit $ac_status); }; } &&
20879          { ac_try='test -s conftest$ac_exeext'
20880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20881   (eval $ac_try) 2>&5
20882   ac_status=$?
20883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20884   (exit $ac_status); }; }; then
20885   eval "$as_ac_var=yes"
20886 else
20887   echo "$as_me: failed program was:" >&5
20888 sed 's/^/| /' conftest.$ac_ext >&5
20889
20890 eval "$as_ac_var=no"
20891 fi
20892 rm -f conftest.err conftest.$ac_objext \
20893       conftest$ac_exeext conftest.$ac_ext
20894 fi
20895 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20896 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20897 if test `eval echo '${'$as_ac_var'}'` = yes; then
20898   cat >>confdefs.h <<_ACEOF
20899 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20900 _ACEOF
20901  
20902 else
20903   case $LIB@&t@OBJS in
20904     "$ac_func.$ac_objext"   | \
20905   *" $ac_func.$ac_objext"   | \
20906     "$ac_func.$ac_objext "* | \
20907   *" $ac_func.$ac_objext "* ) ;;
20908   *) LIB@&t@OBJS="$LIB@&t@OBJS $ac_func.$ac_objext" ;;
20909 esac
20910
20911 fi
20912 done
20913
20914
20915
20916
20917 cat >>confdefs.h <<\_ACEOF
20918 @%:@define HAVE_LIBICAL 1
20919 _ACEOF
20920
20921
20922 if test "x$with_libical" != xno ; then
20923                   
20924 for ac_header in ical.h
20925 do
20926 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20927 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20928   echo "$as_me:$LINENO: checking for $ac_header" >&5
20929 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20930 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20931   echo $ECHO_N "(cached) $ECHO_C" >&6
20932 fi
20933 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20934 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20935 else
20936   # Is the header compilable?
20937 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20938 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20939 cat >conftest.$ac_ext <<_ACEOF
20940 /* confdefs.h.  */
20941 _ACEOF
20942 cat confdefs.h >>conftest.$ac_ext
20943 cat >>conftest.$ac_ext <<_ACEOF
20944 /* end confdefs.h.  */
20945 $ac_includes_default
20946 @%:@include <$ac_header>
20947 _ACEOF
20948 rm -f conftest.$ac_objext
20949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20950   (eval $ac_compile) 2>conftest.er1
20951   ac_status=$?
20952   grep -v '^ *+' conftest.er1 >conftest.err
20953   rm -f conftest.er1
20954   cat conftest.err >&5
20955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20956   (exit $ac_status); } &&
20957          { ac_try='test -z "$ac_c_werror_flag"
20958                          || test ! -s conftest.err'
20959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20960   (eval $ac_try) 2>&5
20961   ac_status=$?
20962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20963   (exit $ac_status); }; } &&
20964          { ac_try='test -s conftest.$ac_objext'
20965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20966   (eval $ac_try) 2>&5
20967   ac_status=$?
20968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20969   (exit $ac_status); }; }; then
20970   ac_header_compiler=yes
20971 else
20972   echo "$as_me: failed program was:" >&5
20973 sed 's/^/| /' conftest.$ac_ext >&5
20974
20975 ac_header_compiler=no
20976 fi
20977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20978 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20979 echo "${ECHO_T}$ac_header_compiler" >&6
20980
20981 # Is the header present?
20982 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20983 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20984 cat >conftest.$ac_ext <<_ACEOF
20985 /* confdefs.h.  */
20986 _ACEOF
20987 cat confdefs.h >>conftest.$ac_ext
20988 cat >>conftest.$ac_ext <<_ACEOF
20989 /* end confdefs.h.  */
20990 @%:@include <$ac_header>
20991 _ACEOF
20992 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20993   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20994   ac_status=$?
20995   grep -v '^ *+' conftest.er1 >conftest.err
20996   rm -f conftest.er1
20997   cat conftest.err >&5
20998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20999   (exit $ac_status); } >/dev/null; then
21000   if test -s conftest.err; then
21001     ac_cpp_err=$ac_c_preproc_warn_flag
21002     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21003   else
21004     ac_cpp_err=
21005   fi
21006 else
21007   ac_cpp_err=yes
21008 fi
21009 if test -z "$ac_cpp_err"; then
21010   ac_header_preproc=yes
21011 else
21012   echo "$as_me: failed program was:" >&5
21013 sed 's/^/| /' conftest.$ac_ext >&5
21014
21015   ac_header_preproc=no
21016 fi
21017 rm -f conftest.err conftest.$ac_ext
21018 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21019 echo "${ECHO_T}$ac_header_preproc" >&6
21020
21021 # So?  What about this header?
21022 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21023   yes:no: )
21024     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21025 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21026     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21027 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21028     ac_header_preproc=yes
21029     ;;
21030   no:yes:* )
21031     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21032 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21033     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21034 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21035     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21036 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21037     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21038 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21039     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21040 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21041     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21042 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21043     (
21044       cat <<\_ASBOX
21045 @%:@@%:@ ------------------------------------- @%:@@%:@
21046 @%:@@%:@ Report this to uncensored.citadel.org @%:@@%:@
21047 @%:@@%:@ ------------------------------------- @%:@@%:@
21048 _ASBOX
21049     ) |
21050       sed "s/^/$as_me: WARNING:     /" >&2
21051     ;;
21052 esac
21053 echo "$as_me:$LINENO: checking for $ac_header" >&5
21054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21055 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21056   echo $ECHO_N "(cached) $ECHO_C" >&6
21057 else
21058   eval "$as_ac_Header=\$ac_header_preproc"
21059 fi
21060 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21061 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21062
21063 fi
21064 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21065   cat >>confdefs.h <<_ACEOF
21066 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21067 _ACEOF
21068  echo "$as_me:$LINENO: checking for icalcomponent_new in -lical" >&5
21069 echo $ECHO_N "checking for icalcomponent_new in -lical... $ECHO_C" >&6
21070 if test "${ac_cv_lib_ical_icalcomponent_new+set}" = set; then
21071   echo $ECHO_N "(cached) $ECHO_C" >&6
21072 else
21073   ac_check_lib_save_LIBS=$LIBS
21074 LIBS="-lical  $LIBS"
21075 cat >conftest.$ac_ext <<_ACEOF
21076 /* confdefs.h.  */
21077 _ACEOF
21078 cat confdefs.h >>conftest.$ac_ext
21079 cat >>conftest.$ac_ext <<_ACEOF
21080 /* end confdefs.h.  */
21081
21082 /* Override any gcc2 internal prototype to avoid an error.  */
21083 #ifdef __cplusplus
21084 extern "C"
21085 #endif
21086 /* We use char because int might match the return type of a gcc2
21087    builtin and then its argument prototype would still apply.  */
21088 char icalcomponent_new ();
21089 int
21090 main ()
21091 {
21092 icalcomponent_new ();
21093   ;
21094   return 0;
21095 }
21096 _ACEOF
21097 rm -f conftest.$ac_objext conftest$ac_exeext
21098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21099   (eval $ac_link) 2>conftest.er1
21100   ac_status=$?
21101   grep -v '^ *+' conftest.er1 >conftest.err
21102   rm -f conftest.er1
21103   cat conftest.err >&5
21104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21105   (exit $ac_status); } &&
21106          { ac_try='test -z "$ac_c_werror_flag"
21107                          || test ! -s conftest.err'
21108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21109   (eval $ac_try) 2>&5
21110   ac_status=$?
21111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21112   (exit $ac_status); }; } &&
21113          { ac_try='test -s conftest$ac_exeext'
21114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21115   (eval $ac_try) 2>&5
21116   ac_status=$?
21117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21118   (exit $ac_status); }; }; then
21119   ac_cv_lib_ical_icalcomponent_new=yes
21120 else
21121   echo "$as_me: failed program was:" >&5
21122 sed 's/^/| /' conftest.$ac_ext >&5
21123
21124 ac_cv_lib_ical_icalcomponent_new=no
21125 fi
21126 rm -f conftest.err conftest.$ac_objext \
21127       conftest$ac_exeext conftest.$ac_ext
21128 LIBS=$ac_check_lib_save_LIBS
21129 fi
21130 echo "$as_me:$LINENO: result: $ac_cv_lib_ical_icalcomponent_new" >&5
21131 echo "${ECHO_T}$ac_cv_lib_ical_icalcomponent_new" >&6
21132 if test $ac_cv_lib_ical_icalcomponent_new = yes; then
21133   ok_libical=yes
21134 fi
21135
21136 fi
21137
21138 done
21139
21140 fi
21141
21142 if test "x$ok_libical" = xyes ; then
21143
21144         if test "$cross_compiling" = yes; then
21145   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21146 See \`config.log' for more details." >&5
21147 echo "$as_me: error: cannot run test program while cross compiling
21148 See \`config.log' for more details." >&2;}
21149    { (exit 1); exit 1; }; }
21150 else
21151   cat >conftest.$ac_ext <<_ACEOF
21152 /* confdefs.h.  */
21153 _ACEOF
21154 cat confdefs.h >>conftest.$ac_ext
21155 cat >>conftest.$ac_ext <<_ACEOF
21156 /* end confdefs.h.  */
21157
21158 #include <ical.h>
21159 main() {
21160         int major, minor, v;
21161         sscanf(ICAL_VERSION, "%d.%d", &major, &minor);
21162         v = 100*major + minor;
21163         printf("libical version: %i\n", v);
21164         if (v >= 24) {
21165                 printf("This version is ok.\n");
21166                 return(0);
21167         }
21168         printf("libical 0.24 or newer required.\n");
21169         printf("Citadel will be built without calendar support.\n");
21170         return(1);
21171 }
21172                 
21173 _ACEOF
21174 rm -f conftest$ac_exeext
21175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21176   (eval $ac_link) 2>&5
21177   ac_status=$?
21178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21179   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21181   (eval $ac_try) 2>&5
21182   ac_status=$?
21183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21184   (exit $ac_status); }; }; then
21185   
21186                         LIBS="-lical $LIBS"
21187                         cat >>confdefs.h <<\_ACEOF
21188 @%:@define HAVE_LIBICAL 1
21189 _ACEOF
21190
21191                 
21192         
21193 else
21194   echo "$as_me: program exited with status $ac_status" >&5
21195 echo "$as_me: failed program was:" >&5
21196 sed 's/^/| /' conftest.$ac_ext >&5
21197
21198 fi
21199 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21200 fi
21201 fi
21202
21203
21204
21205
21206 cat >>confdefs.h <<\_ACEOF
21207 @%:@define with_zlib 1
21208 _ACEOF
21209
21210
21211 if test "x$ok_zlib" = xyes ; then
21212         LIBS="-lz $LIBS"
21213 fi
21214
21215
21216 # Check whether --with-ok_newt or --without-ok_newt was given.
21217 if test "${with_ok_newt+set}" = set; then
21218   withval="$with_ok_newt"
21219   ok_newt=no
21220 else
21221    
21222 for ac_header in newt.h
21223 do
21224 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21225 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21226   echo "$as_me:$LINENO: checking for $ac_header" >&5
21227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21228 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21229   echo $ECHO_N "(cached) $ECHO_C" >&6
21230 fi
21231 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21232 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21233 else
21234   # Is the header compilable?
21235 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21236 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21237 cat >conftest.$ac_ext <<_ACEOF
21238 /* confdefs.h.  */
21239 _ACEOF
21240 cat confdefs.h >>conftest.$ac_ext
21241 cat >>conftest.$ac_ext <<_ACEOF
21242 /* end confdefs.h.  */
21243 $ac_includes_default
21244 @%:@include <$ac_header>
21245 _ACEOF
21246 rm -f conftest.$ac_objext
21247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21248   (eval $ac_compile) 2>conftest.er1
21249   ac_status=$?
21250   grep -v '^ *+' conftest.er1 >conftest.err
21251   rm -f conftest.er1
21252   cat conftest.err >&5
21253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21254   (exit $ac_status); } &&
21255          { ac_try='test -z "$ac_c_werror_flag"
21256                          || test ! -s conftest.err'
21257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21258   (eval $ac_try) 2>&5
21259   ac_status=$?
21260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21261   (exit $ac_status); }; } &&
21262          { ac_try='test -s conftest.$ac_objext'
21263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21264   (eval $ac_try) 2>&5
21265   ac_status=$?
21266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21267   (exit $ac_status); }; }; then
21268   ac_header_compiler=yes
21269 else
21270   echo "$as_me: failed program was:" >&5
21271 sed 's/^/| /' conftest.$ac_ext >&5
21272
21273 ac_header_compiler=no
21274 fi
21275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21276 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21277 echo "${ECHO_T}$ac_header_compiler" >&6
21278
21279 # Is the header present?
21280 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21281 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21282 cat >conftest.$ac_ext <<_ACEOF
21283 /* confdefs.h.  */
21284 _ACEOF
21285 cat confdefs.h >>conftest.$ac_ext
21286 cat >>conftest.$ac_ext <<_ACEOF
21287 /* end confdefs.h.  */
21288 @%:@include <$ac_header>
21289 _ACEOF
21290 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21291   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21292   ac_status=$?
21293   grep -v '^ *+' conftest.er1 >conftest.err
21294   rm -f conftest.er1
21295   cat conftest.err >&5
21296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21297   (exit $ac_status); } >/dev/null; then
21298   if test -s conftest.err; then
21299     ac_cpp_err=$ac_c_preproc_warn_flag
21300     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21301   else
21302     ac_cpp_err=
21303   fi
21304 else
21305   ac_cpp_err=yes
21306 fi
21307 if test -z "$ac_cpp_err"; then
21308   ac_header_preproc=yes
21309 else
21310   echo "$as_me: failed program was:" >&5
21311 sed 's/^/| /' conftest.$ac_ext >&5
21312
21313   ac_header_preproc=no
21314 fi
21315 rm -f conftest.err conftest.$ac_ext
21316 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21317 echo "${ECHO_T}$ac_header_preproc" >&6
21318
21319 # So?  What about this header?
21320 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21321   yes:no: )
21322     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21323 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21324     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21325 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21326     ac_header_preproc=yes
21327     ;;
21328   no:yes:* )
21329     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21330 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21331     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21332 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21333     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21334 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21335     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21336 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21337     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21338 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21339     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21340 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21341     (
21342       cat <<\_ASBOX
21343 @%:@@%:@ ------------------------------------- @%:@@%:@
21344 @%:@@%:@ Report this to uncensored.citadel.org @%:@@%:@
21345 @%:@@%:@ ------------------------------------- @%:@@%:@
21346 _ASBOX
21347     ) |
21348       sed "s/^/$as_me: WARNING:     /" >&2
21349     ;;
21350 esac
21351 echo "$as_me:$LINENO: checking for $ac_header" >&5
21352 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21353 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21354   echo $ECHO_N "(cached) $ECHO_C" >&6
21355 else
21356   eval "$as_ac_Header=\$ac_header_preproc"
21357 fi
21358 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21359 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21360
21361 fi
21362 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21363   cat >>confdefs.h <<_ACEOF
21364 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21365 _ACEOF
21366  echo "$as_me:$LINENO: checking for newtInit in -lnewt" >&5
21367 echo $ECHO_N "checking for newtInit in -lnewt... $ECHO_C" >&6
21368 if test "${ac_cv_lib_newt_newtInit+set}" = set; then
21369   echo $ECHO_N "(cached) $ECHO_C" >&6
21370 else
21371   ac_check_lib_save_LIBS=$LIBS
21372 LIBS="-lnewt  $LIBS"
21373 cat >conftest.$ac_ext <<_ACEOF
21374 /* confdefs.h.  */
21375 _ACEOF
21376 cat confdefs.h >>conftest.$ac_ext
21377 cat >>conftest.$ac_ext <<_ACEOF
21378 /* end confdefs.h.  */
21379
21380 /* Override any gcc2 internal prototype to avoid an error.  */
21381 #ifdef __cplusplus
21382 extern "C"
21383 #endif
21384 /* We use char because int might match the return type of a gcc2
21385    builtin and then its argument prototype would still apply.  */
21386 char newtInit ();
21387 int
21388 main ()
21389 {
21390 newtInit ();
21391   ;
21392   return 0;
21393 }
21394 _ACEOF
21395 rm -f conftest.$ac_objext conftest$ac_exeext
21396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21397   (eval $ac_link) 2>conftest.er1
21398   ac_status=$?
21399   grep -v '^ *+' conftest.er1 >conftest.err
21400   rm -f conftest.er1
21401   cat conftest.err >&5
21402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21403   (exit $ac_status); } &&
21404          { ac_try='test -z "$ac_c_werror_flag"
21405                          || test ! -s conftest.err'
21406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21407   (eval $ac_try) 2>&5
21408   ac_status=$?
21409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21410   (exit $ac_status); }; } &&
21411          { ac_try='test -s conftest$ac_exeext'
21412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21413   (eval $ac_try) 2>&5
21414   ac_status=$?
21415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21416   (exit $ac_status); }; }; then
21417   ac_cv_lib_newt_newtInit=yes
21418 else
21419   echo "$as_me: failed program was:" >&5
21420 sed 's/^/| /' conftest.$ac_ext >&5
21421
21422 ac_cv_lib_newt_newtInit=no
21423 fi
21424 rm -f conftest.err conftest.$ac_objext \
21425       conftest$ac_exeext conftest.$ac_ext
21426 LIBS=$ac_check_lib_save_LIBS
21427 fi
21428 echo "$as_me:$LINENO: result: $ac_cv_lib_newt_newtInit" >&5
21429 echo "${ECHO_T}$ac_cv_lib_newt_newtInit" >&6
21430 if test $ac_cv_lib_newt_newtInit = yes; then
21431   ok_newt=yes
21432 else
21433   ok_newt=no
21434 fi
21435
21436                                                         
21437 fi
21438
21439 done
21440
21441                                   
21442
21443 fi; 
21444 if test "x$ok_newt" = xyes ; then
21445         SETUP_LIBS="-lnewt $SETUP_LIBS"
21446 fi
21447
21448 # The big search for OpenSSL
21449 if test "$with_ssl" != "no"; then
21450         saved_LIBS="$LIBS"
21451         saved_LDFLAGS="$LDFLAGS"
21452         saved_CFLAGS="$CFLAGS"
21453         if test "x$prefix" != "xNONE"; then
21454                 tryssldir="$tryssldir $prefix"
21455         fi
21456         echo "$as_me:$LINENO: checking for OpenSSL" >&5
21457 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
21458 if test "${ac_cv_openssldir+set}" = set; then
21459   echo $ECHO_N "(cached) $ECHO_C" >&6
21460 else
21461   
21462                 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
21463                         CFLAGS="$saved_CFLAGS"
21464                         LDFLAGS="$saved_LDFLAGS"
21465                         LIBS="$saved_LIBS -lssl -lcrypto"
21466         
21467                         # Skip directories if they don't exist
21468                         if test ! -z "$ssldir" -a ! -d "$ssldir" ; then
21469                                 continue;
21470                         fi
21471                         if test ! -z "$ssldir" -a "x$ssldir" != "x/usr"; then
21472                                 # Try to use $ssldir/lib if it exists, otherwise
21473                                 # $ssldir
21474                                 if test -d "$ssldir/lib" ; then
21475                                         LDFLAGS="-L$ssldir/lib $saved_LDFLAGS"
21476                                         if test ! -z "$need_dash_r" ; then
21477                                                 LDFLAGS="-R$ssldir/lib $LDFLAGS"
21478                                         fi
21479                                 else
21480                                         LDFLAGS="-L$ssldir $saved_LDFLAGS"
21481                                         if test ! -z "$need_dash_r" ; then
21482                                                 LDFLAGS="-R$ssldir $LDFLAGS"
21483                                         fi
21484                                 fi
21485                                 # Try to use $ssldir/include if it exists, otherwise
21486                                 # $ssldir
21487                                 if test -d "$ssldir/include" ; then
21488                                         CFLAGS="-I$ssldir/include $saved_CFLAGS"
21489                                 else
21490                                         CFLAGS="-I$ssldir $saved_CFLAGS"
21491                                 fi
21492                         fi
21493         
21494                         # Basic test to check for compatible version and correct linking
21495                         # *does not* test for RSA - that comes later.
21496                         if test "$cross_compiling" = yes; then
21497   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21498 See \`config.log' for more details." >&5
21499 echo "$as_me: error: cannot run test program while cross compiling
21500 See \`config.log' for more details." >&2;}
21501    { (exit 1); exit 1; }; }
21502 else
21503   cat >conftest.$ac_ext <<_ACEOF
21504 /* confdefs.h.  */
21505 _ACEOF
21506 cat confdefs.h >>conftest.$ac_ext
21507 cat >>conftest.$ac_ext <<_ACEOF
21508 /* end confdefs.h.  */
21509
21510         #include <string.h>
21511         #include <openssl/rand.h>
21512         int main(void)
21513         {
21514                 char a[2048];
21515                 memset(a, 0, sizeof(a));
21516                 RAND_add(a, sizeof(a), sizeof(a));
21517                 return(RAND_status() <= 0);
21518         }
21519                                 
21520 _ACEOF
21521 rm -f conftest$ac_exeext
21522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21523   (eval $ac_link) 2>&5
21524   ac_status=$?
21525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21526   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21528   (eval $ac_try) 2>&5
21529   ac_status=$?
21530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21531   (exit $ac_status); }; }; then
21532   
21533                                         found_crypto=1
21534                                         break;
21535                                 
21536 else
21537   echo "$as_me: program exited with status $ac_status" >&5
21538 echo "$as_me: failed program was:" >&5
21539 sed 's/^/| /' conftest.$ac_ext >&5
21540
21541 ( exit $ac_status )
21542
21543                         
21544 fi
21545 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21546 fi
21547         
21548                         if test ! -z "$found_crypto" ; then
21549                                 break;
21550                         fi
21551                 done
21552         
21553                 if test -z "$ssldir" ; then
21554                         ssldir="(system)"
21555                 fi
21556         
21557                 if test ! -z "$found_crypto" ; then
21558                         ac_cv_openssldir=$ssldir
21559                 else
21560                         ac_cv_openssldir="no"
21561                 fi
21562         
21563 fi
21564 echo "$as_me:$LINENO: result: $ac_cv_openssldir" >&5
21565 echo "${ECHO_T}$ac_cv_openssldir" >&6
21566         LIBS="$saved_LIBS"
21567         LDFLAGS="$saved_LDFLAGS"
21568         CFLAGS="$saved_CFLAGS"
21569         
21570         if test "x$ac_cv_openssldir" != "xno" ; then
21571                 cat >>confdefs.h <<\_ACEOF
21572 @%:@define HAVE_OPENSSL 1
21573 _ACEOF
21574
21575                 LIBS="-lssl -lcrypto $LIBS"
21576                                 ssldir=$ac_cv_openssldir
21577                 if test ! -z "$ssldir" -a "x$ssldir" != "x/usr" -a "x$ssldir" != "x(system)"; then
21578                         # Try to use $ssldir/lib if it exists, otherwise
21579                         # $ssldir
21580                         if test -d "$ssldir/lib" ; then
21581                                 LDFLAGS="-L$ssldir/lib $saved_LDFLAGS"
21582                                 if test ! -z "$need_dash_r" ; then
21583                                         LDFLAGS="-R$ssldir/lib $LDFLAGS"
21584                                 fi
21585                         else
21586                                 LDFLAGS="-L$ssldir $saved_LDFLAGS"
21587                                 if test ! -z "$need_dash_r" ; then
21588                                         LDFLAGS="-R$ssldir $LDFLAGS"
21589                                 fi
21590                         fi
21591                         # Try to use $ssldir/include if it exists, otherwise
21592                         # $ssldir
21593                         if test -d "$ssldir/include" ; then
21594                                 CFLAGS="-I$ssldir/include $saved_CFLAGS"
21595                         else
21596                                 CFLAGS="-I$ssldir $saved_CFLAGS"
21597                         fi
21598                 fi
21599         fi
21600 fi
21601
21602
21603
21604 cat >>confdefs.h <<\_ACEOF
21605 @%:@define HAVE_ICONV 1
21606 _ACEOF
21607
21608
21609 if test "$ok_nls" != "no"; then
21610         echo "$as_me:$LINENO: result: Checking to see if your system supports iconv..." >&5
21611 echo "${ECHO_T}Checking to see if your system supports iconv..." >&6
21612         if test "$cross_compiling" = yes; then
21613   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21614 See \`config.log' for more details." >&5
21615 echo "$as_me: error: cannot run test program while cross compiling
21616 See \`config.log' for more details." >&2;}
21617    { (exit 1); exit 1; }; }
21618 else
21619   cat >conftest.$ac_ext <<_ACEOF
21620 /* confdefs.h.  */
21621 _ACEOF
21622 cat confdefs.h >>conftest.$ac_ext
21623 cat >>conftest.$ac_ext <<_ACEOF
21624 /* end confdefs.h.  */
21625
21626                 #include <iconv.h>
21627                 main() {
21628                         iconv_t ic = (iconv_t)(-1) ;
21629                         ic = iconv_open("UTF-8", "us-ascii");
21630                         iconv_close(ic);
21631                         exit(0);
21632                 }
21633         
21634 _ACEOF
21635 rm -f conftest$ac_exeext
21636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21637   (eval $ac_link) 2>&5
21638   ac_status=$?
21639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21640   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21642   (eval $ac_try) 2>&5
21643   ac_status=$?
21644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21645   (exit $ac_status); }; }; then
21646   ok_iconv=yes
21647 else
21648   echo "$as_me: program exited with status $ac_status" >&5
21649 echo "$as_me: failed program was:" >&5
21650 sed 's/^/| /' conftest.$ac_ext >&5
21651
21652 ( exit $ac_status )
21653 ok_iconv=no
21654         
21655 fi
21656 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21657 fi
21658 fi
21659
21660 if test "$ok_iconv" != "no"; then
21661         echo "$as_me:$LINENO: result: WebCit will be built with character set conversion." >&5
21662 echo "${ECHO_T}WebCit will be built with character set conversion." >&6
21663         cat >>confdefs.h <<\_ACEOF
21664 @%:@define HAVE_ICONV 1
21665 _ACEOF
21666
21667 else
21668         echo "$as_me:$LINENO: result: WebCit will be built without character set conversion." >&5
21669 echo "${ECHO_T}WebCit will be built without character set conversion." >&6
21670 fi
21671
21672
21673 cat >>confdefs.h <<_ACEOF
21674 @%:@define PREFIX "$prefix"
21675 _ACEOF
21676
21677
21678
21679
21680 #AM_GNU_GETTEXT
21681 # if we have intl/... 
21682
21683
21684 if test -n ""; then
21685     echo "$as_me:$LINENO: checking for intltool >= " >&5
21686 echo $ECHO_N "checking for intltool >= ... $ECHO_C" >&6
21687
21688     INTLTOOL_REQUIRED_VERSION_AS_INT=`echo  | awk -F. '{ printf "%d", $1 * 100 + $2; }'`
21689     INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { printf $2; }'  < ${ac_aux_dir}/intltool-update.in`
21690     
21691     INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split($2, VERSION, "."); printf "%d\n", VERSION[1] * 100 + VERSION[2];}' < ${ac_aux_dir}/intltool-update.in`
21692     
21693
21694     if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT"; then
21695         echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5
21696 echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found" >&6
21697     else
21698         echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found. Your intltool is too old.  You need intltool  or later." >&5
21699 echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found. Your intltool is too old.  You need intltool  or later." >&6
21700         exit 1
21701     fi
21702 fi
21703
21704   INTLTOOL_DESKTOP_RULE='%.desktop:   %.desktop.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 
21705 INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 
21706      INTLTOOL_KEYS_RULE='%.keys:      %.keys.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 
21707      INTLTOOL_PROP_RULE='%.prop:      %.prop.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 
21708       INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< $@'
21709      INTLTOOL_PONG_RULE='%.pong:      %.pong.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 
21710    INTLTOOL_SERVER_RULE='%.server:    %.server.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 
21711     INTLTOOL_SHEET_RULE='%.sheet:     %.sheet.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 
21712 INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 
21713        INTLTOOL_UI_RULE='%.ui:        %.ui.in        $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 
21714       INTLTOOL_XML_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 
21715       INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< $@' 
21716       INTLTOOL_XAM_RULE='%.xam:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 
21717       INTLTOOL_KBD_RULE='%.kbd:       %.kbd.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 
21718     INTLTOOL_CAVES_RULE='%.caves:     %.caves.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 
21719   INTLTOOL_SCHEMAS_RULE='%.schemas:   %.schemas.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 
21720     INTLTOOL_THEME_RULE='%.theme:     %.theme.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 
21721
21722
21723
21724
21725
21726
21727
21728
21729
21730
21731
21732
21733
21734
21735
21736
21737
21738
21739
21740 # Use the tools built into the package, not the ones that are installed.
21741
21742 INTLTOOL_EXTRACT='$(top_builddir)/intltool-extract'
21743 INTLTOOL_MERGE='$(top_builddir)/intltool-merge'
21744 INTLTOOL_UPDATE='$(top_builddir)/intltool-update'
21745
21746
21747
21748
21749
21750 # Extract the first word of "perl", so it can be a program name with args.
21751 set dummy perl; ac_word=$2
21752 echo "$as_me:$LINENO: checking for $ac_word" >&5
21753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21754 if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then
21755   echo $ECHO_N "(cached) $ECHO_C" >&6
21756 else
21757   case $INTLTOOL_PERL in
21758   [\\/]* | ?:[\\/]*)
21759   ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
21760   ;;
21761   *)
21762   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21763 for as_dir in $PATH
21764 do
21765   IFS=$as_save_IFS
21766   test -z "$as_dir" && as_dir=.
21767   for ac_exec_ext in '' $ac_executable_extensions; do
21768   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21769     ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
21770     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21771     break 2
21772   fi
21773 done
21774 done
21775
21776   ;;
21777 esac
21778 fi
21779 INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
21780
21781 if test -n "$INTLTOOL_PERL"; then
21782   echo "$as_me:$LINENO: result: $INTLTOOL_PERL" >&5
21783 echo "${ECHO_T}$INTLTOOL_PERL" >&6
21784 else
21785   echo "$as_me:$LINENO: result: no" >&5
21786 echo "${ECHO_T}no" >&6
21787 fi
21788
21789 if test -z "$INTLTOOL_PERL"; then
21790    { { echo "$as_me:$LINENO: error: perl not found; required for intltool" >&5
21791 echo "$as_me: error: perl not found; required for intltool" >&2;}
21792    { (exit 1); exit 1; }; }
21793 fi
21794 if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
21795    { { echo "$as_me:$LINENO: error: perl 5.x required for intltool" >&5
21796 echo "$as_me: error: perl 5.x required for intltool" >&2;}
21797    { (exit 1); exit 1; }; }
21798 fi
21799 if test "x" != "xno-xml"; then
21800    echo "$as_me:$LINENO: checking for XML::Parser" >&5
21801 echo $ECHO_N "checking for XML::Parser... $ECHO_C" >&6
21802    if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
21803        echo "$as_me:$LINENO: result: ok" >&5
21804 echo "${ECHO_T}ok" >&6
21805    else
21806        { { echo "$as_me:$LINENO: error: XML::Parser perl module is required for intltool" >&5
21807 echo "$as_me: error: XML::Parser perl module is required for intltool" >&2;}
21808    { (exit 1); exit 1; }; }
21809    fi
21810 fi
21811
21812 # Extract the first word of "iconv", so it can be a program name with args.
21813 set dummy iconv; ac_word=$2
21814 echo "$as_me:$LINENO: checking for $ac_word" >&5
21815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21816 if test "${ac_cv_path_INTLTOOL_ICONV+set}" = set; then
21817   echo $ECHO_N "(cached) $ECHO_C" >&6
21818 else
21819   case $INTLTOOL_ICONV in
21820   [\\/]* | ?:[\\/]*)
21821   ac_cv_path_INTLTOOL_ICONV="$INTLTOOL_ICONV" # Let the user override the test with a path.
21822   ;;
21823   *)
21824   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21825 for as_dir in $PATH
21826 do
21827   IFS=$as_save_IFS
21828   test -z "$as_dir" && as_dir=.
21829   for ac_exec_ext in '' $ac_executable_extensions; do
21830   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21831     ac_cv_path_INTLTOOL_ICONV="$as_dir/$ac_word$ac_exec_ext"
21832     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21833     break 2
21834   fi
21835 done
21836 done
21837
21838   test -z "$ac_cv_path_INTLTOOL_ICONV" && ac_cv_path_INTLTOOL_ICONV="iconv"
21839   ;;
21840 esac
21841 fi
21842 INTLTOOL_ICONV=$ac_cv_path_INTLTOOL_ICONV
21843
21844 if test -n "$INTLTOOL_ICONV"; then
21845   echo "$as_me:$LINENO: result: $INTLTOOL_ICONV" >&5
21846 echo "${ECHO_T}$INTLTOOL_ICONV" >&6
21847 else
21848   echo "$as_me:$LINENO: result: no" >&5
21849 echo "${ECHO_T}no" >&6
21850 fi
21851
21852 # Extract the first word of "msgfmt", so it can be a program name with args.
21853 set dummy msgfmt; ac_word=$2
21854 echo "$as_me:$LINENO: checking for $ac_word" >&5
21855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21856 if test "${ac_cv_path_INTLTOOL_MSGFMT+set}" = set; then
21857   echo $ECHO_N "(cached) $ECHO_C" >&6
21858 else
21859   case $INTLTOOL_MSGFMT in
21860   [\\/]* | ?:[\\/]*)
21861   ac_cv_path_INTLTOOL_MSGFMT="$INTLTOOL_MSGFMT" # Let the user override the test with a path.
21862   ;;
21863   *)
21864   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21865 for as_dir in $PATH
21866 do
21867   IFS=$as_save_IFS
21868   test -z "$as_dir" && as_dir=.
21869   for ac_exec_ext in '' $ac_executable_extensions; do
21870   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21871     ac_cv_path_INTLTOOL_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
21872     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21873     break 2
21874   fi
21875 done
21876 done
21877
21878   test -z "$ac_cv_path_INTLTOOL_MSGFMT" && ac_cv_path_INTLTOOL_MSGFMT="msgfmt"
21879   ;;
21880 esac
21881 fi
21882 INTLTOOL_MSGFMT=$ac_cv_path_INTLTOOL_MSGFMT
21883
21884 if test -n "$INTLTOOL_MSGFMT"; then
21885   echo "$as_me:$LINENO: result: $INTLTOOL_MSGFMT" >&5
21886 echo "${ECHO_T}$INTLTOOL_MSGFMT" >&6
21887 else
21888   echo "$as_me:$LINENO: result: no" >&5
21889 echo "${ECHO_T}no" >&6
21890 fi
21891
21892 # Extract the first word of "msgmerge", so it can be a program name with args.
21893 set dummy msgmerge; ac_word=$2
21894 echo "$as_me:$LINENO: checking for $ac_word" >&5
21895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21896 if test "${ac_cv_path_INTLTOOL_MSGMERGE+set}" = set; then
21897   echo $ECHO_N "(cached) $ECHO_C" >&6
21898 else
21899   case $INTLTOOL_MSGMERGE in
21900   [\\/]* | ?:[\\/]*)
21901   ac_cv_path_INTLTOOL_MSGMERGE="$INTLTOOL_MSGMERGE" # Let the user override the test with a path.
21902   ;;
21903   *)
21904   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21905 for as_dir in $PATH
21906 do
21907   IFS=$as_save_IFS
21908   test -z "$as_dir" && as_dir=.
21909   for ac_exec_ext in '' $ac_executable_extensions; do
21910   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21911     ac_cv_path_INTLTOOL_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
21912     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21913     break 2
21914   fi
21915 done
21916 done
21917
21918   test -z "$ac_cv_path_INTLTOOL_MSGMERGE" && ac_cv_path_INTLTOOL_MSGMERGE="msgmerge"
21919   ;;
21920 esac
21921 fi
21922 INTLTOOL_MSGMERGE=$ac_cv_path_INTLTOOL_MSGMERGE
21923
21924 if test -n "$INTLTOOL_MSGMERGE"; then
21925   echo "$as_me:$LINENO: result: $INTLTOOL_MSGMERGE" >&5
21926 echo "${ECHO_T}$INTLTOOL_MSGMERGE" >&6
21927 else
21928   echo "$as_me:$LINENO: result: no" >&5
21929 echo "${ECHO_T}no" >&6
21930 fi
21931
21932 # Extract the first word of "xgettext", so it can be a program name with args.
21933 set dummy xgettext; ac_word=$2
21934 echo "$as_me:$LINENO: checking for $ac_word" >&5
21935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21936 if test "${ac_cv_path_INTLTOOL_XGETTEXT+set}" = set; then
21937   echo $ECHO_N "(cached) $ECHO_C" >&6
21938 else
21939   case $INTLTOOL_XGETTEXT in
21940   [\\/]* | ?:[\\/]*)
21941   ac_cv_path_INTLTOOL_XGETTEXT="$INTLTOOL_XGETTEXT" # Let the user override the test with a path.
21942   ;;
21943   *)
21944   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21945 for as_dir in $PATH
21946 do
21947   IFS=$as_save_IFS
21948   test -z "$as_dir" && as_dir=.
21949   for ac_exec_ext in '' $ac_executable_extensions; do
21950   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21951     ac_cv_path_INTLTOOL_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
21952     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21953     break 2
21954   fi
21955 done
21956 done
21957
21958   test -z "$ac_cv_path_INTLTOOL_XGETTEXT" && ac_cv_path_INTLTOOL_XGETTEXT="xgettext"
21959   ;;
21960 esac
21961 fi
21962 INTLTOOL_XGETTEXT=$ac_cv_path_INTLTOOL_XGETTEXT
21963
21964 if test -n "$INTLTOOL_XGETTEXT"; then
21965   echo "$as_me:$LINENO: result: $INTLTOOL_XGETTEXT" >&5
21966 echo "${ECHO_T}$INTLTOOL_XGETTEXT" >&6
21967 else
21968   echo "$as_me:$LINENO: result: no" >&5
21969 echo "${ECHO_T}no" >&6
21970 fi
21971
21972
21973 # Remove file type tags (using []) from po/POTFILES.
21974
21975
21976   
21977     
21978   
21979
21980
21981 # Manually sed perl in so people don't have to put the intltool scripts in AC_OUTPUT.
21982
21983           ac_config_commands="$ac_config_commands intltool"
21984
21985
21986
21987
21988         MKINSTALLDIRS=
21989   if test -n "$ac_aux_dir"; then
21990     case "$ac_aux_dir" in
21991       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
21992       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
21993     esac
21994   fi
21995   if test -z "$MKINSTALLDIRS"; then
21996     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
21997   fi
21998   
21999
22000
22001   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
22002 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
22003     # Check whether --enable-nls or --disable-nls was given.
22004 if test "${enable_nls+set}" = set; then
22005   enableval="$enable_nls"
22006   USE_NLS=$enableval
22007 else
22008   USE_NLS=yes
22009 fi; 
22010   echo "$as_me:$LINENO: result: $USE_NLS" >&5
22011 echo "${ECHO_T}$USE_NLS" >&6
22012   
22013
22014
22015         
22016     
22017         
22018 # Prepare PATH_SEPARATOR.
22019 # The user is always right.
22020 if test "${PATH_SEPARATOR+set}" != set; then
22021   echo "#! /bin/sh" >conf$$.sh
22022   echo  "exit 0"   >>conf$$.sh
22023   chmod +x conf$$.sh
22024   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22025     PATH_SEPARATOR=';'
22026   else
22027     PATH_SEPARATOR=:
22028   fi
22029   rm -f conf$$.sh
22030 fi
22031
22032 # Find out how to test for executable files. Don't use a zero-byte file,
22033 # as systems may use methods other than mode bits to determine executability.
22034 cat >conf$$.file <<_ASEOF
22035 #! /bin/sh
22036 exit 0
22037 _ASEOF
22038 chmod +x conf$$.file
22039 if test -x conf$$.file >/dev/null 2>&1; then
22040   ac_executable_p="test -x"
22041 else
22042   ac_executable_p="test -f"
22043 fi
22044 rm -f conf$$.file
22045
22046 # Extract the first word of "msgfmt", so it can be a program name with args.
22047 set dummy msgfmt; ac_word=$2
22048 echo "$as_me:$LINENO: checking for $ac_word" >&5
22049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22050 if test "${ac_cv_path_MSGFMT+set}" = set; then
22051   echo $ECHO_N "(cached) $ECHO_C" >&6
22052 else
22053   case "$MSGFMT" in
22054   [\\/]* | ?:[\\/]*)
22055     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
22056     ;;
22057   *)
22058     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
22059     for ac_dir in $PATH; do
22060       IFS="$ac_save_IFS"
22061       test -z "$ac_dir" && ac_dir=.
22062       for ac_exec_ext in '' $ac_executable_extensions; do
22063         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
22064           if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
22065      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
22066             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
22067             break 2
22068           fi
22069         fi
22070       done
22071     done
22072     IFS="$ac_save_IFS"
22073   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
22074     ;;
22075 esac
22076 fi
22077 MSGFMT="$ac_cv_path_MSGFMT"
22078 if test "$MSGFMT" != ":"; then
22079   echo "$as_me:$LINENO: result: $MSGFMT" >&5
22080 echo "${ECHO_T}$MSGFMT" >&6
22081 else
22082   echo "$as_me:$LINENO: result: no" >&5
22083 echo "${ECHO_T}no" >&6
22084 fi
22085
22086   # Extract the first word of "gmsgfmt", so it can be a program name with args.
22087 set dummy gmsgfmt; ac_word=$2
22088 echo "$as_me:$LINENO: checking for $ac_word" >&5
22089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22090 if test "${ac_cv_path_GMSGFMT+set}" = set; then
22091   echo $ECHO_N "(cached) $ECHO_C" >&6
22092 else
22093   case $GMSGFMT in
22094   [\\/]* | ?:[\\/]*)
22095   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
22096   ;;
22097   *)
22098   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22099 for as_dir in $PATH
22100 do
22101   IFS=$as_save_IFS
22102   test -z "$as_dir" && as_dir=.
22103   for ac_exec_ext in '' $ac_executable_extensions; do
22104   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22105     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
22106     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22107     break 2
22108   fi
22109 done
22110 done
22111
22112   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
22113   ;;
22114 esac
22115 fi
22116 GMSGFMT=$ac_cv_path_GMSGFMT
22117
22118 if test -n "$GMSGFMT"; then
22119   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
22120 echo "${ECHO_T}$GMSGFMT" >&6
22121 else
22122   echo "$as_me:$LINENO: result: no" >&5
22123 echo "${ECHO_T}no" >&6
22124 fi
22125
22126
22127         
22128 # Prepare PATH_SEPARATOR.
22129 # The user is always right.
22130 if test "${PATH_SEPARATOR+set}" != set; then
22131   echo "#! /bin/sh" >conf$$.sh
22132   echo  "exit 0"   >>conf$$.sh
22133   chmod +x conf$$.sh
22134   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22135     PATH_SEPARATOR=';'
22136   else
22137     PATH_SEPARATOR=:
22138   fi
22139   rm -f conf$$.sh
22140 fi
22141
22142 # Find out how to test for executable files. Don't use a zero-byte file,
22143 # as systems may use methods other than mode bits to determine executability.
22144 cat >conf$$.file <<_ASEOF
22145 #! /bin/sh
22146 exit 0
22147 _ASEOF
22148 chmod +x conf$$.file
22149 if test -x conf$$.file >/dev/null 2>&1; then
22150   ac_executable_p="test -x"
22151 else
22152   ac_executable_p="test -f"
22153 fi
22154 rm -f conf$$.file
22155
22156 # Extract the first word of "xgettext", so it can be a program name with args.
22157 set dummy xgettext; ac_word=$2
22158 echo "$as_me:$LINENO: checking for $ac_word" >&5
22159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22160 if test "${ac_cv_path_XGETTEXT+set}" = set; then
22161   echo $ECHO_N "(cached) $ECHO_C" >&6
22162 else
22163   case "$XGETTEXT" in
22164   [\\/]* | ?:[\\/]*)
22165     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
22166     ;;
22167   *)
22168     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
22169     for ac_dir in $PATH; do
22170       IFS="$ac_save_IFS"
22171       test -z "$ac_dir" && ac_dir=.
22172       for ac_exec_ext in '' $ac_executable_extensions; do
22173         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
22174           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
22175      (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
22176             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
22177             break 2
22178           fi
22179         fi
22180       done
22181     done
22182     IFS="$ac_save_IFS"
22183   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
22184     ;;
22185 esac
22186 fi
22187 XGETTEXT="$ac_cv_path_XGETTEXT"
22188 if test "$XGETTEXT" != ":"; then
22189   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
22190 echo "${ECHO_T}$XGETTEXT" >&6
22191 else
22192   echo "$as_me:$LINENO: result: no" >&5
22193 echo "${ECHO_T}no" >&6
22194 fi
22195
22196     rm -f messages.po
22197
22198     
22199 # Prepare PATH_SEPARATOR.
22200 # The user is always right.
22201 if test "${PATH_SEPARATOR+set}" != set; then
22202   echo "#! /bin/sh" >conf$$.sh
22203   echo  "exit 0"   >>conf$$.sh
22204   chmod +x conf$$.sh
22205   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22206     PATH_SEPARATOR=';'
22207   else
22208     PATH_SEPARATOR=:
22209   fi
22210   rm -f conf$$.sh
22211 fi
22212
22213 # Find out how to test for executable files. Don't use a zero-byte file,
22214 # as systems may use methods other than mode bits to determine executability.
22215 cat >conf$$.file <<_ASEOF
22216 #! /bin/sh
22217 exit 0
22218 _ASEOF
22219 chmod +x conf$$.file
22220 if test -x conf$$.file >/dev/null 2>&1; then
22221   ac_executable_p="test -x"
22222 else
22223   ac_executable_p="test -f"
22224 fi
22225 rm -f conf$$.file
22226
22227 # Extract the first word of "msgmerge", so it can be a program name with args.
22228 set dummy msgmerge; ac_word=$2
22229 echo "$as_me:$LINENO: checking for $ac_word" >&5
22230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22231 if test "${ac_cv_path_MSGMERGE+set}" = set; then
22232   echo $ECHO_N "(cached) $ECHO_C" >&6
22233 else
22234   case "$MSGMERGE" in
22235   [\\/]* | ?:[\\/]*)
22236     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
22237     ;;
22238   *)
22239     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
22240     for ac_dir in $PATH; do
22241       IFS="$ac_save_IFS"
22242       test -z "$ac_dir" && ac_dir=.
22243       for ac_exec_ext in '' $ac_executable_extensions; do
22244         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
22245           if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
22246             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
22247             break 2
22248           fi
22249         fi
22250       done
22251     done
22252     IFS="$ac_save_IFS"
22253   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
22254     ;;
22255 esac
22256 fi
22257 MSGMERGE="$ac_cv_path_MSGMERGE"
22258 if test "$MSGMERGE" != ":"; then
22259   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
22260 echo "${ECHO_T}$MSGMERGE" >&6
22261 else
22262   echo "$as_me:$LINENO: result: no" >&5
22263 echo "${ECHO_T}no" >&6
22264 fi
22265
22266
22267       if test "$GMSGFMT" != ":"; then
22268             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
22269        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
22270       : ;
22271     else
22272       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
22273       echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
22274 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
22275       GMSGFMT=":"
22276     fi
22277   fi
22278
22279       if test "$XGETTEXT" != ":"; then
22280             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
22281        (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
22282       : ;
22283     else
22284       echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
22285 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
22286       XGETTEXT=":"
22287     fi
22288         rm -f messages.po
22289   fi
22290
22291             ac_config_commands="$ac_config_commands default-1"
22292
22293
22294
22295       if test "X$prefix" = "XNONE"; then
22296     acl_final_prefix="$ac_default_prefix"
22297   else
22298     acl_final_prefix="$prefix"
22299   fi
22300   if test "X$exec_prefix" = "XNONE"; then
22301     acl_final_exec_prefix='${prefix}'
22302   else
22303     acl_final_exec_prefix="$exec_prefix"
22304   fi
22305   acl_save_prefix="$prefix"
22306   prefix="$acl_final_prefix"
22307   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
22308   prefix="$acl_save_prefix"
22309
22310
22311 # Check whether --with-gnu-ld or --without-gnu-ld was given.
22312 if test "${with_gnu_ld+set}" = set; then
22313   withval="$with_gnu_ld"
22314   test "$withval" = no || with_gnu_ld=yes
22315 else
22316   with_gnu_ld=no
22317 fi; 
22318 # Prepare PATH_SEPARATOR.
22319 # The user is always right.
22320 if test "${PATH_SEPARATOR+set}" != set; then
22321   echo "#! /bin/sh" >conf$$.sh
22322   echo  "exit 0"   >>conf$$.sh
22323   chmod +x conf$$.sh
22324   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22325     PATH_SEPARATOR=';'
22326   else
22327     PATH_SEPARATOR=:
22328   fi
22329   rm -f conf$$.sh
22330 fi
22331 ac_prog=ld
22332 if test "$GCC" = yes; then
22333   # Check if gcc -print-prog-name=ld gives a path.
22334   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
22335 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
22336   case $host in
22337   *-*-mingw*)
22338     # gcc leaves a trailing carriage return which upsets mingw
22339     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
22340   *)
22341     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
22342   esac
22343   case $ac_prog in
22344     # Accept absolute paths.
22345     [\\/]* | [A-Za-z]:[\\/]*)
22346       re_direlt='/[^/][^/]*/\.\./'
22347       # Canonicalize the path of ld
22348       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
22349       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
22350         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
22351       done
22352       test -z "$LD" && LD="$ac_prog"
22353       ;;
22354   "")
22355     # If it fails, then pretend we aren't using GCC.
22356     ac_prog=ld
22357     ;;
22358   *)
22359     # If it is relative, then search for the first ld in PATH.
22360     with_gnu_ld=unknown
22361     ;;
22362   esac
22363 elif test "$with_gnu_ld" = yes; then
22364   echo "$as_me:$LINENO: checking for GNU ld" >&5
22365 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
22366 else
22367   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
22368 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
22369 fi
22370 if test "${acl_cv_path_LD+set}" = set; then
22371   echo $ECHO_N "(cached) $ECHO_C" >&6
22372 else
22373   if test -z "$LD"; then
22374   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
22375   for ac_dir in $PATH; do
22376     test -z "$ac_dir" && ac_dir=.
22377     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
22378       acl_cv_path_LD="$ac_dir/$ac_prog"
22379       # Check to see if the program is GNU ld.  I'd rather use --version,
22380       # but apparently some GNU ld's only accept -v.
22381       # Break only if it was the GNU/non-GNU ld that we prefer.
22382       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
22383       *GNU* | *'with BFD'*)
22384         test "$with_gnu_ld" != no && break ;;
22385       *)
22386         test "$with_gnu_ld" != yes && break ;;
22387       esac
22388     fi
22389   done
22390   IFS="$ac_save_ifs"
22391 else
22392   acl_cv_path_LD="$LD" # Let the user override the test with a path.
22393 fi
22394 fi
22395
22396 LD="$acl_cv_path_LD"
22397 if test -n "$LD"; then
22398   echo "$as_me:$LINENO: result: $LD" >&5
22399 echo "${ECHO_T}$LD" >&6
22400 else
22401   echo "$as_me:$LINENO: result: no" >&5
22402 echo "${ECHO_T}no" >&6
22403 fi
22404 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
22405 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
22406    { (exit 1); exit 1; }; }
22407 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
22408 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
22409 if test "${acl_cv_prog_gnu_ld+set}" = set; then
22410   echo $ECHO_N "(cached) $ECHO_C" >&6
22411 else
22412   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
22413 case `$LD -v 2>&1 </dev/null` in
22414 *GNU* | *'with BFD'*)
22415   acl_cv_prog_gnu_ld=yes ;;
22416 *)
22417   acl_cv_prog_gnu_ld=no ;;
22418 esac
22419 fi
22420 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
22421 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
22422 with_gnu_ld=$acl_cv_prog_gnu_ld
22423
22424
22425
22426                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
22427 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
22428 if test "${acl_cv_rpath+set}" = set; then
22429   echo $ECHO_N "(cached) $ECHO_C" >&6
22430 else
22431   
22432     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
22433     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
22434     . ./conftest.sh
22435     rm -f ./conftest.sh
22436     acl_cv_rpath=done
22437   
22438 fi
22439 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
22440 echo "${ECHO_T}$acl_cv_rpath" >&6
22441   wl="$acl_cv_wl"
22442   libext="$acl_cv_libext"
22443   shlibext="$acl_cv_shlibext"
22444   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
22445   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
22446   hardcode_direct="$acl_cv_hardcode_direct"
22447   hardcode_minus_L="$acl_cv_hardcode_minus_L"
22448     # Check whether --enable-rpath or --disable-rpath was given.
22449 if test "${enable_rpath+set}" = set; then
22450   enableval="$enable_rpath"
22451   :
22452 else
22453   enable_rpath=yes
22454 fi; 
22455
22456
22457     
22458   
22459
22460       
22461   
22462     use_additional=yes
22463   
22464   acl_save_prefix="$prefix"
22465   prefix="$acl_final_prefix"
22466   acl_save_exec_prefix="$exec_prefix"
22467   exec_prefix="$acl_final_exec_prefix"
22468   
22469     eval additional_includedir=\"$includedir\"
22470     eval additional_libdir=\"$libdir\"
22471   
22472   exec_prefix="$acl_save_exec_prefix"
22473   prefix="$acl_save_prefix"
22474
22475   
22476 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
22477 if test "${with_libiconv_prefix+set}" = set; then
22478   withval="$with_libiconv_prefix"
22479   
22480     if test "X$withval" = "Xno"; then
22481       use_additional=no
22482     else
22483       if test "X$withval" = "X"; then
22484         
22485   acl_save_prefix="$prefix"
22486   prefix="$acl_final_prefix"
22487   acl_save_exec_prefix="$exec_prefix"
22488   exec_prefix="$acl_final_exec_prefix"
22489   
22490           eval additional_includedir=\"$includedir\"
22491           eval additional_libdir=\"$libdir\"
22492         
22493   exec_prefix="$acl_save_exec_prefix"
22494   prefix="$acl_save_prefix"
22495
22496       else
22497         additional_includedir="$withval/include"
22498         additional_libdir="$withval/lib"
22499       fi
22500     fi
22501
22502 fi; 
22503       LIBICONV=
22504   LTLIBICONV=
22505   INCICONV=
22506   rpathdirs=
22507   ltrpathdirs=
22508   names_already_handled=
22509   names_next_round='iconv '
22510   while test -n "$names_next_round"; do
22511     names_this_round="$names_next_round"
22512     names_next_round=
22513     for name in $names_this_round; do
22514       already_handled=
22515       for n in $names_already_handled; do
22516         if test "$n" = "$name"; then
22517           already_handled=yes
22518           break
22519         fi
22520       done
22521       if test -z "$already_handled"; then
22522         names_already_handled="$names_already_handled $name"
22523                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
22524         eval value=\"\$HAVE_LIB$uppername\"
22525         if test -n "$value"; then
22526           if test "$value" = yes; then
22527             eval value=\"\$LIB$uppername\"
22528             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
22529             eval value=\"\$LTLIB$uppername\"
22530             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
22531           else
22532                                     :
22533           fi
22534         else
22535                               found_dir=
22536           found_la=
22537           found_so=
22538           found_a=
22539           if test $use_additional = yes; then
22540             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
22541               found_dir="$additional_libdir"
22542               found_so="$additional_libdir/lib$name.$shlibext"
22543               if test -f "$additional_libdir/lib$name.la"; then
22544                 found_la="$additional_libdir/lib$name.la"
22545               fi
22546             else
22547               if test -f "$additional_libdir/lib$name.$libext"; then
22548                 found_dir="$additional_libdir"
22549                 found_a="$additional_libdir/lib$name.$libext"
22550                 if test -f "$additional_libdir/lib$name.la"; then
22551                   found_la="$additional_libdir/lib$name.la"
22552                 fi
22553               fi
22554             fi
22555           fi
22556           if test "X$found_dir" = "X"; then
22557             for x in $LDFLAGS $LTLIBICONV; do
22558               
22559   acl_save_prefix="$prefix"
22560   prefix="$acl_final_prefix"
22561   acl_save_exec_prefix="$exec_prefix"
22562   exec_prefix="$acl_final_exec_prefix"
22563   eval x=\"$x\"
22564   exec_prefix="$acl_save_exec_prefix"
22565   prefix="$acl_save_prefix"
22566
22567               case "$x" in
22568                 -L*)
22569                   dir=`echo "X$x" | sed -e 's/^X-L//'`
22570                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
22571                     found_dir="$dir"
22572                     found_so="$dir/lib$name.$shlibext"
22573                     if test -f "$dir/lib$name.la"; then
22574                       found_la="$dir/lib$name.la"
22575                     fi
22576                   else
22577                     if test -f "$dir/lib$name.$libext"; then
22578                       found_dir="$dir"
22579                       found_a="$dir/lib$name.$libext"
22580                       if test -f "$dir/lib$name.la"; then
22581                         found_la="$dir/lib$name.la"
22582                       fi
22583                     fi
22584                   fi
22585                   ;;
22586               esac
22587               if test "X$found_dir" != "X"; then
22588                 break
22589               fi
22590             done
22591           fi
22592           if test "X$found_dir" != "X"; then
22593                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
22594             if test "X$found_so" != "X"; then
22595                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
22596                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22597               else
22598                                                                                 haveit=
22599                 for x in $ltrpathdirs; do
22600                   if test "X$x" = "X$found_dir"; then
22601                     haveit=yes
22602                     break
22603                   fi
22604                 done
22605                 if test -z "$haveit"; then
22606                   ltrpathdirs="$ltrpathdirs $found_dir"
22607                 fi
22608                                 if test "$hardcode_direct" = yes; then
22609                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22610                 else
22611                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
22612                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22613                                                             haveit=
22614                     for x in $rpathdirs; do
22615                       if test "X$x" = "X$found_dir"; then
22616                         haveit=yes
22617                         break
22618                       fi
22619                     done
22620                     if test -z "$haveit"; then
22621                       rpathdirs="$rpathdirs $found_dir"
22622                     fi
22623                   else
22624                                                                                 haveit=
22625                     for x in $LDFLAGS $LIBICONV; do
22626                       
22627   acl_save_prefix="$prefix"
22628   prefix="$acl_final_prefix"
22629   acl_save_exec_prefix="$exec_prefix"
22630   exec_prefix="$acl_final_exec_prefix"
22631   eval x=\"$x\"
22632   exec_prefix="$acl_save_exec_prefix"
22633   prefix="$acl_save_prefix"
22634
22635                       if test "X$x" = "X-L$found_dir"; then
22636                         haveit=yes
22637                         break
22638                       fi
22639                     done
22640                     if test -z "$haveit"; then
22641                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
22642                     fi
22643                     if test "$hardcode_minus_L" != no; then
22644                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22645                     else
22646                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
22647                     fi
22648                   fi
22649                 fi
22650               fi
22651             else
22652               if test "X$found_a" != "X"; then
22653                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
22654               else
22655                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
22656               fi
22657             fi
22658                         additional_includedir=
22659             case "$found_dir" in
22660               */lib | */lib/)
22661                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
22662                 additional_includedir="$basedir/include"
22663                 ;;
22664             esac
22665             if test "X$additional_includedir" != "X"; then
22666                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
22667                 haveit=
22668                 if test "X$additional_includedir" = "X/usr/local/include"; then
22669                   if test -n "$GCC"; then
22670                     case $host_os in
22671                       linux*) haveit=yes;;
22672                     esac
22673                   fi
22674                 fi
22675                 if test -z "$haveit"; then
22676                   for x in $CPPFLAGS $INCICONV; do
22677                     
22678   acl_save_prefix="$prefix"
22679   prefix="$acl_final_prefix"
22680   acl_save_exec_prefix="$exec_prefix"
22681   exec_prefix="$acl_final_exec_prefix"
22682   eval x=\"$x\"
22683   exec_prefix="$acl_save_exec_prefix"
22684   prefix="$acl_save_prefix"
22685
22686                     if test "X$x" = "X-I$additional_includedir"; then
22687                       haveit=yes
22688                       break
22689                     fi
22690                   done
22691                   if test -z "$haveit"; then
22692                     if test -d "$additional_includedir"; then
22693                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
22694                     fi
22695                   fi
22696                 fi
22697               fi
22698             fi
22699                         if test -n "$found_la"; then
22700                                                         save_libdir="$libdir"
22701               case "$found_la" in
22702                 */* | *\\*) . "$found_la" ;;
22703                 *) . "./$found_la" ;;
22704               esac
22705               libdir="$save_libdir"
22706                             for dep in $dependency_libs; do
22707                 case "$dep" in
22708                   -L*)
22709                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
22710                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
22711                       haveit=
22712                       if test "X$additional_libdir" = "X/usr/local/lib"; then
22713                         if test -n "$GCC"; then
22714                           case $host_os in
22715                             linux*) haveit=yes;;
22716                           esac
22717                         fi
22718                       fi
22719                       if test -z "$haveit"; then
22720                         haveit=
22721                         for x in $LDFLAGS $LIBICONV; do
22722                           
22723   acl_save_prefix="$prefix"
22724   prefix="$acl_final_prefix"
22725   acl_save_exec_prefix="$exec_prefix"
22726   exec_prefix="$acl_final_exec_prefix"
22727   eval x=\"$x\"
22728   exec_prefix="$acl_save_exec_prefix"
22729   prefix="$acl_save_prefix"
22730
22731                           if test "X$x" = "X-L$additional_libdir"; then
22732                             haveit=yes
22733                             break
22734                           fi
22735                         done
22736                         if test -z "$haveit"; then
22737                           if test -d "$additional_libdir"; then
22738                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
22739                           fi
22740                         fi
22741                         haveit=
22742                         for x in $LDFLAGS $LTLIBICONV; do
22743                           
22744   acl_save_prefix="$prefix"
22745   prefix="$acl_final_prefix"
22746   acl_save_exec_prefix="$exec_prefix"
22747   exec_prefix="$acl_final_exec_prefix"
22748   eval x=\"$x\"
22749   exec_prefix="$acl_save_exec_prefix"
22750   prefix="$acl_save_prefix"
22751
22752                           if test "X$x" = "X-L$additional_libdir"; then
22753                             haveit=yes
22754                             break
22755                           fi
22756                         done
22757                         if test -z "$haveit"; then
22758                           if test -d "$additional_libdir"; then
22759                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
22760                           fi
22761                         fi
22762                       fi
22763                     fi
22764                     ;;
22765                   -R*)
22766                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
22767                     if test "$enable_rpath" != no; then
22768                                                                   haveit=
22769                       for x in $rpathdirs; do
22770                         if test "X$x" = "X$dir"; then
22771                           haveit=yes
22772                           break
22773                         fi
22774                       done
22775                       if test -z "$haveit"; then
22776                         rpathdirs="$rpathdirs $dir"
22777                       fi
22778                                                                   haveit=
22779                       for x in $ltrpathdirs; do
22780                         if test "X$x" = "X$dir"; then
22781                           haveit=yes
22782                           break
22783                         fi
22784                       done
22785                       if test -z "$haveit"; then
22786                         ltrpathdirs="$ltrpathdirs $dir"
22787                       fi
22788                     fi
22789                     ;;
22790                   -l*)
22791                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
22792                     ;;
22793                   *.la)
22794                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
22795                     ;;
22796                   *)
22797                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
22798                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
22799                     ;;
22800                 esac
22801               done
22802             fi
22803           else
22804                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
22805             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
22806           fi
22807         fi
22808       fi
22809     done
22810   done
22811   if test "X$rpathdirs" != "X"; then
22812     if test -n "$hardcode_libdir_separator"; then
22813                         alldirs=
22814       for found_dir in $rpathdirs; do
22815         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
22816       done
22817             acl_save_libdir="$libdir"
22818       libdir="$alldirs"
22819       eval flag=\"$hardcode_libdir_flag_spec\"
22820       libdir="$acl_save_libdir"
22821       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
22822     else
22823             for found_dir in $rpathdirs; do
22824         acl_save_libdir="$libdir"
22825         libdir="$found_dir"
22826         eval flag=\"$hardcode_libdir_flag_spec\"
22827         libdir="$acl_save_libdir"
22828         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
22829       done
22830     fi
22831   fi
22832   if test "X$ltrpathdirs" != "X"; then
22833             for found_dir in $ltrpathdirs; do
22834       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
22835     done
22836   fi
22837
22838
22839 cat >conftest.$ac_ext <<_ACEOF
22840 /* confdefs.h.  */
22841 _ACEOF
22842 cat confdefs.h >>conftest.$ac_ext
22843 cat >>conftest.$ac_ext <<_ACEOF
22844 /* end confdefs.h.  */
22845 #include <locale.h>
22846 int
22847 main ()
22848 {
22849  extern locale_t wc_locales[]
22850   ;
22851   return 0;
22852 }
22853 _ACEOF
22854 rm -f conftest.$ac_objext
22855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22856   (eval $ac_compile) 2>conftest.er1
22857   ac_status=$?
22858   grep -v '^ *+' conftest.er1 >conftest.err
22859   rm -f conftest.er1
22860   cat conftest.err >&5
22861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22862   (exit $ac_status); } &&
22863          { ac_try='test -z "$ac_c_werror_flag"
22864                          || test ! -s conftest.err'
22865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22866   (eval $ac_try) 2>&5
22867   ac_status=$?
22868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22869   (exit $ac_status); }; } &&
22870          { ac_try='test -s conftest.$ac_objext'
22871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22872   (eval $ac_try) 2>&5
22873   ac_status=$?
22874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22875   (exit $ac_status); }; }; then
22876   
22877                         _nls_avail=yes
22878                         
22879     
22880   
22881   
22882   
22883
22884     
22885
22886     
22887   
22888
22889                         
22890     
22891   
22892
22893     
22894   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
22895 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
22896     # Check whether --enable-nls or --disable-nls was given.
22897 if test "${enable_nls+set}" = set; then
22898   enableval="$enable_nls"
22899   USE_NLS=$enableval
22900 else
22901   USE_NLS=yes
22902 fi; 
22903   echo "$as_me:$LINENO: result: $USE_NLS" >&5
22904 echo "${ECHO_T}$USE_NLS" >&6
22905   
22906
22907
22908   
22909   LIBINTL=
22910   LTLIBINTL=
22911   POSUB=
22912
22913     if test "$USE_NLS" = "yes"; then
22914     gt_use_preinstalled_gnugettext=no
22915     
22916                         
22917                 
22918         
22919         
22920
22921         echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
22922 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
22923 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
22924   echo $ECHO_N "(cached) $ECHO_C" >&6
22925 else
22926   cat >conftest.$ac_ext <<_ACEOF
22927 /* confdefs.h.  */
22928 _ACEOF
22929 cat confdefs.h >>conftest.$ac_ext
22930 cat >>conftest.$ac_ext <<_ACEOF
22931 /* end confdefs.h.  */
22932 #include <libintl.h>
22933 extern int _nl_msg_cat_cntr;
22934 extern int *_nl_domain_bindings;
22935 int
22936 main ()
22937 {
22938 bindtextdomain ("", "");
22939 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
22940   ;
22941   return 0;
22942 }
22943 _ACEOF
22944 rm -f conftest.$ac_objext conftest$ac_exeext
22945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22946   (eval $ac_link) 2>conftest.er1
22947   ac_status=$?
22948   grep -v '^ *+' conftest.er1 >conftest.err
22949   rm -f conftest.er1
22950   cat conftest.err >&5
22951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22952   (exit $ac_status); } &&
22953          { ac_try='test -z "$ac_c_werror_flag"
22954                          || test ! -s conftest.err'
22955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22956   (eval $ac_try) 2>&5
22957   ac_status=$?
22958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22959   (exit $ac_status); }; } &&
22960          { ac_try='test -s conftest$ac_exeext'
22961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22962   (eval $ac_try) 2>&5
22963   ac_status=$?
22964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22965   (exit $ac_status); }; }; then
22966   gt_cv_func_gnugettext2_libc=yes
22967 else
22968   echo "$as_me: failed program was:" >&5
22969 sed 's/^/| /' conftest.$ac_ext >&5
22970
22971 gt_cv_func_gnugettext2_libc=no
22972 fi
22973 rm -f conftest.err conftest.$ac_objext \
22974       conftest$ac_exeext conftest.$ac_ext
22975 fi
22976 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
22977 echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
22978
22979         if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
22980                     
22981             
22982     
22983       
22984
22985           am_save_CPPFLAGS="$CPPFLAGS"
22986   
22987   for element in $INCICONV; do
22988     haveit=
22989     for x in $CPPFLAGS; do
22990       
22991   acl_save_prefix="$prefix"
22992   prefix="$acl_final_prefix"
22993   acl_save_exec_prefix="$exec_prefix"
22994   exec_prefix="$acl_final_exec_prefix"
22995   eval x=\"$x\"
22996   exec_prefix="$acl_save_exec_prefix"
22997   prefix="$acl_save_prefix"
22998
22999       if test "X$x" = "X$element"; then
23000         haveit=yes
23001         break
23002       fi
23003     done
23004     if test -z "$haveit"; then
23005       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23006     fi
23007   done
23008
23009
23010   echo "$as_me:$LINENO: checking for iconv" >&5
23011 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
23012 if test "${am_cv_func_iconv+set}" = set; then
23013   echo $ECHO_N "(cached) $ECHO_C" >&6
23014 else
23015   
23016     am_cv_func_iconv="no, consider installing GNU libiconv"
23017     am_cv_lib_iconv=no
23018     cat >conftest.$ac_ext <<_ACEOF
23019 /* confdefs.h.  */
23020 _ACEOF
23021 cat confdefs.h >>conftest.$ac_ext
23022 cat >>conftest.$ac_ext <<_ACEOF
23023 /* end confdefs.h.  */
23024 #include <stdlib.h>
23025 #include <iconv.h>
23026 int
23027 main ()
23028 {
23029 iconv_t cd = iconv_open("","");
23030        iconv(cd,NULL,NULL,NULL,NULL);
23031        iconv_close(cd);
23032   ;
23033   return 0;
23034 }
23035 _ACEOF
23036 rm -f conftest.$ac_objext conftest$ac_exeext
23037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23038   (eval $ac_link) 2>conftest.er1
23039   ac_status=$?
23040   grep -v '^ *+' conftest.er1 >conftest.err
23041   rm -f conftest.er1
23042   cat conftest.err >&5
23043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23044   (exit $ac_status); } &&
23045          { ac_try='test -z "$ac_c_werror_flag"
23046                          || test ! -s conftest.err'
23047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23048   (eval $ac_try) 2>&5
23049   ac_status=$?
23050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23051   (exit $ac_status); }; } &&
23052          { ac_try='test -s conftest$ac_exeext'
23053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23054   (eval $ac_try) 2>&5
23055   ac_status=$?
23056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23057   (exit $ac_status); }; }; then
23058   am_cv_func_iconv=yes
23059 else
23060   echo "$as_me: failed program was:" >&5
23061 sed 's/^/| /' conftest.$ac_ext >&5
23062
23063 fi
23064 rm -f conftest.err conftest.$ac_objext \
23065       conftest$ac_exeext conftest.$ac_ext
23066     if test "$am_cv_func_iconv" != yes; then
23067       am_save_LIBS="$LIBS"
23068       LIBS="$LIBS $LIBICONV"
23069       cat >conftest.$ac_ext <<_ACEOF
23070 /* confdefs.h.  */
23071 _ACEOF
23072 cat confdefs.h >>conftest.$ac_ext
23073 cat >>conftest.$ac_ext <<_ACEOF
23074 /* end confdefs.h.  */
23075 #include <stdlib.h>
23076 #include <iconv.h>
23077 int
23078 main ()
23079 {
23080 iconv_t cd = iconv_open("","");
23081          iconv(cd,NULL,NULL,NULL,NULL);
23082          iconv_close(cd);
23083   ;
23084   return 0;
23085 }
23086 _ACEOF
23087 rm -f conftest.$ac_objext conftest$ac_exeext
23088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23089   (eval $ac_link) 2>conftest.er1
23090   ac_status=$?
23091   grep -v '^ *+' conftest.er1 >conftest.err
23092   rm -f conftest.er1
23093   cat conftest.err >&5
23094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23095   (exit $ac_status); } &&
23096          { ac_try='test -z "$ac_c_werror_flag"
23097                          || test ! -s conftest.err'
23098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23099   (eval $ac_try) 2>&5
23100   ac_status=$?
23101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23102   (exit $ac_status); }; } &&
23103          { ac_try='test -s conftest$ac_exeext'
23104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23105   (eval $ac_try) 2>&5
23106   ac_status=$?
23107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23108   (exit $ac_status); }; }; then
23109   am_cv_lib_iconv=yes
23110         am_cv_func_iconv=yes
23111 else
23112   echo "$as_me: failed program was:" >&5
23113 sed 's/^/| /' conftest.$ac_ext >&5
23114
23115 fi
23116 rm -f conftest.err conftest.$ac_objext \
23117       conftest$ac_exeext conftest.$ac_ext
23118       LIBS="$am_save_LIBS"
23119     fi
23120   
23121 fi
23122 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
23123 echo "${ECHO_T}$am_cv_func_iconv" >&6
23124   if test "$am_cv_func_iconv" = yes; then
23125     
23126 cat >>confdefs.h <<\_ACEOF
23127 @%:@define HAVE_ICONV 1
23128 _ACEOF
23129
23130   fi
23131   if test "$am_cv_lib_iconv" = yes; then
23132     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
23133 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
23134     echo "$as_me:$LINENO: result: $LIBICONV" >&5
23135 echo "${ECHO_T}$LIBICONV" >&6
23136   else
23137             CPPFLAGS="$am_save_CPPFLAGS"
23138     LIBICONV=
23139     LTLIBICONV=
23140   fi
23141   
23142   
23143
23144           
23145                                                   
23146   
23147     use_additional=yes
23148   
23149   acl_save_prefix="$prefix"
23150   prefix="$acl_final_prefix"
23151   acl_save_exec_prefix="$exec_prefix"
23152   exec_prefix="$acl_final_exec_prefix"
23153   
23154     eval additional_includedir=\"$includedir\"
23155     eval additional_libdir=\"$libdir\"
23156   
23157   exec_prefix="$acl_save_exec_prefix"
23158   prefix="$acl_save_prefix"
23159
23160   
23161 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
23162 if test "${with_libintl_prefix+set}" = set; then
23163   withval="$with_libintl_prefix"
23164   
23165     if test "X$withval" = "Xno"; then
23166       use_additional=no
23167     else
23168       if test "X$withval" = "X"; then
23169         
23170   acl_save_prefix="$prefix"
23171   prefix="$acl_final_prefix"
23172   acl_save_exec_prefix="$exec_prefix"
23173   exec_prefix="$acl_final_exec_prefix"
23174   
23175           eval additional_includedir=\"$includedir\"
23176           eval additional_libdir=\"$libdir\"
23177         
23178   exec_prefix="$acl_save_exec_prefix"
23179   prefix="$acl_save_prefix"
23180
23181       else
23182         additional_includedir="$withval/include"
23183         additional_libdir="$withval/lib"
23184       fi
23185     fi
23186
23187 fi; 
23188       LIBINTL=
23189   LTLIBINTL=
23190   INCINTL=
23191   rpathdirs=
23192   ltrpathdirs=
23193   names_already_handled=
23194   names_next_round='intl '
23195   while test -n "$names_next_round"; do
23196     names_this_round="$names_next_round"
23197     names_next_round=
23198     for name in $names_this_round; do
23199       already_handled=
23200       for n in $names_already_handled; do
23201         if test "$n" = "$name"; then
23202           already_handled=yes
23203           break
23204         fi
23205       done
23206       if test -z "$already_handled"; then
23207         names_already_handled="$names_already_handled $name"
23208                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23209         eval value=\"\$HAVE_LIB$uppername\"
23210         if test -n "$value"; then
23211           if test "$value" = yes; then
23212             eval value=\"\$LIB$uppername\"
23213             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23214             eval value=\"\$LTLIB$uppername\"
23215             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23216           else
23217                                     :
23218           fi
23219         else
23220                               found_dir=
23221           found_la=
23222           found_so=
23223           found_a=
23224           if test $use_additional = yes; then
23225             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23226               found_dir="$additional_libdir"
23227               found_so="$additional_libdir/lib$name.$shlibext"
23228               if test -f "$additional_libdir/lib$name.la"; then
23229                 found_la="$additional_libdir/lib$name.la"
23230               fi
23231             else
23232               if test -f "$additional_libdir/lib$name.$libext"; then
23233                 found_dir="$additional_libdir"
23234                 found_a="$additional_libdir/lib$name.$libext"
23235                 if test -f "$additional_libdir/lib$name.la"; then
23236                   found_la="$additional_libdir/lib$name.la"
23237                 fi
23238               fi
23239             fi
23240           fi
23241           if test "X$found_dir" = "X"; then
23242             for x in $LDFLAGS $LTLIBINTL; do
23243               
23244   acl_save_prefix="$prefix"
23245   prefix="$acl_final_prefix"
23246   acl_save_exec_prefix="$exec_prefix"
23247   exec_prefix="$acl_final_exec_prefix"
23248   eval x=\"$x\"
23249   exec_prefix="$acl_save_exec_prefix"
23250   prefix="$acl_save_prefix"
23251
23252               case "$x" in
23253                 -L*)
23254                   dir=`echo "X$x" | sed -e 's/^X-L//'`
23255                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23256                     found_dir="$dir"
23257                     found_so="$dir/lib$name.$shlibext"
23258                     if test -f "$dir/lib$name.la"; then
23259                       found_la="$dir/lib$name.la"
23260                     fi
23261                   else
23262                     if test -f "$dir/lib$name.$libext"; then
23263                       found_dir="$dir"
23264                       found_a="$dir/lib$name.$libext"
23265                       if test -f "$dir/lib$name.la"; then
23266                         found_la="$dir/lib$name.la"
23267                       fi
23268                     fi
23269                   fi
23270                   ;;
23271               esac
23272               if test "X$found_dir" != "X"; then
23273                 break
23274               fi
23275             done
23276           fi
23277           if test "X$found_dir" != "X"; then
23278                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
23279             if test "X$found_so" != "X"; then
23280                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
23281                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23282               else
23283                                                                                 haveit=
23284                 for x in $ltrpathdirs; do
23285                   if test "X$x" = "X$found_dir"; then
23286                     haveit=yes
23287                     break
23288                   fi
23289                 done
23290                 if test -z "$haveit"; then
23291                   ltrpathdirs="$ltrpathdirs $found_dir"
23292                 fi
23293                                 if test "$hardcode_direct" = yes; then
23294                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23295                 else
23296                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
23297                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23298                                                             haveit=
23299                     for x in $rpathdirs; do
23300                       if test "X$x" = "X$found_dir"; then
23301                         haveit=yes
23302                         break
23303                       fi
23304                     done
23305                     if test -z "$haveit"; then
23306                       rpathdirs="$rpathdirs $found_dir"
23307                     fi
23308                   else
23309                                                                                 haveit=
23310                     for x in $LDFLAGS $LIBINTL; do
23311                       
23312   acl_save_prefix="$prefix"
23313   prefix="$acl_final_prefix"
23314   acl_save_exec_prefix="$exec_prefix"
23315   exec_prefix="$acl_final_exec_prefix"
23316   eval x=\"$x\"
23317   exec_prefix="$acl_save_exec_prefix"
23318   prefix="$acl_save_prefix"
23319
23320                       if test "X$x" = "X-L$found_dir"; then
23321                         haveit=yes
23322                         break
23323                       fi
23324                     done
23325                     if test -z "$haveit"; then
23326                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
23327                     fi
23328                     if test "$hardcode_minus_L" != no; then
23329                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23330                     else
23331                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23332                     fi
23333                   fi
23334                 fi
23335               fi
23336             else
23337               if test "X$found_a" != "X"; then
23338                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
23339               else
23340                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
23341               fi
23342             fi
23343                         additional_includedir=
23344             case "$found_dir" in
23345               */lib | */lib/)
23346                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
23347                 additional_includedir="$basedir/include"
23348                 ;;
23349             esac
23350             if test "X$additional_includedir" != "X"; then
23351                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
23352                 haveit=
23353                 if test "X$additional_includedir" = "X/usr/local/include"; then
23354                   if test -n "$GCC"; then
23355                     case $host_os in
23356                       linux*) haveit=yes;;
23357                     esac
23358                   fi
23359                 fi
23360                 if test -z "$haveit"; then
23361                   for x in $CPPFLAGS $INCINTL; do
23362                     
23363   acl_save_prefix="$prefix"
23364   prefix="$acl_final_prefix"
23365   acl_save_exec_prefix="$exec_prefix"
23366   exec_prefix="$acl_final_exec_prefix"
23367   eval x=\"$x\"
23368   exec_prefix="$acl_save_exec_prefix"
23369   prefix="$acl_save_prefix"
23370
23371                     if test "X$x" = "X-I$additional_includedir"; then
23372                       haveit=yes
23373                       break
23374                     fi
23375                   done
23376                   if test -z "$haveit"; then
23377                     if test -d "$additional_includedir"; then
23378                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
23379                     fi
23380                   fi
23381                 fi
23382               fi
23383             fi
23384                         if test -n "$found_la"; then
23385                                                         save_libdir="$libdir"
23386               case "$found_la" in
23387                 */* | *\\*) . "$found_la" ;;
23388                 *) . "./$found_la" ;;
23389               esac
23390               libdir="$save_libdir"
23391                             for dep in $dependency_libs; do
23392                 case "$dep" in
23393                   -L*)
23394                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23395                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
23396                       haveit=
23397                       if test "X$additional_libdir" = "X/usr/local/lib"; then
23398                         if test -n "$GCC"; then
23399                           case $host_os in
23400                             linux*) haveit=yes;;
23401                           esac
23402                         fi
23403                       fi
23404                       if test -z "$haveit"; then
23405                         haveit=
23406                         for x in $LDFLAGS $LIBINTL; do
23407                           
23408   acl_save_prefix="$prefix"
23409   prefix="$acl_final_prefix"
23410   acl_save_exec_prefix="$exec_prefix"
23411   exec_prefix="$acl_final_exec_prefix"
23412   eval x=\"$x\"
23413   exec_prefix="$acl_save_exec_prefix"
23414   prefix="$acl_save_prefix"
23415
23416                           if test "X$x" = "X-L$additional_libdir"; then
23417                             haveit=yes
23418                             break
23419                           fi
23420                         done
23421                         if test -z "$haveit"; then
23422                           if test -d "$additional_libdir"; then
23423                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
23424                           fi
23425                         fi
23426                         haveit=
23427                         for x in $LDFLAGS $LTLIBINTL; do
23428                           
23429   acl_save_prefix="$prefix"
23430   prefix="$acl_final_prefix"
23431   acl_save_exec_prefix="$exec_prefix"
23432   exec_prefix="$acl_final_exec_prefix"
23433   eval x=\"$x\"
23434   exec_prefix="$acl_save_exec_prefix"
23435   prefix="$acl_save_prefix"
23436
23437                           if test "X$x" = "X-L$additional_libdir"; then
23438                             haveit=yes
23439                             break
23440                           fi
23441                         done
23442                         if test -z "$haveit"; then
23443                           if test -d "$additional_libdir"; then
23444                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
23445                           fi
23446                         fi
23447                       fi
23448                     fi
23449                     ;;
23450                   -R*)
23451                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
23452                     if test "$enable_rpath" != no; then
23453                                                                   haveit=
23454                       for x in $rpathdirs; do
23455                         if test "X$x" = "X$dir"; then
23456                           haveit=yes
23457                           break
23458                         fi
23459                       done
23460                       if test -z "$haveit"; then
23461                         rpathdirs="$rpathdirs $dir"
23462                       fi
23463                                                                   haveit=
23464                       for x in $ltrpathdirs; do
23465                         if test "X$x" = "X$dir"; then
23466                           haveit=yes
23467                           break
23468                         fi
23469                       done
23470                       if test -z "$haveit"; then
23471                         ltrpathdirs="$ltrpathdirs $dir"
23472                       fi
23473                     fi
23474                     ;;
23475                   -l*)
23476                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23477                     ;;
23478                   *.la)
23479                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23480                     ;;
23481                   *)
23482                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
23483                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
23484                     ;;
23485                 esac
23486               done
23487             fi
23488           else
23489                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23490             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
23491           fi
23492         fi
23493       fi
23494     done
23495   done
23496   if test "X$rpathdirs" != "X"; then
23497     if test -n "$hardcode_libdir_separator"; then
23498                         alldirs=
23499       for found_dir in $rpathdirs; do
23500         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23501       done
23502             acl_save_libdir="$libdir"
23503       libdir="$alldirs"
23504       eval flag=\"$hardcode_libdir_flag_spec\"
23505       libdir="$acl_save_libdir"
23506       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23507     else
23508             for found_dir in $rpathdirs; do
23509         acl_save_libdir="$libdir"
23510         libdir="$found_dir"
23511         eval flag=\"$hardcode_libdir_flag_spec\"
23512         libdir="$acl_save_libdir"
23513         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23514       done
23515     fi
23516   fi
23517   if test "X$ltrpathdirs" != "X"; then
23518             for found_dir in $ltrpathdirs; do
23519       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
23520     done
23521   fi
23522
23523           echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
23524 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
23525 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
23526   echo $ECHO_N "(cached) $ECHO_C" >&6
23527 else
23528   gt_save_CPPFLAGS="$CPPFLAGS"
23529             CPPFLAGS="$CPPFLAGS $INCINTL"
23530             gt_save_LIBS="$LIBS"
23531             LIBS="$LIBS $LIBINTL"
23532                         cat >conftest.$ac_ext <<_ACEOF
23533 /* confdefs.h.  */
23534 _ACEOF
23535 cat confdefs.h >>conftest.$ac_ext
23536 cat >>conftest.$ac_ext <<_ACEOF
23537 /* end confdefs.h.  */
23538 #include <libintl.h>
23539 extern int _nl_msg_cat_cntr;
23540 extern
23541 #ifdef __cplusplus
23542 "C"
23543 #endif
23544 const char *_nl_expand_alias ();
23545 int
23546 main ()
23547 {
23548 bindtextdomain ("", "");
23549 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
23550   ;
23551   return 0;
23552 }
23553 _ACEOF
23554 rm -f conftest.$ac_objext conftest$ac_exeext
23555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23556   (eval $ac_link) 2>conftest.er1
23557   ac_status=$?
23558   grep -v '^ *+' conftest.er1 >conftest.err
23559   rm -f conftest.er1
23560   cat conftest.err >&5
23561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23562   (exit $ac_status); } &&
23563          { ac_try='test -z "$ac_c_werror_flag"
23564                          || test ! -s conftest.err'
23565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23566   (eval $ac_try) 2>&5
23567   ac_status=$?
23568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23569   (exit $ac_status); }; } &&
23570          { ac_try='test -s conftest$ac_exeext'
23571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23572   (eval $ac_try) 2>&5
23573   ac_status=$?
23574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23575   (exit $ac_status); }; }; then
23576   gt_cv_func_gnugettext2_libintl=yes
23577 else
23578   echo "$as_me: failed program was:" >&5
23579 sed 's/^/| /' conftest.$ac_ext >&5
23580
23581 gt_cv_func_gnugettext2_libintl=no
23582 fi
23583 rm -f conftest.err conftest.$ac_objext \
23584       conftest$ac_exeext conftest.$ac_ext
23585                         if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
23586               LIBS="$LIBS $LIBICONV"
23587               cat >conftest.$ac_ext <<_ACEOF
23588 /* confdefs.h.  */
23589 _ACEOF
23590 cat confdefs.h >>conftest.$ac_ext
23591 cat >>conftest.$ac_ext <<_ACEOF
23592 /* end confdefs.h.  */
23593 #include <libintl.h>
23594 extern int _nl_msg_cat_cntr;
23595 extern
23596 #ifdef __cplusplus
23597 "C"
23598 #endif
23599 const char *_nl_expand_alias ();
23600 int
23601 main ()
23602 {
23603 bindtextdomain ("", "");
23604 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
23605   ;
23606   return 0;
23607 }
23608 _ACEOF
23609 rm -f conftest.$ac_objext conftest$ac_exeext
23610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23611   (eval $ac_link) 2>conftest.er1
23612   ac_status=$?
23613   grep -v '^ *+' conftest.er1 >conftest.err
23614   rm -f conftest.er1
23615   cat conftest.err >&5
23616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23617   (exit $ac_status); } &&
23618          { ac_try='test -z "$ac_c_werror_flag"
23619                          || test ! -s conftest.err'
23620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23621   (eval $ac_try) 2>&5
23622   ac_status=$?
23623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23624   (exit $ac_status); }; } &&
23625          { ac_try='test -s conftest$ac_exeext'
23626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23627   (eval $ac_try) 2>&5
23628   ac_status=$?
23629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23630   (exit $ac_status); }; }; then
23631   LIBINTL="$LIBINTL $LIBICONV"
23632                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
23633                 gt_cv_func_gnugettext2_libintl=yes
23634                
23635 else
23636   echo "$as_me: failed program was:" >&5
23637 sed 's/^/| /' conftest.$ac_ext >&5
23638
23639 fi
23640 rm -f conftest.err conftest.$ac_objext \
23641       conftest$ac_exeext conftest.$ac_ext
23642             fi
23643             CPPFLAGS="$gt_save_CPPFLAGS"
23644             LIBS="$gt_save_LIBS"
23645 fi
23646 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
23647 echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
23648         fi
23649
23650                                         if test "$gt_cv_func_gnugettext2_libc" = "yes" \
23651            || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
23652                 && test "$PACKAGE" != gettext-runtime \
23653                 && test "$PACKAGE" != gettext-tools; }; then
23654           gt_use_preinstalled_gnugettext=yes
23655         else
23656                     LIBINTL=
23657           LTLIBINTL=
23658           INCINTL=
23659         fi
23660
23661     
23662
23663     if test "$gt_use_preinstalled_gnugettext" = "yes" \
23664        || test "$nls_cv_use_gnu_gettext" = "yes"; then
23665       
23666 cat >>confdefs.h <<\_ACEOF
23667 @%:@define ENABLE_NLS 1
23668 _ACEOF
23669
23670     else
23671       USE_NLS=no
23672     fi
23673   fi
23674
23675   echo "$as_me:$LINENO: checking whether to use NLS" >&5
23676 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
23677   echo "$as_me:$LINENO: result: $USE_NLS" >&5
23678 echo "${ECHO_T}$USE_NLS" >&6
23679   if test "$USE_NLS" = "yes"; then
23680     echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
23681 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
23682     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23683       if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
23684         gt_source="external libintl"
23685       else
23686         gt_source="libc"
23687       fi
23688     else
23689       gt_source="included intl directory"
23690     fi
23691     echo "$as_me:$LINENO: result: $gt_source" >&5
23692 echo "${ECHO_T}$gt_source" >&6
23693   fi
23694
23695   if test "$USE_NLS" = "yes"; then
23696
23697     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23698       if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
23699         echo "$as_me:$LINENO: checking how to link with libintl" >&5
23700 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
23701         echo "$as_me:$LINENO: result: $LIBINTL" >&5
23702 echo "${ECHO_T}$LIBINTL" >&6
23703         
23704   for element in $INCINTL; do
23705     haveit=
23706     for x in $CPPFLAGS; do
23707       
23708   acl_save_prefix="$prefix"
23709   prefix="$acl_final_prefix"
23710   acl_save_exec_prefix="$exec_prefix"
23711   exec_prefix="$acl_final_exec_prefix"
23712   eval x=\"$x\"
23713   exec_prefix="$acl_save_exec_prefix"
23714   prefix="$acl_save_prefix"
23715
23716       if test "X$x" = "X$element"; then
23717         haveit=yes
23718         break
23719       fi
23720     done
23721     if test -z "$haveit"; then
23722       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23723     fi
23724   done
23725
23726       fi
23727
23728             
23729 cat >>confdefs.h <<\_ACEOF
23730 @%:@define HAVE_GETTEXT 1
23731 _ACEOF
23732
23733       
23734 cat >>confdefs.h <<\_ACEOF
23735 @%:@define HAVE_DCGETTEXT 1
23736 _ACEOF
23737
23738     fi
23739
23740         POSUB=po
23741   fi
23742
23743   
23744
23745     INTLLIBS="$LIBINTL"
23746   
23747
23748     
23749   
23750   
23751
23752                         
23753 else
23754   echo "$as_me: failed program was:" >&5
23755 sed 's/^/| /' conftest.$ac_ext >&5
23756
23757 _nls_avail=no
23758 fi
23759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23760
23761
23762
23763
23764                         
23765
23766
23767
23768
23769
23770
23771
23772
23773
23774 # Check whether --with-rundir or --without-rundir was given.
23775 if test "${with_rundir+set}" = set; then
23776   withval="$with_rundir"
23777    rundir=$withval 
23778 else
23779    rundir=/usr/local/citadel  
23780 fi; 
23781
23782 cat >>confdefs.h <<_ACEOF
23783 @%:@define RUNDIR "$rundir"
23784 _ACEOF
23785
23786
23787
23788
23789 # Check whether --with-staticdir or --without-staticdir was given.
23790 if test "${with_staticdir+set}" = set; then
23791   withval="$with_staticdir"
23792    staticdir=$withval 
23793 else
23794    staticdir=$prefix  
23795 fi; 
23796
23797
23798
23799 # Check whether --with-staticrundir or --without-staticrundir was given.
23800 if test "${with_staticrundir+set}" = set; then
23801   withval="$with_staticrundir"
23802    staticrundir=$withval 
23803 else
23804    staticrundir=$staticdir  
23805 fi; 
23806
23807
23808 cat >>confdefs.h <<_ACEOF
23809 @%:@define DATADIR "$staticrundir"
23810 _ACEOF
23811
23812
23813
23814
23815 # Check whether --with-editordir or --without-editordir was given.
23816 if test "${with_editordir+set}" = set; then
23817   withval="$with_editordir"
23818    editordir=$withval 
23819 else
23820    editordir=$staticrundir  
23821 fi; 
23822
23823
23824 cat >>confdefs.h <<_ACEOF
23825 @%:@define EDITORDIR "$editordir"
23826 _ACEOF
23827
23828
23829
23830
23831                               ac_config_files="$ac_config_files Makefile src/Makefile po/Makefile.in"
23832 cat >confcache <<\_ACEOF
23833 # This file is a shell script that caches the results of configure
23834 # tests run on this system so they can be shared between configure
23835 # scripts and configure runs, see configure's option --config-cache.
23836 # It is not useful on other systems.  If it contains results you don't
23837 # want to keep, you may remove or edit it.
23838 #
23839 # config.status only pays attention to the cache file if you give it
23840 # the --recheck option to rerun configure.
23841 #
23842 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23843 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23844 # following values.
23845
23846 _ACEOF
23847
23848 # The following way of writing the cache mishandles newlines in values,
23849 # but we know of no workaround that is simple, portable, and efficient.
23850 # So, don't put newlines in cache variables' values.
23851 # Ultrix sh set writes to stderr and can't be redirected directly,
23852 # and sets the high bit in the cache file unless we assign to the vars.
23853 {
23854   (set) 2>&1 |
23855     case `(ac_space=' '; set | grep ac_space) 2>&1` in
23856     *ac_space=\ *)
23857       # `set' does not quote correctly, so add quotes (double-quote
23858       # substitution turns \\\\ into \\, and sed turns \\ into \).
23859       sed -n \
23860         "s/'/'\\\\''/g;
23861           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23862       ;;
23863     *)
23864       # `set' quotes correctly as required by POSIX, so do not add quotes.
23865       sed -n \
23866         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23867       ;;
23868     esac;
23869 } |
23870   sed '
23871      t clear
23872      : clear
23873      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23874      t end
23875      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23876      : end' >>confcache
23877 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23878   if test -w $cache_file; then
23879     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23880     cat confcache >$cache_file
23881   else
23882     echo "not updating unwritable cache $cache_file"
23883   fi
23884 fi
23885 rm -f confcache
23886
23887 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23888 # Let make expand exec_prefix.
23889 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23890
23891 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23892 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23893 # trailing colons and then remove the whole line if VPATH becomes empty
23894 # (actually we leave an empty line to preserve line numbers).
23895 if test "x$srcdir" = x.; then
23896   ac_vpsub='/^[  ]*VPATH[        ]*=/{
23897 s/:*\$(srcdir):*/:/;
23898 s/:*\${srcdir}:*/:/;
23899 s/:*@srcdir@:*/:/;
23900 s/^\([^=]*=[     ]*\):*/\1/;
23901 s/:*$//;
23902 s/^[^=]*=[       ]*$//;
23903 }'
23904 fi
23905
23906 DEFS=-DHAVE_CONFIG_H
23907
23908 ac_libobjs=
23909 ac_ltlibobjs=
23910 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
23911   # 1. Remove the extension, and $U if already installed.
23912   ac_i=`echo "$ac_i" |
23913          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23914   # 2. Add them.
23915   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23916   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23917 done
23918 LIB@&t@OBJS=$ac_libobjs
23919
23920 LTLIBOBJS=$ac_ltlibobjs
23921
23922
23923 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23924   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23925 Usually this means the macro was only invoked conditionally." >&5
23926 echo "$as_me: error: conditional \"AMDEP\" was never defined.
23927 Usually this means the macro was only invoked conditionally." >&2;}
23928    { (exit 1); exit 1; }; }
23929 fi
23930 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23931   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23932 Usually this means the macro was only invoked conditionally." >&5
23933 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23934 Usually this means the macro was only invoked conditionally." >&2;}
23935    { (exit 1); exit 1; }; }
23936 fi
23937 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23938   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23939 Usually this means the macro was only invoked conditionally." >&5
23940 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23941 Usually this means the macro was only invoked conditionally." >&2;}
23942    { (exit 1); exit 1; }; }
23943 fi
23944 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23945   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23946 Usually this means the macro was only invoked conditionally." >&5
23947 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23948 Usually this means the macro was only invoked conditionally." >&2;}
23949    { (exit 1); exit 1; }; }
23950 fi
23951
23952        mv -f po/POTFILES po/POTFILES.tmp
23953         sed -e '/[[]encoding.*]/d' -e 's/[[].*] *//' < po/POTFILES.tmp > po/POTFILES
23954         rm -f po/POTFILES.tmp
23955            
23956
23957 : ${CONFIG_STATUS=./config.status}
23958 ac_clean_files_save=$ac_clean_files
23959 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23960 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23961 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23962 cat >$CONFIG_STATUS <<_ACEOF
23963 #! $SHELL
23964 # Generated by $as_me.
23965 # Run this file to recreate the current configuration.
23966 # Compiler output produced by configure, useful for debugging
23967 # configure, is in config.log if it exists.
23968
23969 debug=false
23970 ac_cs_recheck=false
23971 ac_cs_silent=false
23972 SHELL=\${CONFIG_SHELL-$SHELL}
23973 _ACEOF
23974
23975 cat >>$CONFIG_STATUS <<\_ACEOF
23976 ## --------------------- ##
23977 ## M4sh Initialization.  ##
23978 ## --------------------- ##
23979
23980 # Be Bourne compatible
23981 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23982   emulate sh
23983   NULLCMD=:
23984   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23985   # is contrary to our usage.  Disable this feature.
23986   alias -g '${1+"$@"}'='"$@"'
23987 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23988   set -o posix
23989 fi
23990 DUALCASE=1; export DUALCASE # for MKS sh
23991
23992 # Support unset when possible.
23993 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23994   as_unset=unset
23995 else
23996   as_unset=false
23997 fi
23998
23999
24000 # Work around bugs in pre-3.0 UWIN ksh.
24001 $as_unset ENV MAIL MAILPATH
24002 PS1='$ '
24003 PS2='> '
24004 PS4='+ '
24005
24006 # NLS nuisances.
24007 for as_var in \
24008   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24009   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24010   LC_TELEPHONE LC_TIME
24011 do
24012   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24013     eval $as_var=C; export $as_var
24014   else
24015     $as_unset $as_var
24016   fi
24017 done
24018
24019 # Required to use basename.
24020 if expr a : '\(a\)' >/dev/null 2>&1; then
24021   as_expr=expr
24022 else
24023   as_expr=false
24024 fi
24025
24026 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
24027   as_basename=basename
24028 else
24029   as_basename=false
24030 fi
24031
24032
24033 # Name of the executable.
24034 as_me=`$as_basename "$0" ||
24035 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24036          X"$0" : 'X\(//\)$' \| \
24037          X"$0" : 'X\(/\)$' \| \
24038          .     : '\(.\)' 2>/dev/null ||
24039 echo X/"$0" |
24040     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24041           /^X\/\(\/\/\)$/{ s//\1/; q; }
24042           /^X\/\(\/\).*/{ s//\1/; q; }
24043           s/.*/./; q'`
24044
24045
24046 # PATH needs CR, and LINENO needs CR and PATH.
24047 # Avoid depending upon Character Ranges.
24048 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24049 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24050 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24051 as_cr_digits='0123456789'
24052 as_cr_alnum=$as_cr_Letters$as_cr_digits
24053
24054 # The user is always right.
24055 if test "${PATH_SEPARATOR+set}" != set; then
24056   echo "#! /bin/sh" >conf$$.sh
24057   echo  "exit 0"   >>conf$$.sh
24058   chmod +x conf$$.sh
24059   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24060     PATH_SEPARATOR=';'
24061   else
24062     PATH_SEPARATOR=:
24063   fi
24064   rm -f conf$$.sh
24065 fi
24066
24067
24068   as_lineno_1=$LINENO
24069   as_lineno_2=$LINENO
24070   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24071   test "x$as_lineno_1" != "x$as_lineno_2" &&
24072   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
24073   # Find who we are.  Look in the path if we contain no path at all
24074   # relative or not.
24075   case $0 in
24076     *[\\/]* ) as_myself=$0 ;;
24077     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24078 for as_dir in $PATH
24079 do
24080   IFS=$as_save_IFS
24081   test -z "$as_dir" && as_dir=.
24082   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24083 done
24084
24085        ;;
24086   esac
24087   # We did not find ourselves, most probably we were run as `sh COMMAND'
24088   # in which case we are not to be found in the path.
24089   if test "x$as_myself" = x; then
24090     as_myself=$0
24091   fi
24092   if test ! -f "$as_myself"; then
24093     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24094 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24095    { (exit 1); exit 1; }; }
24096   fi
24097   case $CONFIG_SHELL in
24098   '')
24099     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24100 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24101 do
24102   IFS=$as_save_IFS
24103   test -z "$as_dir" && as_dir=.
24104   for as_base in sh bash ksh sh5; do
24105          case $as_dir in
24106          /*)
24107            if ("$as_dir/$as_base" -c '
24108   as_lineno_1=$LINENO
24109   as_lineno_2=$LINENO
24110   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24111   test "x$as_lineno_1" != "x$as_lineno_2" &&
24112   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
24113              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24114              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24115              CONFIG_SHELL=$as_dir/$as_base
24116              export CONFIG_SHELL
24117              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24118            fi;;
24119          esac
24120        done
24121 done
24122 ;;
24123   esac
24124
24125   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24126   # uniformly replaced by the line number.  The first 'sed' inserts a
24127   # line-number line before each line; the second 'sed' does the real
24128   # work.  The second script uses 'N' to pair each line-number line
24129   # with the numbered line, and appends trailing '-' during
24130   # substitution so that $LINENO is not a special case at line end.
24131   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24132   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
24133   sed '=' <$as_myself |
24134     sed '
24135       N
24136       s,$,-,
24137       : loop
24138       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24139       t loop
24140       s,-$,,
24141       s,^['$as_cr_digits']*\n,,
24142     ' >$as_me.lineno &&
24143   chmod +x $as_me.lineno ||
24144     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24145 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24146    { (exit 1); exit 1; }; }
24147
24148   # Don't try to exec as it changes $[0], causing all sort of problems
24149   # (the dirname of $[0] is not the place where we might find the
24150   # original and so on.  Autoconf is especially sensible to this).
24151   . ./$as_me.lineno
24152   # Exit status is that of the last command.
24153   exit
24154 }
24155
24156
24157 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24158   *c*,-n*) ECHO_N= ECHO_C='
24159 ' ECHO_T='      ' ;;
24160   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24161   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
24162 esac
24163
24164 if expr a : '\(a\)' >/dev/null 2>&1; then
24165   as_expr=expr
24166 else
24167   as_expr=false
24168 fi
24169
24170 rm -f conf$$ conf$$.exe conf$$.file
24171 echo >conf$$.file
24172 if ln -s conf$$.file conf$$ 2>/dev/null; then
24173   # We could just check for DJGPP; but this test a) works b) is more generic
24174   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24175   if test -f conf$$.exe; then
24176     # Don't use ln at all; we don't have any links
24177     as_ln_s='cp -p'
24178   else
24179     as_ln_s='ln -s'
24180   fi
24181 elif ln conf$$.file conf$$ 2>/dev/null; then
24182   as_ln_s=ln
24183 else
24184   as_ln_s='cp -p'
24185 fi
24186 rm -f conf$$ conf$$.exe conf$$.file
24187
24188 if mkdir -p . 2>/dev/null; then
24189   as_mkdir_p=:
24190 else
24191   test -d ./-p && rmdir ./-p
24192   as_mkdir_p=false
24193 fi
24194
24195 as_executable_p="test -f"
24196
24197 # Sed expression to map a string onto a valid CPP name.
24198 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24199
24200 # Sed expression to map a string onto a valid variable name.
24201 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24202
24203
24204 # IFS
24205 # We need space, tab and new line, in precisely that order.
24206 as_nl='
24207 '
24208 IFS="   $as_nl"
24209
24210 # CDPATH.
24211 $as_unset CDPATH
24212
24213 exec 6>&1
24214
24215 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24216 # report actual input values of CONFIG_FILES etc. instead of their
24217 # values after options handling.  Logging --version etc. is OK.
24218 exec 5>>config.log
24219 {
24220   echo
24221   sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
24222 @%:@@%:@ Running $as_me. @%:@@%:@
24223 _ASBOX
24224 } >&5
24225 cat >&5 <<_CSEOF
24226
24227 This file was extended by webcit $as_me 6.80, which was
24228 generated by GNU Autoconf 2.59.  Invocation command line was
24229
24230   CONFIG_FILES    = $CONFIG_FILES
24231   CONFIG_HEADERS  = $CONFIG_HEADERS
24232   CONFIG_LINKS    = $CONFIG_LINKS
24233   CONFIG_COMMANDS = $CONFIG_COMMANDS
24234   $ $0 $@
24235
24236 _CSEOF
24237 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24238 echo >&5
24239 _ACEOF
24240
24241 # Files that config.status was made for.
24242 if test -n "$ac_config_files"; then
24243   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24244 fi
24245
24246 if test -n "$ac_config_headers"; then
24247   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24248 fi
24249
24250 if test -n "$ac_config_links"; then
24251   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24252 fi
24253
24254 if test -n "$ac_config_commands"; then
24255   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24256 fi
24257
24258 cat >>$CONFIG_STATUS <<\_ACEOF
24259
24260 ac_cs_usage="\
24261 \`$as_me' instantiates files from templates according to the
24262 current configuration.
24263
24264 Usage: $0 [OPTIONS] [FILE]...
24265
24266   -h, --help       print this help, then exit
24267   -V, --version    print version number, then exit
24268   -q, --quiet      do not print progress messages
24269   -d, --debug      don't remove temporary files
24270       --recheck    update $as_me by reconfiguring in the same conditions
24271   --file=FILE[:TEMPLATE]
24272                    instantiate the configuration file FILE
24273   --header=FILE[:TEMPLATE]
24274                    instantiate the configuration header FILE
24275
24276 Configuration files:
24277 $config_files
24278
24279 Configuration headers:
24280 $config_headers
24281
24282 Configuration commands:
24283 $config_commands
24284
24285 Report bugs to <bug-autoconf@gnu.org>."
24286 _ACEOF
24287
24288 cat >>$CONFIG_STATUS <<_ACEOF
24289 ac_cs_version="\\
24290 webcit config.status 6.80
24291 configured by $0, generated by GNU Autoconf 2.59,
24292   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24293
24294 Copyright (C) 2003 Free Software Foundation, Inc.
24295 This config.status script is free software; the Free Software Foundation
24296 gives unlimited permission to copy, distribute and modify it."
24297 srcdir=$srcdir
24298 INSTALL="$INSTALL"
24299 _ACEOF
24300
24301 cat >>$CONFIG_STATUS <<\_ACEOF
24302 # If no file are specified by the user, then we need to provide default
24303 # value.  By we need to know if files were specified by the user.
24304 ac_need_defaults=:
24305 while test $# != 0
24306 do
24307   case $1 in
24308   --*=*)
24309     ac_option=`expr "x$1" : 'x\([^=]*\)='`
24310     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24311     ac_shift=:
24312     ;;
24313   -*)
24314     ac_option=$1
24315     ac_optarg=$2
24316     ac_shift=shift
24317     ;;
24318   *) # This is not an option, so the user has probably given explicit
24319      # arguments.
24320      ac_option=$1
24321      ac_need_defaults=false;;
24322   esac
24323
24324   case $ac_option in
24325   # Handling of the options.
24326 _ACEOF
24327 cat >>$CONFIG_STATUS <<\_ACEOF
24328   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24329     ac_cs_recheck=: ;;
24330   --version | --vers* | -V )
24331     echo "$ac_cs_version"; exit 0 ;;
24332   --he | --h)
24333     # Conflict between --help and --header
24334     { { echo "$as_me:$LINENO: error: ambiguous option: $1
24335 Try \`$0 --help' for more information." >&5
24336 echo "$as_me: error: ambiguous option: $1
24337 Try \`$0 --help' for more information." >&2;}
24338    { (exit 1); exit 1; }; };;
24339   --help | --hel | -h )
24340     echo "$ac_cs_usage"; exit 0 ;;
24341   --debug | --d* | -d )
24342     debug=: ;;
24343   --file | --fil | --fi | --f )
24344     $ac_shift
24345     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24346     ac_need_defaults=false;;
24347   --header | --heade | --head | --hea )
24348     $ac_shift
24349     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24350     ac_need_defaults=false;;
24351   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24352   | -silent | --silent | --silen | --sile | --sil | --si | --s)
24353     ac_cs_silent=: ;;
24354
24355   # This is an error.
24356   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24357 Try \`$0 --help' for more information." >&5
24358 echo "$as_me: error: unrecognized option: $1
24359 Try \`$0 --help' for more information." >&2;}
24360    { (exit 1); exit 1; }; } ;;
24361
24362   *) ac_config_targets="$ac_config_targets $1" ;;
24363
24364   esac
24365   shift
24366 done
24367
24368 ac_configure_extra_args=
24369
24370 if $ac_cs_silent; then
24371   exec 6>/dev/null
24372   ac_configure_extra_args="$ac_configure_extra_args --silent"
24373 fi
24374
24375 _ACEOF
24376 cat >>$CONFIG_STATUS <<_ACEOF
24377 if \$ac_cs_recheck; then
24378   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24379   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24380 fi
24381
24382 _ACEOF
24383
24384 cat >>$CONFIG_STATUS <<_ACEOF
24385 #
24386 # INIT-COMMANDS section.
24387 #
24388
24389 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24390 INTLTOOL_PERL='${INTLTOOL_PERL}' ac_aux_dir=${ac_aux_dir}
24391 INTLTOOL_EXTRACT='${INTLTOOL_EXTRACT}' ICONV='${INTLTOOL_ICONV}'
24392 MSGFMT='${INTLTOOL_MSGFMT}' MSGMERGE='${INTLTOOL_MSGMERGE}'
24393 XGETTEXT='${INTLTOOL_XGETTEXT}'
24394 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
24395     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
24396     # from automake.
24397     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
24398     # Capture the value of LINGUAS because we need it to compute CATALOGS.
24399     LINGUAS="${LINGUAS-%UNSET%}"
24400    
24401
24402 _ACEOF
24403
24404
24405
24406 cat >>$CONFIG_STATUS <<\_ACEOF
24407 for ac_config_target in $ac_config_targets
24408 do
24409   case "$ac_config_target" in
24410   # Handling of arguments.
24411   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24412   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
24413   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
24414   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24415   "intltool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS intltool" ;;
24416   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
24417   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
24418   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24419 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24420    { (exit 1); exit 1; }; };;
24421   esac
24422 done
24423
24424 # If the user did not use the arguments to specify the items to instantiate,
24425 # then the envvar interface is used.  Set only those that are not.
24426 # We use the long form for the default assignment because of an extremely
24427 # bizarre bug on SunOS 4.1.3.
24428 if $ac_need_defaults; then
24429   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24430   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24431   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24432 fi
24433
24434 # Have a temporary directory for convenience.  Make it in the build tree
24435 # simply because there is no reason to put it here, and in addition,
24436 # creating and moving files from /tmp can sometimes cause problems.
24437 # Create a temporary directory, and hook for its removal unless debugging.
24438 $debug ||
24439 {
24440   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24441   trap '{ (exit 1); exit 1; }' 1 2 13 15
24442 }
24443
24444 # Create a (secure) tmp directory for tmp files.
24445
24446 {
24447   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24448   test -n "$tmp" && test -d "$tmp"
24449 }  ||
24450 {
24451   tmp=./confstat$$-$RANDOM
24452   (umask 077 && mkdir $tmp)
24453 } ||
24454 {
24455    echo "$me: cannot create a temporary directory in ." >&2
24456    { (exit 1); exit 1; }
24457 }
24458
24459 _ACEOF
24460
24461 cat >>$CONFIG_STATUS <<_ACEOF
24462
24463 #
24464 # CONFIG_FILES section.
24465 #
24466
24467 # No need to generate the scripts if there are no CONFIG_FILES.
24468 # This happens for instance when ./config.status config.h
24469 if test -n "\$CONFIG_FILES"; then
24470   # Protect against being on the right side of a sed subst in config.status.
24471   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24472    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24473 s,@SHELL@,$SHELL,;t t
24474 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24475 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24476 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24477 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24478 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24479 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24480 s,@exec_prefix@,$exec_prefix,;t t
24481 s,@prefix@,$prefix,;t t
24482 s,@program_transform_name@,$program_transform_name,;t t
24483 s,@bindir@,$bindir,;t t
24484 s,@sbindir@,$sbindir,;t t
24485 s,@libexecdir@,$libexecdir,;t t
24486 s,@datadir@,$datadir,;t t
24487 s,@sysconfdir@,$sysconfdir,;t t
24488 s,@sharedstatedir@,$sharedstatedir,;t t
24489 s,@localstatedir@,$localstatedir,;t t
24490 s,@libdir@,$libdir,;t t
24491 s,@includedir@,$includedir,;t t
24492 s,@oldincludedir@,$oldincludedir,;t t
24493 s,@infodir@,$infodir,;t t
24494 s,@mandir@,$mandir,;t t
24495 s,@build_alias@,$build_alias,;t t
24496 s,@host_alias@,$host_alias,;t t
24497 s,@target_alias@,$target_alias,;t t
24498 s,@DEFS@,$DEFS,;t t
24499 s,@ECHO_C@,$ECHO_C,;t t
24500 s,@ECHO_N@,$ECHO_N,;t t
24501 s,@ECHO_T@,$ECHO_T,;t t
24502 s,@LIBS@,$LIBS,;t t
24503 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24504 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24505 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24506 s,@CYGPATH_W@,$CYGPATH_W,;t t
24507 s,@PACKAGE@,$PACKAGE,;t t
24508 s,@VERSION@,$VERSION,;t t
24509 s,@ACLOCAL@,$ACLOCAL,;t t
24510 s,@AUTOCONF@,$AUTOCONF,;t t
24511 s,@AUTOMAKE@,$AUTOMAKE,;t t
24512 s,@AUTOHEADER@,$AUTOHEADER,;t t
24513 s,@MAKEINFO@,$MAKEINFO,;t t
24514 s,@install_sh@,$install_sh,;t t
24515 s,@STRIP@,$STRIP,;t t
24516 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24517 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
24518 s,@mkdir_p@,$mkdir_p,;t t
24519 s,@AWK@,$AWK,;t t
24520 s,@SET_MAKE@,$SET_MAKE,;t t
24521 s,@am__leading_dot@,$am__leading_dot,;t t
24522 s,@AMTAR@,$AMTAR,;t t
24523 s,@am__tar@,$am__tar,;t t
24524 s,@am__untar@,$am__untar,;t t
24525 s,@build@,$build,;t t
24526 s,@build_cpu@,$build_cpu,;t t
24527 s,@build_vendor@,$build_vendor,;t t
24528 s,@build_os@,$build_os,;t t
24529 s,@host@,$host,;t t
24530 s,@host_cpu@,$host_cpu,;t t
24531 s,@host_vendor@,$host_vendor,;t t
24532 s,@host_os@,$host_os,;t t
24533 s,@CC@,$CC,;t t
24534 s,@CFLAGS@,$CFLAGS,;t t
24535 s,@LDFLAGS@,$LDFLAGS,;t t
24536 s,@CPPFLAGS@,$CPPFLAGS,;t t
24537 s,@ac_ct_CC@,$ac_ct_CC,;t t
24538 s,@EXEEXT@,$EXEEXT,;t t
24539 s,@OBJEXT@,$OBJEXT,;t t
24540 s,@DEPDIR@,$DEPDIR,;t t
24541 s,@am__include@,$am__include,;t t
24542 s,@am__quote@,$am__quote,;t t
24543 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
24544 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
24545 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
24546 s,@CCDEPMODE@,$CCDEPMODE,;t t
24547 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
24548 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
24549 s,@EGREP@,$EGREP,;t t
24550 s,@LN_S@,$LN_S,;t t
24551 s,@ECHO@,$ECHO,;t t
24552 s,@AR@,$AR,;t t
24553 s,@ac_ct_AR@,$ac_ct_AR,;t t
24554 s,@RANLIB@,$RANLIB,;t t
24555 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24556 s,@CPP@,$CPP,;t t
24557 s,@CXX@,$CXX,;t t
24558 s,@CXXFLAGS@,$CXXFLAGS,;t t
24559 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24560 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
24561 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
24562 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
24563 s,@CXXCPP@,$CXXCPP,;t t
24564 s,@F77@,$F77,;t t
24565 s,@FFLAGS@,$FFLAGS,;t t
24566 s,@ac_ct_F77@,$ac_ct_F77,;t t
24567 s,@LIBTOOL@,$LIBTOOL,;t t
24568 s,@PROG_SUBDIRS@,$PROG_SUBDIRS,;t t
24569 s,@SED@,$SED,;t t
24570 s,@PTHREAD_DEFS@,$PTHREAD_DEFS,;t t
24571 s,@LIB@&t@OBJS@,$LIB@&t@OBJS,;t t
24572 s,@INTLTOOL_DESKTOP_RULE@,$INTLTOOL_DESKTOP_RULE,;t t
24573 s,@INTLTOOL_DIRECTORY_RULE@,$INTLTOOL_DIRECTORY_RULE,;t t
24574 s,@INTLTOOL_KEYS_RULE@,$INTLTOOL_KEYS_RULE,;t t
24575 s,@INTLTOOL_PROP_RULE@,$INTLTOOL_PROP_RULE,;t t
24576 s,@INTLTOOL_OAF_RULE@,$INTLTOOL_OAF_RULE,;t t
24577 s,@INTLTOOL_PONG_RULE@,$INTLTOOL_PONG_RULE,;t t
24578 s,@INTLTOOL_SERVER_RULE@,$INTLTOOL_SERVER_RULE,;t t
24579 s,@INTLTOOL_SHEET_RULE@,$INTLTOOL_SHEET_RULE,;t t
24580 s,@INTLTOOL_SOUNDLIST_RULE@,$INTLTOOL_SOUNDLIST_RULE,;t t
24581 s,@INTLTOOL_UI_RULE@,$INTLTOOL_UI_RULE,;t t
24582 s,@INTLTOOL_XAM_RULE@,$INTLTOOL_XAM_RULE,;t t
24583 s,@INTLTOOL_KBD_RULE@,$INTLTOOL_KBD_RULE,;t t
24584 s,@INTLTOOL_XML_RULE@,$INTLTOOL_XML_RULE,;t t
24585 s,@INTLTOOL_XML_NOMERGE_RULE@,$INTLTOOL_XML_NOMERGE_RULE,;t t
24586 s,@INTLTOOL_CAVES_RULE@,$INTLTOOL_CAVES_RULE,;t t
24587 s,@INTLTOOL_SCHEMAS_RULE@,$INTLTOOL_SCHEMAS_RULE,;t t
24588 s,@INTLTOOL_THEME_RULE@,$INTLTOOL_THEME_RULE,;t t
24589 s,@INTLTOOL_EXTRACT@,$INTLTOOL_EXTRACT,;t t
24590 s,@INTLTOOL_MERGE@,$INTLTOOL_MERGE,;t t
24591 s,@INTLTOOL_UPDATE@,$INTLTOOL_UPDATE,;t t
24592 s,@INTLTOOL_PERL@,$INTLTOOL_PERL,;t t
24593 s,@INTLTOOL_ICONV@,$INTLTOOL_ICONV,;t t
24594 s,@INTLTOOL_MSGFMT@,$INTLTOOL_MSGFMT,;t t
24595 s,@INTLTOOL_MSGMERGE@,$INTLTOOL_MSGMERGE,;t t
24596 s,@INTLTOOL_XGETTEXT@,$INTLTOOL_XGETTEXT,;t t
24597 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
24598 s,@USE_NLS@,$USE_NLS,;t t
24599 s,@MSGFMT@,$MSGFMT,;t t
24600 s,@GMSGFMT@,$GMSGFMT,;t t
24601 s,@XGETTEXT@,$XGETTEXT,;t t
24602 s,@MSGMERGE@,$MSGMERGE,;t t
24603 s,@LIBICONV@,$LIBICONV,;t t
24604 s,@LTLIBICONV@,$LTLIBICONV,;t t
24605 s,@INTLLIBS@,$INTLLIBS,;t t
24606 s,@LIBINTL@,$LIBINTL,;t t
24607 s,@LTLIBINTL@,$LTLIBINTL,;t t
24608 s,@POSUB@,$POSUB,;t t
24609 s,@SETUP_LIBS@,$SETUP_LIBS,;t t
24610 s,@staticdir@,$staticdir,;t t
24611 s,@editordir@,$editordir,;t t
24612 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24613 CEOF
24614
24615 _ACEOF
24616
24617   cat >>$CONFIG_STATUS <<\_ACEOF
24618   # Split the substitutions into bite-sized pieces for seds with
24619   # small command number limits, like on Digital OSF/1 and HP-UX.
24620   ac_max_sed_lines=48
24621   ac_sed_frag=1 # Number of current file.
24622   ac_beg=1 # First line for current file.
24623   ac_end=$ac_max_sed_lines # Line after last line for current file.
24624   ac_more_lines=:
24625   ac_sed_cmds=
24626   while $ac_more_lines; do
24627     if test $ac_beg -gt 1; then
24628       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24629     else
24630       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24631     fi
24632     if test ! -s $tmp/subs.frag; then
24633       ac_more_lines=false
24634     else
24635       # The purpose of the label and of the branching condition is to
24636       # speed up the sed processing (if there are no `@' at all, there
24637       # is no need to browse any of the substitutions).
24638       # These are the two extra sed commands mentioned above.
24639       (echo ':t
24640   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24641       if test -z "$ac_sed_cmds"; then
24642         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24643       else
24644         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24645       fi
24646       ac_sed_frag=`expr $ac_sed_frag + 1`
24647       ac_beg=$ac_end
24648       ac_end=`expr $ac_end + $ac_max_sed_lines`
24649     fi
24650   done
24651   if test -z "$ac_sed_cmds"; then
24652     ac_sed_cmds=cat
24653   fi
24654 fi # test -n "$CONFIG_FILES"
24655
24656 _ACEOF
24657 cat >>$CONFIG_STATUS <<\_ACEOF
24658 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24659   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24660   case $ac_file in
24661   - | *:- | *:-:* ) # input from stdin
24662         cat >$tmp/stdin
24663         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24664         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24665   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24666         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24667   * )   ac_file_in=$ac_file.in ;;
24668   esac
24669
24670   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24671   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24672 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24673          X"$ac_file" : 'X\(//\)[^/]' \| \
24674          X"$ac_file" : 'X\(//\)$' \| \
24675          X"$ac_file" : 'X\(/\)' \| \
24676          .     : '\(.\)' 2>/dev/null ||
24677 echo X"$ac_file" |
24678     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24679           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24680           /^X\(\/\/\)$/{ s//\1/; q; }
24681           /^X\(\/\).*/{ s//\1/; q; }
24682           s/.*/./; q'`
24683   { if $as_mkdir_p; then
24684     mkdir -p "$ac_dir"
24685   else
24686     as_dir="$ac_dir"
24687     as_dirs=
24688     while test ! -d "$as_dir"; do
24689       as_dirs="$as_dir $as_dirs"
24690       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24691 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24692          X"$as_dir" : 'X\(//\)[^/]' \| \
24693          X"$as_dir" : 'X\(//\)$' \| \
24694          X"$as_dir" : 'X\(/\)' \| \
24695          .     : '\(.\)' 2>/dev/null ||
24696 echo X"$as_dir" |
24697     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24698           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24699           /^X\(\/\/\)$/{ s//\1/; q; }
24700           /^X\(\/\).*/{ s//\1/; q; }
24701           s/.*/./; q'`
24702     done
24703     test ! -n "$as_dirs" || mkdir $as_dirs
24704   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24705 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24706    { (exit 1); exit 1; }; }; }
24707
24708   ac_builddir=.
24709
24710 if test "$ac_dir" != .; then
24711   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24712   # A "../" for each directory in $ac_dir_suffix.
24713   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24714 else
24715   ac_dir_suffix= ac_top_builddir=
24716 fi
24717
24718 case $srcdir in
24719   .)  # No --srcdir option.  We are building in place.
24720     ac_srcdir=.
24721     if test -z "$ac_top_builddir"; then
24722        ac_top_srcdir=.
24723     else
24724        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24725     fi ;;
24726   [\\/]* | ?:[\\/]* )  # Absolute path.
24727     ac_srcdir=$srcdir$ac_dir_suffix;
24728     ac_top_srcdir=$srcdir ;;
24729   *) # Relative path.
24730     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24731     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24732 esac
24733
24734 # Do not use `cd foo && pwd` to compute absolute paths, because
24735 # the directories may not exist.
24736 case `pwd` in
24737 .) ac_abs_builddir="$ac_dir";;
24738 *)
24739   case "$ac_dir" in
24740   .) ac_abs_builddir=`pwd`;;
24741   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24742   *) ac_abs_builddir=`pwd`/"$ac_dir";;
24743   esac;;
24744 esac
24745 case $ac_abs_builddir in
24746 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24747 *)
24748   case ${ac_top_builddir}. in
24749   .) ac_abs_top_builddir=$ac_abs_builddir;;
24750   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24751   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24752   esac;;
24753 esac
24754 case $ac_abs_builddir in
24755 .) ac_abs_srcdir=$ac_srcdir;;
24756 *)
24757   case $ac_srcdir in
24758   .) ac_abs_srcdir=$ac_abs_builddir;;
24759   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24760   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24761   esac;;
24762 esac
24763 case $ac_abs_builddir in
24764 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24765 *)
24766   case $ac_top_srcdir in
24767   .) ac_abs_top_srcdir=$ac_abs_builddir;;
24768   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24769   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24770   esac;;
24771 esac
24772
24773
24774   case $INSTALL in
24775   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24776   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24777   esac
24778
24779   if test x"$ac_file" != x-; then
24780     { echo "$as_me:$LINENO: creating $ac_file" >&5
24781 echo "$as_me: creating $ac_file" >&6;}
24782     rm -f "$ac_file"
24783   fi
24784   # Let's still pretend it is `configure' which instantiates (i.e., don't
24785   # use $as_me), people would be surprised to read:
24786   #    /* config.h.  Generated by config.status.  */
24787   if test x"$ac_file" = x-; then
24788     configure_input=
24789   else
24790     configure_input="$ac_file.  "
24791   fi
24792   configure_input=$configure_input"Generated from `echo $ac_file_in |
24793                                      sed 's,.*/,,'` by configure."
24794
24795   # First look for the input files in the build tree, otherwise in the
24796   # src tree.
24797   ac_file_inputs=`IFS=:
24798     for f in $ac_file_in; do
24799       case $f in
24800       -) echo $tmp/stdin ;;
24801       [\\/$]*)
24802          # Absolute (can't be DOS-style, as IFS=:)
24803          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24804 echo "$as_me: error: cannot find input file: $f" >&2;}
24805    { (exit 1); exit 1; }; }
24806          echo "$f";;
24807       *) # Relative
24808          if test -f "$f"; then
24809            # Build tree
24810            echo "$f"
24811          elif test -f "$srcdir/$f"; then
24812            # Source tree
24813            echo "$srcdir/$f"
24814          else
24815            # /dev/null tree
24816            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24817 echo "$as_me: error: cannot find input file: $f" >&2;}
24818    { (exit 1); exit 1; }; }
24819          fi;;
24820       esac
24821     done` || { (exit 1); exit 1; }
24822 _ACEOF
24823 cat >>$CONFIG_STATUS <<_ACEOF
24824   sed "$ac_vpsub
24825 $extrasub
24826 _ACEOF
24827 cat >>$CONFIG_STATUS <<\_ACEOF
24828 :t
24829 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24830 s,@configure_input@,$configure_input,;t t
24831 s,@srcdir@,$ac_srcdir,;t t
24832 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24833 s,@top_srcdir@,$ac_top_srcdir,;t t
24834 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24835 s,@builddir@,$ac_builddir,;t t
24836 s,@abs_builddir@,$ac_abs_builddir,;t t
24837 s,@top_builddir@,$ac_top_builddir,;t t
24838 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24839 s,@INSTALL@,$ac_INSTALL,;t t
24840 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24841   rm -f $tmp/stdin
24842   if test x"$ac_file" != x-; then
24843     mv $tmp/out $ac_file
24844   else
24845     cat $tmp/out
24846     rm -f $tmp/out
24847   fi
24848
24849 done
24850 _ACEOF
24851 cat >>$CONFIG_STATUS <<\_ACEOF
24852
24853 #
24854 # CONFIG_HEADER section.
24855 #
24856
24857 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24858 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24859 #
24860 # ac_d sets the value in "#define NAME VALUE" lines.
24861 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
24862 ac_dB='[         ].*$,\1#\2'
24863 ac_dC=' '
24864 ac_dD=',;t'
24865 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24866 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
24867 ac_uB='$,\1#\2define\3'
24868 ac_uC=' '
24869 ac_uD=',;t'
24870
24871 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24872   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24873   case $ac_file in
24874   - | *:- | *:-:* ) # input from stdin
24875         cat >$tmp/stdin
24876         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24877         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24878   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24879         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24880   * )   ac_file_in=$ac_file.in ;;
24881   esac
24882
24883   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24884 echo "$as_me: creating $ac_file" >&6;}
24885
24886   # First look for the input files in the build tree, otherwise in the
24887   # src tree.
24888   ac_file_inputs=`IFS=:
24889     for f in $ac_file_in; do
24890       case $f in
24891       -) echo $tmp/stdin ;;
24892       [\\/$]*)
24893          # Absolute (can't be DOS-style, as IFS=:)
24894          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24895 echo "$as_me: error: cannot find input file: $f" >&2;}
24896    { (exit 1); exit 1; }; }
24897          # Do quote $f, to prevent DOS paths from being IFS'd.
24898          echo "$f";;
24899       *) # Relative
24900          if test -f "$f"; then
24901            # Build tree
24902            echo "$f"
24903          elif test -f "$srcdir/$f"; then
24904            # Source tree
24905            echo "$srcdir/$f"
24906          else
24907            # /dev/null tree
24908            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24909 echo "$as_me: error: cannot find input file: $f" >&2;}
24910    { (exit 1); exit 1; }; }
24911          fi;;
24912       esac
24913     done` || { (exit 1); exit 1; }
24914   # Remove the trailing spaces.
24915   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
24916
24917 _ACEOF
24918
24919 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24920 # `conftest.undefs', that substitutes the proper values into
24921 # config.h.in to produce config.h.  The first handles `#define'
24922 # templates, and the second `#undef' templates.
24923 # And first: Protect against being on the right side of a sed subst in
24924 # config.status.  Protect against being in an unquoted here document
24925 # in config.status.
24926 rm -f conftest.defines conftest.undefs
24927 # Using a here document instead of a string reduces the quoting nightmare.
24928 # Putting comments in sed scripts is not portable.
24929 #
24930 # `end' is used to avoid that the second main sed command (meant for
24931 # 0-ary CPP macros) applies to n-ary macro definitions.
24932 # See the Autoconf documentation for `clear'.
24933 cat >confdef2sed.sed <<\_ACEOF
24934 s/[\\&,]/\\&/g
24935 s,[\\$`],\\&,g
24936 t clear
24937 : clear
24938 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24939 t end
24940 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24941 : end
24942 _ACEOF
24943 # If some macros were called several times there might be several times
24944 # the same #defines, which is useless.  Nevertheless, we may not want to
24945 # sort them, since we want the *last* AC-DEFINE to be honored.
24946 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24947 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24948 rm -f confdef2sed.sed
24949
24950 # This sed command replaces #undef with comments.  This is necessary, for
24951 # example, in the case of _POSIX_SOURCE, which is predefined and required
24952 # on some systems where configure will not decide to define it.
24953 cat >>conftest.undefs <<\_ACEOF
24954 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24955 _ACEOF
24956
24957 # Break up conftest.defines because some shells have a limit on the size
24958 # of here documents, and old seds have small limits too (100 cmds).
24959 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24960 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24961 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24962 echo '  :' >>$CONFIG_STATUS
24963 rm -f conftest.tail
24964 while grep . conftest.defines >/dev/null
24965 do
24966   # Write a limited-size here document to $tmp/defines.sed.
24967   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24968   # Speed up: don't consider the non `#define' lines.
24969   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
24970   # Work around the forget-to-reset-the-flag bug.
24971   echo 't clr' >>$CONFIG_STATUS
24972   echo ': clr' >>$CONFIG_STATUS
24973   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24974   echo 'CEOF
24975   sed -f $tmp/defines.sed $tmp/in >$tmp/out
24976   rm -f $tmp/in
24977   mv $tmp/out $tmp/in
24978 ' >>$CONFIG_STATUS
24979   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24980   rm -f conftest.defines
24981   mv conftest.tail conftest.defines
24982 done
24983 rm -f conftest.defines
24984 echo '  fi # grep' >>$CONFIG_STATUS
24985 echo >>$CONFIG_STATUS
24986
24987 # Break up conftest.undefs because some shells have a limit on the size
24988 # of here documents, and old seds have small limits too (100 cmds).
24989 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
24990 rm -f conftest.tail
24991 while grep . conftest.undefs >/dev/null
24992 do
24993   # Write a limited-size here document to $tmp/undefs.sed.
24994   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24995   # Speed up: don't consider the non `#undef'
24996   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
24997   # Work around the forget-to-reset-the-flag bug.
24998   echo 't clr' >>$CONFIG_STATUS
24999   echo ': clr' >>$CONFIG_STATUS
25000   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25001   echo 'CEOF
25002   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25003   rm -f $tmp/in
25004   mv $tmp/out $tmp/in
25005 ' >>$CONFIG_STATUS
25006   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25007   rm -f conftest.undefs
25008   mv conftest.tail conftest.undefs
25009 done
25010 rm -f conftest.undefs
25011
25012 cat >>$CONFIG_STATUS <<\_ACEOF
25013   # Let's still pretend it is `configure' which instantiates (i.e., don't
25014   # use $as_me), people would be surprised to read:
25015   #    /* config.h.  Generated by config.status.  */
25016   if test x"$ac_file" = x-; then
25017     echo "/* Generated by configure.  */" >$tmp/config.h
25018   else
25019     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
25020   fi
25021   cat $tmp/in >>$tmp/config.h
25022   rm -f $tmp/in
25023   if test x"$ac_file" != x-; then
25024     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
25025       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25026 echo "$as_me: $ac_file is unchanged" >&6;}
25027     else
25028       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25029 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25030          X"$ac_file" : 'X\(//\)[^/]' \| \
25031          X"$ac_file" : 'X\(//\)$' \| \
25032          X"$ac_file" : 'X\(/\)' \| \
25033          .     : '\(.\)' 2>/dev/null ||
25034 echo X"$ac_file" |
25035     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25036           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25037           /^X\(\/\/\)$/{ s//\1/; q; }
25038           /^X\(\/\).*/{ s//\1/; q; }
25039           s/.*/./; q'`
25040       { if $as_mkdir_p; then
25041     mkdir -p "$ac_dir"
25042   else
25043     as_dir="$ac_dir"
25044     as_dirs=
25045     while test ! -d "$as_dir"; do
25046       as_dirs="$as_dir $as_dirs"
25047       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25048 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25049          X"$as_dir" : 'X\(//\)[^/]' \| \
25050          X"$as_dir" : 'X\(//\)$' \| \
25051          X"$as_dir" : 'X\(/\)' \| \
25052          .     : '\(.\)' 2>/dev/null ||
25053 echo X"$as_dir" |
25054     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25055           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25056           /^X\(\/\/\)$/{ s//\1/; q; }
25057           /^X\(\/\).*/{ s//\1/; q; }
25058           s/.*/./; q'`
25059     done
25060     test ! -n "$as_dirs" || mkdir $as_dirs
25061   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25062 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25063    { (exit 1); exit 1; }; }; }
25064
25065       rm -f $ac_file
25066       mv $tmp/config.h $ac_file
25067     fi
25068   else
25069     cat $tmp/config.h
25070     rm -f $tmp/config.h
25071   fi
25072 # Compute $ac_file's index in $config_headers.
25073 _am_stamp_count=1
25074 for _am_header in $config_headers :; do
25075   case $_am_header in
25076     $ac_file | $ac_file:* )
25077       break ;;
25078     * )
25079       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25080   esac
25081 done
25082 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
25083 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25084          X$ac_file : 'X\(//\)[^/]' \| \
25085          X$ac_file : 'X\(//\)$' \| \
25086          X$ac_file : 'X\(/\)' \| \
25087          .     : '\(.\)' 2>/dev/null ||
25088 echo X$ac_file |
25089     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25090           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25091           /^X\(\/\/\)$/{ s//\1/; q; }
25092           /^X\(\/\).*/{ s//\1/; q; }
25093           s/.*/./; q'`/stamp-h$_am_stamp_count
25094 done
25095 _ACEOF
25096 cat >>$CONFIG_STATUS <<\_ACEOF
25097
25098 #
25099 # CONFIG_COMMANDS section.
25100 #
25101 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25102   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25103   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25104   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25105 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25106          X"$ac_dest" : 'X\(//\)[^/]' \| \
25107          X"$ac_dest" : 'X\(//\)$' \| \
25108          X"$ac_dest" : 'X\(/\)' \| \
25109          .     : '\(.\)' 2>/dev/null ||
25110 echo X"$ac_dest" |
25111     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25112           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25113           /^X\(\/\/\)$/{ s//\1/; q; }
25114           /^X\(\/\).*/{ s//\1/; q; }
25115           s/.*/./; q'`
25116   { if $as_mkdir_p; then
25117     mkdir -p "$ac_dir"
25118   else
25119     as_dir="$ac_dir"
25120     as_dirs=
25121     while test ! -d "$as_dir"; do
25122       as_dirs="$as_dir $as_dirs"
25123       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25124 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25125          X"$as_dir" : 'X\(//\)[^/]' \| \
25126          X"$as_dir" : 'X\(//\)$' \| \
25127          X"$as_dir" : 'X\(/\)' \| \
25128          .     : '\(.\)' 2>/dev/null ||
25129 echo X"$as_dir" |
25130     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25131           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25132           /^X\(\/\/\)$/{ s//\1/; q; }
25133           /^X\(\/\).*/{ s//\1/; q; }
25134           s/.*/./; q'`
25135     done
25136     test ! -n "$as_dirs" || mkdir $as_dirs
25137   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25138 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25139    { (exit 1); exit 1; }; }; }
25140
25141   ac_builddir=.
25142
25143 if test "$ac_dir" != .; then
25144   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25145   # A "../" for each directory in $ac_dir_suffix.
25146   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25147 else
25148   ac_dir_suffix= ac_top_builddir=
25149 fi
25150
25151 case $srcdir in
25152   .)  # No --srcdir option.  We are building in place.
25153     ac_srcdir=.
25154     if test -z "$ac_top_builddir"; then
25155        ac_top_srcdir=.
25156     else
25157        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25158     fi ;;
25159   [\\/]* | ?:[\\/]* )  # Absolute path.
25160     ac_srcdir=$srcdir$ac_dir_suffix;
25161     ac_top_srcdir=$srcdir ;;
25162   *) # Relative path.
25163     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25164     ac_top_srcdir=$ac_top_builddir$srcdir ;;
25165 esac
25166
25167 # Do not use `cd foo && pwd` to compute absolute paths, because
25168 # the directories may not exist.
25169 case `pwd` in
25170 .) ac_abs_builddir="$ac_dir";;
25171 *)
25172   case "$ac_dir" in
25173   .) ac_abs_builddir=`pwd`;;
25174   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25175   *) ac_abs_builddir=`pwd`/"$ac_dir";;
25176   esac;;
25177 esac
25178 case $ac_abs_builddir in
25179 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25180 *)
25181   case ${ac_top_builddir}. in
25182   .) ac_abs_top_builddir=$ac_abs_builddir;;
25183   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25184   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25185   esac;;
25186 esac
25187 case $ac_abs_builddir in
25188 .) ac_abs_srcdir=$ac_srcdir;;
25189 *)
25190   case $ac_srcdir in
25191   .) ac_abs_srcdir=$ac_abs_builddir;;
25192   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25193   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25194   esac;;
25195 esac
25196 case $ac_abs_builddir in
25197 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25198 *)
25199   case $ac_top_srcdir in
25200   .) ac_abs_top_srcdir=$ac_abs_builddir;;
25201   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25202   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25203   esac;;
25204 esac
25205
25206
25207   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25208 echo "$as_me: executing $ac_dest commands" >&6;}
25209   case $ac_dest in
25210     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
25211   # Strip MF so we end up with the name of the file.
25212   mf=`echo "$mf" | sed -e 's/:.*$//'`
25213   # Check whether this is an Automake generated Makefile or not.
25214   # We used to match only the files named `Makefile.in', but
25215   # some people rename them; so instead we look at the file content.
25216   # Grep'ing the first line is not enough: some people post-process
25217   # each Makefile.in and add a new line on top of each file to say so.
25218   # So let's grep whole file.
25219   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
25220     dirpart=`(dirname "$mf") 2>/dev/null ||
25221 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25222          X"$mf" : 'X\(//\)[^/]' \| \
25223          X"$mf" : 'X\(//\)$' \| \
25224          X"$mf" : 'X\(/\)' \| \
25225          .     : '\(.\)' 2>/dev/null ||
25226 echo X"$mf" |
25227     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25228           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25229           /^X\(\/\/\)$/{ s//\1/; q; }
25230           /^X\(\/\).*/{ s//\1/; q; }
25231           s/.*/./; q'`
25232   else
25233     continue
25234   fi
25235   # Extract the definition of DEPDIR, am__include, and am__quote
25236   # from the Makefile without running `make'.
25237   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25238   test -z "$DEPDIR" && continue
25239   am__include=`sed -n 's/^am__include = //p' < "$mf"`
25240   test -z "am__include" && continue
25241   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25242   # When using ansi2knr, U may be empty or an underscore; expand it
25243   U=`sed -n 's/^U = //p' < "$mf"`
25244   # Find all dependency output files, they are included files with
25245   # $(DEPDIR) in their names.  We invoke sed twice because it is the
25246   # simplest approach to changing $(DEPDIR) to its actual value in the
25247   # expansion.
25248   for file in `sed -n "
25249     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25250        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25251     # Make sure the directory exists.
25252     test -f "$dirpart/$file" && continue
25253     fdir=`(dirname "$file") 2>/dev/null ||
25254 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25255          X"$file" : 'X\(//\)[^/]' \| \
25256          X"$file" : 'X\(//\)$' \| \
25257          X"$file" : 'X\(/\)' \| \
25258          .     : '\(.\)' 2>/dev/null ||
25259 echo X"$file" |
25260     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25261           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25262           /^X\(\/\/\)$/{ s//\1/; q; }
25263           /^X\(\/\).*/{ s//\1/; q; }
25264           s/.*/./; q'`
25265     { if $as_mkdir_p; then
25266     mkdir -p $dirpart/$fdir
25267   else
25268     as_dir=$dirpart/$fdir
25269     as_dirs=
25270     while test ! -d "$as_dir"; do
25271       as_dirs="$as_dir $as_dirs"
25272       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25273 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25274          X"$as_dir" : 'X\(//\)[^/]' \| \
25275          X"$as_dir" : 'X\(//\)$' \| \
25276          X"$as_dir" : 'X\(/\)' \| \
25277          .     : '\(.\)' 2>/dev/null ||
25278 echo X"$as_dir" |
25279     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25280           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25281           /^X\(\/\/\)$/{ s//\1/; q; }
25282           /^X\(\/\).*/{ s//\1/; q; }
25283           s/.*/./; q'`
25284     done
25285     test ! -n "$as_dirs" || mkdir $as_dirs
25286   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
25287 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
25288    { (exit 1); exit 1; }; }; }
25289
25290     # echo "creating $dirpart/$file"
25291     echo '# dummy' > "$dirpart/$file"
25292   done
25293 done
25294  ;;
25295     intltool ) 
25296
25297 intltool_edit="-e 's#@INTLTOOL_EXTRACT@#`pwd`/intltool-extract#g' \
25298                -e 's#@INTLTOOL_ICONV@#${INTLTOOL_ICONV}#g' \
25299                -e 's#@INTLTOOL_MSGFMT@#${INTLTOOL_MSGFMT}#g' \
25300                -e 's#@INTLTOOL_MSGMERGE@#${INTLTOOL_MSGMERGE}#g' \
25301                -e 's#@INTLTOOL_XGETTEXT@#${INTLTOOL_XGETTEXT}#g' \
25302                -e 's#@INTLTOOL_PERL@#${INTLTOOL_PERL}#g'"
25303
25304 eval sed ${intltool_edit} < ${ac_aux_dir}/intltool-extract.in \
25305   > intltool-extract.out
25306 if cmp -s intltool-extract intltool-extract.out 2>/dev/null; then
25307   rm -f intltool-extract.out
25308 else
25309   mv -f intltool-extract.out intltool-extract
25310 fi
25311 chmod ugo+x intltool-extract
25312 chmod u+w intltool-extract
25313
25314 eval sed ${intltool_edit} < ${ac_aux_dir}/intltool-merge.in \
25315   > intltool-merge.out
25316 if cmp -s intltool-merge intltool-merge.out 2>/dev/null; then
25317   rm -f intltool-merge.out
25318 else
25319   mv -f intltool-merge.out intltool-merge
25320 fi
25321 chmod ugo+x intltool-merge
25322 chmod u+w intltool-merge
25323
25324 eval sed ${intltool_edit} < ${ac_aux_dir}/intltool-update.in \
25325   > intltool-update.out
25326 if cmp -s intltool-update intltool-update.out 2>/dev/null; then
25327   rm -f intltool-update.out
25328 else
25329   mv -f intltool-update.out intltool-update
25330 fi
25331 chmod ugo+x intltool-update
25332 chmod u+w intltool-update
25333
25334  ;;
25335     default-1 ) 
25336     for ac_file in $CONFIG_FILES; do
25337       # Support "outfile[:infile[:infile...]]"
25338       case "$ac_file" in
25339         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
25340       esac
25341       # PO directories have a Makefile.in generated from Makefile.in.in.
25342       case "$ac_file" in */Makefile.in)
25343         # Adjust a relative srcdir.
25344         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
25345         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
25346         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
25347         # In autoconf-2.13 it is called $ac_given_srcdir.
25348         # In autoconf-2.50 it is called $srcdir.
25349         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
25350         case "$ac_given_srcdir" in
25351           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
25352           /*) top_srcdir="$ac_given_srcdir" ;;
25353           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
25354         esac
25355         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
25356           rm -f "$ac_dir/POTFILES"
25357           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
25358           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
25359           POMAKEFILEDEPS="POTFILES.in"
25360           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
25361           # on $ac_dir but don't depend on user-specified configuration
25362           # parameters.
25363           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
25364             # The LINGUAS file contains the set of available languages.
25365             if test -n "$OBSOLETE_ALL_LINGUAS"; then
25366               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
25367             fi
25368             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
25369             # Hide the ALL_LINGUAS assigment from automake.
25370             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
25371             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
25372           else
25373             # The set of available languages was given in configure.in.
25374             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
25375           fi
25376           # Compute POFILES
25377           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
25378           # Compute UPDATEPOFILES
25379           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
25380           # Compute DUMMYPOFILES
25381           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
25382           # Compute GMOFILES
25383           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
25384           case "$ac_given_srcdir" in
25385             .) srcdirpre= ;;
25386             *) srcdirpre='$(srcdir)/' ;;
25387           esac
25388           POFILES=
25389           UPDATEPOFILES=
25390           DUMMYPOFILES=
25391           GMOFILES=
25392           for lang in $ALL_LINGUAS; do
25393             POFILES="$POFILES $srcdirpre$lang.po"
25394             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
25395             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
25396             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
25397           done
25398           # CATALOGS depends on both $ac_dir and the user's LINGUAS
25399           # environment variable.
25400           INST_LINGUAS=
25401           if test -n "$ALL_LINGUAS"; then
25402             for presentlang in $ALL_LINGUAS; do
25403               useit=no
25404               if test "%UNSET%" != "$LINGUAS"; then
25405                 desiredlanguages="$LINGUAS"
25406               else
25407                 desiredlanguages="$ALL_LINGUAS"
25408               fi
25409               for desiredlang in $desiredlanguages; do
25410                 # Use the presentlang catalog if desiredlang is
25411                 #   a. equal to presentlang, or
25412                 #   b. a variant of presentlang (because in this case,
25413                 #      presentlang can be used as a fallback for messages
25414                 #      which are not translated in the desiredlang catalog).
25415                 case "$desiredlang" in
25416                   "$presentlang"*) useit=yes;;
25417                 esac
25418               done
25419               if test $useit = yes; then
25420                 INST_LINGUAS="$INST_LINGUAS $presentlang"
25421               fi
25422             done
25423           fi
25424           CATALOGS=
25425           if test -n "$INST_LINGUAS"; then
25426             for lang in $INST_LINGUAS; do
25427               CATALOGS="$CATALOGS $lang.gmo"
25428             done
25429           fi
25430           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
25431           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"
25432           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
25433             if test -f "$f"; then
25434               case "$f" in
25435                 *.orig | *.bak | *~) ;;
25436                 *) cat "$f" >> "$ac_dir/Makefile" ;;
25437               esac
25438             fi
25439           done
25440         fi
25441         ;;
25442       esac
25443     done ;;
25444   esac
25445 done
25446 _ACEOF
25447
25448 cat >>$CONFIG_STATUS <<\_ACEOF
25449
25450 { (exit 0); exit 0; }
25451 _ACEOF
25452 chmod +x $CONFIG_STATUS
25453 ac_clean_files=$ac_clean_files_save
25454
25455
25456 # configure is writing to config.log, and then calls config.status.
25457 # config.status does its own redirection, appending to config.log.
25458 # Unfortunately, on DOS this fails, as config.log is still kept open
25459 # by configure, so config.status won't be able to write to it; its
25460 # output is simply discarded.  So we exec the FD to /dev/null,
25461 # effectively closing config.log, so it can be properly (re)opened and
25462 # appended to by config.status.  When coming back to configure, we
25463 # need to make the FD available again.
25464 if test "$no_create" != yes; then
25465   ac_cs_success=:
25466   ac_config_status_args=
25467   test "$silent" = yes &&
25468     ac_config_status_args="$ac_config_status_args --quiet"
25469   exec 5>/dev/null
25470   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25471   exec 5>>config.log
25472   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25473   # would make configure fail if this is the last instruction.
25474   $ac_cs_success || { (exit 1); exit 1; }
25475 fi
25476
25477
25478
25479 echo ------------------------------------------------------------------------
25480 echo 'zlib compression:                ' $ok_zlib
25481 echo 'Calendar support:                ' $ok_libical
25482 echo 'Character set conversion support:' $ok_iconv
25483 echo 'National language support:       ' $_nls_avail
25484 echo