a3be813e2c6fcddee526fbbfd9e6ca582e6a9934
[citadel.git] / webcit / autom4te.cache / output.1
1 @%:@! /bin/sh
2 @%:@ Guess values for system-dependent variables and create Makefiles.
3 @%:@ Generated by GNU Autoconf 2.59 for webcit 6.80.
4 @%:@
5 @%:@ Report bugs to <uncensored.citadel.org>.
6 @%:@ 
7 @%:@ Copyright (C) 2003 Free Software Foundation, Inc.
8 @%:@ This configure script is free software; the Free Software Foundation
9 @%:@ gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization.  ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22   set -o posix
23 fi
24 DUALCASE=1; export DUALCASE # for MKS sh
25
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28   as_unset=unset
29 else
30   as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
42   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44   LC_TELEPHONE LC_TIME
45 do
46   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47     eval $as_var=C; export $as_var
48   else
49     $as_unset $as_var
50   fi
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55   as_expr=expr
56 else
57   as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61   as_basename=basename
62 else
63   as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70          X"$0" : 'X\(//\)$' \| \
71          X"$0" : 'X\(/\)$' \| \
72          .     : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75           /^X\/\(\/\/\)$/{ s//\1/; q; }
76           /^X\/\(\/\).*/{ s//\1/; q; }
77           s/.*/./; q'`
78
79
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90   echo "#! /bin/sh" >conf$$.sh
91   echo  "exit 0"   >>conf$$.sh
92   chmod +x conf$$.sh
93   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94     PATH_SEPARATOR=';'
95   else
96     PATH_SEPARATOR=:
97   fi
98   rm -f conf$$.sh
99 fi
100
101
102   as_lineno_1=$LINENO
103   as_lineno_2=$LINENO
104   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105   test "x$as_lineno_1" != "x$as_lineno_2" &&
106   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107   # Find who we are.  Look in the path if we contain no path at all
108   # relative or not.
109   case $0 in
110     *[\\/]* ) as_myself=$0 ;;
111     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114   IFS=$as_save_IFS
115   test -z "$as_dir" && as_dir=.
116   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
118
119        ;;
120   esac
121   # We did not find ourselves, most probably we were run as `sh COMMAND'
122   # in which case we are not to be found in the path.
123   if test "x$as_myself" = x; then
124     as_myself=$0
125   fi
126   if test ! -f "$as_myself"; then
127     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128    { (exit 1); exit 1; }; }
129   fi
130   case $CONFIG_SHELL in
131   '')
132     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
135   IFS=$as_save_IFS
136   test -z "$as_dir" && as_dir=.
137   for as_base in sh bash ksh sh5; do
138          case $as_dir in
139          /*)
140            if ("$as_dir/$as_base" -c '
141   as_lineno_1=$LINENO
142   as_lineno_2=$LINENO
143   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144   test "x$as_lineno_1" != "x$as_lineno_2" &&
145   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148              CONFIG_SHELL=$as_dir/$as_base
149              export CONFIG_SHELL
150              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151            fi;;
152          esac
153        done
154 done
155 ;;
156   esac
157
158   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159   # uniformly replaced by the line number.  The first 'sed' inserts a
160   # line-number line before each line; the second 'sed' does the real
161   # work.  The second script uses 'N' to pair each line-number line
162   # with the numbered line, and appends trailing '-' during
163   # substitution so that $LINENO is not a special case at line end.
164   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166   sed '=' <$as_myself |
167     sed '
168       N
169       s,$,-,
170       : loop
171       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172       t loop
173       s,-$,,
174       s,^['$as_cr_digits']*\n,,
175     ' >$as_me.lineno &&
176   chmod +x $as_me.lineno ||
177     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178    { (exit 1); exit 1; }; }
179
180   # Don't try to exec as it changes $[0], causing all sort of problems
181   # (the dirname of $[0] is not the place where we might find the
182   # original and so on.  Autoconf is especially sensible to this).
183   . ./$as_me.lineno
184   # Exit status is that of the last command.
185   exit
186 }
187
188
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190   *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T='      ' ;;
192   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197   as_expr=expr
198 else
199   as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205   # We could just check for DJGPP; but this test a) works b) is more generic
206   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207   if test -f conf$$.exe; then
208     # Don't use ln at all; we don't have any links
209     as_ln_s='cp -p'
210   else
211     as_ln_s='ln -s'
212   fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214   as_ln_s=ln
215 else
216   as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221   as_mkdir_p=:
222 else
223   test -d ./-p && rmdir ./-p
224   as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS="   $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
246
247 # Check that we are running under the correct shell.
248 SHELL=${CONFIG_SHELL-/bin/sh}
249
250 case X$ECHO in
251 X*--fallback-echo)
252   # Remove one level of quotation (which was required for Make).
253   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
254   ;;
255 esac
256
257 echo=${ECHO-echo}
258 if test "X$1" = X--no-reexec; then
259   # Discard the --no-reexec flag, and continue.
260   shift
261 elif test "X$1" = X--fallback-echo; then
262   # Avoid inline document here, it may be left over
263   :
264 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265   # Yippee, $echo works!
266   :
267 else
268   # Restart under the correct shell.
269   exec $SHELL "$0" --no-reexec ${1+"$@"}
270 fi
271
272 if test "X$1" = X--fallback-echo; then
273   # used as fallback echo
274   shift
275   cat <<EOF
276 $*
277 EOF
278   exit 0
279 fi
280
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
282 # if CDPATH is set.
283 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
284
285 if test -z "$ECHO"; then
286 if test "X${echo_test_string+set}" != Xset; then
287 # find a string as large as possible, as long as the shell can cope with it
288   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
291        echo_test_string=`eval $cmd` &&
292        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293     then
294       break
295     fi
296   done
297 fi
298
299 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301    test "X$echo_testing_string" = "X$echo_test_string"; then
302   :
303 else
304   # The Solaris, AIX, and Digital Unix default echo programs unquote
305   # backslashes.  This makes it impossible to quote backslashes using
306   #   echo "$something" | sed 's/\\/\\\\/g'
307   #
308   # So, first we look for a working echo in the user's PATH.
309
310   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311   for dir in $PATH /usr/ucb; do
312     IFS="$lt_save_ifs"
313     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316        test "X$echo_testing_string" = "X$echo_test_string"; then
317       echo="$dir/echo"
318       break
319     fi
320   done
321   IFS="$lt_save_ifs"
322
323   if test "X$echo" = Xecho; then
324     # We didn't find a better echo, so look for alternatives.
325     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327        test "X$echo_testing_string" = "X$echo_test_string"; then
328       # This shell has a builtin print -r that does the trick.
329       echo='print -r'
330     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331          test "X$CONFIG_SHELL" != X/bin/ksh; then
332       # If we have ksh, try running configure again with it.
333       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334       export ORIGINAL_CONFIG_SHELL
335       CONFIG_SHELL=/bin/ksh
336       export CONFIG_SHELL
337       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338     else
339       # Try using printf.
340       echo='printf %s\n'
341       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343          test "X$echo_testing_string" = "X$echo_test_string"; then
344         # Cool, printf works
345         :
346       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347            test "X$echo_testing_string" = 'X\t' &&
348            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349            test "X$echo_testing_string" = "X$echo_test_string"; then
350         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351         export CONFIG_SHELL
352         SHELL="$CONFIG_SHELL"
353         export SHELL
354         echo="$CONFIG_SHELL $0 --fallback-echo"
355       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356            test "X$echo_testing_string" = 'X\t' &&
357            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358            test "X$echo_testing_string" = "X$echo_test_string"; then
359         echo="$CONFIG_SHELL $0 --fallback-echo"
360       else
361         # maybe with a smaller string...
362         prev=:
363
364         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366           then
367             break
368           fi
369           prev="$cmd"
370         done
371
372         if test "$prev" != 'sed 50q "$0"'; then
373           echo_test_string=`eval $prev`
374           export echo_test_string
375           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376         else
377           # Oops.  We lost completely, so just stick with echo.
378           echo=echo
379         fi
380       fi
381     fi
382   fi
383 fi
384 fi
385
386 # Copy echo and quote the copy suitably for passing to libtool from
387 # the Makefile, instead of quoting the original, which is used later.
388 ECHO=$echo
389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
391 fi
392
393
394
395
396 tagnames=${tagnames+${tagnames},}CXX
397
398 tagnames=${tagnames+${tagnames},}F77
399
400 # Name of the host.
401 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402 # so uname gets run too.
403 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
405 exec 6>&1
406
407 #
408 # Initializations.
409 #
410 ac_default_prefix=/usr/local
411 ac_config_libobj_dir=.
412 cross_compiling=no
413 subdirs=
414 MFLAGS=
415 MAKEFLAGS=
416 SHELL=${CONFIG_SHELL-/bin/sh}
417
418 # Maximum number of lines to put in a shell here document.
419 # This variable seems obsolete.  It should probably be removed, and
420 # only ac_max_sed_lines should be used.
421 : ${ac_max_here_lines=38}
422
423 # Identity of this package.
424 PACKAGE_NAME='webcit'
425 PACKAGE_TARNAME='webcit'
426 PACKAGE_VERSION='6.80'
427 PACKAGE_STRING='webcit 6.80'
428 PACKAGE_BUGREPORT='uncensored.citadel.org'
429
430 # Factoring default headers for most tests.
431 ac_includes_default="\
432 #include <stdio.h>
433 #if HAVE_SYS_TYPES_H
434 # include <sys/types.h>
435 #endif
436 #if HAVE_SYS_STAT_H
437 # include <sys/stat.h>
438 #endif
439 #if STDC_HEADERS
440 # include <stdlib.h>
441 # include <stddef.h>
442 #else
443 # if HAVE_STDLIB_H
444 #  include <stdlib.h>
445 # endif
446 #endif
447 #if HAVE_STRING_H
448 # if !STDC_HEADERS && HAVE_MEMORY_H
449 #  include <memory.h>
450 # endif
451 # include <string.h>
452 #endif
453 #if HAVE_STRINGS_H
454 # include <strings.h>
455 #endif
456 #if HAVE_INTTYPES_H
457 # include <inttypes.h>
458 #else
459 # if HAVE_STDINT_H
460 #  include <stdint.h>
461 # endif
462 #endif
463 #if HAVE_UNISTD_H
464 # include <unistd.h>
465 #endif"
466
467 ac_default_prefix=/usr/local/webcit
468 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL PROG_SUBDIRS SED PTHREAD_DEFS LIB@&t@OBJS INTLTOOL_DESKTOP_RULE INTLTOOL_DIRECTORY_RULE INTLTOOL_KEYS_RULE INTLTOOL_PROP_RULE INTLTOOL_OAF_RULE INTLTOOL_PONG_RULE INTLTOOL_SERVER_RULE INTLTOOL_SHEET_RULE INTLTOOL_SOUNDLIST_RULE INTLTOOL_UI_RULE INTLTOOL_XAM_RULE INTLTOOL_KBD_RULE INTLTOOL_XML_RULE INTLTOOL_XML_NOMERGE_RULE INTLTOOL_CAVES_RULE INTLTOOL_SCHEMAS_RULE INTLTOOL_THEME_RULE INTLTOOL_EXTRACT INTLTOOL_MERGE INTLTOOL_UPDATE INTLTOOL_PERL INTLTOOL_ICONV INTLTOOL_MSGFMT INTLTOOL_MSGMERGE INTLTOOL_XGETTEXT MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE LIBICONV LTLIBICONV INTLLIBS LIBINTL LTLIBINTL POSUB SETUP_LIBS staticdir editordir LTLIBOBJS'
469 ac_subst_files=''
470
471 # Initialize some variables set by options.
472 ac_init_help=
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
476 cache_file=/dev/null
477 exec_prefix=NONE
478 no_create=
479 no_recursion=
480 prefix=NONE
481 program_prefix=NONE
482 program_suffix=NONE
483 program_transform_name=s,x,x,
484 silent=
485 site=
486 srcdir=
487 verbose=
488 x_includes=NONE
489 x_libraries=NONE
490
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
508
509 ac_prev=
510 for ac_option
511 do
512   # If the previous option needs an argument, assign it.
513   if test -n "$ac_prev"; then
514     eval "$ac_prev=\$ac_option"
515     ac_prev=
516     continue
517   fi
518
519   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
521   # Accept the important Cygnus configure options, so we can diagnose typos.
522
523   case $ac_option in
524
525   -bindir | --bindir | --bindi | --bind | --bin | --bi)
526     ac_prev=bindir ;;
527   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528     bindir=$ac_optarg ;;
529
530   -build | --build | --buil | --bui | --bu)
531     ac_prev=build_alias ;;
532   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533     build_alias=$ac_optarg ;;
534
535   -cache-file | --cache-file | --cache-fil | --cache-fi \
536   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537     ac_prev=cache_file ;;
538   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540     cache_file=$ac_optarg ;;
541
542   --config-cache | -C)
543     cache_file=config.cache ;;
544
545   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546     ac_prev=datadir ;;
547   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548   | --da=*)
549     datadir=$ac_optarg ;;
550
551   -disable-* | --disable-*)
552     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553     # Reject names that are not valid shell variable names.
554     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556    { (exit 1); exit 1; }; }
557     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558     eval "enable_$ac_feature=no" ;;
559
560   -enable-* | --enable-*)
561     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562     # Reject names that are not valid shell variable names.
563     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565    { (exit 1); exit 1; }; }
566     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567     case $ac_option in
568       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569       *) ac_optarg=yes ;;
570     esac
571     eval "enable_$ac_feature='$ac_optarg'" ;;
572
573   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575   | --exec | --exe | --ex)
576     ac_prev=exec_prefix ;;
577   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579   | --exec=* | --exe=* | --ex=*)
580     exec_prefix=$ac_optarg ;;
581
582   -gas | --gas | --ga | --g)
583     # Obsolete; use --with-gas.
584     with_gas=yes ;;
585
586   -help | --help | --hel | --he | -h)
587     ac_init_help=long ;;
588   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589     ac_init_help=recursive ;;
590   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591     ac_init_help=short ;;
592
593   -host | --host | --hos | --ho)
594     ac_prev=host_alias ;;
595   -host=* | --host=* | --hos=* | --ho=*)
596     host_alias=$ac_optarg ;;
597
598   -includedir | --includedir | --includedi | --included | --include \
599   | --includ | --inclu | --incl | --inc)
600     ac_prev=includedir ;;
601   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602   | --includ=* | --inclu=* | --incl=* | --inc=*)
603     includedir=$ac_optarg ;;
604
605   -infodir | --infodir | --infodi | --infod | --info | --inf)
606     ac_prev=infodir ;;
607   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608     infodir=$ac_optarg ;;
609
610   -libdir | --libdir | --libdi | --libd)
611     ac_prev=libdir ;;
612   -libdir=* | --libdir=* | --libdi=* | --libd=*)
613     libdir=$ac_optarg ;;
614
615   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616   | --libexe | --libex | --libe)
617     ac_prev=libexecdir ;;
618   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619   | --libexe=* | --libex=* | --libe=*)
620     libexecdir=$ac_optarg ;;
621
622   -localstatedir | --localstatedir | --localstatedi | --localstated \
623   | --localstate | --localstat | --localsta | --localst \
624   | --locals | --local | --loca | --loc | --lo)
625     ac_prev=localstatedir ;;
626   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629     localstatedir=$ac_optarg ;;
630
631   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632     ac_prev=mandir ;;
633   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634     mandir=$ac_optarg ;;
635
636   -nfp | --nfp | --nf)
637     # Obsolete; use --without-fp.
638     with_fp=no ;;
639
640   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641   | --no-cr | --no-c | -n)
642     no_create=yes ;;
643
644   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646     no_recursion=yes ;;
647
648   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650   | --oldin | --oldi | --old | --ol | --o)
651     ac_prev=oldincludedir ;;
652   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655     oldincludedir=$ac_optarg ;;
656
657   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658     ac_prev=prefix ;;
659   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660     prefix=$ac_optarg ;;
661
662   -program-prefix | --program-prefix | --program-prefi | --program-pref \
663   | --program-pre | --program-pr | --program-p)
664     ac_prev=program_prefix ;;
665   -program-prefix=* | --program-prefix=* | --program-prefi=* \
666   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667     program_prefix=$ac_optarg ;;
668
669   -program-suffix | --program-suffix | --program-suffi | --program-suff \
670   | --program-suf | --program-su | --program-s)
671     ac_prev=program_suffix ;;
672   -program-suffix=* | --program-suffix=* | --program-suffi=* \
673   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674     program_suffix=$ac_optarg ;;
675
676   -program-transform-name | --program-transform-name \
677   | --program-transform-nam | --program-transform-na \
678   | --program-transform-n | --program-transform- \
679   | --program-transform | --program-transfor \
680   | --program-transfo | --program-transf \
681   | --program-trans | --program-tran \
682   | --progr-tra | --program-tr | --program-t)
683     ac_prev=program_transform_name ;;
684   -program-transform-name=* | --program-transform-name=* \
685   | --program-transform-nam=* | --program-transform-na=* \
686   | --program-transform-n=* | --program-transform-=* \
687   | --program-transform=* | --program-transfor=* \
688   | --program-transfo=* | --program-transf=* \
689   | --program-trans=* | --program-tran=* \
690   | --progr-tra=* | --program-tr=* | --program-t=*)
691     program_transform_name=$ac_optarg ;;
692
693   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694   | -silent | --silent | --silen | --sile | --sil)
695     silent=yes ;;
696
697   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698     ac_prev=sbindir ;;
699   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700   | --sbi=* | --sb=*)
701     sbindir=$ac_optarg ;;
702
703   -sharedstatedir | --sharedstatedir | --sharedstatedi \
704   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705   | --sharedst | --shareds | --shared | --share | --shar \
706   | --sha | --sh)
707     ac_prev=sharedstatedir ;;
708   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711   | --sha=* | --sh=*)
712     sharedstatedir=$ac_optarg ;;
713
714   -site | --site | --sit)
715     ac_prev=site ;;
716   -site=* | --site=* | --sit=*)
717     site=$ac_optarg ;;
718
719   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720     ac_prev=srcdir ;;
721   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722     srcdir=$ac_optarg ;;
723
724   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725   | --syscon | --sysco | --sysc | --sys | --sy)
726     ac_prev=sysconfdir ;;
727   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729     sysconfdir=$ac_optarg ;;
730
731   -target | --target | --targe | --targ | --tar | --ta | --t)
732     ac_prev=target_alias ;;
733   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734     target_alias=$ac_optarg ;;
735
736   -v | -verbose | --verbose | --verbos | --verbo | --verb)
737     verbose=yes ;;
738
739   -version | --version | --versio | --versi | --vers | -V)
740     ac_init_version=: ;;
741
742   -with-* | --with-*)
743     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744     # Reject names that are not valid shell variable names.
745     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746       { echo "$as_me: error: invalid package name: $ac_package" >&2
747    { (exit 1); exit 1; }; }
748     ac_package=`echo $ac_package| sed 's/-/_/g'`
749     case $ac_option in
750       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751       *) ac_optarg=yes ;;
752     esac
753     eval "with_$ac_package='$ac_optarg'" ;;
754
755   -without-* | --without-*)
756     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757     # Reject names that are not valid shell variable names.
758     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759       { echo "$as_me: error: invalid package name: $ac_package" >&2
760    { (exit 1); exit 1; }; }
761     ac_package=`echo $ac_package | sed 's/-/_/g'`
762     eval "with_$ac_package=no" ;;
763
764   --x)
765     # Obsolete; use --with-x.
766     with_x=yes ;;
767
768   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769   | --x-incl | --x-inc | --x-in | --x-i)
770     ac_prev=x_includes ;;
771   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773     x_includes=$ac_optarg ;;
774
775   -x-libraries | --x-libraries | --x-librarie | --x-librari \
776   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777     ac_prev=x_libraries ;;
778   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780     x_libraries=$ac_optarg ;;
781
782   -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784    { (exit 1); exit 1; }; }
785     ;;
786
787   *=*)
788     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789     # Reject names that are not valid shell variable names.
790     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792    { (exit 1); exit 1; }; }
793     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794     eval "$ac_envvar='$ac_optarg'"
795     export $ac_envvar ;;
796
797   *)
798     # FIXME: should be removed in autoconf 3.0.
799     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803     ;;
804
805   esac
806 done
807
808 if test -n "$ac_prev"; then
809   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810   { echo "$as_me: error: missing argument to $ac_option" >&2
811    { (exit 1); exit 1; }; }
812 fi
813
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
816 do
817   eval ac_val=$`echo $ac_var`
818   case $ac_val in
819     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821    { (exit 1); exit 1; }; };;
822   esac
823 done
824
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827               localstatedir libdir includedir oldincludedir infodir mandir
828 do
829   eval ac_val=$`echo $ac_var`
830   case $ac_val in
831     [\\/$]* | ?:[\\/]* ) ;;
832     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833    { (exit 1); exit 1; }; };;
834   esac
835 done
836
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
840 build=$build_alias
841 host=$host_alias
842 target=$target_alias
843
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846   if test "x$build_alias" = x; then
847     cross_compiling=maybe
848     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849     If a cross compiler is detected then cross compile mode will be used." >&2
850   elif test "x$build_alias" != "x$host_alias"; then
851     cross_compiling=yes
852   fi
853 fi
854
855 ac_tool_prefix=
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
858 test "$silent" = yes && exec 6>/dev/null
859
860
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863   ac_srcdir_defaulted=yes
864   # Try the directory containing this script, then its parent.
865   ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867          X"$0" : 'X\(//\)[^/]' \| \
868          X"$0" : 'X\(//\)$' \| \
869          X"$0" : 'X\(/\)' \| \
870          .     : '\(.\)' 2>/dev/null ||
871 echo X"$0" |
872     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874           /^X\(\/\/\)$/{ s//\1/; q; }
875           /^X\(\/\).*/{ s//\1/; q; }
876           s/.*/./; q'`
877   srcdir=$ac_confdir
878   if test ! -r $srcdir/$ac_unique_file; then
879     srcdir=..
880   fi
881 else
882   ac_srcdir_defaulted=no
883 fi
884 if test ! -r $srcdir/$ac_unique_file; then
885   if test "$ac_srcdir_defaulted" = yes; then
886     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887    { (exit 1); exit 1; }; }
888   else
889     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890    { (exit 1); exit 1; }; }
891   fi
892 fi
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895    { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CC_set=${CC+set}
910 ac_env_CC_value=$CC
911 ac_cv_env_CC_set=${CC+set}
912 ac_cv_env_CC_value=$CC
913 ac_env_CFLAGS_set=${CFLAGS+set}
914 ac_env_CFLAGS_value=$CFLAGS
915 ac_cv_env_CFLAGS_set=${CFLAGS+set}
916 ac_cv_env_CFLAGS_value=$CFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CPP_set=${CPP+set}
926 ac_env_CPP_value=$CPP
927 ac_cv_env_CPP_set=${CPP+set}
928 ac_cv_env_CPP_value=$CPP
929 ac_env_CXX_set=${CXX+set}
930 ac_env_CXX_value=$CXX
931 ac_cv_env_CXX_set=${CXX+set}
932 ac_cv_env_CXX_value=$CXX
933 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
934 ac_env_CXXFLAGS_value=$CXXFLAGS
935 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
936 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
937 ac_env_CXXCPP_set=${CXXCPP+set}
938 ac_env_CXXCPP_value=$CXXCPP
939 ac_cv_env_CXXCPP_set=${CXXCPP+set}
940 ac_cv_env_CXXCPP_value=$CXXCPP
941 ac_env_F77_set=${F77+set}
942 ac_env_F77_value=$F77
943 ac_cv_env_F77_set=${F77+set}
944 ac_cv_env_F77_value=$F77
945 ac_env_FFLAGS_set=${FFLAGS+set}
946 ac_env_FFLAGS_value=$FFLAGS
947 ac_cv_env_FFLAGS_set=${FFLAGS+set}
948 ac_cv_env_FFLAGS_value=$FFLAGS
949
950 #
951 # Report the --help message.
952 #
953 if test "$ac_init_help" = "long"; then
954   # Omit some internal or obsolete options to make the list less imposing.
955   # This message is too long to be a string in the A/UX 3.1 sh.
956   cat <<_ACEOF
957 \`configure' configures webcit 6.80 to adapt to many kinds of systems.
958
959 Usage: $0 [OPTION]... [VAR=VALUE]...
960
961 To assign environment variables (e.g., CC, CFLAGS...), specify them as
962 VAR=VALUE.  See below for descriptions of some of the useful variables.
963
964 Defaults for the options are specified in brackets.
965
966 Configuration:
967   -h, --help              display this help and exit
968       --help=short        display options specific to this package
969       --help=recursive    display the short help of all the included packages
970   -V, --version           display version information and exit
971   -q, --quiet, --silent   do not print \`checking...' messages
972       --cache-file=FILE   cache test results in FILE [disabled]
973   -C, --config-cache      alias for \`--cache-file=config.cache'
974   -n, --no-create         do not create output files
975       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
976
977 _ACEOF
978
979   cat <<_ACEOF
980 Installation directories:
981   --prefix=PREFIX         install architecture-independent files in PREFIX
982                           [$ac_default_prefix]
983   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
984                           [PREFIX]
985
986 By default, \`make install' will install all the files in
987 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
988 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989 for instance \`--prefix=\$HOME'.
990
991 For better control, use the options below.
992
993 Fine tuning of the installation directories:
994   --bindir=DIR           user executables [EPREFIX/bin]
995   --sbindir=DIR          system admin executables [EPREFIX/sbin]
996   --libexecdir=DIR       program executables [EPREFIX/libexec]
997   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
998   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
999   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1000   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1001   --libdir=DIR           object code libraries [EPREFIX/lib]
1002   --includedir=DIR       C header files [PREFIX/include]
1003   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1004   --infodir=DIR          info documentation [PREFIX/info]
1005   --mandir=DIR           man documentation [PREFIX/man]
1006 _ACEOF
1007
1008   cat <<\_ACEOF
1009
1010 Program names:
1011   --program-prefix=PREFIX            prepend PREFIX to installed program names
1012   --program-suffix=SUFFIX            append SUFFIX to installed program names
1013   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1014
1015 System types:
1016   --build=BUILD     configure for building on BUILD [guessed]
1017   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1018 _ACEOF
1019 fi
1020
1021 if test -n "$ac_init_help"; then
1022   case $ac_init_help in
1023      short | recursive ) echo "Configuration of webcit 6.80:";;
1024    esac
1025   cat <<\_ACEOF
1026
1027 Optional Features:
1028   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1029   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1030   --enable-shared@<:@=PKGS@:>@ 
1031                           build shared libraries @<:@default=yes@:>@
1032   --enable-static@<:@=PKGS@:>@ 
1033                           build static libraries @<:@default=yes@:>@
1034   --enable-fast-install@<:@=PKGS@:>@ 
1035                           optimize for fast installation @<:@default=yes@:>@
1036   --disable-dependency-tracking  speeds up one-time build
1037   --enable-dependency-tracking   do not reject slow dependency extractors
1038   --disable-libtool-lock  avoid locking (might break parallel builds)
1039   --disable-nls           do not use Native Language Support
1040   --disable-rpath         do not hardcode runtime library paths
1041
1042 Optional Packages:
1043   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1044   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1045   --with-gnu-ld           assume the C compiler uses GNU ld @<:@default=no@:>@
1046   --with-pic              try to use only PIC/non-PIC objects @<:@default=use
1047                           both@:>@
1048   --with-tags@<:@=TAGS@:>@ 
1049                           include additional configurations @<:@automatic@:>@
1050   --with-newt             use newt window library
1051   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1052   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1053   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1054   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1055   --without-libintl-prefix     don't search for libintl in includedir and libdir
1056   --with-rundir=DIR          where to find the citadel servers sockets (overridable by -h  at runtime.)
1057   --with-staticdir=DIR          where to put datafiles
1058   --with-staticrundir=DIR          where to search datafiles at runtime
1059   --with-editordir=DIR          where to search the editor at runtime
1060
1061 Some influential environment variables:
1062   CC          C compiler command
1063   CFLAGS      C compiler flags
1064   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1065               nonstandard directory <lib dir>
1066   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1067               headers in a nonstandard directory <include dir>
1068   CPP         C preprocessor
1069   CXX         C++ compiler command
1070   CXXFLAGS    C++ compiler flags
1071   CXXCPP      C++ preprocessor
1072   F77         Fortran 77 compiler command
1073   FFLAGS      Fortran 77 compiler flags
1074
1075 Use these variables to override the choices made by `configure' or to help
1076 it to find libraries and programs with nonstandard names/locations.
1077
1078 Report bugs to <uncensored.citadel.org>.
1079 _ACEOF
1080 fi
1081
1082 if test "$ac_init_help" = "recursive"; then
1083   # If there are subdirs, report their specific --help.
1084   ac_popdir=`pwd`
1085   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1086     test -d $ac_dir || continue
1087     ac_builddir=.
1088
1089 if test "$ac_dir" != .; then
1090   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1091   # A "../" for each directory in $ac_dir_suffix.
1092   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1093 else
1094   ac_dir_suffix= ac_top_builddir=
1095 fi
1096
1097 case $srcdir in
1098   .)  # No --srcdir option.  We are building in place.
1099     ac_srcdir=.
1100     if test -z "$ac_top_builddir"; then
1101        ac_top_srcdir=.
1102     else
1103        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1104     fi ;;
1105   [\\/]* | ?:[\\/]* )  # Absolute path.
1106     ac_srcdir=$srcdir$ac_dir_suffix;
1107     ac_top_srcdir=$srcdir ;;
1108   *) # Relative path.
1109     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1110     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1111 esac
1112
1113 # Do not use `cd foo && pwd` to compute absolute paths, because
1114 # the directories may not exist.
1115 case `pwd` in
1116 .) ac_abs_builddir="$ac_dir";;
1117 *)
1118   case "$ac_dir" in
1119   .) ac_abs_builddir=`pwd`;;
1120   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1121   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1122   esac;;
1123 esac
1124 case $ac_abs_builddir in
1125 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1126 *)
1127   case ${ac_top_builddir}. in
1128   .) ac_abs_top_builddir=$ac_abs_builddir;;
1129   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1130   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1131   esac;;
1132 esac
1133 case $ac_abs_builddir in
1134 .) ac_abs_srcdir=$ac_srcdir;;
1135 *)
1136   case $ac_srcdir in
1137   .) ac_abs_srcdir=$ac_abs_builddir;;
1138   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1139   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1140   esac;;
1141 esac
1142 case $ac_abs_builddir in
1143 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1144 *)
1145   case $ac_top_srcdir in
1146   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1147   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1148   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1149   esac;;
1150 esac
1151
1152     cd $ac_dir
1153     # Check for guested configure; otherwise get Cygnus style configure.
1154     if test -f $ac_srcdir/configure.gnu; then
1155       echo
1156       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1157     elif test -f $ac_srcdir/configure; then
1158       echo
1159       $SHELL $ac_srcdir/configure  --help=recursive
1160     elif test -f $ac_srcdir/configure.ac ||
1161            test -f $ac_srcdir/configure.in; then
1162       echo
1163       $ac_configure --help
1164     else
1165       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1166     fi
1167     cd $ac_popdir
1168   done
1169 fi
1170
1171 test -n "$ac_init_help" && exit 0
1172 if $ac_init_version; then
1173   cat <<\_ACEOF
1174 webcit configure 6.80
1175 generated by GNU Autoconf 2.59
1176
1177 Copyright (C) 2003 Free Software Foundation, Inc.
1178 This configure script is free software; the Free Software Foundation
1179 gives unlimited permission to copy, distribute and modify it.
1180 _ACEOF
1181   exit 0
1182 fi
1183 exec 5>config.log
1184 cat >&5 <<_ACEOF
1185 This file contains any messages produced by compilers while
1186 running configure, to aid debugging if configure makes a mistake.
1187
1188 It was created by webcit $as_me 6.80, which was
1189 generated by GNU Autoconf 2.59.  Invocation command line was
1190
1191   $ $0 $@
1192
1193 _ACEOF
1194 {
1195 cat <<_ASUNAME
1196 @%:@@%:@ --------- @%:@@%:@
1197 @%:@@%:@ Platform. @%:@@%:@
1198 @%:@@%:@ --------- @%:@@%:@
1199
1200 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1201 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1202 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1203 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1204 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1205
1206 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1207 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1208
1209 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1210 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1211 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1212 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1213 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1214 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1215 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1216
1217 _ASUNAME
1218
1219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1220 for as_dir in $PATH
1221 do
1222   IFS=$as_save_IFS
1223   test -z "$as_dir" && as_dir=.
1224   echo "PATH: $as_dir"
1225 done
1226
1227 } >&5
1228
1229 cat >&5 <<_ACEOF
1230
1231
1232 @%:@@%:@ ----------- @%:@@%:@
1233 @%:@@%:@ Core tests. @%:@@%:@
1234 @%:@@%:@ ----------- @%:@@%:@
1235
1236 _ACEOF
1237
1238
1239 # Keep a trace of the command line.
1240 # Strip out --no-create and --no-recursion so they do not pile up.
1241 # Strip out --silent because we don't want to record it for future runs.
1242 # Also quote any args containing shell meta-characters.
1243 # Make two passes to allow for proper duplicate-argument suppression.
1244 ac_configure_args=
1245 ac_configure_args0=
1246 ac_configure_args1=
1247 ac_sep=
1248 ac_must_keep_next=false
1249 for ac_pass in 1 2
1250 do
1251   for ac_arg
1252   do
1253     case $ac_arg in
1254     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1255     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1256     | -silent | --silent | --silen | --sile | --sil)
1257       continue ;;
1258     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1259       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1260     esac
1261     case $ac_pass in
1262     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1263     2)
1264       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1265       if test $ac_must_keep_next = true; then
1266         ac_must_keep_next=false # Got value, back to normal.
1267       else
1268         case $ac_arg in
1269           *=* | --config-cache | -C | -disable-* | --disable-* \
1270           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1271           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1272           | -with-* | --with-* | -without-* | --without-* | --x)
1273             case "$ac_configure_args0 " in
1274               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1275             esac
1276             ;;
1277           -* ) ac_must_keep_next=true ;;
1278         esac
1279       fi
1280       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1281       # Get rid of the leading space.
1282       ac_sep=" "
1283       ;;
1284     esac
1285   done
1286 done
1287 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1288 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1289
1290 # When interrupted or exit'd, cleanup temporary files, and complete
1291 # config.log.  We remove comments because anyway the quotes in there
1292 # would cause problems or look ugly.
1293 # WARNING: Be sure not to use single quotes in there, as some shells,
1294 # such as our DU 5.0 friend, will then `close' the trap.
1295 trap 'exit_status=$?
1296   # Save into config.log some information that might help in debugging.
1297   {
1298     echo
1299
1300     cat <<\_ASBOX
1301 @%:@@%:@ ---------------- @%:@@%:@
1302 @%:@@%:@ Cache variables. @%:@@%:@
1303 @%:@@%:@ ---------------- @%:@@%:@
1304 _ASBOX
1305     echo
1306     # The following way of writing the cache mishandles newlines in values,
1307 {
1308   (set) 2>&1 |
1309     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1310     *ac_space=\ *)
1311       sed -n \
1312         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1313           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1314       ;;
1315     *)
1316       sed -n \
1317         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1318       ;;
1319     esac;
1320 }
1321     echo
1322
1323     cat <<\_ASBOX
1324 @%:@@%:@ ----------------- @%:@@%:@
1325 @%:@@%:@ Output variables. @%:@@%:@
1326 @%:@@%:@ ----------------- @%:@@%:@
1327 _ASBOX
1328     echo
1329     for ac_var in $ac_subst_vars
1330     do
1331       eval ac_val=$`echo $ac_var`
1332       echo "$ac_var='"'"'$ac_val'"'"'"
1333     done | sort
1334     echo
1335
1336     if test -n "$ac_subst_files"; then
1337       cat <<\_ASBOX
1338 @%:@@%:@ ------------- @%:@@%:@
1339 @%:@@%:@ Output files. @%:@@%:@
1340 @%:@@%:@ ------------- @%:@@%:@
1341 _ASBOX
1342       echo
1343       for ac_var in $ac_subst_files
1344       do
1345         eval ac_val=$`echo $ac_var`
1346         echo "$ac_var='"'"'$ac_val'"'"'"
1347       done | sort
1348       echo
1349     fi
1350
1351     if test -s confdefs.h; then
1352       cat <<\_ASBOX
1353 @%:@@%:@ ----------- @%:@@%:@
1354 @%:@@%:@ confdefs.h. @%:@@%:@
1355 @%:@@%:@ ----------- @%:@@%:@
1356 _ASBOX
1357       echo
1358       sed "/^$/d" confdefs.h | sort
1359       echo
1360     fi
1361     test "$ac_signal" != 0 &&
1362       echo "$as_me: caught signal $ac_signal"
1363     echo "$as_me: exit $exit_status"
1364   } >&5
1365   rm -f core *.core &&
1366   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1367     exit $exit_status
1368      ' 0
1369 for ac_signal in 1 2 13 15; do
1370   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1371 done
1372 ac_signal=0
1373
1374 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1375 rm -rf conftest* confdefs.h
1376 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1377 echo >confdefs.h
1378
1379 # Predefined preprocessor variables.
1380
1381 cat >>confdefs.h <<_ACEOF
1382 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
1383 _ACEOF
1384
1385
1386 cat >>confdefs.h <<_ACEOF
1387 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1388 _ACEOF
1389
1390
1391 cat >>confdefs.h <<_ACEOF
1392 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1393 _ACEOF
1394
1395
1396 cat >>confdefs.h <<_ACEOF
1397 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
1398 _ACEOF
1399
1400
1401 cat >>confdefs.h <<_ACEOF
1402 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1403 _ACEOF
1404
1405
1406 # Let the site file select an alternate cache file if it wants to.
1407 # Prefer explicitly selected file to automatically selected ones.
1408 if test -z "$CONFIG_SITE"; then
1409   if test "x$prefix" != xNONE; then
1410     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1411   else
1412     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1413   fi
1414 fi
1415 for ac_site_file in $CONFIG_SITE; do
1416   if test -r "$ac_site_file"; then
1417     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1418 echo "$as_me: loading site script $ac_site_file" >&6;}
1419     sed 's/^/| /' "$ac_site_file" >&5
1420     . "$ac_site_file"
1421   fi
1422 done
1423
1424 if test -r "$cache_file"; then
1425   # Some versions of bash will fail to source /dev/null (special
1426   # files actually), so we avoid doing that.
1427   if test -f "$cache_file"; then
1428     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1429 echo "$as_me: loading cache $cache_file" >&6;}
1430     case $cache_file in
1431       [\\/]* | ?:[\\/]* ) . $cache_file;;
1432       *)                      . ./$cache_file;;
1433     esac
1434   fi
1435 else
1436   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1437 echo "$as_me: creating cache $cache_file" >&6;}
1438   >$cache_file
1439 fi
1440
1441 # Check that the precious variables saved in the cache have kept the same
1442 # value.
1443 ac_cache_corrupted=false
1444 for ac_var in `(set) 2>&1 |
1445                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1446   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1447   eval ac_new_set=\$ac_env_${ac_var}_set
1448   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1449   eval ac_new_val="\$ac_env_${ac_var}_value"
1450   case $ac_old_set,$ac_new_set in
1451     set,)
1452       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1453 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1454       ac_cache_corrupted=: ;;
1455     ,set)
1456       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1457 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1458       ac_cache_corrupted=: ;;
1459     ,);;
1460     *)
1461       if test "x$ac_old_val" != "x$ac_new_val"; then
1462         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1463 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1464         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1465 echo "$as_me:   former value:  $ac_old_val" >&2;}
1466         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1467 echo "$as_me:   current value: $ac_new_val" >&2;}
1468         ac_cache_corrupted=:
1469       fi;;
1470   esac
1471   # Pass precious variables to config.status.
1472   if test "$ac_new_set" = set; then
1473     case $ac_new_val in
1474     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1475       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1476     *) ac_arg=$ac_var=$ac_new_val ;;
1477     esac
1478     case " $ac_configure_args " in
1479       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1480       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1481     esac
1482   fi
1483 done
1484 if $ac_cache_corrupted; then
1485   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1486 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1487   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1488 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1489    { (exit 1); exit 1; }; }
1490 fi
1491
1492 ac_ext=c
1493 ac_cpp='$CPP $CPPFLAGS'
1494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525 cat >>confdefs.h <<\_ACEOF
1526 @%:@define _GNU_SOURCE 1
1527 _ACEOF
1528
1529
1530 am__api_version="1.9"
1531 ac_aux_dir=
1532 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1533   if test -f $ac_dir/install-sh; then
1534     ac_aux_dir=$ac_dir
1535     ac_install_sh="$ac_aux_dir/install-sh -c"
1536     break
1537   elif test -f $ac_dir/install.sh; then
1538     ac_aux_dir=$ac_dir
1539     ac_install_sh="$ac_aux_dir/install.sh -c"
1540     break
1541   elif test -f $ac_dir/shtool; then
1542     ac_aux_dir=$ac_dir
1543     ac_install_sh="$ac_aux_dir/shtool install -c"
1544     break
1545   fi
1546 done
1547 if test -z "$ac_aux_dir"; then
1548   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1549 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1550    { (exit 1); exit 1; }; }
1551 fi
1552 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1553 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1554 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1555
1556 # Find a good install program.  We prefer a C program (faster),
1557 # so one script is as good as another.  But avoid the broken or
1558 # incompatible versions:
1559 # SysV /etc/install, /usr/sbin/install
1560 # SunOS /usr/etc/install
1561 # IRIX /sbin/install
1562 # AIX /bin/install
1563 # AmigaOS /C/install, which installs bootblocks on floppy discs
1564 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1565 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1566 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1567 # OS/2's system install, which has a completely different semantic
1568 # ./install, which can be erroneously created by make from ./install.sh.
1569 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1570 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1571 if test -z "$INSTALL"; then
1572 if test "${ac_cv_path_install+set}" = set; then
1573   echo $ECHO_N "(cached) $ECHO_C" >&6
1574 else
1575   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1576 for as_dir in $PATH
1577 do
1578   IFS=$as_save_IFS
1579   test -z "$as_dir" && as_dir=.
1580   # Account for people who put trailing slashes in PATH elements.
1581 case $as_dir/ in
1582   ./ | .// | /cC/* | \
1583   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1584   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1585   /usr/ucb/* ) ;;
1586   *)
1587     # OSF1 and SCO ODT 3.0 have their own names for install.
1588     # Don't use installbsd from OSF since it installs stuff as root
1589     # by default.
1590     for ac_prog in ginstall scoinst install; do
1591       for ac_exec_ext in '' $ac_executable_extensions; do
1592         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1593           if test $ac_prog = install &&
1594             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1595             # AIX install.  It has an incompatible calling convention.
1596             :
1597           elif test $ac_prog = install &&
1598             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1599             # program-specific install script used by HP pwplus--don't use.
1600             :
1601           else
1602             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1603             break 3
1604           fi
1605         fi
1606       done
1607     done
1608     ;;
1609 esac
1610 done
1611
1612
1613 fi
1614   if test "${ac_cv_path_install+set}" = set; then
1615     INSTALL=$ac_cv_path_install
1616   else
1617     # As a last resort, use the slow shell script.  We don't cache a
1618     # path for INSTALL within a source directory, because that will
1619     # break other packages using the cache if that directory is
1620     # removed, or if the path is relative.
1621     INSTALL=$ac_install_sh
1622   fi
1623 fi
1624 echo "$as_me:$LINENO: result: $INSTALL" >&5
1625 echo "${ECHO_T}$INSTALL" >&6
1626
1627 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1628 # It thinks the first close brace ends the variable substitution.
1629 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1630
1631 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1632
1633 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1634
1635 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1636 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1637 # Just in case
1638 sleep 1
1639 echo timestamp > conftest.file
1640 # Do `set' in a subshell so we don't clobber the current shell's
1641 # arguments.  Must try -L first in case configure is actually a
1642 # symlink; some systems play weird games with the mod time of symlinks
1643 # (eg FreeBSD returns the mod time of the symlink's containing
1644 # directory).
1645 if (
1646    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1647    if test "$*" = "X"; then
1648       # -L didn't work.
1649       set X `ls -t $srcdir/configure conftest.file`
1650    fi
1651    rm -f conftest.file
1652    if test "$*" != "X $srcdir/configure conftest.file" \
1653       && test "$*" != "X conftest.file $srcdir/configure"; then
1654
1655       # If neither matched, then we have a broken ls.  This can happen
1656       # if, for instance, CONFIG_SHELL is bash and it inherits a
1657       # broken ls alias from the environment.  This has actually
1658       # happened.  Such a system could not be considered "sane".
1659       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1660 alias in your environment" >&5
1661 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1662 alias in your environment" >&2;}
1663    { (exit 1); exit 1; }; }
1664    fi
1665
1666    test "$2" = conftest.file
1667    )
1668 then
1669    # Ok.
1670    :
1671 else
1672    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1673 Check your system clock" >&5
1674 echo "$as_me: error: newly created file is older than distributed files!
1675 Check your system clock" >&2;}
1676    { (exit 1); exit 1; }; }
1677 fi
1678 echo "$as_me:$LINENO: result: yes" >&5
1679 echo "${ECHO_T}yes" >&6
1680 test "$program_prefix" != NONE &&
1681   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1682 # Use a double $ so make ignores it.
1683 test "$program_suffix" != NONE &&
1684   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1685 # Double any \ or $.  echo might interpret backslashes.
1686 # By default was `s,x,x', remove it if useless.
1687 cat <<\_ACEOF >conftest.sed
1688 s/[\\$]/&&/g;s/;s,x,x,$//
1689 _ACEOF
1690 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1691 rm conftest.sed
1692
1693 # expand $ac_aux_dir to an absolute path
1694 am_aux_dir=`cd $ac_aux_dir && pwd`
1695
1696 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1697 # Use eval to expand $SHELL
1698 if eval "$MISSING --run true"; then
1699   am_missing_run="$MISSING --run "
1700 else
1701   am_missing_run=
1702   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1703 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1704 fi
1705
1706 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1707   # We used to keeping the `.' as first argument, in order to
1708   # allow $(mkdir_p) to be used without argument.  As in
1709   #   $(mkdir_p) $(somedir)
1710   # where $(somedir) is conditionally defined.  However this is wrong
1711   # for two reasons:
1712   #  1. if the package is installed by a user who cannot write `.'
1713   #     make install will fail,
1714   #  2. the above comment should most certainly read
1715   #     $(mkdir_p) $(DESTDIR)$(somedir)
1716   #     so it does not work when $(somedir) is undefined and
1717   #     $(DESTDIR) is not.
1718   #  To support the latter case, we have to write
1719   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1720   #  so the `.' trick is pointless.
1721   mkdir_p='mkdir -p --'
1722 else
1723   # On NextStep and OpenStep, the `mkdir' command does not
1724   # recognize any option.  It will interpret all options as
1725   # directories to create, and then abort because `.' already
1726   # exists.
1727   for d in ./-p ./--version;
1728   do
1729     test -d $d && rmdir $d
1730   done
1731   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1732   if test -f "$ac_aux_dir/mkinstalldirs"; then
1733     mkdir_p='$(mkinstalldirs)'
1734   else
1735     mkdir_p='$(install_sh) -d'
1736   fi
1737 fi
1738
1739 for ac_prog in gawk mawk nawk awk
1740 do
1741   # Extract the first word of "$ac_prog", so it can be a program name with args.
1742 set dummy $ac_prog; ac_word=$2
1743 echo "$as_me:$LINENO: checking for $ac_word" >&5
1744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1745 if test "${ac_cv_prog_AWK+set}" = set; then
1746   echo $ECHO_N "(cached) $ECHO_C" >&6
1747 else
1748   if test -n "$AWK"; then
1749   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1750 else
1751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1752 for as_dir in $PATH
1753 do
1754   IFS=$as_save_IFS
1755   test -z "$as_dir" && as_dir=.
1756   for ac_exec_ext in '' $ac_executable_extensions; do
1757   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1758     ac_cv_prog_AWK="$ac_prog"
1759     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1760     break 2
1761   fi
1762 done
1763 done
1764
1765 fi
1766 fi
1767 AWK=$ac_cv_prog_AWK
1768 if test -n "$AWK"; then
1769   echo "$as_me:$LINENO: result: $AWK" >&5
1770 echo "${ECHO_T}$AWK" >&6
1771 else
1772   echo "$as_me:$LINENO: result: no" >&5
1773 echo "${ECHO_T}no" >&6
1774 fi
1775
1776   test -n "$AWK" && break
1777 done
1778
1779 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1780 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1781 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1782 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1783   echo $ECHO_N "(cached) $ECHO_C" >&6
1784 else
1785   cat >conftest.make <<\_ACEOF
1786 all:
1787         @echo 'ac_maketemp="$(MAKE)"'
1788 _ACEOF
1789 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1790 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1791 if test -n "$ac_maketemp"; then
1792   eval ac_cv_prog_make_${ac_make}_set=yes
1793 else
1794   eval ac_cv_prog_make_${ac_make}_set=no
1795 fi
1796 rm -f conftest.make
1797 fi
1798 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1799   echo "$as_me:$LINENO: result: yes" >&5
1800 echo "${ECHO_T}yes" >&6
1801   SET_MAKE=
1802 else
1803   echo "$as_me:$LINENO: result: no" >&5
1804 echo "${ECHO_T}no" >&6
1805   SET_MAKE="MAKE=${MAKE-make}"
1806 fi
1807
1808 rm -rf .tst 2>/dev/null
1809 mkdir .tst 2>/dev/null
1810 if test -d .tst; then
1811   am__leading_dot=.
1812 else
1813   am__leading_dot=_
1814 fi
1815 rmdir .tst 2>/dev/null
1816
1817 # test to see if srcdir already configured
1818 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1819    test -f $srcdir/config.status; then
1820   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1821 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1822    { (exit 1); exit 1; }; }
1823 fi
1824
1825 # test whether we have cygpath
1826 if test -z "$CYGPATH_W"; then
1827   if (cygpath --version) >/dev/null 2>/dev/null; then
1828     CYGPATH_W='cygpath -w'
1829   else
1830     CYGPATH_W=echo
1831   fi
1832 fi
1833
1834
1835 # Define the identity of the package.
1836  PACKAGE=webcit
1837  VERSION=6.72
1838
1839
1840 cat >>confdefs.h <<_ACEOF
1841 @%:@define PACKAGE "$PACKAGE"
1842 _ACEOF
1843
1844  
1845 cat >>confdefs.h <<_ACEOF
1846 @%:@define VERSION "$VERSION"
1847 _ACEOF
1848
1849 # Some tools Automake needs.
1850
1851 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1852
1853
1854 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1855
1856
1857 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1858
1859
1860 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1861
1862
1863 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1864
1865 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1866
1867 # Installed binaries are usually stripped using `strip' when the user
1868 # run `make install-strip'.  However `strip' might not be the right
1869 # tool to use in cross-compilation environments, therefore Automake
1870 # will honor the `STRIP' environment variable to overrule this program.
1871 if test "$cross_compiling" != no; then
1872   if test -n "$ac_tool_prefix"; then
1873   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1874 set dummy ${ac_tool_prefix}strip; ac_word=$2
1875 echo "$as_me:$LINENO: checking for $ac_word" >&5
1876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1877 if test "${ac_cv_prog_STRIP+set}" = set; then
1878   echo $ECHO_N "(cached) $ECHO_C" >&6
1879 else
1880   if test -n "$STRIP"; then
1881   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1882 else
1883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1884 for as_dir in $PATH
1885 do
1886   IFS=$as_save_IFS
1887   test -z "$as_dir" && as_dir=.
1888   for ac_exec_ext in '' $ac_executable_extensions; do
1889   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1890     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1891     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1892     break 2
1893   fi
1894 done
1895 done
1896
1897 fi
1898 fi
1899 STRIP=$ac_cv_prog_STRIP
1900 if test -n "$STRIP"; then
1901   echo "$as_me:$LINENO: result: $STRIP" >&5
1902 echo "${ECHO_T}$STRIP" >&6
1903 else
1904   echo "$as_me:$LINENO: result: no" >&5
1905 echo "${ECHO_T}no" >&6
1906 fi
1907
1908 fi
1909 if test -z "$ac_cv_prog_STRIP"; then
1910   ac_ct_STRIP=$STRIP
1911   # Extract the first word of "strip", so it can be a program name with args.
1912 set dummy strip; ac_word=$2
1913 echo "$as_me:$LINENO: checking for $ac_word" >&5
1914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1915 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1916   echo $ECHO_N "(cached) $ECHO_C" >&6
1917 else
1918   if test -n "$ac_ct_STRIP"; then
1919   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1920 else
1921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1922 for as_dir in $PATH
1923 do
1924   IFS=$as_save_IFS
1925   test -z "$as_dir" && as_dir=.
1926   for ac_exec_ext in '' $ac_executable_extensions; do
1927   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1928     ac_cv_prog_ac_ct_STRIP="strip"
1929     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1930     break 2
1931   fi
1932 done
1933 done
1934
1935   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1936 fi
1937 fi
1938 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1939 if test -n "$ac_ct_STRIP"; then
1940   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1941 echo "${ECHO_T}$ac_ct_STRIP" >&6
1942 else
1943   echo "$as_me:$LINENO: result: no" >&5
1944 echo "${ECHO_T}no" >&6
1945 fi
1946
1947   STRIP=$ac_ct_STRIP
1948 else
1949   STRIP="$ac_cv_prog_STRIP"
1950 fi
1951
1952 fi
1953 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1954
1955 # We need awk for the "check" target.  The system "awk" is bad on
1956 # some platforms.
1957 # Always define AMTAR for backward compatibility.
1958
1959 AMTAR=${AMTAR-"${am_missing_run}tar"}
1960
1961 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1962
1963
1964
1965
1966
1967           ac_config_headers="$ac_config_headers config.h"
1968
1969 # Check whether --enable-shared or --disable-shared was given.
1970 if test "${enable_shared+set}" = set; then
1971   enableval="$enable_shared"
1972   p=${PACKAGE-default}
1973     case $enableval in
1974     yes) enable_shared=yes ;;
1975     no) enable_shared=no ;;
1976     *)
1977       enable_shared=no
1978       # Look at the argument we got.  We use all the common list separators.
1979       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1980       for pkg in $enableval; do
1981         IFS="$lt_save_ifs"
1982         if test "X$pkg" = "X$p"; then
1983           enable_shared=yes
1984         fi
1985       done
1986       IFS="$lt_save_ifs"
1987       ;;
1988     esac
1989 else
1990   enable_shared=yes
1991 fi; 
1992
1993 # Check whether --enable-static or --disable-static was given.
1994 if test "${enable_static+set}" = set; then
1995   enableval="$enable_static"
1996   p=${PACKAGE-default}
1997     case $enableval in
1998     yes) enable_static=yes ;;
1999     no) enable_static=no ;;
2000     *)
2001      enable_static=no
2002       # Look at the argument we got.  We use all the common list separators.
2003       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2004       for pkg in $enableval; do
2005         IFS="$lt_save_ifs"
2006         if test "X$pkg" = "X$p"; then
2007           enable_static=yes
2008         fi
2009       done
2010       IFS="$lt_save_ifs"
2011       ;;
2012     esac
2013 else
2014   enable_static=yes
2015 fi; 
2016
2017 # Check whether --enable-fast-install or --disable-fast-install was given.
2018 if test "${enable_fast_install+set}" = set; then
2019   enableval="$enable_fast_install"
2020   p=${PACKAGE-default}
2021     case $enableval in
2022     yes) enable_fast_install=yes ;;
2023     no) enable_fast_install=no ;;
2024     *)
2025       enable_fast_install=no
2026       # Look at the argument we got.  We use all the common list separators.
2027       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2028       for pkg in $enableval; do
2029         IFS="$lt_save_ifs"
2030         if test "X$pkg" = "X$p"; then
2031           enable_fast_install=yes
2032         fi
2033       done
2034       IFS="$lt_save_ifs"
2035       ;;
2036     esac
2037 else
2038   enable_fast_install=yes
2039 fi; 
2040
2041 # Make sure we can run config.sub.
2042 $ac_config_sub sun4 >/dev/null 2>&1 ||
2043   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2044 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2045    { (exit 1); exit 1; }; }
2046
2047 echo "$as_me:$LINENO: checking build system type" >&5
2048 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2049 if test "${ac_cv_build+set}" = set; then
2050   echo $ECHO_N "(cached) $ECHO_C" >&6
2051 else
2052   ac_cv_build_alias=$build_alias
2053 test -z "$ac_cv_build_alias" &&
2054   ac_cv_build_alias=`$ac_config_guess`
2055 test -z "$ac_cv_build_alias" &&
2056   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2057 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2058    { (exit 1); exit 1; }; }
2059 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2060   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2061 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2062    { (exit 1); exit 1; }; }
2063
2064 fi
2065 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2066 echo "${ECHO_T}$ac_cv_build" >&6
2067 build=$ac_cv_build
2068 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2069 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2070 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2071
2072
2073 echo "$as_me:$LINENO: checking host system type" >&5
2074 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2075 if test "${ac_cv_host+set}" = set; then
2076   echo $ECHO_N "(cached) $ECHO_C" >&6
2077 else
2078   ac_cv_host_alias=$host_alias
2079 test -z "$ac_cv_host_alias" &&
2080   ac_cv_host_alias=$ac_cv_build_alias
2081 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2082   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2083 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2084    { (exit 1); exit 1; }; }
2085
2086 fi
2087 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2088 echo "${ECHO_T}$ac_cv_host" >&6
2089 host=$ac_cv_host
2090 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2091 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2092 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2093
2094
2095 DEPDIR="${am__leading_dot}deps"
2096
2097           ac_config_commands="$ac_config_commands depfiles"
2098
2099
2100 am_make=${MAKE-make}
2101 cat > confinc << 'END'
2102 am__doit:
2103         @echo done
2104 .PHONY: am__doit
2105 END
2106 # If we don't find an include directive, just comment out the code.
2107 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2108 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2109 am__include="#"
2110 am__quote=
2111 _am_result=none
2112 # First try GNU make style include.
2113 echo "include confinc" > confmf
2114 # We grep out `Entering directory' and `Leaving directory'
2115 # messages which can occur if `w' ends up in MAKEFLAGS.
2116 # In particular we don't look at `^make:' because GNU make might
2117 # be invoked under some other name (usually "gmake"), in which
2118 # case it prints its new name instead of `make'.
2119 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2120    am__include=include
2121    am__quote=
2122    _am_result=GNU
2123 fi
2124 # Now try BSD make style include.
2125 if test "$am__include" = "#"; then
2126    echo '.include "confinc"' > confmf
2127    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2128       am__include=.include
2129       am__quote="\""
2130       _am_result=BSD
2131    fi
2132 fi
2133
2134
2135 echo "$as_me:$LINENO: result: $_am_result" >&5
2136 echo "${ECHO_T}$_am_result" >&6
2137 rm -f confinc confmf
2138
2139 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2140 if test "${enable_dependency_tracking+set}" = set; then
2141   enableval="$enable_dependency_tracking"
2142   
2143 fi; 
2144 if test "x$enable_dependency_tracking" != xno; then
2145   am_depcomp="$ac_aux_dir/depcomp"
2146   AMDEPBACKSLASH='\'
2147 fi
2148  
2149
2150 if test "x$enable_dependency_tracking" != xno; then
2151   AMDEP_TRUE=
2152   AMDEP_FALSE='#'
2153 else
2154   AMDEP_TRUE='#'
2155   AMDEP_FALSE=
2156 fi
2157
2158
2159
2160 ac_ext=c
2161 ac_cpp='$CPP $CPPFLAGS'
2162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2165 if test -n "$ac_tool_prefix"; then
2166   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2167 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2168 echo "$as_me:$LINENO: checking for $ac_word" >&5
2169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2170 if test "${ac_cv_prog_CC+set}" = set; then
2171   echo $ECHO_N "(cached) $ECHO_C" >&6
2172 else
2173   if test -n "$CC"; then
2174   ac_cv_prog_CC="$CC" # Let the user override the test.
2175 else
2176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2177 for as_dir in $PATH
2178 do
2179   IFS=$as_save_IFS
2180   test -z "$as_dir" && as_dir=.
2181   for ac_exec_ext in '' $ac_executable_extensions; do
2182   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2183     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2184     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2185     break 2
2186   fi
2187 done
2188 done
2189
2190 fi
2191 fi
2192 CC=$ac_cv_prog_CC
2193 if test -n "$CC"; then
2194   echo "$as_me:$LINENO: result: $CC" >&5
2195 echo "${ECHO_T}$CC" >&6
2196 else
2197   echo "$as_me:$LINENO: result: no" >&5
2198 echo "${ECHO_T}no" >&6
2199 fi
2200
2201 fi
2202 if test -z "$ac_cv_prog_CC"; then
2203   ac_ct_CC=$CC
2204   # Extract the first word of "gcc", so it can be a program name with args.
2205 set dummy gcc; ac_word=$2
2206 echo "$as_me:$LINENO: checking for $ac_word" >&5
2207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2208 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2209   echo $ECHO_N "(cached) $ECHO_C" >&6
2210 else
2211   if test -n "$ac_ct_CC"; then
2212   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2213 else
2214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2215 for as_dir in $PATH
2216 do
2217   IFS=$as_save_IFS
2218   test -z "$as_dir" && as_dir=.
2219   for ac_exec_ext in '' $ac_executable_extensions; do
2220   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2221     ac_cv_prog_ac_ct_CC="gcc"
2222     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2223     break 2
2224   fi
2225 done
2226 done
2227
2228 fi
2229 fi
2230 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2231 if test -n "$ac_ct_CC"; then
2232   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2233 echo "${ECHO_T}$ac_ct_CC" >&6
2234 else
2235   echo "$as_me:$LINENO: result: no" >&5
2236 echo "${ECHO_T}no" >&6
2237 fi
2238
2239   CC=$ac_ct_CC
2240 else
2241   CC="$ac_cv_prog_CC"
2242 fi
2243
2244 if test -z "$CC"; then
2245   if test -n "$ac_tool_prefix"; then
2246   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2247 set dummy ${ac_tool_prefix}cc; ac_word=$2
2248 echo "$as_me:$LINENO: checking for $ac_word" >&5
2249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2250 if test "${ac_cv_prog_CC+set}" = set; then
2251   echo $ECHO_N "(cached) $ECHO_C" >&6
2252 else
2253   if test -n "$CC"; then
2254   ac_cv_prog_CC="$CC" # Let the user override the test.
2255 else
2256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2257 for as_dir in $PATH
2258 do
2259   IFS=$as_save_IFS
2260   test -z "$as_dir" && as_dir=.
2261   for ac_exec_ext in '' $ac_executable_extensions; do
2262   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2263     ac_cv_prog_CC="${ac_tool_prefix}cc"
2264     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2265     break 2
2266   fi
2267 done
2268 done
2269
2270 fi
2271 fi
2272 CC=$ac_cv_prog_CC
2273 if test -n "$CC"; then
2274   echo "$as_me:$LINENO: result: $CC" >&5
2275 echo "${ECHO_T}$CC" >&6
2276 else
2277   echo "$as_me:$LINENO: result: no" >&5
2278 echo "${ECHO_T}no" >&6
2279 fi
2280
2281 fi
2282 if test -z "$ac_cv_prog_CC"; then
2283   ac_ct_CC=$CC
2284   # Extract the first word of "cc", so it can be a program name with args.
2285 set dummy cc; ac_word=$2
2286 echo "$as_me:$LINENO: checking for $ac_word" >&5
2287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2288 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2289   echo $ECHO_N "(cached) $ECHO_C" >&6
2290 else
2291   if test -n "$ac_ct_CC"; then
2292   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2293 else
2294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2295 for as_dir in $PATH
2296 do
2297   IFS=$as_save_IFS
2298   test -z "$as_dir" && as_dir=.
2299   for ac_exec_ext in '' $ac_executable_extensions; do
2300   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2301     ac_cv_prog_ac_ct_CC="cc"
2302     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2303     break 2
2304   fi
2305 done
2306 done
2307
2308 fi
2309 fi
2310 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2311 if test -n "$ac_ct_CC"; then
2312   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2313 echo "${ECHO_T}$ac_ct_CC" >&6
2314 else
2315   echo "$as_me:$LINENO: result: no" >&5
2316 echo "${ECHO_T}no" >&6
2317 fi
2318
2319   CC=$ac_ct_CC
2320 else
2321   CC="$ac_cv_prog_CC"
2322 fi
2323
2324 fi
2325 if test -z "$CC"; then
2326   # Extract the first word of "cc", so it can be a program name with args.
2327 set dummy cc; ac_word=$2
2328 echo "$as_me:$LINENO: checking for $ac_word" >&5
2329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2330 if test "${ac_cv_prog_CC+set}" = set; then
2331   echo $ECHO_N "(cached) $ECHO_C" >&6
2332 else
2333   if test -n "$CC"; then
2334   ac_cv_prog_CC="$CC" # Let the user override the test.
2335 else
2336   ac_prog_rejected=no
2337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2338 for as_dir in $PATH
2339 do
2340   IFS=$as_save_IFS
2341   test -z "$as_dir" && as_dir=.
2342   for ac_exec_ext in '' $ac_executable_extensions; do
2343   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2344     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2345        ac_prog_rejected=yes
2346        continue
2347      fi
2348     ac_cv_prog_CC="cc"
2349     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2350     break 2
2351   fi
2352 done
2353 done
2354
2355 if test $ac_prog_rejected = yes; then
2356   # We found a bogon in the path, so make sure we never use it.
2357   set dummy $ac_cv_prog_CC
2358   shift
2359   if test $@%:@ != 0; then
2360     # We chose a different compiler from the bogus one.
2361     # However, it has the same basename, so the bogon will be chosen
2362     # first if we set CC to just the basename; use the full file name.
2363     shift
2364     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2365   fi
2366 fi
2367 fi
2368 fi
2369 CC=$ac_cv_prog_CC
2370 if test -n "$CC"; then
2371   echo "$as_me:$LINENO: result: $CC" >&5
2372 echo "${ECHO_T}$CC" >&6
2373 else
2374   echo "$as_me:$LINENO: result: no" >&5
2375 echo "${ECHO_T}no" >&6
2376 fi
2377
2378 fi
2379 if test -z "$CC"; then
2380   if test -n "$ac_tool_prefix"; then
2381   for ac_prog in cl
2382   do
2383     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2384 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2385 echo "$as_me:$LINENO: checking for $ac_word" >&5
2386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2387 if test "${ac_cv_prog_CC+set}" = set; then
2388   echo $ECHO_N "(cached) $ECHO_C" >&6
2389 else
2390   if test -n "$CC"; then
2391   ac_cv_prog_CC="$CC" # Let the user override the test.
2392 else
2393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2394 for as_dir in $PATH
2395 do
2396   IFS=$as_save_IFS
2397   test -z "$as_dir" && as_dir=.
2398   for ac_exec_ext in '' $ac_executable_extensions; do
2399   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2400     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2401     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2402     break 2
2403   fi
2404 done
2405 done
2406
2407 fi
2408 fi
2409 CC=$ac_cv_prog_CC
2410 if test -n "$CC"; then
2411   echo "$as_me:$LINENO: result: $CC" >&5
2412 echo "${ECHO_T}$CC" >&6
2413 else
2414   echo "$as_me:$LINENO: result: no" >&5
2415 echo "${ECHO_T}no" >&6
2416 fi
2417
2418     test -n "$CC" && break
2419   done
2420 fi
2421 if test -z "$CC"; then
2422   ac_ct_CC=$CC
2423   for ac_prog in cl
2424 do
2425   # Extract the first word of "$ac_prog", so it can be a program name with args.
2426 set dummy $ac_prog; ac_word=$2
2427 echo "$as_me:$LINENO: checking for $ac_word" >&5
2428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2429 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2430   echo $ECHO_N "(cached) $ECHO_C" >&6
2431 else
2432   if test -n "$ac_ct_CC"; then
2433   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2434 else
2435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2436 for as_dir in $PATH
2437 do
2438   IFS=$as_save_IFS
2439   test -z "$as_dir" && as_dir=.
2440   for ac_exec_ext in '' $ac_executable_extensions; do
2441   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2442     ac_cv_prog_ac_ct_CC="$ac_prog"
2443     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2444     break 2
2445   fi
2446 done
2447 done
2448
2449 fi
2450 fi
2451 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2452 if test -n "$ac_ct_CC"; then
2453   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2454 echo "${ECHO_T}$ac_ct_CC" >&6
2455 else
2456   echo "$as_me:$LINENO: result: no" >&5
2457 echo "${ECHO_T}no" >&6
2458 fi
2459
2460   test -n "$ac_ct_CC" && break
2461 done
2462
2463   CC=$ac_ct_CC
2464 fi
2465
2466 fi
2467
2468
2469 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2470 See \`config.log' for more details." >&5
2471 echo "$as_me: error: no acceptable C compiler found in \$PATH
2472 See \`config.log' for more details." >&2;}
2473    { (exit 1); exit 1; }; }
2474
2475 # Provide some information about the compiler.
2476 echo "$as_me:$LINENO:" \
2477      "checking for C compiler version" >&5
2478 ac_compiler=`set X $ac_compile; echo $2`
2479 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2480   (eval $ac_compiler --version </dev/null >&5) 2>&5
2481   ac_status=$?
2482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483   (exit $ac_status); }
2484 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2485   (eval $ac_compiler -v </dev/null >&5) 2>&5
2486   ac_status=$?
2487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488   (exit $ac_status); }
2489 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2490   (eval $ac_compiler -V </dev/null >&5) 2>&5
2491   ac_status=$?
2492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493   (exit $ac_status); }
2494
2495 cat >conftest.$ac_ext <<_ACEOF
2496 /* confdefs.h.  */
2497 _ACEOF
2498 cat confdefs.h >>conftest.$ac_ext
2499 cat >>conftest.$ac_ext <<_ACEOF
2500 /* end confdefs.h.  */
2501
2502 int
2503 main ()
2504 {
2505
2506   ;
2507   return 0;
2508 }
2509 _ACEOF
2510 ac_clean_files_save=$ac_clean_files
2511 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2512 # Try to create an executable without -o first, disregard a.out.
2513 # It will help us diagnose broken compilers, and finding out an intuition
2514 # of exeext.
2515 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2516 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2517 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2518 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2519   (eval $ac_link_default) 2>&5
2520   ac_status=$?
2521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522   (exit $ac_status); }; then
2523   # Find the output, starting from the most likely.  This scheme is
2524 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2525 # resort.
2526
2527 # Be careful to initialize this variable, since it used to be cached.
2528 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2529 ac_cv_exeext=
2530 # b.out is created by i960 compilers.
2531 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2532 do
2533   test -f "$ac_file" || continue
2534   case $ac_file in
2535     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2536         ;;
2537     conftest.$ac_ext )
2538         # This is the source file.
2539         ;;
2540     [ab].out )
2541         # We found the default executable, but exeext='' is most
2542         # certainly right.
2543         break;;
2544     *.* )
2545         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2546         # FIXME: I believe we export ac_cv_exeext for Libtool,
2547         # but it would be cool to find out if it's true.  Does anybody
2548         # maintain Libtool? --akim.
2549         export ac_cv_exeext
2550         break;;
2551     * )
2552         break;;
2553   esac
2554 done
2555 else
2556   echo "$as_me: failed program was:" >&5
2557 sed 's/^/| /' conftest.$ac_ext >&5
2558
2559 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2560 See \`config.log' for more details." >&5
2561 echo "$as_me: error: C compiler cannot create executables
2562 See \`config.log' for more details." >&2;}
2563    { (exit 77); exit 77; }; }
2564 fi
2565
2566 ac_exeext=$ac_cv_exeext
2567 echo "$as_me:$LINENO: result: $ac_file" >&5
2568 echo "${ECHO_T}$ac_file" >&6
2569
2570 # Check the compiler produces executables we can run.  If not, either
2571 # the compiler is broken, or we cross compile.
2572 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2573 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2574 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2575 # If not cross compiling, check that we can run a simple program.
2576 if test "$cross_compiling" != yes; then
2577   if { ac_try='./$ac_file'
2578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2579   (eval $ac_try) 2>&5
2580   ac_status=$?
2581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582   (exit $ac_status); }; }; then
2583     cross_compiling=no
2584   else
2585     if test "$cross_compiling" = maybe; then
2586         cross_compiling=yes
2587     else
2588         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2589 If you meant to cross compile, use \`--host'.
2590 See \`config.log' for more details." >&5
2591 echo "$as_me: error: cannot run C compiled programs.
2592 If you meant to cross compile, use \`--host'.
2593 See \`config.log' for more details." >&2;}
2594    { (exit 1); exit 1; }; }
2595     fi
2596   fi
2597 fi
2598 echo "$as_me:$LINENO: result: yes" >&5
2599 echo "${ECHO_T}yes" >&6
2600
2601 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2602 ac_clean_files=$ac_clean_files_save
2603 # Check the compiler produces executables we can run.  If not, either
2604 # the compiler is broken, or we cross compile.
2605 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2606 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2607 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2608 echo "${ECHO_T}$cross_compiling" >&6
2609
2610 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2611 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2613   (eval $ac_link) 2>&5
2614   ac_status=$?
2615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616   (exit $ac_status); }; then
2617   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2618 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2619 # work properly (i.e., refer to `conftest.exe'), while it won't with
2620 # `rm'.
2621 for ac_file in conftest.exe conftest conftest.*; do
2622   test -f "$ac_file" || continue
2623   case $ac_file in
2624     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2625     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2626           export ac_cv_exeext
2627           break;;
2628     * ) break;;
2629   esac
2630 done
2631 else
2632   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2633 See \`config.log' for more details." >&5
2634 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2635 See \`config.log' for more details." >&2;}
2636    { (exit 1); exit 1; }; }
2637 fi
2638
2639 rm -f conftest$ac_cv_exeext
2640 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2641 echo "${ECHO_T}$ac_cv_exeext" >&6
2642
2643 rm -f conftest.$ac_ext
2644 EXEEXT=$ac_cv_exeext
2645 ac_exeext=$EXEEXT
2646 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2647 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2648 if test "${ac_cv_objext+set}" = set; then
2649   echo $ECHO_N "(cached) $ECHO_C" >&6
2650 else
2651   cat >conftest.$ac_ext <<_ACEOF
2652 /* confdefs.h.  */
2653 _ACEOF
2654 cat confdefs.h >>conftest.$ac_ext
2655 cat >>conftest.$ac_ext <<_ACEOF
2656 /* end confdefs.h.  */
2657
2658 int
2659 main ()
2660 {
2661
2662   ;
2663   return 0;
2664 }
2665 _ACEOF
2666 rm -f conftest.o conftest.obj
2667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2668   (eval $ac_compile) 2>&5
2669   ac_status=$?
2670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671   (exit $ac_status); }; then
2672   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2673   case $ac_file in
2674     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2675     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2676        break;;
2677   esac
2678 done
2679 else
2680   echo "$as_me: failed program was:" >&5
2681 sed 's/^/| /' conftest.$ac_ext >&5
2682
2683 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2684 See \`config.log' for more details." >&5
2685 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2686 See \`config.log' for more details." >&2;}
2687    { (exit 1); exit 1; }; }
2688 fi
2689
2690 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2691 fi
2692 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2693 echo "${ECHO_T}$ac_cv_objext" >&6
2694 OBJEXT=$ac_cv_objext
2695 ac_objext=$OBJEXT
2696 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2697 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2698 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2699   echo $ECHO_N "(cached) $ECHO_C" >&6
2700 else
2701   cat >conftest.$ac_ext <<_ACEOF
2702 /* confdefs.h.  */
2703 _ACEOF
2704 cat confdefs.h >>conftest.$ac_ext
2705 cat >>conftest.$ac_ext <<_ACEOF
2706 /* end confdefs.h.  */
2707
2708 int
2709 main ()
2710 {
2711 #ifndef __GNUC__
2712        choke me
2713 #endif
2714
2715   ;
2716   return 0;
2717 }
2718 _ACEOF
2719 rm -f conftest.$ac_objext
2720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2721   (eval $ac_compile) 2>conftest.er1
2722   ac_status=$?
2723   grep -v '^ *+' conftest.er1 >conftest.err
2724   rm -f conftest.er1
2725   cat conftest.err >&5
2726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727   (exit $ac_status); } &&
2728          { ac_try='test -z "$ac_c_werror_flag"
2729                          || test ! -s conftest.err'
2730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2731   (eval $ac_try) 2>&5
2732   ac_status=$?
2733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734   (exit $ac_status); }; } &&
2735          { ac_try='test -s conftest.$ac_objext'
2736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2737   (eval $ac_try) 2>&5
2738   ac_status=$?
2739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740   (exit $ac_status); }; }; then
2741   ac_compiler_gnu=yes
2742 else
2743   echo "$as_me: failed program was:" >&5
2744 sed 's/^/| /' conftest.$ac_ext >&5
2745
2746 ac_compiler_gnu=no
2747 fi
2748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2749 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2750
2751 fi
2752 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2753 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2754 GCC=`test $ac_compiler_gnu = yes && echo yes`
2755 ac_test_CFLAGS=${CFLAGS+set}
2756 ac_save_CFLAGS=$CFLAGS
2757 CFLAGS="-g"
2758 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2759 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2760 if test "${ac_cv_prog_cc_g+set}" = set; then
2761   echo $ECHO_N "(cached) $ECHO_C" >&6
2762 else
2763   cat >conftest.$ac_ext <<_ACEOF
2764 /* confdefs.h.  */
2765 _ACEOF
2766 cat confdefs.h >>conftest.$ac_ext
2767 cat >>conftest.$ac_ext <<_ACEOF
2768 /* end confdefs.h.  */
2769
2770 int
2771 main ()
2772 {
2773
2774   ;
2775   return 0;
2776 }
2777 _ACEOF
2778 rm -f conftest.$ac_objext
2779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2780   (eval $ac_compile) 2>conftest.er1
2781   ac_status=$?
2782   grep -v '^ *+' conftest.er1 >conftest.err
2783   rm -f conftest.er1
2784   cat conftest.err >&5
2785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786   (exit $ac_status); } &&
2787          { ac_try='test -z "$ac_c_werror_flag"
2788                          || test ! -s conftest.err'
2789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2790   (eval $ac_try) 2>&5
2791   ac_status=$?
2792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793   (exit $ac_status); }; } &&
2794          { ac_try='test -s conftest.$ac_objext'
2795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2796   (eval $ac_try) 2>&5
2797   ac_status=$?
2798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799   (exit $ac_status); }; }; then
2800   ac_cv_prog_cc_g=yes
2801 else
2802   echo "$as_me: failed program was:" >&5
2803 sed 's/^/| /' conftest.$ac_ext >&5
2804
2805 ac_cv_prog_cc_g=no
2806 fi
2807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2808 fi
2809 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2810 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2811 if test "$ac_test_CFLAGS" = set; then
2812   CFLAGS=$ac_save_CFLAGS
2813 elif test $ac_cv_prog_cc_g = yes; then
2814   if test "$GCC" = yes; then
2815     CFLAGS="-g -O2"
2816   else
2817     CFLAGS="-g"
2818   fi
2819 else
2820   if test "$GCC" = yes; then
2821     CFLAGS="-O2"
2822   else
2823     CFLAGS=
2824   fi
2825 fi
2826 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2827 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2828 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2829   echo $ECHO_N "(cached) $ECHO_C" >&6
2830 else
2831   ac_cv_prog_cc_stdc=no
2832 ac_save_CC=$CC
2833 cat >conftest.$ac_ext <<_ACEOF
2834 /* confdefs.h.  */
2835 _ACEOF
2836 cat confdefs.h >>conftest.$ac_ext
2837 cat >>conftest.$ac_ext <<_ACEOF
2838 /* end confdefs.h.  */
2839 #include <stdarg.h>
2840 #include <stdio.h>
2841 #include <sys/types.h>
2842 #include <sys/stat.h>
2843 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2844 struct buf { int x; };
2845 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2846 static char *e (p, i)
2847      char **p;
2848      int i;
2849 {
2850   return p[i];
2851 }
2852 static char *f (char * (*g) (char **, int), char **p, ...)
2853 {
2854   char *s;
2855   va_list v;
2856   va_start (v,p);
2857   s = g (p, va_arg (v,int));
2858   va_end (v);
2859   return s;
2860 }
2861
2862 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2863    function prototypes and stuff, but not '\xHH' hex character constants.
2864    These don't provoke an error unfortunately, instead are silently treated
2865    as 'x'.  The following induces an error, until -std1 is added to get
2866    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2867    array size at least.  It's necessary to write '\x00'==0 to get something
2868    that's true only with -std1.  */
2869 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2870
2871 int test (int i, double x);
2872 struct s1 {int (*f) (int a);};
2873 struct s2 {int (*f) (double a);};
2874 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2875 int argc;
2876 char **argv;
2877 int
2878 main ()
2879 {
2880 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2881   ;
2882   return 0;
2883 }
2884 _ACEOF
2885 # Don't try gcc -ansi; that turns off useful extensions and
2886 # breaks some systems' header files.
2887 # AIX                   -qlanglvl=ansi
2888 # Ultrix and OSF/1      -std1
2889 # HP-UX 10.20 and later -Ae
2890 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2891 # SVR4                  -Xc -D__EXTENSIONS__
2892 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2893 do
2894   CC="$ac_save_CC $ac_arg"
2895   rm -f conftest.$ac_objext
2896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2897   (eval $ac_compile) 2>conftest.er1
2898   ac_status=$?
2899   grep -v '^ *+' conftest.er1 >conftest.err
2900   rm -f conftest.er1
2901   cat conftest.err >&5
2902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903   (exit $ac_status); } &&
2904          { ac_try='test -z "$ac_c_werror_flag"
2905                          || test ! -s conftest.err'
2906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2907   (eval $ac_try) 2>&5
2908   ac_status=$?
2909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910   (exit $ac_status); }; } &&
2911          { ac_try='test -s conftest.$ac_objext'
2912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2913   (eval $ac_try) 2>&5
2914   ac_status=$?
2915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916   (exit $ac_status); }; }; then
2917   ac_cv_prog_cc_stdc=$ac_arg
2918 break
2919 else
2920   echo "$as_me: failed program was:" >&5
2921 sed 's/^/| /' conftest.$ac_ext >&5
2922
2923 fi
2924 rm -f conftest.err conftest.$ac_objext 
2925 done
2926 rm -f conftest.$ac_ext conftest.$ac_objext
2927 CC=$ac_save_CC
2928
2929 fi
2930
2931 case "x$ac_cv_prog_cc_stdc" in
2932   x|xno)
2933     echo "$as_me:$LINENO: result: none needed" >&5
2934 echo "${ECHO_T}none needed" >&6 ;;
2935   *)
2936     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2937 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2938     CC="$CC $ac_cv_prog_cc_stdc" ;;
2939 esac
2940
2941 # Some people use a C++ compiler to compile C.  Since we use `exit',
2942 # in C++ we need to declare it.  In case someone uses the same compiler
2943 # for both compiling C and C++ we need to have the C++ compiler decide
2944 # the declaration of exit, since it's the most demanding environment.
2945 cat >conftest.$ac_ext <<_ACEOF
2946 @%:@ifndef __cplusplus
2947   choke me
2948 @%:@endif
2949 _ACEOF
2950 rm -f conftest.$ac_objext
2951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2952   (eval $ac_compile) 2>conftest.er1
2953   ac_status=$?
2954   grep -v '^ *+' conftest.er1 >conftest.err
2955   rm -f conftest.er1
2956   cat conftest.err >&5
2957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958   (exit $ac_status); } &&
2959          { ac_try='test -z "$ac_c_werror_flag"
2960                          || test ! -s conftest.err'
2961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2962   (eval $ac_try) 2>&5
2963   ac_status=$?
2964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965   (exit $ac_status); }; } &&
2966          { ac_try='test -s conftest.$ac_objext'
2967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2968   (eval $ac_try) 2>&5
2969   ac_status=$?
2970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971   (exit $ac_status); }; }; then
2972   for ac_declaration in \
2973    '' \
2974    'extern "C" void std::exit (int) throw (); using std::exit;' \
2975    'extern "C" void std::exit (int); using std::exit;' \
2976    'extern "C" void exit (int) throw ();' \
2977    'extern "C" void exit (int);' \
2978    'void exit (int);'
2979 do
2980   cat >conftest.$ac_ext <<_ACEOF
2981 /* confdefs.h.  */
2982 _ACEOF
2983 cat confdefs.h >>conftest.$ac_ext
2984 cat >>conftest.$ac_ext <<_ACEOF
2985 /* end confdefs.h.  */
2986 $ac_declaration
2987 @%:@include <stdlib.h>
2988 int
2989 main ()
2990 {
2991 exit (42);
2992   ;
2993   return 0;
2994 }
2995 _ACEOF
2996 rm -f conftest.$ac_objext
2997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2998   (eval $ac_compile) 2>conftest.er1
2999   ac_status=$?
3000   grep -v '^ *+' conftest.er1 >conftest.err
3001   rm -f conftest.er1
3002   cat conftest.err >&5
3003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004   (exit $ac_status); } &&
3005          { ac_try='test -z "$ac_c_werror_flag"
3006                          || test ! -s conftest.err'
3007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3008   (eval $ac_try) 2>&5
3009   ac_status=$?
3010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011   (exit $ac_status); }; } &&
3012          { ac_try='test -s conftest.$ac_objext'
3013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3014   (eval $ac_try) 2>&5
3015   ac_status=$?
3016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017   (exit $ac_status); }; }; then
3018   :
3019 else
3020   echo "$as_me: failed program was:" >&5
3021 sed 's/^/| /' conftest.$ac_ext >&5
3022
3023 continue
3024 fi
3025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3026   cat >conftest.$ac_ext <<_ACEOF
3027 /* confdefs.h.  */
3028 _ACEOF
3029 cat confdefs.h >>conftest.$ac_ext
3030 cat >>conftest.$ac_ext <<_ACEOF
3031 /* end confdefs.h.  */
3032 $ac_declaration
3033 int
3034 main ()
3035 {
3036 exit (42);
3037   ;
3038   return 0;
3039 }
3040 _ACEOF
3041 rm -f conftest.$ac_objext
3042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3043   (eval $ac_compile) 2>conftest.er1
3044   ac_status=$?
3045   grep -v '^ *+' conftest.er1 >conftest.err
3046   rm -f conftest.er1
3047   cat conftest.err >&5
3048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049   (exit $ac_status); } &&
3050          { ac_try='test -z "$ac_c_werror_flag"
3051                          || test ! -s conftest.err'
3052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3053   (eval $ac_try) 2>&5
3054   ac_status=$?
3055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056   (exit $ac_status); }; } &&
3057          { ac_try='test -s conftest.$ac_objext'
3058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3059   (eval $ac_try) 2>&5
3060   ac_status=$?
3061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062   (exit $ac_status); }; }; then
3063   break
3064 else
3065   echo "$as_me: failed program was:" >&5
3066 sed 's/^/| /' conftest.$ac_ext >&5
3067
3068 fi
3069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3070 done
3071 rm -f conftest*
3072 if test -n "$ac_declaration"; then
3073   echo '#ifdef __cplusplus' >>confdefs.h
3074   echo $ac_declaration      >>confdefs.h
3075   echo '#endif'             >>confdefs.h
3076 fi
3077
3078 else
3079   echo "$as_me: failed program was:" >&5
3080 sed 's/^/| /' conftest.$ac_ext >&5
3081
3082 fi
3083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3084 ac_ext=c
3085 ac_cpp='$CPP $CPPFLAGS'
3086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3089
3090 depcc="$CC"   am_compiler_list=
3091
3092 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3093 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3094 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3095   echo $ECHO_N "(cached) $ECHO_C" >&6
3096 else
3097   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3098   # We make a subdir and do the tests there.  Otherwise we can end up
3099   # making bogus files that we don't know about and never remove.  For
3100   # instance it was reported that on HP-UX the gcc test will end up
3101   # making a dummy file named `D' -- because `-MD' means `put the output
3102   # in D'.
3103   mkdir conftest.dir
3104   # Copy depcomp to subdir because otherwise we won't find it if we're
3105   # using a relative directory.
3106   cp "$am_depcomp" conftest.dir
3107   cd conftest.dir
3108   # We will build objects and dependencies in a subdirectory because
3109   # it helps to detect inapplicable dependency modes.  For instance
3110   # both Tru64's cc and ICC support -MD to output dependencies as a
3111   # side effect of compilation, but ICC will put the dependencies in
3112   # the current directory while Tru64 will put them in the object
3113   # directory.
3114   mkdir sub
3115
3116   am_cv_CC_dependencies_compiler_type=none
3117   if test "$am_compiler_list" = ""; then
3118      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3119   fi
3120   for depmode in $am_compiler_list; do
3121     # Setup a source with many dependencies, because some compilers
3122     # like to wrap large dependency lists on column 80 (with \), and
3123     # we should not choose a depcomp mode which is confused by this.
3124     #
3125     # We need to recreate these files for each test, as the compiler may
3126     # overwrite some of them when testing with obscure command lines.
3127     # This happens at least with the AIX C compiler.
3128     : > sub/conftest.c
3129     for i in 1 2 3 4 5 6; do
3130       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3131       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3132       # Solaris 8's {/usr,}/bin/sh.
3133       touch sub/conftst$i.h
3134     done
3135     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3136
3137     case $depmode in
3138     nosideeffect)
3139       # after this tag, mechanisms are not by side-effect, so they'll
3140       # only be used when explicitly requested
3141       if test "x$enable_dependency_tracking" = xyes; then
3142         continue
3143       else
3144         break
3145       fi
3146       ;;
3147     none) break ;;
3148     esac
3149     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3150     # mode.  It turns out that the SunPro C++ compiler does not properly
3151     # handle `-M -o', and we need to detect this.
3152     if depmode=$depmode \
3153        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3154        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3155        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3156          >/dev/null 2>conftest.err &&
3157        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3158        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3159        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3160       # icc doesn't choke on unknown options, it will just issue warnings
3161       # or remarks (even with -Werror).  So we grep stderr for any message
3162       # that says an option was ignored or not supported.
3163       # When given -MP, icc 7.0 and 7.1 complain thusly:
3164       #   icc: Command line warning: ignoring option '-M'; no argument required
3165       # The diagnosis changed in icc 8.0:
3166       #   icc: Command line remark: option '-MP' not supported
3167       if (grep 'ignoring option' conftest.err ||
3168           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3169         am_cv_CC_dependencies_compiler_type=$depmode
3170         break
3171       fi
3172     fi
3173   done
3174
3175   cd ..
3176   rm -rf conftest.dir
3177 else
3178   am_cv_CC_dependencies_compiler_type=none
3179 fi
3180
3181 fi
3182 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3183 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3184 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3185
3186  
3187
3188 if 
3189   test "x$enable_dependency_tracking" != xno \
3190   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3191   am__fastdepCC_TRUE=
3192   am__fastdepCC_FALSE='#'
3193 else
3194   am__fastdepCC_TRUE='#'
3195   am__fastdepCC_FALSE=
3196 fi
3197
3198
3199 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3200 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3201 if test "${lt_cv_path_SED+set}" = set; then
3202   echo $ECHO_N "(cached) $ECHO_C" >&6
3203 else
3204   # Loop through the user's path and test for sed and gsed.
3205 # Then use that list of sed's as ones to test for truncation.
3206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3207 for as_dir in $PATH
3208 do
3209   IFS=$as_save_IFS
3210   test -z "$as_dir" && as_dir=.
3211   for lt_ac_prog in sed gsed; do
3212     for ac_exec_ext in '' $ac_executable_extensions; do
3213       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3214         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3215       fi
3216     done
3217   done
3218 done
3219 lt_ac_max=0
3220 lt_ac_count=0
3221 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3222 # along with /bin/sed that truncates output.
3223 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3224   test ! -f $lt_ac_sed && continue
3225   cat /dev/null > conftest.in
3226   lt_ac_count=0
3227   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3228   # Check for GNU sed and select it if it is found.
3229   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3230     lt_cv_path_SED=$lt_ac_sed
3231     break
3232   fi
3233   while true; do
3234     cat conftest.in conftest.in >conftest.tmp
3235     mv conftest.tmp conftest.in
3236     cp conftest.in conftest.nl
3237     echo >>conftest.nl
3238     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3239     cmp -s conftest.out conftest.nl || break
3240     # 10000 chars as input seems more than enough
3241     test $lt_ac_count -gt 10 && break
3242     lt_ac_count=`expr $lt_ac_count + 1`
3243     if test $lt_ac_count -gt $lt_ac_max; then
3244       lt_ac_max=$lt_ac_count
3245       lt_cv_path_SED=$lt_ac_sed
3246     fi
3247   done
3248 done
3249
3250 fi
3251
3252 SED=$lt_cv_path_SED
3253 echo "$as_me:$LINENO: result: $SED" >&5
3254 echo "${ECHO_T}$SED" >&6
3255
3256 echo "$as_me:$LINENO: checking for egrep" >&5
3257 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3258 if test "${ac_cv_prog_egrep+set}" = set; then
3259   echo $ECHO_N "(cached) $ECHO_C" >&6
3260 else
3261   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3262     then ac_cv_prog_egrep='grep -E'
3263     else ac_cv_prog_egrep='egrep'
3264     fi
3265 fi
3266 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3267 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3268  EGREP=$ac_cv_prog_egrep
3269  
3270
3271
3272 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3273 if test "${with_gnu_ld+set}" = set; then
3274   withval="$with_gnu_ld"
3275   test "$withval" = no || with_gnu_ld=yes
3276 else
3277   with_gnu_ld=no
3278 fi; 
3279 ac_prog=ld
3280 if test "$GCC" = yes; then
3281   # Check if gcc -print-prog-name=ld gives a path.
3282   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3283 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3284   case $host in
3285   *-*-mingw*)
3286     # gcc leaves a trailing carriage return which upsets mingw
3287     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3288   *)
3289     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3290   esac
3291   case $ac_prog in
3292     # Accept absolute paths.
3293     [\\/]* | ?:[\\/]*)
3294       re_direlt='/[^/][^/]*/\.\./'
3295       # Canonicalize the pathname of ld
3296       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3297       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3298         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3299       done
3300       test -z "$LD" && LD="$ac_prog"
3301       ;;
3302   "")
3303     # If it fails, then pretend we aren't using GCC.
3304     ac_prog=ld
3305     ;;
3306   *)
3307     # If it is relative, then search for the first ld in PATH.
3308     with_gnu_ld=unknown
3309     ;;
3310   esac
3311 elif test "$with_gnu_ld" = yes; then
3312   echo "$as_me:$LINENO: checking for GNU ld" >&5
3313 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3314 else
3315   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3316 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3317 fi
3318 if test "${lt_cv_path_LD+set}" = set; then
3319   echo $ECHO_N "(cached) $ECHO_C" >&6
3320 else
3321   if test -z "$LD"; then
3322   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3323   for ac_dir in $PATH; do
3324     IFS="$lt_save_ifs"
3325     test -z "$ac_dir" && ac_dir=.
3326     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3327       lt_cv_path_LD="$ac_dir/$ac_prog"
3328       # Check to see if the program is GNU ld.  I'd rather use --version,
3329       # but apparently some variants of GNU ld only accept -v.
3330       # Break only if it was the GNU/non-GNU ld that we prefer.
3331       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3332       *GNU* | *'with BFD'*)
3333         test "$with_gnu_ld" != no && break
3334         ;;
3335       *)
3336         test "$with_gnu_ld" != yes && break
3337         ;;
3338       esac
3339     fi
3340   done
3341   IFS="$lt_save_ifs"
3342 else
3343   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3344 fi
3345 fi
3346
3347 LD="$lt_cv_path_LD"
3348 if test -n "$LD"; then
3349   echo "$as_me:$LINENO: result: $LD" >&5
3350 echo "${ECHO_T}$LD" >&6
3351 else
3352   echo "$as_me:$LINENO: result: no" >&5
3353 echo "${ECHO_T}no" >&6
3354 fi
3355 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3356 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3357    { (exit 1); exit 1; }; }
3358 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3359 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3360 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3361   echo $ECHO_N "(cached) $ECHO_C" >&6
3362 else
3363   # I'd rather use --version here, but apparently some GNU lds only accept -v.
3364 case `$LD -v 2>&1 </dev/null` in
3365 *GNU* | *'with BFD'*)
3366   lt_cv_prog_gnu_ld=yes
3367   ;;
3368 *)
3369   lt_cv_prog_gnu_ld=no
3370   ;;
3371 esac
3372 fi
3373 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3374 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3375 with_gnu_ld=$lt_cv_prog_gnu_ld
3376
3377
3378 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3379 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3380 if test "${lt_cv_ld_reload_flag+set}" = set; then
3381   echo $ECHO_N "(cached) $ECHO_C" >&6
3382 else
3383   lt_cv_ld_reload_flag='-r'
3384 fi
3385 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3386 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3387 reload_flag=$lt_cv_ld_reload_flag
3388 case $reload_flag in
3389 "" | " "*) ;;
3390 *) reload_flag=" $reload_flag" ;;
3391 esac
3392 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3393 case $host_os in
3394   darwin*)
3395     if test "$GCC" = yes; then
3396       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3397     else
3398       reload_cmds='$LD$reload_flag -o $output$reload_objs'
3399     fi
3400     ;;
3401 esac
3402
3403 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3404 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3405 if test "${lt_cv_path_NM+set}" = set; then
3406   echo $ECHO_N "(cached) $ECHO_C" >&6
3407 else
3408   if test -n "$NM"; then
3409   # Let the user override the test.
3410   lt_cv_path_NM="$NM"
3411 else
3412   lt_nm_to_check="${ac_tool_prefix}nm"
3413   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 
3414     lt_nm_to_check="$lt_nm_to_check nm"
3415   fi
3416   for lt_tmp_nm in $lt_nm_to_check; do
3417     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3418     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3419       IFS="$lt_save_ifs"
3420       test -z "$ac_dir" && ac_dir=.
3421       tmp_nm="$ac_dir/$lt_tmp_nm"
3422       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3423         # Check to see if the nm accepts a BSD-compat flag.
3424         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3425         #   nm: unknown option "B" ignored
3426         # Tru64's nm complains that /dev/null is an invalid object file
3427         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3428         */dev/null* | *'Invalid file or object type'*)
3429           lt_cv_path_NM="$tmp_nm -B"
3430           break
3431           ;;
3432         *)
3433           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3434           */dev/null*)
3435             lt_cv_path_NM="$tmp_nm -p"
3436             break
3437             ;;
3438           *)
3439             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3440             continue # so that we can try to find one that supports BSD flags
3441             ;;
3442           esac
3443           ;;
3444         esac
3445       fi
3446     done
3447     IFS="$lt_save_ifs"
3448   done
3449   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3450 fi
3451 fi
3452 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3453 echo "${ECHO_T}$lt_cv_path_NM" >&6
3454 NM="$lt_cv_path_NM"
3455
3456 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3457 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3458 LN_S=$as_ln_s
3459 if test "$LN_S" = "ln -s"; then
3460   echo "$as_me:$LINENO: result: yes" >&5
3461 echo "${ECHO_T}yes" >&6
3462 else
3463   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3464 echo "${ECHO_T}no, using $LN_S" >&6
3465 fi
3466
3467 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3468 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3469 if test "${lt_cv_deplibs_check_method+set}" = set; then
3470   echo $ECHO_N "(cached) $ECHO_C" >&6
3471 else
3472   lt_cv_file_magic_cmd='$MAGIC_CMD'
3473 lt_cv_file_magic_test_file=
3474 lt_cv_deplibs_check_method='unknown'
3475 # Need to set the preceding variable on all platforms that support
3476 # interlibrary dependencies.
3477 # 'none' -- dependencies not supported.
3478 # `unknown' -- same as none, but documents that we really don't know.
3479 # 'pass_all' -- all dependencies passed with no checks.
3480 # 'test_compile' -- check by making test program.
3481 # 'file_magic [[regex]]' -- check by looking for files in library path
3482 # which responds to the $file_magic_cmd with a given extended regex.
3483 # If you have `file' or equivalent on your system and you're not sure
3484 # whether `pass_all' will *always* work, you probably want this one.
3485
3486 case $host_os in
3487 aix4* | aix5*)
3488   lt_cv_deplibs_check_method=pass_all
3489   ;;
3490
3491 beos*)
3492   lt_cv_deplibs_check_method=pass_all
3493   ;;
3494
3495 bsdi[45]*)
3496   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3497   lt_cv_file_magic_cmd='/usr/bin/file -L'
3498   lt_cv_file_magic_test_file=/shlib/libc.so
3499   ;;
3500
3501 cygwin*)
3502   # func_win32_libid is a shell function defined in ltmain.sh
3503   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3504   lt_cv_file_magic_cmd='func_win32_libid'
3505   ;;
3506
3507 mingw* | pw32*)
3508   # Base MSYS/MinGW do not provide the 'file' command needed by
3509   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3510   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3511   lt_cv_file_magic_cmd='$OBJDUMP -f'
3512   ;;
3513
3514 darwin* | rhapsody*)
3515   lt_cv_deplibs_check_method=pass_all
3516   ;;
3517
3518 freebsd* | kfreebsd*-gnu | dragonfly*)
3519   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3520     case $host_cpu in
3521     i*86 )
3522       # Not sure whether the presence of OpenBSD here was a mistake.
3523       # Let's accept both of them until this is cleared up.
3524       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3525       lt_cv_file_magic_cmd=/usr/bin/file
3526       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3527       ;;
3528     esac
3529   else
3530     lt_cv_deplibs_check_method=pass_all
3531   fi
3532   ;;
3533
3534 gnu*)
3535   lt_cv_deplibs_check_method=pass_all
3536   ;;
3537
3538 hpux10.20* | hpux11*)
3539   lt_cv_file_magic_cmd=/usr/bin/file
3540   case $host_cpu in
3541   ia64*)
3542     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3543     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3544     ;;
3545   hppa*64*)
3546     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
3547     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3548     ;;
3549   *)
3550     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3551     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3552     ;;
3553   esac
3554   ;;
3555
3556 interix3*)
3557   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3558   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3559   ;;
3560
3561 irix5* | irix6* | nonstopux*)
3562   case $LD in
3563   *-32|*"-32 ") libmagic=32-bit;;
3564   *-n32|*"-n32 ") libmagic=N32;;
3565   *-64|*"-64 ") libmagic=64-bit;;
3566   *) libmagic=never-match;;
3567   esac
3568   lt_cv_deplibs_check_method=pass_all
3569   ;;
3570
3571 # This must be Linux ELF.
3572 linux*)
3573   lt_cv_deplibs_check_method=pass_all
3574   ;;
3575
3576 netbsd*)
3577   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3578     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3579   else
3580     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3581   fi
3582   ;;
3583
3584 newos6*)
3585   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3586   lt_cv_file_magic_cmd=/usr/bin/file
3587   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3588   ;;
3589
3590 nto-qnx*)
3591   lt_cv_deplibs_check_method=unknown
3592   ;;
3593
3594 openbsd*)
3595   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3596     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3597   else
3598     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3599   fi
3600   ;;
3601
3602 osf3* | osf4* | osf5*)
3603   lt_cv_deplibs_check_method=pass_all
3604   ;;
3605
3606 solaris*)
3607   lt_cv_deplibs_check_method=pass_all
3608   ;;
3609
3610 sysv4 | sysv4.3*)
3611   case $host_vendor in
3612   motorola)
3613     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3614     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3615     ;;
3616   ncr)
3617     lt_cv_deplibs_check_method=pass_all
3618     ;;
3619   sequent)
3620     lt_cv_file_magic_cmd='/bin/file'
3621     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3622     ;;
3623   sni)
3624     lt_cv_file_magic_cmd='/bin/file'
3625     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3626     lt_cv_file_magic_test_file=/lib/libc.so
3627     ;;
3628   siemens)
3629     lt_cv_deplibs_check_method=pass_all
3630     ;;
3631   pc)
3632     lt_cv_deplibs_check_method=pass_all
3633     ;;
3634   esac
3635   ;;
3636
3637 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3638   lt_cv_deplibs_check_method=pass_all
3639   ;;
3640 esac
3641
3642 fi
3643 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3644 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3645 file_magic_cmd=$lt_cv_file_magic_cmd
3646 deplibs_check_method=$lt_cv_deplibs_check_method
3647 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3648
3649
3650
3651
3652 # If no C compiler was specified, use CC.
3653 LTCC=${LTCC-"$CC"}
3654
3655 # If no C compiler flags were specified, use CFLAGS.
3656 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3657
3658 # Allow CC to be a program name with arguments.
3659 compiler=$CC
3660
3661
3662 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3663 if test "${enable_libtool_lock+set}" = set; then
3664   enableval="$enable_libtool_lock"
3665   
3666 fi; 
3667 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3668
3669 # Some flags need to be propagated to the compiler or linker for good
3670 # libtool support.
3671 case $host in
3672 ia64-*-hpux*)
3673   # Find out which ABI we are using.
3674   echo 'int i;' > conftest.$ac_ext
3675   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3676   (eval $ac_compile) 2>&5
3677   ac_status=$?
3678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679   (exit $ac_status); }; then
3680     case `/usr/bin/file conftest.$ac_objext` in
3681     *ELF-32*)
3682       HPUX_IA64_MODE="32"
3683       ;;
3684     *ELF-64*)
3685       HPUX_IA64_MODE="64"
3686       ;;
3687     esac
3688   fi
3689   rm -rf conftest*
3690   ;;
3691 *-*-irix6*)
3692   # Find out which ABI we are using.
3693   echo '#line __oline__ "configure"' > conftest.$ac_ext
3694   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3695   (eval $ac_compile) 2>&5
3696   ac_status=$?
3697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3698   (exit $ac_status); }; then
3699    if test "$lt_cv_prog_gnu_ld" = yes; then
3700     case `/usr/bin/file conftest.$ac_objext` in
3701     *32-bit*)
3702       LD="${LD-ld} -melf32bsmip"
3703       ;;
3704     *N32*)
3705       LD="${LD-ld} -melf32bmipn32"
3706       ;;
3707     *64-bit*)
3708       LD="${LD-ld} -melf64bmip"
3709       ;;
3710     esac
3711    else
3712     case `/usr/bin/file conftest.$ac_objext` in
3713     *32-bit*)
3714       LD="${LD-ld} -32"
3715       ;;
3716     *N32*)
3717       LD="${LD-ld} -n32"
3718       ;;
3719     *64-bit*)
3720       LD="${LD-ld} -64"
3721       ;;
3722     esac
3723    fi
3724   fi
3725   rm -rf conftest*
3726   ;;
3727
3728 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3729   # Find out which ABI we are using.
3730   echo 'int i;' > conftest.$ac_ext
3731   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3732   (eval $ac_compile) 2>&5
3733   ac_status=$?
3734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735   (exit $ac_status); }; then
3736     case `/usr/bin/file conftest.o` in
3737     *32-bit*)
3738       case $host in
3739         x86_64-*linux*)
3740           LD="${LD-ld} -m elf_i386"
3741           ;;
3742         ppc64-*linux*|powerpc64-*linux*)
3743           LD="${LD-ld} -m elf32ppclinux"
3744           ;;
3745         s390x-*linux*)
3746           LD="${LD-ld} -m elf_s390"
3747           ;;
3748         sparc64-*linux*)
3749           LD="${LD-ld} -m elf32_sparc"
3750           ;;
3751       esac
3752       ;;
3753     *64-bit*)
3754       case $host in
3755         x86_64-*linux*)
3756           LD="${LD-ld} -m elf_x86_64"
3757           ;;
3758         ppc*-*linux*|powerpc*-*linux*)
3759           LD="${LD-ld} -m elf64ppc"
3760           ;;
3761         s390*-*linux*)
3762           LD="${LD-ld} -m elf64_s390"
3763           ;;
3764         sparc*-*linux*)
3765           LD="${LD-ld} -m elf64_sparc"
3766           ;;
3767       esac
3768       ;;
3769     esac
3770   fi
3771   rm -rf conftest*
3772   ;;
3773
3774 *-*-sco3.2v5*)
3775   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3776   SAVE_CFLAGS="$CFLAGS"
3777   CFLAGS="$CFLAGS -belf"
3778   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3779 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3780 if test "${lt_cv_cc_needs_belf+set}" = set; then
3781   echo $ECHO_N "(cached) $ECHO_C" >&6
3782 else
3783   ac_ext=c
3784 ac_cpp='$CPP $CPPFLAGS'
3785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3788
3789      cat >conftest.$ac_ext <<_ACEOF
3790 /* confdefs.h.  */
3791 _ACEOF
3792 cat confdefs.h >>conftest.$ac_ext
3793 cat >>conftest.$ac_ext <<_ACEOF
3794 /* end confdefs.h.  */
3795
3796 int
3797 main ()
3798 {
3799
3800   ;
3801   return 0;
3802 }
3803 _ACEOF
3804 rm -f conftest.$ac_objext conftest$ac_exeext
3805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3806   (eval $ac_link) 2>conftest.er1
3807   ac_status=$?
3808   grep -v '^ *+' conftest.er1 >conftest.err
3809   rm -f conftest.er1
3810   cat conftest.err >&5
3811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812   (exit $ac_status); } &&
3813          { ac_try='test -z "$ac_c_werror_flag"
3814                          || test ! -s conftest.err'
3815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3816   (eval $ac_try) 2>&5
3817   ac_status=$?
3818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819   (exit $ac_status); }; } &&
3820          { ac_try='test -s conftest$ac_exeext'
3821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3822   (eval $ac_try) 2>&5
3823   ac_status=$?
3824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825   (exit $ac_status); }; }; then
3826   lt_cv_cc_needs_belf=yes
3827 else
3828   echo "$as_me: failed program was:" >&5
3829 sed 's/^/| /' conftest.$ac_ext >&5
3830
3831 lt_cv_cc_needs_belf=no
3832 fi
3833 rm -f conftest.err conftest.$ac_objext \
3834       conftest$ac_exeext conftest.$ac_ext
3835      ac_ext=c
3836 ac_cpp='$CPP $CPPFLAGS'
3837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3840
3841 fi
3842 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3843 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3844   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3845     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3846     CFLAGS="$SAVE_CFLAGS"
3847   fi
3848   ;;
3849 sparc*-*solaris*)
3850   # Find out which ABI we are using.
3851   echo 'int i;' > conftest.$ac_ext
3852   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3853   (eval $ac_compile) 2>&5
3854   ac_status=$?
3855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856   (exit $ac_status); }; then
3857     case `/usr/bin/file conftest.o` in
3858     *64-bit*)
3859       case $lt_cv_prog_gnu_ld in
3860       yes*) LD="${LD-ld} -m elf64_sparc" ;;
3861       *)    LD="${LD-ld} -64" ;;
3862       esac
3863       ;;
3864     esac
3865   fi
3866   rm -rf conftest*
3867   ;;
3868
3869
3870 esac
3871
3872 need_locks="$enable_libtool_lock"
3873
3874
3875 ac_ext=c
3876 ac_cpp='$CPP $CPPFLAGS'
3877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3880 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3881 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3882 # On Suns, sometimes $CPP names a directory.
3883 if test -n "$CPP" && test -d "$CPP"; then
3884   CPP=
3885 fi
3886 if test -z "$CPP"; then
3887   if test "${ac_cv_prog_CPP+set}" = set; then
3888   echo $ECHO_N "(cached) $ECHO_C" >&6
3889 else
3890       # Double quotes because CPP needs to be expanded
3891     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3892     do
3893       ac_preproc_ok=false
3894 for ac_c_preproc_warn_flag in '' yes
3895 do
3896   # Use a header file that comes with gcc, so configuring glibc
3897   # with a fresh cross-compiler works.
3898   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3899   # <limits.h> exists even on freestanding compilers.
3900   # On the NeXT, cc -E runs the code through the compiler's parser,
3901   # not just through cpp. "Syntax error" is here to catch this case.
3902   cat >conftest.$ac_ext <<_ACEOF
3903 /* confdefs.h.  */
3904 _ACEOF
3905 cat confdefs.h >>conftest.$ac_ext
3906 cat >>conftest.$ac_ext <<_ACEOF
3907 /* end confdefs.h.  */
3908 @%:@ifdef __STDC__
3909 @%:@ include <limits.h>
3910 @%:@else
3911 @%:@ include <assert.h>
3912 @%:@endif
3913                      Syntax error
3914 _ACEOF
3915 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3916   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3917   ac_status=$?
3918   grep -v '^ *+' conftest.er1 >conftest.err
3919   rm -f conftest.er1
3920   cat conftest.err >&5
3921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922   (exit $ac_status); } >/dev/null; then
3923   if test -s conftest.err; then
3924     ac_cpp_err=$ac_c_preproc_warn_flag
3925     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3926   else
3927     ac_cpp_err=
3928   fi
3929 else
3930   ac_cpp_err=yes
3931 fi
3932 if test -z "$ac_cpp_err"; then
3933   :
3934 else
3935   echo "$as_me: failed program was:" >&5
3936 sed 's/^/| /' conftest.$ac_ext >&5
3937
3938   # Broken: fails on valid input.
3939 continue
3940 fi
3941 rm -f conftest.err conftest.$ac_ext
3942
3943   # OK, works on sane cases.  Now check whether non-existent headers
3944   # can be detected and how.
3945   cat >conftest.$ac_ext <<_ACEOF
3946 /* confdefs.h.  */
3947 _ACEOF
3948 cat confdefs.h >>conftest.$ac_ext
3949 cat >>conftest.$ac_ext <<_ACEOF
3950 /* end confdefs.h.  */
3951 @%:@include <ac_nonexistent.h>
3952 _ACEOF
3953 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3954   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3955   ac_status=$?
3956   grep -v '^ *+' conftest.er1 >conftest.err
3957   rm -f conftest.er1
3958   cat conftest.err >&5
3959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960   (exit $ac_status); } >/dev/null; then
3961   if test -s conftest.err; then
3962     ac_cpp_err=$ac_c_preproc_warn_flag
3963     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3964   else
3965     ac_cpp_err=
3966   fi
3967 else
3968   ac_cpp_err=yes
3969 fi
3970 if test -z "$ac_cpp_err"; then
3971   # Broken: success on invalid input.
3972 continue
3973 else
3974   echo "$as_me: failed program was:" >&5
3975 sed 's/^/| /' conftest.$ac_ext >&5
3976
3977   # Passes both tests.
3978 ac_preproc_ok=:
3979 break
3980 fi
3981 rm -f conftest.err conftest.$ac_ext
3982
3983 done
3984 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3985 rm -f conftest.err conftest.$ac_ext
3986 if $ac_preproc_ok; then
3987   break
3988 fi
3989
3990     done
3991     ac_cv_prog_CPP=$CPP
3992   
3993 fi
3994   CPP=$ac_cv_prog_CPP
3995 else
3996   ac_cv_prog_CPP=$CPP
3997 fi
3998 echo "$as_me:$LINENO: result: $CPP" >&5
3999 echo "${ECHO_T}$CPP" >&6
4000 ac_preproc_ok=false
4001 for ac_c_preproc_warn_flag in '' yes
4002 do
4003   # Use a header file that comes with gcc, so configuring glibc
4004   # with a fresh cross-compiler works.
4005   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4006   # <limits.h> exists even on freestanding compilers.
4007   # On the NeXT, cc -E runs the code through the compiler's parser,
4008   # not just through cpp. "Syntax error" is here to catch this case.
4009   cat >conftest.$ac_ext <<_ACEOF
4010 /* confdefs.h.  */
4011 _ACEOF
4012 cat confdefs.h >>conftest.$ac_ext
4013 cat >>conftest.$ac_ext <<_ACEOF
4014 /* end confdefs.h.  */
4015 @%:@ifdef __STDC__
4016 @%:@ include <limits.h>
4017 @%:@else
4018 @%:@ include <assert.h>
4019 @%:@endif
4020                      Syntax error
4021 _ACEOF
4022 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4023   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4024   ac_status=$?
4025   grep -v '^ *+' conftest.er1 >conftest.err
4026   rm -f conftest.er1
4027   cat conftest.err >&5
4028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029   (exit $ac_status); } >/dev/null; then
4030   if test -s conftest.err; then
4031     ac_cpp_err=$ac_c_preproc_warn_flag
4032     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4033   else
4034     ac_cpp_err=
4035   fi
4036 else
4037   ac_cpp_err=yes
4038 fi
4039 if test -z "$ac_cpp_err"; then
4040   :
4041 else
4042   echo "$as_me: failed program was:" >&5
4043 sed 's/^/| /' conftest.$ac_ext >&5
4044
4045   # Broken: fails on valid input.
4046 continue
4047 fi
4048 rm -f conftest.err conftest.$ac_ext
4049
4050   # OK, works on sane cases.  Now check whether non-existent headers
4051   # can be detected and how.
4052   cat >conftest.$ac_ext <<_ACEOF
4053 /* confdefs.h.  */
4054 _ACEOF
4055 cat confdefs.h >>conftest.$ac_ext
4056 cat >>conftest.$ac_ext <<_ACEOF
4057 /* end confdefs.h.  */
4058 @%:@include <ac_nonexistent.h>
4059 _ACEOF
4060 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4061   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4062   ac_status=$?
4063   grep -v '^ *+' conftest.er1 >conftest.err
4064   rm -f conftest.er1
4065   cat conftest.err >&5
4066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067   (exit $ac_status); } >/dev/null; then
4068   if test -s conftest.err; then
4069     ac_cpp_err=$ac_c_preproc_warn_flag
4070     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4071   else
4072     ac_cpp_err=
4073   fi
4074 else
4075   ac_cpp_err=yes
4076 fi
4077 if test -z "$ac_cpp_err"; then
4078   # Broken: success on invalid input.
4079 continue
4080 else
4081   echo "$as_me: failed program was:" >&5
4082 sed 's/^/| /' conftest.$ac_ext >&5
4083
4084   # Passes both tests.
4085 ac_preproc_ok=:
4086 break
4087 fi
4088 rm -f conftest.err conftest.$ac_ext
4089
4090 done
4091 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4092 rm -f conftest.err conftest.$ac_ext
4093 if $ac_preproc_ok; then
4094   :
4095 else
4096   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4097 See \`config.log' for more details." >&5
4098 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4099 See \`config.log' for more details." >&2;}
4100    { (exit 1); exit 1; }; }
4101 fi
4102
4103 ac_ext=c
4104 ac_cpp='$CPP $CPPFLAGS'
4105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4108
4109
4110 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4111 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4112 if test "${ac_cv_header_stdc+set}" = set; then
4113   echo $ECHO_N "(cached) $ECHO_C" >&6
4114 else
4115   cat >conftest.$ac_ext <<_ACEOF
4116 /* confdefs.h.  */
4117 _ACEOF
4118 cat confdefs.h >>conftest.$ac_ext
4119 cat >>conftest.$ac_ext <<_ACEOF
4120 /* end confdefs.h.  */
4121 #include <stdlib.h>
4122 #include <stdarg.h>
4123 #include <string.h>
4124 #include <float.h>
4125
4126 int
4127 main ()
4128 {
4129
4130   ;
4131   return 0;
4132 }
4133 _ACEOF
4134 rm -f conftest.$ac_objext
4135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4136   (eval $ac_compile) 2>conftest.er1
4137   ac_status=$?
4138   grep -v '^ *+' conftest.er1 >conftest.err
4139   rm -f conftest.er1
4140   cat conftest.err >&5
4141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142   (exit $ac_status); } &&
4143          { ac_try='test -z "$ac_c_werror_flag"
4144                          || test ! -s conftest.err'
4145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4146   (eval $ac_try) 2>&5
4147   ac_status=$?
4148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149   (exit $ac_status); }; } &&
4150          { ac_try='test -s conftest.$ac_objext'
4151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4152   (eval $ac_try) 2>&5
4153   ac_status=$?
4154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155   (exit $ac_status); }; }; then
4156   ac_cv_header_stdc=yes
4157 else
4158   echo "$as_me: failed program was:" >&5
4159 sed 's/^/| /' conftest.$ac_ext >&5
4160
4161 ac_cv_header_stdc=no
4162 fi
4163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4164
4165 if test $ac_cv_header_stdc = yes; then
4166   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4167   cat >conftest.$ac_ext <<_ACEOF
4168 /* confdefs.h.  */
4169 _ACEOF
4170 cat confdefs.h >>conftest.$ac_ext
4171 cat >>conftest.$ac_ext <<_ACEOF
4172 /* end confdefs.h.  */
4173 #include <string.h>
4174
4175 _ACEOF
4176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4177   $EGREP "memchr" >/dev/null 2>&1; then
4178   :
4179 else
4180   ac_cv_header_stdc=no
4181 fi
4182 rm -f conftest*
4183
4184 fi
4185
4186 if test $ac_cv_header_stdc = yes; then
4187   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4188   cat >conftest.$ac_ext <<_ACEOF
4189 /* confdefs.h.  */
4190 _ACEOF
4191 cat confdefs.h >>conftest.$ac_ext
4192 cat >>conftest.$ac_ext <<_ACEOF
4193 /* end confdefs.h.  */
4194 #include <stdlib.h>
4195
4196 _ACEOF
4197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4198   $EGREP "free" >/dev/null 2>&1; then
4199   :
4200 else
4201   ac_cv_header_stdc=no
4202 fi
4203 rm -f conftest*
4204
4205 fi
4206
4207 if test $ac_cv_header_stdc = yes; then
4208   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4209   if test "$cross_compiling" = yes; then
4210   :
4211 else
4212   cat >conftest.$ac_ext <<_ACEOF
4213 /* confdefs.h.  */
4214 _ACEOF
4215 cat confdefs.h >>conftest.$ac_ext
4216 cat >>conftest.$ac_ext <<_ACEOF
4217 /* end confdefs.h.  */
4218 #include <ctype.h>
4219 #if ((' ' & 0x0FF) == 0x020)
4220 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4221 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4222 #else
4223 # define ISLOWER(c) \
4224                    (('a' <= (c) && (c) <= 'i') \
4225                      || ('j' <= (c) && (c) <= 'r') \
4226                      || ('s' <= (c) && (c) <= 'z'))
4227 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4228 #endif
4229
4230 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4231 int
4232 main ()
4233 {
4234   int i;
4235   for (i = 0; i < 256; i++)
4236     if (XOR (islower (i), ISLOWER (i))
4237         || toupper (i) != TOUPPER (i))
4238       exit(2);
4239   exit (0);
4240 }
4241 _ACEOF
4242 rm -f conftest$ac_exeext
4243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4244   (eval $ac_link) 2>&5
4245   ac_status=$?
4246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4247   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4249   (eval $ac_try) 2>&5
4250   ac_status=$?
4251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4252   (exit $ac_status); }; }; then
4253   :
4254 else
4255   echo "$as_me: program exited with status $ac_status" >&5
4256 echo "$as_me: failed program was:" >&5
4257 sed 's/^/| /' conftest.$ac_ext >&5
4258
4259 ( exit $ac_status )
4260 ac_cv_header_stdc=no
4261 fi
4262 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4263 fi
4264 fi
4265 fi
4266 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4267 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4268 if test $ac_cv_header_stdc = yes; then
4269   
4270 cat >>confdefs.h <<\_ACEOF
4271 @%:@define STDC_HEADERS 1
4272 _ACEOF
4273
4274 fi
4275
4276 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4287                   inttypes.h stdint.h unistd.h
4288 do
4289 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4290 echo "$as_me:$LINENO: checking for $ac_header" >&5
4291 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4292 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4293   echo $ECHO_N "(cached) $ECHO_C" >&6
4294 else
4295   cat >conftest.$ac_ext <<_ACEOF
4296 /* confdefs.h.  */
4297 _ACEOF
4298 cat confdefs.h >>conftest.$ac_ext
4299 cat >>conftest.$ac_ext <<_ACEOF
4300 /* end confdefs.h.  */
4301 $ac_includes_default
4302
4303 @%:@include <$ac_header>
4304 _ACEOF
4305 rm -f conftest.$ac_objext
4306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4307   (eval $ac_compile) 2>conftest.er1
4308   ac_status=$?
4309   grep -v '^ *+' conftest.er1 >conftest.err
4310   rm -f conftest.er1
4311   cat conftest.err >&5
4312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313   (exit $ac_status); } &&
4314          { ac_try='test -z "$ac_c_werror_flag"
4315                          || test ! -s conftest.err'
4316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4317   (eval $ac_try) 2>&5
4318   ac_status=$?
4319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4320   (exit $ac_status); }; } &&
4321          { ac_try='test -s conftest.$ac_objext'
4322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4323   (eval $ac_try) 2>&5
4324   ac_status=$?
4325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326   (exit $ac_status); }; }; then
4327   eval "$as_ac_Header=yes"
4328 else
4329   echo "$as_me: failed program was:" >&5
4330 sed 's/^/| /' conftest.$ac_ext >&5
4331
4332 eval "$as_ac_Header=no"
4333 fi
4334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4335 fi
4336 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4337 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4338 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4339   cat >>confdefs.h <<_ACEOF
4340 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4341 _ACEOF
4342  
4343 fi
4344
4345 done
4346
4347
4348
4349 for ac_header in dlfcn.h
4350 do
4351 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4352 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4353   echo "$as_me:$LINENO: checking for $ac_header" >&5
4354 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4355 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4356   echo $ECHO_N "(cached) $ECHO_C" >&6
4357 fi
4358 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4359 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4360 else
4361   # Is the header compilable?
4362 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4363 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4364 cat >conftest.$ac_ext <<_ACEOF
4365 /* confdefs.h.  */
4366 _ACEOF
4367 cat confdefs.h >>conftest.$ac_ext
4368 cat >>conftest.$ac_ext <<_ACEOF
4369 /* end confdefs.h.  */
4370 $ac_includes_default
4371 @%:@include <$ac_header>
4372 _ACEOF
4373 rm -f conftest.$ac_objext
4374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4375   (eval $ac_compile) 2>conftest.er1
4376   ac_status=$?
4377   grep -v '^ *+' conftest.er1 >conftest.err
4378   rm -f conftest.er1
4379   cat conftest.err >&5
4380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381   (exit $ac_status); } &&
4382          { ac_try='test -z "$ac_c_werror_flag"
4383                          || test ! -s conftest.err'
4384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4385   (eval $ac_try) 2>&5
4386   ac_status=$?
4387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388   (exit $ac_status); }; } &&
4389          { ac_try='test -s conftest.$ac_objext'
4390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4391   (eval $ac_try) 2>&5
4392   ac_status=$?
4393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394   (exit $ac_status); }; }; then
4395   ac_header_compiler=yes
4396 else
4397   echo "$as_me: failed program was:" >&5
4398 sed 's/^/| /' conftest.$ac_ext >&5
4399
4400 ac_header_compiler=no
4401 fi
4402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4403 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4404 echo "${ECHO_T}$ac_header_compiler" >&6
4405
4406 # Is the header present?
4407 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4408 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4409 cat >conftest.$ac_ext <<_ACEOF
4410 /* confdefs.h.  */
4411 _ACEOF
4412 cat confdefs.h >>conftest.$ac_ext
4413 cat >>conftest.$ac_ext <<_ACEOF
4414 /* end confdefs.h.  */
4415 @%:@include <$ac_header>
4416 _ACEOF
4417 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4418   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4419   ac_status=$?
4420   grep -v '^ *+' conftest.er1 >conftest.err
4421   rm -f conftest.er1
4422   cat conftest.err >&5
4423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424   (exit $ac_status); } >/dev/null; then
4425   if test -s conftest.err; then
4426     ac_cpp_err=$ac_c_preproc_warn_flag
4427     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4428   else
4429     ac_cpp_err=
4430   fi
4431 else
4432   ac_cpp_err=yes
4433 fi
4434 if test -z "$ac_cpp_err"; then
4435   ac_header_preproc=yes
4436 else
4437   echo "$as_me: failed program was:" >&5
4438 sed 's/^/| /' conftest.$ac_ext >&5
4439
4440   ac_header_preproc=no
4441 fi
4442 rm -f conftest.err conftest.$ac_ext
4443 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4444 echo "${ECHO_T}$ac_header_preproc" >&6
4445
4446 # So?  What about this header?
4447 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4448   yes:no: )
4449     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4450 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4451     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4452 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4453     ac_header_preproc=yes
4454     ;;
4455   no:yes:* )
4456     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4457 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4458     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4459 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4460     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4461 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4462     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4463 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4464     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4465 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4466     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4467 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4468     (
4469       cat <<\_ASBOX
4470 @%:@@%:@ ------------------------------------- @%:@@%:@
4471 @%:@@%:@ Report this to uncensored.citadel.org @%:@@%:@
4472 @%:@@%:@ ------------------------------------- @%:@@%:@
4473 _ASBOX
4474     ) |
4475       sed "s/^/$as_me: WARNING:     /" >&2
4476     ;;
4477 esac
4478 echo "$as_me:$LINENO: checking for $ac_header" >&5
4479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4480 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4481   echo $ECHO_N "(cached) $ECHO_C" >&6
4482 else
4483   eval "$as_ac_Header=\$ac_header_preproc"
4484 fi
4485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4486 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4487
4488 fi
4489 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4490   cat >>confdefs.h <<_ACEOF
4491 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4492 _ACEOF
4493  
4494 fi
4495
4496 done
4497
4498 ac_ext=cc
4499 ac_cpp='$CXXCPP $CPPFLAGS'
4500 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4501 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4502 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4503 if test -n "$ac_tool_prefix"; then
4504   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4505   do
4506     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4507 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4508 echo "$as_me:$LINENO: checking for $ac_word" >&5
4509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4510 if test "${ac_cv_prog_CXX+set}" = set; then
4511   echo $ECHO_N "(cached) $ECHO_C" >&6
4512 else
4513   if test -n "$CXX"; then
4514   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4515 else
4516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4517 for as_dir in $PATH
4518 do
4519   IFS=$as_save_IFS
4520   test -z "$as_dir" && as_dir=.
4521   for ac_exec_ext in '' $ac_executable_extensions; do
4522   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4523     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4524     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4525     break 2
4526   fi
4527 done
4528 done
4529
4530 fi
4531 fi
4532 CXX=$ac_cv_prog_CXX
4533 if test -n "$CXX"; then
4534   echo "$as_me:$LINENO: result: $CXX" >&5
4535 echo "${ECHO_T}$CXX" >&6
4536 else
4537   echo "$as_me:$LINENO: result: no" >&5
4538 echo "${ECHO_T}no" >&6
4539 fi
4540
4541     test -n "$CXX" && break
4542   done
4543 fi
4544 if test -z "$CXX"; then
4545   ac_ct_CXX=$CXX
4546   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4547 do
4548   # Extract the first word of "$ac_prog", so it can be a program name with args.
4549 set dummy $ac_prog; ac_word=$2
4550 echo "$as_me:$LINENO: checking for $ac_word" >&5
4551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4552 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4553   echo $ECHO_N "(cached) $ECHO_C" >&6
4554 else
4555   if test -n "$ac_ct_CXX"; then
4556   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4557 else
4558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4559 for as_dir in $PATH
4560 do
4561   IFS=$as_save_IFS
4562   test -z "$as_dir" && as_dir=.
4563   for ac_exec_ext in '' $ac_executable_extensions; do
4564   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4565     ac_cv_prog_ac_ct_CXX="$ac_prog"
4566     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4567     break 2
4568   fi
4569 done
4570 done
4571
4572 fi
4573 fi
4574 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4575 if test -n "$ac_ct_CXX"; then
4576   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4577 echo "${ECHO_T}$ac_ct_CXX" >&6
4578 else
4579   echo "$as_me:$LINENO: result: no" >&5
4580 echo "${ECHO_T}no" >&6
4581 fi
4582
4583   test -n "$ac_ct_CXX" && break
4584 done
4585 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4586
4587   CXX=$ac_ct_CXX
4588 fi
4589
4590
4591 # Provide some information about the compiler.
4592 echo "$as_me:$LINENO:" \
4593      "checking for C++ compiler version" >&5
4594 ac_compiler=`set X $ac_compile; echo $2`
4595 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4596   (eval $ac_compiler --version </dev/null >&5) 2>&5
4597   ac_status=$?
4598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599   (exit $ac_status); }
4600 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4601   (eval $ac_compiler -v </dev/null >&5) 2>&5
4602   ac_status=$?
4603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604   (exit $ac_status); }
4605 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4606   (eval $ac_compiler -V </dev/null >&5) 2>&5
4607   ac_status=$?
4608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609   (exit $ac_status); }
4610
4611 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4612 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4613 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4614   echo $ECHO_N "(cached) $ECHO_C" >&6
4615 else
4616   cat >conftest.$ac_ext <<_ACEOF
4617 /* confdefs.h.  */
4618 _ACEOF
4619 cat confdefs.h >>conftest.$ac_ext
4620 cat >>conftest.$ac_ext <<_ACEOF
4621 /* end confdefs.h.  */
4622
4623 int
4624 main ()
4625 {
4626 #ifndef __GNUC__
4627        choke me
4628 #endif
4629
4630   ;
4631   return 0;
4632 }
4633 _ACEOF
4634 rm -f conftest.$ac_objext
4635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4636   (eval $ac_compile) 2>conftest.er1
4637   ac_status=$?
4638   grep -v '^ *+' conftest.er1 >conftest.err
4639   rm -f conftest.er1
4640   cat conftest.err >&5
4641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642   (exit $ac_status); } &&
4643          { ac_try='test -z "$ac_cxx_werror_flag"
4644                          || test ! -s conftest.err'
4645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4646   (eval $ac_try) 2>&5
4647   ac_status=$?
4648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649   (exit $ac_status); }; } &&
4650          { ac_try='test -s conftest.$ac_objext'
4651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4652   (eval $ac_try) 2>&5
4653   ac_status=$?
4654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655   (exit $ac_status); }; }; then
4656   ac_compiler_gnu=yes
4657 else
4658   echo "$as_me: failed program was:" >&5
4659 sed 's/^/| /' conftest.$ac_ext >&5
4660
4661 ac_compiler_gnu=no
4662 fi
4663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4664 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4665
4666 fi
4667 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4668 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4669 GXX=`test $ac_compiler_gnu = yes && echo yes`
4670 ac_test_CXXFLAGS=${CXXFLAGS+set}
4671 ac_save_CXXFLAGS=$CXXFLAGS
4672 CXXFLAGS="-g"
4673 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4674 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4675 if test "${ac_cv_prog_cxx_g+set}" = set; then
4676   echo $ECHO_N "(cached) $ECHO_C" >&6
4677 else
4678   cat >conftest.$ac_ext <<_ACEOF
4679 /* confdefs.h.  */
4680 _ACEOF
4681 cat confdefs.h >>conftest.$ac_ext
4682 cat >>conftest.$ac_ext <<_ACEOF
4683 /* end confdefs.h.  */
4684
4685 int
4686 main ()
4687 {
4688
4689   ;
4690   return 0;
4691 }
4692 _ACEOF
4693 rm -f conftest.$ac_objext
4694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4695   (eval $ac_compile) 2>conftest.er1
4696   ac_status=$?
4697   grep -v '^ *+' conftest.er1 >conftest.err
4698   rm -f conftest.er1
4699   cat conftest.err >&5
4700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701   (exit $ac_status); } &&
4702          { ac_try='test -z "$ac_cxx_werror_flag"
4703                          || test ! -s conftest.err'
4704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4705   (eval $ac_try) 2>&5
4706   ac_status=$?
4707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708   (exit $ac_status); }; } &&
4709          { ac_try='test -s conftest.$ac_objext'
4710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4711   (eval $ac_try) 2>&5
4712   ac_status=$?
4713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714   (exit $ac_status); }; }; then
4715   ac_cv_prog_cxx_g=yes
4716 else
4717   echo "$as_me: failed program was:" >&5
4718 sed 's/^/| /' conftest.$ac_ext >&5
4719
4720 ac_cv_prog_cxx_g=no
4721 fi
4722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4723 fi
4724 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4725 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4726 if test "$ac_test_CXXFLAGS" = set; then
4727   CXXFLAGS=$ac_save_CXXFLAGS
4728 elif test $ac_cv_prog_cxx_g = yes; then
4729   if test "$GXX" = yes; then
4730     CXXFLAGS="-g -O2"
4731   else
4732     CXXFLAGS="-g"
4733   fi
4734 else
4735   if test "$GXX" = yes; then
4736     CXXFLAGS="-O2"
4737   else
4738     CXXFLAGS=
4739   fi
4740 fi
4741 for ac_declaration in \
4742    '' \
4743    'extern "C" void std::exit (int) throw (); using std::exit;' \
4744    'extern "C" void std::exit (int); using std::exit;' \
4745    'extern "C" void exit (int) throw ();' \
4746    'extern "C" void exit (int);' \
4747    'void exit (int);'
4748 do
4749   cat >conftest.$ac_ext <<_ACEOF
4750 /* confdefs.h.  */
4751 _ACEOF
4752 cat confdefs.h >>conftest.$ac_ext
4753 cat >>conftest.$ac_ext <<_ACEOF
4754 /* end confdefs.h.  */
4755 $ac_declaration
4756 @%:@include <stdlib.h>
4757 int
4758 main ()
4759 {
4760 exit (42);
4761   ;
4762   return 0;
4763 }
4764 _ACEOF
4765 rm -f conftest.$ac_objext
4766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4767   (eval $ac_compile) 2>conftest.er1
4768   ac_status=$?
4769   grep -v '^ *+' conftest.er1 >conftest.err
4770   rm -f conftest.er1
4771   cat conftest.err >&5
4772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773   (exit $ac_status); } &&
4774          { ac_try='test -z "$ac_cxx_werror_flag"
4775                          || test ! -s conftest.err'
4776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4777   (eval $ac_try) 2>&5
4778   ac_status=$?
4779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780   (exit $ac_status); }; } &&
4781          { ac_try='test -s conftest.$ac_objext'
4782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4783   (eval $ac_try) 2>&5
4784   ac_status=$?
4785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786   (exit $ac_status); }; }; then
4787   :
4788 else
4789   echo "$as_me: failed program was:" >&5
4790 sed 's/^/| /' conftest.$ac_ext >&5
4791
4792 continue
4793 fi
4794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4795   cat >conftest.$ac_ext <<_ACEOF
4796 /* confdefs.h.  */
4797 _ACEOF
4798 cat confdefs.h >>conftest.$ac_ext
4799 cat >>conftest.$ac_ext <<_ACEOF
4800 /* end confdefs.h.  */
4801 $ac_declaration
4802 int
4803 main ()
4804 {
4805 exit (42);
4806   ;
4807   return 0;
4808 }
4809 _ACEOF
4810 rm -f conftest.$ac_objext
4811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4812   (eval $ac_compile) 2>conftest.er1
4813   ac_status=$?
4814   grep -v '^ *+' conftest.er1 >conftest.err
4815   rm -f conftest.er1
4816   cat conftest.err >&5
4817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818   (exit $ac_status); } &&
4819          { ac_try='test -z "$ac_cxx_werror_flag"
4820                          || test ! -s conftest.err'
4821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4822   (eval $ac_try) 2>&5
4823   ac_status=$?
4824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825   (exit $ac_status); }; } &&
4826          { ac_try='test -s conftest.$ac_objext'
4827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4828   (eval $ac_try) 2>&5
4829   ac_status=$?
4830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831   (exit $ac_status); }; }; then
4832   break
4833 else
4834   echo "$as_me: failed program was:" >&5
4835 sed 's/^/| /' conftest.$ac_ext >&5
4836
4837 fi
4838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4839 done
4840 rm -f conftest*
4841 if test -n "$ac_declaration"; then
4842   echo '#ifdef __cplusplus' >>confdefs.h
4843   echo $ac_declaration      >>confdefs.h
4844   echo '#endif'             >>confdefs.h
4845 fi
4846
4847 ac_ext=cc
4848 ac_cpp='$CXXCPP $CPPFLAGS'
4849 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4850 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4851 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4852
4853 depcc="$CXX"  am_compiler_list=
4854
4855 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4856 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4857 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4858   echo $ECHO_N "(cached) $ECHO_C" >&6
4859 else
4860   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4861   # We make a subdir and do the tests there.  Otherwise we can end up
4862   # making bogus files that we don't know about and never remove.  For
4863   # instance it was reported that on HP-UX the gcc test will end up
4864   # making a dummy file named `D' -- because `-MD' means `put the output
4865   # in D'.
4866   mkdir conftest.dir
4867   # Copy depcomp to subdir because otherwise we won't find it if we're
4868   # using a relative directory.
4869   cp "$am_depcomp" conftest.dir
4870   cd conftest.dir
4871   # We will build objects and dependencies in a subdirectory because
4872   # it helps to detect inapplicable dependency modes.  For instance
4873   # both Tru64's cc and ICC support -MD to output dependencies as a
4874   # side effect of compilation, but ICC will put the dependencies in
4875   # the current directory while Tru64 will put them in the object
4876   # directory.
4877   mkdir sub
4878
4879   am_cv_CXX_dependencies_compiler_type=none
4880   if test "$am_compiler_list" = ""; then
4881      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4882   fi
4883   for depmode in $am_compiler_list; do
4884     # Setup a source with many dependencies, because some compilers
4885     # like to wrap large dependency lists on column 80 (with \), and
4886     # we should not choose a depcomp mode which is confused by this.
4887     #
4888     # We need to recreate these files for each test, as the compiler may
4889     # overwrite some of them when testing with obscure command lines.
4890     # This happens at least with the AIX C compiler.
4891     : > sub/conftest.c
4892     for i in 1 2 3 4 5 6; do
4893       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4894       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4895       # Solaris 8's {/usr,}/bin/sh.
4896       touch sub/conftst$i.h
4897     done
4898     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4899
4900     case $depmode in
4901     nosideeffect)
4902       # after this tag, mechanisms are not by side-effect, so they'll
4903       # only be used when explicitly requested
4904       if test "x$enable_dependency_tracking" = xyes; then
4905         continue
4906       else
4907         break
4908       fi
4909       ;;
4910     none) break ;;
4911     esac
4912     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4913     # mode.  It turns out that the SunPro C++ compiler does not properly
4914     # handle `-M -o', and we need to detect this.
4915     if depmode=$depmode \
4916        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4917        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4918        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4919          >/dev/null 2>conftest.err &&
4920        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4921        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4922        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4923       # icc doesn't choke on unknown options, it will just issue warnings
4924       # or remarks (even with -Werror).  So we grep stderr for any message
4925       # that says an option was ignored or not supported.
4926       # When given -MP, icc 7.0 and 7.1 complain thusly:
4927       #   icc: Command line warning: ignoring option '-M'; no argument required
4928       # The diagnosis changed in icc 8.0:
4929       #   icc: Command line remark: option '-MP' not supported
4930       if (grep 'ignoring option' conftest.err ||
4931           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4932         am_cv_CXX_dependencies_compiler_type=$depmode
4933         break
4934       fi
4935     fi
4936   done
4937
4938   cd ..
4939   rm -rf conftest.dir
4940 else
4941   am_cv_CXX_dependencies_compiler_type=none
4942 fi
4943
4944 fi
4945 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4946 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4947 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4948
4949  
4950
4951 if 
4952   test "x$enable_dependency_tracking" != xno \
4953   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4954   am__fastdepCXX_TRUE=
4955   am__fastdepCXX_FALSE='#'
4956 else
4957   am__fastdepCXX_TRUE='#'
4958   am__fastdepCXX_FALSE=
4959 fi
4960
4961
4962
4963
4964 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4965     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4966     (test "X$CXX" != "Xg++"))) ; then
4967   ac_ext=cc
4968 ac_cpp='$CXXCPP $CPPFLAGS'
4969 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4970 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4971 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4972 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4973 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4974 if test -z "$CXXCPP"; then
4975   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4976   echo $ECHO_N "(cached) $ECHO_C" >&6
4977 else
4978       # Double quotes because CXXCPP needs to be expanded
4979     for CXXCPP in "$CXX -E" "/lib/cpp"
4980     do
4981       ac_preproc_ok=false
4982 for ac_cxx_preproc_warn_flag in '' yes
4983 do
4984   # Use a header file that comes with gcc, so configuring glibc
4985   # with a fresh cross-compiler works.
4986   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4987   # <limits.h> exists even on freestanding compilers.
4988   # On the NeXT, cc -E runs the code through the compiler's parser,
4989   # not just through cpp. "Syntax error" is here to catch this case.
4990   cat >conftest.$ac_ext <<_ACEOF
4991 /* confdefs.h.  */
4992 _ACEOF
4993 cat confdefs.h >>conftest.$ac_ext
4994 cat >>conftest.$ac_ext <<_ACEOF
4995 /* end confdefs.h.  */
4996 @%:@ifdef __STDC__
4997 @%:@ include <limits.h>
4998 @%:@else
4999 @%:@ include <assert.h>
5000 @%:@endif
5001                      Syntax error
5002 _ACEOF
5003 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5004   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5005   ac_status=$?
5006   grep -v '^ *+' conftest.er1 >conftest.err
5007   rm -f conftest.er1
5008   cat conftest.err >&5
5009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010   (exit $ac_status); } >/dev/null; then
5011   if test -s conftest.err; then
5012     ac_cpp_err=$ac_cxx_preproc_warn_flag
5013     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5014   else
5015     ac_cpp_err=
5016   fi
5017 else
5018   ac_cpp_err=yes
5019 fi
5020 if test -z "$ac_cpp_err"; then
5021   :
5022 else
5023   echo "$as_me: failed program was:" >&5
5024 sed 's/^/| /' conftest.$ac_ext >&5
5025
5026   # Broken: fails on valid input.
5027 continue
5028 fi
5029 rm -f conftest.err conftest.$ac_ext
5030
5031   # OK, works on sane cases.  Now check whether non-existent headers
5032   # can be detected and how.
5033   cat >conftest.$ac_ext <<_ACEOF
5034 /* confdefs.h.  */
5035 _ACEOF
5036 cat confdefs.h >>conftest.$ac_ext
5037 cat >>conftest.$ac_ext <<_ACEOF
5038 /* end confdefs.h.  */
5039 @%:@include <ac_nonexistent.h>
5040 _ACEOF
5041 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5042   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5043   ac_status=$?
5044   grep -v '^ *+' conftest.er1 >conftest.err
5045   rm -f conftest.er1
5046   cat conftest.err >&5
5047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048   (exit $ac_status); } >/dev/null; then
5049   if test -s conftest.err; then
5050     ac_cpp_err=$ac_cxx_preproc_warn_flag
5051     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5052   else
5053     ac_cpp_err=
5054   fi
5055 else
5056   ac_cpp_err=yes
5057 fi
5058 if test -z "$ac_cpp_err"; then
5059   # Broken: success on invalid input.
5060 continue
5061 else
5062   echo "$as_me: failed program was:" >&5
5063 sed 's/^/| /' conftest.$ac_ext >&5
5064
5065   # Passes both tests.
5066 ac_preproc_ok=:
5067 break
5068 fi
5069 rm -f conftest.err conftest.$ac_ext
5070
5071 done
5072 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5073 rm -f conftest.err conftest.$ac_ext
5074 if $ac_preproc_ok; then
5075   break
5076 fi
5077
5078     done
5079     ac_cv_prog_CXXCPP=$CXXCPP
5080   
5081 fi
5082   CXXCPP=$ac_cv_prog_CXXCPP
5083 else
5084   ac_cv_prog_CXXCPP=$CXXCPP
5085 fi
5086 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5087 echo "${ECHO_T}$CXXCPP" >&6
5088 ac_preproc_ok=false
5089 for ac_cxx_preproc_warn_flag in '' yes
5090 do
5091   # Use a header file that comes with gcc, so configuring glibc
5092   # with a fresh cross-compiler works.
5093   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5094   # <limits.h> exists even on freestanding compilers.
5095   # On the NeXT, cc -E runs the code through the compiler's parser,
5096   # not just through cpp. "Syntax error" is here to catch this case.
5097   cat >conftest.$ac_ext <<_ACEOF
5098 /* confdefs.h.  */
5099 _ACEOF
5100 cat confdefs.h >>conftest.$ac_ext
5101 cat >>conftest.$ac_ext <<_ACEOF
5102 /* end confdefs.h.  */
5103 @%:@ifdef __STDC__
5104 @%:@ include <limits.h>
5105 @%:@else
5106 @%:@ include <assert.h>
5107 @%:@endif
5108                      Syntax error
5109 _ACEOF
5110 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5111   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5112   ac_status=$?
5113   grep -v '^ *+' conftest.er1 >conftest.err
5114   rm -f conftest.er1
5115   cat conftest.err >&5
5116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117   (exit $ac_status); } >/dev/null; then
5118   if test -s conftest.err; then
5119     ac_cpp_err=$ac_cxx_preproc_warn_flag
5120     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5121   else
5122     ac_cpp_err=
5123   fi
5124 else
5125   ac_cpp_err=yes
5126 fi
5127 if test -z "$ac_cpp_err"; then
5128   :
5129 else
5130   echo "$as_me: failed program was:" >&5
5131 sed 's/^/| /' conftest.$ac_ext >&5
5132
5133   # Broken: fails on valid input.
5134 continue
5135 fi
5136 rm -f conftest.err conftest.$ac_ext
5137
5138   # OK, works on sane cases.  Now check whether non-existent headers
5139   # can be detected and how.
5140   cat >conftest.$ac_ext <<_ACEOF
5141 /* confdefs.h.  */
5142 _ACEOF
5143 cat confdefs.h >>conftest.$ac_ext
5144 cat >>conftest.$ac_ext <<_ACEOF
5145 /* end confdefs.h.  */
5146 @%:@include <ac_nonexistent.h>
5147 _ACEOF
5148 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5149   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5150   ac_status=$?
5151   grep -v '^ *+' conftest.er1 >conftest.err
5152   rm -f conftest.er1
5153   cat conftest.err >&5
5154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5155   (exit $ac_status); } >/dev/null; then
5156   if test -s conftest.err; then
5157     ac_cpp_err=$ac_cxx_preproc_warn_flag
5158     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5159   else
5160     ac_cpp_err=
5161   fi
5162 else
5163   ac_cpp_err=yes
5164 fi
5165 if test -z "$ac_cpp_err"; then
5166   # Broken: success on invalid input.
5167 continue
5168 else
5169   echo "$as_me: failed program was:" >&5
5170 sed 's/^/| /' conftest.$ac_ext >&5
5171
5172   # Passes both tests.
5173 ac_preproc_ok=:
5174 break
5175 fi
5176 rm -f conftest.err conftest.$ac_ext
5177
5178 done
5179 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5180 rm -f conftest.err conftest.$ac_ext
5181 if $ac_preproc_ok; then
5182   :
5183 else
5184   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5185 See \`config.log' for more details." >&5
5186 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5187 See \`config.log' for more details." >&2;}
5188    { (exit 1); exit 1; }; }
5189 fi
5190
5191 ac_ext=cc
5192 ac_cpp='$CXXCPP $CPPFLAGS'
5193 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5194 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5195 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5196
5197 fi
5198
5199
5200 ac_ext=f
5201 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5202 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5203 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5204 if test -n "$ac_tool_prefix"; then
5205   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5206   do
5207     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5208 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5209 echo "$as_me:$LINENO: checking for $ac_word" >&5
5210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5211 if test "${ac_cv_prog_F77+set}" = set; then
5212   echo $ECHO_N "(cached) $ECHO_C" >&6
5213 else
5214   if test -n "$F77"; then
5215   ac_cv_prog_F77="$F77" # Let the user override the test.
5216 else
5217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5218 for as_dir in $PATH
5219 do
5220   IFS=$as_save_IFS
5221   test -z "$as_dir" && as_dir=.
5222   for ac_exec_ext in '' $ac_executable_extensions; do
5223   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5224     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5225     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5226     break 2
5227   fi
5228 done
5229 done
5230
5231 fi
5232 fi
5233 F77=$ac_cv_prog_F77
5234 if test -n "$F77"; then
5235   echo "$as_me:$LINENO: result: $F77" >&5
5236 echo "${ECHO_T}$F77" >&6
5237 else
5238   echo "$as_me:$LINENO: result: no" >&5
5239 echo "${ECHO_T}no" >&6
5240 fi
5241
5242     test -n "$F77" && break
5243   done
5244 fi
5245 if test -z "$F77"; then
5246   ac_ct_F77=$F77
5247   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5248 do
5249   # Extract the first word of "$ac_prog", so it can be a program name with args.
5250 set dummy $ac_prog; ac_word=$2
5251 echo "$as_me:$LINENO: checking for $ac_word" >&5
5252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5253 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5254   echo $ECHO_N "(cached) $ECHO_C" >&6
5255 else
5256   if test -n "$ac_ct_F77"; then
5257   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5258 else
5259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5260 for as_dir in $PATH
5261 do
5262   IFS=$as_save_IFS
5263   test -z "$as_dir" && as_dir=.
5264   for ac_exec_ext in '' $ac_executable_extensions; do
5265   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5266     ac_cv_prog_ac_ct_F77="$ac_prog"
5267     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5268     break 2
5269   fi
5270 done
5271 done
5272
5273 fi
5274 fi
5275 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5276 if test -n "$ac_ct_F77"; then
5277   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5278 echo "${ECHO_T}$ac_ct_F77" >&6
5279 else
5280   echo "$as_me:$LINENO: result: no" >&5
5281 echo "${ECHO_T}no" >&6
5282 fi
5283
5284   test -n "$ac_ct_F77" && break
5285 done
5286
5287   F77=$ac_ct_F77
5288 fi
5289
5290
5291 # Provide some information about the compiler.
5292 echo "$as_me:__oline__:" \
5293      "checking for Fortran 77 compiler version" >&5
5294 ac_compiler=`set X $ac_compile; echo $2`
5295 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5296   (eval $ac_compiler --version </dev/null >&5) 2>&5
5297   ac_status=$?
5298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299   (exit $ac_status); }
5300 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5301   (eval $ac_compiler -v </dev/null >&5) 2>&5
5302   ac_status=$?
5303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304   (exit $ac_status); }
5305 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5306   (eval $ac_compiler -V </dev/null >&5) 2>&5
5307   ac_status=$?
5308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309   (exit $ac_status); }
5310 rm -f a.out
5311
5312 # If we don't use `.F' as extension, the preprocessor is not run on the
5313 # input file.  (Note that this only needs to work for GNU compilers.)
5314 ac_save_ext=$ac_ext
5315 ac_ext=F
5316 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5317 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5318 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5319   echo $ECHO_N "(cached) $ECHO_C" >&6
5320 else
5321   cat >conftest.$ac_ext <<_ACEOF
5322       program main
5323 #ifndef __GNUC__
5324        choke me
5325 #endif
5326
5327       end
5328 _ACEOF
5329 rm -f conftest.$ac_objext
5330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5331   (eval $ac_compile) 2>conftest.er1
5332   ac_status=$?
5333   grep -v '^ *+' conftest.er1 >conftest.err
5334   rm -f conftest.er1
5335   cat conftest.err >&5
5336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337   (exit $ac_status); } &&
5338          { ac_try='test -z "$ac_f77_werror_flag"
5339                          || test ! -s conftest.err'
5340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5341   (eval $ac_try) 2>&5
5342   ac_status=$?
5343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344   (exit $ac_status); }; } &&
5345          { ac_try='test -s conftest.$ac_objext'
5346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5347   (eval $ac_try) 2>&5
5348   ac_status=$?
5349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5350   (exit $ac_status); }; }; then
5351   ac_compiler_gnu=yes
5352 else
5353   echo "$as_me: failed program was:" >&5
5354 sed 's/^/| /' conftest.$ac_ext >&5
5355
5356 ac_compiler_gnu=no
5357 fi
5358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5359 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5360
5361 fi
5362 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5363 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5364 ac_ext=$ac_save_ext
5365 ac_test_FFLAGS=${FFLAGS+set}
5366 ac_save_FFLAGS=$FFLAGS
5367 FFLAGS=
5368 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5369 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5370 if test "${ac_cv_prog_f77_g+set}" = set; then
5371   echo $ECHO_N "(cached) $ECHO_C" >&6
5372 else
5373   FFLAGS=-g
5374 cat >conftest.$ac_ext <<_ACEOF
5375       program main
5376
5377       end
5378 _ACEOF
5379 rm -f conftest.$ac_objext
5380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5381   (eval $ac_compile) 2>conftest.er1
5382   ac_status=$?
5383   grep -v '^ *+' conftest.er1 >conftest.err
5384   rm -f conftest.er1
5385   cat conftest.err >&5
5386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387   (exit $ac_status); } &&
5388          { ac_try='test -z "$ac_f77_werror_flag"
5389                          || test ! -s conftest.err'
5390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5391   (eval $ac_try) 2>&5
5392   ac_status=$?
5393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394   (exit $ac_status); }; } &&
5395          { ac_try='test -s conftest.$ac_objext'
5396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5397   (eval $ac_try) 2>&5
5398   ac_status=$?
5399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5400   (exit $ac_status); }; }; then
5401   ac_cv_prog_f77_g=yes
5402 else
5403   echo "$as_me: failed program was:" >&5
5404 sed 's/^/| /' conftest.$ac_ext >&5
5405
5406 ac_cv_prog_f77_g=no
5407 fi
5408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5409
5410 fi
5411 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5412 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5413 if test "$ac_test_FFLAGS" = set; then
5414   FFLAGS=$ac_save_FFLAGS
5415 elif test $ac_cv_prog_f77_g = yes; then
5416   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5417     FFLAGS="-g -O2"
5418   else
5419     FFLAGS="-g"
5420   fi
5421 else
5422   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5423     FFLAGS="-O2"
5424   else
5425     FFLAGS=
5426   fi
5427 fi
5428
5429 G77=`test $ac_compiler_gnu = yes && echo yes`
5430 ac_ext=c
5431 ac_cpp='$CPP $CPPFLAGS'
5432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5435
5436
5437
5438 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5439
5440 # find the maximum length of command line arguments
5441 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5442 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5443 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5444   echo $ECHO_N "(cached) $ECHO_C" >&6
5445 else
5446     i=0
5447   teststring="ABCD"
5448
5449   case $build_os in
5450   msdosdjgpp*)
5451     # On DJGPP, this test can blow up pretty badly due to problems in libc
5452     # (any single argument exceeding 2000 bytes causes a buffer overrun
5453     # during glob expansion).  Even if it were fixed, the result of this
5454     # check would be larger than it should be.
5455     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5456     ;;
5457
5458   gnu*)
5459     # Under GNU Hurd, this test is not required because there is
5460     # no limit to the length of command line arguments.
5461     # Libtool will interpret -1 as no limit whatsoever
5462     lt_cv_sys_max_cmd_len=-1;
5463     ;;
5464
5465   cygwin* | mingw*)
5466     # On Win9x/ME, this test blows up -- it succeeds, but takes
5467     # about 5 minutes as the teststring grows exponentially.
5468     # Worse, since 9x/ME are not pre-emptively multitasking,
5469     # you end up with a "frozen" computer, even though with patience
5470     # the test eventually succeeds (with a max line length of 256k).
5471     # Instead, let's just punt: use the minimum linelength reported by
5472     # all of the supported platforms: 8192 (on NT/2K/XP).
5473     lt_cv_sys_max_cmd_len=8192;
5474     ;;
5475
5476   amigaos*)
5477     # On AmigaOS with pdksh, this test takes hours, literally.
5478     # So we just punt and use a minimum line length of 8192.
5479     lt_cv_sys_max_cmd_len=8192;
5480     ;;
5481
5482   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5483     # This has been around since 386BSD, at least.  Likely further.
5484     if test -x /sbin/sysctl; then
5485       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5486     elif test -x /usr/sbin/sysctl; then
5487       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5488     else
5489       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5490     fi
5491     # And add a safety zone
5492     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5493     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5494     ;;
5495
5496   interix*)
5497     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5498     lt_cv_sys_max_cmd_len=196608
5499     ;;
5500
5501   osf*)
5502     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5503     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5504     # nice to cause kernel panics so lets avoid the loop below.
5505     # First set a reasonable default.
5506     lt_cv_sys_max_cmd_len=16384
5507     #
5508     if test -x /sbin/sysconfig; then
5509       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5510         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5511       esac
5512     fi
5513     ;;
5514   sco3.2v5*)
5515     lt_cv_sys_max_cmd_len=102400
5516     ;;
5517   sysv5* | sco5v6* | sysv4.2uw2*)
5518     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5519     if test -n "$kargmax"; then
5520       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
5521     else
5522       lt_cv_sys_max_cmd_len=32768
5523     fi
5524     ;;
5525   *)
5526     # If test is not a shell built-in, we'll probably end up computing a
5527     # maximum length that is only half of the actual maximum length, but
5528     # we can't tell.
5529     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5530     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5531                = "XX$teststring") >/dev/null 2>&1 &&
5532             new_result=`expr "X$teststring" : ".*" 2>&1` &&
5533             lt_cv_sys_max_cmd_len=$new_result &&
5534             test $i != 17 # 1/2 MB should be enough
5535     do
5536       i=`expr $i + 1`
5537       teststring=$teststring$teststring
5538     done
5539     teststring=
5540     # Add a significant safety factor because C++ compilers can tack on massive
5541     # amounts of additional arguments before passing them to the linker.
5542     # It appears as though 1/2 is a usable value.
5543     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5544     ;;
5545   esac
5546
5547 fi
5548
5549 if test -n $lt_cv_sys_max_cmd_len ; then
5550   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5551 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5552 else
5553   echo "$as_me:$LINENO: result: none" >&5
5554 echo "${ECHO_T}none" >&6
5555 fi
5556
5557
5558
5559
5560 # Check for command to grab the raw symbol name followed by C symbol from nm.
5561 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5562 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5563 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5564   echo $ECHO_N "(cached) $ECHO_C" >&6
5565 else
5566   
5567 # These are sane defaults that work on at least a few old systems.
5568 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5569
5570 # Character class describing NM global symbol codes.
5571 symcode='[BCDEGRST]'
5572
5573 # Regexp to match symbols that can be accessed directly from C.
5574 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5575
5576 # Transform an extracted symbol line into a proper C declaration
5577 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5578
5579 # Transform an extracted symbol line into symbol name and symbol address
5580 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5581
5582 # Define system-specific variables.
5583 case $host_os in
5584 aix*)
5585   symcode='[BCDT]'
5586   ;;
5587 cygwin* | mingw* | pw32*)
5588   symcode='[ABCDGISTW]'
5589   ;;
5590 hpux*) # Its linker distinguishes data from code symbols
5591   if test "$host_cpu" = ia64; then
5592     symcode='[ABCDEGRST]'
5593   fi
5594   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5595   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5596   ;;
5597 linux*)
5598   if test "$host_cpu" = ia64; then
5599     symcode='[ABCDGIRSTW]'
5600     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5601     lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5602   fi
5603   ;;
5604 irix* | nonstopux*)
5605   symcode='[BCDEGRST]'
5606   ;;
5607 osf*)
5608   symcode='[BCDEGQRST]'
5609   ;;
5610 solaris*)
5611   symcode='[BDRT]'
5612   ;;
5613 sco3.2v5*)
5614   symcode='[DT]'
5615   ;;
5616 sysv4.2uw2*)
5617   symcode='[DT]'
5618   ;;
5619 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5620   symcode='[ABDT]'
5621   ;;
5622 sysv4)
5623   symcode='[DFNSTU]'
5624   ;;
5625 esac
5626
5627 # Handle CRLF in mingw tool chain
5628 opt_cr=
5629 case $build_os in
5630 mingw*)
5631   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5632   ;;
5633 esac
5634
5635 # If we're using GNU nm, then use its standard symbol codes.
5636 case `$NM -V 2>&1` in
5637 *GNU* | *'with BFD'*)
5638   symcode='[ABCDGIRSTW]' ;;
5639 esac
5640
5641 # Try without a prefix undercore, then with it.
5642 for ac_symprfx in "" "_"; do
5643
5644   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5645   symxfrm="\\1 $ac_symprfx\\2 \\2"
5646
5647   # Write the raw and C identifiers.
5648   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5649
5650   # Check to see that the pipe works correctly.
5651   pipe_works=no
5652
5653   rm -f conftest*
5654   cat > conftest.$ac_ext <<EOF
5655 #ifdef __cplusplus
5656 extern "C" {
5657 #endif
5658 char nm_test_var;
5659 void nm_test_func(){}
5660 #ifdef __cplusplus
5661 }
5662 #endif
5663 int main(){nm_test_var='a';nm_test_func();return(0);}
5664 EOF
5665
5666   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5667   (eval $ac_compile) 2>&5
5668   ac_status=$?
5669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670   (exit $ac_status); }; then
5671     # Now try to grab the symbols.
5672     nlist=conftest.nm
5673     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5674   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5675   ac_status=$?
5676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677   (exit $ac_status); } && test -s "$nlist"; then
5678       # Try sorting and uniquifying the output.
5679       if sort "$nlist" | uniq > "$nlist"T; then
5680         mv -f "$nlist"T "$nlist"
5681       else
5682         rm -f "$nlist"T
5683       fi
5684
5685       # Make sure that we snagged all the symbols we need.
5686       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5687         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5688           cat <<EOF > conftest.$ac_ext
5689 #ifdef __cplusplus
5690 extern "C" {
5691 #endif
5692
5693 EOF
5694           # Now generate the symbol file.
5695           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5696
5697           cat <<EOF >> conftest.$ac_ext
5698 #if defined (__STDC__) && __STDC__
5699 # define lt_ptr_t void *
5700 #else
5701 # define lt_ptr_t char *
5702 # define const
5703 #endif
5704
5705 /* The mapping between symbol names and symbols. */
5706 const struct {
5707   const char *name;
5708   lt_ptr_t address;
5709 }
5710 lt_preloaded_symbols[] =
5711 {
5712 EOF
5713           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5714           cat <<\EOF >> conftest.$ac_ext
5715   {0, (lt_ptr_t) 0}
5716 };
5717
5718 #ifdef __cplusplus
5719 }
5720 #endif
5721 EOF
5722           # Now try linking the two files.
5723           mv conftest.$ac_objext conftstm.$ac_objext
5724           lt_save_LIBS="$LIBS"
5725           lt_save_CFLAGS="$CFLAGS"
5726           LIBS="conftstm.$ac_objext"
5727           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5728           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5729   (eval $ac_link) 2>&5
5730   ac_status=$?
5731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5733             pipe_works=yes
5734           fi
5735           LIBS="$lt_save_LIBS"
5736           CFLAGS="$lt_save_CFLAGS"
5737         else
5738           echo "cannot find nm_test_func in $nlist" >&5
5739         fi
5740       else
5741         echo "cannot find nm_test_var in $nlist" >&5
5742       fi
5743     else
5744       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5745     fi
5746   else
5747     echo "$progname: failed program was:" >&5
5748     cat conftest.$ac_ext >&5
5749   fi
5750   rm -f conftest* conftst*
5751
5752   # Do not use the global_symbol_pipe unless it works.
5753   if test "$pipe_works" = yes; then
5754     break
5755   else
5756     lt_cv_sys_global_symbol_pipe=
5757   fi
5758 done
5759
5760 fi
5761
5762 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5763   lt_cv_sys_global_symbol_to_cdecl=
5764 fi
5765 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5766   echo "$as_me:$LINENO: result: failed" >&5
5767 echo "${ECHO_T}failed" >&6
5768 else
5769   echo "$as_me:$LINENO: result: ok" >&5
5770 echo "${ECHO_T}ok" >&6
5771 fi
5772
5773 echo "$as_me:$LINENO: checking for objdir" >&5
5774 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5775 if test "${lt_cv_objdir+set}" = set; then
5776   echo $ECHO_N "(cached) $ECHO_C" >&6
5777 else
5778   rm -f .libs 2>/dev/null
5779 mkdir .libs 2>/dev/null
5780 if test -d .libs; then
5781   lt_cv_objdir=.libs
5782 else
5783   # MS-DOS does not allow filenames that begin with a dot.
5784   lt_cv_objdir=_libs
5785 fi
5786 rmdir .libs 2>/dev/null
5787 fi
5788 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5789 echo "${ECHO_T}$lt_cv_objdir" >&6
5790 objdir=$lt_cv_objdir
5791
5792
5793
5794
5795
5796 case $host_os in
5797 aix3*)
5798   # AIX sometimes has problems with the GCC collect2 program.  For some
5799   # reason, if we set the COLLECT_NAMES environment variable, the problems
5800   # vanish in a puff of smoke.
5801   if test "X${COLLECT_NAMES+set}" != Xset; then
5802     COLLECT_NAMES=
5803     export COLLECT_NAMES
5804   fi
5805   ;;
5806 esac
5807
5808 # Sed substitution that helps us do robust quoting.  It backslashifies
5809 # metacharacters that are still active within double-quoted strings.
5810 Xsed='sed -e 1s/^X//'
5811 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5812
5813 # Same as above, but do not quote variable references.
5814 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5815
5816 # Sed substitution to delay expansion of an escaped shell variable in a
5817 # double_quote_subst'ed string.
5818 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5819
5820 # Sed substitution to avoid accidental globbing in evaled expressions
5821 no_glob_subst='s/\*/\\\*/g'
5822
5823 # Constants:
5824 rm="rm -f"
5825
5826 # Global variables:
5827 default_ofile=libtool
5828 can_build_shared=yes
5829
5830 # All known linkers require a `.a' archive for static linking (except MSVC,
5831 # which needs '.lib').
5832 libext=a
5833 ltmain="$ac_aux_dir/ltmain.sh"
5834 ofile="$default_ofile"
5835 with_gnu_ld="$lt_cv_prog_gnu_ld"
5836
5837 if test -n "$ac_tool_prefix"; then
5838   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5839 set dummy ${ac_tool_prefix}ar; ac_word=$2
5840 echo "$as_me:$LINENO: checking for $ac_word" >&5
5841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5842 if test "${ac_cv_prog_AR+set}" = set; then
5843   echo $ECHO_N "(cached) $ECHO_C" >&6
5844 else
5845   if test -n "$AR"; then
5846   ac_cv_prog_AR="$AR" # Let the user override the test.
5847 else
5848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5849 for as_dir in $PATH
5850 do
5851   IFS=$as_save_IFS
5852   test -z "$as_dir" && as_dir=.
5853   for ac_exec_ext in '' $ac_executable_extensions; do
5854   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5855     ac_cv_prog_AR="${ac_tool_prefix}ar"
5856     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5857     break 2
5858   fi
5859 done
5860 done
5861
5862 fi
5863 fi
5864 AR=$ac_cv_prog_AR
5865 if test -n "$AR"; then
5866   echo "$as_me:$LINENO: result: $AR" >&5
5867 echo "${ECHO_T}$AR" >&6
5868 else
5869   echo "$as_me:$LINENO: result: no" >&5
5870 echo "${ECHO_T}no" >&6
5871 fi
5872
5873 fi
5874 if test -z "$ac_cv_prog_AR"; then
5875   ac_ct_AR=$AR
5876   # Extract the first word of "ar", so it can be a program name with args.
5877 set dummy ar; ac_word=$2
5878 echo "$as_me:$LINENO: checking for $ac_word" >&5
5879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5880 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5881   echo $ECHO_N "(cached) $ECHO_C" >&6
5882 else
5883   if test -n "$ac_ct_AR"; then
5884   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5885 else
5886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5887 for as_dir in $PATH
5888 do
5889   IFS=$as_save_IFS
5890   test -z "$as_dir" && as_dir=.
5891   for ac_exec_ext in '' $ac_executable_extensions; do
5892   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5893     ac_cv_prog_ac_ct_AR="ar"
5894     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5895     break 2
5896   fi
5897 done
5898 done
5899
5900   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5901 fi
5902 fi
5903 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5904 if test -n "$ac_ct_AR"; then
5905   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5906 echo "${ECHO_T}$ac_ct_AR" >&6
5907 else
5908   echo "$as_me:$LINENO: result: no" >&5
5909 echo "${ECHO_T}no" >&6
5910 fi
5911
5912   AR=$ac_ct_AR
5913 else
5914   AR="$ac_cv_prog_AR"
5915 fi
5916
5917 if test -n "$ac_tool_prefix"; then
5918   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5919 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5920 echo "$as_me:$LINENO: checking for $ac_word" >&5
5921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5922 if test "${ac_cv_prog_RANLIB+set}" = set; then
5923   echo $ECHO_N "(cached) $ECHO_C" >&6
5924 else
5925   if test -n "$RANLIB"; then
5926   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5927 else
5928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5929 for as_dir in $PATH
5930 do
5931   IFS=$as_save_IFS
5932   test -z "$as_dir" && as_dir=.
5933   for ac_exec_ext in '' $ac_executable_extensions; do
5934   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5935     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5936     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5937     break 2
5938   fi
5939 done
5940 done
5941
5942 fi
5943 fi
5944 RANLIB=$ac_cv_prog_RANLIB
5945 if test -n "$RANLIB"; then
5946   echo "$as_me:$LINENO: result: $RANLIB" >&5
5947 echo "${ECHO_T}$RANLIB" >&6
5948 else
5949   echo "$as_me:$LINENO: result: no" >&5
5950 echo "${ECHO_T}no" >&6
5951 fi
5952
5953 fi
5954 if test -z "$ac_cv_prog_RANLIB"; then
5955   ac_ct_RANLIB=$RANLIB
5956   # Extract the first word of "ranlib", so it can be a program name with args.
5957 set dummy ranlib; ac_word=$2
5958 echo "$as_me:$LINENO: checking for $ac_word" >&5
5959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5960 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5961   echo $ECHO_N "(cached) $ECHO_C" >&6
5962 else
5963   if test -n "$ac_ct_RANLIB"; then
5964   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5965 else
5966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5967 for as_dir in $PATH
5968 do
5969   IFS=$as_save_IFS
5970   test -z "$as_dir" && as_dir=.
5971   for ac_exec_ext in '' $ac_executable_extensions; do
5972   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5973     ac_cv_prog_ac_ct_RANLIB="ranlib"
5974     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5975     break 2
5976   fi
5977 done
5978 done
5979
5980   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5981 fi
5982 fi
5983 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5984 if test -n "$ac_ct_RANLIB"; then
5985   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5986 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5987 else
5988   echo "$as_me:$LINENO: result: no" >&5
5989 echo "${ECHO_T}no" >&6
5990 fi
5991
5992   RANLIB=$ac_ct_RANLIB
5993 else
5994   RANLIB="$ac_cv_prog_RANLIB"
5995 fi
5996
5997 if test -n "$ac_tool_prefix"; then
5998   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5999 set dummy ${ac_tool_prefix}strip; ac_word=$2
6000 echo "$as_me:$LINENO: checking for $ac_word" >&5
6001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6002 if test "${ac_cv_prog_STRIP+set}" = set; then
6003   echo $ECHO_N "(cached) $ECHO_C" >&6
6004 else
6005   if test -n "$STRIP"; then
6006   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6007 else
6008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6009 for as_dir in $PATH
6010 do
6011   IFS=$as_save_IFS
6012   test -z "$as_dir" && as_dir=.
6013   for ac_exec_ext in '' $ac_executable_extensions; do
6014   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6015     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6016     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6017     break 2
6018   fi
6019 done
6020 done
6021
6022 fi
6023 fi
6024 STRIP=$ac_cv_prog_STRIP
6025 if test -n "$STRIP"; then
6026   echo "$as_me:$LINENO: result: $STRIP" >&5
6027 echo "${ECHO_T}$STRIP" >&6
6028 else
6029   echo "$as_me:$LINENO: result: no" >&5
6030 echo "${ECHO_T}no" >&6
6031 fi
6032
6033 fi
6034 if test -z "$ac_cv_prog_STRIP"; then
6035   ac_ct_STRIP=$STRIP
6036   # Extract the first word of "strip", so it can be a program name with args.
6037 set dummy strip; ac_word=$2
6038 echo "$as_me:$LINENO: checking for $ac_word" >&5
6039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6040 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6041   echo $ECHO_N "(cached) $ECHO_C" >&6
6042 else
6043   if test -n "$ac_ct_STRIP"; then
6044   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6045 else
6046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6047 for as_dir in $PATH
6048 do
6049   IFS=$as_save_IFS
6050   test -z "$as_dir" && as_dir=.
6051   for ac_exec_ext in '' $ac_executable_extensions; do
6052   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6053     ac_cv_prog_ac_ct_STRIP="strip"
6054     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6055     break 2
6056   fi
6057 done
6058 done
6059
6060   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6061 fi
6062 fi
6063 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6064 if test -n "$ac_ct_STRIP"; then
6065   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6066 echo "${ECHO_T}$ac_ct_STRIP" >&6
6067 else
6068   echo "$as_me:$LINENO: result: no" >&5
6069 echo "${ECHO_T}no" >&6
6070 fi
6071
6072   STRIP=$ac_ct_STRIP
6073 else
6074   STRIP="$ac_cv_prog_STRIP"
6075 fi
6076
6077
6078 old_CC="$CC"
6079 old_CFLAGS="$CFLAGS"
6080
6081 # Set sane defaults for various variables
6082 test -z "$AR" && AR=ar
6083 test -z "$AR_FLAGS" && AR_FLAGS=cru
6084 test -z "$AS" && AS=as
6085 test -z "$CC" && CC=cc
6086 test -z "$LTCC" && LTCC=$CC
6087 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6088 test -z "$DLLTOOL" && DLLTOOL=dlltool
6089 test -z "$LD" && LD=ld
6090 test -z "$LN_S" && LN_S="ln -s"
6091 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6092 test -z "$NM" && NM=nm
6093 test -z "$SED" && SED=sed
6094 test -z "$OBJDUMP" && OBJDUMP=objdump
6095 test -z "$RANLIB" && RANLIB=:
6096 test -z "$STRIP" && STRIP=:
6097 test -z "$ac_objext" && ac_objext=o
6098
6099 # Determine commands to create old-style static archives.
6100 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6101 old_postinstall_cmds='chmod 644 $oldlib'
6102 old_postuninstall_cmds=
6103
6104 if test -n "$RANLIB"; then
6105   case $host_os in
6106   openbsd*)
6107     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6108     ;;
6109   *)
6110     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6111     ;;
6112   esac
6113   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6114 fi
6115
6116 for cc_temp in $compiler""; do
6117   case $cc_temp in
6118     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6119     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6120     \-*) ;;
6121     *) break;;
6122   esac
6123 done
6124 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6125
6126
6127 # Only perform the check for file, if the check method requires it
6128 case $deplibs_check_method in
6129 file_magic*)
6130   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6131     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6132 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6133 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6134   echo $ECHO_N "(cached) $ECHO_C" >&6
6135 else
6136   case $MAGIC_CMD in
6137 [\\/*] |  ?:[\\/]*)
6138   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6139   ;;
6140 *)
6141   lt_save_MAGIC_CMD="$MAGIC_CMD"
6142   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6143   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6144   for ac_dir in $ac_dummy; do
6145     IFS="$lt_save_ifs"
6146     test -z "$ac_dir" && ac_dir=.
6147     if test -f $ac_dir/${ac_tool_prefix}file; then
6148       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6149       if test -n "$file_magic_test_file"; then
6150         case $deplibs_check_method in
6151         "file_magic "*)
6152           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6153           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6154           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6155             $EGREP "$file_magic_regex" > /dev/null; then
6156             :
6157           else
6158             cat <<EOF 1>&2
6159
6160 *** Warning: the command libtool uses to detect shared libraries,
6161 *** $file_magic_cmd, produces output that libtool cannot recognize.
6162 *** The result is that libtool may fail to recognize shared libraries
6163 *** as such.  This will affect the creation of libtool libraries that
6164 *** depend on shared libraries, but programs linked with such libtool
6165 *** libraries will work regardless of this problem.  Nevertheless, you
6166 *** may want to report the problem to your system manager and/or to
6167 *** bug-libtool@gnu.org
6168
6169 EOF
6170           fi ;;
6171         esac
6172       fi
6173       break
6174     fi
6175   done
6176   IFS="$lt_save_ifs"
6177   MAGIC_CMD="$lt_save_MAGIC_CMD"
6178   ;;
6179 esac
6180 fi
6181
6182 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6183 if test -n "$MAGIC_CMD"; then
6184   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6185 echo "${ECHO_T}$MAGIC_CMD" >&6
6186 else
6187   echo "$as_me:$LINENO: result: no" >&5
6188 echo "${ECHO_T}no" >&6
6189 fi
6190
6191 if test -z "$lt_cv_path_MAGIC_CMD"; then
6192   if test -n "$ac_tool_prefix"; then
6193     echo "$as_me:$LINENO: checking for file" >&5
6194 echo $ECHO_N "checking for file... $ECHO_C" >&6
6195 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6196   echo $ECHO_N "(cached) $ECHO_C" >&6
6197 else
6198   case $MAGIC_CMD in
6199 [\\/*] |  ?:[\\/]*)
6200   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6201   ;;
6202 *)
6203   lt_save_MAGIC_CMD="$MAGIC_CMD"
6204   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6205   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6206   for ac_dir in $ac_dummy; do
6207     IFS="$lt_save_ifs"
6208     test -z "$ac_dir" && ac_dir=.
6209     if test -f $ac_dir/file; then
6210       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6211       if test -n "$file_magic_test_file"; then
6212         case $deplibs_check_method in
6213         "file_magic "*)
6214           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6215           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6216           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6217             $EGREP "$file_magic_regex" > /dev/null; then
6218             :
6219           else
6220             cat <<EOF 1>&2
6221
6222 *** Warning: the command libtool uses to detect shared libraries,
6223 *** $file_magic_cmd, produces output that libtool cannot recognize.
6224 *** The result is that libtool may fail to recognize shared libraries
6225 *** as such.  This will affect the creation of libtool libraries that
6226 *** depend on shared libraries, but programs linked with such libtool
6227 *** libraries will work regardless of this problem.  Nevertheless, you
6228 *** may want to report the problem to your system manager and/or to
6229 *** bug-libtool@gnu.org
6230
6231 EOF
6232           fi ;;
6233         esac
6234       fi
6235       break
6236     fi
6237   done
6238   IFS="$lt_save_ifs"
6239   MAGIC_CMD="$lt_save_MAGIC_CMD"
6240   ;;
6241 esac
6242 fi
6243
6244 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6245 if test -n "$MAGIC_CMD"; then
6246   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6247 echo "${ECHO_T}$MAGIC_CMD" >&6
6248 else
6249   echo "$as_me:$LINENO: result: no" >&5
6250 echo "${ECHO_T}no" >&6
6251 fi
6252
6253   else
6254     MAGIC_CMD=:
6255   fi
6256 fi
6257
6258   fi
6259   ;;
6260 esac
6261
6262 enable_dlopen=no
6263 enable_win32_dll=no
6264
6265 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6266 if test "${enable_libtool_lock+set}" = set; then
6267   enableval="$enable_libtool_lock"
6268   
6269 fi; 
6270 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6271
6272
6273 # Check whether --with-pic or --without-pic was given.
6274 if test "${with_pic+set}" = set; then
6275   withval="$with_pic"
6276   pic_mode="$withval"
6277 else
6278   pic_mode=default
6279 fi; 
6280 test -z "$pic_mode" && pic_mode=default
6281
6282 # Use C for the default configuration in the libtool script
6283 tagname=
6284 lt_save_CC="$CC"
6285 ac_ext=c
6286 ac_cpp='$CPP $CPPFLAGS'
6287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6290
6291
6292 # Source file extension for C test sources.
6293 ac_ext=c
6294
6295 # Object file extension for compiled C test sources.
6296 objext=o
6297 objext=$objext
6298
6299 # Code to be used in simple compile tests
6300 lt_simple_compile_test_code="int some_variable = 0;\n"
6301
6302 # Code to be used in simple link tests
6303 lt_simple_link_test_code='int main(){return(0);}\n'
6304
6305
6306 # If no C compiler was specified, use CC.
6307 LTCC=${LTCC-"$CC"}
6308
6309 # If no C compiler flags were specified, use CFLAGS.
6310 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6311
6312 # Allow CC to be a program name with arguments.
6313 compiler=$CC
6314
6315
6316 # save warnings/boilerplate of simple test code
6317 ac_outfile=conftest.$ac_objext
6318 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6319 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6320 _lt_compiler_boilerplate=`cat conftest.err`
6321 $rm conftest*
6322
6323 ac_outfile=conftest.$ac_objext
6324 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6325 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6326 _lt_linker_boilerplate=`cat conftest.err`
6327 $rm conftest*
6328
6329
6330
6331 lt_prog_compiler_no_builtin_flag=
6332
6333 if test "$GCC" = yes; then
6334   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6335
6336   
6337 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6338 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6339 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6340   echo $ECHO_N "(cached) $ECHO_C" >&6
6341 else
6342   lt_cv_prog_compiler_rtti_exceptions=no
6343   ac_outfile=conftest.$ac_objext
6344    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6345    lt_compiler_flag="-fno-rtti -fno-exceptions"
6346    # Insert the option either (1) after the last *FLAGS variable, or
6347    # (2) before a word containing "conftest.", or (3) at the end.
6348    # Note that $ac_compile itself does not contain backslashes and begins
6349    # with a dollar sign (not a hyphen), so the echo should work correctly.
6350    # The option is referenced via a variable to avoid confusing sed.
6351    lt_compile=`echo "$ac_compile" | $SED \
6352    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6353    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6354    -e 's:$: $lt_compiler_flag:'`
6355    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
6356    (eval "$lt_compile" 2>conftest.err)
6357    ac_status=$?
6358    cat conftest.err >&5
6359    echo "$as_me:__oline__: \$? = $ac_status" >&5
6360    if (exit $ac_status) && test -s "$ac_outfile"; then
6361      # The compiler can only warn and ignore the option if not recognized
6362      # So say no if there are warnings other than the usual output.
6363      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6364      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6365      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6366        lt_cv_prog_compiler_rtti_exceptions=yes
6367      fi
6368    fi
6369    $rm conftest*
6370
6371 fi
6372 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6373 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6374
6375 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6376     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6377 else
6378     :
6379 fi
6380
6381 fi
6382
6383 lt_prog_compiler_wl=
6384 lt_prog_compiler_pic=
6385 lt_prog_compiler_static=
6386
6387 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6388 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6389  
6390   if test "$GCC" = yes; then
6391     lt_prog_compiler_wl='-Wl,'
6392     lt_prog_compiler_static='-static'
6393
6394     case $host_os in
6395       aix*)
6396       # All AIX code is PIC.
6397       if test "$host_cpu" = ia64; then
6398         # AIX 5 now supports IA64 processor
6399         lt_prog_compiler_static='-Bstatic'
6400       fi
6401       ;;
6402
6403     amigaos*)
6404       # FIXME: we need at least 68020 code to build shared libraries, but
6405       # adding the `-m68020' flag to GCC prevents building anything better,
6406       # like `-m68040'.
6407       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6408       ;;
6409
6410     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6411       # PIC is the default for these OSes.
6412       ;;
6413
6414     mingw* | pw32* | os2*)
6415       # This hack is so that the source file can tell whether it is being
6416       # built for inclusion in a dll (and should export symbols for example).
6417       lt_prog_compiler_pic='-DDLL_EXPORT'
6418       ;;
6419
6420     darwin* | rhapsody*)
6421       # PIC is the default on this platform
6422       # Common symbols not allowed in MH_DYLIB files
6423       lt_prog_compiler_pic='-fno-common'
6424       ;;
6425
6426     interix3*)
6427       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6428       # Instead, we relocate shared libraries at runtime.
6429       ;;
6430
6431     msdosdjgpp*)
6432       # Just because we use GCC doesn't mean we suddenly get shared libraries
6433       # on systems that don't support them.
6434       lt_prog_compiler_can_build_shared=no
6435       enable_shared=no
6436       ;;
6437
6438     sysv4*MP*)
6439       if test -d /usr/nec; then
6440         lt_prog_compiler_pic=-Kconform_pic
6441       fi
6442       ;;
6443
6444     hpux*)
6445       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6446       # not for PA HP-UX.
6447       case $host_cpu in
6448       hppa*64*|ia64*)
6449         # +Z the default
6450         ;;
6451       *)
6452         lt_prog_compiler_pic='-fPIC'
6453         ;;
6454       esac
6455       ;;
6456
6457     *)
6458       lt_prog_compiler_pic='-fPIC'
6459       ;;
6460     esac
6461   else
6462     # PORTME Check for flag to pass linker flags through the system compiler.
6463     case $host_os in
6464     aix*)
6465       lt_prog_compiler_wl='-Wl,'
6466       if test "$host_cpu" = ia64; then
6467         # AIX 5 now supports IA64 processor
6468         lt_prog_compiler_static='-Bstatic'
6469       else
6470         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6471       fi
6472       ;;
6473       darwin*)
6474         # PIC is the default on this platform
6475         # Common symbols not allowed in MH_DYLIB files
6476        case $cc_basename in
6477          xlc*)
6478          lt_prog_compiler_pic='-qnocommon'
6479          lt_prog_compiler_wl='-Wl,'
6480          ;;
6481        esac
6482        ;;
6483
6484     mingw* | pw32* | os2*)
6485       # This hack is so that the source file can tell whether it is being
6486       # built for inclusion in a dll (and should export symbols for example).
6487       lt_prog_compiler_pic='-DDLL_EXPORT'
6488       ;;
6489
6490     hpux9* | hpux10* | hpux11*)
6491       lt_prog_compiler_wl='-Wl,'
6492       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6493       # not for PA HP-UX.
6494       case $host_cpu in
6495       hppa*64*|ia64*)
6496         # +Z the default
6497         ;;
6498       *)
6499         lt_prog_compiler_pic='+Z'
6500         ;;
6501       esac
6502       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6503       lt_prog_compiler_static='${wl}-a ${wl}archive'
6504       ;;
6505
6506     irix5* | irix6* | nonstopux*)
6507       lt_prog_compiler_wl='-Wl,'
6508       # PIC (with -KPIC) is the default.
6509       lt_prog_compiler_static='-non_shared'
6510       ;;
6511
6512     newsos6)
6513       lt_prog_compiler_pic='-KPIC'
6514       lt_prog_compiler_static='-Bstatic'
6515       ;;
6516
6517     linux*)
6518       case $cc_basename in
6519       icc* | ecc*)
6520         lt_prog_compiler_wl='-Wl,'
6521         lt_prog_compiler_pic='-KPIC'
6522         lt_prog_compiler_static='-static'
6523         ;;
6524       pgcc* | pgf77* | pgf90* | pgf95*)
6525         # Portland Group compilers (*not* the Pentium gcc compiler,
6526         # which looks to be a dead project)
6527         lt_prog_compiler_wl='-Wl,'
6528         lt_prog_compiler_pic='-fpic'
6529         lt_prog_compiler_static='-Bstatic'
6530         ;;
6531       ccc*)
6532         lt_prog_compiler_wl='-Wl,'
6533         # All Alpha code is PIC.
6534         lt_prog_compiler_static='-non_shared'
6535         ;;
6536       esac
6537       ;;
6538
6539     osf3* | osf4* | osf5*)
6540       lt_prog_compiler_wl='-Wl,'
6541       # All OSF/1 code is PIC.
6542       lt_prog_compiler_static='-non_shared'
6543       ;;
6544
6545     solaris*)
6546       lt_prog_compiler_pic='-KPIC'
6547       lt_prog_compiler_static='-Bstatic'
6548       case $cc_basename in
6549       f77* | f90* | f95*)
6550         lt_prog_compiler_wl='-Qoption ld ';;
6551       *)
6552         lt_prog_compiler_wl='-Wl,';;
6553       esac
6554       ;;
6555
6556     sunos4*)
6557       lt_prog_compiler_wl='-Qoption ld '
6558       lt_prog_compiler_pic='-PIC'
6559       lt_prog_compiler_static='-Bstatic'
6560       ;;
6561
6562     sysv4 | sysv4.2uw2* | sysv4.3*)
6563       lt_prog_compiler_wl='-Wl,'
6564       lt_prog_compiler_pic='-KPIC'
6565       lt_prog_compiler_static='-Bstatic'
6566       ;;
6567
6568     sysv4*MP*)
6569       if test -d /usr/nec ;then
6570         lt_prog_compiler_pic='-Kconform_pic'
6571         lt_prog_compiler_static='-Bstatic'
6572       fi
6573       ;;
6574
6575     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6576       lt_prog_compiler_wl='-Wl,'
6577       lt_prog_compiler_pic='-KPIC'
6578       lt_prog_compiler_static='-Bstatic'
6579       ;;
6580
6581     unicos*)
6582       lt_prog_compiler_wl='-Wl,'
6583       lt_prog_compiler_can_build_shared=no
6584       ;;
6585
6586     uts4*)
6587       lt_prog_compiler_pic='-pic'
6588       lt_prog_compiler_static='-Bstatic'
6589       ;;
6590
6591     *)
6592       lt_prog_compiler_can_build_shared=no
6593       ;;
6594     esac
6595   fi
6596
6597 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6598 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6599
6600 #
6601 # Check to make sure the PIC flag actually works.
6602 #
6603 if test -n "$lt_prog_compiler_pic"; then
6604   
6605 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6606 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6607 if test "${lt_prog_compiler_pic_works+set}" = set; then
6608   echo $ECHO_N "(cached) $ECHO_C" >&6
6609 else
6610   lt_prog_compiler_pic_works=no
6611   ac_outfile=conftest.$ac_objext
6612    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6613    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6614    # Insert the option either (1) after the last *FLAGS variable, or
6615    # (2) before a word containing "conftest.", or (3) at the end.
6616    # Note that $ac_compile itself does not contain backslashes and begins
6617    # with a dollar sign (not a hyphen), so the echo should work correctly.
6618    # The option is referenced via a variable to avoid confusing sed.
6619    lt_compile=`echo "$ac_compile" | $SED \
6620    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6621    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6622    -e 's:$: $lt_compiler_flag:'`
6623    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
6624    (eval "$lt_compile" 2>conftest.err)
6625    ac_status=$?
6626    cat conftest.err >&5
6627    echo "$as_me:__oline__: \$? = $ac_status" >&5
6628    if (exit $ac_status) && test -s "$ac_outfile"; then
6629      # The compiler can only warn and ignore the option if not recognized
6630      # So say no if there are warnings other than the usual output.
6631      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6632      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6633      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6634        lt_prog_compiler_pic_works=yes
6635      fi
6636    fi
6637    $rm conftest*
6638
6639 fi
6640 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6641 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6642
6643 if test x"$lt_prog_compiler_pic_works" = xyes; then
6644     case $lt_prog_compiler_pic in
6645      "" | " "*) ;;
6646      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6647      esac
6648 else
6649     lt_prog_compiler_pic=
6650      lt_prog_compiler_can_build_shared=no
6651 fi
6652
6653 fi
6654 case $host_os in
6655   # For platforms which do not support PIC, -DPIC is meaningless:
6656   *djgpp*)
6657     lt_prog_compiler_pic=
6658     ;;
6659   *)
6660     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6661     ;;
6662 esac
6663
6664 #
6665 # Check to make sure the static flag actually works.
6666 #
6667 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6668 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6669 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6670 if test "${lt_prog_compiler_static_works+set}" = set; then
6671   echo $ECHO_N "(cached) $ECHO_C" >&6
6672 else
6673   lt_prog_compiler_static_works=no
6674    save_LDFLAGS="$LDFLAGS"
6675    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6676    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6677    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6678      # The linker can only warn and ignore the option if not recognized
6679      # So say no if there are warnings
6680      if test -s conftest.err; then
6681        # Append any errors to the config.log.
6682        cat conftest.err 1>&5
6683        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6684        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6685        if diff conftest.exp conftest.er2 >/dev/null; then
6686          lt_prog_compiler_static_works=yes
6687        fi
6688      else
6689        lt_prog_compiler_static_works=yes
6690      fi
6691    fi
6692    $rm conftest*
6693    LDFLAGS="$save_LDFLAGS"
6694
6695 fi
6696 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6697 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6698
6699 if test x"$lt_prog_compiler_static_works" = xyes; then
6700     :
6701 else
6702     lt_prog_compiler_static=
6703 fi
6704
6705
6706 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6707 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6708 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6709   echo $ECHO_N "(cached) $ECHO_C" >&6
6710 else
6711   lt_cv_prog_compiler_c_o=no
6712    $rm -r conftest 2>/dev/null
6713    mkdir conftest
6714    cd conftest
6715    mkdir out
6716    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6717
6718    lt_compiler_flag="-o out/conftest2.$ac_objext"
6719    # Insert the option either (1) after the last *FLAGS variable, or
6720    # (2) before a word containing "conftest.", or (3) at the end.
6721    # Note that $ac_compile itself does not contain backslashes and begins
6722    # with a dollar sign (not a hyphen), so the echo should work correctly.
6723    lt_compile=`echo "$ac_compile" | $SED \
6724    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6725    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6726    -e 's:$: $lt_compiler_flag:'`
6727    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
6728    (eval "$lt_compile" 2>out/conftest.err)
6729    ac_status=$?
6730    cat out/conftest.err >&5
6731    echo "$as_me:__oline__: \$? = $ac_status" >&5
6732    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6733    then
6734      # The compiler can only warn and ignore the option if not recognized
6735      # So say no if there are warnings
6736      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6737      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6738      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6739        lt_cv_prog_compiler_c_o=yes
6740      fi
6741    fi
6742    chmod u+w . 2>&5
6743    $rm conftest*
6744    # SGI C++ compiler will create directory out/ii_files/ for
6745    # template instantiation
6746    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6747    $rm out/* && rmdir out
6748    cd ..
6749    rmdir conftest
6750    $rm conftest*
6751
6752 fi
6753 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6754 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6755
6756
6757 hard_links="nottested"
6758 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6759   # do not overwrite the value of need_locks provided by the user
6760   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6761 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6762   hard_links=yes
6763   $rm conftest*
6764   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6765   touch conftest.a
6766   ln conftest.a conftest.b 2>&5 || hard_links=no
6767   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6768   echo "$as_me:$LINENO: result: $hard_links" >&5
6769 echo "${ECHO_T}$hard_links" >&6
6770   if test "$hard_links" = no; then
6771     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6772 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6773     need_locks=warn
6774   fi
6775 else
6776   need_locks=no
6777 fi
6778
6779 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6780 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6781
6782   runpath_var=
6783   allow_undefined_flag=
6784   enable_shared_with_static_runtimes=no
6785   archive_cmds=
6786   archive_expsym_cmds=
6787   old_archive_From_new_cmds=
6788   old_archive_from_expsyms_cmds=
6789   export_dynamic_flag_spec=
6790   whole_archive_flag_spec=
6791   thread_safe_flag_spec=
6792   hardcode_libdir_flag_spec=
6793   hardcode_libdir_flag_spec_ld=
6794   hardcode_libdir_separator=
6795   hardcode_direct=no
6796   hardcode_minus_L=no
6797   hardcode_shlibpath_var=unsupported
6798   link_all_deplibs=unknown
6799   hardcode_automatic=no
6800   module_cmds=
6801   module_expsym_cmds=
6802   always_export_symbols=no
6803   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6804   # include_expsyms should be a list of space-separated symbols to be *always*
6805   # included in the symbol list
6806   include_expsyms=
6807   # exclude_expsyms can be an extended regexp of symbols to exclude
6808   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6809   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6810   # as well as any symbol that contains `d'.
6811   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6812   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6813   # platforms (ab)use it in PIC code, but their linkers get confused if
6814   # the symbol is explicitly referenced.  Since portable code cannot
6815   # rely on this symbol name, it's probably fine to never include it in
6816   # preloaded symbol tables.
6817   extract_expsyms_cmds=
6818   # Just being paranoid about ensuring that cc_basename is set.
6819   for cc_temp in $compiler""; do
6820   case $cc_temp in
6821     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6822     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6823     \-*) ;;
6824     *) break;;
6825   esac
6826 done
6827 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6828
6829   case $host_os in
6830   cygwin* | mingw* | pw32*)
6831     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6832     # When not using gcc, we currently assume that we are using
6833     # Microsoft Visual C++.
6834     if test "$GCC" != yes; then
6835       with_gnu_ld=no
6836     fi
6837     ;;
6838   interix*)
6839     # we just hope/assume this is gcc and not c89 (= MSVC++)
6840     with_gnu_ld=yes
6841     ;;
6842   openbsd*)
6843     with_gnu_ld=no
6844     ;;
6845   esac
6846
6847   ld_shlibs=yes
6848   if test "$with_gnu_ld" = yes; then
6849     # If archive_cmds runs LD, not CC, wlarc should be empty
6850     wlarc='${wl}'
6851
6852     # Set some defaults for GNU ld with shared library support. These
6853     # are reset later if shared libraries are not supported. Putting them
6854     # here allows them to be overridden if necessary.
6855     runpath_var=LD_RUN_PATH
6856     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6857     export_dynamic_flag_spec='${wl}--export-dynamic'
6858     # ancient GNU ld didn't support --whole-archive et. al.
6859     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6860         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6861       else
6862         whole_archive_flag_spec=
6863     fi
6864     supports_anon_versioning=no
6865     case `$LD -v 2>/dev/null` in
6866       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6867       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6868       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6869       *\ 2.11.*) ;; # other 2.11 versions
6870       *) supports_anon_versioning=yes ;;
6871     esac
6872
6873     # See if GNU ld supports shared libraries.
6874     case $host_os in
6875     aix3* | aix4* | aix5*)
6876       # On AIX/PPC, the GNU linker is very broken
6877       if test "$host_cpu" != ia64; then
6878         ld_shlibs=no
6879         cat <<EOF 1>&2
6880
6881 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6882 *** to be unable to reliably create shared libraries on AIX.
6883 *** Therefore, libtool is disabling shared libraries support.  If you
6884 *** really care for shared libraries, you may want to modify your PATH
6885 *** so that a non-GNU linker is found, and then restart.
6886
6887 EOF
6888       fi
6889       ;;
6890
6891     amigaos*)
6892       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)'
6893       hardcode_libdir_flag_spec='-L$libdir'
6894       hardcode_minus_L=yes
6895
6896       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6897       # that the semantics of dynamic libraries on AmigaOS, at least up
6898       # to version 4, is to share data among multiple programs linked
6899       # with the same dynamic library.  Since this doesn't match the
6900       # behavior of shared libraries on other platforms, we can't use
6901       # them.
6902       ld_shlibs=no
6903       ;;
6904
6905     beos*)
6906       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6907         allow_undefined_flag=unsupported
6908         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6909         # support --undefined.  This deserves some investigation.  FIXME
6910         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6911       else
6912         ld_shlibs=no
6913       fi
6914       ;;
6915
6916     cygwin* | mingw* | pw32*)
6917       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6918       # as there is no search path for DLLs.
6919       hardcode_libdir_flag_spec='-L$libdir'
6920       allow_undefined_flag=unsupported
6921       always_export_symbols=no
6922       enable_shared_with_static_runtimes=yes
6923       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6924
6925       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6926         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6927         # If the export-symbols file already is a .def file (1st line
6928         # is EXPORTS), use it as is; otherwise, prepend...
6929         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6930           cp $export_symbols $output_objdir/$soname.def;
6931         else
6932           echo EXPORTS > $output_objdir/$soname.def;
6933           cat $export_symbols >> $output_objdir/$soname.def;
6934         fi~
6935         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6936       else
6937         ld_shlibs=no
6938       fi
6939       ;;
6940
6941     interix3*)
6942       hardcode_direct=no
6943       hardcode_shlibpath_var=no
6944       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6945       export_dynamic_flag_spec='${wl}-E'
6946       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6947       # Instead, shared libraries are loaded at an image base (0x10000000 by
6948       # default) and relocated if they conflict, which is a slow very memory
6949       # consuming and fragmenting process.  To avoid this, we pick a random,
6950       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6951       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
6952       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6953       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'
6954       ;;
6955
6956     linux*)
6957       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6958         tmp_addflag=
6959         case $cc_basename,$host_cpu in
6960         pgcc*)                          # Portland Group C compiler
6961           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'
6962           tmp_addflag=' $pic_flag'
6963           ;;
6964         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
6965           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6966           tmp_addflag=' $pic_flag -Mnomain' ;;
6967         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
6968           tmp_addflag=' -i_dynamic' ;;
6969         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
6970           tmp_addflag=' -i_dynamic -nofor_main' ;;
6971         ifc* | ifort*)                  # Intel Fortran compiler
6972           tmp_addflag=' -nofor_main' ;;
6973         esac
6974         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6975
6976         if test $supports_anon_versioning = yes; then
6977           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6978   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6979   $echo "local: *; };" >> $output_objdir/$libname.ver~
6980           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6981         fi
6982       else
6983         ld_shlibs=no
6984       fi
6985       ;;
6986
6987     netbsd*)
6988       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6989         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6990         wlarc=
6991       else
6992         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6993         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6994       fi
6995       ;;
6996
6997     solaris*)
6998       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6999         ld_shlibs=no
7000         cat <<EOF 1>&2
7001
7002 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7003 *** create shared libraries on Solaris systems.  Therefore, libtool
7004 *** is disabling shared libraries support.  We urge you to upgrade GNU
7005 *** binutils to release 2.9.1 or newer.  Another option is to modify
7006 *** your PATH or compiler configuration so that the native linker is
7007 *** used, and then restart.
7008
7009 EOF
7010       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7011         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7012         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7013       else
7014         ld_shlibs=no
7015       fi
7016       ;;
7017
7018     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7019       case `$LD -v 2>&1` in
7020         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 
7021         ld_shlibs=no
7022         cat <<_LT_EOF 1>&2
7023
7024 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7025 *** reliably create shared libraries on SCO systems.  Therefore, libtool
7026 *** is disabling shared libraries support.  We urge you to upgrade GNU
7027 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7028 *** your PATH or compiler configuration so that the native linker is
7029 *** used, and then restart.
7030
7031 _LT_EOF
7032         ;;
7033         *)
7034           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7035             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7036             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7037             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7038           else
7039             ld_shlibs=no
7040           fi
7041         ;;
7042       esac
7043       ;;
7044
7045     sunos4*)
7046       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7047       wlarc=
7048       hardcode_direct=yes
7049       hardcode_shlibpath_var=no
7050       ;;
7051
7052     *)
7053       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7054         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7055         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7056       else
7057         ld_shlibs=no
7058       fi
7059       ;;
7060     esac
7061
7062     if test "$ld_shlibs" = no; then
7063       runpath_var=
7064       hardcode_libdir_flag_spec=
7065       export_dynamic_flag_spec=
7066       whole_archive_flag_spec=
7067     fi
7068   else
7069     # PORTME fill in a description of your system's linker (not GNU ld)
7070     case $host_os in
7071     aix3*)
7072       allow_undefined_flag=unsupported
7073       always_export_symbols=yes
7074       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'
7075       # Note: this linker hardcodes the directories in LIBPATH if there
7076       # are no directories specified by -L.
7077       hardcode_minus_L=yes
7078       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7079         # Neither direct hardcoding nor static linking is supported with a
7080         # broken collect2.
7081         hardcode_direct=unsupported
7082       fi
7083       ;;
7084
7085     aix4* | aix5*)
7086       if test "$host_cpu" = ia64; then
7087         # On IA64, the linker does run time linking by default, so we don't
7088         # have to do anything special.
7089         aix_use_runtimelinking=no
7090         exp_sym_flag='-Bexport'
7091         no_entry_flag=""
7092       else
7093         # If we're using GNU nm, then we don't want the "-C" option.
7094         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7095         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7096           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'
7097         else
7098           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'
7099         fi
7100         aix_use_runtimelinking=no
7101
7102         # Test if we are trying to use run time linking or normal
7103         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7104         # need to do runtime linking.
7105         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7106           for ld_flag in $LDFLAGS; do
7107           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7108             aix_use_runtimelinking=yes
7109             break
7110           fi
7111           done
7112           ;;
7113         esac
7114
7115         exp_sym_flag='-bexport'
7116         no_entry_flag='-bnoentry'
7117       fi
7118
7119       # When large executables or shared objects are built, AIX ld can
7120       # have problems creating the table of contents.  If linking a library
7121       # or program results in "error TOC overflow" add -mminimal-toc to
7122       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7123       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7124
7125       archive_cmds=''
7126       hardcode_direct=yes
7127       hardcode_libdir_separator=':'
7128       link_all_deplibs=yes
7129
7130       if test "$GCC" = yes; then
7131         case $host_os in aix4.[012]|aix4.[012].*)
7132         # We only want to do this on AIX 4.2 and lower, the check
7133         # below for broken collect2 doesn't work under 4.3+
7134           collect2name=`${CC} -print-prog-name=collect2`
7135           if test -f "$collect2name" && \
7136            strings "$collect2name" | grep resolve_lib_name >/dev/null
7137           then
7138           # We have reworked collect2
7139           hardcode_direct=yes
7140           else
7141           # We have old collect2
7142           hardcode_direct=unsupported
7143           # It fails to find uninstalled libraries when the uninstalled
7144           # path is not listed in the libpath.  Setting hardcode_minus_L
7145           # to unsupported forces relinking
7146           hardcode_minus_L=yes
7147           hardcode_libdir_flag_spec='-L$libdir'
7148           hardcode_libdir_separator=
7149           fi
7150           ;;
7151         esac
7152         shared_flag='-shared'
7153         if test "$aix_use_runtimelinking" = yes; then
7154           shared_flag="$shared_flag "'${wl}-G'
7155         fi
7156       else
7157         # not using gcc
7158         if test "$host_cpu" = ia64; then
7159         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7160         # chokes on -Wl,-G. The following line is correct:
7161           shared_flag='-G'
7162         else
7163           if test "$aix_use_runtimelinking" = yes; then
7164             shared_flag='${wl}-G'
7165           else
7166             shared_flag='${wl}-bM:SRE'
7167           fi
7168         fi
7169       fi
7170
7171       # It seems that -bexpall does not export symbols beginning with
7172       # underscore (_), so it is better to generate a list of symbols to export.
7173       always_export_symbols=yes
7174       if test "$aix_use_runtimelinking" = yes; then
7175         # Warning - without using the other runtime loading flags (-brtl),
7176         # -berok will link without error, but may produce a broken library.
7177         allow_undefined_flag='-berok'
7178        # Determine the default libpath from the value encoded in an empty executable.
7179        cat >conftest.$ac_ext <<_ACEOF
7180 /* confdefs.h.  */
7181 _ACEOF
7182 cat confdefs.h >>conftest.$ac_ext
7183 cat >>conftest.$ac_ext <<_ACEOF
7184 /* end confdefs.h.  */
7185
7186 int
7187 main ()
7188 {
7189
7190   ;
7191   return 0;
7192 }
7193 _ACEOF
7194 rm -f conftest.$ac_objext conftest$ac_exeext
7195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7196   (eval $ac_link) 2>conftest.er1
7197   ac_status=$?
7198   grep -v '^ *+' conftest.er1 >conftest.err
7199   rm -f conftest.er1
7200   cat conftest.err >&5
7201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202   (exit $ac_status); } &&
7203          { ac_try='test -z "$ac_c_werror_flag"
7204                          || test ! -s conftest.err'
7205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7206   (eval $ac_try) 2>&5
7207   ac_status=$?
7208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7209   (exit $ac_status); }; } &&
7210          { ac_try='test -s conftest$ac_exeext'
7211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7212   (eval $ac_try) 2>&5
7213   ac_status=$?
7214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7215   (exit $ac_status); }; }; then
7216   
7217 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7218 }'`
7219 # Check for a 64-bit object if we didn't find anything.
7220 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; }
7221 }'`; fi
7222 else
7223   echo "$as_me: failed program was:" >&5
7224 sed 's/^/| /' conftest.$ac_ext >&5
7225
7226 fi
7227 rm -f conftest.err conftest.$ac_objext \
7228       conftest$ac_exeext conftest.$ac_ext
7229 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7230
7231        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7232         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"
7233        else
7234         if test "$host_cpu" = ia64; then
7235           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7236           allow_undefined_flag="-z nodefs"
7237           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"
7238         else
7239          # Determine the default libpath from the value encoded in an empty executable.
7240          cat >conftest.$ac_ext <<_ACEOF
7241 /* confdefs.h.  */
7242 _ACEOF
7243 cat confdefs.h >>conftest.$ac_ext
7244 cat >>conftest.$ac_ext <<_ACEOF
7245 /* end confdefs.h.  */
7246
7247 int
7248 main ()
7249 {
7250
7251   ;
7252   return 0;
7253 }
7254 _ACEOF
7255 rm -f conftest.$ac_objext conftest$ac_exeext
7256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7257   (eval $ac_link) 2>conftest.er1
7258   ac_status=$?
7259   grep -v '^ *+' conftest.er1 >conftest.err
7260   rm -f conftest.er1
7261   cat conftest.err >&5
7262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263   (exit $ac_status); } &&
7264          { ac_try='test -z "$ac_c_werror_flag"
7265                          || test ! -s conftest.err'
7266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7267   (eval $ac_try) 2>&5
7268   ac_status=$?
7269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7270   (exit $ac_status); }; } &&
7271          { ac_try='test -s conftest$ac_exeext'
7272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7273   (eval $ac_try) 2>&5
7274   ac_status=$?
7275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276   (exit $ac_status); }; }; then
7277   
7278 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7279 }'`
7280 # Check for a 64-bit object if we didn't find anything.
7281 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; }
7282 }'`; fi
7283 else
7284   echo "$as_me: failed program was:" >&5
7285 sed 's/^/| /' conftest.$ac_ext >&5
7286
7287 fi
7288 rm -f conftest.err conftest.$ac_objext \
7289       conftest$ac_exeext conftest.$ac_ext
7290 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7291
7292          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7293           # Warning - without using the other run time loading flags,
7294           # -berok will link without error, but may produce a broken library.
7295           no_undefined_flag=' ${wl}-bernotok'
7296           allow_undefined_flag=' ${wl}-berok'
7297           # Exported symbols can be pulled into shared objects from archives
7298           whole_archive_flag_spec='$convenience'
7299           archive_cmds_need_lc=yes
7300           # This is similar to how AIX traditionally builds its shared libraries.
7301           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'
7302         fi
7303       fi
7304       ;;
7305
7306     amigaos*)
7307       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)'
7308       hardcode_libdir_flag_spec='-L$libdir'
7309       hardcode_minus_L=yes
7310       # see comment about different semantics on the GNU ld section
7311       ld_shlibs=no
7312       ;;
7313
7314     bsdi[45]*)
7315       export_dynamic_flag_spec=-rdynamic
7316       ;;
7317
7318     cygwin* | mingw* | pw32*)
7319       # When not using gcc, we currently assume that we are using
7320       # Microsoft Visual C++.
7321       # hardcode_libdir_flag_spec is actually meaningless, as there is
7322       # no search path for DLLs.
7323       hardcode_libdir_flag_spec=' '
7324       allow_undefined_flag=unsupported
7325       # Tell ltmain to make .lib files, not .a files.
7326       libext=lib
7327       # Tell ltmain to make .dll files, not .so files.
7328       shrext_cmds=".dll"
7329       # FIXME: Setting linknames here is a bad hack.
7330       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7331       # The linker will automatically build a .lib file if we build a DLL.
7332       old_archive_From_new_cmds='true'
7333       # FIXME: Should let the user specify the lib program.
7334       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7335       fix_srcfile_path='`cygpath -w "$srcfile"`'
7336       enable_shared_with_static_runtimes=yes
7337       ;;
7338
7339     darwin* | rhapsody*)
7340       case $host_os in
7341         rhapsody* | darwin1.[012])
7342          allow_undefined_flag='${wl}-undefined ${wl}suppress'
7343          ;;
7344        *) # Darwin 1.3 on
7345          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7346            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7347          else
7348            case ${MACOSX_DEPLOYMENT_TARGET} in
7349              10.[012])
7350                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7351                ;;
7352              10.*)
7353                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7354                ;;
7355            esac
7356          fi
7357          ;;
7358       esac
7359       archive_cmds_need_lc=no
7360       hardcode_direct=no
7361       hardcode_automatic=yes
7362       hardcode_shlibpath_var=unsupported
7363       whole_archive_flag_spec=''
7364       link_all_deplibs=yes
7365     if test "$GCC" = yes ; then
7366         output_verbose_link_cmd='echo'
7367         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7368       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7369       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7370       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}'
7371       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}'
7372     else
7373       case $cc_basename in
7374         xlc*)
7375          output_verbose_link_cmd='echo'
7376          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7377          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7378           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7379          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}'
7380           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}'
7381           ;;
7382        *)
7383          ld_shlibs=no
7384           ;;
7385       esac
7386     fi
7387       ;;
7388
7389     dgux*)
7390       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7391       hardcode_libdir_flag_spec='-L$libdir'
7392       hardcode_shlibpath_var=no
7393       ;;
7394
7395     freebsd1*)
7396       ld_shlibs=no
7397       ;;
7398
7399     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7400     # support.  Future versions do this automatically, but an explicit c++rt0.o
7401     # does not break anything, and helps significantly (at the cost of a little
7402     # extra space).
7403     freebsd2.2*)
7404       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7405       hardcode_libdir_flag_spec='-R$libdir'
7406       hardcode_direct=yes
7407       hardcode_shlibpath_var=no
7408       ;;
7409
7410     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7411     freebsd2*)
7412       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7413       hardcode_direct=yes
7414       hardcode_minus_L=yes
7415       hardcode_shlibpath_var=no
7416       ;;
7417
7418     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7419     freebsd* | kfreebsd*-gnu | dragonfly*)
7420       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7421       hardcode_libdir_flag_spec='-R$libdir'
7422       hardcode_direct=yes
7423       hardcode_shlibpath_var=no
7424       ;;
7425
7426     hpux9*)
7427       if test "$GCC" = yes; then
7428         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'
7429       else
7430         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'
7431       fi
7432       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7433       hardcode_libdir_separator=:
7434       hardcode_direct=yes
7435
7436       # hardcode_minus_L: Not really in the search PATH,
7437       # but as the default location of the library.
7438       hardcode_minus_L=yes
7439       export_dynamic_flag_spec='${wl}-E'
7440       ;;
7441
7442     hpux10*)
7443       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7444         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7445       else
7446         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7447       fi
7448       if test "$with_gnu_ld" = no; then
7449         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7450         hardcode_libdir_separator=:
7451
7452         hardcode_direct=yes
7453         export_dynamic_flag_spec='${wl}-E'
7454
7455         # hardcode_minus_L: Not really in the search PATH,
7456         # but as the default location of the library.
7457         hardcode_minus_L=yes
7458       fi
7459       ;;
7460
7461     hpux11*)
7462       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7463         case $host_cpu in
7464         hppa*64*)
7465           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7466           ;;
7467         ia64*)
7468           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7469           ;;
7470         *)
7471           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7472           ;;
7473         esac
7474       else
7475         case $host_cpu in
7476         hppa*64*)
7477           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7478           ;;
7479         ia64*)
7480           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7481           ;;
7482         *)
7483           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7484           ;;
7485         esac
7486       fi
7487       if test "$with_gnu_ld" = no; then
7488         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7489         hardcode_libdir_separator=:
7490
7491         case $host_cpu in
7492         hppa*64*|ia64*)
7493           hardcode_libdir_flag_spec_ld='+b $libdir'
7494           hardcode_direct=no
7495           hardcode_shlibpath_var=no
7496           ;;
7497         *)
7498           hardcode_direct=yes
7499           export_dynamic_flag_spec='${wl}-E'
7500
7501           # hardcode_minus_L: Not really in the search PATH,
7502           # but as the default location of the library.
7503           hardcode_minus_L=yes
7504           ;;
7505         esac
7506       fi
7507       ;;
7508
7509     irix5* | irix6* | nonstopux*)
7510       if test "$GCC" = yes; then
7511         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'
7512       else
7513         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'
7514         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7515       fi
7516       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7517       hardcode_libdir_separator=:
7518       link_all_deplibs=yes
7519       ;;
7520
7521     netbsd*)
7522       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7523         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7524       else
7525         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7526       fi
7527       hardcode_libdir_flag_spec='-R$libdir'
7528       hardcode_direct=yes
7529       hardcode_shlibpath_var=no
7530       ;;
7531
7532     newsos6)
7533       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7534       hardcode_direct=yes
7535       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7536       hardcode_libdir_separator=:
7537       hardcode_shlibpath_var=no
7538       ;;
7539
7540     openbsd*)
7541       hardcode_direct=yes
7542       hardcode_shlibpath_var=no
7543       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7544         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7545         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7546         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7547         export_dynamic_flag_spec='${wl}-E'
7548       else
7549        case $host_os in
7550          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7551            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7552            hardcode_libdir_flag_spec='-R$libdir'
7553            ;;
7554          *)
7555            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7556            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7557            ;;
7558        esac
7559       fi
7560       ;;
7561
7562     os2*)
7563       hardcode_libdir_flag_spec='-L$libdir'
7564       hardcode_minus_L=yes
7565       allow_undefined_flag=unsupported
7566       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'
7567       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7568       ;;
7569
7570     osf3*)
7571       if test "$GCC" = yes; then
7572         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7573         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'
7574       else
7575         allow_undefined_flag=' -expect_unresolved \*'
7576         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'
7577       fi
7578       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7579       hardcode_libdir_separator=:
7580       ;;
7581
7582     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7583       if test "$GCC" = yes; then
7584         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7585         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'
7586         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7587       else
7588         allow_undefined_flag=' -expect_unresolved \*'
7589         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'
7590         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7591         $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'
7592
7593         # Both c and cxx compiler support -rpath directly
7594         hardcode_libdir_flag_spec='-rpath $libdir'
7595       fi
7596       hardcode_libdir_separator=:
7597       ;;
7598
7599     solaris*)
7600       no_undefined_flag=' -z text'
7601       if test "$GCC" = yes; then
7602         wlarc='${wl}'
7603         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7604         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7605           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7606       else
7607         wlarc=''
7608         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7609         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7610         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7611       fi
7612       hardcode_libdir_flag_spec='-R$libdir'
7613       hardcode_shlibpath_var=no
7614       case $host_os in
7615       solaris2.[0-5] | solaris2.[0-5].*) ;;
7616       *)
7617         # The compiler driver will combine linker options so we
7618         # cannot just pass the convience library names through
7619         # without $wl, iff we do not link with $LD.
7620         # Luckily, gcc supports the same syntax we need for Sun Studio.
7621         # Supported since Solaris 2.6 (maybe 2.5.1?)
7622         case $wlarc in
7623         '')
7624           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7625         *)
7626           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' ;;
7627         esac ;;
7628       esac
7629       link_all_deplibs=yes
7630       ;;
7631
7632     sunos4*)
7633       if test "x$host_vendor" = xsequent; then
7634         # Use $CC to link under sequent, because it throws in some extra .o
7635         # files that make .init and .fini sections work.
7636         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7637       else
7638         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7639       fi
7640       hardcode_libdir_flag_spec='-L$libdir'
7641       hardcode_direct=yes
7642       hardcode_minus_L=yes
7643       hardcode_shlibpath_var=no
7644       ;;
7645
7646     sysv4)
7647       case $host_vendor in
7648         sni)
7649           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7650           hardcode_direct=yes # is this really true???
7651         ;;
7652         siemens)
7653           ## LD is ld it makes a PLAMLIB
7654           ## CC just makes a GrossModule.
7655           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7656           reload_cmds='$CC -r -o $output$reload_objs'
7657           hardcode_direct=no
7658         ;;
7659         motorola)
7660           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7661           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7662         ;;
7663       esac
7664       runpath_var='LD_RUN_PATH'
7665       hardcode_shlibpath_var=no
7666       ;;
7667
7668     sysv4.3*)
7669       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7670       hardcode_shlibpath_var=no
7671       export_dynamic_flag_spec='-Bexport'
7672       ;;
7673
7674     sysv4*MP*)
7675       if test -d /usr/nec; then
7676         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7677         hardcode_shlibpath_var=no
7678         runpath_var=LD_RUN_PATH
7679         hardcode_runpath_var=yes
7680         ld_shlibs=yes
7681       fi
7682       ;;
7683
7684     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7685       no_undefined_flag='${wl}-z,text'
7686       archive_cmds_need_lc=no
7687       hardcode_shlibpath_var=no
7688       runpath_var='LD_RUN_PATH'
7689
7690       if test "$GCC" = yes; then
7691         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7692         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7693       else
7694         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7695         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7696       fi
7697       ;;
7698
7699     sysv5* | sco3.2v5* | sco5v6*)
7700       # Note: We can NOT use -z defs as we might desire, because we do not
7701       # link with -lc, and that would cause any symbols used from libc to
7702       # always be unresolved, which means just about no library would
7703       # ever link correctly.  If we're not using GNU ld we use -z text
7704       # though, which does catch some bad symbols but isn't as heavy-handed
7705       # as -z defs.
7706       no_undefined_flag='${wl}-z,text'
7707       allow_undefined_flag='${wl}-z,nodefs'
7708       archive_cmds_need_lc=no
7709       hardcode_shlibpath_var=no
7710       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7711       hardcode_libdir_separator=':'
7712       link_all_deplibs=yes
7713       export_dynamic_flag_spec='${wl}-Bexport'
7714       runpath_var='LD_RUN_PATH'
7715
7716       if test "$GCC" = yes; then
7717         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7718         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7719       else
7720         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7721         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7722       fi
7723       ;;
7724
7725     uts4*)
7726       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7727       hardcode_libdir_flag_spec='-L$libdir'
7728       hardcode_shlibpath_var=no
7729       ;;
7730
7731     *)
7732       ld_shlibs=no
7733       ;;
7734     esac
7735   fi
7736
7737 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7738 echo "${ECHO_T}$ld_shlibs" >&6
7739 test "$ld_shlibs" = no && can_build_shared=no
7740
7741 #
7742 # Do we need to explicitly link libc?
7743 #
7744 case "x$archive_cmds_need_lc" in
7745 x|xyes)
7746   # Assume -lc should be added
7747   archive_cmds_need_lc=yes
7748
7749   if test "$enable_shared" = yes && test "$GCC" = yes; then
7750     case $archive_cmds in
7751     *'~'*)
7752       # FIXME: we may have to deal with multi-command sequences.
7753       ;;
7754     '$CC '*)
7755       # Test whether the compiler implicitly links with -lc since on some
7756       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7757       # to ld, don't add -lc before -lgcc.
7758       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7759 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7760       $rm conftest*
7761       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7762
7763       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7764   (eval $ac_compile) 2>&5
7765   ac_status=$?
7766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767   (exit $ac_status); } 2>conftest.err; then
7768         soname=conftest
7769         lib=conftest
7770         libobjs=conftest.$ac_objext
7771         deplibs=
7772         wl=$lt_prog_compiler_wl
7773         pic_flag=$lt_prog_compiler_pic
7774         compiler_flags=-v
7775         linker_flags=-v
7776         verstring=
7777         output_objdir=.
7778         libname=conftest
7779         lt_save_allow_undefined_flag=$allow_undefined_flag
7780         allow_undefined_flag=
7781         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7782   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7783   ac_status=$?
7784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785   (exit $ac_status); }
7786         then
7787           archive_cmds_need_lc=no
7788         else
7789           archive_cmds_need_lc=yes
7790         fi
7791         allow_undefined_flag=$lt_save_allow_undefined_flag
7792       else
7793         cat conftest.err 1>&5
7794       fi
7795       $rm conftest*
7796       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7797 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7798       ;;
7799     esac
7800   fi
7801   ;;
7802 esac
7803
7804 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7805 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7806 library_names_spec=
7807 libname_spec='lib$name'
7808 soname_spec=
7809 shrext_cmds=".so"
7810 postinstall_cmds=
7811 postuninstall_cmds=
7812 finish_cmds=
7813 finish_eval=
7814 shlibpath_var=
7815 shlibpath_overrides_runpath=unknown
7816 version_type=none
7817 dynamic_linker="$host_os ld.so"
7818 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7819 if test "$GCC" = yes; then
7820   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7821   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7822     # if the path contains ";" then we assume it to be the separator
7823     # otherwise default to the standard path separator (i.e. ":") - it is
7824     # assumed that no part of a normal pathname contains ";" but that should
7825     # okay in the real world where ";" in dirpaths is itself problematic.
7826     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7827   else
7828     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7829   fi
7830 else
7831   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7832 fi
7833 need_lib_prefix=unknown
7834 hardcode_into_libs=no
7835
7836 # when you set need_version to no, make sure it does not cause -set_version
7837 # flags to be left without arguments
7838 need_version=unknown
7839
7840 case $host_os in
7841 aix3*)
7842   version_type=linux
7843   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7844   shlibpath_var=LIBPATH
7845
7846   # AIX 3 has no versioning support, so we append a major version to the name.
7847   soname_spec='${libname}${release}${shared_ext}$major'
7848   ;;
7849
7850 aix4* | aix5*)
7851   version_type=linux
7852   need_lib_prefix=no
7853   need_version=no
7854   hardcode_into_libs=yes
7855   if test "$host_cpu" = ia64; then
7856     # AIX 5 supports IA64
7857     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7858     shlibpath_var=LD_LIBRARY_PATH
7859   else
7860     # With GCC up to 2.95.x, collect2 would create an import file
7861     # for dependence libraries.  The import file would start with
7862     # the line `#! .'.  This would cause the generated library to
7863     # depend on `.', always an invalid library.  This was fixed in
7864     # development snapshots of GCC prior to 3.0.
7865     case $host_os in
7866       aix4 | aix4.[01] | aix4.[01].*)
7867       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7868            echo ' yes '
7869            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7870         :
7871       else
7872         can_build_shared=no
7873       fi
7874       ;;
7875     esac
7876     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7877     # soname into executable. Probably we can add versioning support to
7878     # collect2, so additional links can be useful in future.
7879     if test "$aix_use_runtimelinking" = yes; then
7880       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7881       # instead of lib<name>.a to let people know that these are not
7882       # typical AIX shared libraries.
7883       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7884     else
7885       # We preserve .a as extension for shared libraries through AIX4.2
7886       # and later when we are not doing run time linking.
7887       library_names_spec='${libname}${release}.a $libname.a'
7888       soname_spec='${libname}${release}${shared_ext}$major'
7889     fi
7890     shlibpath_var=LIBPATH
7891   fi
7892   ;;
7893
7894 amigaos*)
7895   library_names_spec='$libname.ixlibrary $libname.a'
7896   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7897   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'
7898   ;;
7899
7900 beos*)
7901   library_names_spec='${libname}${shared_ext}'
7902   dynamic_linker="$host_os ld.so"
7903   shlibpath_var=LIBRARY_PATH
7904   ;;
7905
7906 bsdi[45]*)
7907   version_type=linux
7908   need_version=no
7909   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7910   soname_spec='${libname}${release}${shared_ext}$major'
7911   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7912   shlibpath_var=LD_LIBRARY_PATH
7913   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7914   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7915   # the default ld.so.conf also contains /usr/contrib/lib and
7916   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7917   # libtool to hard-code these into programs
7918   ;;
7919
7920 cygwin* | mingw* | pw32*)
7921   version_type=windows
7922   shrext_cmds=".dll"
7923   need_version=no
7924   need_lib_prefix=no
7925
7926   case $GCC,$host_os in
7927   yes,cygwin* | yes,mingw* | yes,pw32*)
7928     library_names_spec='$libname.dll.a'
7929     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7930     postinstall_cmds='base_file=`basename \${file}`~
7931       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7932       dldir=$destdir/`dirname \$dlpath`~
7933       test -d \$dldir || mkdir -p \$dldir~
7934       $install_prog $dir/$dlname \$dldir/$dlname~
7935       chmod a+x \$dldir/$dlname'
7936     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7937       dlpath=$dir/\$dldll~
7938        $rm \$dlpath'
7939     shlibpath_overrides_runpath=yes
7940
7941     case $host_os in
7942     cygwin*)
7943       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7944       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7945       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7946       ;;
7947     mingw*)
7948       # MinGW DLLs use traditional 'lib' prefix
7949       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7950       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7951       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7952         # It is most probably a Windows format PATH printed by
7953         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7954         # path with ; separators, and with drive letters. We can handle the
7955         # drive letters (cygwin fileutils understands them), so leave them,
7956         # especially as we might pass files found there to a mingw objdump,
7957         # which wouldn't understand a cygwinified path. Ahh.
7958         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7959       else
7960         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7961       fi
7962       ;;
7963     pw32*)
7964       # pw32 DLLs use 'pw' prefix rather than 'lib'
7965       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7966       ;;
7967     esac
7968     ;;
7969
7970   *)
7971     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7972     ;;
7973   esac
7974   dynamic_linker='Win32 ld.exe'
7975   # FIXME: first we should search . and the directory the executable is in
7976   shlibpath_var=PATH
7977   ;;
7978
7979 darwin* | rhapsody*)
7980   dynamic_linker="$host_os dyld"
7981   version_type=darwin
7982   need_lib_prefix=no
7983   need_version=no
7984   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7985   soname_spec='${libname}${release}${major}$shared_ext'
7986   shlibpath_overrides_runpath=yes
7987   shlibpath_var=DYLD_LIBRARY_PATH
7988   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
7989   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7990   if test "$GCC" = yes; then
7991     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"`
7992   else
7993     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7994   fi
7995   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7996   ;;
7997
7998 dgux*)
7999   version_type=linux
8000   need_lib_prefix=no
8001   need_version=no
8002   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8003   soname_spec='${libname}${release}${shared_ext}$major'
8004   shlibpath_var=LD_LIBRARY_PATH
8005   ;;
8006
8007 freebsd1*)
8008   dynamic_linker=no
8009   ;;
8010
8011 kfreebsd*-gnu)
8012   version_type=linux
8013   need_lib_prefix=no
8014   need_version=no
8015   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8016   soname_spec='${libname}${release}${shared_ext}$major'
8017   shlibpath_var=LD_LIBRARY_PATH
8018   shlibpath_overrides_runpath=no
8019   hardcode_into_libs=yes
8020   dynamic_linker='GNU ld.so'
8021   ;;
8022
8023 freebsd* | dragonfly*)
8024   # DragonFly does not have aout.  When/if they implement a new
8025   # versioning mechanism, adjust this.
8026   if test -x /usr/bin/objformat; then
8027     objformat=`/usr/bin/objformat`
8028   else
8029     case $host_os in
8030     freebsd[123]*) objformat=aout ;;
8031     *) objformat=elf ;;
8032     esac
8033   fi
8034   version_type=freebsd-$objformat
8035   case $version_type in
8036     freebsd-elf*)
8037       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8038       need_version=no
8039       need_lib_prefix=no
8040       ;;
8041     freebsd-*)
8042       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8043       need_version=yes
8044       ;;
8045   esac
8046   shlibpath_var=LD_LIBRARY_PATH
8047   case $host_os in
8048   freebsd2*)
8049     shlibpath_overrides_runpath=yes
8050     ;;
8051   freebsd3.[01]* | freebsdelf3.[01]*)
8052     shlibpath_overrides_runpath=yes
8053     hardcode_into_libs=yes
8054     ;;
8055   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8056   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8057     shlibpath_overrides_runpath=no
8058     hardcode_into_libs=yes
8059     ;;
8060   freebsd*) # from 4.6 on
8061     shlibpath_overrides_runpath=yes
8062     hardcode_into_libs=yes
8063     ;;
8064   esac
8065   ;;
8066
8067 gnu*)
8068   version_type=linux
8069   need_lib_prefix=no
8070   need_version=no
8071   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8072   soname_spec='${libname}${release}${shared_ext}$major'
8073   shlibpath_var=LD_LIBRARY_PATH
8074   hardcode_into_libs=yes
8075   ;;
8076
8077 hpux9* | hpux10* | hpux11*)
8078   # Give a soname corresponding to the major version so that dld.sl refuses to
8079   # link against other versions.
8080   version_type=sunos
8081   need_lib_prefix=no
8082   need_version=no
8083   case $host_cpu in
8084   ia64*)
8085     shrext_cmds='.so'
8086     hardcode_into_libs=yes
8087     dynamic_linker="$host_os dld.so"
8088     shlibpath_var=LD_LIBRARY_PATH
8089     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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     if test "X$HPUX_IA64_MODE" = X32; then
8093       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8094     else
8095       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8096     fi
8097     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8098     ;;
8099    hppa*64*)
8100      shrext_cmds='.sl'
8101      hardcode_into_libs=yes
8102      dynamic_linker="$host_os dld.sl"
8103      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8104      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8105      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8106      soname_spec='${libname}${release}${shared_ext}$major'
8107      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8108      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8109      ;;
8110    *)
8111     shrext_cmds='.sl'
8112     dynamic_linker="$host_os dld.sl"
8113     shlibpath_var=SHLIB_PATH
8114     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8115     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8116     soname_spec='${libname}${release}${shared_ext}$major'
8117     ;;
8118   esac
8119   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8120   postinstall_cmds='chmod 555 $lib'
8121   ;;
8122
8123 interix3*)
8124   version_type=linux
8125   need_lib_prefix=no
8126   need_version=no
8127   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8128   soname_spec='${libname}${release}${shared_ext}$major'
8129   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8130   shlibpath_var=LD_LIBRARY_PATH
8131   shlibpath_overrides_runpath=no
8132   hardcode_into_libs=yes
8133   ;;
8134
8135 irix5* | irix6* | nonstopux*)
8136   case $host_os in
8137     nonstopux*) version_type=nonstopux ;;
8138     *)
8139         if test "$lt_cv_prog_gnu_ld" = yes; then
8140                 version_type=linux
8141         else
8142                 version_type=irix
8143         fi ;;
8144   esac
8145   need_lib_prefix=no
8146   need_version=no
8147   soname_spec='${libname}${release}${shared_ext}$major'
8148   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8149   case $host_os in
8150   irix5* | nonstopux*)
8151     libsuff= shlibsuff=
8152     ;;
8153   *)
8154     case $LD in # libtool.m4 will add one of these switches to LD
8155     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8156       libsuff= shlibsuff= libmagic=32-bit;;
8157     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8158       libsuff=32 shlibsuff=N32 libmagic=N32;;
8159     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8160       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8161     *) libsuff= shlibsuff= libmagic=never-match;;
8162     esac
8163     ;;
8164   esac
8165   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8166   shlibpath_overrides_runpath=no
8167   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8168   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8169   hardcode_into_libs=yes
8170   ;;
8171
8172 # No shared lib support for Linux oldld, aout, or coff.
8173 linux*oldld* | linux*aout* | linux*coff*)
8174   dynamic_linker=no
8175   ;;
8176
8177 # This must be Linux ELF.
8178 linux*)
8179   version_type=linux
8180   need_lib_prefix=no
8181   need_version=no
8182   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8183   soname_spec='${libname}${release}${shared_ext}$major'
8184   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8185   shlibpath_var=LD_LIBRARY_PATH
8186   shlibpath_overrides_runpath=no
8187   # This implies no fast_install, which is unacceptable.
8188   # Some rework will be needed to allow for fast_install
8189   # before this can be enabled.
8190   hardcode_into_libs=yes
8191
8192   # Append ld.so.conf contents to the search path
8193   if test -f /etc/ld.so.conf; then
8194     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' ' '`
8195     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8196   fi
8197
8198   # We used to test for /lib/ld.so.1 and disable shared libraries on
8199   # powerpc, because MkLinux only supported shared libraries with the
8200   # GNU dynamic linker.  Since this was broken with cross compilers,
8201   # most powerpc-linux boxes support dynamic linking these days and
8202   # people can always --disable-shared, the test was removed, and we
8203   # assume the GNU/Linux dynamic linker is in use.
8204   dynamic_linker='GNU/Linux ld.so'
8205   ;;
8206
8207 knetbsd*-gnu)
8208   version_type=linux
8209   need_lib_prefix=no
8210   need_version=no
8211   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8212   soname_spec='${libname}${release}${shared_ext}$major'
8213   shlibpath_var=LD_LIBRARY_PATH
8214   shlibpath_overrides_runpath=no
8215   hardcode_into_libs=yes
8216   dynamic_linker='GNU ld.so'
8217   ;;
8218
8219 netbsd*)
8220   version_type=sunos
8221   need_lib_prefix=no
8222   need_version=no
8223   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8224     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8225     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8226     dynamic_linker='NetBSD (a.out) ld.so'
8227   else
8228     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8229     soname_spec='${libname}${release}${shared_ext}$major'
8230     dynamic_linker='NetBSD ld.elf_so'
8231   fi
8232   shlibpath_var=LD_LIBRARY_PATH
8233   shlibpath_overrides_runpath=yes
8234   hardcode_into_libs=yes
8235   ;;
8236
8237 newsos6)
8238   version_type=linux
8239   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8240   shlibpath_var=LD_LIBRARY_PATH
8241   shlibpath_overrides_runpath=yes
8242   ;;
8243
8244 nto-qnx*)
8245   version_type=linux
8246   need_lib_prefix=no
8247   need_version=no
8248   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8249   soname_spec='${libname}${release}${shared_ext}$major'
8250   shlibpath_var=LD_LIBRARY_PATH
8251   shlibpath_overrides_runpath=yes
8252   ;;
8253
8254 openbsd*)
8255   version_type=sunos
8256   sys_lib_dlsearch_path_spec="/usr/lib"
8257   need_lib_prefix=no
8258   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8259   case $host_os in
8260     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8261     *)                         need_version=no  ;;
8262   esac
8263   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8264   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8265   shlibpath_var=LD_LIBRARY_PATH
8266   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8267     case $host_os in
8268       openbsd2.[89] | openbsd2.[89].*)
8269         shlibpath_overrides_runpath=no
8270         ;;
8271       *)
8272         shlibpath_overrides_runpath=yes
8273         ;;
8274       esac
8275   else
8276     shlibpath_overrides_runpath=yes
8277   fi
8278   ;;
8279
8280 os2*)
8281   libname_spec='$name'
8282   shrext_cmds=".dll"
8283   need_lib_prefix=no
8284   library_names_spec='$libname${shared_ext} $libname.a'
8285   dynamic_linker='OS/2 ld.exe'
8286   shlibpath_var=LIBPATH
8287   ;;
8288
8289 osf3* | osf4* | osf5*)
8290   version_type=osf
8291   need_lib_prefix=no
8292   need_version=no
8293   soname_spec='${libname}${release}${shared_ext}$major'
8294   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8295   shlibpath_var=LD_LIBRARY_PATH
8296   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8297   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8298   ;;
8299
8300 solaris*)
8301   version_type=linux
8302   need_lib_prefix=no
8303   need_version=no
8304   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8305   soname_spec='${libname}${release}${shared_ext}$major'
8306   shlibpath_var=LD_LIBRARY_PATH
8307   shlibpath_overrides_runpath=yes
8308   hardcode_into_libs=yes
8309   # ldd complains unless libraries are executable
8310   postinstall_cmds='chmod +x $lib'
8311   ;;
8312
8313 sunos4*)
8314   version_type=sunos
8315   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8316   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8317   shlibpath_var=LD_LIBRARY_PATH
8318   shlibpath_overrides_runpath=yes
8319   if test "$with_gnu_ld" = yes; then
8320     need_lib_prefix=no
8321   fi
8322   need_version=yes
8323   ;;
8324
8325 sysv4 | sysv4.3*)
8326   version_type=linux
8327   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8328   soname_spec='${libname}${release}${shared_ext}$major'
8329   shlibpath_var=LD_LIBRARY_PATH
8330   case $host_vendor in
8331     sni)
8332       shlibpath_overrides_runpath=no
8333       need_lib_prefix=no
8334       export_dynamic_flag_spec='${wl}-Blargedynsym'
8335       runpath_var=LD_RUN_PATH
8336       ;;
8337     siemens)
8338       need_lib_prefix=no
8339       ;;
8340     motorola)
8341       need_lib_prefix=no
8342       need_version=no
8343       shlibpath_overrides_runpath=no
8344       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8345       ;;
8346   esac
8347   ;;
8348
8349 sysv4*MP*)
8350   if test -d /usr/nec ;then
8351     version_type=linux
8352     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8353     soname_spec='$libname${shared_ext}.$major'
8354     shlibpath_var=LD_LIBRARY_PATH
8355   fi
8356   ;;
8357
8358 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8359   version_type=freebsd-elf
8360   need_lib_prefix=no
8361   need_version=no
8362   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8363   soname_spec='${libname}${release}${shared_ext}$major'
8364   shlibpath_var=LD_LIBRARY_PATH
8365   hardcode_into_libs=yes
8366   if test "$with_gnu_ld" = yes; then
8367     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8368     shlibpath_overrides_runpath=no
8369   else
8370     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8371     shlibpath_overrides_runpath=yes
8372     case $host_os in
8373       sco3.2v5*)
8374         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8375         ;;
8376     esac
8377   fi
8378   sys_lib_dlsearch_path_spec='/usr/lib'
8379   ;;
8380
8381 uts4*)
8382   version_type=linux
8383   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8384   soname_spec='${libname}${release}${shared_ext}$major'
8385   shlibpath_var=LD_LIBRARY_PATH
8386   ;;
8387
8388 *)
8389   dynamic_linker=no
8390   ;;
8391 esac
8392 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8393 echo "${ECHO_T}$dynamic_linker" >&6
8394 test "$dynamic_linker" = no && can_build_shared=no
8395
8396 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8397 if test "$GCC" = yes; then
8398   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8399 fi
8400
8401 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8402 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8403 hardcode_action=
8404 if test -n "$hardcode_libdir_flag_spec" || \
8405    test -n "$runpath_var" || \
8406    test "X$hardcode_automatic" = "Xyes" ; then
8407
8408   # We can hardcode non-existant directories.
8409   if test "$hardcode_direct" != no &&
8410      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8411      # have to relink, otherwise we might link with an installed library
8412      # when we should be linking with a yet-to-be-installed one
8413      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8414      test "$hardcode_minus_L" != no; then
8415     # Linking always hardcodes the temporary library directory.
8416     hardcode_action=relink
8417   else
8418     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8419     hardcode_action=immediate
8420   fi
8421 else
8422   # We cannot hardcode anything, or else we can only hardcode existing
8423   # directories.
8424   hardcode_action=unsupported
8425 fi
8426 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8427 echo "${ECHO_T}$hardcode_action" >&6
8428
8429 if test "$hardcode_action" = relink; then
8430   # Fast installation is not supported
8431   enable_fast_install=no
8432 elif test "$shlibpath_overrides_runpath" = yes ||
8433      test "$enable_shared" = no; then
8434   # Fast installation is not necessary
8435   enable_fast_install=needless
8436 fi
8437
8438 striplib=
8439 old_striplib=
8440 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8441 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8442 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8443   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8444   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8445   echo "$as_me:$LINENO: result: yes" >&5
8446 echo "${ECHO_T}yes" >&6
8447 else
8448 # FIXME - insert some real tests, host_os isn't really good enough
8449   case $host_os in
8450    darwin*)
8451        if test -n "$STRIP" ; then
8452          striplib="$STRIP -x"
8453          echo "$as_me:$LINENO: result: yes" >&5
8454 echo "${ECHO_T}yes" >&6
8455        else
8456   echo "$as_me:$LINENO: result: no" >&5
8457 echo "${ECHO_T}no" >&6
8458 fi
8459        ;;
8460    *)
8461   echo "$as_me:$LINENO: result: no" >&5
8462 echo "${ECHO_T}no" >&6
8463     ;;
8464   esac
8465 fi
8466
8467 if test "x$enable_dlopen" != xyes; then
8468   enable_dlopen=unknown
8469   enable_dlopen_self=unknown
8470   enable_dlopen_self_static=unknown
8471 else
8472   lt_cv_dlopen=no
8473   lt_cv_dlopen_libs=
8474
8475   case $host_os in
8476   beos*)
8477     lt_cv_dlopen="load_add_on"
8478     lt_cv_dlopen_libs=
8479     lt_cv_dlopen_self=yes
8480     ;;
8481
8482   mingw* | pw32*)
8483     lt_cv_dlopen="LoadLibrary"
8484     lt_cv_dlopen_libs=
8485    ;;
8486
8487   cygwin*)
8488     lt_cv_dlopen="dlopen"
8489     lt_cv_dlopen_libs=
8490    ;;
8491
8492   darwin*)
8493   # if libdl is installed we need to link against it
8494     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8495 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8496 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8497   echo $ECHO_N "(cached) $ECHO_C" >&6
8498 else
8499   ac_check_lib_save_LIBS=$LIBS
8500 LIBS="-ldl  $LIBS"
8501 cat >conftest.$ac_ext <<_ACEOF
8502 /* confdefs.h.  */
8503 _ACEOF
8504 cat confdefs.h >>conftest.$ac_ext
8505 cat >>conftest.$ac_ext <<_ACEOF
8506 /* end confdefs.h.  */
8507
8508 /* Override any gcc2 internal prototype to avoid an error.  */
8509 #ifdef __cplusplus
8510 extern "C"
8511 #endif
8512 /* We use char because int might match the return type of a gcc2
8513    builtin and then its argument prototype would still apply.  */
8514 char dlopen ();
8515 int
8516 main ()
8517 {
8518 dlopen ();
8519   ;
8520   return 0;
8521 }
8522 _ACEOF
8523 rm -f conftest.$ac_objext conftest$ac_exeext
8524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8525   (eval $ac_link) 2>conftest.er1
8526   ac_status=$?
8527   grep -v '^ *+' conftest.er1 >conftest.err
8528   rm -f conftest.er1
8529   cat conftest.err >&5
8530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531   (exit $ac_status); } &&
8532          { ac_try='test -z "$ac_c_werror_flag"
8533                          || test ! -s conftest.err'
8534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8535   (eval $ac_try) 2>&5
8536   ac_status=$?
8537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538   (exit $ac_status); }; } &&
8539          { ac_try='test -s conftest$ac_exeext'
8540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8541   (eval $ac_try) 2>&5
8542   ac_status=$?
8543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544   (exit $ac_status); }; }; then
8545   ac_cv_lib_dl_dlopen=yes
8546 else
8547   echo "$as_me: failed program was:" >&5
8548 sed 's/^/| /' conftest.$ac_ext >&5
8549
8550 ac_cv_lib_dl_dlopen=no
8551 fi
8552 rm -f conftest.err conftest.$ac_objext \
8553       conftest$ac_exeext conftest.$ac_ext
8554 LIBS=$ac_check_lib_save_LIBS
8555 fi
8556 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8557 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8558 if test $ac_cv_lib_dl_dlopen = yes; then
8559   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8560 else
8561   
8562     lt_cv_dlopen="dyld"
8563     lt_cv_dlopen_libs=
8564     lt_cv_dlopen_self=yes
8565     
8566 fi
8567
8568    ;;
8569
8570   *)
8571     echo "$as_me:$LINENO: checking for shl_load" >&5
8572 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8573 if test "${ac_cv_func_shl_load+set}" = set; then
8574   echo $ECHO_N "(cached) $ECHO_C" >&6
8575 else
8576   cat >conftest.$ac_ext <<_ACEOF
8577 /* confdefs.h.  */
8578 _ACEOF
8579 cat confdefs.h >>conftest.$ac_ext
8580 cat >>conftest.$ac_ext <<_ACEOF
8581 /* end confdefs.h.  */
8582 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8583    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8584 #define shl_load innocuous_shl_load
8585
8586 /* System header to define __stub macros and hopefully few prototypes,
8587     which can conflict with char shl_load (); below.
8588     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8589     <limits.h> exists even on freestanding compilers.  */
8590
8591 #ifdef __STDC__
8592 # include <limits.h>
8593 #else
8594 # include <assert.h>
8595 #endif
8596
8597 #undef shl_load
8598
8599 /* Override any gcc2 internal prototype to avoid an error.  */
8600 #ifdef __cplusplus
8601 extern "C"
8602 {
8603 #endif
8604 /* We use char because int might match the return type of a gcc2
8605    builtin and then its argument prototype would still apply.  */
8606 char shl_load ();
8607 /* The GNU C library defines this for functions which it implements
8608     to always fail with ENOSYS.  Some functions are actually named
8609     something starting with __ and the normal name is an alias.  */
8610 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8611 choke me
8612 #else
8613 char (*f) () = shl_load;
8614 #endif
8615 #ifdef __cplusplus
8616 }
8617 #endif
8618
8619 int
8620 main ()
8621 {
8622 return f != shl_load;
8623   ;
8624   return 0;
8625 }
8626 _ACEOF
8627 rm -f conftest.$ac_objext conftest$ac_exeext
8628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8629   (eval $ac_link) 2>conftest.er1
8630   ac_status=$?
8631   grep -v '^ *+' conftest.er1 >conftest.err
8632   rm -f conftest.er1
8633   cat conftest.err >&5
8634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635   (exit $ac_status); } &&
8636          { ac_try='test -z "$ac_c_werror_flag"
8637                          || test ! -s conftest.err'
8638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8639   (eval $ac_try) 2>&5
8640   ac_status=$?
8641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8642   (exit $ac_status); }; } &&
8643          { ac_try='test -s conftest$ac_exeext'
8644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8645   (eval $ac_try) 2>&5
8646   ac_status=$?
8647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648   (exit $ac_status); }; }; then
8649   ac_cv_func_shl_load=yes
8650 else
8651   echo "$as_me: failed program was:" >&5
8652 sed 's/^/| /' conftest.$ac_ext >&5
8653
8654 ac_cv_func_shl_load=no
8655 fi
8656 rm -f conftest.err conftest.$ac_objext \
8657       conftest$ac_exeext conftest.$ac_ext
8658 fi
8659 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8660 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8661 if test $ac_cv_func_shl_load = yes; then
8662   lt_cv_dlopen="shl_load"
8663 else
8664   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8665 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8666 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8667   echo $ECHO_N "(cached) $ECHO_C" >&6
8668 else
8669   ac_check_lib_save_LIBS=$LIBS
8670 LIBS="-ldld  $LIBS"
8671 cat >conftest.$ac_ext <<_ACEOF
8672 /* confdefs.h.  */
8673 _ACEOF
8674 cat confdefs.h >>conftest.$ac_ext
8675 cat >>conftest.$ac_ext <<_ACEOF
8676 /* end confdefs.h.  */
8677
8678 /* Override any gcc2 internal prototype to avoid an error.  */
8679 #ifdef __cplusplus
8680 extern "C"
8681 #endif
8682 /* We use char because int might match the return type of a gcc2
8683    builtin and then its argument prototype would still apply.  */
8684 char shl_load ();
8685 int
8686 main ()
8687 {
8688 shl_load ();
8689   ;
8690   return 0;
8691 }
8692 _ACEOF
8693 rm -f conftest.$ac_objext conftest$ac_exeext
8694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8695   (eval $ac_link) 2>conftest.er1
8696   ac_status=$?
8697   grep -v '^ *+' conftest.er1 >conftest.err
8698   rm -f conftest.er1
8699   cat conftest.err >&5
8700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701   (exit $ac_status); } &&
8702          { ac_try='test -z "$ac_c_werror_flag"
8703                          || test ! -s conftest.err'
8704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8705   (eval $ac_try) 2>&5
8706   ac_status=$?
8707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708   (exit $ac_status); }; } &&
8709          { ac_try='test -s conftest$ac_exeext'
8710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8711   (eval $ac_try) 2>&5
8712   ac_status=$?
8713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714   (exit $ac_status); }; }; then
8715   ac_cv_lib_dld_shl_load=yes
8716 else
8717   echo "$as_me: failed program was:" >&5
8718 sed 's/^/| /' conftest.$ac_ext >&5
8719
8720 ac_cv_lib_dld_shl_load=no
8721 fi
8722 rm -f conftest.err conftest.$ac_objext \
8723       conftest$ac_exeext conftest.$ac_ext
8724 LIBS=$ac_check_lib_save_LIBS
8725 fi
8726 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8727 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8728 if test $ac_cv_lib_dld_shl_load = yes; then
8729   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8730 else
8731   echo "$as_me:$LINENO: checking for dlopen" >&5
8732 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8733 if test "${ac_cv_func_dlopen+set}" = set; then
8734   echo $ECHO_N "(cached) $ECHO_C" >&6
8735 else
8736   cat >conftest.$ac_ext <<_ACEOF
8737 /* confdefs.h.  */
8738 _ACEOF
8739 cat confdefs.h >>conftest.$ac_ext
8740 cat >>conftest.$ac_ext <<_ACEOF
8741 /* end confdefs.h.  */
8742 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8743    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8744 #define dlopen innocuous_dlopen
8745
8746 /* System header to define __stub macros and hopefully few prototypes,
8747     which can conflict with char dlopen (); below.
8748     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8749     <limits.h> exists even on freestanding compilers.  */
8750
8751 #ifdef __STDC__
8752 # include <limits.h>
8753 #else
8754 # include <assert.h>
8755 #endif
8756
8757 #undef dlopen
8758
8759 /* Override any gcc2 internal prototype to avoid an error.  */
8760 #ifdef __cplusplus
8761 extern "C"
8762 {
8763 #endif
8764 /* We use char because int might match the return type of a gcc2
8765    builtin and then its argument prototype would still apply.  */
8766 char dlopen ();
8767 /* The GNU C library defines this for functions which it implements
8768     to always fail with ENOSYS.  Some functions are actually named
8769     something starting with __ and the normal name is an alias.  */
8770 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8771 choke me
8772 #else
8773 char (*f) () = dlopen;
8774 #endif
8775 #ifdef __cplusplus
8776 }
8777 #endif
8778
8779 int
8780 main ()
8781 {
8782 return f != dlopen;
8783   ;
8784   return 0;
8785 }
8786 _ACEOF
8787 rm -f conftest.$ac_objext conftest$ac_exeext
8788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8789   (eval $ac_link) 2>conftest.er1
8790   ac_status=$?
8791   grep -v '^ *+' conftest.er1 >conftest.err
8792   rm -f conftest.er1
8793   cat conftest.err >&5
8794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8795   (exit $ac_status); } &&
8796          { ac_try='test -z "$ac_c_werror_flag"
8797                          || test ! -s conftest.err'
8798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8799   (eval $ac_try) 2>&5
8800   ac_status=$?
8801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8802   (exit $ac_status); }; } &&
8803          { ac_try='test -s conftest$ac_exeext'
8804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8805   (eval $ac_try) 2>&5
8806   ac_status=$?
8807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808   (exit $ac_status); }; }; then
8809   ac_cv_func_dlopen=yes
8810 else
8811   echo "$as_me: failed program was:" >&5
8812 sed 's/^/| /' conftest.$ac_ext >&5
8813
8814 ac_cv_func_dlopen=no
8815 fi
8816 rm -f conftest.err conftest.$ac_objext \
8817       conftest$ac_exeext conftest.$ac_ext
8818 fi
8819 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8820 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8821 if test $ac_cv_func_dlopen = yes; then
8822   lt_cv_dlopen="dlopen"
8823 else
8824   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8825 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8826 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8827   echo $ECHO_N "(cached) $ECHO_C" >&6
8828 else
8829   ac_check_lib_save_LIBS=$LIBS
8830 LIBS="-ldl  $LIBS"
8831 cat >conftest.$ac_ext <<_ACEOF
8832 /* confdefs.h.  */
8833 _ACEOF
8834 cat confdefs.h >>conftest.$ac_ext
8835 cat >>conftest.$ac_ext <<_ACEOF
8836 /* end confdefs.h.  */
8837
8838 /* Override any gcc2 internal prototype to avoid an error.  */
8839 #ifdef __cplusplus
8840 extern "C"
8841 #endif
8842 /* We use char because int might match the return type of a gcc2
8843    builtin and then its argument prototype would still apply.  */
8844 char dlopen ();
8845 int
8846 main ()
8847 {
8848 dlopen ();
8849   ;
8850   return 0;
8851 }
8852 _ACEOF
8853 rm -f conftest.$ac_objext conftest$ac_exeext
8854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8855   (eval $ac_link) 2>conftest.er1
8856   ac_status=$?
8857   grep -v '^ *+' conftest.er1 >conftest.err
8858   rm -f conftest.er1
8859   cat conftest.err >&5
8860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8861   (exit $ac_status); } &&
8862          { ac_try='test -z "$ac_c_werror_flag"
8863                          || test ! -s conftest.err'
8864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8865   (eval $ac_try) 2>&5
8866   ac_status=$?
8867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868   (exit $ac_status); }; } &&
8869          { ac_try='test -s conftest$ac_exeext'
8870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8871   (eval $ac_try) 2>&5
8872   ac_status=$?
8873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874   (exit $ac_status); }; }; then
8875   ac_cv_lib_dl_dlopen=yes
8876 else
8877   echo "$as_me: failed program was:" >&5
8878 sed 's/^/| /' conftest.$ac_ext >&5
8879
8880 ac_cv_lib_dl_dlopen=no
8881 fi
8882 rm -f conftest.err conftest.$ac_objext \
8883       conftest$ac_exeext conftest.$ac_ext
8884 LIBS=$ac_check_lib_save_LIBS
8885 fi
8886 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8887 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8888 if test $ac_cv_lib_dl_dlopen = yes; then
8889   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8890 else
8891   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8892 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8893 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8894   echo $ECHO_N "(cached) $ECHO_C" >&6
8895 else
8896   ac_check_lib_save_LIBS=$LIBS
8897 LIBS="-lsvld  $LIBS"
8898 cat >conftest.$ac_ext <<_ACEOF
8899 /* confdefs.h.  */
8900 _ACEOF
8901 cat confdefs.h >>conftest.$ac_ext
8902 cat >>conftest.$ac_ext <<_ACEOF
8903 /* end confdefs.h.  */
8904
8905 /* Override any gcc2 internal prototype to avoid an error.  */
8906 #ifdef __cplusplus
8907 extern "C"
8908 #endif
8909 /* We use char because int might match the return type of a gcc2
8910    builtin and then its argument prototype would still apply.  */
8911 char dlopen ();
8912 int
8913 main ()
8914 {
8915 dlopen ();
8916   ;
8917   return 0;
8918 }
8919 _ACEOF
8920 rm -f conftest.$ac_objext conftest$ac_exeext
8921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8922   (eval $ac_link) 2>conftest.er1
8923   ac_status=$?
8924   grep -v '^ *+' conftest.er1 >conftest.err
8925   rm -f conftest.er1
8926   cat conftest.err >&5
8927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928   (exit $ac_status); } &&
8929          { ac_try='test -z "$ac_c_werror_flag"
8930                          || test ! -s conftest.err'
8931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8932   (eval $ac_try) 2>&5
8933   ac_status=$?
8934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935   (exit $ac_status); }; } &&
8936          { ac_try='test -s conftest$ac_exeext'
8937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8938   (eval $ac_try) 2>&5
8939   ac_status=$?
8940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941   (exit $ac_status); }; }; then
8942   ac_cv_lib_svld_dlopen=yes
8943 else
8944   echo "$as_me: failed program was:" >&5
8945 sed 's/^/| /' conftest.$ac_ext >&5
8946
8947 ac_cv_lib_svld_dlopen=no
8948 fi
8949 rm -f conftest.err conftest.$ac_objext \
8950       conftest$ac_exeext conftest.$ac_ext
8951 LIBS=$ac_check_lib_save_LIBS
8952 fi
8953 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8954 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8955 if test $ac_cv_lib_svld_dlopen = yes; then
8956   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8957 else
8958   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8959 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8960 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8961   echo $ECHO_N "(cached) $ECHO_C" >&6
8962 else
8963   ac_check_lib_save_LIBS=$LIBS
8964 LIBS="-ldld  $LIBS"
8965 cat >conftest.$ac_ext <<_ACEOF
8966 /* confdefs.h.  */
8967 _ACEOF
8968 cat confdefs.h >>conftest.$ac_ext
8969 cat >>conftest.$ac_ext <<_ACEOF
8970 /* end confdefs.h.  */
8971
8972 /* Override any gcc2 internal prototype to avoid an error.  */
8973 #ifdef __cplusplus
8974 extern "C"
8975 #endif
8976 /* We use char because int might match the return type of a gcc2
8977    builtin and then its argument prototype would still apply.  */
8978 char dld_link ();
8979 int
8980 main ()
8981 {
8982 dld_link ();
8983   ;
8984   return 0;
8985 }
8986 _ACEOF
8987 rm -f conftest.$ac_objext conftest$ac_exeext
8988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8989   (eval $ac_link) 2>conftest.er1
8990   ac_status=$?
8991   grep -v '^ *+' conftest.er1 >conftest.err
8992   rm -f conftest.er1
8993   cat conftest.err >&5
8994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995   (exit $ac_status); } &&
8996          { ac_try='test -z "$ac_c_werror_flag"
8997                          || test ! -s conftest.err'
8998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8999   (eval $ac_try) 2>&5
9000   ac_status=$?
9001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002   (exit $ac_status); }; } &&
9003          { ac_try='test -s conftest$ac_exeext'
9004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9005   (eval $ac_try) 2>&5
9006   ac_status=$?
9007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008   (exit $ac_status); }; }; then
9009   ac_cv_lib_dld_dld_link=yes
9010 else
9011   echo "$as_me: failed program was:" >&5
9012 sed 's/^/| /' conftest.$ac_ext >&5
9013
9014 ac_cv_lib_dld_dld_link=no
9015 fi
9016 rm -f conftest.err conftest.$ac_objext \
9017       conftest$ac_exeext conftest.$ac_ext
9018 LIBS=$ac_check_lib_save_LIBS
9019 fi
9020 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9021 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9022 if test $ac_cv_lib_dld_dld_link = yes; then
9023   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9024 fi
9025
9026               
9027 fi
9028
9029             
9030 fi
9031
9032           
9033 fi
9034
9035         
9036 fi
9037
9038       
9039 fi
9040
9041     ;;
9042   esac
9043
9044   if test "x$lt_cv_dlopen" != xno; then
9045     enable_dlopen=yes
9046   else
9047     enable_dlopen=no
9048   fi
9049
9050   case $lt_cv_dlopen in
9051   dlopen)
9052     save_CPPFLAGS="$CPPFLAGS"
9053     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9054
9055     save_LDFLAGS="$LDFLAGS"
9056     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9057
9058     save_LIBS="$LIBS"
9059     LIBS="$lt_cv_dlopen_libs $LIBS"
9060
9061     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9062 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9063 if test "${lt_cv_dlopen_self+set}" = set; then
9064   echo $ECHO_N "(cached) $ECHO_C" >&6
9065 else
9066           if test "$cross_compiling" = yes; then :
9067   lt_cv_dlopen_self=cross
9068 else
9069   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9070   lt_status=$lt_dlunknown
9071   cat > conftest.$ac_ext <<EOF
9072 #line __oline__ "configure"
9073 #include "confdefs.h"
9074
9075 #if HAVE_DLFCN_H
9076 #include <dlfcn.h>
9077 #endif
9078
9079 #include <stdio.h>
9080
9081 #ifdef RTLD_GLOBAL
9082 #  define LT_DLGLOBAL           RTLD_GLOBAL
9083 #else
9084 #  ifdef DL_GLOBAL
9085 #    define LT_DLGLOBAL         DL_GLOBAL
9086 #  else
9087 #    define LT_DLGLOBAL         0
9088 #  endif
9089 #endif
9090
9091 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9092    find out it does not work in some platform. */
9093 #ifndef LT_DLLAZY_OR_NOW
9094 #  ifdef RTLD_LAZY
9095 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9096 #  else
9097 #    ifdef DL_LAZY
9098 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9099 #    else
9100 #      ifdef RTLD_NOW
9101 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9102 #      else
9103 #        ifdef DL_NOW
9104 #          define LT_DLLAZY_OR_NOW      DL_NOW
9105 #        else
9106 #          define LT_DLLAZY_OR_NOW      0
9107 #        endif
9108 #      endif
9109 #    endif
9110 #  endif
9111 #endif
9112
9113 #ifdef __cplusplus
9114 extern "C" void exit (int);
9115 #endif
9116
9117 void fnord() { int i=42;}
9118 int main ()
9119 {
9120   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9121   int status = $lt_dlunknown;
9122
9123   if (self)
9124     {
9125       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9126       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9127       /* dlclose (self); */
9128     }
9129   else
9130     puts (dlerror ());
9131
9132     exit (status);
9133 }
9134 EOF
9135   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9136   (eval $ac_link) 2>&5
9137   ac_status=$?
9138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9140     (./conftest; exit; ) >&5 2>/dev/null
9141     lt_status=$?
9142     case x$lt_status in
9143       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9144       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9145       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9146     esac
9147   else :
9148     # compilation failed
9149     lt_cv_dlopen_self=no
9150   fi
9151 fi
9152 rm -fr conftest*
9153
9154     
9155 fi
9156 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9157 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9158
9159     if test "x$lt_cv_dlopen_self" = xyes; then
9160       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9161       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9162 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9163 if test "${lt_cv_dlopen_self_static+set}" = set; then
9164   echo $ECHO_N "(cached) $ECHO_C" >&6
9165 else
9166           if test "$cross_compiling" = yes; then :
9167   lt_cv_dlopen_self_static=cross
9168 else
9169   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9170   lt_status=$lt_dlunknown
9171   cat > conftest.$ac_ext <<EOF
9172 #line __oline__ "configure"
9173 #include "confdefs.h"
9174
9175 #if HAVE_DLFCN_H
9176 #include <dlfcn.h>
9177 #endif
9178
9179 #include <stdio.h>
9180
9181 #ifdef RTLD_GLOBAL
9182 #  define LT_DLGLOBAL           RTLD_GLOBAL
9183 #else
9184 #  ifdef DL_GLOBAL
9185 #    define LT_DLGLOBAL         DL_GLOBAL
9186 #  else
9187 #    define LT_DLGLOBAL         0
9188 #  endif
9189 #endif
9190
9191 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9192    find out it does not work in some platform. */
9193 #ifndef LT_DLLAZY_OR_NOW
9194 #  ifdef RTLD_LAZY
9195 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9196 #  else
9197 #    ifdef DL_LAZY
9198 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9199 #    else
9200 #      ifdef RTLD_NOW
9201 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9202 #      else
9203 #        ifdef DL_NOW
9204 #          define LT_DLLAZY_OR_NOW      DL_NOW
9205 #        else
9206 #          define LT_DLLAZY_OR_NOW      0
9207 #        endif
9208 #      endif
9209 #    endif
9210 #  endif
9211 #endif
9212
9213 #ifdef __cplusplus
9214 extern "C" void exit (int);
9215 #endif
9216
9217 void fnord() { int i=42;}
9218 int main ()
9219 {
9220   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9221   int status = $lt_dlunknown;
9222
9223   if (self)
9224     {
9225       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9226       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9227       /* dlclose (self); */
9228     }
9229   else
9230     puts (dlerror ());
9231
9232     exit (status);
9233 }
9234 EOF
9235   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9236   (eval $ac_link) 2>&5
9237   ac_status=$?
9238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9240     (./conftest; exit; ) >&5 2>/dev/null
9241     lt_status=$?
9242     case x$lt_status in
9243       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9244       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9245       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9246     esac
9247   else :
9248     # compilation failed
9249     lt_cv_dlopen_self_static=no
9250   fi
9251 fi
9252 rm -fr conftest*
9253
9254       
9255 fi
9256 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9257 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9258     fi
9259
9260     CPPFLAGS="$save_CPPFLAGS"
9261     LDFLAGS="$save_LDFLAGS"
9262     LIBS="$save_LIBS"
9263     ;;
9264   esac
9265
9266   case $lt_cv_dlopen_self in
9267   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9268   *) enable_dlopen_self=unknown ;;
9269   esac
9270
9271   case $lt_cv_dlopen_self_static in
9272   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9273   *) enable_dlopen_self_static=unknown ;;
9274   esac
9275 fi
9276
9277
9278 # Report which library types will actually be built
9279 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9280 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9281 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9282 echo "${ECHO_T}$can_build_shared" >&6
9283
9284 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9285 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9286 test "$can_build_shared" = "no" && enable_shared=no
9287
9288 # On AIX, shared libraries and static libraries use the same namespace, and
9289 # are all built from PIC.
9290 case $host_os in
9291 aix3*)
9292   test "$enable_shared" = yes && enable_static=no
9293   if test -n "$RANLIB"; then
9294     archive_cmds="$archive_cmds~\$RANLIB \$lib"
9295     postinstall_cmds='$RANLIB $lib'
9296   fi
9297   ;;
9298
9299 aix4* | aix5*)
9300   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9301     test "$enable_shared" = yes && enable_static=no
9302   fi
9303     ;;
9304 esac
9305 echo "$as_me:$LINENO: result: $enable_shared" >&5
9306 echo "${ECHO_T}$enable_shared" >&6
9307
9308 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9309 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9310 # Make sure either enable_shared or enable_static is yes.
9311 test "$enable_shared" = yes || enable_static=yes
9312 echo "$as_me:$LINENO: result: $enable_static" >&5
9313 echo "${ECHO_T}$enable_static" >&6
9314
9315 # The else clause should only fire when bootstrapping the
9316 # libtool distribution, otherwise you forgot to ship ltmain.sh
9317 # with your package, and you will get complaints that there are
9318 # no rules to generate ltmain.sh.
9319 if test -f "$ltmain"; then
9320   # See if we are running on zsh, and set the options which allow our commands through
9321   # without removal of \ escapes.
9322   if test -n "${ZSH_VERSION+set}" ; then
9323     setopt NO_GLOB_SUBST
9324   fi
9325   # Now quote all the things that may contain metacharacters while being
9326   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9327   # variables and quote the copies for generation of the libtool script.
9328   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9329     SED SHELL STRIP \
9330     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9331     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9332     deplibs_check_method reload_flag reload_cmds need_locks \
9333     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9334     lt_cv_sys_global_symbol_to_c_name_address \
9335     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9336     old_postinstall_cmds old_postuninstall_cmds \
9337     compiler \
9338     CC \
9339     LD \
9340     lt_prog_compiler_wl \
9341     lt_prog_compiler_pic \
9342     lt_prog_compiler_static \
9343     lt_prog_compiler_no_builtin_flag \
9344     export_dynamic_flag_spec \
9345     thread_safe_flag_spec \
9346     whole_archive_flag_spec \
9347     enable_shared_with_static_runtimes \
9348     old_archive_cmds \
9349     old_archive_from_new_cmds \
9350     predep_objects \
9351     postdep_objects \
9352     predeps \
9353     postdeps \
9354     compiler_lib_search_path \
9355     archive_cmds \
9356     archive_expsym_cmds \
9357     postinstall_cmds \
9358     postuninstall_cmds \
9359     old_archive_from_expsyms_cmds \
9360     allow_undefined_flag \
9361     no_undefined_flag \
9362     export_symbols_cmds \
9363     hardcode_libdir_flag_spec \
9364     hardcode_libdir_flag_spec_ld \
9365     hardcode_libdir_separator \
9366     hardcode_automatic \
9367     module_cmds \
9368     module_expsym_cmds \
9369     lt_cv_prog_compiler_c_o \
9370     exclude_expsyms \
9371     include_expsyms; do
9372
9373     case $var in
9374     old_archive_cmds | \
9375     old_archive_from_new_cmds | \
9376     archive_cmds | \
9377     archive_expsym_cmds | \
9378     module_cmds | \
9379     module_expsym_cmds | \
9380     old_archive_from_expsyms_cmds | \
9381     export_symbols_cmds | \
9382     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9383     postinstall_cmds | postuninstall_cmds | \
9384     old_postinstall_cmds | old_postuninstall_cmds | \
9385     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9386       # Double-quote double-evaled strings.
9387       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9388       ;;
9389     *)
9390       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9391       ;;
9392     esac
9393   done
9394
9395   case $lt_echo in
9396   *'\$0 --fallback-echo"')
9397     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9398     ;;
9399   esac
9400
9401 cfgfile="${ofile}T"
9402   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9403   $rm -f "$cfgfile"
9404   { echo "$as_me:$LINENO: creating $ofile" >&5
9405 echo "$as_me: creating $ofile" >&6;}
9406
9407   cat <<__EOF__ >> "$cfgfile"
9408 #! $SHELL
9409
9410 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9411 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9412 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9413 #
9414 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9415 # Free Software Foundation, Inc.
9416 #
9417 # This file is part of GNU Libtool:
9418 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9419 #
9420 # This program is free software; you can redistribute it and/or modify
9421 # it under the terms of the GNU General Public License as published by
9422 # the Free Software Foundation; either version 2 of the License, or
9423 # (at your option) any later version.
9424 #
9425 # This program is distributed in the hope that it will be useful, but
9426 # WITHOUT ANY WARRANTY; without even the implied warranty of
9427 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9428 # General Public License for more details.
9429 #
9430 # You should have received a copy of the GNU General Public License
9431 # along with this program; if not, write to the Free Software
9432 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9433 #
9434 # As a special exception to the GNU General Public License, if you
9435 # distribute this file as part of a program that contains a
9436 # configuration script generated by Autoconf, you may include it under
9437 # the same distribution terms that you use for the rest of that program.
9438
9439 # A sed program that does not truncate output.
9440 SED=$lt_SED
9441
9442 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9443 Xsed="$SED -e 1s/^X//"
9444
9445 # The HP-UX ksh and POSIX shell print the target directory to stdout
9446 # if CDPATH is set.
9447 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9448
9449 # The names of the tagged configurations supported by this script.
9450 available_tags=
9451
9452 # ### BEGIN LIBTOOL CONFIG
9453
9454 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9455
9456 # Shell to use when invoking shell scripts.
9457 SHELL=$lt_SHELL
9458
9459 # Whether or not to build shared libraries.
9460 build_libtool_libs=$enable_shared
9461
9462 # Whether or not to build static libraries.
9463 build_old_libs=$enable_static
9464
9465 # Whether or not to add -lc for building shared libraries.
9466 build_libtool_need_lc=$archive_cmds_need_lc
9467
9468 # Whether or not to disallow shared libs when runtime libs are static
9469 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9470
9471 # Whether or not to optimize for fast installation.
9472 fast_install=$enable_fast_install
9473
9474 # The host system.
9475 host_alias=$host_alias
9476 host=$host
9477 host_os=$host_os
9478
9479 # The build system.
9480 build_alias=$build_alias
9481 build=$build
9482 build_os=$build_os
9483
9484 # An echo program that does not interpret backslashes.
9485 echo=$lt_echo
9486
9487 # The archiver.
9488 AR=$lt_AR
9489 AR_FLAGS=$lt_AR_FLAGS
9490
9491 # A C compiler.
9492 LTCC=$lt_LTCC
9493
9494 # LTCC compiler flags.
9495 LTCFLAGS=$lt_LTCFLAGS
9496
9497 # A language-specific compiler.
9498 CC=$lt_compiler
9499
9500 # Is the compiler the GNU C compiler?
9501 with_gcc=$GCC
9502
9503 # An ERE matcher.
9504 EGREP=$lt_EGREP
9505
9506 # The linker used to build libraries.
9507 LD=$lt_LD
9508
9509 # Whether we need hard or soft links.
9510 LN_S=$lt_LN_S
9511
9512 # A BSD-compatible nm program.
9513 NM=$lt_NM
9514
9515 # A symbol stripping program
9516 STRIP=$lt_STRIP
9517
9518 # Used to examine libraries when file_magic_cmd begins "file"
9519 MAGIC_CMD=$MAGIC_CMD
9520
9521 # Used on cygwin: DLL creation program.
9522 DLLTOOL="$DLLTOOL"
9523
9524 # Used on cygwin: object dumper.
9525 OBJDUMP="$OBJDUMP"
9526
9527 # Used on cygwin: assembler.
9528 AS="$AS"
9529
9530 # The name of the directory that contains temporary libtool files.
9531 objdir=$objdir
9532
9533 # How to create reloadable object files.
9534 reload_flag=$lt_reload_flag
9535 reload_cmds=$lt_reload_cmds
9536
9537 # How to pass a linker flag through the compiler.
9538 wl=$lt_lt_prog_compiler_wl
9539
9540 # Object file suffix (normally "o").
9541 objext="$ac_objext"
9542
9543 # Old archive suffix (normally "a").
9544 libext="$libext"
9545
9546 # Shared library suffix (normally ".so").
9547 shrext_cmds='$shrext_cmds'
9548
9549 # Executable file suffix (normally "").
9550 exeext="$exeext"
9551
9552 # Additional compiler flags for building library objects.
9553 pic_flag=$lt_lt_prog_compiler_pic
9554 pic_mode=$pic_mode
9555
9556 # What is the maximum length of a command?
9557 max_cmd_len=$lt_cv_sys_max_cmd_len
9558
9559 # Does compiler simultaneously support -c and -o options?
9560 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9561
9562 # Must we lock files when doing compilation?
9563 need_locks=$lt_need_locks
9564
9565 # Do we need the lib prefix for modules?
9566 need_lib_prefix=$need_lib_prefix
9567
9568 # Do we need a version for libraries?
9569 need_version=$need_version
9570
9571 # Whether dlopen is supported.
9572 dlopen_support=$enable_dlopen
9573
9574 # Whether dlopen of programs is supported.
9575 dlopen_self=$enable_dlopen_self
9576
9577 # Whether dlopen of statically linked programs is supported.
9578 dlopen_self_static=$enable_dlopen_self_static
9579
9580 # Compiler flag to prevent dynamic linking.
9581 link_static_flag=$lt_lt_prog_compiler_static
9582
9583 # Compiler flag to turn off builtin functions.
9584 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9585
9586 # Compiler flag to allow reflexive dlopens.
9587 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9588
9589 # Compiler flag to generate shared objects directly from archives.
9590 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9591
9592 # Compiler flag to generate thread-safe objects.
9593 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9594
9595 # Library versioning type.
9596 version_type=$version_type
9597
9598 # Format of library name prefix.
9599 libname_spec=$lt_libname_spec
9600
9601 # List of archive names.  First name is the real one, the rest are links.
9602 # The last name is the one that the linker finds with -lNAME.
9603 library_names_spec=$lt_library_names_spec
9604
9605 # The coded name of the library, if different from the real name.
9606 soname_spec=$lt_soname_spec
9607
9608 # Commands used to build and install an old-style archive.
9609 RANLIB=$lt_RANLIB
9610 old_archive_cmds=$lt_old_archive_cmds
9611 old_postinstall_cmds=$lt_old_postinstall_cmds
9612 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9613
9614 # Create an old-style archive from a shared archive.
9615 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9616
9617 # Create a temporary old-style archive to link instead of a shared archive.
9618 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9619
9620 # Commands used to build and install a shared archive.
9621 archive_cmds=$lt_archive_cmds
9622 archive_expsym_cmds=$lt_archive_expsym_cmds
9623 postinstall_cmds=$lt_postinstall_cmds
9624 postuninstall_cmds=$lt_postuninstall_cmds
9625
9626 # Commands used to build a loadable module (assumed same as above if empty)
9627 module_cmds=$lt_module_cmds
9628 module_expsym_cmds=$lt_module_expsym_cmds
9629
9630 # Commands to strip libraries.
9631 old_striplib=$lt_old_striplib
9632 striplib=$lt_striplib
9633
9634 # Dependencies to place before the objects being linked to create a
9635 # shared library.
9636 predep_objects=$lt_predep_objects
9637
9638 # Dependencies to place after the objects being linked to create a
9639 # shared library.
9640 postdep_objects=$lt_postdep_objects
9641
9642 # Dependencies to place before the objects being linked to create a
9643 # shared library.
9644 predeps=$lt_predeps
9645
9646 # Dependencies to place after the objects being linked to create a
9647 # shared library.
9648 postdeps=$lt_postdeps
9649
9650 # The library search path used internally by the compiler when linking
9651 # a shared library.
9652 compiler_lib_search_path=$lt_compiler_lib_search_path
9653
9654 # Method to check whether dependent libraries are shared objects.
9655 deplibs_check_method=$lt_deplibs_check_method
9656
9657 # Command to use when deplibs_check_method == file_magic.
9658 file_magic_cmd=$lt_file_magic_cmd
9659
9660 # Flag that allows shared libraries with undefined symbols to be built.
9661 allow_undefined_flag=$lt_allow_undefined_flag
9662
9663 # Flag that forces no undefined symbols.
9664 no_undefined_flag=$lt_no_undefined_flag
9665
9666 # Commands used to finish a libtool library installation in a directory.
9667 finish_cmds=$lt_finish_cmds
9668
9669 # Same as above, but a single script fragment to be evaled but not shown.
9670 finish_eval=$lt_finish_eval
9671
9672 # Take the output of nm and produce a listing of raw symbols and C names.
9673 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9674
9675 # Transform the output of nm in a proper C declaration
9676 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9677
9678 # Transform the output of nm in a C name address pair
9679 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9680
9681 # This is the shared library runtime path variable.
9682 runpath_var=$runpath_var
9683
9684 # This is the shared library path variable.
9685 shlibpath_var=$shlibpath_var
9686
9687 # Is shlibpath searched before the hard-coded library search path?
9688 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9689
9690 # How to hardcode a shared library path into an executable.
9691 hardcode_action=$hardcode_action
9692
9693 # Whether we should hardcode library paths into libraries.
9694 hardcode_into_libs=$hardcode_into_libs
9695
9696 # Flag to hardcode \$libdir into a binary during linking.
9697 # This must work even if \$libdir does not exist.
9698 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9699
9700 # If ld is used when linking, flag to hardcode \$libdir into
9701 # a binary during linking. This must work even if \$libdir does
9702 # not exist.
9703 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9704
9705 # Whether we need a single -rpath flag with a separated argument.
9706 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9707
9708 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9709 # resulting binary.
9710 hardcode_direct=$hardcode_direct
9711
9712 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9713 # resulting binary.
9714 hardcode_minus_L=$hardcode_minus_L
9715
9716 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9717 # the resulting binary.
9718 hardcode_shlibpath_var=$hardcode_shlibpath_var
9719
9720 # Set to yes if building a shared library automatically hardcodes DIR into the library
9721 # and all subsequent libraries and executables linked against it.
9722 hardcode_automatic=$hardcode_automatic
9723
9724 # Variables whose values should be saved in libtool wrapper scripts and
9725 # restored at relink time.
9726 variables_saved_for_relink="$variables_saved_for_relink"
9727
9728 # Whether libtool must link a program against all its dependency libraries.
9729 link_all_deplibs=$link_all_deplibs
9730
9731 # Compile-time system search path for libraries
9732 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9733
9734 # Run-time system search path for libraries
9735 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9736
9737 # Fix the shell variable \$srcfile for the compiler.
9738 fix_srcfile_path="$fix_srcfile_path"
9739
9740 # Set to yes if exported symbols are required.
9741 always_export_symbols=$always_export_symbols
9742
9743 # The commands to list exported symbols.
9744 export_symbols_cmds=$lt_export_symbols_cmds
9745
9746 # The commands to extract the exported symbol list from a shared archive.
9747 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9748
9749 # Symbols that should not be listed in the preloaded symbols.
9750 exclude_expsyms=$lt_exclude_expsyms
9751
9752 # Symbols that must always be exported.
9753 include_expsyms=$lt_include_expsyms
9754
9755 # ### END LIBTOOL CONFIG
9756
9757 __EOF__
9758
9759
9760   case $host_os in
9761   aix3*)
9762     cat <<\EOF >> "$cfgfile"
9763
9764 # AIX sometimes has problems with the GCC collect2 program.  For some
9765 # reason, if we set the COLLECT_NAMES environment variable, the problems
9766 # vanish in a puff of smoke.
9767 if test "X${COLLECT_NAMES+set}" != Xset; then
9768   COLLECT_NAMES=
9769   export COLLECT_NAMES
9770 fi
9771 EOF
9772     ;;
9773   esac
9774
9775   # We use sed instead of cat because bash on DJGPP gets confused if
9776   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9777   # text mode, it properly converts lines to CR/LF.  This bash problem
9778   # is reportedly fixed, but why not run on old versions too?
9779   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9780
9781   mv -f "$cfgfile" "$ofile" || \
9782     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9783   chmod +x "$ofile"
9784
9785 else
9786   # If there is no Makefile yet, we rely on a make rule to execute
9787   # `config.status --recheck' to rerun these tests and create the
9788   # libtool script then.
9789   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9790   if test -f "$ltmain_in"; then
9791     test -f Makefile && make "$ltmain"
9792   fi
9793 fi
9794
9795
9796 ac_ext=c
9797 ac_cpp='$CPP $CPPFLAGS'
9798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9801
9802 CC="$lt_save_CC"
9803
9804
9805 # Check whether --with-tags or --without-tags was given.
9806 if test "${with_tags+set}" = set; then
9807   withval="$with_tags"
9808   tagnames="$withval"
9809 fi; 
9810
9811 if test -f "$ltmain" && test -n "$tagnames"; then
9812   if test ! -f "${ofile}"; then
9813     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9814 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9815   fi
9816
9817   if test -z "$LTCC"; then
9818     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9819     if test -z "$LTCC"; then
9820       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9821 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9822     else
9823       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9824 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9825     fi
9826   fi
9827   if test -z "$LTCFLAGS"; then
9828     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9829   fi
9830
9831   # Extract list of available tagged configurations in $ofile.
9832   # Note that this assumes the entire list is on one line.
9833   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9834
9835   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9836   for tagname in $tagnames; do
9837     IFS="$lt_save_ifs"
9838     # Check whether tagname contains only valid characters
9839     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9840     "") ;;
9841     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9842 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9843    { (exit 1); exit 1; }; }
9844         ;;
9845     esac
9846
9847     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9848     then
9849       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9850 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9851    { (exit 1); exit 1; }; }
9852     fi
9853
9854     # Update the list of available tags.
9855     if test -n "$tagname"; then
9856       echo appending configuration tag \"$tagname\" to $ofile
9857
9858       case $tagname in
9859       CXX)
9860         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9861             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9862             (test "X$CXX" != "Xg++"))) ; then
9863           ac_ext=cc
9864 ac_cpp='$CXXCPP $CPPFLAGS'
9865 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9866 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9867 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9868
9869
9870
9871
9872 archive_cmds_need_lc_CXX=no
9873 allow_undefined_flag_CXX=
9874 always_export_symbols_CXX=no
9875 archive_expsym_cmds_CXX=
9876 export_dynamic_flag_spec_CXX=
9877 hardcode_direct_CXX=no
9878 hardcode_libdir_flag_spec_CXX=
9879 hardcode_libdir_flag_spec_ld_CXX=
9880 hardcode_libdir_separator_CXX=
9881 hardcode_minus_L_CXX=no
9882 hardcode_shlibpath_var_CXX=unsupported
9883 hardcode_automatic_CXX=no
9884 module_cmds_CXX=
9885 module_expsym_cmds_CXX=
9886 link_all_deplibs_CXX=unknown
9887 old_archive_cmds_CXX=$old_archive_cmds
9888 no_undefined_flag_CXX=
9889 whole_archive_flag_spec_CXX=
9890 enable_shared_with_static_runtimes_CXX=no
9891
9892 # Dependencies to place before and after the object being linked:
9893 predep_objects_CXX=
9894 postdep_objects_CXX=
9895 predeps_CXX=
9896 postdeps_CXX=
9897 compiler_lib_search_path_CXX=
9898
9899 # Source file extension for C++ test sources.
9900 ac_ext=cpp
9901
9902 # Object file extension for compiled C++ test sources.
9903 objext=o
9904 objext_CXX=$objext
9905
9906 # Code to be used in simple compile tests
9907 lt_simple_compile_test_code="int some_variable = 0;\n"
9908
9909 # Code to be used in simple link tests
9910 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
9911
9912 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9913
9914 # If no C compiler was specified, use CC.
9915 LTCC=${LTCC-"$CC"}
9916
9917 # If no C compiler flags were specified, use CFLAGS.
9918 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9919
9920 # Allow CC to be a program name with arguments.
9921 compiler=$CC
9922
9923
9924 # save warnings/boilerplate of simple test code
9925 ac_outfile=conftest.$ac_objext
9926 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9927 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9928 _lt_compiler_boilerplate=`cat conftest.err`
9929 $rm conftest*
9930
9931 ac_outfile=conftest.$ac_objext
9932 printf "$lt_simple_link_test_code" >conftest.$ac_ext
9933 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9934 _lt_linker_boilerplate=`cat conftest.err`
9935 $rm conftest*
9936
9937
9938 # Allow CC to be a program name with arguments.
9939 lt_save_CC=$CC
9940 lt_save_LD=$LD
9941 lt_save_GCC=$GCC
9942 GCC=$GXX
9943 lt_save_with_gnu_ld=$with_gnu_ld
9944 lt_save_path_LD=$lt_cv_path_LD
9945 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9946   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9947 else
9948   $as_unset lt_cv_prog_gnu_ld
9949 fi
9950 if test -n "${lt_cv_path_LDCXX+set}"; then
9951   lt_cv_path_LD=$lt_cv_path_LDCXX
9952 else
9953   $as_unset lt_cv_path_LD
9954 fi
9955 test -z "${LDCXX+set}" || LD=$LDCXX
9956 CC=${CXX-"c++"}
9957 compiler=$CC
9958 compiler_CXX=$CC
9959 for cc_temp in $compiler""; do
9960   case $cc_temp in
9961     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9962     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9963     \-*) ;;
9964     *) break;;
9965   esac
9966 done
9967 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9968
9969
9970 # We don't want -fno-exception wen compiling C++ code, so set the
9971 # no_builtin_flag separately
9972 if test "$GXX" = yes; then
9973   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9974 else
9975   lt_prog_compiler_no_builtin_flag_CXX=
9976 fi
9977
9978 if test "$GXX" = yes; then
9979   # Set up default GNU C++ configuration
9980
9981   
9982 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9983 if test "${with_gnu_ld+set}" = set; then
9984   withval="$with_gnu_ld"
9985   test "$withval" = no || with_gnu_ld=yes
9986 else
9987   with_gnu_ld=no
9988 fi; 
9989 ac_prog=ld
9990 if test "$GCC" = yes; then
9991   # Check if gcc -print-prog-name=ld gives a path.
9992   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9993 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9994   case $host in
9995   *-*-mingw*)
9996     # gcc leaves a trailing carriage return which upsets mingw
9997     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9998   *)
9999     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10000   esac
10001   case $ac_prog in
10002     # Accept absolute paths.
10003     [\\/]* | ?:[\\/]*)
10004       re_direlt='/[^/][^/]*/\.\./'
10005       # Canonicalize the pathname of ld
10006       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10007       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10008         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10009       done
10010       test -z "$LD" && LD="$ac_prog"
10011       ;;
10012   "")
10013     # If it fails, then pretend we aren't using GCC.
10014     ac_prog=ld
10015     ;;
10016   *)
10017     # If it is relative, then search for the first ld in PATH.
10018     with_gnu_ld=unknown
10019     ;;
10020   esac
10021 elif test "$with_gnu_ld" = yes; then
10022   echo "$as_me:$LINENO: checking for GNU ld" >&5
10023 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10024 else
10025   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10026 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10027 fi
10028 if test "${lt_cv_path_LD+set}" = set; then
10029   echo $ECHO_N "(cached) $ECHO_C" >&6
10030 else
10031   if test -z "$LD"; then
10032   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10033   for ac_dir in $PATH; do
10034     IFS="$lt_save_ifs"
10035     test -z "$ac_dir" && ac_dir=.
10036     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10037       lt_cv_path_LD="$ac_dir/$ac_prog"
10038       # Check to see if the program is GNU ld.  I'd rather use --version,
10039       # but apparently some variants of GNU ld only accept -v.
10040       # Break only if it was the GNU/non-GNU ld that we prefer.
10041       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10042       *GNU* | *'with BFD'*)
10043         test "$with_gnu_ld" != no && break
10044         ;;
10045       *)
10046         test "$with_gnu_ld" != yes && break
10047         ;;
10048       esac
10049     fi
10050   done
10051   IFS="$lt_save_ifs"
10052 else
10053   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10054 fi
10055 fi
10056
10057 LD="$lt_cv_path_LD"
10058 if test -n "$LD"; then
10059   echo "$as_me:$LINENO: result: $LD" >&5
10060 echo "${ECHO_T}$LD" >&6
10061 else
10062   echo "$as_me:$LINENO: result: no" >&5
10063 echo "${ECHO_T}no" >&6
10064 fi
10065 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10066 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10067    { (exit 1); exit 1; }; }
10068 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10069 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10070 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10071   echo $ECHO_N "(cached) $ECHO_C" >&6
10072 else
10073   # I'd rather use --version here, but apparently some GNU lds only accept -v.
10074 case `$LD -v 2>&1 </dev/null` in
10075 *GNU* | *'with BFD'*)
10076   lt_cv_prog_gnu_ld=yes
10077   ;;
10078 *)
10079   lt_cv_prog_gnu_ld=no
10080   ;;
10081 esac
10082 fi
10083 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10084 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10085 with_gnu_ld=$lt_cv_prog_gnu_ld
10086
10087
10088
10089   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10090   # archiving commands below assume that GNU ld is being used.
10091   if test "$with_gnu_ld" = yes; then
10092     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10093     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'
10094
10095     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10096     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10097
10098     # If archive_cmds runs LD, not CC, wlarc should be empty
10099     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10100     #     investigate it a little bit more. (MM)
10101     wlarc='${wl}'
10102
10103     # ancient GNU ld didn't support --whole-archive et. al.
10104     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10105         grep 'no-whole-archive' > /dev/null; then
10106       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10107     else
10108       whole_archive_flag_spec_CXX=
10109     fi
10110   else
10111     with_gnu_ld=no
10112     wlarc=
10113
10114     # A generic and very simple default shared library creation
10115     # command for GNU C++ for the case where it uses the native
10116     # linker, instead of GNU ld.  If possible, this setting should
10117     # overridden to take advantage of the native linker features on
10118     # the platform it is being used on.
10119     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10120   fi
10121
10122   # Commands to make compiler produce verbose output that lists
10123   # what "hidden" libraries, object files and flags are used when
10124   # linking a shared library.
10125   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10126
10127 else
10128   GXX=no
10129   with_gnu_ld=no
10130   wlarc=
10131 fi
10132
10133 # PORTME: fill in a description of your system's C++ link characteristics
10134 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10135 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10136 ld_shlibs_CXX=yes
10137 case $host_os in
10138   aix3*)
10139     # FIXME: insert proper C++ library support
10140     ld_shlibs_CXX=no
10141     ;;
10142   aix4* | aix5*)
10143     if test "$host_cpu" = ia64; then
10144       # On IA64, the linker does run time linking by default, so we don't
10145       # have to do anything special.
10146       aix_use_runtimelinking=no
10147       exp_sym_flag='-Bexport'
10148       no_entry_flag=""
10149     else
10150       aix_use_runtimelinking=no
10151
10152       # Test if we are trying to use run time linking or normal
10153       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10154       # need to do runtime linking.
10155       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10156         for ld_flag in $LDFLAGS; do
10157           case $ld_flag in
10158           *-brtl*)
10159             aix_use_runtimelinking=yes
10160             break
10161             ;;
10162           esac
10163         done
10164         ;;
10165       esac
10166
10167       exp_sym_flag='-bexport'
10168       no_entry_flag='-bnoentry'
10169     fi
10170
10171     # When large executables or shared objects are built, AIX ld can
10172     # have problems creating the table of contents.  If linking a library
10173     # or program results in "error TOC overflow" add -mminimal-toc to
10174     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10175     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10176
10177     archive_cmds_CXX=''
10178     hardcode_direct_CXX=yes
10179     hardcode_libdir_separator_CXX=':'
10180     link_all_deplibs_CXX=yes
10181
10182     if test "$GXX" = yes; then
10183       case $host_os in aix4.[012]|aix4.[012].*)
10184       # We only want to do this on AIX 4.2 and lower, the check
10185       # below for broken collect2 doesn't work under 4.3+
10186         collect2name=`${CC} -print-prog-name=collect2`
10187         if test -f "$collect2name" && \
10188            strings "$collect2name" | grep resolve_lib_name >/dev/null
10189         then
10190           # We have reworked collect2
10191           hardcode_direct_CXX=yes
10192         else
10193           # We have old collect2
10194           hardcode_direct_CXX=unsupported
10195           # It fails to find uninstalled libraries when the uninstalled
10196           # path is not listed in the libpath.  Setting hardcode_minus_L
10197           # to unsupported forces relinking
10198           hardcode_minus_L_CXX=yes
10199           hardcode_libdir_flag_spec_CXX='-L$libdir'
10200           hardcode_libdir_separator_CXX=
10201         fi
10202         ;;
10203       esac
10204       shared_flag='-shared'
10205       if test "$aix_use_runtimelinking" = yes; then
10206         shared_flag="$shared_flag "'${wl}-G'
10207       fi
10208     else
10209       # not using gcc
10210       if test "$host_cpu" = ia64; then
10211         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10212         # chokes on -Wl,-G. The following line is correct:
10213         shared_flag='-G'
10214       else
10215         if test "$aix_use_runtimelinking" = yes; then
10216           shared_flag='${wl}-G'
10217         else
10218           shared_flag='${wl}-bM:SRE'
10219         fi
10220       fi
10221     fi
10222
10223     # It seems that -bexpall does not export symbols beginning with
10224     # underscore (_), so it is better to generate a list of symbols to export.
10225     always_export_symbols_CXX=yes
10226     if test "$aix_use_runtimelinking" = yes; then
10227       # Warning - without using the other runtime loading flags (-brtl),
10228       # -berok will link without error, but may produce a broken library.
10229       allow_undefined_flag_CXX='-berok'
10230       # Determine the default libpath from the value encoded in an empty executable.
10231       cat >conftest.$ac_ext <<_ACEOF
10232 /* confdefs.h.  */
10233 _ACEOF
10234 cat confdefs.h >>conftest.$ac_ext
10235 cat >>conftest.$ac_ext <<_ACEOF
10236 /* end confdefs.h.  */
10237
10238 int
10239 main ()
10240 {
10241
10242   ;
10243   return 0;
10244 }
10245 _ACEOF
10246 rm -f conftest.$ac_objext conftest$ac_exeext
10247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10248   (eval $ac_link) 2>conftest.er1
10249   ac_status=$?
10250   grep -v '^ *+' conftest.er1 >conftest.err
10251   rm -f conftest.er1
10252   cat conftest.err >&5
10253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254   (exit $ac_status); } &&
10255          { ac_try='test -z "$ac_cxx_werror_flag"
10256                          || test ! -s conftest.err'
10257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10258   (eval $ac_try) 2>&5
10259   ac_status=$?
10260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261   (exit $ac_status); }; } &&
10262          { ac_try='test -s conftest$ac_exeext'
10263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10264   (eval $ac_try) 2>&5
10265   ac_status=$?
10266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10267   (exit $ac_status); }; }; then
10268   
10269 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10270 }'`
10271 # Check for a 64-bit object if we didn't find anything.
10272 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; }
10273 }'`; fi
10274 else
10275   echo "$as_me: failed program was:" >&5
10276 sed 's/^/| /' conftest.$ac_ext >&5
10277
10278 fi
10279 rm -f conftest.err conftest.$ac_objext \
10280       conftest$ac_exeext conftest.$ac_ext
10281 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10282
10283       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10284
10285       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"
10286      else
10287       if test "$host_cpu" = ia64; then
10288         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10289         allow_undefined_flag_CXX="-z nodefs"
10290         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"
10291       else
10292         # Determine the default libpath from the value encoded in an empty executable.
10293         cat >conftest.$ac_ext <<_ACEOF
10294 /* confdefs.h.  */
10295 _ACEOF
10296 cat confdefs.h >>conftest.$ac_ext
10297 cat >>conftest.$ac_ext <<_ACEOF
10298 /* end confdefs.h.  */
10299
10300 int
10301 main ()
10302 {
10303
10304   ;
10305   return 0;
10306 }
10307 _ACEOF
10308 rm -f conftest.$ac_objext conftest$ac_exeext
10309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10310   (eval $ac_link) 2>conftest.er1
10311   ac_status=$?
10312   grep -v '^ *+' conftest.er1 >conftest.err
10313   rm -f conftest.er1
10314   cat conftest.err >&5
10315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316   (exit $ac_status); } &&
10317          { ac_try='test -z "$ac_cxx_werror_flag"
10318                          || test ! -s conftest.err'
10319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10320   (eval $ac_try) 2>&5
10321   ac_status=$?
10322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323   (exit $ac_status); }; } &&
10324          { ac_try='test -s conftest$ac_exeext'
10325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10326   (eval $ac_try) 2>&5
10327   ac_status=$?
10328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10329   (exit $ac_status); }; }; then
10330   
10331 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10332 }'`
10333 # Check for a 64-bit object if we didn't find anything.
10334 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; }
10335 }'`; fi
10336 else
10337   echo "$as_me: failed program was:" >&5
10338 sed 's/^/| /' conftest.$ac_ext >&5
10339
10340 fi
10341 rm -f conftest.err conftest.$ac_objext \
10342       conftest$ac_exeext conftest.$ac_ext
10343 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10344
10345         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10346         # Warning - without using the other run time loading flags,
10347         # -berok will link without error, but may produce a broken library.
10348         no_undefined_flag_CXX=' ${wl}-bernotok'
10349         allow_undefined_flag_CXX=' ${wl}-berok'
10350         # Exported symbols can be pulled into shared objects from archives
10351         whole_archive_flag_spec_CXX='$convenience'
10352         archive_cmds_need_lc_CXX=yes
10353         # This is similar to how AIX traditionally builds its shared libraries.
10354         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'
10355       fi
10356     fi
10357     ;;
10358
10359   beos*)
10360     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10361       allow_undefined_flag_CXX=unsupported
10362       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10363       # support --undefined.  This deserves some investigation.  FIXME
10364       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10365     else
10366       ld_shlibs_CXX=no
10367     fi
10368     ;;
10369
10370   chorus*)
10371     case $cc_basename in
10372       *)
10373         # FIXME: insert proper C++ library support
10374         ld_shlibs_CXX=no
10375         ;;
10376     esac
10377     ;;
10378
10379   cygwin* | mingw* | pw32*)
10380     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10381     # as there is no search path for DLLs.
10382     hardcode_libdir_flag_spec_CXX='-L$libdir'
10383     allow_undefined_flag_CXX=unsupported
10384     always_export_symbols_CXX=no
10385     enable_shared_with_static_runtimes_CXX=yes
10386
10387     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10388       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'
10389       # If the export-symbols file already is a .def file (1st line
10390       # is EXPORTS), use it as is; otherwise, prepend...
10391       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10392         cp $export_symbols $output_objdir/$soname.def;
10393       else
10394         echo EXPORTS > $output_objdir/$soname.def;
10395         cat $export_symbols >> $output_objdir/$soname.def;
10396       fi~
10397       $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'
10398     else
10399       ld_shlibs_CXX=no
10400     fi
10401   ;;
10402       darwin* | rhapsody*)
10403         case $host_os in
10404         rhapsody* | darwin1.[012])
10405          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10406          ;;
10407        *) # Darwin 1.3 on
10408          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10409            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10410          else
10411            case ${MACOSX_DEPLOYMENT_TARGET} in
10412              10.[012])
10413                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10414                ;;
10415              10.*)
10416                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10417                ;;
10418            esac
10419          fi
10420          ;;
10421         esac
10422       archive_cmds_need_lc_CXX=no
10423       hardcode_direct_CXX=no
10424       hardcode_automatic_CXX=yes
10425       hardcode_shlibpath_var_CXX=unsupported
10426       whole_archive_flag_spec_CXX=''
10427       link_all_deplibs_CXX=yes
10428
10429     if test "$GXX" = yes ; then
10430       lt_int_apple_cc_single_mod=no
10431       output_verbose_link_cmd='echo'
10432       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10433        lt_int_apple_cc_single_mod=yes
10434       fi
10435       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10436        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10437       else
10438           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'
10439         fi
10440         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10441         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10442           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10443             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}'
10444           else
10445             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}'
10446           fi
10447             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}'
10448       else
10449       case $cc_basename in
10450         xlc*)
10451          output_verbose_link_cmd='echo'
10452           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'
10453           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10454           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10455           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}'
10456           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}'
10457           ;;
10458        *)
10459          ld_shlibs_CXX=no
10460           ;;
10461       esac
10462       fi
10463         ;;
10464
10465   dgux*)
10466     case $cc_basename in
10467       ec++*)
10468         # FIXME: insert proper C++ library support
10469         ld_shlibs_CXX=no
10470         ;;
10471       ghcx*)
10472         # Green Hills C++ Compiler
10473         # FIXME: insert proper C++ library support
10474         ld_shlibs_CXX=no
10475         ;;
10476       *)
10477         # FIXME: insert proper C++ library support
10478         ld_shlibs_CXX=no
10479         ;;
10480     esac
10481     ;;
10482   freebsd[12]*)
10483     # C++ shared libraries reported to be fairly broken before switch to ELF
10484     ld_shlibs_CXX=no
10485     ;;
10486   freebsd-elf*)
10487     archive_cmds_need_lc_CXX=no
10488     ;;
10489   freebsd* | kfreebsd*-gnu | dragonfly*)
10490     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10491     # conventions
10492     ld_shlibs_CXX=yes
10493     ;;
10494   gnu*)
10495     ;;
10496   hpux9*)
10497     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10498     hardcode_libdir_separator_CXX=:
10499     export_dynamic_flag_spec_CXX='${wl}-E'
10500     hardcode_direct_CXX=yes
10501     hardcode_minus_L_CXX=yes # Not in the search PATH,
10502                                 # but as the default
10503                                 # location of the library.
10504
10505     case $cc_basename in
10506     CC*)
10507       # FIXME: insert proper C++ library support
10508       ld_shlibs_CXX=no
10509       ;;
10510     aCC*)
10511       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'
10512       # Commands to make compiler produce verbose output that lists
10513       # what "hidden" libraries, object files and flags are used when
10514       # linking a shared library.
10515       #
10516       # There doesn't appear to be a way to prevent this compiler from
10517       # explicitly linking system object files so we need to strip them
10518       # from the output so that they don't get included in the library
10519       # dependencies.
10520       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'
10521       ;;
10522     *)
10523       if test "$GXX" = yes; then
10524         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'
10525       else
10526         # FIXME: insert proper C++ library support
10527         ld_shlibs_CXX=no
10528       fi
10529       ;;
10530     esac
10531     ;;
10532   hpux10*|hpux11*)
10533     if test $with_gnu_ld = no; then
10534       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10535       hardcode_libdir_separator_CXX=:
10536
10537       case $host_cpu in
10538       hppa*64*|ia64*)
10539         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10540         ;;
10541       *)
10542         export_dynamic_flag_spec_CXX='${wl}-E'
10543         ;;
10544       esac
10545     fi
10546     case $host_cpu in
10547     hppa*64*|ia64*)
10548       hardcode_direct_CXX=no
10549       hardcode_shlibpath_var_CXX=no
10550       ;;
10551     *)
10552       hardcode_direct_CXX=yes
10553       hardcode_minus_L_CXX=yes # Not in the search PATH,
10554                                               # but as the default
10555                                               # location of the library.
10556       ;;
10557     esac
10558
10559     case $cc_basename in
10560       CC*)
10561         # FIXME: insert proper C++ library support
10562         ld_shlibs_CXX=no
10563         ;;
10564       aCC*)
10565         case $host_cpu in
10566         hppa*64*)
10567           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10568           ;;
10569         ia64*)
10570           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10571           ;;
10572         *)
10573           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10574           ;;
10575         esac
10576         # Commands to make compiler produce verbose output that lists
10577         # what "hidden" libraries, object files and flags are used when
10578         # linking a shared library.
10579         #
10580         # There doesn't appear to be a way to prevent this compiler from
10581         # explicitly linking system object files so we need to strip them
10582         # from the output so that they don't get included in the library
10583         # dependencies.
10584         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'
10585         ;;
10586       *)
10587         if test "$GXX" = yes; then
10588           if test $with_gnu_ld = no; then
10589             case $host_cpu in
10590             hppa*64*)
10591               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10592               ;;
10593             ia64*)
10594               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10595               ;;
10596             *)
10597               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'
10598               ;;
10599             esac
10600           fi
10601         else
10602           # FIXME: insert proper C++ library support
10603           ld_shlibs_CXX=no
10604         fi
10605         ;;
10606     esac
10607     ;;
10608   interix3*)
10609     hardcode_direct_CXX=no
10610     hardcode_shlibpath_var_CXX=no
10611     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10612     export_dynamic_flag_spec_CXX='${wl}-E'
10613     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10614     # Instead, shared libraries are loaded at an image base (0x10000000 by
10615     # default) and relocated if they conflict, which is a slow very memory
10616     # consuming and fragmenting process.  To avoid this, we pick a random,
10617     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10618     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10619     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'
10620     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'
10621     ;;
10622   irix5* | irix6*)
10623     case $cc_basename in
10624       CC*)
10625         # SGI C++
10626         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'
10627
10628         # Archives containing C++ object files must be created using
10629         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10630         # necessary to make sure instantiated templates are included
10631         # in the archive.
10632         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10633         ;;
10634       *)
10635         if test "$GXX" = yes; then
10636           if test "$with_gnu_ld" = no; then
10637             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'
10638           else
10639             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'
10640           fi
10641         fi
10642         link_all_deplibs_CXX=yes
10643         ;;
10644     esac
10645     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10646     hardcode_libdir_separator_CXX=:
10647     ;;
10648   linux*)
10649     case $cc_basename in
10650       KCC*)
10651         # Kuck and Associates, Inc. (KAI) C++ Compiler
10652
10653         # KCC will only create a shared library if the output file
10654         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10655         # to its proper name (with version) after linking.
10656         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'
10657         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'
10658         # Commands to make compiler produce verbose output that lists
10659         # what "hidden" libraries, object files and flags are used when
10660         # linking a shared library.
10661         #
10662         # There doesn't appear to be a way to prevent this compiler from
10663         # explicitly linking system object files so we need to strip them
10664         # from the output so that they don't get included in the library
10665         # dependencies.
10666         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'
10667
10668         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10669         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10670
10671         # Archives containing C++ object files must be created using
10672         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10673         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10674         ;;
10675       icpc*)
10676         # Intel C++
10677         with_gnu_ld=yes
10678         # version 8.0 and above of icpc choke on multiply defined symbols
10679         # if we add $predep_objects and $postdep_objects, however 7.1 and
10680         # earlier do not add the objects themselves.
10681         case `$CC -V 2>&1` in
10682         *"Version 7."*)
10683           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10684           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'
10685           ;;
10686         *)  # Version 8.0 or newer
10687           tmp_idyn=
10688           case $host_cpu in
10689             ia64*) tmp_idyn=' -i_dynamic';;
10690           esac
10691           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10692           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'
10693           ;;
10694         esac
10695         archive_cmds_need_lc_CXX=no
10696         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10697         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10698         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10699         ;;
10700       pgCC*)
10701         # Portland Group C++ compiler
10702         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10703         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'
10704
10705         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10706         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10707         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'
10708         ;;
10709       cxx*)
10710         # Compaq C++
10711         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10712         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'
10713
10714         runpath_var=LD_RUN_PATH
10715         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10716         hardcode_libdir_separator_CXX=:
10717
10718         # Commands to make compiler produce verbose output that lists
10719         # what "hidden" libraries, object files and flags are used when
10720         # linking a shared library.
10721         #
10722         # There doesn't appear to be a way to prevent this compiler from
10723         # explicitly linking system object files so we need to strip them
10724         # from the output so that they don't get included in the library
10725         # dependencies.
10726         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'
10727         ;;
10728     esac
10729     ;;
10730   lynxos*)
10731     # FIXME: insert proper C++ library support
10732     ld_shlibs_CXX=no
10733     ;;
10734   m88k*)
10735     # FIXME: insert proper C++ library support
10736     ld_shlibs_CXX=no
10737     ;;
10738   mvs*)
10739     case $cc_basename in
10740       cxx*)
10741         # FIXME: insert proper C++ library support
10742         ld_shlibs_CXX=no
10743         ;;
10744       *)
10745         # FIXME: insert proper C++ library support
10746         ld_shlibs_CXX=no
10747         ;;
10748     esac
10749     ;;
10750   netbsd*)
10751     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10752       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10753       wlarc=
10754       hardcode_libdir_flag_spec_CXX='-R$libdir'
10755       hardcode_direct_CXX=yes
10756       hardcode_shlibpath_var_CXX=no
10757     fi
10758     # Workaround some broken pre-1.5 toolchains
10759     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10760     ;;
10761   openbsd2*)
10762     # C++ shared libraries are fairly broken
10763     ld_shlibs_CXX=no
10764     ;;
10765   openbsd*)
10766     hardcode_direct_CXX=yes
10767     hardcode_shlibpath_var_CXX=no
10768     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10769     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10770     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10771       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10772       export_dynamic_flag_spec_CXX='${wl}-E'
10773       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10774     fi
10775     output_verbose_link_cmd='echo'
10776     ;;
10777   osf3*)
10778     case $cc_basename in
10779       KCC*)
10780         # Kuck and Associates, Inc. (KAI) C++ Compiler
10781
10782         # KCC will only create a shared library if the output file
10783         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10784         # to its proper name (with version) after linking.
10785         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'
10786
10787         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10788         hardcode_libdir_separator_CXX=:
10789
10790         # Archives containing C++ object files must be created using
10791         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10792         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10793
10794         ;;
10795       RCC*)
10796         # Rational C++ 2.4.1
10797         # FIXME: insert proper C++ library support
10798         ld_shlibs_CXX=no
10799         ;;
10800       cxx*)
10801         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10802         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'
10803
10804         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10805         hardcode_libdir_separator_CXX=:
10806
10807         # Commands to make compiler produce verbose output that lists
10808         # what "hidden" libraries, object files and flags are used when
10809         # linking a shared library.
10810         #
10811         # There doesn't appear to be a way to prevent this compiler from
10812         # explicitly linking system object files so we need to strip them
10813         # from the output so that they don't get included in the library
10814         # dependencies.
10815         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'
10816         ;;
10817       *)
10818         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10819           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10820           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'
10821
10822           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10823           hardcode_libdir_separator_CXX=:
10824
10825           # Commands to make compiler produce verbose output that lists
10826           # what "hidden" libraries, object files and flags are used when
10827           # linking a shared library.
10828           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10829
10830         else
10831           # FIXME: insert proper C++ library support
10832           ld_shlibs_CXX=no
10833         fi
10834         ;;
10835     esac
10836     ;;
10837   osf4* | osf5*)
10838     case $cc_basename in
10839       KCC*)
10840         # Kuck and Associates, Inc. (KAI) C++ Compiler
10841
10842         # KCC will only create a shared library if the output file
10843         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10844         # to its proper name (with version) after linking.
10845         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'
10846
10847         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10848         hardcode_libdir_separator_CXX=:
10849
10850         # Archives containing C++ object files must be created using
10851         # the KAI C++ compiler.
10852         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10853         ;;
10854       RCC*)
10855         # Rational C++ 2.4.1
10856         # FIXME: insert proper C++ library support
10857         ld_shlibs_CXX=no
10858         ;;
10859       cxx*)
10860         allow_undefined_flag_CXX=' -expect_unresolved \*'
10861         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'
10862         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10863           echo "-hidden">> $lib.exp~
10864           $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~
10865           $rm $lib.exp'
10866
10867         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10868         hardcode_libdir_separator_CXX=:
10869
10870         # Commands to make compiler produce verbose output that lists
10871         # what "hidden" libraries, object files and flags are used when
10872         # linking a shared library.
10873         #
10874         # There doesn't appear to be a way to prevent this compiler from
10875         # explicitly linking system object files so we need to strip them
10876         # from the output so that they don't get included in the library
10877         # dependencies.
10878         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'
10879         ;;
10880       *)
10881         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10882           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10883          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'
10884
10885           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10886           hardcode_libdir_separator_CXX=:
10887
10888           # Commands to make compiler produce verbose output that lists
10889           # what "hidden" libraries, object files and flags are used when
10890           # linking a shared library.
10891           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10892
10893         else
10894           # FIXME: insert proper C++ library support
10895           ld_shlibs_CXX=no
10896         fi
10897         ;;
10898     esac
10899     ;;
10900   psos*)
10901     # FIXME: insert proper C++ library support
10902     ld_shlibs_CXX=no
10903     ;;
10904   sunos4*)
10905     case $cc_basename in
10906       CC*)
10907         # Sun C++ 4.x
10908         # FIXME: insert proper C++ library support
10909         ld_shlibs_CXX=no
10910         ;;
10911       lcc*)
10912         # Lucid
10913         # FIXME: insert proper C++ library support
10914         ld_shlibs_CXX=no
10915         ;;
10916       *)
10917         # FIXME: insert proper C++ library support
10918         ld_shlibs_CXX=no
10919         ;;
10920     esac
10921     ;;
10922   solaris*)
10923     case $cc_basename in
10924       CC*)
10925         # Sun C++ 4.2, 5.x and Centerline C++
10926         archive_cmds_need_lc_CXX=yes
10927         no_undefined_flag_CXX=' -zdefs'
10928         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10929         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10930         $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'
10931
10932         hardcode_libdir_flag_spec_CXX='-R$libdir'
10933         hardcode_shlibpath_var_CXX=no
10934         case $host_os in
10935           solaris2.[0-5] | solaris2.[0-5].*) ;;
10936           *)
10937             # The C++ compiler is used as linker so we must use $wl
10938             # flag to pass the commands to the underlying system
10939             # linker. We must also pass each convience library through
10940             # to the system linker between allextract/defaultextract.
10941             # The C++ compiler will combine linker options so we
10942             # cannot just pass the convience library names through
10943             # without $wl.
10944             # Supported since Solaris 2.6 (maybe 2.5.1?)
10945             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'
10946             ;;
10947         esac
10948         link_all_deplibs_CXX=yes
10949
10950         output_verbose_link_cmd='echo'
10951
10952         # Archives containing C++ object files must be created using
10953         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10954         # necessary to make sure instantiated templates are included
10955         # in the archive.
10956         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10957         ;;
10958       gcx*)
10959         # Green Hills C++ Compiler
10960         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10961
10962         # The C++ compiler must be used to create the archive.
10963         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10964         ;;
10965       *)
10966         # GNU C++ compiler with Solaris linker
10967         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10968           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10969           if $CC --version | grep -v '^2\.7' > /dev/null; then
10970             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10971             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10972                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10973
10974             # Commands to make compiler produce verbose output that lists
10975             # what "hidden" libraries, object files and flags are used when
10976             # linking a shared library.
10977             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10978           else
10979             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10980             # platform.
10981             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10982             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10983                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10984
10985             # Commands to make compiler produce verbose output that lists
10986             # what "hidden" libraries, object files and flags are used when
10987             # linking a shared library.
10988             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10989           fi
10990
10991           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10992         fi
10993         ;;
10994     esac
10995     ;;
10996   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10997     no_undefined_flag_CXX='${wl}-z,text'
10998     archive_cmds_need_lc_CXX=no
10999     hardcode_shlibpath_var_CXX=no
11000     runpath_var='LD_RUN_PATH'
11001
11002     case $cc_basename in
11003       CC*)
11004         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11005         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11006         ;;
11007       *)
11008         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11009         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11010         ;;
11011     esac
11012     ;;
11013   sysv5* | sco3.2v5* | sco5v6*)
11014     # Note: We can NOT use -z defs as we might desire, because we do not
11015     # link with -lc, and that would cause any symbols used from libc to
11016     # always be unresolved, which means just about no library would
11017     # ever link correctly.  If we're not using GNU ld we use -z text
11018     # though, which does catch some bad symbols but isn't as heavy-handed
11019     # as -z defs.
11020     # For security reasons, it is highly recommended that you always
11021     # use absolute paths for naming shared libraries, and exclude the
11022     # DT_RUNPATH tag from executables and libraries.  But doing so
11023     # requires that you compile everything twice, which is a pain.
11024     # So that behaviour is only enabled if SCOABSPATH is set to a
11025     # non-empty value in the environment.  Most likely only useful for
11026     # creating official distributions of packages.
11027     # This is a hack until libtool officially supports absolute path
11028     # names for shared libraries.
11029     no_undefined_flag_CXX='${wl}-z,text'
11030     allow_undefined_flag_CXX='${wl}-z,nodefs'
11031     archive_cmds_need_lc_CXX=no
11032     hardcode_shlibpath_var_CXX=no
11033     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11034     hardcode_libdir_separator_CXX=':'
11035     link_all_deplibs_CXX=yes
11036     export_dynamic_flag_spec_CXX='${wl}-Bexport'
11037     runpath_var='LD_RUN_PATH'
11038
11039     case $cc_basename in
11040       CC*)
11041         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11042         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11043         ;;
11044       *)
11045         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11046         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11047         ;;
11048     esac
11049     ;;
11050   tandem*)
11051     case $cc_basename in
11052       NCC*)
11053         # NonStop-UX NCC 3.20
11054         # FIXME: insert proper C++ library support
11055         ld_shlibs_CXX=no
11056         ;;
11057       *)
11058         # FIXME: insert proper C++ library support
11059         ld_shlibs_CXX=no
11060         ;;
11061     esac
11062     ;;
11063   vxworks*)
11064     # FIXME: insert proper C++ library support
11065     ld_shlibs_CXX=no
11066     ;;
11067   *)
11068     # FIXME: insert proper C++ library support
11069     ld_shlibs_CXX=no
11070     ;;
11071 esac
11072 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11073 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11074 test "$ld_shlibs_CXX" = no && can_build_shared=no
11075
11076 GCC_CXX="$GXX"
11077 LD_CXX="$LD"
11078
11079
11080 cat > conftest.$ac_ext <<EOF
11081 class Foo
11082 {
11083 public:
11084   Foo (void) { a = 0; }
11085 private:
11086   int a;
11087 };
11088 EOF
11089
11090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11091   (eval $ac_compile) 2>&5
11092   ac_status=$?
11093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094   (exit $ac_status); }; then
11095   # Parse the compiler output and extract the necessary
11096   # objects, libraries and library flags.
11097
11098   # Sentinel used to keep track of whether or not we are before
11099   # the conftest object file.
11100   pre_test_object_deps_done=no
11101
11102   # The `*' in the case matches for architectures that use `case' in
11103   # $output_verbose_cmd can trigger glob expansion during the loop
11104   # eval without this substitution.
11105   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11106
11107   for p in `eval $output_verbose_link_cmd`; do
11108     case $p in
11109
11110     -L* | -R* | -l*)
11111        # Some compilers place space between "-{L,R}" and the path.
11112        # Remove the space.
11113        if test $p = "-L" \
11114           || test $p = "-R"; then
11115          prev=$p
11116          continue
11117        else
11118          prev=
11119        fi
11120
11121        if test "$pre_test_object_deps_done" = no; then
11122          case $p in
11123          -L* | -R*)
11124            # Internal compiler library paths should come after those
11125            # provided the user.  The postdeps already come after the
11126            # user supplied libs so there is no need to process them.
11127            if test -z "$compiler_lib_search_path_CXX"; then
11128              compiler_lib_search_path_CXX="${prev}${p}"
11129            else
11130              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11131            fi
11132            ;;
11133          # The "-l" case would never come before the object being
11134          # linked, so don't bother handling this case.
11135          esac
11136        else
11137          if test -z "$postdeps_CXX"; then
11138            postdeps_CXX="${prev}${p}"
11139          else
11140            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11141          fi
11142        fi
11143        ;;
11144
11145     *.$objext)
11146        # This assumes that the test object file only shows up
11147        # once in the compiler output.
11148        if test "$p" = "conftest.$objext"; then
11149          pre_test_object_deps_done=yes
11150          continue
11151        fi
11152
11153        if test "$pre_test_object_deps_done" = no; then
11154          if test -z "$predep_objects_CXX"; then
11155            predep_objects_CXX="$p"
11156          else
11157            predep_objects_CXX="$predep_objects_CXX $p"
11158          fi
11159        else
11160          if test -z "$postdep_objects_CXX"; then
11161            postdep_objects_CXX="$p"
11162          else
11163            postdep_objects_CXX="$postdep_objects_CXX $p"
11164          fi
11165        fi
11166        ;;
11167
11168     *) ;; # Ignore the rest.
11169
11170     esac
11171   done
11172
11173   # Clean up.
11174   rm -f a.out a.exe
11175 else
11176   echo "libtool.m4: error: problem compiling CXX test program"
11177 fi
11178
11179 $rm -f confest.$objext
11180
11181 # PORTME: override above test on systems where it is broken
11182 case $host_os in
11183 interix3*)
11184   # Interix 3.5 installs completely hosed .la files for C++, so rather than
11185   # hack all around it, let's just trust "g++" to DTRT.
11186   predep_objects_CXX=
11187   postdep_objects_CXX=
11188   postdeps_CXX=
11189   ;;
11190
11191 solaris*)
11192   case $cc_basename in
11193   CC*)
11194     # Adding this requires a known-good setup of shared libraries for
11195     # Sun compiler versions before 5.6, else PIC objects from an old
11196     # archive will be linked into the output, leading to subtle bugs.
11197     postdeps_CXX='-lCstd -lCrun'
11198     ;;
11199   esac
11200   ;;
11201 esac
11202
11203
11204 case " $postdeps_CXX " in
11205 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11206 esac
11207
11208 lt_prog_compiler_wl_CXX=
11209 lt_prog_compiler_pic_CXX=
11210 lt_prog_compiler_static_CXX=
11211
11212 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11213 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11214  
11215   # C++ specific cases for pic, static, wl, etc.
11216   if test "$GXX" = yes; then
11217     lt_prog_compiler_wl_CXX='-Wl,'
11218     lt_prog_compiler_static_CXX='-static'
11219
11220     case $host_os in
11221     aix*)
11222       # All AIX code is PIC.
11223       if test "$host_cpu" = ia64; then
11224         # AIX 5 now supports IA64 processor
11225         lt_prog_compiler_static_CXX='-Bstatic'
11226       fi
11227       ;;
11228     amigaos*)
11229       # FIXME: we need at least 68020 code to build shared libraries, but
11230       # adding the `-m68020' flag to GCC prevents building anything better,
11231       # like `-m68040'.
11232       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11233       ;;
11234     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11235       # PIC is the default for these OSes.
11236       ;;
11237     mingw* | os2* | pw32*)
11238       # This hack is so that the source file can tell whether it is being
11239       # built for inclusion in a dll (and should export symbols for example).
11240       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11241       ;;
11242     darwin* | rhapsody*)
11243       # PIC is the default on this platform
11244       # Common symbols not allowed in MH_DYLIB files
11245       lt_prog_compiler_pic_CXX='-fno-common'
11246       ;;
11247     *djgpp*)
11248       # DJGPP does not support shared libraries at all
11249       lt_prog_compiler_pic_CXX=
11250       ;;
11251     interix3*)
11252       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11253       # Instead, we relocate shared libraries at runtime.
11254       ;;
11255     sysv4*MP*)
11256       if test -d /usr/nec; then
11257         lt_prog_compiler_pic_CXX=-Kconform_pic
11258       fi
11259       ;;
11260     hpux*)
11261       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11262       # not for PA HP-UX.
11263       case $host_cpu in
11264       hppa*64*|ia64*)
11265         ;;
11266       *)
11267         lt_prog_compiler_pic_CXX='-fPIC'
11268         ;;
11269       esac
11270       ;;
11271     *)
11272       lt_prog_compiler_pic_CXX='-fPIC'
11273       ;;
11274     esac
11275   else
11276     case $host_os in
11277       aix4* | aix5*)
11278         # All AIX code is PIC.
11279         if test "$host_cpu" = ia64; then
11280           # AIX 5 now supports IA64 processor
11281           lt_prog_compiler_static_CXX='-Bstatic'
11282         else
11283           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11284         fi
11285         ;;
11286       chorus*)
11287         case $cc_basename in
11288         cxch68*)
11289           # Green Hills C++ Compiler
11290           # _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"
11291           ;;
11292         esac
11293         ;;
11294        darwin*)
11295          # PIC is the default on this platform
11296          # Common symbols not allowed in MH_DYLIB files
11297          case $cc_basename in
11298            xlc*)
11299            lt_prog_compiler_pic_CXX='-qnocommon'
11300            lt_prog_compiler_wl_CXX='-Wl,'
11301            ;;
11302          esac
11303        ;;
11304       dgux*)
11305         case $cc_basename in
11306           ec++*)
11307             lt_prog_compiler_pic_CXX='-KPIC'
11308             ;;
11309           ghcx*)
11310             # Green Hills C++ Compiler
11311             lt_prog_compiler_pic_CXX='-pic'
11312             ;;
11313           *)
11314             ;;
11315         esac
11316         ;;
11317       freebsd* | kfreebsd*-gnu | dragonfly*)
11318         # FreeBSD uses GNU C++
11319         ;;
11320       hpux9* | hpux10* | hpux11*)
11321         case $cc_basename in
11322           CC*)
11323             lt_prog_compiler_wl_CXX='-Wl,'
11324             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11325             if test "$host_cpu" != ia64; then
11326               lt_prog_compiler_pic_CXX='+Z'
11327             fi
11328             ;;
11329           aCC*)
11330             lt_prog_compiler_wl_CXX='-Wl,'
11331             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11332             case $host_cpu in
11333             hppa*64*|ia64*)
11334               # +Z the default
11335               ;;
11336             *)
11337               lt_prog_compiler_pic_CXX='+Z'
11338               ;;
11339             esac
11340             ;;
11341           *)
11342             ;;
11343         esac
11344         ;;
11345       interix*)
11346         # This is c89, which is MS Visual C++ (no shared libs)
11347         # Anyone wants to do a port?
11348         ;;
11349       irix5* | irix6* | nonstopux*)
11350         case $cc_basename in
11351           CC*)
11352             lt_prog_compiler_wl_CXX='-Wl,'
11353             lt_prog_compiler_static_CXX='-non_shared'
11354             # CC pic flag -KPIC is the default.
11355             ;;
11356           *)
11357             ;;
11358         esac
11359         ;;
11360       linux*)
11361         case $cc_basename in
11362           KCC*)
11363             # KAI C++ Compiler
11364             lt_prog_compiler_wl_CXX='--backend -Wl,'
11365             lt_prog_compiler_pic_CXX='-fPIC'
11366             ;;
11367           icpc* | ecpc*)
11368             # Intel C++
11369             lt_prog_compiler_wl_CXX='-Wl,'
11370             lt_prog_compiler_pic_CXX='-KPIC'
11371             lt_prog_compiler_static_CXX='-static'
11372             ;;
11373           pgCC*)
11374             # Portland Group C++ compiler.
11375             lt_prog_compiler_wl_CXX='-Wl,'
11376             lt_prog_compiler_pic_CXX='-fpic'
11377             lt_prog_compiler_static_CXX='-Bstatic'
11378             ;;
11379           cxx*)
11380             # Compaq C++
11381             # Make sure the PIC flag is empty.  It appears that all Alpha
11382             # Linux and Compaq Tru64 Unix objects are PIC.
11383             lt_prog_compiler_pic_CXX=
11384             lt_prog_compiler_static_CXX='-non_shared'
11385             ;;
11386           *)
11387             ;;
11388         esac
11389         ;;
11390       lynxos*)
11391         ;;
11392       m88k*)
11393         ;;
11394       mvs*)
11395         case $cc_basename in
11396           cxx*)
11397             lt_prog_compiler_pic_CXX='-W c,exportall'
11398             ;;
11399           *)
11400             ;;
11401         esac
11402         ;;
11403       netbsd*)
11404         ;;
11405       osf3* | osf4* | osf5*)
11406         case $cc_basename in
11407           KCC*)
11408             lt_prog_compiler_wl_CXX='--backend -Wl,'
11409             ;;
11410           RCC*)
11411             # Rational C++ 2.4.1
11412             lt_prog_compiler_pic_CXX='-pic'
11413             ;;
11414           cxx*)
11415             # Digital/Compaq C++
11416             lt_prog_compiler_wl_CXX='-Wl,'
11417             # Make sure the PIC flag is empty.  It appears that all Alpha
11418             # Linux and Compaq Tru64 Unix objects are PIC.
11419             lt_prog_compiler_pic_CXX=
11420             lt_prog_compiler_static_CXX='-non_shared'
11421             ;;
11422           *)
11423             ;;
11424         esac
11425         ;;
11426       psos*)
11427         ;;
11428       solaris*)
11429         case $cc_basename in
11430           CC*)
11431             # Sun C++ 4.2, 5.x and Centerline C++
11432             lt_prog_compiler_pic_CXX='-KPIC'
11433             lt_prog_compiler_static_CXX='-Bstatic'
11434             lt_prog_compiler_wl_CXX='-Qoption ld '
11435             ;;
11436           gcx*)
11437             # Green Hills C++ Compiler
11438             lt_prog_compiler_pic_CXX='-PIC'
11439             ;;
11440           *)
11441             ;;
11442         esac
11443         ;;
11444       sunos4*)
11445         case $cc_basename in
11446           CC*)
11447             # Sun C++ 4.x
11448             lt_prog_compiler_pic_CXX='-pic'
11449             lt_prog_compiler_static_CXX='-Bstatic'
11450             ;;
11451           lcc*)
11452             # Lucid
11453             lt_prog_compiler_pic_CXX='-pic'
11454             ;;
11455           *)
11456             ;;
11457         esac
11458         ;;
11459       tandem*)
11460         case $cc_basename in
11461           NCC*)
11462             # NonStop-UX NCC 3.20
11463             lt_prog_compiler_pic_CXX='-KPIC'
11464             ;;
11465           *)
11466             ;;
11467         esac
11468         ;;
11469       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11470         case $cc_basename in
11471           CC*)
11472             lt_prog_compiler_wl_CXX='-Wl,'
11473             lt_prog_compiler_pic_CXX='-KPIC'
11474             lt_prog_compiler_static_CXX='-Bstatic'
11475             ;;
11476         esac
11477         ;;
11478       vxworks*)
11479         ;;
11480       *)
11481         lt_prog_compiler_can_build_shared_CXX=no
11482         ;;
11483     esac
11484   fi
11485
11486 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11487 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11488
11489 #
11490 # Check to make sure the PIC flag actually works.
11491 #
11492 if test -n "$lt_prog_compiler_pic_CXX"; then
11493   
11494 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11495 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11496 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11497   echo $ECHO_N "(cached) $ECHO_C" >&6
11498 else
11499   lt_prog_compiler_pic_works_CXX=no
11500   ac_outfile=conftest.$ac_objext
11501    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11502    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11503    # Insert the option either (1) after the last *FLAGS variable, or
11504    # (2) before a word containing "conftest.", or (3) at the end.
11505    # Note that $ac_compile itself does not contain backslashes and begins
11506    # with a dollar sign (not a hyphen), so the echo should work correctly.
11507    # The option is referenced via a variable to avoid confusing sed.
11508    lt_compile=`echo "$ac_compile" | $SED \
11509    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11510    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11511    -e 's:$: $lt_compiler_flag:'`
11512    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
11513    (eval "$lt_compile" 2>conftest.err)
11514    ac_status=$?
11515    cat conftest.err >&5
11516    echo "$as_me:__oline__: \$? = $ac_status" >&5
11517    if (exit $ac_status) && test -s "$ac_outfile"; then
11518      # The compiler can only warn and ignore the option if not recognized
11519      # So say no if there are warnings other than the usual output.
11520      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11521      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11522      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11523        lt_prog_compiler_pic_works_CXX=yes
11524      fi
11525    fi
11526    $rm conftest*
11527
11528 fi
11529 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11530 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11531
11532 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11533     case $lt_prog_compiler_pic_CXX in
11534      "" | " "*) ;;
11535      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11536      esac
11537 else
11538     lt_prog_compiler_pic_CXX=
11539      lt_prog_compiler_can_build_shared_CXX=no
11540 fi
11541
11542 fi
11543 case $host_os in
11544   # For platforms which do not support PIC, -DPIC is meaningless:
11545   *djgpp*)
11546     lt_prog_compiler_pic_CXX=
11547     ;;
11548   *)
11549     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11550     ;;
11551 esac
11552
11553 #
11554 # Check to make sure the static flag actually works.
11555 #
11556 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11557 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11558 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11559 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11560   echo $ECHO_N "(cached) $ECHO_C" >&6
11561 else
11562   lt_prog_compiler_static_works_CXX=no
11563    save_LDFLAGS="$LDFLAGS"
11564    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11565    printf "$lt_simple_link_test_code" > conftest.$ac_ext
11566    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11567      # The linker can only warn and ignore the option if not recognized
11568      # So say no if there are warnings
11569      if test -s conftest.err; then
11570        # Append any errors to the config.log.
11571        cat conftest.err 1>&5
11572        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11573        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11574        if diff conftest.exp conftest.er2 >/dev/null; then
11575          lt_prog_compiler_static_works_CXX=yes
11576        fi
11577      else
11578        lt_prog_compiler_static_works_CXX=yes
11579      fi
11580    fi
11581    $rm conftest*
11582    LDFLAGS="$save_LDFLAGS"
11583
11584 fi
11585 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11586 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11587
11588 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11589     :
11590 else
11591     lt_prog_compiler_static_CXX=
11592 fi
11593
11594
11595 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11596 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11597 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11598   echo $ECHO_N "(cached) $ECHO_C" >&6
11599 else
11600   lt_cv_prog_compiler_c_o_CXX=no
11601    $rm -r conftest 2>/dev/null
11602    mkdir conftest
11603    cd conftest
11604    mkdir out
11605    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11606
11607    lt_compiler_flag="-o out/conftest2.$ac_objext"
11608    # Insert the option either (1) after the last *FLAGS variable, or
11609    # (2) before a word containing "conftest.", or (3) at the end.
11610    # Note that $ac_compile itself does not contain backslashes and begins
11611    # with a dollar sign (not a hyphen), so the echo should work correctly.
11612    lt_compile=`echo "$ac_compile" | $SED \
11613    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11614    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11615    -e 's:$: $lt_compiler_flag:'`
11616    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
11617    (eval "$lt_compile" 2>out/conftest.err)
11618    ac_status=$?
11619    cat out/conftest.err >&5
11620    echo "$as_me:__oline__: \$? = $ac_status" >&5
11621    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11622    then
11623      # The compiler can only warn and ignore the option if not recognized
11624      # So say no if there are warnings
11625      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11626      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11627      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11628        lt_cv_prog_compiler_c_o_CXX=yes
11629      fi
11630    fi
11631    chmod u+w . 2>&5
11632    $rm conftest*
11633    # SGI C++ compiler will create directory out/ii_files/ for
11634    # template instantiation
11635    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11636    $rm out/* && rmdir out
11637    cd ..
11638    rmdir conftest
11639    $rm conftest*
11640
11641 fi
11642 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11643 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11644
11645
11646 hard_links="nottested"
11647 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11648   # do not overwrite the value of need_locks provided by the user
11649   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11650 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11651   hard_links=yes
11652   $rm conftest*
11653   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11654   touch conftest.a
11655   ln conftest.a conftest.b 2>&5 || hard_links=no
11656   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11657   echo "$as_me:$LINENO: result: $hard_links" >&5
11658 echo "${ECHO_T}$hard_links" >&6
11659   if test "$hard_links" = no; then
11660     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11661 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11662     need_locks=warn
11663   fi
11664 else
11665   need_locks=no
11666 fi
11667
11668 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11669 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11670
11671   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11672   case $host_os in
11673   aix4* | aix5*)
11674     # If we're using GNU nm, then we don't want the "-C" option.
11675     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11676     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11677       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'
11678     else
11679       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'
11680     fi
11681     ;;
11682   pw32*)
11683     export_symbols_cmds_CXX="$ltdll_cmds"
11684   ;;
11685   cygwin* | mingw*)
11686     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'
11687   ;;
11688   *)
11689     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11690   ;;
11691   esac
11692
11693 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11694 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11695 test "$ld_shlibs_CXX" = no && can_build_shared=no
11696
11697 #
11698 # Do we need to explicitly link libc?
11699 #
11700 case "x$archive_cmds_need_lc_CXX" in
11701 x|xyes)
11702   # Assume -lc should be added
11703   archive_cmds_need_lc_CXX=yes
11704
11705   if test "$enable_shared" = yes && test "$GCC" = yes; then
11706     case $archive_cmds_CXX in
11707     *'~'*)
11708       # FIXME: we may have to deal with multi-command sequences.
11709       ;;
11710     '$CC '*)
11711       # Test whether the compiler implicitly links with -lc since on some
11712       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11713       # to ld, don't add -lc before -lgcc.
11714       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11715 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11716       $rm conftest*
11717       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11718
11719       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11720   (eval $ac_compile) 2>&5
11721   ac_status=$?
11722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723   (exit $ac_status); } 2>conftest.err; then
11724         soname=conftest
11725         lib=conftest
11726         libobjs=conftest.$ac_objext
11727         deplibs=
11728         wl=$lt_prog_compiler_wl_CXX
11729         pic_flag=$lt_prog_compiler_pic_CXX
11730         compiler_flags=-v
11731         linker_flags=-v
11732         verstring=
11733         output_objdir=.
11734         libname=conftest
11735         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11736         allow_undefined_flag_CXX=
11737         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11738   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11739   ac_status=$?
11740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11741   (exit $ac_status); }
11742         then
11743           archive_cmds_need_lc_CXX=no
11744         else
11745           archive_cmds_need_lc_CXX=yes
11746         fi
11747         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11748       else
11749         cat conftest.err 1>&5
11750       fi
11751       $rm conftest*
11752       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11753 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11754       ;;
11755     esac
11756   fi
11757   ;;
11758 esac
11759
11760 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11761 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11762 library_names_spec=
11763 libname_spec='lib$name'
11764 soname_spec=
11765 shrext_cmds=".so"
11766 postinstall_cmds=
11767 postuninstall_cmds=
11768 finish_cmds=
11769 finish_eval=
11770 shlibpath_var=
11771 shlibpath_overrides_runpath=unknown
11772 version_type=none
11773 dynamic_linker="$host_os ld.so"
11774 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11775 if test "$GCC" = yes; then
11776   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11777   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11778     # if the path contains ";" then we assume it to be the separator
11779     # otherwise default to the standard path separator (i.e. ":") - it is
11780     # assumed that no part of a normal pathname contains ";" but that should
11781     # okay in the real world where ";" in dirpaths is itself problematic.
11782     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11783   else
11784     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11785   fi
11786 else
11787   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11788 fi
11789 need_lib_prefix=unknown
11790 hardcode_into_libs=no
11791
11792 # when you set need_version to no, make sure it does not cause -set_version
11793 # flags to be left without arguments
11794 need_version=unknown
11795
11796 case $host_os in
11797 aix3*)
11798   version_type=linux
11799   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11800   shlibpath_var=LIBPATH
11801
11802   # AIX 3 has no versioning support, so we append a major version to the name.
11803   soname_spec='${libname}${release}${shared_ext}$major'
11804   ;;
11805
11806 aix4* | aix5*)
11807   version_type=linux
11808   need_lib_prefix=no
11809   need_version=no
11810   hardcode_into_libs=yes
11811   if test "$host_cpu" = ia64; then
11812     # AIX 5 supports IA64
11813     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11814     shlibpath_var=LD_LIBRARY_PATH
11815   else
11816     # With GCC up to 2.95.x, collect2 would create an import file
11817     # for dependence libraries.  The import file would start with
11818     # the line `#! .'.  This would cause the generated library to
11819     # depend on `.', always an invalid library.  This was fixed in
11820     # development snapshots of GCC prior to 3.0.
11821     case $host_os in
11822       aix4 | aix4.[01] | aix4.[01].*)
11823       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11824            echo ' yes '
11825            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11826         :
11827       else
11828         can_build_shared=no
11829       fi
11830       ;;
11831     esac
11832     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11833     # soname into executable. Probably we can add versioning support to
11834     # collect2, so additional links can be useful in future.
11835     if test "$aix_use_runtimelinking" = yes; then
11836       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11837       # instead of lib<name>.a to let people know that these are not
11838       # typical AIX shared libraries.
11839       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11840     else
11841       # We preserve .a as extension for shared libraries through AIX4.2
11842       # and later when we are not doing run time linking.
11843       library_names_spec='${libname}${release}.a $libname.a'
11844       soname_spec='${libname}${release}${shared_ext}$major'
11845     fi
11846     shlibpath_var=LIBPATH
11847   fi
11848   ;;
11849
11850 amigaos*)
11851   library_names_spec='$libname.ixlibrary $libname.a'
11852   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11853   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'
11854   ;;
11855
11856 beos*)
11857   library_names_spec='${libname}${shared_ext}'
11858   dynamic_linker="$host_os ld.so"
11859   shlibpath_var=LIBRARY_PATH
11860   ;;
11861
11862 bsdi[45]*)
11863   version_type=linux
11864   need_version=no
11865   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11866   soname_spec='${libname}${release}${shared_ext}$major'
11867   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11868   shlibpath_var=LD_LIBRARY_PATH
11869   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11870   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11871   # the default ld.so.conf also contains /usr/contrib/lib and
11872   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11873   # libtool to hard-code these into programs
11874   ;;
11875
11876 cygwin* | mingw* | pw32*)
11877   version_type=windows
11878   shrext_cmds=".dll"
11879   need_version=no
11880   need_lib_prefix=no
11881
11882   case $GCC,$host_os in
11883   yes,cygwin* | yes,mingw* | yes,pw32*)
11884     library_names_spec='$libname.dll.a'
11885     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11886     postinstall_cmds='base_file=`basename \${file}`~
11887       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11888       dldir=$destdir/`dirname \$dlpath`~
11889       test -d \$dldir || mkdir -p \$dldir~
11890       $install_prog $dir/$dlname \$dldir/$dlname~
11891       chmod a+x \$dldir/$dlname'
11892     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11893       dlpath=$dir/\$dldll~
11894        $rm \$dlpath'
11895     shlibpath_overrides_runpath=yes
11896
11897     case $host_os in
11898     cygwin*)
11899       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11900       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11901       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11902       ;;
11903     mingw*)
11904       # MinGW DLLs use traditional 'lib' prefix
11905       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11906       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11907       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11908         # It is most probably a Windows format PATH printed by
11909         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11910         # path with ; separators, and with drive letters. We can handle the
11911         # drive letters (cygwin fileutils understands them), so leave them,
11912         # especially as we might pass files found there to a mingw objdump,
11913         # which wouldn't understand a cygwinified path. Ahh.
11914         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11915       else
11916         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11917       fi
11918       ;;
11919     pw32*)
11920       # pw32 DLLs use 'pw' prefix rather than 'lib'
11921       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11922       ;;
11923     esac
11924     ;;
11925
11926   *)
11927     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11928     ;;
11929   esac
11930   dynamic_linker='Win32 ld.exe'
11931   # FIXME: first we should search . and the directory the executable is in
11932   shlibpath_var=PATH
11933   ;;
11934
11935 darwin* | rhapsody*)
11936   dynamic_linker="$host_os dyld"
11937   version_type=darwin
11938   need_lib_prefix=no
11939   need_version=no
11940   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11941   soname_spec='${libname}${release}${major}$shared_ext'
11942   shlibpath_overrides_runpath=yes
11943   shlibpath_var=DYLD_LIBRARY_PATH
11944   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11945   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11946   if test "$GCC" = yes; then
11947     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"`
11948   else
11949     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11950   fi
11951   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11952   ;;
11953
11954 dgux*)
11955   version_type=linux
11956   need_lib_prefix=no
11957   need_version=no
11958   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11959   soname_spec='${libname}${release}${shared_ext}$major'
11960   shlibpath_var=LD_LIBRARY_PATH
11961   ;;
11962
11963 freebsd1*)
11964   dynamic_linker=no
11965   ;;
11966
11967 kfreebsd*-gnu)
11968   version_type=linux
11969   need_lib_prefix=no
11970   need_version=no
11971   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11972   soname_spec='${libname}${release}${shared_ext}$major'
11973   shlibpath_var=LD_LIBRARY_PATH
11974   shlibpath_overrides_runpath=no
11975   hardcode_into_libs=yes
11976   dynamic_linker='GNU ld.so'
11977   ;;
11978
11979 freebsd* | dragonfly*)
11980   # DragonFly does not have aout.  When/if they implement a new
11981   # versioning mechanism, adjust this.
11982   if test -x /usr/bin/objformat; then
11983     objformat=`/usr/bin/objformat`
11984   else
11985     case $host_os in
11986     freebsd[123]*) objformat=aout ;;
11987     *) objformat=elf ;;
11988     esac
11989   fi
11990   version_type=freebsd-$objformat
11991   case $version_type in
11992     freebsd-elf*)
11993       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11994       need_version=no
11995       need_lib_prefix=no
11996       ;;
11997     freebsd-*)
11998       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11999       need_version=yes
12000       ;;
12001   esac
12002   shlibpath_var=LD_LIBRARY_PATH
12003   case $host_os in
12004   freebsd2*)
12005     shlibpath_overrides_runpath=yes
12006     ;;
12007   freebsd3.[01]* | freebsdelf3.[01]*)
12008     shlibpath_overrides_runpath=yes
12009     hardcode_into_libs=yes
12010     ;;
12011   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12012   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12013     shlibpath_overrides_runpath=no
12014     hardcode_into_libs=yes
12015     ;;
12016   freebsd*) # from 4.6 on
12017     shlibpath_overrides_runpath=yes
12018     hardcode_into_libs=yes
12019     ;;
12020   esac
12021   ;;
12022
12023 gnu*)
12024   version_type=linux
12025   need_lib_prefix=no
12026   need_version=no
12027   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12028   soname_spec='${libname}${release}${shared_ext}$major'
12029   shlibpath_var=LD_LIBRARY_PATH
12030   hardcode_into_libs=yes
12031   ;;
12032
12033 hpux9* | hpux10* | hpux11*)
12034   # Give a soname corresponding to the major version so that dld.sl refuses to
12035   # link against other versions.
12036   version_type=sunos
12037   need_lib_prefix=no
12038   need_version=no
12039   case $host_cpu in
12040   ia64*)
12041     shrext_cmds='.so'
12042     hardcode_into_libs=yes
12043     dynamic_linker="$host_os dld.so"
12044     shlibpath_var=LD_LIBRARY_PATH
12045     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12046     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12047     soname_spec='${libname}${release}${shared_ext}$major'
12048     if test "X$HPUX_IA64_MODE" = X32; then
12049       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12050     else
12051       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12052     fi
12053     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12054     ;;
12055    hppa*64*)
12056      shrext_cmds='.sl'
12057      hardcode_into_libs=yes
12058      dynamic_linker="$host_os dld.sl"
12059      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12060      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12061      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12062      soname_spec='${libname}${release}${shared_ext}$major'
12063      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12064      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12065      ;;
12066    *)
12067     shrext_cmds='.sl'
12068     dynamic_linker="$host_os dld.sl"
12069     shlibpath_var=SHLIB_PATH
12070     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12071     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12072     soname_spec='${libname}${release}${shared_ext}$major'
12073     ;;
12074   esac
12075   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12076   postinstall_cmds='chmod 555 $lib'
12077   ;;
12078
12079 interix3*)
12080   version_type=linux
12081   need_lib_prefix=no
12082   need_version=no
12083   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12084   soname_spec='${libname}${release}${shared_ext}$major'
12085   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12086   shlibpath_var=LD_LIBRARY_PATH
12087   shlibpath_overrides_runpath=no
12088   hardcode_into_libs=yes
12089   ;;
12090
12091 irix5* | irix6* | nonstopux*)
12092   case $host_os in
12093     nonstopux*) version_type=nonstopux ;;
12094     *)
12095         if test "$lt_cv_prog_gnu_ld" = yes; then
12096                 version_type=linux
12097         else
12098                 version_type=irix
12099         fi ;;
12100   esac
12101   need_lib_prefix=no
12102   need_version=no
12103   soname_spec='${libname}${release}${shared_ext}$major'
12104   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12105   case $host_os in
12106   irix5* | nonstopux*)
12107     libsuff= shlibsuff=
12108     ;;
12109   *)
12110     case $LD in # libtool.m4 will add one of these switches to LD
12111     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12112       libsuff= shlibsuff= libmagic=32-bit;;
12113     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12114       libsuff=32 shlibsuff=N32 libmagic=N32;;
12115     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12116       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12117     *) libsuff= shlibsuff= libmagic=never-match;;
12118     esac
12119     ;;
12120   esac
12121   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12122   shlibpath_overrides_runpath=no
12123   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12124   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12125   hardcode_into_libs=yes
12126   ;;
12127
12128 # No shared lib support for Linux oldld, aout, or coff.
12129 linux*oldld* | linux*aout* | linux*coff*)
12130   dynamic_linker=no
12131   ;;
12132
12133 # This must be Linux ELF.
12134 linux*)
12135   version_type=linux
12136   need_lib_prefix=no
12137   need_version=no
12138   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12139   soname_spec='${libname}${release}${shared_ext}$major'
12140   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12141   shlibpath_var=LD_LIBRARY_PATH
12142   shlibpath_overrides_runpath=no
12143   # This implies no fast_install, which is unacceptable.
12144   # Some rework will be needed to allow for fast_install
12145   # before this can be enabled.
12146   hardcode_into_libs=yes
12147
12148   # Append ld.so.conf contents to the search path
12149   if test -f /etc/ld.so.conf; then
12150     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' ' '`
12151     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12152   fi
12153
12154   # We used to test for /lib/ld.so.1 and disable shared libraries on
12155   # powerpc, because MkLinux only supported shared libraries with the
12156   # GNU dynamic linker.  Since this was broken with cross compilers,
12157   # most powerpc-linux boxes support dynamic linking these days and
12158   # people can always --disable-shared, the test was removed, and we
12159   # assume the GNU/Linux dynamic linker is in use.
12160   dynamic_linker='GNU/Linux ld.so'
12161   ;;
12162
12163 knetbsd*-gnu)
12164   version_type=linux
12165   need_lib_prefix=no
12166   need_version=no
12167   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12168   soname_spec='${libname}${release}${shared_ext}$major'
12169   shlibpath_var=LD_LIBRARY_PATH
12170   shlibpath_overrides_runpath=no
12171   hardcode_into_libs=yes
12172   dynamic_linker='GNU ld.so'
12173   ;;
12174
12175 netbsd*)
12176   version_type=sunos
12177   need_lib_prefix=no
12178   need_version=no
12179   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12180     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12181     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12182     dynamic_linker='NetBSD (a.out) ld.so'
12183   else
12184     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12185     soname_spec='${libname}${release}${shared_ext}$major'
12186     dynamic_linker='NetBSD ld.elf_so'
12187   fi
12188   shlibpath_var=LD_LIBRARY_PATH
12189   shlibpath_overrides_runpath=yes
12190   hardcode_into_libs=yes
12191   ;;
12192
12193 newsos6)
12194   version_type=linux
12195   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12196   shlibpath_var=LD_LIBRARY_PATH
12197   shlibpath_overrides_runpath=yes
12198   ;;
12199
12200 nto-qnx*)
12201   version_type=linux
12202   need_lib_prefix=no
12203   need_version=no
12204   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12205   soname_spec='${libname}${release}${shared_ext}$major'
12206   shlibpath_var=LD_LIBRARY_PATH
12207   shlibpath_overrides_runpath=yes
12208   ;;
12209
12210 openbsd*)
12211   version_type=sunos
12212   sys_lib_dlsearch_path_spec="/usr/lib"
12213   need_lib_prefix=no
12214   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12215   case $host_os in
12216     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12217     *)                         need_version=no  ;;
12218   esac
12219   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12220   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12221   shlibpath_var=LD_LIBRARY_PATH
12222   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12223     case $host_os in
12224       openbsd2.[89] | openbsd2.[89].*)
12225         shlibpath_overrides_runpath=no
12226         ;;
12227       *)
12228         shlibpath_overrides_runpath=yes
12229         ;;
12230       esac
12231   else
12232     shlibpath_overrides_runpath=yes
12233   fi
12234   ;;
12235
12236 os2*)
12237   libname_spec='$name'
12238   shrext_cmds=".dll"
12239   need_lib_prefix=no
12240   library_names_spec='$libname${shared_ext} $libname.a'
12241   dynamic_linker='OS/2 ld.exe'
12242   shlibpath_var=LIBPATH
12243   ;;
12244
12245 osf3* | osf4* | osf5*)
12246   version_type=osf
12247   need_lib_prefix=no
12248   need_version=no
12249   soname_spec='${libname}${release}${shared_ext}$major'
12250   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12251   shlibpath_var=LD_LIBRARY_PATH
12252   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12253   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12254   ;;
12255
12256 solaris*)
12257   version_type=linux
12258   need_lib_prefix=no
12259   need_version=no
12260   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12261   soname_spec='${libname}${release}${shared_ext}$major'
12262   shlibpath_var=LD_LIBRARY_PATH
12263   shlibpath_overrides_runpath=yes
12264   hardcode_into_libs=yes
12265   # ldd complains unless libraries are executable
12266   postinstall_cmds='chmod +x $lib'
12267   ;;
12268
12269 sunos4*)
12270   version_type=sunos
12271   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12272   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12273   shlibpath_var=LD_LIBRARY_PATH
12274   shlibpath_overrides_runpath=yes
12275   if test "$with_gnu_ld" = yes; then
12276     need_lib_prefix=no
12277   fi
12278   need_version=yes
12279   ;;
12280
12281 sysv4 | sysv4.3*)
12282   version_type=linux
12283   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12284   soname_spec='${libname}${release}${shared_ext}$major'
12285   shlibpath_var=LD_LIBRARY_PATH
12286   case $host_vendor in
12287     sni)
12288       shlibpath_overrides_runpath=no
12289       need_lib_prefix=no
12290       export_dynamic_flag_spec='${wl}-Blargedynsym'
12291       runpath_var=LD_RUN_PATH
12292       ;;
12293     siemens)
12294       need_lib_prefix=no
12295       ;;
12296     motorola)
12297       need_lib_prefix=no
12298       need_version=no
12299       shlibpath_overrides_runpath=no
12300       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12301       ;;
12302   esac
12303   ;;
12304
12305 sysv4*MP*)
12306   if test -d /usr/nec ;then
12307     version_type=linux
12308     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12309     soname_spec='$libname${shared_ext}.$major'
12310     shlibpath_var=LD_LIBRARY_PATH
12311   fi
12312   ;;
12313
12314 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12315   version_type=freebsd-elf
12316   need_lib_prefix=no
12317   need_version=no
12318   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12319   soname_spec='${libname}${release}${shared_ext}$major'
12320   shlibpath_var=LD_LIBRARY_PATH
12321   hardcode_into_libs=yes
12322   if test "$with_gnu_ld" = yes; then
12323     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12324     shlibpath_overrides_runpath=no
12325   else
12326     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12327     shlibpath_overrides_runpath=yes
12328     case $host_os in
12329       sco3.2v5*)
12330         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12331         ;;
12332     esac
12333   fi
12334   sys_lib_dlsearch_path_spec='/usr/lib'
12335   ;;
12336
12337 uts4*)
12338   version_type=linux
12339   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12340   soname_spec='${libname}${release}${shared_ext}$major'
12341   shlibpath_var=LD_LIBRARY_PATH
12342   ;;
12343
12344 *)
12345   dynamic_linker=no
12346   ;;
12347 esac
12348 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12349 echo "${ECHO_T}$dynamic_linker" >&6
12350 test "$dynamic_linker" = no && can_build_shared=no
12351
12352 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12353 if test "$GCC" = yes; then
12354   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12355 fi
12356
12357 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12358 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12359 hardcode_action_CXX=
12360 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12361    test -n "$runpath_var_CXX" || \
12362    test "X$hardcode_automatic_CXX" = "Xyes" ; then
12363
12364   # We can hardcode non-existant directories.
12365   if test "$hardcode_direct_CXX" != no &&
12366      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12367      # have to relink, otherwise we might link with an installed library
12368      # when we should be linking with a yet-to-be-installed one
12369      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12370      test "$hardcode_minus_L_CXX" != no; then
12371     # Linking always hardcodes the temporary library directory.
12372     hardcode_action_CXX=relink
12373   else
12374     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12375     hardcode_action_CXX=immediate
12376   fi
12377 else
12378   # We cannot hardcode anything, or else we can only hardcode existing
12379   # directories.
12380   hardcode_action_CXX=unsupported
12381 fi
12382 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12383 echo "${ECHO_T}$hardcode_action_CXX" >&6
12384
12385 if test "$hardcode_action_CXX" = relink; then
12386   # Fast installation is not supported
12387   enable_fast_install=no
12388 elif test "$shlibpath_overrides_runpath" = yes ||
12389      test "$enable_shared" = no; then
12390   # Fast installation is not necessary
12391   enable_fast_install=needless
12392 fi
12393
12394
12395 # The else clause should only fire when bootstrapping the
12396 # libtool distribution, otherwise you forgot to ship ltmain.sh
12397 # with your package, and you will get complaints that there are
12398 # no rules to generate ltmain.sh.
12399 if test -f "$ltmain"; then
12400   # See if we are running on zsh, and set the options which allow our commands through
12401   # without removal of \ escapes.
12402   if test -n "${ZSH_VERSION+set}" ; then
12403     setopt NO_GLOB_SUBST
12404   fi
12405   # Now quote all the things that may contain metacharacters while being
12406   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12407   # variables and quote the copies for generation of the libtool script.
12408   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12409     SED SHELL STRIP \
12410     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12411     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12412     deplibs_check_method reload_flag reload_cmds need_locks \
12413     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12414     lt_cv_sys_global_symbol_to_c_name_address \
12415     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12416     old_postinstall_cmds old_postuninstall_cmds \
12417     compiler_CXX \
12418     CC_CXX \
12419     LD_CXX \
12420     lt_prog_compiler_wl_CXX \
12421     lt_prog_compiler_pic_CXX \
12422     lt_prog_compiler_static_CXX \
12423     lt_prog_compiler_no_builtin_flag_CXX \
12424     export_dynamic_flag_spec_CXX \
12425     thread_safe_flag_spec_CXX \
12426     whole_archive_flag_spec_CXX \
12427     enable_shared_with_static_runtimes_CXX \
12428     old_archive_cmds_CXX \
12429     old_archive_from_new_cmds_CXX \
12430     predep_objects_CXX \
12431     postdep_objects_CXX \
12432     predeps_CXX \
12433     postdeps_CXX \
12434     compiler_lib_search_path_CXX \
12435     archive_cmds_CXX \
12436     archive_expsym_cmds_CXX \
12437     postinstall_cmds_CXX \
12438     postuninstall_cmds_CXX \
12439     old_archive_from_expsyms_cmds_CXX \
12440     allow_undefined_flag_CXX \
12441     no_undefined_flag_CXX \
12442     export_symbols_cmds_CXX \
12443     hardcode_libdir_flag_spec_CXX \
12444     hardcode_libdir_flag_spec_ld_CXX \
12445     hardcode_libdir_separator_CXX \
12446     hardcode_automatic_CXX \
12447     module_cmds_CXX \
12448     module_expsym_cmds_CXX \
12449     lt_cv_prog_compiler_c_o_CXX \
12450     exclude_expsyms_CXX \
12451     include_expsyms_CXX; do
12452
12453     case $var in
12454     old_archive_cmds_CXX | \
12455     old_archive_from_new_cmds_CXX | \
12456     archive_cmds_CXX | \
12457     archive_expsym_cmds_CXX | \
12458     module_cmds_CXX | \
12459     module_expsym_cmds_CXX | \
12460     old_archive_from_expsyms_cmds_CXX | \
12461     export_symbols_cmds_CXX | \
12462     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12463     postinstall_cmds | postuninstall_cmds | \
12464     old_postinstall_cmds | old_postuninstall_cmds | \
12465     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12466       # Double-quote double-evaled strings.
12467       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12468       ;;
12469     *)
12470       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12471       ;;
12472     esac
12473   done
12474
12475   case $lt_echo in
12476   *'\$0 --fallback-echo"')
12477     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12478     ;;
12479   esac
12480
12481 cfgfile="$ofile"
12482
12483   cat <<__EOF__ >> "$cfgfile"
12484 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12485
12486 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12487
12488 # Shell to use when invoking shell scripts.
12489 SHELL=$lt_SHELL
12490
12491 # Whether or not to build shared libraries.
12492 build_libtool_libs=$enable_shared
12493
12494 # Whether or not to build static libraries.
12495 build_old_libs=$enable_static
12496
12497 # Whether or not to add -lc for building shared libraries.
12498 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12499
12500 # Whether or not to disallow shared libs when runtime libs are static
12501 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12502
12503 # Whether or not to optimize for fast installation.
12504 fast_install=$enable_fast_install
12505
12506 # The host system.
12507 host_alias=$host_alias
12508 host=$host
12509 host_os=$host_os
12510
12511 # The build system.
12512 build_alias=$build_alias
12513 build=$build
12514 build_os=$build_os
12515
12516 # An echo program that does not interpret backslashes.
12517 echo=$lt_echo
12518
12519 # The archiver.
12520 AR=$lt_AR
12521 AR_FLAGS=$lt_AR_FLAGS
12522
12523 # A C compiler.
12524 LTCC=$lt_LTCC
12525
12526 # LTCC compiler flags.
12527 LTCFLAGS=$lt_LTCFLAGS
12528
12529 # A language-specific compiler.
12530 CC=$lt_compiler_CXX
12531
12532 # Is the compiler the GNU C compiler?
12533 with_gcc=$GCC_CXX
12534
12535 # An ERE matcher.
12536 EGREP=$lt_EGREP
12537
12538 # The linker used to build libraries.
12539 LD=$lt_LD_CXX
12540
12541 # Whether we need hard or soft links.
12542 LN_S=$lt_LN_S
12543
12544 # A BSD-compatible nm program.
12545 NM=$lt_NM
12546
12547 # A symbol stripping program
12548 STRIP=$lt_STRIP
12549
12550 # Used to examine libraries when file_magic_cmd begins "file"
12551 MAGIC_CMD=$MAGIC_CMD
12552
12553 # Used on cygwin: DLL creation program.
12554 DLLTOOL="$DLLTOOL"
12555
12556 # Used on cygwin: object dumper.
12557 OBJDUMP="$OBJDUMP"
12558
12559 # Used on cygwin: assembler.
12560 AS="$AS"
12561
12562 # The name of the directory that contains temporary libtool files.
12563 objdir=$objdir
12564
12565 # How to create reloadable object files.
12566 reload_flag=$lt_reload_flag
12567 reload_cmds=$lt_reload_cmds
12568
12569 # How to pass a linker flag through the compiler.
12570 wl=$lt_lt_prog_compiler_wl_CXX
12571
12572 # Object file suffix (normally "o").
12573 objext="$ac_objext"
12574
12575 # Old archive suffix (normally "a").
12576 libext="$libext"
12577
12578 # Shared library suffix (normally ".so").
12579 shrext_cmds='$shrext_cmds'
12580
12581 # Executable file suffix (normally "").
12582 exeext="$exeext"
12583
12584 # Additional compiler flags for building library objects.
12585 pic_flag=$lt_lt_prog_compiler_pic_CXX
12586 pic_mode=$pic_mode
12587
12588 # What is the maximum length of a command?
12589 max_cmd_len=$lt_cv_sys_max_cmd_len
12590
12591 # Does compiler simultaneously support -c and -o options?
12592 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12593
12594 # Must we lock files when doing compilation?
12595 need_locks=$lt_need_locks
12596
12597 # Do we need the lib prefix for modules?
12598 need_lib_prefix=$need_lib_prefix
12599
12600 # Do we need a version for libraries?
12601 need_version=$need_version
12602
12603 # Whether dlopen is supported.
12604 dlopen_support=$enable_dlopen
12605
12606 # Whether dlopen of programs is supported.
12607 dlopen_self=$enable_dlopen_self
12608
12609 # Whether dlopen of statically linked programs is supported.
12610 dlopen_self_static=$enable_dlopen_self_static
12611
12612 # Compiler flag to prevent dynamic linking.
12613 link_static_flag=$lt_lt_prog_compiler_static_CXX
12614
12615 # Compiler flag to turn off builtin functions.
12616 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12617
12618 # Compiler flag to allow reflexive dlopens.
12619 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12620
12621 # Compiler flag to generate shared objects directly from archives.
12622 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12623
12624 # Compiler flag to generate thread-safe objects.
12625 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12626
12627 # Library versioning type.
12628 version_type=$version_type
12629
12630 # Format of library name prefix.
12631 libname_spec=$lt_libname_spec
12632
12633 # List of archive names.  First name is the real one, the rest are links.
12634 # The last name is the one that the linker finds with -lNAME.
12635 library_names_spec=$lt_library_names_spec
12636
12637 # The coded name of the library, if different from the real name.
12638 soname_spec=$lt_soname_spec
12639
12640 # Commands used to build and install an old-style archive.
12641 RANLIB=$lt_RANLIB
12642 old_archive_cmds=$lt_old_archive_cmds_CXX
12643 old_postinstall_cmds=$lt_old_postinstall_cmds
12644 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12645
12646 # Create an old-style archive from a shared archive.
12647 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12648
12649 # Create a temporary old-style archive to link instead of a shared archive.
12650 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12651
12652 # Commands used to build and install a shared archive.
12653 archive_cmds=$lt_archive_cmds_CXX
12654 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12655 postinstall_cmds=$lt_postinstall_cmds
12656 postuninstall_cmds=$lt_postuninstall_cmds
12657
12658 # Commands used to build a loadable module (assumed same as above if empty)
12659 module_cmds=$lt_module_cmds_CXX
12660 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12661
12662 # Commands to strip libraries.
12663 old_striplib=$lt_old_striplib
12664 striplib=$lt_striplib
12665
12666 # Dependencies to place before the objects being linked to create a
12667 # shared library.
12668 predep_objects=$lt_predep_objects_CXX
12669
12670 # Dependencies to place after the objects being linked to create a
12671 # shared library.
12672 postdep_objects=$lt_postdep_objects_CXX
12673
12674 # Dependencies to place before the objects being linked to create a
12675 # shared library.
12676 predeps=$lt_predeps_CXX
12677
12678 # Dependencies to place after the objects being linked to create a
12679 # shared library.
12680 postdeps=$lt_postdeps_CXX
12681
12682 # The library search path used internally by the compiler when linking
12683 # a shared library.
12684 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12685
12686 # Method to check whether dependent libraries are shared objects.
12687 deplibs_check_method=$lt_deplibs_check_method
12688
12689 # Command to use when deplibs_check_method == file_magic.
12690 file_magic_cmd=$lt_file_magic_cmd
12691
12692 # Flag that allows shared libraries with undefined symbols to be built.
12693 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12694
12695 # Flag that forces no undefined symbols.
12696 no_undefined_flag=$lt_no_undefined_flag_CXX
12697
12698 # Commands used to finish a libtool library installation in a directory.
12699 finish_cmds=$lt_finish_cmds
12700
12701 # Same as above, but a single script fragment to be evaled but not shown.
12702 finish_eval=$lt_finish_eval
12703
12704 # Take the output of nm and produce a listing of raw symbols and C names.
12705 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12706
12707 # Transform the output of nm in a proper C declaration
12708 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12709
12710 # Transform the output of nm in a C name address pair
12711 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12712
12713 # This is the shared library runtime path variable.
12714 runpath_var=$runpath_var
12715
12716 # This is the shared library path variable.
12717 shlibpath_var=$shlibpath_var
12718
12719 # Is shlibpath searched before the hard-coded library search path?
12720 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12721
12722 # How to hardcode a shared library path into an executable.
12723 hardcode_action=$hardcode_action_CXX
12724
12725 # Whether we should hardcode library paths into libraries.
12726 hardcode_into_libs=$hardcode_into_libs
12727
12728 # Flag to hardcode \$libdir into a binary during linking.
12729 # This must work even if \$libdir does not exist.
12730 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12731
12732 # If ld is used when linking, flag to hardcode \$libdir into
12733 # a binary during linking. This must work even if \$libdir does
12734 # not exist.
12735 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12736
12737 # Whether we need a single -rpath flag with a separated argument.
12738 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12739
12740 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12741 # resulting binary.
12742 hardcode_direct=$hardcode_direct_CXX
12743
12744 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12745 # resulting binary.
12746 hardcode_minus_L=$hardcode_minus_L_CXX
12747
12748 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12749 # the resulting binary.
12750 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12751
12752 # Set to yes if building a shared library automatically hardcodes DIR into the library
12753 # and all subsequent libraries and executables linked against it.
12754 hardcode_automatic=$hardcode_automatic_CXX
12755
12756 # Variables whose values should be saved in libtool wrapper scripts and
12757 # restored at relink time.
12758 variables_saved_for_relink="$variables_saved_for_relink"
12759
12760 # Whether libtool must link a program against all its dependency libraries.
12761 link_all_deplibs=$link_all_deplibs_CXX
12762
12763 # Compile-time system search path for libraries
12764 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12765
12766 # Run-time system search path for libraries
12767 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12768
12769 # Fix the shell variable \$srcfile for the compiler.
12770 fix_srcfile_path="$fix_srcfile_path_CXX"
12771
12772 # Set to yes if exported symbols are required.
12773 always_export_symbols=$always_export_symbols_CXX
12774
12775 # The commands to list exported symbols.
12776 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12777
12778 # The commands to extract the exported symbol list from a shared archive.
12779 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12780
12781 # Symbols that should not be listed in the preloaded symbols.
12782 exclude_expsyms=$lt_exclude_expsyms_CXX
12783
12784 # Symbols that must always be exported.
12785 include_expsyms=$lt_include_expsyms_CXX
12786
12787 # ### END LIBTOOL TAG CONFIG: $tagname
12788
12789 __EOF__
12790
12791
12792 else
12793   # If there is no Makefile yet, we rely on a make rule to execute
12794   # `config.status --recheck' to rerun these tests and create the
12795   # libtool script then.
12796   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12797   if test -f "$ltmain_in"; then
12798     test -f Makefile && make "$ltmain"
12799   fi
12800 fi
12801
12802
12803 ac_ext=c
12804 ac_cpp='$CPP $CPPFLAGS'
12805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12808
12809 CC=$lt_save_CC
12810 LDCXX=$LD
12811 LD=$lt_save_LD
12812 GCC=$lt_save_GCC
12813 with_gnu_ldcxx=$with_gnu_ld
12814 with_gnu_ld=$lt_save_with_gnu_ld
12815 lt_cv_path_LDCXX=$lt_cv_path_LD
12816 lt_cv_path_LD=$lt_save_path_LD
12817 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12818 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12819
12820         else
12821           tagname=""
12822         fi
12823         ;;
12824
12825       F77)
12826         if test -n "$F77" && test "X$F77" != "Xno"; then
12827           
12828 ac_ext=f
12829 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12830 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12831 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12832
12833
12834 archive_cmds_need_lc_F77=no
12835 allow_undefined_flag_F77=
12836 always_export_symbols_F77=no
12837 archive_expsym_cmds_F77=
12838 export_dynamic_flag_spec_F77=
12839 hardcode_direct_F77=no
12840 hardcode_libdir_flag_spec_F77=
12841 hardcode_libdir_flag_spec_ld_F77=
12842 hardcode_libdir_separator_F77=
12843 hardcode_minus_L_F77=no
12844 hardcode_automatic_F77=no
12845 module_cmds_F77=
12846 module_expsym_cmds_F77=
12847 link_all_deplibs_F77=unknown
12848 old_archive_cmds_F77=$old_archive_cmds
12849 no_undefined_flag_F77=
12850 whole_archive_flag_spec_F77=
12851 enable_shared_with_static_runtimes_F77=no
12852
12853 # Source file extension for f77 test sources.
12854 ac_ext=f
12855
12856 # Object file extension for compiled f77 test sources.
12857 objext=o
12858 objext_F77=$objext
12859
12860 # Code to be used in simple compile tests
12861 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12862
12863 # Code to be used in simple link tests
12864 lt_simple_link_test_code="      program t\n      end\n"
12865
12866 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12867
12868 # If no C compiler was specified, use CC.
12869 LTCC=${LTCC-"$CC"}
12870
12871 # If no C compiler flags were specified, use CFLAGS.
12872 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12873
12874 # Allow CC to be a program name with arguments.
12875 compiler=$CC
12876
12877
12878 # save warnings/boilerplate of simple test code
12879 ac_outfile=conftest.$ac_objext
12880 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12881 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12882 _lt_compiler_boilerplate=`cat conftest.err`
12883 $rm conftest*
12884
12885 ac_outfile=conftest.$ac_objext
12886 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12887 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12888 _lt_linker_boilerplate=`cat conftest.err`
12889 $rm conftest*
12890
12891
12892 # Allow CC to be a program name with arguments.
12893 lt_save_CC="$CC"
12894 CC=${F77-"f77"}
12895 compiler=$CC
12896 compiler_F77=$CC
12897 for cc_temp in $compiler""; do
12898   case $cc_temp in
12899     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12900     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12901     \-*) ;;
12902     *) break;;
12903   esac
12904 done
12905 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12906
12907
12908 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12909 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12910 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12911 echo "${ECHO_T}$can_build_shared" >&6
12912
12913 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12914 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12915 test "$can_build_shared" = "no" && enable_shared=no
12916
12917 # On AIX, shared libraries and static libraries use the same namespace, and
12918 # are all built from PIC.
12919 case $host_os in
12920 aix3*)
12921   test "$enable_shared" = yes && enable_static=no
12922   if test -n "$RANLIB"; then
12923     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12924     postinstall_cmds='$RANLIB $lib'
12925   fi
12926   ;;
12927 aix4* | aix5*)
12928   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12929     test "$enable_shared" = yes && enable_static=no
12930   fi
12931   ;;
12932 esac
12933 echo "$as_me:$LINENO: result: $enable_shared" >&5
12934 echo "${ECHO_T}$enable_shared" >&6
12935
12936 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12937 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12938 # Make sure either enable_shared or enable_static is yes.
12939 test "$enable_shared" = yes || enable_static=yes
12940 echo "$as_me:$LINENO: result: $enable_static" >&5
12941 echo "${ECHO_T}$enable_static" >&6
12942
12943 GCC_F77="$G77"
12944 LD_F77="$LD"
12945
12946 lt_prog_compiler_wl_F77=
12947 lt_prog_compiler_pic_F77=
12948 lt_prog_compiler_static_F77=
12949
12950 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12951 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12952  
12953   if test "$GCC" = yes; then
12954     lt_prog_compiler_wl_F77='-Wl,'
12955     lt_prog_compiler_static_F77='-static'
12956
12957     case $host_os in
12958       aix*)
12959       # All AIX code is PIC.
12960       if test "$host_cpu" = ia64; then
12961         # AIX 5 now supports IA64 processor
12962         lt_prog_compiler_static_F77='-Bstatic'
12963       fi
12964       ;;
12965
12966     amigaos*)
12967       # FIXME: we need at least 68020 code to build shared libraries, but
12968       # adding the `-m68020' flag to GCC prevents building anything better,
12969       # like `-m68040'.
12970       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12971       ;;
12972
12973     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12974       # PIC is the default for these OSes.
12975       ;;
12976
12977     mingw* | pw32* | os2*)
12978       # This hack is so that the source file can tell whether it is being
12979       # built for inclusion in a dll (and should export symbols for example).
12980       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12981       ;;
12982
12983     darwin* | rhapsody*)
12984       # PIC is the default on this platform
12985       # Common symbols not allowed in MH_DYLIB files
12986       lt_prog_compiler_pic_F77='-fno-common'
12987       ;;
12988
12989     interix3*)
12990       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12991       # Instead, we relocate shared libraries at runtime.
12992       ;;
12993
12994     msdosdjgpp*)
12995       # Just because we use GCC doesn't mean we suddenly get shared libraries
12996       # on systems that don't support them.
12997       lt_prog_compiler_can_build_shared_F77=no
12998       enable_shared=no
12999       ;;
13000
13001     sysv4*MP*)
13002       if test -d /usr/nec; then
13003         lt_prog_compiler_pic_F77=-Kconform_pic
13004       fi
13005       ;;
13006
13007     hpux*)
13008       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13009       # not for PA HP-UX.
13010       case $host_cpu in
13011       hppa*64*|ia64*)
13012         # +Z the default
13013         ;;
13014       *)
13015         lt_prog_compiler_pic_F77='-fPIC'
13016         ;;
13017       esac
13018       ;;
13019
13020     *)
13021       lt_prog_compiler_pic_F77='-fPIC'
13022       ;;
13023     esac
13024   else
13025     # PORTME Check for flag to pass linker flags through the system compiler.
13026     case $host_os in
13027     aix*)
13028       lt_prog_compiler_wl_F77='-Wl,'
13029       if test "$host_cpu" = ia64; then
13030         # AIX 5 now supports IA64 processor
13031         lt_prog_compiler_static_F77='-Bstatic'
13032       else
13033         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13034       fi
13035       ;;
13036       darwin*)
13037         # PIC is the default on this platform
13038         # Common symbols not allowed in MH_DYLIB files
13039        case $cc_basename in
13040          xlc*)
13041          lt_prog_compiler_pic_F77='-qnocommon'
13042          lt_prog_compiler_wl_F77='-Wl,'
13043          ;;
13044        esac
13045        ;;
13046
13047     mingw* | pw32* | os2*)
13048       # This hack is so that the source file can tell whether it is being
13049       # built for inclusion in a dll (and should export symbols for example).
13050       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13051       ;;
13052
13053     hpux9* | hpux10* | hpux11*)
13054       lt_prog_compiler_wl_F77='-Wl,'
13055       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13056       # not for PA HP-UX.
13057       case $host_cpu in
13058       hppa*64*|ia64*)
13059         # +Z the default
13060         ;;
13061       *)
13062         lt_prog_compiler_pic_F77='+Z'
13063         ;;
13064       esac
13065       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13066       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13067       ;;
13068
13069     irix5* | irix6* | nonstopux*)
13070       lt_prog_compiler_wl_F77='-Wl,'
13071       # PIC (with -KPIC) is the default.
13072       lt_prog_compiler_static_F77='-non_shared'
13073       ;;
13074
13075     newsos6)
13076       lt_prog_compiler_pic_F77='-KPIC'
13077       lt_prog_compiler_static_F77='-Bstatic'
13078       ;;
13079
13080     linux*)
13081       case $cc_basename in
13082       icc* | ecc*)
13083         lt_prog_compiler_wl_F77='-Wl,'
13084         lt_prog_compiler_pic_F77='-KPIC'
13085         lt_prog_compiler_static_F77='-static'
13086         ;;
13087       pgcc* | pgf77* | pgf90* | pgf95*)
13088         # Portland Group compilers (*not* the Pentium gcc compiler,
13089         # which looks to be a dead project)
13090         lt_prog_compiler_wl_F77='-Wl,'
13091         lt_prog_compiler_pic_F77='-fpic'
13092         lt_prog_compiler_static_F77='-Bstatic'
13093         ;;
13094       ccc*)
13095         lt_prog_compiler_wl_F77='-Wl,'
13096         # All Alpha code is PIC.
13097         lt_prog_compiler_static_F77='-non_shared'
13098         ;;
13099       esac
13100       ;;
13101
13102     osf3* | osf4* | osf5*)
13103       lt_prog_compiler_wl_F77='-Wl,'
13104       # All OSF/1 code is PIC.
13105       lt_prog_compiler_static_F77='-non_shared'
13106       ;;
13107
13108     solaris*)
13109       lt_prog_compiler_pic_F77='-KPIC'
13110       lt_prog_compiler_static_F77='-Bstatic'
13111       case $cc_basename in
13112       f77* | f90* | f95*)
13113         lt_prog_compiler_wl_F77='-Qoption ld ';;
13114       *)
13115         lt_prog_compiler_wl_F77='-Wl,';;
13116       esac
13117       ;;
13118
13119     sunos4*)
13120       lt_prog_compiler_wl_F77='-Qoption ld '
13121       lt_prog_compiler_pic_F77='-PIC'
13122       lt_prog_compiler_static_F77='-Bstatic'
13123       ;;
13124
13125     sysv4 | sysv4.2uw2* | sysv4.3*)
13126       lt_prog_compiler_wl_F77='-Wl,'
13127       lt_prog_compiler_pic_F77='-KPIC'
13128       lt_prog_compiler_static_F77='-Bstatic'
13129       ;;
13130
13131     sysv4*MP*)
13132       if test -d /usr/nec ;then
13133         lt_prog_compiler_pic_F77='-Kconform_pic'
13134         lt_prog_compiler_static_F77='-Bstatic'
13135       fi
13136       ;;
13137
13138     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13139       lt_prog_compiler_wl_F77='-Wl,'
13140       lt_prog_compiler_pic_F77='-KPIC'
13141       lt_prog_compiler_static_F77='-Bstatic'
13142       ;;
13143
13144     unicos*)
13145       lt_prog_compiler_wl_F77='-Wl,'
13146       lt_prog_compiler_can_build_shared_F77=no
13147       ;;
13148
13149     uts4*)
13150       lt_prog_compiler_pic_F77='-pic'
13151       lt_prog_compiler_static_F77='-Bstatic'
13152       ;;
13153
13154     *)
13155       lt_prog_compiler_can_build_shared_F77=no
13156       ;;
13157     esac
13158   fi
13159
13160 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13161 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13162
13163 #
13164 # Check to make sure the PIC flag actually works.
13165 #
13166 if test -n "$lt_prog_compiler_pic_F77"; then
13167   
13168 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13169 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13170 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13171   echo $ECHO_N "(cached) $ECHO_C" >&6
13172 else
13173   lt_prog_compiler_pic_works_F77=no
13174   ac_outfile=conftest.$ac_objext
13175    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13176    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13177    # Insert the option either (1) after the last *FLAGS variable, or
13178    # (2) before a word containing "conftest.", or (3) at the end.
13179    # Note that $ac_compile itself does not contain backslashes and begins
13180    # with a dollar sign (not a hyphen), so the echo should work correctly.
13181    # The option is referenced via a variable to avoid confusing sed.
13182    lt_compile=`echo "$ac_compile" | $SED \
13183    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13184    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13185    -e 's:$: $lt_compiler_flag:'`
13186    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13187    (eval "$lt_compile" 2>conftest.err)
13188    ac_status=$?
13189    cat conftest.err >&5
13190    echo "$as_me:__oline__: \$? = $ac_status" >&5
13191    if (exit $ac_status) && test -s "$ac_outfile"; then
13192      # The compiler can only warn and ignore the option if not recognized
13193      # So say no if there are warnings other than the usual output.
13194      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13195      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13196      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13197        lt_prog_compiler_pic_works_F77=yes
13198      fi
13199    fi
13200    $rm conftest*
13201
13202 fi
13203 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13204 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13205
13206 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13207     case $lt_prog_compiler_pic_F77 in
13208      "" | " "*) ;;
13209      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13210      esac
13211 else
13212     lt_prog_compiler_pic_F77=
13213      lt_prog_compiler_can_build_shared_F77=no
13214 fi
13215
13216 fi
13217 case $host_os in
13218   # For platforms which do not support PIC, -DPIC is meaningless:
13219   *djgpp*)
13220     lt_prog_compiler_pic_F77=
13221     ;;
13222   *)
13223     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13224     ;;
13225 esac
13226
13227 #
13228 # Check to make sure the static flag actually works.
13229 #
13230 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13231 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13232 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13233 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13234   echo $ECHO_N "(cached) $ECHO_C" >&6
13235 else
13236   lt_prog_compiler_static_works_F77=no
13237    save_LDFLAGS="$LDFLAGS"
13238    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13239    printf "$lt_simple_link_test_code" > conftest.$ac_ext
13240    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13241      # The linker can only warn and ignore the option if not recognized
13242      # So say no if there are warnings
13243      if test -s conftest.err; then
13244        # Append any errors to the config.log.
13245        cat conftest.err 1>&5
13246        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13247        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13248        if diff conftest.exp conftest.er2 >/dev/null; then
13249          lt_prog_compiler_static_works_F77=yes
13250        fi
13251      else
13252        lt_prog_compiler_static_works_F77=yes
13253      fi
13254    fi
13255    $rm conftest*
13256    LDFLAGS="$save_LDFLAGS"
13257
13258 fi
13259 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13260 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13261
13262 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13263     :
13264 else
13265     lt_prog_compiler_static_F77=
13266 fi
13267
13268
13269 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13270 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13271 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13272   echo $ECHO_N "(cached) $ECHO_C" >&6
13273 else
13274   lt_cv_prog_compiler_c_o_F77=no
13275    $rm -r conftest 2>/dev/null
13276    mkdir conftest
13277    cd conftest
13278    mkdir out
13279    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13280
13281    lt_compiler_flag="-o out/conftest2.$ac_objext"
13282    # Insert the option either (1) after the last *FLAGS variable, or
13283    # (2) before a word containing "conftest.", or (3) at the end.
13284    # Note that $ac_compile itself does not contain backslashes and begins
13285    # with a dollar sign (not a hyphen), so the echo should work correctly.
13286    lt_compile=`echo "$ac_compile" | $SED \
13287    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13288    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13289    -e 's:$: $lt_compiler_flag:'`
13290    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13291    (eval "$lt_compile" 2>out/conftest.err)
13292    ac_status=$?
13293    cat out/conftest.err >&5
13294    echo "$as_me:__oline__: \$? = $ac_status" >&5
13295    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13296    then
13297      # The compiler can only warn and ignore the option if not recognized
13298      # So say no if there are warnings
13299      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13300      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13301      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13302        lt_cv_prog_compiler_c_o_F77=yes
13303      fi
13304    fi
13305    chmod u+w . 2>&5
13306    $rm conftest*
13307    # SGI C++ compiler will create directory out/ii_files/ for
13308    # template instantiation
13309    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13310    $rm out/* && rmdir out
13311    cd ..
13312    rmdir conftest
13313    $rm conftest*
13314
13315 fi
13316 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13317 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13318
13319
13320 hard_links="nottested"
13321 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13322   # do not overwrite the value of need_locks provided by the user
13323   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13324 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13325   hard_links=yes
13326   $rm conftest*
13327   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13328   touch conftest.a
13329   ln conftest.a conftest.b 2>&5 || hard_links=no
13330   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13331   echo "$as_me:$LINENO: result: $hard_links" >&5
13332 echo "${ECHO_T}$hard_links" >&6
13333   if test "$hard_links" = no; then
13334     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13335 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13336     need_locks=warn
13337   fi
13338 else
13339   need_locks=no
13340 fi
13341
13342 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13343 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13344
13345   runpath_var=
13346   allow_undefined_flag_F77=
13347   enable_shared_with_static_runtimes_F77=no
13348   archive_cmds_F77=
13349   archive_expsym_cmds_F77=
13350   old_archive_From_new_cmds_F77=
13351   old_archive_from_expsyms_cmds_F77=
13352   export_dynamic_flag_spec_F77=
13353   whole_archive_flag_spec_F77=
13354   thread_safe_flag_spec_F77=
13355   hardcode_libdir_flag_spec_F77=
13356   hardcode_libdir_flag_spec_ld_F77=
13357   hardcode_libdir_separator_F77=
13358   hardcode_direct_F77=no
13359   hardcode_minus_L_F77=no
13360   hardcode_shlibpath_var_F77=unsupported
13361   link_all_deplibs_F77=unknown
13362   hardcode_automatic_F77=no
13363   module_cmds_F77=
13364   module_expsym_cmds_F77=
13365   always_export_symbols_F77=no
13366   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13367   # include_expsyms should be a list of space-separated symbols to be *always*
13368   # included in the symbol list
13369   include_expsyms_F77=
13370   # exclude_expsyms can be an extended regexp of symbols to exclude
13371   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13372   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13373   # as well as any symbol that contains `d'.
13374   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13375   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13376   # platforms (ab)use it in PIC code, but their linkers get confused if
13377   # the symbol is explicitly referenced.  Since portable code cannot
13378   # rely on this symbol name, it's probably fine to never include it in
13379   # preloaded symbol tables.
13380   extract_expsyms_cmds=
13381   # Just being paranoid about ensuring that cc_basename is set.
13382   for cc_temp in $compiler""; do
13383   case $cc_temp in
13384     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13385     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13386     \-*) ;;
13387     *) break;;
13388   esac
13389 done
13390 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13391
13392   case $host_os in
13393   cygwin* | mingw* | pw32*)
13394     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13395     # When not using gcc, we currently assume that we are using
13396     # Microsoft Visual C++.
13397     if test "$GCC" != yes; then
13398       with_gnu_ld=no
13399     fi
13400     ;;
13401   interix*)
13402     # we just hope/assume this is gcc and not c89 (= MSVC++)
13403     with_gnu_ld=yes
13404     ;;
13405   openbsd*)
13406     with_gnu_ld=no
13407     ;;
13408   esac
13409
13410   ld_shlibs_F77=yes
13411   if test "$with_gnu_ld" = yes; then
13412     # If archive_cmds runs LD, not CC, wlarc should be empty
13413     wlarc='${wl}'
13414
13415     # Set some defaults for GNU ld with shared library support. These
13416     # are reset later if shared libraries are not supported. Putting them
13417     # here allows them to be overridden if necessary.
13418     runpath_var=LD_RUN_PATH
13419     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13420     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13421     # ancient GNU ld didn't support --whole-archive et. al.
13422     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13423         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13424       else
13425         whole_archive_flag_spec_F77=
13426     fi
13427     supports_anon_versioning=no
13428     case `$LD -v 2>/dev/null` in
13429       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13430       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13431       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13432       *\ 2.11.*) ;; # other 2.11 versions
13433       *) supports_anon_versioning=yes ;;
13434     esac
13435
13436     # See if GNU ld supports shared libraries.
13437     case $host_os in
13438     aix3* | aix4* | aix5*)
13439       # On AIX/PPC, the GNU linker is very broken
13440       if test "$host_cpu" != ia64; then
13441         ld_shlibs_F77=no
13442         cat <<EOF 1>&2
13443
13444 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13445 *** to be unable to reliably create shared libraries on AIX.
13446 *** Therefore, libtool is disabling shared libraries support.  If you
13447 *** really care for shared libraries, you may want to modify your PATH
13448 *** so that a non-GNU linker is found, and then restart.
13449
13450 EOF
13451       fi
13452       ;;
13453
13454     amigaos*)
13455       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)'
13456       hardcode_libdir_flag_spec_F77='-L$libdir'
13457       hardcode_minus_L_F77=yes
13458
13459       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13460       # that the semantics of dynamic libraries on AmigaOS, at least up
13461       # to version 4, is to share data among multiple programs linked
13462       # with the same dynamic library.  Since this doesn't match the
13463       # behavior of shared libraries on other platforms, we can't use
13464       # them.
13465       ld_shlibs_F77=no
13466       ;;
13467
13468     beos*)
13469       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13470         allow_undefined_flag_F77=unsupported
13471         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13472         # support --undefined.  This deserves some investigation.  FIXME
13473         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13474       else
13475         ld_shlibs_F77=no
13476       fi
13477       ;;
13478
13479     cygwin* | mingw* | pw32*)
13480       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13481       # as there is no search path for DLLs.
13482       hardcode_libdir_flag_spec_F77='-L$libdir'
13483       allow_undefined_flag_F77=unsupported
13484       always_export_symbols_F77=no
13485       enable_shared_with_static_runtimes_F77=yes
13486       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13487
13488       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13489         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13490         # If the export-symbols file already is a .def file (1st line
13491         # is EXPORTS), use it as is; otherwise, prepend...
13492         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13493           cp $export_symbols $output_objdir/$soname.def;
13494         else
13495           echo EXPORTS > $output_objdir/$soname.def;
13496           cat $export_symbols >> $output_objdir/$soname.def;
13497         fi~
13498         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13499       else
13500         ld_shlibs_F77=no
13501       fi
13502       ;;
13503
13504     interix3*)
13505       hardcode_direct_F77=no
13506       hardcode_shlibpath_var_F77=no
13507       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13508       export_dynamic_flag_spec_F77='${wl}-E'
13509       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13510       # Instead, shared libraries are loaded at an image base (0x10000000 by
13511       # default) and relocated if they conflict, which is a slow very memory
13512       # consuming and fragmenting process.  To avoid this, we pick a random,
13513       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13514       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13515       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'
13516       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'
13517       ;;
13518
13519     linux*)
13520       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13521         tmp_addflag=
13522         case $cc_basename,$host_cpu in
13523         pgcc*)                          # Portland Group C compiler
13524           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'
13525           tmp_addflag=' $pic_flag'
13526           ;;
13527         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
13528           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'
13529           tmp_addflag=' $pic_flag -Mnomain' ;;
13530         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
13531           tmp_addflag=' -i_dynamic' ;;
13532         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
13533           tmp_addflag=' -i_dynamic -nofor_main' ;;
13534         ifc* | ifort*)                  # Intel Fortran compiler
13535           tmp_addflag=' -nofor_main' ;;
13536         esac
13537         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13538
13539         if test $supports_anon_versioning = yes; then
13540           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13541   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13542   $echo "local: *; };" >> $output_objdir/$libname.ver~
13543           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13544         fi
13545       else
13546         ld_shlibs_F77=no
13547       fi
13548       ;;
13549
13550     netbsd*)
13551       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13552         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13553         wlarc=
13554       else
13555         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13556         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13557       fi
13558       ;;
13559
13560     solaris*)
13561       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13562         ld_shlibs_F77=no
13563         cat <<EOF 1>&2
13564
13565 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13566 *** create shared libraries on Solaris systems.  Therefore, libtool
13567 *** is disabling shared libraries support.  We urge you to upgrade GNU
13568 *** binutils to release 2.9.1 or newer.  Another option is to modify
13569 *** your PATH or compiler configuration so that the native linker is
13570 *** used, and then restart.
13571
13572 EOF
13573       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13574         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13575         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13576       else
13577         ld_shlibs_F77=no
13578       fi
13579       ;;
13580
13581     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13582       case `$LD -v 2>&1` in
13583         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 
13584         ld_shlibs_F77=no
13585         cat <<_LT_EOF 1>&2
13586
13587 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13588 *** reliably create shared libraries on SCO systems.  Therefore, libtool
13589 *** is disabling shared libraries support.  We urge you to upgrade GNU
13590 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13591 *** your PATH or compiler configuration so that the native linker is
13592 *** used, and then restart.
13593
13594 _LT_EOF
13595         ;;
13596         *)
13597           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13598             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13599             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13600             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13601           else
13602             ld_shlibs_F77=no
13603           fi
13604         ;;
13605       esac
13606       ;;
13607
13608     sunos4*)
13609       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13610       wlarc=
13611       hardcode_direct_F77=yes
13612       hardcode_shlibpath_var_F77=no
13613       ;;
13614
13615     *)
13616       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13617         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13618         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13619       else
13620         ld_shlibs_F77=no
13621       fi
13622       ;;
13623     esac
13624
13625     if test "$ld_shlibs_F77" = no; then
13626       runpath_var=
13627       hardcode_libdir_flag_spec_F77=
13628       export_dynamic_flag_spec_F77=
13629       whole_archive_flag_spec_F77=
13630     fi
13631   else
13632     # PORTME fill in a description of your system's linker (not GNU ld)
13633     case $host_os in
13634     aix3*)
13635       allow_undefined_flag_F77=unsupported
13636       always_export_symbols_F77=yes
13637       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'
13638       # Note: this linker hardcodes the directories in LIBPATH if there
13639       # are no directories specified by -L.
13640       hardcode_minus_L_F77=yes
13641       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13642         # Neither direct hardcoding nor static linking is supported with a
13643         # broken collect2.
13644         hardcode_direct_F77=unsupported
13645       fi
13646       ;;
13647
13648     aix4* | aix5*)
13649       if test "$host_cpu" = ia64; then
13650         # On IA64, the linker does run time linking by default, so we don't
13651         # have to do anything special.
13652         aix_use_runtimelinking=no
13653         exp_sym_flag='-Bexport'
13654         no_entry_flag=""
13655       else
13656         # If we're using GNU nm, then we don't want the "-C" option.
13657         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13658         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13659           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'
13660         else
13661           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'
13662         fi
13663         aix_use_runtimelinking=no
13664
13665         # Test if we are trying to use run time linking or normal
13666         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13667         # need to do runtime linking.
13668         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13669           for ld_flag in $LDFLAGS; do
13670           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13671             aix_use_runtimelinking=yes
13672             break
13673           fi
13674           done
13675           ;;
13676         esac
13677
13678         exp_sym_flag='-bexport'
13679         no_entry_flag='-bnoentry'
13680       fi
13681
13682       # When large executables or shared objects are built, AIX ld can
13683       # have problems creating the table of contents.  If linking a library
13684       # or program results in "error TOC overflow" add -mminimal-toc to
13685       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13686       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13687
13688       archive_cmds_F77=''
13689       hardcode_direct_F77=yes
13690       hardcode_libdir_separator_F77=':'
13691       link_all_deplibs_F77=yes
13692
13693       if test "$GCC" = yes; then
13694         case $host_os in aix4.[012]|aix4.[012].*)
13695         # We only want to do this on AIX 4.2 and lower, the check
13696         # below for broken collect2 doesn't work under 4.3+
13697           collect2name=`${CC} -print-prog-name=collect2`
13698           if test -f "$collect2name" && \
13699            strings "$collect2name" | grep resolve_lib_name >/dev/null
13700           then
13701           # We have reworked collect2
13702           hardcode_direct_F77=yes
13703           else
13704           # We have old collect2
13705           hardcode_direct_F77=unsupported
13706           # It fails to find uninstalled libraries when the uninstalled
13707           # path is not listed in the libpath.  Setting hardcode_minus_L
13708           # to unsupported forces relinking
13709           hardcode_minus_L_F77=yes
13710           hardcode_libdir_flag_spec_F77='-L$libdir'
13711           hardcode_libdir_separator_F77=
13712           fi
13713           ;;
13714         esac
13715         shared_flag='-shared'
13716         if test "$aix_use_runtimelinking" = yes; then
13717           shared_flag="$shared_flag "'${wl}-G'
13718         fi
13719       else
13720         # not using gcc
13721         if test "$host_cpu" = ia64; then
13722         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13723         # chokes on -Wl,-G. The following line is correct:
13724           shared_flag='-G'
13725         else
13726           if test "$aix_use_runtimelinking" = yes; then
13727             shared_flag='${wl}-G'
13728           else
13729             shared_flag='${wl}-bM:SRE'
13730           fi
13731         fi
13732       fi
13733
13734       # It seems that -bexpall does not export symbols beginning with
13735       # underscore (_), so it is better to generate a list of symbols to export.
13736       always_export_symbols_F77=yes
13737       if test "$aix_use_runtimelinking" = yes; then
13738         # Warning - without using the other runtime loading flags (-brtl),
13739         # -berok will link without error, but may produce a broken library.
13740         allow_undefined_flag_F77='-berok'
13741        # Determine the default libpath from the value encoded in an empty executable.
13742        cat >conftest.$ac_ext <<_ACEOF
13743       program main
13744
13745       end
13746 _ACEOF
13747 rm -f conftest.$ac_objext conftest$ac_exeext
13748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13749   (eval $ac_link) 2>conftest.er1
13750   ac_status=$?
13751   grep -v '^ *+' conftest.er1 >conftest.err
13752   rm -f conftest.er1
13753   cat conftest.err >&5
13754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755   (exit $ac_status); } &&
13756          { ac_try='test -z "$ac_f77_werror_flag"
13757                          || test ! -s conftest.err'
13758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13759   (eval $ac_try) 2>&5
13760   ac_status=$?
13761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13762   (exit $ac_status); }; } &&
13763          { ac_try='test -s conftest$ac_exeext'
13764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13765   (eval $ac_try) 2>&5
13766   ac_status=$?
13767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768   (exit $ac_status); }; }; then
13769   
13770 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13771 }'`
13772 # Check for a 64-bit object if we didn't find anything.
13773 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; }
13774 }'`; fi
13775 else
13776   echo "$as_me: failed program was:" >&5
13777 sed 's/^/| /' conftest.$ac_ext >&5
13778
13779 fi
13780 rm -f conftest.err conftest.$ac_objext \
13781       conftest$ac_exeext conftest.$ac_ext
13782 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13783
13784        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13785         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"
13786        else
13787         if test "$host_cpu" = ia64; then
13788           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13789           allow_undefined_flag_F77="-z nodefs"
13790           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"
13791         else
13792          # Determine the default libpath from the value encoded in an empty executable.
13793          cat >conftest.$ac_ext <<_ACEOF
13794       program main
13795
13796       end
13797 _ACEOF
13798 rm -f conftest.$ac_objext conftest$ac_exeext
13799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13800   (eval $ac_link) 2>conftest.er1
13801   ac_status=$?
13802   grep -v '^ *+' conftest.er1 >conftest.err
13803   rm -f conftest.er1
13804   cat conftest.err >&5
13805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13806   (exit $ac_status); } &&
13807          { ac_try='test -z "$ac_f77_werror_flag"
13808                          || test ! -s conftest.err'
13809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13810   (eval $ac_try) 2>&5
13811   ac_status=$?
13812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813   (exit $ac_status); }; } &&
13814          { ac_try='test -s conftest$ac_exeext'
13815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13816   (eval $ac_try) 2>&5
13817   ac_status=$?
13818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13819   (exit $ac_status); }; }; then
13820   
13821 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13822 }'`
13823 # Check for a 64-bit object if we didn't find anything.
13824 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; }
13825 }'`; fi
13826 else
13827   echo "$as_me: failed program was:" >&5
13828 sed 's/^/| /' conftest.$ac_ext >&5
13829
13830 fi
13831 rm -f conftest.err conftest.$ac_objext \
13832       conftest$ac_exeext conftest.$ac_ext
13833 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13834
13835          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13836           # Warning - without using the other run time loading flags,
13837           # -berok will link without error, but may produce a broken library.
13838           no_undefined_flag_F77=' ${wl}-bernotok'
13839           allow_undefined_flag_F77=' ${wl}-berok'
13840           # Exported symbols can be pulled into shared objects from archives
13841           whole_archive_flag_spec_F77='$convenience'
13842           archive_cmds_need_lc_F77=yes
13843           # This is similar to how AIX traditionally builds its shared libraries.
13844           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'
13845         fi
13846       fi
13847       ;;
13848
13849     amigaos*)
13850       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)'
13851       hardcode_libdir_flag_spec_F77='-L$libdir'
13852       hardcode_minus_L_F77=yes
13853       # see comment about different semantics on the GNU ld section
13854       ld_shlibs_F77=no
13855       ;;
13856
13857     bsdi[45]*)
13858       export_dynamic_flag_spec_F77=-rdynamic
13859       ;;
13860
13861     cygwin* | mingw* | pw32*)
13862       # When not using gcc, we currently assume that we are using
13863       # Microsoft Visual C++.
13864       # hardcode_libdir_flag_spec is actually meaningless, as there is
13865       # no search path for DLLs.
13866       hardcode_libdir_flag_spec_F77=' '
13867       allow_undefined_flag_F77=unsupported
13868       # Tell ltmain to make .lib files, not .a files.
13869       libext=lib
13870       # Tell ltmain to make .dll files, not .so files.
13871       shrext_cmds=".dll"
13872       # FIXME: Setting linknames here is a bad hack.
13873       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13874       # The linker will automatically build a .lib file if we build a DLL.
13875       old_archive_From_new_cmds_F77='true'
13876       # FIXME: Should let the user specify the lib program.
13877       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13878       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
13879       enable_shared_with_static_runtimes_F77=yes
13880       ;;
13881
13882     darwin* | rhapsody*)
13883       case $host_os in
13884         rhapsody* | darwin1.[012])
13885          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13886          ;;
13887        *) # Darwin 1.3 on
13888          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13889            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13890          else
13891            case ${MACOSX_DEPLOYMENT_TARGET} in
13892              10.[012])
13893                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13894                ;;
13895              10.*)
13896                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13897                ;;
13898            esac
13899          fi
13900          ;;
13901       esac
13902       archive_cmds_need_lc_F77=no
13903       hardcode_direct_F77=no
13904       hardcode_automatic_F77=yes
13905       hardcode_shlibpath_var_F77=unsupported
13906       whole_archive_flag_spec_F77=''
13907       link_all_deplibs_F77=yes
13908     if test "$GCC" = yes ; then
13909         output_verbose_link_cmd='echo'
13910         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13911       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13912       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13913       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}'
13914       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}'
13915     else
13916       case $cc_basename in
13917         xlc*)
13918          output_verbose_link_cmd='echo'
13919          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13920          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13921           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13922          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}'
13923           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}'
13924           ;;
13925        *)
13926          ld_shlibs_F77=no
13927           ;;
13928       esac
13929     fi
13930       ;;
13931
13932     dgux*)
13933       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13934       hardcode_libdir_flag_spec_F77='-L$libdir'
13935       hardcode_shlibpath_var_F77=no
13936       ;;
13937
13938     freebsd1*)
13939       ld_shlibs_F77=no
13940       ;;
13941
13942     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13943     # support.  Future versions do this automatically, but an explicit c++rt0.o
13944     # does not break anything, and helps significantly (at the cost of a little
13945     # extra space).
13946     freebsd2.2*)
13947       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13948       hardcode_libdir_flag_spec_F77='-R$libdir'
13949       hardcode_direct_F77=yes
13950       hardcode_shlibpath_var_F77=no
13951       ;;
13952
13953     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13954     freebsd2*)
13955       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13956       hardcode_direct_F77=yes
13957       hardcode_minus_L_F77=yes
13958       hardcode_shlibpath_var_F77=no
13959       ;;
13960
13961     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13962     freebsd* | kfreebsd*-gnu | dragonfly*)
13963       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13964       hardcode_libdir_flag_spec_F77='-R$libdir'
13965       hardcode_direct_F77=yes
13966       hardcode_shlibpath_var_F77=no
13967       ;;
13968
13969     hpux9*)
13970       if test "$GCC" = yes; then
13971         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'
13972       else
13973         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'
13974       fi
13975       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13976       hardcode_libdir_separator_F77=:
13977       hardcode_direct_F77=yes
13978
13979       # hardcode_minus_L: Not really in the search PATH,
13980       # but as the default location of the library.
13981       hardcode_minus_L_F77=yes
13982       export_dynamic_flag_spec_F77='${wl}-E'
13983       ;;
13984
13985     hpux10*)
13986       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13987         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13988       else
13989         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13990       fi
13991       if test "$with_gnu_ld" = no; then
13992         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13993         hardcode_libdir_separator_F77=:
13994
13995         hardcode_direct_F77=yes
13996         export_dynamic_flag_spec_F77='${wl}-E'
13997
13998         # hardcode_minus_L: Not really in the search PATH,
13999         # but as the default location of the library.
14000         hardcode_minus_L_F77=yes
14001       fi
14002       ;;
14003
14004     hpux11*)
14005       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14006         case $host_cpu in
14007         hppa*64*)
14008           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14009           ;;
14010         ia64*)
14011           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14012           ;;
14013         *)
14014           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14015           ;;
14016         esac
14017       else
14018         case $host_cpu in
14019         hppa*64*)
14020           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14021           ;;
14022         ia64*)
14023           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14024           ;;
14025         *)
14026           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14027           ;;
14028         esac
14029       fi
14030       if test "$with_gnu_ld" = no; then
14031         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14032         hardcode_libdir_separator_F77=:
14033
14034         case $host_cpu in
14035         hppa*64*|ia64*)
14036           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14037           hardcode_direct_F77=no
14038           hardcode_shlibpath_var_F77=no
14039           ;;
14040         *)
14041           hardcode_direct_F77=yes
14042           export_dynamic_flag_spec_F77='${wl}-E'
14043
14044           # hardcode_minus_L: Not really in the search PATH,
14045           # but as the default location of the library.
14046           hardcode_minus_L_F77=yes
14047           ;;
14048         esac
14049       fi
14050       ;;
14051
14052     irix5* | irix6* | nonstopux*)
14053       if test "$GCC" = yes; then
14054         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'
14055       else
14056         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'
14057         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14058       fi
14059       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14060       hardcode_libdir_separator_F77=:
14061       link_all_deplibs_F77=yes
14062       ;;
14063
14064     netbsd*)
14065       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14066         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14067       else
14068         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14069       fi
14070       hardcode_libdir_flag_spec_F77='-R$libdir'
14071       hardcode_direct_F77=yes
14072       hardcode_shlibpath_var_F77=no
14073       ;;
14074
14075     newsos6)
14076       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14077       hardcode_direct_F77=yes
14078       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14079       hardcode_libdir_separator_F77=:
14080       hardcode_shlibpath_var_F77=no
14081       ;;
14082
14083     openbsd*)
14084       hardcode_direct_F77=yes
14085       hardcode_shlibpath_var_F77=no
14086       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14087         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14088         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14089         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14090         export_dynamic_flag_spec_F77='${wl}-E'
14091       else
14092        case $host_os in
14093          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14094            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14095            hardcode_libdir_flag_spec_F77='-R$libdir'
14096            ;;
14097          *)
14098            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14099            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14100            ;;
14101        esac
14102       fi
14103       ;;
14104
14105     os2*)
14106       hardcode_libdir_flag_spec_F77='-L$libdir'
14107       hardcode_minus_L_F77=yes
14108       allow_undefined_flag_F77=unsupported
14109       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'
14110       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14111       ;;
14112
14113     osf3*)
14114       if test "$GCC" = yes; then
14115         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14116         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'
14117       else
14118         allow_undefined_flag_F77=' -expect_unresolved \*'
14119         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'
14120       fi
14121       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14122       hardcode_libdir_separator_F77=:
14123       ;;
14124
14125     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14126       if test "$GCC" = yes; then
14127         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14128         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'
14129         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14130       else
14131         allow_undefined_flag_F77=' -expect_unresolved \*'
14132         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'
14133         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~
14134         $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'
14135
14136         # Both c and cxx compiler support -rpath directly
14137         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14138       fi
14139       hardcode_libdir_separator_F77=:
14140       ;;
14141
14142     solaris*)
14143       no_undefined_flag_F77=' -z text'
14144       if test "$GCC" = yes; then
14145         wlarc='${wl}'
14146         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14147         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14148           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14149       else
14150         wlarc=''
14151         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14152         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14153         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14154       fi
14155       hardcode_libdir_flag_spec_F77='-R$libdir'
14156       hardcode_shlibpath_var_F77=no
14157       case $host_os in
14158       solaris2.[0-5] | solaris2.[0-5].*) ;;
14159       *)
14160         # The compiler driver will combine linker options so we
14161         # cannot just pass the convience library names through
14162         # without $wl, iff we do not link with $LD.
14163         # Luckily, gcc supports the same syntax we need for Sun Studio.
14164         # Supported since Solaris 2.6 (maybe 2.5.1?)
14165         case $wlarc in
14166         '')
14167           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14168         *)
14169           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' ;;
14170         esac ;;
14171       esac
14172       link_all_deplibs_F77=yes
14173       ;;
14174
14175     sunos4*)
14176       if test "x$host_vendor" = xsequent; then
14177         # Use $CC to link under sequent, because it throws in some extra .o
14178         # files that make .init and .fini sections work.
14179         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14180       else
14181         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14182       fi
14183       hardcode_libdir_flag_spec_F77='-L$libdir'
14184       hardcode_direct_F77=yes
14185       hardcode_minus_L_F77=yes
14186       hardcode_shlibpath_var_F77=no
14187       ;;
14188
14189     sysv4)
14190       case $host_vendor in
14191         sni)
14192           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14193           hardcode_direct_F77=yes # is this really true???
14194         ;;
14195         siemens)
14196           ## LD is ld it makes a PLAMLIB
14197           ## CC just makes a GrossModule.
14198           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14199           reload_cmds_F77='$CC -r -o $output$reload_objs'
14200           hardcode_direct_F77=no
14201         ;;
14202         motorola)
14203           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14204           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14205         ;;
14206       esac
14207       runpath_var='LD_RUN_PATH'
14208       hardcode_shlibpath_var_F77=no
14209       ;;
14210
14211     sysv4.3*)
14212       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14213       hardcode_shlibpath_var_F77=no
14214       export_dynamic_flag_spec_F77='-Bexport'
14215       ;;
14216
14217     sysv4*MP*)
14218       if test -d /usr/nec; then
14219         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14220         hardcode_shlibpath_var_F77=no
14221         runpath_var=LD_RUN_PATH
14222         hardcode_runpath_var=yes
14223         ld_shlibs_F77=yes
14224       fi
14225       ;;
14226
14227     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14228       no_undefined_flag_F77='${wl}-z,text'
14229       archive_cmds_need_lc_F77=no
14230       hardcode_shlibpath_var_F77=no
14231       runpath_var='LD_RUN_PATH'
14232
14233       if test "$GCC" = yes; then
14234         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14235         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14236       else
14237         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14238         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14239       fi
14240       ;;
14241
14242     sysv5* | sco3.2v5* | sco5v6*)
14243       # Note: We can NOT use -z defs as we might desire, because we do not
14244       # link with -lc, and that would cause any symbols used from libc to
14245       # always be unresolved, which means just about no library would
14246       # ever link correctly.  If we're not using GNU ld we use -z text
14247       # though, which does catch some bad symbols but isn't as heavy-handed
14248       # as -z defs.
14249       no_undefined_flag_F77='${wl}-z,text'
14250       allow_undefined_flag_F77='${wl}-z,nodefs'
14251       archive_cmds_need_lc_F77=no
14252       hardcode_shlibpath_var_F77=no
14253       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14254       hardcode_libdir_separator_F77=':'
14255       link_all_deplibs_F77=yes
14256       export_dynamic_flag_spec_F77='${wl}-Bexport'
14257       runpath_var='LD_RUN_PATH'
14258
14259       if test "$GCC" = yes; then
14260         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14261         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14262       else
14263         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14264         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14265       fi
14266       ;;
14267
14268     uts4*)
14269       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14270       hardcode_libdir_flag_spec_F77='-L$libdir'
14271       hardcode_shlibpath_var_F77=no
14272       ;;
14273
14274     *)
14275       ld_shlibs_F77=no
14276       ;;
14277     esac
14278   fi
14279
14280 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14281 echo "${ECHO_T}$ld_shlibs_F77" >&6
14282 test "$ld_shlibs_F77" = no && can_build_shared=no
14283
14284 #
14285 # Do we need to explicitly link libc?
14286 #
14287 case "x$archive_cmds_need_lc_F77" in
14288 x|xyes)
14289   # Assume -lc should be added
14290   archive_cmds_need_lc_F77=yes
14291
14292   if test "$enable_shared" = yes && test "$GCC" = yes; then
14293     case $archive_cmds_F77 in
14294     *'~'*)
14295       # FIXME: we may have to deal with multi-command sequences.
14296       ;;
14297     '$CC '*)
14298       # Test whether the compiler implicitly links with -lc since on some
14299       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14300       # to ld, don't add -lc before -lgcc.
14301       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14302 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14303       $rm conftest*
14304       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14305
14306       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14307   (eval $ac_compile) 2>&5
14308   ac_status=$?
14309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14310   (exit $ac_status); } 2>conftest.err; then
14311         soname=conftest
14312         lib=conftest
14313         libobjs=conftest.$ac_objext
14314         deplibs=
14315         wl=$lt_prog_compiler_wl_F77
14316         pic_flag=$lt_prog_compiler_pic_F77
14317         compiler_flags=-v
14318         linker_flags=-v
14319         verstring=
14320         output_objdir=.
14321         libname=conftest
14322         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14323         allow_undefined_flag_F77=
14324         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14325   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14326   ac_status=$?
14327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328   (exit $ac_status); }
14329         then
14330           archive_cmds_need_lc_F77=no
14331         else
14332           archive_cmds_need_lc_F77=yes
14333         fi
14334         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14335       else
14336         cat conftest.err 1>&5
14337       fi
14338       $rm conftest*
14339       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14340 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14341       ;;
14342     esac
14343   fi
14344   ;;
14345 esac
14346
14347 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14348 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14349 library_names_spec=
14350 libname_spec='lib$name'
14351 soname_spec=
14352 shrext_cmds=".so"
14353 postinstall_cmds=
14354 postuninstall_cmds=
14355 finish_cmds=
14356 finish_eval=
14357 shlibpath_var=
14358 shlibpath_overrides_runpath=unknown
14359 version_type=none
14360 dynamic_linker="$host_os ld.so"
14361 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14362 if test "$GCC" = yes; then
14363   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14364   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14365     # if the path contains ";" then we assume it to be the separator
14366     # otherwise default to the standard path separator (i.e. ":") - it is
14367     # assumed that no part of a normal pathname contains ";" but that should
14368     # okay in the real world where ";" in dirpaths is itself problematic.
14369     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14370   else
14371     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14372   fi
14373 else
14374   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14375 fi
14376 need_lib_prefix=unknown
14377 hardcode_into_libs=no
14378
14379 # when you set need_version to no, make sure it does not cause -set_version
14380 # flags to be left without arguments
14381 need_version=unknown
14382
14383 case $host_os in
14384 aix3*)
14385   version_type=linux
14386   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14387   shlibpath_var=LIBPATH
14388
14389   # AIX 3 has no versioning support, so we append a major version to the name.
14390   soname_spec='${libname}${release}${shared_ext}$major'
14391   ;;
14392
14393 aix4* | aix5*)
14394   version_type=linux
14395   need_lib_prefix=no
14396   need_version=no
14397   hardcode_into_libs=yes
14398   if test "$host_cpu" = ia64; then
14399     # AIX 5 supports IA64
14400     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14401     shlibpath_var=LD_LIBRARY_PATH
14402   else
14403     # With GCC up to 2.95.x, collect2 would create an import file
14404     # for dependence libraries.  The import file would start with
14405     # the line `#! .'.  This would cause the generated library to
14406     # depend on `.', always an invalid library.  This was fixed in
14407     # development snapshots of GCC prior to 3.0.
14408     case $host_os in
14409       aix4 | aix4.[01] | aix4.[01].*)
14410       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14411            echo ' yes '
14412            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14413         :
14414       else
14415         can_build_shared=no
14416       fi
14417       ;;
14418     esac
14419     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14420     # soname into executable. Probably we can add versioning support to
14421     # collect2, so additional links can be useful in future.
14422     if test "$aix_use_runtimelinking" = yes; then
14423       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14424       # instead of lib<name>.a to let people know that these are not
14425       # typical AIX shared libraries.
14426       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14427     else
14428       # We preserve .a as extension for shared libraries through AIX4.2
14429       # and later when we are not doing run time linking.
14430       library_names_spec='${libname}${release}.a $libname.a'
14431       soname_spec='${libname}${release}${shared_ext}$major'
14432     fi
14433     shlibpath_var=LIBPATH
14434   fi
14435   ;;
14436
14437 amigaos*)
14438   library_names_spec='$libname.ixlibrary $libname.a'
14439   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14440   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'
14441   ;;
14442
14443 beos*)
14444   library_names_spec='${libname}${shared_ext}'
14445   dynamic_linker="$host_os ld.so"
14446   shlibpath_var=LIBRARY_PATH
14447   ;;
14448
14449 bsdi[45]*)
14450   version_type=linux
14451   need_version=no
14452   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14453   soname_spec='${libname}${release}${shared_ext}$major'
14454   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14455   shlibpath_var=LD_LIBRARY_PATH
14456   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14457   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14458   # the default ld.so.conf also contains /usr/contrib/lib and
14459   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14460   # libtool to hard-code these into programs
14461   ;;
14462
14463 cygwin* | mingw* | pw32*)
14464   version_type=windows
14465   shrext_cmds=".dll"
14466   need_version=no
14467   need_lib_prefix=no
14468
14469   case $GCC,$host_os in
14470   yes,cygwin* | yes,mingw* | yes,pw32*)
14471     library_names_spec='$libname.dll.a'
14472     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14473     postinstall_cmds='base_file=`basename \${file}`~
14474       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14475       dldir=$destdir/`dirname \$dlpath`~
14476       test -d \$dldir || mkdir -p \$dldir~
14477       $install_prog $dir/$dlname \$dldir/$dlname~
14478       chmod a+x \$dldir/$dlname'
14479     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14480       dlpath=$dir/\$dldll~
14481        $rm \$dlpath'
14482     shlibpath_overrides_runpath=yes
14483
14484     case $host_os in
14485     cygwin*)
14486       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14487       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14488       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14489       ;;
14490     mingw*)
14491       # MinGW DLLs use traditional 'lib' prefix
14492       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14493       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14494       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14495         # It is most probably a Windows format PATH printed by
14496         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14497         # path with ; separators, and with drive letters. We can handle the
14498         # drive letters (cygwin fileutils understands them), so leave them,
14499         # especially as we might pass files found there to a mingw objdump,
14500         # which wouldn't understand a cygwinified path. Ahh.
14501         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14502       else
14503         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14504       fi
14505       ;;
14506     pw32*)
14507       # pw32 DLLs use 'pw' prefix rather than 'lib'
14508       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14509       ;;
14510     esac
14511     ;;
14512
14513   *)
14514     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14515     ;;
14516   esac
14517   dynamic_linker='Win32 ld.exe'
14518   # FIXME: first we should search . and the directory the executable is in
14519   shlibpath_var=PATH
14520   ;;
14521
14522 darwin* | rhapsody*)
14523   dynamic_linker="$host_os dyld"
14524   version_type=darwin
14525   need_lib_prefix=no
14526   need_version=no
14527   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14528   soname_spec='${libname}${release}${major}$shared_ext'
14529   shlibpath_overrides_runpath=yes
14530   shlibpath_var=DYLD_LIBRARY_PATH
14531   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14532   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14533   if test "$GCC" = yes; then
14534     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"`
14535   else
14536     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14537   fi
14538   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14539   ;;
14540
14541 dgux*)
14542   version_type=linux
14543   need_lib_prefix=no
14544   need_version=no
14545   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14546   soname_spec='${libname}${release}${shared_ext}$major'
14547   shlibpath_var=LD_LIBRARY_PATH
14548   ;;
14549
14550 freebsd1*)
14551   dynamic_linker=no
14552   ;;
14553
14554 kfreebsd*-gnu)
14555   version_type=linux
14556   need_lib_prefix=no
14557   need_version=no
14558   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14559   soname_spec='${libname}${release}${shared_ext}$major'
14560   shlibpath_var=LD_LIBRARY_PATH
14561   shlibpath_overrides_runpath=no
14562   hardcode_into_libs=yes
14563   dynamic_linker='GNU ld.so'
14564   ;;
14565
14566 freebsd* | dragonfly*)
14567   # DragonFly does not have aout.  When/if they implement a new
14568   # versioning mechanism, adjust this.
14569   if test -x /usr/bin/objformat; then
14570     objformat=`/usr/bin/objformat`
14571   else
14572     case $host_os in
14573     freebsd[123]*) objformat=aout ;;
14574     *) objformat=elf ;;
14575     esac
14576   fi
14577   version_type=freebsd-$objformat
14578   case $version_type in
14579     freebsd-elf*)
14580       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14581       need_version=no
14582       need_lib_prefix=no
14583       ;;
14584     freebsd-*)
14585       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14586       need_version=yes
14587       ;;
14588   esac
14589   shlibpath_var=LD_LIBRARY_PATH
14590   case $host_os in
14591   freebsd2*)
14592     shlibpath_overrides_runpath=yes
14593     ;;
14594   freebsd3.[01]* | freebsdelf3.[01]*)
14595     shlibpath_overrides_runpath=yes
14596     hardcode_into_libs=yes
14597     ;;
14598   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14599   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14600     shlibpath_overrides_runpath=no
14601     hardcode_into_libs=yes
14602     ;;
14603   freebsd*) # from 4.6 on
14604     shlibpath_overrides_runpath=yes
14605     hardcode_into_libs=yes
14606     ;;
14607   esac
14608   ;;
14609
14610 gnu*)
14611   version_type=linux
14612   need_lib_prefix=no
14613   need_version=no
14614   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14615   soname_spec='${libname}${release}${shared_ext}$major'
14616   shlibpath_var=LD_LIBRARY_PATH
14617   hardcode_into_libs=yes
14618   ;;
14619
14620 hpux9* | hpux10* | hpux11*)
14621   # Give a soname corresponding to the major version so that dld.sl refuses to
14622   # link against other versions.
14623   version_type=sunos
14624   need_lib_prefix=no
14625   need_version=no
14626   case $host_cpu in
14627   ia64*)
14628     shrext_cmds='.so'
14629     hardcode_into_libs=yes
14630     dynamic_linker="$host_os dld.so"
14631     shlibpath_var=LD_LIBRARY_PATH
14632     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14633     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14634     soname_spec='${libname}${release}${shared_ext}$major'
14635     if test "X$HPUX_IA64_MODE" = X32; then
14636       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14637     else
14638       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14639     fi
14640     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14641     ;;
14642    hppa*64*)
14643      shrext_cmds='.sl'
14644      hardcode_into_libs=yes
14645      dynamic_linker="$host_os dld.sl"
14646      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14647      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14648      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14649      soname_spec='${libname}${release}${shared_ext}$major'
14650      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14651      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14652      ;;
14653    *)
14654     shrext_cmds='.sl'
14655     dynamic_linker="$host_os dld.sl"
14656     shlibpath_var=SHLIB_PATH
14657     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14658     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14659     soname_spec='${libname}${release}${shared_ext}$major'
14660     ;;
14661   esac
14662   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14663   postinstall_cmds='chmod 555 $lib'
14664   ;;
14665
14666 interix3*)
14667   version_type=linux
14668   need_lib_prefix=no
14669   need_version=no
14670   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14671   soname_spec='${libname}${release}${shared_ext}$major'
14672   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14673   shlibpath_var=LD_LIBRARY_PATH
14674   shlibpath_overrides_runpath=no
14675   hardcode_into_libs=yes
14676   ;;
14677
14678 irix5* | irix6* | nonstopux*)
14679   case $host_os in
14680     nonstopux*) version_type=nonstopux ;;
14681     *)
14682         if test "$lt_cv_prog_gnu_ld" = yes; then
14683                 version_type=linux
14684         else
14685                 version_type=irix
14686         fi ;;
14687   esac
14688   need_lib_prefix=no
14689   need_version=no
14690   soname_spec='${libname}${release}${shared_ext}$major'
14691   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14692   case $host_os in
14693   irix5* | nonstopux*)
14694     libsuff= shlibsuff=
14695     ;;
14696   *)
14697     case $LD in # libtool.m4 will add one of these switches to LD
14698     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14699       libsuff= shlibsuff= libmagic=32-bit;;
14700     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14701       libsuff=32 shlibsuff=N32 libmagic=N32;;
14702     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14703       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14704     *) libsuff= shlibsuff= libmagic=never-match;;
14705     esac
14706     ;;
14707   esac
14708   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14709   shlibpath_overrides_runpath=no
14710   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14711   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14712   hardcode_into_libs=yes
14713   ;;
14714
14715 # No shared lib support for Linux oldld, aout, or coff.
14716 linux*oldld* | linux*aout* | linux*coff*)
14717   dynamic_linker=no
14718   ;;
14719
14720 # This must be Linux ELF.
14721 linux*)
14722   version_type=linux
14723   need_lib_prefix=no
14724   need_version=no
14725   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14726   soname_spec='${libname}${release}${shared_ext}$major'
14727   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14728   shlibpath_var=LD_LIBRARY_PATH
14729   shlibpath_overrides_runpath=no
14730   # This implies no fast_install, which is unacceptable.
14731   # Some rework will be needed to allow for fast_install
14732   # before this can be enabled.
14733   hardcode_into_libs=yes
14734
14735   # Append ld.so.conf contents to the search path
14736   if test -f /etc/ld.so.conf; then
14737     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' ' '`
14738     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14739   fi
14740
14741   # We used to test for /lib/ld.so.1 and disable shared libraries on
14742   # powerpc, because MkLinux only supported shared libraries with the
14743   # GNU dynamic linker.  Since this was broken with cross compilers,
14744   # most powerpc-linux boxes support dynamic linking these days and
14745   # people can always --disable-shared, the test was removed, and we
14746   # assume the GNU/Linux dynamic linker is in use.
14747   dynamic_linker='GNU/Linux ld.so'
14748   ;;
14749
14750 knetbsd*-gnu)
14751   version_type=linux
14752   need_lib_prefix=no
14753   need_version=no
14754   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14755   soname_spec='${libname}${release}${shared_ext}$major'
14756   shlibpath_var=LD_LIBRARY_PATH
14757   shlibpath_overrides_runpath=no
14758   hardcode_into_libs=yes
14759   dynamic_linker='GNU ld.so'
14760   ;;
14761
14762 netbsd*)
14763   version_type=sunos
14764   need_lib_prefix=no
14765   need_version=no
14766   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14767     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14768     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14769     dynamic_linker='NetBSD (a.out) ld.so'
14770   else
14771     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14772     soname_spec='${libname}${release}${shared_ext}$major'
14773     dynamic_linker='NetBSD ld.elf_so'
14774   fi
14775   shlibpath_var=LD_LIBRARY_PATH
14776   shlibpath_overrides_runpath=yes
14777   hardcode_into_libs=yes
14778   ;;
14779
14780 newsos6)
14781   version_type=linux
14782   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14783   shlibpath_var=LD_LIBRARY_PATH
14784   shlibpath_overrides_runpath=yes
14785   ;;
14786
14787 nto-qnx*)
14788   version_type=linux
14789   need_lib_prefix=no
14790   need_version=no
14791   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14792   soname_spec='${libname}${release}${shared_ext}$major'
14793   shlibpath_var=LD_LIBRARY_PATH
14794   shlibpath_overrides_runpath=yes
14795   ;;
14796
14797 openbsd*)
14798   version_type=sunos
14799   sys_lib_dlsearch_path_spec="/usr/lib"
14800   need_lib_prefix=no
14801   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14802   case $host_os in
14803     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14804     *)                         need_version=no  ;;
14805   esac
14806   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14807   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14808   shlibpath_var=LD_LIBRARY_PATH
14809   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14810     case $host_os in
14811       openbsd2.[89] | openbsd2.[89].*)
14812         shlibpath_overrides_runpath=no
14813         ;;
14814       *)
14815         shlibpath_overrides_runpath=yes
14816         ;;
14817       esac
14818   else
14819     shlibpath_overrides_runpath=yes
14820   fi
14821   ;;
14822
14823 os2*)
14824   libname_spec='$name'
14825   shrext_cmds=".dll"
14826   need_lib_prefix=no
14827   library_names_spec='$libname${shared_ext} $libname.a'
14828   dynamic_linker='OS/2 ld.exe'
14829   shlibpath_var=LIBPATH
14830   ;;
14831
14832 osf3* | osf4* | osf5*)
14833   version_type=osf
14834   need_lib_prefix=no
14835   need_version=no
14836   soname_spec='${libname}${release}${shared_ext}$major'
14837   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14838   shlibpath_var=LD_LIBRARY_PATH
14839   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14840   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14841   ;;
14842
14843 solaris*)
14844   version_type=linux
14845   need_lib_prefix=no
14846   need_version=no
14847   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14848   soname_spec='${libname}${release}${shared_ext}$major'
14849   shlibpath_var=LD_LIBRARY_PATH
14850   shlibpath_overrides_runpath=yes
14851   hardcode_into_libs=yes
14852   # ldd complains unless libraries are executable
14853   postinstall_cmds='chmod +x $lib'
14854   ;;
14855
14856 sunos4*)
14857   version_type=sunos
14858   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14859   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14860   shlibpath_var=LD_LIBRARY_PATH
14861   shlibpath_overrides_runpath=yes
14862   if test "$with_gnu_ld" = yes; then
14863     need_lib_prefix=no
14864   fi
14865   need_version=yes
14866   ;;
14867
14868 sysv4 | sysv4.3*)
14869   version_type=linux
14870   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14871   soname_spec='${libname}${release}${shared_ext}$major'
14872   shlibpath_var=LD_LIBRARY_PATH
14873   case $host_vendor in
14874     sni)
14875       shlibpath_overrides_runpath=no
14876       need_lib_prefix=no
14877       export_dynamic_flag_spec='${wl}-Blargedynsym'
14878       runpath_var=LD_RUN_PATH
14879       ;;
14880     siemens)
14881       need_lib_prefix=no
14882       ;;
14883     motorola)
14884       need_lib_prefix=no
14885       need_version=no
14886       shlibpath_overrides_runpath=no
14887       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14888       ;;
14889   esac
14890   ;;
14891
14892 sysv4*MP*)
14893   if test -d /usr/nec ;then
14894     version_type=linux
14895     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14896     soname_spec='$libname${shared_ext}.$major'
14897     shlibpath_var=LD_LIBRARY_PATH
14898   fi
14899   ;;
14900
14901 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14902   version_type=freebsd-elf
14903   need_lib_prefix=no
14904   need_version=no
14905   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14906   soname_spec='${libname}${release}${shared_ext}$major'
14907   shlibpath_var=LD_LIBRARY_PATH
14908   hardcode_into_libs=yes
14909   if test "$with_gnu_ld" = yes; then
14910     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14911     shlibpath_overrides_runpath=no
14912   else
14913     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14914     shlibpath_overrides_runpath=yes
14915     case $host_os in
14916       sco3.2v5*)
14917         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14918         ;;
14919     esac
14920   fi
14921   sys_lib_dlsearch_path_spec='/usr/lib'
14922   ;;
14923
14924 uts4*)
14925   version_type=linux
14926   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14927   soname_spec='${libname}${release}${shared_ext}$major'
14928   shlibpath_var=LD_LIBRARY_PATH
14929   ;;
14930
14931 *)
14932   dynamic_linker=no
14933   ;;
14934 esac
14935 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14936 echo "${ECHO_T}$dynamic_linker" >&6
14937 test "$dynamic_linker" = no && can_build_shared=no
14938
14939 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14940 if test "$GCC" = yes; then
14941   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14942 fi
14943
14944 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14945 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14946 hardcode_action_F77=
14947 if test -n "$hardcode_libdir_flag_spec_F77" || \
14948    test -n "$runpath_var_F77" || \
14949    test "X$hardcode_automatic_F77" = "Xyes" ; then
14950
14951   # We can hardcode non-existant directories.
14952   if test "$hardcode_direct_F77" != no &&
14953      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14954      # have to relink, otherwise we might link with an installed library
14955      # when we should be linking with a yet-to-be-installed one
14956      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14957      test "$hardcode_minus_L_F77" != no; then
14958     # Linking always hardcodes the temporary library directory.
14959     hardcode_action_F77=relink
14960   else
14961     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14962     hardcode_action_F77=immediate
14963   fi
14964 else
14965   # We cannot hardcode anything, or else we can only hardcode existing
14966   # directories.
14967   hardcode_action_F77=unsupported
14968 fi
14969 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14970 echo "${ECHO_T}$hardcode_action_F77" >&6
14971
14972 if test "$hardcode_action_F77" = relink; then
14973   # Fast installation is not supported
14974   enable_fast_install=no
14975 elif test "$shlibpath_overrides_runpath" = yes ||
14976      test "$enable_shared" = no; then
14977   # Fast installation is not necessary
14978   enable_fast_install=needless
14979 fi
14980
14981
14982 # The else clause should only fire when bootstrapping the
14983 # libtool distribution, otherwise you forgot to ship ltmain.sh
14984 # with your package, and you will get complaints that there are
14985 # no rules to generate ltmain.sh.
14986 if test -f "$ltmain"; then
14987   # See if we are running on zsh, and set the options which allow our commands through
14988   # without removal of \ escapes.
14989   if test -n "${ZSH_VERSION+set}" ; then
14990     setopt NO_GLOB_SUBST
14991   fi
14992   # Now quote all the things that may contain metacharacters while being
14993   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14994   # variables and quote the copies for generation of the libtool script.
14995   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14996     SED SHELL STRIP \
14997     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14998     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14999     deplibs_check_method reload_flag reload_cmds need_locks \
15000     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15001     lt_cv_sys_global_symbol_to_c_name_address \
15002     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15003     old_postinstall_cmds old_postuninstall_cmds \
15004     compiler_F77 \
15005     CC_F77 \
15006     LD_F77 \
15007     lt_prog_compiler_wl_F77 \
15008     lt_prog_compiler_pic_F77 \
15009     lt_prog_compiler_static_F77 \
15010     lt_prog_compiler_no_builtin_flag_F77 \
15011     export_dynamic_flag_spec_F77 \
15012     thread_safe_flag_spec_F77 \
15013     whole_archive_flag_spec_F77 \
15014     enable_shared_with_static_runtimes_F77 \
15015     old_archive_cmds_F77 \
15016     old_archive_from_new_cmds_F77 \
15017     predep_objects_F77 \
15018     postdep_objects_F77 \
15019     predeps_F77 \
15020     postdeps_F77 \
15021     compiler_lib_search_path_F77 \
15022     archive_cmds_F77 \
15023     archive_expsym_cmds_F77 \
15024     postinstall_cmds_F77 \
15025     postuninstall_cmds_F77 \
15026     old_archive_from_expsyms_cmds_F77 \
15027     allow_undefined_flag_F77 \
15028     no_undefined_flag_F77 \
15029     export_symbols_cmds_F77 \
15030     hardcode_libdir_flag_spec_F77 \
15031     hardcode_libdir_flag_spec_ld_F77 \
15032     hardcode_libdir_separator_F77 \
15033     hardcode_automatic_F77 \
15034     module_cmds_F77 \
15035     module_expsym_cmds_F77 \
15036     lt_cv_prog_compiler_c_o_F77 \
15037     exclude_expsyms_F77 \
15038     include_expsyms_F77; do
15039
15040     case $var in
15041     old_archive_cmds_F77 | \
15042     old_archive_from_new_cmds_F77 | \
15043     archive_cmds_F77 | \
15044     archive_expsym_cmds_F77 | \
15045     module_cmds_F77 | \
15046     module_expsym_cmds_F77 | \
15047     old_archive_from_expsyms_cmds_F77 | \
15048     export_symbols_cmds_F77 | \
15049     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15050     postinstall_cmds | postuninstall_cmds | \
15051     old_postinstall_cmds | old_postuninstall_cmds | \
15052     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15053       # Double-quote double-evaled strings.
15054       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15055       ;;
15056     *)
15057       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15058       ;;
15059     esac
15060   done
15061
15062   case $lt_echo in
15063   *'\$0 --fallback-echo"')
15064     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15065     ;;
15066   esac
15067
15068 cfgfile="$ofile"
15069
15070   cat <<__EOF__ >> "$cfgfile"
15071 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15072
15073 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15074
15075 # Shell to use when invoking shell scripts.
15076 SHELL=$lt_SHELL
15077
15078 # Whether or not to build shared libraries.
15079 build_libtool_libs=$enable_shared
15080
15081 # Whether or not to build static libraries.
15082 build_old_libs=$enable_static
15083
15084 # Whether or not to add -lc for building shared libraries.
15085 build_libtool_need_lc=$archive_cmds_need_lc_F77
15086
15087 # Whether or not to disallow shared libs when runtime libs are static
15088 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15089
15090 # Whether or not to optimize for fast installation.
15091 fast_install=$enable_fast_install
15092
15093 # The host system.
15094 host_alias=$host_alias
15095 host=$host
15096 host_os=$host_os
15097
15098 # The build system.
15099 build_alias=$build_alias
15100 build=$build
15101 build_os=$build_os
15102
15103 # An echo program that does not interpret backslashes.
15104 echo=$lt_echo
15105
15106 # The archiver.
15107 AR=$lt_AR
15108 AR_FLAGS=$lt_AR_FLAGS
15109
15110 # A C compiler.
15111 LTCC=$lt_LTCC
15112
15113 # LTCC compiler flags.
15114 LTCFLAGS=$lt_LTCFLAGS
15115
15116 # A language-specific compiler.
15117 CC=$lt_compiler_F77
15118
15119 # Is the compiler the GNU C compiler?
15120 with_gcc=$GCC_F77
15121
15122 # An ERE matcher.
15123 EGREP=$lt_EGREP
15124
15125 # The linker used to build libraries.
15126 LD=$lt_LD_F77
15127
15128 # Whether we need hard or soft links.
15129 LN_S=$lt_LN_S
15130
15131 # A BSD-compatible nm program.
15132 NM=$lt_NM
15133
15134 # A symbol stripping program
15135 STRIP=$lt_STRIP
15136
15137 # Used to examine libraries when file_magic_cmd begins "file"
15138 MAGIC_CMD=$MAGIC_CMD
15139
15140 # Used on cygwin: DLL creation program.
15141 DLLTOOL="$DLLTOOL"
15142
15143 # Used on cygwin: object dumper.
15144 OBJDUMP="$OBJDUMP"
15145
15146 # Used on cygwin: assembler.
15147 AS="$AS"
15148
15149 # The name of the directory that contains temporary libtool files.
15150 objdir=$objdir
15151
15152 # How to create reloadable object files.
15153 reload_flag=$lt_reload_flag
15154 reload_cmds=$lt_reload_cmds
15155
15156 # How to pass a linker flag through the compiler.
15157 wl=$lt_lt_prog_compiler_wl_F77
15158
15159 # Object file suffix (normally "o").
15160 objext="$ac_objext"
15161
15162 # Old archive suffix (normally "a").
15163 libext="$libext"
15164
15165 # Shared library suffix (normally ".so").
15166 shrext_cmds='$shrext_cmds'
15167
15168 # Executable file suffix (normally "").
15169 exeext="$exeext"
15170
15171 # Additional compiler flags for building library objects.
15172 pic_flag=$lt_lt_prog_compiler_pic_F77
15173 pic_mode=$pic_mode
15174
15175 # What is the maximum length of a command?
15176 max_cmd_len=$lt_cv_sys_max_cmd_len
15177
15178 # Does compiler simultaneously support -c and -o options?
15179 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15180
15181 # Must we lock files when doing compilation?
15182 need_locks=$lt_need_locks
15183
15184 # Do we need the lib prefix for modules?
15185 need_lib_prefix=$need_lib_prefix
15186
15187 # Do we need a version for libraries?
15188 need_version=$need_version
15189
15190 # Whether dlopen is supported.
15191 dlopen_support=$enable_dlopen
15192
15193 # Whether dlopen of programs is supported.
15194 dlopen_self=$enable_dlopen_self
15195
15196 # Whether dlopen of statically linked programs is supported.
15197 dlopen_self_static=$enable_dlopen_self_static
15198
15199 # Compiler flag to prevent dynamic linking.
15200 link_static_flag=$lt_lt_prog_compiler_static_F77
15201
15202 # Compiler flag to turn off builtin functions.
15203 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15204
15205 # Compiler flag to allow reflexive dlopens.
15206 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15207
15208 # Compiler flag to generate shared objects directly from archives.
15209 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15210
15211 # Compiler flag to generate thread-safe objects.
15212 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15213
15214 # Library versioning type.
15215 version_type=$version_type
15216
15217 # Format of library name prefix.
15218 libname_spec=$lt_libname_spec
15219
15220 # List of archive names.  First name is the real one, the rest are links.
15221 # The last name is the one that the linker finds with -lNAME.
15222 library_names_spec=$lt_library_names_spec
15223
15224 # The coded name of the library, if different from the real name.
15225 soname_spec=$lt_soname_spec
15226
15227 # Commands used to build and install an old-style archive.
15228 RANLIB=$lt_RANLIB
15229 old_archive_cmds=$lt_old_archive_cmds_F77
15230 old_postinstall_cmds=$lt_old_postinstall_cmds
15231 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15232
15233 # Create an old-style archive from a shared archive.
15234 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15235
15236 # Create a temporary old-style archive to link instead of a shared archive.
15237 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15238
15239 # Commands used to build and install a shared archive.
15240 archive_cmds=$lt_archive_cmds_F77
15241 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15242 postinstall_cmds=$lt_postinstall_cmds
15243 postuninstall_cmds=$lt_postuninstall_cmds
15244
15245 # Commands used to build a loadable module (assumed same as above if empty)
15246 module_cmds=$lt_module_cmds_F77
15247 module_expsym_cmds=$lt_module_expsym_cmds_F77
15248
15249 # Commands to strip libraries.
15250 old_striplib=$lt_old_striplib
15251 striplib=$lt_striplib
15252
15253 # Dependencies to place before the objects being linked to create a
15254 # shared library.
15255 predep_objects=$lt_predep_objects_F77
15256
15257 # Dependencies to place after the objects being linked to create a
15258 # shared library.
15259 postdep_objects=$lt_postdep_objects_F77
15260
15261 # Dependencies to place before the objects being linked to create a
15262 # shared library.
15263 predeps=$lt_predeps_F77
15264
15265 # Dependencies to place after the objects being linked to create a
15266 # shared library.
15267 postdeps=$lt_postdeps_F77
15268
15269 # The library search path used internally by the compiler when linking
15270 # a shared library.
15271 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15272
15273 # Method to check whether dependent libraries are shared objects.
15274 deplibs_check_method=$lt_deplibs_check_method
15275
15276 # Command to use when deplibs_check_method == file_magic.
15277 file_magic_cmd=$lt_file_magic_cmd
15278
15279 # Flag that allows shared libraries with undefined symbols to be built.
15280 allow_undefined_flag=$lt_allow_undefined_flag_F77
15281
15282 # Flag that forces no undefined symbols.
15283 no_undefined_flag=$lt_no_undefined_flag_F77
15284
15285 # Commands used to finish a libtool library installation in a directory.
15286 finish_cmds=$lt_finish_cmds
15287
15288 # Same as above, but a single script fragment to be evaled but not shown.
15289 finish_eval=$lt_finish_eval
15290
15291 # Take the output of nm and produce a listing of raw symbols and C names.
15292 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15293
15294 # Transform the output of nm in a proper C declaration
15295 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15296
15297 # Transform the output of nm in a C name address pair
15298 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15299
15300 # This is the shared library runtime path variable.
15301 runpath_var=$runpath_var
15302
15303 # This is the shared library path variable.
15304 shlibpath_var=$shlibpath_var
15305
15306 # Is shlibpath searched before the hard-coded library search path?
15307 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15308
15309 # How to hardcode a shared library path into an executable.
15310 hardcode_action=$hardcode_action_F77
15311
15312 # Whether we should hardcode library paths into libraries.
15313 hardcode_into_libs=$hardcode_into_libs
15314
15315 # Flag to hardcode \$libdir into a binary during linking.
15316 # This must work even if \$libdir does not exist.
15317 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15318
15319 # If ld is used when linking, flag to hardcode \$libdir into
15320 # a binary during linking. This must work even if \$libdir does
15321 # not exist.
15322 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15323
15324 # Whether we need a single -rpath flag with a separated argument.
15325 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15326
15327 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15328 # resulting binary.
15329 hardcode_direct=$hardcode_direct_F77
15330
15331 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15332 # resulting binary.
15333 hardcode_minus_L=$hardcode_minus_L_F77
15334
15335 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15336 # the resulting binary.
15337 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15338
15339 # Set to yes if building a shared library automatically hardcodes DIR into the library
15340 # and all subsequent libraries and executables linked against it.
15341 hardcode_automatic=$hardcode_automatic_F77
15342
15343 # Variables whose values should be saved in libtool wrapper scripts and
15344 # restored at relink time.
15345 variables_saved_for_relink="$variables_saved_for_relink"
15346
15347 # Whether libtool must link a program against all its dependency libraries.
15348 link_all_deplibs=$link_all_deplibs_F77
15349
15350 # Compile-time system search path for libraries
15351 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15352
15353 # Run-time system search path for libraries
15354 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15355
15356 # Fix the shell variable \$srcfile for the compiler.
15357 fix_srcfile_path="$fix_srcfile_path_F77"
15358
15359 # Set to yes if exported symbols are required.
15360 always_export_symbols=$always_export_symbols_F77
15361
15362 # The commands to list exported symbols.
15363 export_symbols_cmds=$lt_export_symbols_cmds_F77
15364
15365 # The commands to extract the exported symbol list from a shared archive.
15366 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15367
15368 # Symbols that should not be listed in the preloaded symbols.
15369 exclude_expsyms=$lt_exclude_expsyms_F77
15370
15371 # Symbols that must always be exported.
15372 include_expsyms=$lt_include_expsyms_F77
15373
15374 # ### END LIBTOOL TAG CONFIG: $tagname
15375
15376 __EOF__
15377
15378
15379 else
15380   # If there is no Makefile yet, we rely on a make rule to execute
15381   # `config.status --recheck' to rerun these tests and create the
15382   # libtool script then.
15383   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15384   if test -f "$ltmain_in"; then
15385     test -f Makefile && make "$ltmain"
15386   fi
15387 fi
15388
15389
15390 ac_ext=c
15391 ac_cpp='$CPP $CPPFLAGS'
15392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15395
15396 CC="$lt_save_CC"
15397
15398         else
15399           tagname=""
15400         fi
15401         ;;
15402
15403       GCJ)
15404         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15405           
15406
15407
15408 # Source file extension for Java test sources.
15409 ac_ext=java
15410
15411 # Object file extension for compiled Java test sources.
15412 objext=o
15413 objext_GCJ=$objext
15414
15415 # Code to be used in simple compile tests
15416 lt_simple_compile_test_code="class foo {}\n"
15417
15418 # Code to be used in simple link tests
15419 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15420
15421 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15422
15423 # If no C compiler was specified, use CC.
15424 LTCC=${LTCC-"$CC"}
15425
15426 # If no C compiler flags were specified, use CFLAGS.
15427 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15428
15429 # Allow CC to be a program name with arguments.
15430 compiler=$CC
15431
15432
15433 # save warnings/boilerplate of simple test code
15434 ac_outfile=conftest.$ac_objext
15435 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15436 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15437 _lt_compiler_boilerplate=`cat conftest.err`
15438 $rm conftest*
15439
15440 ac_outfile=conftest.$ac_objext
15441 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15442 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15443 _lt_linker_boilerplate=`cat conftest.err`
15444 $rm conftest*
15445
15446
15447 # Allow CC to be a program name with arguments.
15448 lt_save_CC="$CC"
15449 CC=${GCJ-"gcj"}
15450 compiler=$CC
15451 compiler_GCJ=$CC
15452 for cc_temp in $compiler""; do
15453   case $cc_temp in
15454     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15455     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15456     \-*) ;;
15457     *) break;;
15458   esac
15459 done
15460 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15461
15462
15463 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15464 archive_cmds_need_lc_GCJ=no
15465
15466 old_archive_cmds_GCJ=$old_archive_cmds
15467
15468
15469 lt_prog_compiler_no_builtin_flag_GCJ=
15470
15471 if test "$GCC" = yes; then
15472   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15473
15474   
15475 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15476 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15477 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15478   echo $ECHO_N "(cached) $ECHO_C" >&6
15479 else
15480   lt_cv_prog_compiler_rtti_exceptions=no
15481   ac_outfile=conftest.$ac_objext
15482    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15483    lt_compiler_flag="-fno-rtti -fno-exceptions"
15484    # Insert the option either (1) after the last *FLAGS variable, or
15485    # (2) before a word containing "conftest.", or (3) at the end.
15486    # Note that $ac_compile itself does not contain backslashes and begins
15487    # with a dollar sign (not a hyphen), so the echo should work correctly.
15488    # The option is referenced via a variable to avoid confusing sed.
15489    lt_compile=`echo "$ac_compile" | $SED \
15490    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15491    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15492    -e 's:$: $lt_compiler_flag:'`
15493    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15494    (eval "$lt_compile" 2>conftest.err)
15495    ac_status=$?
15496    cat conftest.err >&5
15497    echo "$as_me:__oline__: \$? = $ac_status" >&5
15498    if (exit $ac_status) && test -s "$ac_outfile"; then
15499      # The compiler can only warn and ignore the option if not recognized
15500      # So say no if there are warnings other than the usual output.
15501      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15502      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15503      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15504        lt_cv_prog_compiler_rtti_exceptions=yes
15505      fi
15506    fi
15507    $rm conftest*
15508
15509 fi
15510 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15511 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15512
15513 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15514     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15515 else
15516     :
15517 fi
15518
15519 fi
15520
15521 lt_prog_compiler_wl_GCJ=
15522 lt_prog_compiler_pic_GCJ=
15523 lt_prog_compiler_static_GCJ=
15524
15525 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15526 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15527  
15528   if test "$GCC" = yes; then
15529     lt_prog_compiler_wl_GCJ='-Wl,'
15530     lt_prog_compiler_static_GCJ='-static'
15531
15532     case $host_os in
15533       aix*)
15534       # All AIX code is PIC.
15535       if test "$host_cpu" = ia64; then
15536         # AIX 5 now supports IA64 processor
15537         lt_prog_compiler_static_GCJ='-Bstatic'
15538       fi
15539       ;;
15540
15541     amigaos*)
15542       # FIXME: we need at least 68020 code to build shared libraries, but
15543       # adding the `-m68020' flag to GCC prevents building anything better,
15544       # like `-m68040'.
15545       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15546       ;;
15547
15548     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15549       # PIC is the default for these OSes.
15550       ;;
15551
15552     mingw* | pw32* | os2*)
15553       # This hack is so that the source file can tell whether it is being
15554       # built for inclusion in a dll (and should export symbols for example).
15555       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15556       ;;
15557
15558     darwin* | rhapsody*)
15559       # PIC is the default on this platform
15560       # Common symbols not allowed in MH_DYLIB files
15561       lt_prog_compiler_pic_GCJ='-fno-common'
15562       ;;
15563
15564     interix3*)
15565       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15566       # Instead, we relocate shared libraries at runtime.
15567       ;;
15568
15569     msdosdjgpp*)
15570       # Just because we use GCC doesn't mean we suddenly get shared libraries
15571       # on systems that don't support them.
15572       lt_prog_compiler_can_build_shared_GCJ=no
15573       enable_shared=no
15574       ;;
15575
15576     sysv4*MP*)
15577       if test -d /usr/nec; then
15578         lt_prog_compiler_pic_GCJ=-Kconform_pic
15579       fi
15580       ;;
15581
15582     hpux*)
15583       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15584       # not for PA HP-UX.
15585       case $host_cpu in
15586       hppa*64*|ia64*)
15587         # +Z the default
15588         ;;
15589       *)
15590         lt_prog_compiler_pic_GCJ='-fPIC'
15591         ;;
15592       esac
15593       ;;
15594
15595     *)
15596       lt_prog_compiler_pic_GCJ='-fPIC'
15597       ;;
15598     esac
15599   else
15600     # PORTME Check for flag to pass linker flags through the system compiler.
15601     case $host_os in
15602     aix*)
15603       lt_prog_compiler_wl_GCJ='-Wl,'
15604       if test "$host_cpu" = ia64; then
15605         # AIX 5 now supports IA64 processor
15606         lt_prog_compiler_static_GCJ='-Bstatic'
15607       else
15608         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15609       fi
15610       ;;
15611       darwin*)
15612         # PIC is the default on this platform
15613         # Common symbols not allowed in MH_DYLIB files
15614        case $cc_basename in
15615          xlc*)
15616          lt_prog_compiler_pic_GCJ='-qnocommon'
15617          lt_prog_compiler_wl_GCJ='-Wl,'
15618          ;;
15619        esac
15620        ;;
15621
15622     mingw* | pw32* | os2*)
15623       # This hack is so that the source file can tell whether it is being
15624       # built for inclusion in a dll (and should export symbols for example).
15625       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15626       ;;
15627
15628     hpux9* | hpux10* | hpux11*)
15629       lt_prog_compiler_wl_GCJ='-Wl,'
15630       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15631       # not for PA HP-UX.
15632       case $host_cpu in
15633       hppa*64*|ia64*)
15634         # +Z the default
15635         ;;
15636       *)
15637         lt_prog_compiler_pic_GCJ='+Z'
15638         ;;
15639       esac
15640       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15641       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15642       ;;
15643
15644     irix5* | irix6* | nonstopux*)
15645       lt_prog_compiler_wl_GCJ='-Wl,'
15646       # PIC (with -KPIC) is the default.
15647       lt_prog_compiler_static_GCJ='-non_shared'
15648       ;;
15649
15650     newsos6)
15651       lt_prog_compiler_pic_GCJ='-KPIC'
15652       lt_prog_compiler_static_GCJ='-Bstatic'
15653       ;;
15654
15655     linux*)
15656       case $cc_basename in
15657       icc* | ecc*)
15658         lt_prog_compiler_wl_GCJ='-Wl,'
15659         lt_prog_compiler_pic_GCJ='-KPIC'
15660         lt_prog_compiler_static_GCJ='-static'
15661         ;;
15662       pgcc* | pgf77* | pgf90* | pgf95*)
15663         # Portland Group compilers (*not* the Pentium gcc compiler,
15664         # which looks to be a dead project)
15665         lt_prog_compiler_wl_GCJ='-Wl,'
15666         lt_prog_compiler_pic_GCJ='-fpic'
15667         lt_prog_compiler_static_GCJ='-Bstatic'
15668         ;;
15669       ccc*)
15670         lt_prog_compiler_wl_GCJ='-Wl,'
15671         # All Alpha code is PIC.
15672         lt_prog_compiler_static_GCJ='-non_shared'
15673         ;;
15674       esac
15675       ;;
15676
15677     osf3* | osf4* | osf5*)
15678       lt_prog_compiler_wl_GCJ='-Wl,'
15679       # All OSF/1 code is PIC.
15680       lt_prog_compiler_static_GCJ='-non_shared'
15681       ;;
15682
15683     solaris*)
15684       lt_prog_compiler_pic_GCJ='-KPIC'
15685       lt_prog_compiler_static_GCJ='-Bstatic'
15686       case $cc_basename in
15687       f77* | f90* | f95*)
15688         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15689       *)
15690         lt_prog_compiler_wl_GCJ='-Wl,';;
15691       esac
15692       ;;
15693
15694     sunos4*)
15695       lt_prog_compiler_wl_GCJ='-Qoption ld '
15696       lt_prog_compiler_pic_GCJ='-PIC'
15697       lt_prog_compiler_static_GCJ='-Bstatic'
15698       ;;
15699
15700     sysv4 | sysv4.2uw2* | sysv4.3*)
15701       lt_prog_compiler_wl_GCJ='-Wl,'
15702       lt_prog_compiler_pic_GCJ='-KPIC'
15703       lt_prog_compiler_static_GCJ='-Bstatic'
15704       ;;
15705
15706     sysv4*MP*)
15707       if test -d /usr/nec ;then
15708         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15709         lt_prog_compiler_static_GCJ='-Bstatic'
15710       fi
15711       ;;
15712
15713     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15714       lt_prog_compiler_wl_GCJ='-Wl,'
15715       lt_prog_compiler_pic_GCJ='-KPIC'
15716       lt_prog_compiler_static_GCJ='-Bstatic'
15717       ;;
15718
15719     unicos*)
15720       lt_prog_compiler_wl_GCJ='-Wl,'
15721       lt_prog_compiler_can_build_shared_GCJ=no
15722       ;;
15723
15724     uts4*)
15725       lt_prog_compiler_pic_GCJ='-pic'
15726       lt_prog_compiler_static_GCJ='-Bstatic'
15727       ;;
15728
15729     *)
15730       lt_prog_compiler_can_build_shared_GCJ=no
15731       ;;
15732     esac
15733   fi
15734
15735 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15736 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15737
15738 #
15739 # Check to make sure the PIC flag actually works.
15740 #
15741 if test -n "$lt_prog_compiler_pic_GCJ"; then
15742   
15743 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15744 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15745 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15746   echo $ECHO_N "(cached) $ECHO_C" >&6
15747 else
15748   lt_prog_compiler_pic_works_GCJ=no
15749   ac_outfile=conftest.$ac_objext
15750    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15751    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15752    # Insert the option either (1) after the last *FLAGS variable, or
15753    # (2) before a word containing "conftest.", or (3) at the end.
15754    # Note that $ac_compile itself does not contain backslashes and begins
15755    # with a dollar sign (not a hyphen), so the echo should work correctly.
15756    # The option is referenced via a variable to avoid confusing sed.
15757    lt_compile=`echo "$ac_compile" | $SED \
15758    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15759    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15760    -e 's:$: $lt_compiler_flag:'`
15761    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15762    (eval "$lt_compile" 2>conftest.err)
15763    ac_status=$?
15764    cat conftest.err >&5
15765    echo "$as_me:__oline__: \$? = $ac_status" >&5
15766    if (exit $ac_status) && test -s "$ac_outfile"; then
15767      # The compiler can only warn and ignore the option if not recognized
15768      # So say no if there are warnings other than the usual output.
15769      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15770      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15771      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15772        lt_prog_compiler_pic_works_GCJ=yes
15773      fi
15774    fi
15775    $rm conftest*
15776
15777 fi
15778 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15779 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15780
15781 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15782     case $lt_prog_compiler_pic_GCJ in
15783      "" | " "*) ;;
15784      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15785      esac
15786 else
15787     lt_prog_compiler_pic_GCJ=
15788      lt_prog_compiler_can_build_shared_GCJ=no
15789 fi
15790
15791 fi
15792 case $host_os in
15793   # For platforms which do not support PIC, -DPIC is meaningless:
15794   *djgpp*)
15795     lt_prog_compiler_pic_GCJ=
15796     ;;
15797   *)
15798     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15799     ;;
15800 esac
15801
15802 #
15803 # Check to make sure the static flag actually works.
15804 #
15805 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
15806 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15807 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15808 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
15809   echo $ECHO_N "(cached) $ECHO_C" >&6
15810 else
15811   lt_prog_compiler_static_works_GCJ=no
15812    save_LDFLAGS="$LDFLAGS"
15813    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15814    printf "$lt_simple_link_test_code" > conftest.$ac_ext
15815    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15816      # The linker can only warn and ignore the option if not recognized
15817      # So say no if there are warnings
15818      if test -s conftest.err; then
15819        # Append any errors to the config.log.
15820        cat conftest.err 1>&5
15821        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15822        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15823        if diff conftest.exp conftest.er2 >/dev/null; then
15824          lt_prog_compiler_static_works_GCJ=yes
15825        fi
15826      else
15827        lt_prog_compiler_static_works_GCJ=yes
15828      fi
15829    fi
15830    $rm conftest*
15831    LDFLAGS="$save_LDFLAGS"
15832
15833 fi
15834 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
15835 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
15836
15837 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
15838     :
15839 else
15840     lt_prog_compiler_static_GCJ=
15841 fi
15842
15843
15844 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15845 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15846 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15847   echo $ECHO_N "(cached) $ECHO_C" >&6
15848 else
15849   lt_cv_prog_compiler_c_o_GCJ=no
15850    $rm -r conftest 2>/dev/null
15851    mkdir conftest
15852    cd conftest
15853    mkdir out
15854    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15855
15856    lt_compiler_flag="-o out/conftest2.$ac_objext"
15857    # Insert the option either (1) after the last *FLAGS variable, or
15858    # (2) before a word containing "conftest.", or (3) at the end.
15859    # Note that $ac_compile itself does not contain backslashes and begins
15860    # with a dollar sign (not a hyphen), so the echo should work correctly.
15861    lt_compile=`echo "$ac_compile" | $SED \
15862    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15863    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15864    -e 's:$: $lt_compiler_flag:'`
15865    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15866    (eval "$lt_compile" 2>out/conftest.err)
15867    ac_status=$?
15868    cat out/conftest.err >&5
15869    echo "$as_me:__oline__: \$? = $ac_status" >&5
15870    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15871    then
15872      # The compiler can only warn and ignore the option if not recognized
15873      # So say no if there are warnings
15874      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15875      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15876      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15877        lt_cv_prog_compiler_c_o_GCJ=yes
15878      fi
15879    fi
15880    chmod u+w . 2>&5
15881    $rm conftest*
15882    # SGI C++ compiler will create directory out/ii_files/ for
15883    # template instantiation
15884    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15885    $rm out/* && rmdir out
15886    cd ..
15887    rmdir conftest
15888    $rm conftest*
15889
15890 fi
15891 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15892 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15893
15894
15895 hard_links="nottested"
15896 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15897   # do not overwrite the value of need_locks provided by the user
15898   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15899 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15900   hard_links=yes
15901   $rm conftest*
15902   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15903   touch conftest.a
15904   ln conftest.a conftest.b 2>&5 || hard_links=no
15905   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15906   echo "$as_me:$LINENO: result: $hard_links" >&5
15907 echo "${ECHO_T}$hard_links" >&6
15908   if test "$hard_links" = no; then
15909     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15910 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15911     need_locks=warn
15912   fi
15913 else
15914   need_locks=no
15915 fi
15916
15917 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15918 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15919
15920   runpath_var=
15921   allow_undefined_flag_GCJ=
15922   enable_shared_with_static_runtimes_GCJ=no
15923   archive_cmds_GCJ=
15924   archive_expsym_cmds_GCJ=
15925   old_archive_From_new_cmds_GCJ=
15926   old_archive_from_expsyms_cmds_GCJ=
15927   export_dynamic_flag_spec_GCJ=
15928   whole_archive_flag_spec_GCJ=
15929   thread_safe_flag_spec_GCJ=
15930   hardcode_libdir_flag_spec_GCJ=
15931   hardcode_libdir_flag_spec_ld_GCJ=
15932   hardcode_libdir_separator_GCJ=
15933   hardcode_direct_GCJ=no
15934   hardcode_minus_L_GCJ=no
15935   hardcode_shlibpath_var_GCJ=unsupported
15936   link_all_deplibs_GCJ=unknown
15937   hardcode_automatic_GCJ=no
15938   module_cmds_GCJ=
15939   module_expsym_cmds_GCJ=
15940   always_export_symbols_GCJ=no
15941   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15942   # include_expsyms should be a list of space-separated symbols to be *always*
15943   # included in the symbol list
15944   include_expsyms_GCJ=
15945   # exclude_expsyms can be an extended regexp of symbols to exclude
15946   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15947   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15948   # as well as any symbol that contains `d'.
15949   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15950   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15951   # platforms (ab)use it in PIC code, but their linkers get confused if
15952   # the symbol is explicitly referenced.  Since portable code cannot
15953   # rely on this symbol name, it's probably fine to never include it in
15954   # preloaded symbol tables.
15955   extract_expsyms_cmds=
15956   # Just being paranoid about ensuring that cc_basename is set.
15957   for cc_temp in $compiler""; do
15958   case $cc_temp in
15959     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15960     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15961     \-*) ;;
15962     *) break;;
15963   esac
15964 done
15965 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15966
15967   case $host_os in
15968   cygwin* | mingw* | pw32*)
15969     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15970     # When not using gcc, we currently assume that we are using
15971     # Microsoft Visual C++.
15972     if test "$GCC" != yes; then
15973       with_gnu_ld=no
15974     fi
15975     ;;
15976   interix*)
15977     # we just hope/assume this is gcc and not c89 (= MSVC++)
15978     with_gnu_ld=yes
15979     ;;
15980   openbsd*)
15981     with_gnu_ld=no
15982     ;;
15983   esac
15984
15985   ld_shlibs_GCJ=yes
15986   if test "$with_gnu_ld" = yes; then
15987     # If archive_cmds runs LD, not CC, wlarc should be empty
15988     wlarc='${wl}'
15989
15990     # Set some defaults for GNU ld with shared library support. These
15991     # are reset later if shared libraries are not supported. Putting them
15992     # here allows them to be overridden if necessary.
15993     runpath_var=LD_RUN_PATH
15994     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15995     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15996     # ancient GNU ld didn't support --whole-archive et. al.
15997     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15998         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15999       else
16000         whole_archive_flag_spec_GCJ=
16001     fi
16002     supports_anon_versioning=no
16003     case `$LD -v 2>/dev/null` in
16004       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16005       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16006       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16007       *\ 2.11.*) ;; # other 2.11 versions
16008       *) supports_anon_versioning=yes ;;
16009     esac
16010
16011     # See if GNU ld supports shared libraries.
16012     case $host_os in
16013     aix3* | aix4* | aix5*)
16014       # On AIX/PPC, the GNU linker is very broken
16015       if test "$host_cpu" != ia64; then
16016         ld_shlibs_GCJ=no
16017         cat <<EOF 1>&2
16018
16019 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16020 *** to be unable to reliably create shared libraries on AIX.
16021 *** Therefore, libtool is disabling shared libraries support.  If you
16022 *** really care for shared libraries, you may want to modify your PATH
16023 *** so that a non-GNU linker is found, and then restart.
16024
16025 EOF
16026       fi
16027       ;;
16028
16029     amigaos*)
16030       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)'
16031       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16032       hardcode_minus_L_GCJ=yes
16033
16034       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16035       # that the semantics of dynamic libraries on AmigaOS, at least up
16036       # to version 4, is to share data among multiple programs linked
16037       # with the same dynamic library.  Since this doesn't match the
16038       # behavior of shared libraries on other platforms, we can't use
16039       # them.
16040       ld_shlibs_GCJ=no
16041       ;;
16042
16043     beos*)
16044       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16045         allow_undefined_flag_GCJ=unsupported
16046         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16047         # support --undefined.  This deserves some investigation.  FIXME
16048         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16049       else
16050         ld_shlibs_GCJ=no
16051       fi
16052       ;;
16053
16054     cygwin* | mingw* | pw32*)
16055       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16056       # as there is no search path for DLLs.
16057       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16058       allow_undefined_flag_GCJ=unsupported
16059       always_export_symbols_GCJ=no
16060       enable_shared_with_static_runtimes_GCJ=yes
16061       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16062
16063       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16064         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16065         # If the export-symbols file already is a .def file (1st line
16066         # is EXPORTS), use it as is; otherwise, prepend...
16067         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16068           cp $export_symbols $output_objdir/$soname.def;
16069         else
16070           echo EXPORTS > $output_objdir/$soname.def;
16071           cat $export_symbols >> $output_objdir/$soname.def;
16072         fi~
16073         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16074       else
16075         ld_shlibs_GCJ=no
16076       fi
16077       ;;
16078
16079     interix3*)
16080       hardcode_direct_GCJ=no
16081       hardcode_shlibpath_var_GCJ=no
16082       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16083       export_dynamic_flag_spec_GCJ='${wl}-E'
16084       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16085       # Instead, shared libraries are loaded at an image base (0x10000000 by
16086       # default) and relocated if they conflict, which is a slow very memory
16087       # consuming and fragmenting process.  To avoid this, we pick a random,
16088       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16089       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16090       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'
16091       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'
16092       ;;
16093
16094     linux*)
16095       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16096         tmp_addflag=
16097         case $cc_basename,$host_cpu in
16098         pgcc*)                          # Portland Group C compiler
16099           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'
16100           tmp_addflag=' $pic_flag'
16101           ;;
16102         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16103           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'
16104           tmp_addflag=' $pic_flag -Mnomain' ;;
16105         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16106           tmp_addflag=' -i_dynamic' ;;
16107         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16108           tmp_addflag=' -i_dynamic -nofor_main' ;;
16109         ifc* | ifort*)                  # Intel Fortran compiler
16110           tmp_addflag=' -nofor_main' ;;
16111         esac
16112         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16113
16114         if test $supports_anon_versioning = yes; then
16115           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16116   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16117   $echo "local: *; };" >> $output_objdir/$libname.ver~
16118           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16119         fi
16120       else
16121         ld_shlibs_GCJ=no
16122       fi
16123       ;;
16124
16125     netbsd*)
16126       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16127         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16128         wlarc=
16129       else
16130         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16131         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16132       fi
16133       ;;
16134
16135     solaris*)
16136       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16137         ld_shlibs_GCJ=no
16138         cat <<EOF 1>&2
16139
16140 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16141 *** create shared libraries on Solaris systems.  Therefore, libtool
16142 *** is disabling shared libraries support.  We urge you to upgrade GNU
16143 *** binutils to release 2.9.1 or newer.  Another option is to modify
16144 *** your PATH or compiler configuration so that the native linker is
16145 *** used, and then restart.
16146
16147 EOF
16148       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16149         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16150         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16151       else
16152         ld_shlibs_GCJ=no
16153       fi
16154       ;;
16155
16156     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16157       case `$LD -v 2>&1` in
16158         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 
16159         ld_shlibs_GCJ=no
16160         cat <<_LT_EOF 1>&2
16161
16162 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16163 *** reliably create shared libraries on SCO systems.  Therefore, libtool
16164 *** is disabling shared libraries support.  We urge you to upgrade GNU
16165 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16166 *** your PATH or compiler configuration so that the native linker is
16167 *** used, and then restart.
16168
16169 _LT_EOF
16170         ;;
16171         *)
16172           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16173             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16174             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16175             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16176           else
16177             ld_shlibs_GCJ=no
16178           fi
16179         ;;
16180       esac
16181       ;;
16182
16183     sunos4*)
16184       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16185       wlarc=
16186       hardcode_direct_GCJ=yes
16187       hardcode_shlibpath_var_GCJ=no
16188       ;;
16189
16190     *)
16191       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16192         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16193         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16194       else
16195         ld_shlibs_GCJ=no
16196       fi
16197       ;;
16198     esac
16199
16200     if test "$ld_shlibs_GCJ" = no; then
16201       runpath_var=
16202       hardcode_libdir_flag_spec_GCJ=
16203       export_dynamic_flag_spec_GCJ=
16204       whole_archive_flag_spec_GCJ=
16205     fi
16206   else
16207     # PORTME fill in a description of your system's linker (not GNU ld)
16208     case $host_os in
16209     aix3*)
16210       allow_undefined_flag_GCJ=unsupported
16211       always_export_symbols_GCJ=yes
16212       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'
16213       # Note: this linker hardcodes the directories in LIBPATH if there
16214       # are no directories specified by -L.
16215       hardcode_minus_L_GCJ=yes
16216       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16217         # Neither direct hardcoding nor static linking is supported with a
16218         # broken collect2.
16219         hardcode_direct_GCJ=unsupported
16220       fi
16221       ;;
16222
16223     aix4* | aix5*)
16224       if test "$host_cpu" = ia64; then
16225         # On IA64, the linker does run time linking by default, so we don't
16226         # have to do anything special.
16227         aix_use_runtimelinking=no
16228         exp_sym_flag='-Bexport'
16229         no_entry_flag=""
16230       else
16231         # If we're using GNU nm, then we don't want the "-C" option.
16232         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16233         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16234           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'
16235         else
16236           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'
16237         fi
16238         aix_use_runtimelinking=no
16239
16240         # Test if we are trying to use run time linking or normal
16241         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16242         # need to do runtime linking.
16243         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16244           for ld_flag in $LDFLAGS; do
16245           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16246             aix_use_runtimelinking=yes
16247             break
16248           fi
16249           done
16250           ;;
16251         esac
16252
16253         exp_sym_flag='-bexport'
16254         no_entry_flag='-bnoentry'
16255       fi
16256
16257       # When large executables or shared objects are built, AIX ld can
16258       # have problems creating the table of contents.  If linking a library
16259       # or program results in "error TOC overflow" add -mminimal-toc to
16260       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16261       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16262
16263       archive_cmds_GCJ=''
16264       hardcode_direct_GCJ=yes
16265       hardcode_libdir_separator_GCJ=':'
16266       link_all_deplibs_GCJ=yes
16267
16268       if test "$GCC" = yes; then
16269         case $host_os in aix4.[012]|aix4.[012].*)
16270         # We only want to do this on AIX 4.2 and lower, the check
16271         # below for broken collect2 doesn't work under 4.3+
16272           collect2name=`${CC} -print-prog-name=collect2`
16273           if test -f "$collect2name" && \
16274            strings "$collect2name" | grep resolve_lib_name >/dev/null
16275           then
16276           # We have reworked collect2
16277           hardcode_direct_GCJ=yes
16278           else
16279           # We have old collect2
16280           hardcode_direct_GCJ=unsupported
16281           # It fails to find uninstalled libraries when the uninstalled
16282           # path is not listed in the libpath.  Setting hardcode_minus_L
16283           # to unsupported forces relinking
16284           hardcode_minus_L_GCJ=yes
16285           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16286           hardcode_libdir_separator_GCJ=
16287           fi
16288           ;;
16289         esac
16290         shared_flag='-shared'
16291         if test "$aix_use_runtimelinking" = yes; then
16292           shared_flag="$shared_flag "'${wl}-G'
16293         fi
16294       else
16295         # not using gcc
16296         if test "$host_cpu" = ia64; then
16297         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16298         # chokes on -Wl,-G. The following line is correct:
16299           shared_flag='-G'
16300         else
16301           if test "$aix_use_runtimelinking" = yes; then
16302             shared_flag='${wl}-G'
16303           else
16304             shared_flag='${wl}-bM:SRE'
16305           fi
16306         fi
16307       fi
16308
16309       # It seems that -bexpall does not export symbols beginning with
16310       # underscore (_), so it is better to generate a list of symbols to export.
16311       always_export_symbols_GCJ=yes
16312       if test "$aix_use_runtimelinking" = yes; then
16313         # Warning - without using the other runtime loading flags (-brtl),
16314         # -berok will link without error, but may produce a broken library.
16315         allow_undefined_flag_GCJ='-berok'
16316        # Determine the default libpath from the value encoded in an empty executable.
16317        cat >conftest.$ac_ext <<_ACEOF
16318 /* confdefs.h.  */
16319 _ACEOF
16320 cat confdefs.h >>conftest.$ac_ext
16321 cat >>conftest.$ac_ext <<_ACEOF
16322 /* end confdefs.h.  */
16323
16324 int
16325 main ()
16326 {
16327
16328   ;
16329   return 0;
16330 }
16331 _ACEOF
16332 rm -f conftest.$ac_objext conftest$ac_exeext
16333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16334   (eval $ac_link) 2>conftest.er1
16335   ac_status=$?
16336   grep -v '^ *+' conftest.er1 >conftest.err
16337   rm -f conftest.er1
16338   cat conftest.err >&5
16339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16340   (exit $ac_status); } &&
16341          { ac_try='test -z "$ac_c_werror_flag"
16342                          || test ! -s conftest.err'
16343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16344   (eval $ac_try) 2>&5
16345   ac_status=$?
16346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16347   (exit $ac_status); }; } &&
16348          { ac_try='test -s conftest$ac_exeext'
16349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16350   (eval $ac_try) 2>&5
16351   ac_status=$?
16352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16353   (exit $ac_status); }; }; then
16354   
16355 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16356 }'`
16357 # Check for a 64-bit object if we didn't find anything.
16358 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; }
16359 }'`; fi
16360 else
16361   echo "$as_me: failed program was:" >&5
16362 sed 's/^/| /' conftest.$ac_ext >&5
16363
16364 fi
16365 rm -f conftest.err conftest.$ac_objext \
16366       conftest$ac_exeext conftest.$ac_ext
16367 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16368
16369        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16370         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"
16371        else
16372         if test "$host_cpu" = ia64; then
16373           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16374           allow_undefined_flag_GCJ="-z nodefs"
16375           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"
16376         else
16377          # Determine the default libpath from the value encoded in an empty executable.
16378          cat >conftest.$ac_ext <<_ACEOF
16379 /* confdefs.h.  */
16380 _ACEOF
16381 cat confdefs.h >>conftest.$ac_ext
16382 cat >>conftest.$ac_ext <<_ACEOF
16383 /* end confdefs.h.  */
16384
16385 int
16386 main ()
16387 {
16388
16389   ;
16390   return 0;
16391 }
16392 _ACEOF
16393 rm -f conftest.$ac_objext conftest$ac_exeext
16394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16395   (eval $ac_link) 2>conftest.er1
16396   ac_status=$?
16397   grep -v '^ *+' conftest.er1 >conftest.err
16398   rm -f conftest.er1
16399   cat conftest.err >&5
16400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401   (exit $ac_status); } &&
16402          { ac_try='test -z "$ac_c_werror_flag"
16403                          || test ! -s conftest.err'
16404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16405   (eval $ac_try) 2>&5
16406   ac_status=$?
16407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16408   (exit $ac_status); }; } &&
16409          { ac_try='test -s conftest$ac_exeext'
16410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16411   (eval $ac_try) 2>&5
16412   ac_status=$?
16413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16414   (exit $ac_status); }; }; then
16415   
16416 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16417 }'`
16418 # Check for a 64-bit object if we didn't find anything.
16419 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; }
16420 }'`; fi
16421 else
16422   echo "$as_me: failed program was:" >&5
16423 sed 's/^/| /' conftest.$ac_ext >&5
16424
16425 fi
16426 rm -f conftest.err conftest.$ac_objext \
16427       conftest$ac_exeext conftest.$ac_ext
16428 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16429
16430          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16431           # Warning - without using the other run time loading flags,
16432           # -berok will link without error, but may produce a broken library.
16433           no_undefined_flag_GCJ=' ${wl}-bernotok'
16434           allow_undefined_flag_GCJ=' ${wl}-berok'
16435           # Exported symbols can be pulled into shared objects from archives
16436           whole_archive_flag_spec_GCJ='$convenience'
16437           archive_cmds_need_lc_GCJ=yes
16438           # This is similar to how AIX traditionally builds its shared libraries.
16439           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'
16440         fi
16441       fi
16442       ;;
16443
16444     amigaos*)
16445       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)'
16446       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16447       hardcode_minus_L_GCJ=yes
16448       # see comment about different semantics on the GNU ld section
16449       ld_shlibs_GCJ=no
16450       ;;
16451
16452     bsdi[45]*)
16453       export_dynamic_flag_spec_GCJ=-rdynamic
16454       ;;
16455
16456     cygwin* | mingw* | pw32*)
16457       # When not using gcc, we currently assume that we are using
16458       # Microsoft Visual C++.
16459       # hardcode_libdir_flag_spec is actually meaningless, as there is
16460       # no search path for DLLs.
16461       hardcode_libdir_flag_spec_GCJ=' '
16462       allow_undefined_flag_GCJ=unsupported
16463       # Tell ltmain to make .lib files, not .a files.
16464       libext=lib
16465       # Tell ltmain to make .dll files, not .so files.
16466       shrext_cmds=".dll"
16467       # FIXME: Setting linknames here is a bad hack.
16468       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16469       # The linker will automatically build a .lib file if we build a DLL.
16470       old_archive_From_new_cmds_GCJ='true'
16471       # FIXME: Should let the user specify the lib program.
16472       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16473       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16474       enable_shared_with_static_runtimes_GCJ=yes
16475       ;;
16476
16477     darwin* | rhapsody*)
16478       case $host_os in
16479         rhapsody* | darwin1.[012])
16480          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16481          ;;
16482        *) # Darwin 1.3 on
16483          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16484            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16485          else
16486            case ${MACOSX_DEPLOYMENT_TARGET} in
16487              10.[012])
16488                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16489                ;;
16490              10.*)
16491                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16492                ;;
16493            esac
16494          fi
16495          ;;
16496       esac
16497       archive_cmds_need_lc_GCJ=no
16498       hardcode_direct_GCJ=no
16499       hardcode_automatic_GCJ=yes
16500       hardcode_shlibpath_var_GCJ=unsupported
16501       whole_archive_flag_spec_GCJ=''
16502       link_all_deplibs_GCJ=yes
16503     if test "$GCC" = yes ; then
16504         output_verbose_link_cmd='echo'
16505         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16506       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16507       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16508       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}'
16509       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}'
16510     else
16511       case $cc_basename in
16512         xlc*)
16513          output_verbose_link_cmd='echo'
16514          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16515          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16516           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16517          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}'
16518           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}'
16519           ;;
16520        *)
16521          ld_shlibs_GCJ=no
16522           ;;
16523       esac
16524     fi
16525       ;;
16526
16527     dgux*)
16528       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16529       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16530       hardcode_shlibpath_var_GCJ=no
16531       ;;
16532
16533     freebsd1*)
16534       ld_shlibs_GCJ=no
16535       ;;
16536
16537     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16538     # support.  Future versions do this automatically, but an explicit c++rt0.o
16539     # does not break anything, and helps significantly (at the cost of a little
16540     # extra space).
16541     freebsd2.2*)
16542       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16543       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16544       hardcode_direct_GCJ=yes
16545       hardcode_shlibpath_var_GCJ=no
16546       ;;
16547
16548     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16549     freebsd2*)
16550       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16551       hardcode_direct_GCJ=yes
16552       hardcode_minus_L_GCJ=yes
16553       hardcode_shlibpath_var_GCJ=no
16554       ;;
16555
16556     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16557     freebsd* | kfreebsd*-gnu | dragonfly*)
16558       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16559       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16560       hardcode_direct_GCJ=yes
16561       hardcode_shlibpath_var_GCJ=no
16562       ;;
16563
16564     hpux9*)
16565       if test "$GCC" = yes; then
16566         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'
16567       else
16568         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'
16569       fi
16570       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16571       hardcode_libdir_separator_GCJ=:
16572       hardcode_direct_GCJ=yes
16573
16574       # hardcode_minus_L: Not really in the search PATH,
16575       # but as the default location of the library.
16576       hardcode_minus_L_GCJ=yes
16577       export_dynamic_flag_spec_GCJ='${wl}-E'
16578       ;;
16579
16580     hpux10*)
16581       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16582         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16583       else
16584         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16585       fi
16586       if test "$with_gnu_ld" = no; then
16587         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16588         hardcode_libdir_separator_GCJ=:
16589
16590         hardcode_direct_GCJ=yes
16591         export_dynamic_flag_spec_GCJ='${wl}-E'
16592
16593         # hardcode_minus_L: Not really in the search PATH,
16594         # but as the default location of the library.
16595         hardcode_minus_L_GCJ=yes
16596       fi
16597       ;;
16598
16599     hpux11*)
16600       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16601         case $host_cpu in
16602         hppa*64*)
16603           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16604           ;;
16605         ia64*)
16606           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16607           ;;
16608         *)
16609           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16610           ;;
16611         esac
16612       else
16613         case $host_cpu in
16614         hppa*64*)
16615           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16616           ;;
16617         ia64*)
16618           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16619           ;;
16620         *)
16621           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16622           ;;
16623         esac
16624       fi
16625       if test "$with_gnu_ld" = no; then
16626         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16627         hardcode_libdir_separator_GCJ=:
16628
16629         case $host_cpu in
16630         hppa*64*|ia64*)
16631           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16632           hardcode_direct_GCJ=no
16633           hardcode_shlibpath_var_GCJ=no
16634           ;;
16635         *)
16636           hardcode_direct_GCJ=yes
16637           export_dynamic_flag_spec_GCJ='${wl}-E'
16638
16639           # hardcode_minus_L: Not really in the search PATH,
16640           # but as the default location of the library.
16641           hardcode_minus_L_GCJ=yes
16642           ;;
16643         esac
16644       fi
16645       ;;
16646
16647     irix5* | irix6* | nonstopux*)
16648       if test "$GCC" = yes; then
16649         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'
16650       else
16651         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'
16652         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16653       fi
16654       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16655       hardcode_libdir_separator_GCJ=:
16656       link_all_deplibs_GCJ=yes
16657       ;;
16658
16659     netbsd*)
16660       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16661         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16662       else
16663         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16664       fi
16665       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16666       hardcode_direct_GCJ=yes
16667       hardcode_shlibpath_var_GCJ=no
16668       ;;
16669
16670     newsos6)
16671       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16672       hardcode_direct_GCJ=yes
16673       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16674       hardcode_libdir_separator_GCJ=:
16675       hardcode_shlibpath_var_GCJ=no
16676       ;;
16677
16678     openbsd*)
16679       hardcode_direct_GCJ=yes
16680       hardcode_shlibpath_var_GCJ=no
16681       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16682         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16683         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16684         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16685         export_dynamic_flag_spec_GCJ='${wl}-E'
16686       else
16687        case $host_os in
16688          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16689            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16690            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16691            ;;
16692          *)
16693            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16694            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16695            ;;
16696        esac
16697       fi
16698       ;;
16699
16700     os2*)
16701       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16702       hardcode_minus_L_GCJ=yes
16703       allow_undefined_flag_GCJ=unsupported
16704       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'
16705       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16706       ;;
16707
16708     osf3*)
16709       if test "$GCC" = yes; then
16710         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16711         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'
16712       else
16713         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16714         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'
16715       fi
16716       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16717       hardcode_libdir_separator_GCJ=:
16718       ;;
16719
16720     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16721       if test "$GCC" = yes; then
16722         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16723         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16724         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16725       else
16726         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16727         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'
16728         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~
16729         $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'
16730
16731         # Both c and cxx compiler support -rpath directly
16732         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16733       fi
16734       hardcode_libdir_separator_GCJ=:
16735       ;;
16736
16737     solaris*)
16738       no_undefined_flag_GCJ=' -z text'
16739       if test "$GCC" = yes; then
16740         wlarc='${wl}'
16741         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16742         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16743           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16744       else
16745         wlarc=''
16746         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16747         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16748         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16749       fi
16750       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16751       hardcode_shlibpath_var_GCJ=no
16752       case $host_os in
16753       solaris2.[0-5] | solaris2.[0-5].*) ;;
16754       *)
16755         # The compiler driver will combine linker options so we
16756         # cannot just pass the convience library names through
16757         # without $wl, iff we do not link with $LD.
16758         # Luckily, gcc supports the same syntax we need for Sun Studio.
16759         # Supported since Solaris 2.6 (maybe 2.5.1?)
16760         case $wlarc in
16761         '')
16762           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16763         *)
16764           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' ;;
16765         esac ;;
16766       esac
16767       link_all_deplibs_GCJ=yes
16768       ;;
16769
16770     sunos4*)
16771       if test "x$host_vendor" = xsequent; then
16772         # Use $CC to link under sequent, because it throws in some extra .o
16773         # files that make .init and .fini sections work.
16774         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16775       else
16776         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16777       fi
16778       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16779       hardcode_direct_GCJ=yes
16780       hardcode_minus_L_GCJ=yes
16781       hardcode_shlibpath_var_GCJ=no
16782       ;;
16783
16784     sysv4)
16785       case $host_vendor in
16786         sni)
16787           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16788           hardcode_direct_GCJ=yes # is this really true???
16789         ;;
16790         siemens)
16791           ## LD is ld it makes a PLAMLIB
16792           ## CC just makes a GrossModule.
16793           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16794           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16795           hardcode_direct_GCJ=no
16796         ;;
16797         motorola)
16798           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16799           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16800         ;;
16801       esac
16802       runpath_var='LD_RUN_PATH'
16803       hardcode_shlibpath_var_GCJ=no
16804       ;;
16805
16806     sysv4.3*)
16807       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16808       hardcode_shlibpath_var_GCJ=no
16809       export_dynamic_flag_spec_GCJ='-Bexport'
16810       ;;
16811
16812     sysv4*MP*)
16813       if test -d /usr/nec; then
16814         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16815         hardcode_shlibpath_var_GCJ=no
16816         runpath_var=LD_RUN_PATH
16817         hardcode_runpath_var=yes
16818         ld_shlibs_GCJ=yes
16819       fi
16820       ;;
16821
16822     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16823       no_undefined_flag_GCJ='${wl}-z,text'
16824       archive_cmds_need_lc_GCJ=no
16825       hardcode_shlibpath_var_GCJ=no
16826       runpath_var='LD_RUN_PATH'
16827
16828       if test "$GCC" = yes; then
16829         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16830         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16831       else
16832         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16833         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16834       fi
16835       ;;
16836
16837     sysv5* | sco3.2v5* | sco5v6*)
16838       # Note: We can NOT use -z defs as we might desire, because we do not
16839       # link with -lc, and that would cause any symbols used from libc to
16840       # always be unresolved, which means just about no library would
16841       # ever link correctly.  If we're not using GNU ld we use -z text
16842       # though, which does catch some bad symbols but isn't as heavy-handed
16843       # as -z defs.
16844       no_undefined_flag_GCJ='${wl}-z,text'
16845       allow_undefined_flag_GCJ='${wl}-z,nodefs'
16846       archive_cmds_need_lc_GCJ=no
16847       hardcode_shlibpath_var_GCJ=no
16848       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16849       hardcode_libdir_separator_GCJ=':'
16850       link_all_deplibs_GCJ=yes
16851       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16852       runpath_var='LD_RUN_PATH'
16853
16854       if test "$GCC" = yes; then
16855         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16856         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16857       else
16858         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16859         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16860       fi
16861       ;;
16862
16863     uts4*)
16864       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16865       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16866       hardcode_shlibpath_var_GCJ=no
16867       ;;
16868
16869     *)
16870       ld_shlibs_GCJ=no
16871       ;;
16872     esac
16873   fi
16874
16875 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16876 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16877 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16878
16879 #
16880 # Do we need to explicitly link libc?
16881 #
16882 case "x$archive_cmds_need_lc_GCJ" in
16883 x|xyes)
16884   # Assume -lc should be added
16885   archive_cmds_need_lc_GCJ=yes
16886
16887   if test "$enable_shared" = yes && test "$GCC" = yes; then
16888     case $archive_cmds_GCJ in
16889     *'~'*)
16890       # FIXME: we may have to deal with multi-command sequences.
16891       ;;
16892     '$CC '*)
16893       # Test whether the compiler implicitly links with -lc since on some
16894       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16895       # to ld, don't add -lc before -lgcc.
16896       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16897 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16898       $rm conftest*
16899       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16900
16901       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16902   (eval $ac_compile) 2>&5
16903   ac_status=$?
16904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16905   (exit $ac_status); } 2>conftest.err; then
16906         soname=conftest
16907         lib=conftest
16908         libobjs=conftest.$ac_objext
16909         deplibs=
16910         wl=$lt_prog_compiler_wl_GCJ
16911         pic_flag=$lt_prog_compiler_pic_GCJ
16912         compiler_flags=-v
16913         linker_flags=-v
16914         verstring=
16915         output_objdir=.
16916         libname=conftest
16917         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16918         allow_undefined_flag_GCJ=
16919         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16920   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16921   ac_status=$?
16922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923   (exit $ac_status); }
16924         then
16925           archive_cmds_need_lc_GCJ=no
16926         else
16927           archive_cmds_need_lc_GCJ=yes
16928         fi
16929         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16930       else
16931         cat conftest.err 1>&5
16932       fi
16933       $rm conftest*
16934       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16935 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16936       ;;
16937     esac
16938   fi
16939   ;;
16940 esac
16941
16942 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16943 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16944 library_names_spec=
16945 libname_spec='lib$name'
16946 soname_spec=
16947 shrext_cmds=".so"
16948 postinstall_cmds=
16949 postuninstall_cmds=
16950 finish_cmds=
16951 finish_eval=
16952 shlibpath_var=
16953 shlibpath_overrides_runpath=unknown
16954 version_type=none
16955 dynamic_linker="$host_os ld.so"
16956 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16957 if test "$GCC" = yes; then
16958   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16959   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16960     # if the path contains ";" then we assume it to be the separator
16961     # otherwise default to the standard path separator (i.e. ":") - it is
16962     # assumed that no part of a normal pathname contains ";" but that should
16963     # okay in the real world where ";" in dirpaths is itself problematic.
16964     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16965   else
16966     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16967   fi
16968 else
16969   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16970 fi
16971 need_lib_prefix=unknown
16972 hardcode_into_libs=no
16973
16974 # when you set need_version to no, make sure it does not cause -set_version
16975 # flags to be left without arguments
16976 need_version=unknown
16977
16978 case $host_os in
16979 aix3*)
16980   version_type=linux
16981   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16982   shlibpath_var=LIBPATH
16983
16984   # AIX 3 has no versioning support, so we append a major version to the name.
16985   soname_spec='${libname}${release}${shared_ext}$major'
16986   ;;
16987
16988 aix4* | aix5*)
16989   version_type=linux
16990   need_lib_prefix=no
16991   need_version=no
16992   hardcode_into_libs=yes
16993   if test "$host_cpu" = ia64; then
16994     # AIX 5 supports IA64
16995     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16996     shlibpath_var=LD_LIBRARY_PATH
16997   else
16998     # With GCC up to 2.95.x, collect2 would create an import file
16999     # for dependence libraries.  The import file would start with
17000     # the line `#! .'.  This would cause the generated library to
17001     # depend on `.', always an invalid library.  This was fixed in
17002     # development snapshots of GCC prior to 3.0.
17003     case $host_os in
17004       aix4 | aix4.[01] | aix4.[01].*)
17005       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17006            echo ' yes '
17007            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17008         :
17009       else
17010         can_build_shared=no
17011       fi
17012       ;;
17013     esac
17014     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17015     # soname into executable. Probably we can add versioning support to
17016     # collect2, so additional links can be useful in future.
17017     if test "$aix_use_runtimelinking" = yes; then
17018       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17019       # instead of lib<name>.a to let people know that these are not
17020       # typical AIX shared libraries.
17021       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17022     else
17023       # We preserve .a as extension for shared libraries through AIX4.2
17024       # and later when we are not doing run time linking.
17025       library_names_spec='${libname}${release}.a $libname.a'
17026       soname_spec='${libname}${release}${shared_ext}$major'
17027     fi
17028     shlibpath_var=LIBPATH
17029   fi
17030   ;;
17031
17032 amigaos*)
17033   library_names_spec='$libname.ixlibrary $libname.a'
17034   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17035   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'
17036   ;;
17037
17038 beos*)
17039   library_names_spec='${libname}${shared_ext}'
17040   dynamic_linker="$host_os ld.so"
17041   shlibpath_var=LIBRARY_PATH
17042   ;;
17043
17044 bsdi[45]*)
17045   version_type=linux
17046   need_version=no
17047   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17048   soname_spec='${libname}${release}${shared_ext}$major'
17049   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17050   shlibpath_var=LD_LIBRARY_PATH
17051   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17052   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17053   # the default ld.so.conf also contains /usr/contrib/lib and
17054   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17055   # libtool to hard-code these into programs
17056   ;;
17057
17058 cygwin* | mingw* | pw32*)
17059   version_type=windows
17060   shrext_cmds=".dll"
17061   need_version=no
17062   need_lib_prefix=no
17063
17064   case $GCC,$host_os in
17065   yes,cygwin* | yes,mingw* | yes,pw32*)
17066     library_names_spec='$libname.dll.a'
17067     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17068     postinstall_cmds='base_file=`basename \${file}`~
17069       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17070       dldir=$destdir/`dirname \$dlpath`~
17071       test -d \$dldir || mkdir -p \$dldir~
17072       $install_prog $dir/$dlname \$dldir/$dlname~
17073       chmod a+x \$dldir/$dlname'
17074     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17075       dlpath=$dir/\$dldll~
17076        $rm \$dlpath'
17077     shlibpath_overrides_runpath=yes
17078
17079     case $host_os in
17080     cygwin*)
17081       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17082       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17083       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17084       ;;
17085     mingw*)
17086       # MinGW DLLs use traditional 'lib' prefix
17087       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17088       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17089       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17090         # It is most probably a Windows format PATH printed by
17091         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17092         # path with ; separators, and with drive letters. We can handle the
17093         # drive letters (cygwin fileutils understands them), so leave them,
17094         # especially as we might pass files found there to a mingw objdump,
17095         # which wouldn't understand a cygwinified path. Ahh.
17096         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17097       else
17098         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17099       fi
17100       ;;
17101     pw32*)
17102       # pw32 DLLs use 'pw' prefix rather than 'lib'
17103       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17104       ;;
17105     esac
17106     ;;
17107
17108   *)
17109     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17110     ;;
17111   esac
17112   dynamic_linker='Win32 ld.exe'
17113   # FIXME: first we should search . and the directory the executable is in
17114   shlibpath_var=PATH
17115   ;;
17116
17117 darwin* | rhapsody*)
17118   dynamic_linker="$host_os dyld"
17119   version_type=darwin
17120   need_lib_prefix=no
17121   need_version=no
17122   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17123   soname_spec='${libname}${release}${major}$shared_ext'
17124   shlibpath_overrides_runpath=yes
17125   shlibpath_var=DYLD_LIBRARY_PATH
17126   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17127   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17128   if test "$GCC" = yes; then
17129     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"`
17130   else
17131     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17132   fi
17133   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17134   ;;
17135
17136 dgux*)
17137   version_type=linux
17138   need_lib_prefix=no
17139   need_version=no
17140   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17141   soname_spec='${libname}${release}${shared_ext}$major'
17142   shlibpath_var=LD_LIBRARY_PATH
17143   ;;
17144
17145 freebsd1*)
17146   dynamic_linker=no
17147   ;;
17148
17149 kfreebsd*-gnu)
17150   version_type=linux
17151   need_lib_prefix=no
17152   need_version=no
17153   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17154   soname_spec='${libname}${release}${shared_ext}$major'
17155   shlibpath_var=LD_LIBRARY_PATH
17156   shlibpath_overrides_runpath=no
17157   hardcode_into_libs=yes
17158   dynamic_linker='GNU ld.so'
17159   ;;
17160
17161 freebsd* | dragonfly*)
17162   # DragonFly does not have aout.  When/if they implement a new
17163   # versioning mechanism, adjust this.
17164   if test -x /usr/bin/objformat; then
17165     objformat=`/usr/bin/objformat`
17166   else
17167     case $host_os in
17168     freebsd[123]*) objformat=aout ;;
17169     *) objformat=elf ;;
17170     esac
17171   fi
17172   version_type=freebsd-$objformat
17173   case $version_type in
17174     freebsd-elf*)
17175       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17176       need_version=no
17177       need_lib_prefix=no
17178       ;;
17179     freebsd-*)
17180       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17181       need_version=yes
17182       ;;
17183   esac
17184   shlibpath_var=LD_LIBRARY_PATH
17185   case $host_os in
17186   freebsd2*)
17187     shlibpath_overrides_runpath=yes
17188     ;;
17189   freebsd3.[01]* | freebsdelf3.[01]*)
17190     shlibpath_overrides_runpath=yes
17191     hardcode_into_libs=yes
17192     ;;
17193   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17194   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17195     shlibpath_overrides_runpath=no
17196     hardcode_into_libs=yes
17197     ;;
17198   freebsd*) # from 4.6 on
17199     shlibpath_overrides_runpath=yes
17200     hardcode_into_libs=yes
17201     ;;
17202   esac
17203   ;;
17204
17205 gnu*)
17206   version_type=linux
17207   need_lib_prefix=no
17208   need_version=no
17209   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17210   soname_spec='${libname}${release}${shared_ext}$major'
17211   shlibpath_var=LD_LIBRARY_PATH
17212   hardcode_into_libs=yes
17213   ;;
17214
17215 hpux9* | hpux10* | hpux11*)
17216   # Give a soname corresponding to the major version so that dld.sl refuses to
17217   # link against other versions.
17218   version_type=sunos
17219   need_lib_prefix=no
17220   need_version=no
17221   case $host_cpu in
17222   ia64*)
17223     shrext_cmds='.so'
17224     hardcode_into_libs=yes
17225     dynamic_linker="$host_os dld.so"
17226     shlibpath_var=LD_LIBRARY_PATH
17227     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17228     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17229     soname_spec='${libname}${release}${shared_ext}$major'
17230     if test "X$HPUX_IA64_MODE" = X32; then
17231       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17232     else
17233       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17234     fi
17235     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17236     ;;
17237    hppa*64*)
17238      shrext_cmds='.sl'
17239      hardcode_into_libs=yes
17240      dynamic_linker="$host_os dld.sl"
17241      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17242      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17243      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17244      soname_spec='${libname}${release}${shared_ext}$major'
17245      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17246      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17247      ;;
17248    *)
17249     shrext_cmds='.sl'
17250     dynamic_linker="$host_os dld.sl"
17251     shlibpath_var=SHLIB_PATH
17252     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17253     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17254     soname_spec='${libname}${release}${shared_ext}$major'
17255     ;;
17256   esac
17257   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17258   postinstall_cmds='chmod 555 $lib'
17259   ;;
17260
17261 interix3*)
17262   version_type=linux
17263   need_lib_prefix=no
17264   need_version=no
17265   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17266   soname_spec='${libname}${release}${shared_ext}$major'
17267   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17268   shlibpath_var=LD_LIBRARY_PATH
17269   shlibpath_overrides_runpath=no
17270   hardcode_into_libs=yes
17271   ;;
17272
17273 irix5* | irix6* | nonstopux*)
17274   case $host_os in
17275     nonstopux*) version_type=nonstopux ;;
17276     *)
17277         if test "$lt_cv_prog_gnu_ld" = yes; then
17278                 version_type=linux
17279         else
17280                 version_type=irix
17281         fi ;;
17282   esac
17283   need_lib_prefix=no
17284   need_version=no
17285   soname_spec='${libname}${release}${shared_ext}$major'
17286   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17287   case $host_os in
17288   irix5* | nonstopux*)
17289     libsuff= shlibsuff=
17290     ;;
17291   *)
17292     case $LD in # libtool.m4 will add one of these switches to LD
17293     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17294       libsuff= shlibsuff= libmagic=32-bit;;
17295     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17296       libsuff=32 shlibsuff=N32 libmagic=N32;;
17297     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17298       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17299     *) libsuff= shlibsuff= libmagic=never-match;;
17300     esac
17301     ;;
17302   esac
17303   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17304   shlibpath_overrides_runpath=no
17305   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17306   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17307   hardcode_into_libs=yes
17308   ;;
17309
17310 # No shared lib support for Linux oldld, aout, or coff.
17311 linux*oldld* | linux*aout* | linux*coff*)
17312   dynamic_linker=no
17313   ;;
17314
17315 # This must be Linux ELF.
17316 linux*)
17317   version_type=linux
17318   need_lib_prefix=no
17319   need_version=no
17320   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17321   soname_spec='${libname}${release}${shared_ext}$major'
17322   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17323   shlibpath_var=LD_LIBRARY_PATH
17324   shlibpath_overrides_runpath=no
17325   # This implies no fast_install, which is unacceptable.
17326   # Some rework will be needed to allow for fast_install
17327   # before this can be enabled.
17328   hardcode_into_libs=yes
17329
17330   # Append ld.so.conf contents to the search path
17331   if test -f /etc/ld.so.conf; then
17332     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' ' '`
17333     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17334   fi
17335
17336   # We used to test for /lib/ld.so.1 and disable shared libraries on
17337   # powerpc, because MkLinux only supported shared libraries with the
17338   # GNU dynamic linker.  Since this was broken with cross compilers,
17339   # most powerpc-linux boxes support dynamic linking these days and
17340   # people can always --disable-shared, the test was removed, and we
17341   # assume the GNU/Linux dynamic linker is in use.
17342   dynamic_linker='GNU/Linux ld.so'
17343   ;;
17344
17345 knetbsd*-gnu)
17346   version_type=linux
17347   need_lib_prefix=no
17348   need_version=no
17349   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17350   soname_spec='${libname}${release}${shared_ext}$major'
17351   shlibpath_var=LD_LIBRARY_PATH
17352   shlibpath_overrides_runpath=no
17353   hardcode_into_libs=yes
17354   dynamic_linker='GNU ld.so'
17355   ;;
17356
17357 netbsd*)
17358   version_type=sunos
17359   need_lib_prefix=no
17360   need_version=no
17361   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17362     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17363     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17364     dynamic_linker='NetBSD (a.out) ld.so'
17365   else
17366     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17367     soname_spec='${libname}${release}${shared_ext}$major'
17368     dynamic_linker='NetBSD ld.elf_so'
17369   fi
17370   shlibpath_var=LD_LIBRARY_PATH
17371   shlibpath_overrides_runpath=yes
17372   hardcode_into_libs=yes
17373   ;;
17374
17375 newsos6)
17376   version_type=linux
17377   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17378   shlibpath_var=LD_LIBRARY_PATH
17379   shlibpath_overrides_runpath=yes
17380   ;;
17381
17382 nto-qnx*)
17383   version_type=linux
17384   need_lib_prefix=no
17385   need_version=no
17386   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17387   soname_spec='${libname}${release}${shared_ext}$major'
17388   shlibpath_var=LD_LIBRARY_PATH
17389   shlibpath_overrides_runpath=yes
17390   ;;
17391
17392 openbsd*)
17393   version_type=sunos
17394   sys_lib_dlsearch_path_spec="/usr/lib"
17395   need_lib_prefix=no
17396   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17397   case $host_os in
17398     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17399     *)                         need_version=no  ;;
17400   esac
17401   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17402   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17403   shlibpath_var=LD_LIBRARY_PATH
17404   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17405     case $host_os in
17406       openbsd2.[89] | openbsd2.[89].*)
17407         shlibpath_overrides_runpath=no
17408         ;;
17409       *)
17410         shlibpath_overrides_runpath=yes
17411         ;;
17412       esac
17413   else
17414     shlibpath_overrides_runpath=yes
17415   fi
17416   ;;
17417
17418 os2*)
17419   libname_spec='$name'
17420   shrext_cmds=".dll"
17421   need_lib_prefix=no
17422   library_names_spec='$libname${shared_ext} $libname.a'
17423   dynamic_linker='OS/2 ld.exe'
17424   shlibpath_var=LIBPATH
17425   ;;
17426
17427 osf3* | osf4* | osf5*)
17428   version_type=osf
17429   need_lib_prefix=no
17430   need_version=no
17431   soname_spec='${libname}${release}${shared_ext}$major'
17432   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17433   shlibpath_var=LD_LIBRARY_PATH
17434   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17435   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17436   ;;
17437
17438 solaris*)
17439   version_type=linux
17440   need_lib_prefix=no
17441   need_version=no
17442   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17443   soname_spec='${libname}${release}${shared_ext}$major'
17444   shlibpath_var=LD_LIBRARY_PATH
17445   shlibpath_overrides_runpath=yes
17446   hardcode_into_libs=yes
17447   # ldd complains unless libraries are executable
17448   postinstall_cmds='chmod +x $lib'
17449   ;;
17450
17451 sunos4*)
17452   version_type=sunos
17453   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17454   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17455   shlibpath_var=LD_LIBRARY_PATH
17456   shlibpath_overrides_runpath=yes
17457   if test "$with_gnu_ld" = yes; then
17458     need_lib_prefix=no
17459   fi
17460   need_version=yes
17461   ;;
17462
17463 sysv4 | sysv4.3*)
17464   version_type=linux
17465   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17466   soname_spec='${libname}${release}${shared_ext}$major'
17467   shlibpath_var=LD_LIBRARY_PATH
17468   case $host_vendor in
17469     sni)
17470       shlibpath_overrides_runpath=no
17471       need_lib_prefix=no
17472       export_dynamic_flag_spec='${wl}-Blargedynsym'
17473       runpath_var=LD_RUN_PATH
17474       ;;
17475     siemens)
17476       need_lib_prefix=no
17477       ;;
17478     motorola)
17479       need_lib_prefix=no
17480       need_version=no
17481       shlibpath_overrides_runpath=no
17482       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17483       ;;
17484   esac
17485   ;;
17486
17487 sysv4*MP*)
17488   if test -d /usr/nec ;then
17489     version_type=linux
17490     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17491     soname_spec='$libname${shared_ext}.$major'
17492     shlibpath_var=LD_LIBRARY_PATH
17493   fi
17494   ;;
17495
17496 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17497   version_type=freebsd-elf
17498   need_lib_prefix=no
17499   need_version=no
17500   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17501   soname_spec='${libname}${release}${shared_ext}$major'
17502   shlibpath_var=LD_LIBRARY_PATH
17503   hardcode_into_libs=yes
17504   if test "$with_gnu_ld" = yes; then
17505     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17506     shlibpath_overrides_runpath=no
17507   else
17508     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17509     shlibpath_overrides_runpath=yes
17510     case $host_os in
17511       sco3.2v5*)
17512         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17513         ;;
17514     esac
17515   fi
17516   sys_lib_dlsearch_path_spec='/usr/lib'
17517   ;;
17518
17519 uts4*)
17520   version_type=linux
17521   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17522   soname_spec='${libname}${release}${shared_ext}$major'
17523   shlibpath_var=LD_LIBRARY_PATH
17524   ;;
17525
17526 *)
17527   dynamic_linker=no
17528   ;;
17529 esac
17530 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17531 echo "${ECHO_T}$dynamic_linker" >&6
17532 test "$dynamic_linker" = no && can_build_shared=no
17533
17534 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17535 if test "$GCC" = yes; then
17536   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17537 fi
17538
17539 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17540 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17541 hardcode_action_GCJ=
17542 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17543    test -n "$runpath_var_GCJ" || \
17544    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17545
17546   # We can hardcode non-existant directories.
17547   if test "$hardcode_direct_GCJ" != no &&
17548      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17549      # have to relink, otherwise we might link with an installed library
17550      # when we should be linking with a yet-to-be-installed one
17551      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17552      test "$hardcode_minus_L_GCJ" != no; then
17553     # Linking always hardcodes the temporary library directory.
17554     hardcode_action_GCJ=relink
17555   else
17556     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17557     hardcode_action_GCJ=immediate
17558   fi
17559 else
17560   # We cannot hardcode anything, or else we can only hardcode existing
17561   # directories.
17562   hardcode_action_GCJ=unsupported
17563 fi
17564 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17565 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17566
17567 if test "$hardcode_action_GCJ" = relink; then
17568   # Fast installation is not supported
17569   enable_fast_install=no
17570 elif test "$shlibpath_overrides_runpath" = yes ||
17571      test "$enable_shared" = no; then
17572   # Fast installation is not necessary
17573   enable_fast_install=needless
17574 fi
17575
17576
17577 # The else clause should only fire when bootstrapping the
17578 # libtool distribution, otherwise you forgot to ship ltmain.sh
17579 # with your package, and you will get complaints that there are
17580 # no rules to generate ltmain.sh.
17581 if test -f "$ltmain"; then
17582   # See if we are running on zsh, and set the options which allow our commands through
17583   # without removal of \ escapes.
17584   if test -n "${ZSH_VERSION+set}" ; then
17585     setopt NO_GLOB_SUBST
17586   fi
17587   # Now quote all the things that may contain metacharacters while being
17588   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17589   # variables and quote the copies for generation of the libtool script.
17590   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17591     SED SHELL STRIP \
17592     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17593     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17594     deplibs_check_method reload_flag reload_cmds need_locks \
17595     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17596     lt_cv_sys_global_symbol_to_c_name_address \
17597     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17598     old_postinstall_cmds old_postuninstall_cmds \
17599     compiler_GCJ \
17600     CC_GCJ \
17601     LD_GCJ \
17602     lt_prog_compiler_wl_GCJ \
17603     lt_prog_compiler_pic_GCJ \
17604     lt_prog_compiler_static_GCJ \
17605     lt_prog_compiler_no_builtin_flag_GCJ \
17606     export_dynamic_flag_spec_GCJ \
17607     thread_safe_flag_spec_GCJ \
17608     whole_archive_flag_spec_GCJ \
17609     enable_shared_with_static_runtimes_GCJ \
17610     old_archive_cmds_GCJ \
17611     old_archive_from_new_cmds_GCJ \
17612     predep_objects_GCJ \
17613     postdep_objects_GCJ \
17614     predeps_GCJ \
17615     postdeps_GCJ \
17616     compiler_lib_search_path_GCJ \
17617     archive_cmds_GCJ \
17618     archive_expsym_cmds_GCJ \
17619     postinstall_cmds_GCJ \
17620     postuninstall_cmds_GCJ \
17621     old_archive_from_expsyms_cmds_GCJ \
17622     allow_undefined_flag_GCJ \
17623     no_undefined_flag_GCJ \
17624     export_symbols_cmds_GCJ \
17625     hardcode_libdir_flag_spec_GCJ \
17626     hardcode_libdir_flag_spec_ld_GCJ \
17627     hardcode_libdir_separator_GCJ \
17628     hardcode_automatic_GCJ \
17629     module_cmds_GCJ \
17630     module_expsym_cmds_GCJ \
17631     lt_cv_prog_compiler_c_o_GCJ \
17632     exclude_expsyms_GCJ \
17633     include_expsyms_GCJ; do
17634
17635     case $var in
17636     old_archive_cmds_GCJ | \
17637     old_archive_from_new_cmds_GCJ | \
17638     archive_cmds_GCJ | \
17639     archive_expsym_cmds_GCJ | \
17640     module_cmds_GCJ | \
17641     module_expsym_cmds_GCJ | \
17642     old_archive_from_expsyms_cmds_GCJ | \
17643     export_symbols_cmds_GCJ | \
17644     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17645     postinstall_cmds | postuninstall_cmds | \
17646     old_postinstall_cmds | old_postuninstall_cmds | \
17647     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17648       # Double-quote double-evaled strings.
17649       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17650       ;;
17651     *)
17652       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17653       ;;
17654     esac
17655   done
17656
17657   case $lt_echo in
17658   *'\$0 --fallback-echo"')
17659     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17660     ;;
17661   esac
17662
17663 cfgfile="$ofile"
17664
17665   cat <<__EOF__ >> "$cfgfile"
17666 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17667
17668 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17669
17670 # Shell to use when invoking shell scripts.
17671 SHELL=$lt_SHELL
17672
17673 # Whether or not to build shared libraries.
17674 build_libtool_libs=$enable_shared
17675
17676 # Whether or not to build static libraries.
17677 build_old_libs=$enable_static
17678
17679 # Whether or not to add -lc for building shared libraries.
17680 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17681
17682 # Whether or not to disallow shared libs when runtime libs are static
17683 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17684
17685 # Whether or not to optimize for fast installation.
17686 fast_install=$enable_fast_install
17687
17688 # The host system.
17689 host_alias=$host_alias
17690 host=$host
17691 host_os=$host_os
17692
17693 # The build system.
17694 build_alias=$build_alias
17695 build=$build
17696 build_os=$build_os
17697
17698 # An echo program that does not interpret backslashes.
17699 echo=$lt_echo
17700
17701 # The archiver.
17702 AR=$lt_AR
17703 AR_FLAGS=$lt_AR_FLAGS
17704
17705 # A C compiler.
17706 LTCC=$lt_LTCC
17707
17708 # LTCC compiler flags.
17709 LTCFLAGS=$lt_LTCFLAGS
17710
17711 # A language-specific compiler.
17712 CC=$lt_compiler_GCJ
17713
17714 # Is the compiler the GNU C compiler?
17715 with_gcc=$GCC_GCJ
17716
17717 # An ERE matcher.
17718 EGREP=$lt_EGREP
17719
17720 # The linker used to build libraries.
17721 LD=$lt_LD_GCJ
17722
17723 # Whether we need hard or soft links.
17724 LN_S=$lt_LN_S
17725
17726 # A BSD-compatible nm program.
17727 NM=$lt_NM
17728
17729 # A symbol stripping program
17730 STRIP=$lt_STRIP
17731
17732 # Used to examine libraries when file_magic_cmd begins "file"
17733 MAGIC_CMD=$MAGIC_CMD
17734
17735 # Used on cygwin: DLL creation program.
17736 DLLTOOL="$DLLTOOL"
17737
17738 # Used on cygwin: object dumper.
17739 OBJDUMP="$OBJDUMP"
17740
17741 # Used on cygwin: assembler.
17742 AS="$AS"
17743
17744 # The name of the directory that contains temporary libtool files.
17745 objdir=$objdir
17746
17747 # How to create reloadable object files.
17748 reload_flag=$lt_reload_flag
17749 reload_cmds=$lt_reload_cmds
17750
17751 # How to pass a linker flag through the compiler.
17752 wl=$lt_lt_prog_compiler_wl_GCJ
17753
17754 # Object file suffix (normally "o").
17755 objext="$ac_objext"
17756
17757 # Old archive suffix (normally "a").
17758 libext="$libext"
17759
17760 # Shared library suffix (normally ".so").
17761 shrext_cmds='$shrext_cmds'
17762
17763 # Executable file suffix (normally "").
17764 exeext="$exeext"
17765
17766 # Additional compiler flags for building library objects.
17767 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17768 pic_mode=$pic_mode
17769
17770 # What is the maximum length of a command?
17771 max_cmd_len=$lt_cv_sys_max_cmd_len
17772
17773 # Does compiler simultaneously support -c and -o options?
17774 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17775
17776 # Must we lock files when doing compilation?
17777 need_locks=$lt_need_locks
17778
17779 # Do we need the lib prefix for modules?
17780 need_lib_prefix=$need_lib_prefix
17781
17782 # Do we need a version for libraries?
17783 need_version=$need_version
17784
17785 # Whether dlopen is supported.
17786 dlopen_support=$enable_dlopen
17787
17788 # Whether dlopen of programs is supported.
17789 dlopen_self=$enable_dlopen_self
17790
17791 # Whether dlopen of statically linked programs is supported.
17792 dlopen_self_static=$enable_dlopen_self_static
17793
17794 # Compiler flag to prevent dynamic linking.
17795 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17796
17797 # Compiler flag to turn off builtin functions.
17798 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17799
17800 # Compiler flag to allow reflexive dlopens.
17801 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17802
17803 # Compiler flag to generate shared objects directly from archives.
17804 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17805
17806 # Compiler flag to generate thread-safe objects.
17807 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17808
17809 # Library versioning type.
17810 version_type=$version_type
17811
17812 # Format of library name prefix.
17813 libname_spec=$lt_libname_spec
17814
17815 # List of archive names.  First name is the real one, the rest are links.
17816 # The last name is the one that the linker finds with -lNAME.
17817 library_names_spec=$lt_library_names_spec
17818
17819 # The coded name of the library, if different from the real name.
17820 soname_spec=$lt_soname_spec
17821
17822 # Commands used to build and install an old-style archive.
17823 RANLIB=$lt_RANLIB
17824 old_archive_cmds=$lt_old_archive_cmds_GCJ
17825 old_postinstall_cmds=$lt_old_postinstall_cmds
17826 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17827
17828 # Create an old-style archive from a shared archive.
17829 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17830
17831 # Create a temporary old-style archive to link instead of a shared archive.
17832 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17833
17834 # Commands used to build and install a shared archive.
17835 archive_cmds=$lt_archive_cmds_GCJ
17836 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17837 postinstall_cmds=$lt_postinstall_cmds
17838 postuninstall_cmds=$lt_postuninstall_cmds
17839
17840 # Commands used to build a loadable module (assumed same as above if empty)
17841 module_cmds=$lt_module_cmds_GCJ
17842 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17843
17844 # Commands to strip libraries.
17845 old_striplib=$lt_old_striplib
17846 striplib=$lt_striplib
17847
17848 # Dependencies to place before the objects being linked to create a
17849 # shared library.
17850 predep_objects=$lt_predep_objects_GCJ
17851
17852 # Dependencies to place after the objects being linked to create a
17853 # shared library.
17854 postdep_objects=$lt_postdep_objects_GCJ
17855
17856 # Dependencies to place before the objects being linked to create a
17857 # shared library.
17858 predeps=$lt_predeps_GCJ
17859
17860 # Dependencies to place after the objects being linked to create a
17861 # shared library.
17862 postdeps=$lt_postdeps_GCJ
17863
17864 # The library search path used internally by the compiler when linking
17865 # a shared library.
17866 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17867
17868 # Method to check whether dependent libraries are shared objects.
17869 deplibs_check_method=$lt_deplibs_check_method
17870
17871 # Command to use when deplibs_check_method == file_magic.
17872 file_magic_cmd=$lt_file_magic_cmd
17873
17874 # Flag that allows shared libraries with undefined symbols to be built.
17875 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17876
17877 # Flag that forces no undefined symbols.
17878 no_undefined_flag=$lt_no_undefined_flag_GCJ
17879
17880 # Commands used to finish a libtool library installation in a directory.
17881 finish_cmds=$lt_finish_cmds
17882
17883 # Same as above, but a single script fragment to be evaled but not shown.
17884 finish_eval=$lt_finish_eval
17885
17886 # Take the output of nm and produce a listing of raw symbols and C names.
17887 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17888
17889 # Transform the output of nm in a proper C declaration
17890 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17891
17892 # Transform the output of nm in a C name address pair
17893 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17894
17895 # This is the shared library runtime path variable.
17896 runpath_var=$runpath_var
17897
17898 # This is the shared library path variable.
17899 shlibpath_var=$shlibpath_var
17900
17901 # Is shlibpath searched before the hard-coded library search path?
17902 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17903
17904 # How to hardcode a shared library path into an executable.
17905 hardcode_action=$hardcode_action_GCJ
17906
17907 # Whether we should hardcode library paths into libraries.
17908 hardcode_into_libs=$hardcode_into_libs
17909
17910 # Flag to hardcode \$libdir into a binary during linking.
17911 # This must work even if \$libdir does not exist.
17912 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17913
17914 # If ld is used when linking, flag to hardcode \$libdir into
17915 # a binary during linking. This must work even if \$libdir does
17916 # not exist.
17917 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17918
17919 # Whether we need a single -rpath flag with a separated argument.
17920 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17921
17922 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17923 # resulting binary.
17924 hardcode_direct=$hardcode_direct_GCJ
17925
17926 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17927 # resulting binary.
17928 hardcode_minus_L=$hardcode_minus_L_GCJ
17929
17930 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17931 # the resulting binary.
17932 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17933
17934 # Set to yes if building a shared library automatically hardcodes DIR into the library
17935 # and all subsequent libraries and executables linked against it.
17936 hardcode_automatic=$hardcode_automatic_GCJ
17937
17938 # Variables whose values should be saved in libtool wrapper scripts and
17939 # restored at relink time.
17940 variables_saved_for_relink="$variables_saved_for_relink"
17941
17942 # Whether libtool must link a program against all its dependency libraries.
17943 link_all_deplibs=$link_all_deplibs_GCJ
17944
17945 # Compile-time system search path for libraries
17946 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17947
17948 # Run-time system search path for libraries
17949 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17950
17951 # Fix the shell variable \$srcfile for the compiler.
17952 fix_srcfile_path="$fix_srcfile_path_GCJ"
17953
17954 # Set to yes if exported symbols are required.
17955 always_export_symbols=$always_export_symbols_GCJ
17956
17957 # The commands to list exported symbols.
17958 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17959
17960 # The commands to extract the exported symbol list from a shared archive.
17961 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17962
17963 # Symbols that should not be listed in the preloaded symbols.
17964 exclude_expsyms=$lt_exclude_expsyms_GCJ
17965
17966 # Symbols that must always be exported.
17967 include_expsyms=$lt_include_expsyms_GCJ
17968
17969 # ### END LIBTOOL TAG CONFIG: $tagname
17970
17971 __EOF__
17972
17973
17974 else
17975   # If there is no Makefile yet, we rely on a make rule to execute
17976   # `config.status --recheck' to rerun these tests and create the
17977   # libtool script then.
17978   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17979   if test -f "$ltmain_in"; then
17980     test -f Makefile && make "$ltmain"
17981   fi
17982 fi
17983
17984
17985 ac_ext=c
17986 ac_cpp='$CPP $CPPFLAGS'
17987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17990
17991 CC="$lt_save_CC"
17992
17993         else
17994           tagname=""
17995         fi
17996         ;;
17997
17998       RC)
17999         
18000
18001
18002 # Source file extension for RC test sources.
18003 ac_ext=rc
18004
18005 # Object file extension for compiled RC test sources.
18006 objext=o
18007 objext_RC=$objext
18008
18009 # Code to be used in simple compile tests
18010 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18011
18012 # Code to be used in simple link tests
18013 lt_simple_link_test_code="$lt_simple_compile_test_code"
18014
18015 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18016
18017 # If no C compiler was specified, use CC.
18018 LTCC=${LTCC-"$CC"}
18019
18020 # If no C compiler flags were specified, use CFLAGS.
18021 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18022
18023 # Allow CC to be a program name with arguments.
18024 compiler=$CC
18025
18026
18027 # save warnings/boilerplate of simple test code
18028 ac_outfile=conftest.$ac_objext
18029 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18030 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18031 _lt_compiler_boilerplate=`cat conftest.err`
18032 $rm conftest*
18033
18034 ac_outfile=conftest.$ac_objext
18035 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18036 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18037 _lt_linker_boilerplate=`cat conftest.err`
18038 $rm conftest*
18039
18040
18041 # Allow CC to be a program name with arguments.
18042 lt_save_CC="$CC"
18043 CC=${RC-"windres"}
18044 compiler=$CC
18045 compiler_RC=$CC
18046 for cc_temp in $compiler""; do
18047   case $cc_temp in
18048     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18049     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18050     \-*) ;;
18051     *) break;;
18052   esac
18053 done
18054 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18055
18056 lt_cv_prog_compiler_c_o_RC=yes
18057
18058 # The else clause should only fire when bootstrapping the
18059 # libtool distribution, otherwise you forgot to ship ltmain.sh
18060 # with your package, and you will get complaints that there are
18061 # no rules to generate ltmain.sh.
18062 if test -f "$ltmain"; then
18063   # See if we are running on zsh, and set the options which allow our commands through
18064   # without removal of \ escapes.
18065   if test -n "${ZSH_VERSION+set}" ; then
18066     setopt NO_GLOB_SUBST
18067   fi
18068   # Now quote all the things that may contain metacharacters while being
18069   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18070   # variables and quote the copies for generation of the libtool script.
18071   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18072     SED SHELL STRIP \
18073     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18074     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18075     deplibs_check_method reload_flag reload_cmds need_locks \
18076     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18077     lt_cv_sys_global_symbol_to_c_name_address \
18078     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18079     old_postinstall_cmds old_postuninstall_cmds \
18080     compiler_RC \
18081     CC_RC \
18082     LD_RC \
18083     lt_prog_compiler_wl_RC \
18084     lt_prog_compiler_pic_RC \
18085     lt_prog_compiler_static_RC \
18086     lt_prog_compiler_no_builtin_flag_RC \
18087     export_dynamic_flag_spec_RC \
18088     thread_safe_flag_spec_RC \
18089     whole_archive_flag_spec_RC \
18090     enable_shared_with_static_runtimes_RC \
18091     old_archive_cmds_RC \
18092     old_archive_from_new_cmds_RC \
18093     predep_objects_RC \
18094     postdep_objects_RC \
18095     predeps_RC \
18096     postdeps_RC \
18097     compiler_lib_search_path_RC \
18098     archive_cmds_RC \
18099     archive_expsym_cmds_RC \
18100     postinstall_cmds_RC \
18101     postuninstall_cmds_RC \
18102     old_archive_from_expsyms_cmds_RC \
18103     allow_undefined_flag_RC \
18104     no_undefined_flag_RC \
18105     export_symbols_cmds_RC \
18106     hardcode_libdir_flag_spec_RC \
18107     hardcode_libdir_flag_spec_ld_RC \
18108     hardcode_libdir_separator_RC \
18109     hardcode_automatic_RC \
18110     module_cmds_RC \
18111     module_expsym_cmds_RC \
18112     lt_cv_prog_compiler_c_o_RC \
18113     exclude_expsyms_RC \
18114     include_expsyms_RC; do
18115
18116     case $var in
18117     old_archive_cmds_RC | \
18118     old_archive_from_new_cmds_RC | \
18119     archive_cmds_RC | \
18120     archive_expsym_cmds_RC | \
18121     module_cmds_RC | \
18122     module_expsym_cmds_RC | \
18123     old_archive_from_expsyms_cmds_RC | \
18124     export_symbols_cmds_RC | \
18125     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18126     postinstall_cmds | postuninstall_cmds | \
18127     old_postinstall_cmds | old_postuninstall_cmds | \
18128     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18129       # Double-quote double-evaled strings.
18130       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18131       ;;
18132     *)
18133       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18134       ;;
18135     esac
18136   done
18137
18138   case $lt_echo in
18139   *'\$0 --fallback-echo"')
18140     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18141     ;;
18142   esac
18143
18144 cfgfile="$ofile"
18145
18146   cat <<__EOF__ >> "$cfgfile"
18147 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18148
18149 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18150
18151 # Shell to use when invoking shell scripts.
18152 SHELL=$lt_SHELL
18153
18154 # Whether or not to build shared libraries.
18155 build_libtool_libs=$enable_shared
18156
18157 # Whether or not to build static libraries.
18158 build_old_libs=$enable_static
18159
18160 # Whether or not to add -lc for building shared libraries.
18161 build_libtool_need_lc=$archive_cmds_need_lc_RC
18162
18163 # Whether or not to disallow shared libs when runtime libs are static
18164 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18165
18166 # Whether or not to optimize for fast installation.
18167 fast_install=$enable_fast_install
18168
18169 # The host system.
18170 host_alias=$host_alias
18171 host=$host
18172 host_os=$host_os
18173
18174 # The build system.
18175 build_alias=$build_alias
18176 build=$build
18177 build_os=$build_os
18178
18179 # An echo program that does not interpret backslashes.
18180 echo=$lt_echo
18181
18182 # The archiver.
18183 AR=$lt_AR
18184 AR_FLAGS=$lt_AR_FLAGS
18185
18186 # A C compiler.
18187 LTCC=$lt_LTCC
18188
18189 # LTCC compiler flags.
18190 LTCFLAGS=$lt_LTCFLAGS
18191
18192 # A language-specific compiler.
18193 CC=$lt_compiler_RC
18194
18195 # Is the compiler the GNU C compiler?
18196 with_gcc=$GCC_RC
18197
18198 # An ERE matcher.
18199 EGREP=$lt_EGREP
18200
18201 # The linker used to build libraries.
18202 LD=$lt_LD_RC
18203
18204 # Whether we need hard or soft links.
18205 LN_S=$lt_LN_S
18206
18207 # A BSD-compatible nm program.
18208 NM=$lt_NM
18209
18210 # A symbol stripping program
18211 STRIP=$lt_STRIP
18212
18213 # Used to examine libraries when file_magic_cmd begins "file"
18214 MAGIC_CMD=$MAGIC_CMD
18215
18216 # Used on cygwin: DLL creation program.
18217 DLLTOOL="$DLLTOOL"
18218
18219 # Used on cygwin: object dumper.
18220 OBJDUMP="$OBJDUMP"
18221
18222 # Used on cygwin: assembler.
18223 AS="$AS"
18224
18225 # The name of the directory that contains temporary libtool files.
18226 objdir=$objdir
18227
18228 # How to create reloadable object files.
18229 reload_flag=$lt_reload_flag
18230 reload_cmds=$lt_reload_cmds
18231
18232 # How to pass a linker flag through the compiler.
18233 wl=$lt_lt_prog_compiler_wl_RC
18234
18235 # Object file suffix (normally "o").
18236 objext="$ac_objext"
18237
18238 # Old archive suffix (normally "a").
18239 libext="$libext"
18240
18241 # Shared library suffix (normally ".so").
18242 shrext_cmds='$shrext_cmds'
18243
18244 # Executable file suffix (normally "").
18245 exeext="$exeext"
18246
18247 # Additional compiler flags for building library objects.
18248 pic_flag=$lt_lt_prog_compiler_pic_RC
18249 pic_mode=$pic_mode
18250
18251 # What is the maximum length of a command?
18252 max_cmd_len=$lt_cv_sys_max_cmd_len
18253
18254 # Does compiler simultaneously support -c and -o options?
18255 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18256
18257 # Must we lock files when doing compilation?
18258 need_locks=$lt_need_locks
18259
18260 # Do we need the lib prefix for modules?
18261 need_lib_prefix=$need_lib_prefix
18262
18263 # Do we need a version for libraries?
18264 need_version=$need_version
18265
18266 # Whether dlopen is supported.
18267 dlopen_support=$enable_dlopen
18268
18269 # Whether dlopen of programs is supported.
18270 dlopen_self=$enable_dlopen_self
18271
18272 # Whether dlopen of statically linked programs is supported.
18273 dlopen_self_static=$enable_dlopen_self_static
18274
18275 # Compiler flag to prevent dynamic linking.
18276 link_static_flag=$lt_lt_prog_compiler_static_RC
18277
18278 # Compiler flag to turn off builtin functions.
18279 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18280
18281 # Compiler flag to allow reflexive dlopens.
18282 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18283
18284 # Compiler flag to generate shared objects directly from archives.
18285 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18286
18287 # Compiler flag to generate thread-safe objects.
18288 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18289
18290 # Library versioning type.
18291 version_type=$version_type
18292
18293 # Format of library name prefix.
18294 libname_spec=$lt_libname_spec
18295
18296 # List of archive names.  First name is the real one, the rest are links.
18297 # The last name is the one that the linker finds with -lNAME.
18298 library_names_spec=$lt_library_names_spec
18299
18300 # The coded name of the library, if different from the real name.
18301 soname_spec=$lt_soname_spec
18302
18303 # Commands used to build and install an old-style archive.
18304 RANLIB=$lt_RANLIB
18305 old_archive_cmds=$lt_old_archive_cmds_RC
18306 old_postinstall_cmds=$lt_old_postinstall_cmds
18307 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18308
18309 # Create an old-style archive from a shared archive.
18310 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18311
18312 # Create a temporary old-style archive to link instead of a shared archive.
18313 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18314
18315 # Commands used to build and install a shared archive.
18316 archive_cmds=$lt_archive_cmds_RC
18317 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18318 postinstall_cmds=$lt_postinstall_cmds
18319 postuninstall_cmds=$lt_postuninstall_cmds
18320
18321 # Commands used to build a loadable module (assumed same as above if empty)
18322 module_cmds=$lt_module_cmds_RC
18323 module_expsym_cmds=$lt_module_expsym_cmds_RC
18324
18325 # Commands to strip libraries.
18326 old_striplib=$lt_old_striplib
18327 striplib=$lt_striplib
18328
18329 # Dependencies to place before the objects being linked to create a
18330 # shared library.
18331 predep_objects=$lt_predep_objects_RC
18332
18333 # Dependencies to place after the objects being linked to create a
18334 # shared library.
18335 postdep_objects=$lt_postdep_objects_RC
18336
18337 # Dependencies to place before the objects being linked to create a
18338 # shared library.
18339 predeps=$lt_predeps_RC
18340
18341 # Dependencies to place after the objects being linked to create a
18342 # shared library.
18343 postdeps=$lt_postdeps_RC
18344
18345 # The library search path used internally by the compiler when linking
18346 # a shared library.
18347 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18348
18349 # Method to check whether dependent libraries are shared objects.
18350 deplibs_check_method=$lt_deplibs_check_method
18351
18352 # Command to use when deplibs_check_method == file_magic.
18353 file_magic_cmd=$lt_file_magic_cmd
18354
18355 # Flag that allows shared libraries with undefined symbols to be built.
18356 allow_undefined_flag=$lt_allow_undefined_flag_RC
18357
18358 # Flag that forces no undefined symbols.
18359 no_undefined_flag=$lt_no_undefined_flag_RC
18360
18361 # Commands used to finish a libtool library installation in a directory.
18362 finish_cmds=$lt_finish_cmds
18363
18364 # Same as above, but a single script fragment to be evaled but not shown.
18365 finish_eval=$lt_finish_eval
18366
18367 # Take the output of nm and produce a listing of raw symbols and C names.
18368 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18369
18370 # Transform the output of nm in a proper C declaration
18371 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18372
18373 # Transform the output of nm in a C name address pair
18374 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18375
18376 # This is the shared library runtime path variable.
18377 runpath_var=$runpath_var
18378
18379 # This is the shared library path variable.
18380 shlibpath_var=$shlibpath_var
18381
18382 # Is shlibpath searched before the hard-coded library search path?
18383 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18384
18385 # How to hardcode a shared library path into an executable.
18386 hardcode_action=$hardcode_action_RC
18387
18388 # Whether we should hardcode library paths into libraries.
18389 hardcode_into_libs=$hardcode_into_libs
18390
18391 # Flag to hardcode \$libdir into a binary during linking.
18392 # This must work even if \$libdir does not exist.
18393 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18394
18395 # If ld is used when linking, flag to hardcode \$libdir into
18396 # a binary during linking. This must work even if \$libdir does
18397 # not exist.
18398 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18399
18400 # Whether we need a single -rpath flag with a separated argument.
18401 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18402
18403 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18404 # resulting binary.
18405 hardcode_direct=$hardcode_direct_RC
18406
18407 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18408 # resulting binary.
18409 hardcode_minus_L=$hardcode_minus_L_RC
18410
18411 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18412 # the resulting binary.
18413 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18414
18415 # Set to yes if building a shared library automatically hardcodes DIR into the library
18416 # and all subsequent libraries and executables linked against it.
18417 hardcode_automatic=$hardcode_automatic_RC
18418
18419 # Variables whose values should be saved in libtool wrapper scripts and
18420 # restored at relink time.
18421 variables_saved_for_relink="$variables_saved_for_relink"
18422
18423 # Whether libtool must link a program against all its dependency libraries.
18424 link_all_deplibs=$link_all_deplibs_RC
18425
18426 # Compile-time system search path for libraries
18427 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18428
18429 # Run-time system search path for libraries
18430 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18431
18432 # Fix the shell variable \$srcfile for the compiler.
18433 fix_srcfile_path="$fix_srcfile_path_RC"
18434
18435 # Set to yes if exported symbols are required.
18436 always_export_symbols=$always_export_symbols_RC
18437
18438 # The commands to list exported symbols.
18439 export_symbols_cmds=$lt_export_symbols_cmds_RC
18440
18441 # The commands to extract the exported symbol list from a shared archive.
18442 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18443
18444 # Symbols that should not be listed in the preloaded symbols.
18445 exclude_expsyms=$lt_exclude_expsyms_RC
18446
18447 # Symbols that must always be exported.
18448 include_expsyms=$lt_include_expsyms_RC
18449
18450 # ### END LIBTOOL TAG CONFIG: $tagname
18451
18452 __EOF__
18453
18454
18455 else
18456   # If there is no Makefile yet, we rely on a make rule to execute
18457   # `config.status --recheck' to rerun these tests and create the
18458   # libtool script then.
18459   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18460   if test -f "$ltmain_in"; then
18461     test -f Makefile && make "$ltmain"
18462   fi
18463 fi
18464
18465
18466 ac_ext=c
18467 ac_cpp='$CPP $CPPFLAGS'
18468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18471
18472 CC="$lt_save_CC"
18473
18474         ;;
18475
18476       *)
18477         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18478 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18479    { (exit 1); exit 1; }; }
18480         ;;
18481       esac
18482
18483       # Append the new tag name to the list of available tags.
18484       if test -n "$tagname" ; then
18485       available_tags="$available_tags $tagname"
18486     fi
18487     fi
18488   done
18489   IFS="$lt_save_ifs"
18490
18491   # Now substitute the updated list of available tags.
18492   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18493     mv "${ofile}T" "$ofile"
18494     chmod +x "$ofile"
18495   else
18496     rm -f "${ofile}T"
18497     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18498 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18499    { (exit 1); exit 1; }; }
18500   fi
18501 fi
18502
18503
18504
18505 # This can be used to rebuild libtool when needed
18506 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18507
18508 # Always use our own libtool.
18509 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18510
18511 # Prevent multiple expansion
18512
18513
18514
18515
18516
18517
18518
18519
18520
18521
18522
18523   
18524
18525   
18526
18527
18528   
18529        
18530        
18531
18532
18533
18534 #AC_CONFIG_HEADERS(sysdep.h)
18535 #AC_VERSION(6.72)
18536 #PACKAGE=gettext
18537 #VERSION=0.14.5
18538 #AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
18539 #AC_DEFINE_UNQUOTED(VERSION, "$VERSION")
18540 #AC_SUBST(PACKAGE)
18541 #AC_SUBST(VERSION)
18542 #AM_INIT_AUTOMAKE(gettext, 0.14.5)
18543
18544
18545 #AC_CANONICAL_HOST
18546 # Find a good install program.  We prefer a C program (faster),
18547 # so one script is as good as another.  But avoid the broken or
18548 # incompatible versions:
18549 # SysV /etc/install, /usr/sbin/install
18550 # SunOS /usr/etc/install
18551 # IRIX /sbin/install
18552 # AIX /bin/install
18553 # AmigaOS /C/install, which installs bootblocks on floppy discs
18554 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
18555 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
18556 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
18557 # OS/2's system install, which has a completely different semantic
18558 # ./install, which can be erroneously created by make from ./install.sh.
18559 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
18560 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
18561 if test -z "$INSTALL"; then
18562 if test "${ac_cv_path_install+set}" = set; then
18563   echo $ECHO_N "(cached) $ECHO_C" >&6
18564 else
18565   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18566 for as_dir in $PATH
18567 do
18568   IFS=$as_save_IFS
18569   test -z "$as_dir" && as_dir=.
18570   # Account for people who put trailing slashes in PATH elements.
18571 case $as_dir/ in
18572   ./ | .// | /cC/* | \
18573   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
18574   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
18575   /usr/ucb/* ) ;;
18576   *)
18577     # OSF1 and SCO ODT 3.0 have their own names for install.
18578     # Don't use installbsd from OSF since it installs stuff as root
18579     # by default.
18580     for ac_prog in ginstall scoinst install; do
18581       for ac_exec_ext in '' $ac_executable_extensions; do
18582         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
18583           if test $ac_prog = install &&
18584             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18585             # AIX install.  It has an incompatible calling convention.
18586             :
18587           elif test $ac_prog = install &&
18588             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18589             # program-specific install script used by HP pwplus--don't use.
18590             :
18591           else
18592             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
18593             break 3
18594           fi
18595         fi
18596       done
18597     done
18598     ;;
18599 esac
18600 done
18601
18602
18603 fi
18604   if test "${ac_cv_path_install+set}" = set; then
18605     INSTALL=$ac_cv_path_install
18606   else
18607     # As a last resort, use the slow shell script.  We don't cache a
18608     # path for INSTALL within a source directory, because that will
18609     # break other packages using the cache if that directory is
18610     # removed, or if the path is relative.
18611     INSTALL=$ac_install_sh
18612   fi
18613 fi
18614 echo "$as_me:$LINENO: result: $INSTALL" >&5
18615 echo "${ECHO_T}$INSTALL" >&6
18616
18617 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
18618 # It thinks the first close brace ends the variable substitution.
18619 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
18620
18621 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
18622
18623 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
18624
18625 # Extract the first word of "autoconf", so it can be a program name with args.
18626 set dummy autoconf; ac_word=$2
18627 echo "$as_me:$LINENO: checking for $ac_word" >&5
18628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18629 if test "${ac_cv_prog_AUTOCONF+set}" = set; then
18630   echo $ECHO_N "(cached) $ECHO_C" >&6
18631 else
18632   if test -n "$AUTOCONF"; then
18633   ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
18634 else
18635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18636 for as_dir in $PATH
18637 do
18638   IFS=$as_save_IFS
18639   test -z "$as_dir" && as_dir=.
18640   for ac_exec_ext in '' $ac_executable_extensions; do
18641   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18642     ac_cv_prog_AUTOCONF=""
18643     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18644     break 2
18645   fi
18646 done
18647 done
18648
18649 fi
18650 fi
18651 AUTOCONF=$ac_cv_prog_AUTOCONF
18652 if test -n "$AUTOCONF"; then
18653   echo "$as_me:$LINENO: result: $AUTOCONF" >&5
18654 echo "${ECHO_T}$AUTOCONF" >&6
18655 else
18656   echo "$as_me:$LINENO: result: no" >&5
18657 echo "${ECHO_T}no" >&6
18658 fi
18659
18660 # Extract the first word of "sed", so it can be a program name with args.
18661 set dummy sed; ac_word=$2
18662 echo "$as_me:$LINENO: checking for $ac_word" >&5
18663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18664 if test "${ac_cv_prog_SED+set}" = set; then
18665   echo $ECHO_N "(cached) $ECHO_C" >&6
18666 else
18667   if test -n "$SED"; then
18668   ac_cv_prog_SED="$SED" # Let the user override the test.
18669 else
18670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18671 for as_dir in $PATH
18672 do
18673   IFS=$as_save_IFS
18674   test -z "$as_dir" && as_dir=.
18675   for ac_exec_ext in '' $ac_executable_extensions; do
18676   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18677     ac_cv_prog_SED="sed"
18678     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18679     break 2
18680   fi
18681 done
18682 done
18683
18684   test -z "$ac_cv_prog_SED" && ac_cv_prog_SED="no"
18685 fi
18686 fi
18687 SED=$ac_cv_prog_SED
18688 if test -n "$SED"; then
18689   echo "$as_me:$LINENO: result: $SED" >&5
18690 echo "${ECHO_T}$SED" >&6
18691 else
18692   echo "$as_me:$LINENO: result: no" >&5
18693 echo "${ECHO_T}no" >&6
18694 fi
18695
18696
18697
18698 #AC_ARG_WITH(with_libical, [  --with-libical          use libical calendaring library])
18699 #AC_ARG_WITH(with_zlib,    [  --with-zlib             use zlib compression if present])
18700 #AC_ARG_WITH(with_newt,    [  --with-newt             use newt window library])
18701 #AC_ARG_WITH(ssl,
18702 #       [  --with-ssl=PATH         Specify path to OpenSSL installation ],
18703 #       [
18704 #               if test "x$withval" != "xno" ; then
18705 #                       tryssldir=$withval
18706 #               fi
18707 #       ]
18708 #)
18709 #AC_DEFINE([HAVE_ICAL], [  --with-libical          use libical calendaring library])
18710
18711 cat >>confdefs.h <<\_ACEOF
18712 @%:@define HAVE_OPENSSL 1
18713 _ACEOF
18714
18715
18716
18717 PTHREAD_DEFS=-D_REENTRANT
18718 case "$host" in
18719                                 alpha*-dec-osf*)
18720                 test -z "$CC" && CC=cc
18721                 LIBS=-pthread
18722         ;;
18723                 *-*-freebsd*)
18724                 LIBS=-pthread
18725                 PTHREAD_DEFS=-D_THREAD_SAFE
18726         ;;
18727         *-*-solaris*)
18728                 PTHREAD_DEFS='-D_REENTRANT -D_PTHREADS'
18729         ;;
18730 esac
18731
18732
18733 ac_ext=c
18734 ac_cpp='$CPP $CPPFLAGS'
18735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18738 if test -n "$ac_tool_prefix"; then
18739   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
18740 set dummy ${ac_tool_prefix}gcc; ac_word=$2
18741 echo "$as_me:$LINENO: checking for $ac_word" >&5
18742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18743 if test "${ac_cv_prog_CC+set}" = set; then
18744   echo $ECHO_N "(cached) $ECHO_C" >&6
18745 else
18746   if test -n "$CC"; then
18747   ac_cv_prog_CC="$CC" # Let the user override the test.
18748 else
18749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18750 for as_dir in $PATH
18751 do
18752   IFS=$as_save_IFS
18753   test -z "$as_dir" && as_dir=.
18754   for ac_exec_ext in '' $ac_executable_extensions; do
18755   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18756     ac_cv_prog_CC="${ac_tool_prefix}gcc"
18757     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18758     break 2
18759   fi
18760 done
18761 done
18762
18763 fi
18764 fi
18765 CC=$ac_cv_prog_CC
18766 if test -n "$CC"; then
18767   echo "$as_me:$LINENO: result: $CC" >&5
18768 echo "${ECHO_T}$CC" >&6
18769 else
18770   echo "$as_me:$LINENO: result: no" >&5
18771 echo "${ECHO_T}no" >&6
18772 fi
18773
18774 fi
18775 if test -z "$ac_cv_prog_CC"; then
18776   ac_ct_CC=$CC
18777   # Extract the first word of "gcc", so it can be a program name with args.
18778 set dummy gcc; ac_word=$2
18779 echo "$as_me:$LINENO: checking for $ac_word" >&5
18780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18781 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18782   echo $ECHO_N "(cached) $ECHO_C" >&6
18783 else
18784   if test -n "$ac_ct_CC"; then
18785   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18786 else
18787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18788 for as_dir in $PATH
18789 do
18790   IFS=$as_save_IFS
18791   test -z "$as_dir" && as_dir=.
18792   for ac_exec_ext in '' $ac_executable_extensions; do
18793   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18794     ac_cv_prog_ac_ct_CC="gcc"
18795     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18796     break 2
18797   fi
18798 done
18799 done
18800
18801 fi
18802 fi
18803 ac_ct_CC=$ac_cv_prog_ac_ct_CC
18804 if test -n "$ac_ct_CC"; then
18805   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
18806 echo "${ECHO_T}$ac_ct_CC" >&6
18807 else
18808   echo "$as_me:$LINENO: result: no" >&5
18809 echo "${ECHO_T}no" >&6
18810 fi
18811
18812   CC=$ac_ct_CC
18813 else
18814   CC="$ac_cv_prog_CC"
18815 fi
18816
18817 if test -z "$CC"; then
18818   if test -n "$ac_tool_prefix"; then
18819   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
18820 set dummy ${ac_tool_prefix}cc; ac_word=$2
18821 echo "$as_me:$LINENO: checking for $ac_word" >&5
18822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18823 if test "${ac_cv_prog_CC+set}" = set; then
18824   echo $ECHO_N "(cached) $ECHO_C" >&6
18825 else
18826   if test -n "$CC"; then
18827   ac_cv_prog_CC="$CC" # Let the user override the test.
18828 else
18829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18830 for as_dir in $PATH
18831 do
18832   IFS=$as_save_IFS
18833   test -z "$as_dir" && as_dir=.
18834   for ac_exec_ext in '' $ac_executable_extensions; do
18835   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18836     ac_cv_prog_CC="${ac_tool_prefix}cc"
18837     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18838     break 2
18839   fi
18840 done
18841 done
18842
18843 fi
18844 fi
18845 CC=$ac_cv_prog_CC
18846 if test -n "$CC"; then
18847   echo "$as_me:$LINENO: result: $CC" >&5
18848 echo "${ECHO_T}$CC" >&6
18849 else
18850   echo "$as_me:$LINENO: result: no" >&5
18851 echo "${ECHO_T}no" >&6
18852 fi
18853
18854 fi
18855 if test -z "$ac_cv_prog_CC"; then
18856   ac_ct_CC=$CC
18857   # Extract the first word of "cc", so it can be a program name with args.
18858 set dummy cc; ac_word=$2
18859 echo "$as_me:$LINENO: checking for $ac_word" >&5
18860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18861 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18862   echo $ECHO_N "(cached) $ECHO_C" >&6
18863 else
18864   if test -n "$ac_ct_CC"; then
18865   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18866 else
18867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18868 for as_dir in $PATH
18869 do
18870   IFS=$as_save_IFS
18871   test -z "$as_dir" && as_dir=.
18872   for ac_exec_ext in '' $ac_executable_extensions; do
18873   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18874     ac_cv_prog_ac_ct_CC="cc"
18875     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18876     break 2
18877   fi
18878 done
18879 done
18880
18881 fi
18882 fi
18883 ac_ct_CC=$ac_cv_prog_ac_ct_CC
18884 if test -n "$ac_ct_CC"; then
18885   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
18886 echo "${ECHO_T}$ac_ct_CC" >&6
18887 else
18888   echo "$as_me:$LINENO: result: no" >&5
18889 echo "${ECHO_T}no" >&6
18890 fi
18891
18892   CC=$ac_ct_CC
18893 else
18894   CC="$ac_cv_prog_CC"
18895 fi
18896
18897 fi
18898 if test -z "$CC"; then
18899   # Extract the first word of "cc", so it can be a program name with args.
18900 set dummy cc; ac_word=$2
18901 echo "$as_me:$LINENO: checking for $ac_word" >&5
18902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18903 if test "${ac_cv_prog_CC+set}" = set; then
18904   echo $ECHO_N "(cached) $ECHO_C" >&6
18905 else
18906   if test -n "$CC"; then
18907   ac_cv_prog_CC="$CC" # Let the user override the test.
18908 else
18909   ac_prog_rejected=no
18910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18911 for as_dir in $PATH
18912 do
18913   IFS=$as_save_IFS
18914   test -z "$as_dir" && as_dir=.
18915   for ac_exec_ext in '' $ac_executable_extensions; do
18916   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18917     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
18918        ac_prog_rejected=yes
18919        continue
18920      fi
18921     ac_cv_prog_CC="cc"
18922     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18923     break 2
18924   fi
18925 done
18926 done
18927
18928 if test $ac_prog_rejected = yes; then
18929   # We found a bogon in the path, so make sure we never use it.
18930   set dummy $ac_cv_prog_CC
18931   shift
18932   if test $@%:@ != 0; then
18933     # We chose a different compiler from the bogus one.
18934     # However, it has the same basename, so the bogon will be chosen
18935     # first if we set CC to just the basename; use the full file name.
18936     shift
18937     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
18938   fi
18939 fi
18940 fi
18941 fi
18942 CC=$ac_cv_prog_CC
18943 if test -n "$CC"; then
18944   echo "$as_me:$LINENO: result: $CC" >&5
18945 echo "${ECHO_T}$CC" >&6
18946 else
18947   echo "$as_me:$LINENO: result: no" >&5
18948 echo "${ECHO_T}no" >&6
18949 fi
18950
18951 fi
18952 if test -z "$CC"; then
18953   if test -n "$ac_tool_prefix"; then
18954   for ac_prog in cl
18955   do
18956     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
18957 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
18958 echo "$as_me:$LINENO: checking for $ac_word" >&5
18959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18960 if test "${ac_cv_prog_CC+set}" = set; then
18961   echo $ECHO_N "(cached) $ECHO_C" >&6
18962 else
18963   if test -n "$CC"; then
18964   ac_cv_prog_CC="$CC" # Let the user override the test.
18965 else
18966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18967 for as_dir in $PATH
18968 do
18969   IFS=$as_save_IFS
18970   test -z "$as_dir" && as_dir=.
18971   for ac_exec_ext in '' $ac_executable_extensions; do
18972   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18973     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
18974     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18975     break 2
18976   fi
18977 done
18978 done
18979
18980 fi
18981 fi
18982 CC=$ac_cv_prog_CC
18983 if test -n "$CC"; then
18984   echo "$as_me:$LINENO: result: $CC" >&5
18985 echo "${ECHO_T}$CC" >&6
18986 else
18987   echo "$as_me:$LINENO: result: no" >&5
18988 echo "${ECHO_T}no" >&6
18989 fi
18990
18991     test -n "$CC" && break
18992   done
18993 fi
18994 if test -z "$CC"; then
18995   ac_ct_CC=$CC
18996   for ac_prog in cl
18997 do
18998   # Extract the first word of "$ac_prog", so it can be a program name with args.
18999 set dummy $ac_prog; ac_word=$2
19000 echo "$as_me:$LINENO: checking for $ac_word" >&5
19001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19002 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19003   echo $ECHO_N "(cached) $ECHO_C" >&6
19004 else
19005   if test -n "$ac_ct_CC"; then
19006   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19007 else
19008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19009 for as_dir in $PATH
19010 do
19011   IFS=$as_save_IFS
19012   test -z "$as_dir" && as_dir=.
19013   for ac_exec_ext in '' $ac_executable_extensions; do
19014   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19015     ac_cv_prog_ac_ct_CC="$ac_prog"
19016     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19017     break 2
19018   fi
19019 done
19020 done
19021
19022 fi
19023 fi
19024 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19025 if test -n "$ac_ct_CC"; then
19026   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19027 echo "${ECHO_T}$ac_ct_CC" >&6
19028 else
19029   echo "$as_me:$LINENO: result: no" >&5
19030 echo "${ECHO_T}no" >&6
19031 fi
19032
19033   test -n "$ac_ct_CC" && break
19034 done
19035
19036   CC=$ac_ct_CC
19037 fi
19038
19039 fi
19040
19041
19042 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19043 See \`config.log' for more details." >&5
19044 echo "$as_me: error: no acceptable C compiler found in \$PATH
19045 See \`config.log' for more details." >&2;}
19046    { (exit 1); exit 1; }; }
19047
19048 # Provide some information about the compiler.
19049 echo "$as_me:$LINENO:" \
19050      "checking for C compiler version" >&5
19051 ac_compiler=`set X $ac_compile; echo $2`
19052 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
19053   (eval $ac_compiler --version </dev/null >&5) 2>&5
19054   ac_status=$?
19055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19056   (exit $ac_status); }
19057 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
19058   (eval $ac_compiler -v </dev/null >&5) 2>&5
19059   ac_status=$?
19060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19061   (exit $ac_status); }
19062 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
19063   (eval $ac_compiler -V </dev/null >&5) 2>&5
19064   ac_status=$?
19065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19066   (exit $ac_status); }
19067
19068 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19069 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
19070 if test "${ac_cv_c_compiler_gnu+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 #ifndef __GNUC__
19084        choke me
19085 #endif
19086
19087   ;
19088   return 0;
19089 }
19090 _ACEOF
19091 rm -f conftest.$ac_objext
19092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19093   (eval $ac_compile) 2>conftest.er1
19094   ac_status=$?
19095   grep -v '^ *+' conftest.er1 >conftest.err
19096   rm -f conftest.er1
19097   cat conftest.err >&5
19098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19099   (exit $ac_status); } &&
19100          { ac_try='test -z "$ac_c_werror_flag"
19101                          || test ! -s conftest.err'
19102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19103   (eval $ac_try) 2>&5
19104   ac_status=$?
19105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19106   (exit $ac_status); }; } &&
19107          { ac_try='test -s conftest.$ac_objext'
19108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19109   (eval $ac_try) 2>&5
19110   ac_status=$?
19111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19112   (exit $ac_status); }; }; then
19113   ac_compiler_gnu=yes
19114 else
19115   echo "$as_me: failed program was:" >&5
19116 sed 's/^/| /' conftest.$ac_ext >&5
19117
19118 ac_compiler_gnu=no
19119 fi
19120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19121 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19122
19123 fi
19124 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19125 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
19126 GCC=`test $ac_compiler_gnu = yes && echo yes`
19127 ac_test_CFLAGS=${CFLAGS+set}
19128 ac_save_CFLAGS=$CFLAGS
19129 CFLAGS="-g"
19130 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19131 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
19132 if test "${ac_cv_prog_cc_g+set}" = set; then
19133   echo $ECHO_N "(cached) $ECHO_C" >&6
19134 else
19135   cat >conftest.$ac_ext <<_ACEOF
19136 /* confdefs.h.  */
19137 _ACEOF
19138 cat confdefs.h >>conftest.$ac_ext
19139 cat >>conftest.$ac_ext <<_ACEOF
19140 /* end confdefs.h.  */
19141
19142 int
19143 main ()
19144 {
19145
19146   ;
19147   return 0;
19148 }
19149 _ACEOF
19150 rm -f conftest.$ac_objext
19151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19152   (eval $ac_compile) 2>conftest.er1
19153   ac_status=$?
19154   grep -v '^ *+' conftest.er1 >conftest.err
19155   rm -f conftest.er1
19156   cat conftest.err >&5
19157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19158   (exit $ac_status); } &&
19159          { ac_try='test -z "$ac_c_werror_flag"
19160                          || test ! -s conftest.err'
19161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19162   (eval $ac_try) 2>&5
19163   ac_status=$?
19164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19165   (exit $ac_status); }; } &&
19166          { ac_try='test -s conftest.$ac_objext'
19167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19168   (eval $ac_try) 2>&5
19169   ac_status=$?
19170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19171   (exit $ac_status); }; }; then
19172   ac_cv_prog_cc_g=yes
19173 else
19174   echo "$as_me: failed program was:" >&5
19175 sed 's/^/| /' conftest.$ac_ext >&5
19176
19177 ac_cv_prog_cc_g=no
19178 fi
19179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19180 fi
19181 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19182 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
19183 if test "$ac_test_CFLAGS" = set; then
19184   CFLAGS=$ac_save_CFLAGS
19185 elif test $ac_cv_prog_cc_g = yes; then
19186   if test "$GCC" = yes; then
19187     CFLAGS="-g -O2"
19188   else
19189     CFLAGS="-g"
19190   fi
19191 else
19192   if test "$GCC" = yes; then
19193     CFLAGS="-O2"
19194   else
19195     CFLAGS=
19196   fi
19197 fi
19198 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
19199 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
19200 if test "${ac_cv_prog_cc_stdc+set}" = set; then
19201   echo $ECHO_N "(cached) $ECHO_C" >&6
19202 else
19203   ac_cv_prog_cc_stdc=no
19204 ac_save_CC=$CC
19205 cat >conftest.$ac_ext <<_ACEOF
19206 /* confdefs.h.  */
19207 _ACEOF
19208 cat confdefs.h >>conftest.$ac_ext
19209 cat >>conftest.$ac_ext <<_ACEOF
19210 /* end confdefs.h.  */
19211 #include <stdarg.h>
19212 #include <stdio.h>
19213 #include <sys/types.h>
19214 #include <sys/stat.h>
19215 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
19216 struct buf { int x; };
19217 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19218 static char *e (p, i)
19219      char **p;
19220      int i;
19221 {
19222   return p[i];
19223 }
19224 static char *f (char * (*g) (char **, int), char **p, ...)
19225 {
19226   char *s;
19227   va_list v;
19228   va_start (v,p);
19229   s = g (p, va_arg (v,int));
19230   va_end (v);
19231   return s;
19232 }
19233
19234 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
19235    function prototypes and stuff, but not '\xHH' hex character constants.
19236    These don't provoke an error unfortunately, instead are silently treated
19237    as 'x'.  The following induces an error, until -std1 is added to get
19238    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
19239    array size at least.  It's necessary to write '\x00'==0 to get something
19240    that's true only with -std1.  */
19241 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19242
19243 int test (int i, double x);
19244 struct s1 {int (*f) (int a);};
19245 struct s2 {int (*f) (double a);};
19246 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19247 int argc;
19248 char **argv;
19249 int
19250 main ()
19251 {
19252 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
19253   ;
19254   return 0;
19255 }
19256 _ACEOF
19257 # Don't try gcc -ansi; that turns off useful extensions and
19258 # breaks some systems' header files.
19259 # AIX                   -qlanglvl=ansi
19260 # Ultrix and OSF/1      -std1
19261 # HP-UX 10.20 and later -Ae
19262 # HP-UX older versions  -Aa -D_HPUX_SOURCE
19263 # SVR4                  -Xc -D__EXTENSIONS__
19264 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19265 do
19266   CC="$ac_save_CC $ac_arg"
19267   rm -f conftest.$ac_objext
19268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19269   (eval $ac_compile) 2>conftest.er1
19270   ac_status=$?
19271   grep -v '^ *+' conftest.er1 >conftest.err
19272   rm -f conftest.er1
19273   cat conftest.err >&5
19274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19275   (exit $ac_status); } &&
19276          { ac_try='test -z "$ac_c_werror_flag"
19277                          || test ! -s conftest.err'
19278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19279   (eval $ac_try) 2>&5
19280   ac_status=$?
19281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19282   (exit $ac_status); }; } &&
19283          { ac_try='test -s conftest.$ac_objext'
19284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19285   (eval $ac_try) 2>&5
19286   ac_status=$?
19287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19288   (exit $ac_status); }; }; then
19289   ac_cv_prog_cc_stdc=$ac_arg
19290 break
19291 else
19292   echo "$as_me: failed program was:" >&5
19293 sed 's/^/| /' conftest.$ac_ext >&5
19294
19295 fi
19296 rm -f conftest.err conftest.$ac_objext 
19297 done
19298 rm -f conftest.$ac_ext conftest.$ac_objext
19299 CC=$ac_save_CC
19300
19301 fi
19302
19303 case "x$ac_cv_prog_cc_stdc" in
19304   x|xno)
19305     echo "$as_me:$LINENO: result: none needed" >&5
19306 echo "${ECHO_T}none needed" >&6 ;;
19307   *)
19308     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
19309 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
19310     CC="$CC $ac_cv_prog_cc_stdc" ;;
19311 esac
19312
19313 # Some people use a C++ compiler to compile C.  Since we use `exit',
19314 # in C++ we need to declare it.  In case someone uses the same compiler
19315 # for both compiling C and C++ we need to have the C++ compiler decide
19316 # the declaration of exit, since it's the most demanding environment.
19317 cat >conftest.$ac_ext <<_ACEOF
19318 @%:@ifndef __cplusplus
19319   choke me
19320 @%:@endif
19321 _ACEOF
19322 rm -f conftest.$ac_objext
19323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19324   (eval $ac_compile) 2>conftest.er1
19325   ac_status=$?
19326   grep -v '^ *+' conftest.er1 >conftest.err
19327   rm -f conftest.er1
19328   cat conftest.err >&5
19329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19330   (exit $ac_status); } &&
19331          { ac_try='test -z "$ac_c_werror_flag"
19332                          || test ! -s conftest.err'
19333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19334   (eval $ac_try) 2>&5
19335   ac_status=$?
19336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19337   (exit $ac_status); }; } &&
19338          { ac_try='test -s conftest.$ac_objext'
19339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19340   (eval $ac_try) 2>&5
19341   ac_status=$?
19342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19343   (exit $ac_status); }; }; then
19344   for ac_declaration in \
19345    '' \
19346    'extern "C" void std::exit (int) throw (); using std::exit;' \
19347    'extern "C" void std::exit (int); using std::exit;' \
19348    'extern "C" void exit (int) throw ();' \
19349    'extern "C" void exit (int);' \
19350    'void exit (int);'
19351 do
19352   cat >conftest.$ac_ext <<_ACEOF
19353 /* confdefs.h.  */
19354 _ACEOF
19355 cat confdefs.h >>conftest.$ac_ext
19356 cat >>conftest.$ac_ext <<_ACEOF
19357 /* end confdefs.h.  */
19358 $ac_declaration
19359 @%:@include <stdlib.h>
19360 int
19361 main ()
19362 {
19363 exit (42);
19364   ;
19365   return 0;
19366 }
19367 _ACEOF
19368 rm -f conftest.$ac_objext
19369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19370   (eval $ac_compile) 2>conftest.er1
19371   ac_status=$?
19372   grep -v '^ *+' conftest.er1 >conftest.err
19373   rm -f conftest.er1
19374   cat conftest.err >&5
19375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19376   (exit $ac_status); } &&
19377          { ac_try='test -z "$ac_c_werror_flag"
19378                          || test ! -s conftest.err'
19379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19380   (eval $ac_try) 2>&5
19381   ac_status=$?
19382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19383   (exit $ac_status); }; } &&
19384          { ac_try='test -s conftest.$ac_objext'
19385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19386   (eval $ac_try) 2>&5
19387   ac_status=$?
19388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19389   (exit $ac_status); }; }; then
19390   :
19391 else
19392   echo "$as_me: failed program was:" >&5
19393 sed 's/^/| /' conftest.$ac_ext >&5
19394
19395 continue
19396 fi
19397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19398   cat >conftest.$ac_ext <<_ACEOF
19399 /* confdefs.h.  */
19400 _ACEOF
19401 cat confdefs.h >>conftest.$ac_ext
19402 cat >>conftest.$ac_ext <<_ACEOF
19403 /* end confdefs.h.  */
19404 $ac_declaration
19405 int
19406 main ()
19407 {
19408 exit (42);
19409   ;
19410   return 0;
19411 }
19412 _ACEOF
19413 rm -f conftest.$ac_objext
19414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19415   (eval $ac_compile) 2>conftest.er1
19416   ac_status=$?
19417   grep -v '^ *+' conftest.er1 >conftest.err
19418   rm -f conftest.er1
19419   cat conftest.err >&5
19420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19421   (exit $ac_status); } &&
19422          { ac_try='test -z "$ac_c_werror_flag"
19423                          || test ! -s conftest.err'
19424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19425   (eval $ac_try) 2>&5
19426   ac_status=$?
19427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19428   (exit $ac_status); }; } &&
19429          { ac_try='test -s conftest.$ac_objext'
19430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19431   (eval $ac_try) 2>&5
19432   ac_status=$?
19433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19434   (exit $ac_status); }; }; then
19435   break
19436 else
19437   echo "$as_me: failed program was:" >&5
19438 sed 's/^/| /' conftest.$ac_ext >&5
19439
19440 fi
19441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19442 done
19443 rm -f conftest*
19444 if test -n "$ac_declaration"; then
19445   echo '#ifdef __cplusplus' >>confdefs.h
19446   echo $ac_declaration      >>confdefs.h
19447   echo '#endif'             >>confdefs.h
19448 fi
19449
19450 else
19451   echo "$as_me: failed program was:" >&5
19452 sed 's/^/| /' conftest.$ac_ext >&5
19453
19454 fi
19455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19456 ac_ext=c
19457 ac_cpp='$CPP $CPPFLAGS'
19458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19461
19462 depcc="$CC"   am_compiler_list=
19463
19464 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19465 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
19466 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19467   echo $ECHO_N "(cached) $ECHO_C" >&6
19468 else
19469   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19470   # We make a subdir and do the tests there.  Otherwise we can end up
19471   # making bogus files that we don't know about and never remove.  For
19472   # instance it was reported that on HP-UX the gcc test will end up
19473   # making a dummy file named `D' -- because `-MD' means `put the output
19474   # in D'.
19475   mkdir conftest.dir
19476   # Copy depcomp to subdir because otherwise we won't find it if we're
19477   # using a relative directory.
19478   cp "$am_depcomp" conftest.dir
19479   cd conftest.dir
19480   # We will build objects and dependencies in a subdirectory because
19481   # it helps to detect inapplicable dependency modes.  For instance
19482   # both Tru64's cc and ICC support -MD to output dependencies as a
19483   # side effect of compilation, but ICC will put the dependencies in
19484   # the current directory while Tru64 will put them in the object
19485   # directory.
19486   mkdir sub
19487
19488   am_cv_CC_dependencies_compiler_type=none
19489   if test "$am_compiler_list" = ""; then
19490      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19491   fi
19492   for depmode in $am_compiler_list; do
19493     # Setup a source with many dependencies, because some compilers
19494     # like to wrap large dependency lists on column 80 (with \), and
19495     # we should not choose a depcomp mode which is confused by this.
19496     #
19497     # We need to recreate these files for each test, as the compiler may
19498     # overwrite some of them when testing with obscure command lines.
19499     # This happens at least with the AIX C compiler.
19500     : > sub/conftest.c
19501     for i in 1 2 3 4 5 6; do
19502       echo '#include "conftst'$i'.h"' >> sub/conftest.c
19503       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19504       # Solaris 8's {/usr,}/bin/sh.
19505       touch sub/conftst$i.h
19506     done
19507     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19508
19509     case $depmode in
19510     nosideeffect)
19511       # after this tag, mechanisms are not by side-effect, so they'll
19512       # only be used when explicitly requested
19513       if test "x$enable_dependency_tracking" = xyes; then
19514         continue
19515       else
19516         break
19517       fi
19518       ;;
19519     none) break ;;
19520     esac
19521     # We check with `-c' and `-o' for the sake of the "dashmstdout"
19522     # mode.  It turns out that the SunPro C++ compiler does not properly
19523     # handle `-M -o', and we need to detect this.
19524     if depmode=$depmode \
19525        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19526        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19527        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19528          >/dev/null 2>conftest.err &&
19529        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19530        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19531        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19532       # icc doesn't choke on unknown options, it will just issue warnings
19533       # or remarks (even with -Werror).  So we grep stderr for any message
19534       # that says an option was ignored or not supported.
19535       # When given -MP, icc 7.0 and 7.1 complain thusly:
19536       #   icc: Command line warning: ignoring option '-M'; no argument required
19537       # The diagnosis changed in icc 8.0:
19538       #   icc: Command line remark: option '-MP' not supported
19539       if (grep 'ignoring option' conftest.err ||
19540           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19541         am_cv_CC_dependencies_compiler_type=$depmode
19542         break
19543       fi
19544     fi
19545   done
19546
19547   cd ..
19548   rm -rf conftest.dir
19549 else
19550   am_cv_CC_dependencies_compiler_type=none
19551 fi
19552
19553 fi
19554 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19555 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
19556 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19557
19558  
19559
19560 if 
19561   test "x$enable_dependency_tracking" != xno \
19562   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19563   am__fastdepCC_TRUE=
19564   am__fastdepCC_FALSE='#'
19565 else
19566   am__fastdepCC_TRUE='#'
19567   am__fastdepCC_FALSE=
19568 fi
19569
19570
19571
19572 if test "$GCC" = yes; then
19573         case "$host" in
19574                 *-*-solaris*)
19575                         CFLAGS="$CFLAGS -Wall -Wno-char-subscripts"
19576                 ;;
19577                 *)
19578                         CFLAGS="$CFLAGS -Wall"
19579                 ;;
19580         esac
19581 fi
19582
19583 # missing_dir=`cd $ac_aux_dir && pwd`
19584 # AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
19585
19586 if test "$LIBS" != -pthread; then
19587         
19588 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
19589 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
19590 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
19591   echo $ECHO_N "(cached) $ECHO_C" >&6
19592 else
19593   ac_check_lib_save_LIBS=$LIBS
19594 LIBS="-lpthread  $LIBS"
19595 cat >conftest.$ac_ext <<_ACEOF
19596 /* confdefs.h.  */
19597 _ACEOF
19598 cat confdefs.h >>conftest.$ac_ext
19599 cat >>conftest.$ac_ext <<_ACEOF
19600 /* end confdefs.h.  */
19601
19602 /* Override any gcc2 internal prototype to avoid an error.  */
19603 #ifdef __cplusplus
19604 extern "C"
19605 #endif
19606 /* We use char because int might match the return type of a gcc2
19607    builtin and then its argument prototype would still apply.  */
19608 char pthread_create ();
19609 int
19610 main ()
19611 {
19612 pthread_create ();
19613   ;
19614   return 0;
19615 }
19616 _ACEOF
19617 rm -f conftest.$ac_objext conftest$ac_exeext
19618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19619   (eval $ac_link) 2>conftest.er1
19620   ac_status=$?
19621   grep -v '^ *+' conftest.er1 >conftest.err
19622   rm -f conftest.er1
19623   cat conftest.err >&5
19624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19625   (exit $ac_status); } &&
19626          { ac_try='test -z "$ac_c_werror_flag"
19627                          || test ! -s conftest.err'
19628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19629   (eval $ac_try) 2>&5
19630   ac_status=$?
19631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632   (exit $ac_status); }; } &&
19633          { ac_try='test -s conftest$ac_exeext'
19634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19635   (eval $ac_try) 2>&5
19636   ac_status=$?
19637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638   (exit $ac_status); }; }; then
19639   ac_cv_lib_pthread_pthread_create=yes
19640 else
19641   echo "$as_me: failed program was:" >&5
19642 sed 's/^/| /' conftest.$ac_ext >&5
19643
19644 ac_cv_lib_pthread_pthread_create=no
19645 fi
19646 rm -f conftest.err conftest.$ac_objext \
19647       conftest$ac_exeext conftest.$ac_ext
19648 LIBS=$ac_check_lib_save_LIBS
19649 fi
19650 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
19651 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
19652 if test $ac_cv_lib_pthread_pthread_create = yes; then
19653   cat >>confdefs.h <<_ACEOF
19654 @%:@define HAVE_LIBPTHREAD 1
19655 _ACEOF
19656
19657   LIBS="-lpthread $LIBS"
19658
19659 fi
19660
19661         
19662 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
19663 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
19664 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
19665   echo $ECHO_N "(cached) $ECHO_C" >&6
19666 else
19667   ac_check_lib_save_LIBS=$LIBS
19668 LIBS="-lpthreads  $LIBS"
19669 cat >conftest.$ac_ext <<_ACEOF
19670 /* confdefs.h.  */
19671 _ACEOF
19672 cat confdefs.h >>conftest.$ac_ext
19673 cat >>conftest.$ac_ext <<_ACEOF
19674 /* end confdefs.h.  */
19675
19676 /* Override any gcc2 internal prototype to avoid an error.  */
19677 #ifdef __cplusplus
19678 extern "C"
19679 #endif
19680 /* We use char because int might match the return type of a gcc2
19681    builtin and then its argument prototype would still apply.  */
19682 char pthread_create ();
19683 int
19684 main ()
19685 {
19686 pthread_create ();
19687   ;
19688   return 0;
19689 }
19690 _ACEOF
19691 rm -f conftest.$ac_objext conftest$ac_exeext
19692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19693   (eval $ac_link) 2>conftest.er1
19694   ac_status=$?
19695   grep -v '^ *+' conftest.er1 >conftest.err
19696   rm -f conftest.er1
19697   cat conftest.err >&5
19698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19699   (exit $ac_status); } &&
19700          { ac_try='test -z "$ac_c_werror_flag"
19701                          || test ! -s conftest.err'
19702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19703   (eval $ac_try) 2>&5
19704   ac_status=$?
19705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19706   (exit $ac_status); }; } &&
19707          { ac_try='test -s conftest$ac_exeext'
19708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19709   (eval $ac_try) 2>&5
19710   ac_status=$?
19711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712   (exit $ac_status); }; }; then
19713   ac_cv_lib_pthreads_pthread_create=yes
19714 else
19715   echo "$as_me: failed program was:" >&5
19716 sed 's/^/| /' conftest.$ac_ext >&5
19717
19718 ac_cv_lib_pthreads_pthread_create=no
19719 fi
19720 rm -f conftest.err conftest.$ac_objext \
19721       conftest$ac_exeext conftest.$ac_ext
19722 LIBS=$ac_check_lib_save_LIBS
19723 fi
19724 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
19725 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
19726 if test $ac_cv_lib_pthreads_pthread_create = yes; then
19727   cat >>confdefs.h <<_ACEOF
19728 @%:@define HAVE_LIBPTHREADS 1
19729 _ACEOF
19730
19731   LIBS="-lpthreads $LIBS"
19732
19733 fi
19734
19735 fi
19736 echo "$as_me:$LINENO: checking for libiconv in -liconv" >&5
19737 echo $ECHO_N "checking for libiconv in -liconv... $ECHO_C" >&6
19738 if test "${ac_cv_lib_iconv_libiconv+set}" = set; then
19739   echo $ECHO_N "(cached) $ECHO_C" >&6
19740 else
19741   ac_check_lib_save_LIBS=$LIBS
19742 LIBS="-liconv  $LIBS"
19743 cat >conftest.$ac_ext <<_ACEOF
19744 /* confdefs.h.  */
19745 _ACEOF
19746 cat confdefs.h >>conftest.$ac_ext
19747 cat >>conftest.$ac_ext <<_ACEOF
19748 /* end confdefs.h.  */
19749
19750 /* Override any gcc2 internal prototype to avoid an error.  */
19751 #ifdef __cplusplus
19752 extern "C"
19753 #endif
19754 /* We use char because int might match the return type of a gcc2
19755    builtin and then its argument prototype would still apply.  */
19756 char libiconv ();
19757 int
19758 main ()
19759 {
19760 libiconv ();
19761   ;
19762   return 0;
19763 }
19764 _ACEOF
19765 rm -f conftest.$ac_objext conftest$ac_exeext
19766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19767   (eval $ac_link) 2>conftest.er1
19768   ac_status=$?
19769   grep -v '^ *+' conftest.er1 >conftest.err
19770   rm -f conftest.er1
19771   cat conftest.err >&5
19772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19773   (exit $ac_status); } &&
19774          { ac_try='test -z "$ac_c_werror_flag"
19775                          || test ! -s conftest.err'
19776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19777   (eval $ac_try) 2>&5
19778   ac_status=$?
19779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19780   (exit $ac_status); }; } &&
19781          { ac_try='test -s conftest$ac_exeext'
19782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19783   (eval $ac_try) 2>&5
19784   ac_status=$?
19785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19786   (exit $ac_status); }; }; then
19787   ac_cv_lib_iconv_libiconv=yes
19788 else
19789   echo "$as_me: failed program was:" >&5
19790 sed 's/^/| /' conftest.$ac_ext >&5
19791
19792 ac_cv_lib_iconv_libiconv=no
19793 fi
19794 rm -f conftest.err conftest.$ac_objext \
19795       conftest$ac_exeext conftest.$ac_ext
19796 LIBS=$ac_check_lib_save_LIBS
19797 fi
19798 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_libiconv" >&5
19799 echo "${ECHO_T}$ac_cv_lib_iconv_libiconv" >&6
19800 if test $ac_cv_lib_iconv_libiconv = yes; then
19801   LIBS="$LIBS -liconv"
19802 fi
19803    
19804 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
19805 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
19806 if test "${ac_cv_search_gethostbyname+set}" = set; then
19807   echo $ECHO_N "(cached) $ECHO_C" >&6
19808 else
19809   ac_func_search_save_LIBS=$LIBS
19810 ac_cv_search_gethostbyname=no
19811 cat >conftest.$ac_ext <<_ACEOF
19812 /* confdefs.h.  */
19813 _ACEOF
19814 cat confdefs.h >>conftest.$ac_ext
19815 cat >>conftest.$ac_ext <<_ACEOF
19816 /* end confdefs.h.  */
19817
19818 /* Override any gcc2 internal prototype to avoid an error.  */
19819 #ifdef __cplusplus
19820 extern "C"
19821 #endif
19822 /* We use char because int might match the return type of a gcc2
19823    builtin and then its argument prototype would still apply.  */
19824 char gethostbyname ();
19825 int
19826 main ()
19827 {
19828 gethostbyname ();
19829   ;
19830   return 0;
19831 }
19832 _ACEOF
19833 rm -f conftest.$ac_objext conftest$ac_exeext
19834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19835   (eval $ac_link) 2>conftest.er1
19836   ac_status=$?
19837   grep -v '^ *+' conftest.er1 >conftest.err
19838   rm -f conftest.er1
19839   cat conftest.err >&5
19840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19841   (exit $ac_status); } &&
19842          { ac_try='test -z "$ac_c_werror_flag"
19843                          || test ! -s conftest.err'
19844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19845   (eval $ac_try) 2>&5
19846   ac_status=$?
19847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19848   (exit $ac_status); }; } &&
19849          { ac_try='test -s conftest$ac_exeext'
19850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19851   (eval $ac_try) 2>&5
19852   ac_status=$?
19853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19854   (exit $ac_status); }; }; then
19855   ac_cv_search_gethostbyname="none required"
19856 else
19857   echo "$as_me: failed program was:" >&5
19858 sed 's/^/| /' conftest.$ac_ext >&5
19859
19860 fi
19861 rm -f conftest.err conftest.$ac_objext \
19862       conftest$ac_exeext conftest.$ac_ext
19863 if test "$ac_cv_search_gethostbyname" = no; then
19864   for ac_lib in nsl; do
19865     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19866     cat >conftest.$ac_ext <<_ACEOF
19867 /* confdefs.h.  */
19868 _ACEOF
19869 cat confdefs.h >>conftest.$ac_ext
19870 cat >>conftest.$ac_ext <<_ACEOF
19871 /* end confdefs.h.  */
19872
19873 /* Override any gcc2 internal prototype to avoid an error.  */
19874 #ifdef __cplusplus
19875 extern "C"
19876 #endif
19877 /* We use char because int might match the return type of a gcc2
19878    builtin and then its argument prototype would still apply.  */
19879 char gethostbyname ();
19880 int
19881 main ()
19882 {
19883 gethostbyname ();
19884   ;
19885   return 0;
19886 }
19887 _ACEOF
19888 rm -f conftest.$ac_objext conftest$ac_exeext
19889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19890   (eval $ac_link) 2>conftest.er1
19891   ac_status=$?
19892   grep -v '^ *+' conftest.er1 >conftest.err
19893   rm -f conftest.er1
19894   cat conftest.err >&5
19895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19896   (exit $ac_status); } &&
19897          { ac_try='test -z "$ac_c_werror_flag"
19898                          || test ! -s conftest.err'
19899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19900   (eval $ac_try) 2>&5
19901   ac_status=$?
19902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19903   (exit $ac_status); }; } &&
19904          { ac_try='test -s conftest$ac_exeext'
19905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19906   (eval $ac_try) 2>&5
19907   ac_status=$?
19908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19909   (exit $ac_status); }; }; then
19910   ac_cv_search_gethostbyname="-l$ac_lib"
19911 break
19912 else
19913   echo "$as_me: failed program was:" >&5
19914 sed 's/^/| /' conftest.$ac_ext >&5
19915
19916 fi
19917 rm -f conftest.err conftest.$ac_objext \
19918       conftest$ac_exeext conftest.$ac_ext
19919   done
19920 fi
19921 LIBS=$ac_func_search_save_LIBS
19922 fi
19923 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
19924 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
19925 if test "$ac_cv_search_gethostbyname" != no; then
19926   test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
19927   
19928 fi
19929
19930 echo "$as_me:$LINENO: checking for library containing connect" >&5
19931 echo $ECHO_N "checking for library containing connect... $ECHO_C" >&6
19932 if test "${ac_cv_search_connect+set}" = set; then
19933   echo $ECHO_N "(cached) $ECHO_C" >&6
19934 else
19935   ac_func_search_save_LIBS=$LIBS
19936 ac_cv_search_connect=no
19937 cat >conftest.$ac_ext <<_ACEOF
19938 /* confdefs.h.  */
19939 _ACEOF
19940 cat confdefs.h >>conftest.$ac_ext
19941 cat >>conftest.$ac_ext <<_ACEOF
19942 /* end confdefs.h.  */
19943
19944 /* Override any gcc2 internal prototype to avoid an error.  */
19945 #ifdef __cplusplus
19946 extern "C"
19947 #endif
19948 /* We use char because int might match the return type of a gcc2
19949    builtin and then its argument prototype would still apply.  */
19950 char connect ();
19951 int
19952 main ()
19953 {
19954 connect ();
19955   ;
19956   return 0;
19957 }
19958 _ACEOF
19959 rm -f conftest.$ac_objext conftest$ac_exeext
19960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19961   (eval $ac_link) 2>conftest.er1
19962   ac_status=$?
19963   grep -v '^ *+' conftest.er1 >conftest.err
19964   rm -f conftest.er1
19965   cat conftest.err >&5
19966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19967   (exit $ac_status); } &&
19968          { ac_try='test -z "$ac_c_werror_flag"
19969                          || test ! -s conftest.err'
19970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19971   (eval $ac_try) 2>&5
19972   ac_status=$?
19973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19974   (exit $ac_status); }; } &&
19975          { ac_try='test -s conftest$ac_exeext'
19976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19977   (eval $ac_try) 2>&5
19978   ac_status=$?
19979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19980   (exit $ac_status); }; }; then
19981   ac_cv_search_connect="none required"
19982 else
19983   echo "$as_me: failed program was:" >&5
19984 sed 's/^/| /' conftest.$ac_ext >&5
19985
19986 fi
19987 rm -f conftest.err conftest.$ac_objext \
19988       conftest$ac_exeext conftest.$ac_ext
19989 if test "$ac_cv_search_connect" = no; then
19990   for ac_lib in socket; do
19991     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19992     cat >conftest.$ac_ext <<_ACEOF
19993 /* confdefs.h.  */
19994 _ACEOF
19995 cat confdefs.h >>conftest.$ac_ext
19996 cat >>conftest.$ac_ext <<_ACEOF
19997 /* end confdefs.h.  */
19998
19999 /* Override any gcc2 internal prototype to avoid an error.  */
20000 #ifdef __cplusplus
20001 extern "C"
20002 #endif
20003 /* We use char because int might match the return type of a gcc2
20004    builtin and then its argument prototype would still apply.  */
20005 char connect ();
20006 int
20007 main ()
20008 {
20009 connect ();
20010   ;
20011   return 0;
20012 }
20013 _ACEOF
20014 rm -f conftest.$ac_objext conftest$ac_exeext
20015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20016   (eval $ac_link) 2>conftest.er1
20017   ac_status=$?
20018   grep -v '^ *+' conftest.er1 >conftest.err
20019   rm -f conftest.er1
20020   cat conftest.err >&5
20021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20022   (exit $ac_status); } &&
20023          { ac_try='test -z "$ac_c_werror_flag"
20024                          || test ! -s conftest.err'
20025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20026   (eval $ac_try) 2>&5
20027   ac_status=$?
20028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20029   (exit $ac_status); }; } &&
20030          { ac_try='test -s conftest$ac_exeext'
20031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20032   (eval $ac_try) 2>&5
20033   ac_status=$?
20034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035   (exit $ac_status); }; }; then
20036   ac_cv_search_connect="-l$ac_lib"
20037 break
20038 else
20039   echo "$as_me: failed program was:" >&5
20040 sed 's/^/| /' conftest.$ac_ext >&5
20041
20042 fi
20043 rm -f conftest.err conftest.$ac_objext \
20044       conftest$ac_exeext conftest.$ac_ext
20045   done
20046 fi
20047 LIBS=$ac_func_search_save_LIBS
20048 fi
20049 echo "$as_me:$LINENO: result: $ac_cv_search_connect" >&5
20050 echo "${ECHO_T}$ac_cv_search_connect" >&6
20051 if test "$ac_cv_search_connect" != no; then
20052   test "$ac_cv_search_connect" = "none required" || LIBS="$ac_cv_search_connect $LIBS"
20053   
20054 fi
20055
20056
20057 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20058 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
20059 if test "${ac_cv_header_stdc+set}" = set; then
20060   echo $ECHO_N "(cached) $ECHO_C" >&6
20061 else
20062   cat >conftest.$ac_ext <<_ACEOF
20063 /* confdefs.h.  */
20064 _ACEOF
20065 cat confdefs.h >>conftest.$ac_ext
20066 cat >>conftest.$ac_ext <<_ACEOF
20067 /* end confdefs.h.  */
20068 #include <stdlib.h>
20069 #include <stdarg.h>
20070 #include <string.h>
20071 #include <float.h>
20072
20073 int
20074 main ()
20075 {
20076
20077   ;
20078   return 0;
20079 }
20080 _ACEOF
20081 rm -f conftest.$ac_objext
20082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20083   (eval $ac_compile) 2>conftest.er1
20084   ac_status=$?
20085   grep -v '^ *+' conftest.er1 >conftest.err
20086   rm -f conftest.er1
20087   cat conftest.err >&5
20088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20089   (exit $ac_status); } &&
20090          { ac_try='test -z "$ac_c_werror_flag"
20091                          || test ! -s conftest.err'
20092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20093   (eval $ac_try) 2>&5
20094   ac_status=$?
20095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20096   (exit $ac_status); }; } &&
20097          { ac_try='test -s conftest.$ac_objext'
20098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20099   (eval $ac_try) 2>&5
20100   ac_status=$?
20101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20102   (exit $ac_status); }; }; then
20103   ac_cv_header_stdc=yes
20104 else
20105   echo "$as_me: failed program was:" >&5
20106 sed 's/^/| /' conftest.$ac_ext >&5
20107
20108 ac_cv_header_stdc=no
20109 fi
20110 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20111
20112 if test $ac_cv_header_stdc = yes; then
20113   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20114   cat >conftest.$ac_ext <<_ACEOF
20115 /* confdefs.h.  */
20116 _ACEOF
20117 cat confdefs.h >>conftest.$ac_ext
20118 cat >>conftest.$ac_ext <<_ACEOF
20119 /* end confdefs.h.  */
20120 #include <string.h>
20121
20122 _ACEOF
20123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20124   $EGREP "memchr" >/dev/null 2>&1; then
20125   :
20126 else
20127   ac_cv_header_stdc=no
20128 fi
20129 rm -f conftest*
20130
20131 fi
20132
20133 if test $ac_cv_header_stdc = yes; then
20134   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20135   cat >conftest.$ac_ext <<_ACEOF
20136 /* confdefs.h.  */
20137 _ACEOF
20138 cat confdefs.h >>conftest.$ac_ext
20139 cat >>conftest.$ac_ext <<_ACEOF
20140 /* end confdefs.h.  */
20141 #include <stdlib.h>
20142
20143 _ACEOF
20144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20145   $EGREP "free" >/dev/null 2>&1; then
20146   :
20147 else
20148   ac_cv_header_stdc=no
20149 fi
20150 rm -f conftest*
20151
20152 fi
20153
20154 if test $ac_cv_header_stdc = yes; then
20155   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20156   if test "$cross_compiling" = yes; then
20157   :
20158 else
20159   cat >conftest.$ac_ext <<_ACEOF
20160 /* confdefs.h.  */
20161 _ACEOF
20162 cat confdefs.h >>conftest.$ac_ext
20163 cat >>conftest.$ac_ext <<_ACEOF
20164 /* end confdefs.h.  */
20165 #include <ctype.h>
20166 #if ((' ' & 0x0FF) == 0x020)
20167 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20168 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20169 #else
20170 # define ISLOWER(c) \
20171                    (('a' <= (c) && (c) <= 'i') \
20172                      || ('j' <= (c) && (c) <= 'r') \
20173                      || ('s' <= (c) && (c) <= 'z'))
20174 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20175 #endif
20176
20177 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20178 int
20179 main ()
20180 {
20181   int i;
20182   for (i = 0; i < 256; i++)
20183     if (XOR (islower (i), ISLOWER (i))
20184         || toupper (i) != TOUPPER (i))
20185       exit(2);
20186   exit (0);
20187 }
20188 _ACEOF
20189 rm -f conftest$ac_exeext
20190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20191   (eval $ac_link) 2>&5
20192   ac_status=$?
20193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20194   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20196   (eval $ac_try) 2>&5
20197   ac_status=$?
20198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20199   (exit $ac_status); }; }; then
20200   :
20201 else
20202   echo "$as_me: program exited with status $ac_status" >&5
20203 echo "$as_me: failed program was:" >&5
20204 sed 's/^/| /' conftest.$ac_ext >&5
20205
20206 ( exit $ac_status )
20207 ac_cv_header_stdc=no
20208 fi
20209 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20210 fi
20211 fi
20212 fi
20213 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20214 echo "${ECHO_T}$ac_cv_header_stdc" >&6
20215 if test $ac_cv_header_stdc = yes; then
20216   
20217 cat >>confdefs.h <<\_ACEOF
20218 @%:@define STDC_HEADERS 1
20219 _ACEOF
20220
20221 fi
20222
20223
20224
20225
20226
20227 for ac_header in fcntl.h limits.h sys/time.h unistd.h
20228 do
20229 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20230 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20231   echo "$as_me:$LINENO: checking for $ac_header" >&5
20232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20233 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20234   echo $ECHO_N "(cached) $ECHO_C" >&6
20235 fi
20236 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20237 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20238 else
20239   # Is the header compilable?
20240 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20241 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20242 cat >conftest.$ac_ext <<_ACEOF
20243 /* confdefs.h.  */
20244 _ACEOF
20245 cat confdefs.h >>conftest.$ac_ext
20246 cat >>conftest.$ac_ext <<_ACEOF
20247 /* end confdefs.h.  */
20248 $ac_includes_default
20249 @%:@include <$ac_header>
20250 _ACEOF
20251 rm -f conftest.$ac_objext
20252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20253   (eval $ac_compile) 2>conftest.er1
20254   ac_status=$?
20255   grep -v '^ *+' conftest.er1 >conftest.err
20256   rm -f conftest.er1
20257   cat conftest.err >&5
20258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20259   (exit $ac_status); } &&
20260          { ac_try='test -z "$ac_c_werror_flag"
20261                          || test ! -s conftest.err'
20262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20263   (eval $ac_try) 2>&5
20264   ac_status=$?
20265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20266   (exit $ac_status); }; } &&
20267          { ac_try='test -s conftest.$ac_objext'
20268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20269   (eval $ac_try) 2>&5
20270   ac_status=$?
20271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20272   (exit $ac_status); }; }; then
20273   ac_header_compiler=yes
20274 else
20275   echo "$as_me: failed program was:" >&5
20276 sed 's/^/| /' conftest.$ac_ext >&5
20277
20278 ac_header_compiler=no
20279 fi
20280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20281 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20282 echo "${ECHO_T}$ac_header_compiler" >&6
20283
20284 # Is the header present?
20285 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20286 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20287 cat >conftest.$ac_ext <<_ACEOF
20288 /* confdefs.h.  */
20289 _ACEOF
20290 cat confdefs.h >>conftest.$ac_ext
20291 cat >>conftest.$ac_ext <<_ACEOF
20292 /* end confdefs.h.  */
20293 @%:@include <$ac_header>
20294 _ACEOF
20295 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20296   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20297   ac_status=$?
20298   grep -v '^ *+' conftest.er1 >conftest.err
20299   rm -f conftest.er1
20300   cat conftest.err >&5
20301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20302   (exit $ac_status); } >/dev/null; then
20303   if test -s conftest.err; then
20304     ac_cpp_err=$ac_c_preproc_warn_flag
20305     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20306   else
20307     ac_cpp_err=
20308   fi
20309 else
20310   ac_cpp_err=yes
20311 fi
20312 if test -z "$ac_cpp_err"; then
20313   ac_header_preproc=yes
20314 else
20315   echo "$as_me: failed program was:" >&5
20316 sed 's/^/| /' conftest.$ac_ext >&5
20317
20318   ac_header_preproc=no
20319 fi
20320 rm -f conftest.err conftest.$ac_ext
20321 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20322 echo "${ECHO_T}$ac_header_preproc" >&6
20323
20324 # So?  What about this header?
20325 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20326   yes:no: )
20327     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20328 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20329     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20330 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20331     ac_header_preproc=yes
20332     ;;
20333   no:yes:* )
20334     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20335 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20336     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20337 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20338     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20339 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20340     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20341 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20342     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20343 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20344     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20345 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20346     (
20347       cat <<\_ASBOX
20348 @%:@@%:@ ------------------------------------- @%:@@%:@
20349 @%:@@%:@ Report this to uncensored.citadel.org @%:@@%:@
20350 @%:@@%:@ ------------------------------------- @%:@@%:@
20351 _ASBOX
20352     ) |
20353       sed "s/^/$as_me: WARNING:     /" >&2
20354     ;;
20355 esac
20356 echo "$as_me:$LINENO: checking for $ac_header" >&5
20357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20358 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20359   echo $ECHO_N "(cached) $ECHO_C" >&6
20360 else
20361   eval "$as_ac_Header=\$ac_header_preproc"
20362 fi
20363 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20364 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20365
20366 fi
20367 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20368   cat >>confdefs.h <<_ACEOF
20369 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20370 _ACEOF
20371  
20372 fi
20373
20374 done
20375
20376
20377
20378
20379
20380 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20381 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20382 if test "${ac_cv_c_const+set}" = set; then
20383   echo $ECHO_N "(cached) $ECHO_C" >&6
20384 else
20385   cat >conftest.$ac_ext <<_ACEOF
20386 /* confdefs.h.  */
20387 _ACEOF
20388 cat confdefs.h >>conftest.$ac_ext
20389 cat >>conftest.$ac_ext <<_ACEOF
20390 /* end confdefs.h.  */
20391
20392 int
20393 main ()
20394 {
20395 /* FIXME: Include the comments suggested by Paul. */
20396 #ifndef __cplusplus
20397   /* Ultrix mips cc rejects this.  */
20398   typedef int charset[2];
20399   const charset x;
20400   /* SunOS 4.1.1 cc rejects this.  */
20401   char const *const *ccp;
20402   char **p;
20403   /* NEC SVR4.0.2 mips cc rejects this.  */
20404   struct point {int x, y;};
20405   static struct point const zero = {0,0};
20406   /* AIX XL C 1.02.0.0 rejects this.
20407      It does not let you subtract one const X* pointer from another in
20408      an arm of an if-expression whose if-part is not a constant
20409      expression */
20410   const char *g = "string";
20411   ccp = &g + (g ? g-g : 0);
20412   /* HPUX 7.0 cc rejects these. */
20413   ++ccp;
20414   p = (char**) ccp;
20415   ccp = (char const *const *) p;
20416   { /* SCO 3.2v4 cc rejects this.  */
20417     char *t;
20418     char const *s = 0 ? (char *) 0 : (char const *) 0;
20419
20420     *t++ = 0;
20421   }
20422   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20423     int x[] = {25, 17};
20424     const int *foo = &x[0];
20425     ++foo;
20426   }
20427   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20428     typedef const int *iptr;
20429     iptr p = 0;
20430     ++p;
20431   }
20432   { /* AIX XL C 1.02.0.0 rejects this saying
20433        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20434     struct s { int j; const int *ap[3]; };
20435     struct s *b; b->j = 5;
20436   }
20437   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20438     const int foo = 10;
20439   }
20440 #endif
20441
20442   ;
20443   return 0;
20444 }
20445 _ACEOF
20446 rm -f conftest.$ac_objext
20447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20448   (eval $ac_compile) 2>conftest.er1
20449   ac_status=$?
20450   grep -v '^ *+' conftest.er1 >conftest.err
20451   rm -f conftest.er1
20452   cat conftest.err >&5
20453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20454   (exit $ac_status); } &&
20455          { ac_try='test -z "$ac_c_werror_flag"
20456                          || test ! -s conftest.err'
20457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20458   (eval $ac_try) 2>&5
20459   ac_status=$?
20460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20461   (exit $ac_status); }; } &&
20462          { ac_try='test -s conftest.$ac_objext'
20463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20464   (eval $ac_try) 2>&5
20465   ac_status=$?
20466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20467   (exit $ac_status); }; }; then
20468   ac_cv_c_const=yes
20469 else
20470   echo "$as_me: failed program was:" >&5
20471 sed 's/^/| /' conftest.$ac_ext >&5
20472
20473 ac_cv_c_const=no
20474 fi
20475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20476 fi
20477 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20478 echo "${ECHO_T}$ac_cv_c_const" >&6
20479 if test $ac_cv_c_const = no; then
20480   
20481 cat >>confdefs.h <<\_ACEOF
20482 @%:@define const 
20483 _ACEOF
20484
20485 fi
20486
20487 echo "$as_me:$LINENO: checking for off_t" >&5
20488 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
20489 if test "${ac_cv_type_off_t+set}" = set; then
20490   echo $ECHO_N "(cached) $ECHO_C" >&6
20491 else
20492   cat >conftest.$ac_ext <<_ACEOF
20493 /* confdefs.h.  */
20494 _ACEOF
20495 cat confdefs.h >>conftest.$ac_ext
20496 cat >>conftest.$ac_ext <<_ACEOF
20497 /* end confdefs.h.  */
20498 $ac_includes_default
20499 int
20500 main ()
20501 {
20502 if ((off_t *) 0)
20503   return 0;
20504 if (sizeof (off_t))
20505   return 0;
20506   ;
20507   return 0;
20508 }
20509 _ACEOF
20510 rm -f conftest.$ac_objext
20511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20512   (eval $ac_compile) 2>conftest.er1
20513   ac_status=$?
20514   grep -v '^ *+' conftest.er1 >conftest.err
20515   rm -f conftest.er1
20516   cat conftest.err >&5
20517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20518   (exit $ac_status); } &&
20519          { ac_try='test -z "$ac_c_werror_flag"
20520                          || test ! -s conftest.err'
20521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20522   (eval $ac_try) 2>&5
20523   ac_status=$?
20524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20525   (exit $ac_status); }; } &&
20526          { ac_try='test -s conftest.$ac_objext'
20527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20528   (eval $ac_try) 2>&5
20529   ac_status=$?
20530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20531   (exit $ac_status); }; }; then
20532   ac_cv_type_off_t=yes
20533 else
20534   echo "$as_me: failed program was:" >&5
20535 sed 's/^/| /' conftest.$ac_ext >&5
20536
20537 ac_cv_type_off_t=no
20538 fi
20539 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20540 fi
20541 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
20542 echo "${ECHO_T}$ac_cv_type_off_t" >&6
20543 if test $ac_cv_type_off_t = yes; then
20544   :
20545 else
20546   
20547 cat >>confdefs.h <<_ACEOF
20548 @%:@define off_t long
20549 _ACEOF
20550
20551 fi
20552
20553 echo "$as_me:$LINENO: checking for size_t" >&5
20554 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20555 if test "${ac_cv_type_size_t+set}" = set; then
20556   echo $ECHO_N "(cached) $ECHO_C" >&6
20557 else
20558   cat >conftest.$ac_ext <<_ACEOF
20559 /* confdefs.h.  */
20560 _ACEOF
20561 cat confdefs.h >>conftest.$ac_ext
20562 cat >>conftest.$ac_ext <<_ACEOF
20563 /* end confdefs.h.  */
20564 $ac_includes_default
20565 int
20566 main ()
20567 {
20568 if ((size_t *) 0)
20569   return 0;
20570 if (sizeof (size_t))
20571   return 0;
20572   ;
20573   return 0;
20574 }
20575 _ACEOF
20576 rm -f conftest.$ac_objext
20577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20578   (eval $ac_compile) 2>conftest.er1
20579   ac_status=$?
20580   grep -v '^ *+' conftest.er1 >conftest.err
20581   rm -f conftest.er1
20582   cat conftest.err >&5
20583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20584   (exit $ac_status); } &&
20585          { ac_try='test -z "$ac_c_werror_flag"
20586                          || test ! -s conftest.err'
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); }; } &&
20592          { ac_try='test -s conftest.$ac_objext'
20593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20594   (eval $ac_try) 2>&5
20595   ac_status=$?
20596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20597   (exit $ac_status); }; }; then
20598   ac_cv_type_size_t=yes
20599 else
20600   echo "$as_me: failed program was:" >&5
20601 sed 's/^/| /' conftest.$ac_ext >&5
20602
20603 ac_cv_type_size_t=no
20604 fi
20605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20606 fi
20607 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20608 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20609 if test $ac_cv_type_size_t = yes; then
20610   :
20611 else
20612   
20613 cat >>confdefs.h <<_ACEOF
20614 @%:@define size_t unsigned
20615 _ACEOF
20616
20617 fi
20618
20619
20620 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
20621 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
20622 if test "${ac_cv_type_signal+set}" = set; then
20623   echo $ECHO_N "(cached) $ECHO_C" >&6
20624 else
20625   cat >conftest.$ac_ext <<_ACEOF
20626 /* confdefs.h.  */
20627 _ACEOF
20628 cat confdefs.h >>conftest.$ac_ext
20629 cat >>conftest.$ac_ext <<_ACEOF
20630 /* end confdefs.h.  */
20631 #include <sys/types.h>
20632 #include <signal.h>
20633 #ifdef signal
20634 # undef signal
20635 #endif
20636 #ifdef __cplusplus
20637 extern "C" void (*signal (int, void (*)(int)))(int);
20638 #else
20639 void (*signal ()) ();
20640 #endif
20641
20642 int
20643 main ()
20644 {
20645 int i;
20646   ;
20647   return 0;
20648 }
20649 _ACEOF
20650 rm -f conftest.$ac_objext
20651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20652   (eval $ac_compile) 2>conftest.er1
20653   ac_status=$?
20654   grep -v '^ *+' conftest.er1 >conftest.err
20655   rm -f conftest.er1
20656   cat conftest.err >&5
20657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20658   (exit $ac_status); } &&
20659          { ac_try='test -z "$ac_c_werror_flag"
20660                          || test ! -s conftest.err'
20661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20662   (eval $ac_try) 2>&5
20663   ac_status=$?
20664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20665   (exit $ac_status); }; } &&
20666          { ac_try='test -s conftest.$ac_objext'
20667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20668   (eval $ac_try) 2>&5
20669   ac_status=$?
20670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20671   (exit $ac_status); }; }; then
20672   ac_cv_type_signal=void
20673 else
20674   echo "$as_me: failed program was:" >&5
20675 sed 's/^/| /' conftest.$ac_ext >&5
20676
20677 ac_cv_type_signal=int
20678 fi
20679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20680 fi
20681 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
20682 echo "${ECHO_T}$ac_cv_type_signal" >&6
20683
20684 cat >>confdefs.h <<_ACEOF
20685 @%:@define RETSIGTYPE $ac_cv_type_signal
20686 _ACEOF
20687
20688
20689
20690 for ac_func in backtrace
20691 do
20692 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20693 echo "$as_me:$LINENO: checking for $ac_func" >&5
20694 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20695 if eval "test \"\${$as_ac_var+set}\" = set"; then
20696   echo $ECHO_N "(cached) $ECHO_C" >&6
20697 else
20698   cat >conftest.$ac_ext <<_ACEOF
20699 /* confdefs.h.  */
20700 _ACEOF
20701 cat confdefs.h >>conftest.$ac_ext
20702 cat >>conftest.$ac_ext <<_ACEOF
20703 /* end confdefs.h.  */
20704 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20705    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20706 #define $ac_func innocuous_$ac_func
20707
20708 /* System header to define __stub macros and hopefully few prototypes,
20709     which can conflict with char $ac_func (); below.
20710     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20711     <limits.h> exists even on freestanding compilers.  */
20712
20713 #ifdef __STDC__
20714 # include <limits.h>
20715 #else
20716 # include <assert.h>
20717 #endif
20718
20719 #undef $ac_func
20720
20721 /* Override any gcc2 internal prototype to avoid an error.  */
20722 #ifdef __cplusplus
20723 extern "C"
20724 {
20725 #endif
20726 /* We use char because int might match the return type of a gcc2
20727    builtin and then its argument prototype would still apply.  */
20728 char $ac_func ();
20729 /* The GNU C library defines this for functions which it implements
20730     to always fail with ENOSYS.  Some functions are actually named
20731     something starting with __ and the normal name is an alias.  */
20732 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20733 choke me
20734 #else
20735 char (*f) () = $ac_func;
20736 #endif
20737 #ifdef __cplusplus
20738 }
20739 #endif
20740
20741 int
20742 main ()
20743 {
20744 return f != $ac_func;
20745   ;
20746   return 0;
20747 }
20748 _ACEOF
20749 rm -f conftest.$ac_objext conftest$ac_exeext
20750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20751   (eval $ac_link) 2>conftest.er1
20752   ac_status=$?
20753   grep -v '^ *+' conftest.er1 >conftest.err
20754   rm -f conftest.er1
20755   cat conftest.err >&5
20756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20757   (exit $ac_status); } &&
20758          { ac_try='test -z "$ac_c_werror_flag"
20759                          || test ! -s conftest.err'
20760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20761   (eval $ac_try) 2>&5
20762   ac_status=$?
20763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20764   (exit $ac_status); }; } &&
20765          { ac_try='test -s conftest$ac_exeext'
20766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20767   (eval $ac_try) 2>&5
20768   ac_status=$?
20769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20770   (exit $ac_status); }; }; then
20771   eval "$as_ac_var=yes"
20772 else
20773   echo "$as_me: failed program was:" >&5
20774 sed 's/^/| /' conftest.$ac_ext >&5
20775
20776 eval "$as_ac_var=no"
20777 fi
20778 rm -f conftest.err conftest.$ac_objext \
20779       conftest$ac_exeext conftest.$ac_ext
20780 fi
20781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20782 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20783 if test `eval echo '${'$as_ac_var'}'` = yes; then
20784   cat >>confdefs.h <<_ACEOF
20785 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20786 _ACEOF
20787  
20788 fi
20789 done
20790
20791
20792 for ac_func in snprintf
20793 do
20794 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20795 echo "$as_me:$LINENO: checking for $ac_func" >&5
20796 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20797 if eval "test \"\${$as_ac_var+set}\" = set"; then
20798   echo $ECHO_N "(cached) $ECHO_C" >&6
20799 else
20800   cat >conftest.$ac_ext <<_ACEOF
20801 /* confdefs.h.  */
20802 _ACEOF
20803 cat confdefs.h >>conftest.$ac_ext
20804 cat >>conftest.$ac_ext <<_ACEOF
20805 /* end confdefs.h.  */
20806 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20807    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20808 #define $ac_func innocuous_$ac_func
20809
20810 /* System header to define __stub macros and hopefully few prototypes,
20811     which can conflict with char $ac_func (); below.
20812     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20813     <limits.h> exists even on freestanding compilers.  */
20814
20815 #ifdef __STDC__
20816 # include <limits.h>
20817 #else
20818 # include <assert.h>
20819 #endif
20820
20821 #undef $ac_func
20822
20823 /* Override any gcc2 internal prototype to avoid an error.  */
20824 #ifdef __cplusplus
20825 extern "C"
20826 {
20827 #endif
20828 /* We use char because int might match the return type of a gcc2
20829    builtin and then its argument prototype would still apply.  */
20830 char $ac_func ();
20831 /* The GNU C library defines this for functions which it implements
20832     to always fail with ENOSYS.  Some functions are actually named
20833     something starting with __ and the normal name is an alias.  */
20834 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20835 choke me
20836 #else
20837 char (*f) () = $ac_func;
20838 #endif
20839 #ifdef __cplusplus
20840 }
20841 #endif
20842
20843 int
20844 main ()
20845 {
20846 return f != $ac_func;
20847   ;
20848   return 0;
20849 }
20850 _ACEOF
20851 rm -f conftest.$ac_objext conftest$ac_exeext
20852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20853   (eval $ac_link) 2>conftest.er1
20854   ac_status=$?
20855   grep -v '^ *+' conftest.er1 >conftest.err
20856   rm -f conftest.er1
20857   cat conftest.err >&5
20858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20859   (exit $ac_status); } &&
20860          { ac_try='test -z "$ac_c_werror_flag"
20861                          || test ! -s conftest.err'
20862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20863   (eval $ac_try) 2>&5
20864   ac_status=$?
20865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20866   (exit $ac_status); }; } &&
20867          { ac_try='test -s conftest$ac_exeext'
20868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20869   (eval $ac_try) 2>&5
20870   ac_status=$?
20871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20872   (exit $ac_status); }; }; then
20873   eval "$as_ac_var=yes"
20874 else
20875   echo "$as_me: failed program was:" >&5
20876 sed 's/^/| /' conftest.$ac_ext >&5
20877
20878 eval "$as_ac_var=no"
20879 fi
20880 rm -f conftest.err conftest.$ac_objext \
20881       conftest$ac_exeext conftest.$ac_ext
20882 fi
20883 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20884 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20885 if test `eval echo '${'$as_ac_var'}'` = yes; then
20886   cat >>confdefs.h <<_ACEOF
20887 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20888 _ACEOF
20889  
20890 else
20891   case $LIB@&t@OBJS in
20892     "$ac_func.$ac_objext"   | \
20893   *" $ac_func.$ac_objext"   | \
20894     "$ac_func.$ac_objext "* | \
20895   *" $ac_func.$ac_objext "* ) ;;
20896   *) LIB@&t@OBJS="$LIB@&t@OBJS $ac_func.$ac_objext" ;;
20897 esac
20898
20899 fi
20900 done
20901
20902
20903
20904
20905 cat >>confdefs.h <<\_ACEOF
20906 @%:@define HAVE_LIBICAL 1
20907 _ACEOF
20908
20909
20910 if test "x$with_libical" != xno ; then
20911                   
20912 for ac_header in ical.h
20913 do
20914 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20915 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20916   echo "$as_me:$LINENO: checking for $ac_header" >&5
20917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20918 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20919   echo $ECHO_N "(cached) $ECHO_C" >&6
20920 fi
20921 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20922 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20923 else
20924   # Is the header compilable?
20925 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20926 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20927 cat >conftest.$ac_ext <<_ACEOF
20928 /* confdefs.h.  */
20929 _ACEOF
20930 cat confdefs.h >>conftest.$ac_ext
20931 cat >>conftest.$ac_ext <<_ACEOF
20932 /* end confdefs.h.  */
20933 $ac_includes_default
20934 @%:@include <$ac_header>
20935 _ACEOF
20936 rm -f conftest.$ac_objext
20937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20938   (eval $ac_compile) 2>conftest.er1
20939   ac_status=$?
20940   grep -v '^ *+' conftest.er1 >conftest.err
20941   rm -f conftest.er1
20942   cat conftest.err >&5
20943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20944   (exit $ac_status); } &&
20945          { ac_try='test -z "$ac_c_werror_flag"
20946                          || test ! -s conftest.err'
20947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20948   (eval $ac_try) 2>&5
20949   ac_status=$?
20950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20951   (exit $ac_status); }; } &&
20952          { ac_try='test -s conftest.$ac_objext'
20953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20954   (eval $ac_try) 2>&5
20955   ac_status=$?
20956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20957   (exit $ac_status); }; }; then
20958   ac_header_compiler=yes
20959 else
20960   echo "$as_me: failed program was:" >&5
20961 sed 's/^/| /' conftest.$ac_ext >&5
20962
20963 ac_header_compiler=no
20964 fi
20965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20966 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20967 echo "${ECHO_T}$ac_header_compiler" >&6
20968
20969 # Is the header present?
20970 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20971 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20972 cat >conftest.$ac_ext <<_ACEOF
20973 /* confdefs.h.  */
20974 _ACEOF
20975 cat confdefs.h >>conftest.$ac_ext
20976 cat >>conftest.$ac_ext <<_ACEOF
20977 /* end confdefs.h.  */
20978 @%:@include <$ac_header>
20979 _ACEOF
20980 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20981   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20982   ac_status=$?
20983   grep -v '^ *+' conftest.er1 >conftest.err
20984   rm -f conftest.er1
20985   cat conftest.err >&5
20986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20987   (exit $ac_status); } >/dev/null; then
20988   if test -s conftest.err; then
20989     ac_cpp_err=$ac_c_preproc_warn_flag
20990     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20991   else
20992     ac_cpp_err=
20993   fi
20994 else
20995   ac_cpp_err=yes
20996 fi
20997 if test -z "$ac_cpp_err"; then
20998   ac_header_preproc=yes
20999 else
21000   echo "$as_me: failed program was:" >&5
21001 sed 's/^/| /' conftest.$ac_ext >&5
21002
21003   ac_header_preproc=no
21004 fi
21005 rm -f conftest.err conftest.$ac_ext
21006 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21007 echo "${ECHO_T}$ac_header_preproc" >&6
21008
21009 # So?  What about this header?
21010 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21011   yes:no: )
21012     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21013 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21014     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21015 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21016     ac_header_preproc=yes
21017     ;;
21018   no:yes:* )
21019     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21020 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21021     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21022 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21023     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21024 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21025     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21026 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21027     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21028 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21029     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21030 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21031     (
21032       cat <<\_ASBOX
21033 @%:@@%:@ ------------------------------------- @%:@@%:@
21034 @%:@@%:@ Report this to uncensored.citadel.org @%:@@%:@
21035 @%:@@%:@ ------------------------------------- @%:@@%:@
21036 _ASBOX
21037     ) |
21038       sed "s/^/$as_me: WARNING:     /" >&2
21039     ;;
21040 esac
21041 echo "$as_me:$LINENO: checking for $ac_header" >&5
21042 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21043 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21044   echo $ECHO_N "(cached) $ECHO_C" >&6
21045 else
21046   eval "$as_ac_Header=\$ac_header_preproc"
21047 fi
21048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21049 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21050
21051 fi
21052 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21053   cat >>confdefs.h <<_ACEOF
21054 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21055 _ACEOF
21056  echo "$as_me:$LINENO: checking for icalcomponent_new in -lical" >&5
21057 echo $ECHO_N "checking for icalcomponent_new in -lical... $ECHO_C" >&6
21058 if test "${ac_cv_lib_ical_icalcomponent_new+set}" = set; then
21059   echo $ECHO_N "(cached) $ECHO_C" >&6
21060 else
21061   ac_check_lib_save_LIBS=$LIBS
21062 LIBS="-lical  $LIBS"
21063 cat >conftest.$ac_ext <<_ACEOF
21064 /* confdefs.h.  */
21065 _ACEOF
21066 cat confdefs.h >>conftest.$ac_ext
21067 cat >>conftest.$ac_ext <<_ACEOF
21068 /* end confdefs.h.  */
21069
21070 /* Override any gcc2 internal prototype to avoid an error.  */
21071 #ifdef __cplusplus
21072 extern "C"
21073 #endif
21074 /* We use char because int might match the return type of a gcc2
21075    builtin and then its argument prototype would still apply.  */
21076 char icalcomponent_new ();
21077 int
21078 main ()
21079 {
21080 icalcomponent_new ();
21081   ;
21082   return 0;
21083 }
21084 _ACEOF
21085 rm -f conftest.$ac_objext conftest$ac_exeext
21086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21087   (eval $ac_link) 2>conftest.er1
21088   ac_status=$?
21089   grep -v '^ *+' conftest.er1 >conftest.err
21090   rm -f conftest.er1
21091   cat conftest.err >&5
21092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21093   (exit $ac_status); } &&
21094          { ac_try='test -z "$ac_c_werror_flag"
21095                          || test ! -s conftest.err'
21096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21097   (eval $ac_try) 2>&5
21098   ac_status=$?
21099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21100   (exit $ac_status); }; } &&
21101          { ac_try='test -s conftest$ac_exeext'
21102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21103   (eval $ac_try) 2>&5
21104   ac_status=$?
21105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21106   (exit $ac_status); }; }; then
21107   ac_cv_lib_ical_icalcomponent_new=yes
21108 else
21109   echo "$as_me: failed program was:" >&5
21110 sed 's/^/| /' conftest.$ac_ext >&5
21111
21112 ac_cv_lib_ical_icalcomponent_new=no
21113 fi
21114 rm -f conftest.err conftest.$ac_objext \
21115       conftest$ac_exeext conftest.$ac_ext
21116 LIBS=$ac_check_lib_save_LIBS
21117 fi
21118 echo "$as_me:$LINENO: result: $ac_cv_lib_ical_icalcomponent_new" >&5
21119 echo "${ECHO_T}$ac_cv_lib_ical_icalcomponent_new" >&6
21120 if test $ac_cv_lib_ical_icalcomponent_new = yes; then
21121   ok_libical=yes
21122 fi
21123
21124 fi
21125
21126 done
21127
21128 fi
21129
21130 if test "x$ok_libical" = xyes ; then
21131
21132         if test "$cross_compiling" = yes; then
21133   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21134 See \`config.log' for more details." >&5
21135 echo "$as_me: error: cannot run test program while cross compiling
21136 See \`config.log' for more details." >&2;}
21137    { (exit 1); exit 1; }; }
21138 else
21139   cat >conftest.$ac_ext <<_ACEOF
21140 /* confdefs.h.  */
21141 _ACEOF
21142 cat confdefs.h >>conftest.$ac_ext
21143 cat >>conftest.$ac_ext <<_ACEOF
21144 /* end confdefs.h.  */
21145
21146 #include <ical.h>
21147 main() {
21148         int major, minor, v;
21149         sscanf(ICAL_VERSION, "%d.%d", &major, &minor);
21150         v = 100*major + minor;
21151         printf("libical version: %i\n", v);
21152         if (v >= 24) {
21153                 printf("This version is ok.\n");
21154                 return(0);
21155         }
21156         printf("libical 0.24 or newer required.\n");
21157         printf("Citadel will be built without calendar support.\n");
21158         return(1);
21159 }
21160                 
21161 _ACEOF
21162 rm -f conftest$ac_exeext
21163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21164   (eval $ac_link) 2>&5
21165   ac_status=$?
21166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21167   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21169   (eval $ac_try) 2>&5
21170   ac_status=$?
21171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21172   (exit $ac_status); }; }; then
21173   
21174                         LIBS="$LIBS -lical"
21175                         cat >>confdefs.h <<\_ACEOF
21176 @%:@define HAVE_LIBICAL 1
21177 _ACEOF
21178
21179                 
21180         
21181 else
21182   echo "$as_me: program exited with status $ac_status" >&5
21183 echo "$as_me: failed program was:" >&5
21184 sed 's/^/| /' conftest.$ac_ext >&5
21185
21186 fi
21187 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21188 fi
21189 fi
21190
21191
21192
21193
21194 cat >>confdefs.h <<\_ACEOF
21195 @%:@define with_zlib 1
21196 _ACEOF
21197
21198
21199 if test "x$ok_zlib" = xyes ; then
21200         LIBS="$LIBS -lz "
21201 fi
21202
21203
21204 # Check whether --with-ok_newt or --without-ok_newt was given.
21205 if test "${with_ok_newt+set}" = set; then
21206   withval="$with_ok_newt"
21207   ok_newt=no
21208 else
21209    
21210 for ac_header in newt.h
21211 do
21212 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21213 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21214   echo "$as_me:$LINENO: checking for $ac_header" >&5
21215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21216 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21217   echo $ECHO_N "(cached) $ECHO_C" >&6
21218 fi
21219 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21220 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21221 else
21222   # Is the header compilable?
21223 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21224 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21225 cat >conftest.$ac_ext <<_ACEOF
21226 /* confdefs.h.  */
21227 _ACEOF
21228 cat confdefs.h >>conftest.$ac_ext
21229 cat >>conftest.$ac_ext <<_ACEOF
21230 /* end confdefs.h.  */
21231 $ac_includes_default
21232 @%:@include <$ac_header>
21233 _ACEOF
21234 rm -f conftest.$ac_objext
21235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21236   (eval $ac_compile) 2>conftest.er1
21237   ac_status=$?
21238   grep -v '^ *+' conftest.er1 >conftest.err
21239   rm -f conftest.er1
21240   cat conftest.err >&5
21241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21242   (exit $ac_status); } &&
21243          { ac_try='test -z "$ac_c_werror_flag"
21244                          || test ! -s conftest.err'
21245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21246   (eval $ac_try) 2>&5
21247   ac_status=$?
21248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21249   (exit $ac_status); }; } &&
21250          { ac_try='test -s conftest.$ac_objext'
21251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21252   (eval $ac_try) 2>&5
21253   ac_status=$?
21254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21255   (exit $ac_status); }; }; then
21256   ac_header_compiler=yes
21257 else
21258   echo "$as_me: failed program was:" >&5
21259 sed 's/^/| /' conftest.$ac_ext >&5
21260
21261 ac_header_compiler=no
21262 fi
21263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21264 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21265 echo "${ECHO_T}$ac_header_compiler" >&6
21266
21267 # Is the header present?
21268 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21269 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21270 cat >conftest.$ac_ext <<_ACEOF
21271 /* confdefs.h.  */
21272 _ACEOF
21273 cat confdefs.h >>conftest.$ac_ext
21274 cat >>conftest.$ac_ext <<_ACEOF
21275 /* end confdefs.h.  */
21276 @%:@include <$ac_header>
21277 _ACEOF
21278 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21279   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21280   ac_status=$?
21281   grep -v '^ *+' conftest.er1 >conftest.err
21282   rm -f conftest.er1
21283   cat conftest.err >&5
21284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21285   (exit $ac_status); } >/dev/null; then
21286   if test -s conftest.err; then
21287     ac_cpp_err=$ac_c_preproc_warn_flag
21288     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21289   else
21290     ac_cpp_err=
21291   fi
21292 else
21293   ac_cpp_err=yes
21294 fi
21295 if test -z "$ac_cpp_err"; then
21296   ac_header_preproc=yes
21297 else
21298   echo "$as_me: failed program was:" >&5
21299 sed 's/^/| /' conftest.$ac_ext >&5
21300
21301   ac_header_preproc=no
21302 fi
21303 rm -f conftest.err conftest.$ac_ext
21304 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21305 echo "${ECHO_T}$ac_header_preproc" >&6
21306
21307 # So?  What about this header?
21308 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21309   yes:no: )
21310     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21311 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21312     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21313 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21314     ac_header_preproc=yes
21315     ;;
21316   no:yes:* )
21317     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21318 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21319     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21320 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21321     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21322 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21323     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21324 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21325     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21326 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21327     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21328 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21329     (
21330       cat <<\_ASBOX
21331 @%:@@%:@ ------------------------------------- @%:@@%:@
21332 @%:@@%:@ Report this to uncensored.citadel.org @%:@@%:@
21333 @%:@@%:@ ------------------------------------- @%:@@%:@
21334 _ASBOX
21335     ) |
21336       sed "s/^/$as_me: WARNING:     /" >&2
21337     ;;
21338 esac
21339 echo "$as_me:$LINENO: checking for $ac_header" >&5
21340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21342   echo $ECHO_N "(cached) $ECHO_C" >&6
21343 else
21344   eval "$as_ac_Header=\$ac_header_preproc"
21345 fi
21346 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21347 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21348
21349 fi
21350 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21351   cat >>confdefs.h <<_ACEOF
21352 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21353 _ACEOF
21354  echo "$as_me:$LINENO: checking for newtInit in -lnewt" >&5
21355 echo $ECHO_N "checking for newtInit in -lnewt... $ECHO_C" >&6
21356 if test "${ac_cv_lib_newt_newtInit+set}" = set; then
21357   echo $ECHO_N "(cached) $ECHO_C" >&6
21358 else
21359   ac_check_lib_save_LIBS=$LIBS
21360 LIBS="-lnewt  $LIBS"
21361 cat >conftest.$ac_ext <<_ACEOF
21362 /* confdefs.h.  */
21363 _ACEOF
21364 cat confdefs.h >>conftest.$ac_ext
21365 cat >>conftest.$ac_ext <<_ACEOF
21366 /* end confdefs.h.  */
21367
21368 /* Override any gcc2 internal prototype to avoid an error.  */
21369 #ifdef __cplusplus
21370 extern "C"
21371 #endif
21372 /* We use char because int might match the return type of a gcc2
21373    builtin and then its argument prototype would still apply.  */
21374 char newtInit ();
21375 int
21376 main ()
21377 {
21378 newtInit ();
21379   ;
21380   return 0;
21381 }
21382 _ACEOF
21383 rm -f conftest.$ac_objext conftest$ac_exeext
21384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21385   (eval $ac_link) 2>conftest.er1
21386   ac_status=$?
21387   grep -v '^ *+' conftest.er1 >conftest.err
21388   rm -f conftest.er1
21389   cat conftest.err >&5
21390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21391   (exit $ac_status); } &&
21392          { ac_try='test -z "$ac_c_werror_flag"
21393                          || test ! -s conftest.err'
21394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21395   (eval $ac_try) 2>&5
21396   ac_status=$?
21397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21398   (exit $ac_status); }; } &&
21399          { ac_try='test -s conftest$ac_exeext'
21400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21401   (eval $ac_try) 2>&5
21402   ac_status=$?
21403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21404   (exit $ac_status); }; }; then
21405   ac_cv_lib_newt_newtInit=yes
21406 else
21407   echo "$as_me: failed program was:" >&5
21408 sed 's/^/| /' conftest.$ac_ext >&5
21409
21410 ac_cv_lib_newt_newtInit=no
21411 fi
21412 rm -f conftest.err conftest.$ac_objext \
21413       conftest$ac_exeext conftest.$ac_ext
21414 LIBS=$ac_check_lib_save_LIBS
21415 fi
21416 echo "$as_me:$LINENO: result: $ac_cv_lib_newt_newtInit" >&5
21417 echo "${ECHO_T}$ac_cv_lib_newt_newtInit" >&6
21418 if test $ac_cv_lib_newt_newtInit = yes; then
21419   ok_newt=yes
21420 else
21421   ok_newt=no
21422 fi
21423
21424                                                         
21425 fi
21426
21427 done
21428
21429                                   
21430
21431 fi; 
21432 if test "x$ok_newt" = xyes ; then
21433         SETUP_LIBS="-lnewt $SETUP_LIBS"
21434 fi
21435
21436 # The big search for OpenSSL
21437 if test "$with_ssl" != "no"; then
21438         saved_LIBS="$LIBS"
21439         saved_LDFLAGS="$LDFLAGS"
21440         saved_CFLAGS="$CFLAGS"
21441         if test "x$prefix" != "xNONE"; then
21442                 tryssldir="$tryssldir $prefix"
21443         fi
21444         echo "$as_me:$LINENO: checking for OpenSSL" >&5
21445 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
21446 if test "${ac_cv_openssldir+set}" = set; then
21447   echo $ECHO_N "(cached) $ECHO_C" >&6
21448 else
21449   
21450                 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
21451                         CFLAGS="$saved_CFLAGS"
21452                         LDFLAGS="$saved_LDFLAGS"
21453                         LIBS="$saved_LIBS -lssl -lcrypto"
21454         
21455                         # Skip directories if they don't exist
21456                         if test ! -z "$ssldir" -a ! -d "$ssldir" ; then
21457                                 continue;
21458                         fi
21459                         if test ! -z "$ssldir" -a "x$ssldir" != "x/usr"; then
21460                                 # Try to use $ssldir/lib if it exists, otherwise
21461                                 # $ssldir
21462                                 if test -d "$ssldir/lib" ; then
21463                                         LDFLAGS="-L$ssldir/lib $saved_LDFLAGS"
21464                                         if test ! -z "$need_dash_r" ; then
21465                                                 LDFLAGS="-R$ssldir/lib $LDFLAGS"
21466                                         fi
21467                                 else
21468                                         LDFLAGS="-L$ssldir $saved_LDFLAGS"
21469                                         if test ! -z "$need_dash_r" ; then
21470                                                 LDFLAGS="-R$ssldir $LDFLAGS"
21471                                         fi
21472                                 fi
21473                                 # Try to use $ssldir/include if it exists, otherwise
21474                                 # $ssldir
21475                                 if test -d "$ssldir/include" ; then
21476                                         CFLAGS="-I$ssldir/include $saved_CFLAGS"
21477                                 else
21478                                         CFLAGS="-I$ssldir $saved_CFLAGS"
21479                                 fi
21480                         fi
21481         
21482                         # Basic test to check for compatible version and correct linking
21483                         # *does not* test for RSA - that comes later.
21484                         if test "$cross_compiling" = yes; then
21485   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21486 See \`config.log' for more details." >&5
21487 echo "$as_me: error: cannot run test program while cross compiling
21488 See \`config.log' for more details." >&2;}
21489    { (exit 1); exit 1; }; }
21490 else
21491   cat >conftest.$ac_ext <<_ACEOF
21492 /* confdefs.h.  */
21493 _ACEOF
21494 cat confdefs.h >>conftest.$ac_ext
21495 cat >>conftest.$ac_ext <<_ACEOF
21496 /* end confdefs.h.  */
21497
21498         #include <string.h>
21499         #include <openssl/rand.h>
21500         int main(void)
21501         {
21502                 char a[2048];
21503                 memset(a, 0, sizeof(a));
21504                 RAND_add(a, sizeof(a), sizeof(a));
21505                 return(RAND_status() <= 0);
21506         }
21507                                 
21508 _ACEOF
21509 rm -f conftest$ac_exeext
21510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21511   (eval $ac_link) 2>&5
21512   ac_status=$?
21513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21514   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21516   (eval $ac_try) 2>&5
21517   ac_status=$?
21518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21519   (exit $ac_status); }; }; then
21520   
21521                                         found_crypto=1
21522                                         break;
21523                                 
21524 else
21525   echo "$as_me: program exited with status $ac_status" >&5
21526 echo "$as_me: failed program was:" >&5
21527 sed 's/^/| /' conftest.$ac_ext >&5
21528
21529 ( exit $ac_status )
21530
21531                         
21532 fi
21533 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21534 fi
21535         
21536                         if test ! -z "$found_crypto" ; then
21537                                 break;
21538                         fi
21539                 done
21540         
21541                 if test -z "$ssldir" ; then
21542                         ssldir="(system)"
21543                 fi
21544         
21545                 if test ! -z "$found_crypto" ; then
21546                         ac_cv_openssldir=$ssldir
21547                 else
21548                         ac_cv_openssldir="no"
21549                 fi
21550         
21551 fi
21552 echo "$as_me:$LINENO: result: $ac_cv_openssldir" >&5
21553 echo "${ECHO_T}$ac_cv_openssldir" >&6
21554         LIBS="$saved_LIBS"
21555         LDFLAGS="$saved_LDFLAGS"
21556         CFLAGS="$saved_CFLAGS"
21557         
21558         if test "x$ac_cv_openssldir" != "xno" ; then
21559                 cat >>confdefs.h <<\_ACEOF
21560 @%:@define HAVE_OPENSSL 1
21561 _ACEOF
21562
21563                 LIBS="-lssl -lcrypto $LIBS"
21564                                 ssldir=$ac_cv_openssldir
21565                 if test ! -z "$ssldir" -a "x$ssldir" != "x/usr" -a "x$ssldir" != "x(system)"; then
21566                         # Try to use $ssldir/lib if it exists, otherwise
21567                         # $ssldir
21568                         if test -d "$ssldir/lib" ; then
21569                                 LDFLAGS="-L$ssldir/lib $saved_LDFLAGS"
21570                                 if test ! -z "$need_dash_r" ; then
21571                                         LDFLAGS="-R$ssldir/lib $LDFLAGS"
21572                                 fi
21573                         else
21574                                 LDFLAGS="-L$ssldir $saved_LDFLAGS"
21575                                 if test ! -z "$need_dash_r" ; then
21576                                         LDFLAGS="-R$ssldir $LDFLAGS"
21577                                 fi
21578                         fi
21579                         # Try to use $ssldir/include if it exists, otherwise
21580                         # $ssldir
21581                         if test -d "$ssldir/include" ; then
21582                                 CFLAGS="-I$ssldir/include $saved_CFLAGS"
21583                         else
21584                                 CFLAGS="-I$ssldir $saved_CFLAGS"
21585                         fi
21586                 fi
21587         fi
21588 fi
21589
21590
21591
21592 cat >>confdefs.h <<\_ACEOF
21593 @%:@define HAVE_ICONV 1
21594 _ACEOF
21595
21596
21597 if test "$ok_nls" != "no"; then
21598         echo "$as_me:$LINENO: result: Checking to see if your system supports iconv..." >&5
21599 echo "${ECHO_T}Checking to see if your system supports iconv..." >&6
21600         if test "$cross_compiling" = yes; then
21601   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21602 See \`config.log' for more details." >&5
21603 echo "$as_me: error: cannot run test program while cross compiling
21604 See \`config.log' for more details." >&2;}
21605    { (exit 1); exit 1; }; }
21606 else
21607   cat >conftest.$ac_ext <<_ACEOF
21608 /* confdefs.h.  */
21609 _ACEOF
21610 cat confdefs.h >>conftest.$ac_ext
21611 cat >>conftest.$ac_ext <<_ACEOF
21612 /* end confdefs.h.  */
21613
21614                 #include <iconv.h>
21615                 main() {
21616                         iconv_t ic = (iconv_t)(-1) ;
21617                         ic = iconv_open("UTF-8", "us-ascii");
21618                         iconv_close(ic);
21619                         exit(0);
21620                 }
21621         
21622 _ACEOF
21623 rm -f conftest$ac_exeext
21624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21625   (eval $ac_link) 2>&5
21626   ac_status=$?
21627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21628   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21630   (eval $ac_try) 2>&5
21631   ac_status=$?
21632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21633   (exit $ac_status); }; }; then
21634   ok_iconv=yes
21635 else
21636   echo "$as_me: program exited with status $ac_status" >&5
21637 echo "$as_me: failed program was:" >&5
21638 sed 's/^/| /' conftest.$ac_ext >&5
21639
21640 ( exit $ac_status )
21641 ok_iconv=no
21642         
21643 fi
21644 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21645 fi
21646 fi
21647
21648 if test "$ok_iconv" != "no"; then
21649         echo "$as_me:$LINENO: result: WebCit will be built with character set conversion." >&5
21650 echo "${ECHO_T}WebCit will be built with character set conversion." >&6
21651         cat >>confdefs.h <<\_ACEOF
21652 @%:@define HAVE_ICONV 1
21653 _ACEOF
21654
21655 else
21656         echo "$as_me:$LINENO: result: WebCit will be built without character set conversion." >&5
21657 echo "${ECHO_T}WebCit will be built without character set conversion." >&6
21658 fi
21659
21660
21661 cat >>confdefs.h <<_ACEOF
21662 @%:@define PREFIX "$prefix"
21663 _ACEOF
21664
21665
21666
21667
21668 #AM_GNU_GETTEXT
21669 # if we have intl/... 
21670
21671
21672 if test -n ""; then
21673     echo "$as_me:$LINENO: checking for intltool >= " >&5
21674 echo $ECHO_N "checking for intltool >= ... $ECHO_C" >&6
21675
21676     INTLTOOL_REQUIRED_VERSION_AS_INT=`echo  | awk -F. '{ printf "%d", $1 * 100 + $2; }'`
21677     INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { printf $2; }'  < ${ac_aux_dir}/intltool-update.in`
21678     
21679     INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split($2, VERSION, "."); printf "%d\n", VERSION[1] * 100 + VERSION[2];}' < ${ac_aux_dir}/intltool-update.in`
21680     
21681
21682     if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT"; then
21683         echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5
21684 echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found" >&6
21685     else
21686         echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found. Your intltool is too old.  You need intltool  or later." >&5
21687 echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found. Your intltool is too old.  You need intltool  or later." >&6
21688         exit 1
21689     fi
21690 fi
21691
21692   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 $< $@' 
21693 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 $< $@' 
21694      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 $< $@' 
21695      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 $< $@' 
21696       INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< $@'
21697      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 $< $@' 
21698    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 $< $@' 
21699     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 $< $@' 
21700 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 $< $@' 
21701        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 $< $@' 
21702       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 $< $@' 
21703       INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< $@' 
21704       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 $< $@' 
21705       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 $< $@' 
21706     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 $< $@' 
21707   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 $< $@' 
21708     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 $< $@' 
21709
21710
21711
21712
21713
21714
21715
21716
21717
21718
21719
21720
21721
21722
21723
21724
21725
21726
21727
21728 # Use the tools built into the package, not the ones that are installed.
21729
21730 INTLTOOL_EXTRACT='$(top_builddir)/intltool-extract'
21731 INTLTOOL_MERGE='$(top_builddir)/intltool-merge'
21732 INTLTOOL_UPDATE='$(top_builddir)/intltool-update'
21733
21734
21735
21736
21737
21738 # Extract the first word of "perl", so it can be a program name with args.
21739 set dummy perl; ac_word=$2
21740 echo "$as_me:$LINENO: checking for $ac_word" >&5
21741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21742 if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then
21743   echo $ECHO_N "(cached) $ECHO_C" >&6
21744 else
21745   case $INTLTOOL_PERL in
21746   [\\/]* | ?:[\\/]*)
21747   ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
21748   ;;
21749   *)
21750   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21751 for as_dir in $PATH
21752 do
21753   IFS=$as_save_IFS
21754   test -z "$as_dir" && as_dir=.
21755   for ac_exec_ext in '' $ac_executable_extensions; do
21756   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21757     ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
21758     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21759     break 2
21760   fi
21761 done
21762 done
21763
21764   ;;
21765 esac
21766 fi
21767 INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
21768
21769 if test -n "$INTLTOOL_PERL"; then
21770   echo "$as_me:$LINENO: result: $INTLTOOL_PERL" >&5
21771 echo "${ECHO_T}$INTLTOOL_PERL" >&6
21772 else
21773   echo "$as_me:$LINENO: result: no" >&5
21774 echo "${ECHO_T}no" >&6
21775 fi
21776
21777 if test -z "$INTLTOOL_PERL"; then
21778    { { echo "$as_me:$LINENO: error: perl not found; required for intltool" >&5
21779 echo "$as_me: error: perl not found; required for intltool" >&2;}
21780    { (exit 1); exit 1; }; }
21781 fi
21782 if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
21783    { { echo "$as_me:$LINENO: error: perl 5.x required for intltool" >&5
21784 echo "$as_me: error: perl 5.x required for intltool" >&2;}
21785    { (exit 1); exit 1; }; }
21786 fi
21787 if test "x" != "xno-xml"; then
21788    echo "$as_me:$LINENO: checking for XML::Parser" >&5
21789 echo $ECHO_N "checking for XML::Parser... $ECHO_C" >&6
21790    if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
21791        echo "$as_me:$LINENO: result: ok" >&5
21792 echo "${ECHO_T}ok" >&6
21793    else
21794        { { echo "$as_me:$LINENO: error: XML::Parser perl module is required for intltool" >&5
21795 echo "$as_me: error: XML::Parser perl module is required for intltool" >&2;}
21796    { (exit 1); exit 1; }; }
21797    fi
21798 fi
21799
21800 # Extract the first word of "iconv", so it can be a program name with args.
21801 set dummy iconv; ac_word=$2
21802 echo "$as_me:$LINENO: checking for $ac_word" >&5
21803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21804 if test "${ac_cv_path_INTLTOOL_ICONV+set}" = set; then
21805   echo $ECHO_N "(cached) $ECHO_C" >&6
21806 else
21807   case $INTLTOOL_ICONV in
21808   [\\/]* | ?:[\\/]*)
21809   ac_cv_path_INTLTOOL_ICONV="$INTLTOOL_ICONV" # Let the user override the test with a path.
21810   ;;
21811   *)
21812   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21813 for as_dir in $PATH
21814 do
21815   IFS=$as_save_IFS
21816   test -z "$as_dir" && as_dir=.
21817   for ac_exec_ext in '' $ac_executable_extensions; do
21818   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21819     ac_cv_path_INTLTOOL_ICONV="$as_dir/$ac_word$ac_exec_ext"
21820     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21821     break 2
21822   fi
21823 done
21824 done
21825
21826   test -z "$ac_cv_path_INTLTOOL_ICONV" && ac_cv_path_INTLTOOL_ICONV="iconv"
21827   ;;
21828 esac
21829 fi
21830 INTLTOOL_ICONV=$ac_cv_path_INTLTOOL_ICONV
21831
21832 if test -n "$INTLTOOL_ICONV"; then
21833   echo "$as_me:$LINENO: result: $INTLTOOL_ICONV" >&5
21834 echo "${ECHO_T}$INTLTOOL_ICONV" >&6
21835 else
21836   echo "$as_me:$LINENO: result: no" >&5
21837 echo "${ECHO_T}no" >&6
21838 fi
21839
21840 # Extract the first word of "msgfmt", so it can be a program name with args.
21841 set dummy msgfmt; ac_word=$2
21842 echo "$as_me:$LINENO: checking for $ac_word" >&5
21843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21844 if test "${ac_cv_path_INTLTOOL_MSGFMT+set}" = set; then
21845   echo $ECHO_N "(cached) $ECHO_C" >&6
21846 else
21847   case $INTLTOOL_MSGFMT in
21848   [\\/]* | ?:[\\/]*)
21849   ac_cv_path_INTLTOOL_MSGFMT="$INTLTOOL_MSGFMT" # Let the user override the test with a path.
21850   ;;
21851   *)
21852   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21853 for as_dir in $PATH
21854 do
21855   IFS=$as_save_IFS
21856   test -z "$as_dir" && as_dir=.
21857   for ac_exec_ext in '' $ac_executable_extensions; do
21858   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21859     ac_cv_path_INTLTOOL_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
21860     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21861     break 2
21862   fi
21863 done
21864 done
21865
21866   test -z "$ac_cv_path_INTLTOOL_MSGFMT" && ac_cv_path_INTLTOOL_MSGFMT="msgfmt"
21867   ;;
21868 esac
21869 fi
21870 INTLTOOL_MSGFMT=$ac_cv_path_INTLTOOL_MSGFMT
21871
21872 if test -n "$INTLTOOL_MSGFMT"; then
21873   echo "$as_me:$LINENO: result: $INTLTOOL_MSGFMT" >&5
21874 echo "${ECHO_T}$INTLTOOL_MSGFMT" >&6
21875 else
21876   echo "$as_me:$LINENO: result: no" >&5
21877 echo "${ECHO_T}no" >&6
21878 fi
21879
21880 # Extract the first word of "msgmerge", so it can be a program name with args.
21881 set dummy msgmerge; ac_word=$2
21882 echo "$as_me:$LINENO: checking for $ac_word" >&5
21883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21884 if test "${ac_cv_path_INTLTOOL_MSGMERGE+set}" = set; then
21885   echo $ECHO_N "(cached) $ECHO_C" >&6
21886 else
21887   case $INTLTOOL_MSGMERGE in
21888   [\\/]* | ?:[\\/]*)
21889   ac_cv_path_INTLTOOL_MSGMERGE="$INTLTOOL_MSGMERGE" # Let the user override the test with a path.
21890   ;;
21891   *)
21892   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21893 for as_dir in $PATH
21894 do
21895   IFS=$as_save_IFS
21896   test -z "$as_dir" && as_dir=.
21897   for ac_exec_ext in '' $ac_executable_extensions; do
21898   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21899     ac_cv_path_INTLTOOL_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
21900     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21901     break 2
21902   fi
21903 done
21904 done
21905
21906   test -z "$ac_cv_path_INTLTOOL_MSGMERGE" && ac_cv_path_INTLTOOL_MSGMERGE="msgmerge"
21907   ;;
21908 esac
21909 fi
21910 INTLTOOL_MSGMERGE=$ac_cv_path_INTLTOOL_MSGMERGE
21911
21912 if test -n "$INTLTOOL_MSGMERGE"; then
21913   echo "$as_me:$LINENO: result: $INTLTOOL_MSGMERGE" >&5
21914 echo "${ECHO_T}$INTLTOOL_MSGMERGE" >&6
21915 else
21916   echo "$as_me:$LINENO: result: no" >&5
21917 echo "${ECHO_T}no" >&6
21918 fi
21919
21920 # Extract the first word of "xgettext", so it can be a program name with args.
21921 set dummy xgettext; ac_word=$2
21922 echo "$as_me:$LINENO: checking for $ac_word" >&5
21923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21924 if test "${ac_cv_path_INTLTOOL_XGETTEXT+set}" = set; then
21925   echo $ECHO_N "(cached) $ECHO_C" >&6
21926 else
21927   case $INTLTOOL_XGETTEXT in
21928   [\\/]* | ?:[\\/]*)
21929   ac_cv_path_INTLTOOL_XGETTEXT="$INTLTOOL_XGETTEXT" # Let the user override the test with a path.
21930   ;;
21931   *)
21932   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21933 for as_dir in $PATH
21934 do
21935   IFS=$as_save_IFS
21936   test -z "$as_dir" && as_dir=.
21937   for ac_exec_ext in '' $ac_executable_extensions; do
21938   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21939     ac_cv_path_INTLTOOL_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
21940     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21941     break 2
21942   fi
21943 done
21944 done
21945
21946   test -z "$ac_cv_path_INTLTOOL_XGETTEXT" && ac_cv_path_INTLTOOL_XGETTEXT="xgettext"
21947   ;;
21948 esac
21949 fi
21950 INTLTOOL_XGETTEXT=$ac_cv_path_INTLTOOL_XGETTEXT
21951
21952 if test -n "$INTLTOOL_XGETTEXT"; then
21953   echo "$as_me:$LINENO: result: $INTLTOOL_XGETTEXT" >&5
21954 echo "${ECHO_T}$INTLTOOL_XGETTEXT" >&6
21955 else
21956   echo "$as_me:$LINENO: result: no" >&5
21957 echo "${ECHO_T}no" >&6
21958 fi
21959
21960
21961 # Remove file type tags (using []) from po/POTFILES.
21962
21963
21964   
21965     
21966   
21967
21968
21969 # Manually sed perl in so people don't have to put the intltool scripts in AC_OUTPUT.
21970
21971           ac_config_commands="$ac_config_commands intltool"
21972
21973
21974
21975
21976         MKINSTALLDIRS=
21977   if test -n "$ac_aux_dir"; then
21978     case "$ac_aux_dir" in
21979       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
21980       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
21981     esac
21982   fi
21983   if test -z "$MKINSTALLDIRS"; then
21984     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
21985   fi
21986   
21987
21988
21989   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
21990 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
21991     # Check whether --enable-nls or --disable-nls was given.
21992 if test "${enable_nls+set}" = set; then
21993   enableval="$enable_nls"
21994   USE_NLS=$enableval
21995 else
21996   USE_NLS=yes
21997 fi; 
21998   echo "$as_me:$LINENO: result: $USE_NLS" >&5
21999 echo "${ECHO_T}$USE_NLS" >&6
22000   
22001
22002
22003         
22004     
22005         
22006 # Prepare PATH_SEPARATOR.
22007 # The user is always right.
22008 if test "${PATH_SEPARATOR+set}" != set; then
22009   echo "#! /bin/sh" >conf$$.sh
22010   echo  "exit 0"   >>conf$$.sh
22011   chmod +x conf$$.sh
22012   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22013     PATH_SEPARATOR=';'
22014   else
22015     PATH_SEPARATOR=:
22016   fi
22017   rm -f conf$$.sh
22018 fi
22019
22020 # Find out how to test for executable files. Don't use a zero-byte file,
22021 # as systems may use methods other than mode bits to determine executability.
22022 cat >conf$$.file <<_ASEOF
22023 #! /bin/sh
22024 exit 0
22025 _ASEOF
22026 chmod +x conf$$.file
22027 if test -x conf$$.file >/dev/null 2>&1; then
22028   ac_executable_p="test -x"
22029 else
22030   ac_executable_p="test -f"
22031 fi
22032 rm -f conf$$.file
22033
22034 # Extract the first word of "msgfmt", so it can be a program name with args.
22035 set dummy msgfmt; ac_word=$2
22036 echo "$as_me:$LINENO: checking for $ac_word" >&5
22037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22038 if test "${ac_cv_path_MSGFMT+set}" = set; then
22039   echo $ECHO_N "(cached) $ECHO_C" >&6
22040 else
22041   case "$MSGFMT" in
22042   [\\/]* | ?:[\\/]*)
22043     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
22044     ;;
22045   *)
22046     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
22047     for ac_dir in $PATH; do
22048       IFS="$ac_save_IFS"
22049       test -z "$ac_dir" && ac_dir=.
22050       for ac_exec_ext in '' $ac_executable_extensions; do
22051         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
22052           if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
22053      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
22054             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
22055             break 2
22056           fi
22057         fi
22058       done
22059     done
22060     IFS="$ac_save_IFS"
22061   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
22062     ;;
22063 esac
22064 fi
22065 MSGFMT="$ac_cv_path_MSGFMT"
22066 if test "$MSGFMT" != ":"; then
22067   echo "$as_me:$LINENO: result: $MSGFMT" >&5
22068 echo "${ECHO_T}$MSGFMT" >&6
22069 else
22070   echo "$as_me:$LINENO: result: no" >&5
22071 echo "${ECHO_T}no" >&6
22072 fi
22073
22074   # Extract the first word of "gmsgfmt", so it can be a program name with args.
22075 set dummy gmsgfmt; ac_word=$2
22076 echo "$as_me:$LINENO: checking for $ac_word" >&5
22077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22078 if test "${ac_cv_path_GMSGFMT+set}" = set; then
22079   echo $ECHO_N "(cached) $ECHO_C" >&6
22080 else
22081   case $GMSGFMT in
22082   [\\/]* | ?:[\\/]*)
22083   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
22084   ;;
22085   *)
22086   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22087 for as_dir in $PATH
22088 do
22089   IFS=$as_save_IFS
22090   test -z "$as_dir" && as_dir=.
22091   for ac_exec_ext in '' $ac_executable_extensions; do
22092   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22093     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
22094     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22095     break 2
22096   fi
22097 done
22098 done
22099
22100   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
22101   ;;
22102 esac
22103 fi
22104 GMSGFMT=$ac_cv_path_GMSGFMT
22105
22106 if test -n "$GMSGFMT"; then
22107   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
22108 echo "${ECHO_T}$GMSGFMT" >&6
22109 else
22110   echo "$as_me:$LINENO: result: no" >&5
22111 echo "${ECHO_T}no" >&6
22112 fi
22113
22114
22115         
22116 # Prepare PATH_SEPARATOR.
22117 # The user is always right.
22118 if test "${PATH_SEPARATOR+set}" != set; then
22119   echo "#! /bin/sh" >conf$$.sh
22120   echo  "exit 0"   >>conf$$.sh
22121   chmod +x conf$$.sh
22122   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22123     PATH_SEPARATOR=';'
22124   else
22125     PATH_SEPARATOR=:
22126   fi
22127   rm -f conf$$.sh
22128 fi
22129
22130 # Find out how to test for executable files. Don't use a zero-byte file,
22131 # as systems may use methods other than mode bits to determine executability.
22132 cat >conf$$.file <<_ASEOF
22133 #! /bin/sh
22134 exit 0
22135 _ASEOF
22136 chmod +x conf$$.file
22137 if test -x conf$$.file >/dev/null 2>&1; then
22138   ac_executable_p="test -x"
22139 else
22140   ac_executable_p="test -f"
22141 fi
22142 rm -f conf$$.file
22143
22144 # Extract the first word of "xgettext", so it can be a program name with args.
22145 set dummy xgettext; ac_word=$2
22146 echo "$as_me:$LINENO: checking for $ac_word" >&5
22147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22148 if test "${ac_cv_path_XGETTEXT+set}" = set; then
22149   echo $ECHO_N "(cached) $ECHO_C" >&6
22150 else
22151   case "$XGETTEXT" in
22152   [\\/]* | ?:[\\/]*)
22153     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
22154     ;;
22155   *)
22156     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
22157     for ac_dir in $PATH; do
22158       IFS="$ac_save_IFS"
22159       test -z "$ac_dir" && ac_dir=.
22160       for ac_exec_ext in '' $ac_executable_extensions; do
22161         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
22162           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
22163      (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
22164             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
22165             break 2
22166           fi
22167         fi
22168       done
22169     done
22170     IFS="$ac_save_IFS"
22171   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
22172     ;;
22173 esac
22174 fi
22175 XGETTEXT="$ac_cv_path_XGETTEXT"
22176 if test "$XGETTEXT" != ":"; then
22177   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
22178 echo "${ECHO_T}$XGETTEXT" >&6
22179 else
22180   echo "$as_me:$LINENO: result: no" >&5
22181 echo "${ECHO_T}no" >&6
22182 fi
22183
22184     rm -f messages.po
22185
22186     
22187 # Prepare PATH_SEPARATOR.
22188 # The user is always right.
22189 if test "${PATH_SEPARATOR+set}" != set; then
22190   echo "#! /bin/sh" >conf$$.sh
22191   echo  "exit 0"   >>conf$$.sh
22192   chmod +x conf$$.sh
22193   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22194     PATH_SEPARATOR=';'
22195   else
22196     PATH_SEPARATOR=:
22197   fi
22198   rm -f conf$$.sh
22199 fi
22200
22201 # Find out how to test for executable files. Don't use a zero-byte file,
22202 # as systems may use methods other than mode bits to determine executability.
22203 cat >conf$$.file <<_ASEOF
22204 #! /bin/sh
22205 exit 0
22206 _ASEOF
22207 chmod +x conf$$.file
22208 if test -x conf$$.file >/dev/null 2>&1; then
22209   ac_executable_p="test -x"
22210 else
22211   ac_executable_p="test -f"
22212 fi
22213 rm -f conf$$.file
22214
22215 # Extract the first word of "msgmerge", so it can be a program name with args.
22216 set dummy msgmerge; ac_word=$2
22217 echo "$as_me:$LINENO: checking for $ac_word" >&5
22218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22219 if test "${ac_cv_path_MSGMERGE+set}" = set; then
22220   echo $ECHO_N "(cached) $ECHO_C" >&6
22221 else
22222   case "$MSGMERGE" in
22223   [\\/]* | ?:[\\/]*)
22224     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
22225     ;;
22226   *)
22227     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
22228     for ac_dir in $PATH; do
22229       IFS="$ac_save_IFS"
22230       test -z "$ac_dir" && ac_dir=.
22231       for ac_exec_ext in '' $ac_executable_extensions; do
22232         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
22233           if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
22234             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
22235             break 2
22236           fi
22237         fi
22238       done
22239     done
22240     IFS="$ac_save_IFS"
22241   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
22242     ;;
22243 esac
22244 fi
22245 MSGMERGE="$ac_cv_path_MSGMERGE"
22246 if test "$MSGMERGE" != ":"; then
22247   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
22248 echo "${ECHO_T}$MSGMERGE" >&6
22249 else
22250   echo "$as_me:$LINENO: result: no" >&5
22251 echo "${ECHO_T}no" >&6
22252 fi
22253
22254
22255       if test "$GMSGFMT" != ":"; then
22256             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
22257        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
22258       : ;
22259     else
22260       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
22261       echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
22262 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
22263       GMSGFMT=":"
22264     fi
22265   fi
22266
22267       if test "$XGETTEXT" != ":"; then
22268             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
22269        (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
22270       : ;
22271     else
22272       echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
22273 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
22274       XGETTEXT=":"
22275     fi
22276         rm -f messages.po
22277   fi
22278
22279             ac_config_commands="$ac_config_commands default-1"
22280
22281
22282
22283       if test "X$prefix" = "XNONE"; then
22284     acl_final_prefix="$ac_default_prefix"
22285   else
22286     acl_final_prefix="$prefix"
22287   fi
22288   if test "X$exec_prefix" = "XNONE"; then
22289     acl_final_exec_prefix='${prefix}'
22290   else
22291     acl_final_exec_prefix="$exec_prefix"
22292   fi
22293   acl_save_prefix="$prefix"
22294   prefix="$acl_final_prefix"
22295   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
22296   prefix="$acl_save_prefix"
22297
22298
22299 # Check whether --with-gnu-ld or --without-gnu-ld was given.
22300 if test "${with_gnu_ld+set}" = set; then
22301   withval="$with_gnu_ld"
22302   test "$withval" = no || with_gnu_ld=yes
22303 else
22304   with_gnu_ld=no
22305 fi; 
22306 # Prepare PATH_SEPARATOR.
22307 # The user is always right.
22308 if test "${PATH_SEPARATOR+set}" != set; then
22309   echo "#! /bin/sh" >conf$$.sh
22310   echo  "exit 0"   >>conf$$.sh
22311   chmod +x conf$$.sh
22312   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22313     PATH_SEPARATOR=';'
22314   else
22315     PATH_SEPARATOR=:
22316   fi
22317   rm -f conf$$.sh
22318 fi
22319 ac_prog=ld
22320 if test "$GCC" = yes; then
22321   # Check if gcc -print-prog-name=ld gives a path.
22322   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
22323 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
22324   case $host in
22325   *-*-mingw*)
22326     # gcc leaves a trailing carriage return which upsets mingw
22327     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
22328   *)
22329     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
22330   esac
22331   case $ac_prog in
22332     # Accept absolute paths.
22333     [\\/]* | [A-Za-z]:[\\/]*)
22334       re_direlt='/[^/][^/]*/\.\./'
22335       # Canonicalize the path of ld
22336       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
22337       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
22338         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
22339       done
22340       test -z "$LD" && LD="$ac_prog"
22341       ;;
22342   "")
22343     # If it fails, then pretend we aren't using GCC.
22344     ac_prog=ld
22345     ;;
22346   *)
22347     # If it is relative, then search for the first ld in PATH.
22348     with_gnu_ld=unknown
22349     ;;
22350   esac
22351 elif test "$with_gnu_ld" = yes; then
22352   echo "$as_me:$LINENO: checking for GNU ld" >&5
22353 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
22354 else
22355   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
22356 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
22357 fi
22358 if test "${acl_cv_path_LD+set}" = set; then
22359   echo $ECHO_N "(cached) $ECHO_C" >&6
22360 else
22361   if test -z "$LD"; then
22362   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
22363   for ac_dir in $PATH; do
22364     test -z "$ac_dir" && ac_dir=.
22365     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
22366       acl_cv_path_LD="$ac_dir/$ac_prog"
22367       # Check to see if the program is GNU ld.  I'd rather use --version,
22368       # but apparently some GNU ld's only accept -v.
22369       # Break only if it was the GNU/non-GNU ld that we prefer.
22370       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
22371       *GNU* | *'with BFD'*)
22372         test "$with_gnu_ld" != no && break ;;
22373       *)
22374         test "$with_gnu_ld" != yes && break ;;
22375       esac
22376     fi
22377   done
22378   IFS="$ac_save_ifs"
22379 else
22380   acl_cv_path_LD="$LD" # Let the user override the test with a path.
22381 fi
22382 fi
22383
22384 LD="$acl_cv_path_LD"
22385 if test -n "$LD"; then
22386   echo "$as_me:$LINENO: result: $LD" >&5
22387 echo "${ECHO_T}$LD" >&6
22388 else
22389   echo "$as_me:$LINENO: result: no" >&5
22390 echo "${ECHO_T}no" >&6
22391 fi
22392 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
22393 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
22394    { (exit 1); exit 1; }; }
22395 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
22396 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
22397 if test "${acl_cv_prog_gnu_ld+set}" = set; then
22398   echo $ECHO_N "(cached) $ECHO_C" >&6
22399 else
22400   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
22401 case `$LD -v 2>&1 </dev/null` in
22402 *GNU* | *'with BFD'*)
22403   acl_cv_prog_gnu_ld=yes ;;
22404 *)
22405   acl_cv_prog_gnu_ld=no ;;
22406 esac
22407 fi
22408 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
22409 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
22410 with_gnu_ld=$acl_cv_prog_gnu_ld
22411
22412
22413
22414                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
22415 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
22416 if test "${acl_cv_rpath+set}" = set; then
22417   echo $ECHO_N "(cached) $ECHO_C" >&6
22418 else
22419   
22420     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
22421     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
22422     . ./conftest.sh
22423     rm -f ./conftest.sh
22424     acl_cv_rpath=done
22425   
22426 fi
22427 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
22428 echo "${ECHO_T}$acl_cv_rpath" >&6
22429   wl="$acl_cv_wl"
22430   libext="$acl_cv_libext"
22431   shlibext="$acl_cv_shlibext"
22432   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
22433   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
22434   hardcode_direct="$acl_cv_hardcode_direct"
22435   hardcode_minus_L="$acl_cv_hardcode_minus_L"
22436     # Check whether --enable-rpath or --disable-rpath was given.
22437 if test "${enable_rpath+set}" = set; then
22438   enableval="$enable_rpath"
22439   :
22440 else
22441   enable_rpath=yes
22442 fi; 
22443
22444
22445     
22446   
22447
22448       
22449   
22450     use_additional=yes
22451   
22452   acl_save_prefix="$prefix"
22453   prefix="$acl_final_prefix"
22454   acl_save_exec_prefix="$exec_prefix"
22455   exec_prefix="$acl_final_exec_prefix"
22456   
22457     eval additional_includedir=\"$includedir\"
22458     eval additional_libdir=\"$libdir\"
22459   
22460   exec_prefix="$acl_save_exec_prefix"
22461   prefix="$acl_save_prefix"
22462
22463   
22464 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
22465 if test "${with_libiconv_prefix+set}" = set; then
22466   withval="$with_libiconv_prefix"
22467   
22468     if test "X$withval" = "Xno"; then
22469       use_additional=no
22470     else
22471       if test "X$withval" = "X"; then
22472         
22473   acl_save_prefix="$prefix"
22474   prefix="$acl_final_prefix"
22475   acl_save_exec_prefix="$exec_prefix"
22476   exec_prefix="$acl_final_exec_prefix"
22477   
22478           eval additional_includedir=\"$includedir\"
22479           eval additional_libdir=\"$libdir\"
22480         
22481   exec_prefix="$acl_save_exec_prefix"
22482   prefix="$acl_save_prefix"
22483
22484       else
22485         additional_includedir="$withval/include"
22486         additional_libdir="$withval/lib"
22487       fi
22488     fi
22489
22490 fi; 
22491       LIBICONV=
22492   LTLIBICONV=
22493   INCICONV=
22494   rpathdirs=
22495   ltrpathdirs=
22496   names_already_handled=
22497   names_next_round='iconv '
22498   while test -n "$names_next_round"; do
22499     names_this_round="$names_next_round"
22500     names_next_round=
22501     for name in $names_this_round; do
22502       already_handled=
22503       for n in $names_already_handled; do
22504         if test "$n" = "$name"; then
22505           already_handled=yes
22506           break
22507         fi
22508       done
22509       if test -z "$already_handled"; then
22510         names_already_handled="$names_already_handled $name"
22511                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
22512         eval value=\"\$HAVE_LIB$uppername\"
22513         if test -n "$value"; then
22514           if test "$value" = yes; then
22515             eval value=\"\$LIB$uppername\"
22516             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
22517             eval value=\"\$LTLIB$uppername\"
22518             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
22519           else
22520                                     :
22521           fi
22522         else
22523                               found_dir=
22524           found_la=
22525           found_so=
22526           found_a=
22527           if test $use_additional = yes; then
22528             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
22529               found_dir="$additional_libdir"
22530               found_so="$additional_libdir/lib$name.$shlibext"
22531               if test -f "$additional_libdir/lib$name.la"; then
22532                 found_la="$additional_libdir/lib$name.la"
22533               fi
22534             else
22535               if test -f "$additional_libdir/lib$name.$libext"; then
22536                 found_dir="$additional_libdir"
22537                 found_a="$additional_libdir/lib$name.$libext"
22538                 if test -f "$additional_libdir/lib$name.la"; then
22539                   found_la="$additional_libdir/lib$name.la"
22540                 fi
22541               fi
22542             fi
22543           fi
22544           if test "X$found_dir" = "X"; then
22545             for x in $LDFLAGS $LTLIBICONV; do
22546               
22547   acl_save_prefix="$prefix"
22548   prefix="$acl_final_prefix"
22549   acl_save_exec_prefix="$exec_prefix"
22550   exec_prefix="$acl_final_exec_prefix"
22551   eval x=\"$x\"
22552   exec_prefix="$acl_save_exec_prefix"
22553   prefix="$acl_save_prefix"
22554
22555               case "$x" in
22556                 -L*)
22557                   dir=`echo "X$x" | sed -e 's/^X-L//'`
22558                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
22559                     found_dir="$dir"
22560                     found_so="$dir/lib$name.$shlibext"
22561                     if test -f "$dir/lib$name.la"; then
22562                       found_la="$dir/lib$name.la"
22563                     fi
22564                   else
22565                     if test -f "$dir/lib$name.$libext"; then
22566                       found_dir="$dir"
22567                       found_a="$dir/lib$name.$libext"
22568                       if test -f "$dir/lib$name.la"; then
22569                         found_la="$dir/lib$name.la"
22570                       fi
22571                     fi
22572                   fi
22573                   ;;
22574               esac
22575               if test "X$found_dir" != "X"; then
22576                 break
22577               fi
22578             done
22579           fi
22580           if test "X$found_dir" != "X"; then
22581                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
22582             if test "X$found_so" != "X"; then
22583                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
22584                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22585               else
22586                                                                                 haveit=
22587                 for x in $ltrpathdirs; do
22588                   if test "X$x" = "X$found_dir"; then
22589                     haveit=yes
22590                     break
22591                   fi
22592                 done
22593                 if test -z "$haveit"; then
22594                   ltrpathdirs="$ltrpathdirs $found_dir"
22595                 fi
22596                                 if test "$hardcode_direct" = yes; then
22597                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22598                 else
22599                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
22600                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22601                                                             haveit=
22602                     for x in $rpathdirs; do
22603                       if test "X$x" = "X$found_dir"; then
22604                         haveit=yes
22605                         break
22606                       fi
22607                     done
22608                     if test -z "$haveit"; then
22609                       rpathdirs="$rpathdirs $found_dir"
22610                     fi
22611                   else
22612                                                                                 haveit=
22613                     for x in $LDFLAGS $LIBICONV; do
22614                       
22615   acl_save_prefix="$prefix"
22616   prefix="$acl_final_prefix"
22617   acl_save_exec_prefix="$exec_prefix"
22618   exec_prefix="$acl_final_exec_prefix"
22619   eval x=\"$x\"
22620   exec_prefix="$acl_save_exec_prefix"
22621   prefix="$acl_save_prefix"
22622
22623                       if test "X$x" = "X-L$found_dir"; then
22624                         haveit=yes
22625                         break
22626                       fi
22627                     done
22628                     if test -z "$haveit"; then
22629                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
22630                     fi
22631                     if test "$hardcode_minus_L" != no; then
22632                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22633                     else
22634                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
22635                     fi
22636                   fi
22637                 fi
22638               fi
22639             else
22640               if test "X$found_a" != "X"; then
22641                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
22642               else
22643                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
22644               fi
22645             fi
22646                         additional_includedir=
22647             case "$found_dir" in
22648               */lib | */lib/)
22649                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
22650                 additional_includedir="$basedir/include"
22651                 ;;
22652             esac
22653             if test "X$additional_includedir" != "X"; then
22654                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
22655                 haveit=
22656                 if test "X$additional_includedir" = "X/usr/local/include"; then
22657                   if test -n "$GCC"; then
22658                     case $host_os in
22659                       linux*) haveit=yes;;
22660                     esac
22661                   fi
22662                 fi
22663                 if test -z "$haveit"; then
22664                   for x in $CPPFLAGS $INCICONV; do
22665                     
22666   acl_save_prefix="$prefix"
22667   prefix="$acl_final_prefix"
22668   acl_save_exec_prefix="$exec_prefix"
22669   exec_prefix="$acl_final_exec_prefix"
22670   eval x=\"$x\"
22671   exec_prefix="$acl_save_exec_prefix"
22672   prefix="$acl_save_prefix"
22673
22674                     if test "X$x" = "X-I$additional_includedir"; then
22675                       haveit=yes
22676                       break
22677                     fi
22678                   done
22679                   if test -z "$haveit"; then
22680                     if test -d "$additional_includedir"; then
22681                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
22682                     fi
22683                   fi
22684                 fi
22685               fi
22686             fi
22687                         if test -n "$found_la"; then
22688                                                         save_libdir="$libdir"
22689               case "$found_la" in
22690                 */* | *\\*) . "$found_la" ;;
22691                 *) . "./$found_la" ;;
22692               esac
22693               libdir="$save_libdir"
22694                             for dep in $dependency_libs; do
22695                 case "$dep" in
22696                   -L*)
22697                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
22698                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
22699                       haveit=
22700                       if test "X$additional_libdir" = "X/usr/local/lib"; then
22701                         if test -n "$GCC"; then
22702                           case $host_os in
22703                             linux*) haveit=yes;;
22704                           esac
22705                         fi
22706                       fi
22707                       if test -z "$haveit"; then
22708                         haveit=
22709                         for x in $LDFLAGS $LIBICONV; do
22710                           
22711   acl_save_prefix="$prefix"
22712   prefix="$acl_final_prefix"
22713   acl_save_exec_prefix="$exec_prefix"
22714   exec_prefix="$acl_final_exec_prefix"
22715   eval x=\"$x\"
22716   exec_prefix="$acl_save_exec_prefix"
22717   prefix="$acl_save_prefix"
22718
22719                           if test "X$x" = "X-L$additional_libdir"; then
22720                             haveit=yes
22721                             break
22722                           fi
22723                         done
22724                         if test -z "$haveit"; then
22725                           if test -d "$additional_libdir"; then
22726                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
22727                           fi
22728                         fi
22729                         haveit=
22730                         for x in $LDFLAGS $LTLIBICONV; do
22731                           
22732   acl_save_prefix="$prefix"
22733   prefix="$acl_final_prefix"
22734   acl_save_exec_prefix="$exec_prefix"
22735   exec_prefix="$acl_final_exec_prefix"
22736   eval x=\"$x\"
22737   exec_prefix="$acl_save_exec_prefix"
22738   prefix="$acl_save_prefix"
22739
22740                           if test "X$x" = "X-L$additional_libdir"; then
22741                             haveit=yes
22742                             break
22743                           fi
22744                         done
22745                         if test -z "$haveit"; then
22746                           if test -d "$additional_libdir"; then
22747                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
22748                           fi
22749                         fi
22750                       fi
22751                     fi
22752                     ;;
22753                   -R*)
22754                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
22755                     if test "$enable_rpath" != no; then
22756                                                                   haveit=
22757                       for x in $rpathdirs; do
22758                         if test "X$x" = "X$dir"; then
22759                           haveit=yes
22760                           break
22761                         fi
22762                       done
22763                       if test -z "$haveit"; then
22764                         rpathdirs="$rpathdirs $dir"
22765                       fi
22766                                                                   haveit=
22767                       for x in $ltrpathdirs; do
22768                         if test "X$x" = "X$dir"; then
22769                           haveit=yes
22770                           break
22771                         fi
22772                       done
22773                       if test -z "$haveit"; then
22774                         ltrpathdirs="$ltrpathdirs $dir"
22775                       fi
22776                     fi
22777                     ;;
22778                   -l*)
22779                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
22780                     ;;
22781                   *.la)
22782                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
22783                     ;;
22784                   *)
22785                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
22786                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
22787                     ;;
22788                 esac
22789               done
22790             fi
22791           else
22792                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
22793             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
22794           fi
22795         fi
22796       fi
22797     done
22798   done
22799   if test "X$rpathdirs" != "X"; then
22800     if test -n "$hardcode_libdir_separator"; then
22801                         alldirs=
22802       for found_dir in $rpathdirs; do
22803         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
22804       done
22805             acl_save_libdir="$libdir"
22806       libdir="$alldirs"
22807       eval flag=\"$hardcode_libdir_flag_spec\"
22808       libdir="$acl_save_libdir"
22809       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
22810     else
22811             for found_dir in $rpathdirs; do
22812         acl_save_libdir="$libdir"
22813         libdir="$found_dir"
22814         eval flag=\"$hardcode_libdir_flag_spec\"
22815         libdir="$acl_save_libdir"
22816         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
22817       done
22818     fi
22819   fi
22820   if test "X$ltrpathdirs" != "X"; then
22821             for found_dir in $ltrpathdirs; do
22822       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
22823     done
22824   fi
22825
22826
22827 cat >conftest.$ac_ext <<_ACEOF
22828 /* confdefs.h.  */
22829 _ACEOF
22830 cat confdefs.h >>conftest.$ac_ext
22831 cat >>conftest.$ac_ext <<_ACEOF
22832 /* end confdefs.h.  */
22833 #include <locale.h>
22834 int
22835 main ()
22836 {
22837  extern locale_t wc_locales[]
22838   ;
22839   return 0;
22840 }
22841 _ACEOF
22842 rm -f conftest.$ac_objext
22843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22844   (eval $ac_compile) 2>conftest.er1
22845   ac_status=$?
22846   grep -v '^ *+' conftest.er1 >conftest.err
22847   rm -f conftest.er1
22848   cat conftest.err >&5
22849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22850   (exit $ac_status); } &&
22851          { ac_try='test -z "$ac_c_werror_flag"
22852                          || 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_objext'
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   
22865                         _nls_avail=yes
22866                         
22867     
22868   
22869   
22870   
22871
22872     
22873
22874     
22875   
22876
22877                         
22878     
22879   
22880
22881     
22882   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
22883 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
22884     # Check whether --enable-nls or --disable-nls was given.
22885 if test "${enable_nls+set}" = set; then
22886   enableval="$enable_nls"
22887   USE_NLS=$enableval
22888 else
22889   USE_NLS=yes
22890 fi; 
22891   echo "$as_me:$LINENO: result: $USE_NLS" >&5
22892 echo "${ECHO_T}$USE_NLS" >&6
22893   
22894
22895
22896   
22897   LIBINTL=
22898   LTLIBINTL=
22899   POSUB=
22900
22901     if test "$USE_NLS" = "yes"; then
22902     gt_use_preinstalled_gnugettext=no
22903     
22904                         
22905                 
22906         
22907         
22908
22909         echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
22910 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
22911 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
22912   echo $ECHO_N "(cached) $ECHO_C" >&6
22913 else
22914   cat >conftest.$ac_ext <<_ACEOF
22915 /* confdefs.h.  */
22916 _ACEOF
22917 cat confdefs.h >>conftest.$ac_ext
22918 cat >>conftest.$ac_ext <<_ACEOF
22919 /* end confdefs.h.  */
22920 #include <libintl.h>
22921 extern int _nl_msg_cat_cntr;
22922 extern int *_nl_domain_bindings;
22923 int
22924 main ()
22925 {
22926 bindtextdomain ("", "");
22927 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
22928   ;
22929   return 0;
22930 }
22931 _ACEOF
22932 rm -f conftest.$ac_objext conftest$ac_exeext
22933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22934   (eval $ac_link) 2>conftest.er1
22935   ac_status=$?
22936   grep -v '^ *+' conftest.er1 >conftest.err
22937   rm -f conftest.er1
22938   cat conftest.err >&5
22939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22940   (exit $ac_status); } &&
22941          { ac_try='test -z "$ac_c_werror_flag"
22942                          || test ! -s conftest.err'
22943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22944   (eval $ac_try) 2>&5
22945   ac_status=$?
22946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22947   (exit $ac_status); }; } &&
22948          { ac_try='test -s conftest$ac_exeext'
22949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22950   (eval $ac_try) 2>&5
22951   ac_status=$?
22952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22953   (exit $ac_status); }; }; then
22954   gt_cv_func_gnugettext2_libc=yes
22955 else
22956   echo "$as_me: failed program was:" >&5
22957 sed 's/^/| /' conftest.$ac_ext >&5
22958
22959 gt_cv_func_gnugettext2_libc=no
22960 fi
22961 rm -f conftest.err conftest.$ac_objext \
22962       conftest$ac_exeext conftest.$ac_ext
22963 fi
22964 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
22965 echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
22966
22967         if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
22968                     
22969             
22970     
22971       
22972
22973           am_save_CPPFLAGS="$CPPFLAGS"
22974   
22975   for element in $INCICONV; do
22976     haveit=
22977     for x in $CPPFLAGS; do
22978       
22979   acl_save_prefix="$prefix"
22980   prefix="$acl_final_prefix"
22981   acl_save_exec_prefix="$exec_prefix"
22982   exec_prefix="$acl_final_exec_prefix"
22983   eval x=\"$x\"
22984   exec_prefix="$acl_save_exec_prefix"
22985   prefix="$acl_save_prefix"
22986
22987       if test "X$x" = "X$element"; then
22988         haveit=yes
22989         break
22990       fi
22991     done
22992     if test -z "$haveit"; then
22993       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22994     fi
22995   done
22996
22997
22998   echo "$as_me:$LINENO: checking for iconv" >&5
22999 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
23000 if test "${am_cv_func_iconv+set}" = set; then
23001   echo $ECHO_N "(cached) $ECHO_C" >&6
23002 else
23003   
23004     am_cv_func_iconv="no, consider installing GNU libiconv"
23005     am_cv_lib_iconv=no
23006     cat >conftest.$ac_ext <<_ACEOF
23007 /* confdefs.h.  */
23008 _ACEOF
23009 cat confdefs.h >>conftest.$ac_ext
23010 cat >>conftest.$ac_ext <<_ACEOF
23011 /* end confdefs.h.  */
23012 #include <stdlib.h>
23013 #include <iconv.h>
23014 int
23015 main ()
23016 {
23017 iconv_t cd = iconv_open("","");
23018        iconv(cd,NULL,NULL,NULL,NULL);
23019        iconv_close(cd);
23020   ;
23021   return 0;
23022 }
23023 _ACEOF
23024 rm -f conftest.$ac_objext conftest$ac_exeext
23025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23026   (eval $ac_link) 2>conftest.er1
23027   ac_status=$?
23028   grep -v '^ *+' conftest.er1 >conftest.err
23029   rm -f conftest.er1
23030   cat conftest.err >&5
23031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23032   (exit $ac_status); } &&
23033          { ac_try='test -z "$ac_c_werror_flag"
23034                          || test ! -s conftest.err'
23035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23036   (eval $ac_try) 2>&5
23037   ac_status=$?
23038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23039   (exit $ac_status); }; } &&
23040          { ac_try='test -s conftest$ac_exeext'
23041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23042   (eval $ac_try) 2>&5
23043   ac_status=$?
23044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23045   (exit $ac_status); }; }; then
23046   am_cv_func_iconv=yes
23047 else
23048   echo "$as_me: failed program was:" >&5
23049 sed 's/^/| /' conftest.$ac_ext >&5
23050
23051 fi
23052 rm -f conftest.err conftest.$ac_objext \
23053       conftest$ac_exeext conftest.$ac_ext
23054     if test "$am_cv_func_iconv" != yes; then
23055       am_save_LIBS="$LIBS"
23056       LIBS="$LIBS $LIBICONV"
23057       cat >conftest.$ac_ext <<_ACEOF
23058 /* confdefs.h.  */
23059 _ACEOF
23060 cat confdefs.h >>conftest.$ac_ext
23061 cat >>conftest.$ac_ext <<_ACEOF
23062 /* end confdefs.h.  */
23063 #include <stdlib.h>
23064 #include <iconv.h>
23065 int
23066 main ()
23067 {
23068 iconv_t cd = iconv_open("","");
23069          iconv(cd,NULL,NULL,NULL,NULL);
23070          iconv_close(cd);
23071   ;
23072   return 0;
23073 }
23074 _ACEOF
23075 rm -f conftest.$ac_objext conftest$ac_exeext
23076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23077   (eval $ac_link) 2>conftest.er1
23078   ac_status=$?
23079   grep -v '^ *+' conftest.er1 >conftest.err
23080   rm -f conftest.er1
23081   cat conftest.err >&5
23082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23083   (exit $ac_status); } &&
23084          { ac_try='test -z "$ac_c_werror_flag"
23085                          || test ! -s conftest.err'
23086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23087   (eval $ac_try) 2>&5
23088   ac_status=$?
23089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23090   (exit $ac_status); }; } &&
23091          { ac_try='test -s conftest$ac_exeext'
23092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23093   (eval $ac_try) 2>&5
23094   ac_status=$?
23095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23096   (exit $ac_status); }; }; then
23097   am_cv_lib_iconv=yes
23098         am_cv_func_iconv=yes
23099 else
23100   echo "$as_me: failed program was:" >&5
23101 sed 's/^/| /' conftest.$ac_ext >&5
23102
23103 fi
23104 rm -f conftest.err conftest.$ac_objext \
23105       conftest$ac_exeext conftest.$ac_ext
23106       LIBS="$am_save_LIBS"
23107     fi
23108   
23109 fi
23110 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
23111 echo "${ECHO_T}$am_cv_func_iconv" >&6
23112   if test "$am_cv_func_iconv" = yes; then
23113     
23114 cat >>confdefs.h <<\_ACEOF
23115 @%:@define HAVE_ICONV 1
23116 _ACEOF
23117
23118   fi
23119   if test "$am_cv_lib_iconv" = yes; then
23120     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
23121 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
23122     echo "$as_me:$LINENO: result: $LIBICONV" >&5
23123 echo "${ECHO_T}$LIBICONV" >&6
23124   else
23125             CPPFLAGS="$am_save_CPPFLAGS"
23126     LIBICONV=
23127     LTLIBICONV=
23128   fi
23129   
23130   
23131
23132           
23133                                                   
23134   
23135     use_additional=yes
23136   
23137   acl_save_prefix="$prefix"
23138   prefix="$acl_final_prefix"
23139   acl_save_exec_prefix="$exec_prefix"
23140   exec_prefix="$acl_final_exec_prefix"
23141   
23142     eval additional_includedir=\"$includedir\"
23143     eval additional_libdir=\"$libdir\"
23144   
23145   exec_prefix="$acl_save_exec_prefix"
23146   prefix="$acl_save_prefix"
23147
23148   
23149 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
23150 if test "${with_libintl_prefix+set}" = set; then
23151   withval="$with_libintl_prefix"
23152   
23153     if test "X$withval" = "Xno"; then
23154       use_additional=no
23155     else
23156       if test "X$withval" = "X"; then
23157         
23158   acl_save_prefix="$prefix"
23159   prefix="$acl_final_prefix"
23160   acl_save_exec_prefix="$exec_prefix"
23161   exec_prefix="$acl_final_exec_prefix"
23162   
23163           eval additional_includedir=\"$includedir\"
23164           eval additional_libdir=\"$libdir\"
23165         
23166   exec_prefix="$acl_save_exec_prefix"
23167   prefix="$acl_save_prefix"
23168
23169       else
23170         additional_includedir="$withval/include"
23171         additional_libdir="$withval/lib"
23172       fi
23173     fi
23174
23175 fi; 
23176       LIBINTL=
23177   LTLIBINTL=
23178   INCINTL=
23179   rpathdirs=
23180   ltrpathdirs=
23181   names_already_handled=
23182   names_next_round='intl '
23183   while test -n "$names_next_round"; do
23184     names_this_round="$names_next_round"
23185     names_next_round=
23186     for name in $names_this_round; do
23187       already_handled=
23188       for n in $names_already_handled; do
23189         if test "$n" = "$name"; then
23190           already_handled=yes
23191           break
23192         fi
23193       done
23194       if test -z "$already_handled"; then
23195         names_already_handled="$names_already_handled $name"
23196                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23197         eval value=\"\$HAVE_LIB$uppername\"
23198         if test -n "$value"; then
23199           if test "$value" = yes; then
23200             eval value=\"\$LIB$uppername\"
23201             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23202             eval value=\"\$LTLIB$uppername\"
23203             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23204           else
23205                                     :
23206           fi
23207         else
23208                               found_dir=
23209           found_la=
23210           found_so=
23211           found_a=
23212           if test $use_additional = yes; then
23213             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23214               found_dir="$additional_libdir"
23215               found_so="$additional_libdir/lib$name.$shlibext"
23216               if test -f "$additional_libdir/lib$name.la"; then
23217                 found_la="$additional_libdir/lib$name.la"
23218               fi
23219             else
23220               if test -f "$additional_libdir/lib$name.$libext"; then
23221                 found_dir="$additional_libdir"
23222                 found_a="$additional_libdir/lib$name.$libext"
23223                 if test -f "$additional_libdir/lib$name.la"; then
23224                   found_la="$additional_libdir/lib$name.la"
23225                 fi
23226               fi
23227             fi
23228           fi
23229           if test "X$found_dir" = "X"; then
23230             for x in $LDFLAGS $LTLIBINTL; do
23231               
23232   acl_save_prefix="$prefix"
23233   prefix="$acl_final_prefix"
23234   acl_save_exec_prefix="$exec_prefix"
23235   exec_prefix="$acl_final_exec_prefix"
23236   eval x=\"$x\"
23237   exec_prefix="$acl_save_exec_prefix"
23238   prefix="$acl_save_prefix"
23239
23240               case "$x" in
23241                 -L*)
23242                   dir=`echo "X$x" | sed -e 's/^X-L//'`
23243                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23244                     found_dir="$dir"
23245                     found_so="$dir/lib$name.$shlibext"
23246                     if test -f "$dir/lib$name.la"; then
23247                       found_la="$dir/lib$name.la"
23248                     fi
23249                   else
23250                     if test -f "$dir/lib$name.$libext"; then
23251                       found_dir="$dir"
23252                       found_a="$dir/lib$name.$libext"
23253                       if test -f "$dir/lib$name.la"; then
23254                         found_la="$dir/lib$name.la"
23255                       fi
23256                     fi
23257                   fi
23258                   ;;
23259               esac
23260               if test "X$found_dir" != "X"; then
23261                 break
23262               fi
23263             done
23264           fi
23265           if test "X$found_dir" != "X"; then
23266                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
23267             if test "X$found_so" != "X"; then
23268                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
23269                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23270               else
23271                                                                                 haveit=
23272                 for x in $ltrpathdirs; do
23273                   if test "X$x" = "X$found_dir"; then
23274                     haveit=yes
23275                     break
23276                   fi
23277                 done
23278                 if test -z "$haveit"; then
23279                   ltrpathdirs="$ltrpathdirs $found_dir"
23280                 fi
23281                                 if test "$hardcode_direct" = yes; then
23282                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23283                 else
23284                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
23285                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23286                                                             haveit=
23287                     for x in $rpathdirs; do
23288                       if test "X$x" = "X$found_dir"; then
23289                         haveit=yes
23290                         break
23291                       fi
23292                     done
23293                     if test -z "$haveit"; then
23294                       rpathdirs="$rpathdirs $found_dir"
23295                     fi
23296                   else
23297                                                                                 haveit=
23298                     for x in $LDFLAGS $LIBINTL; do
23299                       
23300   acl_save_prefix="$prefix"
23301   prefix="$acl_final_prefix"
23302   acl_save_exec_prefix="$exec_prefix"
23303   exec_prefix="$acl_final_exec_prefix"
23304   eval x=\"$x\"
23305   exec_prefix="$acl_save_exec_prefix"
23306   prefix="$acl_save_prefix"
23307
23308                       if test "X$x" = "X-L$found_dir"; then
23309                         haveit=yes
23310                         break
23311                       fi
23312                     done
23313                     if test -z "$haveit"; then
23314                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
23315                     fi
23316                     if test "$hardcode_minus_L" != no; then
23317                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23318                     else
23319                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23320                     fi
23321                   fi
23322                 fi
23323               fi
23324             else
23325               if test "X$found_a" != "X"; then
23326                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
23327               else
23328                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
23329               fi
23330             fi
23331                         additional_includedir=
23332             case "$found_dir" in
23333               */lib | */lib/)
23334                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
23335                 additional_includedir="$basedir/include"
23336                 ;;
23337             esac
23338             if test "X$additional_includedir" != "X"; then
23339                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
23340                 haveit=
23341                 if test "X$additional_includedir" = "X/usr/local/include"; then
23342                   if test -n "$GCC"; then
23343                     case $host_os in
23344                       linux*) haveit=yes;;
23345                     esac
23346                   fi
23347                 fi
23348                 if test -z "$haveit"; then
23349                   for x in $CPPFLAGS $INCINTL; do
23350                     
23351   acl_save_prefix="$prefix"
23352   prefix="$acl_final_prefix"
23353   acl_save_exec_prefix="$exec_prefix"
23354   exec_prefix="$acl_final_exec_prefix"
23355   eval x=\"$x\"
23356   exec_prefix="$acl_save_exec_prefix"
23357   prefix="$acl_save_prefix"
23358
23359                     if test "X$x" = "X-I$additional_includedir"; then
23360                       haveit=yes
23361                       break
23362                     fi
23363                   done
23364                   if test -z "$haveit"; then
23365                     if test -d "$additional_includedir"; then
23366                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
23367                     fi
23368                   fi
23369                 fi
23370               fi
23371             fi
23372                         if test -n "$found_la"; then
23373                                                         save_libdir="$libdir"
23374               case "$found_la" in
23375                 */* | *\\*) . "$found_la" ;;
23376                 *) . "./$found_la" ;;
23377               esac
23378               libdir="$save_libdir"
23379                             for dep in $dependency_libs; do
23380                 case "$dep" in
23381                   -L*)
23382                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23383                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
23384                       haveit=
23385                       if test "X$additional_libdir" = "X/usr/local/lib"; then
23386                         if test -n "$GCC"; then
23387                           case $host_os in
23388                             linux*) haveit=yes;;
23389                           esac
23390                         fi
23391                       fi
23392                       if test -z "$haveit"; then
23393                         haveit=
23394                         for x in $LDFLAGS $LIBINTL; do
23395                           
23396   acl_save_prefix="$prefix"
23397   prefix="$acl_final_prefix"
23398   acl_save_exec_prefix="$exec_prefix"
23399   exec_prefix="$acl_final_exec_prefix"
23400   eval x=\"$x\"
23401   exec_prefix="$acl_save_exec_prefix"
23402   prefix="$acl_save_prefix"
23403
23404                           if test "X$x" = "X-L$additional_libdir"; then
23405                             haveit=yes
23406                             break
23407                           fi
23408                         done
23409                         if test -z "$haveit"; then
23410                           if test -d "$additional_libdir"; then
23411                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
23412                           fi
23413                         fi
23414                         haveit=
23415                         for x in $LDFLAGS $LTLIBINTL; do
23416                           
23417   acl_save_prefix="$prefix"
23418   prefix="$acl_final_prefix"
23419   acl_save_exec_prefix="$exec_prefix"
23420   exec_prefix="$acl_final_exec_prefix"
23421   eval x=\"$x\"
23422   exec_prefix="$acl_save_exec_prefix"
23423   prefix="$acl_save_prefix"
23424
23425                           if test "X$x" = "X-L$additional_libdir"; then
23426                             haveit=yes
23427                             break
23428                           fi
23429                         done
23430                         if test -z "$haveit"; then
23431                           if test -d "$additional_libdir"; then
23432                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
23433                           fi
23434                         fi
23435                       fi
23436                     fi
23437                     ;;
23438                   -R*)
23439                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
23440                     if test "$enable_rpath" != no; then
23441                                                                   haveit=
23442                       for x in $rpathdirs; do
23443                         if test "X$x" = "X$dir"; then
23444                           haveit=yes
23445                           break
23446                         fi
23447                       done
23448                       if test -z "$haveit"; then
23449                         rpathdirs="$rpathdirs $dir"
23450                       fi
23451                                                                   haveit=
23452                       for x in $ltrpathdirs; do
23453                         if test "X$x" = "X$dir"; then
23454                           haveit=yes
23455                           break
23456                         fi
23457                       done
23458                       if test -z "$haveit"; then
23459                         ltrpathdirs="$ltrpathdirs $dir"
23460                       fi
23461                     fi
23462                     ;;
23463                   -l*)
23464                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23465                     ;;
23466                   *.la)
23467                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23468                     ;;
23469                   *)
23470                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
23471                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
23472                     ;;
23473                 esac
23474               done
23475             fi
23476           else
23477                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23478             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
23479           fi
23480         fi
23481       fi
23482     done
23483   done
23484   if test "X$rpathdirs" != "X"; then
23485     if test -n "$hardcode_libdir_separator"; then
23486                         alldirs=
23487       for found_dir in $rpathdirs; do
23488         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23489       done
23490             acl_save_libdir="$libdir"
23491       libdir="$alldirs"
23492       eval flag=\"$hardcode_libdir_flag_spec\"
23493       libdir="$acl_save_libdir"
23494       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23495     else
23496             for found_dir in $rpathdirs; do
23497         acl_save_libdir="$libdir"
23498         libdir="$found_dir"
23499         eval flag=\"$hardcode_libdir_flag_spec\"
23500         libdir="$acl_save_libdir"
23501         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23502       done
23503     fi
23504   fi
23505   if test "X$ltrpathdirs" != "X"; then
23506             for found_dir in $ltrpathdirs; do
23507       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
23508     done
23509   fi
23510
23511           echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
23512 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
23513 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
23514   echo $ECHO_N "(cached) $ECHO_C" >&6
23515 else
23516   gt_save_CPPFLAGS="$CPPFLAGS"
23517             CPPFLAGS="$CPPFLAGS $INCINTL"
23518             gt_save_LIBS="$LIBS"
23519             LIBS="$LIBS $LIBINTL"
23520                         cat >conftest.$ac_ext <<_ACEOF
23521 /* confdefs.h.  */
23522 _ACEOF
23523 cat confdefs.h >>conftest.$ac_ext
23524 cat >>conftest.$ac_ext <<_ACEOF
23525 /* end confdefs.h.  */
23526 #include <libintl.h>
23527 extern int _nl_msg_cat_cntr;
23528 extern
23529 #ifdef __cplusplus
23530 "C"
23531 #endif
23532 const char *_nl_expand_alias ();
23533 int
23534 main ()
23535 {
23536 bindtextdomain ("", "");
23537 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
23538   ;
23539   return 0;
23540 }
23541 _ACEOF
23542 rm -f conftest.$ac_objext conftest$ac_exeext
23543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23544   (eval $ac_link) 2>conftest.er1
23545   ac_status=$?
23546   grep -v '^ *+' conftest.er1 >conftest.err
23547   rm -f conftest.er1
23548   cat conftest.err >&5
23549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23550   (exit $ac_status); } &&
23551          { ac_try='test -z "$ac_c_werror_flag"
23552                          || test ! -s conftest.err'
23553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23554   (eval $ac_try) 2>&5
23555   ac_status=$?
23556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23557   (exit $ac_status); }; } &&
23558          { ac_try='test -s conftest$ac_exeext'
23559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23560   (eval $ac_try) 2>&5
23561   ac_status=$?
23562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23563   (exit $ac_status); }; }; then
23564   gt_cv_func_gnugettext2_libintl=yes
23565 else
23566   echo "$as_me: failed program was:" >&5
23567 sed 's/^/| /' conftest.$ac_ext >&5
23568
23569 gt_cv_func_gnugettext2_libintl=no
23570 fi
23571 rm -f conftest.err conftest.$ac_objext \
23572       conftest$ac_exeext conftest.$ac_ext
23573                         if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
23574               LIBS="$LIBS $LIBICONV"
23575               cat >conftest.$ac_ext <<_ACEOF
23576 /* confdefs.h.  */
23577 _ACEOF
23578 cat confdefs.h >>conftest.$ac_ext
23579 cat >>conftest.$ac_ext <<_ACEOF
23580 /* end confdefs.h.  */
23581 #include <libintl.h>
23582 extern int _nl_msg_cat_cntr;
23583 extern
23584 #ifdef __cplusplus
23585 "C"
23586 #endif
23587 const char *_nl_expand_alias ();
23588 int
23589 main ()
23590 {
23591 bindtextdomain ("", "");
23592 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
23593   ;
23594   return 0;
23595 }
23596 _ACEOF
23597 rm -f conftest.$ac_objext conftest$ac_exeext
23598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23599   (eval $ac_link) 2>conftest.er1
23600   ac_status=$?
23601   grep -v '^ *+' conftest.er1 >conftest.err
23602   rm -f conftest.er1
23603   cat conftest.err >&5
23604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23605   (exit $ac_status); } &&
23606          { ac_try='test -z "$ac_c_werror_flag"
23607                          || test ! -s conftest.err'
23608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23609   (eval $ac_try) 2>&5
23610   ac_status=$?
23611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23612   (exit $ac_status); }; } &&
23613          { ac_try='test -s conftest$ac_exeext'
23614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23615   (eval $ac_try) 2>&5
23616   ac_status=$?
23617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23618   (exit $ac_status); }; }; then
23619   LIBINTL="$LIBINTL $LIBICONV"
23620                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
23621                 gt_cv_func_gnugettext2_libintl=yes
23622                
23623 else
23624   echo "$as_me: failed program was:" >&5
23625 sed 's/^/| /' conftest.$ac_ext >&5
23626
23627 fi
23628 rm -f conftest.err conftest.$ac_objext \
23629       conftest$ac_exeext conftest.$ac_ext
23630             fi
23631             CPPFLAGS="$gt_save_CPPFLAGS"
23632             LIBS="$gt_save_LIBS"
23633 fi
23634 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
23635 echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
23636         fi
23637
23638                                         if test "$gt_cv_func_gnugettext2_libc" = "yes" \
23639            || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
23640                 && test "$PACKAGE" != gettext-runtime \
23641                 && test "$PACKAGE" != gettext-tools; }; then
23642           gt_use_preinstalled_gnugettext=yes
23643         else
23644                     LIBINTL=
23645           LTLIBINTL=
23646           INCINTL=
23647         fi
23648
23649     
23650
23651     if test "$gt_use_preinstalled_gnugettext" = "yes" \
23652        || test "$nls_cv_use_gnu_gettext" = "yes"; then
23653       
23654 cat >>confdefs.h <<\_ACEOF
23655 @%:@define ENABLE_NLS 1
23656 _ACEOF
23657
23658     else
23659       USE_NLS=no
23660     fi
23661   fi
23662
23663   echo "$as_me:$LINENO: checking whether to use NLS" >&5
23664 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
23665   echo "$as_me:$LINENO: result: $USE_NLS" >&5
23666 echo "${ECHO_T}$USE_NLS" >&6
23667   if test "$USE_NLS" = "yes"; then
23668     echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
23669 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
23670     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23671       if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
23672         gt_source="external libintl"
23673       else
23674         gt_source="libc"
23675       fi
23676     else
23677       gt_source="included intl directory"
23678     fi
23679     echo "$as_me:$LINENO: result: $gt_source" >&5
23680 echo "${ECHO_T}$gt_source" >&6
23681   fi
23682
23683   if test "$USE_NLS" = "yes"; then
23684
23685     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23686       if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
23687         echo "$as_me:$LINENO: checking how to link with libintl" >&5
23688 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
23689         echo "$as_me:$LINENO: result: $LIBINTL" >&5
23690 echo "${ECHO_T}$LIBINTL" >&6
23691         
23692   for element in $INCINTL; do
23693     haveit=
23694     for x in $CPPFLAGS; do
23695       
23696   acl_save_prefix="$prefix"
23697   prefix="$acl_final_prefix"
23698   acl_save_exec_prefix="$exec_prefix"
23699   exec_prefix="$acl_final_exec_prefix"
23700   eval x=\"$x\"
23701   exec_prefix="$acl_save_exec_prefix"
23702   prefix="$acl_save_prefix"
23703
23704       if test "X$x" = "X$element"; then
23705         haveit=yes
23706         break
23707       fi
23708     done
23709     if test -z "$haveit"; then
23710       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23711     fi
23712   done
23713
23714       fi
23715
23716             
23717 cat >>confdefs.h <<\_ACEOF
23718 @%:@define HAVE_GETTEXT 1
23719 _ACEOF
23720
23721       
23722 cat >>confdefs.h <<\_ACEOF
23723 @%:@define HAVE_DCGETTEXT 1
23724 _ACEOF
23725
23726     fi
23727
23728         POSUB=po
23729   fi
23730
23731   
23732
23733     INTLLIBS="$LIBINTL"
23734   
23735
23736     
23737   
23738   
23739
23740                         
23741 else
23742   echo "$as_me: failed program was:" >&5
23743 sed 's/^/| /' conftest.$ac_ext >&5
23744
23745 _nls_avail=no
23746 fi
23747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23748
23749
23750
23751
23752                         
23753
23754
23755
23756
23757
23758
23759
23760
23761
23762 # Check whether --with-rundir or --without-rundir was given.
23763 if test "${with_rundir+set}" = set; then
23764   withval="$with_rundir"
23765    rundir=$withval 
23766 else
23767    rundir=/usr/local/citadel  
23768 fi; 
23769
23770 cat >>confdefs.h <<_ACEOF
23771 @%:@define RUNDIR "$rundir"
23772 _ACEOF
23773
23774
23775
23776
23777 # Check whether --with-staticdir or --without-staticdir was given.
23778 if test "${with_staticdir+set}" = set; then
23779   withval="$with_staticdir"
23780    staticdir=$withval 
23781 else
23782    staticdir=$prefix  
23783 fi; 
23784
23785
23786
23787 # Check whether --with-staticrundir or --without-staticrundir was given.
23788 if test "${with_staticrundir+set}" = set; then
23789   withval="$with_staticrundir"
23790    staticrundir=$withval 
23791 else
23792    staticrundir=$staticdir  
23793 fi; 
23794
23795
23796 cat >>confdefs.h <<_ACEOF
23797 @%:@define DATADIR "$staticrundir"
23798 _ACEOF
23799
23800
23801
23802
23803 # Check whether --with-editordir or --without-editordir was given.
23804 if test "${with_editordir+set}" = set; then
23805   withval="$with_editordir"
23806    editordir=$withval 
23807 else
23808    editordir=$staticrundir  
23809 fi; 
23810
23811
23812 cat >>confdefs.h <<_ACEOF
23813 @%:@define EDITORDIR "$editordir"
23814 _ACEOF
23815
23816
23817
23818
23819                               ac_config_files="$ac_config_files Makefile src/Makefile po/Makefile.in"
23820 cat >confcache <<\_ACEOF
23821 # This file is a shell script that caches the results of configure
23822 # tests run on this system so they can be shared between configure
23823 # scripts and configure runs, see configure's option --config-cache.
23824 # It is not useful on other systems.  If it contains results you don't
23825 # want to keep, you may remove or edit it.
23826 #
23827 # config.status only pays attention to the cache file if you give it
23828 # the --recheck option to rerun configure.
23829 #
23830 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23831 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23832 # following values.
23833
23834 _ACEOF
23835
23836 # The following way of writing the cache mishandles newlines in values,
23837 # but we know of no workaround that is simple, portable, and efficient.
23838 # So, don't put newlines in cache variables' values.
23839 # Ultrix sh set writes to stderr and can't be redirected directly,
23840 # and sets the high bit in the cache file unless we assign to the vars.
23841 {
23842   (set) 2>&1 |
23843     case `(ac_space=' '; set | grep ac_space) 2>&1` in
23844     *ac_space=\ *)
23845       # `set' does not quote correctly, so add quotes (double-quote
23846       # substitution turns \\\\ into \\, and sed turns \\ into \).
23847       sed -n \
23848         "s/'/'\\\\''/g;
23849           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23850       ;;
23851     *)
23852       # `set' quotes correctly as required by POSIX, so do not add quotes.
23853       sed -n \
23854         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23855       ;;
23856     esac;
23857 } |
23858   sed '
23859      t clear
23860      : clear
23861      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23862      t end
23863      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23864      : end' >>confcache
23865 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23866   if test -w $cache_file; then
23867     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23868     cat confcache >$cache_file
23869   else
23870     echo "not updating unwritable cache $cache_file"
23871   fi
23872 fi
23873 rm -f confcache
23874
23875 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23876 # Let make expand exec_prefix.
23877 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23878
23879 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23880 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23881 # trailing colons and then remove the whole line if VPATH becomes empty
23882 # (actually we leave an empty line to preserve line numbers).
23883 if test "x$srcdir" = x.; then
23884   ac_vpsub='/^[  ]*VPATH[        ]*=/{
23885 s/:*\$(srcdir):*/:/;
23886 s/:*\${srcdir}:*/:/;
23887 s/:*@srcdir@:*/:/;
23888 s/^\([^=]*=[     ]*\):*/\1/;
23889 s/:*$//;
23890 s/^[^=]*=[       ]*$//;
23891 }'
23892 fi
23893
23894 DEFS=-DHAVE_CONFIG_H
23895
23896 ac_libobjs=
23897 ac_ltlibobjs=
23898 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
23899   # 1. Remove the extension, and $U if already installed.
23900   ac_i=`echo "$ac_i" |
23901          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23902   # 2. Add them.
23903   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23904   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23905 done
23906 LIB@&t@OBJS=$ac_libobjs
23907
23908 LTLIBOBJS=$ac_ltlibobjs
23909
23910
23911 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23912   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23913 Usually this means the macro was only invoked conditionally." >&5
23914 echo "$as_me: error: conditional \"AMDEP\" was never defined.
23915 Usually this means the macro was only invoked conditionally." >&2;}
23916    { (exit 1); exit 1; }; }
23917 fi
23918 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23919   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23920 Usually this means the macro was only invoked conditionally." >&5
23921 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23922 Usually this means the macro was only invoked conditionally." >&2;}
23923    { (exit 1); exit 1; }; }
23924 fi
23925 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23926   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23927 Usually this means the macro was only invoked conditionally." >&5
23928 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23929 Usually this means the macro was only invoked conditionally." >&2;}
23930    { (exit 1); exit 1; }; }
23931 fi
23932 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23933   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23934 Usually this means the macro was only invoked conditionally." >&5
23935 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23936 Usually this means the macro was only invoked conditionally." >&2;}
23937    { (exit 1); exit 1; }; }
23938 fi
23939
23940        mv -f po/POTFILES po/POTFILES.tmp
23941         sed -e '/[[]encoding.*]/d' -e 's/[[].*] *//' < po/POTFILES.tmp > po/POTFILES
23942         rm -f po/POTFILES.tmp
23943            
23944
23945 : ${CONFIG_STATUS=./config.status}
23946 ac_clean_files_save=$ac_clean_files
23947 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23948 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23949 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23950 cat >$CONFIG_STATUS <<_ACEOF
23951 #! $SHELL
23952 # Generated by $as_me.
23953 # Run this file to recreate the current configuration.
23954 # Compiler output produced by configure, useful for debugging
23955 # configure, is in config.log if it exists.
23956
23957 debug=false
23958 ac_cs_recheck=false
23959 ac_cs_silent=false
23960 SHELL=\${CONFIG_SHELL-$SHELL}
23961 _ACEOF
23962
23963 cat >>$CONFIG_STATUS <<\_ACEOF
23964 ## --------------------- ##
23965 ## M4sh Initialization.  ##
23966 ## --------------------- ##
23967
23968 # Be Bourne compatible
23969 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23970   emulate sh
23971   NULLCMD=:
23972   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23973   # is contrary to our usage.  Disable this feature.
23974   alias -g '${1+"$@"}'='"$@"'
23975 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23976   set -o posix
23977 fi
23978 DUALCASE=1; export DUALCASE # for MKS sh
23979
23980 # Support unset when possible.
23981 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23982   as_unset=unset
23983 else
23984   as_unset=false
23985 fi
23986
23987
23988 # Work around bugs in pre-3.0 UWIN ksh.
23989 $as_unset ENV MAIL MAILPATH
23990 PS1='$ '
23991 PS2='> '
23992 PS4='+ '
23993
23994 # NLS nuisances.
23995 for as_var in \
23996   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23997   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23998   LC_TELEPHONE LC_TIME
23999 do
24000   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24001     eval $as_var=C; export $as_var
24002   else
24003     $as_unset $as_var
24004   fi
24005 done
24006
24007 # Required to use basename.
24008 if expr a : '\(a\)' >/dev/null 2>&1; then
24009   as_expr=expr
24010 else
24011   as_expr=false
24012 fi
24013
24014 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
24015   as_basename=basename
24016 else
24017   as_basename=false
24018 fi
24019
24020
24021 # Name of the executable.
24022 as_me=`$as_basename "$0" ||
24023 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24024          X"$0" : 'X\(//\)$' \| \
24025          X"$0" : 'X\(/\)$' \| \
24026          .     : '\(.\)' 2>/dev/null ||
24027 echo X/"$0" |
24028     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24029           /^X\/\(\/\/\)$/{ s//\1/; q; }
24030           /^X\/\(\/\).*/{ s//\1/; q; }
24031           s/.*/./; q'`
24032
24033
24034 # PATH needs CR, and LINENO needs CR and PATH.
24035 # Avoid depending upon Character Ranges.
24036 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24037 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24038 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24039 as_cr_digits='0123456789'
24040 as_cr_alnum=$as_cr_Letters$as_cr_digits
24041
24042 # The user is always right.
24043 if test "${PATH_SEPARATOR+set}" != set; then
24044   echo "#! /bin/sh" >conf$$.sh
24045   echo  "exit 0"   >>conf$$.sh
24046   chmod +x conf$$.sh
24047   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24048     PATH_SEPARATOR=';'
24049   else
24050     PATH_SEPARATOR=:
24051   fi
24052   rm -f conf$$.sh
24053 fi
24054
24055
24056   as_lineno_1=$LINENO
24057   as_lineno_2=$LINENO
24058   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24059   test "x$as_lineno_1" != "x$as_lineno_2" &&
24060   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
24061   # Find who we are.  Look in the path if we contain no path at all
24062   # relative or not.
24063   case $0 in
24064     *[\\/]* ) as_myself=$0 ;;
24065     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24066 for as_dir in $PATH
24067 do
24068   IFS=$as_save_IFS
24069   test -z "$as_dir" && as_dir=.
24070   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24071 done
24072
24073        ;;
24074   esac
24075   # We did not find ourselves, most probably we were run as `sh COMMAND'
24076   # in which case we are not to be found in the path.
24077   if test "x$as_myself" = x; then
24078     as_myself=$0
24079   fi
24080   if test ! -f "$as_myself"; then
24081     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24082 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24083    { (exit 1); exit 1; }; }
24084   fi
24085   case $CONFIG_SHELL in
24086   '')
24087     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24088 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24089 do
24090   IFS=$as_save_IFS
24091   test -z "$as_dir" && as_dir=.
24092   for as_base in sh bash ksh sh5; do
24093          case $as_dir in
24094          /*)
24095            if ("$as_dir/$as_base" -c '
24096   as_lineno_1=$LINENO
24097   as_lineno_2=$LINENO
24098   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24099   test "x$as_lineno_1" != "x$as_lineno_2" &&
24100   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
24101              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24102              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24103              CONFIG_SHELL=$as_dir/$as_base
24104              export CONFIG_SHELL
24105              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24106            fi;;
24107          esac
24108        done
24109 done
24110 ;;
24111   esac
24112
24113   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24114   # uniformly replaced by the line number.  The first 'sed' inserts a
24115   # line-number line before each line; the second 'sed' does the real
24116   # work.  The second script uses 'N' to pair each line-number line
24117   # with the numbered line, and appends trailing '-' during
24118   # substitution so that $LINENO is not a special case at line end.
24119   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24120   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
24121   sed '=' <$as_myself |
24122     sed '
24123       N
24124       s,$,-,
24125       : loop
24126       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24127       t loop
24128       s,-$,,
24129       s,^['$as_cr_digits']*\n,,
24130     ' >$as_me.lineno &&
24131   chmod +x $as_me.lineno ||
24132     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24133 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24134    { (exit 1); exit 1; }; }
24135
24136   # Don't try to exec as it changes $[0], causing all sort of problems
24137   # (the dirname of $[0] is not the place where we might find the
24138   # original and so on.  Autoconf is especially sensible to this).
24139   . ./$as_me.lineno
24140   # Exit status is that of the last command.
24141   exit
24142 }
24143
24144
24145 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24146   *c*,-n*) ECHO_N= ECHO_C='
24147 ' ECHO_T='      ' ;;
24148   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24149   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
24150 esac
24151
24152 if expr a : '\(a\)' >/dev/null 2>&1; then
24153   as_expr=expr
24154 else
24155   as_expr=false
24156 fi
24157
24158 rm -f conf$$ conf$$.exe conf$$.file
24159 echo >conf$$.file
24160 if ln -s conf$$.file conf$$ 2>/dev/null; then
24161   # We could just check for DJGPP; but this test a) works b) is more generic
24162   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24163   if test -f conf$$.exe; then
24164     # Don't use ln at all; we don't have any links
24165     as_ln_s='cp -p'
24166   else
24167     as_ln_s='ln -s'
24168   fi
24169 elif ln conf$$.file conf$$ 2>/dev/null; then
24170   as_ln_s=ln
24171 else
24172   as_ln_s='cp -p'
24173 fi
24174 rm -f conf$$ conf$$.exe conf$$.file
24175
24176 if mkdir -p . 2>/dev/null; then
24177   as_mkdir_p=:
24178 else
24179   test -d ./-p && rmdir ./-p
24180   as_mkdir_p=false
24181 fi
24182
24183 as_executable_p="test -f"
24184
24185 # Sed expression to map a string onto a valid CPP name.
24186 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24187
24188 # Sed expression to map a string onto a valid variable name.
24189 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24190
24191
24192 # IFS
24193 # We need space, tab and new line, in precisely that order.
24194 as_nl='
24195 '
24196 IFS="   $as_nl"
24197
24198 # CDPATH.
24199 $as_unset CDPATH
24200
24201 exec 6>&1
24202
24203 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24204 # report actual input values of CONFIG_FILES etc. instead of their
24205 # values after options handling.  Logging --version etc. is OK.
24206 exec 5>>config.log
24207 {
24208   echo
24209   sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
24210 @%:@@%:@ Running $as_me. @%:@@%:@
24211 _ASBOX
24212 } >&5
24213 cat >&5 <<_CSEOF
24214
24215 This file was extended by webcit $as_me 6.80, which was
24216 generated by GNU Autoconf 2.59.  Invocation command line was
24217
24218   CONFIG_FILES    = $CONFIG_FILES
24219   CONFIG_HEADERS  = $CONFIG_HEADERS
24220   CONFIG_LINKS    = $CONFIG_LINKS
24221   CONFIG_COMMANDS = $CONFIG_COMMANDS
24222   $ $0 $@
24223
24224 _CSEOF
24225 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24226 echo >&5
24227 _ACEOF
24228
24229 # Files that config.status was made for.
24230 if test -n "$ac_config_files"; then
24231   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24232 fi
24233
24234 if test -n "$ac_config_headers"; then
24235   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24236 fi
24237
24238 if test -n "$ac_config_links"; then
24239   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24240 fi
24241
24242 if test -n "$ac_config_commands"; then
24243   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24244 fi
24245
24246 cat >>$CONFIG_STATUS <<\_ACEOF
24247
24248 ac_cs_usage="\
24249 \`$as_me' instantiates files from templates according to the
24250 current configuration.
24251
24252 Usage: $0 [OPTIONS] [FILE]...
24253
24254   -h, --help       print this help, then exit
24255   -V, --version    print version number, then exit
24256   -q, --quiet      do not print progress messages
24257   -d, --debug      don't remove temporary files
24258       --recheck    update $as_me by reconfiguring in the same conditions
24259   --file=FILE[:TEMPLATE]
24260                    instantiate the configuration file FILE
24261   --header=FILE[:TEMPLATE]
24262                    instantiate the configuration header FILE
24263
24264 Configuration files:
24265 $config_files
24266
24267 Configuration headers:
24268 $config_headers
24269
24270 Configuration commands:
24271 $config_commands
24272
24273 Report bugs to <bug-autoconf@gnu.org>."
24274 _ACEOF
24275
24276 cat >>$CONFIG_STATUS <<_ACEOF
24277 ac_cs_version="\\
24278 webcit config.status 6.80
24279 configured by $0, generated by GNU Autoconf 2.59,
24280   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24281
24282 Copyright (C) 2003 Free Software Foundation, Inc.
24283 This config.status script is free software; the Free Software Foundation
24284 gives unlimited permission to copy, distribute and modify it."
24285 srcdir=$srcdir
24286 INSTALL="$INSTALL"
24287 _ACEOF
24288
24289 cat >>$CONFIG_STATUS <<\_ACEOF
24290 # If no file are specified by the user, then we need to provide default
24291 # value.  By we need to know if files were specified by the user.
24292 ac_need_defaults=:
24293 while test $# != 0
24294 do
24295   case $1 in
24296   --*=*)
24297     ac_option=`expr "x$1" : 'x\([^=]*\)='`
24298     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24299     ac_shift=:
24300     ;;
24301   -*)
24302     ac_option=$1
24303     ac_optarg=$2
24304     ac_shift=shift
24305     ;;
24306   *) # This is not an option, so the user has probably given explicit
24307      # arguments.
24308      ac_option=$1
24309      ac_need_defaults=false;;
24310   esac
24311
24312   case $ac_option in
24313   # Handling of the options.
24314 _ACEOF
24315 cat >>$CONFIG_STATUS <<\_ACEOF
24316   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24317     ac_cs_recheck=: ;;
24318   --version | --vers* | -V )
24319     echo "$ac_cs_version"; exit 0 ;;
24320   --he | --h)
24321     # Conflict between --help and --header
24322     { { echo "$as_me:$LINENO: error: ambiguous option: $1
24323 Try \`$0 --help' for more information." >&5
24324 echo "$as_me: error: ambiguous option: $1
24325 Try \`$0 --help' for more information." >&2;}
24326    { (exit 1); exit 1; }; };;
24327   --help | --hel | -h )
24328     echo "$ac_cs_usage"; exit 0 ;;
24329   --debug | --d* | -d )
24330     debug=: ;;
24331   --file | --fil | --fi | --f )
24332     $ac_shift
24333     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24334     ac_need_defaults=false;;
24335   --header | --heade | --head | --hea )
24336     $ac_shift
24337     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24338     ac_need_defaults=false;;
24339   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24340   | -silent | --silent | --silen | --sile | --sil | --si | --s)
24341     ac_cs_silent=: ;;
24342
24343   # This is an error.
24344   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24345 Try \`$0 --help' for more information." >&5
24346 echo "$as_me: error: unrecognized option: $1
24347 Try \`$0 --help' for more information." >&2;}
24348    { (exit 1); exit 1; }; } ;;
24349
24350   *) ac_config_targets="$ac_config_targets $1" ;;
24351
24352   esac
24353   shift
24354 done
24355
24356 ac_configure_extra_args=
24357
24358 if $ac_cs_silent; then
24359   exec 6>/dev/null
24360   ac_configure_extra_args="$ac_configure_extra_args --silent"
24361 fi
24362
24363 _ACEOF
24364 cat >>$CONFIG_STATUS <<_ACEOF
24365 if \$ac_cs_recheck; then
24366   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24367   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24368 fi
24369
24370 _ACEOF
24371
24372 cat >>$CONFIG_STATUS <<_ACEOF
24373 #
24374 # INIT-COMMANDS section.
24375 #
24376
24377 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24378 INTLTOOL_PERL='${INTLTOOL_PERL}' ac_aux_dir=${ac_aux_dir}
24379 INTLTOOL_EXTRACT='${INTLTOOL_EXTRACT}' ICONV='${INTLTOOL_ICONV}'
24380 MSGFMT='${INTLTOOL_MSGFMT}' MSGMERGE='${INTLTOOL_MSGMERGE}'
24381 XGETTEXT='${INTLTOOL_XGETTEXT}'
24382 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
24383     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
24384     # from automake.
24385     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
24386     # Capture the value of LINGUAS because we need it to compute CATALOGS.
24387     LINGUAS="${LINGUAS-%UNSET%}"
24388    
24389
24390 _ACEOF
24391
24392
24393
24394 cat >>$CONFIG_STATUS <<\_ACEOF
24395 for ac_config_target in $ac_config_targets
24396 do
24397   case "$ac_config_target" in
24398   # Handling of arguments.
24399   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24400   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
24401   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
24402   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24403   "intltool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS intltool" ;;
24404   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
24405   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
24406   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24407 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24408    { (exit 1); exit 1; }; };;
24409   esac
24410 done
24411
24412 # If the user did not use the arguments to specify the items to instantiate,
24413 # then the envvar interface is used.  Set only those that are not.
24414 # We use the long form for the default assignment because of an extremely
24415 # bizarre bug on SunOS 4.1.3.
24416 if $ac_need_defaults; then
24417   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24418   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24419   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24420 fi
24421
24422 # Have a temporary directory for convenience.  Make it in the build tree
24423 # simply because there is no reason to put it here, and in addition,
24424 # creating and moving files from /tmp can sometimes cause problems.
24425 # Create a temporary directory, and hook for its removal unless debugging.
24426 $debug ||
24427 {
24428   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24429   trap '{ (exit 1); exit 1; }' 1 2 13 15
24430 }
24431
24432 # Create a (secure) tmp directory for tmp files.
24433
24434 {
24435   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24436   test -n "$tmp" && test -d "$tmp"
24437 }  ||
24438 {
24439   tmp=./confstat$$-$RANDOM
24440   (umask 077 && mkdir $tmp)
24441 } ||
24442 {
24443    echo "$me: cannot create a temporary directory in ." >&2
24444    { (exit 1); exit 1; }
24445 }
24446
24447 _ACEOF
24448
24449 cat >>$CONFIG_STATUS <<_ACEOF
24450
24451 #
24452 # CONFIG_FILES section.
24453 #
24454
24455 # No need to generate the scripts if there are no CONFIG_FILES.
24456 # This happens for instance when ./config.status config.h
24457 if test -n "\$CONFIG_FILES"; then
24458   # Protect against being on the right side of a sed subst in config.status.
24459   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24460    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24461 s,@SHELL@,$SHELL,;t t
24462 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24463 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24464 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24465 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24466 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24467 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24468 s,@exec_prefix@,$exec_prefix,;t t
24469 s,@prefix@,$prefix,;t t
24470 s,@program_transform_name@,$program_transform_name,;t t
24471 s,@bindir@,$bindir,;t t
24472 s,@sbindir@,$sbindir,;t t
24473 s,@libexecdir@,$libexecdir,;t t
24474 s,@datadir@,$datadir,;t t
24475 s,@sysconfdir@,$sysconfdir,;t t
24476 s,@sharedstatedir@,$sharedstatedir,;t t
24477 s,@localstatedir@,$localstatedir,;t t
24478 s,@libdir@,$libdir,;t t
24479 s,@includedir@,$includedir,;t t
24480 s,@oldincludedir@,$oldincludedir,;t t
24481 s,@infodir@,$infodir,;t t
24482 s,@mandir@,$mandir,;t t
24483 s,@build_alias@,$build_alias,;t t
24484 s,@host_alias@,$host_alias,;t t
24485 s,@target_alias@,$target_alias,;t t
24486 s,@DEFS@,$DEFS,;t t
24487 s,@ECHO_C@,$ECHO_C,;t t
24488 s,@ECHO_N@,$ECHO_N,;t t
24489 s,@ECHO_T@,$ECHO_T,;t t
24490 s,@LIBS@,$LIBS,;t t
24491 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24492 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24493 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24494 s,@CYGPATH_W@,$CYGPATH_W,;t t
24495 s,@PACKAGE@,$PACKAGE,;t t
24496 s,@VERSION@,$VERSION,;t t
24497 s,@ACLOCAL@,$ACLOCAL,;t t
24498 s,@AUTOCONF@,$AUTOCONF,;t t
24499 s,@AUTOMAKE@,$AUTOMAKE,;t t
24500 s,@AUTOHEADER@,$AUTOHEADER,;t t
24501 s,@MAKEINFO@,$MAKEINFO,;t t
24502 s,@install_sh@,$install_sh,;t t
24503 s,@STRIP@,$STRIP,;t t
24504 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24505 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
24506 s,@mkdir_p@,$mkdir_p,;t t
24507 s,@AWK@,$AWK,;t t
24508 s,@SET_MAKE@,$SET_MAKE,;t t
24509 s,@am__leading_dot@,$am__leading_dot,;t t
24510 s,@AMTAR@,$AMTAR,;t t
24511 s,@am__tar@,$am__tar,;t t
24512 s,@am__untar@,$am__untar,;t t
24513 s,@build@,$build,;t t
24514 s,@build_cpu@,$build_cpu,;t t
24515 s,@build_vendor@,$build_vendor,;t t
24516 s,@build_os@,$build_os,;t t
24517 s,@host@,$host,;t t
24518 s,@host_cpu@,$host_cpu,;t t
24519 s,@host_vendor@,$host_vendor,;t t
24520 s,@host_os@,$host_os,;t t
24521 s,@CC@,$CC,;t t
24522 s,@CFLAGS@,$CFLAGS,;t t
24523 s,@LDFLAGS@,$LDFLAGS,;t t
24524 s,@CPPFLAGS@,$CPPFLAGS,;t t
24525 s,@ac_ct_CC@,$ac_ct_CC,;t t
24526 s,@EXEEXT@,$EXEEXT,;t t
24527 s,@OBJEXT@,$OBJEXT,;t t
24528 s,@DEPDIR@,$DEPDIR,;t t
24529 s,@am__include@,$am__include,;t t
24530 s,@am__quote@,$am__quote,;t t
24531 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
24532 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
24533 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
24534 s,@CCDEPMODE@,$CCDEPMODE,;t t
24535 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
24536 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
24537 s,@EGREP@,$EGREP,;t t
24538 s,@LN_S@,$LN_S,;t t
24539 s,@ECHO@,$ECHO,;t t
24540 s,@AR@,$AR,;t t
24541 s,@ac_ct_AR@,$ac_ct_AR,;t t
24542 s,@RANLIB@,$RANLIB,;t t
24543 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24544 s,@CPP@,$CPP,;t t
24545 s,@CXX@,$CXX,;t t
24546 s,@CXXFLAGS@,$CXXFLAGS,;t t
24547 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24548 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
24549 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
24550 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
24551 s,@CXXCPP@,$CXXCPP,;t t
24552 s,@F77@,$F77,;t t
24553 s,@FFLAGS@,$FFLAGS,;t t
24554 s,@ac_ct_F77@,$ac_ct_F77,;t t
24555 s,@LIBTOOL@,$LIBTOOL,;t t
24556 s,@PROG_SUBDIRS@,$PROG_SUBDIRS,;t t
24557 s,@SED@,$SED,;t t
24558 s,@PTHREAD_DEFS@,$PTHREAD_DEFS,;t t
24559 s,@LIB@&t@OBJS@,$LIB@&t@OBJS,;t t
24560 s,@INTLTOOL_DESKTOP_RULE@,$INTLTOOL_DESKTOP_RULE,;t t
24561 s,@INTLTOOL_DIRECTORY_RULE@,$INTLTOOL_DIRECTORY_RULE,;t t
24562 s,@INTLTOOL_KEYS_RULE@,$INTLTOOL_KEYS_RULE,;t t
24563 s,@INTLTOOL_PROP_RULE@,$INTLTOOL_PROP_RULE,;t t
24564 s,@INTLTOOL_OAF_RULE@,$INTLTOOL_OAF_RULE,;t t
24565 s,@INTLTOOL_PONG_RULE@,$INTLTOOL_PONG_RULE,;t t
24566 s,@INTLTOOL_SERVER_RULE@,$INTLTOOL_SERVER_RULE,;t t
24567 s,@INTLTOOL_SHEET_RULE@,$INTLTOOL_SHEET_RULE,;t t
24568 s,@INTLTOOL_SOUNDLIST_RULE@,$INTLTOOL_SOUNDLIST_RULE,;t t
24569 s,@INTLTOOL_UI_RULE@,$INTLTOOL_UI_RULE,;t t
24570 s,@INTLTOOL_XAM_RULE@,$INTLTOOL_XAM_RULE,;t t
24571 s,@INTLTOOL_KBD_RULE@,$INTLTOOL_KBD_RULE,;t t
24572 s,@INTLTOOL_XML_RULE@,$INTLTOOL_XML_RULE,;t t
24573 s,@INTLTOOL_XML_NOMERGE_RULE@,$INTLTOOL_XML_NOMERGE_RULE,;t t
24574 s,@INTLTOOL_CAVES_RULE@,$INTLTOOL_CAVES_RULE,;t t
24575 s,@INTLTOOL_SCHEMAS_RULE@,$INTLTOOL_SCHEMAS_RULE,;t t
24576 s,@INTLTOOL_THEME_RULE@,$INTLTOOL_THEME_RULE,;t t
24577 s,@INTLTOOL_EXTRACT@,$INTLTOOL_EXTRACT,;t t
24578 s,@INTLTOOL_MERGE@,$INTLTOOL_MERGE,;t t
24579 s,@INTLTOOL_UPDATE@,$INTLTOOL_UPDATE,;t t
24580 s,@INTLTOOL_PERL@,$INTLTOOL_PERL,;t t
24581 s,@INTLTOOL_ICONV@,$INTLTOOL_ICONV,;t t
24582 s,@INTLTOOL_MSGFMT@,$INTLTOOL_MSGFMT,;t t
24583 s,@INTLTOOL_MSGMERGE@,$INTLTOOL_MSGMERGE,;t t
24584 s,@INTLTOOL_XGETTEXT@,$INTLTOOL_XGETTEXT,;t t
24585 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
24586 s,@USE_NLS@,$USE_NLS,;t t
24587 s,@MSGFMT@,$MSGFMT,;t t
24588 s,@GMSGFMT@,$GMSGFMT,;t t
24589 s,@XGETTEXT@,$XGETTEXT,;t t
24590 s,@MSGMERGE@,$MSGMERGE,;t t
24591 s,@LIBICONV@,$LIBICONV,;t t
24592 s,@LTLIBICONV@,$LTLIBICONV,;t t
24593 s,@INTLLIBS@,$INTLLIBS,;t t
24594 s,@LIBINTL@,$LIBINTL,;t t
24595 s,@LTLIBINTL@,$LTLIBINTL,;t t
24596 s,@POSUB@,$POSUB,;t t
24597 s,@SETUP_LIBS@,$SETUP_LIBS,;t t
24598 s,@staticdir@,$staticdir,;t t
24599 s,@editordir@,$editordir,;t t
24600 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24601 CEOF
24602
24603 _ACEOF
24604
24605   cat >>$CONFIG_STATUS <<\_ACEOF
24606   # Split the substitutions into bite-sized pieces for seds with
24607   # small command number limits, like on Digital OSF/1 and HP-UX.
24608   ac_max_sed_lines=48
24609   ac_sed_frag=1 # Number of current file.
24610   ac_beg=1 # First line for current file.
24611   ac_end=$ac_max_sed_lines # Line after last line for current file.
24612   ac_more_lines=:
24613   ac_sed_cmds=
24614   while $ac_more_lines; do
24615     if test $ac_beg -gt 1; then
24616       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24617     else
24618       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24619     fi
24620     if test ! -s $tmp/subs.frag; then
24621       ac_more_lines=false
24622     else
24623       # The purpose of the label and of the branching condition is to
24624       # speed up the sed processing (if there are no `@' at all, there
24625       # is no need to browse any of the substitutions).
24626       # These are the two extra sed commands mentioned above.
24627       (echo ':t
24628   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24629       if test -z "$ac_sed_cmds"; then
24630         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24631       else
24632         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24633       fi
24634       ac_sed_frag=`expr $ac_sed_frag + 1`
24635       ac_beg=$ac_end
24636       ac_end=`expr $ac_end + $ac_max_sed_lines`
24637     fi
24638   done
24639   if test -z "$ac_sed_cmds"; then
24640     ac_sed_cmds=cat
24641   fi
24642 fi # test -n "$CONFIG_FILES"
24643
24644 _ACEOF
24645 cat >>$CONFIG_STATUS <<\_ACEOF
24646 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24647   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24648   case $ac_file in
24649   - | *:- | *:-:* ) # input from stdin
24650         cat >$tmp/stdin
24651         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24652         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24653   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24654         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24655   * )   ac_file_in=$ac_file.in ;;
24656   esac
24657
24658   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24659   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24660 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24661          X"$ac_file" : 'X\(//\)[^/]' \| \
24662          X"$ac_file" : 'X\(//\)$' \| \
24663          X"$ac_file" : 'X\(/\)' \| \
24664          .     : '\(.\)' 2>/dev/null ||
24665 echo X"$ac_file" |
24666     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24667           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24668           /^X\(\/\/\)$/{ s//\1/; q; }
24669           /^X\(\/\).*/{ s//\1/; q; }
24670           s/.*/./; q'`
24671   { if $as_mkdir_p; then
24672     mkdir -p "$ac_dir"
24673   else
24674     as_dir="$ac_dir"
24675     as_dirs=
24676     while test ! -d "$as_dir"; do
24677       as_dirs="$as_dir $as_dirs"
24678       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24679 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24680          X"$as_dir" : 'X\(//\)[^/]' \| \
24681          X"$as_dir" : 'X\(//\)$' \| \
24682          X"$as_dir" : 'X\(/\)' \| \
24683          .     : '\(.\)' 2>/dev/null ||
24684 echo X"$as_dir" |
24685     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24686           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24687           /^X\(\/\/\)$/{ s//\1/; q; }
24688           /^X\(\/\).*/{ s//\1/; q; }
24689           s/.*/./; q'`
24690     done
24691     test ! -n "$as_dirs" || mkdir $as_dirs
24692   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24693 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24694    { (exit 1); exit 1; }; }; }
24695
24696   ac_builddir=.
24697
24698 if test "$ac_dir" != .; then
24699   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24700   # A "../" for each directory in $ac_dir_suffix.
24701   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24702 else
24703   ac_dir_suffix= ac_top_builddir=
24704 fi
24705
24706 case $srcdir in
24707   .)  # No --srcdir option.  We are building in place.
24708     ac_srcdir=.
24709     if test -z "$ac_top_builddir"; then
24710        ac_top_srcdir=.
24711     else
24712        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24713     fi ;;
24714   [\\/]* | ?:[\\/]* )  # Absolute path.
24715     ac_srcdir=$srcdir$ac_dir_suffix;
24716     ac_top_srcdir=$srcdir ;;
24717   *) # Relative path.
24718     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24719     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24720 esac
24721
24722 # Do not use `cd foo && pwd` to compute absolute paths, because
24723 # the directories may not exist.
24724 case `pwd` in
24725 .) ac_abs_builddir="$ac_dir";;
24726 *)
24727   case "$ac_dir" in
24728   .) ac_abs_builddir=`pwd`;;
24729   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24730   *) ac_abs_builddir=`pwd`/"$ac_dir";;
24731   esac;;
24732 esac
24733 case $ac_abs_builddir in
24734 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24735 *)
24736   case ${ac_top_builddir}. in
24737   .) ac_abs_top_builddir=$ac_abs_builddir;;
24738   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24739   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24740   esac;;
24741 esac
24742 case $ac_abs_builddir in
24743 .) ac_abs_srcdir=$ac_srcdir;;
24744 *)
24745   case $ac_srcdir in
24746   .) ac_abs_srcdir=$ac_abs_builddir;;
24747   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24748   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24749   esac;;
24750 esac
24751 case $ac_abs_builddir in
24752 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24753 *)
24754   case $ac_top_srcdir in
24755   .) ac_abs_top_srcdir=$ac_abs_builddir;;
24756   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24757   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24758   esac;;
24759 esac
24760
24761
24762   case $INSTALL in
24763   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24764   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24765   esac
24766
24767   if test x"$ac_file" != x-; then
24768     { echo "$as_me:$LINENO: creating $ac_file" >&5
24769 echo "$as_me: creating $ac_file" >&6;}
24770     rm -f "$ac_file"
24771   fi
24772   # Let's still pretend it is `configure' which instantiates (i.e., don't
24773   # use $as_me), people would be surprised to read:
24774   #    /* config.h.  Generated by config.status.  */
24775   if test x"$ac_file" = x-; then
24776     configure_input=
24777   else
24778     configure_input="$ac_file.  "
24779   fi
24780   configure_input=$configure_input"Generated from `echo $ac_file_in |
24781                                      sed 's,.*/,,'` by configure."
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          echo "$f";;
24795       *) # Relative
24796          if test -f "$f"; then
24797            # Build tree
24798            echo "$f"
24799          elif test -f "$srcdir/$f"; then
24800            # Source tree
24801            echo "$srcdir/$f"
24802          else
24803            # /dev/null tree
24804            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24805 echo "$as_me: error: cannot find input file: $f" >&2;}
24806    { (exit 1); exit 1; }; }
24807          fi;;
24808       esac
24809     done` || { (exit 1); exit 1; }
24810 _ACEOF
24811 cat >>$CONFIG_STATUS <<_ACEOF
24812   sed "$ac_vpsub
24813 $extrasub
24814 _ACEOF
24815 cat >>$CONFIG_STATUS <<\_ACEOF
24816 :t
24817 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24818 s,@configure_input@,$configure_input,;t t
24819 s,@srcdir@,$ac_srcdir,;t t
24820 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24821 s,@top_srcdir@,$ac_top_srcdir,;t t
24822 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24823 s,@builddir@,$ac_builddir,;t t
24824 s,@abs_builddir@,$ac_abs_builddir,;t t
24825 s,@top_builddir@,$ac_top_builddir,;t t
24826 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24827 s,@INSTALL@,$ac_INSTALL,;t t
24828 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24829   rm -f $tmp/stdin
24830   if test x"$ac_file" != x-; then
24831     mv $tmp/out $ac_file
24832   else
24833     cat $tmp/out
24834     rm -f $tmp/out
24835   fi
24836
24837 done
24838 _ACEOF
24839 cat >>$CONFIG_STATUS <<\_ACEOF
24840
24841 #
24842 # CONFIG_HEADER section.
24843 #
24844
24845 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24846 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24847 #
24848 # ac_d sets the value in "#define NAME VALUE" lines.
24849 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
24850 ac_dB='[         ].*$,\1#\2'
24851 ac_dC=' '
24852 ac_dD=',;t'
24853 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24854 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
24855 ac_uB='$,\1#\2define\3'
24856 ac_uC=' '
24857 ac_uD=',;t'
24858
24859 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24860   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24861   case $ac_file in
24862   - | *:- | *:-:* ) # input from stdin
24863         cat >$tmp/stdin
24864         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24865         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24866   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24867         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24868   * )   ac_file_in=$ac_file.in ;;
24869   esac
24870
24871   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24872 echo "$as_me: creating $ac_file" >&6;}
24873
24874   # First look for the input files in the build tree, otherwise in the
24875   # src tree.
24876   ac_file_inputs=`IFS=:
24877     for f in $ac_file_in; do
24878       case $f in
24879       -) echo $tmp/stdin ;;
24880       [\\/$]*)
24881          # Absolute (can't be DOS-style, as IFS=:)
24882          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24883 echo "$as_me: error: cannot find input file: $f" >&2;}
24884    { (exit 1); exit 1; }; }
24885          # Do quote $f, to prevent DOS paths from being IFS'd.
24886          echo "$f";;
24887       *) # Relative
24888          if test -f "$f"; then
24889            # Build tree
24890            echo "$f"
24891          elif test -f "$srcdir/$f"; then
24892            # Source tree
24893            echo "$srcdir/$f"
24894          else
24895            # /dev/null tree
24896            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24897 echo "$as_me: error: cannot find input file: $f" >&2;}
24898    { (exit 1); exit 1; }; }
24899          fi;;
24900       esac
24901     done` || { (exit 1); exit 1; }
24902   # Remove the trailing spaces.
24903   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
24904
24905 _ACEOF
24906
24907 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24908 # `conftest.undefs', that substitutes the proper values into
24909 # config.h.in to produce config.h.  The first handles `#define'
24910 # templates, and the second `#undef' templates.
24911 # And first: Protect against being on the right side of a sed subst in
24912 # config.status.  Protect against being in an unquoted here document
24913 # in config.status.
24914 rm -f conftest.defines conftest.undefs
24915 # Using a here document instead of a string reduces the quoting nightmare.
24916 # Putting comments in sed scripts is not portable.
24917 #
24918 # `end' is used to avoid that the second main sed command (meant for
24919 # 0-ary CPP macros) applies to n-ary macro definitions.
24920 # See the Autoconf documentation for `clear'.
24921 cat >confdef2sed.sed <<\_ACEOF
24922 s/[\\&,]/\\&/g
24923 s,[\\$`],\\&,g
24924 t clear
24925 : clear
24926 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24927 t end
24928 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24929 : end
24930 _ACEOF
24931 # If some macros were called several times there might be several times
24932 # the same #defines, which is useless.  Nevertheless, we may not want to
24933 # sort them, since we want the *last* AC-DEFINE to be honored.
24934 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24935 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24936 rm -f confdef2sed.sed
24937
24938 # This sed command replaces #undef with comments.  This is necessary, for
24939 # example, in the case of _POSIX_SOURCE, which is predefined and required
24940 # on some systems where configure will not decide to define it.
24941 cat >>conftest.undefs <<\_ACEOF
24942 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24943 _ACEOF
24944
24945 # Break up conftest.defines because some shells have a limit on the size
24946 # of here documents, and old seds have small limits too (100 cmds).
24947 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24948 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24949 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24950 echo '  :' >>$CONFIG_STATUS
24951 rm -f conftest.tail
24952 while grep . conftest.defines >/dev/null
24953 do
24954   # Write a limited-size here document to $tmp/defines.sed.
24955   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24956   # Speed up: don't consider the non `#define' lines.
24957   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
24958   # Work around the forget-to-reset-the-flag bug.
24959   echo 't clr' >>$CONFIG_STATUS
24960   echo ': clr' >>$CONFIG_STATUS
24961   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24962   echo 'CEOF
24963   sed -f $tmp/defines.sed $tmp/in >$tmp/out
24964   rm -f $tmp/in
24965   mv $tmp/out $tmp/in
24966 ' >>$CONFIG_STATUS
24967   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24968   rm -f conftest.defines
24969   mv conftest.tail conftest.defines
24970 done
24971 rm -f conftest.defines
24972 echo '  fi # grep' >>$CONFIG_STATUS
24973 echo >>$CONFIG_STATUS
24974
24975 # Break up conftest.undefs because some shells have a limit on the size
24976 # of here documents, and old seds have small limits too (100 cmds).
24977 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
24978 rm -f conftest.tail
24979 while grep . conftest.undefs >/dev/null
24980 do
24981   # Write a limited-size here document to $tmp/undefs.sed.
24982   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24983   # Speed up: don't consider the non `#undef'
24984   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
24985   # Work around the forget-to-reset-the-flag bug.
24986   echo 't clr' >>$CONFIG_STATUS
24987   echo ': clr' >>$CONFIG_STATUS
24988   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24989   echo 'CEOF
24990   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24991   rm -f $tmp/in
24992   mv $tmp/out $tmp/in
24993 ' >>$CONFIG_STATUS
24994   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24995   rm -f conftest.undefs
24996   mv conftest.tail conftest.undefs
24997 done
24998 rm -f conftest.undefs
24999
25000 cat >>$CONFIG_STATUS <<\_ACEOF
25001   # Let's still pretend it is `configure' which instantiates (i.e., don't
25002   # use $as_me), people would be surprised to read:
25003   #    /* config.h.  Generated by config.status.  */
25004   if test x"$ac_file" = x-; then
25005     echo "/* Generated by configure.  */" >$tmp/config.h
25006   else
25007     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
25008   fi
25009   cat $tmp/in >>$tmp/config.h
25010   rm -f $tmp/in
25011   if test x"$ac_file" != x-; then
25012     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
25013       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25014 echo "$as_me: $ac_file is unchanged" >&6;}
25015     else
25016       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25017 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25018          X"$ac_file" : 'X\(//\)[^/]' \| \
25019          X"$ac_file" : 'X\(//\)$' \| \
25020          X"$ac_file" : 'X\(/\)' \| \
25021          .     : '\(.\)' 2>/dev/null ||
25022 echo X"$ac_file" |
25023     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25024           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25025           /^X\(\/\/\)$/{ s//\1/; q; }
25026           /^X\(\/\).*/{ s//\1/; q; }
25027           s/.*/./; q'`
25028       { if $as_mkdir_p; then
25029     mkdir -p "$ac_dir"
25030   else
25031     as_dir="$ac_dir"
25032     as_dirs=
25033     while test ! -d "$as_dir"; do
25034       as_dirs="$as_dir $as_dirs"
25035       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25036 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25037          X"$as_dir" : 'X\(//\)[^/]' \| \
25038          X"$as_dir" : 'X\(//\)$' \| \
25039          X"$as_dir" : 'X\(/\)' \| \
25040          .     : '\(.\)' 2>/dev/null ||
25041 echo X"$as_dir" |
25042     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25043           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25044           /^X\(\/\/\)$/{ s//\1/; q; }
25045           /^X\(\/\).*/{ s//\1/; q; }
25046           s/.*/./; q'`
25047     done
25048     test ! -n "$as_dirs" || mkdir $as_dirs
25049   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25050 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25051    { (exit 1); exit 1; }; }; }
25052
25053       rm -f $ac_file
25054       mv $tmp/config.h $ac_file
25055     fi
25056   else
25057     cat $tmp/config.h
25058     rm -f $tmp/config.h
25059   fi
25060 # Compute $ac_file's index in $config_headers.
25061 _am_stamp_count=1
25062 for _am_header in $config_headers :; do
25063   case $_am_header in
25064     $ac_file | $ac_file:* )
25065       break ;;
25066     * )
25067       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25068   esac
25069 done
25070 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
25071 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25072          X$ac_file : 'X\(//\)[^/]' \| \
25073          X$ac_file : 'X\(//\)$' \| \
25074          X$ac_file : 'X\(/\)' \| \
25075          .     : '\(.\)' 2>/dev/null ||
25076 echo X$ac_file |
25077     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25078           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25079           /^X\(\/\/\)$/{ s//\1/; q; }
25080           /^X\(\/\).*/{ s//\1/; q; }
25081           s/.*/./; q'`/stamp-h$_am_stamp_count
25082 done
25083 _ACEOF
25084 cat >>$CONFIG_STATUS <<\_ACEOF
25085
25086 #
25087 # CONFIG_COMMANDS section.
25088 #
25089 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25090   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25091   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25092   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25093 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25094          X"$ac_dest" : 'X\(//\)[^/]' \| \
25095          X"$ac_dest" : 'X\(//\)$' \| \
25096          X"$ac_dest" : 'X\(/\)' \| \
25097          .     : '\(.\)' 2>/dev/null ||
25098 echo X"$ac_dest" |
25099     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25100           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25101           /^X\(\/\/\)$/{ s//\1/; q; }
25102           /^X\(\/\).*/{ s//\1/; q; }
25103           s/.*/./; q'`
25104   { if $as_mkdir_p; then
25105     mkdir -p "$ac_dir"
25106   else
25107     as_dir="$ac_dir"
25108     as_dirs=
25109     while test ! -d "$as_dir"; do
25110       as_dirs="$as_dir $as_dirs"
25111       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25112 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25113          X"$as_dir" : 'X\(//\)[^/]' \| \
25114          X"$as_dir" : 'X\(//\)$' \| \
25115          X"$as_dir" : 'X\(/\)' \| \
25116          .     : '\(.\)' 2>/dev/null ||
25117 echo X"$as_dir" |
25118     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25119           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25120           /^X\(\/\/\)$/{ s//\1/; q; }
25121           /^X\(\/\).*/{ s//\1/; q; }
25122           s/.*/./; q'`
25123     done
25124     test ! -n "$as_dirs" || mkdir $as_dirs
25125   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25126 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25127    { (exit 1); exit 1; }; }; }
25128
25129   ac_builddir=.
25130
25131 if test "$ac_dir" != .; then
25132   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25133   # A "../" for each directory in $ac_dir_suffix.
25134   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25135 else
25136   ac_dir_suffix= ac_top_builddir=
25137 fi
25138
25139 case $srcdir in
25140   .)  # No --srcdir option.  We are building in place.
25141     ac_srcdir=.
25142     if test -z "$ac_top_builddir"; then
25143        ac_top_srcdir=.
25144     else
25145        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25146     fi ;;
25147   [\\/]* | ?:[\\/]* )  # Absolute path.
25148     ac_srcdir=$srcdir$ac_dir_suffix;
25149     ac_top_srcdir=$srcdir ;;
25150   *) # Relative path.
25151     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25152     ac_top_srcdir=$ac_top_builddir$srcdir ;;
25153 esac
25154
25155 # Do not use `cd foo && pwd` to compute absolute paths, because
25156 # the directories may not exist.
25157 case `pwd` in
25158 .) ac_abs_builddir="$ac_dir";;
25159 *)
25160   case "$ac_dir" in
25161   .) ac_abs_builddir=`pwd`;;
25162   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25163   *) ac_abs_builddir=`pwd`/"$ac_dir";;
25164   esac;;
25165 esac
25166 case $ac_abs_builddir in
25167 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25168 *)
25169   case ${ac_top_builddir}. in
25170   .) ac_abs_top_builddir=$ac_abs_builddir;;
25171   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25172   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25173   esac;;
25174 esac
25175 case $ac_abs_builddir in
25176 .) ac_abs_srcdir=$ac_srcdir;;
25177 *)
25178   case $ac_srcdir in
25179   .) ac_abs_srcdir=$ac_abs_builddir;;
25180   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25181   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25182   esac;;
25183 esac
25184 case $ac_abs_builddir in
25185 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25186 *)
25187   case $ac_top_srcdir in
25188   .) ac_abs_top_srcdir=$ac_abs_builddir;;
25189   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25190   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25191   esac;;
25192 esac
25193
25194
25195   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25196 echo "$as_me: executing $ac_dest commands" >&6;}
25197   case $ac_dest in
25198     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
25199   # Strip MF so we end up with the name of the file.
25200   mf=`echo "$mf" | sed -e 's/:.*$//'`
25201   # Check whether this is an Automake generated Makefile or not.
25202   # We used to match only the files named `Makefile.in', but
25203   # some people rename them; so instead we look at the file content.
25204   # Grep'ing the first line is not enough: some people post-process
25205   # each Makefile.in and add a new line on top of each file to say so.
25206   # So let's grep whole file.
25207   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
25208     dirpart=`(dirname "$mf") 2>/dev/null ||
25209 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25210          X"$mf" : 'X\(//\)[^/]' \| \
25211          X"$mf" : 'X\(//\)$' \| \
25212          X"$mf" : 'X\(/\)' \| \
25213          .     : '\(.\)' 2>/dev/null ||
25214 echo X"$mf" |
25215     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25216           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25217           /^X\(\/\/\)$/{ s//\1/; q; }
25218           /^X\(\/\).*/{ s//\1/; q; }
25219           s/.*/./; q'`
25220   else
25221     continue
25222   fi
25223   # Extract the definition of DEPDIR, am__include, and am__quote
25224   # from the Makefile without running `make'.
25225   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25226   test -z "$DEPDIR" && continue
25227   am__include=`sed -n 's/^am__include = //p' < "$mf"`
25228   test -z "am__include" && continue
25229   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25230   # When using ansi2knr, U may be empty or an underscore; expand it
25231   U=`sed -n 's/^U = //p' < "$mf"`
25232   # Find all dependency output files, they are included files with
25233   # $(DEPDIR) in their names.  We invoke sed twice because it is the
25234   # simplest approach to changing $(DEPDIR) to its actual value in the
25235   # expansion.
25236   for file in `sed -n "
25237     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25238        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25239     # Make sure the directory exists.
25240     test -f "$dirpart/$file" && continue
25241     fdir=`(dirname "$file") 2>/dev/null ||
25242 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25243          X"$file" : 'X\(//\)[^/]' \| \
25244          X"$file" : 'X\(//\)$' \| \
25245          X"$file" : 'X\(/\)' \| \
25246          .     : '\(.\)' 2>/dev/null ||
25247 echo X"$file" |
25248     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25249           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25250           /^X\(\/\/\)$/{ s//\1/; q; }
25251           /^X\(\/\).*/{ s//\1/; q; }
25252           s/.*/./; q'`
25253     { if $as_mkdir_p; then
25254     mkdir -p $dirpart/$fdir
25255   else
25256     as_dir=$dirpart/$fdir
25257     as_dirs=
25258     while test ! -d "$as_dir"; do
25259       as_dirs="$as_dir $as_dirs"
25260       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25261 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25262          X"$as_dir" : 'X\(//\)[^/]' \| \
25263          X"$as_dir" : 'X\(//\)$' \| \
25264          X"$as_dir" : 'X\(/\)' \| \
25265          .     : '\(.\)' 2>/dev/null ||
25266 echo X"$as_dir" |
25267     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25268           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25269           /^X\(\/\/\)$/{ s//\1/; q; }
25270           /^X\(\/\).*/{ s//\1/; q; }
25271           s/.*/./; q'`
25272     done
25273     test ! -n "$as_dirs" || mkdir $as_dirs
25274   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
25275 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
25276    { (exit 1); exit 1; }; }; }
25277
25278     # echo "creating $dirpart/$file"
25279     echo '# dummy' > "$dirpart/$file"
25280   done
25281 done
25282  ;;
25283     intltool ) 
25284
25285 intltool_edit="-e 's#@INTLTOOL_EXTRACT@#`pwd`/intltool-extract#g' \
25286                -e 's#@INTLTOOL_ICONV@#${INTLTOOL_ICONV}#g' \
25287                -e 's#@INTLTOOL_MSGFMT@#${INTLTOOL_MSGFMT}#g' \
25288                -e 's#@INTLTOOL_MSGMERGE@#${INTLTOOL_MSGMERGE}#g' \
25289                -e 's#@INTLTOOL_XGETTEXT@#${INTLTOOL_XGETTEXT}#g' \
25290                -e 's#@INTLTOOL_PERL@#${INTLTOOL_PERL}#g'"
25291
25292 eval sed ${intltool_edit} < ${ac_aux_dir}/intltool-extract.in \
25293   > intltool-extract.out
25294 if cmp -s intltool-extract intltool-extract.out 2>/dev/null; then
25295   rm -f intltool-extract.out
25296 else
25297   mv -f intltool-extract.out intltool-extract
25298 fi
25299 chmod ugo+x intltool-extract
25300 chmod u+w intltool-extract
25301
25302 eval sed ${intltool_edit} < ${ac_aux_dir}/intltool-merge.in \
25303   > intltool-merge.out
25304 if cmp -s intltool-merge intltool-merge.out 2>/dev/null; then
25305   rm -f intltool-merge.out
25306 else
25307   mv -f intltool-merge.out intltool-merge
25308 fi
25309 chmod ugo+x intltool-merge
25310 chmod u+w intltool-merge
25311
25312 eval sed ${intltool_edit} < ${ac_aux_dir}/intltool-update.in \
25313   > intltool-update.out
25314 if cmp -s intltool-update intltool-update.out 2>/dev/null; then
25315   rm -f intltool-update.out
25316 else
25317   mv -f intltool-update.out intltool-update
25318 fi
25319 chmod ugo+x intltool-update
25320 chmod u+w intltool-update
25321
25322  ;;
25323     default-1 ) 
25324     for ac_file in $CONFIG_FILES; do
25325       # Support "outfile[:infile[:infile...]]"
25326       case "$ac_file" in
25327         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
25328       esac
25329       # PO directories have a Makefile.in generated from Makefile.in.in.
25330       case "$ac_file" in */Makefile.in)
25331         # Adjust a relative srcdir.
25332         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
25333         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
25334         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
25335         # In autoconf-2.13 it is called $ac_given_srcdir.
25336         # In autoconf-2.50 it is called $srcdir.
25337         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
25338         case "$ac_given_srcdir" in
25339           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
25340           /*) top_srcdir="$ac_given_srcdir" ;;
25341           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
25342         esac
25343         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
25344           rm -f "$ac_dir/POTFILES"
25345           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
25346           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
25347           POMAKEFILEDEPS="POTFILES.in"
25348           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
25349           # on $ac_dir but don't depend on user-specified configuration
25350           # parameters.
25351           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
25352             # The LINGUAS file contains the set of available languages.
25353             if test -n "$OBSOLETE_ALL_LINGUAS"; then
25354               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
25355             fi
25356             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
25357             # Hide the ALL_LINGUAS assigment from automake.
25358             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
25359             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
25360           else
25361             # The set of available languages was given in configure.in.
25362             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
25363           fi
25364           # Compute POFILES
25365           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
25366           # Compute UPDATEPOFILES
25367           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
25368           # Compute DUMMYPOFILES
25369           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
25370           # Compute GMOFILES
25371           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
25372           case "$ac_given_srcdir" in
25373             .) srcdirpre= ;;
25374             *) srcdirpre='$(srcdir)/' ;;
25375           esac
25376           POFILES=
25377           UPDATEPOFILES=
25378           DUMMYPOFILES=
25379           GMOFILES=
25380           for lang in $ALL_LINGUAS; do
25381             POFILES="$POFILES $srcdirpre$lang.po"
25382             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
25383             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
25384             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
25385           done
25386           # CATALOGS depends on both $ac_dir and the user's LINGUAS
25387           # environment variable.
25388           INST_LINGUAS=
25389           if test -n "$ALL_LINGUAS"; then
25390             for presentlang in $ALL_LINGUAS; do
25391               useit=no
25392               if test "%UNSET%" != "$LINGUAS"; then
25393                 desiredlanguages="$LINGUAS"
25394               else
25395                 desiredlanguages="$ALL_LINGUAS"
25396               fi
25397               for desiredlang in $desiredlanguages; do
25398                 # Use the presentlang catalog if desiredlang is
25399                 #   a. equal to presentlang, or
25400                 #   b. a variant of presentlang (because in this case,
25401                 #      presentlang can be used as a fallback for messages
25402                 #      which are not translated in the desiredlang catalog).
25403                 case "$desiredlang" in
25404                   "$presentlang"*) useit=yes;;
25405                 esac
25406               done
25407               if test $useit = yes; then
25408                 INST_LINGUAS="$INST_LINGUAS $presentlang"
25409               fi
25410             done
25411           fi
25412           CATALOGS=
25413           if test -n "$INST_LINGUAS"; then
25414             for lang in $INST_LINGUAS; do
25415               CATALOGS="$CATALOGS $lang.gmo"
25416             done
25417           fi
25418           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
25419           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"
25420           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
25421             if test -f "$f"; then
25422               case "$f" in
25423                 *.orig | *.bak | *~) ;;
25424                 *) cat "$f" >> "$ac_dir/Makefile" ;;
25425               esac
25426             fi
25427           done
25428         fi
25429         ;;
25430       esac
25431     done ;;
25432   esac
25433 done
25434 _ACEOF
25435
25436 cat >>$CONFIG_STATUS <<\_ACEOF
25437
25438 { (exit 0); exit 0; }
25439 _ACEOF
25440 chmod +x $CONFIG_STATUS
25441 ac_clean_files=$ac_clean_files_save
25442
25443
25444 # configure is writing to config.log, and then calls config.status.
25445 # config.status does its own redirection, appending to config.log.
25446 # Unfortunately, on DOS this fails, as config.log is still kept open
25447 # by configure, so config.status won't be able to write to it; its
25448 # output is simply discarded.  So we exec the FD to /dev/null,
25449 # effectively closing config.log, so it can be properly (re)opened and
25450 # appended to by config.status.  When coming back to configure, we
25451 # need to make the FD available again.
25452 if test "$no_create" != yes; then
25453   ac_cs_success=:
25454   ac_config_status_args=
25455   test "$silent" = yes &&
25456     ac_config_status_args="$ac_config_status_args --quiet"
25457   exec 5>/dev/null
25458   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25459   exec 5>>config.log
25460   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25461   # would make configure fail if this is the last instruction.
25462   $ac_cs_success || { (exit 1); exit 1; }
25463 fi
25464
25465
25466
25467 echo ------------------------------------------------------------------------
25468 echo 'nls is available? '$_nls_avail
25469 echo 'zlib compression:                ' $ok_zlib
25470 echo 'Calendar support:                ' $ok_libical
25471 echo 'Character set conversion support:' $ok_iconv
25472 echo 'National language support:       ' $ok_nls
25473 echo