* fresh copy of the automake environment.
[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_SERVICE_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"                   || test ! -s conftest.err'
2729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2730   (eval $ac_try) 2>&5
2731   ac_status=$?
2732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733   (exit $ac_status); }; } &&
2734          { ac_try='test -s conftest.$ac_objext'
2735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2736   (eval $ac_try) 2>&5
2737   ac_status=$?
2738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739   (exit $ac_status); }; }; then
2740   ac_compiler_gnu=yes
2741 else
2742   echo "$as_me: failed program was:" >&5
2743 sed 's/^/| /' conftest.$ac_ext >&5
2744
2745 ac_compiler_gnu=no
2746 fi
2747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2748 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2749
2750 fi
2751 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2752 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2753 GCC=`test $ac_compiler_gnu = yes && echo yes`
2754 ac_test_CFLAGS=${CFLAGS+set}
2755 ac_save_CFLAGS=$CFLAGS
2756 CFLAGS="-g"
2757 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2758 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2759 if test "${ac_cv_prog_cc_g+set}" = set; then
2760   echo $ECHO_N "(cached) $ECHO_C" >&6
2761 else
2762   cat >conftest.$ac_ext <<_ACEOF
2763 /* confdefs.h.  */
2764 _ACEOF
2765 cat confdefs.h >>conftest.$ac_ext
2766 cat >>conftest.$ac_ext <<_ACEOF
2767 /* end confdefs.h.  */
2768
2769 int
2770 main ()
2771 {
2772
2773   ;
2774   return 0;
2775 }
2776 _ACEOF
2777 rm -f conftest.$ac_objext
2778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2779   (eval $ac_compile) 2>conftest.er1
2780   ac_status=$?
2781   grep -v '^ *+' conftest.er1 >conftest.err
2782   rm -f conftest.er1
2783   cat conftest.err >&5
2784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785   (exit $ac_status); } &&
2786          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2788   (eval $ac_try) 2>&5
2789   ac_status=$?
2790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791   (exit $ac_status); }; } &&
2792          { ac_try='test -s conftest.$ac_objext'
2793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2794   (eval $ac_try) 2>&5
2795   ac_status=$?
2796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797   (exit $ac_status); }; }; then
2798   ac_cv_prog_cc_g=yes
2799 else
2800   echo "$as_me: failed program was:" >&5
2801 sed 's/^/| /' conftest.$ac_ext >&5
2802
2803 ac_cv_prog_cc_g=no
2804 fi
2805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2806 fi
2807 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2808 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2809 if test "$ac_test_CFLAGS" = set; then
2810   CFLAGS=$ac_save_CFLAGS
2811 elif test $ac_cv_prog_cc_g = yes; then
2812   if test "$GCC" = yes; then
2813     CFLAGS="-g -O2"
2814   else
2815     CFLAGS="-g"
2816   fi
2817 else
2818   if test "$GCC" = yes; then
2819     CFLAGS="-O2"
2820   else
2821     CFLAGS=
2822   fi
2823 fi
2824 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2825 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2826 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2827   echo $ECHO_N "(cached) $ECHO_C" >&6
2828 else
2829   ac_cv_prog_cc_stdc=no
2830 ac_save_CC=$CC
2831 cat >conftest.$ac_ext <<_ACEOF
2832 /* confdefs.h.  */
2833 _ACEOF
2834 cat confdefs.h >>conftest.$ac_ext
2835 cat >>conftest.$ac_ext <<_ACEOF
2836 /* end confdefs.h.  */
2837 #include <stdarg.h>
2838 #include <stdio.h>
2839 #include <sys/types.h>
2840 #include <sys/stat.h>
2841 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2842 struct buf { int x; };
2843 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2844 static char *e (p, i)
2845      char **p;
2846      int i;
2847 {
2848   return p[i];
2849 }
2850 static char *f (char * (*g) (char **, int), char **p, ...)
2851 {
2852   char *s;
2853   va_list v;
2854   va_start (v,p);
2855   s = g (p, va_arg (v,int));
2856   va_end (v);
2857   return s;
2858 }
2859
2860 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2861    function prototypes and stuff, but not '\xHH' hex character constants.
2862    These don't provoke an error unfortunately, instead are silently treated
2863    as 'x'.  The following induces an error, until -std1 is added to get
2864    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2865    array size at least.  It's necessary to write '\x00'==0 to get something
2866    that's true only with -std1.  */
2867 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2868
2869 int test (int i, double x);
2870 struct s1 {int (*f) (int a);};
2871 struct s2 {int (*f) (double a);};
2872 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2873 int argc;
2874 char **argv;
2875 int
2876 main ()
2877 {
2878 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2879   ;
2880   return 0;
2881 }
2882 _ACEOF
2883 # Don't try gcc -ansi; that turns off useful extensions and
2884 # breaks some systems' header files.
2885 # AIX                   -qlanglvl=ansi
2886 # Ultrix and OSF/1      -std1
2887 # HP-UX 10.20 and later -Ae
2888 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2889 # SVR4                  -Xc -D__EXTENSIONS__
2890 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2891 do
2892   CC="$ac_save_CC $ac_arg"
2893   rm -f conftest.$ac_objext
2894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2895   (eval $ac_compile) 2>conftest.er1
2896   ac_status=$?
2897   grep -v '^ *+' conftest.er1 >conftest.err
2898   rm -f conftest.er1
2899   cat conftest.err >&5
2900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901   (exit $ac_status); } &&
2902          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2904   (eval $ac_try) 2>&5
2905   ac_status=$?
2906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907   (exit $ac_status); }; } &&
2908          { ac_try='test -s conftest.$ac_objext'
2909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2910   (eval $ac_try) 2>&5
2911   ac_status=$?
2912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913   (exit $ac_status); }; }; then
2914   ac_cv_prog_cc_stdc=$ac_arg
2915 break
2916 else
2917   echo "$as_me: failed program was:" >&5
2918 sed 's/^/| /' conftest.$ac_ext >&5
2919
2920 fi
2921 rm -f conftest.err conftest.$ac_objext 
2922 done
2923 rm -f conftest.$ac_ext conftest.$ac_objext
2924 CC=$ac_save_CC
2925
2926 fi
2927
2928 case "x$ac_cv_prog_cc_stdc" in
2929   x|xno)
2930     echo "$as_me:$LINENO: result: none needed" >&5
2931 echo "${ECHO_T}none needed" >&6 ;;
2932   *)
2933     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2934 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2935     CC="$CC $ac_cv_prog_cc_stdc" ;;
2936 esac
2937
2938 # Some people use a C++ compiler to compile C.  Since we use `exit',
2939 # in C++ we need to declare it.  In case someone uses the same compiler
2940 # for both compiling C and C++ we need to have the C++ compiler decide
2941 # the declaration of exit, since it's the most demanding environment.
2942 cat >conftest.$ac_ext <<_ACEOF
2943 @%:@ifndef __cplusplus
2944   choke me
2945 @%:@endif
2946 _ACEOF
2947 rm -f conftest.$ac_objext
2948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2949   (eval $ac_compile) 2>conftest.er1
2950   ac_status=$?
2951   grep -v '^ *+' conftest.er1 >conftest.err
2952   rm -f conftest.er1
2953   cat conftest.err >&5
2954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955   (exit $ac_status); } &&
2956          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2958   (eval $ac_try) 2>&5
2959   ac_status=$?
2960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961   (exit $ac_status); }; } &&
2962          { ac_try='test -s conftest.$ac_objext'
2963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2964   (eval $ac_try) 2>&5
2965   ac_status=$?
2966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2967   (exit $ac_status); }; }; then
2968   for ac_declaration in \
2969    '' \
2970    'extern "C" void std::exit (int) throw (); using std::exit;' \
2971    'extern "C" void std::exit (int); using std::exit;' \
2972    'extern "C" void exit (int) throw ();' \
2973    'extern "C" void exit (int);' \
2974    'void exit (int);'
2975 do
2976   cat >conftest.$ac_ext <<_ACEOF
2977 /* confdefs.h.  */
2978 _ACEOF
2979 cat confdefs.h >>conftest.$ac_ext
2980 cat >>conftest.$ac_ext <<_ACEOF
2981 /* end confdefs.h.  */
2982 $ac_declaration
2983 @%:@include <stdlib.h>
2984 int
2985 main ()
2986 {
2987 exit (42);
2988   ;
2989   return 0;
2990 }
2991 _ACEOF
2992 rm -f conftest.$ac_objext
2993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2994   (eval $ac_compile) 2>conftest.er1
2995   ac_status=$?
2996   grep -v '^ *+' conftest.er1 >conftest.err
2997   rm -f conftest.er1
2998   cat conftest.err >&5
2999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000   (exit $ac_status); } &&
3001          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3003   (eval $ac_try) 2>&5
3004   ac_status=$?
3005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006   (exit $ac_status); }; } &&
3007          { ac_try='test -s conftest.$ac_objext'
3008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3009   (eval $ac_try) 2>&5
3010   ac_status=$?
3011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012   (exit $ac_status); }; }; then
3013   :
3014 else
3015   echo "$as_me: failed program was:" >&5
3016 sed 's/^/| /' conftest.$ac_ext >&5
3017
3018 continue
3019 fi
3020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3021   cat >conftest.$ac_ext <<_ACEOF
3022 /* confdefs.h.  */
3023 _ACEOF
3024 cat confdefs.h >>conftest.$ac_ext
3025 cat >>conftest.$ac_ext <<_ACEOF
3026 /* end confdefs.h.  */
3027 $ac_declaration
3028 int
3029 main ()
3030 {
3031 exit (42);
3032   ;
3033   return 0;
3034 }
3035 _ACEOF
3036 rm -f conftest.$ac_objext
3037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3038   (eval $ac_compile) 2>conftest.er1
3039   ac_status=$?
3040   grep -v '^ *+' conftest.er1 >conftest.err
3041   rm -f conftest.er1
3042   cat conftest.err >&5
3043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044   (exit $ac_status); } &&
3045          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3047   (eval $ac_try) 2>&5
3048   ac_status=$?
3049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050   (exit $ac_status); }; } &&
3051          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
3057   break
3058 else
3059   echo "$as_me: failed program was:" >&5
3060 sed 's/^/| /' conftest.$ac_ext >&5
3061
3062 fi
3063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3064 done
3065 rm -f conftest*
3066 if test -n "$ac_declaration"; then
3067   echo '#ifdef __cplusplus' >>confdefs.h
3068   echo $ac_declaration      >>confdefs.h
3069   echo '#endif'             >>confdefs.h
3070 fi
3071
3072 else
3073   echo "$as_me: failed program was:" >&5
3074 sed 's/^/| /' conftest.$ac_ext >&5
3075
3076 fi
3077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3078 ac_ext=c
3079 ac_cpp='$CPP $CPPFLAGS'
3080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3083
3084 depcc="$CC"   am_compiler_list=
3085
3086 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3087 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3088 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3089   echo $ECHO_N "(cached) $ECHO_C" >&6
3090 else
3091   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3092   # We make a subdir and do the tests there.  Otherwise we can end up
3093   # making bogus files that we don't know about and never remove.  For
3094   # instance it was reported that on HP-UX the gcc test will end up
3095   # making a dummy file named `D' -- because `-MD' means `put the output
3096   # in D'.
3097   mkdir conftest.dir
3098   # Copy depcomp to subdir because otherwise we won't find it if we're
3099   # using a relative directory.
3100   cp "$am_depcomp" conftest.dir
3101   cd conftest.dir
3102   # We will build objects and dependencies in a subdirectory because
3103   # it helps to detect inapplicable dependency modes.  For instance
3104   # both Tru64's cc and ICC support -MD to output dependencies as a
3105   # side effect of compilation, but ICC will put the dependencies in
3106   # the current directory while Tru64 will put them in the object
3107   # directory.
3108   mkdir sub
3109
3110   am_cv_CC_dependencies_compiler_type=none
3111   if test "$am_compiler_list" = ""; then
3112      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3113   fi
3114   for depmode in $am_compiler_list; do
3115     # Setup a source with many dependencies, because some compilers
3116     # like to wrap large dependency lists on column 80 (with \), and
3117     # we should not choose a depcomp mode which is confused by this.
3118     #
3119     # We need to recreate these files for each test, as the compiler may
3120     # overwrite some of them when testing with obscure command lines.
3121     # This happens at least with the AIX C compiler.
3122     : > sub/conftest.c
3123     for i in 1 2 3 4 5 6; do
3124       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3125       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3126       # Solaris 8's {/usr,}/bin/sh.
3127       touch sub/conftst$i.h
3128     done
3129     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3130
3131     case $depmode in
3132     nosideeffect)
3133       # after this tag, mechanisms are not by side-effect, so they'll
3134       # only be used when explicitly requested
3135       if test "x$enable_dependency_tracking" = xyes; then
3136         continue
3137       else
3138         break
3139       fi
3140       ;;
3141     none) break ;;
3142     esac
3143     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3144     # mode.  It turns out that the SunPro C++ compiler does not properly
3145     # handle `-M -o', and we need to detect this.
3146     if depmode=$depmode \
3147        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3148        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3149        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3150          >/dev/null 2>conftest.err &&
3151        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3152        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3153        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3154       # icc doesn't choke on unknown options, it will just issue warnings
3155       # or remarks (even with -Werror).  So we grep stderr for any message
3156       # that says an option was ignored or not supported.
3157       # When given -MP, icc 7.0 and 7.1 complain thusly:
3158       #   icc: Command line warning: ignoring option '-M'; no argument required
3159       # The diagnosis changed in icc 8.0:
3160       #   icc: Command line remark: option '-MP' not supported
3161       if (grep 'ignoring option' conftest.err ||
3162           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3163         am_cv_CC_dependencies_compiler_type=$depmode
3164         break
3165       fi
3166     fi
3167   done
3168
3169   cd ..
3170   rm -rf conftest.dir
3171 else
3172   am_cv_CC_dependencies_compiler_type=none
3173 fi
3174
3175 fi
3176 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3177 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3178 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3179
3180  
3181
3182 if 
3183   test "x$enable_dependency_tracking" != xno \
3184   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3185   am__fastdepCC_TRUE=
3186   am__fastdepCC_FALSE='#'
3187 else
3188   am__fastdepCC_TRUE='#'
3189   am__fastdepCC_FALSE=
3190 fi
3191
3192
3193 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3194 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3195 if test "${lt_cv_path_SED+set}" = set; then
3196   echo $ECHO_N "(cached) $ECHO_C" >&6
3197 else
3198   # Loop through the user's path and test for sed and gsed.
3199 # Then use that list of sed's as ones to test for truncation.
3200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3201 for as_dir in $PATH
3202 do
3203   IFS=$as_save_IFS
3204   test -z "$as_dir" && as_dir=.
3205   for lt_ac_prog in sed gsed; do
3206     for ac_exec_ext in '' $ac_executable_extensions; do
3207       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3208         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3209       fi
3210     done
3211   done
3212 done
3213 lt_ac_max=0
3214 lt_ac_count=0
3215 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3216 # along with /bin/sed that truncates output.
3217 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3218   test ! -f $lt_ac_sed && continue
3219   cat /dev/null > conftest.in
3220   lt_ac_count=0
3221   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3222   # Check for GNU sed and select it if it is found.
3223   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3224     lt_cv_path_SED=$lt_ac_sed
3225     break
3226   fi
3227   while true; do
3228     cat conftest.in conftest.in >conftest.tmp
3229     mv conftest.tmp conftest.in
3230     cp conftest.in conftest.nl
3231     echo >>conftest.nl
3232     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3233     cmp -s conftest.out conftest.nl || break
3234     # 10000 chars as input seems more than enough
3235     test $lt_ac_count -gt 10 && break
3236     lt_ac_count=`expr $lt_ac_count + 1`
3237     if test $lt_ac_count -gt $lt_ac_max; then
3238       lt_ac_max=$lt_ac_count
3239       lt_cv_path_SED=$lt_ac_sed
3240     fi
3241   done
3242 done
3243
3244 fi
3245
3246 SED=$lt_cv_path_SED
3247 echo "$as_me:$LINENO: result: $SED" >&5
3248 echo "${ECHO_T}$SED" >&6
3249
3250 echo "$as_me:$LINENO: checking for egrep" >&5
3251 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3252 if test "${ac_cv_prog_egrep+set}" = set; then
3253   echo $ECHO_N "(cached) $ECHO_C" >&6
3254 else
3255   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3256     then ac_cv_prog_egrep='grep -E'
3257     else ac_cv_prog_egrep='egrep'
3258     fi
3259 fi
3260 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3261 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3262  EGREP=$ac_cv_prog_egrep
3263  
3264
3265
3266 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3267 if test "${with_gnu_ld+set}" = set; then
3268   withval="$with_gnu_ld"
3269   test "$withval" = no || with_gnu_ld=yes
3270 else
3271   with_gnu_ld=no
3272 fi; 
3273 ac_prog=ld
3274 if test "$GCC" = yes; then
3275   # Check if gcc -print-prog-name=ld gives a path.
3276   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3277 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3278   case $host in
3279   *-*-mingw*)
3280     # gcc leaves a trailing carriage return which upsets mingw
3281     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3282   *)
3283     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3284   esac
3285   case $ac_prog in
3286     # Accept absolute paths.
3287     [\\/]* | ?:[\\/]*)
3288       re_direlt='/[^/][^/]*/\.\./'
3289       # Canonicalize the pathname of ld
3290       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3291       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3292         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3293       done
3294       test -z "$LD" && LD="$ac_prog"
3295       ;;
3296   "")
3297     # If it fails, then pretend we aren't using GCC.
3298     ac_prog=ld
3299     ;;
3300   *)
3301     # If it is relative, then search for the first ld in PATH.
3302     with_gnu_ld=unknown
3303     ;;
3304   esac
3305 elif test "$with_gnu_ld" = yes; then
3306   echo "$as_me:$LINENO: checking for GNU ld" >&5
3307 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3308 else
3309   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3310 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3311 fi
3312 if test "${lt_cv_path_LD+set}" = set; then
3313   echo $ECHO_N "(cached) $ECHO_C" >&6
3314 else
3315   if test -z "$LD"; then
3316   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3317   for ac_dir in $PATH; do
3318     IFS="$lt_save_ifs"
3319     test -z "$ac_dir" && ac_dir=.
3320     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3321       lt_cv_path_LD="$ac_dir/$ac_prog"
3322       # Check to see if the program is GNU ld.  I'd rather use --version,
3323       # but apparently some variants of GNU ld only accept -v.
3324       # Break only if it was the GNU/non-GNU ld that we prefer.
3325       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3326       *GNU* | *'with BFD'*)
3327         test "$with_gnu_ld" != no && break
3328         ;;
3329       *)
3330         test "$with_gnu_ld" != yes && break
3331         ;;
3332       esac
3333     fi
3334   done
3335   IFS="$lt_save_ifs"
3336 else
3337   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3338 fi
3339 fi
3340
3341 LD="$lt_cv_path_LD"
3342 if test -n "$LD"; then
3343   echo "$as_me:$LINENO: result: $LD" >&5
3344 echo "${ECHO_T}$LD" >&6
3345 else
3346   echo "$as_me:$LINENO: result: no" >&5
3347 echo "${ECHO_T}no" >&6
3348 fi
3349 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3350 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3351    { (exit 1); exit 1; }; }
3352 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3353 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3354 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3355   echo $ECHO_N "(cached) $ECHO_C" >&6
3356 else
3357   # I'd rather use --version here, but apparently some GNU lds only accept -v.
3358 case `$LD -v 2>&1 </dev/null` in
3359 *GNU* | *'with BFD'*)
3360   lt_cv_prog_gnu_ld=yes
3361   ;;
3362 *)
3363   lt_cv_prog_gnu_ld=no
3364   ;;
3365 esac
3366 fi
3367 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3368 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3369 with_gnu_ld=$lt_cv_prog_gnu_ld
3370
3371
3372 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3373 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3374 if test "${lt_cv_ld_reload_flag+set}" = set; then
3375   echo $ECHO_N "(cached) $ECHO_C" >&6
3376 else
3377   lt_cv_ld_reload_flag='-r'
3378 fi
3379 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3380 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3381 reload_flag=$lt_cv_ld_reload_flag
3382 case $reload_flag in
3383 "" | " "*) ;;
3384 *) reload_flag=" $reload_flag" ;;
3385 esac
3386 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3387 case $host_os in
3388   darwin*)
3389     if test "$GCC" = yes; then
3390       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3391     else
3392       reload_cmds='$LD$reload_flag -o $output$reload_objs'
3393     fi
3394     ;;
3395 esac
3396
3397 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3398 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3399 if test "${lt_cv_path_NM+set}" = set; then
3400   echo $ECHO_N "(cached) $ECHO_C" >&6
3401 else
3402   if test -n "$NM"; then
3403   # Let the user override the test.
3404   lt_cv_path_NM="$NM"
3405 else
3406   lt_nm_to_check="${ac_tool_prefix}nm"
3407   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 
3408     lt_nm_to_check="$lt_nm_to_check nm"
3409   fi
3410   for lt_tmp_nm in $lt_nm_to_check; do
3411     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3412     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3413       IFS="$lt_save_ifs"
3414       test -z "$ac_dir" && ac_dir=.
3415       tmp_nm="$ac_dir/$lt_tmp_nm"
3416       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3417         # Check to see if the nm accepts a BSD-compat flag.
3418         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3419         #   nm: unknown option "B" ignored
3420         # Tru64's nm complains that /dev/null is an invalid object file
3421         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3422         */dev/null* | *'Invalid file or object type'*)
3423           lt_cv_path_NM="$tmp_nm -B"
3424           break
3425           ;;
3426         *)
3427           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3428           */dev/null*)
3429             lt_cv_path_NM="$tmp_nm -p"
3430             break
3431             ;;
3432           *)
3433             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3434             continue # so that we can try to find one that supports BSD flags
3435             ;;
3436           esac
3437           ;;
3438         esac
3439       fi
3440     done
3441     IFS="$lt_save_ifs"
3442   done
3443   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3444 fi
3445 fi
3446 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3447 echo "${ECHO_T}$lt_cv_path_NM" >&6
3448 NM="$lt_cv_path_NM"
3449
3450 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3451 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3452 LN_S=$as_ln_s
3453 if test "$LN_S" = "ln -s"; then
3454   echo "$as_me:$LINENO: result: yes" >&5
3455 echo "${ECHO_T}yes" >&6
3456 else
3457   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3458 echo "${ECHO_T}no, using $LN_S" >&6
3459 fi
3460
3461 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3462 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3463 if test "${lt_cv_deplibs_check_method+set}" = set; then
3464   echo $ECHO_N "(cached) $ECHO_C" >&6
3465 else
3466   lt_cv_file_magic_cmd='$MAGIC_CMD'
3467 lt_cv_file_magic_test_file=
3468 lt_cv_deplibs_check_method='unknown'
3469 # Need to set the preceding variable on all platforms that support
3470 # interlibrary dependencies.
3471 # 'none' -- dependencies not supported.
3472 # `unknown' -- same as none, but documents that we really don't know.
3473 # 'pass_all' -- all dependencies passed with no checks.
3474 # 'test_compile' -- check by making test program.
3475 # 'file_magic [[regex]]' -- check by looking for files in library path
3476 # which responds to the $file_magic_cmd with a given extended regex.
3477 # If you have `file' or equivalent on your system and you're not sure
3478 # whether `pass_all' will *always* work, you probably want this one.
3479
3480 case $host_os in
3481 aix4* | aix5*)
3482   lt_cv_deplibs_check_method=pass_all
3483   ;;
3484
3485 beos*)
3486   lt_cv_deplibs_check_method=pass_all
3487   ;;
3488
3489 bsdi[45]*)
3490   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3491   lt_cv_file_magic_cmd='/usr/bin/file -L'
3492   lt_cv_file_magic_test_file=/shlib/libc.so
3493   ;;
3494
3495 cygwin*)
3496   # func_win32_libid is a shell function defined in ltmain.sh
3497   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3498   lt_cv_file_magic_cmd='func_win32_libid'
3499   ;;
3500
3501 mingw* | pw32*)
3502   # Base MSYS/MinGW do not provide the 'file' command needed by
3503   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3504   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3505   lt_cv_file_magic_cmd='$OBJDUMP -f'
3506   ;;
3507
3508 darwin* | rhapsody*)
3509   lt_cv_deplibs_check_method=pass_all
3510   ;;
3511
3512 freebsd* | dragonfly*)
3513   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3514     case $host_cpu in
3515     i*86 )
3516       # Not sure whether the presence of OpenBSD here was a mistake.
3517       # Let's accept both of them until this is cleared up.
3518       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3519       lt_cv_file_magic_cmd=/usr/bin/file
3520       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3521       ;;
3522     esac
3523   else
3524     lt_cv_deplibs_check_method=pass_all
3525   fi
3526   ;;
3527
3528 gnu*)
3529   lt_cv_deplibs_check_method=pass_all
3530   ;;
3531
3532 hpux10.20* | hpux11*)
3533   lt_cv_file_magic_cmd=/usr/bin/file
3534   case $host_cpu in
3535   ia64*)
3536     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3537     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3538     ;;
3539   hppa*64*)
3540     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]'
3541     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3542     ;;
3543   *)
3544     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3545     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3546     ;;
3547   esac
3548   ;;
3549
3550 interix3*)
3551   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3552   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3553   ;;
3554
3555 irix5* | irix6* | nonstopux*)
3556   case $LD in
3557   *-32|*"-32 ") libmagic=32-bit;;
3558   *-n32|*"-n32 ") libmagic=N32;;
3559   *-64|*"-64 ") libmagic=64-bit;;
3560   *) libmagic=never-match;;
3561   esac
3562   lt_cv_deplibs_check_method=pass_all
3563   ;;
3564
3565 # This must be Linux ELF.
3566 linux* | k*bsd*-gnu)
3567   lt_cv_deplibs_check_method=pass_all
3568   ;;
3569
3570 netbsd* | netbsdelf*-gnu)
3571   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3572     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3573   else
3574     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3575   fi
3576   ;;
3577
3578 newos6*)
3579   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3580   lt_cv_file_magic_cmd=/usr/bin/file
3581   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3582   ;;
3583
3584 nto-qnx*)
3585   lt_cv_deplibs_check_method=unknown
3586   ;;
3587
3588 openbsd*)
3589   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3590     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3591   else
3592     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3593   fi
3594   ;;
3595
3596 osf3* | osf4* | osf5*)
3597   lt_cv_deplibs_check_method=pass_all
3598   ;;
3599
3600 solaris*)
3601   lt_cv_deplibs_check_method=pass_all
3602   ;;
3603
3604 sysv4 | sysv4.3*)
3605   case $host_vendor in
3606   motorola)
3607     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3608     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3609     ;;
3610   ncr)
3611     lt_cv_deplibs_check_method=pass_all
3612     ;;
3613   sequent)
3614     lt_cv_file_magic_cmd='/bin/file'
3615     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3616     ;;
3617   sni)
3618     lt_cv_file_magic_cmd='/bin/file'
3619     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3620     lt_cv_file_magic_test_file=/lib/libc.so
3621     ;;
3622   siemens)
3623     lt_cv_deplibs_check_method=pass_all
3624     ;;
3625   pc)
3626     lt_cv_deplibs_check_method=pass_all
3627     ;;
3628   esac
3629   ;;
3630
3631 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3632   lt_cv_deplibs_check_method=pass_all
3633   ;;
3634 esac
3635
3636 fi
3637 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3638 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3639 file_magic_cmd=$lt_cv_file_magic_cmd
3640 deplibs_check_method=$lt_cv_deplibs_check_method
3641 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3642
3643
3644
3645
3646 # If no C compiler was specified, use CC.
3647 LTCC=${LTCC-"$CC"}
3648
3649 # If no C compiler flags were specified, use CFLAGS.
3650 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3651
3652 # Allow CC to be a program name with arguments.
3653 compiler=$CC
3654
3655
3656 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3657 if test "${enable_libtool_lock+set}" = set; then
3658   enableval="$enable_libtool_lock"
3659   
3660 fi; 
3661 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3662
3663 # Some flags need to be propagated to the compiler or linker for good
3664 # libtool support.
3665 case $host in
3666 ia64-*-hpux*)
3667   # Find out which ABI we are using.
3668   echo 'int i;' > conftest.$ac_ext
3669   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3670   (eval $ac_compile) 2>&5
3671   ac_status=$?
3672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673   (exit $ac_status); }; then
3674     case `/usr/bin/file conftest.$ac_objext` in
3675     *ELF-32*)
3676       HPUX_IA64_MODE="32"
3677       ;;
3678     *ELF-64*)
3679       HPUX_IA64_MODE="64"
3680       ;;
3681     esac
3682   fi
3683   rm -rf conftest*
3684   ;;
3685 *-*-irix6*)
3686   # Find out which ABI we are using.
3687   echo '#line __oline__ "configure"' > conftest.$ac_ext
3688   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3689   (eval $ac_compile) 2>&5
3690   ac_status=$?
3691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692   (exit $ac_status); }; then
3693    if test "$lt_cv_prog_gnu_ld" = yes; then
3694     case `/usr/bin/file conftest.$ac_objext` in
3695     *32-bit*)
3696       LD="${LD-ld} -melf32bsmip"
3697       ;;
3698     *N32*)
3699       LD="${LD-ld} -melf32bmipn32"
3700       ;;
3701     *64-bit*)
3702       LD="${LD-ld} -melf64bmip"
3703       ;;
3704     esac
3705    else
3706     case `/usr/bin/file conftest.$ac_objext` in
3707     *32-bit*)
3708       LD="${LD-ld} -32"
3709       ;;
3710     *N32*)
3711       LD="${LD-ld} -n32"
3712       ;;
3713     *64-bit*)
3714       LD="${LD-ld} -64"
3715       ;;
3716     esac
3717    fi
3718   fi
3719   rm -rf conftest*
3720   ;;
3721
3722 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3723   # Find out which ABI we are using.
3724   echo 'int i;' > conftest.$ac_ext
3725   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3726   (eval $ac_compile) 2>&5
3727   ac_status=$?
3728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729   (exit $ac_status); }; then
3730     case `/usr/bin/file conftest.o` in
3731     *32-bit*)
3732       case $host in
3733         x86_64-*linux*)
3734           LD="${LD-ld} -m elf_i386"
3735           ;;
3736         ppc64-*linux*|powerpc64-*linux*)
3737           LD="${LD-ld} -m elf32ppclinux"
3738           ;;
3739         s390x-*linux*)
3740           LD="${LD-ld} -m elf_s390"
3741           ;;
3742         sparc64-*linux*)
3743           LD="${LD-ld} -m elf32_sparc"
3744           ;;
3745       esac
3746       ;;
3747     *64-bit*)
3748       case $host in
3749         x86_64-*linux*)
3750           LD="${LD-ld} -m elf_x86_64"
3751           ;;
3752         ppc*-*linux*|powerpc*-*linux*)
3753           LD="${LD-ld} -m elf64ppc"
3754           ;;
3755         s390*-*linux*)
3756           LD="${LD-ld} -m elf64_s390"
3757           ;;
3758         sparc*-*linux*)
3759           LD="${LD-ld} -m elf64_sparc"
3760           ;;
3761       esac
3762       ;;
3763     esac
3764   fi
3765   rm -rf conftest*
3766   ;;
3767
3768 *-*-sco3.2v5*)
3769   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3770   SAVE_CFLAGS="$CFLAGS"
3771   CFLAGS="$CFLAGS -belf"
3772   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3773 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3774 if test "${lt_cv_cc_needs_belf+set}" = set; then
3775   echo $ECHO_N "(cached) $ECHO_C" >&6
3776 else
3777   ac_ext=c
3778 ac_cpp='$CPP $CPPFLAGS'
3779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3782
3783      cat >conftest.$ac_ext <<_ACEOF
3784 /* confdefs.h.  */
3785 _ACEOF
3786 cat confdefs.h >>conftest.$ac_ext
3787 cat >>conftest.$ac_ext <<_ACEOF
3788 /* end confdefs.h.  */
3789
3790 int
3791 main ()
3792 {
3793
3794   ;
3795   return 0;
3796 }
3797 _ACEOF
3798 rm -f conftest.$ac_objext conftest$ac_exeext
3799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3800   (eval $ac_link) 2>conftest.er1
3801   ac_status=$?
3802   grep -v '^ *+' conftest.er1 >conftest.err
3803   rm -f conftest.er1
3804   cat conftest.err >&5
3805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806   (exit $ac_status); } &&
3807          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3809   (eval $ac_try) 2>&5
3810   ac_status=$?
3811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812   (exit $ac_status); }; } &&
3813          { ac_try='test -s conftest$ac_exeext'
3814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3815   (eval $ac_try) 2>&5
3816   ac_status=$?
3817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818   (exit $ac_status); }; }; then
3819   lt_cv_cc_needs_belf=yes
3820 else
3821   echo "$as_me: failed program was:" >&5
3822 sed 's/^/| /' conftest.$ac_ext >&5
3823
3824 lt_cv_cc_needs_belf=no
3825 fi
3826 rm -f conftest.err conftest.$ac_objext \
3827       conftest$ac_exeext conftest.$ac_ext
3828      ac_ext=c
3829 ac_cpp='$CPP $CPPFLAGS'
3830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3833
3834 fi
3835 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3836 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3837   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3838     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3839     CFLAGS="$SAVE_CFLAGS"
3840   fi
3841   ;;
3842 sparc*-*solaris*)
3843   # Find out which ABI we are using.
3844   echo 'int i;' > conftest.$ac_ext
3845   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3846   (eval $ac_compile) 2>&5
3847   ac_status=$?
3848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849   (exit $ac_status); }; then
3850     case `/usr/bin/file conftest.o` in
3851     *64-bit*)
3852       case $lt_cv_prog_gnu_ld in
3853       yes*) LD="${LD-ld} -m elf64_sparc" ;;
3854       *)    LD="${LD-ld} -64" ;;
3855       esac
3856       ;;
3857     esac
3858   fi
3859   rm -rf conftest*
3860   ;;
3861
3862
3863 esac
3864
3865 need_locks="$enable_libtool_lock"
3866
3867
3868 ac_ext=c
3869 ac_cpp='$CPP $CPPFLAGS'
3870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3873 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3874 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3875 # On Suns, sometimes $CPP names a directory.
3876 if test -n "$CPP" && test -d "$CPP"; then
3877   CPP=
3878 fi
3879 if test -z "$CPP"; then
3880   if test "${ac_cv_prog_CPP+set}" = set; then
3881   echo $ECHO_N "(cached) $ECHO_C" >&6
3882 else
3883       # Double quotes because CPP needs to be expanded
3884     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3885     do
3886       ac_preproc_ok=false
3887 for ac_c_preproc_warn_flag in '' yes
3888 do
3889   # Use a header file that comes with gcc, so configuring glibc
3890   # with a fresh cross-compiler works.
3891   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3892   # <limits.h> exists even on freestanding compilers.
3893   # On the NeXT, cc -E runs the code through the compiler's parser,
3894   # not just through cpp. "Syntax error" is here to catch this case.
3895   cat >conftest.$ac_ext <<_ACEOF
3896 /* confdefs.h.  */
3897 _ACEOF
3898 cat confdefs.h >>conftest.$ac_ext
3899 cat >>conftest.$ac_ext <<_ACEOF
3900 /* end confdefs.h.  */
3901 @%:@ifdef __STDC__
3902 @%:@ include <limits.h>
3903 @%:@else
3904 @%:@ include <assert.h>
3905 @%:@endif
3906                      Syntax error
3907 _ACEOF
3908 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3909   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3910   ac_status=$?
3911   grep -v '^ *+' conftest.er1 >conftest.err
3912   rm -f conftest.er1
3913   cat conftest.err >&5
3914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915   (exit $ac_status); } >/dev/null; then
3916   if test -s conftest.err; then
3917     ac_cpp_err=$ac_c_preproc_warn_flag
3918     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3919   else
3920     ac_cpp_err=
3921   fi
3922 else
3923   ac_cpp_err=yes
3924 fi
3925 if test -z "$ac_cpp_err"; then
3926   :
3927 else
3928   echo "$as_me: failed program was:" >&5
3929 sed 's/^/| /' conftest.$ac_ext >&5
3930
3931   # Broken: fails on valid input.
3932 continue
3933 fi
3934 rm -f conftest.err conftest.$ac_ext
3935
3936   # OK, works on sane cases.  Now check whether non-existent headers
3937   # can be detected and how.
3938   cat >conftest.$ac_ext <<_ACEOF
3939 /* confdefs.h.  */
3940 _ACEOF
3941 cat confdefs.h >>conftest.$ac_ext
3942 cat >>conftest.$ac_ext <<_ACEOF
3943 /* end confdefs.h.  */
3944 @%:@include <ac_nonexistent.h>
3945 _ACEOF
3946 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3947   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3948   ac_status=$?
3949   grep -v '^ *+' conftest.er1 >conftest.err
3950   rm -f conftest.er1
3951   cat conftest.err >&5
3952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953   (exit $ac_status); } >/dev/null; then
3954   if test -s conftest.err; then
3955     ac_cpp_err=$ac_c_preproc_warn_flag
3956     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3957   else
3958     ac_cpp_err=
3959   fi
3960 else
3961   ac_cpp_err=yes
3962 fi
3963 if test -z "$ac_cpp_err"; then
3964   # Broken: success on invalid input.
3965 continue
3966 else
3967   echo "$as_me: failed program was:" >&5
3968 sed 's/^/| /' conftest.$ac_ext >&5
3969
3970   # Passes both tests.
3971 ac_preproc_ok=:
3972 break
3973 fi
3974 rm -f conftest.err conftest.$ac_ext
3975
3976 done
3977 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3978 rm -f conftest.err conftest.$ac_ext
3979 if $ac_preproc_ok; then
3980   break
3981 fi
3982
3983     done
3984     ac_cv_prog_CPP=$CPP
3985   
3986 fi
3987   CPP=$ac_cv_prog_CPP
3988 else
3989   ac_cv_prog_CPP=$CPP
3990 fi
3991 echo "$as_me:$LINENO: result: $CPP" >&5
3992 echo "${ECHO_T}$CPP" >&6
3993 ac_preproc_ok=false
3994 for ac_c_preproc_warn_flag in '' yes
3995 do
3996   # Use a header file that comes with gcc, so configuring glibc
3997   # with a fresh cross-compiler works.
3998   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3999   # <limits.h> exists even on freestanding compilers.
4000   # On the NeXT, cc -E runs the code through the compiler's parser,
4001   # not just through cpp. "Syntax error" is here to catch this case.
4002   cat >conftest.$ac_ext <<_ACEOF
4003 /* confdefs.h.  */
4004 _ACEOF
4005 cat confdefs.h >>conftest.$ac_ext
4006 cat >>conftest.$ac_ext <<_ACEOF
4007 /* end confdefs.h.  */
4008 @%:@ifdef __STDC__
4009 @%:@ include <limits.h>
4010 @%:@else
4011 @%:@ include <assert.h>
4012 @%:@endif
4013                      Syntax error
4014 _ACEOF
4015 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4016   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4017   ac_status=$?
4018   grep -v '^ *+' conftest.er1 >conftest.err
4019   rm -f conftest.er1
4020   cat conftest.err >&5
4021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4022   (exit $ac_status); } >/dev/null; then
4023   if test -s conftest.err; then
4024     ac_cpp_err=$ac_c_preproc_warn_flag
4025     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4026   else
4027     ac_cpp_err=
4028   fi
4029 else
4030   ac_cpp_err=yes
4031 fi
4032 if test -z "$ac_cpp_err"; then
4033   :
4034 else
4035   echo "$as_me: failed program was:" >&5
4036 sed 's/^/| /' conftest.$ac_ext >&5
4037
4038   # Broken: fails on valid input.
4039 continue
4040 fi
4041 rm -f conftest.err conftest.$ac_ext
4042
4043   # OK, works on sane cases.  Now check whether non-existent headers
4044   # can be detected and how.
4045   cat >conftest.$ac_ext <<_ACEOF
4046 /* confdefs.h.  */
4047 _ACEOF
4048 cat confdefs.h >>conftest.$ac_ext
4049 cat >>conftest.$ac_ext <<_ACEOF
4050 /* end confdefs.h.  */
4051 @%:@include <ac_nonexistent.h>
4052 _ACEOF
4053 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4054   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4055   ac_status=$?
4056   grep -v '^ *+' conftest.er1 >conftest.err
4057   rm -f conftest.er1
4058   cat conftest.err >&5
4059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060   (exit $ac_status); } >/dev/null; then
4061   if test -s conftest.err; then
4062     ac_cpp_err=$ac_c_preproc_warn_flag
4063     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4064   else
4065     ac_cpp_err=
4066   fi
4067 else
4068   ac_cpp_err=yes
4069 fi
4070 if test -z "$ac_cpp_err"; then
4071   # Broken: success on invalid input.
4072 continue
4073 else
4074   echo "$as_me: failed program was:" >&5
4075 sed 's/^/| /' conftest.$ac_ext >&5
4076
4077   # Passes both tests.
4078 ac_preproc_ok=:
4079 break
4080 fi
4081 rm -f conftest.err conftest.$ac_ext
4082
4083 done
4084 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4085 rm -f conftest.err conftest.$ac_ext
4086 if $ac_preproc_ok; then
4087   :
4088 else
4089   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4090 See \`config.log' for more details." >&5
4091 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4092 See \`config.log' for more details." >&2;}
4093    { (exit 1); exit 1; }; }
4094 fi
4095
4096 ac_ext=c
4097 ac_cpp='$CPP $CPPFLAGS'
4098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4101
4102
4103 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4104 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4105 if test "${ac_cv_header_stdc+set}" = set; then
4106   echo $ECHO_N "(cached) $ECHO_C" >&6
4107 else
4108   cat >conftest.$ac_ext <<_ACEOF
4109 /* confdefs.h.  */
4110 _ACEOF
4111 cat confdefs.h >>conftest.$ac_ext
4112 cat >>conftest.$ac_ext <<_ACEOF
4113 /* end confdefs.h.  */
4114 #include <stdlib.h>
4115 #include <stdarg.h>
4116 #include <string.h>
4117 #include <float.h>
4118
4119 int
4120 main ()
4121 {
4122
4123   ;
4124   return 0;
4125 }
4126 _ACEOF
4127 rm -f conftest.$ac_objext
4128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4129   (eval $ac_compile) 2>conftest.er1
4130   ac_status=$?
4131   grep -v '^ *+' conftest.er1 >conftest.err
4132   rm -f conftest.er1
4133   cat conftest.err >&5
4134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135   (exit $ac_status); } &&
4136          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4138   (eval $ac_try) 2>&5
4139   ac_status=$?
4140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141   (exit $ac_status); }; } &&
4142          { ac_try='test -s conftest.$ac_objext'
4143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4144   (eval $ac_try) 2>&5
4145   ac_status=$?
4146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147   (exit $ac_status); }; }; then
4148   ac_cv_header_stdc=yes
4149 else
4150   echo "$as_me: failed program was:" >&5
4151 sed 's/^/| /' conftest.$ac_ext >&5
4152
4153 ac_cv_header_stdc=no
4154 fi
4155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4156
4157 if test $ac_cv_header_stdc = yes; then
4158   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4159   cat >conftest.$ac_ext <<_ACEOF
4160 /* confdefs.h.  */
4161 _ACEOF
4162 cat confdefs.h >>conftest.$ac_ext
4163 cat >>conftest.$ac_ext <<_ACEOF
4164 /* end confdefs.h.  */
4165 #include <string.h>
4166
4167 _ACEOF
4168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4169   $EGREP "memchr" >/dev/null 2>&1; then
4170   :
4171 else
4172   ac_cv_header_stdc=no
4173 fi
4174 rm -f conftest*
4175
4176 fi
4177
4178 if test $ac_cv_header_stdc = yes; then
4179   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4180   cat >conftest.$ac_ext <<_ACEOF
4181 /* confdefs.h.  */
4182 _ACEOF
4183 cat confdefs.h >>conftest.$ac_ext
4184 cat >>conftest.$ac_ext <<_ACEOF
4185 /* end confdefs.h.  */
4186 #include <stdlib.h>
4187
4188 _ACEOF
4189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4190   $EGREP "free" >/dev/null 2>&1; then
4191   :
4192 else
4193   ac_cv_header_stdc=no
4194 fi
4195 rm -f conftest*
4196
4197 fi
4198
4199 if test $ac_cv_header_stdc = yes; then
4200   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4201   if test "$cross_compiling" = yes; then
4202   :
4203 else
4204   cat >conftest.$ac_ext <<_ACEOF
4205 /* confdefs.h.  */
4206 _ACEOF
4207 cat confdefs.h >>conftest.$ac_ext
4208 cat >>conftest.$ac_ext <<_ACEOF
4209 /* end confdefs.h.  */
4210 #include <ctype.h>
4211 #if ((' ' & 0x0FF) == 0x020)
4212 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4213 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4214 #else
4215 # define ISLOWER(c) \
4216                    (('a' <= (c) && (c) <= 'i') \
4217                      || ('j' <= (c) && (c) <= 'r') \
4218                      || ('s' <= (c) && (c) <= 'z'))
4219 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4220 #endif
4221
4222 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4223 int
4224 main ()
4225 {
4226   int i;
4227   for (i = 0; i < 256; i++)
4228     if (XOR (islower (i), ISLOWER (i))
4229         || toupper (i) != TOUPPER (i))
4230       exit(2);
4231   exit (0);
4232 }
4233 _ACEOF
4234 rm -f conftest$ac_exeext
4235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4236   (eval $ac_link) 2>&5
4237   ac_status=$?
4238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4241   (eval $ac_try) 2>&5
4242   ac_status=$?
4243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244   (exit $ac_status); }; }; then
4245   :
4246 else
4247   echo "$as_me: program exited with status $ac_status" >&5
4248 echo "$as_me: failed program was:" >&5
4249 sed 's/^/| /' conftest.$ac_ext >&5
4250
4251 ( exit $ac_status )
4252 ac_cv_header_stdc=no
4253 fi
4254 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4255 fi
4256 fi
4257 fi
4258 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4259 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4260 if test $ac_cv_header_stdc = yes; then
4261   
4262 cat >>confdefs.h <<\_ACEOF
4263 @%:@define STDC_HEADERS 1
4264 _ACEOF
4265
4266 fi
4267
4268 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4279                   inttypes.h stdint.h unistd.h
4280 do
4281 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4282 echo "$as_me:$LINENO: checking for $ac_header" >&5
4283 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4284 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4285   echo $ECHO_N "(cached) $ECHO_C" >&6
4286 else
4287   cat >conftest.$ac_ext <<_ACEOF
4288 /* confdefs.h.  */
4289 _ACEOF
4290 cat confdefs.h >>conftest.$ac_ext
4291 cat >>conftest.$ac_ext <<_ACEOF
4292 /* end confdefs.h.  */
4293 $ac_includes_default
4294
4295 @%:@include <$ac_header>
4296 _ACEOF
4297 rm -f conftest.$ac_objext
4298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4299   (eval $ac_compile) 2>conftest.er1
4300   ac_status=$?
4301   grep -v '^ *+' conftest.er1 >conftest.err
4302   rm -f conftest.er1
4303   cat conftest.err >&5
4304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305   (exit $ac_status); } &&
4306          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4308   (eval $ac_try) 2>&5
4309   ac_status=$?
4310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311   (exit $ac_status); }; } &&
4312          { ac_try='test -s conftest.$ac_objext'
4313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4314   (eval $ac_try) 2>&5
4315   ac_status=$?
4316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317   (exit $ac_status); }; }; then
4318   eval "$as_ac_Header=yes"
4319 else
4320   echo "$as_me: failed program was:" >&5
4321 sed 's/^/| /' conftest.$ac_ext >&5
4322
4323 eval "$as_ac_Header=no"
4324 fi
4325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4326 fi
4327 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4328 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4329 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4330   cat >>confdefs.h <<_ACEOF
4331 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4332 _ACEOF
4333  
4334 fi
4335
4336 done
4337
4338
4339
4340 for ac_header in dlfcn.h
4341 do
4342 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4343 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4344   echo "$as_me:$LINENO: checking for $ac_header" >&5
4345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4346 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4347   echo $ECHO_N "(cached) $ECHO_C" >&6
4348 fi
4349 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4350 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4351 else
4352   # Is the header compilable?
4353 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4354 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4355 cat >conftest.$ac_ext <<_ACEOF
4356 /* confdefs.h.  */
4357 _ACEOF
4358 cat confdefs.h >>conftest.$ac_ext
4359 cat >>conftest.$ac_ext <<_ACEOF
4360 /* end confdefs.h.  */
4361 $ac_includes_default
4362 @%:@include <$ac_header>
4363 _ACEOF
4364 rm -f conftest.$ac_objext
4365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4366   (eval $ac_compile) 2>conftest.er1
4367   ac_status=$?
4368   grep -v '^ *+' conftest.er1 >conftest.err
4369   rm -f conftest.er1
4370   cat conftest.err >&5
4371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372   (exit $ac_status); } &&
4373          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4375   (eval $ac_try) 2>&5
4376   ac_status=$?
4377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378   (exit $ac_status); }; } &&
4379          { ac_try='test -s conftest.$ac_objext'
4380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4381   (eval $ac_try) 2>&5
4382   ac_status=$?
4383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384   (exit $ac_status); }; }; then
4385   ac_header_compiler=yes
4386 else
4387   echo "$as_me: failed program was:" >&5
4388 sed 's/^/| /' conftest.$ac_ext >&5
4389
4390 ac_header_compiler=no
4391 fi
4392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4393 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4394 echo "${ECHO_T}$ac_header_compiler" >&6
4395
4396 # Is the header present?
4397 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4398 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4399 cat >conftest.$ac_ext <<_ACEOF
4400 /* confdefs.h.  */
4401 _ACEOF
4402 cat confdefs.h >>conftest.$ac_ext
4403 cat >>conftest.$ac_ext <<_ACEOF
4404 /* end confdefs.h.  */
4405 @%:@include <$ac_header>
4406 _ACEOF
4407 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4408   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4409   ac_status=$?
4410   grep -v '^ *+' conftest.er1 >conftest.err
4411   rm -f conftest.er1
4412   cat conftest.err >&5
4413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414   (exit $ac_status); } >/dev/null; then
4415   if test -s conftest.err; then
4416     ac_cpp_err=$ac_c_preproc_warn_flag
4417     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4418   else
4419     ac_cpp_err=
4420   fi
4421 else
4422   ac_cpp_err=yes
4423 fi
4424 if test -z "$ac_cpp_err"; then
4425   ac_header_preproc=yes
4426 else
4427   echo "$as_me: failed program was:" >&5
4428 sed 's/^/| /' conftest.$ac_ext >&5
4429
4430   ac_header_preproc=no
4431 fi
4432 rm -f conftest.err conftest.$ac_ext
4433 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4434 echo "${ECHO_T}$ac_header_preproc" >&6
4435
4436 # So?  What about this header?
4437 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4438   yes:no: )
4439     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4440 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4441     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4442 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4443     ac_header_preproc=yes
4444     ;;
4445   no:yes:* )
4446     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4447 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4448     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4449 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4450     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4451 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4452     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4453 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4454     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4455 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4456     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4457 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4458     (
4459       cat <<\_ASBOX
4460 @%:@@%:@ ------------------------------------- @%:@@%:@
4461 @%:@@%:@ Report this to uncensored.citadel.org @%:@@%:@
4462 @%:@@%:@ ------------------------------------- @%:@@%:@
4463 _ASBOX
4464     ) |
4465       sed "s/^/$as_me: WARNING:     /" >&2
4466     ;;
4467 esac
4468 echo "$as_me:$LINENO: checking for $ac_header" >&5
4469 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4471   echo $ECHO_N "(cached) $ECHO_C" >&6
4472 else
4473   eval "$as_ac_Header=\$ac_header_preproc"
4474 fi
4475 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4476 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4477
4478 fi
4479 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4480   cat >>confdefs.h <<_ACEOF
4481 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4482 _ACEOF
4483  
4484 fi
4485
4486 done
4487
4488 ac_ext=cc
4489 ac_cpp='$CXXCPP $CPPFLAGS'
4490 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4491 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4492 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4493 if test -n "$ac_tool_prefix"; then
4494   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4495   do
4496     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4497 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4498 echo "$as_me:$LINENO: checking for $ac_word" >&5
4499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4500 if test "${ac_cv_prog_CXX+set}" = set; then
4501   echo $ECHO_N "(cached) $ECHO_C" >&6
4502 else
4503   if test -n "$CXX"; then
4504   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4505 else
4506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4507 for as_dir in $PATH
4508 do
4509   IFS=$as_save_IFS
4510   test -z "$as_dir" && as_dir=.
4511   for ac_exec_ext in '' $ac_executable_extensions; do
4512   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4513     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4514     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4515     break 2
4516   fi
4517 done
4518 done
4519
4520 fi
4521 fi
4522 CXX=$ac_cv_prog_CXX
4523 if test -n "$CXX"; then
4524   echo "$as_me:$LINENO: result: $CXX" >&5
4525 echo "${ECHO_T}$CXX" >&6
4526 else
4527   echo "$as_me:$LINENO: result: no" >&5
4528 echo "${ECHO_T}no" >&6
4529 fi
4530
4531     test -n "$CXX" && break
4532   done
4533 fi
4534 if test -z "$CXX"; then
4535   ac_ct_CXX=$CXX
4536   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4537 do
4538   # Extract the first word of "$ac_prog", so it can be a program name with args.
4539 set dummy $ac_prog; ac_word=$2
4540 echo "$as_me:$LINENO: checking for $ac_word" >&5
4541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4542 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4543   echo $ECHO_N "(cached) $ECHO_C" >&6
4544 else
4545   if test -n "$ac_ct_CXX"; then
4546   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4547 else
4548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4549 for as_dir in $PATH
4550 do
4551   IFS=$as_save_IFS
4552   test -z "$as_dir" && as_dir=.
4553   for ac_exec_ext in '' $ac_executable_extensions; do
4554   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4555     ac_cv_prog_ac_ct_CXX="$ac_prog"
4556     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4557     break 2
4558   fi
4559 done
4560 done
4561
4562 fi
4563 fi
4564 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4565 if test -n "$ac_ct_CXX"; then
4566   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4567 echo "${ECHO_T}$ac_ct_CXX" >&6
4568 else
4569   echo "$as_me:$LINENO: result: no" >&5
4570 echo "${ECHO_T}no" >&6
4571 fi
4572
4573   test -n "$ac_ct_CXX" && break
4574 done
4575 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4576
4577   CXX=$ac_ct_CXX
4578 fi
4579
4580
4581 # Provide some information about the compiler.
4582 echo "$as_me:$LINENO:" \
4583      "checking for C++ compiler version" >&5
4584 ac_compiler=`set X $ac_compile; echo $2`
4585 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4586   (eval $ac_compiler --version </dev/null >&5) 2>&5
4587   ac_status=$?
4588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589   (exit $ac_status); }
4590 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4591   (eval $ac_compiler -v </dev/null >&5) 2>&5
4592   ac_status=$?
4593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594   (exit $ac_status); }
4595 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4596   (eval $ac_compiler -V </dev/null >&5) 2>&5
4597   ac_status=$?
4598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599   (exit $ac_status); }
4600
4601 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4602 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4603 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4604   echo $ECHO_N "(cached) $ECHO_C" >&6
4605 else
4606   cat >conftest.$ac_ext <<_ACEOF
4607 /* confdefs.h.  */
4608 _ACEOF
4609 cat confdefs.h >>conftest.$ac_ext
4610 cat >>conftest.$ac_ext <<_ACEOF
4611 /* end confdefs.h.  */
4612
4613 int
4614 main ()
4615 {
4616 #ifndef __GNUC__
4617        choke me
4618 #endif
4619
4620   ;
4621   return 0;
4622 }
4623 _ACEOF
4624 rm -f conftest.$ac_objext
4625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4626   (eval $ac_compile) 2>conftest.er1
4627   ac_status=$?
4628   grep -v '^ *+' conftest.er1 >conftest.err
4629   rm -f conftest.er1
4630   cat conftest.err >&5
4631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632   (exit $ac_status); } &&
4633          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4635   (eval $ac_try) 2>&5
4636   ac_status=$?
4637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638   (exit $ac_status); }; } &&
4639          { ac_try='test -s conftest.$ac_objext'
4640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4641   (eval $ac_try) 2>&5
4642   ac_status=$?
4643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644   (exit $ac_status); }; }; then
4645   ac_compiler_gnu=yes
4646 else
4647   echo "$as_me: failed program was:" >&5
4648 sed 's/^/| /' conftest.$ac_ext >&5
4649
4650 ac_compiler_gnu=no
4651 fi
4652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4653 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4654
4655 fi
4656 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4657 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4658 GXX=`test $ac_compiler_gnu = yes && echo yes`
4659 ac_test_CXXFLAGS=${CXXFLAGS+set}
4660 ac_save_CXXFLAGS=$CXXFLAGS
4661 CXXFLAGS="-g"
4662 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4663 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4664 if test "${ac_cv_prog_cxx_g+set}" = set; then
4665   echo $ECHO_N "(cached) $ECHO_C" >&6
4666 else
4667   cat >conftest.$ac_ext <<_ACEOF
4668 /* confdefs.h.  */
4669 _ACEOF
4670 cat confdefs.h >>conftest.$ac_ext
4671 cat >>conftest.$ac_ext <<_ACEOF
4672 /* end confdefs.h.  */
4673
4674 int
4675 main ()
4676 {
4677
4678   ;
4679   return 0;
4680 }
4681 _ACEOF
4682 rm -f conftest.$ac_objext
4683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4684   (eval $ac_compile) 2>conftest.er1
4685   ac_status=$?
4686   grep -v '^ *+' conftest.er1 >conftest.err
4687   rm -f conftest.er1
4688   cat conftest.err >&5
4689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690   (exit $ac_status); } &&
4691          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4693   (eval $ac_try) 2>&5
4694   ac_status=$?
4695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696   (exit $ac_status); }; } &&
4697          { ac_try='test -s conftest.$ac_objext'
4698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4699   (eval $ac_try) 2>&5
4700   ac_status=$?
4701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702   (exit $ac_status); }; }; then
4703   ac_cv_prog_cxx_g=yes
4704 else
4705   echo "$as_me: failed program was:" >&5
4706 sed 's/^/| /' conftest.$ac_ext >&5
4707
4708 ac_cv_prog_cxx_g=no
4709 fi
4710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4711 fi
4712 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4713 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4714 if test "$ac_test_CXXFLAGS" = set; then
4715   CXXFLAGS=$ac_save_CXXFLAGS
4716 elif test $ac_cv_prog_cxx_g = yes; then
4717   if test "$GXX" = yes; then
4718     CXXFLAGS="-g -O2"
4719   else
4720     CXXFLAGS="-g"
4721   fi
4722 else
4723   if test "$GXX" = yes; then
4724     CXXFLAGS="-O2"
4725   else
4726     CXXFLAGS=
4727   fi
4728 fi
4729 for ac_declaration in \
4730    '' \
4731    'extern "C" void std::exit (int) throw (); using std::exit;' \
4732    'extern "C" void std::exit (int); using std::exit;' \
4733    'extern "C" void exit (int) throw ();' \
4734    'extern "C" void exit (int);' \
4735    'void exit (int);'
4736 do
4737   cat >conftest.$ac_ext <<_ACEOF
4738 /* confdefs.h.  */
4739 _ACEOF
4740 cat confdefs.h >>conftest.$ac_ext
4741 cat >>conftest.$ac_ext <<_ACEOF
4742 /* end confdefs.h.  */
4743 $ac_declaration
4744 @%:@include <stdlib.h>
4745 int
4746 main ()
4747 {
4748 exit (42);
4749   ;
4750   return 0;
4751 }
4752 _ACEOF
4753 rm -f conftest.$ac_objext
4754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4755   (eval $ac_compile) 2>conftest.er1
4756   ac_status=$?
4757   grep -v '^ *+' conftest.er1 >conftest.err
4758   rm -f conftest.er1
4759   cat conftest.err >&5
4760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761   (exit $ac_status); } &&
4762          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4764   (eval $ac_try) 2>&5
4765   ac_status=$?
4766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767   (exit $ac_status); }; } &&
4768          { ac_try='test -s conftest.$ac_objext'
4769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4770   (eval $ac_try) 2>&5
4771   ac_status=$?
4772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773   (exit $ac_status); }; }; then
4774   :
4775 else
4776   echo "$as_me: failed program was:" >&5
4777 sed 's/^/| /' conftest.$ac_ext >&5
4778
4779 continue
4780 fi
4781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4782   cat >conftest.$ac_ext <<_ACEOF
4783 /* confdefs.h.  */
4784 _ACEOF
4785 cat confdefs.h >>conftest.$ac_ext
4786 cat >>conftest.$ac_ext <<_ACEOF
4787 /* end confdefs.h.  */
4788 $ac_declaration
4789 int
4790 main ()
4791 {
4792 exit (42);
4793   ;
4794   return 0;
4795 }
4796 _ACEOF
4797 rm -f conftest.$ac_objext
4798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4799   (eval $ac_compile) 2>conftest.er1
4800   ac_status=$?
4801   grep -v '^ *+' conftest.er1 >conftest.err
4802   rm -f conftest.er1
4803   cat conftest.err >&5
4804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4805   (exit $ac_status); } &&
4806          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4808   (eval $ac_try) 2>&5
4809   ac_status=$?
4810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811   (exit $ac_status); }; } &&
4812          { ac_try='test -s conftest.$ac_objext'
4813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4814   (eval $ac_try) 2>&5
4815   ac_status=$?
4816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817   (exit $ac_status); }; }; then
4818   break
4819 else
4820   echo "$as_me: failed program was:" >&5
4821 sed 's/^/| /' conftest.$ac_ext >&5
4822
4823 fi
4824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4825 done
4826 rm -f conftest*
4827 if test -n "$ac_declaration"; then
4828   echo '#ifdef __cplusplus' >>confdefs.h
4829   echo $ac_declaration      >>confdefs.h
4830   echo '#endif'             >>confdefs.h
4831 fi
4832
4833 ac_ext=cc
4834 ac_cpp='$CXXCPP $CPPFLAGS'
4835 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4836 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4837 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4838
4839 depcc="$CXX"  am_compiler_list=
4840
4841 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4842 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4843 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4844   echo $ECHO_N "(cached) $ECHO_C" >&6
4845 else
4846   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4847   # We make a subdir and do the tests there.  Otherwise we can end up
4848   # making bogus files that we don't know about and never remove.  For
4849   # instance it was reported that on HP-UX the gcc test will end up
4850   # making a dummy file named `D' -- because `-MD' means `put the output
4851   # in D'.
4852   mkdir conftest.dir
4853   # Copy depcomp to subdir because otherwise we won't find it if we're
4854   # using a relative directory.
4855   cp "$am_depcomp" conftest.dir
4856   cd conftest.dir
4857   # We will build objects and dependencies in a subdirectory because
4858   # it helps to detect inapplicable dependency modes.  For instance
4859   # both Tru64's cc and ICC support -MD to output dependencies as a
4860   # side effect of compilation, but ICC will put the dependencies in
4861   # the current directory while Tru64 will put them in the object
4862   # directory.
4863   mkdir sub
4864
4865   am_cv_CXX_dependencies_compiler_type=none
4866   if test "$am_compiler_list" = ""; then
4867      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4868   fi
4869   for depmode in $am_compiler_list; do
4870     # Setup a source with many dependencies, because some compilers
4871     # like to wrap large dependency lists on column 80 (with \), and
4872     # we should not choose a depcomp mode which is confused by this.
4873     #
4874     # We need to recreate these files for each test, as the compiler may
4875     # overwrite some of them when testing with obscure command lines.
4876     # This happens at least with the AIX C compiler.
4877     : > sub/conftest.c
4878     for i in 1 2 3 4 5 6; do
4879       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4880       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4881       # Solaris 8's {/usr,}/bin/sh.
4882       touch sub/conftst$i.h
4883     done
4884     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4885
4886     case $depmode in
4887     nosideeffect)
4888       # after this tag, mechanisms are not by side-effect, so they'll
4889       # only be used when explicitly requested
4890       if test "x$enable_dependency_tracking" = xyes; then
4891         continue
4892       else
4893         break
4894       fi
4895       ;;
4896     none) break ;;
4897     esac
4898     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4899     # mode.  It turns out that the SunPro C++ compiler does not properly
4900     # handle `-M -o', and we need to detect this.
4901     if depmode=$depmode \
4902        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4903        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4904        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4905          >/dev/null 2>conftest.err &&
4906        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4907        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4908        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4909       # icc doesn't choke on unknown options, it will just issue warnings
4910       # or remarks (even with -Werror).  So we grep stderr for any message
4911       # that says an option was ignored or not supported.
4912       # When given -MP, icc 7.0 and 7.1 complain thusly:
4913       #   icc: Command line warning: ignoring option '-M'; no argument required
4914       # The diagnosis changed in icc 8.0:
4915       #   icc: Command line remark: option '-MP' not supported
4916       if (grep 'ignoring option' conftest.err ||
4917           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4918         am_cv_CXX_dependencies_compiler_type=$depmode
4919         break
4920       fi
4921     fi
4922   done
4923
4924   cd ..
4925   rm -rf conftest.dir
4926 else
4927   am_cv_CXX_dependencies_compiler_type=none
4928 fi
4929
4930 fi
4931 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4932 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4933 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4934
4935  
4936
4937 if 
4938   test "x$enable_dependency_tracking" != xno \
4939   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4940   am__fastdepCXX_TRUE=
4941   am__fastdepCXX_FALSE='#'
4942 else
4943   am__fastdepCXX_TRUE='#'
4944   am__fastdepCXX_FALSE=
4945 fi
4946
4947
4948
4949
4950 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4951     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4952     (test "X$CXX" != "Xg++"))) ; then
4953   ac_ext=cc
4954 ac_cpp='$CXXCPP $CPPFLAGS'
4955 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4956 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4957 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4958 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4959 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4960 if test -z "$CXXCPP"; then
4961   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4962   echo $ECHO_N "(cached) $ECHO_C" >&6
4963 else
4964       # Double quotes because CXXCPP needs to be expanded
4965     for CXXCPP in "$CXX -E" "/lib/cpp"
4966     do
4967       ac_preproc_ok=false
4968 for ac_cxx_preproc_warn_flag in '' yes
4969 do
4970   # Use a header file that comes with gcc, so configuring glibc
4971   # with a fresh cross-compiler works.
4972   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4973   # <limits.h> exists even on freestanding compilers.
4974   # On the NeXT, cc -E runs the code through the compiler's parser,
4975   # not just through cpp. "Syntax error" is here to catch this case.
4976   cat >conftest.$ac_ext <<_ACEOF
4977 /* confdefs.h.  */
4978 _ACEOF
4979 cat confdefs.h >>conftest.$ac_ext
4980 cat >>conftest.$ac_ext <<_ACEOF
4981 /* end confdefs.h.  */
4982 @%:@ifdef __STDC__
4983 @%:@ include <limits.h>
4984 @%:@else
4985 @%:@ include <assert.h>
4986 @%:@endif
4987                      Syntax error
4988 _ACEOF
4989 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4990   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4991   ac_status=$?
4992   grep -v '^ *+' conftest.er1 >conftest.err
4993   rm -f conftest.er1
4994   cat conftest.err >&5
4995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996   (exit $ac_status); } >/dev/null; then
4997   if test -s conftest.err; then
4998     ac_cpp_err=$ac_cxx_preproc_warn_flag
4999     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5000   else
5001     ac_cpp_err=
5002   fi
5003 else
5004   ac_cpp_err=yes
5005 fi
5006 if test -z "$ac_cpp_err"; then
5007   :
5008 else
5009   echo "$as_me: failed program was:" >&5
5010 sed 's/^/| /' conftest.$ac_ext >&5
5011
5012   # Broken: fails on valid input.
5013 continue
5014 fi
5015 rm -f conftest.err conftest.$ac_ext
5016
5017   # OK, works on sane cases.  Now check whether non-existent headers
5018   # can be detected and how.
5019   cat >conftest.$ac_ext <<_ACEOF
5020 /* confdefs.h.  */
5021 _ACEOF
5022 cat confdefs.h >>conftest.$ac_ext
5023 cat >>conftest.$ac_ext <<_ACEOF
5024 /* end confdefs.h.  */
5025 @%:@include <ac_nonexistent.h>
5026 _ACEOF
5027 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5028   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5029   ac_status=$?
5030   grep -v '^ *+' conftest.er1 >conftest.err
5031   rm -f conftest.er1
5032   cat conftest.err >&5
5033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034   (exit $ac_status); } >/dev/null; then
5035   if test -s conftest.err; then
5036     ac_cpp_err=$ac_cxx_preproc_warn_flag
5037     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5038   else
5039     ac_cpp_err=
5040   fi
5041 else
5042   ac_cpp_err=yes
5043 fi
5044 if test -z "$ac_cpp_err"; then
5045   # Broken: success on invalid input.
5046 continue
5047 else
5048   echo "$as_me: failed program was:" >&5
5049 sed 's/^/| /' conftest.$ac_ext >&5
5050
5051   # Passes both tests.
5052 ac_preproc_ok=:
5053 break
5054 fi
5055 rm -f conftest.err conftest.$ac_ext
5056
5057 done
5058 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5059 rm -f conftest.err conftest.$ac_ext
5060 if $ac_preproc_ok; then
5061   break
5062 fi
5063
5064     done
5065     ac_cv_prog_CXXCPP=$CXXCPP
5066   
5067 fi
5068   CXXCPP=$ac_cv_prog_CXXCPP
5069 else
5070   ac_cv_prog_CXXCPP=$CXXCPP
5071 fi
5072 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5073 echo "${ECHO_T}$CXXCPP" >&6
5074 ac_preproc_ok=false
5075 for ac_cxx_preproc_warn_flag in '' yes
5076 do
5077   # Use a header file that comes with gcc, so configuring glibc
5078   # with a fresh cross-compiler works.
5079   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5080   # <limits.h> exists even on freestanding compilers.
5081   # On the NeXT, cc -E runs the code through the compiler's parser,
5082   # not just through cpp. "Syntax error" is here to catch this case.
5083   cat >conftest.$ac_ext <<_ACEOF
5084 /* confdefs.h.  */
5085 _ACEOF
5086 cat confdefs.h >>conftest.$ac_ext
5087 cat >>conftest.$ac_ext <<_ACEOF
5088 /* end confdefs.h.  */
5089 @%:@ifdef __STDC__
5090 @%:@ include <limits.h>
5091 @%:@else
5092 @%:@ include <assert.h>
5093 @%:@endif
5094                      Syntax error
5095 _ACEOF
5096 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5097   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5098   ac_status=$?
5099   grep -v '^ *+' conftest.er1 >conftest.err
5100   rm -f conftest.er1
5101   cat conftest.err >&5
5102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103   (exit $ac_status); } >/dev/null; then
5104   if test -s conftest.err; then
5105     ac_cpp_err=$ac_cxx_preproc_warn_flag
5106     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5107   else
5108     ac_cpp_err=
5109   fi
5110 else
5111   ac_cpp_err=yes
5112 fi
5113 if test -z "$ac_cpp_err"; then
5114   :
5115 else
5116   echo "$as_me: failed program was:" >&5
5117 sed 's/^/| /' conftest.$ac_ext >&5
5118
5119   # Broken: fails on valid input.
5120 continue
5121 fi
5122 rm -f conftest.err conftest.$ac_ext
5123
5124   # OK, works on sane cases.  Now check whether non-existent headers
5125   # can be detected and how.
5126   cat >conftest.$ac_ext <<_ACEOF
5127 /* confdefs.h.  */
5128 _ACEOF
5129 cat confdefs.h >>conftest.$ac_ext
5130 cat >>conftest.$ac_ext <<_ACEOF
5131 /* end confdefs.h.  */
5132 @%:@include <ac_nonexistent.h>
5133 _ACEOF
5134 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5135   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5136   ac_status=$?
5137   grep -v '^ *+' conftest.er1 >conftest.err
5138   rm -f conftest.er1
5139   cat conftest.err >&5
5140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141   (exit $ac_status); } >/dev/null; then
5142   if test -s conftest.err; then
5143     ac_cpp_err=$ac_cxx_preproc_warn_flag
5144     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5145   else
5146     ac_cpp_err=
5147   fi
5148 else
5149   ac_cpp_err=yes
5150 fi
5151 if test -z "$ac_cpp_err"; then
5152   # Broken: success on invalid input.
5153 continue
5154 else
5155   echo "$as_me: failed program was:" >&5
5156 sed 's/^/| /' conftest.$ac_ext >&5
5157
5158   # Passes both tests.
5159 ac_preproc_ok=:
5160 break
5161 fi
5162 rm -f conftest.err conftest.$ac_ext
5163
5164 done
5165 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5166 rm -f conftest.err conftest.$ac_ext
5167 if $ac_preproc_ok; then
5168   :
5169 else
5170   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5171 See \`config.log' for more details." >&5
5172 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5173 See \`config.log' for more details." >&2;}
5174    { (exit 1); exit 1; }; }
5175 fi
5176
5177 ac_ext=cc
5178 ac_cpp='$CXXCPP $CPPFLAGS'
5179 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5180 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5181 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5182
5183 fi
5184
5185
5186 ac_ext=f
5187 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5188 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5189 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5190 if test -n "$ac_tool_prefix"; then
5191   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5192   do
5193     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5194 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5195 echo "$as_me:$LINENO: checking for $ac_word" >&5
5196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5197 if test "${ac_cv_prog_F77+set}" = set; then
5198   echo $ECHO_N "(cached) $ECHO_C" >&6
5199 else
5200   if test -n "$F77"; then
5201   ac_cv_prog_F77="$F77" # Let the user override the test.
5202 else
5203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5204 for as_dir in $PATH
5205 do
5206   IFS=$as_save_IFS
5207   test -z "$as_dir" && as_dir=.
5208   for ac_exec_ext in '' $ac_executable_extensions; do
5209   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5210     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5211     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5212     break 2
5213   fi
5214 done
5215 done
5216
5217 fi
5218 fi
5219 F77=$ac_cv_prog_F77
5220 if test -n "$F77"; then
5221   echo "$as_me:$LINENO: result: $F77" >&5
5222 echo "${ECHO_T}$F77" >&6
5223 else
5224   echo "$as_me:$LINENO: result: no" >&5
5225 echo "${ECHO_T}no" >&6
5226 fi
5227
5228     test -n "$F77" && break
5229   done
5230 fi
5231 if test -z "$F77"; then
5232   ac_ct_F77=$F77
5233   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5234 do
5235   # Extract the first word of "$ac_prog", so it can be a program name with args.
5236 set dummy $ac_prog; ac_word=$2
5237 echo "$as_me:$LINENO: checking for $ac_word" >&5
5238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5239 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5240   echo $ECHO_N "(cached) $ECHO_C" >&6
5241 else
5242   if test -n "$ac_ct_F77"; then
5243   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5244 else
5245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5246 for as_dir in $PATH
5247 do
5248   IFS=$as_save_IFS
5249   test -z "$as_dir" && as_dir=.
5250   for ac_exec_ext in '' $ac_executable_extensions; do
5251   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5252     ac_cv_prog_ac_ct_F77="$ac_prog"
5253     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5254     break 2
5255   fi
5256 done
5257 done
5258
5259 fi
5260 fi
5261 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5262 if test -n "$ac_ct_F77"; then
5263   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5264 echo "${ECHO_T}$ac_ct_F77" >&6
5265 else
5266   echo "$as_me:$LINENO: result: no" >&5
5267 echo "${ECHO_T}no" >&6
5268 fi
5269
5270   test -n "$ac_ct_F77" && break
5271 done
5272
5273   F77=$ac_ct_F77
5274 fi
5275
5276
5277 # Provide some information about the compiler.
5278 echo "$as_me:__oline__:" \
5279      "checking for Fortran 77 compiler version" >&5
5280 ac_compiler=`set X $ac_compile; echo $2`
5281 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5282   (eval $ac_compiler --version </dev/null >&5) 2>&5
5283   ac_status=$?
5284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285   (exit $ac_status); }
5286 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5287   (eval $ac_compiler -v </dev/null >&5) 2>&5
5288   ac_status=$?
5289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5290   (exit $ac_status); }
5291 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5292   (eval $ac_compiler -V </dev/null >&5) 2>&5
5293   ac_status=$?
5294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295   (exit $ac_status); }
5296 rm -f a.out
5297
5298 # If we don't use `.F' as extension, the preprocessor is not run on the
5299 # input file.  (Note that this only needs to work for GNU compilers.)
5300 ac_save_ext=$ac_ext
5301 ac_ext=F
5302 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5303 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5304 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5305   echo $ECHO_N "(cached) $ECHO_C" >&6
5306 else
5307   cat >conftest.$ac_ext <<_ACEOF
5308       program main
5309 #ifndef __GNUC__
5310        choke me
5311 #endif
5312
5313       end
5314 _ACEOF
5315 rm -f conftest.$ac_objext
5316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5317   (eval $ac_compile) 2>conftest.er1
5318   ac_status=$?
5319   grep -v '^ *+' conftest.er1 >conftest.err
5320   rm -f conftest.er1
5321   cat conftest.err >&5
5322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323   (exit $ac_status); } &&
5324          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
5325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5326   (eval $ac_try) 2>&5
5327   ac_status=$?
5328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329   (exit $ac_status); }; } &&
5330          { ac_try='test -s conftest.$ac_objext'
5331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5332   (eval $ac_try) 2>&5
5333   ac_status=$?
5334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5335   (exit $ac_status); }; }; then
5336   ac_compiler_gnu=yes
5337 else
5338   echo "$as_me: failed program was:" >&5
5339 sed 's/^/| /' conftest.$ac_ext >&5
5340
5341 ac_compiler_gnu=no
5342 fi
5343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5344 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5345
5346 fi
5347 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5348 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5349 ac_ext=$ac_save_ext
5350 ac_test_FFLAGS=${FFLAGS+set}
5351 ac_save_FFLAGS=$FFLAGS
5352 FFLAGS=
5353 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5354 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5355 if test "${ac_cv_prog_f77_g+set}" = set; then
5356   echo $ECHO_N "(cached) $ECHO_C" >&6
5357 else
5358   FFLAGS=-g
5359 cat >conftest.$ac_ext <<_ACEOF
5360       program main
5361
5362       end
5363 _ACEOF
5364 rm -f conftest.$ac_objext
5365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5366   (eval $ac_compile) 2>conftest.er1
5367   ac_status=$?
5368   grep -v '^ *+' conftest.er1 >conftest.err
5369   rm -f conftest.er1
5370   cat conftest.err >&5
5371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372   (exit $ac_status); } &&
5373          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
5374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5375   (eval $ac_try) 2>&5
5376   ac_status=$?
5377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378   (exit $ac_status); }; } &&
5379          { ac_try='test -s conftest.$ac_objext'
5380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5381   (eval $ac_try) 2>&5
5382   ac_status=$?
5383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384   (exit $ac_status); }; }; then
5385   ac_cv_prog_f77_g=yes
5386 else
5387   echo "$as_me: failed program was:" >&5
5388 sed 's/^/| /' conftest.$ac_ext >&5
5389
5390 ac_cv_prog_f77_g=no
5391 fi
5392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5393
5394 fi
5395 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5396 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5397 if test "$ac_test_FFLAGS" = set; then
5398   FFLAGS=$ac_save_FFLAGS
5399 elif test $ac_cv_prog_f77_g = yes; then
5400   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5401     FFLAGS="-g -O2"
5402   else
5403     FFLAGS="-g"
5404   fi
5405 else
5406   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5407     FFLAGS="-O2"
5408   else
5409     FFLAGS=
5410   fi
5411 fi
5412
5413 G77=`test $ac_compiler_gnu = yes && echo yes`
5414 ac_ext=c
5415 ac_cpp='$CPP $CPPFLAGS'
5416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5419
5420
5421
5422 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5423
5424 # find the maximum length of command line arguments
5425 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5426 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5427 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5428   echo $ECHO_N "(cached) $ECHO_C" >&6
5429 else
5430     i=0
5431   teststring="ABCD"
5432
5433   case $build_os in
5434   msdosdjgpp*)
5435     # On DJGPP, this test can blow up pretty badly due to problems in libc
5436     # (any single argument exceeding 2000 bytes causes a buffer overrun
5437     # during glob expansion).  Even if it were fixed, the result of this
5438     # check would be larger than it should be.
5439     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5440     ;;
5441
5442   gnu*)
5443     # Under GNU Hurd, this test is not required because there is
5444     # no limit to the length of command line arguments.
5445     # Libtool will interpret -1 as no limit whatsoever
5446     lt_cv_sys_max_cmd_len=-1;
5447     ;;
5448
5449   cygwin* | mingw*)
5450     # On Win9x/ME, this test blows up -- it succeeds, but takes
5451     # about 5 minutes as the teststring grows exponentially.
5452     # Worse, since 9x/ME are not pre-emptively multitasking,
5453     # you end up with a "frozen" computer, even though with patience
5454     # the test eventually succeeds (with a max line length of 256k).
5455     # Instead, let's just punt: use the minimum linelength reported by
5456     # all of the supported platforms: 8192 (on NT/2K/XP).
5457     lt_cv_sys_max_cmd_len=8192;
5458     ;;
5459
5460   amigaos*)
5461     # On AmigaOS with pdksh, this test takes hours, literally.
5462     # So we just punt and use a minimum line length of 8192.
5463     lt_cv_sys_max_cmd_len=8192;
5464     ;;
5465
5466   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5467     # This has been around since 386BSD, at least.  Likely further.
5468     if test -x /sbin/sysctl; then
5469       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5470     elif test -x /usr/sbin/sysctl; then
5471       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5472     else
5473       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5474     fi
5475     # And add a safety zone
5476     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5477     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5478     ;;
5479
5480   interix*)
5481     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5482     lt_cv_sys_max_cmd_len=196608
5483     ;;
5484
5485   osf*)
5486     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5487     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5488     # nice to cause kernel panics so lets avoid the loop below.
5489     # First set a reasonable default.
5490     lt_cv_sys_max_cmd_len=16384
5491     #
5492     if test -x /sbin/sysconfig; then
5493       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5494         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5495       esac
5496     fi
5497     ;;
5498   sco3.2v5*)
5499     lt_cv_sys_max_cmd_len=102400
5500     ;;
5501   sysv5* | sco5v6* | sysv4.2uw2*)
5502     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5503     if test -n "$kargmax"; then
5504       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
5505     else
5506       lt_cv_sys_max_cmd_len=32768
5507     fi
5508     ;;
5509   *)
5510     # If test is not a shell built-in, we'll probably end up computing a
5511     # maximum length that is only half of the actual maximum length, but
5512     # we can't tell.
5513     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5514     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5515                = "XX$teststring") >/dev/null 2>&1 &&
5516             new_result=`expr "X$teststring" : ".*" 2>&1` &&
5517             lt_cv_sys_max_cmd_len=$new_result &&
5518             test $i != 17 # 1/2 MB should be enough
5519     do
5520       i=`expr $i + 1`
5521       teststring=$teststring$teststring
5522     done
5523     teststring=
5524     # Add a significant safety factor because C++ compilers can tack on massive
5525     # amounts of additional arguments before passing them to the linker.
5526     # It appears as though 1/2 is a usable value.
5527     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5528     ;;
5529   esac
5530
5531 fi
5532
5533 if test -n $lt_cv_sys_max_cmd_len ; then
5534   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5535 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5536 else
5537   echo "$as_me:$LINENO: result: none" >&5
5538 echo "${ECHO_T}none" >&6
5539 fi
5540
5541
5542
5543
5544 # Check for command to grab the raw symbol name followed by C symbol from nm.
5545 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5546 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5547 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5548   echo $ECHO_N "(cached) $ECHO_C" >&6
5549 else
5550   
5551 # These are sane defaults that work on at least a few old systems.
5552 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5553
5554 # Character class describing NM global symbol codes.
5555 symcode='[BCDEGRST]'
5556
5557 # Regexp to match symbols that can be accessed directly from C.
5558 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5559
5560 # Transform an extracted symbol line into a proper C declaration
5561 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5562
5563 # Transform an extracted symbol line into symbol name and symbol address
5564 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'"
5565
5566 # Define system-specific variables.
5567 case $host_os in
5568 aix*)
5569   symcode='[BCDT]'
5570   ;;
5571 cygwin* | mingw* | pw32*)
5572   symcode='[ABCDGISTW]'
5573   ;;
5574 hpux*) # Its linker distinguishes data from code symbols
5575   if test "$host_cpu" = ia64; then
5576     symcode='[ABCDEGRST]'
5577   fi
5578   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5579   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'"
5580   ;;
5581 linux* | k*bsd*-gnu)
5582   if test "$host_cpu" = ia64; then
5583     symcode='[ABCDGIRSTW]'
5584     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5585     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'"
5586   fi
5587   ;;
5588 irix* | nonstopux*)
5589   symcode='[BCDEGRST]'
5590   ;;
5591 osf*)
5592   symcode='[BCDEGQRST]'
5593   ;;
5594 solaris*)
5595   symcode='[BDRT]'
5596   ;;
5597 sco3.2v5*)
5598   symcode='[DT]'
5599   ;;
5600 sysv4.2uw2*)
5601   symcode='[DT]'
5602   ;;
5603 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5604   symcode='[ABDT]'
5605   ;;
5606 sysv4)
5607   symcode='[DFNSTU]'
5608   ;;
5609 esac
5610
5611 # Handle CRLF in mingw tool chain
5612 opt_cr=
5613 case $build_os in
5614 mingw*)
5615   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5616   ;;
5617 esac
5618
5619 # If we're using GNU nm, then use its standard symbol codes.
5620 case `$NM -V 2>&1` in
5621 *GNU* | *'with BFD'*)
5622   symcode='[ABCDGIRSTW]' ;;
5623 esac
5624
5625 # Try without a prefix undercore, then with it.
5626 for ac_symprfx in "" "_"; do
5627
5628   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5629   symxfrm="\\1 $ac_symprfx\\2 \\2"
5630
5631   # Write the raw and C identifiers.
5632   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5633
5634   # Check to see that the pipe works correctly.
5635   pipe_works=no
5636
5637   rm -f conftest*
5638   cat > conftest.$ac_ext <<EOF
5639 #ifdef __cplusplus
5640 extern "C" {
5641 #endif
5642 char nm_test_var;
5643 void nm_test_func(){}
5644 #ifdef __cplusplus
5645 }
5646 #endif
5647 int main(){nm_test_var='a';nm_test_func();return(0);}
5648 EOF
5649
5650   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5651   (eval $ac_compile) 2>&5
5652   ac_status=$?
5653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654   (exit $ac_status); }; then
5655     # Now try to grab the symbols.
5656     nlist=conftest.nm
5657     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5658   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5659   ac_status=$?
5660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661   (exit $ac_status); } && test -s "$nlist"; then
5662       # Try sorting and uniquifying the output.
5663       if sort "$nlist" | uniq > "$nlist"T; then
5664         mv -f "$nlist"T "$nlist"
5665       else
5666         rm -f "$nlist"T
5667       fi
5668
5669       # Make sure that we snagged all the symbols we need.
5670       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5671         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5672           cat <<EOF > conftest.$ac_ext
5673 #ifdef __cplusplus
5674 extern "C" {
5675 #endif
5676
5677 EOF
5678           # Now generate the symbol file.
5679           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5680
5681           cat <<EOF >> conftest.$ac_ext
5682 #if defined (__STDC__) && __STDC__
5683 # define lt_ptr_t void *
5684 #else
5685 # define lt_ptr_t char *
5686 # define const
5687 #endif
5688
5689 /* The mapping between symbol names and symbols. */
5690 const struct {
5691   const char *name;
5692   lt_ptr_t address;
5693 }
5694 lt_preloaded_symbols[] =
5695 {
5696 EOF
5697           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5698           cat <<\EOF >> conftest.$ac_ext
5699   {0, (lt_ptr_t) 0}
5700 };
5701
5702 #ifdef __cplusplus
5703 }
5704 #endif
5705 EOF
5706           # Now try linking the two files.
5707           mv conftest.$ac_objext conftstm.$ac_objext
5708           lt_save_LIBS="$LIBS"
5709           lt_save_CFLAGS="$CFLAGS"
5710           LIBS="conftstm.$ac_objext"
5711           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5712           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5713   (eval $ac_link) 2>&5
5714   ac_status=$?
5715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5717             pipe_works=yes
5718           fi
5719           LIBS="$lt_save_LIBS"
5720           CFLAGS="$lt_save_CFLAGS"
5721         else
5722           echo "cannot find nm_test_func in $nlist" >&5
5723         fi
5724       else
5725         echo "cannot find nm_test_var in $nlist" >&5
5726       fi
5727     else
5728       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5729     fi
5730   else
5731     echo "$progname: failed program was:" >&5
5732     cat conftest.$ac_ext >&5
5733   fi
5734   rm -f conftest* conftst*
5735
5736   # Do not use the global_symbol_pipe unless it works.
5737   if test "$pipe_works" = yes; then
5738     break
5739   else
5740     lt_cv_sys_global_symbol_pipe=
5741   fi
5742 done
5743
5744 fi
5745
5746 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5747   lt_cv_sys_global_symbol_to_cdecl=
5748 fi
5749 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5750   echo "$as_me:$LINENO: result: failed" >&5
5751 echo "${ECHO_T}failed" >&6
5752 else
5753   echo "$as_me:$LINENO: result: ok" >&5
5754 echo "${ECHO_T}ok" >&6
5755 fi
5756
5757 echo "$as_me:$LINENO: checking for objdir" >&5
5758 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5759 if test "${lt_cv_objdir+set}" = set; then
5760   echo $ECHO_N "(cached) $ECHO_C" >&6
5761 else
5762   rm -f .libs 2>/dev/null
5763 mkdir .libs 2>/dev/null
5764 if test -d .libs; then
5765   lt_cv_objdir=.libs
5766 else
5767   # MS-DOS does not allow filenames that begin with a dot.
5768   lt_cv_objdir=_libs
5769 fi
5770 rmdir .libs 2>/dev/null
5771 fi
5772 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5773 echo "${ECHO_T}$lt_cv_objdir" >&6
5774 objdir=$lt_cv_objdir
5775
5776
5777
5778
5779
5780 case $host_os in
5781 aix3*)
5782   # AIX sometimes has problems with the GCC collect2 program.  For some
5783   # reason, if we set the COLLECT_NAMES environment variable, the problems
5784   # vanish in a puff of smoke.
5785   if test "X${COLLECT_NAMES+set}" != Xset; then
5786     COLLECT_NAMES=
5787     export COLLECT_NAMES
5788   fi
5789   ;;
5790 esac
5791
5792 # Sed substitution that helps us do robust quoting.  It backslashifies
5793 # metacharacters that are still active within double-quoted strings.
5794 Xsed='sed -e 1s/^X//'
5795 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5796
5797 # Same as above, but do not quote variable references.
5798 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5799
5800 # Sed substitution to delay expansion of an escaped shell variable in a
5801 # double_quote_subst'ed string.
5802 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5803
5804 # Sed substitution to avoid accidental globbing in evaled expressions
5805 no_glob_subst='s/\*/\\\*/g'
5806
5807 # Constants:
5808 rm="rm -f"
5809
5810 # Global variables:
5811 default_ofile=libtool
5812 can_build_shared=yes
5813
5814 # All known linkers require a `.a' archive for static linking (except MSVC,
5815 # which needs '.lib').
5816 libext=a
5817 ltmain="$ac_aux_dir/ltmain.sh"
5818 ofile="$default_ofile"
5819 with_gnu_ld="$lt_cv_prog_gnu_ld"
5820
5821 if test -n "$ac_tool_prefix"; then
5822   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5823 set dummy ${ac_tool_prefix}ar; ac_word=$2
5824 echo "$as_me:$LINENO: checking for $ac_word" >&5
5825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5826 if test "${ac_cv_prog_AR+set}" = set; then
5827   echo $ECHO_N "(cached) $ECHO_C" >&6
5828 else
5829   if test -n "$AR"; then
5830   ac_cv_prog_AR="$AR" # Let the user override the test.
5831 else
5832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5833 for as_dir in $PATH
5834 do
5835   IFS=$as_save_IFS
5836   test -z "$as_dir" && as_dir=.
5837   for ac_exec_ext in '' $ac_executable_extensions; do
5838   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5839     ac_cv_prog_AR="${ac_tool_prefix}ar"
5840     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5841     break 2
5842   fi
5843 done
5844 done
5845
5846 fi
5847 fi
5848 AR=$ac_cv_prog_AR
5849 if test -n "$AR"; then
5850   echo "$as_me:$LINENO: result: $AR" >&5
5851 echo "${ECHO_T}$AR" >&6
5852 else
5853   echo "$as_me:$LINENO: result: no" >&5
5854 echo "${ECHO_T}no" >&6
5855 fi
5856
5857 fi
5858 if test -z "$ac_cv_prog_AR"; then
5859   ac_ct_AR=$AR
5860   # Extract the first word of "ar", so it can be a program name with args.
5861 set dummy ar; ac_word=$2
5862 echo "$as_me:$LINENO: checking for $ac_word" >&5
5863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5864 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5865   echo $ECHO_N "(cached) $ECHO_C" >&6
5866 else
5867   if test -n "$ac_ct_AR"; then
5868   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5869 else
5870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5871 for as_dir in $PATH
5872 do
5873   IFS=$as_save_IFS
5874   test -z "$as_dir" && as_dir=.
5875   for ac_exec_ext in '' $ac_executable_extensions; do
5876   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5877     ac_cv_prog_ac_ct_AR="ar"
5878     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5879     break 2
5880   fi
5881 done
5882 done
5883
5884   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5885 fi
5886 fi
5887 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5888 if test -n "$ac_ct_AR"; then
5889   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5890 echo "${ECHO_T}$ac_ct_AR" >&6
5891 else
5892   echo "$as_me:$LINENO: result: no" >&5
5893 echo "${ECHO_T}no" >&6
5894 fi
5895
5896   AR=$ac_ct_AR
5897 else
5898   AR="$ac_cv_prog_AR"
5899 fi
5900
5901 if test -n "$ac_tool_prefix"; then
5902   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5903 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5904 echo "$as_me:$LINENO: checking for $ac_word" >&5
5905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5906 if test "${ac_cv_prog_RANLIB+set}" = set; then
5907   echo $ECHO_N "(cached) $ECHO_C" >&6
5908 else
5909   if test -n "$RANLIB"; then
5910   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5911 else
5912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5913 for as_dir in $PATH
5914 do
5915   IFS=$as_save_IFS
5916   test -z "$as_dir" && as_dir=.
5917   for ac_exec_ext in '' $ac_executable_extensions; do
5918   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5919     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5920     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5921     break 2
5922   fi
5923 done
5924 done
5925
5926 fi
5927 fi
5928 RANLIB=$ac_cv_prog_RANLIB
5929 if test -n "$RANLIB"; then
5930   echo "$as_me:$LINENO: result: $RANLIB" >&5
5931 echo "${ECHO_T}$RANLIB" >&6
5932 else
5933   echo "$as_me:$LINENO: result: no" >&5
5934 echo "${ECHO_T}no" >&6
5935 fi
5936
5937 fi
5938 if test -z "$ac_cv_prog_RANLIB"; then
5939   ac_ct_RANLIB=$RANLIB
5940   # Extract the first word of "ranlib", so it can be a program name with args.
5941 set dummy ranlib; ac_word=$2
5942 echo "$as_me:$LINENO: checking for $ac_word" >&5
5943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5944 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5945   echo $ECHO_N "(cached) $ECHO_C" >&6
5946 else
5947   if test -n "$ac_ct_RANLIB"; then
5948   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5949 else
5950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5951 for as_dir in $PATH
5952 do
5953   IFS=$as_save_IFS
5954   test -z "$as_dir" && as_dir=.
5955   for ac_exec_ext in '' $ac_executable_extensions; do
5956   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5957     ac_cv_prog_ac_ct_RANLIB="ranlib"
5958     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5959     break 2
5960   fi
5961 done
5962 done
5963
5964   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5965 fi
5966 fi
5967 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5968 if test -n "$ac_ct_RANLIB"; then
5969   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5970 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5971 else
5972   echo "$as_me:$LINENO: result: no" >&5
5973 echo "${ECHO_T}no" >&6
5974 fi
5975
5976   RANLIB=$ac_ct_RANLIB
5977 else
5978   RANLIB="$ac_cv_prog_RANLIB"
5979 fi
5980
5981 if test -n "$ac_tool_prefix"; then
5982   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5983 set dummy ${ac_tool_prefix}strip; ac_word=$2
5984 echo "$as_me:$LINENO: checking for $ac_word" >&5
5985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5986 if test "${ac_cv_prog_STRIP+set}" = set; then
5987   echo $ECHO_N "(cached) $ECHO_C" >&6
5988 else
5989   if test -n "$STRIP"; then
5990   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5991 else
5992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5993 for as_dir in $PATH
5994 do
5995   IFS=$as_save_IFS
5996   test -z "$as_dir" && as_dir=.
5997   for ac_exec_ext in '' $ac_executable_extensions; do
5998   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5999     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6000     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6001     break 2
6002   fi
6003 done
6004 done
6005
6006 fi
6007 fi
6008 STRIP=$ac_cv_prog_STRIP
6009 if test -n "$STRIP"; then
6010   echo "$as_me:$LINENO: result: $STRIP" >&5
6011 echo "${ECHO_T}$STRIP" >&6
6012 else
6013   echo "$as_me:$LINENO: result: no" >&5
6014 echo "${ECHO_T}no" >&6
6015 fi
6016
6017 fi
6018 if test -z "$ac_cv_prog_STRIP"; then
6019   ac_ct_STRIP=$STRIP
6020   # Extract the first word of "strip", so it can be a program name with args.
6021 set dummy strip; ac_word=$2
6022 echo "$as_me:$LINENO: checking for $ac_word" >&5
6023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6024 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6025   echo $ECHO_N "(cached) $ECHO_C" >&6
6026 else
6027   if test -n "$ac_ct_STRIP"; then
6028   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6029 else
6030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6031 for as_dir in $PATH
6032 do
6033   IFS=$as_save_IFS
6034   test -z "$as_dir" && as_dir=.
6035   for ac_exec_ext in '' $ac_executable_extensions; do
6036   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6037     ac_cv_prog_ac_ct_STRIP="strip"
6038     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6039     break 2
6040   fi
6041 done
6042 done
6043
6044   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6045 fi
6046 fi
6047 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6048 if test -n "$ac_ct_STRIP"; then
6049   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6050 echo "${ECHO_T}$ac_ct_STRIP" >&6
6051 else
6052   echo "$as_me:$LINENO: result: no" >&5
6053 echo "${ECHO_T}no" >&6
6054 fi
6055
6056   STRIP=$ac_ct_STRIP
6057 else
6058   STRIP="$ac_cv_prog_STRIP"
6059 fi
6060
6061
6062 old_CC="$CC"
6063 old_CFLAGS="$CFLAGS"
6064
6065 # Set sane defaults for various variables
6066 test -z "$AR" && AR=ar
6067 test -z "$AR_FLAGS" && AR_FLAGS=cru
6068 test -z "$AS" && AS=as
6069 test -z "$CC" && CC=cc
6070 test -z "$LTCC" && LTCC=$CC
6071 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6072 test -z "$DLLTOOL" && DLLTOOL=dlltool
6073 test -z "$LD" && LD=ld
6074 test -z "$LN_S" && LN_S="ln -s"
6075 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6076 test -z "$NM" && NM=nm
6077 test -z "$SED" && SED=sed
6078 test -z "$OBJDUMP" && OBJDUMP=objdump
6079 test -z "$RANLIB" && RANLIB=:
6080 test -z "$STRIP" && STRIP=:
6081 test -z "$ac_objext" && ac_objext=o
6082
6083 # Determine commands to create old-style static archives.
6084 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6085 old_postinstall_cmds='chmod 644 $oldlib'
6086 old_postuninstall_cmds=
6087
6088 if test -n "$RANLIB"; then
6089   case $host_os in
6090   openbsd*)
6091     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6092     ;;
6093   *)
6094     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6095     ;;
6096   esac
6097   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6098 fi
6099
6100 for cc_temp in $compiler""; do
6101   case $cc_temp in
6102     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6103     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6104     \-*) ;;
6105     *) break;;
6106   esac
6107 done
6108 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6109
6110
6111 # Only perform the check for file, if the check method requires it
6112 case $deplibs_check_method in
6113 file_magic*)
6114   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6115     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6116 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6117 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6118   echo $ECHO_N "(cached) $ECHO_C" >&6
6119 else
6120   case $MAGIC_CMD in
6121 [\\/*] |  ?:[\\/]*)
6122   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6123   ;;
6124 *)
6125   lt_save_MAGIC_CMD="$MAGIC_CMD"
6126   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6127   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6128   for ac_dir in $ac_dummy; do
6129     IFS="$lt_save_ifs"
6130     test -z "$ac_dir" && ac_dir=.
6131     if test -f $ac_dir/${ac_tool_prefix}file; then
6132       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6133       if test -n "$file_magic_test_file"; then
6134         case $deplibs_check_method in
6135         "file_magic "*)
6136           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6137           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6138           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6139             $EGREP "$file_magic_regex" > /dev/null; then
6140             :
6141           else
6142             cat <<EOF 1>&2
6143
6144 *** Warning: the command libtool uses to detect shared libraries,
6145 *** $file_magic_cmd, produces output that libtool cannot recognize.
6146 *** The result is that libtool may fail to recognize shared libraries
6147 *** as such.  This will affect the creation of libtool libraries that
6148 *** depend on shared libraries, but programs linked with such libtool
6149 *** libraries will work regardless of this problem.  Nevertheless, you
6150 *** may want to report the problem to your system manager and/or to
6151 *** bug-libtool@gnu.org
6152
6153 EOF
6154           fi ;;
6155         esac
6156       fi
6157       break
6158     fi
6159   done
6160   IFS="$lt_save_ifs"
6161   MAGIC_CMD="$lt_save_MAGIC_CMD"
6162   ;;
6163 esac
6164 fi
6165
6166 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6167 if test -n "$MAGIC_CMD"; then
6168   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6169 echo "${ECHO_T}$MAGIC_CMD" >&6
6170 else
6171   echo "$as_me:$LINENO: result: no" >&5
6172 echo "${ECHO_T}no" >&6
6173 fi
6174
6175 if test -z "$lt_cv_path_MAGIC_CMD"; then
6176   if test -n "$ac_tool_prefix"; then
6177     echo "$as_me:$LINENO: checking for file" >&5
6178 echo $ECHO_N "checking for file... $ECHO_C" >&6
6179 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6180   echo $ECHO_N "(cached) $ECHO_C" >&6
6181 else
6182   case $MAGIC_CMD in
6183 [\\/*] |  ?:[\\/]*)
6184   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6185   ;;
6186 *)
6187   lt_save_MAGIC_CMD="$MAGIC_CMD"
6188   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6189   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6190   for ac_dir in $ac_dummy; do
6191     IFS="$lt_save_ifs"
6192     test -z "$ac_dir" && ac_dir=.
6193     if test -f $ac_dir/file; then
6194       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6195       if test -n "$file_magic_test_file"; then
6196         case $deplibs_check_method in
6197         "file_magic "*)
6198           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6199           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6200           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6201             $EGREP "$file_magic_regex" > /dev/null; then
6202             :
6203           else
6204             cat <<EOF 1>&2
6205
6206 *** Warning: the command libtool uses to detect shared libraries,
6207 *** $file_magic_cmd, produces output that libtool cannot recognize.
6208 *** The result is that libtool may fail to recognize shared libraries
6209 *** as such.  This will affect the creation of libtool libraries that
6210 *** depend on shared libraries, but programs linked with such libtool
6211 *** libraries will work regardless of this problem.  Nevertheless, you
6212 *** may want to report the problem to your system manager and/or to
6213 *** bug-libtool@gnu.org
6214
6215 EOF
6216           fi ;;
6217         esac
6218       fi
6219       break
6220     fi
6221   done
6222   IFS="$lt_save_ifs"
6223   MAGIC_CMD="$lt_save_MAGIC_CMD"
6224   ;;
6225 esac
6226 fi
6227
6228 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6229 if test -n "$MAGIC_CMD"; then
6230   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6231 echo "${ECHO_T}$MAGIC_CMD" >&6
6232 else
6233   echo "$as_me:$LINENO: result: no" >&5
6234 echo "${ECHO_T}no" >&6
6235 fi
6236
6237   else
6238     MAGIC_CMD=:
6239   fi
6240 fi
6241
6242   fi
6243   ;;
6244 esac
6245
6246 enable_dlopen=no
6247 enable_win32_dll=no
6248
6249 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6250 if test "${enable_libtool_lock+set}" = set; then
6251   enableval="$enable_libtool_lock"
6252   
6253 fi; 
6254 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6255
6256
6257 # Check whether --with-pic or --without-pic was given.
6258 if test "${with_pic+set}" = set; then
6259   withval="$with_pic"
6260   pic_mode="$withval"
6261 else
6262   pic_mode=default
6263 fi; 
6264 test -z "$pic_mode" && pic_mode=default
6265
6266 # Use C for the default configuration in the libtool script
6267 tagname=
6268 lt_save_CC="$CC"
6269 ac_ext=c
6270 ac_cpp='$CPP $CPPFLAGS'
6271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6274
6275
6276 # Source file extension for C test sources.
6277 ac_ext=c
6278
6279 # Object file extension for compiled C test sources.
6280 objext=o
6281 objext=$objext
6282
6283 # Code to be used in simple compile tests
6284 lt_simple_compile_test_code="int some_variable = 0;\n"
6285
6286 # Code to be used in simple link tests
6287 lt_simple_link_test_code='int main(){return(0);}\n'
6288
6289
6290 # If no C compiler was specified, use CC.
6291 LTCC=${LTCC-"$CC"}
6292
6293 # If no C compiler flags were specified, use CFLAGS.
6294 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6295
6296 # Allow CC to be a program name with arguments.
6297 compiler=$CC
6298
6299
6300 # save warnings/boilerplate of simple test code
6301 ac_outfile=conftest.$ac_objext
6302 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6303 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6304 _lt_compiler_boilerplate=`cat conftest.err`
6305 $rm conftest*
6306
6307 ac_outfile=conftest.$ac_objext
6308 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6309 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6310 _lt_linker_boilerplate=`cat conftest.err`
6311 $rm conftest*
6312
6313
6314 ## CAVEAT EMPTOR:
6315 ## There is no encapsulation within the following macros, do not change
6316 ## the running order or otherwise move them around unless you know exactly
6317 ## what you are doing...
6318
6319 lt_prog_compiler_no_builtin_flag=
6320
6321 if test "$GCC" = yes; then
6322   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6323
6324   
6325 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6326 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6327 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6328   echo $ECHO_N "(cached) $ECHO_C" >&6
6329 else
6330   lt_cv_prog_compiler_rtti_exceptions=no
6331   ac_outfile=conftest.$ac_objext
6332    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6333    lt_compiler_flag="-fno-rtti -fno-exceptions"
6334    # Insert the option either (1) after the last *FLAGS variable, or
6335    # (2) before a word containing "conftest.", or (3) at the end.
6336    # Note that $ac_compile itself does not contain backslashes and begins
6337    # with a dollar sign (not a hyphen), so the echo should work correctly.
6338    # The option is referenced via a variable to avoid confusing sed.
6339    lt_compile=`echo "$ac_compile" | $SED \
6340    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6341    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6342    -e 's:$: $lt_compiler_flag:'`
6343    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
6344    (eval "$lt_compile" 2>conftest.err)
6345    ac_status=$?
6346    cat conftest.err >&5
6347    echo "$as_me:__oline__: \$? = $ac_status" >&5
6348    if (exit $ac_status) && test -s "$ac_outfile"; then
6349      # The compiler can only warn and ignore the option if not recognized
6350      # So say no if there are warnings other than the usual output.
6351      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6352      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6353      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6354        lt_cv_prog_compiler_rtti_exceptions=yes
6355      fi
6356    fi
6357    $rm conftest*
6358
6359 fi
6360 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6361 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6362
6363 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6364     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6365 else
6366     :
6367 fi
6368
6369 fi
6370
6371 lt_prog_compiler_wl=
6372 lt_prog_compiler_pic=
6373 lt_prog_compiler_static=
6374
6375 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6376 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6377  
6378   if test "$GCC" = yes; then
6379     lt_prog_compiler_wl='-Wl,'
6380     lt_prog_compiler_static='-static'
6381
6382     case $host_os in
6383       aix*)
6384       # All AIX code is PIC.
6385       if test "$host_cpu" = ia64; then
6386         # AIX 5 now supports IA64 processor
6387         lt_prog_compiler_static='-Bstatic'
6388       fi
6389       ;;
6390
6391     amigaos*)
6392       # FIXME: we need at least 68020 code to build shared libraries, but
6393       # adding the `-m68020' flag to GCC prevents building anything better,
6394       # like `-m68040'.
6395       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6396       ;;
6397
6398     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6399       # PIC is the default for these OSes.
6400       ;;
6401
6402     mingw* | pw32* | os2*)
6403       # This hack is so that the source file can tell whether it is being
6404       # built for inclusion in a dll (and should export symbols for example).
6405       lt_prog_compiler_pic='-DDLL_EXPORT'
6406       ;;
6407
6408     darwin* | rhapsody*)
6409       # PIC is the default on this platform
6410       # Common symbols not allowed in MH_DYLIB files
6411       lt_prog_compiler_pic='-fno-common'
6412       ;;
6413
6414     interix3*)
6415       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6416       # Instead, we relocate shared libraries at runtime.
6417       ;;
6418
6419     msdosdjgpp*)
6420       # Just because we use GCC doesn't mean we suddenly get shared libraries
6421       # on systems that don't support them.
6422       lt_prog_compiler_can_build_shared=no
6423       enable_shared=no
6424       ;;
6425
6426     sysv4*MP*)
6427       if test -d /usr/nec; then
6428         lt_prog_compiler_pic=-Kconform_pic
6429       fi
6430       ;;
6431
6432     hpux*)
6433       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6434       # not for PA HP-UX.
6435       case $host_cpu in
6436       hppa*64*|ia64*)
6437         # +Z the default
6438         ;;
6439       *)
6440         lt_prog_compiler_pic='-fPIC'
6441         ;;
6442       esac
6443       ;;
6444
6445     *)
6446       lt_prog_compiler_pic='-fPIC'
6447       ;;
6448     esac
6449   else
6450     # PORTME Check for flag to pass linker flags through the system compiler.
6451     case $host_os in
6452     aix*)
6453       lt_prog_compiler_wl='-Wl,'
6454       if test "$host_cpu" = ia64; then
6455         # AIX 5 now supports IA64 processor
6456         lt_prog_compiler_static='-Bstatic'
6457       else
6458         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6459       fi
6460       ;;
6461       darwin*)
6462         # PIC is the default on this platform
6463         # Common symbols not allowed in MH_DYLIB files
6464        case $cc_basename in
6465          xlc*)
6466          lt_prog_compiler_pic='-qnocommon'
6467          lt_prog_compiler_wl='-Wl,'
6468          ;;
6469        esac
6470        ;;
6471
6472     mingw* | pw32* | os2*)
6473       # This hack is so that the source file can tell whether it is being
6474       # built for inclusion in a dll (and should export symbols for example).
6475       lt_prog_compiler_pic='-DDLL_EXPORT'
6476       ;;
6477
6478     hpux9* | hpux10* | hpux11*)
6479       lt_prog_compiler_wl='-Wl,'
6480       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6481       # not for PA HP-UX.
6482       case $host_cpu in
6483       hppa*64*|ia64*)
6484         # +Z the default
6485         ;;
6486       *)
6487         lt_prog_compiler_pic='+Z'
6488         ;;
6489       esac
6490       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6491       lt_prog_compiler_static='${wl}-a ${wl}archive'
6492       ;;
6493
6494     irix5* | irix6* | nonstopux*)
6495       lt_prog_compiler_wl='-Wl,'
6496       # PIC (with -KPIC) is the default.
6497       lt_prog_compiler_static='-non_shared'
6498       ;;
6499
6500     newsos6)
6501       lt_prog_compiler_pic='-KPIC'
6502       lt_prog_compiler_static='-Bstatic'
6503       ;;
6504
6505     linux* | k*bsd*-gnu)
6506       case $cc_basename in
6507       icc* | ecc*)
6508         lt_prog_compiler_wl='-Wl,'
6509         lt_prog_compiler_pic='-KPIC'
6510         lt_prog_compiler_static='-static'
6511         ;;
6512       pgcc* | pgf77* | pgf90* | pgf95*)
6513         # Portland Group compilers (*not* the Pentium gcc compiler,
6514         # which looks to be a dead project)
6515         lt_prog_compiler_wl='-Wl,'
6516         lt_prog_compiler_pic='-fpic'
6517         lt_prog_compiler_static='-Bstatic'
6518         ;;
6519       ccc*)
6520         lt_prog_compiler_wl='-Wl,'
6521         # All Alpha code is PIC.
6522         lt_prog_compiler_static='-non_shared'
6523         ;;
6524       esac
6525       ;;
6526
6527     osf3* | osf4* | osf5*)
6528       lt_prog_compiler_wl='-Wl,'
6529       # All OSF/1 code is PIC.
6530       lt_prog_compiler_static='-non_shared'
6531       ;;
6532
6533     solaris*)
6534       lt_prog_compiler_pic='-KPIC'
6535       lt_prog_compiler_static='-Bstatic'
6536       case $cc_basename in
6537       f77* | f90* | f95*)
6538         lt_prog_compiler_wl='-Qoption ld ';;
6539       *)
6540         lt_prog_compiler_wl='-Wl,';;
6541       esac
6542       ;;
6543
6544     sunos4*)
6545       lt_prog_compiler_wl='-Qoption ld '
6546       lt_prog_compiler_pic='-PIC'
6547       lt_prog_compiler_static='-Bstatic'
6548       ;;
6549
6550     sysv4 | sysv4.2uw2* | sysv4.3*)
6551       lt_prog_compiler_wl='-Wl,'
6552       lt_prog_compiler_pic='-KPIC'
6553       lt_prog_compiler_static='-Bstatic'
6554       ;;
6555
6556     sysv4*MP*)
6557       if test -d /usr/nec ;then
6558         lt_prog_compiler_pic='-Kconform_pic'
6559         lt_prog_compiler_static='-Bstatic'
6560       fi
6561       ;;
6562
6563     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6564       lt_prog_compiler_wl='-Wl,'
6565       lt_prog_compiler_pic='-KPIC'
6566       lt_prog_compiler_static='-Bstatic'
6567       ;;
6568
6569     unicos*)
6570       lt_prog_compiler_wl='-Wl,'
6571       lt_prog_compiler_can_build_shared=no
6572       ;;
6573
6574     uts4*)
6575       lt_prog_compiler_pic='-pic'
6576       lt_prog_compiler_static='-Bstatic'
6577       ;;
6578
6579     *)
6580       lt_prog_compiler_can_build_shared=no
6581       ;;
6582     esac
6583   fi
6584
6585 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6586 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6587
6588 #
6589 # Check to make sure the PIC flag actually works.
6590 #
6591 if test -n "$lt_prog_compiler_pic"; then
6592   
6593 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6594 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6595 if test "${lt_prog_compiler_pic_works+set}" = set; then
6596   echo $ECHO_N "(cached) $ECHO_C" >&6
6597 else
6598   lt_prog_compiler_pic_works=no
6599   ac_outfile=conftest.$ac_objext
6600    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6601    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6602    # Insert the option either (1) after the last *FLAGS variable, or
6603    # (2) before a word containing "conftest.", or (3) at the end.
6604    # Note that $ac_compile itself does not contain backslashes and begins
6605    # with a dollar sign (not a hyphen), so the echo should work correctly.
6606    # The option is referenced via a variable to avoid confusing sed.
6607    lt_compile=`echo "$ac_compile" | $SED \
6608    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6609    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6610    -e 's:$: $lt_compiler_flag:'`
6611    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
6612    (eval "$lt_compile" 2>conftest.err)
6613    ac_status=$?
6614    cat conftest.err >&5
6615    echo "$as_me:__oline__: \$? = $ac_status" >&5
6616    if (exit $ac_status) && test -s "$ac_outfile"; then
6617      # The compiler can only warn and ignore the option if not recognized
6618      # So say no if there are warnings other than the usual output.
6619      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6620      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6621      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6622        lt_prog_compiler_pic_works=yes
6623      fi
6624    fi
6625    $rm conftest*
6626
6627 fi
6628 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6629 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6630
6631 if test x"$lt_prog_compiler_pic_works" = xyes; then
6632     case $lt_prog_compiler_pic in
6633      "" | " "*) ;;
6634      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6635      esac
6636 else
6637     lt_prog_compiler_pic=
6638      lt_prog_compiler_can_build_shared=no
6639 fi
6640
6641 fi
6642 case $host_os in
6643   # For platforms which do not support PIC, -DPIC is meaningless:
6644   *djgpp*)
6645     lt_prog_compiler_pic=
6646     ;;
6647   *)
6648     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6649     ;;
6650 esac
6651
6652 #
6653 # Check to make sure the static flag actually works.
6654 #
6655 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6656 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6657 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6658 if test "${lt_prog_compiler_static_works+set}" = set; then
6659   echo $ECHO_N "(cached) $ECHO_C" >&6
6660 else
6661   lt_prog_compiler_static_works=no
6662    save_LDFLAGS="$LDFLAGS"
6663    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6664    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6665    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6666      # The linker can only warn and ignore the option if not recognized
6667      # So say no if there are warnings
6668      if test -s conftest.err; then
6669        # Append any errors to the config.log.
6670        cat conftest.err 1>&5
6671        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6672        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6673        if diff conftest.exp conftest.er2 >/dev/null; then
6674          lt_prog_compiler_static_works=yes
6675        fi
6676      else
6677        lt_prog_compiler_static_works=yes
6678      fi
6679    fi
6680    $rm conftest*
6681    LDFLAGS="$save_LDFLAGS"
6682
6683 fi
6684 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6685 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6686
6687 if test x"$lt_prog_compiler_static_works" = xyes; then
6688     :
6689 else
6690     lt_prog_compiler_static=
6691 fi
6692
6693
6694 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6695 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6696 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6697   echo $ECHO_N "(cached) $ECHO_C" >&6
6698 else
6699   lt_cv_prog_compiler_c_o=no
6700    $rm -r conftest 2>/dev/null
6701    mkdir conftest
6702    cd conftest
6703    mkdir out
6704    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6705
6706    lt_compiler_flag="-o out/conftest2.$ac_objext"
6707    # Insert the option either (1) after the last *FLAGS variable, or
6708    # (2) before a word containing "conftest.", or (3) at the end.
6709    # Note that $ac_compile itself does not contain backslashes and begins
6710    # with a dollar sign (not a hyphen), so the echo should work correctly.
6711    lt_compile=`echo "$ac_compile" | $SED \
6712    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6713    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6714    -e 's:$: $lt_compiler_flag:'`
6715    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
6716    (eval "$lt_compile" 2>out/conftest.err)
6717    ac_status=$?
6718    cat out/conftest.err >&5
6719    echo "$as_me:__oline__: \$? = $ac_status" >&5
6720    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6721    then
6722      # The compiler can only warn and ignore the option if not recognized
6723      # So say no if there are warnings
6724      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6725      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6726      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6727        lt_cv_prog_compiler_c_o=yes
6728      fi
6729    fi
6730    chmod u+w . 2>&5
6731    $rm conftest*
6732    # SGI C++ compiler will create directory out/ii_files/ for
6733    # template instantiation
6734    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6735    $rm out/* && rmdir out
6736    cd ..
6737    rmdir conftest
6738    $rm conftest*
6739
6740 fi
6741 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6742 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6743
6744
6745 hard_links="nottested"
6746 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6747   # do not overwrite the value of need_locks provided by the user
6748   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6749 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6750   hard_links=yes
6751   $rm conftest*
6752   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6753   touch conftest.a
6754   ln conftest.a conftest.b 2>&5 || hard_links=no
6755   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6756   echo "$as_me:$LINENO: result: $hard_links" >&5
6757 echo "${ECHO_T}$hard_links" >&6
6758   if test "$hard_links" = no; then
6759     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6760 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6761     need_locks=warn
6762   fi
6763 else
6764   need_locks=no
6765 fi
6766
6767 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6768 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6769
6770   runpath_var=
6771   allow_undefined_flag=
6772   enable_shared_with_static_runtimes=no
6773   archive_cmds=
6774   archive_expsym_cmds=
6775   old_archive_From_new_cmds=
6776   old_archive_from_expsyms_cmds=
6777   export_dynamic_flag_spec=
6778   whole_archive_flag_spec=
6779   thread_safe_flag_spec=
6780   hardcode_libdir_flag_spec=
6781   hardcode_libdir_flag_spec_ld=
6782   hardcode_libdir_separator=
6783   hardcode_direct=no
6784   hardcode_minus_L=no
6785   hardcode_shlibpath_var=unsupported
6786   link_all_deplibs=unknown
6787   hardcode_automatic=no
6788   module_cmds=
6789   module_expsym_cmds=
6790   always_export_symbols=no
6791   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6792   # include_expsyms should be a list of space-separated symbols to be *always*
6793   # included in the symbol list
6794   include_expsyms=
6795   # exclude_expsyms can be an extended regexp of symbols to exclude
6796   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6797   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6798   # as well as any symbol that contains `d'.
6799   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6800   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6801   # platforms (ab)use it in PIC code, but their linkers get confused if
6802   # the symbol is explicitly referenced.  Since portable code cannot
6803   # rely on this symbol name, it's probably fine to never include it in
6804   # preloaded symbol tables.
6805   extract_expsyms_cmds=
6806   # Just being paranoid about ensuring that cc_basename is set.
6807   for cc_temp in $compiler""; do
6808   case $cc_temp in
6809     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6810     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6811     \-*) ;;
6812     *) break;;
6813   esac
6814 done
6815 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6816
6817   case $host_os in
6818   cygwin* | mingw* | pw32*)
6819     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6820     # When not using gcc, we currently assume that we are using
6821     # Microsoft Visual C++.
6822     if test "$GCC" != yes; then
6823       with_gnu_ld=no
6824     fi
6825     ;;
6826   interix*)
6827     # we just hope/assume this is gcc and not c89 (= MSVC++)
6828     with_gnu_ld=yes
6829     ;;
6830   openbsd*)
6831     with_gnu_ld=no
6832     ;;
6833   esac
6834
6835   ld_shlibs=yes
6836   if test "$with_gnu_ld" = yes; then
6837     # If archive_cmds runs LD, not CC, wlarc should be empty
6838     wlarc='${wl}'
6839
6840     # Set some defaults for GNU ld with shared library support. These
6841     # are reset later if shared libraries are not supported. Putting them
6842     # here allows them to be overridden if necessary.
6843     runpath_var=LD_RUN_PATH
6844     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6845     export_dynamic_flag_spec='${wl}--export-dynamic'
6846     # ancient GNU ld didn't support --whole-archive et. al.
6847     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6848         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6849       else
6850         whole_archive_flag_spec=
6851     fi
6852     supports_anon_versioning=no
6853     case `$LD -v 2>/dev/null` in
6854       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6855       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6856       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6857       *\ 2.11.*) ;; # other 2.11 versions
6858       *) supports_anon_versioning=yes ;;
6859     esac
6860
6861     # See if GNU ld supports shared libraries.
6862     case $host_os in
6863     aix3* | aix4* | aix5*)
6864       # On AIX/PPC, the GNU linker is very broken
6865       if test "$host_cpu" != ia64; then
6866         ld_shlibs=no
6867         cat <<EOF 1>&2
6868
6869 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6870 *** to be unable to reliably create shared libraries on AIX.
6871 *** Therefore, libtool is disabling shared libraries support.  If you
6872 *** really care for shared libraries, you may want to modify your PATH
6873 *** so that a non-GNU linker is found, and then restart.
6874
6875 EOF
6876       fi
6877       ;;
6878
6879     amigaos*)
6880       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)'
6881       hardcode_libdir_flag_spec='-L$libdir'
6882       hardcode_minus_L=yes
6883
6884       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6885       # that the semantics of dynamic libraries on AmigaOS, at least up
6886       # to version 4, is to share data among multiple programs linked
6887       # with the same dynamic library.  Since this doesn't match the
6888       # behavior of shared libraries on other platforms, we can't use
6889       # them.
6890       ld_shlibs=no
6891       ;;
6892
6893     beos*)
6894       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6895         allow_undefined_flag=unsupported
6896         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6897         # support --undefined.  This deserves some investigation.  FIXME
6898         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6899       else
6900         ld_shlibs=no
6901       fi
6902       ;;
6903
6904     cygwin* | mingw* | pw32*)
6905       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6906       # as there is no search path for DLLs.
6907       hardcode_libdir_flag_spec='-L$libdir'
6908       allow_undefined_flag=unsupported
6909       always_export_symbols=no
6910       enable_shared_with_static_runtimes=yes
6911       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6912
6913       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6914         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6915         # If the export-symbols file already is a .def file (1st line
6916         # is EXPORTS), use it as is; otherwise, prepend...
6917         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6918           cp $export_symbols $output_objdir/$soname.def;
6919         else
6920           echo EXPORTS > $output_objdir/$soname.def;
6921           cat $export_symbols >> $output_objdir/$soname.def;
6922         fi~
6923         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6924       else
6925         ld_shlibs=no
6926       fi
6927       ;;
6928
6929     interix3*)
6930       hardcode_direct=no
6931       hardcode_shlibpath_var=no
6932       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6933       export_dynamic_flag_spec='${wl}-E'
6934       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6935       # Instead, shared libraries are loaded at an image base (0x10000000 by
6936       # default) and relocated if they conflict, which is a slow very memory
6937       # consuming and fragmenting process.  To avoid this, we pick a random,
6938       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6939       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
6940       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6941       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'
6942       ;;
6943
6944     linux* | k*bsd*-gnu)
6945       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6946         tmp_addflag=
6947         case $cc_basename,$host_cpu in
6948         pgcc*)                          # Portland Group C compiler
6949           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'
6950           tmp_addflag=' $pic_flag'
6951           ;;
6952         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
6953           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'
6954           tmp_addflag=' $pic_flag -Mnomain' ;;
6955         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
6956           tmp_addflag=' -i_dynamic' ;;
6957         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
6958           tmp_addflag=' -i_dynamic -nofor_main' ;;
6959         ifc* | ifort*)                  # Intel Fortran compiler
6960           tmp_addflag=' -nofor_main' ;;
6961         esac
6962         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6963
6964         if test $supports_anon_versioning = yes; then
6965           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6966   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6967   $echo "local: *; };" >> $output_objdir/$libname.ver~
6968           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6969         fi
6970         link_all_deplibs=no
6971       else
6972         ld_shlibs=no
6973       fi
6974       ;;
6975
6976     netbsd* | netbsdelf*-gnu)
6977       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6978         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6979         wlarc=
6980       else
6981         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6982         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6983       fi
6984       ;;
6985
6986     solaris*)
6987       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6988         ld_shlibs=no
6989         cat <<EOF 1>&2
6990
6991 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6992 *** create shared libraries on Solaris systems.  Therefore, libtool
6993 *** is disabling shared libraries support.  We urge you to upgrade GNU
6994 *** binutils to release 2.9.1 or newer.  Another option is to modify
6995 *** your PATH or compiler configuration so that the native linker is
6996 *** used, and then restart.
6997
6998 EOF
6999       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7000         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7001         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7002       else
7003         ld_shlibs=no
7004       fi
7005       ;;
7006
7007     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7008       case `$LD -v 2>&1` in
7009         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 
7010         ld_shlibs=no
7011         cat <<_LT_EOF 1>&2
7012
7013 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7014 *** reliably create shared libraries on SCO systems.  Therefore, libtool
7015 *** is disabling shared libraries support.  We urge you to upgrade GNU
7016 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7017 *** your PATH or compiler configuration so that the native linker is
7018 *** used, and then restart.
7019
7020 _LT_EOF
7021         ;;
7022         *)
7023           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7024             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7025             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7026             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7027           else
7028             ld_shlibs=no
7029           fi
7030         ;;
7031       esac
7032       ;;
7033
7034     sunos4*)
7035       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7036       wlarc=
7037       hardcode_direct=yes
7038       hardcode_shlibpath_var=no
7039       ;;
7040
7041     *)
7042       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7043         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7044         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7045       else
7046         ld_shlibs=no
7047       fi
7048       ;;
7049     esac
7050
7051     if test "$ld_shlibs" = no; then
7052       runpath_var=
7053       hardcode_libdir_flag_spec=
7054       export_dynamic_flag_spec=
7055       whole_archive_flag_spec=
7056     fi
7057   else
7058     # PORTME fill in a description of your system's linker (not GNU ld)
7059     case $host_os in
7060     aix3*)
7061       allow_undefined_flag=unsupported
7062       always_export_symbols=yes
7063       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'
7064       # Note: this linker hardcodes the directories in LIBPATH if there
7065       # are no directories specified by -L.
7066       hardcode_minus_L=yes
7067       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7068         # Neither direct hardcoding nor static linking is supported with a
7069         # broken collect2.
7070         hardcode_direct=unsupported
7071       fi
7072       ;;
7073
7074     aix4* | aix5*)
7075       if test "$host_cpu" = ia64; then
7076         # On IA64, the linker does run time linking by default, so we don't
7077         # have to do anything special.
7078         aix_use_runtimelinking=no
7079         exp_sym_flag='-Bexport'
7080         no_entry_flag=""
7081       else
7082         # If we're using GNU nm, then we don't want the "-C" option.
7083         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7084         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7085           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'
7086         else
7087           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'
7088         fi
7089         aix_use_runtimelinking=no
7090
7091         # Test if we are trying to use run time linking or normal
7092         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7093         # need to do runtime linking.
7094         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7095           for ld_flag in $LDFLAGS; do
7096           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7097             aix_use_runtimelinking=yes
7098             break
7099           fi
7100           done
7101           ;;
7102         esac
7103
7104         exp_sym_flag='-bexport'
7105         no_entry_flag='-bnoentry'
7106       fi
7107
7108       # When large executables or shared objects are built, AIX ld can
7109       # have problems creating the table of contents.  If linking a library
7110       # or program results in "error TOC overflow" add -mminimal-toc to
7111       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7112       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7113
7114       archive_cmds=''
7115       hardcode_direct=yes
7116       hardcode_libdir_separator=':'
7117       link_all_deplibs=yes
7118
7119       if test "$GCC" = yes; then
7120         case $host_os in aix4.[012]|aix4.[012].*)
7121         # We only want to do this on AIX 4.2 and lower, the check
7122         # below for broken collect2 doesn't work under 4.3+
7123           collect2name=`${CC} -print-prog-name=collect2`
7124           if test -f "$collect2name" && \
7125            strings "$collect2name" | grep resolve_lib_name >/dev/null
7126           then
7127           # We have reworked collect2
7128           hardcode_direct=yes
7129           else
7130           # We have old collect2
7131           hardcode_direct=unsupported
7132           # It fails to find uninstalled libraries when the uninstalled
7133           # path is not listed in the libpath.  Setting hardcode_minus_L
7134           # to unsupported forces relinking
7135           hardcode_minus_L=yes
7136           hardcode_libdir_flag_spec='-L$libdir'
7137           hardcode_libdir_separator=
7138           fi
7139           ;;
7140         esac
7141         shared_flag='-shared'
7142         if test "$aix_use_runtimelinking" = yes; then
7143           shared_flag="$shared_flag "'${wl}-G'
7144         fi
7145       else
7146         # not using gcc
7147         if test "$host_cpu" = ia64; then
7148         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7149         # chokes on -Wl,-G. The following line is correct:
7150           shared_flag='-G'
7151         else
7152           if test "$aix_use_runtimelinking" = yes; then
7153             shared_flag='${wl}-G'
7154           else
7155             shared_flag='${wl}-bM:SRE'
7156           fi
7157         fi
7158       fi
7159
7160       # It seems that -bexpall does not export symbols beginning with
7161       # underscore (_), so it is better to generate a list of symbols to export.
7162       always_export_symbols=yes
7163       if test "$aix_use_runtimelinking" = yes; then
7164         # Warning - without using the other runtime loading flags (-brtl),
7165         # -berok will link without error, but may produce a broken library.
7166         allow_undefined_flag='-berok'
7167        # Determine the default libpath from the value encoded in an empty executable.
7168        cat >conftest.$ac_ext <<_ACEOF
7169 /* confdefs.h.  */
7170 _ACEOF
7171 cat confdefs.h >>conftest.$ac_ext
7172 cat >>conftest.$ac_ext <<_ACEOF
7173 /* end confdefs.h.  */
7174
7175 int
7176 main ()
7177 {
7178
7179   ;
7180   return 0;
7181 }
7182 _ACEOF
7183 rm -f conftest.$ac_objext conftest$ac_exeext
7184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7185   (eval $ac_link) 2>conftest.er1
7186   ac_status=$?
7187   grep -v '^ *+' conftest.er1 >conftest.err
7188   rm -f conftest.er1
7189   cat conftest.err >&5
7190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191   (exit $ac_status); } &&
7192          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7194   (eval $ac_try) 2>&5
7195   ac_status=$?
7196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7197   (exit $ac_status); }; } &&
7198          { ac_try='test -s conftest$ac_exeext'
7199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7200   (eval $ac_try) 2>&5
7201   ac_status=$?
7202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203   (exit $ac_status); }; }; then
7204   
7205 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7206 }'`
7207 # Check for a 64-bit object if we didn't find anything.
7208 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; }
7209 }'`; fi
7210 else
7211   echo "$as_me: failed program was:" >&5
7212 sed 's/^/| /' conftest.$ac_ext >&5
7213
7214 fi
7215 rm -f conftest.err conftest.$ac_objext \
7216       conftest$ac_exeext conftest.$ac_ext
7217 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7218
7219        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7220         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"
7221        else
7222         if test "$host_cpu" = ia64; then
7223           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7224           allow_undefined_flag="-z nodefs"
7225           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"
7226         else
7227          # Determine the default libpath from the value encoded in an empty executable.
7228          cat >conftest.$ac_ext <<_ACEOF
7229 /* confdefs.h.  */
7230 _ACEOF
7231 cat confdefs.h >>conftest.$ac_ext
7232 cat >>conftest.$ac_ext <<_ACEOF
7233 /* end confdefs.h.  */
7234
7235 int
7236 main ()
7237 {
7238
7239   ;
7240   return 0;
7241 }
7242 _ACEOF
7243 rm -f conftest.$ac_objext conftest$ac_exeext
7244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7245   (eval $ac_link) 2>conftest.er1
7246   ac_status=$?
7247   grep -v '^ *+' conftest.er1 >conftest.err
7248   rm -f conftest.er1
7249   cat conftest.err >&5
7250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7251   (exit $ac_status); } &&
7252          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7254   (eval $ac_try) 2>&5
7255   ac_status=$?
7256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7257   (exit $ac_status); }; } &&
7258          { ac_try='test -s conftest$ac_exeext'
7259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7260   (eval $ac_try) 2>&5
7261   ac_status=$?
7262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263   (exit $ac_status); }; }; then
7264   
7265 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7266 }'`
7267 # Check for a 64-bit object if we didn't find anything.
7268 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; }
7269 }'`; fi
7270 else
7271   echo "$as_me: failed program was:" >&5
7272 sed 's/^/| /' conftest.$ac_ext >&5
7273
7274 fi
7275 rm -f conftest.err conftest.$ac_objext \
7276       conftest$ac_exeext conftest.$ac_ext
7277 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7278
7279          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7280           # Warning - without using the other run time loading flags,
7281           # -berok will link without error, but may produce a broken library.
7282           no_undefined_flag=' ${wl}-bernotok'
7283           allow_undefined_flag=' ${wl}-berok'
7284           # Exported symbols can be pulled into shared objects from archives
7285           whole_archive_flag_spec='$convenience'
7286           archive_cmds_need_lc=yes
7287           # This is similar to how AIX traditionally builds its shared libraries.
7288           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'
7289         fi
7290       fi
7291       ;;
7292
7293     amigaos*)
7294       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)'
7295       hardcode_libdir_flag_spec='-L$libdir'
7296       hardcode_minus_L=yes
7297       # see comment about different semantics on the GNU ld section
7298       ld_shlibs=no
7299       ;;
7300
7301     bsdi[45]*)
7302       export_dynamic_flag_spec=-rdynamic
7303       ;;
7304
7305     cygwin* | mingw* | pw32*)
7306       # When not using gcc, we currently assume that we are using
7307       # Microsoft Visual C++.
7308       # hardcode_libdir_flag_spec is actually meaningless, as there is
7309       # no search path for DLLs.
7310       hardcode_libdir_flag_spec=' '
7311       allow_undefined_flag=unsupported
7312       # Tell ltmain to make .lib files, not .a files.
7313       libext=lib
7314       # Tell ltmain to make .dll files, not .so files.
7315       shrext_cmds=".dll"
7316       # FIXME: Setting linknames here is a bad hack.
7317       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7318       # The linker will automatically build a .lib file if we build a DLL.
7319       old_archive_From_new_cmds='true'
7320       # FIXME: Should let the user specify the lib program.
7321       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7322       fix_srcfile_path='`cygpath -w "$srcfile"`'
7323       enable_shared_with_static_runtimes=yes
7324       ;;
7325
7326     darwin* | rhapsody*)
7327       case $host_os in
7328         rhapsody* | darwin1.[012])
7329          allow_undefined_flag='${wl}-undefined ${wl}suppress'
7330          ;;
7331        *) # Darwin 1.3 on
7332          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7333            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7334          else
7335            case ${MACOSX_DEPLOYMENT_TARGET} in
7336              10.[012])
7337                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7338                ;;
7339              10.*)
7340                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7341                ;;
7342            esac
7343          fi
7344          ;;
7345       esac
7346       archive_cmds_need_lc=no
7347       hardcode_direct=no
7348       hardcode_automatic=yes
7349       hardcode_shlibpath_var=unsupported
7350       whole_archive_flag_spec=''
7351       link_all_deplibs=yes
7352     if test "$GCC" = yes ; then
7353         output_verbose_link_cmd='echo'
7354         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7355       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7356       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7357       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}'
7358       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}'
7359     else
7360       case $cc_basename in
7361         xlc*)
7362          output_verbose_link_cmd='echo'
7363          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7364          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7365           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7366          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}'
7367           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}'
7368           ;;
7369        *)
7370          ld_shlibs=no
7371           ;;
7372       esac
7373     fi
7374       ;;
7375
7376     dgux*)
7377       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7378       hardcode_libdir_flag_spec='-L$libdir'
7379       hardcode_shlibpath_var=no
7380       ;;
7381
7382     freebsd1*)
7383       ld_shlibs=no
7384       ;;
7385
7386     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7387     # support.  Future versions do this automatically, but an explicit c++rt0.o
7388     # does not break anything, and helps significantly (at the cost of a little
7389     # extra space).
7390     freebsd2.2*)
7391       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7392       hardcode_libdir_flag_spec='-R$libdir'
7393       hardcode_direct=yes
7394       hardcode_shlibpath_var=no
7395       ;;
7396
7397     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7398     freebsd2*)
7399       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7400       hardcode_direct=yes
7401       hardcode_minus_L=yes
7402       hardcode_shlibpath_var=no
7403       ;;
7404
7405     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7406     freebsd* | dragonfly*)
7407       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7408       hardcode_libdir_flag_spec='-R$libdir'
7409       hardcode_direct=yes
7410       hardcode_shlibpath_var=no
7411       ;;
7412
7413     hpux9*)
7414       if test "$GCC" = yes; then
7415         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'
7416       else
7417         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'
7418       fi
7419       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7420       hardcode_libdir_separator=:
7421       hardcode_direct=yes
7422
7423       # hardcode_minus_L: Not really in the search PATH,
7424       # but as the default location of the library.
7425       hardcode_minus_L=yes
7426       export_dynamic_flag_spec='${wl}-E'
7427       ;;
7428
7429     hpux10*)
7430       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7431         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7432       else
7433         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7434       fi
7435       if test "$with_gnu_ld" = no; then
7436         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7437         hardcode_libdir_separator=:
7438
7439         hardcode_direct=yes
7440         export_dynamic_flag_spec='${wl}-E'
7441
7442         # hardcode_minus_L: Not really in the search PATH,
7443         # but as the default location of the library.
7444         hardcode_minus_L=yes
7445       fi
7446       ;;
7447
7448     hpux11*)
7449       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7450         case $host_cpu in
7451         hppa*64*)
7452           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7453           ;;
7454         ia64*)
7455           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7456           ;;
7457         *)
7458           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7459           ;;
7460         esac
7461       else
7462         case $host_cpu in
7463         hppa*64*)
7464           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7465           ;;
7466         ia64*)
7467           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7468           ;;
7469         *)
7470           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7471           ;;
7472         esac
7473       fi
7474       if test "$with_gnu_ld" = no; then
7475         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7476         hardcode_libdir_separator=:
7477
7478         case $host_cpu in
7479         hppa*64*|ia64*)
7480           hardcode_libdir_flag_spec_ld='+b $libdir'
7481           hardcode_direct=no
7482           hardcode_shlibpath_var=no
7483           ;;
7484         *)
7485           hardcode_direct=yes
7486           export_dynamic_flag_spec='${wl}-E'
7487
7488           # hardcode_minus_L: Not really in the search PATH,
7489           # but as the default location of the library.
7490           hardcode_minus_L=yes
7491           ;;
7492         esac
7493       fi
7494       ;;
7495
7496     irix5* | irix6* | nonstopux*)
7497       if test "$GCC" = yes; then
7498         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'
7499       else
7500         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'
7501         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7502       fi
7503       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7504       hardcode_libdir_separator=:
7505       link_all_deplibs=yes
7506       ;;
7507
7508     netbsd* | netbsdelf*-gnu)
7509       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7510         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7511       else
7512         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7513       fi
7514       hardcode_libdir_flag_spec='-R$libdir'
7515       hardcode_direct=yes
7516       hardcode_shlibpath_var=no
7517       ;;
7518
7519     newsos6)
7520       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7521       hardcode_direct=yes
7522       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7523       hardcode_libdir_separator=:
7524       hardcode_shlibpath_var=no
7525       ;;
7526
7527     openbsd*)
7528       hardcode_direct=yes
7529       hardcode_shlibpath_var=no
7530       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7531         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7532         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7533         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7534         export_dynamic_flag_spec='${wl}-E'
7535       else
7536        case $host_os in
7537          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7538            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7539            hardcode_libdir_flag_spec='-R$libdir'
7540            ;;
7541          *)
7542            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7543            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7544            ;;
7545        esac
7546       fi
7547       ;;
7548
7549     os2*)
7550       hardcode_libdir_flag_spec='-L$libdir'
7551       hardcode_minus_L=yes
7552       allow_undefined_flag=unsupported
7553       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'
7554       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7555       ;;
7556
7557     osf3*)
7558       if test "$GCC" = yes; then
7559         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7560         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'
7561       else
7562         allow_undefined_flag=' -expect_unresolved \*'
7563         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'
7564       fi
7565       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7566       hardcode_libdir_separator=:
7567       ;;
7568
7569     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7570       if test "$GCC" = yes; then
7571         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7572         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'
7573         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7574       else
7575         allow_undefined_flag=' -expect_unresolved \*'
7576         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'
7577         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7578         $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'
7579
7580         # Both c and cxx compiler support -rpath directly
7581         hardcode_libdir_flag_spec='-rpath $libdir'
7582       fi
7583       hardcode_libdir_separator=:
7584       ;;
7585
7586     solaris*)
7587       no_undefined_flag=' -z text'
7588       if test "$GCC" = yes; then
7589         wlarc='${wl}'
7590         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7591         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7592           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7593       else
7594         wlarc=''
7595         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7596         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7597         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7598       fi
7599       hardcode_libdir_flag_spec='-R$libdir'
7600       hardcode_shlibpath_var=no
7601       case $host_os in
7602       solaris2.[0-5] | solaris2.[0-5].*) ;;
7603       *)
7604         # The compiler driver will combine linker options so we
7605         # cannot just pass the convience library names through
7606         # without $wl, iff we do not link with $LD.
7607         # Luckily, gcc supports the same syntax we need for Sun Studio.
7608         # Supported since Solaris 2.6 (maybe 2.5.1?)
7609         case $wlarc in
7610         '')
7611           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7612         *)
7613           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' ;;
7614         esac ;;
7615       esac
7616       link_all_deplibs=yes
7617       ;;
7618
7619     sunos4*)
7620       if test "x$host_vendor" = xsequent; then
7621         # Use $CC to link under sequent, because it throws in some extra .o
7622         # files that make .init and .fini sections work.
7623         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7624       else
7625         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7626       fi
7627       hardcode_libdir_flag_spec='-L$libdir'
7628       hardcode_direct=yes
7629       hardcode_minus_L=yes
7630       hardcode_shlibpath_var=no
7631       ;;
7632
7633     sysv4)
7634       case $host_vendor in
7635         sni)
7636           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7637           hardcode_direct=yes # is this really true???
7638         ;;
7639         siemens)
7640           ## LD is ld it makes a PLAMLIB
7641           ## CC just makes a GrossModule.
7642           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7643           reload_cmds='$CC -r -o $output$reload_objs'
7644           hardcode_direct=no
7645         ;;
7646         motorola)
7647           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7648           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7649         ;;
7650       esac
7651       runpath_var='LD_RUN_PATH'
7652       hardcode_shlibpath_var=no
7653       ;;
7654
7655     sysv4.3*)
7656       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7657       hardcode_shlibpath_var=no
7658       export_dynamic_flag_spec='-Bexport'
7659       ;;
7660
7661     sysv4*MP*)
7662       if test -d /usr/nec; then
7663         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7664         hardcode_shlibpath_var=no
7665         runpath_var=LD_RUN_PATH
7666         hardcode_runpath_var=yes
7667         ld_shlibs=yes
7668       fi
7669       ;;
7670
7671     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7672       no_undefined_flag='${wl}-z,text'
7673       archive_cmds_need_lc=no
7674       hardcode_shlibpath_var=no
7675       runpath_var='LD_RUN_PATH'
7676
7677       if test "$GCC" = yes; then
7678         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7679         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7680       else
7681         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7682         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7683       fi
7684       ;;
7685
7686     sysv5* | sco3.2v5* | sco5v6*)
7687       # Note: We can NOT use -z defs as we might desire, because we do not
7688       # link with -lc, and that would cause any symbols used from libc to
7689       # always be unresolved, which means just about no library would
7690       # ever link correctly.  If we're not using GNU ld we use -z text
7691       # though, which does catch some bad symbols but isn't as heavy-handed
7692       # as -z defs.
7693       no_undefined_flag='${wl}-z,text'
7694       allow_undefined_flag='${wl}-z,nodefs'
7695       archive_cmds_need_lc=no
7696       hardcode_shlibpath_var=no
7697       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7698       hardcode_libdir_separator=':'
7699       link_all_deplibs=yes
7700       export_dynamic_flag_spec='${wl}-Bexport'
7701       runpath_var='LD_RUN_PATH'
7702
7703       if test "$GCC" = yes; then
7704         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7705         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7706       else
7707         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7708         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7709       fi
7710       ;;
7711
7712     uts4*)
7713       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7714       hardcode_libdir_flag_spec='-L$libdir'
7715       hardcode_shlibpath_var=no
7716       ;;
7717
7718     *)
7719       ld_shlibs=no
7720       ;;
7721     esac
7722   fi
7723
7724 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7725 echo "${ECHO_T}$ld_shlibs" >&6
7726 test "$ld_shlibs" = no && can_build_shared=no
7727
7728 #
7729 # Do we need to explicitly link libc?
7730 #
7731 case "x$archive_cmds_need_lc" in
7732 x|xyes)
7733   # Assume -lc should be added
7734   archive_cmds_need_lc=yes
7735
7736   if test "$enable_shared" = yes && test "$GCC" = yes; then
7737     case $archive_cmds in
7738     *'~'*)
7739       # FIXME: we may have to deal with multi-command sequences.
7740       ;;
7741     '$CC '*)
7742       # Test whether the compiler implicitly links with -lc since on some
7743       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7744       # to ld, don't add -lc before -lgcc.
7745       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7746 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7747       $rm conftest*
7748       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7749
7750       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7751   (eval $ac_compile) 2>&5
7752   ac_status=$?
7753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7754   (exit $ac_status); } 2>conftest.err; then
7755         soname=conftest
7756         lib=conftest
7757         libobjs=conftest.$ac_objext
7758         deplibs=
7759         wl=$lt_prog_compiler_wl
7760         pic_flag=$lt_prog_compiler_pic
7761         compiler_flags=-v
7762         linker_flags=-v
7763         verstring=
7764         output_objdir=.
7765         libname=conftest
7766         lt_save_allow_undefined_flag=$allow_undefined_flag
7767         allow_undefined_flag=
7768         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7769   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7770   ac_status=$?
7771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772   (exit $ac_status); }
7773         then
7774           archive_cmds_need_lc=no
7775         else
7776           archive_cmds_need_lc=yes
7777         fi
7778         allow_undefined_flag=$lt_save_allow_undefined_flag
7779       else
7780         cat conftest.err 1>&5
7781       fi
7782       $rm conftest*
7783       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7784 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7785       ;;
7786     esac
7787   fi
7788   ;;
7789 esac
7790
7791 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7792 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7793 library_names_spec=
7794 libname_spec='lib$name'
7795 soname_spec=
7796 shrext_cmds=".so"
7797 postinstall_cmds=
7798 postuninstall_cmds=
7799 finish_cmds=
7800 finish_eval=
7801 shlibpath_var=
7802 shlibpath_overrides_runpath=unknown
7803 version_type=none
7804 dynamic_linker="$host_os ld.so"
7805 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7806 if test "$GCC" = yes; then
7807   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7808   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7809     # if the path contains ";" then we assume it to be the separator
7810     # otherwise default to the standard path separator (i.e. ":") - it is
7811     # assumed that no part of a normal pathname contains ";" but that should
7812     # okay in the real world where ";" in dirpaths is itself problematic.
7813     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7814   else
7815     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7816   fi
7817 else
7818   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7819 fi
7820 need_lib_prefix=unknown
7821 hardcode_into_libs=no
7822
7823 # when you set need_version to no, make sure it does not cause -set_version
7824 # flags to be left without arguments
7825 need_version=unknown
7826
7827 case $host_os in
7828 aix3*)
7829   version_type=linux
7830   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7831   shlibpath_var=LIBPATH
7832
7833   # AIX 3 has no versioning support, so we append a major version to the name.
7834   soname_spec='${libname}${release}${shared_ext}$major'
7835   ;;
7836
7837 aix4* | aix5*)
7838   version_type=linux
7839   need_lib_prefix=no
7840   need_version=no
7841   hardcode_into_libs=yes
7842   if test "$host_cpu" = ia64; then
7843     # AIX 5 supports IA64
7844     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7845     shlibpath_var=LD_LIBRARY_PATH
7846   else
7847     # With GCC up to 2.95.x, collect2 would create an import file
7848     # for dependence libraries.  The import file would start with
7849     # the line `#! .'.  This would cause the generated library to
7850     # depend on `.', always an invalid library.  This was fixed in
7851     # development snapshots of GCC prior to 3.0.
7852     case $host_os in
7853       aix4 | aix4.[01] | aix4.[01].*)
7854       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7855            echo ' yes '
7856            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7857         :
7858       else
7859         can_build_shared=no
7860       fi
7861       ;;
7862     esac
7863     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7864     # soname into executable. Probably we can add versioning support to
7865     # collect2, so additional links can be useful in future.
7866     if test "$aix_use_runtimelinking" = yes; then
7867       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7868       # instead of lib<name>.a to let people know that these are not
7869       # typical AIX shared libraries.
7870       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7871     else
7872       # We preserve .a as extension for shared libraries through AIX4.2
7873       # and later when we are not doing run time linking.
7874       library_names_spec='${libname}${release}.a $libname.a'
7875       soname_spec='${libname}${release}${shared_ext}$major'
7876     fi
7877     shlibpath_var=LIBPATH
7878   fi
7879   ;;
7880
7881 amigaos*)
7882   library_names_spec='$libname.ixlibrary $libname.a'
7883   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7884   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'
7885   ;;
7886
7887 beos*)
7888   library_names_spec='${libname}${shared_ext}'
7889   dynamic_linker="$host_os ld.so"
7890   shlibpath_var=LIBRARY_PATH
7891   ;;
7892
7893 bsdi[45]*)
7894   version_type=linux
7895   need_version=no
7896   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7897   soname_spec='${libname}${release}${shared_ext}$major'
7898   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7899   shlibpath_var=LD_LIBRARY_PATH
7900   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7901   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7902   # the default ld.so.conf also contains /usr/contrib/lib and
7903   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7904   # libtool to hard-code these into programs
7905   ;;
7906
7907 cygwin* | mingw* | pw32*)
7908   version_type=windows
7909   shrext_cmds=".dll"
7910   need_version=no
7911   need_lib_prefix=no
7912
7913   case $GCC,$host_os in
7914   yes,cygwin* | yes,mingw* | yes,pw32*)
7915     library_names_spec='$libname.dll.a'
7916     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7917     postinstall_cmds='base_file=`basename \${file}`~
7918       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7919       dldir=$destdir/`dirname \$dlpath`~
7920       test -d \$dldir || mkdir -p \$dldir~
7921       $install_prog $dir/$dlname \$dldir/$dlname~
7922       chmod a+x \$dldir/$dlname'
7923     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7924       dlpath=$dir/\$dldll~
7925        $rm \$dlpath'
7926     shlibpath_overrides_runpath=yes
7927
7928     case $host_os in
7929     cygwin*)
7930       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7931       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7932       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7933       ;;
7934     mingw*)
7935       # MinGW DLLs use traditional 'lib' prefix
7936       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7937       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7938       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7939         # It is most probably a Windows format PATH printed by
7940         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7941         # path with ; separators, and with drive letters. We can handle the
7942         # drive letters (cygwin fileutils understands them), so leave them,
7943         # especially as we might pass files found there to a mingw objdump,
7944         # which wouldn't understand a cygwinified path. Ahh.
7945         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7946       else
7947         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7948       fi
7949       ;;
7950     pw32*)
7951       # pw32 DLLs use 'pw' prefix rather than 'lib'
7952       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7953       ;;
7954     esac
7955     ;;
7956
7957   *)
7958     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7959     ;;
7960   esac
7961   dynamic_linker='Win32 ld.exe'
7962   # FIXME: first we should search . and the directory the executable is in
7963   shlibpath_var=PATH
7964   ;;
7965
7966 darwin* | rhapsody*)
7967   dynamic_linker="$host_os dyld"
7968   version_type=darwin
7969   need_lib_prefix=no
7970   need_version=no
7971   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7972   soname_spec='${libname}${release}${major}$shared_ext'
7973   shlibpath_overrides_runpath=yes
7974   shlibpath_var=DYLD_LIBRARY_PATH
7975   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
7976   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7977   if test "$GCC" = yes; then
7978     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"`
7979   else
7980     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7981   fi
7982   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7983   ;;
7984
7985 dgux*)
7986   version_type=linux
7987   need_lib_prefix=no
7988   need_version=no
7989   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7990   soname_spec='${libname}${release}${shared_ext}$major'
7991   shlibpath_var=LD_LIBRARY_PATH
7992   ;;
7993
7994 freebsd1*)
7995   dynamic_linker=no
7996   ;;
7997
7998 freebsd* | dragonfly*)
7999   # DragonFly does not have aout.  When/if they implement a new
8000   # versioning mechanism, adjust this.
8001   if test -x /usr/bin/objformat; then
8002     objformat=`/usr/bin/objformat`
8003   else
8004     case $host_os in
8005     freebsd[123]*) objformat=aout ;;
8006     *) objformat=elf ;;
8007     esac
8008   fi
8009   version_type=freebsd-$objformat
8010   case $version_type in
8011     freebsd-elf*)
8012       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8013       need_version=no
8014       need_lib_prefix=no
8015       ;;
8016     freebsd-*)
8017       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8018       need_version=yes
8019       ;;
8020   esac
8021   shlibpath_var=LD_LIBRARY_PATH
8022   case $host_os in
8023   freebsd2*)
8024     shlibpath_overrides_runpath=yes
8025     ;;
8026   freebsd3.[01]* | freebsdelf3.[01]*)
8027     shlibpath_overrides_runpath=yes
8028     hardcode_into_libs=yes
8029     ;;
8030   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8031   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8032     shlibpath_overrides_runpath=no
8033     hardcode_into_libs=yes
8034     ;;
8035   freebsd*) # from 4.6 on
8036     shlibpath_overrides_runpath=yes
8037     hardcode_into_libs=yes
8038     ;;
8039   esac
8040   ;;
8041
8042 gnu*)
8043   version_type=linux
8044   need_lib_prefix=no
8045   need_version=no
8046   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8047   soname_spec='${libname}${release}${shared_ext}$major'
8048   shlibpath_var=LD_LIBRARY_PATH
8049   hardcode_into_libs=yes
8050   ;;
8051
8052 hpux9* | hpux10* | hpux11*)
8053   # Give a soname corresponding to the major version so that dld.sl refuses to
8054   # link against other versions.
8055   version_type=sunos
8056   need_lib_prefix=no
8057   need_version=no
8058   case $host_cpu in
8059   ia64*)
8060     shrext_cmds='.so'
8061     hardcode_into_libs=yes
8062     dynamic_linker="$host_os dld.so"
8063     shlibpath_var=LD_LIBRARY_PATH
8064     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8065     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8066     soname_spec='${libname}${release}${shared_ext}$major'
8067     if test "X$HPUX_IA64_MODE" = X32; then
8068       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8069     else
8070       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8071     fi
8072     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8073     ;;
8074    hppa*64*)
8075      shrext_cmds='.sl'
8076      hardcode_into_libs=yes
8077      dynamic_linker="$host_os dld.sl"
8078      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8079      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8080      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8081      soname_spec='${libname}${release}${shared_ext}$major'
8082      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8083      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8084      ;;
8085    *)
8086     shrext_cmds='.sl'
8087     dynamic_linker="$host_os dld.sl"
8088     shlibpath_var=SHLIB_PATH
8089     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8090     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8091     soname_spec='${libname}${release}${shared_ext}$major'
8092     ;;
8093   esac
8094   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8095   postinstall_cmds='chmod 555 $lib'
8096   ;;
8097
8098 interix3*)
8099   version_type=linux
8100   need_lib_prefix=no
8101   need_version=no
8102   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8103   soname_spec='${libname}${release}${shared_ext}$major'
8104   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8105   shlibpath_var=LD_LIBRARY_PATH
8106   shlibpath_overrides_runpath=no
8107   hardcode_into_libs=yes
8108   ;;
8109
8110 irix5* | irix6* | nonstopux*)
8111   case $host_os in
8112     nonstopux*) version_type=nonstopux ;;
8113     *)
8114         if test "$lt_cv_prog_gnu_ld" = yes; then
8115                 version_type=linux
8116         else
8117                 version_type=irix
8118         fi ;;
8119   esac
8120   need_lib_prefix=no
8121   need_version=no
8122   soname_spec='${libname}${release}${shared_ext}$major'
8123   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8124   case $host_os in
8125   irix5* | nonstopux*)
8126     libsuff= shlibsuff=
8127     ;;
8128   *)
8129     case $LD in # libtool.m4 will add one of these switches to LD
8130     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8131       libsuff= shlibsuff= libmagic=32-bit;;
8132     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8133       libsuff=32 shlibsuff=N32 libmagic=N32;;
8134     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8135       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8136     *) libsuff= shlibsuff= libmagic=never-match;;
8137     esac
8138     ;;
8139   esac
8140   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8141   shlibpath_overrides_runpath=no
8142   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8143   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8144   hardcode_into_libs=yes
8145   ;;
8146
8147 # No shared lib support for Linux oldld, aout, or coff.
8148 linux*oldld* | linux*aout* | linux*coff*)
8149   dynamic_linker=no
8150   ;;
8151
8152 # This must be Linux ELF.
8153 linux* | k*bsd*-gnu)
8154   version_type=linux
8155   need_lib_prefix=no
8156   need_version=no
8157   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8158   soname_spec='${libname}${release}${shared_ext}$major'
8159   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8160   shlibpath_var=LD_LIBRARY_PATH
8161   shlibpath_overrides_runpath=no
8162   # This implies no fast_install, which is unacceptable.
8163   # Some rework will be needed to allow for fast_install
8164   # before this can be enabled.
8165   hardcode_into_libs=yes
8166
8167   # Append ld.so.conf contents to the search path
8168   if test -f /etc/ld.so.conf; then
8169     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' ' '`
8170     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8171   fi
8172
8173   # We used to test for /lib/ld.so.1 and disable shared libraries on
8174   # powerpc, because MkLinux only supported shared libraries with the
8175   # GNU dynamic linker.  Since this was broken with cross compilers,
8176   # most powerpc-linux boxes support dynamic linking these days and
8177   # people can always --disable-shared, the test was removed, and we
8178   # assume the GNU/Linux dynamic linker is in use.
8179   dynamic_linker='GNU/Linux ld.so'
8180   ;;
8181
8182 netbsdelf*-gnu)
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   shlibpath_var=LD_LIBRARY_PATH
8189   shlibpath_overrides_runpath=no
8190   hardcode_into_libs=yes
8191   dynamic_linker='NetBSD ld.elf_so'
8192   ;;
8193
8194 netbsd*)
8195   version_type=sunos
8196   need_lib_prefix=no
8197   need_version=no
8198   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8199     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8200     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8201     dynamic_linker='NetBSD (a.out) ld.so'
8202   else
8203     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8204     soname_spec='${libname}${release}${shared_ext}$major'
8205     dynamic_linker='NetBSD ld.elf_so'
8206   fi
8207   shlibpath_var=LD_LIBRARY_PATH
8208   shlibpath_overrides_runpath=yes
8209   hardcode_into_libs=yes
8210   ;;
8211
8212 newsos6)
8213   version_type=linux
8214   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8215   shlibpath_var=LD_LIBRARY_PATH
8216   shlibpath_overrides_runpath=yes
8217   ;;
8218
8219 nto-qnx*)
8220   version_type=linux
8221   need_lib_prefix=no
8222   need_version=no
8223   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8224   soname_spec='${libname}${release}${shared_ext}$major'
8225   shlibpath_var=LD_LIBRARY_PATH
8226   shlibpath_overrides_runpath=yes
8227   ;;
8228
8229 openbsd*)
8230   version_type=sunos
8231   sys_lib_dlsearch_path_spec="/usr/lib"
8232   need_lib_prefix=no
8233   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8234   case $host_os in
8235     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8236     *)                         need_version=no  ;;
8237   esac
8238   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8239   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8240   shlibpath_var=LD_LIBRARY_PATH
8241   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8242     case $host_os in
8243       openbsd2.[89] | openbsd2.[89].*)
8244         shlibpath_overrides_runpath=no
8245         ;;
8246       *)
8247         shlibpath_overrides_runpath=yes
8248         ;;
8249       esac
8250   else
8251     shlibpath_overrides_runpath=yes
8252   fi
8253   ;;
8254
8255 os2*)
8256   libname_spec='$name'
8257   shrext_cmds=".dll"
8258   need_lib_prefix=no
8259   library_names_spec='$libname${shared_ext} $libname.a'
8260   dynamic_linker='OS/2 ld.exe'
8261   shlibpath_var=LIBPATH
8262   ;;
8263
8264 osf3* | osf4* | osf5*)
8265   version_type=osf
8266   need_lib_prefix=no
8267   need_version=no
8268   soname_spec='${libname}${release}${shared_ext}$major'
8269   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8270   shlibpath_var=LD_LIBRARY_PATH
8271   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8272   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8273   ;;
8274
8275 solaris*)
8276   version_type=linux
8277   need_lib_prefix=no
8278   need_version=no
8279   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8280   soname_spec='${libname}${release}${shared_ext}$major'
8281   shlibpath_var=LD_LIBRARY_PATH
8282   shlibpath_overrides_runpath=yes
8283   hardcode_into_libs=yes
8284   # ldd complains unless libraries are executable
8285   postinstall_cmds='chmod +x $lib'
8286   ;;
8287
8288 sunos4*)
8289   version_type=sunos
8290   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8291   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8292   shlibpath_var=LD_LIBRARY_PATH
8293   shlibpath_overrides_runpath=yes
8294   if test "$with_gnu_ld" = yes; then
8295     need_lib_prefix=no
8296   fi
8297   need_version=yes
8298   ;;
8299
8300 sysv4 | sysv4.3*)
8301   version_type=linux
8302   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8303   soname_spec='${libname}${release}${shared_ext}$major'
8304   shlibpath_var=LD_LIBRARY_PATH
8305   case $host_vendor in
8306     sni)
8307       shlibpath_overrides_runpath=no
8308       need_lib_prefix=no
8309       export_dynamic_flag_spec='${wl}-Blargedynsym'
8310       runpath_var=LD_RUN_PATH
8311       ;;
8312     siemens)
8313       need_lib_prefix=no
8314       ;;
8315     motorola)
8316       need_lib_prefix=no
8317       need_version=no
8318       shlibpath_overrides_runpath=no
8319       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8320       ;;
8321   esac
8322   ;;
8323
8324 sysv4*MP*)
8325   if test -d /usr/nec ;then
8326     version_type=linux
8327     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8328     soname_spec='$libname${shared_ext}.$major'
8329     shlibpath_var=LD_LIBRARY_PATH
8330   fi
8331   ;;
8332
8333 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8334   version_type=freebsd-elf
8335   need_lib_prefix=no
8336   need_version=no
8337   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8338   soname_spec='${libname}${release}${shared_ext}$major'
8339   shlibpath_var=LD_LIBRARY_PATH
8340   hardcode_into_libs=yes
8341   if test "$with_gnu_ld" = yes; then
8342     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8343     shlibpath_overrides_runpath=no
8344   else
8345     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8346     shlibpath_overrides_runpath=yes
8347     case $host_os in
8348       sco3.2v5*)
8349         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8350         ;;
8351     esac
8352   fi
8353   sys_lib_dlsearch_path_spec='/usr/lib'
8354   ;;
8355
8356 uts4*)
8357   version_type=linux
8358   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8359   soname_spec='${libname}${release}${shared_ext}$major'
8360   shlibpath_var=LD_LIBRARY_PATH
8361   ;;
8362
8363 *)
8364   dynamic_linker=no
8365   ;;
8366 esac
8367 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8368 echo "${ECHO_T}$dynamic_linker" >&6
8369 test "$dynamic_linker" = no && can_build_shared=no
8370
8371 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8372 if test "$GCC" = yes; then
8373   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8374 fi
8375
8376 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8377 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8378 hardcode_action=
8379 if test -n "$hardcode_libdir_flag_spec" || \
8380    test -n "$runpath_var" || \
8381    test "X$hardcode_automatic" = "Xyes" ; then
8382
8383   # We can hardcode non-existant directories.
8384   if test "$hardcode_direct" != no &&
8385      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8386      # have to relink, otherwise we might link with an installed library
8387      # when we should be linking with a yet-to-be-installed one
8388      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8389      test "$hardcode_minus_L" != no; then
8390     # Linking always hardcodes the temporary library directory.
8391     hardcode_action=relink
8392   else
8393     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8394     hardcode_action=immediate
8395   fi
8396 else
8397   # We cannot hardcode anything, or else we can only hardcode existing
8398   # directories.
8399   hardcode_action=unsupported
8400 fi
8401 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8402 echo "${ECHO_T}$hardcode_action" >&6
8403
8404 if test "$hardcode_action" = relink; then
8405   # Fast installation is not supported
8406   enable_fast_install=no
8407 elif test "$shlibpath_overrides_runpath" = yes ||
8408      test "$enable_shared" = no; then
8409   # Fast installation is not necessary
8410   enable_fast_install=needless
8411 fi
8412
8413 striplib=
8414 old_striplib=
8415 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8416 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8417 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8418   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8419   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8420   echo "$as_me:$LINENO: result: yes" >&5
8421 echo "${ECHO_T}yes" >&6
8422 else
8423 # FIXME - insert some real tests, host_os isn't really good enough
8424   case $host_os in
8425    darwin*)
8426        if test -n "$STRIP" ; then
8427          striplib="$STRIP -x"
8428          echo "$as_me:$LINENO: result: yes" >&5
8429 echo "${ECHO_T}yes" >&6
8430        else
8431   echo "$as_me:$LINENO: result: no" >&5
8432 echo "${ECHO_T}no" >&6
8433 fi
8434        ;;
8435    *)
8436   echo "$as_me:$LINENO: result: no" >&5
8437 echo "${ECHO_T}no" >&6
8438     ;;
8439   esac
8440 fi
8441
8442 if test "x$enable_dlopen" != xyes; then
8443   enable_dlopen=unknown
8444   enable_dlopen_self=unknown
8445   enable_dlopen_self_static=unknown
8446 else
8447   lt_cv_dlopen=no
8448   lt_cv_dlopen_libs=
8449
8450   case $host_os in
8451   beos*)
8452     lt_cv_dlopen="load_add_on"
8453     lt_cv_dlopen_libs=
8454     lt_cv_dlopen_self=yes
8455     ;;
8456
8457   mingw* | pw32*)
8458     lt_cv_dlopen="LoadLibrary"
8459     lt_cv_dlopen_libs=
8460    ;;
8461
8462   cygwin*)
8463     lt_cv_dlopen="dlopen"
8464     lt_cv_dlopen_libs=
8465    ;;
8466
8467   darwin*)
8468   # if libdl is installed we need to link against it
8469     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8470 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8471 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8472   echo $ECHO_N "(cached) $ECHO_C" >&6
8473 else
8474   ac_check_lib_save_LIBS=$LIBS
8475 LIBS="-ldl  $LIBS"
8476 cat >conftest.$ac_ext <<_ACEOF
8477 /* confdefs.h.  */
8478 _ACEOF
8479 cat confdefs.h >>conftest.$ac_ext
8480 cat >>conftest.$ac_ext <<_ACEOF
8481 /* end confdefs.h.  */
8482
8483 /* Override any gcc2 internal prototype to avoid an error.  */
8484 #ifdef __cplusplus
8485 extern "C"
8486 #endif
8487 /* We use char because int might match the return type of a gcc2
8488    builtin and then its argument prototype would still apply.  */
8489 char dlopen ();
8490 int
8491 main ()
8492 {
8493 dlopen ();
8494   ;
8495   return 0;
8496 }
8497 _ACEOF
8498 rm -f conftest.$ac_objext conftest$ac_exeext
8499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8500   (eval $ac_link) 2>conftest.er1
8501   ac_status=$?
8502   grep -v '^ *+' conftest.er1 >conftest.err
8503   rm -f conftest.er1
8504   cat conftest.err >&5
8505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506   (exit $ac_status); } &&
8507          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8509   (eval $ac_try) 2>&5
8510   ac_status=$?
8511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8512   (exit $ac_status); }; } &&
8513          { ac_try='test -s conftest$ac_exeext'
8514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8515   (eval $ac_try) 2>&5
8516   ac_status=$?
8517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518   (exit $ac_status); }; }; then
8519   ac_cv_lib_dl_dlopen=yes
8520 else
8521   echo "$as_me: failed program was:" >&5
8522 sed 's/^/| /' conftest.$ac_ext >&5
8523
8524 ac_cv_lib_dl_dlopen=no
8525 fi
8526 rm -f conftest.err conftest.$ac_objext \
8527       conftest$ac_exeext conftest.$ac_ext
8528 LIBS=$ac_check_lib_save_LIBS
8529 fi
8530 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8531 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8532 if test $ac_cv_lib_dl_dlopen = yes; then
8533   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8534 else
8535   
8536     lt_cv_dlopen="dyld"
8537     lt_cv_dlopen_libs=
8538     lt_cv_dlopen_self=yes
8539     
8540 fi
8541
8542    ;;
8543
8544   *)
8545     echo "$as_me:$LINENO: checking for shl_load" >&5
8546 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8547 if test "${ac_cv_func_shl_load+set}" = set; then
8548   echo $ECHO_N "(cached) $ECHO_C" >&6
8549 else
8550   cat >conftest.$ac_ext <<_ACEOF
8551 /* confdefs.h.  */
8552 _ACEOF
8553 cat confdefs.h >>conftest.$ac_ext
8554 cat >>conftest.$ac_ext <<_ACEOF
8555 /* end confdefs.h.  */
8556 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8557    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8558 #define shl_load innocuous_shl_load
8559
8560 /* System header to define __stub macros and hopefully few prototypes,
8561     which can conflict with char shl_load (); below.
8562     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8563     <limits.h> exists even on freestanding compilers.  */
8564
8565 #ifdef __STDC__
8566 # include <limits.h>
8567 #else
8568 # include <assert.h>
8569 #endif
8570
8571 #undef shl_load
8572
8573 /* Override any gcc2 internal prototype to avoid an error.  */
8574 #ifdef __cplusplus
8575 extern "C"
8576 {
8577 #endif
8578 /* We use char because int might match the return type of a gcc2
8579    builtin and then its argument prototype would still apply.  */
8580 char shl_load ();
8581 /* The GNU C library defines this for functions which it implements
8582     to always fail with ENOSYS.  Some functions are actually named
8583     something starting with __ and the normal name is an alias.  */
8584 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8585 choke me
8586 #else
8587 char (*f) () = shl_load;
8588 #endif
8589 #ifdef __cplusplus
8590 }
8591 #endif
8592
8593 int
8594 main ()
8595 {
8596 return f != shl_load;
8597   ;
8598   return 0;
8599 }
8600 _ACEOF
8601 rm -f conftest.$ac_objext conftest$ac_exeext
8602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8603   (eval $ac_link) 2>conftest.er1
8604   ac_status=$?
8605   grep -v '^ *+' conftest.er1 >conftest.err
8606   rm -f conftest.er1
8607   cat conftest.err >&5
8608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609   (exit $ac_status); } &&
8610          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8612   (eval $ac_try) 2>&5
8613   ac_status=$?
8614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615   (exit $ac_status); }; } &&
8616          { ac_try='test -s conftest$ac_exeext'
8617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8618   (eval $ac_try) 2>&5
8619   ac_status=$?
8620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621   (exit $ac_status); }; }; then
8622   ac_cv_func_shl_load=yes
8623 else
8624   echo "$as_me: failed program was:" >&5
8625 sed 's/^/| /' conftest.$ac_ext >&5
8626
8627 ac_cv_func_shl_load=no
8628 fi
8629 rm -f conftest.err conftest.$ac_objext \
8630       conftest$ac_exeext conftest.$ac_ext
8631 fi
8632 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8633 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8634 if test $ac_cv_func_shl_load = yes; then
8635   lt_cv_dlopen="shl_load"
8636 else
8637   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8638 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8639 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8640   echo $ECHO_N "(cached) $ECHO_C" >&6
8641 else
8642   ac_check_lib_save_LIBS=$LIBS
8643 LIBS="-ldld  $LIBS"
8644 cat >conftest.$ac_ext <<_ACEOF
8645 /* confdefs.h.  */
8646 _ACEOF
8647 cat confdefs.h >>conftest.$ac_ext
8648 cat >>conftest.$ac_ext <<_ACEOF
8649 /* end confdefs.h.  */
8650
8651 /* Override any gcc2 internal prototype to avoid an error.  */
8652 #ifdef __cplusplus
8653 extern "C"
8654 #endif
8655 /* We use char because int might match the return type of a gcc2
8656    builtin and then its argument prototype would still apply.  */
8657 char shl_load ();
8658 int
8659 main ()
8660 {
8661 shl_load ();
8662   ;
8663   return 0;
8664 }
8665 _ACEOF
8666 rm -f conftest.$ac_objext conftest$ac_exeext
8667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8668   (eval $ac_link) 2>conftest.er1
8669   ac_status=$?
8670   grep -v '^ *+' conftest.er1 >conftest.err
8671   rm -f conftest.er1
8672   cat conftest.err >&5
8673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674   (exit $ac_status); } &&
8675          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8677   (eval $ac_try) 2>&5
8678   ac_status=$?
8679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680   (exit $ac_status); }; } &&
8681          { ac_try='test -s conftest$ac_exeext'
8682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8683   (eval $ac_try) 2>&5
8684   ac_status=$?
8685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686   (exit $ac_status); }; }; then
8687   ac_cv_lib_dld_shl_load=yes
8688 else
8689   echo "$as_me: failed program was:" >&5
8690 sed 's/^/| /' conftest.$ac_ext >&5
8691
8692 ac_cv_lib_dld_shl_load=no
8693 fi
8694 rm -f conftest.err conftest.$ac_objext \
8695       conftest$ac_exeext conftest.$ac_ext
8696 LIBS=$ac_check_lib_save_LIBS
8697 fi
8698 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8699 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8700 if test $ac_cv_lib_dld_shl_load = yes; then
8701   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8702 else
8703   echo "$as_me:$LINENO: checking for dlopen" >&5
8704 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8705 if test "${ac_cv_func_dlopen+set}" = set; then
8706   echo $ECHO_N "(cached) $ECHO_C" >&6
8707 else
8708   cat >conftest.$ac_ext <<_ACEOF
8709 /* confdefs.h.  */
8710 _ACEOF
8711 cat confdefs.h >>conftest.$ac_ext
8712 cat >>conftest.$ac_ext <<_ACEOF
8713 /* end confdefs.h.  */
8714 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8715    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8716 #define dlopen innocuous_dlopen
8717
8718 /* System header to define __stub macros and hopefully few prototypes,
8719     which can conflict with char dlopen (); below.
8720     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8721     <limits.h> exists even on freestanding compilers.  */
8722
8723 #ifdef __STDC__
8724 # include <limits.h>
8725 #else
8726 # include <assert.h>
8727 #endif
8728
8729 #undef dlopen
8730
8731 /* Override any gcc2 internal prototype to avoid an error.  */
8732 #ifdef __cplusplus
8733 extern "C"
8734 {
8735 #endif
8736 /* We use char because int might match the return type of a gcc2
8737    builtin and then its argument prototype would still apply.  */
8738 char dlopen ();
8739 /* The GNU C library defines this for functions which it implements
8740     to always fail with ENOSYS.  Some functions are actually named
8741     something starting with __ and the normal name is an alias.  */
8742 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8743 choke me
8744 #else
8745 char (*f) () = dlopen;
8746 #endif
8747 #ifdef __cplusplus
8748 }
8749 #endif
8750
8751 int
8752 main ()
8753 {
8754 return f != dlopen;
8755   ;
8756   return 0;
8757 }
8758 _ACEOF
8759 rm -f conftest.$ac_objext conftest$ac_exeext
8760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8761   (eval $ac_link) 2>conftest.er1
8762   ac_status=$?
8763   grep -v '^ *+' conftest.er1 >conftest.err
8764   rm -f conftest.er1
8765   cat conftest.err >&5
8766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767   (exit $ac_status); } &&
8768          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8770   (eval $ac_try) 2>&5
8771   ac_status=$?
8772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773   (exit $ac_status); }; } &&
8774          { ac_try='test -s conftest$ac_exeext'
8775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8776   (eval $ac_try) 2>&5
8777   ac_status=$?
8778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8779   (exit $ac_status); }; }; then
8780   ac_cv_func_dlopen=yes
8781 else
8782   echo "$as_me: failed program was:" >&5
8783 sed 's/^/| /' conftest.$ac_ext >&5
8784
8785 ac_cv_func_dlopen=no
8786 fi
8787 rm -f conftest.err conftest.$ac_objext \
8788       conftest$ac_exeext conftest.$ac_ext
8789 fi
8790 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8791 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8792 if test $ac_cv_func_dlopen = yes; then
8793   lt_cv_dlopen="dlopen"
8794 else
8795   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8796 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8797 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8798   echo $ECHO_N "(cached) $ECHO_C" >&6
8799 else
8800   ac_check_lib_save_LIBS=$LIBS
8801 LIBS="-ldl  $LIBS"
8802 cat >conftest.$ac_ext <<_ACEOF
8803 /* confdefs.h.  */
8804 _ACEOF
8805 cat confdefs.h >>conftest.$ac_ext
8806 cat >>conftest.$ac_ext <<_ACEOF
8807 /* end confdefs.h.  */
8808
8809 /* Override any gcc2 internal prototype to avoid an error.  */
8810 #ifdef __cplusplus
8811 extern "C"
8812 #endif
8813 /* We use char because int might match the return type of a gcc2
8814    builtin and then its argument prototype would still apply.  */
8815 char dlopen ();
8816 int
8817 main ()
8818 {
8819 dlopen ();
8820   ;
8821   return 0;
8822 }
8823 _ACEOF
8824 rm -f conftest.$ac_objext conftest$ac_exeext
8825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8826   (eval $ac_link) 2>conftest.er1
8827   ac_status=$?
8828   grep -v '^ *+' conftest.er1 >conftest.err
8829   rm -f conftest.er1
8830   cat conftest.err >&5
8831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832   (exit $ac_status); } &&
8833          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8835   (eval $ac_try) 2>&5
8836   ac_status=$?
8837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838   (exit $ac_status); }; } &&
8839          { ac_try='test -s conftest$ac_exeext'
8840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8841   (eval $ac_try) 2>&5
8842   ac_status=$?
8843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844   (exit $ac_status); }; }; then
8845   ac_cv_lib_dl_dlopen=yes
8846 else
8847   echo "$as_me: failed program was:" >&5
8848 sed 's/^/| /' conftest.$ac_ext >&5
8849
8850 ac_cv_lib_dl_dlopen=no
8851 fi
8852 rm -f conftest.err conftest.$ac_objext \
8853       conftest$ac_exeext conftest.$ac_ext
8854 LIBS=$ac_check_lib_save_LIBS
8855 fi
8856 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8857 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8858 if test $ac_cv_lib_dl_dlopen = yes; then
8859   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8860 else
8861   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8862 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8863 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8864   echo $ECHO_N "(cached) $ECHO_C" >&6
8865 else
8866   ac_check_lib_save_LIBS=$LIBS
8867 LIBS="-lsvld  $LIBS"
8868 cat >conftest.$ac_ext <<_ACEOF
8869 /* confdefs.h.  */
8870 _ACEOF
8871 cat confdefs.h >>conftest.$ac_ext
8872 cat >>conftest.$ac_ext <<_ACEOF
8873 /* end confdefs.h.  */
8874
8875 /* Override any gcc2 internal prototype to avoid an error.  */
8876 #ifdef __cplusplus
8877 extern "C"
8878 #endif
8879 /* We use char because int might match the return type of a gcc2
8880    builtin and then its argument prototype would still apply.  */
8881 char dlopen ();
8882 int
8883 main ()
8884 {
8885 dlopen ();
8886   ;
8887   return 0;
8888 }
8889 _ACEOF
8890 rm -f conftest.$ac_objext conftest$ac_exeext
8891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8892   (eval $ac_link) 2>conftest.er1
8893   ac_status=$?
8894   grep -v '^ *+' conftest.er1 >conftest.err
8895   rm -f conftest.er1
8896   cat conftest.err >&5
8897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898   (exit $ac_status); } &&
8899          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8901   (eval $ac_try) 2>&5
8902   ac_status=$?
8903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904   (exit $ac_status); }; } &&
8905          { ac_try='test -s conftest$ac_exeext'
8906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8907   (eval $ac_try) 2>&5
8908   ac_status=$?
8909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910   (exit $ac_status); }; }; then
8911   ac_cv_lib_svld_dlopen=yes
8912 else
8913   echo "$as_me: failed program was:" >&5
8914 sed 's/^/| /' conftest.$ac_ext >&5
8915
8916 ac_cv_lib_svld_dlopen=no
8917 fi
8918 rm -f conftest.err conftest.$ac_objext \
8919       conftest$ac_exeext conftest.$ac_ext
8920 LIBS=$ac_check_lib_save_LIBS
8921 fi
8922 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8923 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8924 if test $ac_cv_lib_svld_dlopen = yes; then
8925   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8926 else
8927   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8928 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8929 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8930   echo $ECHO_N "(cached) $ECHO_C" >&6
8931 else
8932   ac_check_lib_save_LIBS=$LIBS
8933 LIBS="-ldld  $LIBS"
8934 cat >conftest.$ac_ext <<_ACEOF
8935 /* confdefs.h.  */
8936 _ACEOF
8937 cat confdefs.h >>conftest.$ac_ext
8938 cat >>conftest.$ac_ext <<_ACEOF
8939 /* end confdefs.h.  */
8940
8941 /* Override any gcc2 internal prototype to avoid an error.  */
8942 #ifdef __cplusplus
8943 extern "C"
8944 #endif
8945 /* We use char because int might match the return type of a gcc2
8946    builtin and then its argument prototype would still apply.  */
8947 char dld_link ();
8948 int
8949 main ()
8950 {
8951 dld_link ();
8952   ;
8953   return 0;
8954 }
8955 _ACEOF
8956 rm -f conftest.$ac_objext conftest$ac_exeext
8957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8958   (eval $ac_link) 2>conftest.er1
8959   ac_status=$?
8960   grep -v '^ *+' conftest.er1 >conftest.err
8961   rm -f conftest.er1
8962   cat conftest.err >&5
8963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8964   (exit $ac_status); } &&
8965          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8967   (eval $ac_try) 2>&5
8968   ac_status=$?
8969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8970   (exit $ac_status); }; } &&
8971          { ac_try='test -s conftest$ac_exeext'
8972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8973   (eval $ac_try) 2>&5
8974   ac_status=$?
8975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976   (exit $ac_status); }; }; then
8977   ac_cv_lib_dld_dld_link=yes
8978 else
8979   echo "$as_me: failed program was:" >&5
8980 sed 's/^/| /' conftest.$ac_ext >&5
8981
8982 ac_cv_lib_dld_dld_link=no
8983 fi
8984 rm -f conftest.err conftest.$ac_objext \
8985       conftest$ac_exeext conftest.$ac_ext
8986 LIBS=$ac_check_lib_save_LIBS
8987 fi
8988 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8989 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8990 if test $ac_cv_lib_dld_dld_link = yes; then
8991   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8992 fi
8993
8994               
8995 fi
8996
8997             
8998 fi
8999
9000           
9001 fi
9002
9003         
9004 fi
9005
9006       
9007 fi
9008
9009     ;;
9010   esac
9011
9012   if test "x$lt_cv_dlopen" != xno; then
9013     enable_dlopen=yes
9014   else
9015     enable_dlopen=no
9016   fi
9017
9018   case $lt_cv_dlopen in
9019   dlopen)
9020     save_CPPFLAGS="$CPPFLAGS"
9021     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9022
9023     save_LDFLAGS="$LDFLAGS"
9024     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9025
9026     save_LIBS="$LIBS"
9027     LIBS="$lt_cv_dlopen_libs $LIBS"
9028
9029     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9030 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9031 if test "${lt_cv_dlopen_self+set}" = set; then
9032   echo $ECHO_N "(cached) $ECHO_C" >&6
9033 else
9034           if test "$cross_compiling" = yes; then :
9035   lt_cv_dlopen_self=cross
9036 else
9037   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9038   lt_status=$lt_dlunknown
9039   cat > conftest.$ac_ext <<EOF
9040 #line __oline__ "configure"
9041 #include "confdefs.h"
9042
9043 #if HAVE_DLFCN_H
9044 #include <dlfcn.h>
9045 #endif
9046
9047 #include <stdio.h>
9048
9049 #ifdef RTLD_GLOBAL
9050 #  define LT_DLGLOBAL           RTLD_GLOBAL
9051 #else
9052 #  ifdef DL_GLOBAL
9053 #    define LT_DLGLOBAL         DL_GLOBAL
9054 #  else
9055 #    define LT_DLGLOBAL         0
9056 #  endif
9057 #endif
9058
9059 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9060    find out it does not work in some platform. */
9061 #ifndef LT_DLLAZY_OR_NOW
9062 #  ifdef RTLD_LAZY
9063 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9064 #  else
9065 #    ifdef DL_LAZY
9066 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9067 #    else
9068 #      ifdef RTLD_NOW
9069 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9070 #      else
9071 #        ifdef DL_NOW
9072 #          define LT_DLLAZY_OR_NOW      DL_NOW
9073 #        else
9074 #          define LT_DLLAZY_OR_NOW      0
9075 #        endif
9076 #      endif
9077 #    endif
9078 #  endif
9079 #endif
9080
9081 #ifdef __cplusplus
9082 extern "C" void exit (int);
9083 #endif
9084
9085 void fnord() { int i=42;}
9086 int main ()
9087 {
9088   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9089   int status = $lt_dlunknown;
9090
9091   if (self)
9092     {
9093       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9094       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9095       /* dlclose (self); */
9096     }
9097   else
9098     puts (dlerror ());
9099
9100     exit (status);
9101 }
9102 EOF
9103   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9104   (eval $ac_link) 2>&5
9105   ac_status=$?
9106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9108     (./conftest; exit; ) >&5 2>/dev/null
9109     lt_status=$?
9110     case x$lt_status in
9111       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9112       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9113       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9114     esac
9115   else :
9116     # compilation failed
9117     lt_cv_dlopen_self=no
9118   fi
9119 fi
9120 rm -fr conftest*
9121
9122     
9123 fi
9124 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9125 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9126
9127     if test "x$lt_cv_dlopen_self" = xyes; then
9128       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9129       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9130 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9131 if test "${lt_cv_dlopen_self_static+set}" = set; then
9132   echo $ECHO_N "(cached) $ECHO_C" >&6
9133 else
9134           if test "$cross_compiling" = yes; then :
9135   lt_cv_dlopen_self_static=cross
9136 else
9137   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9138   lt_status=$lt_dlunknown
9139   cat > conftest.$ac_ext <<EOF
9140 #line __oline__ "configure"
9141 #include "confdefs.h"
9142
9143 #if HAVE_DLFCN_H
9144 #include <dlfcn.h>
9145 #endif
9146
9147 #include <stdio.h>
9148
9149 #ifdef RTLD_GLOBAL
9150 #  define LT_DLGLOBAL           RTLD_GLOBAL
9151 #else
9152 #  ifdef DL_GLOBAL
9153 #    define LT_DLGLOBAL         DL_GLOBAL
9154 #  else
9155 #    define LT_DLGLOBAL         0
9156 #  endif
9157 #endif
9158
9159 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9160    find out it does not work in some platform. */
9161 #ifndef LT_DLLAZY_OR_NOW
9162 #  ifdef RTLD_LAZY
9163 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9164 #  else
9165 #    ifdef DL_LAZY
9166 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9167 #    else
9168 #      ifdef RTLD_NOW
9169 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9170 #      else
9171 #        ifdef DL_NOW
9172 #          define LT_DLLAZY_OR_NOW      DL_NOW
9173 #        else
9174 #          define LT_DLLAZY_OR_NOW      0
9175 #        endif
9176 #      endif
9177 #    endif
9178 #  endif
9179 #endif
9180
9181 #ifdef __cplusplus
9182 extern "C" void exit (int);
9183 #endif
9184
9185 void fnord() { int i=42;}
9186 int main ()
9187 {
9188   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9189   int status = $lt_dlunknown;
9190
9191   if (self)
9192     {
9193       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9194       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9195       /* dlclose (self); */
9196     }
9197   else
9198     puts (dlerror ());
9199
9200     exit (status);
9201 }
9202 EOF
9203   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9204   (eval $ac_link) 2>&5
9205   ac_status=$?
9206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9208     (./conftest; exit; ) >&5 2>/dev/null
9209     lt_status=$?
9210     case x$lt_status in
9211       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9212       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9213       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9214     esac
9215   else :
9216     # compilation failed
9217     lt_cv_dlopen_self_static=no
9218   fi
9219 fi
9220 rm -fr conftest*
9221
9222       
9223 fi
9224 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9225 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9226     fi
9227
9228     CPPFLAGS="$save_CPPFLAGS"
9229     LDFLAGS="$save_LDFLAGS"
9230     LIBS="$save_LIBS"
9231     ;;
9232   esac
9233
9234   case $lt_cv_dlopen_self in
9235   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9236   *) enable_dlopen_self=unknown ;;
9237   esac
9238
9239   case $lt_cv_dlopen_self_static in
9240   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9241   *) enable_dlopen_self_static=unknown ;;
9242   esac
9243 fi
9244
9245
9246 # Report which library types will actually be built
9247 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9248 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9249 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9250 echo "${ECHO_T}$can_build_shared" >&6
9251
9252 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9253 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9254 test "$can_build_shared" = "no" && enable_shared=no
9255
9256 # On AIX, shared libraries and static libraries use the same namespace, and
9257 # are all built from PIC.
9258 case $host_os in
9259 aix3*)
9260   test "$enable_shared" = yes && enable_static=no
9261   if test -n "$RANLIB"; then
9262     archive_cmds="$archive_cmds~\$RANLIB \$lib"
9263     postinstall_cmds='$RANLIB $lib'
9264   fi
9265   ;;
9266
9267 aix4* | aix5*)
9268   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9269     test "$enable_shared" = yes && enable_static=no
9270   fi
9271     ;;
9272 esac
9273 echo "$as_me:$LINENO: result: $enable_shared" >&5
9274 echo "${ECHO_T}$enable_shared" >&6
9275
9276 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9277 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9278 # Make sure either enable_shared or enable_static is yes.
9279 test "$enable_shared" = yes || enable_static=yes
9280 echo "$as_me:$LINENO: result: $enable_static" >&5
9281 echo "${ECHO_T}$enable_static" >&6
9282
9283 # The else clause should only fire when bootstrapping the
9284 # libtool distribution, otherwise you forgot to ship ltmain.sh
9285 # with your package, and you will get complaints that there are
9286 # no rules to generate ltmain.sh.
9287 if test -f "$ltmain"; then
9288   # See if we are running on zsh, and set the options which allow our commands through
9289   # without removal of \ escapes.
9290   if test -n "${ZSH_VERSION+set}" ; then
9291     setopt NO_GLOB_SUBST
9292   fi
9293   # Now quote all the things that may contain metacharacters while being
9294   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9295   # variables and quote the copies for generation of the libtool script.
9296   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9297     SED SHELL STRIP \
9298     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9299     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9300     deplibs_check_method reload_flag reload_cmds need_locks \
9301     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9302     lt_cv_sys_global_symbol_to_c_name_address \
9303     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9304     old_postinstall_cmds old_postuninstall_cmds \
9305     compiler \
9306     CC \
9307     LD \
9308     lt_prog_compiler_wl \
9309     lt_prog_compiler_pic \
9310     lt_prog_compiler_static \
9311     lt_prog_compiler_no_builtin_flag \
9312     export_dynamic_flag_spec \
9313     thread_safe_flag_spec \
9314     whole_archive_flag_spec \
9315     enable_shared_with_static_runtimes \
9316     old_archive_cmds \
9317     old_archive_from_new_cmds \
9318     predep_objects \
9319     postdep_objects \
9320     predeps \
9321     postdeps \
9322     compiler_lib_search_path \
9323     archive_cmds \
9324     archive_expsym_cmds \
9325     postinstall_cmds \
9326     postuninstall_cmds \
9327     old_archive_from_expsyms_cmds \
9328     allow_undefined_flag \
9329     no_undefined_flag \
9330     export_symbols_cmds \
9331     hardcode_libdir_flag_spec \
9332     hardcode_libdir_flag_spec_ld \
9333     hardcode_libdir_separator \
9334     hardcode_automatic \
9335     module_cmds \
9336     module_expsym_cmds \
9337     lt_cv_prog_compiler_c_o \
9338     exclude_expsyms \
9339     include_expsyms; do
9340
9341     case $var in
9342     old_archive_cmds | \
9343     old_archive_from_new_cmds | \
9344     archive_cmds | \
9345     archive_expsym_cmds | \
9346     module_cmds | \
9347     module_expsym_cmds | \
9348     old_archive_from_expsyms_cmds | \
9349     export_symbols_cmds | \
9350     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9351     postinstall_cmds | postuninstall_cmds | \
9352     old_postinstall_cmds | old_postuninstall_cmds | \
9353     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9354       # Double-quote double-evaled strings.
9355       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9356       ;;
9357     *)
9358       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9359       ;;
9360     esac
9361   done
9362
9363   case $lt_echo in
9364   *'\$0 --fallback-echo"')
9365     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9366     ;;
9367   esac
9368
9369 cfgfile="${ofile}T"
9370   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9371   $rm -f "$cfgfile"
9372   { echo "$as_me:$LINENO: creating $ofile" >&5
9373 echo "$as_me: creating $ofile" >&6;}
9374
9375   cat <<__EOF__ >> "$cfgfile"
9376 #! $SHELL
9377
9378 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9379 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9380 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9381 #
9382 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9383 # Free Software Foundation, Inc.
9384 #
9385 # This file is part of GNU Libtool:
9386 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9387 #
9388 # This program is free software; you can redistribute it and/or modify
9389 # it under the terms of the GNU General Public License as published by
9390 # the Free Software Foundation; either version 2 of the License, or
9391 # (at your option) any later version.
9392 #
9393 # This program is distributed in the hope that it will be useful, but
9394 # WITHOUT ANY WARRANTY; without even the implied warranty of
9395 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9396 # General Public License for more details.
9397 #
9398 # You should have received a copy of the GNU General Public License
9399 # along with this program; if not, write to the Free Software
9400 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9401 #
9402 # As a special exception to the GNU General Public License, if you
9403 # distribute this file as part of a program that contains a
9404 # configuration script generated by Autoconf, you may include it under
9405 # the same distribution terms that you use for the rest of that program.
9406
9407 # A sed program that does not truncate output.
9408 SED=$lt_SED
9409
9410 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9411 Xsed="$SED -e 1s/^X//"
9412
9413 # The HP-UX ksh and POSIX shell print the target directory to stdout
9414 # if CDPATH is set.
9415 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9416
9417 # The names of the tagged configurations supported by this script.
9418 available_tags=
9419
9420 # ### BEGIN LIBTOOL CONFIG
9421
9422 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9423
9424 # Shell to use when invoking shell scripts.
9425 SHELL=$lt_SHELL
9426
9427 # Whether or not to build shared libraries.
9428 build_libtool_libs=$enable_shared
9429
9430 # Whether or not to build static libraries.
9431 build_old_libs=$enable_static
9432
9433 # Whether or not to add -lc for building shared libraries.
9434 build_libtool_need_lc=$archive_cmds_need_lc
9435
9436 # Whether or not to disallow shared libs when runtime libs are static
9437 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9438
9439 # Whether or not to optimize for fast installation.
9440 fast_install=$enable_fast_install
9441
9442 # The host system.
9443 host_alias=$host_alias
9444 host=$host
9445 host_os=$host_os
9446
9447 # The build system.
9448 build_alias=$build_alias
9449 build=$build
9450 build_os=$build_os
9451
9452 # An echo program that does not interpret backslashes.
9453 echo=$lt_echo
9454
9455 # The archiver.
9456 AR=$lt_AR
9457 AR_FLAGS=$lt_AR_FLAGS
9458
9459 # A C compiler.
9460 LTCC=$lt_LTCC
9461
9462 # LTCC compiler flags.
9463 LTCFLAGS=$lt_LTCFLAGS
9464
9465 # A language-specific compiler.
9466 CC=$lt_compiler
9467
9468 # Is the compiler the GNU C compiler?
9469 with_gcc=$GCC
9470
9471 # An ERE matcher.
9472 EGREP=$lt_EGREP
9473
9474 # The linker used to build libraries.
9475 LD=$lt_LD
9476
9477 # Whether we need hard or soft links.
9478 LN_S=$lt_LN_S
9479
9480 # A BSD-compatible nm program.
9481 NM=$lt_NM
9482
9483 # A symbol stripping program
9484 STRIP=$lt_STRIP
9485
9486 # Used to examine libraries when file_magic_cmd begins "file"
9487 MAGIC_CMD=$MAGIC_CMD
9488
9489 # Used on cygwin: DLL creation program.
9490 DLLTOOL="$DLLTOOL"
9491
9492 # Used on cygwin: object dumper.
9493 OBJDUMP="$OBJDUMP"
9494
9495 # Used on cygwin: assembler.
9496 AS="$AS"
9497
9498 # The name of the directory that contains temporary libtool files.
9499 objdir=$objdir
9500
9501 # How to create reloadable object files.
9502 reload_flag=$lt_reload_flag
9503 reload_cmds=$lt_reload_cmds
9504
9505 # How to pass a linker flag through the compiler.
9506 wl=$lt_lt_prog_compiler_wl
9507
9508 # Object file suffix (normally "o").
9509 objext="$ac_objext"
9510
9511 # Old archive suffix (normally "a").
9512 libext="$libext"
9513
9514 # Shared library suffix (normally ".so").
9515 shrext_cmds='$shrext_cmds'
9516
9517 # Executable file suffix (normally "").
9518 exeext="$exeext"
9519
9520 # Additional compiler flags for building library objects.
9521 pic_flag=$lt_lt_prog_compiler_pic
9522 pic_mode=$pic_mode
9523
9524 # What is the maximum length of a command?
9525 max_cmd_len=$lt_cv_sys_max_cmd_len
9526
9527 # Does compiler simultaneously support -c and -o options?
9528 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9529
9530 # Must we lock files when doing compilation?
9531 need_locks=$lt_need_locks
9532
9533 # Do we need the lib prefix for modules?
9534 need_lib_prefix=$need_lib_prefix
9535
9536 # Do we need a version for libraries?
9537 need_version=$need_version
9538
9539 # Whether dlopen is supported.
9540 dlopen_support=$enable_dlopen
9541
9542 # Whether dlopen of programs is supported.
9543 dlopen_self=$enable_dlopen_self
9544
9545 # Whether dlopen of statically linked programs is supported.
9546 dlopen_self_static=$enable_dlopen_self_static
9547
9548 # Compiler flag to prevent dynamic linking.
9549 link_static_flag=$lt_lt_prog_compiler_static
9550
9551 # Compiler flag to turn off builtin functions.
9552 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9553
9554 # Compiler flag to allow reflexive dlopens.
9555 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9556
9557 # Compiler flag to generate shared objects directly from archives.
9558 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9559
9560 # Compiler flag to generate thread-safe objects.
9561 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9562
9563 # Library versioning type.
9564 version_type=$version_type
9565
9566 # Format of library name prefix.
9567 libname_spec=$lt_libname_spec
9568
9569 # List of archive names.  First name is the real one, the rest are links.
9570 # The last name is the one that the linker finds with -lNAME.
9571 library_names_spec=$lt_library_names_spec
9572
9573 # The coded name of the library, if different from the real name.
9574 soname_spec=$lt_soname_spec
9575
9576 # Commands used to build and install an old-style archive.
9577 RANLIB=$lt_RANLIB
9578 old_archive_cmds=$lt_old_archive_cmds
9579 old_postinstall_cmds=$lt_old_postinstall_cmds
9580 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9581
9582 # Create an old-style archive from a shared archive.
9583 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9584
9585 # Create a temporary old-style archive to link instead of a shared archive.
9586 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9587
9588 # Commands used to build and install a shared archive.
9589 archive_cmds=$lt_archive_cmds
9590 archive_expsym_cmds=$lt_archive_expsym_cmds
9591 postinstall_cmds=$lt_postinstall_cmds
9592 postuninstall_cmds=$lt_postuninstall_cmds
9593
9594 # Commands used to build a loadable module (assumed same as above if empty)
9595 module_cmds=$lt_module_cmds
9596 module_expsym_cmds=$lt_module_expsym_cmds
9597
9598 # Commands to strip libraries.
9599 old_striplib=$lt_old_striplib
9600 striplib=$lt_striplib
9601
9602 # Dependencies to place before the objects being linked to create a
9603 # shared library.
9604 predep_objects=$lt_predep_objects
9605
9606 # Dependencies to place after the objects being linked to create a
9607 # shared library.
9608 postdep_objects=$lt_postdep_objects
9609
9610 # Dependencies to place before the objects being linked to create a
9611 # shared library.
9612 predeps=$lt_predeps
9613
9614 # Dependencies to place after the objects being linked to create a
9615 # shared library.
9616 postdeps=$lt_postdeps
9617
9618 # The library search path used internally by the compiler when linking
9619 # a shared library.
9620 compiler_lib_search_path=$lt_compiler_lib_search_path
9621
9622 # Method to check whether dependent libraries are shared objects.
9623 deplibs_check_method=$lt_deplibs_check_method
9624
9625 # Command to use when deplibs_check_method == file_magic.
9626 file_magic_cmd=$lt_file_magic_cmd
9627
9628 # Flag that allows shared libraries with undefined symbols to be built.
9629 allow_undefined_flag=$lt_allow_undefined_flag
9630
9631 # Flag that forces no undefined symbols.
9632 no_undefined_flag=$lt_no_undefined_flag
9633
9634 # Commands used to finish a libtool library installation in a directory.
9635 finish_cmds=$lt_finish_cmds
9636
9637 # Same as above, but a single script fragment to be evaled but not shown.
9638 finish_eval=$lt_finish_eval
9639
9640 # Take the output of nm and produce a listing of raw symbols and C names.
9641 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9642
9643 # Transform the output of nm in a proper C declaration
9644 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9645
9646 # Transform the output of nm in a C name address pair
9647 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9648
9649 # This is the shared library runtime path variable.
9650 runpath_var=$runpath_var
9651
9652 # This is the shared library path variable.
9653 shlibpath_var=$shlibpath_var
9654
9655 # Is shlibpath searched before the hard-coded library search path?
9656 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9657
9658 # How to hardcode a shared library path into an executable.
9659 hardcode_action=$hardcode_action
9660
9661 # Whether we should hardcode library paths into libraries.
9662 hardcode_into_libs=$hardcode_into_libs
9663
9664 # Flag to hardcode \$libdir into a binary during linking.
9665 # This must work even if \$libdir does not exist.
9666 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9667
9668 # If ld is used when linking, flag to hardcode \$libdir into
9669 # a binary during linking. This must work even if \$libdir does
9670 # not exist.
9671 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9672
9673 # Whether we need a single -rpath flag with a separated argument.
9674 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9675
9676 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9677 # resulting binary.
9678 hardcode_direct=$hardcode_direct
9679
9680 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9681 # resulting binary.
9682 hardcode_minus_L=$hardcode_minus_L
9683
9684 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9685 # the resulting binary.
9686 hardcode_shlibpath_var=$hardcode_shlibpath_var
9687
9688 # Set to yes if building a shared library automatically hardcodes DIR into the library
9689 # and all subsequent libraries and executables linked against it.
9690 hardcode_automatic=$hardcode_automatic
9691
9692 # Variables whose values should be saved in libtool wrapper scripts and
9693 # restored at relink time.
9694 variables_saved_for_relink="$variables_saved_for_relink"
9695
9696 # Whether libtool must link a program against all its dependency libraries.
9697 link_all_deplibs=$link_all_deplibs
9698
9699 # Compile-time system search path for libraries
9700 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9701
9702 # Run-time system search path for libraries
9703 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9704
9705 # Fix the shell variable \$srcfile for the compiler.
9706 fix_srcfile_path="$fix_srcfile_path"
9707
9708 # Set to yes if exported symbols are required.
9709 always_export_symbols=$always_export_symbols
9710
9711 # The commands to list exported symbols.
9712 export_symbols_cmds=$lt_export_symbols_cmds
9713
9714 # The commands to extract the exported symbol list from a shared archive.
9715 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9716
9717 # Symbols that should not be listed in the preloaded symbols.
9718 exclude_expsyms=$lt_exclude_expsyms
9719
9720 # Symbols that must always be exported.
9721 include_expsyms=$lt_include_expsyms
9722
9723 # ### END LIBTOOL CONFIG
9724
9725 __EOF__
9726
9727
9728   case $host_os in
9729   aix3*)
9730     cat <<\EOF >> "$cfgfile"
9731
9732 # AIX sometimes has problems with the GCC collect2 program.  For some
9733 # reason, if we set the COLLECT_NAMES environment variable, the problems
9734 # vanish in a puff of smoke.
9735 if test "X${COLLECT_NAMES+set}" != Xset; then
9736   COLLECT_NAMES=
9737   export COLLECT_NAMES
9738 fi
9739 EOF
9740     ;;
9741   esac
9742
9743   # We use sed instead of cat because bash on DJGPP gets confused if
9744   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9745   # text mode, it properly converts lines to CR/LF.  This bash problem
9746   # is reportedly fixed, but why not run on old versions too?
9747   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9748
9749   mv -f "$cfgfile" "$ofile" || \
9750     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9751   chmod +x "$ofile"
9752
9753 else
9754   # If there is no Makefile yet, we rely on a make rule to execute
9755   # `config.status --recheck' to rerun these tests and create the
9756   # libtool script then.
9757   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9758   if test -f "$ltmain_in"; then
9759     test -f Makefile && make "$ltmain"
9760   fi
9761 fi
9762
9763
9764 ac_ext=c
9765 ac_cpp='$CPP $CPPFLAGS'
9766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9769
9770 CC="$lt_save_CC"
9771
9772
9773 # Check whether --with-tags or --without-tags was given.
9774 if test "${with_tags+set}" = set; then
9775   withval="$with_tags"
9776   tagnames="$withval"
9777 fi; 
9778
9779 if test -f "$ltmain" && test -n "$tagnames"; then
9780   if test ! -f "${ofile}"; then
9781     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9782 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9783   fi
9784
9785   if test -z "$LTCC"; then
9786     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9787     if test -z "$LTCC"; then
9788       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9789 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9790     else
9791       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9792 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9793     fi
9794   fi
9795   if test -z "$LTCFLAGS"; then
9796     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9797   fi
9798
9799   # Extract list of available tagged configurations in $ofile.
9800   # Note that this assumes the entire list is on one line.
9801   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9802
9803   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9804   for tagname in $tagnames; do
9805     IFS="$lt_save_ifs"
9806     # Check whether tagname contains only valid characters
9807     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9808     "") ;;
9809     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9810 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9811    { (exit 1); exit 1; }; }
9812         ;;
9813     esac
9814
9815     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9816     then
9817       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9818 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9819    { (exit 1); exit 1; }; }
9820     fi
9821
9822     # Update the list of available tags.
9823     if test -n "$tagname"; then
9824       echo appending configuration tag \"$tagname\" to $ofile
9825
9826       case $tagname in
9827       CXX)
9828         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9829             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9830             (test "X$CXX" != "Xg++"))) ; then
9831           ac_ext=cc
9832 ac_cpp='$CXXCPP $CPPFLAGS'
9833 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9834 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9835 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9836
9837
9838
9839
9840 archive_cmds_need_lc_CXX=no
9841 allow_undefined_flag_CXX=
9842 always_export_symbols_CXX=no
9843 archive_expsym_cmds_CXX=
9844 export_dynamic_flag_spec_CXX=
9845 hardcode_direct_CXX=no
9846 hardcode_libdir_flag_spec_CXX=
9847 hardcode_libdir_flag_spec_ld_CXX=
9848 hardcode_libdir_separator_CXX=
9849 hardcode_minus_L_CXX=no
9850 hardcode_shlibpath_var_CXX=unsupported
9851 hardcode_automatic_CXX=no
9852 module_cmds_CXX=
9853 module_expsym_cmds_CXX=
9854 link_all_deplibs_CXX=unknown
9855 old_archive_cmds_CXX=$old_archive_cmds
9856 no_undefined_flag_CXX=
9857 whole_archive_flag_spec_CXX=
9858 enable_shared_with_static_runtimes_CXX=no
9859
9860 # Dependencies to place before and after the object being linked:
9861 predep_objects_CXX=
9862 postdep_objects_CXX=
9863 predeps_CXX=
9864 postdeps_CXX=
9865 compiler_lib_search_path_CXX=
9866
9867 # Source file extension for C++ test sources.
9868 ac_ext=cpp
9869
9870 # Object file extension for compiled C++ test sources.
9871 objext=o
9872 objext_CXX=$objext
9873
9874 # Code to be used in simple compile tests
9875 lt_simple_compile_test_code="int some_variable = 0;\n"
9876
9877 # Code to be used in simple link tests
9878 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
9879
9880 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9881
9882 # If no C compiler was specified, use CC.
9883 LTCC=${LTCC-"$CC"}
9884
9885 # If no C compiler flags were specified, use CFLAGS.
9886 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9887
9888 # Allow CC to be a program name with arguments.
9889 compiler=$CC
9890
9891
9892 # save warnings/boilerplate of simple test code
9893 ac_outfile=conftest.$ac_objext
9894 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9895 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9896 _lt_compiler_boilerplate=`cat conftest.err`
9897 $rm conftest*
9898
9899 ac_outfile=conftest.$ac_objext
9900 printf "$lt_simple_link_test_code" >conftest.$ac_ext
9901 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9902 _lt_linker_boilerplate=`cat conftest.err`
9903 $rm conftest*
9904
9905
9906 # Allow CC to be a program name with arguments.
9907 lt_save_CC=$CC
9908 lt_save_LD=$LD
9909 lt_save_GCC=$GCC
9910 GCC=$GXX
9911 lt_save_with_gnu_ld=$with_gnu_ld
9912 lt_save_path_LD=$lt_cv_path_LD
9913 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9914   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9915 else
9916   $as_unset lt_cv_prog_gnu_ld
9917 fi
9918 if test -n "${lt_cv_path_LDCXX+set}"; then
9919   lt_cv_path_LD=$lt_cv_path_LDCXX
9920 else
9921   $as_unset lt_cv_path_LD
9922 fi
9923 test -z "${LDCXX+set}" || LD=$LDCXX
9924 CC=${CXX-"c++"}
9925 compiler=$CC
9926 compiler_CXX=$CC
9927 for cc_temp in $compiler""; do
9928   case $cc_temp in
9929     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9930     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9931     \-*) ;;
9932     *) break;;
9933   esac
9934 done
9935 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9936
9937
9938 # We don't want -fno-exception wen compiling C++ code, so set the
9939 # no_builtin_flag separately
9940 if test "$GXX" = yes; then
9941   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9942 else
9943   lt_prog_compiler_no_builtin_flag_CXX=
9944 fi
9945
9946 if test "$GXX" = yes; then
9947   # Set up default GNU C++ configuration
9948
9949   
9950 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9951 if test "${with_gnu_ld+set}" = set; then
9952   withval="$with_gnu_ld"
9953   test "$withval" = no || with_gnu_ld=yes
9954 else
9955   with_gnu_ld=no
9956 fi; 
9957 ac_prog=ld
9958 if test "$GCC" = yes; then
9959   # Check if gcc -print-prog-name=ld gives a path.
9960   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9961 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9962   case $host in
9963   *-*-mingw*)
9964     # gcc leaves a trailing carriage return which upsets mingw
9965     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9966   *)
9967     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9968   esac
9969   case $ac_prog in
9970     # Accept absolute paths.
9971     [\\/]* | ?:[\\/]*)
9972       re_direlt='/[^/][^/]*/\.\./'
9973       # Canonicalize the pathname of ld
9974       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9975       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9976         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9977       done
9978       test -z "$LD" && LD="$ac_prog"
9979       ;;
9980   "")
9981     # If it fails, then pretend we aren't using GCC.
9982     ac_prog=ld
9983     ;;
9984   *)
9985     # If it is relative, then search for the first ld in PATH.
9986     with_gnu_ld=unknown
9987     ;;
9988   esac
9989 elif test "$with_gnu_ld" = yes; then
9990   echo "$as_me:$LINENO: checking for GNU ld" >&5
9991 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9992 else
9993   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9994 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9995 fi
9996 if test "${lt_cv_path_LD+set}" = set; then
9997   echo $ECHO_N "(cached) $ECHO_C" >&6
9998 else
9999   if test -z "$LD"; then
10000   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10001   for ac_dir in $PATH; do
10002     IFS="$lt_save_ifs"
10003     test -z "$ac_dir" && ac_dir=.
10004     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10005       lt_cv_path_LD="$ac_dir/$ac_prog"
10006       # Check to see if the program is GNU ld.  I'd rather use --version,
10007       # but apparently some variants of GNU ld only accept -v.
10008       # Break only if it was the GNU/non-GNU ld that we prefer.
10009       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10010       *GNU* | *'with BFD'*)
10011         test "$with_gnu_ld" != no && break
10012         ;;
10013       *)
10014         test "$with_gnu_ld" != yes && break
10015         ;;
10016       esac
10017     fi
10018   done
10019   IFS="$lt_save_ifs"
10020 else
10021   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10022 fi
10023 fi
10024
10025 LD="$lt_cv_path_LD"
10026 if test -n "$LD"; then
10027   echo "$as_me:$LINENO: result: $LD" >&5
10028 echo "${ECHO_T}$LD" >&6
10029 else
10030   echo "$as_me:$LINENO: result: no" >&5
10031 echo "${ECHO_T}no" >&6
10032 fi
10033 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10034 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10035    { (exit 1); exit 1; }; }
10036 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10037 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10038 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10039   echo $ECHO_N "(cached) $ECHO_C" >&6
10040 else
10041   # I'd rather use --version here, but apparently some GNU lds only accept -v.
10042 case `$LD -v 2>&1 </dev/null` in
10043 *GNU* | *'with BFD'*)
10044   lt_cv_prog_gnu_ld=yes
10045   ;;
10046 *)
10047   lt_cv_prog_gnu_ld=no
10048   ;;
10049 esac
10050 fi
10051 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10052 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10053 with_gnu_ld=$lt_cv_prog_gnu_ld
10054
10055
10056
10057   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10058   # archiving commands below assume that GNU ld is being used.
10059   if test "$with_gnu_ld" = yes; then
10060     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10061     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'
10062
10063     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10064     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10065
10066     # If archive_cmds runs LD, not CC, wlarc should be empty
10067     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10068     #     investigate it a little bit more. (MM)
10069     wlarc='${wl}'
10070
10071     # ancient GNU ld didn't support --whole-archive et. al.
10072     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10073         grep 'no-whole-archive' > /dev/null; then
10074       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10075     else
10076       whole_archive_flag_spec_CXX=
10077     fi
10078   else
10079     with_gnu_ld=no
10080     wlarc=
10081
10082     # A generic and very simple default shared library creation
10083     # command for GNU C++ for the case where it uses the native
10084     # linker, instead of GNU ld.  If possible, this setting should
10085     # overridden to take advantage of the native linker features on
10086     # the platform it is being used on.
10087     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10088   fi
10089
10090   # Commands to make compiler produce verbose output that lists
10091   # what "hidden" libraries, object files and flags are used when
10092   # linking a shared library.
10093   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10094
10095 else
10096   GXX=no
10097   with_gnu_ld=no
10098   wlarc=
10099 fi
10100
10101 # PORTME: fill in a description of your system's C++ link characteristics
10102 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10103 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10104 ld_shlibs_CXX=yes
10105 case $host_os in
10106   aix3*)
10107     # FIXME: insert proper C++ library support
10108     ld_shlibs_CXX=no
10109     ;;
10110   aix4* | aix5*)
10111     if test "$host_cpu" = ia64; then
10112       # On IA64, the linker does run time linking by default, so we don't
10113       # have to do anything special.
10114       aix_use_runtimelinking=no
10115       exp_sym_flag='-Bexport'
10116       no_entry_flag=""
10117     else
10118       aix_use_runtimelinking=no
10119
10120       # Test if we are trying to use run time linking or normal
10121       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10122       # need to do runtime linking.
10123       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10124         for ld_flag in $LDFLAGS; do
10125           case $ld_flag in
10126           *-brtl*)
10127             aix_use_runtimelinking=yes
10128             break
10129             ;;
10130           esac
10131         done
10132         ;;
10133       esac
10134
10135       exp_sym_flag='-bexport'
10136       no_entry_flag='-bnoentry'
10137     fi
10138
10139     # When large executables or shared objects are built, AIX ld can
10140     # have problems creating the table of contents.  If linking a library
10141     # or program results in "error TOC overflow" add -mminimal-toc to
10142     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10143     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10144
10145     archive_cmds_CXX=''
10146     hardcode_direct_CXX=yes
10147     hardcode_libdir_separator_CXX=':'
10148     link_all_deplibs_CXX=yes
10149
10150     if test "$GXX" = yes; then
10151       case $host_os in aix4.[012]|aix4.[012].*)
10152       # We only want to do this on AIX 4.2 and lower, the check
10153       # below for broken collect2 doesn't work under 4.3+
10154         collect2name=`${CC} -print-prog-name=collect2`
10155         if test -f "$collect2name" && \
10156            strings "$collect2name" | grep resolve_lib_name >/dev/null
10157         then
10158           # We have reworked collect2
10159           hardcode_direct_CXX=yes
10160         else
10161           # We have old collect2
10162           hardcode_direct_CXX=unsupported
10163           # It fails to find uninstalled libraries when the uninstalled
10164           # path is not listed in the libpath.  Setting hardcode_minus_L
10165           # to unsupported forces relinking
10166           hardcode_minus_L_CXX=yes
10167           hardcode_libdir_flag_spec_CXX='-L$libdir'
10168           hardcode_libdir_separator_CXX=
10169         fi
10170         ;;
10171       esac
10172       shared_flag='-shared'
10173       if test "$aix_use_runtimelinking" = yes; then
10174         shared_flag="$shared_flag "'${wl}-G'
10175       fi
10176     else
10177       # not using gcc
10178       if test "$host_cpu" = ia64; then
10179         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10180         # chokes on -Wl,-G. The following line is correct:
10181         shared_flag='-G'
10182       else
10183         if test "$aix_use_runtimelinking" = yes; then
10184           shared_flag='${wl}-G'
10185         else
10186           shared_flag='${wl}-bM:SRE'
10187         fi
10188       fi
10189     fi
10190
10191     # It seems that -bexpall does not export symbols beginning with
10192     # underscore (_), so it is better to generate a list of symbols to export.
10193     always_export_symbols_CXX=yes
10194     if test "$aix_use_runtimelinking" = yes; then
10195       # Warning - without using the other runtime loading flags (-brtl),
10196       # -berok will link without error, but may produce a broken library.
10197       allow_undefined_flag_CXX='-berok'
10198       # Determine the default libpath from the value encoded in an empty executable.
10199       cat >conftest.$ac_ext <<_ACEOF
10200 /* confdefs.h.  */
10201 _ACEOF
10202 cat confdefs.h >>conftest.$ac_ext
10203 cat >>conftest.$ac_ext <<_ACEOF
10204 /* end confdefs.h.  */
10205
10206 int
10207 main ()
10208 {
10209
10210   ;
10211   return 0;
10212 }
10213 _ACEOF
10214 rm -f conftest.$ac_objext conftest$ac_exeext
10215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10216   (eval $ac_link) 2>conftest.er1
10217   ac_status=$?
10218   grep -v '^ *+' conftest.er1 >conftest.err
10219   rm -f conftest.er1
10220   cat conftest.err >&5
10221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222   (exit $ac_status); } &&
10223          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
10224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10225   (eval $ac_try) 2>&5
10226   ac_status=$?
10227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10228   (exit $ac_status); }; } &&
10229          { ac_try='test -s conftest$ac_exeext'
10230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10231   (eval $ac_try) 2>&5
10232   ac_status=$?
10233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234   (exit $ac_status); }; }; then
10235   
10236 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10237 }'`
10238 # Check for a 64-bit object if we didn't find anything.
10239 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; }
10240 }'`; fi
10241 else
10242   echo "$as_me: failed program was:" >&5
10243 sed 's/^/| /' conftest.$ac_ext >&5
10244
10245 fi
10246 rm -f conftest.err conftest.$ac_objext \
10247       conftest$ac_exeext conftest.$ac_ext
10248 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10249
10250       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10251
10252       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"
10253      else
10254       if test "$host_cpu" = ia64; then
10255         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10256         allow_undefined_flag_CXX="-z nodefs"
10257         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"
10258       else
10259         # Determine the default libpath from the value encoded in an empty executable.
10260         cat >conftest.$ac_ext <<_ACEOF
10261 /* confdefs.h.  */
10262 _ACEOF
10263 cat confdefs.h >>conftest.$ac_ext
10264 cat >>conftest.$ac_ext <<_ACEOF
10265 /* end confdefs.h.  */
10266
10267 int
10268 main ()
10269 {
10270
10271   ;
10272   return 0;
10273 }
10274 _ACEOF
10275 rm -f conftest.$ac_objext conftest$ac_exeext
10276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10277   (eval $ac_link) 2>conftest.er1
10278   ac_status=$?
10279   grep -v '^ *+' conftest.er1 >conftest.err
10280   rm -f conftest.er1
10281   cat conftest.err >&5
10282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283   (exit $ac_status); } &&
10284          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
10285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10286   (eval $ac_try) 2>&5
10287   ac_status=$?
10288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289   (exit $ac_status); }; } &&
10290          { ac_try='test -s conftest$ac_exeext'
10291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10292   (eval $ac_try) 2>&5
10293   ac_status=$?
10294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295   (exit $ac_status); }; }; then
10296   
10297 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10298 }'`
10299 # Check for a 64-bit object if we didn't find anything.
10300 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; }
10301 }'`; fi
10302 else
10303   echo "$as_me: failed program was:" >&5
10304 sed 's/^/| /' conftest.$ac_ext >&5
10305
10306 fi
10307 rm -f conftest.err conftest.$ac_objext \
10308       conftest$ac_exeext conftest.$ac_ext
10309 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10310
10311         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10312         # Warning - without using the other run time loading flags,
10313         # -berok will link without error, but may produce a broken library.
10314         no_undefined_flag_CXX=' ${wl}-bernotok'
10315         allow_undefined_flag_CXX=' ${wl}-berok'
10316         # Exported symbols can be pulled into shared objects from archives
10317         whole_archive_flag_spec_CXX='$convenience'
10318         archive_cmds_need_lc_CXX=yes
10319         # This is similar to how AIX traditionally builds its shared libraries.
10320         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'
10321       fi
10322     fi
10323     ;;
10324
10325   beos*)
10326     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10327       allow_undefined_flag_CXX=unsupported
10328       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10329       # support --undefined.  This deserves some investigation.  FIXME
10330       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10331     else
10332       ld_shlibs_CXX=no
10333     fi
10334     ;;
10335
10336   chorus*)
10337     case $cc_basename in
10338       *)
10339         # FIXME: insert proper C++ library support
10340         ld_shlibs_CXX=no
10341         ;;
10342     esac
10343     ;;
10344
10345   cygwin* | mingw* | pw32*)
10346     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10347     # as there is no search path for DLLs.
10348     hardcode_libdir_flag_spec_CXX='-L$libdir'
10349     allow_undefined_flag_CXX=unsupported
10350     always_export_symbols_CXX=no
10351     enable_shared_with_static_runtimes_CXX=yes
10352
10353     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10354       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'
10355       # If the export-symbols file already is a .def file (1st line
10356       # is EXPORTS), use it as is; otherwise, prepend...
10357       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10358         cp $export_symbols $output_objdir/$soname.def;
10359       else
10360         echo EXPORTS > $output_objdir/$soname.def;
10361         cat $export_symbols >> $output_objdir/$soname.def;
10362       fi~
10363       $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'
10364     else
10365       ld_shlibs_CXX=no
10366     fi
10367   ;;
10368       darwin* | rhapsody*)
10369         case $host_os in
10370         rhapsody* | darwin1.[012])
10371          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10372          ;;
10373        *) # Darwin 1.3 on
10374          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10375            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10376          else
10377            case ${MACOSX_DEPLOYMENT_TARGET} in
10378              10.[012])
10379                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10380                ;;
10381              10.*)
10382                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10383                ;;
10384            esac
10385          fi
10386          ;;
10387         esac
10388       archive_cmds_need_lc_CXX=no
10389       hardcode_direct_CXX=no
10390       hardcode_automatic_CXX=yes
10391       hardcode_shlibpath_var_CXX=unsupported
10392       whole_archive_flag_spec_CXX=''
10393       link_all_deplibs_CXX=yes
10394
10395     if test "$GXX" = yes ; then
10396       lt_int_apple_cc_single_mod=no
10397       output_verbose_link_cmd='echo'
10398       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10399        lt_int_apple_cc_single_mod=yes
10400       fi
10401       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10402        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10403       else
10404           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'
10405         fi
10406         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10407         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10408           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10409             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}'
10410           else
10411             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}'
10412           fi
10413             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}'
10414       else
10415       case $cc_basename in
10416         xlc*)
10417          output_verbose_link_cmd='echo'
10418           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'
10419           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10420           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10421           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}'
10422           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}'
10423           ;;
10424        *)
10425          ld_shlibs_CXX=no
10426           ;;
10427       esac
10428       fi
10429         ;;
10430
10431   dgux*)
10432     case $cc_basename in
10433       ec++*)
10434         # FIXME: insert proper C++ library support
10435         ld_shlibs_CXX=no
10436         ;;
10437       ghcx*)
10438         # Green Hills C++ Compiler
10439         # FIXME: insert proper C++ library support
10440         ld_shlibs_CXX=no
10441         ;;
10442       *)
10443         # FIXME: insert proper C++ library support
10444         ld_shlibs_CXX=no
10445         ;;
10446     esac
10447     ;;
10448   freebsd[12]*)
10449     # C++ shared libraries reported to be fairly broken before switch to ELF
10450     ld_shlibs_CXX=no
10451     ;;
10452   freebsd-elf*)
10453     archive_cmds_need_lc_CXX=no
10454     ;;
10455   freebsd* | dragonfly*)
10456     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10457     # conventions
10458     ld_shlibs_CXX=yes
10459     ;;
10460   gnu*)
10461     ;;
10462   hpux9*)
10463     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10464     hardcode_libdir_separator_CXX=:
10465     export_dynamic_flag_spec_CXX='${wl}-E'
10466     hardcode_direct_CXX=yes
10467     hardcode_minus_L_CXX=yes # Not in the search PATH,
10468                                 # but as the default
10469                                 # location of the library.
10470
10471     case $cc_basename in
10472     CC*)
10473       # FIXME: insert proper C++ library support
10474       ld_shlibs_CXX=no
10475       ;;
10476     aCC*)
10477       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'
10478       # Commands to make compiler produce verbose output that lists
10479       # what "hidden" libraries, object files and flags are used when
10480       # linking a shared library.
10481       #
10482       # There doesn't appear to be a way to prevent this compiler from
10483       # explicitly linking system object files so we need to strip them
10484       # from the output so that they don't get included in the library
10485       # dependencies.
10486       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'
10487       ;;
10488     *)
10489       if test "$GXX" = yes; then
10490         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'
10491       else
10492         # FIXME: insert proper C++ library support
10493         ld_shlibs_CXX=no
10494       fi
10495       ;;
10496     esac
10497     ;;
10498   hpux10*|hpux11*)
10499     if test $with_gnu_ld = no; then
10500       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10501       hardcode_libdir_separator_CXX=:
10502
10503       case $host_cpu in
10504       hppa*64*|ia64*)
10505         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10506         ;;
10507       *)
10508         export_dynamic_flag_spec_CXX='${wl}-E'
10509         ;;
10510       esac
10511     fi
10512     case $host_cpu in
10513     hppa*64*|ia64*)
10514       hardcode_direct_CXX=no
10515       hardcode_shlibpath_var_CXX=no
10516       ;;
10517     *)
10518       hardcode_direct_CXX=yes
10519       hardcode_minus_L_CXX=yes # Not in the search PATH,
10520                                               # but as the default
10521                                               # location of the library.
10522       ;;
10523     esac
10524
10525     case $cc_basename in
10526       CC*)
10527         # FIXME: insert proper C++ library support
10528         ld_shlibs_CXX=no
10529         ;;
10530       aCC*)
10531         case $host_cpu in
10532         hppa*64*)
10533           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10534           ;;
10535         ia64*)
10536           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10537           ;;
10538         *)
10539           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10540           ;;
10541         esac
10542         # Commands to make compiler produce verbose output that lists
10543         # what "hidden" libraries, object files and flags are used when
10544         # linking a shared library.
10545         #
10546         # There doesn't appear to be a way to prevent this compiler from
10547         # explicitly linking system object files so we need to strip them
10548         # from the output so that they don't get included in the library
10549         # dependencies.
10550         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'
10551         ;;
10552       *)
10553         if test "$GXX" = yes; then
10554           if test $with_gnu_ld = no; then
10555             case $host_cpu in
10556             hppa*64*)
10557               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10558               ;;
10559             ia64*)
10560               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10561               ;;
10562             *)
10563               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'
10564               ;;
10565             esac
10566           fi
10567         else
10568           # FIXME: insert proper C++ library support
10569           ld_shlibs_CXX=no
10570         fi
10571         ;;
10572     esac
10573     ;;
10574   interix3*)
10575     hardcode_direct_CXX=no
10576     hardcode_shlibpath_var_CXX=no
10577     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10578     export_dynamic_flag_spec_CXX='${wl}-E'
10579     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10580     # Instead, shared libraries are loaded at an image base (0x10000000 by
10581     # default) and relocated if they conflict, which is a slow very memory
10582     # consuming and fragmenting process.  To avoid this, we pick a random,
10583     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10584     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10585     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'
10586     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'
10587     ;;
10588   irix5* | irix6*)
10589     case $cc_basename in
10590       CC*)
10591         # SGI C++
10592         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'
10593
10594         # Archives containing C++ object files must be created using
10595         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10596         # necessary to make sure instantiated templates are included
10597         # in the archive.
10598         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10599         ;;
10600       *)
10601         if test "$GXX" = yes; then
10602           if test "$with_gnu_ld" = no; then
10603             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'
10604           else
10605             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'
10606           fi
10607         fi
10608         link_all_deplibs_CXX=yes
10609         ;;
10610     esac
10611     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10612     hardcode_libdir_separator_CXX=:
10613     ;;
10614   linux* | k*bsd*-gnu)
10615     case $cc_basename in
10616       KCC*)
10617         # Kuck and Associates, Inc. (KAI) C++ Compiler
10618
10619         # KCC will only create a shared library if the output file
10620         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10621         # to its proper name (with version) after linking.
10622         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10623         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'
10624         # Commands to make compiler produce verbose output that lists
10625         # what "hidden" libraries, object files and flags are used when
10626         # linking a shared library.
10627         #
10628         # There doesn't appear to be a way to prevent this compiler from
10629         # explicitly linking system object files so we need to strip them
10630         # from the output so that they don't get included in the library
10631         # dependencies.
10632         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'
10633
10634         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10635         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10636
10637         # Archives containing C++ object files must be created using
10638         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10639         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10640         ;;
10641       icpc*)
10642         # Intel C++
10643         with_gnu_ld=yes
10644         # version 8.0 and above of icpc choke on multiply defined symbols
10645         # if we add $predep_objects and $postdep_objects, however 7.1 and
10646         # earlier do not add the objects themselves.
10647         case `$CC -V 2>&1` in
10648         *"Version 7."*)
10649           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10650           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'
10651           ;;
10652         *)  # Version 8.0 or newer
10653           tmp_idyn=
10654           case $host_cpu in
10655             ia64*) tmp_idyn=' -i_dynamic';;
10656           esac
10657           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10658           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'
10659           ;;
10660         esac
10661         archive_cmds_need_lc_CXX=no
10662         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10663         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10664         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10665         ;;
10666       pgCC*)
10667         # Portland Group C++ compiler
10668         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10669         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'
10670
10671         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10672         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10673         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'
10674         ;;
10675       cxx*)
10676         # Compaq C++
10677         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10678         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'
10679
10680         runpath_var=LD_RUN_PATH
10681         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10682         hardcode_libdir_separator_CXX=:
10683
10684         # Commands to make compiler produce verbose output that lists
10685         # what "hidden" libraries, object files and flags are used when
10686         # linking a shared library.
10687         #
10688         # There doesn't appear to be a way to prevent this compiler from
10689         # explicitly linking system object files so we need to strip them
10690         # from the output so that they don't get included in the library
10691         # dependencies.
10692         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'
10693         ;;
10694     esac
10695     ;;
10696   lynxos*)
10697     # FIXME: insert proper C++ library support
10698     ld_shlibs_CXX=no
10699     ;;
10700   m88k*)
10701     # FIXME: insert proper C++ library support
10702     ld_shlibs_CXX=no
10703     ;;
10704   mvs*)
10705     case $cc_basename in
10706       cxx*)
10707         # FIXME: insert proper C++ library support
10708         ld_shlibs_CXX=no
10709         ;;
10710       *)
10711         # FIXME: insert proper C++ library support
10712         ld_shlibs_CXX=no
10713         ;;
10714     esac
10715     ;;
10716   netbsd* | netbsdelf*-gnu)
10717     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10718       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10719       wlarc=
10720       hardcode_libdir_flag_spec_CXX='-R$libdir'
10721       hardcode_direct_CXX=yes
10722       hardcode_shlibpath_var_CXX=no
10723     fi
10724     # Workaround some broken pre-1.5 toolchains
10725     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10726     ;;
10727   openbsd2*)
10728     # C++ shared libraries are fairly broken
10729     ld_shlibs_CXX=no
10730     ;;
10731   openbsd*)
10732     hardcode_direct_CXX=yes
10733     hardcode_shlibpath_var_CXX=no
10734     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10735     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10736     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10737       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10738       export_dynamic_flag_spec_CXX='${wl}-E'
10739       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10740     fi
10741     output_verbose_link_cmd='echo'
10742     ;;
10743   osf3*)
10744     case $cc_basename in
10745       KCC*)
10746         # Kuck and Associates, Inc. (KAI) C++ Compiler
10747
10748         # KCC will only create a shared library if the output file
10749         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10750         # to its proper name (with version) after linking.
10751         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'
10752
10753         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10754         hardcode_libdir_separator_CXX=:
10755
10756         # Archives containing C++ object files must be created using
10757         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10758         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10759
10760         ;;
10761       RCC*)
10762         # Rational C++ 2.4.1
10763         # FIXME: insert proper C++ library support
10764         ld_shlibs_CXX=no
10765         ;;
10766       cxx*)
10767         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10768         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'
10769
10770         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10771         hardcode_libdir_separator_CXX=:
10772
10773         # Commands to make compiler produce verbose output that lists
10774         # what "hidden" libraries, object files and flags are used when
10775         # linking a shared library.
10776         #
10777         # There doesn't appear to be a way to prevent this compiler from
10778         # explicitly linking system object files so we need to strip them
10779         # from the output so that they don't get included in the library
10780         # dependencies.
10781         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'
10782         ;;
10783       *)
10784         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10785           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10786           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'
10787
10788           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10789           hardcode_libdir_separator_CXX=:
10790
10791           # Commands to make compiler produce verbose output that lists
10792           # what "hidden" libraries, object files and flags are used when
10793           # linking a shared library.
10794           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10795
10796         else
10797           # FIXME: insert proper C++ library support
10798           ld_shlibs_CXX=no
10799         fi
10800         ;;
10801     esac
10802     ;;
10803   osf4* | osf5*)
10804     case $cc_basename in
10805       KCC*)
10806         # Kuck and Associates, Inc. (KAI) C++ Compiler
10807
10808         # KCC will only create a shared library if the output file
10809         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10810         # to its proper name (with version) after linking.
10811         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'
10812
10813         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10814         hardcode_libdir_separator_CXX=:
10815
10816         # Archives containing C++ object files must be created using
10817         # the KAI C++ compiler.
10818         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10819         ;;
10820       RCC*)
10821         # Rational C++ 2.4.1
10822         # FIXME: insert proper C++ library support
10823         ld_shlibs_CXX=no
10824         ;;
10825       cxx*)
10826         allow_undefined_flag_CXX=' -expect_unresolved \*'
10827         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'
10828         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10829           echo "-hidden">> $lib.exp~
10830           $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~
10831           $rm $lib.exp'
10832
10833         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10834         hardcode_libdir_separator_CXX=:
10835
10836         # Commands to make compiler produce verbose output that lists
10837         # what "hidden" libraries, object files and flags are used when
10838         # linking a shared library.
10839         #
10840         # There doesn't appear to be a way to prevent this compiler from
10841         # explicitly linking system object files so we need to strip them
10842         # from the output so that they don't get included in the library
10843         # dependencies.
10844         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'
10845         ;;
10846       *)
10847         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10848           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10849          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'
10850
10851           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10852           hardcode_libdir_separator_CXX=:
10853
10854           # Commands to make compiler produce verbose output that lists
10855           # what "hidden" libraries, object files and flags are used when
10856           # linking a shared library.
10857           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10858
10859         else
10860           # FIXME: insert proper C++ library support
10861           ld_shlibs_CXX=no
10862         fi
10863         ;;
10864     esac
10865     ;;
10866   psos*)
10867     # FIXME: insert proper C++ library support
10868     ld_shlibs_CXX=no
10869     ;;
10870   sunos4*)
10871     case $cc_basename in
10872       CC*)
10873         # Sun C++ 4.x
10874         # FIXME: insert proper C++ library support
10875         ld_shlibs_CXX=no
10876         ;;
10877       lcc*)
10878         # Lucid
10879         # FIXME: insert proper C++ library support
10880         ld_shlibs_CXX=no
10881         ;;
10882       *)
10883         # FIXME: insert proper C++ library support
10884         ld_shlibs_CXX=no
10885         ;;
10886     esac
10887     ;;
10888   solaris*)
10889     case $cc_basename in
10890       CC*)
10891         # Sun C++ 4.2, 5.x and Centerline C++
10892         archive_cmds_need_lc_CXX=yes
10893         no_undefined_flag_CXX=' -zdefs'
10894         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10895         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10896         $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'
10897
10898         hardcode_libdir_flag_spec_CXX='-R$libdir'
10899         hardcode_shlibpath_var_CXX=no
10900         case $host_os in
10901           solaris2.[0-5] | solaris2.[0-5].*) ;;
10902           *)
10903             # The C++ compiler is used as linker so we must use $wl
10904             # flag to pass the commands to the underlying system
10905             # linker. We must also pass each convience library through
10906             # to the system linker between allextract/defaultextract.
10907             # The C++ compiler will combine linker options so we
10908             # cannot just pass the convience library names through
10909             # without $wl.
10910             # Supported since Solaris 2.6 (maybe 2.5.1?)
10911             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'
10912             ;;
10913         esac
10914         link_all_deplibs_CXX=yes
10915
10916         output_verbose_link_cmd='echo'
10917
10918         # Archives containing C++ object files must be created using
10919         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10920         # necessary to make sure instantiated templates are included
10921         # in the archive.
10922         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10923         ;;
10924       gcx*)
10925         # Green Hills C++ Compiler
10926         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10927
10928         # The C++ compiler must be used to create the archive.
10929         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10930         ;;
10931       *)
10932         # GNU C++ compiler with Solaris linker
10933         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10934           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10935           if $CC --version | grep -v '^2\.7' > /dev/null; then
10936             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10937             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10938                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10939
10940             # Commands to make compiler produce verbose output that lists
10941             # what "hidden" libraries, object files and flags are used when
10942             # linking a shared library.
10943             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10944           else
10945             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10946             # platform.
10947             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10948             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10949                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10950
10951             # Commands to make compiler produce verbose output that lists
10952             # what "hidden" libraries, object files and flags are used when
10953             # linking a shared library.
10954             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10955           fi
10956
10957           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10958         fi
10959         ;;
10960     esac
10961     ;;
10962   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10963     no_undefined_flag_CXX='${wl}-z,text'
10964     archive_cmds_need_lc_CXX=no
10965     hardcode_shlibpath_var_CXX=no
10966     runpath_var='LD_RUN_PATH'
10967
10968     case $cc_basename in
10969       CC*)
10970         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10971         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10972         ;;
10973       *)
10974         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10975         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10976         ;;
10977     esac
10978     ;;
10979   sysv5* | sco3.2v5* | sco5v6*)
10980     # Note: We can NOT use -z defs as we might desire, because we do not
10981     # link with -lc, and that would cause any symbols used from libc to
10982     # always be unresolved, which means just about no library would
10983     # ever link correctly.  If we're not using GNU ld we use -z text
10984     # though, which does catch some bad symbols but isn't as heavy-handed
10985     # as -z defs.
10986     # For security reasons, it is highly recommended that you always
10987     # use absolute paths for naming shared libraries, and exclude the
10988     # DT_RUNPATH tag from executables and libraries.  But doing so
10989     # requires that you compile everything twice, which is a pain.
10990     # So that behaviour is only enabled if SCOABSPATH is set to a
10991     # non-empty value in the environment.  Most likely only useful for
10992     # creating official distributions of packages.
10993     # This is a hack until libtool officially supports absolute path
10994     # names for shared libraries.
10995     no_undefined_flag_CXX='${wl}-z,text'
10996     allow_undefined_flag_CXX='${wl}-z,nodefs'
10997     archive_cmds_need_lc_CXX=no
10998     hardcode_shlibpath_var_CXX=no
10999     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11000     hardcode_libdir_separator_CXX=':'
11001     link_all_deplibs_CXX=yes
11002     export_dynamic_flag_spec_CXX='${wl}-Bexport'
11003     runpath_var='LD_RUN_PATH'
11004
11005     case $cc_basename in
11006       CC*)
11007         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11008         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11009         ;;
11010       *)
11011         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11012         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11013         ;;
11014     esac
11015     ;;
11016   tandem*)
11017     case $cc_basename in
11018       NCC*)
11019         # NonStop-UX NCC 3.20
11020         # FIXME: insert proper C++ library support
11021         ld_shlibs_CXX=no
11022         ;;
11023       *)
11024         # FIXME: insert proper C++ library support
11025         ld_shlibs_CXX=no
11026         ;;
11027     esac
11028     ;;
11029   vxworks*)
11030     # FIXME: insert proper C++ library support
11031     ld_shlibs_CXX=no
11032     ;;
11033   *)
11034     # FIXME: insert proper C++ library support
11035     ld_shlibs_CXX=no
11036     ;;
11037 esac
11038 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11039 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11040 test "$ld_shlibs_CXX" = no && can_build_shared=no
11041
11042 GCC_CXX="$GXX"
11043 LD_CXX="$LD"
11044
11045 ## CAVEAT EMPTOR:
11046 ## There is no encapsulation within the following macros, do not change
11047 ## the running order or otherwise move them around unless you know exactly
11048 ## what you are doing...
11049
11050 cat > conftest.$ac_ext <<EOF
11051 class Foo
11052 {
11053 public:
11054   Foo (void) { a = 0; }
11055 private:
11056   int a;
11057 };
11058 EOF
11059
11060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11061   (eval $ac_compile) 2>&5
11062   ac_status=$?
11063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064   (exit $ac_status); }; then
11065   # Parse the compiler output and extract the necessary
11066   # objects, libraries and library flags.
11067
11068   # Sentinel used to keep track of whether or not we are before
11069   # the conftest object file.
11070   pre_test_object_deps_done=no
11071
11072   # The `*' in the case matches for architectures that use `case' in
11073   # $output_verbose_cmd can trigger glob expansion during the loop
11074   # eval without this substitution.
11075   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11076
11077   for p in `eval $output_verbose_link_cmd`; do
11078     case $p in
11079
11080     -L* | -R* | -l*)
11081        # Some compilers place space between "-{L,R}" and the path.
11082        # Remove the space.
11083        if test $p = "-L" \
11084           || test $p = "-R"; then
11085          prev=$p
11086          continue
11087        else
11088          prev=
11089        fi
11090
11091        if test "$pre_test_object_deps_done" = no; then
11092          case $p in
11093          -L* | -R*)
11094            # Internal compiler library paths should come after those
11095            # provided the user.  The postdeps already come after the
11096            # user supplied libs so there is no need to process them.
11097            if test -z "$compiler_lib_search_path_CXX"; then
11098              compiler_lib_search_path_CXX="${prev}${p}"
11099            else
11100              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11101            fi
11102            ;;
11103          # The "-l" case would never come before the object being
11104          # linked, so don't bother handling this case.
11105          esac
11106        else
11107          if test -z "$postdeps_CXX"; then
11108            postdeps_CXX="${prev}${p}"
11109          else
11110            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11111          fi
11112        fi
11113        ;;
11114
11115     *.$objext)
11116        # This assumes that the test object file only shows up
11117        # once in the compiler output.
11118        if test "$p" = "conftest.$objext"; then
11119          pre_test_object_deps_done=yes
11120          continue
11121        fi
11122
11123        if test "$pre_test_object_deps_done" = no; then
11124          if test -z "$predep_objects_CXX"; then
11125            predep_objects_CXX="$p"
11126          else
11127            predep_objects_CXX="$predep_objects_CXX $p"
11128          fi
11129        else
11130          if test -z "$postdep_objects_CXX"; then
11131            postdep_objects_CXX="$p"
11132          else
11133            postdep_objects_CXX="$postdep_objects_CXX $p"
11134          fi
11135        fi
11136        ;;
11137
11138     *) ;; # Ignore the rest.
11139
11140     esac
11141   done
11142
11143   # Clean up.
11144   rm -f a.out a.exe
11145 else
11146   echo "libtool.m4: error: problem compiling CXX test program"
11147 fi
11148
11149 $rm -f confest.$objext
11150
11151 # PORTME: override above test on systems where it is broken
11152 case $host_os in
11153 interix3*)
11154   # Interix 3.5 installs completely hosed .la files for C++, so rather than
11155   # hack all around it, let's just trust "g++" to DTRT.
11156   predep_objects_CXX=
11157   postdep_objects_CXX=
11158   postdeps_CXX=
11159   ;;
11160
11161 solaris*)
11162   case $cc_basename in
11163   CC*)
11164     # Adding this requires a known-good setup of shared libraries for
11165     # Sun compiler versions before 5.6, else PIC objects from an old
11166     # archive will be linked into the output, leading to subtle bugs.
11167     postdeps_CXX='-lCstd -lCrun'
11168     ;;
11169   esac
11170   ;;
11171 esac
11172
11173
11174 case " $postdeps_CXX " in
11175 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11176 esac
11177
11178 lt_prog_compiler_wl_CXX=
11179 lt_prog_compiler_pic_CXX=
11180 lt_prog_compiler_static_CXX=
11181
11182 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11183 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11184  
11185   # C++ specific cases for pic, static, wl, etc.
11186   if test "$GXX" = yes; then
11187     lt_prog_compiler_wl_CXX='-Wl,'
11188     lt_prog_compiler_static_CXX='-static'
11189
11190     case $host_os in
11191     aix*)
11192       # All AIX code is PIC.
11193       if test "$host_cpu" = ia64; then
11194         # AIX 5 now supports IA64 processor
11195         lt_prog_compiler_static_CXX='-Bstatic'
11196       fi
11197       ;;
11198     amigaos*)
11199       # FIXME: we need at least 68020 code to build shared libraries, but
11200       # adding the `-m68020' flag to GCC prevents building anything better,
11201       # like `-m68040'.
11202       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11203       ;;
11204     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11205       # PIC is the default for these OSes.
11206       ;;
11207     mingw* | os2* | pw32*)
11208       # This hack is so that the source file can tell whether it is being
11209       # built for inclusion in a dll (and should export symbols for example).
11210       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11211       ;;
11212     darwin* | rhapsody*)
11213       # PIC is the default on this platform
11214       # Common symbols not allowed in MH_DYLIB files
11215       lt_prog_compiler_pic_CXX='-fno-common'
11216       ;;
11217     *djgpp*)
11218       # DJGPP does not support shared libraries at all
11219       lt_prog_compiler_pic_CXX=
11220       ;;
11221     interix3*)
11222       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11223       # Instead, we relocate shared libraries at runtime.
11224       ;;
11225     sysv4*MP*)
11226       if test -d /usr/nec; then
11227         lt_prog_compiler_pic_CXX=-Kconform_pic
11228       fi
11229       ;;
11230     hpux*)
11231       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11232       # not for PA HP-UX.
11233       case $host_cpu in
11234       hppa*64*|ia64*)
11235         ;;
11236       *)
11237         lt_prog_compiler_pic_CXX='-fPIC'
11238         ;;
11239       esac
11240       ;;
11241     *)
11242       lt_prog_compiler_pic_CXX='-fPIC'
11243       ;;
11244     esac
11245   else
11246     case $host_os in
11247       aix4* | aix5*)
11248         # All AIX code is PIC.
11249         if test "$host_cpu" = ia64; then
11250           # AIX 5 now supports IA64 processor
11251           lt_prog_compiler_static_CXX='-Bstatic'
11252         else
11253           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11254         fi
11255         ;;
11256       chorus*)
11257         case $cc_basename in
11258         cxch68*)
11259           # Green Hills C++ Compiler
11260           # _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"
11261           ;;
11262         esac
11263         ;;
11264        darwin*)
11265          # PIC is the default on this platform
11266          # Common symbols not allowed in MH_DYLIB files
11267          case $cc_basename in
11268            xlc*)
11269            lt_prog_compiler_pic_CXX='-qnocommon'
11270            lt_prog_compiler_wl_CXX='-Wl,'
11271            ;;
11272          esac
11273        ;;
11274       dgux*)
11275         case $cc_basename in
11276           ec++*)
11277             lt_prog_compiler_pic_CXX='-KPIC'
11278             ;;
11279           ghcx*)
11280             # Green Hills C++ Compiler
11281             lt_prog_compiler_pic_CXX='-pic'
11282             ;;
11283           *)
11284             ;;
11285         esac
11286         ;;
11287       freebsd* | dragonfly*)
11288         # FreeBSD uses GNU C++
11289         ;;
11290       hpux9* | hpux10* | hpux11*)
11291         case $cc_basename in
11292           CC*)
11293             lt_prog_compiler_wl_CXX='-Wl,'
11294             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11295             if test "$host_cpu" != ia64; then
11296               lt_prog_compiler_pic_CXX='+Z'
11297             fi
11298             ;;
11299           aCC*)
11300             lt_prog_compiler_wl_CXX='-Wl,'
11301             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11302             case $host_cpu in
11303             hppa*64*|ia64*)
11304               # +Z the default
11305               ;;
11306             *)
11307               lt_prog_compiler_pic_CXX='+Z'
11308               ;;
11309             esac
11310             ;;
11311           *)
11312             ;;
11313         esac
11314         ;;
11315       interix*)
11316         # This is c89, which is MS Visual C++ (no shared libs)
11317         # Anyone wants to do a port?
11318         ;;
11319       irix5* | irix6* | nonstopux*)
11320         case $cc_basename in
11321           CC*)
11322             lt_prog_compiler_wl_CXX='-Wl,'
11323             lt_prog_compiler_static_CXX='-non_shared'
11324             # CC pic flag -KPIC is the default.
11325             ;;
11326           *)
11327             ;;
11328         esac
11329         ;;
11330       linux* | k*bsd*-gnu)
11331         case $cc_basename in
11332           KCC*)
11333             # KAI C++ Compiler
11334             lt_prog_compiler_wl_CXX='--backend -Wl,'
11335             lt_prog_compiler_pic_CXX='-fPIC'
11336             ;;
11337           icpc* | ecpc*)
11338             # Intel C++
11339             lt_prog_compiler_wl_CXX='-Wl,'
11340             lt_prog_compiler_pic_CXX='-KPIC'
11341             lt_prog_compiler_static_CXX='-static'
11342             ;;
11343           pgCC*)
11344             # Portland Group C++ compiler.
11345             lt_prog_compiler_wl_CXX='-Wl,'
11346             lt_prog_compiler_pic_CXX='-fpic'
11347             lt_prog_compiler_static_CXX='-Bstatic'
11348             ;;
11349           cxx*)
11350             # Compaq C++
11351             # Make sure the PIC flag is empty.  It appears that all Alpha
11352             # Linux and Compaq Tru64 Unix objects are PIC.
11353             lt_prog_compiler_pic_CXX=
11354             lt_prog_compiler_static_CXX='-non_shared'
11355             ;;
11356           *)
11357             ;;
11358         esac
11359         ;;
11360       lynxos*)
11361         ;;
11362       m88k*)
11363         ;;
11364       mvs*)
11365         case $cc_basename in
11366           cxx*)
11367             lt_prog_compiler_pic_CXX='-W c,exportall'
11368             ;;
11369           *)
11370             ;;
11371         esac
11372         ;;
11373       netbsd* | netbsdelf*-gnu)
11374         ;;
11375       osf3* | osf4* | osf5*)
11376         case $cc_basename in
11377           KCC*)
11378             lt_prog_compiler_wl_CXX='--backend -Wl,'
11379             ;;
11380           RCC*)
11381             # Rational C++ 2.4.1
11382             lt_prog_compiler_pic_CXX='-pic'
11383             ;;
11384           cxx*)
11385             # Digital/Compaq C++
11386             lt_prog_compiler_wl_CXX='-Wl,'
11387             # Make sure the PIC flag is empty.  It appears that all Alpha
11388             # Linux and Compaq Tru64 Unix objects are PIC.
11389             lt_prog_compiler_pic_CXX=
11390             lt_prog_compiler_static_CXX='-non_shared'
11391             ;;
11392           *)
11393             ;;
11394         esac
11395         ;;
11396       psos*)
11397         ;;
11398       solaris*)
11399         case $cc_basename in
11400           CC*)
11401             # Sun C++ 4.2, 5.x and Centerline C++
11402             lt_prog_compiler_pic_CXX='-KPIC'
11403             lt_prog_compiler_static_CXX='-Bstatic'
11404             lt_prog_compiler_wl_CXX='-Qoption ld '
11405             ;;
11406           gcx*)
11407             # Green Hills C++ Compiler
11408             lt_prog_compiler_pic_CXX='-PIC'
11409             ;;
11410           *)
11411             ;;
11412         esac
11413         ;;
11414       sunos4*)
11415         case $cc_basename in
11416           CC*)
11417             # Sun C++ 4.x
11418             lt_prog_compiler_pic_CXX='-pic'
11419             lt_prog_compiler_static_CXX='-Bstatic'
11420             ;;
11421           lcc*)
11422             # Lucid
11423             lt_prog_compiler_pic_CXX='-pic'
11424             ;;
11425           *)
11426             ;;
11427         esac
11428         ;;
11429       tandem*)
11430         case $cc_basename in
11431           NCC*)
11432             # NonStop-UX NCC 3.20
11433             lt_prog_compiler_pic_CXX='-KPIC'
11434             ;;
11435           *)
11436             ;;
11437         esac
11438         ;;
11439       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11440         case $cc_basename in
11441           CC*)
11442             lt_prog_compiler_wl_CXX='-Wl,'
11443             lt_prog_compiler_pic_CXX='-KPIC'
11444             lt_prog_compiler_static_CXX='-Bstatic'
11445             ;;
11446         esac
11447         ;;
11448       vxworks*)
11449         ;;
11450       *)
11451         lt_prog_compiler_can_build_shared_CXX=no
11452         ;;
11453     esac
11454   fi
11455
11456 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11457 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11458
11459 #
11460 # Check to make sure the PIC flag actually works.
11461 #
11462 if test -n "$lt_prog_compiler_pic_CXX"; then
11463   
11464 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11465 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11466 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11467   echo $ECHO_N "(cached) $ECHO_C" >&6
11468 else
11469   lt_prog_compiler_pic_works_CXX=no
11470   ac_outfile=conftest.$ac_objext
11471    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11472    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11473    # Insert the option either (1) after the last *FLAGS variable, or
11474    # (2) before a word containing "conftest.", or (3) at the end.
11475    # Note that $ac_compile itself does not contain backslashes and begins
11476    # with a dollar sign (not a hyphen), so the echo should work correctly.
11477    # The option is referenced via a variable to avoid confusing sed.
11478    lt_compile=`echo "$ac_compile" | $SED \
11479    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11480    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11481    -e 's:$: $lt_compiler_flag:'`
11482    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
11483    (eval "$lt_compile" 2>conftest.err)
11484    ac_status=$?
11485    cat conftest.err >&5
11486    echo "$as_me:__oline__: \$? = $ac_status" >&5
11487    if (exit $ac_status) && test -s "$ac_outfile"; then
11488      # The compiler can only warn and ignore the option if not recognized
11489      # So say no if there are warnings other than the usual output.
11490      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11491      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11492      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11493        lt_prog_compiler_pic_works_CXX=yes
11494      fi
11495    fi
11496    $rm conftest*
11497
11498 fi
11499 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11500 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11501
11502 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11503     case $lt_prog_compiler_pic_CXX in
11504      "" | " "*) ;;
11505      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11506      esac
11507 else
11508     lt_prog_compiler_pic_CXX=
11509      lt_prog_compiler_can_build_shared_CXX=no
11510 fi
11511
11512 fi
11513 case $host_os in
11514   # For platforms which do not support PIC, -DPIC is meaningless:
11515   *djgpp*)
11516     lt_prog_compiler_pic_CXX=
11517     ;;
11518   *)
11519     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11520     ;;
11521 esac
11522
11523 #
11524 # Check to make sure the static flag actually works.
11525 #
11526 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11527 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11528 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11529 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11530   echo $ECHO_N "(cached) $ECHO_C" >&6
11531 else
11532   lt_prog_compiler_static_works_CXX=no
11533    save_LDFLAGS="$LDFLAGS"
11534    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11535    printf "$lt_simple_link_test_code" > conftest.$ac_ext
11536    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11537      # The linker can only warn and ignore the option if not recognized
11538      # So say no if there are warnings
11539      if test -s conftest.err; then
11540        # Append any errors to the config.log.
11541        cat conftest.err 1>&5
11542        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11543        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11544        if diff conftest.exp conftest.er2 >/dev/null; then
11545          lt_prog_compiler_static_works_CXX=yes
11546        fi
11547      else
11548        lt_prog_compiler_static_works_CXX=yes
11549      fi
11550    fi
11551    $rm conftest*
11552    LDFLAGS="$save_LDFLAGS"
11553
11554 fi
11555 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11556 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11557
11558 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11559     :
11560 else
11561     lt_prog_compiler_static_CXX=
11562 fi
11563
11564
11565 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11566 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11567 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11568   echo $ECHO_N "(cached) $ECHO_C" >&6
11569 else
11570   lt_cv_prog_compiler_c_o_CXX=no
11571    $rm -r conftest 2>/dev/null
11572    mkdir conftest
11573    cd conftest
11574    mkdir out
11575    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11576
11577    lt_compiler_flag="-o out/conftest2.$ac_objext"
11578    # Insert the option either (1) after the last *FLAGS variable, or
11579    # (2) before a word containing "conftest.", or (3) at the end.
11580    # Note that $ac_compile itself does not contain backslashes and begins
11581    # with a dollar sign (not a hyphen), so the echo should work correctly.
11582    lt_compile=`echo "$ac_compile" | $SED \
11583    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11584    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11585    -e 's:$: $lt_compiler_flag:'`
11586    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
11587    (eval "$lt_compile" 2>out/conftest.err)
11588    ac_status=$?
11589    cat out/conftest.err >&5
11590    echo "$as_me:__oline__: \$? = $ac_status" >&5
11591    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11592    then
11593      # The compiler can only warn and ignore the option if not recognized
11594      # So say no if there are warnings
11595      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11596      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11597      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11598        lt_cv_prog_compiler_c_o_CXX=yes
11599      fi
11600    fi
11601    chmod u+w . 2>&5
11602    $rm conftest*
11603    # SGI C++ compiler will create directory out/ii_files/ for
11604    # template instantiation
11605    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11606    $rm out/* && rmdir out
11607    cd ..
11608    rmdir conftest
11609    $rm conftest*
11610
11611 fi
11612 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11613 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11614
11615
11616 hard_links="nottested"
11617 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11618   # do not overwrite the value of need_locks provided by the user
11619   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11620 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11621   hard_links=yes
11622   $rm conftest*
11623   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11624   touch conftest.a
11625   ln conftest.a conftest.b 2>&5 || hard_links=no
11626   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11627   echo "$as_me:$LINENO: result: $hard_links" >&5
11628 echo "${ECHO_T}$hard_links" >&6
11629   if test "$hard_links" = no; then
11630     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11631 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11632     need_locks=warn
11633   fi
11634 else
11635   need_locks=no
11636 fi
11637
11638 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11639 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11640
11641   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11642   case $host_os in
11643   aix4* | aix5*)
11644     # If we're using GNU nm, then we don't want the "-C" option.
11645     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11646     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11647       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'
11648     else
11649       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'
11650     fi
11651     ;;
11652   pw32*)
11653     export_symbols_cmds_CXX="$ltdll_cmds"
11654   ;;
11655   cygwin* | mingw*)
11656     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'
11657   ;;
11658   linux* | k*bsd*-gnu)
11659     link_all_deplibs_CXX=no
11660   ;;
11661   *)
11662     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11663   ;;
11664   esac
11665
11666 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11667 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11668 test "$ld_shlibs_CXX" = no && can_build_shared=no
11669
11670 #
11671 # Do we need to explicitly link libc?
11672 #
11673 case "x$archive_cmds_need_lc_CXX" in
11674 x|xyes)
11675   # Assume -lc should be added
11676   archive_cmds_need_lc_CXX=yes
11677
11678   if test "$enable_shared" = yes && test "$GCC" = yes; then
11679     case $archive_cmds_CXX in
11680     *'~'*)
11681       # FIXME: we may have to deal with multi-command sequences.
11682       ;;
11683     '$CC '*)
11684       # Test whether the compiler implicitly links with -lc since on some
11685       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11686       # to ld, don't add -lc before -lgcc.
11687       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11688 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11689       $rm conftest*
11690       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11691
11692       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11693   (eval $ac_compile) 2>&5
11694   ac_status=$?
11695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696   (exit $ac_status); } 2>conftest.err; then
11697         soname=conftest
11698         lib=conftest
11699         libobjs=conftest.$ac_objext
11700         deplibs=
11701         wl=$lt_prog_compiler_wl_CXX
11702         pic_flag=$lt_prog_compiler_pic_CXX
11703         compiler_flags=-v
11704         linker_flags=-v
11705         verstring=
11706         output_objdir=.
11707         libname=conftest
11708         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11709         allow_undefined_flag_CXX=
11710         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11711   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11712   ac_status=$?
11713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714   (exit $ac_status); }
11715         then
11716           archive_cmds_need_lc_CXX=no
11717         else
11718           archive_cmds_need_lc_CXX=yes
11719         fi
11720         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11721       else
11722         cat conftest.err 1>&5
11723       fi
11724       $rm conftest*
11725       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11726 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11727       ;;
11728     esac
11729   fi
11730   ;;
11731 esac
11732
11733 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11734 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11735 library_names_spec=
11736 libname_spec='lib$name'
11737 soname_spec=
11738 shrext_cmds=".so"
11739 postinstall_cmds=
11740 postuninstall_cmds=
11741 finish_cmds=
11742 finish_eval=
11743 shlibpath_var=
11744 shlibpath_overrides_runpath=unknown
11745 version_type=none
11746 dynamic_linker="$host_os ld.so"
11747 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11748 if test "$GCC" = yes; then
11749   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11750   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11751     # if the path contains ";" then we assume it to be the separator
11752     # otherwise default to the standard path separator (i.e. ":") - it is
11753     # assumed that no part of a normal pathname contains ";" but that should
11754     # okay in the real world where ";" in dirpaths is itself problematic.
11755     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11756   else
11757     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11758   fi
11759 else
11760   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11761 fi
11762 need_lib_prefix=unknown
11763 hardcode_into_libs=no
11764
11765 # when you set need_version to no, make sure it does not cause -set_version
11766 # flags to be left without arguments
11767 need_version=unknown
11768
11769 case $host_os in
11770 aix3*)
11771   version_type=linux
11772   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11773   shlibpath_var=LIBPATH
11774
11775   # AIX 3 has no versioning support, so we append a major version to the name.
11776   soname_spec='${libname}${release}${shared_ext}$major'
11777   ;;
11778
11779 aix4* | aix5*)
11780   version_type=linux
11781   need_lib_prefix=no
11782   need_version=no
11783   hardcode_into_libs=yes
11784   if test "$host_cpu" = ia64; then
11785     # AIX 5 supports IA64
11786     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11787     shlibpath_var=LD_LIBRARY_PATH
11788   else
11789     # With GCC up to 2.95.x, collect2 would create an import file
11790     # for dependence libraries.  The import file would start with
11791     # the line `#! .'.  This would cause the generated library to
11792     # depend on `.', always an invalid library.  This was fixed in
11793     # development snapshots of GCC prior to 3.0.
11794     case $host_os in
11795       aix4 | aix4.[01] | aix4.[01].*)
11796       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11797            echo ' yes '
11798            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11799         :
11800       else
11801         can_build_shared=no
11802       fi
11803       ;;
11804     esac
11805     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11806     # soname into executable. Probably we can add versioning support to
11807     # collect2, so additional links can be useful in future.
11808     if test "$aix_use_runtimelinking" = yes; then
11809       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11810       # instead of lib<name>.a to let people know that these are not
11811       # typical AIX shared libraries.
11812       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11813     else
11814       # We preserve .a as extension for shared libraries through AIX4.2
11815       # and later when we are not doing run time linking.
11816       library_names_spec='${libname}${release}.a $libname.a'
11817       soname_spec='${libname}${release}${shared_ext}$major'
11818     fi
11819     shlibpath_var=LIBPATH
11820   fi
11821   ;;
11822
11823 amigaos*)
11824   library_names_spec='$libname.ixlibrary $libname.a'
11825   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11826   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'
11827   ;;
11828
11829 beos*)
11830   library_names_spec='${libname}${shared_ext}'
11831   dynamic_linker="$host_os ld.so"
11832   shlibpath_var=LIBRARY_PATH
11833   ;;
11834
11835 bsdi[45]*)
11836   version_type=linux
11837   need_version=no
11838   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11839   soname_spec='${libname}${release}${shared_ext}$major'
11840   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11841   shlibpath_var=LD_LIBRARY_PATH
11842   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11843   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11844   # the default ld.so.conf also contains /usr/contrib/lib and
11845   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11846   # libtool to hard-code these into programs
11847   ;;
11848
11849 cygwin* | mingw* | pw32*)
11850   version_type=windows
11851   shrext_cmds=".dll"
11852   need_version=no
11853   need_lib_prefix=no
11854
11855   case $GCC,$host_os in
11856   yes,cygwin* | yes,mingw* | yes,pw32*)
11857     library_names_spec='$libname.dll.a'
11858     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11859     postinstall_cmds='base_file=`basename \${file}`~
11860       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11861       dldir=$destdir/`dirname \$dlpath`~
11862       test -d \$dldir || mkdir -p \$dldir~
11863       $install_prog $dir/$dlname \$dldir/$dlname~
11864       chmod a+x \$dldir/$dlname'
11865     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11866       dlpath=$dir/\$dldll~
11867        $rm \$dlpath'
11868     shlibpath_overrides_runpath=yes
11869
11870     case $host_os in
11871     cygwin*)
11872       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11873       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11874       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11875       ;;
11876     mingw*)
11877       # MinGW DLLs use traditional 'lib' prefix
11878       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11879       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11880       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11881         # It is most probably a Windows format PATH printed by
11882         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11883         # path with ; separators, and with drive letters. We can handle the
11884         # drive letters (cygwin fileutils understands them), so leave them,
11885         # especially as we might pass files found there to a mingw objdump,
11886         # which wouldn't understand a cygwinified path. Ahh.
11887         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11888       else
11889         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11890       fi
11891       ;;
11892     pw32*)
11893       # pw32 DLLs use 'pw' prefix rather than 'lib'
11894       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11895       ;;
11896     esac
11897     ;;
11898
11899   *)
11900     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11901     ;;
11902   esac
11903   dynamic_linker='Win32 ld.exe'
11904   # FIXME: first we should search . and the directory the executable is in
11905   shlibpath_var=PATH
11906   ;;
11907
11908 darwin* | rhapsody*)
11909   dynamic_linker="$host_os dyld"
11910   version_type=darwin
11911   need_lib_prefix=no
11912   need_version=no
11913   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11914   soname_spec='${libname}${release}${major}$shared_ext'
11915   shlibpath_overrides_runpath=yes
11916   shlibpath_var=DYLD_LIBRARY_PATH
11917   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11918   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11919   if test "$GCC" = yes; then
11920     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"`
11921   else
11922     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11923   fi
11924   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11925   ;;
11926
11927 dgux*)
11928   version_type=linux
11929   need_lib_prefix=no
11930   need_version=no
11931   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11932   soname_spec='${libname}${release}${shared_ext}$major'
11933   shlibpath_var=LD_LIBRARY_PATH
11934   ;;
11935
11936 freebsd1*)
11937   dynamic_linker=no
11938   ;;
11939
11940 freebsd* | dragonfly*)
11941   # DragonFly does not have aout.  When/if they implement a new
11942   # versioning mechanism, adjust this.
11943   if test -x /usr/bin/objformat; then
11944     objformat=`/usr/bin/objformat`
11945   else
11946     case $host_os in
11947     freebsd[123]*) objformat=aout ;;
11948     *) objformat=elf ;;
11949     esac
11950   fi
11951   version_type=freebsd-$objformat
11952   case $version_type in
11953     freebsd-elf*)
11954       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11955       need_version=no
11956       need_lib_prefix=no
11957       ;;
11958     freebsd-*)
11959       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11960       need_version=yes
11961       ;;
11962   esac
11963   shlibpath_var=LD_LIBRARY_PATH
11964   case $host_os in
11965   freebsd2*)
11966     shlibpath_overrides_runpath=yes
11967     ;;
11968   freebsd3.[01]* | freebsdelf3.[01]*)
11969     shlibpath_overrides_runpath=yes
11970     hardcode_into_libs=yes
11971     ;;
11972   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11973   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11974     shlibpath_overrides_runpath=no
11975     hardcode_into_libs=yes
11976     ;;
11977   freebsd*) # from 4.6 on
11978     shlibpath_overrides_runpath=yes
11979     hardcode_into_libs=yes
11980     ;;
11981   esac
11982   ;;
11983
11984 gnu*)
11985   version_type=linux
11986   need_lib_prefix=no
11987   need_version=no
11988   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11989   soname_spec='${libname}${release}${shared_ext}$major'
11990   shlibpath_var=LD_LIBRARY_PATH
11991   hardcode_into_libs=yes
11992   ;;
11993
11994 hpux9* | hpux10* | hpux11*)
11995   # Give a soname corresponding to the major version so that dld.sl refuses to
11996   # link against other versions.
11997   version_type=sunos
11998   need_lib_prefix=no
11999   need_version=no
12000   case $host_cpu in
12001   ia64*)
12002     shrext_cmds='.so'
12003     hardcode_into_libs=yes
12004     dynamic_linker="$host_os dld.so"
12005     shlibpath_var=LD_LIBRARY_PATH
12006     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12007     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12008     soname_spec='${libname}${release}${shared_ext}$major'
12009     if test "X$HPUX_IA64_MODE" = X32; then
12010       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12011     else
12012       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12013     fi
12014     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12015     ;;
12016    hppa*64*)
12017      shrext_cmds='.sl'
12018      hardcode_into_libs=yes
12019      dynamic_linker="$host_os dld.sl"
12020      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12021      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12022      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12023      soname_spec='${libname}${release}${shared_ext}$major'
12024      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12025      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12026      ;;
12027    *)
12028     shrext_cmds='.sl'
12029     dynamic_linker="$host_os dld.sl"
12030     shlibpath_var=SHLIB_PATH
12031     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12032     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12033     soname_spec='${libname}${release}${shared_ext}$major'
12034     ;;
12035   esac
12036   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12037   postinstall_cmds='chmod 555 $lib'
12038   ;;
12039
12040 interix3*)
12041   version_type=linux
12042   need_lib_prefix=no
12043   need_version=no
12044   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12045   soname_spec='${libname}${release}${shared_ext}$major'
12046   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12047   shlibpath_var=LD_LIBRARY_PATH
12048   shlibpath_overrides_runpath=no
12049   hardcode_into_libs=yes
12050   ;;
12051
12052 irix5* | irix6* | nonstopux*)
12053   case $host_os in
12054     nonstopux*) version_type=nonstopux ;;
12055     *)
12056         if test "$lt_cv_prog_gnu_ld" = yes; then
12057                 version_type=linux
12058         else
12059                 version_type=irix
12060         fi ;;
12061   esac
12062   need_lib_prefix=no
12063   need_version=no
12064   soname_spec='${libname}${release}${shared_ext}$major'
12065   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12066   case $host_os in
12067   irix5* | nonstopux*)
12068     libsuff= shlibsuff=
12069     ;;
12070   *)
12071     case $LD in # libtool.m4 will add one of these switches to LD
12072     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12073       libsuff= shlibsuff= libmagic=32-bit;;
12074     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12075       libsuff=32 shlibsuff=N32 libmagic=N32;;
12076     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12077       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12078     *) libsuff= shlibsuff= libmagic=never-match;;
12079     esac
12080     ;;
12081   esac
12082   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12083   shlibpath_overrides_runpath=no
12084   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12085   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12086   hardcode_into_libs=yes
12087   ;;
12088
12089 # No shared lib support for Linux oldld, aout, or coff.
12090 linux*oldld* | linux*aout* | linux*coff*)
12091   dynamic_linker=no
12092   ;;
12093
12094 # This must be Linux ELF.
12095 linux* | k*bsd*-gnu)
12096   version_type=linux
12097   need_lib_prefix=no
12098   need_version=no
12099   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12100   soname_spec='${libname}${release}${shared_ext}$major'
12101   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12102   shlibpath_var=LD_LIBRARY_PATH
12103   shlibpath_overrides_runpath=no
12104   # This implies no fast_install, which is unacceptable.
12105   # Some rework will be needed to allow for fast_install
12106   # before this can be enabled.
12107   hardcode_into_libs=yes
12108
12109   # Append ld.so.conf contents to the search path
12110   if test -f /etc/ld.so.conf; then
12111     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' ' '`
12112     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12113   fi
12114
12115   # We used to test for /lib/ld.so.1 and disable shared libraries on
12116   # powerpc, because MkLinux only supported shared libraries with the
12117   # GNU dynamic linker.  Since this was broken with cross compilers,
12118   # most powerpc-linux boxes support dynamic linking these days and
12119   # people can always --disable-shared, the test was removed, and we
12120   # assume the GNU/Linux dynamic linker is in use.
12121   dynamic_linker='GNU/Linux ld.so'
12122   ;;
12123
12124 netbsdelf*-gnu)
12125   version_type=linux
12126   need_lib_prefix=no
12127   need_version=no
12128   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12129   soname_spec='${libname}${release}${shared_ext}$major'
12130   shlibpath_var=LD_LIBRARY_PATH
12131   shlibpath_overrides_runpath=no
12132   hardcode_into_libs=yes
12133   dynamic_linker='NetBSD ld.elf_so'
12134   ;;
12135
12136 netbsd*)
12137   version_type=sunos
12138   need_lib_prefix=no
12139   need_version=no
12140   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12141     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12142     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12143     dynamic_linker='NetBSD (a.out) ld.so'
12144   else
12145     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12146     soname_spec='${libname}${release}${shared_ext}$major'
12147     dynamic_linker='NetBSD ld.elf_so'
12148   fi
12149   shlibpath_var=LD_LIBRARY_PATH
12150   shlibpath_overrides_runpath=yes
12151   hardcode_into_libs=yes
12152   ;;
12153
12154 newsos6)
12155   version_type=linux
12156   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12157   shlibpath_var=LD_LIBRARY_PATH
12158   shlibpath_overrides_runpath=yes
12159   ;;
12160
12161 nto-qnx*)
12162   version_type=linux
12163   need_lib_prefix=no
12164   need_version=no
12165   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12166   soname_spec='${libname}${release}${shared_ext}$major'
12167   shlibpath_var=LD_LIBRARY_PATH
12168   shlibpath_overrides_runpath=yes
12169   ;;
12170
12171 openbsd*)
12172   version_type=sunos
12173   sys_lib_dlsearch_path_spec="/usr/lib"
12174   need_lib_prefix=no
12175   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12176   case $host_os in
12177     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12178     *)                         need_version=no  ;;
12179   esac
12180   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12181   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12182   shlibpath_var=LD_LIBRARY_PATH
12183   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12184     case $host_os in
12185       openbsd2.[89] | openbsd2.[89].*)
12186         shlibpath_overrides_runpath=no
12187         ;;
12188       *)
12189         shlibpath_overrides_runpath=yes
12190         ;;
12191       esac
12192   else
12193     shlibpath_overrides_runpath=yes
12194   fi
12195   ;;
12196
12197 os2*)
12198   libname_spec='$name'
12199   shrext_cmds=".dll"
12200   need_lib_prefix=no
12201   library_names_spec='$libname${shared_ext} $libname.a'
12202   dynamic_linker='OS/2 ld.exe'
12203   shlibpath_var=LIBPATH
12204   ;;
12205
12206 osf3* | osf4* | osf5*)
12207   version_type=osf
12208   need_lib_prefix=no
12209   need_version=no
12210   soname_spec='${libname}${release}${shared_ext}$major'
12211   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12212   shlibpath_var=LD_LIBRARY_PATH
12213   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12214   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12215   ;;
12216
12217 solaris*)
12218   version_type=linux
12219   need_lib_prefix=no
12220   need_version=no
12221   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12222   soname_spec='${libname}${release}${shared_ext}$major'
12223   shlibpath_var=LD_LIBRARY_PATH
12224   shlibpath_overrides_runpath=yes
12225   hardcode_into_libs=yes
12226   # ldd complains unless libraries are executable
12227   postinstall_cmds='chmod +x $lib'
12228   ;;
12229
12230 sunos4*)
12231   version_type=sunos
12232   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12233   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12234   shlibpath_var=LD_LIBRARY_PATH
12235   shlibpath_overrides_runpath=yes
12236   if test "$with_gnu_ld" = yes; then
12237     need_lib_prefix=no
12238   fi
12239   need_version=yes
12240   ;;
12241
12242 sysv4 | sysv4.3*)
12243   version_type=linux
12244   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12245   soname_spec='${libname}${release}${shared_ext}$major'
12246   shlibpath_var=LD_LIBRARY_PATH
12247   case $host_vendor in
12248     sni)
12249       shlibpath_overrides_runpath=no
12250       need_lib_prefix=no
12251       export_dynamic_flag_spec='${wl}-Blargedynsym'
12252       runpath_var=LD_RUN_PATH
12253       ;;
12254     siemens)
12255       need_lib_prefix=no
12256       ;;
12257     motorola)
12258       need_lib_prefix=no
12259       need_version=no
12260       shlibpath_overrides_runpath=no
12261       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12262       ;;
12263   esac
12264   ;;
12265
12266 sysv4*MP*)
12267   if test -d /usr/nec ;then
12268     version_type=linux
12269     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12270     soname_spec='$libname${shared_ext}.$major'
12271     shlibpath_var=LD_LIBRARY_PATH
12272   fi
12273   ;;
12274
12275 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12276   version_type=freebsd-elf
12277   need_lib_prefix=no
12278   need_version=no
12279   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12280   soname_spec='${libname}${release}${shared_ext}$major'
12281   shlibpath_var=LD_LIBRARY_PATH
12282   hardcode_into_libs=yes
12283   if test "$with_gnu_ld" = yes; then
12284     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12285     shlibpath_overrides_runpath=no
12286   else
12287     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12288     shlibpath_overrides_runpath=yes
12289     case $host_os in
12290       sco3.2v5*)
12291         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12292         ;;
12293     esac
12294   fi
12295   sys_lib_dlsearch_path_spec='/usr/lib'
12296   ;;
12297
12298 uts4*)
12299   version_type=linux
12300   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12301   soname_spec='${libname}${release}${shared_ext}$major'
12302   shlibpath_var=LD_LIBRARY_PATH
12303   ;;
12304
12305 *)
12306   dynamic_linker=no
12307   ;;
12308 esac
12309 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12310 echo "${ECHO_T}$dynamic_linker" >&6
12311 test "$dynamic_linker" = no && can_build_shared=no
12312
12313 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12314 if test "$GCC" = yes; then
12315   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12316 fi
12317
12318 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12319 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12320 hardcode_action_CXX=
12321 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12322    test -n "$runpath_var_CXX" || \
12323    test "X$hardcode_automatic_CXX" = "Xyes" ; then
12324
12325   # We can hardcode non-existant directories.
12326   if test "$hardcode_direct_CXX" != no &&
12327      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12328      # have to relink, otherwise we might link with an installed library
12329      # when we should be linking with a yet-to-be-installed one
12330      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12331      test "$hardcode_minus_L_CXX" != no; then
12332     # Linking always hardcodes the temporary library directory.
12333     hardcode_action_CXX=relink
12334   else
12335     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12336     hardcode_action_CXX=immediate
12337   fi
12338 else
12339   # We cannot hardcode anything, or else we can only hardcode existing
12340   # directories.
12341   hardcode_action_CXX=unsupported
12342 fi
12343 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12344 echo "${ECHO_T}$hardcode_action_CXX" >&6
12345
12346 if test "$hardcode_action_CXX" = relink; then
12347   # Fast installation is not supported
12348   enable_fast_install=no
12349 elif test "$shlibpath_overrides_runpath" = yes ||
12350      test "$enable_shared" = no; then
12351   # Fast installation is not necessary
12352   enable_fast_install=needless
12353 fi
12354
12355
12356 # The else clause should only fire when bootstrapping the
12357 # libtool distribution, otherwise you forgot to ship ltmain.sh
12358 # with your package, and you will get complaints that there are
12359 # no rules to generate ltmain.sh.
12360 if test -f "$ltmain"; then
12361   # See if we are running on zsh, and set the options which allow our commands through
12362   # without removal of \ escapes.
12363   if test -n "${ZSH_VERSION+set}" ; then
12364     setopt NO_GLOB_SUBST
12365   fi
12366   # Now quote all the things that may contain metacharacters while being
12367   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12368   # variables and quote the copies for generation of the libtool script.
12369   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12370     SED SHELL STRIP \
12371     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12372     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12373     deplibs_check_method reload_flag reload_cmds need_locks \
12374     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12375     lt_cv_sys_global_symbol_to_c_name_address \
12376     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12377     old_postinstall_cmds old_postuninstall_cmds \
12378     compiler_CXX \
12379     CC_CXX \
12380     LD_CXX \
12381     lt_prog_compiler_wl_CXX \
12382     lt_prog_compiler_pic_CXX \
12383     lt_prog_compiler_static_CXX \
12384     lt_prog_compiler_no_builtin_flag_CXX \
12385     export_dynamic_flag_spec_CXX \
12386     thread_safe_flag_spec_CXX \
12387     whole_archive_flag_spec_CXX \
12388     enable_shared_with_static_runtimes_CXX \
12389     old_archive_cmds_CXX \
12390     old_archive_from_new_cmds_CXX \
12391     predep_objects_CXX \
12392     postdep_objects_CXX \
12393     predeps_CXX \
12394     postdeps_CXX \
12395     compiler_lib_search_path_CXX \
12396     archive_cmds_CXX \
12397     archive_expsym_cmds_CXX \
12398     postinstall_cmds_CXX \
12399     postuninstall_cmds_CXX \
12400     old_archive_from_expsyms_cmds_CXX \
12401     allow_undefined_flag_CXX \
12402     no_undefined_flag_CXX \
12403     export_symbols_cmds_CXX \
12404     hardcode_libdir_flag_spec_CXX \
12405     hardcode_libdir_flag_spec_ld_CXX \
12406     hardcode_libdir_separator_CXX \
12407     hardcode_automatic_CXX \
12408     module_cmds_CXX \
12409     module_expsym_cmds_CXX \
12410     lt_cv_prog_compiler_c_o_CXX \
12411     exclude_expsyms_CXX \
12412     include_expsyms_CXX; do
12413
12414     case $var in
12415     old_archive_cmds_CXX | \
12416     old_archive_from_new_cmds_CXX | \
12417     archive_cmds_CXX | \
12418     archive_expsym_cmds_CXX | \
12419     module_cmds_CXX | \
12420     module_expsym_cmds_CXX | \
12421     old_archive_from_expsyms_cmds_CXX | \
12422     export_symbols_cmds_CXX | \
12423     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12424     postinstall_cmds | postuninstall_cmds | \
12425     old_postinstall_cmds | old_postuninstall_cmds | \
12426     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12427       # Double-quote double-evaled strings.
12428       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12429       ;;
12430     *)
12431       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12432       ;;
12433     esac
12434   done
12435
12436   case $lt_echo in
12437   *'\$0 --fallback-echo"')
12438     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12439     ;;
12440   esac
12441
12442 cfgfile="$ofile"
12443
12444   cat <<__EOF__ >> "$cfgfile"
12445 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12446
12447 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12448
12449 # Shell to use when invoking shell scripts.
12450 SHELL=$lt_SHELL
12451
12452 # Whether or not to build shared libraries.
12453 build_libtool_libs=$enable_shared
12454
12455 # Whether or not to build static libraries.
12456 build_old_libs=$enable_static
12457
12458 # Whether or not to add -lc for building shared libraries.
12459 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12460
12461 # Whether or not to disallow shared libs when runtime libs are static
12462 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12463
12464 # Whether or not to optimize for fast installation.
12465 fast_install=$enable_fast_install
12466
12467 # The host system.
12468 host_alias=$host_alias
12469 host=$host
12470 host_os=$host_os
12471
12472 # The build system.
12473 build_alias=$build_alias
12474 build=$build
12475 build_os=$build_os
12476
12477 # An echo program that does not interpret backslashes.
12478 echo=$lt_echo
12479
12480 # The archiver.
12481 AR=$lt_AR
12482 AR_FLAGS=$lt_AR_FLAGS
12483
12484 # A C compiler.
12485 LTCC=$lt_LTCC
12486
12487 # LTCC compiler flags.
12488 LTCFLAGS=$lt_LTCFLAGS
12489
12490 # A language-specific compiler.
12491 CC=$lt_compiler_CXX
12492
12493 # Is the compiler the GNU C compiler?
12494 with_gcc=$GCC_CXX
12495
12496 # An ERE matcher.
12497 EGREP=$lt_EGREP
12498
12499 # The linker used to build libraries.
12500 LD=$lt_LD_CXX
12501
12502 # Whether we need hard or soft links.
12503 LN_S=$lt_LN_S
12504
12505 # A BSD-compatible nm program.
12506 NM=$lt_NM
12507
12508 # A symbol stripping program
12509 STRIP=$lt_STRIP
12510
12511 # Used to examine libraries when file_magic_cmd begins "file"
12512 MAGIC_CMD=$MAGIC_CMD
12513
12514 # Used on cygwin: DLL creation program.
12515 DLLTOOL="$DLLTOOL"
12516
12517 # Used on cygwin: object dumper.
12518 OBJDUMP="$OBJDUMP"
12519
12520 # Used on cygwin: assembler.
12521 AS="$AS"
12522
12523 # The name of the directory that contains temporary libtool files.
12524 objdir=$objdir
12525
12526 # How to create reloadable object files.
12527 reload_flag=$lt_reload_flag
12528 reload_cmds=$lt_reload_cmds
12529
12530 # How to pass a linker flag through the compiler.
12531 wl=$lt_lt_prog_compiler_wl_CXX
12532
12533 # Object file suffix (normally "o").
12534 objext="$ac_objext"
12535
12536 # Old archive suffix (normally "a").
12537 libext="$libext"
12538
12539 # Shared library suffix (normally ".so").
12540 shrext_cmds='$shrext_cmds'
12541
12542 # Executable file suffix (normally "").
12543 exeext="$exeext"
12544
12545 # Additional compiler flags for building library objects.
12546 pic_flag=$lt_lt_prog_compiler_pic_CXX
12547 pic_mode=$pic_mode
12548
12549 # What is the maximum length of a command?
12550 max_cmd_len=$lt_cv_sys_max_cmd_len
12551
12552 # Does compiler simultaneously support -c and -o options?
12553 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12554
12555 # Must we lock files when doing compilation?
12556 need_locks=$lt_need_locks
12557
12558 # Do we need the lib prefix for modules?
12559 need_lib_prefix=$need_lib_prefix
12560
12561 # Do we need a version for libraries?
12562 need_version=$need_version
12563
12564 # Whether dlopen is supported.
12565 dlopen_support=$enable_dlopen
12566
12567 # Whether dlopen of programs is supported.
12568 dlopen_self=$enable_dlopen_self
12569
12570 # Whether dlopen of statically linked programs is supported.
12571 dlopen_self_static=$enable_dlopen_self_static
12572
12573 # Compiler flag to prevent dynamic linking.
12574 link_static_flag=$lt_lt_prog_compiler_static_CXX
12575
12576 # Compiler flag to turn off builtin functions.
12577 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12578
12579 # Compiler flag to allow reflexive dlopens.
12580 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12581
12582 # Compiler flag to generate shared objects directly from archives.
12583 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12584
12585 # Compiler flag to generate thread-safe objects.
12586 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12587
12588 # Library versioning type.
12589 version_type=$version_type
12590
12591 # Format of library name prefix.
12592 libname_spec=$lt_libname_spec
12593
12594 # List of archive names.  First name is the real one, the rest are links.
12595 # The last name is the one that the linker finds with -lNAME.
12596 library_names_spec=$lt_library_names_spec
12597
12598 # The coded name of the library, if different from the real name.
12599 soname_spec=$lt_soname_spec
12600
12601 # Commands used to build and install an old-style archive.
12602 RANLIB=$lt_RANLIB
12603 old_archive_cmds=$lt_old_archive_cmds_CXX
12604 old_postinstall_cmds=$lt_old_postinstall_cmds
12605 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12606
12607 # Create an old-style archive from a shared archive.
12608 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12609
12610 # Create a temporary old-style archive to link instead of a shared archive.
12611 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12612
12613 # Commands used to build and install a shared archive.
12614 archive_cmds=$lt_archive_cmds_CXX
12615 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12616 postinstall_cmds=$lt_postinstall_cmds
12617 postuninstall_cmds=$lt_postuninstall_cmds
12618
12619 # Commands used to build a loadable module (assumed same as above if empty)
12620 module_cmds=$lt_module_cmds_CXX
12621 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12622
12623 # Commands to strip libraries.
12624 old_striplib=$lt_old_striplib
12625 striplib=$lt_striplib
12626
12627 # Dependencies to place before the objects being linked to create a
12628 # shared library.
12629 predep_objects=$lt_predep_objects_CXX
12630
12631 # Dependencies to place after the objects being linked to create a
12632 # shared library.
12633 postdep_objects=$lt_postdep_objects_CXX
12634
12635 # Dependencies to place before the objects being linked to create a
12636 # shared library.
12637 predeps=$lt_predeps_CXX
12638
12639 # Dependencies to place after the objects being linked to create a
12640 # shared library.
12641 postdeps=$lt_postdeps_CXX
12642
12643 # The library search path used internally by the compiler when linking
12644 # a shared library.
12645 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12646
12647 # Method to check whether dependent libraries are shared objects.
12648 deplibs_check_method=$lt_deplibs_check_method
12649
12650 # Command to use when deplibs_check_method == file_magic.
12651 file_magic_cmd=$lt_file_magic_cmd
12652
12653 # Flag that allows shared libraries with undefined symbols to be built.
12654 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12655
12656 # Flag that forces no undefined symbols.
12657 no_undefined_flag=$lt_no_undefined_flag_CXX
12658
12659 # Commands used to finish a libtool library installation in a directory.
12660 finish_cmds=$lt_finish_cmds
12661
12662 # Same as above, but a single script fragment to be evaled but not shown.
12663 finish_eval=$lt_finish_eval
12664
12665 # Take the output of nm and produce a listing of raw symbols and C names.
12666 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12667
12668 # Transform the output of nm in a proper C declaration
12669 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12670
12671 # Transform the output of nm in a C name address pair
12672 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12673
12674 # This is the shared library runtime path variable.
12675 runpath_var=$runpath_var
12676
12677 # This is the shared library path variable.
12678 shlibpath_var=$shlibpath_var
12679
12680 # Is shlibpath searched before the hard-coded library search path?
12681 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12682
12683 # How to hardcode a shared library path into an executable.
12684 hardcode_action=$hardcode_action_CXX
12685
12686 # Whether we should hardcode library paths into libraries.
12687 hardcode_into_libs=$hardcode_into_libs
12688
12689 # Flag to hardcode \$libdir into a binary during linking.
12690 # This must work even if \$libdir does not exist.
12691 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12692
12693 # If ld is used when linking, flag to hardcode \$libdir into
12694 # a binary during linking. This must work even if \$libdir does
12695 # not exist.
12696 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12697
12698 # Whether we need a single -rpath flag with a separated argument.
12699 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12700
12701 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12702 # resulting binary.
12703 hardcode_direct=$hardcode_direct_CXX
12704
12705 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12706 # resulting binary.
12707 hardcode_minus_L=$hardcode_minus_L_CXX
12708
12709 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12710 # the resulting binary.
12711 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12712
12713 # Set to yes if building a shared library automatically hardcodes DIR into the library
12714 # and all subsequent libraries and executables linked against it.
12715 hardcode_automatic=$hardcode_automatic_CXX
12716
12717 # Variables whose values should be saved in libtool wrapper scripts and
12718 # restored at relink time.
12719 variables_saved_for_relink="$variables_saved_for_relink"
12720
12721 # Whether libtool must link a program against all its dependency libraries.
12722 link_all_deplibs=$link_all_deplibs_CXX
12723
12724 # Compile-time system search path for libraries
12725 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12726
12727 # Run-time system search path for libraries
12728 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12729
12730 # Fix the shell variable \$srcfile for the compiler.
12731 fix_srcfile_path="$fix_srcfile_path_CXX"
12732
12733 # Set to yes if exported symbols are required.
12734 always_export_symbols=$always_export_symbols_CXX
12735
12736 # The commands to list exported symbols.
12737 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12738
12739 # The commands to extract the exported symbol list from a shared archive.
12740 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12741
12742 # Symbols that should not be listed in the preloaded symbols.
12743 exclude_expsyms=$lt_exclude_expsyms_CXX
12744
12745 # Symbols that must always be exported.
12746 include_expsyms=$lt_include_expsyms_CXX
12747
12748 # ### END LIBTOOL TAG CONFIG: $tagname
12749
12750 __EOF__
12751
12752
12753 else
12754   # If there is no Makefile yet, we rely on a make rule to execute
12755   # `config.status --recheck' to rerun these tests and create the
12756   # libtool script then.
12757   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12758   if test -f "$ltmain_in"; then
12759     test -f Makefile && make "$ltmain"
12760   fi
12761 fi
12762
12763
12764 ac_ext=c
12765 ac_cpp='$CPP $CPPFLAGS'
12766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12769
12770 CC=$lt_save_CC
12771 LDCXX=$LD
12772 LD=$lt_save_LD
12773 GCC=$lt_save_GCC
12774 with_gnu_ldcxx=$with_gnu_ld
12775 with_gnu_ld=$lt_save_with_gnu_ld
12776 lt_cv_path_LDCXX=$lt_cv_path_LD
12777 lt_cv_path_LD=$lt_save_path_LD
12778 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12779 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12780
12781         else
12782           tagname=""
12783         fi
12784         ;;
12785
12786       F77)
12787         if test -n "$F77" && test "X$F77" != "Xno"; then
12788           
12789 ac_ext=f
12790 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12791 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12792 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12793
12794
12795 archive_cmds_need_lc_F77=no
12796 allow_undefined_flag_F77=
12797 always_export_symbols_F77=no
12798 archive_expsym_cmds_F77=
12799 export_dynamic_flag_spec_F77=
12800 hardcode_direct_F77=no
12801 hardcode_libdir_flag_spec_F77=
12802 hardcode_libdir_flag_spec_ld_F77=
12803 hardcode_libdir_separator_F77=
12804 hardcode_minus_L_F77=no
12805 hardcode_automatic_F77=no
12806 module_cmds_F77=
12807 module_expsym_cmds_F77=
12808 link_all_deplibs_F77=unknown
12809 old_archive_cmds_F77=$old_archive_cmds
12810 no_undefined_flag_F77=
12811 whole_archive_flag_spec_F77=
12812 enable_shared_with_static_runtimes_F77=no
12813
12814 # Source file extension for f77 test sources.
12815 ac_ext=f
12816
12817 # Object file extension for compiled f77 test sources.
12818 objext=o
12819 objext_F77=$objext
12820
12821 # Code to be used in simple compile tests
12822 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12823
12824 # Code to be used in simple link tests
12825 lt_simple_link_test_code="      program t\n      end\n"
12826
12827 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12828
12829 # If no C compiler was specified, use CC.
12830 LTCC=${LTCC-"$CC"}
12831
12832 # If no C compiler flags were specified, use CFLAGS.
12833 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12834
12835 # Allow CC to be a program name with arguments.
12836 compiler=$CC
12837
12838
12839 # save warnings/boilerplate of simple test code
12840 ac_outfile=conftest.$ac_objext
12841 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12842 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12843 _lt_compiler_boilerplate=`cat conftest.err`
12844 $rm conftest*
12845
12846 ac_outfile=conftest.$ac_objext
12847 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12848 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12849 _lt_linker_boilerplate=`cat conftest.err`
12850 $rm conftest*
12851
12852
12853 # Allow CC to be a program name with arguments.
12854 lt_save_CC="$CC"
12855 CC=${F77-"f77"}
12856 compiler=$CC
12857 compiler_F77=$CC
12858 for cc_temp in $compiler""; do
12859   case $cc_temp in
12860     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12861     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12862     \-*) ;;
12863     *) break;;
12864   esac
12865 done
12866 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12867
12868
12869 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12870 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12871 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12872 echo "${ECHO_T}$can_build_shared" >&6
12873
12874 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12875 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12876 test "$can_build_shared" = "no" && enable_shared=no
12877
12878 # On AIX, shared libraries and static libraries use the same namespace, and
12879 # are all built from PIC.
12880 case $host_os in
12881 aix3*)
12882   test "$enable_shared" = yes && enable_static=no
12883   if test -n "$RANLIB"; then
12884     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12885     postinstall_cmds='$RANLIB $lib'
12886   fi
12887   ;;
12888 aix4* | aix5*)
12889   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12890     test "$enable_shared" = yes && enable_static=no
12891   fi
12892   ;;
12893 esac
12894 echo "$as_me:$LINENO: result: $enable_shared" >&5
12895 echo "${ECHO_T}$enable_shared" >&6
12896
12897 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12898 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12899 # Make sure either enable_shared or enable_static is yes.
12900 test "$enable_shared" = yes || enable_static=yes
12901 echo "$as_me:$LINENO: result: $enable_static" >&5
12902 echo "${ECHO_T}$enable_static" >&6
12903
12904 GCC_F77="$G77"
12905 LD_F77="$LD"
12906
12907 lt_prog_compiler_wl_F77=
12908 lt_prog_compiler_pic_F77=
12909 lt_prog_compiler_static_F77=
12910
12911 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12912 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12913  
12914   if test "$GCC" = yes; then
12915     lt_prog_compiler_wl_F77='-Wl,'
12916     lt_prog_compiler_static_F77='-static'
12917
12918     case $host_os in
12919       aix*)
12920       # All AIX code is PIC.
12921       if test "$host_cpu" = ia64; then
12922         # AIX 5 now supports IA64 processor
12923         lt_prog_compiler_static_F77='-Bstatic'
12924       fi
12925       ;;
12926
12927     amigaos*)
12928       # FIXME: we need at least 68020 code to build shared libraries, but
12929       # adding the `-m68020' flag to GCC prevents building anything better,
12930       # like `-m68040'.
12931       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12932       ;;
12933
12934     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12935       # PIC is the default for these OSes.
12936       ;;
12937
12938     mingw* | pw32* | os2*)
12939       # This hack is so that the source file can tell whether it is being
12940       # built for inclusion in a dll (and should export symbols for example).
12941       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12942       ;;
12943
12944     darwin* | rhapsody*)
12945       # PIC is the default on this platform
12946       # Common symbols not allowed in MH_DYLIB files
12947       lt_prog_compiler_pic_F77='-fno-common'
12948       ;;
12949
12950     interix3*)
12951       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12952       # Instead, we relocate shared libraries at runtime.
12953       ;;
12954
12955     msdosdjgpp*)
12956       # Just because we use GCC doesn't mean we suddenly get shared libraries
12957       # on systems that don't support them.
12958       lt_prog_compiler_can_build_shared_F77=no
12959       enable_shared=no
12960       ;;
12961
12962     sysv4*MP*)
12963       if test -d /usr/nec; then
12964         lt_prog_compiler_pic_F77=-Kconform_pic
12965       fi
12966       ;;
12967
12968     hpux*)
12969       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12970       # not for PA HP-UX.
12971       case $host_cpu in
12972       hppa*64*|ia64*)
12973         # +Z the default
12974         ;;
12975       *)
12976         lt_prog_compiler_pic_F77='-fPIC'
12977         ;;
12978       esac
12979       ;;
12980
12981     *)
12982       lt_prog_compiler_pic_F77='-fPIC'
12983       ;;
12984     esac
12985   else
12986     # PORTME Check for flag to pass linker flags through the system compiler.
12987     case $host_os in
12988     aix*)
12989       lt_prog_compiler_wl_F77='-Wl,'
12990       if test "$host_cpu" = ia64; then
12991         # AIX 5 now supports IA64 processor
12992         lt_prog_compiler_static_F77='-Bstatic'
12993       else
12994         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12995       fi
12996       ;;
12997       darwin*)
12998         # PIC is the default on this platform
12999         # Common symbols not allowed in MH_DYLIB files
13000        case $cc_basename in
13001          xlc*)
13002          lt_prog_compiler_pic_F77='-qnocommon'
13003          lt_prog_compiler_wl_F77='-Wl,'
13004          ;;
13005        esac
13006        ;;
13007
13008     mingw* | pw32* | os2*)
13009       # This hack is so that the source file can tell whether it is being
13010       # built for inclusion in a dll (and should export symbols for example).
13011       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13012       ;;
13013
13014     hpux9* | hpux10* | hpux11*)
13015       lt_prog_compiler_wl_F77='-Wl,'
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='+Z'
13024         ;;
13025       esac
13026       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13027       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13028       ;;
13029
13030     irix5* | irix6* | nonstopux*)
13031       lt_prog_compiler_wl_F77='-Wl,'
13032       # PIC (with -KPIC) is the default.
13033       lt_prog_compiler_static_F77='-non_shared'
13034       ;;
13035
13036     newsos6)
13037       lt_prog_compiler_pic_F77='-KPIC'
13038       lt_prog_compiler_static_F77='-Bstatic'
13039       ;;
13040
13041     linux* | k*bsd*-gnu)
13042       case $cc_basename in
13043       icc* | ecc*)
13044         lt_prog_compiler_wl_F77='-Wl,'
13045         lt_prog_compiler_pic_F77='-KPIC'
13046         lt_prog_compiler_static_F77='-static'
13047         ;;
13048       pgcc* | pgf77* | pgf90* | pgf95*)
13049         # Portland Group compilers (*not* the Pentium gcc compiler,
13050         # which looks to be a dead project)
13051         lt_prog_compiler_wl_F77='-Wl,'
13052         lt_prog_compiler_pic_F77='-fpic'
13053         lt_prog_compiler_static_F77='-Bstatic'
13054         ;;
13055       ccc*)
13056         lt_prog_compiler_wl_F77='-Wl,'
13057         # All Alpha code is PIC.
13058         lt_prog_compiler_static_F77='-non_shared'
13059         ;;
13060       esac
13061       ;;
13062
13063     osf3* | osf4* | osf5*)
13064       lt_prog_compiler_wl_F77='-Wl,'
13065       # All OSF/1 code is PIC.
13066       lt_prog_compiler_static_F77='-non_shared'
13067       ;;
13068
13069     solaris*)
13070       lt_prog_compiler_pic_F77='-KPIC'
13071       lt_prog_compiler_static_F77='-Bstatic'
13072       case $cc_basename in
13073       f77* | f90* | f95*)
13074         lt_prog_compiler_wl_F77='-Qoption ld ';;
13075       *)
13076         lt_prog_compiler_wl_F77='-Wl,';;
13077       esac
13078       ;;
13079
13080     sunos4*)
13081       lt_prog_compiler_wl_F77='-Qoption ld '
13082       lt_prog_compiler_pic_F77='-PIC'
13083       lt_prog_compiler_static_F77='-Bstatic'
13084       ;;
13085
13086     sysv4 | sysv4.2uw2* | sysv4.3*)
13087       lt_prog_compiler_wl_F77='-Wl,'
13088       lt_prog_compiler_pic_F77='-KPIC'
13089       lt_prog_compiler_static_F77='-Bstatic'
13090       ;;
13091
13092     sysv4*MP*)
13093       if test -d /usr/nec ;then
13094         lt_prog_compiler_pic_F77='-Kconform_pic'
13095         lt_prog_compiler_static_F77='-Bstatic'
13096       fi
13097       ;;
13098
13099     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13100       lt_prog_compiler_wl_F77='-Wl,'
13101       lt_prog_compiler_pic_F77='-KPIC'
13102       lt_prog_compiler_static_F77='-Bstatic'
13103       ;;
13104
13105     unicos*)
13106       lt_prog_compiler_wl_F77='-Wl,'
13107       lt_prog_compiler_can_build_shared_F77=no
13108       ;;
13109
13110     uts4*)
13111       lt_prog_compiler_pic_F77='-pic'
13112       lt_prog_compiler_static_F77='-Bstatic'
13113       ;;
13114
13115     *)
13116       lt_prog_compiler_can_build_shared_F77=no
13117       ;;
13118     esac
13119   fi
13120
13121 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13122 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13123
13124 #
13125 # Check to make sure the PIC flag actually works.
13126 #
13127 if test -n "$lt_prog_compiler_pic_F77"; then
13128   
13129 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13130 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13131 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13132   echo $ECHO_N "(cached) $ECHO_C" >&6
13133 else
13134   lt_prog_compiler_pic_works_F77=no
13135   ac_outfile=conftest.$ac_objext
13136    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13137    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13138    # Insert the option either (1) after the last *FLAGS variable, or
13139    # (2) before a word containing "conftest.", or (3) at the end.
13140    # Note that $ac_compile itself does not contain backslashes and begins
13141    # with a dollar sign (not a hyphen), so the echo should work correctly.
13142    # The option is referenced via a variable to avoid confusing sed.
13143    lt_compile=`echo "$ac_compile" | $SED \
13144    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13145    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13146    -e 's:$: $lt_compiler_flag:'`
13147    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13148    (eval "$lt_compile" 2>conftest.err)
13149    ac_status=$?
13150    cat conftest.err >&5
13151    echo "$as_me:__oline__: \$? = $ac_status" >&5
13152    if (exit $ac_status) && test -s "$ac_outfile"; then
13153      # The compiler can only warn and ignore the option if not recognized
13154      # So say no if there are warnings other than the usual output.
13155      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13156      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13157      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13158        lt_prog_compiler_pic_works_F77=yes
13159      fi
13160    fi
13161    $rm conftest*
13162
13163 fi
13164 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13165 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13166
13167 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13168     case $lt_prog_compiler_pic_F77 in
13169      "" | " "*) ;;
13170      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13171      esac
13172 else
13173     lt_prog_compiler_pic_F77=
13174      lt_prog_compiler_can_build_shared_F77=no
13175 fi
13176
13177 fi
13178 case $host_os in
13179   # For platforms which do not support PIC, -DPIC is meaningless:
13180   *djgpp*)
13181     lt_prog_compiler_pic_F77=
13182     ;;
13183   *)
13184     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13185     ;;
13186 esac
13187
13188 #
13189 # Check to make sure the static flag actually works.
13190 #
13191 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13192 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13193 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13194 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13195   echo $ECHO_N "(cached) $ECHO_C" >&6
13196 else
13197   lt_prog_compiler_static_works_F77=no
13198    save_LDFLAGS="$LDFLAGS"
13199    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13200    printf "$lt_simple_link_test_code" > conftest.$ac_ext
13201    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13202      # The linker can only warn and ignore the option if not recognized
13203      # So say no if there are warnings
13204      if test -s conftest.err; then
13205        # Append any errors to the config.log.
13206        cat conftest.err 1>&5
13207        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13208        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13209        if diff conftest.exp conftest.er2 >/dev/null; then
13210          lt_prog_compiler_static_works_F77=yes
13211        fi
13212      else
13213        lt_prog_compiler_static_works_F77=yes
13214      fi
13215    fi
13216    $rm conftest*
13217    LDFLAGS="$save_LDFLAGS"
13218
13219 fi
13220 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13221 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13222
13223 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13224     :
13225 else
13226     lt_prog_compiler_static_F77=
13227 fi
13228
13229
13230 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13231 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13232 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13233   echo $ECHO_N "(cached) $ECHO_C" >&6
13234 else
13235   lt_cv_prog_compiler_c_o_F77=no
13236    $rm -r conftest 2>/dev/null
13237    mkdir conftest
13238    cd conftest
13239    mkdir out
13240    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13241
13242    lt_compiler_flag="-o out/conftest2.$ac_objext"
13243    # Insert the option either (1) after the last *FLAGS variable, or
13244    # (2) before a word containing "conftest.", or (3) at the end.
13245    # Note that $ac_compile itself does not contain backslashes and begins
13246    # with a dollar sign (not a hyphen), so the echo should work correctly.
13247    lt_compile=`echo "$ac_compile" | $SED \
13248    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13249    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13250    -e 's:$: $lt_compiler_flag:'`
13251    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13252    (eval "$lt_compile" 2>out/conftest.err)
13253    ac_status=$?
13254    cat out/conftest.err >&5
13255    echo "$as_me:__oline__: \$? = $ac_status" >&5
13256    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13257    then
13258      # The compiler can only warn and ignore the option if not recognized
13259      # So say no if there are warnings
13260      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13261      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13262      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13263        lt_cv_prog_compiler_c_o_F77=yes
13264      fi
13265    fi
13266    chmod u+w . 2>&5
13267    $rm conftest*
13268    # SGI C++ compiler will create directory out/ii_files/ for
13269    # template instantiation
13270    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13271    $rm out/* && rmdir out
13272    cd ..
13273    rmdir conftest
13274    $rm conftest*
13275
13276 fi
13277 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13278 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13279
13280
13281 hard_links="nottested"
13282 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13283   # do not overwrite the value of need_locks provided by the user
13284   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13285 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13286   hard_links=yes
13287   $rm conftest*
13288   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13289   touch conftest.a
13290   ln conftest.a conftest.b 2>&5 || hard_links=no
13291   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13292   echo "$as_me:$LINENO: result: $hard_links" >&5
13293 echo "${ECHO_T}$hard_links" >&6
13294   if test "$hard_links" = no; then
13295     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13296 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13297     need_locks=warn
13298   fi
13299 else
13300   need_locks=no
13301 fi
13302
13303 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13304 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13305
13306   runpath_var=
13307   allow_undefined_flag_F77=
13308   enable_shared_with_static_runtimes_F77=no
13309   archive_cmds_F77=
13310   archive_expsym_cmds_F77=
13311   old_archive_From_new_cmds_F77=
13312   old_archive_from_expsyms_cmds_F77=
13313   export_dynamic_flag_spec_F77=
13314   whole_archive_flag_spec_F77=
13315   thread_safe_flag_spec_F77=
13316   hardcode_libdir_flag_spec_F77=
13317   hardcode_libdir_flag_spec_ld_F77=
13318   hardcode_libdir_separator_F77=
13319   hardcode_direct_F77=no
13320   hardcode_minus_L_F77=no
13321   hardcode_shlibpath_var_F77=unsupported
13322   link_all_deplibs_F77=unknown
13323   hardcode_automatic_F77=no
13324   module_cmds_F77=
13325   module_expsym_cmds_F77=
13326   always_export_symbols_F77=no
13327   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13328   # include_expsyms should be a list of space-separated symbols to be *always*
13329   # included in the symbol list
13330   include_expsyms_F77=
13331   # exclude_expsyms can be an extended regexp of symbols to exclude
13332   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13333   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13334   # as well as any symbol that contains `d'.
13335   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13336   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13337   # platforms (ab)use it in PIC code, but their linkers get confused if
13338   # the symbol is explicitly referenced.  Since portable code cannot
13339   # rely on this symbol name, it's probably fine to never include it in
13340   # preloaded symbol tables.
13341   extract_expsyms_cmds=
13342   # Just being paranoid about ensuring that cc_basename is set.
13343   for cc_temp in $compiler""; do
13344   case $cc_temp in
13345     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13346     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13347     \-*) ;;
13348     *) break;;
13349   esac
13350 done
13351 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13352
13353   case $host_os in
13354   cygwin* | mingw* | pw32*)
13355     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13356     # When not using gcc, we currently assume that we are using
13357     # Microsoft Visual C++.
13358     if test "$GCC" != yes; then
13359       with_gnu_ld=no
13360     fi
13361     ;;
13362   interix*)
13363     # we just hope/assume this is gcc and not c89 (= MSVC++)
13364     with_gnu_ld=yes
13365     ;;
13366   openbsd*)
13367     with_gnu_ld=no
13368     ;;
13369   esac
13370
13371   ld_shlibs_F77=yes
13372   if test "$with_gnu_ld" = yes; then
13373     # If archive_cmds runs LD, not CC, wlarc should be empty
13374     wlarc='${wl}'
13375
13376     # Set some defaults for GNU ld with shared library support. These
13377     # are reset later if shared libraries are not supported. Putting them
13378     # here allows them to be overridden if necessary.
13379     runpath_var=LD_RUN_PATH
13380     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13381     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13382     # ancient GNU ld didn't support --whole-archive et. al.
13383     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13384         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13385       else
13386         whole_archive_flag_spec_F77=
13387     fi
13388     supports_anon_versioning=no
13389     case `$LD -v 2>/dev/null` in
13390       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13391       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13392       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13393       *\ 2.11.*) ;; # other 2.11 versions
13394       *) supports_anon_versioning=yes ;;
13395     esac
13396
13397     # See if GNU ld supports shared libraries.
13398     case $host_os in
13399     aix3* | aix4* | aix5*)
13400       # On AIX/PPC, the GNU linker is very broken
13401       if test "$host_cpu" != ia64; then
13402         ld_shlibs_F77=no
13403         cat <<EOF 1>&2
13404
13405 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13406 *** to be unable to reliably create shared libraries on AIX.
13407 *** Therefore, libtool is disabling shared libraries support.  If you
13408 *** really care for shared libraries, you may want to modify your PATH
13409 *** so that a non-GNU linker is found, and then restart.
13410
13411 EOF
13412       fi
13413       ;;
13414
13415     amigaos*)
13416       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)'
13417       hardcode_libdir_flag_spec_F77='-L$libdir'
13418       hardcode_minus_L_F77=yes
13419
13420       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13421       # that the semantics of dynamic libraries on AmigaOS, at least up
13422       # to version 4, is to share data among multiple programs linked
13423       # with the same dynamic library.  Since this doesn't match the
13424       # behavior of shared libraries on other platforms, we can't use
13425       # them.
13426       ld_shlibs_F77=no
13427       ;;
13428
13429     beos*)
13430       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13431         allow_undefined_flag_F77=unsupported
13432         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13433         # support --undefined.  This deserves some investigation.  FIXME
13434         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13435       else
13436         ld_shlibs_F77=no
13437       fi
13438       ;;
13439
13440     cygwin* | mingw* | pw32*)
13441       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13442       # as there is no search path for DLLs.
13443       hardcode_libdir_flag_spec_F77='-L$libdir'
13444       allow_undefined_flag_F77=unsupported
13445       always_export_symbols_F77=no
13446       enable_shared_with_static_runtimes_F77=yes
13447       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13448
13449       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13450         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13451         # If the export-symbols file already is a .def file (1st line
13452         # is EXPORTS), use it as is; otherwise, prepend...
13453         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13454           cp $export_symbols $output_objdir/$soname.def;
13455         else
13456           echo EXPORTS > $output_objdir/$soname.def;
13457           cat $export_symbols >> $output_objdir/$soname.def;
13458         fi~
13459         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13460       else
13461         ld_shlibs_F77=no
13462       fi
13463       ;;
13464
13465     interix3*)
13466       hardcode_direct_F77=no
13467       hardcode_shlibpath_var_F77=no
13468       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13469       export_dynamic_flag_spec_F77='${wl}-E'
13470       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13471       # Instead, shared libraries are loaded at an image base (0x10000000 by
13472       # default) and relocated if they conflict, which is a slow very memory
13473       # consuming and fragmenting process.  To avoid this, we pick a random,
13474       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13475       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13476       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'
13477       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'
13478       ;;
13479
13480     linux* | k*bsd*-gnu)
13481       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13482         tmp_addflag=
13483         case $cc_basename,$host_cpu in
13484         pgcc*)                          # Portland Group C compiler
13485           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'
13486           tmp_addflag=' $pic_flag'
13487           ;;
13488         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
13489           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'
13490           tmp_addflag=' $pic_flag -Mnomain' ;;
13491         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
13492           tmp_addflag=' -i_dynamic' ;;
13493         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
13494           tmp_addflag=' -i_dynamic -nofor_main' ;;
13495         ifc* | ifort*)                  # Intel Fortran compiler
13496           tmp_addflag=' -nofor_main' ;;
13497         esac
13498         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13499
13500         if test $supports_anon_versioning = yes; then
13501           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13502   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13503   $echo "local: *; };" >> $output_objdir/$libname.ver~
13504           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13505         fi
13506         link_all_deplibs_F77=no
13507       else
13508         ld_shlibs_F77=no
13509       fi
13510       ;;
13511
13512     netbsd* | netbsdelf*-gnu)
13513       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13514         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13515         wlarc=
13516       else
13517         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13518         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13519       fi
13520       ;;
13521
13522     solaris*)
13523       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13524         ld_shlibs_F77=no
13525         cat <<EOF 1>&2
13526
13527 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13528 *** create shared libraries on Solaris systems.  Therefore, libtool
13529 *** is disabling shared libraries support.  We urge you to upgrade GNU
13530 *** binutils to release 2.9.1 or newer.  Another option is to modify
13531 *** your PATH or compiler configuration so that the native linker is
13532 *** used, and then restart.
13533
13534 EOF
13535       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13536         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13537         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13538       else
13539         ld_shlibs_F77=no
13540       fi
13541       ;;
13542
13543     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13544       case `$LD -v 2>&1` in
13545         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 
13546         ld_shlibs_F77=no
13547         cat <<_LT_EOF 1>&2
13548
13549 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13550 *** reliably create shared libraries on SCO systems.  Therefore, libtool
13551 *** is disabling shared libraries support.  We urge you to upgrade GNU
13552 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13553 *** your PATH or compiler configuration so that the native linker is
13554 *** used, and then restart.
13555
13556 _LT_EOF
13557         ;;
13558         *)
13559           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13560             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13561             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13562             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13563           else
13564             ld_shlibs_F77=no
13565           fi
13566         ;;
13567       esac
13568       ;;
13569
13570     sunos4*)
13571       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13572       wlarc=
13573       hardcode_direct_F77=yes
13574       hardcode_shlibpath_var_F77=no
13575       ;;
13576
13577     *)
13578       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13579         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13580         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13581       else
13582         ld_shlibs_F77=no
13583       fi
13584       ;;
13585     esac
13586
13587     if test "$ld_shlibs_F77" = no; then
13588       runpath_var=
13589       hardcode_libdir_flag_spec_F77=
13590       export_dynamic_flag_spec_F77=
13591       whole_archive_flag_spec_F77=
13592     fi
13593   else
13594     # PORTME fill in a description of your system's linker (not GNU ld)
13595     case $host_os in
13596     aix3*)
13597       allow_undefined_flag_F77=unsupported
13598       always_export_symbols_F77=yes
13599       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'
13600       # Note: this linker hardcodes the directories in LIBPATH if there
13601       # are no directories specified by -L.
13602       hardcode_minus_L_F77=yes
13603       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13604         # Neither direct hardcoding nor static linking is supported with a
13605         # broken collect2.
13606         hardcode_direct_F77=unsupported
13607       fi
13608       ;;
13609
13610     aix4* | aix5*)
13611       if test "$host_cpu" = ia64; then
13612         # On IA64, the linker does run time linking by default, so we don't
13613         # have to do anything special.
13614         aix_use_runtimelinking=no
13615         exp_sym_flag='-Bexport'
13616         no_entry_flag=""
13617       else
13618         # If we're using GNU nm, then we don't want the "-C" option.
13619         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13620         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13621           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'
13622         else
13623           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'
13624         fi
13625         aix_use_runtimelinking=no
13626
13627         # Test if we are trying to use run time linking or normal
13628         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13629         # need to do runtime linking.
13630         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13631           for ld_flag in $LDFLAGS; do
13632           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13633             aix_use_runtimelinking=yes
13634             break
13635           fi
13636           done
13637           ;;
13638         esac
13639
13640         exp_sym_flag='-bexport'
13641         no_entry_flag='-bnoentry'
13642       fi
13643
13644       # When large executables or shared objects are built, AIX ld can
13645       # have problems creating the table of contents.  If linking a library
13646       # or program results in "error TOC overflow" add -mminimal-toc to
13647       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13648       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13649
13650       archive_cmds_F77=''
13651       hardcode_direct_F77=yes
13652       hardcode_libdir_separator_F77=':'
13653       link_all_deplibs_F77=yes
13654
13655       if test "$GCC" = yes; then
13656         case $host_os in aix4.[012]|aix4.[012].*)
13657         # We only want to do this on AIX 4.2 and lower, the check
13658         # below for broken collect2 doesn't work under 4.3+
13659           collect2name=`${CC} -print-prog-name=collect2`
13660           if test -f "$collect2name" && \
13661            strings "$collect2name" | grep resolve_lib_name >/dev/null
13662           then
13663           # We have reworked collect2
13664           hardcode_direct_F77=yes
13665           else
13666           # We have old collect2
13667           hardcode_direct_F77=unsupported
13668           # It fails to find uninstalled libraries when the uninstalled
13669           # path is not listed in the libpath.  Setting hardcode_minus_L
13670           # to unsupported forces relinking
13671           hardcode_minus_L_F77=yes
13672           hardcode_libdir_flag_spec_F77='-L$libdir'
13673           hardcode_libdir_separator_F77=
13674           fi
13675           ;;
13676         esac
13677         shared_flag='-shared'
13678         if test "$aix_use_runtimelinking" = yes; then
13679           shared_flag="$shared_flag "'${wl}-G'
13680         fi
13681       else
13682         # not using gcc
13683         if test "$host_cpu" = ia64; then
13684         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13685         # chokes on -Wl,-G. The following line is correct:
13686           shared_flag='-G'
13687         else
13688           if test "$aix_use_runtimelinking" = yes; then
13689             shared_flag='${wl}-G'
13690           else
13691             shared_flag='${wl}-bM:SRE'
13692           fi
13693         fi
13694       fi
13695
13696       # It seems that -bexpall does not export symbols beginning with
13697       # underscore (_), so it is better to generate a list of symbols to export.
13698       always_export_symbols_F77=yes
13699       if test "$aix_use_runtimelinking" = yes; then
13700         # Warning - without using the other runtime loading flags (-brtl),
13701         # -berok will link without error, but may produce a broken library.
13702         allow_undefined_flag_F77='-berok'
13703        # Determine the default libpath from the value encoded in an empty executable.
13704        cat >conftest.$ac_ext <<_ACEOF
13705       program main
13706
13707       end
13708 _ACEOF
13709 rm -f conftest.$ac_objext conftest$ac_exeext
13710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13711   (eval $ac_link) 2>conftest.er1
13712   ac_status=$?
13713   grep -v '^ *+' conftest.er1 >conftest.err
13714   rm -f conftest.er1
13715   cat conftest.err >&5
13716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717   (exit $ac_status); } &&
13718          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
13719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13720   (eval $ac_try) 2>&5
13721   ac_status=$?
13722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723   (exit $ac_status); }; } &&
13724          { ac_try='test -s conftest$ac_exeext'
13725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13726   (eval $ac_try) 2>&5
13727   ac_status=$?
13728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729   (exit $ac_status); }; }; then
13730   
13731 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13732 }'`
13733 # Check for a 64-bit object if we didn't find anything.
13734 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; }
13735 }'`; fi
13736 else
13737   echo "$as_me: failed program was:" >&5
13738 sed 's/^/| /' conftest.$ac_ext >&5
13739
13740 fi
13741 rm -f conftest.err conftest.$ac_objext \
13742       conftest$ac_exeext conftest.$ac_ext
13743 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13744
13745        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13746         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"
13747        else
13748         if test "$host_cpu" = ia64; then
13749           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13750           allow_undefined_flag_F77="-z nodefs"
13751           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"
13752         else
13753          # Determine the default libpath from the value encoded in an empty executable.
13754          cat >conftest.$ac_ext <<_ACEOF
13755       program main
13756
13757       end
13758 _ACEOF
13759 rm -f conftest.$ac_objext conftest$ac_exeext
13760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13761   (eval $ac_link) 2>conftest.er1
13762   ac_status=$?
13763   grep -v '^ *+' conftest.er1 >conftest.err
13764   rm -f conftest.er1
13765   cat conftest.err >&5
13766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13767   (exit $ac_status); } &&
13768          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
13769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13770   (eval $ac_try) 2>&5
13771   ac_status=$?
13772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13773   (exit $ac_status); }; } &&
13774          { ac_try='test -s conftest$ac_exeext'
13775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13776   (eval $ac_try) 2>&5
13777   ac_status=$?
13778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13779   (exit $ac_status); }; }; then
13780   
13781 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13782 }'`
13783 # Check for a 64-bit object if we didn't find anything.
13784 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; }
13785 }'`; fi
13786 else
13787   echo "$as_me: failed program was:" >&5
13788 sed 's/^/| /' conftest.$ac_ext >&5
13789
13790 fi
13791 rm -f conftest.err conftest.$ac_objext \
13792       conftest$ac_exeext conftest.$ac_ext
13793 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13794
13795          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13796           # Warning - without using the other run time loading flags,
13797           # -berok will link without error, but may produce a broken library.
13798           no_undefined_flag_F77=' ${wl}-bernotok'
13799           allow_undefined_flag_F77=' ${wl}-berok'
13800           # Exported symbols can be pulled into shared objects from archives
13801           whole_archive_flag_spec_F77='$convenience'
13802           archive_cmds_need_lc_F77=yes
13803           # This is similar to how AIX traditionally builds its shared libraries.
13804           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'
13805         fi
13806       fi
13807       ;;
13808
13809     amigaos*)
13810       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)'
13811       hardcode_libdir_flag_spec_F77='-L$libdir'
13812       hardcode_minus_L_F77=yes
13813       # see comment about different semantics on the GNU ld section
13814       ld_shlibs_F77=no
13815       ;;
13816
13817     bsdi[45]*)
13818       export_dynamic_flag_spec_F77=-rdynamic
13819       ;;
13820
13821     cygwin* | mingw* | pw32*)
13822       # When not using gcc, we currently assume that we are using
13823       # Microsoft Visual C++.
13824       # hardcode_libdir_flag_spec is actually meaningless, as there is
13825       # no search path for DLLs.
13826       hardcode_libdir_flag_spec_F77=' '
13827       allow_undefined_flag_F77=unsupported
13828       # Tell ltmain to make .lib files, not .a files.
13829       libext=lib
13830       # Tell ltmain to make .dll files, not .so files.
13831       shrext_cmds=".dll"
13832       # FIXME: Setting linknames here is a bad hack.
13833       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13834       # The linker will automatically build a .lib file if we build a DLL.
13835       old_archive_From_new_cmds_F77='true'
13836       # FIXME: Should let the user specify the lib program.
13837       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13838       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
13839       enable_shared_with_static_runtimes_F77=yes
13840       ;;
13841
13842     darwin* | rhapsody*)
13843       case $host_os in
13844         rhapsody* | darwin1.[012])
13845          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13846          ;;
13847        *) # Darwin 1.3 on
13848          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13849            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13850          else
13851            case ${MACOSX_DEPLOYMENT_TARGET} in
13852              10.[012])
13853                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13854                ;;
13855              10.*)
13856                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13857                ;;
13858            esac
13859          fi
13860          ;;
13861       esac
13862       archive_cmds_need_lc_F77=no
13863       hardcode_direct_F77=no
13864       hardcode_automatic_F77=yes
13865       hardcode_shlibpath_var_F77=unsupported
13866       whole_archive_flag_spec_F77=''
13867       link_all_deplibs_F77=yes
13868     if test "$GCC" = yes ; then
13869         output_verbose_link_cmd='echo'
13870         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13871       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13872       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13873       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}'
13874       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}'
13875     else
13876       case $cc_basename in
13877         xlc*)
13878          output_verbose_link_cmd='echo'
13879          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13880          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13881           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13882          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}'
13883           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}'
13884           ;;
13885        *)
13886          ld_shlibs_F77=no
13887           ;;
13888       esac
13889     fi
13890       ;;
13891
13892     dgux*)
13893       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13894       hardcode_libdir_flag_spec_F77='-L$libdir'
13895       hardcode_shlibpath_var_F77=no
13896       ;;
13897
13898     freebsd1*)
13899       ld_shlibs_F77=no
13900       ;;
13901
13902     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13903     # support.  Future versions do this automatically, but an explicit c++rt0.o
13904     # does not break anything, and helps significantly (at the cost of a little
13905     # extra space).
13906     freebsd2.2*)
13907       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13908       hardcode_libdir_flag_spec_F77='-R$libdir'
13909       hardcode_direct_F77=yes
13910       hardcode_shlibpath_var_F77=no
13911       ;;
13912
13913     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13914     freebsd2*)
13915       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13916       hardcode_direct_F77=yes
13917       hardcode_minus_L_F77=yes
13918       hardcode_shlibpath_var_F77=no
13919       ;;
13920
13921     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13922     freebsd* | dragonfly*)
13923       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13924       hardcode_libdir_flag_spec_F77='-R$libdir'
13925       hardcode_direct_F77=yes
13926       hardcode_shlibpath_var_F77=no
13927       ;;
13928
13929     hpux9*)
13930       if test "$GCC" = yes; then
13931         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'
13932       else
13933         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'
13934       fi
13935       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13936       hardcode_libdir_separator_F77=:
13937       hardcode_direct_F77=yes
13938
13939       # hardcode_minus_L: Not really in the search PATH,
13940       # but as the default location of the library.
13941       hardcode_minus_L_F77=yes
13942       export_dynamic_flag_spec_F77='${wl}-E'
13943       ;;
13944
13945     hpux10*)
13946       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13947         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13948       else
13949         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13950       fi
13951       if test "$with_gnu_ld" = no; then
13952         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13953         hardcode_libdir_separator_F77=:
13954
13955         hardcode_direct_F77=yes
13956         export_dynamic_flag_spec_F77='${wl}-E'
13957
13958         # hardcode_minus_L: Not really in the search PATH,
13959         # but as the default location of the library.
13960         hardcode_minus_L_F77=yes
13961       fi
13962       ;;
13963
13964     hpux11*)
13965       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13966         case $host_cpu in
13967         hppa*64*)
13968           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13969           ;;
13970         ia64*)
13971           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13972           ;;
13973         *)
13974           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13975           ;;
13976         esac
13977       else
13978         case $host_cpu in
13979         hppa*64*)
13980           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13981           ;;
13982         ia64*)
13983           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13984           ;;
13985         *)
13986           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13987           ;;
13988         esac
13989       fi
13990       if test "$with_gnu_ld" = no; then
13991         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13992         hardcode_libdir_separator_F77=:
13993
13994         case $host_cpu in
13995         hppa*64*|ia64*)
13996           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13997           hardcode_direct_F77=no
13998           hardcode_shlibpath_var_F77=no
13999           ;;
14000         *)
14001           hardcode_direct_F77=yes
14002           export_dynamic_flag_spec_F77='${wl}-E'
14003
14004           # hardcode_minus_L: Not really in the search PATH,
14005           # but as the default location of the library.
14006           hardcode_minus_L_F77=yes
14007           ;;
14008         esac
14009       fi
14010       ;;
14011
14012     irix5* | irix6* | nonstopux*)
14013       if test "$GCC" = yes; then
14014         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'
14015       else
14016         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'
14017         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14018       fi
14019       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14020       hardcode_libdir_separator_F77=:
14021       link_all_deplibs_F77=yes
14022       ;;
14023
14024     netbsd* | netbsdelf*-gnu)
14025       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14026         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14027       else
14028         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14029       fi
14030       hardcode_libdir_flag_spec_F77='-R$libdir'
14031       hardcode_direct_F77=yes
14032       hardcode_shlibpath_var_F77=no
14033       ;;
14034
14035     newsos6)
14036       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14037       hardcode_direct_F77=yes
14038       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14039       hardcode_libdir_separator_F77=:
14040       hardcode_shlibpath_var_F77=no
14041       ;;
14042
14043     openbsd*)
14044       hardcode_direct_F77=yes
14045       hardcode_shlibpath_var_F77=no
14046       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14047         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14048         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14049         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14050         export_dynamic_flag_spec_F77='${wl}-E'
14051       else
14052        case $host_os in
14053          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14054            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14055            hardcode_libdir_flag_spec_F77='-R$libdir'
14056            ;;
14057          *)
14058            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14059            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14060            ;;
14061        esac
14062       fi
14063       ;;
14064
14065     os2*)
14066       hardcode_libdir_flag_spec_F77='-L$libdir'
14067       hardcode_minus_L_F77=yes
14068       allow_undefined_flag_F77=unsupported
14069       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'
14070       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14071       ;;
14072
14073     osf3*)
14074       if test "$GCC" = yes; then
14075         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14076         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'
14077       else
14078         allow_undefined_flag_F77=' -expect_unresolved \*'
14079         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'
14080       fi
14081       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14082       hardcode_libdir_separator_F77=:
14083       ;;
14084
14085     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14086       if test "$GCC" = yes; then
14087         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14088         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'
14089         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14090       else
14091         allow_undefined_flag_F77=' -expect_unresolved \*'
14092         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'
14093         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~
14094         $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'
14095
14096         # Both c and cxx compiler support -rpath directly
14097         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14098       fi
14099       hardcode_libdir_separator_F77=:
14100       ;;
14101
14102     solaris*)
14103       no_undefined_flag_F77=' -z text'
14104       if test "$GCC" = yes; then
14105         wlarc='${wl}'
14106         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14107         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14108           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14109       else
14110         wlarc=''
14111         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14112         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14113         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14114       fi
14115       hardcode_libdir_flag_spec_F77='-R$libdir'
14116       hardcode_shlibpath_var_F77=no
14117       case $host_os in
14118       solaris2.[0-5] | solaris2.[0-5].*) ;;
14119       *)
14120         # The compiler driver will combine linker options so we
14121         # cannot just pass the convience library names through
14122         # without $wl, iff we do not link with $LD.
14123         # Luckily, gcc supports the same syntax we need for Sun Studio.
14124         # Supported since Solaris 2.6 (maybe 2.5.1?)
14125         case $wlarc in
14126         '')
14127           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14128         *)
14129           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' ;;
14130         esac ;;
14131       esac
14132       link_all_deplibs_F77=yes
14133       ;;
14134
14135     sunos4*)
14136       if test "x$host_vendor" = xsequent; then
14137         # Use $CC to link under sequent, because it throws in some extra .o
14138         # files that make .init and .fini sections work.
14139         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14140       else
14141         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14142       fi
14143       hardcode_libdir_flag_spec_F77='-L$libdir'
14144       hardcode_direct_F77=yes
14145       hardcode_minus_L_F77=yes
14146       hardcode_shlibpath_var_F77=no
14147       ;;
14148
14149     sysv4)
14150       case $host_vendor in
14151         sni)
14152           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14153           hardcode_direct_F77=yes # is this really true???
14154         ;;
14155         siemens)
14156           ## LD is ld it makes a PLAMLIB
14157           ## CC just makes a GrossModule.
14158           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14159           reload_cmds_F77='$CC -r -o $output$reload_objs'
14160           hardcode_direct_F77=no
14161         ;;
14162         motorola)
14163           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14164           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14165         ;;
14166       esac
14167       runpath_var='LD_RUN_PATH'
14168       hardcode_shlibpath_var_F77=no
14169       ;;
14170
14171     sysv4.3*)
14172       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14173       hardcode_shlibpath_var_F77=no
14174       export_dynamic_flag_spec_F77='-Bexport'
14175       ;;
14176
14177     sysv4*MP*)
14178       if test -d /usr/nec; then
14179         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14180         hardcode_shlibpath_var_F77=no
14181         runpath_var=LD_RUN_PATH
14182         hardcode_runpath_var=yes
14183         ld_shlibs_F77=yes
14184       fi
14185       ;;
14186
14187     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14188       no_undefined_flag_F77='${wl}-z,text'
14189       archive_cmds_need_lc_F77=no
14190       hardcode_shlibpath_var_F77=no
14191       runpath_var='LD_RUN_PATH'
14192
14193       if test "$GCC" = yes; then
14194         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14195         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14196       else
14197         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14198         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14199       fi
14200       ;;
14201
14202     sysv5* | sco3.2v5* | sco5v6*)
14203       # Note: We can NOT use -z defs as we might desire, because we do not
14204       # link with -lc, and that would cause any symbols used from libc to
14205       # always be unresolved, which means just about no library would
14206       # ever link correctly.  If we're not using GNU ld we use -z text
14207       # though, which does catch some bad symbols but isn't as heavy-handed
14208       # as -z defs.
14209       no_undefined_flag_F77='${wl}-z,text'
14210       allow_undefined_flag_F77='${wl}-z,nodefs'
14211       archive_cmds_need_lc_F77=no
14212       hardcode_shlibpath_var_F77=no
14213       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14214       hardcode_libdir_separator_F77=':'
14215       link_all_deplibs_F77=yes
14216       export_dynamic_flag_spec_F77='${wl}-Bexport'
14217       runpath_var='LD_RUN_PATH'
14218
14219       if test "$GCC" = yes; then
14220         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14221         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14222       else
14223         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14224         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14225       fi
14226       ;;
14227
14228     uts4*)
14229       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14230       hardcode_libdir_flag_spec_F77='-L$libdir'
14231       hardcode_shlibpath_var_F77=no
14232       ;;
14233
14234     *)
14235       ld_shlibs_F77=no
14236       ;;
14237     esac
14238   fi
14239
14240 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14241 echo "${ECHO_T}$ld_shlibs_F77" >&6
14242 test "$ld_shlibs_F77" = no && can_build_shared=no
14243
14244 #
14245 # Do we need to explicitly link libc?
14246 #
14247 case "x$archive_cmds_need_lc_F77" in
14248 x|xyes)
14249   # Assume -lc should be added
14250   archive_cmds_need_lc_F77=yes
14251
14252   if test "$enable_shared" = yes && test "$GCC" = yes; then
14253     case $archive_cmds_F77 in
14254     *'~'*)
14255       # FIXME: we may have to deal with multi-command sequences.
14256       ;;
14257     '$CC '*)
14258       # Test whether the compiler implicitly links with -lc since on some
14259       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14260       # to ld, don't add -lc before -lgcc.
14261       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14262 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14263       $rm conftest*
14264       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14265
14266       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14267   (eval $ac_compile) 2>&5
14268   ac_status=$?
14269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270   (exit $ac_status); } 2>conftest.err; then
14271         soname=conftest
14272         lib=conftest
14273         libobjs=conftest.$ac_objext
14274         deplibs=
14275         wl=$lt_prog_compiler_wl_F77
14276         pic_flag=$lt_prog_compiler_pic_F77
14277         compiler_flags=-v
14278         linker_flags=-v
14279         verstring=
14280         output_objdir=.
14281         libname=conftest
14282         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14283         allow_undefined_flag_F77=
14284         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14285   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14286   ac_status=$?
14287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14288   (exit $ac_status); }
14289         then
14290           archive_cmds_need_lc_F77=no
14291         else
14292           archive_cmds_need_lc_F77=yes
14293         fi
14294         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14295       else
14296         cat conftest.err 1>&5
14297       fi
14298       $rm conftest*
14299       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14300 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14301       ;;
14302     esac
14303   fi
14304   ;;
14305 esac
14306
14307 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14308 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14309 library_names_spec=
14310 libname_spec='lib$name'
14311 soname_spec=
14312 shrext_cmds=".so"
14313 postinstall_cmds=
14314 postuninstall_cmds=
14315 finish_cmds=
14316 finish_eval=
14317 shlibpath_var=
14318 shlibpath_overrides_runpath=unknown
14319 version_type=none
14320 dynamic_linker="$host_os ld.so"
14321 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14322 if test "$GCC" = yes; then
14323   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14324   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14325     # if the path contains ";" then we assume it to be the separator
14326     # otherwise default to the standard path separator (i.e. ":") - it is
14327     # assumed that no part of a normal pathname contains ";" but that should
14328     # okay in the real world where ";" in dirpaths is itself problematic.
14329     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14330   else
14331     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14332   fi
14333 else
14334   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14335 fi
14336 need_lib_prefix=unknown
14337 hardcode_into_libs=no
14338
14339 # when you set need_version to no, make sure it does not cause -set_version
14340 # flags to be left without arguments
14341 need_version=unknown
14342
14343 case $host_os in
14344 aix3*)
14345   version_type=linux
14346   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14347   shlibpath_var=LIBPATH
14348
14349   # AIX 3 has no versioning support, so we append a major version to the name.
14350   soname_spec='${libname}${release}${shared_ext}$major'
14351   ;;
14352
14353 aix4* | aix5*)
14354   version_type=linux
14355   need_lib_prefix=no
14356   need_version=no
14357   hardcode_into_libs=yes
14358   if test "$host_cpu" = ia64; then
14359     # AIX 5 supports IA64
14360     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14361     shlibpath_var=LD_LIBRARY_PATH
14362   else
14363     # With GCC up to 2.95.x, collect2 would create an import file
14364     # for dependence libraries.  The import file would start with
14365     # the line `#! .'.  This would cause the generated library to
14366     # depend on `.', always an invalid library.  This was fixed in
14367     # development snapshots of GCC prior to 3.0.
14368     case $host_os in
14369       aix4 | aix4.[01] | aix4.[01].*)
14370       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14371            echo ' yes '
14372            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14373         :
14374       else
14375         can_build_shared=no
14376       fi
14377       ;;
14378     esac
14379     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14380     # soname into executable. Probably we can add versioning support to
14381     # collect2, so additional links can be useful in future.
14382     if test "$aix_use_runtimelinking" = yes; then
14383       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14384       # instead of lib<name>.a to let people know that these are not
14385       # typical AIX shared libraries.
14386       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14387     else
14388       # We preserve .a as extension for shared libraries through AIX4.2
14389       # and later when we are not doing run time linking.
14390       library_names_spec='${libname}${release}.a $libname.a'
14391       soname_spec='${libname}${release}${shared_ext}$major'
14392     fi
14393     shlibpath_var=LIBPATH
14394   fi
14395   ;;
14396
14397 amigaos*)
14398   library_names_spec='$libname.ixlibrary $libname.a'
14399   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14400   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'
14401   ;;
14402
14403 beos*)
14404   library_names_spec='${libname}${shared_ext}'
14405   dynamic_linker="$host_os ld.so"
14406   shlibpath_var=LIBRARY_PATH
14407   ;;
14408
14409 bsdi[45]*)
14410   version_type=linux
14411   need_version=no
14412   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14413   soname_spec='${libname}${release}${shared_ext}$major'
14414   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14415   shlibpath_var=LD_LIBRARY_PATH
14416   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14417   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14418   # the default ld.so.conf also contains /usr/contrib/lib and
14419   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14420   # libtool to hard-code these into programs
14421   ;;
14422
14423 cygwin* | mingw* | pw32*)
14424   version_type=windows
14425   shrext_cmds=".dll"
14426   need_version=no
14427   need_lib_prefix=no
14428
14429   case $GCC,$host_os in
14430   yes,cygwin* | yes,mingw* | yes,pw32*)
14431     library_names_spec='$libname.dll.a'
14432     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14433     postinstall_cmds='base_file=`basename \${file}`~
14434       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14435       dldir=$destdir/`dirname \$dlpath`~
14436       test -d \$dldir || mkdir -p \$dldir~
14437       $install_prog $dir/$dlname \$dldir/$dlname~
14438       chmod a+x \$dldir/$dlname'
14439     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14440       dlpath=$dir/\$dldll~
14441        $rm \$dlpath'
14442     shlibpath_overrides_runpath=yes
14443
14444     case $host_os in
14445     cygwin*)
14446       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14447       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14448       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14449       ;;
14450     mingw*)
14451       # MinGW DLLs use traditional 'lib' prefix
14452       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14453       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14454       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14455         # It is most probably a Windows format PATH printed by
14456         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14457         # path with ; separators, and with drive letters. We can handle the
14458         # drive letters (cygwin fileutils understands them), so leave them,
14459         # especially as we might pass files found there to a mingw objdump,
14460         # which wouldn't understand a cygwinified path. Ahh.
14461         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14462       else
14463         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14464       fi
14465       ;;
14466     pw32*)
14467       # pw32 DLLs use 'pw' prefix rather than 'lib'
14468       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14469       ;;
14470     esac
14471     ;;
14472
14473   *)
14474     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14475     ;;
14476   esac
14477   dynamic_linker='Win32 ld.exe'
14478   # FIXME: first we should search . and the directory the executable is in
14479   shlibpath_var=PATH
14480   ;;
14481
14482 darwin* | rhapsody*)
14483   dynamic_linker="$host_os dyld"
14484   version_type=darwin
14485   need_lib_prefix=no
14486   need_version=no
14487   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14488   soname_spec='${libname}${release}${major}$shared_ext'
14489   shlibpath_overrides_runpath=yes
14490   shlibpath_var=DYLD_LIBRARY_PATH
14491   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14492   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14493   if test "$GCC" = yes; then
14494     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"`
14495   else
14496     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14497   fi
14498   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14499   ;;
14500
14501 dgux*)
14502   version_type=linux
14503   need_lib_prefix=no
14504   need_version=no
14505   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14506   soname_spec='${libname}${release}${shared_ext}$major'
14507   shlibpath_var=LD_LIBRARY_PATH
14508   ;;
14509
14510 freebsd1*)
14511   dynamic_linker=no
14512   ;;
14513
14514 freebsd* | dragonfly*)
14515   # DragonFly does not have aout.  When/if they implement a new
14516   # versioning mechanism, adjust this.
14517   if test -x /usr/bin/objformat; then
14518     objformat=`/usr/bin/objformat`
14519   else
14520     case $host_os in
14521     freebsd[123]*) objformat=aout ;;
14522     *) objformat=elf ;;
14523     esac
14524   fi
14525   version_type=freebsd-$objformat
14526   case $version_type in
14527     freebsd-elf*)
14528       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14529       need_version=no
14530       need_lib_prefix=no
14531       ;;
14532     freebsd-*)
14533       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14534       need_version=yes
14535       ;;
14536   esac
14537   shlibpath_var=LD_LIBRARY_PATH
14538   case $host_os in
14539   freebsd2*)
14540     shlibpath_overrides_runpath=yes
14541     ;;
14542   freebsd3.[01]* | freebsdelf3.[01]*)
14543     shlibpath_overrides_runpath=yes
14544     hardcode_into_libs=yes
14545     ;;
14546   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14547   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14548     shlibpath_overrides_runpath=no
14549     hardcode_into_libs=yes
14550     ;;
14551   freebsd*) # from 4.6 on
14552     shlibpath_overrides_runpath=yes
14553     hardcode_into_libs=yes
14554     ;;
14555   esac
14556   ;;
14557
14558 gnu*)
14559   version_type=linux
14560   need_lib_prefix=no
14561   need_version=no
14562   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14563   soname_spec='${libname}${release}${shared_ext}$major'
14564   shlibpath_var=LD_LIBRARY_PATH
14565   hardcode_into_libs=yes
14566   ;;
14567
14568 hpux9* | hpux10* | hpux11*)
14569   # Give a soname corresponding to the major version so that dld.sl refuses to
14570   # link against other versions.
14571   version_type=sunos
14572   need_lib_prefix=no
14573   need_version=no
14574   case $host_cpu in
14575   ia64*)
14576     shrext_cmds='.so'
14577     hardcode_into_libs=yes
14578     dynamic_linker="$host_os dld.so"
14579     shlibpath_var=LD_LIBRARY_PATH
14580     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14581     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14582     soname_spec='${libname}${release}${shared_ext}$major'
14583     if test "X$HPUX_IA64_MODE" = X32; then
14584       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14585     else
14586       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14587     fi
14588     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14589     ;;
14590    hppa*64*)
14591      shrext_cmds='.sl'
14592      hardcode_into_libs=yes
14593      dynamic_linker="$host_os dld.sl"
14594      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14595      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14596      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14597      soname_spec='${libname}${release}${shared_ext}$major'
14598      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14599      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14600      ;;
14601    *)
14602     shrext_cmds='.sl'
14603     dynamic_linker="$host_os dld.sl"
14604     shlibpath_var=SHLIB_PATH
14605     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14606     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14607     soname_spec='${libname}${release}${shared_ext}$major'
14608     ;;
14609   esac
14610   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14611   postinstall_cmds='chmod 555 $lib'
14612   ;;
14613
14614 interix3*)
14615   version_type=linux
14616   need_lib_prefix=no
14617   need_version=no
14618   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14619   soname_spec='${libname}${release}${shared_ext}$major'
14620   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14621   shlibpath_var=LD_LIBRARY_PATH
14622   shlibpath_overrides_runpath=no
14623   hardcode_into_libs=yes
14624   ;;
14625
14626 irix5* | irix6* | nonstopux*)
14627   case $host_os in
14628     nonstopux*) version_type=nonstopux ;;
14629     *)
14630         if test "$lt_cv_prog_gnu_ld" = yes; then
14631                 version_type=linux
14632         else
14633                 version_type=irix
14634         fi ;;
14635   esac
14636   need_lib_prefix=no
14637   need_version=no
14638   soname_spec='${libname}${release}${shared_ext}$major'
14639   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14640   case $host_os in
14641   irix5* | nonstopux*)
14642     libsuff= shlibsuff=
14643     ;;
14644   *)
14645     case $LD in # libtool.m4 will add one of these switches to LD
14646     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14647       libsuff= shlibsuff= libmagic=32-bit;;
14648     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14649       libsuff=32 shlibsuff=N32 libmagic=N32;;
14650     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14651       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14652     *) libsuff= shlibsuff= libmagic=never-match;;
14653     esac
14654     ;;
14655   esac
14656   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14657   shlibpath_overrides_runpath=no
14658   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14659   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14660   hardcode_into_libs=yes
14661   ;;
14662
14663 # No shared lib support for Linux oldld, aout, or coff.
14664 linux*oldld* | linux*aout* | linux*coff*)
14665   dynamic_linker=no
14666   ;;
14667
14668 # This must be Linux ELF.
14669 linux* | k*bsd*-gnu)
14670   version_type=linux
14671   need_lib_prefix=no
14672   need_version=no
14673   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14674   soname_spec='${libname}${release}${shared_ext}$major'
14675   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14676   shlibpath_var=LD_LIBRARY_PATH
14677   shlibpath_overrides_runpath=no
14678   # This implies no fast_install, which is unacceptable.
14679   # Some rework will be needed to allow for fast_install
14680   # before this can be enabled.
14681   hardcode_into_libs=yes
14682
14683   # Append ld.so.conf contents to the search path
14684   if test -f /etc/ld.so.conf; then
14685     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' ' '`
14686     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14687   fi
14688
14689   # We used to test for /lib/ld.so.1 and disable shared libraries on
14690   # powerpc, because MkLinux only supported shared libraries with the
14691   # GNU dynamic linker.  Since this was broken with cross compilers,
14692   # most powerpc-linux boxes support dynamic linking these days and
14693   # people can always --disable-shared, the test was removed, and we
14694   # assume the GNU/Linux dynamic linker is in use.
14695   dynamic_linker='GNU/Linux ld.so'
14696   ;;
14697
14698 netbsdelf*-gnu)
14699   version_type=linux
14700   need_lib_prefix=no
14701   need_version=no
14702   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14703   soname_spec='${libname}${release}${shared_ext}$major'
14704   shlibpath_var=LD_LIBRARY_PATH
14705   shlibpath_overrides_runpath=no
14706   hardcode_into_libs=yes
14707   dynamic_linker='NetBSD ld.elf_so'
14708   ;;
14709
14710 netbsd*)
14711   version_type=sunos
14712   need_lib_prefix=no
14713   need_version=no
14714   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14715     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14716     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14717     dynamic_linker='NetBSD (a.out) ld.so'
14718   else
14719     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14720     soname_spec='${libname}${release}${shared_ext}$major'
14721     dynamic_linker='NetBSD ld.elf_so'
14722   fi
14723   shlibpath_var=LD_LIBRARY_PATH
14724   shlibpath_overrides_runpath=yes
14725   hardcode_into_libs=yes
14726   ;;
14727
14728 newsos6)
14729   version_type=linux
14730   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14731   shlibpath_var=LD_LIBRARY_PATH
14732   shlibpath_overrides_runpath=yes
14733   ;;
14734
14735 nto-qnx*)
14736   version_type=linux
14737   need_lib_prefix=no
14738   need_version=no
14739   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14740   soname_spec='${libname}${release}${shared_ext}$major'
14741   shlibpath_var=LD_LIBRARY_PATH
14742   shlibpath_overrides_runpath=yes
14743   ;;
14744
14745 openbsd*)
14746   version_type=sunos
14747   sys_lib_dlsearch_path_spec="/usr/lib"
14748   need_lib_prefix=no
14749   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14750   case $host_os in
14751     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14752     *)                         need_version=no  ;;
14753   esac
14754   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14755   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14756   shlibpath_var=LD_LIBRARY_PATH
14757   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14758     case $host_os in
14759       openbsd2.[89] | openbsd2.[89].*)
14760         shlibpath_overrides_runpath=no
14761         ;;
14762       *)
14763         shlibpath_overrides_runpath=yes
14764         ;;
14765       esac
14766   else
14767     shlibpath_overrides_runpath=yes
14768   fi
14769   ;;
14770
14771 os2*)
14772   libname_spec='$name'
14773   shrext_cmds=".dll"
14774   need_lib_prefix=no
14775   library_names_spec='$libname${shared_ext} $libname.a'
14776   dynamic_linker='OS/2 ld.exe'
14777   shlibpath_var=LIBPATH
14778   ;;
14779
14780 osf3* | osf4* | osf5*)
14781   version_type=osf
14782   need_lib_prefix=no
14783   need_version=no
14784   soname_spec='${libname}${release}${shared_ext}$major'
14785   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14786   shlibpath_var=LD_LIBRARY_PATH
14787   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14788   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14789   ;;
14790
14791 solaris*)
14792   version_type=linux
14793   need_lib_prefix=no
14794   need_version=no
14795   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14796   soname_spec='${libname}${release}${shared_ext}$major'
14797   shlibpath_var=LD_LIBRARY_PATH
14798   shlibpath_overrides_runpath=yes
14799   hardcode_into_libs=yes
14800   # ldd complains unless libraries are executable
14801   postinstall_cmds='chmod +x $lib'
14802   ;;
14803
14804 sunos4*)
14805   version_type=sunos
14806   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14807   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14808   shlibpath_var=LD_LIBRARY_PATH
14809   shlibpath_overrides_runpath=yes
14810   if test "$with_gnu_ld" = yes; then
14811     need_lib_prefix=no
14812   fi
14813   need_version=yes
14814   ;;
14815
14816 sysv4 | sysv4.3*)
14817   version_type=linux
14818   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14819   soname_spec='${libname}${release}${shared_ext}$major'
14820   shlibpath_var=LD_LIBRARY_PATH
14821   case $host_vendor in
14822     sni)
14823       shlibpath_overrides_runpath=no
14824       need_lib_prefix=no
14825       export_dynamic_flag_spec='${wl}-Blargedynsym'
14826       runpath_var=LD_RUN_PATH
14827       ;;
14828     siemens)
14829       need_lib_prefix=no
14830       ;;
14831     motorola)
14832       need_lib_prefix=no
14833       need_version=no
14834       shlibpath_overrides_runpath=no
14835       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14836       ;;
14837   esac
14838   ;;
14839
14840 sysv4*MP*)
14841   if test -d /usr/nec ;then
14842     version_type=linux
14843     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14844     soname_spec='$libname${shared_ext}.$major'
14845     shlibpath_var=LD_LIBRARY_PATH
14846   fi
14847   ;;
14848
14849 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14850   version_type=freebsd-elf
14851   need_lib_prefix=no
14852   need_version=no
14853   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14854   soname_spec='${libname}${release}${shared_ext}$major'
14855   shlibpath_var=LD_LIBRARY_PATH
14856   hardcode_into_libs=yes
14857   if test "$with_gnu_ld" = yes; then
14858     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14859     shlibpath_overrides_runpath=no
14860   else
14861     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14862     shlibpath_overrides_runpath=yes
14863     case $host_os in
14864       sco3.2v5*)
14865         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14866         ;;
14867     esac
14868   fi
14869   sys_lib_dlsearch_path_spec='/usr/lib'
14870   ;;
14871
14872 uts4*)
14873   version_type=linux
14874   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14875   soname_spec='${libname}${release}${shared_ext}$major'
14876   shlibpath_var=LD_LIBRARY_PATH
14877   ;;
14878
14879 *)
14880   dynamic_linker=no
14881   ;;
14882 esac
14883 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14884 echo "${ECHO_T}$dynamic_linker" >&6
14885 test "$dynamic_linker" = no && can_build_shared=no
14886
14887 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14888 if test "$GCC" = yes; then
14889   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14890 fi
14891
14892 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14893 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14894 hardcode_action_F77=
14895 if test -n "$hardcode_libdir_flag_spec_F77" || \
14896    test -n "$runpath_var_F77" || \
14897    test "X$hardcode_automatic_F77" = "Xyes" ; then
14898
14899   # We can hardcode non-existant directories.
14900   if test "$hardcode_direct_F77" != no &&
14901      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14902      # have to relink, otherwise we might link with an installed library
14903      # when we should be linking with a yet-to-be-installed one
14904      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14905      test "$hardcode_minus_L_F77" != no; then
14906     # Linking always hardcodes the temporary library directory.
14907     hardcode_action_F77=relink
14908   else
14909     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14910     hardcode_action_F77=immediate
14911   fi
14912 else
14913   # We cannot hardcode anything, or else we can only hardcode existing
14914   # directories.
14915   hardcode_action_F77=unsupported
14916 fi
14917 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14918 echo "${ECHO_T}$hardcode_action_F77" >&6
14919
14920 if test "$hardcode_action_F77" = relink; then
14921   # Fast installation is not supported
14922   enable_fast_install=no
14923 elif test "$shlibpath_overrides_runpath" = yes ||
14924      test "$enable_shared" = no; then
14925   # Fast installation is not necessary
14926   enable_fast_install=needless
14927 fi
14928
14929
14930 # The else clause should only fire when bootstrapping the
14931 # libtool distribution, otherwise you forgot to ship ltmain.sh
14932 # with your package, and you will get complaints that there are
14933 # no rules to generate ltmain.sh.
14934 if test -f "$ltmain"; then
14935   # See if we are running on zsh, and set the options which allow our commands through
14936   # without removal of \ escapes.
14937   if test -n "${ZSH_VERSION+set}" ; then
14938     setopt NO_GLOB_SUBST
14939   fi
14940   # Now quote all the things that may contain metacharacters while being
14941   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14942   # variables and quote the copies for generation of the libtool script.
14943   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14944     SED SHELL STRIP \
14945     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14946     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14947     deplibs_check_method reload_flag reload_cmds need_locks \
14948     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14949     lt_cv_sys_global_symbol_to_c_name_address \
14950     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14951     old_postinstall_cmds old_postuninstall_cmds \
14952     compiler_F77 \
14953     CC_F77 \
14954     LD_F77 \
14955     lt_prog_compiler_wl_F77 \
14956     lt_prog_compiler_pic_F77 \
14957     lt_prog_compiler_static_F77 \
14958     lt_prog_compiler_no_builtin_flag_F77 \
14959     export_dynamic_flag_spec_F77 \
14960     thread_safe_flag_spec_F77 \
14961     whole_archive_flag_spec_F77 \
14962     enable_shared_with_static_runtimes_F77 \
14963     old_archive_cmds_F77 \
14964     old_archive_from_new_cmds_F77 \
14965     predep_objects_F77 \
14966     postdep_objects_F77 \
14967     predeps_F77 \
14968     postdeps_F77 \
14969     compiler_lib_search_path_F77 \
14970     archive_cmds_F77 \
14971     archive_expsym_cmds_F77 \
14972     postinstall_cmds_F77 \
14973     postuninstall_cmds_F77 \
14974     old_archive_from_expsyms_cmds_F77 \
14975     allow_undefined_flag_F77 \
14976     no_undefined_flag_F77 \
14977     export_symbols_cmds_F77 \
14978     hardcode_libdir_flag_spec_F77 \
14979     hardcode_libdir_flag_spec_ld_F77 \
14980     hardcode_libdir_separator_F77 \
14981     hardcode_automatic_F77 \
14982     module_cmds_F77 \
14983     module_expsym_cmds_F77 \
14984     lt_cv_prog_compiler_c_o_F77 \
14985     exclude_expsyms_F77 \
14986     include_expsyms_F77; do
14987
14988     case $var in
14989     old_archive_cmds_F77 | \
14990     old_archive_from_new_cmds_F77 | \
14991     archive_cmds_F77 | \
14992     archive_expsym_cmds_F77 | \
14993     module_cmds_F77 | \
14994     module_expsym_cmds_F77 | \
14995     old_archive_from_expsyms_cmds_F77 | \
14996     export_symbols_cmds_F77 | \
14997     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14998     postinstall_cmds | postuninstall_cmds | \
14999     old_postinstall_cmds | old_postuninstall_cmds | \
15000     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15001       # Double-quote double-evaled strings.
15002       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15003       ;;
15004     *)
15005       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15006       ;;
15007     esac
15008   done
15009
15010   case $lt_echo in
15011   *'\$0 --fallback-echo"')
15012     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15013     ;;
15014   esac
15015
15016 cfgfile="$ofile"
15017
15018   cat <<__EOF__ >> "$cfgfile"
15019 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15020
15021 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15022
15023 # Shell to use when invoking shell scripts.
15024 SHELL=$lt_SHELL
15025
15026 # Whether or not to build shared libraries.
15027 build_libtool_libs=$enable_shared
15028
15029 # Whether or not to build static libraries.
15030 build_old_libs=$enable_static
15031
15032 # Whether or not to add -lc for building shared libraries.
15033 build_libtool_need_lc=$archive_cmds_need_lc_F77
15034
15035 # Whether or not to disallow shared libs when runtime libs are static
15036 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15037
15038 # Whether or not to optimize for fast installation.
15039 fast_install=$enable_fast_install
15040
15041 # The host system.
15042 host_alias=$host_alias
15043 host=$host
15044 host_os=$host_os
15045
15046 # The build system.
15047 build_alias=$build_alias
15048 build=$build
15049 build_os=$build_os
15050
15051 # An echo program that does not interpret backslashes.
15052 echo=$lt_echo
15053
15054 # The archiver.
15055 AR=$lt_AR
15056 AR_FLAGS=$lt_AR_FLAGS
15057
15058 # A C compiler.
15059 LTCC=$lt_LTCC
15060
15061 # LTCC compiler flags.
15062 LTCFLAGS=$lt_LTCFLAGS
15063
15064 # A language-specific compiler.
15065 CC=$lt_compiler_F77
15066
15067 # Is the compiler the GNU C compiler?
15068 with_gcc=$GCC_F77
15069
15070 # An ERE matcher.
15071 EGREP=$lt_EGREP
15072
15073 # The linker used to build libraries.
15074 LD=$lt_LD_F77
15075
15076 # Whether we need hard or soft links.
15077 LN_S=$lt_LN_S
15078
15079 # A BSD-compatible nm program.
15080 NM=$lt_NM
15081
15082 # A symbol stripping program
15083 STRIP=$lt_STRIP
15084
15085 # Used to examine libraries when file_magic_cmd begins "file"
15086 MAGIC_CMD=$MAGIC_CMD
15087
15088 # Used on cygwin: DLL creation program.
15089 DLLTOOL="$DLLTOOL"
15090
15091 # Used on cygwin: object dumper.
15092 OBJDUMP="$OBJDUMP"
15093
15094 # Used on cygwin: assembler.
15095 AS="$AS"
15096
15097 # The name of the directory that contains temporary libtool files.
15098 objdir=$objdir
15099
15100 # How to create reloadable object files.
15101 reload_flag=$lt_reload_flag
15102 reload_cmds=$lt_reload_cmds
15103
15104 # How to pass a linker flag through the compiler.
15105 wl=$lt_lt_prog_compiler_wl_F77
15106
15107 # Object file suffix (normally "o").
15108 objext="$ac_objext"
15109
15110 # Old archive suffix (normally "a").
15111 libext="$libext"
15112
15113 # Shared library suffix (normally ".so").
15114 shrext_cmds='$shrext_cmds'
15115
15116 # Executable file suffix (normally "").
15117 exeext="$exeext"
15118
15119 # Additional compiler flags for building library objects.
15120 pic_flag=$lt_lt_prog_compiler_pic_F77
15121 pic_mode=$pic_mode
15122
15123 # What is the maximum length of a command?
15124 max_cmd_len=$lt_cv_sys_max_cmd_len
15125
15126 # Does compiler simultaneously support -c and -o options?
15127 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15128
15129 # Must we lock files when doing compilation?
15130 need_locks=$lt_need_locks
15131
15132 # Do we need the lib prefix for modules?
15133 need_lib_prefix=$need_lib_prefix
15134
15135 # Do we need a version for libraries?
15136 need_version=$need_version
15137
15138 # Whether dlopen is supported.
15139 dlopen_support=$enable_dlopen
15140
15141 # Whether dlopen of programs is supported.
15142 dlopen_self=$enable_dlopen_self
15143
15144 # Whether dlopen of statically linked programs is supported.
15145 dlopen_self_static=$enable_dlopen_self_static
15146
15147 # Compiler flag to prevent dynamic linking.
15148 link_static_flag=$lt_lt_prog_compiler_static_F77
15149
15150 # Compiler flag to turn off builtin functions.
15151 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15152
15153 # Compiler flag to allow reflexive dlopens.
15154 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15155
15156 # Compiler flag to generate shared objects directly from archives.
15157 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15158
15159 # Compiler flag to generate thread-safe objects.
15160 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15161
15162 # Library versioning type.
15163 version_type=$version_type
15164
15165 # Format of library name prefix.
15166 libname_spec=$lt_libname_spec
15167
15168 # List of archive names.  First name is the real one, the rest are links.
15169 # The last name is the one that the linker finds with -lNAME.
15170 library_names_spec=$lt_library_names_spec
15171
15172 # The coded name of the library, if different from the real name.
15173 soname_spec=$lt_soname_spec
15174
15175 # Commands used to build and install an old-style archive.
15176 RANLIB=$lt_RANLIB
15177 old_archive_cmds=$lt_old_archive_cmds_F77
15178 old_postinstall_cmds=$lt_old_postinstall_cmds
15179 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15180
15181 # Create an old-style archive from a shared archive.
15182 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15183
15184 # Create a temporary old-style archive to link instead of a shared archive.
15185 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15186
15187 # Commands used to build and install a shared archive.
15188 archive_cmds=$lt_archive_cmds_F77
15189 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15190 postinstall_cmds=$lt_postinstall_cmds
15191 postuninstall_cmds=$lt_postuninstall_cmds
15192
15193 # Commands used to build a loadable module (assumed same as above if empty)
15194 module_cmds=$lt_module_cmds_F77
15195 module_expsym_cmds=$lt_module_expsym_cmds_F77
15196
15197 # Commands to strip libraries.
15198 old_striplib=$lt_old_striplib
15199 striplib=$lt_striplib
15200
15201 # Dependencies to place before the objects being linked to create a
15202 # shared library.
15203 predep_objects=$lt_predep_objects_F77
15204
15205 # Dependencies to place after the objects being linked to create a
15206 # shared library.
15207 postdep_objects=$lt_postdep_objects_F77
15208
15209 # Dependencies to place before the objects being linked to create a
15210 # shared library.
15211 predeps=$lt_predeps_F77
15212
15213 # Dependencies to place after the objects being linked to create a
15214 # shared library.
15215 postdeps=$lt_postdeps_F77
15216
15217 # The library search path used internally by the compiler when linking
15218 # a shared library.
15219 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15220
15221 # Method to check whether dependent libraries are shared objects.
15222 deplibs_check_method=$lt_deplibs_check_method
15223
15224 # Command to use when deplibs_check_method == file_magic.
15225 file_magic_cmd=$lt_file_magic_cmd
15226
15227 # Flag that allows shared libraries with undefined symbols to be built.
15228 allow_undefined_flag=$lt_allow_undefined_flag_F77
15229
15230 # Flag that forces no undefined symbols.
15231 no_undefined_flag=$lt_no_undefined_flag_F77
15232
15233 # Commands used to finish a libtool library installation in a directory.
15234 finish_cmds=$lt_finish_cmds
15235
15236 # Same as above, but a single script fragment to be evaled but not shown.
15237 finish_eval=$lt_finish_eval
15238
15239 # Take the output of nm and produce a listing of raw symbols and C names.
15240 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15241
15242 # Transform the output of nm in a proper C declaration
15243 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15244
15245 # Transform the output of nm in a C name address pair
15246 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15247
15248 # This is the shared library runtime path variable.
15249 runpath_var=$runpath_var
15250
15251 # This is the shared library path variable.
15252 shlibpath_var=$shlibpath_var
15253
15254 # Is shlibpath searched before the hard-coded library search path?
15255 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15256
15257 # How to hardcode a shared library path into an executable.
15258 hardcode_action=$hardcode_action_F77
15259
15260 # Whether we should hardcode library paths into libraries.
15261 hardcode_into_libs=$hardcode_into_libs
15262
15263 # Flag to hardcode \$libdir into a binary during linking.
15264 # This must work even if \$libdir does not exist.
15265 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15266
15267 # If ld is used when linking, flag to hardcode \$libdir into
15268 # a binary during linking. This must work even if \$libdir does
15269 # not exist.
15270 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15271
15272 # Whether we need a single -rpath flag with a separated argument.
15273 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15274
15275 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15276 # resulting binary.
15277 hardcode_direct=$hardcode_direct_F77
15278
15279 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15280 # resulting binary.
15281 hardcode_minus_L=$hardcode_minus_L_F77
15282
15283 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15284 # the resulting binary.
15285 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15286
15287 # Set to yes if building a shared library automatically hardcodes DIR into the library
15288 # and all subsequent libraries and executables linked against it.
15289 hardcode_automatic=$hardcode_automatic_F77
15290
15291 # Variables whose values should be saved in libtool wrapper scripts and
15292 # restored at relink time.
15293 variables_saved_for_relink="$variables_saved_for_relink"
15294
15295 # Whether libtool must link a program against all its dependency libraries.
15296 link_all_deplibs=$link_all_deplibs_F77
15297
15298 # Compile-time system search path for libraries
15299 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15300
15301 # Run-time system search path for libraries
15302 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15303
15304 # Fix the shell variable \$srcfile for the compiler.
15305 fix_srcfile_path="$fix_srcfile_path_F77"
15306
15307 # Set to yes if exported symbols are required.
15308 always_export_symbols=$always_export_symbols_F77
15309
15310 # The commands to list exported symbols.
15311 export_symbols_cmds=$lt_export_symbols_cmds_F77
15312
15313 # The commands to extract the exported symbol list from a shared archive.
15314 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15315
15316 # Symbols that should not be listed in the preloaded symbols.
15317 exclude_expsyms=$lt_exclude_expsyms_F77
15318
15319 # Symbols that must always be exported.
15320 include_expsyms=$lt_include_expsyms_F77
15321
15322 # ### END LIBTOOL TAG CONFIG: $tagname
15323
15324 __EOF__
15325
15326
15327 else
15328   # If there is no Makefile yet, we rely on a make rule to execute
15329   # `config.status --recheck' to rerun these tests and create the
15330   # libtool script then.
15331   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15332   if test -f "$ltmain_in"; then
15333     test -f Makefile && make "$ltmain"
15334   fi
15335 fi
15336
15337
15338 ac_ext=c
15339 ac_cpp='$CPP $CPPFLAGS'
15340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15343
15344 CC="$lt_save_CC"
15345
15346         else
15347           tagname=""
15348         fi
15349         ;;
15350
15351       GCJ)
15352         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15353           
15354
15355
15356 # Source file extension for Java test sources.
15357 ac_ext=java
15358
15359 # Object file extension for compiled Java test sources.
15360 objext=o
15361 objext_GCJ=$objext
15362
15363 # Code to be used in simple compile tests
15364 lt_simple_compile_test_code="class foo {}\n"
15365
15366 # Code to be used in simple link tests
15367 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15368
15369 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15370
15371 # If no C compiler was specified, use CC.
15372 LTCC=${LTCC-"$CC"}
15373
15374 # If no C compiler flags were specified, use CFLAGS.
15375 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15376
15377 # Allow CC to be a program name with arguments.
15378 compiler=$CC
15379
15380
15381 # save warnings/boilerplate of simple test code
15382 ac_outfile=conftest.$ac_objext
15383 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15384 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15385 _lt_compiler_boilerplate=`cat conftest.err`
15386 $rm conftest*
15387
15388 ac_outfile=conftest.$ac_objext
15389 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15390 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15391 _lt_linker_boilerplate=`cat conftest.err`
15392 $rm conftest*
15393
15394
15395 # Allow CC to be a program name with arguments.
15396 lt_save_CC="$CC"
15397 CC=${GCJ-"gcj"}
15398 compiler=$CC
15399 compiler_GCJ=$CC
15400 for cc_temp in $compiler""; do
15401   case $cc_temp in
15402     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15403     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15404     \-*) ;;
15405     *) break;;
15406   esac
15407 done
15408 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15409
15410
15411 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15412 archive_cmds_need_lc_GCJ=no
15413
15414 old_archive_cmds_GCJ=$old_archive_cmds
15415
15416 ## CAVEAT EMPTOR:
15417 ## There is no encapsulation within the following macros, do not change
15418 ## the running order or otherwise move them around unless you know exactly
15419 ## what you are doing...
15420
15421 lt_prog_compiler_no_builtin_flag_GCJ=
15422
15423 if test "$GCC" = yes; then
15424   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15425
15426   
15427 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15428 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15429 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15430   echo $ECHO_N "(cached) $ECHO_C" >&6
15431 else
15432   lt_cv_prog_compiler_rtti_exceptions=no
15433   ac_outfile=conftest.$ac_objext
15434    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15435    lt_compiler_flag="-fno-rtti -fno-exceptions"
15436    # Insert the option either (1) after the last *FLAGS variable, or
15437    # (2) before a word containing "conftest.", or (3) at the end.
15438    # Note that $ac_compile itself does not contain backslashes and begins
15439    # with a dollar sign (not a hyphen), so the echo should work correctly.
15440    # The option is referenced via a variable to avoid confusing sed.
15441    lt_compile=`echo "$ac_compile" | $SED \
15442    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15443    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15444    -e 's:$: $lt_compiler_flag:'`
15445    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15446    (eval "$lt_compile" 2>conftest.err)
15447    ac_status=$?
15448    cat conftest.err >&5
15449    echo "$as_me:__oline__: \$? = $ac_status" >&5
15450    if (exit $ac_status) && test -s "$ac_outfile"; then
15451      # The compiler can only warn and ignore the option if not recognized
15452      # So say no if there are warnings other than the usual output.
15453      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15454      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15455      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15456        lt_cv_prog_compiler_rtti_exceptions=yes
15457      fi
15458    fi
15459    $rm conftest*
15460
15461 fi
15462 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15463 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15464
15465 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15466     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15467 else
15468     :
15469 fi
15470
15471 fi
15472
15473 lt_prog_compiler_wl_GCJ=
15474 lt_prog_compiler_pic_GCJ=
15475 lt_prog_compiler_static_GCJ=
15476
15477 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15478 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15479  
15480   if test "$GCC" = yes; then
15481     lt_prog_compiler_wl_GCJ='-Wl,'
15482     lt_prog_compiler_static_GCJ='-static'
15483
15484     case $host_os in
15485       aix*)
15486       # All AIX code is PIC.
15487       if test "$host_cpu" = ia64; then
15488         # AIX 5 now supports IA64 processor
15489         lt_prog_compiler_static_GCJ='-Bstatic'
15490       fi
15491       ;;
15492
15493     amigaos*)
15494       # FIXME: we need at least 68020 code to build shared libraries, but
15495       # adding the `-m68020' flag to GCC prevents building anything better,
15496       # like `-m68040'.
15497       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15498       ;;
15499
15500     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15501       # PIC is the default for these OSes.
15502       ;;
15503
15504     mingw* | pw32* | os2*)
15505       # This hack is so that the source file can tell whether it is being
15506       # built for inclusion in a dll (and should export symbols for example).
15507       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15508       ;;
15509
15510     darwin* | rhapsody*)
15511       # PIC is the default on this platform
15512       # Common symbols not allowed in MH_DYLIB files
15513       lt_prog_compiler_pic_GCJ='-fno-common'
15514       ;;
15515
15516     interix3*)
15517       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15518       # Instead, we relocate shared libraries at runtime.
15519       ;;
15520
15521     msdosdjgpp*)
15522       # Just because we use GCC doesn't mean we suddenly get shared libraries
15523       # on systems that don't support them.
15524       lt_prog_compiler_can_build_shared_GCJ=no
15525       enable_shared=no
15526       ;;
15527
15528     sysv4*MP*)
15529       if test -d /usr/nec; then
15530         lt_prog_compiler_pic_GCJ=-Kconform_pic
15531       fi
15532       ;;
15533
15534     hpux*)
15535       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15536       # not for PA HP-UX.
15537       case $host_cpu in
15538       hppa*64*|ia64*)
15539         # +Z the default
15540         ;;
15541       *)
15542         lt_prog_compiler_pic_GCJ='-fPIC'
15543         ;;
15544       esac
15545       ;;
15546
15547     *)
15548       lt_prog_compiler_pic_GCJ='-fPIC'
15549       ;;
15550     esac
15551   else
15552     # PORTME Check for flag to pass linker flags through the system compiler.
15553     case $host_os in
15554     aix*)
15555       lt_prog_compiler_wl_GCJ='-Wl,'
15556       if test "$host_cpu" = ia64; then
15557         # AIX 5 now supports IA64 processor
15558         lt_prog_compiler_static_GCJ='-Bstatic'
15559       else
15560         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15561       fi
15562       ;;
15563       darwin*)
15564         # PIC is the default on this platform
15565         # Common symbols not allowed in MH_DYLIB files
15566        case $cc_basename in
15567          xlc*)
15568          lt_prog_compiler_pic_GCJ='-qnocommon'
15569          lt_prog_compiler_wl_GCJ='-Wl,'
15570          ;;
15571        esac
15572        ;;
15573
15574     mingw* | pw32* | os2*)
15575       # This hack is so that the source file can tell whether it is being
15576       # built for inclusion in a dll (and should export symbols for example).
15577       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15578       ;;
15579
15580     hpux9* | hpux10* | hpux11*)
15581       lt_prog_compiler_wl_GCJ='-Wl,'
15582       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15583       # not for PA HP-UX.
15584       case $host_cpu in
15585       hppa*64*|ia64*)
15586         # +Z the default
15587         ;;
15588       *)
15589         lt_prog_compiler_pic_GCJ='+Z'
15590         ;;
15591       esac
15592       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15593       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15594       ;;
15595
15596     irix5* | irix6* | nonstopux*)
15597       lt_prog_compiler_wl_GCJ='-Wl,'
15598       # PIC (with -KPIC) is the default.
15599       lt_prog_compiler_static_GCJ='-non_shared'
15600       ;;
15601
15602     newsos6)
15603       lt_prog_compiler_pic_GCJ='-KPIC'
15604       lt_prog_compiler_static_GCJ='-Bstatic'
15605       ;;
15606
15607     linux* | k*bsd*-gnu)
15608       case $cc_basename in
15609       icc* | ecc*)
15610         lt_prog_compiler_wl_GCJ='-Wl,'
15611         lt_prog_compiler_pic_GCJ='-KPIC'
15612         lt_prog_compiler_static_GCJ='-static'
15613         ;;
15614       pgcc* | pgf77* | pgf90* | pgf95*)
15615         # Portland Group compilers (*not* the Pentium gcc compiler,
15616         # which looks to be a dead project)
15617         lt_prog_compiler_wl_GCJ='-Wl,'
15618         lt_prog_compiler_pic_GCJ='-fpic'
15619         lt_prog_compiler_static_GCJ='-Bstatic'
15620         ;;
15621       ccc*)
15622         lt_prog_compiler_wl_GCJ='-Wl,'
15623         # All Alpha code is PIC.
15624         lt_prog_compiler_static_GCJ='-non_shared'
15625         ;;
15626       esac
15627       ;;
15628
15629     osf3* | osf4* | osf5*)
15630       lt_prog_compiler_wl_GCJ='-Wl,'
15631       # All OSF/1 code is PIC.
15632       lt_prog_compiler_static_GCJ='-non_shared'
15633       ;;
15634
15635     solaris*)
15636       lt_prog_compiler_pic_GCJ='-KPIC'
15637       lt_prog_compiler_static_GCJ='-Bstatic'
15638       case $cc_basename in
15639       f77* | f90* | f95*)
15640         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15641       *)
15642         lt_prog_compiler_wl_GCJ='-Wl,';;
15643       esac
15644       ;;
15645
15646     sunos4*)
15647       lt_prog_compiler_wl_GCJ='-Qoption ld '
15648       lt_prog_compiler_pic_GCJ='-PIC'
15649       lt_prog_compiler_static_GCJ='-Bstatic'
15650       ;;
15651
15652     sysv4 | sysv4.2uw2* | sysv4.3*)
15653       lt_prog_compiler_wl_GCJ='-Wl,'
15654       lt_prog_compiler_pic_GCJ='-KPIC'
15655       lt_prog_compiler_static_GCJ='-Bstatic'
15656       ;;
15657
15658     sysv4*MP*)
15659       if test -d /usr/nec ;then
15660         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15661         lt_prog_compiler_static_GCJ='-Bstatic'
15662       fi
15663       ;;
15664
15665     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15666       lt_prog_compiler_wl_GCJ='-Wl,'
15667       lt_prog_compiler_pic_GCJ='-KPIC'
15668       lt_prog_compiler_static_GCJ='-Bstatic'
15669       ;;
15670
15671     unicos*)
15672       lt_prog_compiler_wl_GCJ='-Wl,'
15673       lt_prog_compiler_can_build_shared_GCJ=no
15674       ;;
15675
15676     uts4*)
15677       lt_prog_compiler_pic_GCJ='-pic'
15678       lt_prog_compiler_static_GCJ='-Bstatic'
15679       ;;
15680
15681     *)
15682       lt_prog_compiler_can_build_shared_GCJ=no
15683       ;;
15684     esac
15685   fi
15686
15687 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15688 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15689
15690 #
15691 # Check to make sure the PIC flag actually works.
15692 #
15693 if test -n "$lt_prog_compiler_pic_GCJ"; then
15694   
15695 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15696 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15697 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15698   echo $ECHO_N "(cached) $ECHO_C" >&6
15699 else
15700   lt_prog_compiler_pic_works_GCJ=no
15701   ac_outfile=conftest.$ac_objext
15702    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15703    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15704    # Insert the option either (1) after the last *FLAGS variable, or
15705    # (2) before a word containing "conftest.", or (3) at the end.
15706    # Note that $ac_compile itself does not contain backslashes and begins
15707    # with a dollar sign (not a hyphen), so the echo should work correctly.
15708    # The option is referenced via a variable to avoid confusing sed.
15709    lt_compile=`echo "$ac_compile" | $SED \
15710    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15711    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15712    -e 's:$: $lt_compiler_flag:'`
15713    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15714    (eval "$lt_compile" 2>conftest.err)
15715    ac_status=$?
15716    cat conftest.err >&5
15717    echo "$as_me:__oline__: \$? = $ac_status" >&5
15718    if (exit $ac_status) && test -s "$ac_outfile"; then
15719      # The compiler can only warn and ignore the option if not recognized
15720      # So say no if there are warnings other than the usual output.
15721      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15722      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15723      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15724        lt_prog_compiler_pic_works_GCJ=yes
15725      fi
15726    fi
15727    $rm conftest*
15728
15729 fi
15730 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15731 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15732
15733 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15734     case $lt_prog_compiler_pic_GCJ in
15735      "" | " "*) ;;
15736      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15737      esac
15738 else
15739     lt_prog_compiler_pic_GCJ=
15740      lt_prog_compiler_can_build_shared_GCJ=no
15741 fi
15742
15743 fi
15744 case $host_os in
15745   # For platforms which do not support PIC, -DPIC is meaningless:
15746   *djgpp*)
15747     lt_prog_compiler_pic_GCJ=
15748     ;;
15749   *)
15750     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15751     ;;
15752 esac
15753
15754 #
15755 # Check to make sure the static flag actually works.
15756 #
15757 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
15758 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15759 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15760 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
15761   echo $ECHO_N "(cached) $ECHO_C" >&6
15762 else
15763   lt_prog_compiler_static_works_GCJ=no
15764    save_LDFLAGS="$LDFLAGS"
15765    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15766    printf "$lt_simple_link_test_code" > conftest.$ac_ext
15767    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15768      # The linker can only warn and ignore the option if not recognized
15769      # So say no if there are warnings
15770      if test -s conftest.err; then
15771        # Append any errors to the config.log.
15772        cat conftest.err 1>&5
15773        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15774        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15775        if diff conftest.exp conftest.er2 >/dev/null; then
15776          lt_prog_compiler_static_works_GCJ=yes
15777        fi
15778      else
15779        lt_prog_compiler_static_works_GCJ=yes
15780      fi
15781    fi
15782    $rm conftest*
15783    LDFLAGS="$save_LDFLAGS"
15784
15785 fi
15786 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
15787 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
15788
15789 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
15790     :
15791 else
15792     lt_prog_compiler_static_GCJ=
15793 fi
15794
15795
15796 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15797 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15798 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15799   echo $ECHO_N "(cached) $ECHO_C" >&6
15800 else
15801   lt_cv_prog_compiler_c_o_GCJ=no
15802    $rm -r conftest 2>/dev/null
15803    mkdir conftest
15804    cd conftest
15805    mkdir out
15806    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15807
15808    lt_compiler_flag="-o out/conftest2.$ac_objext"
15809    # Insert the option either (1) after the last *FLAGS variable, or
15810    # (2) before a word containing "conftest.", or (3) at the end.
15811    # Note that $ac_compile itself does not contain backslashes and begins
15812    # with a dollar sign (not a hyphen), so the echo should work correctly.
15813    lt_compile=`echo "$ac_compile" | $SED \
15814    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15815    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15816    -e 's:$: $lt_compiler_flag:'`
15817    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15818    (eval "$lt_compile" 2>out/conftest.err)
15819    ac_status=$?
15820    cat out/conftest.err >&5
15821    echo "$as_me:__oline__: \$? = $ac_status" >&5
15822    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15823    then
15824      # The compiler can only warn and ignore the option if not recognized
15825      # So say no if there are warnings
15826      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15827      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15828      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15829        lt_cv_prog_compiler_c_o_GCJ=yes
15830      fi
15831    fi
15832    chmod u+w . 2>&5
15833    $rm conftest*
15834    # SGI C++ compiler will create directory out/ii_files/ for
15835    # template instantiation
15836    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15837    $rm out/* && rmdir out
15838    cd ..
15839    rmdir conftest
15840    $rm conftest*
15841
15842 fi
15843 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15844 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15845
15846
15847 hard_links="nottested"
15848 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15849   # do not overwrite the value of need_locks provided by the user
15850   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15851 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15852   hard_links=yes
15853   $rm conftest*
15854   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15855   touch conftest.a
15856   ln conftest.a conftest.b 2>&5 || hard_links=no
15857   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15858   echo "$as_me:$LINENO: result: $hard_links" >&5
15859 echo "${ECHO_T}$hard_links" >&6
15860   if test "$hard_links" = no; then
15861     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15862 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15863     need_locks=warn
15864   fi
15865 else
15866   need_locks=no
15867 fi
15868
15869 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15870 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15871
15872   runpath_var=
15873   allow_undefined_flag_GCJ=
15874   enable_shared_with_static_runtimes_GCJ=no
15875   archive_cmds_GCJ=
15876   archive_expsym_cmds_GCJ=
15877   old_archive_From_new_cmds_GCJ=
15878   old_archive_from_expsyms_cmds_GCJ=
15879   export_dynamic_flag_spec_GCJ=
15880   whole_archive_flag_spec_GCJ=
15881   thread_safe_flag_spec_GCJ=
15882   hardcode_libdir_flag_spec_GCJ=
15883   hardcode_libdir_flag_spec_ld_GCJ=
15884   hardcode_libdir_separator_GCJ=
15885   hardcode_direct_GCJ=no
15886   hardcode_minus_L_GCJ=no
15887   hardcode_shlibpath_var_GCJ=unsupported
15888   link_all_deplibs_GCJ=unknown
15889   hardcode_automatic_GCJ=no
15890   module_cmds_GCJ=
15891   module_expsym_cmds_GCJ=
15892   always_export_symbols_GCJ=no
15893   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15894   # include_expsyms should be a list of space-separated symbols to be *always*
15895   # included in the symbol list
15896   include_expsyms_GCJ=
15897   # exclude_expsyms can be an extended regexp of symbols to exclude
15898   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15899   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15900   # as well as any symbol that contains `d'.
15901   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15902   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15903   # platforms (ab)use it in PIC code, but their linkers get confused if
15904   # the symbol is explicitly referenced.  Since portable code cannot
15905   # rely on this symbol name, it's probably fine to never include it in
15906   # preloaded symbol tables.
15907   extract_expsyms_cmds=
15908   # Just being paranoid about ensuring that cc_basename is set.
15909   for cc_temp in $compiler""; do
15910   case $cc_temp in
15911     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15912     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15913     \-*) ;;
15914     *) break;;
15915   esac
15916 done
15917 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15918
15919   case $host_os in
15920   cygwin* | mingw* | pw32*)
15921     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15922     # When not using gcc, we currently assume that we are using
15923     # Microsoft Visual C++.
15924     if test "$GCC" != yes; then
15925       with_gnu_ld=no
15926     fi
15927     ;;
15928   interix*)
15929     # we just hope/assume this is gcc and not c89 (= MSVC++)
15930     with_gnu_ld=yes
15931     ;;
15932   openbsd*)
15933     with_gnu_ld=no
15934     ;;
15935   esac
15936
15937   ld_shlibs_GCJ=yes
15938   if test "$with_gnu_ld" = yes; then
15939     # If archive_cmds runs LD, not CC, wlarc should be empty
15940     wlarc='${wl}'
15941
15942     # Set some defaults for GNU ld with shared library support. These
15943     # are reset later if shared libraries are not supported. Putting them
15944     # here allows them to be overridden if necessary.
15945     runpath_var=LD_RUN_PATH
15946     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15947     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15948     # ancient GNU ld didn't support --whole-archive et. al.
15949     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15950         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15951       else
15952         whole_archive_flag_spec_GCJ=
15953     fi
15954     supports_anon_versioning=no
15955     case `$LD -v 2>/dev/null` in
15956       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15957       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15958       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15959       *\ 2.11.*) ;; # other 2.11 versions
15960       *) supports_anon_versioning=yes ;;
15961     esac
15962
15963     # See if GNU ld supports shared libraries.
15964     case $host_os in
15965     aix3* | aix4* | aix5*)
15966       # On AIX/PPC, the GNU linker is very broken
15967       if test "$host_cpu" != ia64; then
15968         ld_shlibs_GCJ=no
15969         cat <<EOF 1>&2
15970
15971 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15972 *** to be unable to reliably create shared libraries on AIX.
15973 *** Therefore, libtool is disabling shared libraries support.  If you
15974 *** really care for shared libraries, you may want to modify your PATH
15975 *** so that a non-GNU linker is found, and then restart.
15976
15977 EOF
15978       fi
15979       ;;
15980
15981     amigaos*)
15982       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)'
15983       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15984       hardcode_minus_L_GCJ=yes
15985
15986       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15987       # that the semantics of dynamic libraries on AmigaOS, at least up
15988       # to version 4, is to share data among multiple programs linked
15989       # with the same dynamic library.  Since this doesn't match the
15990       # behavior of shared libraries on other platforms, we can't use
15991       # them.
15992       ld_shlibs_GCJ=no
15993       ;;
15994
15995     beos*)
15996       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15997         allow_undefined_flag_GCJ=unsupported
15998         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15999         # support --undefined.  This deserves some investigation.  FIXME
16000         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16001       else
16002         ld_shlibs_GCJ=no
16003       fi
16004       ;;
16005
16006     cygwin* | mingw* | pw32*)
16007       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16008       # as there is no search path for DLLs.
16009       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16010       allow_undefined_flag_GCJ=unsupported
16011       always_export_symbols_GCJ=no
16012       enable_shared_with_static_runtimes_GCJ=yes
16013       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16014
16015       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16016         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16017         # If the export-symbols file already is a .def file (1st line
16018         # is EXPORTS), use it as is; otherwise, prepend...
16019         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16020           cp $export_symbols $output_objdir/$soname.def;
16021         else
16022           echo EXPORTS > $output_objdir/$soname.def;
16023           cat $export_symbols >> $output_objdir/$soname.def;
16024         fi~
16025         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16026       else
16027         ld_shlibs_GCJ=no
16028       fi
16029       ;;
16030
16031     interix3*)
16032       hardcode_direct_GCJ=no
16033       hardcode_shlibpath_var_GCJ=no
16034       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16035       export_dynamic_flag_spec_GCJ='${wl}-E'
16036       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16037       # Instead, shared libraries are loaded at an image base (0x10000000 by
16038       # default) and relocated if they conflict, which is a slow very memory
16039       # consuming and fragmenting process.  To avoid this, we pick a random,
16040       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16041       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16042       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'
16043       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'
16044       ;;
16045
16046     linux* | k*bsd*-gnu)
16047       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16048         tmp_addflag=
16049         case $cc_basename,$host_cpu in
16050         pgcc*)                          # Portland Group C compiler
16051           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'
16052           tmp_addflag=' $pic_flag'
16053           ;;
16054         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16055           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'
16056           tmp_addflag=' $pic_flag -Mnomain' ;;
16057         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16058           tmp_addflag=' -i_dynamic' ;;
16059         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16060           tmp_addflag=' -i_dynamic -nofor_main' ;;
16061         ifc* | ifort*)                  # Intel Fortran compiler
16062           tmp_addflag=' -nofor_main' ;;
16063         esac
16064         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16065
16066         if test $supports_anon_versioning = yes; then
16067           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16068   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16069   $echo "local: *; };" >> $output_objdir/$libname.ver~
16070           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16071         fi
16072         link_all_deplibs_GCJ=no
16073       else
16074         ld_shlibs_GCJ=no
16075       fi
16076       ;;
16077
16078     netbsd* | netbsdelf*-gnu)
16079       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16080         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16081         wlarc=
16082       else
16083         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16084         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16085       fi
16086       ;;
16087
16088     solaris*)
16089       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16090         ld_shlibs_GCJ=no
16091         cat <<EOF 1>&2
16092
16093 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16094 *** create shared libraries on Solaris systems.  Therefore, libtool
16095 *** is disabling shared libraries support.  We urge you to upgrade GNU
16096 *** binutils to release 2.9.1 or newer.  Another option is to modify
16097 *** your PATH or compiler configuration so that the native linker is
16098 *** used, and then restart.
16099
16100 EOF
16101       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16102         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16103         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16104       else
16105         ld_shlibs_GCJ=no
16106       fi
16107       ;;
16108
16109     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16110       case `$LD -v 2>&1` in
16111         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 
16112         ld_shlibs_GCJ=no
16113         cat <<_LT_EOF 1>&2
16114
16115 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16116 *** reliably create shared libraries on SCO systems.  Therefore, libtool
16117 *** is disabling shared libraries support.  We urge you to upgrade GNU
16118 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16119 *** your PATH or compiler configuration so that the native linker is
16120 *** used, and then restart.
16121
16122 _LT_EOF
16123         ;;
16124         *)
16125           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16126             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16127             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16128             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16129           else
16130             ld_shlibs_GCJ=no
16131           fi
16132         ;;
16133       esac
16134       ;;
16135
16136     sunos4*)
16137       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16138       wlarc=
16139       hardcode_direct_GCJ=yes
16140       hardcode_shlibpath_var_GCJ=no
16141       ;;
16142
16143     *)
16144       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16145         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16146         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16147       else
16148         ld_shlibs_GCJ=no
16149       fi
16150       ;;
16151     esac
16152
16153     if test "$ld_shlibs_GCJ" = no; then
16154       runpath_var=
16155       hardcode_libdir_flag_spec_GCJ=
16156       export_dynamic_flag_spec_GCJ=
16157       whole_archive_flag_spec_GCJ=
16158     fi
16159   else
16160     # PORTME fill in a description of your system's linker (not GNU ld)
16161     case $host_os in
16162     aix3*)
16163       allow_undefined_flag_GCJ=unsupported
16164       always_export_symbols_GCJ=yes
16165       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'
16166       # Note: this linker hardcodes the directories in LIBPATH if there
16167       # are no directories specified by -L.
16168       hardcode_minus_L_GCJ=yes
16169       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16170         # Neither direct hardcoding nor static linking is supported with a
16171         # broken collect2.
16172         hardcode_direct_GCJ=unsupported
16173       fi
16174       ;;
16175
16176     aix4* | aix5*)
16177       if test "$host_cpu" = ia64; then
16178         # On IA64, the linker does run time linking by default, so we don't
16179         # have to do anything special.
16180         aix_use_runtimelinking=no
16181         exp_sym_flag='-Bexport'
16182         no_entry_flag=""
16183       else
16184         # If we're using GNU nm, then we don't want the "-C" option.
16185         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16186         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16187           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'
16188         else
16189           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'
16190         fi
16191         aix_use_runtimelinking=no
16192
16193         # Test if we are trying to use run time linking or normal
16194         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16195         # need to do runtime linking.
16196         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16197           for ld_flag in $LDFLAGS; do
16198           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16199             aix_use_runtimelinking=yes
16200             break
16201           fi
16202           done
16203           ;;
16204         esac
16205
16206         exp_sym_flag='-bexport'
16207         no_entry_flag='-bnoentry'
16208       fi
16209
16210       # When large executables or shared objects are built, AIX ld can
16211       # have problems creating the table of contents.  If linking a library
16212       # or program results in "error TOC overflow" add -mminimal-toc to
16213       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16214       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16215
16216       archive_cmds_GCJ=''
16217       hardcode_direct_GCJ=yes
16218       hardcode_libdir_separator_GCJ=':'
16219       link_all_deplibs_GCJ=yes
16220
16221       if test "$GCC" = yes; then
16222         case $host_os in aix4.[012]|aix4.[012].*)
16223         # We only want to do this on AIX 4.2 and lower, the check
16224         # below for broken collect2 doesn't work under 4.3+
16225           collect2name=`${CC} -print-prog-name=collect2`
16226           if test -f "$collect2name" && \
16227            strings "$collect2name" | grep resolve_lib_name >/dev/null
16228           then
16229           # We have reworked collect2
16230           hardcode_direct_GCJ=yes
16231           else
16232           # We have old collect2
16233           hardcode_direct_GCJ=unsupported
16234           # It fails to find uninstalled libraries when the uninstalled
16235           # path is not listed in the libpath.  Setting hardcode_minus_L
16236           # to unsupported forces relinking
16237           hardcode_minus_L_GCJ=yes
16238           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16239           hardcode_libdir_separator_GCJ=
16240           fi
16241           ;;
16242         esac
16243         shared_flag='-shared'
16244         if test "$aix_use_runtimelinking" = yes; then
16245           shared_flag="$shared_flag "'${wl}-G'
16246         fi
16247       else
16248         # not using gcc
16249         if test "$host_cpu" = ia64; then
16250         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16251         # chokes on -Wl,-G. The following line is correct:
16252           shared_flag='-G'
16253         else
16254           if test "$aix_use_runtimelinking" = yes; then
16255             shared_flag='${wl}-G'
16256           else
16257             shared_flag='${wl}-bM:SRE'
16258           fi
16259         fi
16260       fi
16261
16262       # It seems that -bexpall does not export symbols beginning with
16263       # underscore (_), so it is better to generate a list of symbols to export.
16264       always_export_symbols_GCJ=yes
16265       if test "$aix_use_runtimelinking" = yes; then
16266         # Warning - without using the other runtime loading flags (-brtl),
16267         # -berok will link without error, but may produce a broken library.
16268         allow_undefined_flag_GCJ='-berok'
16269        # Determine the default libpath from the value encoded in an empty executable.
16270        cat >conftest.$ac_ext <<_ACEOF
16271 /* confdefs.h.  */
16272 _ACEOF
16273 cat confdefs.h >>conftest.$ac_ext
16274 cat >>conftest.$ac_ext <<_ACEOF
16275 /* end confdefs.h.  */
16276
16277 int
16278 main ()
16279 {
16280
16281   ;
16282   return 0;
16283 }
16284 _ACEOF
16285 rm -f conftest.$ac_objext conftest$ac_exeext
16286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16287   (eval $ac_link) 2>conftest.er1
16288   ac_status=$?
16289   grep -v '^ *+' conftest.er1 >conftest.err
16290   rm -f conftest.er1
16291   cat conftest.err >&5
16292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293   (exit $ac_status); } &&
16294          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16296   (eval $ac_try) 2>&5
16297   ac_status=$?
16298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16299   (exit $ac_status); }; } &&
16300          { ac_try='test -s conftest$ac_exeext'
16301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16302   (eval $ac_try) 2>&5
16303   ac_status=$?
16304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16305   (exit $ac_status); }; }; then
16306   
16307 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16308 }'`
16309 # Check for a 64-bit object if we didn't find anything.
16310 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; }
16311 }'`; fi
16312 else
16313   echo "$as_me: failed program was:" >&5
16314 sed 's/^/| /' conftest.$ac_ext >&5
16315
16316 fi
16317 rm -f conftest.err conftest.$ac_objext \
16318       conftest$ac_exeext conftest.$ac_ext
16319 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16320
16321        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16322         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"
16323        else
16324         if test "$host_cpu" = ia64; then
16325           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16326           allow_undefined_flag_GCJ="-z nodefs"
16327           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"
16328         else
16329          # Determine the default libpath from the value encoded in an empty executable.
16330          cat >conftest.$ac_ext <<_ACEOF
16331 /* confdefs.h.  */
16332 _ACEOF
16333 cat confdefs.h >>conftest.$ac_ext
16334 cat >>conftest.$ac_ext <<_ACEOF
16335 /* end confdefs.h.  */
16336
16337 int
16338 main ()
16339 {
16340
16341   ;
16342   return 0;
16343 }
16344 _ACEOF
16345 rm -f conftest.$ac_objext conftest$ac_exeext
16346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16347   (eval $ac_link) 2>conftest.er1
16348   ac_status=$?
16349   grep -v '^ *+' conftest.er1 >conftest.err
16350   rm -f conftest.er1
16351   cat conftest.err >&5
16352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16353   (exit $ac_status); } &&
16354          { ac_try='test -z "$ac_c_werror_flag"                   || 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           # Warning - without using the other run time loading flags,
16383           # -berok will link without error, but may produce a broken library.
16384           no_undefined_flag_GCJ=' ${wl}-bernotok'
16385           allow_undefined_flag_GCJ=' ${wl}-berok'
16386           # Exported symbols can be pulled into shared objects from archives
16387           whole_archive_flag_spec_GCJ='$convenience'
16388           archive_cmds_need_lc_GCJ=yes
16389           # This is similar to how AIX traditionally builds its shared libraries.
16390           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'
16391         fi
16392       fi
16393       ;;
16394
16395     amigaos*)
16396       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)'
16397       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16398       hardcode_minus_L_GCJ=yes
16399       # see comment about different semantics on the GNU ld section
16400       ld_shlibs_GCJ=no
16401       ;;
16402
16403     bsdi[45]*)
16404       export_dynamic_flag_spec_GCJ=-rdynamic
16405       ;;
16406
16407     cygwin* | mingw* | pw32*)
16408       # When not using gcc, we currently assume that we are using
16409       # Microsoft Visual C++.
16410       # hardcode_libdir_flag_spec is actually meaningless, as there is
16411       # no search path for DLLs.
16412       hardcode_libdir_flag_spec_GCJ=' '
16413       allow_undefined_flag_GCJ=unsupported
16414       # Tell ltmain to make .lib files, not .a files.
16415       libext=lib
16416       # Tell ltmain to make .dll files, not .so files.
16417       shrext_cmds=".dll"
16418       # FIXME: Setting linknames here is a bad hack.
16419       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16420       # The linker will automatically build a .lib file if we build a DLL.
16421       old_archive_From_new_cmds_GCJ='true'
16422       # FIXME: Should let the user specify the lib program.
16423       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16424       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16425       enable_shared_with_static_runtimes_GCJ=yes
16426       ;;
16427
16428     darwin* | rhapsody*)
16429       case $host_os in
16430         rhapsody* | darwin1.[012])
16431          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16432          ;;
16433        *) # Darwin 1.3 on
16434          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16435            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16436          else
16437            case ${MACOSX_DEPLOYMENT_TARGET} in
16438              10.[012])
16439                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16440                ;;
16441              10.*)
16442                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16443                ;;
16444            esac
16445          fi
16446          ;;
16447       esac
16448       archive_cmds_need_lc_GCJ=no
16449       hardcode_direct_GCJ=no
16450       hardcode_automatic_GCJ=yes
16451       hardcode_shlibpath_var_GCJ=unsupported
16452       whole_archive_flag_spec_GCJ=''
16453       link_all_deplibs_GCJ=yes
16454     if test "$GCC" = yes ; then
16455         output_verbose_link_cmd='echo'
16456         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16457       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16458       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16459       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}'
16460       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}'
16461     else
16462       case $cc_basename in
16463         xlc*)
16464          output_verbose_link_cmd='echo'
16465          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16466          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16467           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16468          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}'
16469           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}'
16470           ;;
16471        *)
16472          ld_shlibs_GCJ=no
16473           ;;
16474       esac
16475     fi
16476       ;;
16477
16478     dgux*)
16479       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16480       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16481       hardcode_shlibpath_var_GCJ=no
16482       ;;
16483
16484     freebsd1*)
16485       ld_shlibs_GCJ=no
16486       ;;
16487
16488     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16489     # support.  Future versions do this automatically, but an explicit c++rt0.o
16490     # does not break anything, and helps significantly (at the cost of a little
16491     # extra space).
16492     freebsd2.2*)
16493       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16494       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16495       hardcode_direct_GCJ=yes
16496       hardcode_shlibpath_var_GCJ=no
16497       ;;
16498
16499     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16500     freebsd2*)
16501       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16502       hardcode_direct_GCJ=yes
16503       hardcode_minus_L_GCJ=yes
16504       hardcode_shlibpath_var_GCJ=no
16505       ;;
16506
16507     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16508     freebsd* | dragonfly*)
16509       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16510       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16511       hardcode_direct_GCJ=yes
16512       hardcode_shlibpath_var_GCJ=no
16513       ;;
16514
16515     hpux9*)
16516       if test "$GCC" = yes; then
16517         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'
16518       else
16519         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'
16520       fi
16521       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16522       hardcode_libdir_separator_GCJ=:
16523       hardcode_direct_GCJ=yes
16524
16525       # hardcode_minus_L: Not really in the search PATH,
16526       # but as the default location of the library.
16527       hardcode_minus_L_GCJ=yes
16528       export_dynamic_flag_spec_GCJ='${wl}-E'
16529       ;;
16530
16531     hpux10*)
16532       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16533         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16534       else
16535         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16536       fi
16537       if test "$with_gnu_ld" = no; then
16538         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16539         hardcode_libdir_separator_GCJ=:
16540
16541         hardcode_direct_GCJ=yes
16542         export_dynamic_flag_spec_GCJ='${wl}-E'
16543
16544         # hardcode_minus_L: Not really in the search PATH,
16545         # but as the default location of the library.
16546         hardcode_minus_L_GCJ=yes
16547       fi
16548       ;;
16549
16550     hpux11*)
16551       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16552         case $host_cpu in
16553         hppa*64*)
16554           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16555           ;;
16556         ia64*)
16557           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16558           ;;
16559         *)
16560           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16561           ;;
16562         esac
16563       else
16564         case $host_cpu in
16565         hppa*64*)
16566           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16567           ;;
16568         ia64*)
16569           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16570           ;;
16571         *)
16572           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16573           ;;
16574         esac
16575       fi
16576       if test "$with_gnu_ld" = no; then
16577         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16578         hardcode_libdir_separator_GCJ=:
16579
16580         case $host_cpu in
16581         hppa*64*|ia64*)
16582           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16583           hardcode_direct_GCJ=no
16584           hardcode_shlibpath_var_GCJ=no
16585           ;;
16586         *)
16587           hardcode_direct_GCJ=yes
16588           export_dynamic_flag_spec_GCJ='${wl}-E'
16589
16590           # hardcode_minus_L: Not really in the search PATH,
16591           # but as the default location of the library.
16592           hardcode_minus_L_GCJ=yes
16593           ;;
16594         esac
16595       fi
16596       ;;
16597
16598     irix5* | irix6* | nonstopux*)
16599       if test "$GCC" = yes; then
16600         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'
16601       else
16602         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'
16603         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16604       fi
16605       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16606       hardcode_libdir_separator_GCJ=:
16607       link_all_deplibs_GCJ=yes
16608       ;;
16609
16610     netbsd* | netbsdelf*-gnu)
16611       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16612         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16613       else
16614         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16615       fi
16616       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16617       hardcode_direct_GCJ=yes
16618       hardcode_shlibpath_var_GCJ=no
16619       ;;
16620
16621     newsos6)
16622       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16623       hardcode_direct_GCJ=yes
16624       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16625       hardcode_libdir_separator_GCJ=:
16626       hardcode_shlibpath_var_GCJ=no
16627       ;;
16628
16629     openbsd*)
16630       hardcode_direct_GCJ=yes
16631       hardcode_shlibpath_var_GCJ=no
16632       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16633         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16634         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16635         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16636         export_dynamic_flag_spec_GCJ='${wl}-E'
16637       else
16638        case $host_os in
16639          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16640            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16641            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16642            ;;
16643          *)
16644            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16645            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16646            ;;
16647        esac
16648       fi
16649       ;;
16650
16651     os2*)
16652       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16653       hardcode_minus_L_GCJ=yes
16654       allow_undefined_flag_GCJ=unsupported
16655       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'
16656       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16657       ;;
16658
16659     osf3*)
16660       if test "$GCC" = yes; then
16661         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16662         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'
16663       else
16664         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16665         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'
16666       fi
16667       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16668       hardcode_libdir_separator_GCJ=:
16669       ;;
16670
16671     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16672       if test "$GCC" = yes; then
16673         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16674         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'
16675         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16676       else
16677         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16678         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'
16679         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~
16680         $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'
16681
16682         # Both c and cxx compiler support -rpath directly
16683         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16684       fi
16685       hardcode_libdir_separator_GCJ=:
16686       ;;
16687
16688     solaris*)
16689       no_undefined_flag_GCJ=' -z text'
16690       if test "$GCC" = yes; then
16691         wlarc='${wl}'
16692         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16693         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16694           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16695       else
16696         wlarc=''
16697         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16698         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16699         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16700       fi
16701       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16702       hardcode_shlibpath_var_GCJ=no
16703       case $host_os in
16704       solaris2.[0-5] | solaris2.[0-5].*) ;;
16705       *)
16706         # The compiler driver will combine linker options so we
16707         # cannot just pass the convience library names through
16708         # without $wl, iff we do not link with $LD.
16709         # Luckily, gcc supports the same syntax we need for Sun Studio.
16710         # Supported since Solaris 2.6 (maybe 2.5.1?)
16711         case $wlarc in
16712         '')
16713           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16714         *)
16715           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' ;;
16716         esac ;;
16717       esac
16718       link_all_deplibs_GCJ=yes
16719       ;;
16720
16721     sunos4*)
16722       if test "x$host_vendor" = xsequent; then
16723         # Use $CC to link under sequent, because it throws in some extra .o
16724         # files that make .init and .fini sections work.
16725         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16726       else
16727         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16728       fi
16729       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16730       hardcode_direct_GCJ=yes
16731       hardcode_minus_L_GCJ=yes
16732       hardcode_shlibpath_var_GCJ=no
16733       ;;
16734
16735     sysv4)
16736       case $host_vendor in
16737         sni)
16738           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16739           hardcode_direct_GCJ=yes # is this really true???
16740         ;;
16741         siemens)
16742           ## LD is ld it makes a PLAMLIB
16743           ## CC just makes a GrossModule.
16744           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16745           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16746           hardcode_direct_GCJ=no
16747         ;;
16748         motorola)
16749           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16750           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16751         ;;
16752       esac
16753       runpath_var='LD_RUN_PATH'
16754       hardcode_shlibpath_var_GCJ=no
16755       ;;
16756
16757     sysv4.3*)
16758       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16759       hardcode_shlibpath_var_GCJ=no
16760       export_dynamic_flag_spec_GCJ='-Bexport'
16761       ;;
16762
16763     sysv4*MP*)
16764       if test -d /usr/nec; then
16765         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16766         hardcode_shlibpath_var_GCJ=no
16767         runpath_var=LD_RUN_PATH
16768         hardcode_runpath_var=yes
16769         ld_shlibs_GCJ=yes
16770       fi
16771       ;;
16772
16773     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16774       no_undefined_flag_GCJ='${wl}-z,text'
16775       archive_cmds_need_lc_GCJ=no
16776       hardcode_shlibpath_var_GCJ=no
16777       runpath_var='LD_RUN_PATH'
16778
16779       if test "$GCC" = yes; then
16780         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16781         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16782       else
16783         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16784         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16785       fi
16786       ;;
16787
16788     sysv5* | sco3.2v5* | sco5v6*)
16789       # Note: We can NOT use -z defs as we might desire, because we do not
16790       # link with -lc, and that would cause any symbols used from libc to
16791       # always be unresolved, which means just about no library would
16792       # ever link correctly.  If we're not using GNU ld we use -z text
16793       # though, which does catch some bad symbols but isn't as heavy-handed
16794       # as -z defs.
16795       no_undefined_flag_GCJ='${wl}-z,text'
16796       allow_undefined_flag_GCJ='${wl}-z,nodefs'
16797       archive_cmds_need_lc_GCJ=no
16798       hardcode_shlibpath_var_GCJ=no
16799       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16800       hardcode_libdir_separator_GCJ=':'
16801       link_all_deplibs_GCJ=yes
16802       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16803       runpath_var='LD_RUN_PATH'
16804
16805       if test "$GCC" = yes; then
16806         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16807         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16808       else
16809         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16810         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16811       fi
16812       ;;
16813
16814     uts4*)
16815       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16816       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16817       hardcode_shlibpath_var_GCJ=no
16818       ;;
16819
16820     *)
16821       ld_shlibs_GCJ=no
16822       ;;
16823     esac
16824   fi
16825
16826 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16827 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16828 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16829
16830 #
16831 # Do we need to explicitly link libc?
16832 #
16833 case "x$archive_cmds_need_lc_GCJ" in
16834 x|xyes)
16835   # Assume -lc should be added
16836   archive_cmds_need_lc_GCJ=yes
16837
16838   if test "$enable_shared" = yes && test "$GCC" = yes; then
16839     case $archive_cmds_GCJ in
16840     *'~'*)
16841       # FIXME: we may have to deal with multi-command sequences.
16842       ;;
16843     '$CC '*)
16844       # Test whether the compiler implicitly links with -lc since on some
16845       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16846       # to ld, don't add -lc before -lgcc.
16847       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16848 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16849       $rm conftest*
16850       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16851
16852       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16853   (eval $ac_compile) 2>&5
16854   ac_status=$?
16855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16856   (exit $ac_status); } 2>conftest.err; then
16857         soname=conftest
16858         lib=conftest
16859         libobjs=conftest.$ac_objext
16860         deplibs=
16861         wl=$lt_prog_compiler_wl_GCJ
16862         pic_flag=$lt_prog_compiler_pic_GCJ
16863         compiler_flags=-v
16864         linker_flags=-v
16865         verstring=
16866         output_objdir=.
16867         libname=conftest
16868         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16869         allow_undefined_flag_GCJ=
16870         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16871   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16872   ac_status=$?
16873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874   (exit $ac_status); }
16875         then
16876           archive_cmds_need_lc_GCJ=no
16877         else
16878           archive_cmds_need_lc_GCJ=yes
16879         fi
16880         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16881       else
16882         cat conftest.err 1>&5
16883       fi
16884       $rm conftest*
16885       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16886 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16887       ;;
16888     esac
16889   fi
16890   ;;
16891 esac
16892
16893 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16894 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16895 library_names_spec=
16896 libname_spec='lib$name'
16897 soname_spec=
16898 shrext_cmds=".so"
16899 postinstall_cmds=
16900 postuninstall_cmds=
16901 finish_cmds=
16902 finish_eval=
16903 shlibpath_var=
16904 shlibpath_overrides_runpath=unknown
16905 version_type=none
16906 dynamic_linker="$host_os ld.so"
16907 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16908 if test "$GCC" = yes; then
16909   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16910   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16911     # if the path contains ";" then we assume it to be the separator
16912     # otherwise default to the standard path separator (i.e. ":") - it is
16913     # assumed that no part of a normal pathname contains ";" but that should
16914     # okay in the real world where ";" in dirpaths is itself problematic.
16915     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16916   else
16917     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16918   fi
16919 else
16920   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16921 fi
16922 need_lib_prefix=unknown
16923 hardcode_into_libs=no
16924
16925 # when you set need_version to no, make sure it does not cause -set_version
16926 # flags to be left without arguments
16927 need_version=unknown
16928
16929 case $host_os in
16930 aix3*)
16931   version_type=linux
16932   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16933   shlibpath_var=LIBPATH
16934
16935   # AIX 3 has no versioning support, so we append a major version to the name.
16936   soname_spec='${libname}${release}${shared_ext}$major'
16937   ;;
16938
16939 aix4* | aix5*)
16940   version_type=linux
16941   need_lib_prefix=no
16942   need_version=no
16943   hardcode_into_libs=yes
16944   if test "$host_cpu" = ia64; then
16945     # AIX 5 supports IA64
16946     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16947     shlibpath_var=LD_LIBRARY_PATH
16948   else
16949     # With GCC up to 2.95.x, collect2 would create an import file
16950     # for dependence libraries.  The import file would start with
16951     # the line `#! .'.  This would cause the generated library to
16952     # depend on `.', always an invalid library.  This was fixed in
16953     # development snapshots of GCC prior to 3.0.
16954     case $host_os in
16955       aix4 | aix4.[01] | aix4.[01].*)
16956       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16957            echo ' yes '
16958            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16959         :
16960       else
16961         can_build_shared=no
16962       fi
16963       ;;
16964     esac
16965     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16966     # soname into executable. Probably we can add versioning support to
16967     # collect2, so additional links can be useful in future.
16968     if test "$aix_use_runtimelinking" = yes; then
16969       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16970       # instead of lib<name>.a to let people know that these are not
16971       # typical AIX shared libraries.
16972       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16973     else
16974       # We preserve .a as extension for shared libraries through AIX4.2
16975       # and later when we are not doing run time linking.
16976       library_names_spec='${libname}${release}.a $libname.a'
16977       soname_spec='${libname}${release}${shared_ext}$major'
16978     fi
16979     shlibpath_var=LIBPATH
16980   fi
16981   ;;
16982
16983 amigaos*)
16984   library_names_spec='$libname.ixlibrary $libname.a'
16985   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16986   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'
16987   ;;
16988
16989 beos*)
16990   library_names_spec='${libname}${shared_ext}'
16991   dynamic_linker="$host_os ld.so"
16992   shlibpath_var=LIBRARY_PATH
16993   ;;
16994
16995 bsdi[45]*)
16996   version_type=linux
16997   need_version=no
16998   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16999   soname_spec='${libname}${release}${shared_ext}$major'
17000   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17001   shlibpath_var=LD_LIBRARY_PATH
17002   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17003   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17004   # the default ld.so.conf also contains /usr/contrib/lib and
17005   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17006   # libtool to hard-code these into programs
17007   ;;
17008
17009 cygwin* | mingw* | pw32*)
17010   version_type=windows
17011   shrext_cmds=".dll"
17012   need_version=no
17013   need_lib_prefix=no
17014
17015   case $GCC,$host_os in
17016   yes,cygwin* | yes,mingw* | yes,pw32*)
17017     library_names_spec='$libname.dll.a'
17018     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17019     postinstall_cmds='base_file=`basename \${file}`~
17020       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17021       dldir=$destdir/`dirname \$dlpath`~
17022       test -d \$dldir || mkdir -p \$dldir~
17023       $install_prog $dir/$dlname \$dldir/$dlname~
17024       chmod a+x \$dldir/$dlname'
17025     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17026       dlpath=$dir/\$dldll~
17027        $rm \$dlpath'
17028     shlibpath_overrides_runpath=yes
17029
17030     case $host_os in
17031     cygwin*)
17032       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17033       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17034       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17035       ;;
17036     mingw*)
17037       # MinGW DLLs use traditional 'lib' prefix
17038       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17039       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17040       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17041         # It is most probably a Windows format PATH printed by
17042         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17043         # path with ; separators, and with drive letters. We can handle the
17044         # drive letters (cygwin fileutils understands them), so leave them,
17045         # especially as we might pass files found there to a mingw objdump,
17046         # which wouldn't understand a cygwinified path. Ahh.
17047         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17048       else
17049         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17050       fi
17051       ;;
17052     pw32*)
17053       # pw32 DLLs use 'pw' prefix rather than 'lib'
17054       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17055       ;;
17056     esac
17057     ;;
17058
17059   *)
17060     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17061     ;;
17062   esac
17063   dynamic_linker='Win32 ld.exe'
17064   # FIXME: first we should search . and the directory the executable is in
17065   shlibpath_var=PATH
17066   ;;
17067
17068 darwin* | rhapsody*)
17069   dynamic_linker="$host_os dyld"
17070   version_type=darwin
17071   need_lib_prefix=no
17072   need_version=no
17073   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17074   soname_spec='${libname}${release}${major}$shared_ext'
17075   shlibpath_overrides_runpath=yes
17076   shlibpath_var=DYLD_LIBRARY_PATH
17077   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17078   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17079   if test "$GCC" = yes; then
17080     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"`
17081   else
17082     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17083   fi
17084   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17085   ;;
17086
17087 dgux*)
17088   version_type=linux
17089   need_lib_prefix=no
17090   need_version=no
17091   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17092   soname_spec='${libname}${release}${shared_ext}$major'
17093   shlibpath_var=LD_LIBRARY_PATH
17094   ;;
17095
17096 freebsd1*)
17097   dynamic_linker=no
17098   ;;
17099
17100 freebsd* | dragonfly*)
17101   # DragonFly does not have aout.  When/if they implement a new
17102   # versioning mechanism, adjust this.
17103   if test -x /usr/bin/objformat; then
17104     objformat=`/usr/bin/objformat`
17105   else
17106     case $host_os in
17107     freebsd[123]*) objformat=aout ;;
17108     *) objformat=elf ;;
17109     esac
17110   fi
17111   version_type=freebsd-$objformat
17112   case $version_type in
17113     freebsd-elf*)
17114       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17115       need_version=no
17116       need_lib_prefix=no
17117       ;;
17118     freebsd-*)
17119       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17120       need_version=yes
17121       ;;
17122   esac
17123   shlibpath_var=LD_LIBRARY_PATH
17124   case $host_os in
17125   freebsd2*)
17126     shlibpath_overrides_runpath=yes
17127     ;;
17128   freebsd3.[01]* | freebsdelf3.[01]*)
17129     shlibpath_overrides_runpath=yes
17130     hardcode_into_libs=yes
17131     ;;
17132   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17133   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17134     shlibpath_overrides_runpath=no
17135     hardcode_into_libs=yes
17136     ;;
17137   freebsd*) # from 4.6 on
17138     shlibpath_overrides_runpath=yes
17139     hardcode_into_libs=yes
17140     ;;
17141   esac
17142   ;;
17143
17144 gnu*)
17145   version_type=linux
17146   need_lib_prefix=no
17147   need_version=no
17148   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17149   soname_spec='${libname}${release}${shared_ext}$major'
17150   shlibpath_var=LD_LIBRARY_PATH
17151   hardcode_into_libs=yes
17152   ;;
17153
17154 hpux9* | hpux10* | hpux11*)
17155   # Give a soname corresponding to the major version so that dld.sl refuses to
17156   # link against other versions.
17157   version_type=sunos
17158   need_lib_prefix=no
17159   need_version=no
17160   case $host_cpu in
17161   ia64*)
17162     shrext_cmds='.so'
17163     hardcode_into_libs=yes
17164     dynamic_linker="$host_os dld.so"
17165     shlibpath_var=LD_LIBRARY_PATH
17166     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17167     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17168     soname_spec='${libname}${release}${shared_ext}$major'
17169     if test "X$HPUX_IA64_MODE" = X32; then
17170       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17171     else
17172       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17173     fi
17174     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17175     ;;
17176    hppa*64*)
17177      shrext_cmds='.sl'
17178      hardcode_into_libs=yes
17179      dynamic_linker="$host_os dld.sl"
17180      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17181      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17182      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17183      soname_spec='${libname}${release}${shared_ext}$major'
17184      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17185      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17186      ;;
17187    *)
17188     shrext_cmds='.sl'
17189     dynamic_linker="$host_os dld.sl"
17190     shlibpath_var=SHLIB_PATH
17191     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17192     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17193     soname_spec='${libname}${release}${shared_ext}$major'
17194     ;;
17195   esac
17196   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17197   postinstall_cmds='chmod 555 $lib'
17198   ;;
17199
17200 interix3*)
17201   version_type=linux
17202   need_lib_prefix=no
17203   need_version=no
17204   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17205   soname_spec='${libname}${release}${shared_ext}$major'
17206   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17207   shlibpath_var=LD_LIBRARY_PATH
17208   shlibpath_overrides_runpath=no
17209   hardcode_into_libs=yes
17210   ;;
17211
17212 irix5* | irix6* | nonstopux*)
17213   case $host_os in
17214     nonstopux*) version_type=nonstopux ;;
17215     *)
17216         if test "$lt_cv_prog_gnu_ld" = yes; then
17217                 version_type=linux
17218         else
17219                 version_type=irix
17220         fi ;;
17221   esac
17222   need_lib_prefix=no
17223   need_version=no
17224   soname_spec='${libname}${release}${shared_ext}$major'
17225   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17226   case $host_os in
17227   irix5* | nonstopux*)
17228     libsuff= shlibsuff=
17229     ;;
17230   *)
17231     case $LD in # libtool.m4 will add one of these switches to LD
17232     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17233       libsuff= shlibsuff= libmagic=32-bit;;
17234     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17235       libsuff=32 shlibsuff=N32 libmagic=N32;;
17236     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17237       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17238     *) libsuff= shlibsuff= libmagic=never-match;;
17239     esac
17240     ;;
17241   esac
17242   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17243   shlibpath_overrides_runpath=no
17244   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17245   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17246   hardcode_into_libs=yes
17247   ;;
17248
17249 # No shared lib support for Linux oldld, aout, or coff.
17250 linux*oldld* | linux*aout* | linux*coff*)
17251   dynamic_linker=no
17252   ;;
17253
17254 # This must be Linux ELF.
17255 linux* | k*bsd*-gnu)
17256   version_type=linux
17257   need_lib_prefix=no
17258   need_version=no
17259   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17260   soname_spec='${libname}${release}${shared_ext}$major'
17261   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17262   shlibpath_var=LD_LIBRARY_PATH
17263   shlibpath_overrides_runpath=no
17264   # This implies no fast_install, which is unacceptable.
17265   # Some rework will be needed to allow for fast_install
17266   # before this can be enabled.
17267   hardcode_into_libs=yes
17268
17269   # Append ld.so.conf contents to the search path
17270   if test -f /etc/ld.so.conf; then
17271     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' ' '`
17272     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17273   fi
17274
17275   # We used to test for /lib/ld.so.1 and disable shared libraries on
17276   # powerpc, because MkLinux only supported shared libraries with the
17277   # GNU dynamic linker.  Since this was broken with cross compilers,
17278   # most powerpc-linux boxes support dynamic linking these days and
17279   # people can always --disable-shared, the test was removed, and we
17280   # assume the GNU/Linux dynamic linker is in use.
17281   dynamic_linker='GNU/Linux ld.so'
17282   ;;
17283
17284 netbsdelf*-gnu)
17285   version_type=linux
17286   need_lib_prefix=no
17287   need_version=no
17288   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17289   soname_spec='${libname}${release}${shared_ext}$major'
17290   shlibpath_var=LD_LIBRARY_PATH
17291   shlibpath_overrides_runpath=no
17292   hardcode_into_libs=yes
17293   dynamic_linker='NetBSD ld.elf_so'
17294   ;;
17295
17296 netbsd*)
17297   version_type=sunos
17298   need_lib_prefix=no
17299   need_version=no
17300   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17301     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17302     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17303     dynamic_linker='NetBSD (a.out) ld.so'
17304   else
17305     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17306     soname_spec='${libname}${release}${shared_ext}$major'
17307     dynamic_linker='NetBSD ld.elf_so'
17308   fi
17309   shlibpath_var=LD_LIBRARY_PATH
17310   shlibpath_overrides_runpath=yes
17311   hardcode_into_libs=yes
17312   ;;
17313
17314 newsos6)
17315   version_type=linux
17316   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17317   shlibpath_var=LD_LIBRARY_PATH
17318   shlibpath_overrides_runpath=yes
17319   ;;
17320
17321 nto-qnx*)
17322   version_type=linux
17323   need_lib_prefix=no
17324   need_version=no
17325   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17326   soname_spec='${libname}${release}${shared_ext}$major'
17327   shlibpath_var=LD_LIBRARY_PATH
17328   shlibpath_overrides_runpath=yes
17329   ;;
17330
17331 openbsd*)
17332   version_type=sunos
17333   sys_lib_dlsearch_path_spec="/usr/lib"
17334   need_lib_prefix=no
17335   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17336   case $host_os in
17337     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17338     *)                         need_version=no  ;;
17339   esac
17340   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17341   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17342   shlibpath_var=LD_LIBRARY_PATH
17343   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17344     case $host_os in
17345       openbsd2.[89] | openbsd2.[89].*)
17346         shlibpath_overrides_runpath=no
17347         ;;
17348       *)
17349         shlibpath_overrides_runpath=yes
17350         ;;
17351       esac
17352   else
17353     shlibpath_overrides_runpath=yes
17354   fi
17355   ;;
17356
17357 os2*)
17358   libname_spec='$name'
17359   shrext_cmds=".dll"
17360   need_lib_prefix=no
17361   library_names_spec='$libname${shared_ext} $libname.a'
17362   dynamic_linker='OS/2 ld.exe'
17363   shlibpath_var=LIBPATH
17364   ;;
17365
17366 osf3* | osf4* | osf5*)
17367   version_type=osf
17368   need_lib_prefix=no
17369   need_version=no
17370   soname_spec='${libname}${release}${shared_ext}$major'
17371   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17372   shlibpath_var=LD_LIBRARY_PATH
17373   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17374   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17375   ;;
17376
17377 solaris*)
17378   version_type=linux
17379   need_lib_prefix=no
17380   need_version=no
17381   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17382   soname_spec='${libname}${release}${shared_ext}$major'
17383   shlibpath_var=LD_LIBRARY_PATH
17384   shlibpath_overrides_runpath=yes
17385   hardcode_into_libs=yes
17386   # ldd complains unless libraries are executable
17387   postinstall_cmds='chmod +x $lib'
17388   ;;
17389
17390 sunos4*)
17391   version_type=sunos
17392   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17393   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17394   shlibpath_var=LD_LIBRARY_PATH
17395   shlibpath_overrides_runpath=yes
17396   if test "$with_gnu_ld" = yes; then
17397     need_lib_prefix=no
17398   fi
17399   need_version=yes
17400   ;;
17401
17402 sysv4 | sysv4.3*)
17403   version_type=linux
17404   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17405   soname_spec='${libname}${release}${shared_ext}$major'
17406   shlibpath_var=LD_LIBRARY_PATH
17407   case $host_vendor in
17408     sni)
17409       shlibpath_overrides_runpath=no
17410       need_lib_prefix=no
17411       export_dynamic_flag_spec='${wl}-Blargedynsym'
17412       runpath_var=LD_RUN_PATH
17413       ;;
17414     siemens)
17415       need_lib_prefix=no
17416       ;;
17417     motorola)
17418       need_lib_prefix=no
17419       need_version=no
17420       shlibpath_overrides_runpath=no
17421       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17422       ;;
17423   esac
17424   ;;
17425
17426 sysv4*MP*)
17427   if test -d /usr/nec ;then
17428     version_type=linux
17429     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17430     soname_spec='$libname${shared_ext}.$major'
17431     shlibpath_var=LD_LIBRARY_PATH
17432   fi
17433   ;;
17434
17435 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17436   version_type=freebsd-elf
17437   need_lib_prefix=no
17438   need_version=no
17439   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17440   soname_spec='${libname}${release}${shared_ext}$major'
17441   shlibpath_var=LD_LIBRARY_PATH
17442   hardcode_into_libs=yes
17443   if test "$with_gnu_ld" = yes; then
17444     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17445     shlibpath_overrides_runpath=no
17446   else
17447     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17448     shlibpath_overrides_runpath=yes
17449     case $host_os in
17450       sco3.2v5*)
17451         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17452         ;;
17453     esac
17454   fi
17455   sys_lib_dlsearch_path_spec='/usr/lib'
17456   ;;
17457
17458 uts4*)
17459   version_type=linux
17460   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17461   soname_spec='${libname}${release}${shared_ext}$major'
17462   shlibpath_var=LD_LIBRARY_PATH
17463   ;;
17464
17465 *)
17466   dynamic_linker=no
17467   ;;
17468 esac
17469 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17470 echo "${ECHO_T}$dynamic_linker" >&6
17471 test "$dynamic_linker" = no && can_build_shared=no
17472
17473 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17474 if test "$GCC" = yes; then
17475   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17476 fi
17477
17478 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17479 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17480 hardcode_action_GCJ=
17481 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17482    test -n "$runpath_var_GCJ" || \
17483    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17484
17485   # We can hardcode non-existant directories.
17486   if test "$hardcode_direct_GCJ" != no &&
17487      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17488      # have to relink, otherwise we might link with an installed library
17489      # when we should be linking with a yet-to-be-installed one
17490      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17491      test "$hardcode_minus_L_GCJ" != no; then
17492     # Linking always hardcodes the temporary library directory.
17493     hardcode_action_GCJ=relink
17494   else
17495     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17496     hardcode_action_GCJ=immediate
17497   fi
17498 else
17499   # We cannot hardcode anything, or else we can only hardcode existing
17500   # directories.
17501   hardcode_action_GCJ=unsupported
17502 fi
17503 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17504 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17505
17506 if test "$hardcode_action_GCJ" = relink; then
17507   # Fast installation is not supported
17508   enable_fast_install=no
17509 elif test "$shlibpath_overrides_runpath" = yes ||
17510      test "$enable_shared" = no; then
17511   # Fast installation is not necessary
17512   enable_fast_install=needless
17513 fi
17514
17515
17516 # The else clause should only fire when bootstrapping the
17517 # libtool distribution, otherwise you forgot to ship ltmain.sh
17518 # with your package, and you will get complaints that there are
17519 # no rules to generate ltmain.sh.
17520 if test -f "$ltmain"; then
17521   # See if we are running on zsh, and set the options which allow our commands through
17522   # without removal of \ escapes.
17523   if test -n "${ZSH_VERSION+set}" ; then
17524     setopt NO_GLOB_SUBST
17525   fi
17526   # Now quote all the things that may contain metacharacters while being
17527   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17528   # variables and quote the copies for generation of the libtool script.
17529   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17530     SED SHELL STRIP \
17531     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17532     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17533     deplibs_check_method reload_flag reload_cmds need_locks \
17534     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17535     lt_cv_sys_global_symbol_to_c_name_address \
17536     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17537     old_postinstall_cmds old_postuninstall_cmds \
17538     compiler_GCJ \
17539     CC_GCJ \
17540     LD_GCJ \
17541     lt_prog_compiler_wl_GCJ \
17542     lt_prog_compiler_pic_GCJ \
17543     lt_prog_compiler_static_GCJ \
17544     lt_prog_compiler_no_builtin_flag_GCJ \
17545     export_dynamic_flag_spec_GCJ \
17546     thread_safe_flag_spec_GCJ \
17547     whole_archive_flag_spec_GCJ \
17548     enable_shared_with_static_runtimes_GCJ \
17549     old_archive_cmds_GCJ \
17550     old_archive_from_new_cmds_GCJ \
17551     predep_objects_GCJ \
17552     postdep_objects_GCJ \
17553     predeps_GCJ \
17554     postdeps_GCJ \
17555     compiler_lib_search_path_GCJ \
17556     archive_cmds_GCJ \
17557     archive_expsym_cmds_GCJ \
17558     postinstall_cmds_GCJ \
17559     postuninstall_cmds_GCJ \
17560     old_archive_from_expsyms_cmds_GCJ \
17561     allow_undefined_flag_GCJ \
17562     no_undefined_flag_GCJ \
17563     export_symbols_cmds_GCJ \
17564     hardcode_libdir_flag_spec_GCJ \
17565     hardcode_libdir_flag_spec_ld_GCJ \
17566     hardcode_libdir_separator_GCJ \
17567     hardcode_automatic_GCJ \
17568     module_cmds_GCJ \
17569     module_expsym_cmds_GCJ \
17570     lt_cv_prog_compiler_c_o_GCJ \
17571     exclude_expsyms_GCJ \
17572     include_expsyms_GCJ; do
17573
17574     case $var in
17575     old_archive_cmds_GCJ | \
17576     old_archive_from_new_cmds_GCJ | \
17577     archive_cmds_GCJ | \
17578     archive_expsym_cmds_GCJ | \
17579     module_cmds_GCJ | \
17580     module_expsym_cmds_GCJ | \
17581     old_archive_from_expsyms_cmds_GCJ | \
17582     export_symbols_cmds_GCJ | \
17583     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17584     postinstall_cmds | postuninstall_cmds | \
17585     old_postinstall_cmds | old_postuninstall_cmds | \
17586     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17587       # Double-quote double-evaled strings.
17588       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17589       ;;
17590     *)
17591       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17592       ;;
17593     esac
17594   done
17595
17596   case $lt_echo in
17597   *'\$0 --fallback-echo"')
17598     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17599     ;;
17600   esac
17601
17602 cfgfile="$ofile"
17603
17604   cat <<__EOF__ >> "$cfgfile"
17605 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17606
17607 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17608
17609 # Shell to use when invoking shell scripts.
17610 SHELL=$lt_SHELL
17611
17612 # Whether or not to build shared libraries.
17613 build_libtool_libs=$enable_shared
17614
17615 # Whether or not to build static libraries.
17616 build_old_libs=$enable_static
17617
17618 # Whether or not to add -lc for building shared libraries.
17619 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17620
17621 # Whether or not to disallow shared libs when runtime libs are static
17622 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17623
17624 # Whether or not to optimize for fast installation.
17625 fast_install=$enable_fast_install
17626
17627 # The host system.
17628 host_alias=$host_alias
17629 host=$host
17630 host_os=$host_os
17631
17632 # The build system.
17633 build_alias=$build_alias
17634 build=$build
17635 build_os=$build_os
17636
17637 # An echo program that does not interpret backslashes.
17638 echo=$lt_echo
17639
17640 # The archiver.
17641 AR=$lt_AR
17642 AR_FLAGS=$lt_AR_FLAGS
17643
17644 # A C compiler.
17645 LTCC=$lt_LTCC
17646
17647 # LTCC compiler flags.
17648 LTCFLAGS=$lt_LTCFLAGS
17649
17650 # A language-specific compiler.
17651 CC=$lt_compiler_GCJ
17652
17653 # Is the compiler the GNU C compiler?
17654 with_gcc=$GCC_GCJ
17655
17656 # An ERE matcher.
17657 EGREP=$lt_EGREP
17658
17659 # The linker used to build libraries.
17660 LD=$lt_LD_GCJ
17661
17662 # Whether we need hard or soft links.
17663 LN_S=$lt_LN_S
17664
17665 # A BSD-compatible nm program.
17666 NM=$lt_NM
17667
17668 # A symbol stripping program
17669 STRIP=$lt_STRIP
17670
17671 # Used to examine libraries when file_magic_cmd begins "file"
17672 MAGIC_CMD=$MAGIC_CMD
17673
17674 # Used on cygwin: DLL creation program.
17675 DLLTOOL="$DLLTOOL"
17676
17677 # Used on cygwin: object dumper.
17678 OBJDUMP="$OBJDUMP"
17679
17680 # Used on cygwin: assembler.
17681 AS="$AS"
17682
17683 # The name of the directory that contains temporary libtool files.
17684 objdir=$objdir
17685
17686 # How to create reloadable object files.
17687 reload_flag=$lt_reload_flag
17688 reload_cmds=$lt_reload_cmds
17689
17690 # How to pass a linker flag through the compiler.
17691 wl=$lt_lt_prog_compiler_wl_GCJ
17692
17693 # Object file suffix (normally "o").
17694 objext="$ac_objext"
17695
17696 # Old archive suffix (normally "a").
17697 libext="$libext"
17698
17699 # Shared library suffix (normally ".so").
17700 shrext_cmds='$shrext_cmds'
17701
17702 # Executable file suffix (normally "").
17703 exeext="$exeext"
17704
17705 # Additional compiler flags for building library objects.
17706 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17707 pic_mode=$pic_mode
17708
17709 # What is the maximum length of a command?
17710 max_cmd_len=$lt_cv_sys_max_cmd_len
17711
17712 # Does compiler simultaneously support -c and -o options?
17713 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17714
17715 # Must we lock files when doing compilation?
17716 need_locks=$lt_need_locks
17717
17718 # Do we need the lib prefix for modules?
17719 need_lib_prefix=$need_lib_prefix
17720
17721 # Do we need a version for libraries?
17722 need_version=$need_version
17723
17724 # Whether dlopen is supported.
17725 dlopen_support=$enable_dlopen
17726
17727 # Whether dlopen of programs is supported.
17728 dlopen_self=$enable_dlopen_self
17729
17730 # Whether dlopen of statically linked programs is supported.
17731 dlopen_self_static=$enable_dlopen_self_static
17732
17733 # Compiler flag to prevent dynamic linking.
17734 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17735
17736 # Compiler flag to turn off builtin functions.
17737 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17738
17739 # Compiler flag to allow reflexive dlopens.
17740 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17741
17742 # Compiler flag to generate shared objects directly from archives.
17743 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17744
17745 # Compiler flag to generate thread-safe objects.
17746 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17747
17748 # Library versioning type.
17749 version_type=$version_type
17750
17751 # Format of library name prefix.
17752 libname_spec=$lt_libname_spec
17753
17754 # List of archive names.  First name is the real one, the rest are links.
17755 # The last name is the one that the linker finds with -lNAME.
17756 library_names_spec=$lt_library_names_spec
17757
17758 # The coded name of the library, if different from the real name.
17759 soname_spec=$lt_soname_spec
17760
17761 # Commands used to build and install an old-style archive.
17762 RANLIB=$lt_RANLIB
17763 old_archive_cmds=$lt_old_archive_cmds_GCJ
17764 old_postinstall_cmds=$lt_old_postinstall_cmds
17765 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17766
17767 # Create an old-style archive from a shared archive.
17768 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17769
17770 # Create a temporary old-style archive to link instead of a shared archive.
17771 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17772
17773 # Commands used to build and install a shared archive.
17774 archive_cmds=$lt_archive_cmds_GCJ
17775 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17776 postinstall_cmds=$lt_postinstall_cmds
17777 postuninstall_cmds=$lt_postuninstall_cmds
17778
17779 # Commands used to build a loadable module (assumed same as above if empty)
17780 module_cmds=$lt_module_cmds_GCJ
17781 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17782
17783 # Commands to strip libraries.
17784 old_striplib=$lt_old_striplib
17785 striplib=$lt_striplib
17786
17787 # Dependencies to place before the objects being linked to create a
17788 # shared library.
17789 predep_objects=$lt_predep_objects_GCJ
17790
17791 # Dependencies to place after the objects being linked to create a
17792 # shared library.
17793 postdep_objects=$lt_postdep_objects_GCJ
17794
17795 # Dependencies to place before the objects being linked to create a
17796 # shared library.
17797 predeps=$lt_predeps_GCJ
17798
17799 # Dependencies to place after the objects being linked to create a
17800 # shared library.
17801 postdeps=$lt_postdeps_GCJ
17802
17803 # The library search path used internally by the compiler when linking
17804 # a shared library.
17805 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17806
17807 # Method to check whether dependent libraries are shared objects.
17808 deplibs_check_method=$lt_deplibs_check_method
17809
17810 # Command to use when deplibs_check_method == file_magic.
17811 file_magic_cmd=$lt_file_magic_cmd
17812
17813 # Flag that allows shared libraries with undefined symbols to be built.
17814 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17815
17816 # Flag that forces no undefined symbols.
17817 no_undefined_flag=$lt_no_undefined_flag_GCJ
17818
17819 # Commands used to finish a libtool library installation in a directory.
17820 finish_cmds=$lt_finish_cmds
17821
17822 # Same as above, but a single script fragment to be evaled but not shown.
17823 finish_eval=$lt_finish_eval
17824
17825 # Take the output of nm and produce a listing of raw symbols and C names.
17826 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17827
17828 # Transform the output of nm in a proper C declaration
17829 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17830
17831 # Transform the output of nm in a C name address pair
17832 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17833
17834 # This is the shared library runtime path variable.
17835 runpath_var=$runpath_var
17836
17837 # This is the shared library path variable.
17838 shlibpath_var=$shlibpath_var
17839
17840 # Is shlibpath searched before the hard-coded library search path?
17841 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17842
17843 # How to hardcode a shared library path into an executable.
17844 hardcode_action=$hardcode_action_GCJ
17845
17846 # Whether we should hardcode library paths into libraries.
17847 hardcode_into_libs=$hardcode_into_libs
17848
17849 # Flag to hardcode \$libdir into a binary during linking.
17850 # This must work even if \$libdir does not exist.
17851 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17852
17853 # If ld is used when linking, flag to hardcode \$libdir into
17854 # a binary during linking. This must work even if \$libdir does
17855 # not exist.
17856 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17857
17858 # Whether we need a single -rpath flag with a separated argument.
17859 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17860
17861 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17862 # resulting binary.
17863 hardcode_direct=$hardcode_direct_GCJ
17864
17865 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17866 # resulting binary.
17867 hardcode_minus_L=$hardcode_minus_L_GCJ
17868
17869 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17870 # the resulting binary.
17871 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17872
17873 # Set to yes if building a shared library automatically hardcodes DIR into the library
17874 # and all subsequent libraries and executables linked against it.
17875 hardcode_automatic=$hardcode_automatic_GCJ
17876
17877 # Variables whose values should be saved in libtool wrapper scripts and
17878 # restored at relink time.
17879 variables_saved_for_relink="$variables_saved_for_relink"
17880
17881 # Whether libtool must link a program against all its dependency libraries.
17882 link_all_deplibs=$link_all_deplibs_GCJ
17883
17884 # Compile-time system search path for libraries
17885 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17886
17887 # Run-time system search path for libraries
17888 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17889
17890 # Fix the shell variable \$srcfile for the compiler.
17891 fix_srcfile_path="$fix_srcfile_path_GCJ"
17892
17893 # Set to yes if exported symbols are required.
17894 always_export_symbols=$always_export_symbols_GCJ
17895
17896 # The commands to list exported symbols.
17897 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17898
17899 # The commands to extract the exported symbol list from a shared archive.
17900 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17901
17902 # Symbols that should not be listed in the preloaded symbols.
17903 exclude_expsyms=$lt_exclude_expsyms_GCJ
17904
17905 # Symbols that must always be exported.
17906 include_expsyms=$lt_include_expsyms_GCJ
17907
17908 # ### END LIBTOOL TAG CONFIG: $tagname
17909
17910 __EOF__
17911
17912
17913 else
17914   # If there is no Makefile yet, we rely on a make rule to execute
17915   # `config.status --recheck' to rerun these tests and create the
17916   # libtool script then.
17917   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17918   if test -f "$ltmain_in"; then
17919     test -f Makefile && make "$ltmain"
17920   fi
17921 fi
17922
17923
17924 ac_ext=c
17925 ac_cpp='$CPP $CPPFLAGS'
17926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17929
17930 CC="$lt_save_CC"
17931
17932         else
17933           tagname=""
17934         fi
17935         ;;
17936
17937       RC)
17938         
17939
17940
17941 # Source file extension for RC test sources.
17942 ac_ext=rc
17943
17944 # Object file extension for compiled RC test sources.
17945 objext=o
17946 objext_RC=$objext
17947
17948 # Code to be used in simple compile tests
17949 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17950
17951 # Code to be used in simple link tests
17952 lt_simple_link_test_code="$lt_simple_compile_test_code"
17953
17954 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17955
17956 # If no C compiler was specified, use CC.
17957 LTCC=${LTCC-"$CC"}
17958
17959 # If no C compiler flags were specified, use CFLAGS.
17960 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17961
17962 # Allow CC to be a program name with arguments.
17963 compiler=$CC
17964
17965
17966 # save warnings/boilerplate of simple test code
17967 ac_outfile=conftest.$ac_objext
17968 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17969 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17970 _lt_compiler_boilerplate=`cat conftest.err`
17971 $rm conftest*
17972
17973 ac_outfile=conftest.$ac_objext
17974 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17975 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17976 _lt_linker_boilerplate=`cat conftest.err`
17977 $rm conftest*
17978
17979
17980 # Allow CC to be a program name with arguments.
17981 lt_save_CC="$CC"
17982 CC=${RC-"windres"}
17983 compiler=$CC
17984 compiler_RC=$CC
17985 for cc_temp in $compiler""; do
17986   case $cc_temp in
17987     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17988     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17989     \-*) ;;
17990     *) break;;
17991   esac
17992 done
17993 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17994
17995 lt_cv_prog_compiler_c_o_RC=yes
17996
17997 # The else clause should only fire when bootstrapping the
17998 # libtool distribution, otherwise you forgot to ship ltmain.sh
17999 # with your package, and you will get complaints that there are
18000 # no rules to generate ltmain.sh.
18001 if test -f "$ltmain"; then
18002   # See if we are running on zsh, and set the options which allow our commands through
18003   # without removal of \ escapes.
18004   if test -n "${ZSH_VERSION+set}" ; then
18005     setopt NO_GLOB_SUBST
18006   fi
18007   # Now quote all the things that may contain metacharacters while being
18008   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18009   # variables and quote the copies for generation of the libtool script.
18010   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18011     SED SHELL STRIP \
18012     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18013     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18014     deplibs_check_method reload_flag reload_cmds need_locks \
18015     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18016     lt_cv_sys_global_symbol_to_c_name_address \
18017     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18018     old_postinstall_cmds old_postuninstall_cmds \
18019     compiler_RC \
18020     CC_RC \
18021     LD_RC \
18022     lt_prog_compiler_wl_RC \
18023     lt_prog_compiler_pic_RC \
18024     lt_prog_compiler_static_RC \
18025     lt_prog_compiler_no_builtin_flag_RC \
18026     export_dynamic_flag_spec_RC \
18027     thread_safe_flag_spec_RC \
18028     whole_archive_flag_spec_RC \
18029     enable_shared_with_static_runtimes_RC \
18030     old_archive_cmds_RC \
18031     old_archive_from_new_cmds_RC \
18032     predep_objects_RC \
18033     postdep_objects_RC \
18034     predeps_RC \
18035     postdeps_RC \
18036     compiler_lib_search_path_RC \
18037     archive_cmds_RC \
18038     archive_expsym_cmds_RC \
18039     postinstall_cmds_RC \
18040     postuninstall_cmds_RC \
18041     old_archive_from_expsyms_cmds_RC \
18042     allow_undefined_flag_RC \
18043     no_undefined_flag_RC \
18044     export_symbols_cmds_RC \
18045     hardcode_libdir_flag_spec_RC \
18046     hardcode_libdir_flag_spec_ld_RC \
18047     hardcode_libdir_separator_RC \
18048     hardcode_automatic_RC \
18049     module_cmds_RC \
18050     module_expsym_cmds_RC \
18051     lt_cv_prog_compiler_c_o_RC \
18052     exclude_expsyms_RC \
18053     include_expsyms_RC; do
18054
18055     case $var in
18056     old_archive_cmds_RC | \
18057     old_archive_from_new_cmds_RC | \
18058     archive_cmds_RC | \
18059     archive_expsym_cmds_RC | \
18060     module_cmds_RC | \
18061     module_expsym_cmds_RC | \
18062     old_archive_from_expsyms_cmds_RC | \
18063     export_symbols_cmds_RC | \
18064     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18065     postinstall_cmds | postuninstall_cmds | \
18066     old_postinstall_cmds | old_postuninstall_cmds | \
18067     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18068       # Double-quote double-evaled strings.
18069       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18070       ;;
18071     *)
18072       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18073       ;;
18074     esac
18075   done
18076
18077   case $lt_echo in
18078   *'\$0 --fallback-echo"')
18079     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18080     ;;
18081   esac
18082
18083 cfgfile="$ofile"
18084
18085   cat <<__EOF__ >> "$cfgfile"
18086 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18087
18088 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18089
18090 # Shell to use when invoking shell scripts.
18091 SHELL=$lt_SHELL
18092
18093 # Whether or not to build shared libraries.
18094 build_libtool_libs=$enable_shared
18095
18096 # Whether or not to build static libraries.
18097 build_old_libs=$enable_static
18098
18099 # Whether or not to add -lc for building shared libraries.
18100 build_libtool_need_lc=$archive_cmds_need_lc_RC
18101
18102 # Whether or not to disallow shared libs when runtime libs are static
18103 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18104
18105 # Whether or not to optimize for fast installation.
18106 fast_install=$enable_fast_install
18107
18108 # The host system.
18109 host_alias=$host_alias
18110 host=$host
18111 host_os=$host_os
18112
18113 # The build system.
18114 build_alias=$build_alias
18115 build=$build
18116 build_os=$build_os
18117
18118 # An echo program that does not interpret backslashes.
18119 echo=$lt_echo
18120
18121 # The archiver.
18122 AR=$lt_AR
18123 AR_FLAGS=$lt_AR_FLAGS
18124
18125 # A C compiler.
18126 LTCC=$lt_LTCC
18127
18128 # LTCC compiler flags.
18129 LTCFLAGS=$lt_LTCFLAGS
18130
18131 # A language-specific compiler.
18132 CC=$lt_compiler_RC
18133
18134 # Is the compiler the GNU C compiler?
18135 with_gcc=$GCC_RC
18136
18137 # An ERE matcher.
18138 EGREP=$lt_EGREP
18139
18140 # The linker used to build libraries.
18141 LD=$lt_LD_RC
18142
18143 # Whether we need hard or soft links.
18144 LN_S=$lt_LN_S
18145
18146 # A BSD-compatible nm program.
18147 NM=$lt_NM
18148
18149 # A symbol stripping program
18150 STRIP=$lt_STRIP
18151
18152 # Used to examine libraries when file_magic_cmd begins "file"
18153 MAGIC_CMD=$MAGIC_CMD
18154
18155 # Used on cygwin: DLL creation program.
18156 DLLTOOL="$DLLTOOL"
18157
18158 # Used on cygwin: object dumper.
18159 OBJDUMP="$OBJDUMP"
18160
18161 # Used on cygwin: assembler.
18162 AS="$AS"
18163
18164 # The name of the directory that contains temporary libtool files.
18165 objdir=$objdir
18166
18167 # How to create reloadable object files.
18168 reload_flag=$lt_reload_flag
18169 reload_cmds=$lt_reload_cmds
18170
18171 # How to pass a linker flag through the compiler.
18172 wl=$lt_lt_prog_compiler_wl_RC
18173
18174 # Object file suffix (normally "o").
18175 objext="$ac_objext"
18176
18177 # Old archive suffix (normally "a").
18178 libext="$libext"
18179
18180 # Shared library suffix (normally ".so").
18181 shrext_cmds='$shrext_cmds'
18182
18183 # Executable file suffix (normally "").
18184 exeext="$exeext"
18185
18186 # Additional compiler flags for building library objects.
18187 pic_flag=$lt_lt_prog_compiler_pic_RC
18188 pic_mode=$pic_mode
18189
18190 # What is the maximum length of a command?
18191 max_cmd_len=$lt_cv_sys_max_cmd_len
18192
18193 # Does compiler simultaneously support -c and -o options?
18194 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18195
18196 # Must we lock files when doing compilation?
18197 need_locks=$lt_need_locks
18198
18199 # Do we need the lib prefix for modules?
18200 need_lib_prefix=$need_lib_prefix
18201
18202 # Do we need a version for libraries?
18203 need_version=$need_version
18204
18205 # Whether dlopen is supported.
18206 dlopen_support=$enable_dlopen
18207
18208 # Whether dlopen of programs is supported.
18209 dlopen_self=$enable_dlopen_self
18210
18211 # Whether dlopen of statically linked programs is supported.
18212 dlopen_self_static=$enable_dlopen_self_static
18213
18214 # Compiler flag to prevent dynamic linking.
18215 link_static_flag=$lt_lt_prog_compiler_static_RC
18216
18217 # Compiler flag to turn off builtin functions.
18218 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18219
18220 # Compiler flag to allow reflexive dlopens.
18221 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18222
18223 # Compiler flag to generate shared objects directly from archives.
18224 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18225
18226 # Compiler flag to generate thread-safe objects.
18227 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18228
18229 # Library versioning type.
18230 version_type=$version_type
18231
18232 # Format of library name prefix.
18233 libname_spec=$lt_libname_spec
18234
18235 # List of archive names.  First name is the real one, the rest are links.
18236 # The last name is the one that the linker finds with -lNAME.
18237 library_names_spec=$lt_library_names_spec
18238
18239 # The coded name of the library, if different from the real name.
18240 soname_spec=$lt_soname_spec
18241
18242 # Commands used to build and install an old-style archive.
18243 RANLIB=$lt_RANLIB
18244 old_archive_cmds=$lt_old_archive_cmds_RC
18245 old_postinstall_cmds=$lt_old_postinstall_cmds
18246 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18247
18248 # Create an old-style archive from a shared archive.
18249 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18250
18251 # Create a temporary old-style archive to link instead of a shared archive.
18252 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18253
18254 # Commands used to build and install a shared archive.
18255 archive_cmds=$lt_archive_cmds_RC
18256 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18257 postinstall_cmds=$lt_postinstall_cmds
18258 postuninstall_cmds=$lt_postuninstall_cmds
18259
18260 # Commands used to build a loadable module (assumed same as above if empty)
18261 module_cmds=$lt_module_cmds_RC
18262 module_expsym_cmds=$lt_module_expsym_cmds_RC
18263
18264 # Commands to strip libraries.
18265 old_striplib=$lt_old_striplib
18266 striplib=$lt_striplib
18267
18268 # Dependencies to place before the objects being linked to create a
18269 # shared library.
18270 predep_objects=$lt_predep_objects_RC
18271
18272 # Dependencies to place after the objects being linked to create a
18273 # shared library.
18274 postdep_objects=$lt_postdep_objects_RC
18275
18276 # Dependencies to place before the objects being linked to create a
18277 # shared library.
18278 predeps=$lt_predeps_RC
18279
18280 # Dependencies to place after the objects being linked to create a
18281 # shared library.
18282 postdeps=$lt_postdeps_RC
18283
18284 # The library search path used internally by the compiler when linking
18285 # a shared library.
18286 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18287
18288 # Method to check whether dependent libraries are shared objects.
18289 deplibs_check_method=$lt_deplibs_check_method
18290
18291 # Command to use when deplibs_check_method == file_magic.
18292 file_magic_cmd=$lt_file_magic_cmd
18293
18294 # Flag that allows shared libraries with undefined symbols to be built.
18295 allow_undefined_flag=$lt_allow_undefined_flag_RC
18296
18297 # Flag that forces no undefined symbols.
18298 no_undefined_flag=$lt_no_undefined_flag_RC
18299
18300 # Commands used to finish a libtool library installation in a directory.
18301 finish_cmds=$lt_finish_cmds
18302
18303 # Same as above, but a single script fragment to be evaled but not shown.
18304 finish_eval=$lt_finish_eval
18305
18306 # Take the output of nm and produce a listing of raw symbols and C names.
18307 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18308
18309 # Transform the output of nm in a proper C declaration
18310 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18311
18312 # Transform the output of nm in a C name address pair
18313 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18314
18315 # This is the shared library runtime path variable.
18316 runpath_var=$runpath_var
18317
18318 # This is the shared library path variable.
18319 shlibpath_var=$shlibpath_var
18320
18321 # Is shlibpath searched before the hard-coded library search path?
18322 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18323
18324 # How to hardcode a shared library path into an executable.
18325 hardcode_action=$hardcode_action_RC
18326
18327 # Whether we should hardcode library paths into libraries.
18328 hardcode_into_libs=$hardcode_into_libs
18329
18330 # Flag to hardcode \$libdir into a binary during linking.
18331 # This must work even if \$libdir does not exist.
18332 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18333
18334 # If ld is used when linking, flag to hardcode \$libdir into
18335 # a binary during linking. This must work even if \$libdir does
18336 # not exist.
18337 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18338
18339 # Whether we need a single -rpath flag with a separated argument.
18340 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18341
18342 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18343 # resulting binary.
18344 hardcode_direct=$hardcode_direct_RC
18345
18346 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18347 # resulting binary.
18348 hardcode_minus_L=$hardcode_minus_L_RC
18349
18350 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18351 # the resulting binary.
18352 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18353
18354 # Set to yes if building a shared library automatically hardcodes DIR into the library
18355 # and all subsequent libraries and executables linked against it.
18356 hardcode_automatic=$hardcode_automatic_RC
18357
18358 # Variables whose values should be saved in libtool wrapper scripts and
18359 # restored at relink time.
18360 variables_saved_for_relink="$variables_saved_for_relink"
18361
18362 # Whether libtool must link a program against all its dependency libraries.
18363 link_all_deplibs=$link_all_deplibs_RC
18364
18365 # Compile-time system search path for libraries
18366 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18367
18368 # Run-time system search path for libraries
18369 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18370
18371 # Fix the shell variable \$srcfile for the compiler.
18372 fix_srcfile_path="$fix_srcfile_path_RC"
18373
18374 # Set to yes if exported symbols are required.
18375 always_export_symbols=$always_export_symbols_RC
18376
18377 # The commands to list exported symbols.
18378 export_symbols_cmds=$lt_export_symbols_cmds_RC
18379
18380 # The commands to extract the exported symbol list from a shared archive.
18381 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18382
18383 # Symbols that should not be listed in the preloaded symbols.
18384 exclude_expsyms=$lt_exclude_expsyms_RC
18385
18386 # Symbols that must always be exported.
18387 include_expsyms=$lt_include_expsyms_RC
18388
18389 # ### END LIBTOOL TAG CONFIG: $tagname
18390
18391 __EOF__
18392
18393
18394 else
18395   # If there is no Makefile yet, we rely on a make rule to execute
18396   # `config.status --recheck' to rerun these tests and create the
18397   # libtool script then.
18398   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18399   if test -f "$ltmain_in"; then
18400     test -f Makefile && make "$ltmain"
18401   fi
18402 fi
18403
18404
18405 ac_ext=c
18406 ac_cpp='$CPP $CPPFLAGS'
18407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18410
18411 CC="$lt_save_CC"
18412
18413         ;;
18414
18415       *)
18416         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18417 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18418    { (exit 1); exit 1; }; }
18419         ;;
18420       esac
18421
18422       # Append the new tag name to the list of available tags.
18423       if test -n "$tagname" ; then
18424       available_tags="$available_tags $tagname"
18425     fi
18426     fi
18427   done
18428   IFS="$lt_save_ifs"
18429
18430   # Now substitute the updated list of available tags.
18431   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18432     mv "${ofile}T" "$ofile"
18433     chmod +x "$ofile"
18434   else
18435     rm -f "${ofile}T"
18436     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18437 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18438    { (exit 1); exit 1; }; }
18439   fi
18440 fi
18441
18442
18443
18444 # This can be used to rebuild libtool when needed
18445 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18446
18447 # Always use our own libtool.
18448 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18449
18450 # Prevent multiple expansion
18451
18452
18453
18454
18455
18456
18457
18458
18459
18460
18461
18462   
18463
18464   
18465
18466
18467   
18468        
18469        
18470
18471
18472
18473 #AC_CONFIG_HEADERS(sysdep.h)
18474 #AC_VERSION(6.72)
18475 #PACKAGE=gettext
18476 #VERSION=0.14.5
18477 #AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
18478 #AC_DEFINE_UNQUOTED(VERSION, "$VERSION")
18479 #AC_SUBST(PACKAGE)
18480 #AC_SUBST(VERSION)
18481 #AM_INIT_AUTOMAKE(gettext, 0.14.5)
18482
18483
18484 #AC_CANONICAL_HOST
18485 # Find a good install program.  We prefer a C program (faster),
18486 # so one script is as good as another.  But avoid the broken or
18487 # incompatible versions:
18488 # SysV /etc/install, /usr/sbin/install
18489 # SunOS /usr/etc/install
18490 # IRIX /sbin/install
18491 # AIX /bin/install
18492 # AmigaOS /C/install, which installs bootblocks on floppy discs
18493 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
18494 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
18495 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
18496 # OS/2's system install, which has a completely different semantic
18497 # ./install, which can be erroneously created by make from ./install.sh.
18498 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
18499 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
18500 if test -z "$INSTALL"; then
18501 if test "${ac_cv_path_install+set}" = set; then
18502   echo $ECHO_N "(cached) $ECHO_C" >&6
18503 else
18504   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18505 for as_dir in $PATH
18506 do
18507   IFS=$as_save_IFS
18508   test -z "$as_dir" && as_dir=.
18509   # Account for people who put trailing slashes in PATH elements.
18510 case $as_dir/ in
18511   ./ | .// | /cC/* | \
18512   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
18513   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
18514   /usr/ucb/* ) ;;
18515   *)
18516     # OSF1 and SCO ODT 3.0 have their own names for install.
18517     # Don't use installbsd from OSF since it installs stuff as root
18518     # by default.
18519     for ac_prog in ginstall scoinst install; do
18520       for ac_exec_ext in '' $ac_executable_extensions; do
18521         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
18522           if test $ac_prog = install &&
18523             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18524             # AIX install.  It has an incompatible calling convention.
18525             :
18526           elif test $ac_prog = install &&
18527             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18528             # program-specific install script used by HP pwplus--don't use.
18529             :
18530           else
18531             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
18532             break 3
18533           fi
18534         fi
18535       done
18536     done
18537     ;;
18538 esac
18539 done
18540
18541
18542 fi
18543   if test "${ac_cv_path_install+set}" = set; then
18544     INSTALL=$ac_cv_path_install
18545   else
18546     # As a last resort, use the slow shell script.  We don't cache a
18547     # path for INSTALL within a source directory, because that will
18548     # break other packages using the cache if that directory is
18549     # removed, or if the path is relative.
18550     INSTALL=$ac_install_sh
18551   fi
18552 fi
18553 echo "$as_me:$LINENO: result: $INSTALL" >&5
18554 echo "${ECHO_T}$INSTALL" >&6
18555
18556 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
18557 # It thinks the first close brace ends the variable substitution.
18558 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
18559
18560 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
18561
18562 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
18563
18564 # Extract the first word of "autoconf", so it can be a program name with args.
18565 set dummy autoconf; ac_word=$2
18566 echo "$as_me:$LINENO: checking for $ac_word" >&5
18567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18568 if test "${ac_cv_prog_AUTOCONF+set}" = set; then
18569   echo $ECHO_N "(cached) $ECHO_C" >&6
18570 else
18571   if test -n "$AUTOCONF"; then
18572   ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
18573 else
18574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18575 for as_dir in $PATH
18576 do
18577   IFS=$as_save_IFS
18578   test -z "$as_dir" && as_dir=.
18579   for ac_exec_ext in '' $ac_executable_extensions; do
18580   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18581     ac_cv_prog_AUTOCONF=""
18582     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18583     break 2
18584   fi
18585 done
18586 done
18587
18588 fi
18589 fi
18590 AUTOCONF=$ac_cv_prog_AUTOCONF
18591 if test -n "$AUTOCONF"; then
18592   echo "$as_me:$LINENO: result: $AUTOCONF" >&5
18593 echo "${ECHO_T}$AUTOCONF" >&6
18594 else
18595   echo "$as_me:$LINENO: result: no" >&5
18596 echo "${ECHO_T}no" >&6
18597 fi
18598
18599 # Extract the first word of "sed", so it can be a program name with args.
18600 set dummy sed; ac_word=$2
18601 echo "$as_me:$LINENO: checking for $ac_word" >&5
18602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18603 if test "${ac_cv_prog_SED+set}" = set; then
18604   echo $ECHO_N "(cached) $ECHO_C" >&6
18605 else
18606   if test -n "$SED"; then
18607   ac_cv_prog_SED="$SED" # Let the user override the test.
18608 else
18609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18610 for as_dir in $PATH
18611 do
18612   IFS=$as_save_IFS
18613   test -z "$as_dir" && as_dir=.
18614   for ac_exec_ext in '' $ac_executable_extensions; do
18615   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18616     ac_cv_prog_SED="sed"
18617     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18618     break 2
18619   fi
18620 done
18621 done
18622
18623   test -z "$ac_cv_prog_SED" && ac_cv_prog_SED="no"
18624 fi
18625 fi
18626 SED=$ac_cv_prog_SED
18627 if test -n "$SED"; then
18628   echo "$as_me:$LINENO: result: $SED" >&5
18629 echo "${ECHO_T}$SED" >&6
18630 else
18631   echo "$as_me:$LINENO: result: no" >&5
18632 echo "${ECHO_T}no" >&6
18633 fi
18634
18635
18636
18637 #AC_ARG_WITH(with_libical, [  --with-libical          use libical calendaring library])
18638 #AC_ARG_WITH(with_zlib,    [  --with-zlib             use zlib compression if present])
18639 #AC_ARG_WITH(with_newt,    [  --with-newt             use newt window library])
18640 #AC_ARG_WITH(ssl,
18641 #       [  --with-ssl=PATH         Specify path to OpenSSL installation ],
18642 #       [
18643 #               if test "x$withval" != "xno" ; then
18644 #                       tryssldir=$withval
18645 #               fi
18646 #       ]
18647 #)
18648 #AC_DEFINE([HAVE_ICAL], [  --with-libical          use libical calendaring library])
18649
18650 cat >>confdefs.h <<\_ACEOF
18651 @%:@define HAVE_OPENSSL 1
18652 _ACEOF
18653
18654
18655
18656 PTHREAD_DEFS=-D_REENTRANT
18657 case "$host" in
18658                                 alpha*-dec-osf*)
18659                 test -z "$CC" && CC=cc
18660                 LIBS=-pthread
18661         ;;
18662                 *-*-freebsd*)
18663                 LIBS=-pthread
18664                 PTHREAD_DEFS=-D_THREAD_SAFE
18665         ;;
18666         *-*-solaris*)
18667                 PTHREAD_DEFS='-D_REENTRANT -D_PTHREADS'
18668         ;;
18669 esac
18670
18671
18672 ac_ext=c
18673 ac_cpp='$CPP $CPPFLAGS'
18674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18677 if test -n "$ac_tool_prefix"; then
18678   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
18679 set dummy ${ac_tool_prefix}gcc; ac_word=$2
18680 echo "$as_me:$LINENO: checking for $ac_word" >&5
18681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18682 if test "${ac_cv_prog_CC+set}" = set; then
18683   echo $ECHO_N "(cached) $ECHO_C" >&6
18684 else
18685   if test -n "$CC"; then
18686   ac_cv_prog_CC="$CC" # Let the user override the test.
18687 else
18688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18689 for as_dir in $PATH
18690 do
18691   IFS=$as_save_IFS
18692   test -z "$as_dir" && as_dir=.
18693   for ac_exec_ext in '' $ac_executable_extensions; do
18694   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18695     ac_cv_prog_CC="${ac_tool_prefix}gcc"
18696     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18697     break 2
18698   fi
18699 done
18700 done
18701
18702 fi
18703 fi
18704 CC=$ac_cv_prog_CC
18705 if test -n "$CC"; then
18706   echo "$as_me:$LINENO: result: $CC" >&5
18707 echo "${ECHO_T}$CC" >&6
18708 else
18709   echo "$as_me:$LINENO: result: no" >&5
18710 echo "${ECHO_T}no" >&6
18711 fi
18712
18713 fi
18714 if test -z "$ac_cv_prog_CC"; then
18715   ac_ct_CC=$CC
18716   # Extract the first word of "gcc", so it can be a program name with args.
18717 set dummy gcc; ac_word=$2
18718 echo "$as_me:$LINENO: checking for $ac_word" >&5
18719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18720 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18721   echo $ECHO_N "(cached) $ECHO_C" >&6
18722 else
18723   if test -n "$ac_ct_CC"; then
18724   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18725 else
18726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18727 for as_dir in $PATH
18728 do
18729   IFS=$as_save_IFS
18730   test -z "$as_dir" && as_dir=.
18731   for ac_exec_ext in '' $ac_executable_extensions; do
18732   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18733     ac_cv_prog_ac_ct_CC="gcc"
18734     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18735     break 2
18736   fi
18737 done
18738 done
18739
18740 fi
18741 fi
18742 ac_ct_CC=$ac_cv_prog_ac_ct_CC
18743 if test -n "$ac_ct_CC"; then
18744   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
18745 echo "${ECHO_T}$ac_ct_CC" >&6
18746 else
18747   echo "$as_me:$LINENO: result: no" >&5
18748 echo "${ECHO_T}no" >&6
18749 fi
18750
18751   CC=$ac_ct_CC
18752 else
18753   CC="$ac_cv_prog_CC"
18754 fi
18755
18756 if test -z "$CC"; then
18757   if test -n "$ac_tool_prefix"; then
18758   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
18759 set dummy ${ac_tool_prefix}cc; ac_word=$2
18760 echo "$as_me:$LINENO: checking for $ac_word" >&5
18761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18762 if test "${ac_cv_prog_CC+set}" = set; then
18763   echo $ECHO_N "(cached) $ECHO_C" >&6
18764 else
18765   if test -n "$CC"; then
18766   ac_cv_prog_CC="$CC" # Let the user override the test.
18767 else
18768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18769 for as_dir in $PATH
18770 do
18771   IFS=$as_save_IFS
18772   test -z "$as_dir" && as_dir=.
18773   for ac_exec_ext in '' $ac_executable_extensions; do
18774   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18775     ac_cv_prog_CC="${ac_tool_prefix}cc"
18776     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18777     break 2
18778   fi
18779 done
18780 done
18781
18782 fi
18783 fi
18784 CC=$ac_cv_prog_CC
18785 if test -n "$CC"; then
18786   echo "$as_me:$LINENO: result: $CC" >&5
18787 echo "${ECHO_T}$CC" >&6
18788 else
18789   echo "$as_me:$LINENO: result: no" >&5
18790 echo "${ECHO_T}no" >&6
18791 fi
18792
18793 fi
18794 if test -z "$ac_cv_prog_CC"; then
18795   ac_ct_CC=$CC
18796   # Extract the first word of "cc", so it can be a program name with args.
18797 set dummy cc; ac_word=$2
18798 echo "$as_me:$LINENO: checking for $ac_word" >&5
18799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18800 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18801   echo $ECHO_N "(cached) $ECHO_C" >&6
18802 else
18803   if test -n "$ac_ct_CC"; then
18804   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18805 else
18806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18807 for as_dir in $PATH
18808 do
18809   IFS=$as_save_IFS
18810   test -z "$as_dir" && as_dir=.
18811   for ac_exec_ext in '' $ac_executable_extensions; do
18812   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18813     ac_cv_prog_ac_ct_CC="cc"
18814     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18815     break 2
18816   fi
18817 done
18818 done
18819
18820 fi
18821 fi
18822 ac_ct_CC=$ac_cv_prog_ac_ct_CC
18823 if test -n "$ac_ct_CC"; then
18824   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
18825 echo "${ECHO_T}$ac_ct_CC" >&6
18826 else
18827   echo "$as_me:$LINENO: result: no" >&5
18828 echo "${ECHO_T}no" >&6
18829 fi
18830
18831   CC=$ac_ct_CC
18832 else
18833   CC="$ac_cv_prog_CC"
18834 fi
18835
18836 fi
18837 if test -z "$CC"; then
18838   # Extract the first word of "cc", so it can be a program name with args.
18839 set dummy cc; ac_word=$2
18840 echo "$as_me:$LINENO: checking for $ac_word" >&5
18841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18842 if test "${ac_cv_prog_CC+set}" = set; then
18843   echo $ECHO_N "(cached) $ECHO_C" >&6
18844 else
18845   if test -n "$CC"; then
18846   ac_cv_prog_CC="$CC" # Let the user override the test.
18847 else
18848   ac_prog_rejected=no
18849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18850 for as_dir in $PATH
18851 do
18852   IFS=$as_save_IFS
18853   test -z "$as_dir" && as_dir=.
18854   for ac_exec_ext in '' $ac_executable_extensions; do
18855   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18856     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
18857        ac_prog_rejected=yes
18858        continue
18859      fi
18860     ac_cv_prog_CC="cc"
18861     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18862     break 2
18863   fi
18864 done
18865 done
18866
18867 if test $ac_prog_rejected = yes; then
18868   # We found a bogon in the path, so make sure we never use it.
18869   set dummy $ac_cv_prog_CC
18870   shift
18871   if test $@%:@ != 0; then
18872     # We chose a different compiler from the bogus one.
18873     # However, it has the same basename, so the bogon will be chosen
18874     # first if we set CC to just the basename; use the full file name.
18875     shift
18876     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
18877   fi
18878 fi
18879 fi
18880 fi
18881 CC=$ac_cv_prog_CC
18882 if test -n "$CC"; then
18883   echo "$as_me:$LINENO: result: $CC" >&5
18884 echo "${ECHO_T}$CC" >&6
18885 else
18886   echo "$as_me:$LINENO: result: no" >&5
18887 echo "${ECHO_T}no" >&6
18888 fi
18889
18890 fi
18891 if test -z "$CC"; then
18892   if test -n "$ac_tool_prefix"; then
18893   for ac_prog in cl
18894   do
18895     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
18896 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
18897 echo "$as_me:$LINENO: checking for $ac_word" >&5
18898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18899 if test "${ac_cv_prog_CC+set}" = set; then
18900   echo $ECHO_N "(cached) $ECHO_C" >&6
18901 else
18902   if test -n "$CC"; then
18903   ac_cv_prog_CC="$CC" # Let the user override the test.
18904 else
18905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18906 for as_dir in $PATH
18907 do
18908   IFS=$as_save_IFS
18909   test -z "$as_dir" && as_dir=.
18910   for ac_exec_ext in '' $ac_executable_extensions; do
18911   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18912     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
18913     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18914     break 2
18915   fi
18916 done
18917 done
18918
18919 fi
18920 fi
18921 CC=$ac_cv_prog_CC
18922 if test -n "$CC"; then
18923   echo "$as_me:$LINENO: result: $CC" >&5
18924 echo "${ECHO_T}$CC" >&6
18925 else
18926   echo "$as_me:$LINENO: result: no" >&5
18927 echo "${ECHO_T}no" >&6
18928 fi
18929
18930     test -n "$CC" && break
18931   done
18932 fi
18933 if test -z "$CC"; then
18934   ac_ct_CC=$CC
18935   for ac_prog in cl
18936 do
18937   # Extract the first word of "$ac_prog", so it can be a program name with args.
18938 set dummy $ac_prog; ac_word=$2
18939 echo "$as_me:$LINENO: checking for $ac_word" >&5
18940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18941 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18942   echo $ECHO_N "(cached) $ECHO_C" >&6
18943 else
18944   if test -n "$ac_ct_CC"; then
18945   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18946 else
18947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18948 for as_dir in $PATH
18949 do
18950   IFS=$as_save_IFS
18951   test -z "$as_dir" && as_dir=.
18952   for ac_exec_ext in '' $ac_executable_extensions; do
18953   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18954     ac_cv_prog_ac_ct_CC="$ac_prog"
18955     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18956     break 2
18957   fi
18958 done
18959 done
18960
18961 fi
18962 fi
18963 ac_ct_CC=$ac_cv_prog_ac_ct_CC
18964 if test -n "$ac_ct_CC"; then
18965   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
18966 echo "${ECHO_T}$ac_ct_CC" >&6
18967 else
18968   echo "$as_me:$LINENO: result: no" >&5
18969 echo "${ECHO_T}no" >&6
18970 fi
18971
18972   test -n "$ac_ct_CC" && break
18973 done
18974
18975   CC=$ac_ct_CC
18976 fi
18977
18978 fi
18979
18980
18981 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
18982 See \`config.log' for more details." >&5
18983 echo "$as_me: error: no acceptable C compiler found in \$PATH
18984 See \`config.log' for more details." >&2;}
18985    { (exit 1); exit 1; }; }
18986
18987 # Provide some information about the compiler.
18988 echo "$as_me:$LINENO:" \
18989      "checking for C compiler version" >&5
18990 ac_compiler=`set X $ac_compile; echo $2`
18991 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
18992   (eval $ac_compiler --version </dev/null >&5) 2>&5
18993   ac_status=$?
18994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995   (exit $ac_status); }
18996 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
18997   (eval $ac_compiler -v </dev/null >&5) 2>&5
18998   ac_status=$?
18999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19000   (exit $ac_status); }
19001 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
19002   (eval $ac_compiler -V </dev/null >&5) 2>&5
19003   ac_status=$?
19004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19005   (exit $ac_status); }
19006
19007 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19008 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
19009 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19010   echo $ECHO_N "(cached) $ECHO_C" >&6
19011 else
19012   cat >conftest.$ac_ext <<_ACEOF
19013 /* confdefs.h.  */
19014 _ACEOF
19015 cat confdefs.h >>conftest.$ac_ext
19016 cat >>conftest.$ac_ext <<_ACEOF
19017 /* end confdefs.h.  */
19018
19019 int
19020 main ()
19021 {
19022 #ifndef __GNUC__
19023        choke me
19024 #endif
19025
19026   ;
19027   return 0;
19028 }
19029 _ACEOF
19030 rm -f conftest.$ac_objext
19031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19032   (eval $ac_compile) 2>conftest.er1
19033   ac_status=$?
19034   grep -v '^ *+' conftest.er1 >conftest.err
19035   rm -f conftest.er1
19036   cat conftest.err >&5
19037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19038   (exit $ac_status); } &&
19039          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19041   (eval $ac_try) 2>&5
19042   ac_status=$?
19043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19044   (exit $ac_status); }; } &&
19045          { ac_try='test -s conftest.$ac_objext'
19046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19047   (eval $ac_try) 2>&5
19048   ac_status=$?
19049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19050   (exit $ac_status); }; }; then
19051   ac_compiler_gnu=yes
19052 else
19053   echo "$as_me: failed program was:" >&5
19054 sed 's/^/| /' conftest.$ac_ext >&5
19055
19056 ac_compiler_gnu=no
19057 fi
19058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19059 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19060
19061 fi
19062 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19063 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
19064 GCC=`test $ac_compiler_gnu = yes && echo yes`
19065 ac_test_CFLAGS=${CFLAGS+set}
19066 ac_save_CFLAGS=$CFLAGS
19067 CFLAGS="-g"
19068 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19069 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
19070 if test "${ac_cv_prog_cc_g+set}" = set; then
19071   echo $ECHO_N "(cached) $ECHO_C" >&6
19072 else
19073   cat >conftest.$ac_ext <<_ACEOF
19074 /* confdefs.h.  */
19075 _ACEOF
19076 cat confdefs.h >>conftest.$ac_ext
19077 cat >>conftest.$ac_ext <<_ACEOF
19078 /* end confdefs.h.  */
19079
19080 int
19081 main ()
19082 {
19083
19084   ;
19085   return 0;
19086 }
19087 _ACEOF
19088 rm -f conftest.$ac_objext
19089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19090   (eval $ac_compile) 2>conftest.er1
19091   ac_status=$?
19092   grep -v '^ *+' conftest.er1 >conftest.err
19093   rm -f conftest.er1
19094   cat conftest.err >&5
19095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19096   (exit $ac_status); } &&
19097          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19099   (eval $ac_try) 2>&5
19100   ac_status=$?
19101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19102   (exit $ac_status); }; } &&
19103          { ac_try='test -s conftest.$ac_objext'
19104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19105   (eval $ac_try) 2>&5
19106   ac_status=$?
19107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19108   (exit $ac_status); }; }; then
19109   ac_cv_prog_cc_g=yes
19110 else
19111   echo "$as_me: failed program was:" >&5
19112 sed 's/^/| /' conftest.$ac_ext >&5
19113
19114 ac_cv_prog_cc_g=no
19115 fi
19116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19117 fi
19118 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19119 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
19120 if test "$ac_test_CFLAGS" = set; then
19121   CFLAGS=$ac_save_CFLAGS
19122 elif test $ac_cv_prog_cc_g = yes; then
19123   if test "$GCC" = yes; then
19124     CFLAGS="-g -O2"
19125   else
19126     CFLAGS="-g"
19127   fi
19128 else
19129   if test "$GCC" = yes; then
19130     CFLAGS="-O2"
19131   else
19132     CFLAGS=
19133   fi
19134 fi
19135 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
19136 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
19137 if test "${ac_cv_prog_cc_stdc+set}" = set; then
19138   echo $ECHO_N "(cached) $ECHO_C" >&6
19139 else
19140   ac_cv_prog_cc_stdc=no
19141 ac_save_CC=$CC
19142 cat >conftest.$ac_ext <<_ACEOF
19143 /* confdefs.h.  */
19144 _ACEOF
19145 cat confdefs.h >>conftest.$ac_ext
19146 cat >>conftest.$ac_ext <<_ACEOF
19147 /* end confdefs.h.  */
19148 #include <stdarg.h>
19149 #include <stdio.h>
19150 #include <sys/types.h>
19151 #include <sys/stat.h>
19152 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
19153 struct buf { int x; };
19154 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19155 static char *e (p, i)
19156      char **p;
19157      int i;
19158 {
19159   return p[i];
19160 }
19161 static char *f (char * (*g) (char **, int), char **p, ...)
19162 {
19163   char *s;
19164   va_list v;
19165   va_start (v,p);
19166   s = g (p, va_arg (v,int));
19167   va_end (v);
19168   return s;
19169 }
19170
19171 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
19172    function prototypes and stuff, but not '\xHH' hex character constants.
19173    These don't provoke an error unfortunately, instead are silently treated
19174    as 'x'.  The following induces an error, until -std1 is added to get
19175    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
19176    array size at least.  It's necessary to write '\x00'==0 to get something
19177    that's true only with -std1.  */
19178 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19179
19180 int test (int i, double x);
19181 struct s1 {int (*f) (int a);};
19182 struct s2 {int (*f) (double a);};
19183 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19184 int argc;
19185 char **argv;
19186 int
19187 main ()
19188 {
19189 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
19190   ;
19191   return 0;
19192 }
19193 _ACEOF
19194 # Don't try gcc -ansi; that turns off useful extensions and
19195 # breaks some systems' header files.
19196 # AIX                   -qlanglvl=ansi
19197 # Ultrix and OSF/1      -std1
19198 # HP-UX 10.20 and later -Ae
19199 # HP-UX older versions  -Aa -D_HPUX_SOURCE
19200 # SVR4                  -Xc -D__EXTENSIONS__
19201 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19202 do
19203   CC="$ac_save_CC $ac_arg"
19204   rm -f conftest.$ac_objext
19205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19206   (eval $ac_compile) 2>conftest.er1
19207   ac_status=$?
19208   grep -v '^ *+' conftest.er1 >conftest.err
19209   rm -f conftest.er1
19210   cat conftest.err >&5
19211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19212   (exit $ac_status); } &&
19213          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19215   (eval $ac_try) 2>&5
19216   ac_status=$?
19217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19218   (exit $ac_status); }; } &&
19219          { ac_try='test -s conftest.$ac_objext'
19220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19221   (eval $ac_try) 2>&5
19222   ac_status=$?
19223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19224   (exit $ac_status); }; }; then
19225   ac_cv_prog_cc_stdc=$ac_arg
19226 break
19227 else
19228   echo "$as_me: failed program was:" >&5
19229 sed 's/^/| /' conftest.$ac_ext >&5
19230
19231 fi
19232 rm -f conftest.err conftest.$ac_objext 
19233 done
19234 rm -f conftest.$ac_ext conftest.$ac_objext
19235 CC=$ac_save_CC
19236
19237 fi
19238
19239 case "x$ac_cv_prog_cc_stdc" in
19240   x|xno)
19241     echo "$as_me:$LINENO: result: none needed" >&5
19242 echo "${ECHO_T}none needed" >&6 ;;
19243   *)
19244     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
19245 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
19246     CC="$CC $ac_cv_prog_cc_stdc" ;;
19247 esac
19248
19249 # Some people use a C++ compiler to compile C.  Since we use `exit',
19250 # in C++ we need to declare it.  In case someone uses the same compiler
19251 # for both compiling C and C++ we need to have the C++ compiler decide
19252 # the declaration of exit, since it's the most demanding environment.
19253 cat >conftest.$ac_ext <<_ACEOF
19254 @%:@ifndef __cplusplus
19255   choke me
19256 @%:@endif
19257 _ACEOF
19258 rm -f conftest.$ac_objext
19259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19260   (eval $ac_compile) 2>conftest.er1
19261   ac_status=$?
19262   grep -v '^ *+' conftest.er1 >conftest.err
19263   rm -f conftest.er1
19264   cat conftest.err >&5
19265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19266   (exit $ac_status); } &&
19267          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19269   (eval $ac_try) 2>&5
19270   ac_status=$?
19271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19272   (exit $ac_status); }; } &&
19273          { ac_try='test -s conftest.$ac_objext'
19274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19275   (eval $ac_try) 2>&5
19276   ac_status=$?
19277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19278   (exit $ac_status); }; }; then
19279   for ac_declaration in \
19280    '' \
19281    'extern "C" void std::exit (int) throw (); using std::exit;' \
19282    'extern "C" void std::exit (int); using std::exit;' \
19283    'extern "C" void exit (int) throw ();' \
19284    'extern "C" void exit (int);' \
19285    'void exit (int);'
19286 do
19287   cat >conftest.$ac_ext <<_ACEOF
19288 /* confdefs.h.  */
19289 _ACEOF
19290 cat confdefs.h >>conftest.$ac_ext
19291 cat >>conftest.$ac_ext <<_ACEOF
19292 /* end confdefs.h.  */
19293 $ac_declaration
19294 @%:@include <stdlib.h>
19295 int
19296 main ()
19297 {
19298 exit (42);
19299   ;
19300   return 0;
19301 }
19302 _ACEOF
19303 rm -f conftest.$ac_objext
19304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19305   (eval $ac_compile) 2>conftest.er1
19306   ac_status=$?
19307   grep -v '^ *+' conftest.er1 >conftest.err
19308   rm -f conftest.er1
19309   cat conftest.err >&5
19310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311   (exit $ac_status); } &&
19312          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19314   (eval $ac_try) 2>&5
19315   ac_status=$?
19316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19317   (exit $ac_status); }; } &&
19318          { ac_try='test -s conftest.$ac_objext'
19319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19320   (eval $ac_try) 2>&5
19321   ac_status=$?
19322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19323   (exit $ac_status); }; }; then
19324   :
19325 else
19326   echo "$as_me: failed program was:" >&5
19327 sed 's/^/| /' conftest.$ac_ext >&5
19328
19329 continue
19330 fi
19331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19332   cat >conftest.$ac_ext <<_ACEOF
19333 /* confdefs.h.  */
19334 _ACEOF
19335 cat confdefs.h >>conftest.$ac_ext
19336 cat >>conftest.$ac_ext <<_ACEOF
19337 /* end confdefs.h.  */
19338 $ac_declaration
19339 int
19340 main ()
19341 {
19342 exit (42);
19343   ;
19344   return 0;
19345 }
19346 _ACEOF
19347 rm -f conftest.$ac_objext
19348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19349   (eval $ac_compile) 2>conftest.er1
19350   ac_status=$?
19351   grep -v '^ *+' conftest.er1 >conftest.err
19352   rm -f conftest.er1
19353   cat conftest.err >&5
19354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19355   (exit $ac_status); } &&
19356          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19358   (eval $ac_try) 2>&5
19359   ac_status=$?
19360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19361   (exit $ac_status); }; } &&
19362          { ac_try='test -s conftest.$ac_objext'
19363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19364   (eval $ac_try) 2>&5
19365   ac_status=$?
19366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367   (exit $ac_status); }; }; then
19368   break
19369 else
19370   echo "$as_me: failed program was:" >&5
19371 sed 's/^/| /' conftest.$ac_ext >&5
19372
19373 fi
19374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19375 done
19376 rm -f conftest*
19377 if test -n "$ac_declaration"; then
19378   echo '#ifdef __cplusplus' >>confdefs.h
19379   echo $ac_declaration      >>confdefs.h
19380   echo '#endif'             >>confdefs.h
19381 fi
19382
19383 else
19384   echo "$as_me: failed program was:" >&5
19385 sed 's/^/| /' conftest.$ac_ext >&5
19386
19387 fi
19388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19389 ac_ext=c
19390 ac_cpp='$CPP $CPPFLAGS'
19391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19394
19395 depcc="$CC"   am_compiler_list=
19396
19397 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19398 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
19399 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19400   echo $ECHO_N "(cached) $ECHO_C" >&6
19401 else
19402   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19403   # We make a subdir and do the tests there.  Otherwise we can end up
19404   # making bogus files that we don't know about and never remove.  For
19405   # instance it was reported that on HP-UX the gcc test will end up
19406   # making a dummy file named `D' -- because `-MD' means `put the output
19407   # in D'.
19408   mkdir conftest.dir
19409   # Copy depcomp to subdir because otherwise we won't find it if we're
19410   # using a relative directory.
19411   cp "$am_depcomp" conftest.dir
19412   cd conftest.dir
19413   # We will build objects and dependencies in a subdirectory because
19414   # it helps to detect inapplicable dependency modes.  For instance
19415   # both Tru64's cc and ICC support -MD to output dependencies as a
19416   # side effect of compilation, but ICC will put the dependencies in
19417   # the current directory while Tru64 will put them in the object
19418   # directory.
19419   mkdir sub
19420
19421   am_cv_CC_dependencies_compiler_type=none
19422   if test "$am_compiler_list" = ""; then
19423      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19424   fi
19425   for depmode in $am_compiler_list; do
19426     # Setup a source with many dependencies, because some compilers
19427     # like to wrap large dependency lists on column 80 (with \), and
19428     # we should not choose a depcomp mode which is confused by this.
19429     #
19430     # We need to recreate these files for each test, as the compiler may
19431     # overwrite some of them when testing with obscure command lines.
19432     # This happens at least with the AIX C compiler.
19433     : > sub/conftest.c
19434     for i in 1 2 3 4 5 6; do
19435       echo '#include "conftst'$i'.h"' >> sub/conftest.c
19436       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19437       # Solaris 8's {/usr,}/bin/sh.
19438       touch sub/conftst$i.h
19439     done
19440     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19441
19442     case $depmode in
19443     nosideeffect)
19444       # after this tag, mechanisms are not by side-effect, so they'll
19445       # only be used when explicitly requested
19446       if test "x$enable_dependency_tracking" = xyes; then
19447         continue
19448       else
19449         break
19450       fi
19451       ;;
19452     none) break ;;
19453     esac
19454     # We check with `-c' and `-o' for the sake of the "dashmstdout"
19455     # mode.  It turns out that the SunPro C++ compiler does not properly
19456     # handle `-M -o', and we need to detect this.
19457     if depmode=$depmode \
19458        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19459        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19460        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19461          >/dev/null 2>conftest.err &&
19462        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19463        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19464        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19465       # icc doesn't choke on unknown options, it will just issue warnings
19466       # or remarks (even with -Werror).  So we grep stderr for any message
19467       # that says an option was ignored or not supported.
19468       # When given -MP, icc 7.0 and 7.1 complain thusly:
19469       #   icc: Command line warning: ignoring option '-M'; no argument required
19470       # The diagnosis changed in icc 8.0:
19471       #   icc: Command line remark: option '-MP' not supported
19472       if (grep 'ignoring option' conftest.err ||
19473           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19474         am_cv_CC_dependencies_compiler_type=$depmode
19475         break
19476       fi
19477     fi
19478   done
19479
19480   cd ..
19481   rm -rf conftest.dir
19482 else
19483   am_cv_CC_dependencies_compiler_type=none
19484 fi
19485
19486 fi
19487 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19488 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
19489 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19490
19491  
19492
19493 if 
19494   test "x$enable_dependency_tracking" != xno \
19495   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19496   am__fastdepCC_TRUE=
19497   am__fastdepCC_FALSE='#'
19498 else
19499   am__fastdepCC_TRUE='#'
19500   am__fastdepCC_FALSE=
19501 fi
19502
19503
19504
19505 if test "$GCC" = yes; then
19506         case "$host" in
19507                 *-*-solaris*)
19508                         CFLAGS="$CFLAGS -Wall -Wno-char-subscripts"
19509                 ;;
19510                 *)
19511                         CFLAGS="$CFLAGS -Wall"
19512                 ;;
19513         esac
19514 fi
19515
19516 # missing_dir=`cd $ac_aux_dir && pwd`
19517 # AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
19518
19519 if test "$LIBS" != -pthread; then
19520         
19521 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
19522 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
19523 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
19524   echo $ECHO_N "(cached) $ECHO_C" >&6
19525 else
19526   ac_check_lib_save_LIBS=$LIBS
19527 LIBS="-lpthread  $LIBS"
19528 cat >conftest.$ac_ext <<_ACEOF
19529 /* confdefs.h.  */
19530 _ACEOF
19531 cat confdefs.h >>conftest.$ac_ext
19532 cat >>conftest.$ac_ext <<_ACEOF
19533 /* end confdefs.h.  */
19534
19535 /* Override any gcc2 internal prototype to avoid an error.  */
19536 #ifdef __cplusplus
19537 extern "C"
19538 #endif
19539 /* We use char because int might match the return type of a gcc2
19540    builtin and then its argument prototype would still apply.  */
19541 char pthread_create ();
19542 int
19543 main ()
19544 {
19545 pthread_create ();
19546   ;
19547   return 0;
19548 }
19549 _ACEOF
19550 rm -f conftest.$ac_objext conftest$ac_exeext
19551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19552   (eval $ac_link) 2>conftest.er1
19553   ac_status=$?
19554   grep -v '^ *+' conftest.er1 >conftest.err
19555   rm -f conftest.er1
19556   cat conftest.err >&5
19557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19558   (exit $ac_status); } &&
19559          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19561   (eval $ac_try) 2>&5
19562   ac_status=$?
19563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19564   (exit $ac_status); }; } &&
19565          { ac_try='test -s conftest$ac_exeext'
19566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19567   (eval $ac_try) 2>&5
19568   ac_status=$?
19569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19570   (exit $ac_status); }; }; then
19571   ac_cv_lib_pthread_pthread_create=yes
19572 else
19573   echo "$as_me: failed program was:" >&5
19574 sed 's/^/| /' conftest.$ac_ext >&5
19575
19576 ac_cv_lib_pthread_pthread_create=no
19577 fi
19578 rm -f conftest.err conftest.$ac_objext \
19579       conftest$ac_exeext conftest.$ac_ext
19580 LIBS=$ac_check_lib_save_LIBS
19581 fi
19582 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
19583 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
19584 if test $ac_cv_lib_pthread_pthread_create = yes; then
19585   cat >>confdefs.h <<_ACEOF
19586 @%:@define HAVE_LIBPTHREAD 1
19587 _ACEOF
19588
19589   LIBS="-lpthread $LIBS"
19590
19591 fi
19592
19593         
19594 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
19595 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
19596 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
19597   echo $ECHO_N "(cached) $ECHO_C" >&6
19598 else
19599   ac_check_lib_save_LIBS=$LIBS
19600 LIBS="-lpthreads  $LIBS"
19601 cat >conftest.$ac_ext <<_ACEOF
19602 /* confdefs.h.  */
19603 _ACEOF
19604 cat confdefs.h >>conftest.$ac_ext
19605 cat >>conftest.$ac_ext <<_ACEOF
19606 /* end confdefs.h.  */
19607
19608 /* Override any gcc2 internal prototype to avoid an error.  */
19609 #ifdef __cplusplus
19610 extern "C"
19611 #endif
19612 /* We use char because int might match the return type of a gcc2
19613    builtin and then its argument prototype would still apply.  */
19614 char pthread_create ();
19615 int
19616 main ()
19617 {
19618 pthread_create ();
19619   ;
19620   return 0;
19621 }
19622 _ACEOF
19623 rm -f conftest.$ac_objext conftest$ac_exeext
19624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19625   (eval $ac_link) 2>conftest.er1
19626   ac_status=$?
19627   grep -v '^ *+' conftest.er1 >conftest.err
19628   rm -f conftest.er1
19629   cat conftest.err >&5
19630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19631   (exit $ac_status); } &&
19632          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19634   (eval $ac_try) 2>&5
19635   ac_status=$?
19636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637   (exit $ac_status); }; } &&
19638          { ac_try='test -s conftest$ac_exeext'
19639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19640   (eval $ac_try) 2>&5
19641   ac_status=$?
19642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19643   (exit $ac_status); }; }; then
19644   ac_cv_lib_pthreads_pthread_create=yes
19645 else
19646   echo "$as_me: failed program was:" >&5
19647 sed 's/^/| /' conftest.$ac_ext >&5
19648
19649 ac_cv_lib_pthreads_pthread_create=no
19650 fi
19651 rm -f conftest.err conftest.$ac_objext \
19652       conftest$ac_exeext conftest.$ac_ext
19653 LIBS=$ac_check_lib_save_LIBS
19654 fi
19655 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
19656 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
19657 if test $ac_cv_lib_pthreads_pthread_create = yes; then
19658   cat >>confdefs.h <<_ACEOF
19659 @%:@define HAVE_LIBPTHREADS 1
19660 _ACEOF
19661
19662   LIBS="-lpthreads $LIBS"
19663
19664 fi
19665
19666 fi
19667 echo "$as_me:$LINENO: checking for libiconv in -liconv" >&5
19668 echo $ECHO_N "checking for libiconv in -liconv... $ECHO_C" >&6
19669 if test "${ac_cv_lib_iconv_libiconv+set}" = set; then
19670   echo $ECHO_N "(cached) $ECHO_C" >&6
19671 else
19672   ac_check_lib_save_LIBS=$LIBS
19673 LIBS="-liconv  $LIBS"
19674 cat >conftest.$ac_ext <<_ACEOF
19675 /* confdefs.h.  */
19676 _ACEOF
19677 cat confdefs.h >>conftest.$ac_ext
19678 cat >>conftest.$ac_ext <<_ACEOF
19679 /* end confdefs.h.  */
19680
19681 /* Override any gcc2 internal prototype to avoid an error.  */
19682 #ifdef __cplusplus
19683 extern "C"
19684 #endif
19685 /* We use char because int might match the return type of a gcc2
19686    builtin and then its argument prototype would still apply.  */
19687 char libiconv ();
19688 int
19689 main ()
19690 {
19691 libiconv ();
19692   ;
19693   return 0;
19694 }
19695 _ACEOF
19696 rm -f conftest.$ac_objext conftest$ac_exeext
19697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19698   (eval $ac_link) 2>conftest.er1
19699   ac_status=$?
19700   grep -v '^ *+' conftest.er1 >conftest.err
19701   rm -f conftest.er1
19702   cat conftest.err >&5
19703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19704   (exit $ac_status); } &&
19705          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19707   (eval $ac_try) 2>&5
19708   ac_status=$?
19709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19710   (exit $ac_status); }; } &&
19711          { ac_try='test -s conftest$ac_exeext'
19712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19713   (eval $ac_try) 2>&5
19714   ac_status=$?
19715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19716   (exit $ac_status); }; }; then
19717   ac_cv_lib_iconv_libiconv=yes
19718 else
19719   echo "$as_me: failed program was:" >&5
19720 sed 's/^/| /' conftest.$ac_ext >&5
19721
19722 ac_cv_lib_iconv_libiconv=no
19723 fi
19724 rm -f conftest.err conftest.$ac_objext \
19725       conftest$ac_exeext conftest.$ac_ext
19726 LIBS=$ac_check_lib_save_LIBS
19727 fi
19728 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_libiconv" >&5
19729 echo "${ECHO_T}$ac_cv_lib_iconv_libiconv" >&6
19730 if test $ac_cv_lib_iconv_libiconv = yes; then
19731   LIBS="$LIBS -liconv"
19732 fi
19733    
19734 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
19735 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
19736 if test "${ac_cv_search_gethostbyname+set}" = set; then
19737   echo $ECHO_N "(cached) $ECHO_C" >&6
19738 else
19739   ac_func_search_save_LIBS=$LIBS
19740 ac_cv_search_gethostbyname=no
19741 cat >conftest.$ac_ext <<_ACEOF
19742 /* confdefs.h.  */
19743 _ACEOF
19744 cat confdefs.h >>conftest.$ac_ext
19745 cat >>conftest.$ac_ext <<_ACEOF
19746 /* end confdefs.h.  */
19747
19748 /* Override any gcc2 internal prototype to avoid an error.  */
19749 #ifdef __cplusplus
19750 extern "C"
19751 #endif
19752 /* We use char because int might match the return type of a gcc2
19753    builtin and then its argument prototype would still apply.  */
19754 char gethostbyname ();
19755 int
19756 main ()
19757 {
19758 gethostbyname ();
19759   ;
19760   return 0;
19761 }
19762 _ACEOF
19763 rm -f conftest.$ac_objext conftest$ac_exeext
19764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19765   (eval $ac_link) 2>conftest.er1
19766   ac_status=$?
19767   grep -v '^ *+' conftest.er1 >conftest.err
19768   rm -f conftest.er1
19769   cat conftest.err >&5
19770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19771   (exit $ac_status); } &&
19772          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19774   (eval $ac_try) 2>&5
19775   ac_status=$?
19776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19777   (exit $ac_status); }; } &&
19778          { ac_try='test -s conftest$ac_exeext'
19779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19780   (eval $ac_try) 2>&5
19781   ac_status=$?
19782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19783   (exit $ac_status); }; }; then
19784   ac_cv_search_gethostbyname="none required"
19785 else
19786   echo "$as_me: failed program was:" >&5
19787 sed 's/^/| /' conftest.$ac_ext >&5
19788
19789 fi
19790 rm -f conftest.err conftest.$ac_objext \
19791       conftest$ac_exeext conftest.$ac_ext
19792 if test "$ac_cv_search_gethostbyname" = no; then
19793   for ac_lib in nsl; do
19794     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19795     cat >conftest.$ac_ext <<_ACEOF
19796 /* confdefs.h.  */
19797 _ACEOF
19798 cat confdefs.h >>conftest.$ac_ext
19799 cat >>conftest.$ac_ext <<_ACEOF
19800 /* end confdefs.h.  */
19801
19802 /* Override any gcc2 internal prototype to avoid an error.  */
19803 #ifdef __cplusplus
19804 extern "C"
19805 #endif
19806 /* We use char because int might match the return type of a gcc2
19807    builtin and then its argument prototype would still apply.  */
19808 char gethostbyname ();
19809 int
19810 main ()
19811 {
19812 gethostbyname ();
19813   ;
19814   return 0;
19815 }
19816 _ACEOF
19817 rm -f conftest.$ac_objext conftest$ac_exeext
19818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19819   (eval $ac_link) 2>conftest.er1
19820   ac_status=$?
19821   grep -v '^ *+' conftest.er1 >conftest.err
19822   rm -f conftest.er1
19823   cat conftest.err >&5
19824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19825   (exit $ac_status); } &&
19826          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19828   (eval $ac_try) 2>&5
19829   ac_status=$?
19830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19831   (exit $ac_status); }; } &&
19832          { ac_try='test -s conftest$ac_exeext'
19833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19834   (eval $ac_try) 2>&5
19835   ac_status=$?
19836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19837   (exit $ac_status); }; }; then
19838   ac_cv_search_gethostbyname="-l$ac_lib"
19839 break
19840 else
19841   echo "$as_me: failed program was:" >&5
19842 sed 's/^/| /' conftest.$ac_ext >&5
19843
19844 fi
19845 rm -f conftest.err conftest.$ac_objext \
19846       conftest$ac_exeext conftest.$ac_ext
19847   done
19848 fi
19849 LIBS=$ac_func_search_save_LIBS
19850 fi
19851 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
19852 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
19853 if test "$ac_cv_search_gethostbyname" != no; then
19854   test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
19855   
19856 fi
19857
19858 echo "$as_me:$LINENO: checking for library containing connect" >&5
19859 echo $ECHO_N "checking for library containing connect... $ECHO_C" >&6
19860 if test "${ac_cv_search_connect+set}" = set; then
19861   echo $ECHO_N "(cached) $ECHO_C" >&6
19862 else
19863   ac_func_search_save_LIBS=$LIBS
19864 ac_cv_search_connect=no
19865 cat >conftest.$ac_ext <<_ACEOF
19866 /* confdefs.h.  */
19867 _ACEOF
19868 cat confdefs.h >>conftest.$ac_ext
19869 cat >>conftest.$ac_ext <<_ACEOF
19870 /* end confdefs.h.  */
19871
19872 /* Override any gcc2 internal prototype to avoid an error.  */
19873 #ifdef __cplusplus
19874 extern "C"
19875 #endif
19876 /* We use char because int might match the return type of a gcc2
19877    builtin and then its argument prototype would still apply.  */
19878 char connect ();
19879 int
19880 main ()
19881 {
19882 connect ();
19883   ;
19884   return 0;
19885 }
19886 _ACEOF
19887 rm -f conftest.$ac_objext conftest$ac_exeext
19888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19889   (eval $ac_link) 2>conftest.er1
19890   ac_status=$?
19891   grep -v '^ *+' conftest.er1 >conftest.err
19892   rm -f conftest.er1
19893   cat conftest.err >&5
19894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19895   (exit $ac_status); } &&
19896          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19898   (eval $ac_try) 2>&5
19899   ac_status=$?
19900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19901   (exit $ac_status); }; } &&
19902          { ac_try='test -s conftest$ac_exeext'
19903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19904   (eval $ac_try) 2>&5
19905   ac_status=$?
19906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19907   (exit $ac_status); }; }; then
19908   ac_cv_search_connect="none required"
19909 else
19910   echo "$as_me: failed program was:" >&5
19911 sed 's/^/| /' conftest.$ac_ext >&5
19912
19913 fi
19914 rm -f conftest.err conftest.$ac_objext \
19915       conftest$ac_exeext conftest.$ac_ext
19916 if test "$ac_cv_search_connect" = no; then
19917   for ac_lib in socket; do
19918     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19919     cat >conftest.$ac_ext <<_ACEOF
19920 /* confdefs.h.  */
19921 _ACEOF
19922 cat confdefs.h >>conftest.$ac_ext
19923 cat >>conftest.$ac_ext <<_ACEOF
19924 /* end confdefs.h.  */
19925
19926 /* Override any gcc2 internal prototype to avoid an error.  */
19927 #ifdef __cplusplus
19928 extern "C"
19929 #endif
19930 /* We use char because int might match the return type of a gcc2
19931    builtin and then its argument prototype would still apply.  */
19932 char connect ();
19933 int
19934 main ()
19935 {
19936 connect ();
19937   ;
19938   return 0;
19939 }
19940 _ACEOF
19941 rm -f conftest.$ac_objext conftest$ac_exeext
19942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19943   (eval $ac_link) 2>conftest.er1
19944   ac_status=$?
19945   grep -v '^ *+' conftest.er1 >conftest.err
19946   rm -f conftest.er1
19947   cat conftest.err >&5
19948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19949   (exit $ac_status); } &&
19950          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19952   (eval $ac_try) 2>&5
19953   ac_status=$?
19954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19955   (exit $ac_status); }; } &&
19956          { ac_try='test -s conftest$ac_exeext'
19957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19958   (eval $ac_try) 2>&5
19959   ac_status=$?
19960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19961   (exit $ac_status); }; }; then
19962   ac_cv_search_connect="-l$ac_lib"
19963 break
19964 else
19965   echo "$as_me: failed program was:" >&5
19966 sed 's/^/| /' conftest.$ac_ext >&5
19967
19968 fi
19969 rm -f conftest.err conftest.$ac_objext \
19970       conftest$ac_exeext conftest.$ac_ext
19971   done
19972 fi
19973 LIBS=$ac_func_search_save_LIBS
19974 fi
19975 echo "$as_me:$LINENO: result: $ac_cv_search_connect" >&5
19976 echo "${ECHO_T}$ac_cv_search_connect" >&6
19977 if test "$ac_cv_search_connect" != no; then
19978   test "$ac_cv_search_connect" = "none required" || LIBS="$ac_cv_search_connect $LIBS"
19979   
19980 fi
19981
19982
19983 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19984 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19985 if test "${ac_cv_header_stdc+set}" = set; then
19986   echo $ECHO_N "(cached) $ECHO_C" >&6
19987 else
19988   cat >conftest.$ac_ext <<_ACEOF
19989 /* confdefs.h.  */
19990 _ACEOF
19991 cat confdefs.h >>conftest.$ac_ext
19992 cat >>conftest.$ac_ext <<_ACEOF
19993 /* end confdefs.h.  */
19994 #include <stdlib.h>
19995 #include <stdarg.h>
19996 #include <string.h>
19997 #include <float.h>
19998
19999 int
20000 main ()
20001 {
20002
20003   ;
20004   return 0;
20005 }
20006 _ACEOF
20007 rm -f conftest.$ac_objext
20008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20009   (eval $ac_compile) 2>conftest.er1
20010   ac_status=$?
20011   grep -v '^ *+' conftest.er1 >conftest.err
20012   rm -f conftest.er1
20013   cat conftest.err >&5
20014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20015   (exit $ac_status); } &&
20016          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20018   (eval $ac_try) 2>&5
20019   ac_status=$?
20020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20021   (exit $ac_status); }; } &&
20022          { ac_try='test -s conftest.$ac_objext'
20023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20024   (eval $ac_try) 2>&5
20025   ac_status=$?
20026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20027   (exit $ac_status); }; }; then
20028   ac_cv_header_stdc=yes
20029 else
20030   echo "$as_me: failed program was:" >&5
20031 sed 's/^/| /' conftest.$ac_ext >&5
20032
20033 ac_cv_header_stdc=no
20034 fi
20035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20036
20037 if test $ac_cv_header_stdc = yes; then
20038   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20039   cat >conftest.$ac_ext <<_ACEOF
20040 /* confdefs.h.  */
20041 _ACEOF
20042 cat confdefs.h >>conftest.$ac_ext
20043 cat >>conftest.$ac_ext <<_ACEOF
20044 /* end confdefs.h.  */
20045 #include <string.h>
20046
20047 _ACEOF
20048 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20049   $EGREP "memchr" >/dev/null 2>&1; then
20050   :
20051 else
20052   ac_cv_header_stdc=no
20053 fi
20054 rm -f conftest*
20055
20056 fi
20057
20058 if test $ac_cv_header_stdc = yes; then
20059   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20060   cat >conftest.$ac_ext <<_ACEOF
20061 /* confdefs.h.  */
20062 _ACEOF
20063 cat confdefs.h >>conftest.$ac_ext
20064 cat >>conftest.$ac_ext <<_ACEOF
20065 /* end confdefs.h.  */
20066 #include <stdlib.h>
20067
20068 _ACEOF
20069 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20070   $EGREP "free" >/dev/null 2>&1; then
20071   :
20072 else
20073   ac_cv_header_stdc=no
20074 fi
20075 rm -f conftest*
20076
20077 fi
20078
20079 if test $ac_cv_header_stdc = yes; then
20080   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20081   if test "$cross_compiling" = yes; then
20082   :
20083 else
20084   cat >conftest.$ac_ext <<_ACEOF
20085 /* confdefs.h.  */
20086 _ACEOF
20087 cat confdefs.h >>conftest.$ac_ext
20088 cat >>conftest.$ac_ext <<_ACEOF
20089 /* end confdefs.h.  */
20090 #include <ctype.h>
20091 #if ((' ' & 0x0FF) == 0x020)
20092 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20093 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20094 #else
20095 # define ISLOWER(c) \
20096                    (('a' <= (c) && (c) <= 'i') \
20097                      || ('j' <= (c) && (c) <= 'r') \
20098                      || ('s' <= (c) && (c) <= 'z'))
20099 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20100 #endif
20101
20102 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20103 int
20104 main ()
20105 {
20106   int i;
20107   for (i = 0; i < 256; i++)
20108     if (XOR (islower (i), ISLOWER (i))
20109         || toupper (i) != TOUPPER (i))
20110       exit(2);
20111   exit (0);
20112 }
20113 _ACEOF
20114 rm -f conftest$ac_exeext
20115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20116   (eval $ac_link) 2>&5
20117   ac_status=$?
20118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20119   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20121   (eval $ac_try) 2>&5
20122   ac_status=$?
20123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20124   (exit $ac_status); }; }; then
20125   :
20126 else
20127   echo "$as_me: program exited with status $ac_status" >&5
20128 echo "$as_me: failed program was:" >&5
20129 sed 's/^/| /' conftest.$ac_ext >&5
20130
20131 ( exit $ac_status )
20132 ac_cv_header_stdc=no
20133 fi
20134 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20135 fi
20136 fi
20137 fi
20138 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20139 echo "${ECHO_T}$ac_cv_header_stdc" >&6
20140 if test $ac_cv_header_stdc = yes; then
20141   
20142 cat >>confdefs.h <<\_ACEOF
20143 @%:@define STDC_HEADERS 1
20144 _ACEOF
20145
20146 fi
20147
20148
20149
20150
20151
20152 for ac_header in fcntl.h limits.h sys/time.h unistd.h
20153 do
20154 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20155 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20156   echo "$as_me:$LINENO: checking for $ac_header" >&5
20157 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20158 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20159   echo $ECHO_N "(cached) $ECHO_C" >&6
20160 fi
20161 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20162 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20163 else
20164   # Is the header compilable?
20165 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20166 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20167 cat >conftest.$ac_ext <<_ACEOF
20168 /* confdefs.h.  */
20169 _ACEOF
20170 cat confdefs.h >>conftest.$ac_ext
20171 cat >>conftest.$ac_ext <<_ACEOF
20172 /* end confdefs.h.  */
20173 $ac_includes_default
20174 @%:@include <$ac_header>
20175 _ACEOF
20176 rm -f conftest.$ac_objext
20177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20178   (eval $ac_compile) 2>conftest.er1
20179   ac_status=$?
20180   grep -v '^ *+' conftest.er1 >conftest.err
20181   rm -f conftest.er1
20182   cat conftest.err >&5
20183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20184   (exit $ac_status); } &&
20185          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20187   (eval $ac_try) 2>&5
20188   ac_status=$?
20189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20190   (exit $ac_status); }; } &&
20191          { ac_try='test -s conftest.$ac_objext'
20192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20193   (eval $ac_try) 2>&5
20194   ac_status=$?
20195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20196   (exit $ac_status); }; }; then
20197   ac_header_compiler=yes
20198 else
20199   echo "$as_me: failed program was:" >&5
20200 sed 's/^/| /' conftest.$ac_ext >&5
20201
20202 ac_header_compiler=no
20203 fi
20204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20205 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20206 echo "${ECHO_T}$ac_header_compiler" >&6
20207
20208 # Is the header present?
20209 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20210 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20211 cat >conftest.$ac_ext <<_ACEOF
20212 /* confdefs.h.  */
20213 _ACEOF
20214 cat confdefs.h >>conftest.$ac_ext
20215 cat >>conftest.$ac_ext <<_ACEOF
20216 /* end confdefs.h.  */
20217 @%:@include <$ac_header>
20218 _ACEOF
20219 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20220   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20221   ac_status=$?
20222   grep -v '^ *+' conftest.er1 >conftest.err
20223   rm -f conftest.er1
20224   cat conftest.err >&5
20225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20226   (exit $ac_status); } >/dev/null; then
20227   if test -s conftest.err; then
20228     ac_cpp_err=$ac_c_preproc_warn_flag
20229     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20230   else
20231     ac_cpp_err=
20232   fi
20233 else
20234   ac_cpp_err=yes
20235 fi
20236 if test -z "$ac_cpp_err"; then
20237   ac_header_preproc=yes
20238 else
20239   echo "$as_me: failed program was:" >&5
20240 sed 's/^/| /' conftest.$ac_ext >&5
20241
20242   ac_header_preproc=no
20243 fi
20244 rm -f conftest.err conftest.$ac_ext
20245 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20246 echo "${ECHO_T}$ac_header_preproc" >&6
20247
20248 # So?  What about this header?
20249 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20250   yes:no: )
20251     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20252 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20253     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20254 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20255     ac_header_preproc=yes
20256     ;;
20257   no:yes:* )
20258     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20259 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20260     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20261 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20262     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20263 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20264     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20265 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20266     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20267 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20268     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20269 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20270     (
20271       cat <<\_ASBOX
20272 @%:@@%:@ ------------------------------------- @%:@@%:@
20273 @%:@@%:@ Report this to uncensored.citadel.org @%:@@%:@
20274 @%:@@%:@ ------------------------------------- @%:@@%:@
20275 _ASBOX
20276     ) |
20277       sed "s/^/$as_me: WARNING:     /" >&2
20278     ;;
20279 esac
20280 echo "$as_me:$LINENO: checking for $ac_header" >&5
20281 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20282 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20283   echo $ECHO_N "(cached) $ECHO_C" >&6
20284 else
20285   eval "$as_ac_Header=\$ac_header_preproc"
20286 fi
20287 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20288 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20289
20290 fi
20291 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20292   cat >>confdefs.h <<_ACEOF
20293 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20294 _ACEOF
20295  
20296 fi
20297
20298 done
20299
20300
20301
20302
20303
20304 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20305 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20306 if test "${ac_cv_c_const+set}" = set; then
20307   echo $ECHO_N "(cached) $ECHO_C" >&6
20308 else
20309   cat >conftest.$ac_ext <<_ACEOF
20310 /* confdefs.h.  */
20311 _ACEOF
20312 cat confdefs.h >>conftest.$ac_ext
20313 cat >>conftest.$ac_ext <<_ACEOF
20314 /* end confdefs.h.  */
20315
20316 int
20317 main ()
20318 {
20319 /* FIXME: Include the comments suggested by Paul. */
20320 #ifndef __cplusplus
20321   /* Ultrix mips cc rejects this.  */
20322   typedef int charset[2];
20323   const charset x;
20324   /* SunOS 4.1.1 cc rejects this.  */
20325   char const *const *ccp;
20326   char **p;
20327   /* NEC SVR4.0.2 mips cc rejects this.  */
20328   struct point {int x, y;};
20329   static struct point const zero = {0,0};
20330   /* AIX XL C 1.02.0.0 rejects this.
20331      It does not let you subtract one const X* pointer from another in
20332      an arm of an if-expression whose if-part is not a constant
20333      expression */
20334   const char *g = "string";
20335   ccp = &g + (g ? g-g : 0);
20336   /* HPUX 7.0 cc rejects these. */
20337   ++ccp;
20338   p = (char**) ccp;
20339   ccp = (char const *const *) p;
20340   { /* SCO 3.2v4 cc rejects this.  */
20341     char *t;
20342     char const *s = 0 ? (char *) 0 : (char const *) 0;
20343
20344     *t++ = 0;
20345   }
20346   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20347     int x[] = {25, 17};
20348     const int *foo = &x[0];
20349     ++foo;
20350   }
20351   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20352     typedef const int *iptr;
20353     iptr p = 0;
20354     ++p;
20355   }
20356   { /* AIX XL C 1.02.0.0 rejects this saying
20357        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20358     struct s { int j; const int *ap[3]; };
20359     struct s *b; b->j = 5;
20360   }
20361   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20362     const int foo = 10;
20363   }
20364 #endif
20365
20366   ;
20367   return 0;
20368 }
20369 _ACEOF
20370 rm -f conftest.$ac_objext
20371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20372   (eval $ac_compile) 2>conftest.er1
20373   ac_status=$?
20374   grep -v '^ *+' conftest.er1 >conftest.err
20375   rm -f conftest.er1
20376   cat conftest.err >&5
20377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20378   (exit $ac_status); } &&
20379          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20381   (eval $ac_try) 2>&5
20382   ac_status=$?
20383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20384   (exit $ac_status); }; } &&
20385          { ac_try='test -s conftest.$ac_objext'
20386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20387   (eval $ac_try) 2>&5
20388   ac_status=$?
20389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20390   (exit $ac_status); }; }; then
20391   ac_cv_c_const=yes
20392 else
20393   echo "$as_me: failed program was:" >&5
20394 sed 's/^/| /' conftest.$ac_ext >&5
20395
20396 ac_cv_c_const=no
20397 fi
20398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20399 fi
20400 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20401 echo "${ECHO_T}$ac_cv_c_const" >&6
20402 if test $ac_cv_c_const = no; then
20403   
20404 cat >>confdefs.h <<\_ACEOF
20405 @%:@define const 
20406 _ACEOF
20407
20408 fi
20409
20410 echo "$as_me:$LINENO: checking for off_t" >&5
20411 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
20412 if test "${ac_cv_type_off_t+set}" = set; then
20413   echo $ECHO_N "(cached) $ECHO_C" >&6
20414 else
20415   cat >conftest.$ac_ext <<_ACEOF
20416 /* confdefs.h.  */
20417 _ACEOF
20418 cat confdefs.h >>conftest.$ac_ext
20419 cat >>conftest.$ac_ext <<_ACEOF
20420 /* end confdefs.h.  */
20421 $ac_includes_default
20422 int
20423 main ()
20424 {
20425 if ((off_t *) 0)
20426   return 0;
20427 if (sizeof (off_t))
20428   return 0;
20429   ;
20430   return 0;
20431 }
20432 _ACEOF
20433 rm -f conftest.$ac_objext
20434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20435   (eval $ac_compile) 2>conftest.er1
20436   ac_status=$?
20437   grep -v '^ *+' conftest.er1 >conftest.err
20438   rm -f conftest.er1
20439   cat conftest.err >&5
20440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20441   (exit $ac_status); } &&
20442          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20444   (eval $ac_try) 2>&5
20445   ac_status=$?
20446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20447   (exit $ac_status); }; } &&
20448          { ac_try='test -s conftest.$ac_objext'
20449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20450   (eval $ac_try) 2>&5
20451   ac_status=$?
20452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20453   (exit $ac_status); }; }; then
20454   ac_cv_type_off_t=yes
20455 else
20456   echo "$as_me: failed program was:" >&5
20457 sed 's/^/| /' conftest.$ac_ext >&5
20458
20459 ac_cv_type_off_t=no
20460 fi
20461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20462 fi
20463 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
20464 echo "${ECHO_T}$ac_cv_type_off_t" >&6
20465 if test $ac_cv_type_off_t = yes; then
20466   :
20467 else
20468   
20469 cat >>confdefs.h <<_ACEOF
20470 @%:@define off_t long
20471 _ACEOF
20472
20473 fi
20474
20475 echo "$as_me:$LINENO: checking for size_t" >&5
20476 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20477 if test "${ac_cv_type_size_t+set}" = set; then
20478   echo $ECHO_N "(cached) $ECHO_C" >&6
20479 else
20480   cat >conftest.$ac_ext <<_ACEOF
20481 /* confdefs.h.  */
20482 _ACEOF
20483 cat confdefs.h >>conftest.$ac_ext
20484 cat >>conftest.$ac_ext <<_ACEOF
20485 /* end confdefs.h.  */
20486 $ac_includes_default
20487 int
20488 main ()
20489 {
20490 if ((size_t *) 0)
20491   return 0;
20492 if (sizeof (size_t))
20493   return 0;
20494   ;
20495   return 0;
20496 }
20497 _ACEOF
20498 rm -f conftest.$ac_objext
20499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20500   (eval $ac_compile) 2>conftest.er1
20501   ac_status=$?
20502   grep -v '^ *+' conftest.er1 >conftest.err
20503   rm -f conftest.er1
20504   cat conftest.err >&5
20505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20506   (exit $ac_status); } &&
20507          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20509   (eval $ac_try) 2>&5
20510   ac_status=$?
20511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20512   (exit $ac_status); }; } &&
20513          { ac_try='test -s conftest.$ac_objext'
20514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20515   (eval $ac_try) 2>&5
20516   ac_status=$?
20517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20518   (exit $ac_status); }; }; then
20519   ac_cv_type_size_t=yes
20520 else
20521   echo "$as_me: failed program was:" >&5
20522 sed 's/^/| /' conftest.$ac_ext >&5
20523
20524 ac_cv_type_size_t=no
20525 fi
20526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20527 fi
20528 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20529 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20530 if test $ac_cv_type_size_t = yes; then
20531   :
20532 else
20533   
20534 cat >>confdefs.h <<_ACEOF
20535 @%:@define size_t unsigned
20536 _ACEOF
20537
20538 fi
20539
20540
20541 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
20542 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
20543 if test "${ac_cv_type_signal+set}" = set; then
20544   echo $ECHO_N "(cached) $ECHO_C" >&6
20545 else
20546   cat >conftest.$ac_ext <<_ACEOF
20547 /* confdefs.h.  */
20548 _ACEOF
20549 cat confdefs.h >>conftest.$ac_ext
20550 cat >>conftest.$ac_ext <<_ACEOF
20551 /* end confdefs.h.  */
20552 #include <sys/types.h>
20553 #include <signal.h>
20554 #ifdef signal
20555 # undef signal
20556 #endif
20557 #ifdef __cplusplus
20558 extern "C" void (*signal (int, void (*)(int)))(int);
20559 #else
20560 void (*signal ()) ();
20561 #endif
20562
20563 int
20564 main ()
20565 {
20566 int i;
20567   ;
20568   return 0;
20569 }
20570 _ACEOF
20571 rm -f conftest.$ac_objext
20572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20573   (eval $ac_compile) 2>conftest.er1
20574   ac_status=$?
20575   grep -v '^ *+' conftest.er1 >conftest.err
20576   rm -f conftest.er1
20577   cat conftest.err >&5
20578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20579   (exit $ac_status); } &&
20580          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20582   (eval $ac_try) 2>&5
20583   ac_status=$?
20584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20585   (exit $ac_status); }; } &&
20586          { ac_try='test -s conftest.$ac_objext'
20587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20588   (eval $ac_try) 2>&5
20589   ac_status=$?
20590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20591   (exit $ac_status); }; }; then
20592   ac_cv_type_signal=void
20593 else
20594   echo "$as_me: failed program was:" >&5
20595 sed 's/^/| /' conftest.$ac_ext >&5
20596
20597 ac_cv_type_signal=int
20598 fi
20599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20600 fi
20601 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
20602 echo "${ECHO_T}$ac_cv_type_signal" >&6
20603
20604 cat >>confdefs.h <<_ACEOF
20605 @%:@define RETSIGTYPE $ac_cv_type_signal
20606 _ACEOF
20607
20608
20609
20610 for ac_func in backtrace
20611 do
20612 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20613 echo "$as_me:$LINENO: checking for $ac_func" >&5
20614 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20615 if eval "test \"\${$as_ac_var+set}\" = set"; then
20616   echo $ECHO_N "(cached) $ECHO_C" >&6
20617 else
20618   cat >conftest.$ac_ext <<_ACEOF
20619 /* confdefs.h.  */
20620 _ACEOF
20621 cat confdefs.h >>conftest.$ac_ext
20622 cat >>conftest.$ac_ext <<_ACEOF
20623 /* end confdefs.h.  */
20624 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20625    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20626 #define $ac_func innocuous_$ac_func
20627
20628 /* System header to define __stub macros and hopefully few prototypes,
20629     which can conflict with char $ac_func (); below.
20630     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20631     <limits.h> exists even on freestanding compilers.  */
20632
20633 #ifdef __STDC__
20634 # include <limits.h>
20635 #else
20636 # include <assert.h>
20637 #endif
20638
20639 #undef $ac_func
20640
20641 /* Override any gcc2 internal prototype to avoid an error.  */
20642 #ifdef __cplusplus
20643 extern "C"
20644 {
20645 #endif
20646 /* We use char because int might match the return type of a gcc2
20647    builtin and then its argument prototype would still apply.  */
20648 char $ac_func ();
20649 /* The GNU C library defines this for functions which it implements
20650     to always fail with ENOSYS.  Some functions are actually named
20651     something starting with __ and the normal name is an alias.  */
20652 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20653 choke me
20654 #else
20655 char (*f) () = $ac_func;
20656 #endif
20657 #ifdef __cplusplus
20658 }
20659 #endif
20660
20661 int
20662 main ()
20663 {
20664 return f != $ac_func;
20665   ;
20666   return 0;
20667 }
20668 _ACEOF
20669 rm -f conftest.$ac_objext conftest$ac_exeext
20670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20671   (eval $ac_link) 2>conftest.er1
20672   ac_status=$?
20673   grep -v '^ *+' conftest.er1 >conftest.err
20674   rm -f conftest.er1
20675   cat conftest.err >&5
20676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20677   (exit $ac_status); } &&
20678          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
20684          { ac_try='test -s conftest$ac_exeext'
20685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20686   (eval $ac_try) 2>&5
20687   ac_status=$?
20688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20689   (exit $ac_status); }; }; then
20690   eval "$as_ac_var=yes"
20691 else
20692   echo "$as_me: failed program was:" >&5
20693 sed 's/^/| /' conftest.$ac_ext >&5
20694
20695 eval "$as_ac_var=no"
20696 fi
20697 rm -f conftest.err conftest.$ac_objext \
20698       conftest$ac_exeext conftest.$ac_ext
20699 fi
20700 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20701 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20702 if test `eval echo '${'$as_ac_var'}'` = yes; then
20703   cat >>confdefs.h <<_ACEOF
20704 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20705 _ACEOF
20706  
20707 fi
20708 done
20709
20710
20711 for ac_func in snprintf
20712 do
20713 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20714 echo "$as_me:$LINENO: checking for $ac_func" >&5
20715 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20716 if eval "test \"\${$as_ac_var+set}\" = set"; then
20717   echo $ECHO_N "(cached) $ECHO_C" >&6
20718 else
20719   cat >conftest.$ac_ext <<_ACEOF
20720 /* confdefs.h.  */
20721 _ACEOF
20722 cat confdefs.h >>conftest.$ac_ext
20723 cat >>conftest.$ac_ext <<_ACEOF
20724 /* end confdefs.h.  */
20725 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20726    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20727 #define $ac_func innocuous_$ac_func
20728
20729 /* System header to define __stub macros and hopefully few prototypes,
20730     which can conflict with char $ac_func (); below.
20731     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20732     <limits.h> exists even on freestanding compilers.  */
20733
20734 #ifdef __STDC__
20735 # include <limits.h>
20736 #else
20737 # include <assert.h>
20738 #endif
20739
20740 #undef $ac_func
20741
20742 /* Override any gcc2 internal prototype to avoid an error.  */
20743 #ifdef __cplusplus
20744 extern "C"
20745 {
20746 #endif
20747 /* We use char because int might match the return type of a gcc2
20748    builtin and then its argument prototype would still apply.  */
20749 char $ac_func ();
20750 /* The GNU C library defines this for functions which it implements
20751     to always fail with ENOSYS.  Some functions are actually named
20752     something starting with __ and the normal name is an alias.  */
20753 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20754 choke me
20755 #else
20756 char (*f) () = $ac_func;
20757 #endif
20758 #ifdef __cplusplus
20759 }
20760 #endif
20761
20762 int
20763 main ()
20764 {
20765 return f != $ac_func;
20766   ;
20767   return 0;
20768 }
20769 _ACEOF
20770 rm -f conftest.$ac_objext conftest$ac_exeext
20771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20772   (eval $ac_link) 2>conftest.er1
20773   ac_status=$?
20774   grep -v '^ *+' conftest.er1 >conftest.err
20775   rm -f conftest.er1
20776   cat conftest.err >&5
20777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20778   (exit $ac_status); } &&
20779          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20781   (eval $ac_try) 2>&5
20782   ac_status=$?
20783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20784   (exit $ac_status); }; } &&
20785          { ac_try='test -s conftest$ac_exeext'
20786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20787   (eval $ac_try) 2>&5
20788   ac_status=$?
20789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20790   (exit $ac_status); }; }; then
20791   eval "$as_ac_var=yes"
20792 else
20793   echo "$as_me: failed program was:" >&5
20794 sed 's/^/| /' conftest.$ac_ext >&5
20795
20796 eval "$as_ac_var=no"
20797 fi
20798 rm -f conftest.err conftest.$ac_objext \
20799       conftest$ac_exeext conftest.$ac_ext
20800 fi
20801 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20802 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20803 if test `eval echo '${'$as_ac_var'}'` = yes; then
20804   cat >>confdefs.h <<_ACEOF
20805 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20806 _ACEOF
20807  
20808 else
20809   case $LIB@&t@OBJS in
20810     "$ac_func.$ac_objext"   | \
20811   *" $ac_func.$ac_objext"   | \
20812     "$ac_func.$ac_objext "* | \
20813   *" $ac_func.$ac_objext "* ) ;;
20814   *) LIB@&t@OBJS="$LIB@&t@OBJS $ac_func.$ac_objext" ;;
20815 esac
20816
20817 fi
20818 done
20819
20820
20821
20822
20823 cat >>confdefs.h <<\_ACEOF
20824 @%:@define HAVE_LIBICAL 1
20825 _ACEOF
20826
20827
20828 if test "x$with_libical" != xno ; then
20829                   
20830 for ac_header in ical.h
20831 do
20832 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20833 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20834   echo "$as_me:$LINENO: checking for $ac_header" >&5
20835 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20836 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20837   echo $ECHO_N "(cached) $ECHO_C" >&6
20838 fi
20839 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20840 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20841 else
20842   # Is the header compilable?
20843 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20844 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20845 cat >conftest.$ac_ext <<_ACEOF
20846 /* confdefs.h.  */
20847 _ACEOF
20848 cat confdefs.h >>conftest.$ac_ext
20849 cat >>conftest.$ac_ext <<_ACEOF
20850 /* end confdefs.h.  */
20851 $ac_includes_default
20852 @%:@include <$ac_header>
20853 _ACEOF
20854 rm -f conftest.$ac_objext
20855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20856   (eval $ac_compile) 2>conftest.er1
20857   ac_status=$?
20858   grep -v '^ *+' conftest.er1 >conftest.err
20859   rm -f conftest.er1
20860   cat conftest.err >&5
20861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20862   (exit $ac_status); } &&
20863          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20865   (eval $ac_try) 2>&5
20866   ac_status=$?
20867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20868   (exit $ac_status); }; } &&
20869          { ac_try='test -s conftest.$ac_objext'
20870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20871   (eval $ac_try) 2>&5
20872   ac_status=$?
20873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20874   (exit $ac_status); }; }; then
20875   ac_header_compiler=yes
20876 else
20877   echo "$as_me: failed program was:" >&5
20878 sed 's/^/| /' conftest.$ac_ext >&5
20879
20880 ac_header_compiler=no
20881 fi
20882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20883 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20884 echo "${ECHO_T}$ac_header_compiler" >&6
20885
20886 # Is the header present?
20887 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20888 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20889 cat >conftest.$ac_ext <<_ACEOF
20890 /* confdefs.h.  */
20891 _ACEOF
20892 cat confdefs.h >>conftest.$ac_ext
20893 cat >>conftest.$ac_ext <<_ACEOF
20894 /* end confdefs.h.  */
20895 @%:@include <$ac_header>
20896 _ACEOF
20897 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20898   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20899   ac_status=$?
20900   grep -v '^ *+' conftest.er1 >conftest.err
20901   rm -f conftest.er1
20902   cat conftest.err >&5
20903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20904   (exit $ac_status); } >/dev/null; then
20905   if test -s conftest.err; then
20906     ac_cpp_err=$ac_c_preproc_warn_flag
20907     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20908   else
20909     ac_cpp_err=
20910   fi
20911 else
20912   ac_cpp_err=yes
20913 fi
20914 if test -z "$ac_cpp_err"; then
20915   ac_header_preproc=yes
20916 else
20917   echo "$as_me: failed program was:" >&5
20918 sed 's/^/| /' conftest.$ac_ext >&5
20919
20920   ac_header_preproc=no
20921 fi
20922 rm -f conftest.err conftest.$ac_ext
20923 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20924 echo "${ECHO_T}$ac_header_preproc" >&6
20925
20926 # So?  What about this header?
20927 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20928   yes:no: )
20929     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20930 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20931     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20932 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20933     ac_header_preproc=yes
20934     ;;
20935   no:yes:* )
20936     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20937 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20938     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20939 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20940     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20941 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20942     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20943 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20944     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20945 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20946     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20947 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20948     (
20949       cat <<\_ASBOX
20950 @%:@@%:@ ------------------------------------- @%:@@%:@
20951 @%:@@%:@ Report this to uncensored.citadel.org @%:@@%:@
20952 @%:@@%:@ ------------------------------------- @%:@@%:@
20953 _ASBOX
20954     ) |
20955       sed "s/^/$as_me: WARNING:     /" >&2
20956     ;;
20957 esac
20958 echo "$as_me:$LINENO: checking for $ac_header" >&5
20959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20960 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20961   echo $ECHO_N "(cached) $ECHO_C" >&6
20962 else
20963   eval "$as_ac_Header=\$ac_header_preproc"
20964 fi
20965 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20966 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20967
20968 fi
20969 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20970   cat >>confdefs.h <<_ACEOF
20971 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20972 _ACEOF
20973  echo "$as_me:$LINENO: checking for icalcomponent_new in -lical" >&5
20974 echo $ECHO_N "checking for icalcomponent_new in -lical... $ECHO_C" >&6
20975 if test "${ac_cv_lib_ical_icalcomponent_new+set}" = set; then
20976   echo $ECHO_N "(cached) $ECHO_C" >&6
20977 else
20978   ac_check_lib_save_LIBS=$LIBS
20979 LIBS="-lical  $LIBS"
20980 cat >conftest.$ac_ext <<_ACEOF
20981 /* confdefs.h.  */
20982 _ACEOF
20983 cat confdefs.h >>conftest.$ac_ext
20984 cat >>conftest.$ac_ext <<_ACEOF
20985 /* end confdefs.h.  */
20986
20987 /* Override any gcc2 internal prototype to avoid an error.  */
20988 #ifdef __cplusplus
20989 extern "C"
20990 #endif
20991 /* We use char because int might match the return type of a gcc2
20992    builtin and then its argument prototype would still apply.  */
20993 char icalcomponent_new ();
20994 int
20995 main ()
20996 {
20997 icalcomponent_new ();
20998   ;
20999   return 0;
21000 }
21001 _ACEOF
21002 rm -f conftest.$ac_objext conftest$ac_exeext
21003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21004   (eval $ac_link) 2>conftest.er1
21005   ac_status=$?
21006   grep -v '^ *+' conftest.er1 >conftest.err
21007   rm -f conftest.er1
21008   cat conftest.err >&5
21009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21010   (exit $ac_status); } &&
21011          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21013   (eval $ac_try) 2>&5
21014   ac_status=$?
21015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21016   (exit $ac_status); }; } &&
21017          { ac_try='test -s conftest$ac_exeext'
21018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21019   (eval $ac_try) 2>&5
21020   ac_status=$?
21021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21022   (exit $ac_status); }; }; then
21023   ac_cv_lib_ical_icalcomponent_new=yes
21024 else
21025   echo "$as_me: failed program was:" >&5
21026 sed 's/^/| /' conftest.$ac_ext >&5
21027
21028 ac_cv_lib_ical_icalcomponent_new=no
21029 fi
21030 rm -f conftest.err conftest.$ac_objext \
21031       conftest$ac_exeext conftest.$ac_ext
21032 LIBS=$ac_check_lib_save_LIBS
21033 fi
21034 echo "$as_me:$LINENO: result: $ac_cv_lib_ical_icalcomponent_new" >&5
21035 echo "${ECHO_T}$ac_cv_lib_ical_icalcomponent_new" >&6
21036 if test $ac_cv_lib_ical_icalcomponent_new = yes; then
21037   ok_libical=yes
21038 fi
21039
21040 fi
21041
21042 done
21043
21044 fi
21045
21046 if test "x$ok_libical" = xyes ; then
21047
21048         if test "$cross_compiling" = yes; then
21049   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21050 See \`config.log' for more details." >&5
21051 echo "$as_me: error: cannot run test program while cross compiling
21052 See \`config.log' for more details." >&2;}
21053    { (exit 1); exit 1; }; }
21054 else
21055   cat >conftest.$ac_ext <<_ACEOF
21056 /* confdefs.h.  */
21057 _ACEOF
21058 cat confdefs.h >>conftest.$ac_ext
21059 cat >>conftest.$ac_ext <<_ACEOF
21060 /* end confdefs.h.  */
21061
21062 #include <ical.h>
21063 main() {
21064         int major, minor, v;
21065         sscanf(ICAL_VERSION, "%d.%d", &major, &minor);
21066         v = 100*major + minor;
21067         printf("libical version: %i\n", v);
21068         if (v >= 24) {
21069                 printf("This version is ok.\n");
21070                 return(0);
21071         }
21072         printf("libical 0.24 or newer required.\n");
21073         printf("Citadel will be built without calendar support.\n");
21074         return(1);
21075 }
21076                 
21077 _ACEOF
21078 rm -f conftest$ac_exeext
21079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21080   (eval $ac_link) 2>&5
21081   ac_status=$?
21082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21083   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21085   (eval $ac_try) 2>&5
21086   ac_status=$?
21087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21088   (exit $ac_status); }; }; then
21089   
21090                         LIBS="$LIBS -lical"
21091                         cat >>confdefs.h <<\_ACEOF
21092 @%:@define HAVE_LIBICAL 1
21093 _ACEOF
21094
21095                 
21096         
21097 else
21098   echo "$as_me: program exited with status $ac_status" >&5
21099 echo "$as_me: failed program was:" >&5
21100 sed 's/^/| /' conftest.$ac_ext >&5
21101
21102 fi
21103 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21104 fi
21105 fi
21106
21107
21108
21109
21110 cat >>confdefs.h <<\_ACEOF
21111 @%:@define with_zlib 1
21112 _ACEOF
21113
21114
21115 if test "x$ok_zlib" = xyes ; then
21116         LIBS="$LIBS -lz "
21117 fi
21118
21119
21120 # Check whether --with-ok_newt or --without-ok_newt was given.
21121 if test "${with_ok_newt+set}" = set; then
21122   withval="$with_ok_newt"
21123   ok_newt=no
21124 else
21125    
21126 for ac_header in newt.h
21127 do
21128 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21129 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21130   echo "$as_me:$LINENO: checking for $ac_header" >&5
21131 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21132 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21133   echo $ECHO_N "(cached) $ECHO_C" >&6
21134 fi
21135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21136 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21137 else
21138   # Is the header compilable?
21139 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21140 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21141 cat >conftest.$ac_ext <<_ACEOF
21142 /* confdefs.h.  */
21143 _ACEOF
21144 cat confdefs.h >>conftest.$ac_ext
21145 cat >>conftest.$ac_ext <<_ACEOF
21146 /* end confdefs.h.  */
21147 $ac_includes_default
21148 @%:@include <$ac_header>
21149 _ACEOF
21150 rm -f conftest.$ac_objext
21151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21152   (eval $ac_compile) 2>conftest.er1
21153   ac_status=$?
21154   grep -v '^ *+' conftest.er1 >conftest.err
21155   rm -f conftest.er1
21156   cat conftest.err >&5
21157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21158   (exit $ac_status); } &&
21159          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21161   (eval $ac_try) 2>&5
21162   ac_status=$?
21163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21164   (exit $ac_status); }; } &&
21165          { ac_try='test -s conftest.$ac_objext'
21166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21167   (eval $ac_try) 2>&5
21168   ac_status=$?
21169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21170   (exit $ac_status); }; }; then
21171   ac_header_compiler=yes
21172 else
21173   echo "$as_me: failed program was:" >&5
21174 sed 's/^/| /' conftest.$ac_ext >&5
21175
21176 ac_header_compiler=no
21177 fi
21178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21179 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21180 echo "${ECHO_T}$ac_header_compiler" >&6
21181
21182 # Is the header present?
21183 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21184 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21185 cat >conftest.$ac_ext <<_ACEOF
21186 /* confdefs.h.  */
21187 _ACEOF
21188 cat confdefs.h >>conftest.$ac_ext
21189 cat >>conftest.$ac_ext <<_ACEOF
21190 /* end confdefs.h.  */
21191 @%:@include <$ac_header>
21192 _ACEOF
21193 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21194   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21195   ac_status=$?
21196   grep -v '^ *+' conftest.er1 >conftest.err
21197   rm -f conftest.er1
21198   cat conftest.err >&5
21199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21200   (exit $ac_status); } >/dev/null; then
21201   if test -s conftest.err; then
21202     ac_cpp_err=$ac_c_preproc_warn_flag
21203     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21204   else
21205     ac_cpp_err=
21206   fi
21207 else
21208   ac_cpp_err=yes
21209 fi
21210 if test -z "$ac_cpp_err"; then
21211   ac_header_preproc=yes
21212 else
21213   echo "$as_me: failed program was:" >&5
21214 sed 's/^/| /' conftest.$ac_ext >&5
21215
21216   ac_header_preproc=no
21217 fi
21218 rm -f conftest.err conftest.$ac_ext
21219 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21220 echo "${ECHO_T}$ac_header_preproc" >&6
21221
21222 # So?  What about this header?
21223 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21224   yes:no: )
21225     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21226 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21227     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21228 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21229     ac_header_preproc=yes
21230     ;;
21231   no:yes:* )
21232     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21233 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21234     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21235 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21236     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21237 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21238     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21239 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21240     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21241 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21242     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21243 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21244     (
21245       cat <<\_ASBOX
21246 @%:@@%:@ ------------------------------------- @%:@@%:@
21247 @%:@@%:@ Report this to uncensored.citadel.org @%:@@%:@
21248 @%:@@%:@ ------------------------------------- @%:@@%:@
21249 _ASBOX
21250     ) |
21251       sed "s/^/$as_me: WARNING:     /" >&2
21252     ;;
21253 esac
21254 echo "$as_me:$LINENO: checking for $ac_header" >&5
21255 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21256 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21257   echo $ECHO_N "(cached) $ECHO_C" >&6
21258 else
21259   eval "$as_ac_Header=\$ac_header_preproc"
21260 fi
21261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21262 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21263
21264 fi
21265 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21266   cat >>confdefs.h <<_ACEOF
21267 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21268 _ACEOF
21269  echo "$as_me:$LINENO: checking for newtInit in -lnewt" >&5
21270 echo $ECHO_N "checking for newtInit in -lnewt... $ECHO_C" >&6
21271 if test "${ac_cv_lib_newt_newtInit+set}" = set; then
21272   echo $ECHO_N "(cached) $ECHO_C" >&6
21273 else
21274   ac_check_lib_save_LIBS=$LIBS
21275 LIBS="-lnewt  $LIBS"
21276 cat >conftest.$ac_ext <<_ACEOF
21277 /* confdefs.h.  */
21278 _ACEOF
21279 cat confdefs.h >>conftest.$ac_ext
21280 cat >>conftest.$ac_ext <<_ACEOF
21281 /* end confdefs.h.  */
21282
21283 /* Override any gcc2 internal prototype to avoid an error.  */
21284 #ifdef __cplusplus
21285 extern "C"
21286 #endif
21287 /* We use char because int might match the return type of a gcc2
21288    builtin and then its argument prototype would still apply.  */
21289 char newtInit ();
21290 int
21291 main ()
21292 {
21293 newtInit ();
21294   ;
21295   return 0;
21296 }
21297 _ACEOF
21298 rm -f conftest.$ac_objext conftest$ac_exeext
21299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21300   (eval $ac_link) 2>conftest.er1
21301   ac_status=$?
21302   grep -v '^ *+' conftest.er1 >conftest.err
21303   rm -f conftest.er1
21304   cat conftest.err >&5
21305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21306   (exit $ac_status); } &&
21307          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21309   (eval $ac_try) 2>&5
21310   ac_status=$?
21311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21312   (exit $ac_status); }; } &&
21313          { ac_try='test -s conftest$ac_exeext'
21314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21315   (eval $ac_try) 2>&5
21316   ac_status=$?
21317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21318   (exit $ac_status); }; }; then
21319   ac_cv_lib_newt_newtInit=yes
21320 else
21321   echo "$as_me: failed program was:" >&5
21322 sed 's/^/| /' conftest.$ac_ext >&5
21323
21324 ac_cv_lib_newt_newtInit=no
21325 fi
21326 rm -f conftest.err conftest.$ac_objext \
21327       conftest$ac_exeext conftest.$ac_ext
21328 LIBS=$ac_check_lib_save_LIBS
21329 fi
21330 echo "$as_me:$LINENO: result: $ac_cv_lib_newt_newtInit" >&5
21331 echo "${ECHO_T}$ac_cv_lib_newt_newtInit" >&6
21332 if test $ac_cv_lib_newt_newtInit = yes; then
21333   ok_newt=yes
21334 else
21335   ok_newt=no
21336 fi
21337
21338                                                         
21339 fi
21340
21341 done
21342
21343                                   
21344
21345 fi; 
21346 if test "x$ok_newt" = xyes ; then
21347         SETUP_LIBS="-lnewt $SETUP_LIBS"
21348 fi
21349
21350 # The big search for OpenSSL
21351 if test "$with_ssl" != "no"; then
21352         saved_LIBS="$LIBS"
21353         saved_LDFLAGS="$LDFLAGS"
21354         saved_CFLAGS="$CFLAGS"
21355         if test "x$prefix" != "xNONE"; then
21356                 tryssldir="$tryssldir $prefix"
21357         fi
21358         echo "$as_me:$LINENO: checking for OpenSSL" >&5
21359 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
21360 if test "${ac_cv_openssldir+set}" = set; then
21361   echo $ECHO_N "(cached) $ECHO_C" >&6
21362 else
21363   
21364                 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
21365                         CFLAGS="$saved_CFLAGS"
21366                         LDFLAGS="$saved_LDFLAGS"
21367                         LIBS="$saved_LIBS -lssl -lcrypto"
21368         
21369                         # Skip directories if they don't exist
21370                         if test ! -z "$ssldir" -a ! -d "$ssldir" ; then
21371                                 continue;
21372                         fi
21373                         if test ! -z "$ssldir" -a "x$ssldir" != "x/usr"; then
21374                                 # Try to use $ssldir/lib if it exists, otherwise
21375                                 # $ssldir
21376                                 if test -d "$ssldir/lib" ; then
21377                                         LDFLAGS="-L$ssldir/lib $saved_LDFLAGS"
21378                                         if test ! -z "$need_dash_r" ; then
21379                                                 LDFLAGS="-R$ssldir/lib $LDFLAGS"
21380                                         fi
21381                                 else
21382                                         LDFLAGS="-L$ssldir $saved_LDFLAGS"
21383                                         if test ! -z "$need_dash_r" ; then
21384                                                 LDFLAGS="-R$ssldir $LDFLAGS"
21385                                         fi
21386                                 fi
21387                                 # Try to use $ssldir/include if it exists, otherwise
21388                                 # $ssldir
21389                                 if test -d "$ssldir/include" ; then
21390                                         CFLAGS="-I$ssldir/include $saved_CFLAGS"
21391                                 else
21392                                         CFLAGS="-I$ssldir $saved_CFLAGS"
21393                                 fi
21394                         fi
21395         
21396                         # Basic test to check for compatible version and correct linking
21397                         # *does not* test for RSA - that comes later.
21398                         if test "$cross_compiling" = yes; then
21399   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21400 See \`config.log' for more details." >&5
21401 echo "$as_me: error: cannot run test program while cross compiling
21402 See \`config.log' for more details." >&2;}
21403    { (exit 1); exit 1; }; }
21404 else
21405   cat >conftest.$ac_ext <<_ACEOF
21406 /* confdefs.h.  */
21407 _ACEOF
21408 cat confdefs.h >>conftest.$ac_ext
21409 cat >>conftest.$ac_ext <<_ACEOF
21410 /* end confdefs.h.  */
21411
21412         #include <string.h>
21413         #include <openssl/rand.h>
21414         int main(void)
21415         {
21416                 char a[2048];
21417                 memset(a, 0, sizeof(a));
21418                 RAND_add(a, sizeof(a), sizeof(a));
21419                 return(RAND_status() <= 0);
21420         }
21421                                 
21422 _ACEOF
21423 rm -f conftest$ac_exeext
21424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21425   (eval $ac_link) 2>&5
21426   ac_status=$?
21427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21428   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21430   (eval $ac_try) 2>&5
21431   ac_status=$?
21432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21433   (exit $ac_status); }; }; then
21434   
21435                                         found_crypto=1
21436                                         break;
21437                                 
21438 else
21439   echo "$as_me: program exited with status $ac_status" >&5
21440 echo "$as_me: failed program was:" >&5
21441 sed 's/^/| /' conftest.$ac_ext >&5
21442
21443 ( exit $ac_status )
21444
21445                         
21446 fi
21447 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21448 fi
21449         
21450                         if test ! -z "$found_crypto" ; then
21451                                 break;
21452                         fi
21453                 done
21454         
21455                 if test -z "$ssldir" ; then
21456                         ssldir="(system)"
21457                 fi
21458         
21459                 if test ! -z "$found_crypto" ; then
21460                         ac_cv_openssldir=$ssldir
21461                 else
21462                         ac_cv_openssldir="no"
21463                 fi
21464         
21465 fi
21466 echo "$as_me:$LINENO: result: $ac_cv_openssldir" >&5
21467 echo "${ECHO_T}$ac_cv_openssldir" >&6
21468         LIBS="$saved_LIBS"
21469         LDFLAGS="$saved_LDFLAGS"
21470         CFLAGS="$saved_CFLAGS"
21471         
21472         if test "x$ac_cv_openssldir" != "xno" ; then
21473                 cat >>confdefs.h <<\_ACEOF
21474 @%:@define HAVE_OPENSSL 1
21475 _ACEOF
21476
21477                 LIBS="-lssl -lcrypto $LIBS"
21478                                 ssldir=$ac_cv_openssldir
21479                 if test ! -z "$ssldir" -a "x$ssldir" != "x/usr" -a "x$ssldir" != "x(system)"; then
21480                         # Try to use $ssldir/lib if it exists, otherwise
21481                         # $ssldir
21482                         if test -d "$ssldir/lib" ; then
21483                                 LDFLAGS="-L$ssldir/lib $saved_LDFLAGS"
21484                                 if test ! -z "$need_dash_r" ; then
21485                                         LDFLAGS="-R$ssldir/lib $LDFLAGS"
21486                                 fi
21487                         else
21488                                 LDFLAGS="-L$ssldir $saved_LDFLAGS"
21489                                 if test ! -z "$need_dash_r" ; then
21490                                         LDFLAGS="-R$ssldir $LDFLAGS"
21491                                 fi
21492                         fi
21493                         # Try to use $ssldir/include if it exists, otherwise
21494                         # $ssldir
21495                         if test -d "$ssldir/include" ; then
21496                                 CFLAGS="-I$ssldir/include $saved_CFLAGS"
21497                         else
21498                                 CFLAGS="-I$ssldir $saved_CFLAGS"
21499                         fi
21500                 fi
21501         fi
21502 fi
21503
21504
21505
21506 cat >>confdefs.h <<\_ACEOF
21507 @%:@define HAVE_ICONV 1
21508 _ACEOF
21509
21510
21511 if test "$ok_nls" != "no"; then
21512         echo "$as_me:$LINENO: result: Checking to see if your system supports iconv..." >&5
21513 echo "${ECHO_T}Checking to see if your system supports iconv..." >&6
21514         if test "$cross_compiling" = yes; then
21515   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21516 See \`config.log' for more details." >&5
21517 echo "$as_me: error: cannot run test program while cross compiling
21518 See \`config.log' for more details." >&2;}
21519    { (exit 1); exit 1; }; }
21520 else
21521   cat >conftest.$ac_ext <<_ACEOF
21522 /* confdefs.h.  */
21523 _ACEOF
21524 cat confdefs.h >>conftest.$ac_ext
21525 cat >>conftest.$ac_ext <<_ACEOF
21526 /* end confdefs.h.  */
21527
21528                 #include <iconv.h>
21529                 main() {
21530                         iconv_t ic = (iconv_t)(-1) ;
21531                         ic = iconv_open("UTF-8", "us-ascii");
21532                         iconv_close(ic);
21533                         exit(0);
21534                 }
21535         
21536 _ACEOF
21537 rm -f conftest$ac_exeext
21538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21539   (eval $ac_link) 2>&5
21540   ac_status=$?
21541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21542   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21544   (eval $ac_try) 2>&5
21545   ac_status=$?
21546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21547   (exit $ac_status); }; }; then
21548   ok_iconv=yes
21549 else
21550   echo "$as_me: program exited with status $ac_status" >&5
21551 echo "$as_me: failed program was:" >&5
21552 sed 's/^/| /' conftest.$ac_ext >&5
21553
21554 ( exit $ac_status )
21555 ok_iconv=no
21556         
21557 fi
21558 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21559 fi
21560 fi
21561
21562 if test "$ok_iconv" != "no"; then
21563         echo "$as_me:$LINENO: result: WebCit will be built with character set conversion." >&5
21564 echo "${ECHO_T}WebCit will be built with character set conversion." >&6
21565         cat >>confdefs.h <<\_ACEOF
21566 @%:@define HAVE_ICONV 1
21567 _ACEOF
21568
21569 else
21570         echo "$as_me:$LINENO: result: WebCit will be built without character set conversion." >&5
21571 echo "${ECHO_T}WebCit will be built without character set conversion." >&6
21572 fi
21573
21574
21575 cat >>confdefs.h <<_ACEOF
21576 @%:@define PREFIX "$prefix"
21577 _ACEOF
21578
21579
21580
21581
21582 #AM_GNU_GETTEXT
21583 # if we have intl/... 
21584
21585 case "$am__api_version" in
21586     1.01234)
21587         { { echo "$as_me:$LINENO: error: Automake 1.5 or newer is required to use intltool" >&5
21588 echo "$as_me: error: Automake 1.5 or newer is required to use intltool" >&2;}
21589    { (exit 1); exit 1; }; }
21590     ;;
21591     *)
21592     ;;
21593 esac
21594
21595 if test -n ""; then
21596     echo "$as_me:$LINENO: checking for intltool >= " >&5
21597 echo $ECHO_N "checking for intltool >= ... $ECHO_C" >&6
21598
21599     INTLTOOL_REQUIRED_VERSION_AS_INT=`echo  | awk -F. '{ print $ 1 * 100 + $ 2; }'`
21600     INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { print $ 2; }' ${ac_aux_dir}/intltool-update.in`
21601     INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split($ 2, VERSION, "."); print VERSION[1] * 100 + VERSION[2];}' ${ac_aux_dir}/intltool-update.in`
21602     
21603     echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5
21604 echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found" >&6
21605     test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
21606         { { echo "$as_me:$LINENO: error: Your intltool is too old.  You need intltool  or later." >&5
21607 echo "$as_me: error: Your intltool is too old.  You need intltool  or later." >&2;}
21608    { (exit 1); exit 1; }; }
21609 fi
21610
21611   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 $< $@' 
21612 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 $< $@' 
21613      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 $< $@' 
21614      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 $< $@' 
21615       INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< $@'
21616      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 $< $@' 
21617    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 $< $@' 
21618     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 $< $@' 
21619 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 $< $@' 
21620        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 $< $@' 
21621       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 $< $@' 
21622       INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< $@' 
21623       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 $< $@' 
21624       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 $< $@' 
21625     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 $< $@' 
21626   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 $< $@' 
21627     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 $< $@' 
21628     INTLTOOL_SERVICE_RULE='%.service: %.service.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 $< $@'
21629
21630
21631
21632
21633
21634
21635
21636
21637
21638
21639
21640
21641
21642
21643
21644
21645
21646
21647
21648
21649 # Use the tools built into the package, not the ones that are installed.
21650 INTLTOOL_EXTRACT='$(top_builddir)/intltool-extract'
21651
21652 INTLTOOL_MERGE='$(top_builddir)/intltool-merge'
21653
21654 INTLTOOL_UPDATE='$(top_builddir)/intltool-update'
21655
21656
21657 # Extract the first word of "perl", so it can be a program name with args.
21658 set dummy perl; ac_word=$2
21659 echo "$as_me:$LINENO: checking for $ac_word" >&5
21660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21661 if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then
21662   echo $ECHO_N "(cached) $ECHO_C" >&6
21663 else
21664   case $INTLTOOL_PERL in
21665   [\\/]* | ?:[\\/]*)
21666   ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
21667   ;;
21668   *)
21669   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21670 for as_dir in $PATH
21671 do
21672   IFS=$as_save_IFS
21673   test -z "$as_dir" && as_dir=.
21674   for ac_exec_ext in '' $ac_executable_extensions; do
21675   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21676     ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
21677     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21678     break 2
21679   fi
21680 done
21681 done
21682
21683   ;;
21684 esac
21685 fi
21686 INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
21687
21688 if test -n "$INTLTOOL_PERL"; then
21689   echo "$as_me:$LINENO: result: $INTLTOOL_PERL" >&5
21690 echo "${ECHO_T}$INTLTOOL_PERL" >&6
21691 else
21692   echo "$as_me:$LINENO: result: no" >&5
21693 echo "${ECHO_T}no" >&6
21694 fi
21695
21696 if test -z "$INTLTOOL_PERL"; then
21697    { { echo "$as_me:$LINENO: error: perl not found; required for intltool" >&5
21698 echo "$as_me: error: perl not found; required for intltool" >&2;}
21699    { (exit 1); exit 1; }; }
21700 fi
21701 if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
21702    { { echo "$as_me:$LINENO: error: perl 5.x required for intltool" >&5
21703 echo "$as_me: error: perl 5.x required for intltool" >&2;}
21704    { (exit 1); exit 1; }; }
21705 fi
21706 if test "x" != "xno-xml"; then
21707    echo "$as_me:$LINENO: checking for XML::Parser" >&5
21708 echo $ECHO_N "checking for XML::Parser... $ECHO_C" >&6
21709    if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
21710        echo "$as_me:$LINENO: result: ok" >&5
21711 echo "${ECHO_T}ok" >&6
21712    else
21713        { { echo "$as_me:$LINENO: error: XML::Parser perl module is required for intltool" >&5
21714 echo "$as_me: error: XML::Parser perl module is required for intltool" >&2;}
21715    { (exit 1); exit 1; }; }
21716    fi
21717 fi
21718
21719 # Extract the first word of "iconv", so it can be a program name with args.
21720 set dummy iconv; ac_word=$2
21721 echo "$as_me:$LINENO: checking for $ac_word" >&5
21722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21723 if test "${ac_cv_path_INTLTOOL_ICONV+set}" = set; then
21724   echo $ECHO_N "(cached) $ECHO_C" >&6
21725 else
21726   case $INTLTOOL_ICONV in
21727   [\\/]* | ?:[\\/]*)
21728   ac_cv_path_INTLTOOL_ICONV="$INTLTOOL_ICONV" # Let the user override the test with a path.
21729   ;;
21730   *)
21731   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21732 for as_dir in $PATH
21733 do
21734   IFS=$as_save_IFS
21735   test -z "$as_dir" && as_dir=.
21736   for ac_exec_ext in '' $ac_executable_extensions; do
21737   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21738     ac_cv_path_INTLTOOL_ICONV="$as_dir/$ac_word$ac_exec_ext"
21739     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21740     break 2
21741   fi
21742 done
21743 done
21744
21745   test -z "$ac_cv_path_INTLTOOL_ICONV" && ac_cv_path_INTLTOOL_ICONV="iconv"
21746   ;;
21747 esac
21748 fi
21749 INTLTOOL_ICONV=$ac_cv_path_INTLTOOL_ICONV
21750
21751 if test -n "$INTLTOOL_ICONV"; then
21752   echo "$as_me:$LINENO: result: $INTLTOOL_ICONV" >&5
21753 echo "${ECHO_T}$INTLTOOL_ICONV" >&6
21754 else
21755   echo "$as_me:$LINENO: result: no" >&5
21756 echo "${ECHO_T}no" >&6
21757 fi
21758
21759 # Extract the first word of "msgfmt", so it can be a program name with args.
21760 set dummy msgfmt; ac_word=$2
21761 echo "$as_me:$LINENO: checking for $ac_word" >&5
21762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21763 if test "${ac_cv_path_INTLTOOL_MSGFMT+set}" = set; then
21764   echo $ECHO_N "(cached) $ECHO_C" >&6
21765 else
21766   case $INTLTOOL_MSGFMT in
21767   [\\/]* | ?:[\\/]*)
21768   ac_cv_path_INTLTOOL_MSGFMT="$INTLTOOL_MSGFMT" # Let the user override the test with a path.
21769   ;;
21770   *)
21771   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21772 for as_dir in $PATH
21773 do
21774   IFS=$as_save_IFS
21775   test -z "$as_dir" && as_dir=.
21776   for ac_exec_ext in '' $ac_executable_extensions; do
21777   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21778     ac_cv_path_INTLTOOL_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
21779     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21780     break 2
21781   fi
21782 done
21783 done
21784
21785   test -z "$ac_cv_path_INTLTOOL_MSGFMT" && ac_cv_path_INTLTOOL_MSGFMT="msgfmt"
21786   ;;
21787 esac
21788 fi
21789 INTLTOOL_MSGFMT=$ac_cv_path_INTLTOOL_MSGFMT
21790
21791 if test -n "$INTLTOOL_MSGFMT"; then
21792   echo "$as_me:$LINENO: result: $INTLTOOL_MSGFMT" >&5
21793 echo "${ECHO_T}$INTLTOOL_MSGFMT" >&6
21794 else
21795   echo "$as_me:$LINENO: result: no" >&5
21796 echo "${ECHO_T}no" >&6
21797 fi
21798
21799 # Extract the first word of "msgmerge", so it can be a program name with args.
21800 set dummy msgmerge; ac_word=$2
21801 echo "$as_me:$LINENO: checking for $ac_word" >&5
21802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21803 if test "${ac_cv_path_INTLTOOL_MSGMERGE+set}" = set; then
21804   echo $ECHO_N "(cached) $ECHO_C" >&6
21805 else
21806   case $INTLTOOL_MSGMERGE in
21807   [\\/]* | ?:[\\/]*)
21808   ac_cv_path_INTLTOOL_MSGMERGE="$INTLTOOL_MSGMERGE" # Let the user override the test with a path.
21809   ;;
21810   *)
21811   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21812 for as_dir in $PATH
21813 do
21814   IFS=$as_save_IFS
21815   test -z "$as_dir" && as_dir=.
21816   for ac_exec_ext in '' $ac_executable_extensions; do
21817   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21818     ac_cv_path_INTLTOOL_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
21819     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21820     break 2
21821   fi
21822 done
21823 done
21824
21825   test -z "$ac_cv_path_INTLTOOL_MSGMERGE" && ac_cv_path_INTLTOOL_MSGMERGE="msgmerge"
21826   ;;
21827 esac
21828 fi
21829 INTLTOOL_MSGMERGE=$ac_cv_path_INTLTOOL_MSGMERGE
21830
21831 if test -n "$INTLTOOL_MSGMERGE"; then
21832   echo "$as_me:$LINENO: result: $INTLTOOL_MSGMERGE" >&5
21833 echo "${ECHO_T}$INTLTOOL_MSGMERGE" >&6
21834 else
21835   echo "$as_me:$LINENO: result: no" >&5
21836 echo "${ECHO_T}no" >&6
21837 fi
21838
21839 # Extract the first word of "xgettext", so it can be a program name with args.
21840 set dummy xgettext; ac_word=$2
21841 echo "$as_me:$LINENO: checking for $ac_word" >&5
21842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21843 if test "${ac_cv_path_INTLTOOL_XGETTEXT+set}" = set; then
21844   echo $ECHO_N "(cached) $ECHO_C" >&6
21845 else
21846   case $INTLTOOL_XGETTEXT in
21847   [\\/]* | ?:[\\/]*)
21848   ac_cv_path_INTLTOOL_XGETTEXT="$INTLTOOL_XGETTEXT" # Let the user override the test with a path.
21849   ;;
21850   *)
21851   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21852 for as_dir in $PATH
21853 do
21854   IFS=$as_save_IFS
21855   test -z "$as_dir" && as_dir=.
21856   for ac_exec_ext in '' $ac_executable_extensions; do
21857   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21858     ac_cv_path_INTLTOOL_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
21859     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21860     break 2
21861   fi
21862 done
21863 done
21864
21865   test -z "$ac_cv_path_INTLTOOL_XGETTEXT" && ac_cv_path_INTLTOOL_XGETTEXT="xgettext"
21866   ;;
21867 esac
21868 fi
21869 INTLTOOL_XGETTEXT=$ac_cv_path_INTLTOOL_XGETTEXT
21870
21871 if test -n "$INTLTOOL_XGETTEXT"; then
21872   echo "$as_me:$LINENO: result: $INTLTOOL_XGETTEXT" >&5
21873 echo "${ECHO_T}$INTLTOOL_XGETTEXT" >&6
21874 else
21875   echo "$as_me:$LINENO: result: no" >&5
21876 echo "${ECHO_T}no" >&6
21877 fi
21878
21879
21880
21881
21882
21883           ac_config_commands="$ac_config_commands intltool"
21884
21885
21886
21887
21888         MKINSTALLDIRS=
21889   if test -n "$ac_aux_dir"; then
21890     case "$ac_aux_dir" in
21891       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
21892       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
21893     esac
21894   fi
21895   if test -z "$MKINSTALLDIRS"; then
21896     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
21897   fi
21898   
21899
21900
21901   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
21902 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
21903     # Check whether --enable-nls or --disable-nls was given.
21904 if test "${enable_nls+set}" = set; then
21905   enableval="$enable_nls"
21906   USE_NLS=$enableval
21907 else
21908   USE_NLS=yes
21909 fi; 
21910   echo "$as_me:$LINENO: result: $USE_NLS" >&5
21911 echo "${ECHO_T}$USE_NLS" >&6
21912   
21913
21914
21915         
21916     
21917         
21918 # Prepare PATH_SEPARATOR.
21919 # The user is always right.
21920 if test "${PATH_SEPARATOR+set}" != set; then
21921   echo "#! /bin/sh" >conf$$.sh
21922   echo  "exit 0"   >>conf$$.sh
21923   chmod +x conf$$.sh
21924   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21925     PATH_SEPARATOR=';'
21926   else
21927     PATH_SEPARATOR=:
21928   fi
21929   rm -f conf$$.sh
21930 fi
21931
21932 # Find out how to test for executable files. Don't use a zero-byte file,
21933 # as systems may use methods other than mode bits to determine executability.
21934 cat >conf$$.file <<_ASEOF
21935 #! /bin/sh
21936 exit 0
21937 _ASEOF
21938 chmod +x conf$$.file
21939 if test -x conf$$.file >/dev/null 2>&1; then
21940   ac_executable_p="test -x"
21941 else
21942   ac_executable_p="test -f"
21943 fi
21944 rm -f conf$$.file
21945
21946 # Extract the first word of "msgfmt", so it can be a program name with args.
21947 set dummy msgfmt; ac_word=$2
21948 echo "$as_me:$LINENO: checking for $ac_word" >&5
21949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21950 if test "${ac_cv_path_MSGFMT+set}" = set; then
21951   echo $ECHO_N "(cached) $ECHO_C" >&6
21952 else
21953   case "$MSGFMT" in
21954   [\\/]* | ?:[\\/]*)
21955     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
21956     ;;
21957   *)
21958     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
21959     for ac_dir in $PATH; do
21960       IFS="$ac_save_IFS"
21961       test -z "$ac_dir" && ac_dir=.
21962       for ac_exec_ext in '' $ac_executable_extensions; do
21963         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
21964           if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
21965      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
21966             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
21967             break 2
21968           fi
21969         fi
21970       done
21971     done
21972     IFS="$ac_save_IFS"
21973   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
21974     ;;
21975 esac
21976 fi
21977 MSGFMT="$ac_cv_path_MSGFMT"
21978 if test "$MSGFMT" != ":"; then
21979   echo "$as_me:$LINENO: result: $MSGFMT" >&5
21980 echo "${ECHO_T}$MSGFMT" >&6
21981 else
21982   echo "$as_me:$LINENO: result: no" >&5
21983 echo "${ECHO_T}no" >&6
21984 fi
21985
21986   # Extract the first word of "gmsgfmt", so it can be a program name with args.
21987 set dummy gmsgfmt; ac_word=$2
21988 echo "$as_me:$LINENO: checking for $ac_word" >&5
21989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21990 if test "${ac_cv_path_GMSGFMT+set}" = set; then
21991   echo $ECHO_N "(cached) $ECHO_C" >&6
21992 else
21993   case $GMSGFMT in
21994   [\\/]* | ?:[\\/]*)
21995   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
21996   ;;
21997   *)
21998   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21999 for as_dir in $PATH
22000 do
22001   IFS=$as_save_IFS
22002   test -z "$as_dir" && as_dir=.
22003   for ac_exec_ext in '' $ac_executable_extensions; do
22004   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22005     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
22006     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22007     break 2
22008   fi
22009 done
22010 done
22011
22012   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
22013   ;;
22014 esac
22015 fi
22016 GMSGFMT=$ac_cv_path_GMSGFMT
22017
22018 if test -n "$GMSGFMT"; then
22019   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
22020 echo "${ECHO_T}$GMSGFMT" >&6
22021 else
22022   echo "$as_me:$LINENO: result: no" >&5
22023 echo "${ECHO_T}no" >&6
22024 fi
22025
22026
22027         
22028 # Prepare PATH_SEPARATOR.
22029 # The user is always right.
22030 if test "${PATH_SEPARATOR+set}" != set; then
22031   echo "#! /bin/sh" >conf$$.sh
22032   echo  "exit 0"   >>conf$$.sh
22033   chmod +x conf$$.sh
22034   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22035     PATH_SEPARATOR=';'
22036   else
22037     PATH_SEPARATOR=:
22038   fi
22039   rm -f conf$$.sh
22040 fi
22041
22042 # Find out how to test for executable files. Don't use a zero-byte file,
22043 # as systems may use methods other than mode bits to determine executability.
22044 cat >conf$$.file <<_ASEOF
22045 #! /bin/sh
22046 exit 0
22047 _ASEOF
22048 chmod +x conf$$.file
22049 if test -x conf$$.file >/dev/null 2>&1; then
22050   ac_executable_p="test -x"
22051 else
22052   ac_executable_p="test -f"
22053 fi
22054 rm -f conf$$.file
22055
22056 # Extract the first word of "xgettext", so it can be a program name with args.
22057 set dummy xgettext; ac_word=$2
22058 echo "$as_me:$LINENO: checking for $ac_word" >&5
22059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22060 if test "${ac_cv_path_XGETTEXT+set}" = set; then
22061   echo $ECHO_N "(cached) $ECHO_C" >&6
22062 else
22063   case "$XGETTEXT" in
22064   [\\/]* | ?:[\\/]*)
22065     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
22066     ;;
22067   *)
22068     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
22069     for ac_dir in $PATH; do
22070       IFS="$ac_save_IFS"
22071       test -z "$ac_dir" && ac_dir=.
22072       for ac_exec_ext in '' $ac_executable_extensions; do
22073         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
22074           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
22075      (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
22076             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
22077             break 2
22078           fi
22079         fi
22080       done
22081     done
22082     IFS="$ac_save_IFS"
22083   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
22084     ;;
22085 esac
22086 fi
22087 XGETTEXT="$ac_cv_path_XGETTEXT"
22088 if test "$XGETTEXT" != ":"; then
22089   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
22090 echo "${ECHO_T}$XGETTEXT" >&6
22091 else
22092   echo "$as_me:$LINENO: result: no" >&5
22093 echo "${ECHO_T}no" >&6
22094 fi
22095
22096     rm -f messages.po
22097
22098     
22099 # Prepare PATH_SEPARATOR.
22100 # The user is always right.
22101 if test "${PATH_SEPARATOR+set}" != set; then
22102   echo "#! /bin/sh" >conf$$.sh
22103   echo  "exit 0"   >>conf$$.sh
22104   chmod +x conf$$.sh
22105   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22106     PATH_SEPARATOR=';'
22107   else
22108     PATH_SEPARATOR=:
22109   fi
22110   rm -f conf$$.sh
22111 fi
22112
22113 # Find out how to test for executable files. Don't use a zero-byte file,
22114 # as systems may use methods other than mode bits to determine executability.
22115 cat >conf$$.file <<_ASEOF
22116 #! /bin/sh
22117 exit 0
22118 _ASEOF
22119 chmod +x conf$$.file
22120 if test -x conf$$.file >/dev/null 2>&1; then
22121   ac_executable_p="test -x"
22122 else
22123   ac_executable_p="test -f"
22124 fi
22125 rm -f conf$$.file
22126
22127 # Extract the first word of "msgmerge", so it can be a program name with args.
22128 set dummy msgmerge; ac_word=$2
22129 echo "$as_me:$LINENO: checking for $ac_word" >&5
22130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22131 if test "${ac_cv_path_MSGMERGE+set}" = set; then
22132   echo $ECHO_N "(cached) $ECHO_C" >&6
22133 else
22134   case "$MSGMERGE" in
22135   [\\/]* | ?:[\\/]*)
22136     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
22137     ;;
22138   *)
22139     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
22140     for ac_dir in $PATH; do
22141       IFS="$ac_save_IFS"
22142       test -z "$ac_dir" && ac_dir=.
22143       for ac_exec_ext in '' $ac_executable_extensions; do
22144         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
22145           if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
22146             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
22147             break 2
22148           fi
22149         fi
22150       done
22151     done
22152     IFS="$ac_save_IFS"
22153   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
22154     ;;
22155 esac
22156 fi
22157 MSGMERGE="$ac_cv_path_MSGMERGE"
22158 if test "$MSGMERGE" != ":"; then
22159   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
22160 echo "${ECHO_T}$MSGMERGE" >&6
22161 else
22162   echo "$as_me:$LINENO: result: no" >&5
22163 echo "${ECHO_T}no" >&6
22164 fi
22165
22166
22167       if test "$GMSGFMT" != ":"; then
22168             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
22169        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
22170       : ;
22171     else
22172       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
22173       echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
22174 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
22175       GMSGFMT=":"
22176     fi
22177   fi
22178
22179       if test "$XGETTEXT" != ":"; then
22180             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
22181        (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
22182       : ;
22183     else
22184       echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
22185 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
22186       XGETTEXT=":"
22187     fi
22188         rm -f messages.po
22189   fi
22190
22191             ac_config_commands="$ac_config_commands default-1"
22192
22193
22194
22195       if test "X$prefix" = "XNONE"; then
22196     acl_final_prefix="$ac_default_prefix"
22197   else
22198     acl_final_prefix="$prefix"
22199   fi
22200   if test "X$exec_prefix" = "XNONE"; then
22201     acl_final_exec_prefix='${prefix}'
22202   else
22203     acl_final_exec_prefix="$exec_prefix"
22204   fi
22205   acl_save_prefix="$prefix"
22206   prefix="$acl_final_prefix"
22207   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
22208   prefix="$acl_save_prefix"
22209
22210
22211 # Check whether --with-gnu-ld or --without-gnu-ld was given.
22212 if test "${with_gnu_ld+set}" = set; then
22213   withval="$with_gnu_ld"
22214   test "$withval" = no || with_gnu_ld=yes
22215 else
22216   with_gnu_ld=no
22217 fi; 
22218 # Prepare PATH_SEPARATOR.
22219 # The user is always right.
22220 if test "${PATH_SEPARATOR+set}" != set; then
22221   echo "#! /bin/sh" >conf$$.sh
22222   echo  "exit 0"   >>conf$$.sh
22223   chmod +x conf$$.sh
22224   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22225     PATH_SEPARATOR=';'
22226   else
22227     PATH_SEPARATOR=:
22228   fi
22229   rm -f conf$$.sh
22230 fi
22231 ac_prog=ld
22232 if test "$GCC" = yes; then
22233   # Check if gcc -print-prog-name=ld gives a path.
22234   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
22235 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
22236   case $host in
22237   *-*-mingw*)
22238     # gcc leaves a trailing carriage return which upsets mingw
22239     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
22240   *)
22241     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
22242   esac
22243   case $ac_prog in
22244     # Accept absolute paths.
22245     [\\/]* | [A-Za-z]:[\\/]*)
22246       re_direlt='/[^/][^/]*/\.\./'
22247       # Canonicalize the path of ld
22248       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
22249       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
22250         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
22251       done
22252       test -z "$LD" && LD="$ac_prog"
22253       ;;
22254   "")
22255     # If it fails, then pretend we aren't using GCC.
22256     ac_prog=ld
22257     ;;
22258   *)
22259     # If it is relative, then search for the first ld in PATH.
22260     with_gnu_ld=unknown
22261     ;;
22262   esac
22263 elif test "$with_gnu_ld" = yes; then
22264   echo "$as_me:$LINENO: checking for GNU ld" >&5
22265 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
22266 else
22267   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
22268 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
22269 fi
22270 if test "${acl_cv_path_LD+set}" = set; then
22271   echo $ECHO_N "(cached) $ECHO_C" >&6
22272 else
22273   if test -z "$LD"; then
22274   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
22275   for ac_dir in $PATH; do
22276     test -z "$ac_dir" && ac_dir=.
22277     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
22278       acl_cv_path_LD="$ac_dir/$ac_prog"
22279       # Check to see if the program is GNU ld.  I'd rather use --version,
22280       # but apparently some GNU ld's only accept -v.
22281       # Break only if it was the GNU/non-GNU ld that we prefer.
22282       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
22283       *GNU* | *'with BFD'*)
22284         test "$with_gnu_ld" != no && break ;;
22285       *)
22286         test "$with_gnu_ld" != yes && break ;;
22287       esac
22288     fi
22289   done
22290   IFS="$ac_save_ifs"
22291 else
22292   acl_cv_path_LD="$LD" # Let the user override the test with a path.
22293 fi
22294 fi
22295
22296 LD="$acl_cv_path_LD"
22297 if test -n "$LD"; then
22298   echo "$as_me:$LINENO: result: $LD" >&5
22299 echo "${ECHO_T}$LD" >&6
22300 else
22301   echo "$as_me:$LINENO: result: no" >&5
22302 echo "${ECHO_T}no" >&6
22303 fi
22304 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
22305 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
22306    { (exit 1); exit 1; }; }
22307 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
22308 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
22309 if test "${acl_cv_prog_gnu_ld+set}" = set; then
22310   echo $ECHO_N "(cached) $ECHO_C" >&6
22311 else
22312   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
22313 case `$LD -v 2>&1 </dev/null` in
22314 *GNU* | *'with BFD'*)
22315   acl_cv_prog_gnu_ld=yes ;;
22316 *)
22317   acl_cv_prog_gnu_ld=no ;;
22318 esac
22319 fi
22320 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
22321 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
22322 with_gnu_ld=$acl_cv_prog_gnu_ld
22323
22324
22325
22326                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
22327 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
22328 if test "${acl_cv_rpath+set}" = set; then
22329   echo $ECHO_N "(cached) $ECHO_C" >&6
22330 else
22331   
22332     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
22333     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
22334     . ./conftest.sh
22335     rm -f ./conftest.sh
22336     acl_cv_rpath=done
22337   
22338 fi
22339 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
22340 echo "${ECHO_T}$acl_cv_rpath" >&6
22341   wl="$acl_cv_wl"
22342   libext="$acl_cv_libext"
22343   shlibext="$acl_cv_shlibext"
22344   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
22345   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
22346   hardcode_direct="$acl_cv_hardcode_direct"
22347   hardcode_minus_L="$acl_cv_hardcode_minus_L"
22348     # Check whether --enable-rpath or --disable-rpath was given.
22349 if test "${enable_rpath+set}" = set; then
22350   enableval="$enable_rpath"
22351   :
22352 else
22353   enable_rpath=yes
22354 fi; 
22355
22356
22357     
22358   
22359
22360       
22361   
22362     use_additional=yes
22363   
22364   acl_save_prefix="$prefix"
22365   prefix="$acl_final_prefix"
22366   acl_save_exec_prefix="$exec_prefix"
22367   exec_prefix="$acl_final_exec_prefix"
22368   
22369     eval additional_includedir=\"$includedir\"
22370     eval additional_libdir=\"$libdir\"
22371   
22372   exec_prefix="$acl_save_exec_prefix"
22373   prefix="$acl_save_prefix"
22374
22375   
22376 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
22377 if test "${with_libiconv_prefix+set}" = set; then
22378   withval="$with_libiconv_prefix"
22379   
22380     if test "X$withval" = "Xno"; then
22381       use_additional=no
22382     else
22383       if test "X$withval" = "X"; then
22384         
22385   acl_save_prefix="$prefix"
22386   prefix="$acl_final_prefix"
22387   acl_save_exec_prefix="$exec_prefix"
22388   exec_prefix="$acl_final_exec_prefix"
22389   
22390           eval additional_includedir=\"$includedir\"
22391           eval additional_libdir=\"$libdir\"
22392         
22393   exec_prefix="$acl_save_exec_prefix"
22394   prefix="$acl_save_prefix"
22395
22396       else
22397         additional_includedir="$withval/include"
22398         additional_libdir="$withval/lib"
22399       fi
22400     fi
22401
22402 fi; 
22403       LIBICONV=
22404   LTLIBICONV=
22405   INCICONV=
22406   rpathdirs=
22407   ltrpathdirs=
22408   names_already_handled=
22409   names_next_round='iconv '
22410   while test -n "$names_next_round"; do
22411     names_this_round="$names_next_round"
22412     names_next_round=
22413     for name in $names_this_round; do
22414       already_handled=
22415       for n in $names_already_handled; do
22416         if test "$n" = "$name"; then
22417           already_handled=yes
22418           break
22419         fi
22420       done
22421       if test -z "$already_handled"; then
22422         names_already_handled="$names_already_handled $name"
22423                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
22424         eval value=\"\$HAVE_LIB$uppername\"
22425         if test -n "$value"; then
22426           if test "$value" = yes; then
22427             eval value=\"\$LIB$uppername\"
22428             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
22429             eval value=\"\$LTLIB$uppername\"
22430             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
22431           else
22432                                     :
22433           fi
22434         else
22435                               found_dir=
22436           found_la=
22437           found_so=
22438           found_a=
22439           if test $use_additional = yes; then
22440             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
22441               found_dir="$additional_libdir"
22442               found_so="$additional_libdir/lib$name.$shlibext"
22443               if test -f "$additional_libdir/lib$name.la"; then
22444                 found_la="$additional_libdir/lib$name.la"
22445               fi
22446             else
22447               if test -f "$additional_libdir/lib$name.$libext"; then
22448                 found_dir="$additional_libdir"
22449                 found_a="$additional_libdir/lib$name.$libext"
22450                 if test -f "$additional_libdir/lib$name.la"; then
22451                   found_la="$additional_libdir/lib$name.la"
22452                 fi
22453               fi
22454             fi
22455           fi
22456           if test "X$found_dir" = "X"; then
22457             for x in $LDFLAGS $LTLIBICONV; do
22458               
22459   acl_save_prefix="$prefix"
22460   prefix="$acl_final_prefix"
22461   acl_save_exec_prefix="$exec_prefix"
22462   exec_prefix="$acl_final_exec_prefix"
22463   eval x=\"$x\"
22464   exec_prefix="$acl_save_exec_prefix"
22465   prefix="$acl_save_prefix"
22466
22467               case "$x" in
22468                 -L*)
22469                   dir=`echo "X$x" | sed -e 's/^X-L//'`
22470                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
22471                     found_dir="$dir"
22472                     found_so="$dir/lib$name.$shlibext"
22473                     if test -f "$dir/lib$name.la"; then
22474                       found_la="$dir/lib$name.la"
22475                     fi
22476                   else
22477                     if test -f "$dir/lib$name.$libext"; then
22478                       found_dir="$dir"
22479                       found_a="$dir/lib$name.$libext"
22480                       if test -f "$dir/lib$name.la"; then
22481                         found_la="$dir/lib$name.la"
22482                       fi
22483                     fi
22484                   fi
22485                   ;;
22486               esac
22487               if test "X$found_dir" != "X"; then
22488                 break
22489               fi
22490             done
22491           fi
22492           if test "X$found_dir" != "X"; then
22493                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
22494             if test "X$found_so" != "X"; then
22495                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
22496                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22497               else
22498                                                                                 haveit=
22499                 for x in $ltrpathdirs; do
22500                   if test "X$x" = "X$found_dir"; then
22501                     haveit=yes
22502                     break
22503                   fi
22504                 done
22505                 if test -z "$haveit"; then
22506                   ltrpathdirs="$ltrpathdirs $found_dir"
22507                 fi
22508                                 if test "$hardcode_direct" = yes; then
22509                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22510                 else
22511                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
22512                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22513                                                             haveit=
22514                     for x in $rpathdirs; do
22515                       if test "X$x" = "X$found_dir"; then
22516                         haveit=yes
22517                         break
22518                       fi
22519                     done
22520                     if test -z "$haveit"; then
22521                       rpathdirs="$rpathdirs $found_dir"
22522                     fi
22523                   else
22524                                                                                 haveit=
22525                     for x in $LDFLAGS $LIBICONV; do
22526                       
22527   acl_save_prefix="$prefix"
22528   prefix="$acl_final_prefix"
22529   acl_save_exec_prefix="$exec_prefix"
22530   exec_prefix="$acl_final_exec_prefix"
22531   eval x=\"$x\"
22532   exec_prefix="$acl_save_exec_prefix"
22533   prefix="$acl_save_prefix"
22534
22535                       if test "X$x" = "X-L$found_dir"; then
22536                         haveit=yes
22537                         break
22538                       fi
22539                     done
22540                     if test -z "$haveit"; then
22541                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
22542                     fi
22543                     if test "$hardcode_minus_L" != no; then
22544                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22545                     else
22546                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
22547                     fi
22548                   fi
22549                 fi
22550               fi
22551             else
22552               if test "X$found_a" != "X"; then
22553                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
22554               else
22555                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
22556               fi
22557             fi
22558                         additional_includedir=
22559             case "$found_dir" in
22560               */lib | */lib/)
22561                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
22562                 additional_includedir="$basedir/include"
22563                 ;;
22564             esac
22565             if test "X$additional_includedir" != "X"; then
22566                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
22567                 haveit=
22568                 if test "X$additional_includedir" = "X/usr/local/include"; then
22569                   if test -n "$GCC"; then
22570                     case $host_os in
22571                       linux*) haveit=yes;;
22572                     esac
22573                   fi
22574                 fi
22575                 if test -z "$haveit"; then
22576                   for x in $CPPFLAGS $INCICONV; do
22577                     
22578   acl_save_prefix="$prefix"
22579   prefix="$acl_final_prefix"
22580   acl_save_exec_prefix="$exec_prefix"
22581   exec_prefix="$acl_final_exec_prefix"
22582   eval x=\"$x\"
22583   exec_prefix="$acl_save_exec_prefix"
22584   prefix="$acl_save_prefix"
22585
22586                     if test "X$x" = "X-I$additional_includedir"; then
22587                       haveit=yes
22588                       break
22589                     fi
22590                   done
22591                   if test -z "$haveit"; then
22592                     if test -d "$additional_includedir"; then
22593                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
22594                     fi
22595                   fi
22596                 fi
22597               fi
22598             fi
22599                         if test -n "$found_la"; then
22600                                                         save_libdir="$libdir"
22601               case "$found_la" in
22602                 */* | *\\*) . "$found_la" ;;
22603                 *) . "./$found_la" ;;
22604               esac
22605               libdir="$save_libdir"
22606                             for dep in $dependency_libs; do
22607                 case "$dep" in
22608                   -L*)
22609                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
22610                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
22611                       haveit=
22612                       if test "X$additional_libdir" = "X/usr/local/lib"; then
22613                         if test -n "$GCC"; then
22614                           case $host_os in
22615                             linux*) haveit=yes;;
22616                           esac
22617                         fi
22618                       fi
22619                       if test -z "$haveit"; then
22620                         haveit=
22621                         for x in $LDFLAGS $LIBICONV; do
22622                           
22623   acl_save_prefix="$prefix"
22624   prefix="$acl_final_prefix"
22625   acl_save_exec_prefix="$exec_prefix"
22626   exec_prefix="$acl_final_exec_prefix"
22627   eval x=\"$x\"
22628   exec_prefix="$acl_save_exec_prefix"
22629   prefix="$acl_save_prefix"
22630
22631                           if test "X$x" = "X-L$additional_libdir"; then
22632                             haveit=yes
22633                             break
22634                           fi
22635                         done
22636                         if test -z "$haveit"; then
22637                           if test -d "$additional_libdir"; then
22638                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
22639                           fi
22640                         fi
22641                         haveit=
22642                         for x in $LDFLAGS $LTLIBICONV; do
22643                           
22644   acl_save_prefix="$prefix"
22645   prefix="$acl_final_prefix"
22646   acl_save_exec_prefix="$exec_prefix"
22647   exec_prefix="$acl_final_exec_prefix"
22648   eval x=\"$x\"
22649   exec_prefix="$acl_save_exec_prefix"
22650   prefix="$acl_save_prefix"
22651
22652                           if test "X$x" = "X-L$additional_libdir"; then
22653                             haveit=yes
22654                             break
22655                           fi
22656                         done
22657                         if test -z "$haveit"; then
22658                           if test -d "$additional_libdir"; then
22659                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
22660                           fi
22661                         fi
22662                       fi
22663                     fi
22664                     ;;
22665                   -R*)
22666                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
22667                     if test "$enable_rpath" != no; then
22668                                                                   haveit=
22669                       for x in $rpathdirs; do
22670                         if test "X$x" = "X$dir"; then
22671                           haveit=yes
22672                           break
22673                         fi
22674                       done
22675                       if test -z "$haveit"; then
22676                         rpathdirs="$rpathdirs $dir"
22677                       fi
22678                                                                   haveit=
22679                       for x in $ltrpathdirs; do
22680                         if test "X$x" = "X$dir"; then
22681                           haveit=yes
22682                           break
22683                         fi
22684                       done
22685                       if test -z "$haveit"; then
22686                         ltrpathdirs="$ltrpathdirs $dir"
22687                       fi
22688                     fi
22689                     ;;
22690                   -l*)
22691                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
22692                     ;;
22693                   *.la)
22694                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
22695                     ;;
22696                   *)
22697                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
22698                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
22699                     ;;
22700                 esac
22701               done
22702             fi
22703           else
22704                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
22705             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
22706           fi
22707         fi
22708       fi
22709     done
22710   done
22711   if test "X$rpathdirs" != "X"; then
22712     if test -n "$hardcode_libdir_separator"; then
22713                         alldirs=
22714       for found_dir in $rpathdirs; do
22715         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
22716       done
22717             acl_save_libdir="$libdir"
22718       libdir="$alldirs"
22719       eval flag=\"$hardcode_libdir_flag_spec\"
22720       libdir="$acl_save_libdir"
22721       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
22722     else
22723             for found_dir in $rpathdirs; do
22724         acl_save_libdir="$libdir"
22725         libdir="$found_dir"
22726         eval flag=\"$hardcode_libdir_flag_spec\"
22727         libdir="$acl_save_libdir"
22728         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
22729       done
22730     fi
22731   fi
22732   if test "X$ltrpathdirs" != "X"; then
22733             for found_dir in $ltrpathdirs; do
22734       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
22735     done
22736   fi
22737
22738
22739 cat >conftest.$ac_ext <<_ACEOF
22740 /* confdefs.h.  */
22741 _ACEOF
22742 cat confdefs.h >>conftest.$ac_ext
22743 cat >>conftest.$ac_ext <<_ACEOF
22744 /* end confdefs.h.  */
22745 #include <locale.h>
22746 int
22747 main ()
22748 {
22749  extern locale_t wc_locales[]
22750   ;
22751   return 0;
22752 }
22753 _ACEOF
22754 rm -f conftest.$ac_objext
22755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22756   (eval $ac_compile) 2>conftest.er1
22757   ac_status=$?
22758   grep -v '^ *+' conftest.er1 >conftest.err
22759   rm -f conftest.er1
22760   cat conftest.err >&5
22761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22762   (exit $ac_status); } &&
22763          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22765   (eval $ac_try) 2>&5
22766   ac_status=$?
22767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22768   (exit $ac_status); }; } &&
22769          { ac_try='test -s conftest.$ac_objext'
22770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22771   (eval $ac_try) 2>&5
22772   ac_status=$?
22773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22774   (exit $ac_status); }; }; then
22775   
22776                         _nls_avail=yes
22777                         
22778     
22779   
22780   
22781   
22782
22783     
22784
22785     
22786   
22787
22788                         
22789     
22790   
22791
22792     
22793   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
22794 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
22795     # Check whether --enable-nls or --disable-nls was given.
22796 if test "${enable_nls+set}" = set; then
22797   enableval="$enable_nls"
22798   USE_NLS=$enableval
22799 else
22800   USE_NLS=yes
22801 fi; 
22802   echo "$as_me:$LINENO: result: $USE_NLS" >&5
22803 echo "${ECHO_T}$USE_NLS" >&6
22804   
22805
22806
22807   
22808   LIBINTL=
22809   LTLIBINTL=
22810   POSUB=
22811
22812     if test "$USE_NLS" = "yes"; then
22813     gt_use_preinstalled_gnugettext=no
22814     
22815                         
22816                 
22817         
22818         
22819
22820         echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
22821 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
22822 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
22823   echo $ECHO_N "(cached) $ECHO_C" >&6
22824 else
22825   cat >conftest.$ac_ext <<_ACEOF
22826 /* confdefs.h.  */
22827 _ACEOF
22828 cat confdefs.h >>conftest.$ac_ext
22829 cat >>conftest.$ac_ext <<_ACEOF
22830 /* end confdefs.h.  */
22831 #include <libintl.h>
22832 extern int _nl_msg_cat_cntr;
22833 extern int *_nl_domain_bindings;
22834 int
22835 main ()
22836 {
22837 bindtextdomain ("", "");
22838 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
22839   ;
22840   return 0;
22841 }
22842 _ACEOF
22843 rm -f conftest.$ac_objext conftest$ac_exeext
22844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22845   (eval $ac_link) 2>conftest.er1
22846   ac_status=$?
22847   grep -v '^ *+' conftest.er1 >conftest.err
22848   rm -f conftest.er1
22849   cat conftest.err >&5
22850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22851   (exit $ac_status); } &&
22852          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22854   (eval $ac_try) 2>&5
22855   ac_status=$?
22856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22857   (exit $ac_status); }; } &&
22858          { ac_try='test -s conftest$ac_exeext'
22859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22860   (eval $ac_try) 2>&5
22861   ac_status=$?
22862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22863   (exit $ac_status); }; }; then
22864   gt_cv_func_gnugettext2_libc=yes
22865 else
22866   echo "$as_me: failed program was:" >&5
22867 sed 's/^/| /' conftest.$ac_ext >&5
22868
22869 gt_cv_func_gnugettext2_libc=no
22870 fi
22871 rm -f conftest.err conftest.$ac_objext \
22872       conftest$ac_exeext conftest.$ac_ext
22873 fi
22874 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
22875 echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
22876
22877         if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
22878                     
22879             
22880     
22881       
22882
22883           am_save_CPPFLAGS="$CPPFLAGS"
22884   
22885   for element in $INCICONV; do
22886     haveit=
22887     for x in $CPPFLAGS; do
22888       
22889   acl_save_prefix="$prefix"
22890   prefix="$acl_final_prefix"
22891   acl_save_exec_prefix="$exec_prefix"
22892   exec_prefix="$acl_final_exec_prefix"
22893   eval x=\"$x\"
22894   exec_prefix="$acl_save_exec_prefix"
22895   prefix="$acl_save_prefix"
22896
22897       if test "X$x" = "X$element"; then
22898         haveit=yes
22899         break
22900       fi
22901     done
22902     if test -z "$haveit"; then
22903       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22904     fi
22905   done
22906
22907
22908   echo "$as_me:$LINENO: checking for iconv" >&5
22909 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
22910 if test "${am_cv_func_iconv+set}" = set; then
22911   echo $ECHO_N "(cached) $ECHO_C" >&6
22912 else
22913   
22914     am_cv_func_iconv="no, consider installing GNU libiconv"
22915     am_cv_lib_iconv=no
22916     cat >conftest.$ac_ext <<_ACEOF
22917 /* confdefs.h.  */
22918 _ACEOF
22919 cat confdefs.h >>conftest.$ac_ext
22920 cat >>conftest.$ac_ext <<_ACEOF
22921 /* end confdefs.h.  */
22922 #include <stdlib.h>
22923 #include <iconv.h>
22924 int
22925 main ()
22926 {
22927 iconv_t cd = iconv_open("","");
22928        iconv(cd,NULL,NULL,NULL,NULL);
22929        iconv_close(cd);
22930   ;
22931   return 0;
22932 }
22933 _ACEOF
22934 rm -f conftest.$ac_objext conftest$ac_exeext
22935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22936   (eval $ac_link) 2>conftest.er1
22937   ac_status=$?
22938   grep -v '^ *+' conftest.er1 >conftest.err
22939   rm -f conftest.er1
22940   cat conftest.err >&5
22941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22942   (exit $ac_status); } &&
22943          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22945   (eval $ac_try) 2>&5
22946   ac_status=$?
22947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22948   (exit $ac_status); }; } &&
22949          { ac_try='test -s conftest$ac_exeext'
22950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22951   (eval $ac_try) 2>&5
22952   ac_status=$?
22953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22954   (exit $ac_status); }; }; then
22955   am_cv_func_iconv=yes
22956 else
22957   echo "$as_me: failed program was:" >&5
22958 sed 's/^/| /' conftest.$ac_ext >&5
22959
22960 fi
22961 rm -f conftest.err conftest.$ac_objext \
22962       conftest$ac_exeext conftest.$ac_ext
22963     if test "$am_cv_func_iconv" != yes; then
22964       am_save_LIBS="$LIBS"
22965       LIBS="$LIBS $LIBICONV"
22966       cat >conftest.$ac_ext <<_ACEOF
22967 /* confdefs.h.  */
22968 _ACEOF
22969 cat confdefs.h >>conftest.$ac_ext
22970 cat >>conftest.$ac_ext <<_ACEOF
22971 /* end confdefs.h.  */
22972 #include <stdlib.h>
22973 #include <iconv.h>
22974 int
22975 main ()
22976 {
22977 iconv_t cd = iconv_open("","");
22978          iconv(cd,NULL,NULL,NULL,NULL);
22979          iconv_close(cd);
22980   ;
22981   return 0;
22982 }
22983 _ACEOF
22984 rm -f conftest.$ac_objext conftest$ac_exeext
22985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22986   (eval $ac_link) 2>conftest.er1
22987   ac_status=$?
22988   grep -v '^ *+' conftest.er1 >conftest.err
22989   rm -f conftest.er1
22990   cat conftest.err >&5
22991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22992   (exit $ac_status); } &&
22993          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22995   (eval $ac_try) 2>&5
22996   ac_status=$?
22997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22998   (exit $ac_status); }; } &&
22999          { ac_try='test -s conftest$ac_exeext'
23000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23001   (eval $ac_try) 2>&5
23002   ac_status=$?
23003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23004   (exit $ac_status); }; }; then
23005   am_cv_lib_iconv=yes
23006         am_cv_func_iconv=yes
23007 else
23008   echo "$as_me: failed program was:" >&5
23009 sed 's/^/| /' conftest.$ac_ext >&5
23010
23011 fi
23012 rm -f conftest.err conftest.$ac_objext \
23013       conftest$ac_exeext conftest.$ac_ext
23014       LIBS="$am_save_LIBS"
23015     fi
23016   
23017 fi
23018 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
23019 echo "${ECHO_T}$am_cv_func_iconv" >&6
23020   if test "$am_cv_func_iconv" = yes; then
23021     
23022 cat >>confdefs.h <<\_ACEOF
23023 @%:@define HAVE_ICONV 1
23024 _ACEOF
23025
23026   fi
23027   if test "$am_cv_lib_iconv" = yes; then
23028     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
23029 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
23030     echo "$as_me:$LINENO: result: $LIBICONV" >&5
23031 echo "${ECHO_T}$LIBICONV" >&6
23032   else
23033             CPPFLAGS="$am_save_CPPFLAGS"
23034     LIBICONV=
23035     LTLIBICONV=
23036   fi
23037   
23038   
23039
23040           
23041                                                   
23042   
23043     use_additional=yes
23044   
23045   acl_save_prefix="$prefix"
23046   prefix="$acl_final_prefix"
23047   acl_save_exec_prefix="$exec_prefix"
23048   exec_prefix="$acl_final_exec_prefix"
23049   
23050     eval additional_includedir=\"$includedir\"
23051     eval additional_libdir=\"$libdir\"
23052   
23053   exec_prefix="$acl_save_exec_prefix"
23054   prefix="$acl_save_prefix"
23055
23056   
23057 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
23058 if test "${with_libintl_prefix+set}" = set; then
23059   withval="$with_libintl_prefix"
23060   
23061     if test "X$withval" = "Xno"; then
23062       use_additional=no
23063     else
23064       if test "X$withval" = "X"; then
23065         
23066   acl_save_prefix="$prefix"
23067   prefix="$acl_final_prefix"
23068   acl_save_exec_prefix="$exec_prefix"
23069   exec_prefix="$acl_final_exec_prefix"
23070   
23071           eval additional_includedir=\"$includedir\"
23072           eval additional_libdir=\"$libdir\"
23073         
23074   exec_prefix="$acl_save_exec_prefix"
23075   prefix="$acl_save_prefix"
23076
23077       else
23078         additional_includedir="$withval/include"
23079         additional_libdir="$withval/lib"
23080       fi
23081     fi
23082
23083 fi; 
23084       LIBINTL=
23085   LTLIBINTL=
23086   INCINTL=
23087   rpathdirs=
23088   ltrpathdirs=
23089   names_already_handled=
23090   names_next_round='intl '
23091   while test -n "$names_next_round"; do
23092     names_this_round="$names_next_round"
23093     names_next_round=
23094     for name in $names_this_round; do
23095       already_handled=
23096       for n in $names_already_handled; do
23097         if test "$n" = "$name"; then
23098           already_handled=yes
23099           break
23100         fi
23101       done
23102       if test -z "$already_handled"; then
23103         names_already_handled="$names_already_handled $name"
23104                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23105         eval value=\"\$HAVE_LIB$uppername\"
23106         if test -n "$value"; then
23107           if test "$value" = yes; then
23108             eval value=\"\$LIB$uppername\"
23109             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23110             eval value=\"\$LTLIB$uppername\"
23111             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23112           else
23113                                     :
23114           fi
23115         else
23116                               found_dir=
23117           found_la=
23118           found_so=
23119           found_a=
23120           if test $use_additional = yes; then
23121             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23122               found_dir="$additional_libdir"
23123               found_so="$additional_libdir/lib$name.$shlibext"
23124               if test -f "$additional_libdir/lib$name.la"; then
23125                 found_la="$additional_libdir/lib$name.la"
23126               fi
23127             else
23128               if test -f "$additional_libdir/lib$name.$libext"; then
23129                 found_dir="$additional_libdir"
23130                 found_a="$additional_libdir/lib$name.$libext"
23131                 if test -f "$additional_libdir/lib$name.la"; then
23132                   found_la="$additional_libdir/lib$name.la"
23133                 fi
23134               fi
23135             fi
23136           fi
23137           if test "X$found_dir" = "X"; then
23138             for x in $LDFLAGS $LTLIBINTL; do
23139               
23140   acl_save_prefix="$prefix"
23141   prefix="$acl_final_prefix"
23142   acl_save_exec_prefix="$exec_prefix"
23143   exec_prefix="$acl_final_exec_prefix"
23144   eval x=\"$x\"
23145   exec_prefix="$acl_save_exec_prefix"
23146   prefix="$acl_save_prefix"
23147
23148               case "$x" in
23149                 -L*)
23150                   dir=`echo "X$x" | sed -e 's/^X-L//'`
23151                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23152                     found_dir="$dir"
23153                     found_so="$dir/lib$name.$shlibext"
23154                     if test -f "$dir/lib$name.la"; then
23155                       found_la="$dir/lib$name.la"
23156                     fi
23157                   else
23158                     if test -f "$dir/lib$name.$libext"; then
23159                       found_dir="$dir"
23160                       found_a="$dir/lib$name.$libext"
23161                       if test -f "$dir/lib$name.la"; then
23162                         found_la="$dir/lib$name.la"
23163                       fi
23164                     fi
23165                   fi
23166                   ;;
23167               esac
23168               if test "X$found_dir" != "X"; then
23169                 break
23170               fi
23171             done
23172           fi
23173           if test "X$found_dir" != "X"; then
23174                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
23175             if test "X$found_so" != "X"; then
23176                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
23177                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23178               else
23179                                                                                 haveit=
23180                 for x in $ltrpathdirs; do
23181                   if test "X$x" = "X$found_dir"; then
23182                     haveit=yes
23183                     break
23184                   fi
23185                 done
23186                 if test -z "$haveit"; then
23187                   ltrpathdirs="$ltrpathdirs $found_dir"
23188                 fi
23189                                 if test "$hardcode_direct" = yes; then
23190                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23191                 else
23192                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
23193                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23194                                                             haveit=
23195                     for x in $rpathdirs; do
23196                       if test "X$x" = "X$found_dir"; then
23197                         haveit=yes
23198                         break
23199                       fi
23200                     done
23201                     if test -z "$haveit"; then
23202                       rpathdirs="$rpathdirs $found_dir"
23203                     fi
23204                   else
23205                                                                                 haveit=
23206                     for x in $LDFLAGS $LIBINTL; do
23207                       
23208   acl_save_prefix="$prefix"
23209   prefix="$acl_final_prefix"
23210   acl_save_exec_prefix="$exec_prefix"
23211   exec_prefix="$acl_final_exec_prefix"
23212   eval x=\"$x\"
23213   exec_prefix="$acl_save_exec_prefix"
23214   prefix="$acl_save_prefix"
23215
23216                       if test "X$x" = "X-L$found_dir"; then
23217                         haveit=yes
23218                         break
23219                       fi
23220                     done
23221                     if test -z "$haveit"; then
23222                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
23223                     fi
23224                     if test "$hardcode_minus_L" != no; then
23225                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23226                     else
23227                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23228                     fi
23229                   fi
23230                 fi
23231               fi
23232             else
23233               if test "X$found_a" != "X"; then
23234                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
23235               else
23236                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
23237               fi
23238             fi
23239                         additional_includedir=
23240             case "$found_dir" in
23241               */lib | */lib/)
23242                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
23243                 additional_includedir="$basedir/include"
23244                 ;;
23245             esac
23246             if test "X$additional_includedir" != "X"; then
23247                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
23248                 haveit=
23249                 if test "X$additional_includedir" = "X/usr/local/include"; then
23250                   if test -n "$GCC"; then
23251                     case $host_os in
23252                       linux*) haveit=yes;;
23253                     esac
23254                   fi
23255                 fi
23256                 if test -z "$haveit"; then
23257                   for x in $CPPFLAGS $INCINTL; do
23258                     
23259   acl_save_prefix="$prefix"
23260   prefix="$acl_final_prefix"
23261   acl_save_exec_prefix="$exec_prefix"
23262   exec_prefix="$acl_final_exec_prefix"
23263   eval x=\"$x\"
23264   exec_prefix="$acl_save_exec_prefix"
23265   prefix="$acl_save_prefix"
23266
23267                     if test "X$x" = "X-I$additional_includedir"; then
23268                       haveit=yes
23269                       break
23270                     fi
23271                   done
23272                   if test -z "$haveit"; then
23273                     if test -d "$additional_includedir"; then
23274                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
23275                     fi
23276                   fi
23277                 fi
23278               fi
23279             fi
23280                         if test -n "$found_la"; then
23281                                                         save_libdir="$libdir"
23282               case "$found_la" in
23283                 */* | *\\*) . "$found_la" ;;
23284                 *) . "./$found_la" ;;
23285               esac
23286               libdir="$save_libdir"
23287                             for dep in $dependency_libs; do
23288                 case "$dep" in
23289                   -L*)
23290                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23291                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
23292                       haveit=
23293                       if test "X$additional_libdir" = "X/usr/local/lib"; then
23294                         if test -n "$GCC"; then
23295                           case $host_os in
23296                             linux*) haveit=yes;;
23297                           esac
23298                         fi
23299                       fi
23300                       if test -z "$haveit"; then
23301                         haveit=
23302                         for x in $LDFLAGS $LIBINTL; do
23303                           
23304   acl_save_prefix="$prefix"
23305   prefix="$acl_final_prefix"
23306   acl_save_exec_prefix="$exec_prefix"
23307   exec_prefix="$acl_final_exec_prefix"
23308   eval x=\"$x\"
23309   exec_prefix="$acl_save_exec_prefix"
23310   prefix="$acl_save_prefix"
23311
23312                           if test "X$x" = "X-L$additional_libdir"; then
23313                             haveit=yes
23314                             break
23315                           fi
23316                         done
23317                         if test -z "$haveit"; then
23318                           if test -d "$additional_libdir"; then
23319                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
23320                           fi
23321                         fi
23322                         haveit=
23323                         for x in $LDFLAGS $LTLIBINTL; do
23324                           
23325   acl_save_prefix="$prefix"
23326   prefix="$acl_final_prefix"
23327   acl_save_exec_prefix="$exec_prefix"
23328   exec_prefix="$acl_final_exec_prefix"
23329   eval x=\"$x\"
23330   exec_prefix="$acl_save_exec_prefix"
23331   prefix="$acl_save_prefix"
23332
23333                           if test "X$x" = "X-L$additional_libdir"; then
23334                             haveit=yes
23335                             break
23336                           fi
23337                         done
23338                         if test -z "$haveit"; then
23339                           if test -d "$additional_libdir"; then
23340                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
23341                           fi
23342                         fi
23343                       fi
23344                     fi
23345                     ;;
23346                   -R*)
23347                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
23348                     if test "$enable_rpath" != no; then
23349                                                                   haveit=
23350                       for x in $rpathdirs; do
23351                         if test "X$x" = "X$dir"; then
23352                           haveit=yes
23353                           break
23354                         fi
23355                       done
23356                       if test -z "$haveit"; then
23357                         rpathdirs="$rpathdirs $dir"
23358                       fi
23359                                                                   haveit=
23360                       for x in $ltrpathdirs; do
23361                         if test "X$x" = "X$dir"; then
23362                           haveit=yes
23363                           break
23364                         fi
23365                       done
23366                       if test -z "$haveit"; then
23367                         ltrpathdirs="$ltrpathdirs $dir"
23368                       fi
23369                     fi
23370                     ;;
23371                   -l*)
23372                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23373                     ;;
23374                   *.la)
23375                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23376                     ;;
23377                   *)
23378                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
23379                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
23380                     ;;
23381                 esac
23382               done
23383             fi
23384           else
23385                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23386             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
23387           fi
23388         fi
23389       fi
23390     done
23391   done
23392   if test "X$rpathdirs" != "X"; then
23393     if test -n "$hardcode_libdir_separator"; then
23394                         alldirs=
23395       for found_dir in $rpathdirs; do
23396         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23397       done
23398             acl_save_libdir="$libdir"
23399       libdir="$alldirs"
23400       eval flag=\"$hardcode_libdir_flag_spec\"
23401       libdir="$acl_save_libdir"
23402       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23403     else
23404             for found_dir in $rpathdirs; do
23405         acl_save_libdir="$libdir"
23406         libdir="$found_dir"
23407         eval flag=\"$hardcode_libdir_flag_spec\"
23408         libdir="$acl_save_libdir"
23409         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23410       done
23411     fi
23412   fi
23413   if test "X$ltrpathdirs" != "X"; then
23414             for found_dir in $ltrpathdirs; do
23415       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
23416     done
23417   fi
23418
23419           echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
23420 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
23421 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
23422   echo $ECHO_N "(cached) $ECHO_C" >&6
23423 else
23424   gt_save_CPPFLAGS="$CPPFLAGS"
23425             CPPFLAGS="$CPPFLAGS $INCINTL"
23426             gt_save_LIBS="$LIBS"
23427             LIBS="$LIBS $LIBINTL"
23428                         cat >conftest.$ac_ext <<_ACEOF
23429 /* confdefs.h.  */
23430 _ACEOF
23431 cat confdefs.h >>conftest.$ac_ext
23432 cat >>conftest.$ac_ext <<_ACEOF
23433 /* end confdefs.h.  */
23434 #include <libintl.h>
23435 extern int _nl_msg_cat_cntr;
23436 extern
23437 #ifdef __cplusplus
23438 "C"
23439 #endif
23440 const char *_nl_expand_alias ();
23441 int
23442 main ()
23443 {
23444 bindtextdomain ("", "");
23445 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
23446   ;
23447   return 0;
23448 }
23449 _ACEOF
23450 rm -f conftest.$ac_objext conftest$ac_exeext
23451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23452   (eval $ac_link) 2>conftest.er1
23453   ac_status=$?
23454   grep -v '^ *+' conftest.er1 >conftest.err
23455   rm -f conftest.er1
23456   cat conftest.err >&5
23457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23458   (exit $ac_status); } &&
23459          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23461   (eval $ac_try) 2>&5
23462   ac_status=$?
23463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23464   (exit $ac_status); }; } &&
23465          { ac_try='test -s conftest$ac_exeext'
23466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23467   (eval $ac_try) 2>&5
23468   ac_status=$?
23469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23470   (exit $ac_status); }; }; then
23471   gt_cv_func_gnugettext2_libintl=yes
23472 else
23473   echo "$as_me: failed program was:" >&5
23474 sed 's/^/| /' conftest.$ac_ext >&5
23475
23476 gt_cv_func_gnugettext2_libintl=no
23477 fi
23478 rm -f conftest.err conftest.$ac_objext \
23479       conftest$ac_exeext conftest.$ac_ext
23480                         if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
23481               LIBS="$LIBS $LIBICONV"
23482               cat >conftest.$ac_ext <<_ACEOF
23483 /* confdefs.h.  */
23484 _ACEOF
23485 cat confdefs.h >>conftest.$ac_ext
23486 cat >>conftest.$ac_ext <<_ACEOF
23487 /* end confdefs.h.  */
23488 #include <libintl.h>
23489 extern int _nl_msg_cat_cntr;
23490 extern
23491 #ifdef __cplusplus
23492 "C"
23493 #endif
23494 const char *_nl_expand_alias ();
23495 int
23496 main ()
23497 {
23498 bindtextdomain ("", "");
23499 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
23500   ;
23501   return 0;
23502 }
23503 _ACEOF
23504 rm -f conftest.$ac_objext conftest$ac_exeext
23505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23506   (eval $ac_link) 2>conftest.er1
23507   ac_status=$?
23508   grep -v '^ *+' conftest.er1 >conftest.err
23509   rm -f conftest.er1
23510   cat conftest.err >&5
23511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23512   (exit $ac_status); } &&
23513          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23515   (eval $ac_try) 2>&5
23516   ac_status=$?
23517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23518   (exit $ac_status); }; } &&
23519          { ac_try='test -s conftest$ac_exeext'
23520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23521   (eval $ac_try) 2>&5
23522   ac_status=$?
23523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23524   (exit $ac_status); }; }; then
23525   LIBINTL="$LIBINTL $LIBICONV"
23526                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
23527                 gt_cv_func_gnugettext2_libintl=yes
23528                
23529 else
23530   echo "$as_me: failed program was:" >&5
23531 sed 's/^/| /' conftest.$ac_ext >&5
23532
23533 fi
23534 rm -f conftest.err conftest.$ac_objext \
23535       conftest$ac_exeext conftest.$ac_ext
23536             fi
23537             CPPFLAGS="$gt_save_CPPFLAGS"
23538             LIBS="$gt_save_LIBS"
23539 fi
23540 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
23541 echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
23542         fi
23543
23544                                         if test "$gt_cv_func_gnugettext2_libc" = "yes" \
23545            || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
23546                 && test "$PACKAGE" != gettext-runtime \
23547                 && test "$PACKAGE" != gettext-tools; }; then
23548           gt_use_preinstalled_gnugettext=yes
23549         else
23550                     LIBINTL=
23551           LTLIBINTL=
23552           INCINTL=
23553         fi
23554
23555     
23556
23557     if test "$gt_use_preinstalled_gnugettext" = "yes" \
23558        || test "$nls_cv_use_gnu_gettext" = "yes"; then
23559       
23560 cat >>confdefs.h <<\_ACEOF
23561 @%:@define ENABLE_NLS 1
23562 _ACEOF
23563
23564     else
23565       USE_NLS=no
23566     fi
23567   fi
23568
23569   echo "$as_me:$LINENO: checking whether to use NLS" >&5
23570 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
23571   echo "$as_me:$LINENO: result: $USE_NLS" >&5
23572 echo "${ECHO_T}$USE_NLS" >&6
23573   if test "$USE_NLS" = "yes"; then
23574     echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
23575 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
23576     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23577       if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
23578         gt_source="external libintl"
23579       else
23580         gt_source="libc"
23581       fi
23582     else
23583       gt_source="included intl directory"
23584     fi
23585     echo "$as_me:$LINENO: result: $gt_source" >&5
23586 echo "${ECHO_T}$gt_source" >&6
23587   fi
23588
23589   if test "$USE_NLS" = "yes"; then
23590
23591     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23592       if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
23593         echo "$as_me:$LINENO: checking how to link with libintl" >&5
23594 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
23595         echo "$as_me:$LINENO: result: $LIBINTL" >&5
23596 echo "${ECHO_T}$LIBINTL" >&6
23597         
23598   for element in $INCINTL; do
23599     haveit=
23600     for x in $CPPFLAGS; do
23601       
23602   acl_save_prefix="$prefix"
23603   prefix="$acl_final_prefix"
23604   acl_save_exec_prefix="$exec_prefix"
23605   exec_prefix="$acl_final_exec_prefix"
23606   eval x=\"$x\"
23607   exec_prefix="$acl_save_exec_prefix"
23608   prefix="$acl_save_prefix"
23609
23610       if test "X$x" = "X$element"; then
23611         haveit=yes
23612         break
23613       fi
23614     done
23615     if test -z "$haveit"; then
23616       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23617     fi
23618   done
23619
23620       fi
23621
23622             
23623 cat >>confdefs.h <<\_ACEOF
23624 @%:@define HAVE_GETTEXT 1
23625 _ACEOF
23626
23627       
23628 cat >>confdefs.h <<\_ACEOF
23629 @%:@define HAVE_DCGETTEXT 1
23630 _ACEOF
23631
23632     fi
23633
23634         POSUB=po
23635   fi
23636
23637   
23638
23639     INTLLIBS="$LIBINTL"
23640   
23641
23642     
23643   
23644   
23645
23646                         
23647 else
23648   echo "$as_me: failed program was:" >&5
23649 sed 's/^/| /' conftest.$ac_ext >&5
23650
23651 _nls_avail=no
23652 fi
23653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23654
23655
23656
23657
23658                         
23659
23660
23661
23662
23663
23664
23665
23666
23667
23668 # Check whether --with-rundir or --without-rundir was given.
23669 if test "${with_rundir+set}" = set; then
23670   withval="$with_rundir"
23671    rundir=$withval 
23672 else
23673    rundir=/usr/local/citadel  
23674 fi; 
23675
23676 cat >>confdefs.h <<_ACEOF
23677 @%:@define RUNDIR "$rundir"
23678 _ACEOF
23679
23680
23681
23682
23683 # Check whether --with-staticdir or --without-staticdir was given.
23684 if test "${with_staticdir+set}" = set; then
23685   withval="$with_staticdir"
23686    staticdir=$withval 
23687 else
23688    staticdir=$prefix  
23689 fi; 
23690
23691
23692
23693 # Check whether --with-staticrundir or --without-staticrundir was given.
23694 if test "${with_staticrundir+set}" = set; then
23695   withval="$with_staticrundir"
23696    staticrundir=$withval 
23697 else
23698    staticrundir=$staticdir  
23699 fi; 
23700
23701
23702 cat >>confdefs.h <<_ACEOF
23703 @%:@define DATADIR "$staticrundir"
23704 _ACEOF
23705
23706
23707
23708
23709 # Check whether --with-editordir or --without-editordir was given.
23710 if test "${with_editordir+set}" = set; then
23711   withval="$with_editordir"
23712    editordir=$withval 
23713 else
23714    editordir=$staticrundir  
23715 fi; 
23716
23717
23718 cat >>confdefs.h <<_ACEOF
23719 @%:@define EDITORDIR "$editordir"
23720 _ACEOF
23721
23722
23723
23724
23725                               ac_config_files="$ac_config_files Makefile src/Makefile po/Makefile.in"
23726 cat >confcache <<\_ACEOF
23727 # This file is a shell script that caches the results of configure
23728 # tests run on this system so they can be shared between configure
23729 # scripts and configure runs, see configure's option --config-cache.
23730 # It is not useful on other systems.  If it contains results you don't
23731 # want to keep, you may remove or edit it.
23732 #
23733 # config.status only pays attention to the cache file if you give it
23734 # the --recheck option to rerun configure.
23735 #
23736 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23737 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23738 # following values.
23739
23740 _ACEOF
23741
23742 # The following way of writing the cache mishandles newlines in values,
23743 # but we know of no workaround that is simple, portable, and efficient.
23744 # So, don't put newlines in cache variables' values.
23745 # Ultrix sh set writes to stderr and can't be redirected directly,
23746 # and sets the high bit in the cache file unless we assign to the vars.
23747 {
23748   (set) 2>&1 |
23749     case `(ac_space=' '; set | grep ac_space) 2>&1` in
23750     *ac_space=\ *)
23751       # `set' does not quote correctly, so add quotes (double-quote
23752       # substitution turns \\\\ into \\, and sed turns \\ into \).
23753       sed -n \
23754         "s/'/'\\\\''/g;
23755           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23756       ;;
23757     *)
23758       # `set' quotes correctly as required by POSIX, so do not add quotes.
23759       sed -n \
23760         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23761       ;;
23762     esac;
23763 } |
23764   sed '
23765      t clear
23766      : clear
23767      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23768      t end
23769      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23770      : end' >>confcache
23771 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23772   if test -w $cache_file; then
23773     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23774     cat confcache >$cache_file
23775   else
23776     echo "not updating unwritable cache $cache_file"
23777   fi
23778 fi
23779 rm -f confcache
23780
23781 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23782 # Let make expand exec_prefix.
23783 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23784
23785 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23786 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23787 # trailing colons and then remove the whole line if VPATH becomes empty
23788 # (actually we leave an empty line to preserve line numbers).
23789 if test "x$srcdir" = x.; then
23790   ac_vpsub='/^[  ]*VPATH[        ]*=/{
23791 s/:*\$(srcdir):*/:/;
23792 s/:*\${srcdir}:*/:/;
23793 s/:*@srcdir@:*/:/;
23794 s/^\([^=]*=[     ]*\):*/\1/;
23795 s/:*$//;
23796 s/^[^=]*=[       ]*$//;
23797 }'
23798 fi
23799
23800 DEFS=-DHAVE_CONFIG_H
23801
23802 ac_libobjs=
23803 ac_ltlibobjs=
23804 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
23805   # 1. Remove the extension, and $U if already installed.
23806   ac_i=`echo "$ac_i" |
23807          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23808   # 2. Add them.
23809   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23810   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23811 done
23812 LIB@&t@OBJS=$ac_libobjs
23813
23814 LTLIBOBJS=$ac_ltlibobjs
23815
23816
23817 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23818   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23819 Usually this means the macro was only invoked conditionally." >&5
23820 echo "$as_me: error: conditional \"AMDEP\" was never defined.
23821 Usually this means the macro was only invoked conditionally." >&2;}
23822    { (exit 1); exit 1; }; }
23823 fi
23824 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23825   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23826 Usually this means the macro was only invoked conditionally." >&5
23827 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23828 Usually this means the macro was only invoked conditionally." >&2;}
23829    { (exit 1); exit 1; }; }
23830 fi
23831 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23832   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23833 Usually this means the macro was only invoked conditionally." >&5
23834 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23835 Usually this means the macro was only invoked conditionally." >&2;}
23836    { (exit 1); exit 1; }; }
23837 fi
23838 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23839   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23840 Usually this means the macro was only invoked conditionally." >&5
23841 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23842 Usually this means the macro was only invoked conditionally." >&2;}
23843    { (exit 1); exit 1; }; }
23844 fi
23845
23846             ac_config_commands="$ac_config_commands po/stamp-it"
23847
23848
23849
23850 : ${CONFIG_STATUS=./config.status}
23851 ac_clean_files_save=$ac_clean_files
23852 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23853 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23854 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23855 cat >$CONFIG_STATUS <<_ACEOF
23856 #! $SHELL
23857 # Generated by $as_me.
23858 # Run this file to recreate the current configuration.
23859 # Compiler output produced by configure, useful for debugging
23860 # configure, is in config.log if it exists.
23861
23862 debug=false
23863 ac_cs_recheck=false
23864 ac_cs_silent=false
23865 SHELL=\${CONFIG_SHELL-$SHELL}
23866 _ACEOF
23867
23868 cat >>$CONFIG_STATUS <<\_ACEOF
23869 ## --------------------- ##
23870 ## M4sh Initialization.  ##
23871 ## --------------------- ##
23872
23873 # Be Bourne compatible
23874 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23875   emulate sh
23876   NULLCMD=:
23877   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23878   # is contrary to our usage.  Disable this feature.
23879   alias -g '${1+"$@"}'='"$@"'
23880 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23881   set -o posix
23882 fi
23883 DUALCASE=1; export DUALCASE # for MKS sh
23884
23885 # Support unset when possible.
23886 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23887   as_unset=unset
23888 else
23889   as_unset=false
23890 fi
23891
23892
23893 # Work around bugs in pre-3.0 UWIN ksh.
23894 $as_unset ENV MAIL MAILPATH
23895 PS1='$ '
23896 PS2='> '
23897 PS4='+ '
23898
23899 # NLS nuisances.
23900 for as_var in \
23901   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23902   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23903   LC_TELEPHONE LC_TIME
23904 do
23905   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23906     eval $as_var=C; export $as_var
23907   else
23908     $as_unset $as_var
23909   fi
23910 done
23911
23912 # Required to use basename.
23913 if expr a : '\(a\)' >/dev/null 2>&1; then
23914   as_expr=expr
23915 else
23916   as_expr=false
23917 fi
23918
23919 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23920   as_basename=basename
23921 else
23922   as_basename=false
23923 fi
23924
23925
23926 # Name of the executable.
23927 as_me=`$as_basename "$0" ||
23928 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23929          X"$0" : 'X\(//\)$' \| \
23930          X"$0" : 'X\(/\)$' \| \
23931          .     : '\(.\)' 2>/dev/null ||
23932 echo X/"$0" |
23933     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23934           /^X\/\(\/\/\)$/{ s//\1/; q; }
23935           /^X\/\(\/\).*/{ s//\1/; q; }
23936           s/.*/./; q'`
23937
23938
23939 # PATH needs CR, and LINENO needs CR and PATH.
23940 # Avoid depending upon Character Ranges.
23941 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23942 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23943 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23944 as_cr_digits='0123456789'
23945 as_cr_alnum=$as_cr_Letters$as_cr_digits
23946
23947 # The user is always right.
23948 if test "${PATH_SEPARATOR+set}" != set; then
23949   echo "#! /bin/sh" >conf$$.sh
23950   echo  "exit 0"   >>conf$$.sh
23951   chmod +x conf$$.sh
23952   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23953     PATH_SEPARATOR=';'
23954   else
23955     PATH_SEPARATOR=:
23956   fi
23957   rm -f conf$$.sh
23958 fi
23959
23960
23961   as_lineno_1=$LINENO
23962   as_lineno_2=$LINENO
23963   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23964   test "x$as_lineno_1" != "x$as_lineno_2" &&
23965   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
23966   # Find who we are.  Look in the path if we contain no path at all
23967   # relative or not.
23968   case $0 in
23969     *[\\/]* ) as_myself=$0 ;;
23970     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23971 for as_dir in $PATH
23972 do
23973   IFS=$as_save_IFS
23974   test -z "$as_dir" && as_dir=.
23975   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23976 done
23977
23978        ;;
23979   esac
23980   # We did not find ourselves, most probably we were run as `sh COMMAND'
23981   # in which case we are not to be found in the path.
23982   if test "x$as_myself" = x; then
23983     as_myself=$0
23984   fi
23985   if test ! -f "$as_myself"; then
23986     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23987 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23988    { (exit 1); exit 1; }; }
23989   fi
23990   case $CONFIG_SHELL in
23991   '')
23992     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23993 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23994 do
23995   IFS=$as_save_IFS
23996   test -z "$as_dir" && as_dir=.
23997   for as_base in sh bash ksh sh5; do
23998          case $as_dir in
23999          /*)
24000            if ("$as_dir/$as_base" -c '
24001   as_lineno_1=$LINENO
24002   as_lineno_2=$LINENO
24003   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24004   test "x$as_lineno_1" != "x$as_lineno_2" &&
24005   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
24006              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24007              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24008              CONFIG_SHELL=$as_dir/$as_base
24009              export CONFIG_SHELL
24010              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24011            fi;;
24012          esac
24013        done
24014 done
24015 ;;
24016   esac
24017
24018   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24019   # uniformly replaced by the line number.  The first 'sed' inserts a
24020   # line-number line before each line; the second 'sed' does the real
24021   # work.  The second script uses 'N' to pair each line-number line
24022   # with the numbered line, and appends trailing '-' during
24023   # substitution so that $LINENO is not a special case at line end.
24024   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24025   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
24026   sed '=' <$as_myself |
24027     sed '
24028       N
24029       s,$,-,
24030       : loop
24031       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24032       t loop
24033       s,-$,,
24034       s,^['$as_cr_digits']*\n,,
24035     ' >$as_me.lineno &&
24036   chmod +x $as_me.lineno ||
24037     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24038 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24039    { (exit 1); exit 1; }; }
24040
24041   # Don't try to exec as it changes $[0], causing all sort of problems
24042   # (the dirname of $[0] is not the place where we might find the
24043   # original and so on.  Autoconf is especially sensible to this).
24044   . ./$as_me.lineno
24045   # Exit status is that of the last command.
24046   exit
24047 }
24048
24049
24050 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24051   *c*,-n*) ECHO_N= ECHO_C='
24052 ' ECHO_T='      ' ;;
24053   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24054   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
24055 esac
24056
24057 if expr a : '\(a\)' >/dev/null 2>&1; then
24058   as_expr=expr
24059 else
24060   as_expr=false
24061 fi
24062
24063 rm -f conf$$ conf$$.exe conf$$.file
24064 echo >conf$$.file
24065 if ln -s conf$$.file conf$$ 2>/dev/null; then
24066   # We could just check for DJGPP; but this test a) works b) is more generic
24067   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24068   if test -f conf$$.exe; then
24069     # Don't use ln at all; we don't have any links
24070     as_ln_s='cp -p'
24071   else
24072     as_ln_s='ln -s'
24073   fi
24074 elif ln conf$$.file conf$$ 2>/dev/null; then
24075   as_ln_s=ln
24076 else
24077   as_ln_s='cp -p'
24078 fi
24079 rm -f conf$$ conf$$.exe conf$$.file
24080
24081 if mkdir -p . 2>/dev/null; then
24082   as_mkdir_p=:
24083 else
24084   test -d ./-p && rmdir ./-p
24085   as_mkdir_p=false
24086 fi
24087
24088 as_executable_p="test -f"
24089
24090 # Sed expression to map a string onto a valid CPP name.
24091 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24092
24093 # Sed expression to map a string onto a valid variable name.
24094 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24095
24096
24097 # IFS
24098 # We need space, tab and new line, in precisely that order.
24099 as_nl='
24100 '
24101 IFS="   $as_nl"
24102
24103 # CDPATH.
24104 $as_unset CDPATH
24105
24106 exec 6>&1
24107
24108 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24109 # report actual input values of CONFIG_FILES etc. instead of their
24110 # values after options handling.  Logging --version etc. is OK.
24111 exec 5>>config.log
24112 {
24113   echo
24114   sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
24115 @%:@@%:@ Running $as_me. @%:@@%:@
24116 _ASBOX
24117 } >&5
24118 cat >&5 <<_CSEOF
24119
24120 This file was extended by webcit $as_me 6.80, which was
24121 generated by GNU Autoconf 2.59.  Invocation command line was
24122
24123   CONFIG_FILES    = $CONFIG_FILES
24124   CONFIG_HEADERS  = $CONFIG_HEADERS
24125   CONFIG_LINKS    = $CONFIG_LINKS
24126   CONFIG_COMMANDS = $CONFIG_COMMANDS
24127   $ $0 $@
24128
24129 _CSEOF
24130 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24131 echo >&5
24132 _ACEOF
24133
24134 # Files that config.status was made for.
24135 if test -n "$ac_config_files"; then
24136   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24137 fi
24138
24139 if test -n "$ac_config_headers"; then
24140   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24141 fi
24142
24143 if test -n "$ac_config_links"; then
24144   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24145 fi
24146
24147 if test -n "$ac_config_commands"; then
24148   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24149 fi
24150
24151 cat >>$CONFIG_STATUS <<\_ACEOF
24152
24153 ac_cs_usage="\
24154 \`$as_me' instantiates files from templates according to the
24155 current configuration.
24156
24157 Usage: $0 [OPTIONS] [FILE]...
24158
24159   -h, --help       print this help, then exit
24160   -V, --version    print version number, then exit
24161   -q, --quiet      do not print progress messages
24162   -d, --debug      don't remove temporary files
24163       --recheck    update $as_me by reconfiguring in the same conditions
24164   --file=FILE[:TEMPLATE]
24165                    instantiate the configuration file FILE
24166   --header=FILE[:TEMPLATE]
24167                    instantiate the configuration header FILE
24168
24169 Configuration files:
24170 $config_files
24171
24172 Configuration headers:
24173 $config_headers
24174
24175 Configuration commands:
24176 $config_commands
24177
24178 Report bugs to <bug-autoconf@gnu.org>."
24179 _ACEOF
24180
24181 cat >>$CONFIG_STATUS <<_ACEOF
24182 ac_cs_version="\\
24183 webcit config.status 6.80
24184 configured by $0, generated by GNU Autoconf 2.59,
24185   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24186
24187 Copyright (C) 2003 Free Software Foundation, Inc.
24188 This config.status script is free software; the Free Software Foundation
24189 gives unlimited permission to copy, distribute and modify it."
24190 srcdir=$srcdir
24191 INSTALL="$INSTALL"
24192 _ACEOF
24193
24194 cat >>$CONFIG_STATUS <<\_ACEOF
24195 # If no file are specified by the user, then we need to provide default
24196 # value.  By we need to know if files were specified by the user.
24197 ac_need_defaults=:
24198 while test $# != 0
24199 do
24200   case $1 in
24201   --*=*)
24202     ac_option=`expr "x$1" : 'x\([^=]*\)='`
24203     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24204     ac_shift=:
24205     ;;
24206   -*)
24207     ac_option=$1
24208     ac_optarg=$2
24209     ac_shift=shift
24210     ;;
24211   *) # This is not an option, so the user has probably given explicit
24212      # arguments.
24213      ac_option=$1
24214      ac_need_defaults=false;;
24215   esac
24216
24217   case $ac_option in
24218   # Handling of the options.
24219 _ACEOF
24220 cat >>$CONFIG_STATUS <<\_ACEOF
24221   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24222     ac_cs_recheck=: ;;
24223   --version | --vers* | -V )
24224     echo "$ac_cs_version"; exit 0 ;;
24225   --he | --h)
24226     # Conflict between --help and --header
24227     { { echo "$as_me:$LINENO: error: ambiguous option: $1
24228 Try \`$0 --help' for more information." >&5
24229 echo "$as_me: error: ambiguous option: $1
24230 Try \`$0 --help' for more information." >&2;}
24231    { (exit 1); exit 1; }; };;
24232   --help | --hel | -h )
24233     echo "$ac_cs_usage"; exit 0 ;;
24234   --debug | --d* | -d )
24235     debug=: ;;
24236   --file | --fil | --fi | --f )
24237     $ac_shift
24238     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24239     ac_need_defaults=false;;
24240   --header | --heade | --head | --hea )
24241     $ac_shift
24242     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24243     ac_need_defaults=false;;
24244   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24245   | -silent | --silent | --silen | --sile | --sil | --si | --s)
24246     ac_cs_silent=: ;;
24247
24248   # This is an error.
24249   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24250 Try \`$0 --help' for more information." >&5
24251 echo "$as_me: error: unrecognized option: $1
24252 Try \`$0 --help' for more information." >&2;}
24253    { (exit 1); exit 1; }; } ;;
24254
24255   *) ac_config_targets="$ac_config_targets $1" ;;
24256
24257   esac
24258   shift
24259 done
24260
24261 ac_configure_extra_args=
24262
24263 if $ac_cs_silent; then
24264   exec 6>/dev/null
24265   ac_configure_extra_args="$ac_configure_extra_args --silent"
24266 fi
24267
24268 _ACEOF
24269 cat >>$CONFIG_STATUS <<_ACEOF
24270 if \$ac_cs_recheck; then
24271   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24272   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24273 fi
24274
24275 _ACEOF
24276
24277 cat >>$CONFIG_STATUS <<_ACEOF
24278 #
24279 # INIT-COMMANDS section.
24280 #
24281
24282 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24283 INTLTOOL_PERL='${INTLTOOL_PERL}' ac_aux_dir='${ac_aux_dir}'
24284 prefix="$prefix" exec_prefix="$exec_prefix" INTLTOOL_LIBDIR="$libdir" 
24285 INTLTOOL_EXTRACT='${INTLTOOL_EXTRACT}' INTLTOOL_ICONV='${INTLTOOL_ICONV}'
24286 INTLTOOL_MSGFMT='${INTLTOOL_MSGFMT}' INTLTOOL_MSGMERGE='${INTLTOOL_MSGMERGE}'
24287 INTLTOOL_XGETTEXT='${INTLTOOL_XGETTEXT}'
24288 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
24289     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
24290     # from automake.
24291     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
24292     # Capture the value of LINGUAS because we need it to compute CATALOGS.
24293     LINGUAS="${LINGUAS-%UNSET%}"
24294    
24295
24296 _ACEOF
24297
24298
24299
24300 cat >>$CONFIG_STATUS <<\_ACEOF
24301 for ac_config_target in $ac_config_targets
24302 do
24303   case "$ac_config_target" in
24304   # Handling of arguments.
24305   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24306   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
24307   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
24308   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24309   "intltool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS intltool" ;;
24310   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
24311   "po/stamp-it" ) CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
24312   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
24313   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24314 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24315    { (exit 1); exit 1; }; };;
24316   esac
24317 done
24318
24319 # If the user did not use the arguments to specify the items to instantiate,
24320 # then the envvar interface is used.  Set only those that are not.
24321 # We use the long form for the default assignment because of an extremely
24322 # bizarre bug on SunOS 4.1.3.
24323 if $ac_need_defaults; then
24324   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24325   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24326   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24327 fi
24328
24329 # Have a temporary directory for convenience.  Make it in the build tree
24330 # simply because there is no reason to put it here, and in addition,
24331 # creating and moving files from /tmp can sometimes cause problems.
24332 # Create a temporary directory, and hook for its removal unless debugging.
24333 $debug ||
24334 {
24335   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24336   trap '{ (exit 1); exit 1; }' 1 2 13 15
24337 }
24338
24339 # Create a (secure) tmp directory for tmp files.
24340
24341 {
24342   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24343   test -n "$tmp" && test -d "$tmp"
24344 }  ||
24345 {
24346   tmp=./confstat$$-$RANDOM
24347   (umask 077 && mkdir $tmp)
24348 } ||
24349 {
24350    echo "$me: cannot create a temporary directory in ." >&2
24351    { (exit 1); exit 1; }
24352 }
24353
24354 _ACEOF
24355
24356 cat >>$CONFIG_STATUS <<_ACEOF
24357
24358 #
24359 # CONFIG_FILES section.
24360 #
24361
24362 # No need to generate the scripts if there are no CONFIG_FILES.
24363 # This happens for instance when ./config.status config.h
24364 if test -n "\$CONFIG_FILES"; then
24365   # Protect against being on the right side of a sed subst in config.status.
24366   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24367    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24368 s,@SHELL@,$SHELL,;t t
24369 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24370 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24371 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24372 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24373 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24374 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24375 s,@exec_prefix@,$exec_prefix,;t t
24376 s,@prefix@,$prefix,;t t
24377 s,@program_transform_name@,$program_transform_name,;t t
24378 s,@bindir@,$bindir,;t t
24379 s,@sbindir@,$sbindir,;t t
24380 s,@libexecdir@,$libexecdir,;t t
24381 s,@datadir@,$datadir,;t t
24382 s,@sysconfdir@,$sysconfdir,;t t
24383 s,@sharedstatedir@,$sharedstatedir,;t t
24384 s,@localstatedir@,$localstatedir,;t t
24385 s,@libdir@,$libdir,;t t
24386 s,@includedir@,$includedir,;t t
24387 s,@oldincludedir@,$oldincludedir,;t t
24388 s,@infodir@,$infodir,;t t
24389 s,@mandir@,$mandir,;t t
24390 s,@build_alias@,$build_alias,;t t
24391 s,@host_alias@,$host_alias,;t t
24392 s,@target_alias@,$target_alias,;t t
24393 s,@DEFS@,$DEFS,;t t
24394 s,@ECHO_C@,$ECHO_C,;t t
24395 s,@ECHO_N@,$ECHO_N,;t t
24396 s,@ECHO_T@,$ECHO_T,;t t
24397 s,@LIBS@,$LIBS,;t t
24398 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24399 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24400 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24401 s,@CYGPATH_W@,$CYGPATH_W,;t t
24402 s,@PACKAGE@,$PACKAGE,;t t
24403 s,@VERSION@,$VERSION,;t t
24404 s,@ACLOCAL@,$ACLOCAL,;t t
24405 s,@AUTOCONF@,$AUTOCONF,;t t
24406 s,@AUTOMAKE@,$AUTOMAKE,;t t
24407 s,@AUTOHEADER@,$AUTOHEADER,;t t
24408 s,@MAKEINFO@,$MAKEINFO,;t t
24409 s,@install_sh@,$install_sh,;t t
24410 s,@STRIP@,$STRIP,;t t
24411 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24412 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
24413 s,@mkdir_p@,$mkdir_p,;t t
24414 s,@AWK@,$AWK,;t t
24415 s,@SET_MAKE@,$SET_MAKE,;t t
24416 s,@am__leading_dot@,$am__leading_dot,;t t
24417 s,@AMTAR@,$AMTAR,;t t
24418 s,@am__tar@,$am__tar,;t t
24419 s,@am__untar@,$am__untar,;t t
24420 s,@build@,$build,;t t
24421 s,@build_cpu@,$build_cpu,;t t
24422 s,@build_vendor@,$build_vendor,;t t
24423 s,@build_os@,$build_os,;t t
24424 s,@host@,$host,;t t
24425 s,@host_cpu@,$host_cpu,;t t
24426 s,@host_vendor@,$host_vendor,;t t
24427 s,@host_os@,$host_os,;t t
24428 s,@CC@,$CC,;t t
24429 s,@CFLAGS@,$CFLAGS,;t t
24430 s,@LDFLAGS@,$LDFLAGS,;t t
24431 s,@CPPFLAGS@,$CPPFLAGS,;t t
24432 s,@ac_ct_CC@,$ac_ct_CC,;t t
24433 s,@EXEEXT@,$EXEEXT,;t t
24434 s,@OBJEXT@,$OBJEXT,;t t
24435 s,@DEPDIR@,$DEPDIR,;t t
24436 s,@am__include@,$am__include,;t t
24437 s,@am__quote@,$am__quote,;t t
24438 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
24439 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
24440 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
24441 s,@CCDEPMODE@,$CCDEPMODE,;t t
24442 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
24443 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
24444 s,@EGREP@,$EGREP,;t t
24445 s,@LN_S@,$LN_S,;t t
24446 s,@ECHO@,$ECHO,;t t
24447 s,@AR@,$AR,;t t
24448 s,@ac_ct_AR@,$ac_ct_AR,;t t
24449 s,@RANLIB@,$RANLIB,;t t
24450 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24451 s,@CPP@,$CPP,;t t
24452 s,@CXX@,$CXX,;t t
24453 s,@CXXFLAGS@,$CXXFLAGS,;t t
24454 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24455 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
24456 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
24457 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
24458 s,@CXXCPP@,$CXXCPP,;t t
24459 s,@F77@,$F77,;t t
24460 s,@FFLAGS@,$FFLAGS,;t t
24461 s,@ac_ct_F77@,$ac_ct_F77,;t t
24462 s,@LIBTOOL@,$LIBTOOL,;t t
24463 s,@PROG_SUBDIRS@,$PROG_SUBDIRS,;t t
24464 s,@SED@,$SED,;t t
24465 s,@PTHREAD_DEFS@,$PTHREAD_DEFS,;t t
24466 s,@LIB@&t@OBJS@,$LIB@&t@OBJS,;t t
24467 s,@INTLTOOL_DESKTOP_RULE@,$INTLTOOL_DESKTOP_RULE,;t t
24468 s,@INTLTOOL_DIRECTORY_RULE@,$INTLTOOL_DIRECTORY_RULE,;t t
24469 s,@INTLTOOL_KEYS_RULE@,$INTLTOOL_KEYS_RULE,;t t
24470 s,@INTLTOOL_PROP_RULE@,$INTLTOOL_PROP_RULE,;t t
24471 s,@INTLTOOL_OAF_RULE@,$INTLTOOL_OAF_RULE,;t t
24472 s,@INTLTOOL_PONG_RULE@,$INTLTOOL_PONG_RULE,;t t
24473 s,@INTLTOOL_SERVER_RULE@,$INTLTOOL_SERVER_RULE,;t t
24474 s,@INTLTOOL_SHEET_RULE@,$INTLTOOL_SHEET_RULE,;t t
24475 s,@INTLTOOL_SOUNDLIST_RULE@,$INTLTOOL_SOUNDLIST_RULE,;t t
24476 s,@INTLTOOL_UI_RULE@,$INTLTOOL_UI_RULE,;t t
24477 s,@INTLTOOL_XAM_RULE@,$INTLTOOL_XAM_RULE,;t t
24478 s,@INTLTOOL_KBD_RULE@,$INTLTOOL_KBD_RULE,;t t
24479 s,@INTLTOOL_XML_RULE@,$INTLTOOL_XML_RULE,;t t
24480 s,@INTLTOOL_XML_NOMERGE_RULE@,$INTLTOOL_XML_NOMERGE_RULE,;t t
24481 s,@INTLTOOL_CAVES_RULE@,$INTLTOOL_CAVES_RULE,;t t
24482 s,@INTLTOOL_SCHEMAS_RULE@,$INTLTOOL_SCHEMAS_RULE,;t t
24483 s,@INTLTOOL_THEME_RULE@,$INTLTOOL_THEME_RULE,;t t
24484 s,@INTLTOOL_SERVICE_RULE@,$INTLTOOL_SERVICE_RULE,;t t
24485 s,@INTLTOOL_EXTRACT@,$INTLTOOL_EXTRACT,;t t
24486 s,@INTLTOOL_MERGE@,$INTLTOOL_MERGE,;t t
24487 s,@INTLTOOL_UPDATE@,$INTLTOOL_UPDATE,;t t
24488 s,@INTLTOOL_PERL@,$INTLTOOL_PERL,;t t
24489 s,@INTLTOOL_ICONV@,$INTLTOOL_ICONV,;t t
24490 s,@INTLTOOL_MSGFMT@,$INTLTOOL_MSGFMT,;t t
24491 s,@INTLTOOL_MSGMERGE@,$INTLTOOL_MSGMERGE,;t t
24492 s,@INTLTOOL_XGETTEXT@,$INTLTOOL_XGETTEXT,;t t
24493 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
24494 s,@USE_NLS@,$USE_NLS,;t t
24495 s,@MSGFMT@,$MSGFMT,;t t
24496 s,@GMSGFMT@,$GMSGFMT,;t t
24497 s,@XGETTEXT@,$XGETTEXT,;t t
24498 s,@MSGMERGE@,$MSGMERGE,;t t
24499 s,@LIBICONV@,$LIBICONV,;t t
24500 s,@LTLIBICONV@,$LTLIBICONV,;t t
24501 s,@INTLLIBS@,$INTLLIBS,;t t
24502 s,@LIBINTL@,$LIBINTL,;t t
24503 s,@LTLIBINTL@,$LTLIBINTL,;t t
24504 s,@POSUB@,$POSUB,;t t
24505 s,@SETUP_LIBS@,$SETUP_LIBS,;t t
24506 s,@staticdir@,$staticdir,;t t
24507 s,@editordir@,$editordir,;t t
24508 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24509 CEOF
24510
24511 _ACEOF
24512
24513   cat >>$CONFIG_STATUS <<\_ACEOF
24514   # Split the substitutions into bite-sized pieces for seds with
24515   # small command number limits, like on Digital OSF/1 and HP-UX.
24516   ac_max_sed_lines=48
24517   ac_sed_frag=1 # Number of current file.
24518   ac_beg=1 # First line for current file.
24519   ac_end=$ac_max_sed_lines # Line after last line for current file.
24520   ac_more_lines=:
24521   ac_sed_cmds=
24522   while $ac_more_lines; do
24523     if test $ac_beg -gt 1; then
24524       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24525     else
24526       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24527     fi
24528     if test ! -s $tmp/subs.frag; then
24529       ac_more_lines=false
24530     else
24531       # The purpose of the label and of the branching condition is to
24532       # speed up the sed processing (if there are no `@' at all, there
24533       # is no need to browse any of the substitutions).
24534       # These are the two extra sed commands mentioned above.
24535       (echo ':t
24536   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24537       if test -z "$ac_sed_cmds"; then
24538         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24539       else
24540         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24541       fi
24542       ac_sed_frag=`expr $ac_sed_frag + 1`
24543       ac_beg=$ac_end
24544       ac_end=`expr $ac_end + $ac_max_sed_lines`
24545     fi
24546   done
24547   if test -z "$ac_sed_cmds"; then
24548     ac_sed_cmds=cat
24549   fi
24550 fi # test -n "$CONFIG_FILES"
24551
24552 _ACEOF
24553 cat >>$CONFIG_STATUS <<\_ACEOF
24554 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24555   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24556   case $ac_file in
24557   - | *:- | *:-:* ) # input from stdin
24558         cat >$tmp/stdin
24559         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24560         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24561   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24562         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24563   * )   ac_file_in=$ac_file.in ;;
24564   esac
24565
24566   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24567   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24568 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24569          X"$ac_file" : 'X\(//\)[^/]' \| \
24570          X"$ac_file" : 'X\(//\)$' \| \
24571          X"$ac_file" : 'X\(/\)' \| \
24572          .     : '\(.\)' 2>/dev/null ||
24573 echo X"$ac_file" |
24574     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24575           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24576           /^X\(\/\/\)$/{ s//\1/; q; }
24577           /^X\(\/\).*/{ s//\1/; q; }
24578           s/.*/./; q'`
24579   { if $as_mkdir_p; then
24580     mkdir -p "$ac_dir"
24581   else
24582     as_dir="$ac_dir"
24583     as_dirs=
24584     while test ! -d "$as_dir"; do
24585       as_dirs="$as_dir $as_dirs"
24586       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24587 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24588          X"$as_dir" : 'X\(//\)[^/]' \| \
24589          X"$as_dir" : 'X\(//\)$' \| \
24590          X"$as_dir" : 'X\(/\)' \| \
24591          .     : '\(.\)' 2>/dev/null ||
24592 echo X"$as_dir" |
24593     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24594           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24595           /^X\(\/\/\)$/{ s//\1/; q; }
24596           /^X\(\/\).*/{ s//\1/; q; }
24597           s/.*/./; q'`
24598     done
24599     test ! -n "$as_dirs" || mkdir $as_dirs
24600   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24601 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24602    { (exit 1); exit 1; }; }; }
24603
24604   ac_builddir=.
24605
24606 if test "$ac_dir" != .; then
24607   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24608   # A "../" for each directory in $ac_dir_suffix.
24609   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24610 else
24611   ac_dir_suffix= ac_top_builddir=
24612 fi
24613
24614 case $srcdir in
24615   .)  # No --srcdir option.  We are building in place.
24616     ac_srcdir=.
24617     if test -z "$ac_top_builddir"; then
24618        ac_top_srcdir=.
24619     else
24620        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24621     fi ;;
24622   [\\/]* | ?:[\\/]* )  # Absolute path.
24623     ac_srcdir=$srcdir$ac_dir_suffix;
24624     ac_top_srcdir=$srcdir ;;
24625   *) # Relative path.
24626     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24627     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24628 esac
24629
24630 # Do not use `cd foo && pwd` to compute absolute paths, because
24631 # the directories may not exist.
24632 case `pwd` in
24633 .) ac_abs_builddir="$ac_dir";;
24634 *)
24635   case "$ac_dir" in
24636   .) ac_abs_builddir=`pwd`;;
24637   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24638   *) ac_abs_builddir=`pwd`/"$ac_dir";;
24639   esac;;
24640 esac
24641 case $ac_abs_builddir in
24642 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24643 *)
24644   case ${ac_top_builddir}. in
24645   .) ac_abs_top_builddir=$ac_abs_builddir;;
24646   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24647   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24648   esac;;
24649 esac
24650 case $ac_abs_builddir in
24651 .) ac_abs_srcdir=$ac_srcdir;;
24652 *)
24653   case $ac_srcdir in
24654   .) ac_abs_srcdir=$ac_abs_builddir;;
24655   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24656   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24657   esac;;
24658 esac
24659 case $ac_abs_builddir in
24660 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24661 *)
24662   case $ac_top_srcdir in
24663   .) ac_abs_top_srcdir=$ac_abs_builddir;;
24664   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24665   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24666   esac;;
24667 esac
24668
24669
24670   case $INSTALL in
24671   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24672   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24673   esac
24674
24675   # Let's still pretend it is `configure' which instantiates (i.e., don't
24676   # use $as_me), people would be surprised to read:
24677   #    /* config.h.  Generated by config.status.  */
24678   if test x"$ac_file" = x-; then
24679     configure_input=
24680   else
24681     configure_input="$ac_file.  "
24682   fi
24683   configure_input=$configure_input"Generated from `echo $ac_file_in |
24684                                      sed 's,.*/,,'` by configure."
24685
24686   # First look for the input files in the build tree, otherwise in the
24687   # src tree.
24688   ac_file_inputs=`IFS=:
24689     for f in $ac_file_in; do
24690       case $f in
24691       -) echo $tmp/stdin ;;
24692       [\\/$]*)
24693          # Absolute (can't be DOS-style, as IFS=:)
24694          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24695 echo "$as_me: error: cannot find input file: $f" >&2;}
24696    { (exit 1); exit 1; }; }
24697          echo "$f";;
24698       *) # Relative
24699          if test -f "$f"; then
24700            # Build tree
24701            echo "$f"
24702          elif test -f "$srcdir/$f"; then
24703            # Source tree
24704            echo "$srcdir/$f"
24705          else
24706            # /dev/null tree
24707            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24708 echo "$as_me: error: cannot find input file: $f" >&2;}
24709    { (exit 1); exit 1; }; }
24710          fi;;
24711       esac
24712     done` || { (exit 1); exit 1; }
24713
24714   if test x"$ac_file" != x-; then
24715     { echo "$as_me:$LINENO: creating $ac_file" >&5
24716 echo "$as_me: creating $ac_file" >&6;}
24717     rm -f "$ac_file"
24718   fi
24719 _ACEOF
24720 cat >>$CONFIG_STATUS <<_ACEOF
24721   sed "$ac_vpsub
24722 $extrasub
24723 _ACEOF
24724 cat >>$CONFIG_STATUS <<\_ACEOF
24725 :t
24726 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24727 s,@configure_input@,$configure_input,;t t
24728 s,@srcdir@,$ac_srcdir,;t t
24729 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24730 s,@top_srcdir@,$ac_top_srcdir,;t t
24731 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24732 s,@builddir@,$ac_builddir,;t t
24733 s,@abs_builddir@,$ac_abs_builddir,;t t
24734 s,@top_builddir@,$ac_top_builddir,;t t
24735 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24736 s,@INSTALL@,$ac_INSTALL,;t t
24737 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24738   rm -f $tmp/stdin
24739   if test x"$ac_file" != x-; then
24740     mv $tmp/out $ac_file
24741   else
24742     cat $tmp/out
24743     rm -f $tmp/out
24744   fi
24745
24746 done
24747 _ACEOF
24748 cat >>$CONFIG_STATUS <<\_ACEOF
24749
24750 #
24751 # CONFIG_HEADER section.
24752 #
24753
24754 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24755 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24756 #
24757 # ac_d sets the value in "#define NAME VALUE" lines.
24758 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
24759 ac_dB='[         ].*$,\1#\2'
24760 ac_dC=' '
24761 ac_dD=',;t'
24762 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24763 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
24764 ac_uB='$,\1#\2define\3'
24765 ac_uC=' '
24766 ac_uD=',;t'
24767
24768 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24769   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24770   case $ac_file in
24771   - | *:- | *:-:* ) # input from stdin
24772         cat >$tmp/stdin
24773         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24774         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24775   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24776         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24777   * )   ac_file_in=$ac_file.in ;;
24778   esac
24779
24780   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24781 echo "$as_me: creating $ac_file" >&6;}
24782
24783   # First look for the input files in the build tree, otherwise in the
24784   # src tree.
24785   ac_file_inputs=`IFS=:
24786     for f in $ac_file_in; do
24787       case $f in
24788       -) echo $tmp/stdin ;;
24789       [\\/$]*)
24790          # Absolute (can't be DOS-style, as IFS=:)
24791          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24792 echo "$as_me: error: cannot find input file: $f" >&2;}
24793    { (exit 1); exit 1; }; }
24794          # Do quote $f, to prevent DOS paths from being IFS'd.
24795          echo "$f";;
24796       *) # Relative
24797          if test -f "$f"; then
24798            # Build tree
24799            echo "$f"
24800          elif test -f "$srcdir/$f"; then
24801            # Source tree
24802            echo "$srcdir/$f"
24803          else
24804            # /dev/null tree
24805            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24806 echo "$as_me: error: cannot find input file: $f" >&2;}
24807    { (exit 1); exit 1; }; }
24808          fi;;
24809       esac
24810     done` || { (exit 1); exit 1; }
24811   # Remove the trailing spaces.
24812   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
24813
24814 _ACEOF
24815
24816 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24817 # `conftest.undefs', that substitutes the proper values into
24818 # config.h.in to produce config.h.  The first handles `#define'
24819 # templates, and the second `#undef' templates.
24820 # And first: Protect against being on the right side of a sed subst in
24821 # config.status.  Protect against being in an unquoted here document
24822 # in config.status.
24823 rm -f conftest.defines conftest.undefs
24824 # Using a here document instead of a string reduces the quoting nightmare.
24825 # Putting comments in sed scripts is not portable.
24826 #
24827 # `end' is used to avoid that the second main sed command (meant for
24828 # 0-ary CPP macros) applies to n-ary macro definitions.
24829 # See the Autoconf documentation for `clear'.
24830 cat >confdef2sed.sed <<\_ACEOF
24831 s/[\\&,]/\\&/g
24832 s,[\\$`],\\&,g
24833 t clear
24834 : clear
24835 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24836 t end
24837 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24838 : end
24839 _ACEOF
24840 # If some macros were called several times there might be several times
24841 # the same #defines, which is useless.  Nevertheless, we may not want to
24842 # sort them, since we want the *last* AC-DEFINE to be honored.
24843 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24844 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24845 rm -f confdef2sed.sed
24846
24847 # This sed command replaces #undef with comments.  This is necessary, for
24848 # example, in the case of _POSIX_SOURCE, which is predefined and required
24849 # on some systems where configure will not decide to define it.
24850 cat >>conftest.undefs <<\_ACEOF
24851 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24852 _ACEOF
24853
24854 # Break up conftest.defines because some shells have a limit on the size
24855 # of here documents, and old seds have small limits too (100 cmds).
24856 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24857 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24858 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24859 echo '  :' >>$CONFIG_STATUS
24860 rm -f conftest.tail
24861 while grep . conftest.defines >/dev/null
24862 do
24863   # Write a limited-size here document to $tmp/defines.sed.
24864   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24865   # Speed up: don't consider the non `#define' lines.
24866   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
24867   # Work around the forget-to-reset-the-flag bug.
24868   echo 't clr' >>$CONFIG_STATUS
24869   echo ': clr' >>$CONFIG_STATUS
24870   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24871   echo 'CEOF
24872   sed -f $tmp/defines.sed $tmp/in >$tmp/out
24873   rm -f $tmp/in
24874   mv $tmp/out $tmp/in
24875 ' >>$CONFIG_STATUS
24876   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24877   rm -f conftest.defines
24878   mv conftest.tail conftest.defines
24879 done
24880 rm -f conftest.defines
24881 echo '  fi # grep' >>$CONFIG_STATUS
24882 echo >>$CONFIG_STATUS
24883
24884 # Break up conftest.undefs because some shells have a limit on the size
24885 # of here documents, and old seds have small limits too (100 cmds).
24886 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
24887 rm -f conftest.tail
24888 while grep . conftest.undefs >/dev/null
24889 do
24890   # Write a limited-size here document to $tmp/undefs.sed.
24891   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24892   # Speed up: don't consider the non `#undef'
24893   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
24894   # Work around the forget-to-reset-the-flag bug.
24895   echo 't clr' >>$CONFIG_STATUS
24896   echo ': clr' >>$CONFIG_STATUS
24897   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24898   echo 'CEOF
24899   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24900   rm -f $tmp/in
24901   mv $tmp/out $tmp/in
24902 ' >>$CONFIG_STATUS
24903   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24904   rm -f conftest.undefs
24905   mv conftest.tail conftest.undefs
24906 done
24907 rm -f conftest.undefs
24908
24909 cat >>$CONFIG_STATUS <<\_ACEOF
24910   # Let's still pretend it is `configure' which instantiates (i.e., don't
24911   # use $as_me), people would be surprised to read:
24912   #    /* config.h.  Generated by config.status.  */
24913   if test x"$ac_file" = x-; then
24914     echo "/* Generated by configure.  */" >$tmp/config.h
24915   else
24916     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
24917   fi
24918   cat $tmp/in >>$tmp/config.h
24919   rm -f $tmp/in
24920   if test x"$ac_file" != x-; then
24921     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24922       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24923 echo "$as_me: $ac_file is unchanged" >&6;}
24924     else
24925       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24926 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24927          X"$ac_file" : 'X\(//\)[^/]' \| \
24928          X"$ac_file" : 'X\(//\)$' \| \
24929          X"$ac_file" : 'X\(/\)' \| \
24930          .     : '\(.\)' 2>/dev/null ||
24931 echo X"$ac_file" |
24932     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24933           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24934           /^X\(\/\/\)$/{ s//\1/; q; }
24935           /^X\(\/\).*/{ s//\1/; q; }
24936           s/.*/./; q'`
24937       { if $as_mkdir_p; then
24938     mkdir -p "$ac_dir"
24939   else
24940     as_dir="$ac_dir"
24941     as_dirs=
24942     while test ! -d "$as_dir"; do
24943       as_dirs="$as_dir $as_dirs"
24944       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24945 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24946          X"$as_dir" : 'X\(//\)[^/]' \| \
24947          X"$as_dir" : 'X\(//\)$' \| \
24948          X"$as_dir" : 'X\(/\)' \| \
24949          .     : '\(.\)' 2>/dev/null ||
24950 echo X"$as_dir" |
24951     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24952           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24953           /^X\(\/\/\)$/{ s//\1/; q; }
24954           /^X\(\/\).*/{ s//\1/; q; }
24955           s/.*/./; q'`
24956     done
24957     test ! -n "$as_dirs" || mkdir $as_dirs
24958   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24959 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24960    { (exit 1); exit 1; }; }; }
24961
24962       rm -f $ac_file
24963       mv $tmp/config.h $ac_file
24964     fi
24965   else
24966     cat $tmp/config.h
24967     rm -f $tmp/config.h
24968   fi
24969 # Compute $ac_file's index in $config_headers.
24970 _am_stamp_count=1
24971 for _am_header in $config_headers :; do
24972   case $_am_header in
24973     $ac_file | $ac_file:* )
24974       break ;;
24975     * )
24976       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24977   esac
24978 done
24979 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
24980 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24981          X$ac_file : 'X\(//\)[^/]' \| \
24982          X$ac_file : 'X\(//\)$' \| \
24983          X$ac_file : 'X\(/\)' \| \
24984          .     : '\(.\)' 2>/dev/null ||
24985 echo X$ac_file |
24986     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24987           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24988           /^X\(\/\/\)$/{ s//\1/; q; }
24989           /^X\(\/\).*/{ s//\1/; q; }
24990           s/.*/./; q'`/stamp-h$_am_stamp_count
24991 done
24992 _ACEOF
24993 cat >>$CONFIG_STATUS <<\_ACEOF
24994
24995 #
24996 # CONFIG_COMMANDS section.
24997 #
24998 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24999   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25000   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25001   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25002 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25003          X"$ac_dest" : 'X\(//\)[^/]' \| \
25004          X"$ac_dest" : 'X\(//\)$' \| \
25005          X"$ac_dest" : 'X\(/\)' \| \
25006          .     : '\(.\)' 2>/dev/null ||
25007 echo X"$ac_dest" |
25008     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25009           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25010           /^X\(\/\/\)$/{ s//\1/; q; }
25011           /^X\(\/\).*/{ s//\1/; q; }
25012           s/.*/./; q'`
25013   { if $as_mkdir_p; then
25014     mkdir -p "$ac_dir"
25015   else
25016     as_dir="$ac_dir"
25017     as_dirs=
25018     while test ! -d "$as_dir"; do
25019       as_dirs="$as_dir $as_dirs"
25020       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25021 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25022          X"$as_dir" : 'X\(//\)[^/]' \| \
25023          X"$as_dir" : 'X\(//\)$' \| \
25024          X"$as_dir" : 'X\(/\)' \| \
25025          .     : '\(.\)' 2>/dev/null ||
25026 echo X"$as_dir" |
25027     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25028           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25029           /^X\(\/\/\)$/{ s//\1/; q; }
25030           /^X\(\/\).*/{ s//\1/; q; }
25031           s/.*/./; q'`
25032     done
25033     test ! -n "$as_dirs" || mkdir $as_dirs
25034   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25035 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25036    { (exit 1); exit 1; }; }; }
25037
25038   ac_builddir=.
25039
25040 if test "$ac_dir" != .; then
25041   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25042   # A "../" for each directory in $ac_dir_suffix.
25043   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25044 else
25045   ac_dir_suffix= ac_top_builddir=
25046 fi
25047
25048 case $srcdir in
25049   .)  # No --srcdir option.  We are building in place.
25050     ac_srcdir=.
25051     if test -z "$ac_top_builddir"; then
25052        ac_top_srcdir=.
25053     else
25054        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25055     fi ;;
25056   [\\/]* | ?:[\\/]* )  # Absolute path.
25057     ac_srcdir=$srcdir$ac_dir_suffix;
25058     ac_top_srcdir=$srcdir ;;
25059   *) # Relative path.
25060     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25061     ac_top_srcdir=$ac_top_builddir$srcdir ;;
25062 esac
25063
25064 # Do not use `cd foo && pwd` to compute absolute paths, because
25065 # the directories may not exist.
25066 case `pwd` in
25067 .) ac_abs_builddir="$ac_dir";;
25068 *)
25069   case "$ac_dir" in
25070   .) ac_abs_builddir=`pwd`;;
25071   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25072   *) ac_abs_builddir=`pwd`/"$ac_dir";;
25073   esac;;
25074 esac
25075 case $ac_abs_builddir in
25076 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25077 *)
25078   case ${ac_top_builddir}. in
25079   .) ac_abs_top_builddir=$ac_abs_builddir;;
25080   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25081   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25082   esac;;
25083 esac
25084 case $ac_abs_builddir in
25085 .) ac_abs_srcdir=$ac_srcdir;;
25086 *)
25087   case $ac_srcdir in
25088   .) ac_abs_srcdir=$ac_abs_builddir;;
25089   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25090   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25091   esac;;
25092 esac
25093 case $ac_abs_builddir in
25094 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25095 *)
25096   case $ac_top_srcdir in
25097   .) ac_abs_top_srcdir=$ac_abs_builddir;;
25098   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25099   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25100   esac;;
25101 esac
25102
25103
25104   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25105 echo "$as_me: executing $ac_dest commands" >&6;}
25106   case $ac_dest in
25107     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
25108   # Strip MF so we end up with the name of the file.
25109   mf=`echo "$mf" | sed -e 's/:.*$//'`
25110   # Check whether this is an Automake generated Makefile or not.
25111   # We used to match only the files named `Makefile.in', but
25112   # some people rename them; so instead we look at the file content.
25113   # Grep'ing the first line is not enough: some people post-process
25114   # each Makefile.in and add a new line on top of each file to say so.
25115   # So let's grep whole file.
25116   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
25117     dirpart=`(dirname "$mf") 2>/dev/null ||
25118 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25119          X"$mf" : 'X\(//\)[^/]' \| \
25120          X"$mf" : 'X\(//\)$' \| \
25121          X"$mf" : 'X\(/\)' \| \
25122          .     : '\(.\)' 2>/dev/null ||
25123 echo X"$mf" |
25124     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25125           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25126           /^X\(\/\/\)$/{ s//\1/; q; }
25127           /^X\(\/\).*/{ s//\1/; q; }
25128           s/.*/./; q'`
25129   else
25130     continue
25131   fi
25132   # Extract the definition of DEPDIR, am__include, and am__quote
25133   # from the Makefile without running `make'.
25134   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25135   test -z "$DEPDIR" && continue
25136   am__include=`sed -n 's/^am__include = //p' < "$mf"`
25137   test -z "am__include" && continue
25138   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25139   # When using ansi2knr, U may be empty or an underscore; expand it
25140   U=`sed -n 's/^U = //p' < "$mf"`
25141   # Find all dependency output files, they are included files with
25142   # $(DEPDIR) in their names.  We invoke sed twice because it is the
25143   # simplest approach to changing $(DEPDIR) to its actual value in the
25144   # expansion.
25145   for file in `sed -n "
25146     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25147        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25148     # Make sure the directory exists.
25149     test -f "$dirpart/$file" && continue
25150     fdir=`(dirname "$file") 2>/dev/null ||
25151 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25152          X"$file" : 'X\(//\)[^/]' \| \
25153          X"$file" : 'X\(//\)$' \| \
25154          X"$file" : 'X\(/\)' \| \
25155          .     : '\(.\)' 2>/dev/null ||
25156 echo X"$file" |
25157     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25158           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25159           /^X\(\/\/\)$/{ s//\1/; q; }
25160           /^X\(\/\).*/{ s//\1/; q; }
25161           s/.*/./; q'`
25162     { if $as_mkdir_p; then
25163     mkdir -p $dirpart/$fdir
25164   else
25165     as_dir=$dirpart/$fdir
25166     as_dirs=
25167     while test ! -d "$as_dir"; do
25168       as_dirs="$as_dir $as_dirs"
25169       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25170 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25171          X"$as_dir" : 'X\(//\)[^/]' \| \
25172          X"$as_dir" : 'X\(//\)$' \| \
25173          X"$as_dir" : 'X\(/\)' \| \
25174          .     : '\(.\)' 2>/dev/null ||
25175 echo X"$as_dir" |
25176     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25177           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25178           /^X\(\/\/\)$/{ s//\1/; q; }
25179           /^X\(\/\).*/{ s//\1/; q; }
25180           s/.*/./; q'`
25181     done
25182     test ! -n "$as_dirs" || mkdir $as_dirs
25183   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
25184 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
25185    { (exit 1); exit 1; }; }; }
25186
25187     # echo "creating $dirpart/$file"
25188     echo '# dummy' > "$dirpart/$file"
25189   done
25190 done
25191  ;;
25192     intltool ) 
25193
25194 for file in intltool-extract intltool-merge intltool-update; do
25195   sed -e "s|@INTLTOOL_EXTRACT@|`pwd`/intltool-extract|g" \
25196       -e "s|@INTLTOOL_LIBDIR@|${INTLTOOL_LIBDIR}|g" \
25197       -e "s|@INTLTOOL_ICONV@|${INTLTOOL_ICONV}|g" \
25198       -e "s|@INTLTOOL_MSGFMT@|${INTLTOOL_MSGFMT}|g" \
25199       -e "s|@INTLTOOL_MSGMERGE@|${INTLTOOL_MSGMERGE}|g" \
25200       -e "s|@INTLTOOL_XGETTEXT@|${INTLTOOL_XGETTEXT}|g" \
25201       -e "s|@INTLTOOL_PERL@|${INTLTOOL_PERL}|g" \
25202         < ${ac_aux_dir}/${file}.in > ${file}.out
25203   if cmp -s ${file} ${file}.out 2>/dev/null; then
25204     rm -f ${file}.out
25205   else
25206     mv -f ${file}.out ${file}
25207   fi
25208   chmod ugo+x ${file}
25209   chmod u+w ${file}
25210 done
25211
25212  ;;
25213     default-1 ) 
25214     for ac_file in $CONFIG_FILES; do
25215       # Support "outfile[:infile[:infile...]]"
25216       case "$ac_file" in
25217         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
25218       esac
25219       # PO directories have a Makefile.in generated from Makefile.in.in.
25220       case "$ac_file" in */Makefile.in)
25221         # Adjust a relative srcdir.
25222         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
25223         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
25224         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
25225         # In autoconf-2.13 it is called $ac_given_srcdir.
25226         # In autoconf-2.50 it is called $srcdir.
25227         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
25228         case "$ac_given_srcdir" in
25229           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
25230           /*) top_srcdir="$ac_given_srcdir" ;;
25231           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
25232         esac
25233         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
25234           rm -f "$ac_dir/POTFILES"
25235           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
25236           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
25237           POMAKEFILEDEPS="POTFILES.in"
25238           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
25239           # on $ac_dir but don't depend on user-specified configuration
25240           # parameters.
25241           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
25242             # The LINGUAS file contains the set of available languages.
25243             if test -n "$OBSOLETE_ALL_LINGUAS"; then
25244               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
25245             fi
25246             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
25247             # Hide the ALL_LINGUAS assigment from automake.
25248             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
25249             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
25250           else
25251             # The set of available languages was given in configure.in.
25252             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
25253           fi
25254           # Compute POFILES
25255           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
25256           # Compute UPDATEPOFILES
25257           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
25258           # Compute DUMMYPOFILES
25259           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
25260           # Compute GMOFILES
25261           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
25262           case "$ac_given_srcdir" in
25263             .) srcdirpre= ;;
25264             *) srcdirpre='$(srcdir)/' ;;
25265           esac
25266           POFILES=
25267           UPDATEPOFILES=
25268           DUMMYPOFILES=
25269           GMOFILES=
25270           for lang in $ALL_LINGUAS; do
25271             POFILES="$POFILES $srcdirpre$lang.po"
25272             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
25273             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
25274             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
25275           done
25276           # CATALOGS depends on both $ac_dir and the user's LINGUAS
25277           # environment variable.
25278           INST_LINGUAS=
25279           if test -n "$ALL_LINGUAS"; then
25280             for presentlang in $ALL_LINGUAS; do
25281               useit=no
25282               if test "%UNSET%" != "$LINGUAS"; then
25283                 desiredlanguages="$LINGUAS"
25284               else
25285                 desiredlanguages="$ALL_LINGUAS"
25286               fi
25287               for desiredlang in $desiredlanguages; do
25288                 # Use the presentlang catalog if desiredlang is
25289                 #   a. equal to presentlang, or
25290                 #   b. a variant of presentlang (because in this case,
25291                 #      presentlang can be used as a fallback for messages
25292                 #      which are not translated in the desiredlang catalog).
25293                 case "$desiredlang" in
25294                   "$presentlang"*) useit=yes;;
25295                 esac
25296               done
25297               if test $useit = yes; then
25298                 INST_LINGUAS="$INST_LINGUAS $presentlang"
25299               fi
25300             done
25301           fi
25302           CATALOGS=
25303           if test -n "$INST_LINGUAS"; then
25304             for lang in $INST_LINGUAS; do
25305               CATALOGS="$CATALOGS $lang.gmo"
25306             done
25307           fi
25308           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
25309           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"
25310           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
25311             if test -f "$f"; then
25312               case "$f" in
25313                 *.orig | *.bak | *~) ;;
25314                 *) cat "$f" >> "$ac_dir/Makefile" ;;
25315               esac
25316             fi
25317           done
25318         fi
25319         ;;
25320       esac
25321     done ;;
25322     po/stamp-it ) 
25323     rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp"
25324     >"po/stamp-it.tmp"
25325     sed '/^#/d
25326          s/^[[].*] *//
25327          /^[    ]*$/d
25328         '"s|^|  $ac_top_srcdir/|" \
25329       "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES"
25330     
25331     if test ! -f "po/Makefile"; then
25332       { { echo "$as_me:$LINENO: error: po/Makefile is not ready." >&5
25333 echo "$as_me: error: po/Makefile is not ready." >&2;}
25334    { (exit 1); exit 1; }; }
25335     fi
25336     mv "po/Makefile" "po/Makefile.tmp"
25337     sed '/^POTFILES =/,/[^\\]$/ {
25338                 /^POTFILES =/!d
25339                 r po/POTFILES
25340           }
25341          ' "po/Makefile.tmp" >"po/Makefile"
25342     rm -f "po/Makefile.tmp"
25343     mv "po/stamp-it.tmp" "po/stamp-it"
25344    ;;
25345   esac
25346 done
25347 _ACEOF
25348
25349 cat >>$CONFIG_STATUS <<\_ACEOF
25350
25351 { (exit 0); exit 0; }
25352 _ACEOF
25353 chmod +x $CONFIG_STATUS
25354 ac_clean_files=$ac_clean_files_save
25355
25356
25357 # configure is writing to config.log, and then calls config.status.
25358 # config.status does its own redirection, appending to config.log.
25359 # Unfortunately, on DOS this fails, as config.log is still kept open
25360 # by configure, so config.status won't be able to write to it; its
25361 # output is simply discarded.  So we exec the FD to /dev/null,
25362 # effectively closing config.log, so it can be properly (re)opened and
25363 # appended to by config.status.  When coming back to configure, we
25364 # need to make the FD available again.
25365 if test "$no_create" != yes; then
25366   ac_cs_success=:
25367   ac_config_status_args=
25368   test "$silent" = yes &&
25369     ac_config_status_args="$ac_config_status_args --quiet"
25370   exec 5>/dev/null
25371   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25372   exec 5>>config.log
25373   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25374   # would make configure fail if this is the last instruction.
25375   $ac_cs_success || { (exit 1); exit 1; }
25376 fi
25377
25378
25379
25380 echo ------------------------------------------------------------------------
25381 echo 'nls is available? '$_nls_avail
25382 echo 'zlib compression:                ' $ok_zlib
25383 echo 'Calendar support:                ' $ok_libical
25384 echo 'Character set conversion support:' $ok_iconv
25385 echo 'National language support:       ' $ok_nls
25386 echo