1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for Lincity 1.13.1.
4#
5# Report bugs to <lincity-users@lists.sourceforge.net>.
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
15if 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+"$@"}'='"$@"'
21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22  set -o posix
23fi
24DUALCASE=1; export DUALCASE # for MKS sh
25
26# Support unset when possible.
27if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28  as_unset=unset
29else
30  as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for 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
45do
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
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55  as_expr=expr
56else
57  as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61  as_basename=basename
62else
63  as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70	 X"$0" : 'X\(//\)$' \| \
71	 X"$0" : 'X\(/\)$' \| \
72	 .     : '\(.\)' 2>/dev/null ||
73echo 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.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if 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
99fi
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
112for as_dir in $PATH
113do
114  IFS=$as_save_IFS
115  test -z "$as_dir" && as_dir=.
116  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
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
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
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
154done
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
189case `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= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197  as_expr=expr
198else
199  as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if 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
213elif ln conf$$.file conf$$ 2>/dev/null; then
214  as_ln_s=ln
215else
216  as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221  as_mkdir_p=:
222else
223  test -d ./-p && rmdir ./-p
224  as_mkdir_p=false
225fi
226
227as_executable_p="test -f"
228
229# Sed expression to map a string onto a valid CPP name.
230as_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.
233as_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.
238as_nl='
239'
240IFS=" 	$as_nl"
241
242# CDPATH.
243$as_unset CDPATH
244
245
246
247# Check that we are running under the correct shell.
248SHELL=${CONFIG_SHELL-/bin/sh}
249
250case X$ECHO in
251X*--fallback-echo)
252  # Remove one level of quotation (which was required for Make).
253  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
254  ;;
255esac
256
257echo=${ECHO-echo}
258if test "X$1" = X--no-reexec; then
259  # Discard the --no-reexec flag, and continue.
260  shift
261elif test "X$1" = X--fallback-echo; then
262  # Avoid inline document here, it may be left over
263  :
264elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265  # Yippee, $echo works!
266  :
267else
268  # Restart under the correct shell.
269  exec $SHELL "$0" --no-reexec ${1+"$@"}
270fi
271
272if test "X$1" = X--fallback-echo; then
273  # used as fallback echo
274  shift
275  cat <<EOF
276$*
277EOF
278  exit 0
279fi
280
281# The HP-UX ksh and POSIX shell print the target directory to stdout
282# if CDPATH is set.
283if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
284
285if test -z "$ECHO"; then
286if 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
297fi
298
299if 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  :
303else
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
383fi
384fi
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.
388ECHO=$echo
389if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
391fi
392
393
394
395
396tagnames=${tagnames+${tagnames},}CXX
397
398tagnames=${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.
403ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
405exec 6>&1
406
407#
408# Initializations.
409#
410ac_default_prefix=/usr/local
411ac_config_libobj_dir=.
412cross_compiling=no
413subdirs=
414MFLAGS=
415MAKEFLAGS=
416SHELL=${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.
424PACKAGE_NAME='Lincity'
425PACKAGE_TARNAME='lincity'
426PACKAGE_VERSION='1.13.1'
427PACKAGE_STRING='Lincity 1.13.1'
428PACKAGE_BUGREPORT='lincity-users@lists.sourceforge.net'
429
430ac_unique_file="colour.pal"
431# Factoring default headers for most tests.
432ac_includes_default="\
433#include <stdio.h>
434#if HAVE_SYS_TYPES_H
435# include <sys/types.h>
436#endif
437#if HAVE_SYS_STAT_H
438# include <sys/stat.h>
439#endif
440#if STDC_HEADERS
441# include <stdlib.h>
442# include <stddef.h>
443#else
444# if HAVE_STDLIB_H
445#  include <stdlib.h>
446# endif
447#endif
448#if HAVE_STRING_H
449# if !STDC_HEADERS && HAVE_MEMORY_H
450#  include <memory.h>
451# endif
452# include <string.h>
453#endif
454#if HAVE_STRINGS_H
455# include <strings.h>
456#endif
457#if HAVE_INTTYPES_H
458# include <inttypes.h>
459#else
460# if HAVE_STDINT_H
461#  include <stdint.h>
462# endif
463#endif
464#if HAVE_UNISTD_H
465# include <unistd.h>
466#endif"
467
468ac_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 AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL with_gzip X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LCLIBS PROGS MKINSTALLDIRS MSGFMT GMSGFMT XGETTEXT MSGMERGE ALLOCA GLIBC21 LIBICONV LTLIBICONV INTLBISON USE_NLS BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT INTLOBJS DATADIRNAME INSTOBJEXT GENCAT INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB LIBOBJS LTLIBOBJS'
469ac_subst_files=''
470
471# Initialize some variables set by options.
472ac_init_help=
473ac_init_version=false
474# The variables have the same names as the options, with
475# dashes changed to underlines.
476cache_file=/dev/null
477exec_prefix=NONE
478no_create=
479no_recursion=
480prefix=NONE
481program_prefix=NONE
482program_suffix=NONE
483program_transform_name=s,x,x,
484silent=
485site=
486srcdir=
487verbose=
488x_includes=NONE
489x_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.
496bindir='${exec_prefix}/bin'
497sbindir='${exec_prefix}/sbin'
498libexecdir='${exec_prefix}/libexec'
499datadir='${prefix}/share'
500sysconfdir='${prefix}/etc'
501sharedstatedir='${prefix}/com'
502localstatedir='${prefix}/var'
503libdir='${exec_prefix}/lib'
504includedir='${prefix}/include'
505oldincludedir='/usr/include'
506infodir='${prefix}/info'
507mandir='${prefix}/man'
508
509ac_prev=
510for ac_option
511do
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
783Try \`$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
806done
807
808if 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; }; }
812fi
813
814# Be sure to have absolute paths.
815for ac_var in exec_prefix prefix
816do
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
823done
824
825# Be sure to have absolute paths.
826for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827	      localstatedir libdir includedir oldincludedir infodir mandir
828do
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
835done
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.
840build=$build_alias
841host=$host_alias
842target=$target_alias
843
844# FIXME: To remove some day.
845if 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
853fi
854
855ac_tool_prefix=
856test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
858test "$silent" = yes && exec 6>/dev/null
859
860
861# Find the source files, if location was not specified.
862if 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 ||
871echo 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
881else
882  ac_srcdir_defaulted=no
883fi
884if 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
892fi
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; }; }
896srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897ac_env_build_alias_set=${build_alias+set}
898ac_env_build_alias_value=$build_alias
899ac_cv_env_build_alias_set=${build_alias+set}
900ac_cv_env_build_alias_value=$build_alias
901ac_env_host_alias_set=${host_alias+set}
902ac_env_host_alias_value=$host_alias
903ac_cv_env_host_alias_set=${host_alias+set}
904ac_cv_env_host_alias_value=$host_alias
905ac_env_target_alias_set=${target_alias+set}
906ac_env_target_alias_value=$target_alias
907ac_cv_env_target_alias_set=${target_alias+set}
908ac_cv_env_target_alias_value=$target_alias
909ac_env_CC_set=${CC+set}
910ac_env_CC_value=$CC
911ac_cv_env_CC_set=${CC+set}
912ac_cv_env_CC_value=$CC
913ac_env_CFLAGS_set=${CFLAGS+set}
914ac_env_CFLAGS_value=$CFLAGS
915ac_cv_env_CFLAGS_set=${CFLAGS+set}
916ac_cv_env_CFLAGS_value=$CFLAGS
917ac_env_LDFLAGS_set=${LDFLAGS+set}
918ac_env_LDFLAGS_value=$LDFLAGS
919ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920ac_cv_env_LDFLAGS_value=$LDFLAGS
921ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922ac_env_CPPFLAGS_value=$CPPFLAGS
923ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925ac_env_CPP_set=${CPP+set}
926ac_env_CPP_value=$CPP
927ac_cv_env_CPP_set=${CPP+set}
928ac_cv_env_CPP_value=$CPP
929ac_env_CXX_set=${CXX+set}
930ac_env_CXX_value=$CXX
931ac_cv_env_CXX_set=${CXX+set}
932ac_cv_env_CXX_value=$CXX
933ac_env_CXXFLAGS_set=${CXXFLAGS+set}
934ac_env_CXXFLAGS_value=$CXXFLAGS
935ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
936ac_cv_env_CXXFLAGS_value=$CXXFLAGS
937ac_env_CXXCPP_set=${CXXCPP+set}
938ac_env_CXXCPP_value=$CXXCPP
939ac_cv_env_CXXCPP_set=${CXXCPP+set}
940ac_cv_env_CXXCPP_value=$CXXCPP
941ac_env_F77_set=${F77+set}
942ac_env_F77_value=$F77
943ac_cv_env_F77_set=${F77+set}
944ac_cv_env_F77_value=$F77
945ac_env_FFLAGS_set=${FFLAGS+set}
946ac_env_FFLAGS_value=$FFLAGS
947ac_cv_env_FFLAGS_set=${FFLAGS+set}
948ac_cv_env_FFLAGS_value=$FFLAGS
949
950#
951# Report the --help message.
952#
953if 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 Lincity 1.13.1 to adapt to many kinds of systems.
958
959Usage: $0 [OPTION]... [VAR=VALUE]...
960
961To assign environment variables (e.g., CC, CFLAGS...), specify them as
962VAR=VALUE.  See below for descriptions of some of the useful variables.
963
964Defaults for the options are specified in brackets.
965
966Configuration:
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
980Installation 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
986By default, \`make install' will install all the files in
987\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
988an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989for instance \`--prefix=\$HOME'.
990
991For better control, use the options below.
992
993Fine 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
1010Program 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
1015X features:
1016  --x-includes=DIR    X include files are in DIR
1017  --x-libraries=DIR   X library files are in DIR
1018
1019System types:
1020  --build=BUILD     configure for building on BUILD [guessed]
1021  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1022_ACEOF
1023fi
1024
1025if test -n "$ac_init_help"; then
1026  case $ac_init_help in
1027     short | recursive ) echo "Configuration of Lincity 1.13.1:";;
1028   esac
1029  cat <<\_ACEOF
1030
1031Optional Features:
1032  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1033  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1034  --disable-dependency-tracking Speeds up one-time builds
1035  --enable-dependency-tracking  Do not reject slow dependency extractors
1036  --enable-shared[=PKGS]
1037                          build shared libraries [default=yes]
1038  --enable-static[=PKGS]
1039                          build static libraries [default=yes]
1040  --enable-fast-install[=PKGS]
1041                          optimize for fast installation [default=yes]
1042  --disable-libtool-lock  avoid locking (might break parallel builds)
1043  --disable-rpath         do not hardcode runtime library paths
1044  --disable-nls           do not use Native Language Support
1045
1046Optional Packages:
1047  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1048  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1049  --with-gzip             use gzip
1050  --with-svga             use svga library
1051  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1052  --with-pic              try to use only PIC/non-PIC objects [default=use
1053                          both]
1054  --with-tags[=TAGS]
1055                          include additional configurations [automatic]
1056  --with-x                use the X Window System
1057  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1058  --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
1059  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1060  --with-included-gettext use the GNU gettext library included here
1061  --with-libintl-prefix=DIR  search for libintl in DIR/include and DIR/lib
1062  --without-libintl-prefix     don't search for libintl in includedir and libdir
1063
1064Some influential environment variables:
1065  CC          C compiler command
1066  CFLAGS      C compiler flags
1067  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1068              nonstandard directory <lib dir>
1069  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1070              headers in a nonstandard directory <include dir>
1071  CPP         C preprocessor
1072  CXX         C++ compiler command
1073  CXXFLAGS    C++ compiler flags
1074  CXXCPP      C++ preprocessor
1075  F77         Fortran 77 compiler command
1076  FFLAGS      Fortran 77 compiler flags
1077
1078Use these variables to override the choices made by `configure' or to help
1079it to find libraries and programs with nonstandard names/locations.
1080
1081Report bugs to <lincity-users@lists.sourceforge.net>.
1082_ACEOF
1083fi
1084
1085if test "$ac_init_help" = "recursive"; then
1086  # If there are subdirs, report their specific --help.
1087  ac_popdir=`pwd`
1088  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1089    test -d $ac_dir || continue
1090    ac_builddir=.
1091
1092if test "$ac_dir" != .; then
1093  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1094  # A "../" for each directory in $ac_dir_suffix.
1095  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1096else
1097  ac_dir_suffix= ac_top_builddir=
1098fi
1099
1100case $srcdir in
1101  .)  # No --srcdir option.  We are building in place.
1102    ac_srcdir=.
1103    if test -z "$ac_top_builddir"; then
1104       ac_top_srcdir=.
1105    else
1106       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1107    fi ;;
1108  [\\/]* | ?:[\\/]* )  # Absolute path.
1109    ac_srcdir=$srcdir$ac_dir_suffix;
1110    ac_top_srcdir=$srcdir ;;
1111  *) # Relative path.
1112    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1113    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1114esac
1115
1116# Do not use `cd foo && pwd` to compute absolute paths, because
1117# the directories may not exist.
1118case `pwd` in
1119.) ac_abs_builddir="$ac_dir";;
1120*)
1121  case "$ac_dir" in
1122  .) ac_abs_builddir=`pwd`;;
1123  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1124  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1125  esac;;
1126esac
1127case $ac_abs_builddir in
1128.) ac_abs_top_builddir=${ac_top_builddir}.;;
1129*)
1130  case ${ac_top_builddir}. in
1131  .) ac_abs_top_builddir=$ac_abs_builddir;;
1132  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1133  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1134  esac;;
1135esac
1136case $ac_abs_builddir in
1137.) ac_abs_srcdir=$ac_srcdir;;
1138*)
1139  case $ac_srcdir in
1140  .) ac_abs_srcdir=$ac_abs_builddir;;
1141  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1142  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1143  esac;;
1144esac
1145case $ac_abs_builddir in
1146.) ac_abs_top_srcdir=$ac_top_srcdir;;
1147*)
1148  case $ac_top_srcdir in
1149  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1150  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1151  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1152  esac;;
1153esac
1154
1155    cd $ac_dir
1156    # Check for guested configure; otherwise get Cygnus style configure.
1157    if test -f $ac_srcdir/configure.gnu; then
1158      echo
1159      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1160    elif test -f $ac_srcdir/configure; then
1161      echo
1162      $SHELL $ac_srcdir/configure  --help=recursive
1163    elif test -f $ac_srcdir/configure.ac ||
1164	   test -f $ac_srcdir/configure.in; then
1165      echo
1166      $ac_configure --help
1167    else
1168      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1169    fi
1170    cd "$ac_popdir"
1171  done
1172fi
1173
1174test -n "$ac_init_help" && exit 0
1175if $ac_init_version; then
1176  cat <<\_ACEOF
1177Lincity configure 1.13.1
1178generated by GNU Autoconf 2.59
1179
1180Copyright (C) 2003 Free Software Foundation, Inc.
1181This configure script is free software; the Free Software Foundation
1182gives unlimited permission to copy, distribute and modify it.
1183_ACEOF
1184  exit 0
1185fi
1186exec 5>config.log
1187cat >&5 <<_ACEOF
1188This file contains any messages produced by compilers while
1189running configure, to aid debugging if configure makes a mistake.
1190
1191It was created by Lincity $as_me 1.13.1, which was
1192generated by GNU Autoconf 2.59.  Invocation command line was
1193
1194  $ $0 $@
1195
1196_ACEOF
1197{
1198cat <<_ASUNAME
1199## --------- ##
1200## Platform. ##
1201## --------- ##
1202
1203hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1204uname -m = `(uname -m) 2>/dev/null || echo unknown`
1205uname -r = `(uname -r) 2>/dev/null || echo unknown`
1206uname -s = `(uname -s) 2>/dev/null || echo unknown`
1207uname -v = `(uname -v) 2>/dev/null || echo unknown`
1208
1209/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1210/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1211
1212/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1213/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1214/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1215hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1216/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1217/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1218/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1219
1220_ASUNAME
1221
1222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1223for as_dir in $PATH
1224do
1225  IFS=$as_save_IFS
1226  test -z "$as_dir" && as_dir=.
1227  echo "PATH: $as_dir"
1228done
1229
1230} >&5
1231
1232cat >&5 <<_ACEOF
1233
1234
1235## ----------- ##
1236## Core tests. ##
1237## ----------- ##
1238
1239_ACEOF
1240
1241
1242# Keep a trace of the command line.
1243# Strip out --no-create and --no-recursion so they do not pile up.
1244# Strip out --silent because we don't want to record it for future runs.
1245# Also quote any args containing shell meta-characters.
1246# Make two passes to allow for proper duplicate-argument suppression.
1247ac_configure_args=
1248ac_configure_args0=
1249ac_configure_args1=
1250ac_sep=
1251ac_must_keep_next=false
1252for ac_pass in 1 2
1253do
1254  for ac_arg
1255  do
1256    case $ac_arg in
1257    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1258    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1259    | -silent | --silent | --silen | --sile | --sil)
1260      continue ;;
1261    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1262      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1263    esac
1264    case $ac_pass in
1265    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1266    2)
1267      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1268      if test $ac_must_keep_next = true; then
1269	ac_must_keep_next=false # Got value, back to normal.
1270      else
1271	case $ac_arg in
1272	  *=* | --config-cache | -C | -disable-* | --disable-* \
1273	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1274	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1275	  | -with-* | --with-* | -without-* | --without-* | --x)
1276	    case "$ac_configure_args0 " in
1277	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1278	    esac
1279	    ;;
1280	  -* ) ac_must_keep_next=true ;;
1281	esac
1282      fi
1283      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1284      # Get rid of the leading space.
1285      ac_sep=" "
1286      ;;
1287    esac
1288  done
1289done
1290$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1291$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1292
1293# When interrupted or exit'd, cleanup temporary files, and complete
1294# config.log.  We remove comments because anyway the quotes in there
1295# would cause problems or look ugly.
1296# WARNING: Be sure not to use single quotes in there, as some shells,
1297# such as our DU 5.0 friend, will then `close' the trap.
1298trap 'exit_status=$?
1299  # Save into config.log some information that might help in debugging.
1300  {
1301    echo
1302
1303    cat <<\_ASBOX
1304## ---------------- ##
1305## Cache variables. ##
1306## ---------------- ##
1307_ASBOX
1308    echo
1309    # The following way of writing the cache mishandles newlines in values,
1310{
1311  (set) 2>&1 |
1312    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1313    *ac_space=\ *)
1314      sed -n \
1315	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1316	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1317      ;;
1318    *)
1319      sed -n \
1320	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1321      ;;
1322    esac;
1323}
1324    echo
1325
1326    cat <<\_ASBOX
1327## ----------------- ##
1328## Output variables. ##
1329## ----------------- ##
1330_ASBOX
1331    echo
1332    for ac_var in $ac_subst_vars
1333    do
1334      eval ac_val=$`echo $ac_var`
1335      echo "$ac_var='"'"'$ac_val'"'"'"
1336    done | sort
1337    echo
1338
1339    if test -n "$ac_subst_files"; then
1340      cat <<\_ASBOX
1341## ------------- ##
1342## Output files. ##
1343## ------------- ##
1344_ASBOX
1345      echo
1346      for ac_var in $ac_subst_files
1347      do
1348	eval ac_val=$`echo $ac_var`
1349	echo "$ac_var='"'"'$ac_val'"'"'"
1350      done | sort
1351      echo
1352    fi
1353
1354    if test -s confdefs.h; then
1355      cat <<\_ASBOX
1356## ----------- ##
1357## confdefs.h. ##
1358## ----------- ##
1359_ASBOX
1360      echo
1361      sed "/^$/d" confdefs.h | sort
1362      echo
1363    fi
1364    test "$ac_signal" != 0 &&
1365      echo "$as_me: caught signal $ac_signal"
1366    echo "$as_me: exit $exit_status"
1367  } >&5
1368  rm -f core *.core &&
1369  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1370    exit $exit_status
1371     ' 0
1372for ac_signal in 1 2 13 15; do
1373  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1374done
1375ac_signal=0
1376
1377# confdefs.h avoids OS command line length limits that DEFS can exceed.
1378rm -rf conftest* confdefs.h
1379# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1380echo >confdefs.h
1381
1382# Predefined preprocessor variables.
1383
1384cat >>confdefs.h <<_ACEOF
1385#define PACKAGE_NAME "$PACKAGE_NAME"
1386_ACEOF
1387
1388
1389cat >>confdefs.h <<_ACEOF
1390#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1391_ACEOF
1392
1393
1394cat >>confdefs.h <<_ACEOF
1395#define PACKAGE_VERSION "$PACKAGE_VERSION"
1396_ACEOF
1397
1398
1399cat >>confdefs.h <<_ACEOF
1400#define PACKAGE_STRING "$PACKAGE_STRING"
1401_ACEOF
1402
1403
1404cat >>confdefs.h <<_ACEOF
1405#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1406_ACEOF
1407
1408
1409# Let the site file select an alternate cache file if it wants to.
1410# Prefer explicitly selected file to automatically selected ones.
1411if test -z "$CONFIG_SITE"; then
1412  if test "x$prefix" != xNONE; then
1413    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1414  else
1415    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1416  fi
1417fi
1418for ac_site_file in $CONFIG_SITE; do
1419  if test -r "$ac_site_file"; then
1420    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1421echo "$as_me: loading site script $ac_site_file" >&6;}
1422    sed 's/^/| /' "$ac_site_file" >&5
1423    . "$ac_site_file"
1424  fi
1425done
1426
1427if test -r "$cache_file"; then
1428  # Some versions of bash will fail to source /dev/null (special
1429  # files actually), so we avoid doing that.
1430  if test -f "$cache_file"; then
1431    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1432echo "$as_me: loading cache $cache_file" >&6;}
1433    case $cache_file in
1434      [\\/]* | ?:[\\/]* ) . $cache_file;;
1435      *)                      . ./$cache_file;;
1436    esac
1437  fi
1438else
1439  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1440echo "$as_me: creating cache $cache_file" >&6;}
1441  >$cache_file
1442fi
1443
1444# Check that the precious variables saved in the cache have kept the same
1445# value.
1446ac_cache_corrupted=false
1447for ac_var in `(set) 2>&1 |
1448	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1449  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1450  eval ac_new_set=\$ac_env_${ac_var}_set
1451  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1452  eval ac_new_val="\$ac_env_${ac_var}_value"
1453  case $ac_old_set,$ac_new_set in
1454    set,)
1455      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1456echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1457      ac_cache_corrupted=: ;;
1458    ,set)
1459      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1460echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1461      ac_cache_corrupted=: ;;
1462    ,);;
1463    *)
1464      if test "x$ac_old_val" != "x$ac_new_val"; then
1465	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1466echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1467	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1468echo "$as_me:   former value:  $ac_old_val" >&2;}
1469	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1470echo "$as_me:   current value: $ac_new_val" >&2;}
1471	ac_cache_corrupted=:
1472      fi;;
1473  esac
1474  # Pass precious variables to config.status.
1475  if test "$ac_new_set" = set; then
1476    case $ac_new_val in
1477    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1478      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1479    *) ac_arg=$ac_var=$ac_new_val ;;
1480    esac
1481    case " $ac_configure_args " in
1482      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1483      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1484    esac
1485  fi
1486done
1487if $ac_cache_corrupted; then
1488  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1489echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1490  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1491echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1492   { (exit 1); exit 1; }; }
1493fi
1494
1495ac_ext=c
1496ac_cpp='$CPP $CPPFLAGS'
1497ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1498ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1499ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1526
1527
1528am__api_version="1.7"
1529ac_aux_dir=
1530for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1531  if test -f $ac_dir/install-sh; then
1532    ac_aux_dir=$ac_dir
1533    ac_install_sh="$ac_aux_dir/install-sh -c"
1534    break
1535  elif test -f $ac_dir/install.sh; then
1536    ac_aux_dir=$ac_dir
1537    ac_install_sh="$ac_aux_dir/install.sh -c"
1538    break
1539  elif test -f $ac_dir/shtool; then
1540    ac_aux_dir=$ac_dir
1541    ac_install_sh="$ac_aux_dir/shtool install -c"
1542    break
1543  fi
1544done
1545if test -z "$ac_aux_dir"; then
1546  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1547echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1548   { (exit 1); exit 1; }; }
1549fi
1550ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1551ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1552ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1553
1554# Find a good install program.  We prefer a C program (faster),
1555# so one script is as good as another.  But avoid the broken or
1556# incompatible versions:
1557# SysV /etc/install, /usr/sbin/install
1558# SunOS /usr/etc/install
1559# IRIX /sbin/install
1560# AIX /bin/install
1561# AmigaOS /C/install, which installs bootblocks on floppy discs
1562# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1563# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1564# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1565# OS/2's system install, which has a completely different semantic
1566# ./install, which can be erroneously created by make from ./install.sh.
1567echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1568echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1569if test -z "$INSTALL"; then
1570if test "${ac_cv_path_install+set}" = set; then
1571  echo $ECHO_N "(cached) $ECHO_C" >&6
1572else
1573  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1574for as_dir in $PATH
1575do
1576  IFS=$as_save_IFS
1577  test -z "$as_dir" && as_dir=.
1578  # Account for people who put trailing slashes in PATH elements.
1579case $as_dir/ in
1580  ./ | .// | /cC/* | \
1581  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1582  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1583  /usr/ucb/* ) ;;
1584  *)
1585    # OSF1 and SCO ODT 3.0 have their own names for install.
1586    # Don't use installbsd from OSF since it installs stuff as root
1587    # by default.
1588    for ac_prog in ginstall scoinst install; do
1589      for ac_exec_ext in '' $ac_executable_extensions; do
1590	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1591	  if test $ac_prog = install &&
1592	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1593	    # AIX install.  It has an incompatible calling convention.
1594	    :
1595	  elif test $ac_prog = install &&
1596	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1597	    # program-specific install script used by HP pwplus--don't use.
1598	    :
1599	  else
1600	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1601	    break 3
1602	  fi
1603	fi
1604      done
1605    done
1606    ;;
1607esac
1608done
1609
1610
1611fi
1612  if test "${ac_cv_path_install+set}" = set; then
1613    INSTALL=$ac_cv_path_install
1614  else
1615    # As a last resort, use the slow shell script.  We don't cache a
1616    # path for INSTALL within a source directory, because that will
1617    # break other packages using the cache if that directory is
1618    # removed, or if the path is relative.
1619    INSTALL=$ac_install_sh
1620  fi
1621fi
1622echo "$as_me:$LINENO: result: $INSTALL" >&5
1623echo "${ECHO_T}$INSTALL" >&6
1624
1625# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1626# It thinks the first close brace ends the variable substitution.
1627test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1628
1629test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1630
1631test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1632
1633echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1634echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1635# Just in case
1636sleep 1
1637echo timestamp > conftest.file
1638# Do `set' in a subshell so we don't clobber the current shell's
1639# arguments.  Must try -L first in case configure is actually a
1640# symlink; some systems play weird games with the mod time of symlinks
1641# (eg FreeBSD returns the mod time of the symlink's containing
1642# directory).
1643if (
1644   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1645   if test "$*" = "X"; then
1646      # -L didn't work.
1647      set X `ls -t $srcdir/configure conftest.file`
1648   fi
1649   rm -f conftest.file
1650   if test "$*" != "X $srcdir/configure conftest.file" \
1651      && test "$*" != "X conftest.file $srcdir/configure"; then
1652
1653      # If neither matched, then we have a broken ls.  This can happen
1654      # if, for instance, CONFIG_SHELL is bash and it inherits a
1655      # broken ls alias from the environment.  This has actually
1656      # happened.  Such a system could not be considered "sane".
1657      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1658alias in your environment" >&5
1659echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1660alias in your environment" >&2;}
1661   { (exit 1); exit 1; }; }
1662   fi
1663
1664   test "$2" = conftest.file
1665   )
1666then
1667   # Ok.
1668   :
1669else
1670   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1671Check your system clock" >&5
1672echo "$as_me: error: newly created file is older than distributed files!
1673Check your system clock" >&2;}
1674   { (exit 1); exit 1; }; }
1675fi
1676echo "$as_me:$LINENO: result: yes" >&5
1677echo "${ECHO_T}yes" >&6
1678test "$program_prefix" != NONE &&
1679  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1680# Use a double $ so make ignores it.
1681test "$program_suffix" != NONE &&
1682  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1683# Double any \ or $.  echo might interpret backslashes.
1684# By default was `s,x,x', remove it if useless.
1685cat <<\_ACEOF >conftest.sed
1686s/[\\$]/&&/g;s/;s,x,x,$//
1687_ACEOF
1688program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1689rm conftest.sed
1690
1691
1692# expand $ac_aux_dir to an absolute path
1693am_aux_dir=`cd $ac_aux_dir && pwd`
1694
1695test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1696# Use eval to expand $SHELL
1697if eval "$MISSING --run true"; then
1698  am_missing_run="$MISSING --run "
1699else
1700  am_missing_run=
1701  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1702echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1703fi
1704
1705for ac_prog in gawk mawk nawk awk
1706do
1707  # Extract the first word of "$ac_prog", so it can be a program name with args.
1708set dummy $ac_prog; ac_word=$2
1709echo "$as_me:$LINENO: checking for $ac_word" >&5
1710echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1711if test "${ac_cv_prog_AWK+set}" = set; then
1712  echo $ECHO_N "(cached) $ECHO_C" >&6
1713else
1714  if test -n "$AWK"; then
1715  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1716else
1717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1718for as_dir in $PATH
1719do
1720  IFS=$as_save_IFS
1721  test -z "$as_dir" && as_dir=.
1722  for ac_exec_ext in '' $ac_executable_extensions; do
1723  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1724    ac_cv_prog_AWK="$ac_prog"
1725    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1726    break 2
1727  fi
1728done
1729done
1730
1731fi
1732fi
1733AWK=$ac_cv_prog_AWK
1734if test -n "$AWK"; then
1735  echo "$as_me:$LINENO: result: $AWK" >&5
1736echo "${ECHO_T}$AWK" >&6
1737else
1738  echo "$as_me:$LINENO: result: no" >&5
1739echo "${ECHO_T}no" >&6
1740fi
1741
1742  test -n "$AWK" && break
1743done
1744
1745echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1746echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1747set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1748if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1749  echo $ECHO_N "(cached) $ECHO_C" >&6
1750else
1751  cat >conftest.make <<\_ACEOF
1752all:
1753	@echo 'ac_maketemp="$(MAKE)"'
1754_ACEOF
1755# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1756eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1757if test -n "$ac_maketemp"; then
1758  eval ac_cv_prog_make_${ac_make}_set=yes
1759else
1760  eval ac_cv_prog_make_${ac_make}_set=no
1761fi
1762rm -f conftest.make
1763fi
1764if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1765  echo "$as_me:$LINENO: result: yes" >&5
1766echo "${ECHO_T}yes" >&6
1767  SET_MAKE=
1768else
1769  echo "$as_me:$LINENO: result: no" >&5
1770echo "${ECHO_T}no" >&6
1771  SET_MAKE="MAKE=${MAKE-make}"
1772fi
1773
1774rm -rf .tst 2>/dev/null
1775mkdir .tst 2>/dev/null
1776if test -d .tst; then
1777  am__leading_dot=.
1778else
1779  am__leading_dot=_
1780fi
1781rmdir .tst 2>/dev/null
1782
1783 # test to see if srcdir already configured
1784if test "`cd $srcdir && pwd`" != "`pwd`" &&
1785   test -f $srcdir/config.status; then
1786  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1787echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1788   { (exit 1); exit 1; }; }
1789fi
1790
1791# test whether we have cygpath
1792if test -z "$CYGPATH_W"; then
1793  if (cygpath --version) >/dev/null 2>/dev/null; then
1794    CYGPATH_W='cygpath -w'
1795  else
1796    CYGPATH_W=echo
1797  fi
1798fi
1799
1800
1801# Define the identity of the package.
1802 PACKAGE='lincity'
1803 VERSION='1.13.1'
1804
1805
1806cat >>confdefs.h <<_ACEOF
1807#define PACKAGE "$PACKAGE"
1808_ACEOF
1809
1810
1811cat >>confdefs.h <<_ACEOF
1812#define VERSION "$VERSION"
1813_ACEOF
1814
1815# Some tools Automake needs.
1816
1817ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1818
1819
1820AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1821
1822
1823AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1824
1825
1826AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1827
1828
1829MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1830
1831
1832AMTAR=${AMTAR-"${am_missing_run}tar"}
1833
1834install_sh=${install_sh-"$am_aux_dir/install-sh"}
1835
1836# Installed binaries are usually stripped using `strip' when the user
1837# run `make install-strip'.  However `strip' might not be the right
1838# tool to use in cross-compilation environments, therefore Automake
1839# will honor the `STRIP' environment variable to overrule this program.
1840if test "$cross_compiling" != no; then
1841  if test -n "$ac_tool_prefix"; then
1842  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1843set dummy ${ac_tool_prefix}strip; ac_word=$2
1844echo "$as_me:$LINENO: checking for $ac_word" >&5
1845echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1846if test "${ac_cv_prog_STRIP+set}" = set; then
1847  echo $ECHO_N "(cached) $ECHO_C" >&6
1848else
1849  if test -n "$STRIP"; then
1850  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1851else
1852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1853for as_dir in $PATH
1854do
1855  IFS=$as_save_IFS
1856  test -z "$as_dir" && as_dir=.
1857  for ac_exec_ext in '' $ac_executable_extensions; do
1858  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1859    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1860    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1861    break 2
1862  fi
1863done
1864done
1865
1866fi
1867fi
1868STRIP=$ac_cv_prog_STRIP
1869if test -n "$STRIP"; then
1870  echo "$as_me:$LINENO: result: $STRIP" >&5
1871echo "${ECHO_T}$STRIP" >&6
1872else
1873  echo "$as_me:$LINENO: result: no" >&5
1874echo "${ECHO_T}no" >&6
1875fi
1876
1877fi
1878if test -z "$ac_cv_prog_STRIP"; then
1879  ac_ct_STRIP=$STRIP
1880  # Extract the first word of "strip", so it can be a program name with args.
1881set dummy strip; ac_word=$2
1882echo "$as_me:$LINENO: checking for $ac_word" >&5
1883echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1884if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1885  echo $ECHO_N "(cached) $ECHO_C" >&6
1886else
1887  if test -n "$ac_ct_STRIP"; then
1888  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1889else
1890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1891for as_dir in $PATH
1892do
1893  IFS=$as_save_IFS
1894  test -z "$as_dir" && as_dir=.
1895  for ac_exec_ext in '' $ac_executable_extensions; do
1896  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1897    ac_cv_prog_ac_ct_STRIP="strip"
1898    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1899    break 2
1900  fi
1901done
1902done
1903
1904  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1905fi
1906fi
1907ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1908if test -n "$ac_ct_STRIP"; then
1909  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1910echo "${ECHO_T}$ac_ct_STRIP" >&6
1911else
1912  echo "$as_me:$LINENO: result: no" >&5
1913echo "${ECHO_T}no" >&6
1914fi
1915
1916  STRIP=$ac_ct_STRIP
1917else
1918  STRIP="$ac_cv_prog_STRIP"
1919fi
1920
1921fi
1922INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1923
1924# We need awk for the "check" target.  The system "awk" is bad on
1925# some platforms.
1926
1927
1928
1929
1930
1931# Check whether --with-gzip or --without-gzip was given.
1932if test "${with_gzip+set}" = set; then
1933  withval="$with_gzip"
1934
1935fi;
1936
1937# Check whether --with-svga or --without-svga was given.
1938if test "${with_svga+set}" = set; then
1939  withval="$with_svga"
1940
1941fi;
1942
1943DEPDIR="${am__leading_dot}deps"
1944
1945          ac_config_commands="$ac_config_commands depfiles"
1946
1947
1948am_make=${MAKE-make}
1949cat > confinc << 'END'
1950am__doit:
1951	@echo done
1952.PHONY: am__doit
1953END
1954# If we don't find an include directive, just comment out the code.
1955echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
1956echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
1957am__include="#"
1958am__quote=
1959_am_result=none
1960# First try GNU make style include.
1961echo "include confinc" > confmf
1962# We grep out `Entering directory' and `Leaving directory'
1963# messages which can occur if `w' ends up in MAKEFLAGS.
1964# In particular we don't look at `^make:' because GNU make might
1965# be invoked under some other name (usually "gmake"), in which
1966# case it prints its new name instead of `make'.
1967if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
1968   am__include=include
1969   am__quote=
1970   _am_result=GNU
1971fi
1972# Now try BSD make style include.
1973if test "$am__include" = "#"; then
1974   echo '.include "confinc"' > confmf
1975   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1976      am__include=.include
1977      am__quote="\""
1978      _am_result=BSD
1979   fi
1980fi
1981
1982
1983echo "$as_me:$LINENO: result: $_am_result" >&5
1984echo "${ECHO_T}$_am_result" >&6
1985rm -f confinc confmf
1986
1987# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1988if test "${enable_dependency_tracking+set}" = set; then
1989  enableval="$enable_dependency_tracking"
1990
1991fi;
1992if test "x$enable_dependency_tracking" != xno; then
1993  am_depcomp="$ac_aux_dir/depcomp"
1994  AMDEPBACKSLASH='\'
1995fi
1996
1997
1998if test "x$enable_dependency_tracking" != xno; then
1999  AMDEP_TRUE=
2000  AMDEP_FALSE='#'
2001else
2002  AMDEP_TRUE='#'
2003  AMDEP_FALSE=
2004fi
2005
2006
2007
2008ac_ext=c
2009ac_cpp='$CPP $CPPFLAGS'
2010ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2011ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2012ac_compiler_gnu=$ac_cv_c_compiler_gnu
2013if test -n "$ac_tool_prefix"; then
2014  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2015set dummy ${ac_tool_prefix}gcc; ac_word=$2
2016echo "$as_me:$LINENO: checking for $ac_word" >&5
2017echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2018if test "${ac_cv_prog_CC+set}" = set; then
2019  echo $ECHO_N "(cached) $ECHO_C" >&6
2020else
2021  if test -n "$CC"; then
2022  ac_cv_prog_CC="$CC" # Let the user override the test.
2023else
2024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2025for as_dir in $PATH
2026do
2027  IFS=$as_save_IFS
2028  test -z "$as_dir" && as_dir=.
2029  for ac_exec_ext in '' $ac_executable_extensions; do
2030  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2031    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2032    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2033    break 2
2034  fi
2035done
2036done
2037
2038fi
2039fi
2040CC=$ac_cv_prog_CC
2041if test -n "$CC"; then
2042  echo "$as_me:$LINENO: result: $CC" >&5
2043echo "${ECHO_T}$CC" >&6
2044else
2045  echo "$as_me:$LINENO: result: no" >&5
2046echo "${ECHO_T}no" >&6
2047fi
2048
2049fi
2050if test -z "$ac_cv_prog_CC"; then
2051  ac_ct_CC=$CC
2052  # Extract the first word of "gcc", so it can be a program name with args.
2053set dummy gcc; ac_word=$2
2054echo "$as_me:$LINENO: checking for $ac_word" >&5
2055echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2056if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2057  echo $ECHO_N "(cached) $ECHO_C" >&6
2058else
2059  if test -n "$ac_ct_CC"; then
2060  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2061else
2062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2063for as_dir in $PATH
2064do
2065  IFS=$as_save_IFS
2066  test -z "$as_dir" && as_dir=.
2067  for ac_exec_ext in '' $ac_executable_extensions; do
2068  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2069    ac_cv_prog_ac_ct_CC="gcc"
2070    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2071    break 2
2072  fi
2073done
2074done
2075
2076fi
2077fi
2078ac_ct_CC=$ac_cv_prog_ac_ct_CC
2079if test -n "$ac_ct_CC"; then
2080  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2081echo "${ECHO_T}$ac_ct_CC" >&6
2082else
2083  echo "$as_me:$LINENO: result: no" >&5
2084echo "${ECHO_T}no" >&6
2085fi
2086
2087  CC=$ac_ct_CC
2088else
2089  CC="$ac_cv_prog_CC"
2090fi
2091
2092if test -z "$CC"; then
2093  if test -n "$ac_tool_prefix"; then
2094  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2095set dummy ${ac_tool_prefix}cc; ac_word=$2
2096echo "$as_me:$LINENO: checking for $ac_word" >&5
2097echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2098if test "${ac_cv_prog_CC+set}" = set; then
2099  echo $ECHO_N "(cached) $ECHO_C" >&6
2100else
2101  if test -n "$CC"; then
2102  ac_cv_prog_CC="$CC" # Let the user override the test.
2103else
2104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2105for as_dir in $PATH
2106do
2107  IFS=$as_save_IFS
2108  test -z "$as_dir" && as_dir=.
2109  for ac_exec_ext in '' $ac_executable_extensions; do
2110  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2111    ac_cv_prog_CC="${ac_tool_prefix}cc"
2112    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2113    break 2
2114  fi
2115done
2116done
2117
2118fi
2119fi
2120CC=$ac_cv_prog_CC
2121if test -n "$CC"; then
2122  echo "$as_me:$LINENO: result: $CC" >&5
2123echo "${ECHO_T}$CC" >&6
2124else
2125  echo "$as_me:$LINENO: result: no" >&5
2126echo "${ECHO_T}no" >&6
2127fi
2128
2129fi
2130if test -z "$ac_cv_prog_CC"; then
2131  ac_ct_CC=$CC
2132  # Extract the first word of "cc", so it can be a program name with args.
2133set dummy cc; ac_word=$2
2134echo "$as_me:$LINENO: checking for $ac_word" >&5
2135echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2136if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2137  echo $ECHO_N "(cached) $ECHO_C" >&6
2138else
2139  if test -n "$ac_ct_CC"; then
2140  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2141else
2142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2143for as_dir in $PATH
2144do
2145  IFS=$as_save_IFS
2146  test -z "$as_dir" && as_dir=.
2147  for ac_exec_ext in '' $ac_executable_extensions; do
2148  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2149    ac_cv_prog_ac_ct_CC="cc"
2150    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2151    break 2
2152  fi
2153done
2154done
2155
2156fi
2157fi
2158ac_ct_CC=$ac_cv_prog_ac_ct_CC
2159if test -n "$ac_ct_CC"; then
2160  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2161echo "${ECHO_T}$ac_ct_CC" >&6
2162else
2163  echo "$as_me:$LINENO: result: no" >&5
2164echo "${ECHO_T}no" >&6
2165fi
2166
2167  CC=$ac_ct_CC
2168else
2169  CC="$ac_cv_prog_CC"
2170fi
2171
2172fi
2173if test -z "$CC"; then
2174  # Extract the first word of "cc", so it can be a program name with args.
2175set dummy cc; ac_word=$2
2176echo "$as_me:$LINENO: checking for $ac_word" >&5
2177echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2178if test "${ac_cv_prog_CC+set}" = set; then
2179  echo $ECHO_N "(cached) $ECHO_C" >&6
2180else
2181  if test -n "$CC"; then
2182  ac_cv_prog_CC="$CC" # Let the user override the test.
2183else
2184  ac_prog_rejected=no
2185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2186for as_dir in $PATH
2187do
2188  IFS=$as_save_IFS
2189  test -z "$as_dir" && as_dir=.
2190  for ac_exec_ext in '' $ac_executable_extensions; do
2191  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2192    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2193       ac_prog_rejected=yes
2194       continue
2195     fi
2196    ac_cv_prog_CC="cc"
2197    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2198    break 2
2199  fi
2200done
2201done
2202
2203if test $ac_prog_rejected = yes; then
2204  # We found a bogon in the path, so make sure we never use it.
2205  set dummy $ac_cv_prog_CC
2206  shift
2207  if test $# != 0; then
2208    # We chose a different compiler from the bogus one.
2209    # However, it has the same basename, so the bogon will be chosen
2210    # first if we set CC to just the basename; use the full file name.
2211    shift
2212    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2213  fi
2214fi
2215fi
2216fi
2217CC=$ac_cv_prog_CC
2218if test -n "$CC"; then
2219  echo "$as_me:$LINENO: result: $CC" >&5
2220echo "${ECHO_T}$CC" >&6
2221else
2222  echo "$as_me:$LINENO: result: no" >&5
2223echo "${ECHO_T}no" >&6
2224fi
2225
2226fi
2227if test -z "$CC"; then
2228  if test -n "$ac_tool_prefix"; then
2229  for ac_prog in cl
2230  do
2231    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2232set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2233echo "$as_me:$LINENO: checking for $ac_word" >&5
2234echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2235if test "${ac_cv_prog_CC+set}" = set; then
2236  echo $ECHO_N "(cached) $ECHO_C" >&6
2237else
2238  if test -n "$CC"; then
2239  ac_cv_prog_CC="$CC" # Let the user override the test.
2240else
2241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2242for as_dir in $PATH
2243do
2244  IFS=$as_save_IFS
2245  test -z "$as_dir" && as_dir=.
2246  for ac_exec_ext in '' $ac_executable_extensions; do
2247  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2248    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2249    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2250    break 2
2251  fi
2252done
2253done
2254
2255fi
2256fi
2257CC=$ac_cv_prog_CC
2258if test -n "$CC"; then
2259  echo "$as_me:$LINENO: result: $CC" >&5
2260echo "${ECHO_T}$CC" >&6
2261else
2262  echo "$as_me:$LINENO: result: no" >&5
2263echo "${ECHO_T}no" >&6
2264fi
2265
2266    test -n "$CC" && break
2267  done
2268fi
2269if test -z "$CC"; then
2270  ac_ct_CC=$CC
2271  for ac_prog in cl
2272do
2273  # Extract the first word of "$ac_prog", so it can be a program name with args.
2274set dummy $ac_prog; ac_word=$2
2275echo "$as_me:$LINENO: checking for $ac_word" >&5
2276echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2277if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2278  echo $ECHO_N "(cached) $ECHO_C" >&6
2279else
2280  if test -n "$ac_ct_CC"; then
2281  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2282else
2283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2284for as_dir in $PATH
2285do
2286  IFS=$as_save_IFS
2287  test -z "$as_dir" && as_dir=.
2288  for ac_exec_ext in '' $ac_executable_extensions; do
2289  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2290    ac_cv_prog_ac_ct_CC="$ac_prog"
2291    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2292    break 2
2293  fi
2294done
2295done
2296
2297fi
2298fi
2299ac_ct_CC=$ac_cv_prog_ac_ct_CC
2300if test -n "$ac_ct_CC"; then
2301  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2302echo "${ECHO_T}$ac_ct_CC" >&6
2303else
2304  echo "$as_me:$LINENO: result: no" >&5
2305echo "${ECHO_T}no" >&6
2306fi
2307
2308  test -n "$ac_ct_CC" && break
2309done
2310
2311  CC=$ac_ct_CC
2312fi
2313
2314fi
2315
2316
2317test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2318See \`config.log' for more details." >&5
2319echo "$as_me: error: no acceptable C compiler found in \$PATH
2320See \`config.log' for more details." >&2;}
2321   { (exit 1); exit 1; }; }
2322
2323# Provide some information about the compiler.
2324echo "$as_me:$LINENO:" \
2325     "checking for C compiler version" >&5
2326ac_compiler=`set X $ac_compile; echo $2`
2327{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2328  (eval $ac_compiler --version </dev/null >&5) 2>&5
2329  ac_status=$?
2330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331  (exit $ac_status); }
2332{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2333  (eval $ac_compiler -v </dev/null >&5) 2>&5
2334  ac_status=$?
2335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336  (exit $ac_status); }
2337{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2338  (eval $ac_compiler -V </dev/null >&5) 2>&5
2339  ac_status=$?
2340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2341  (exit $ac_status); }
2342
2343cat >conftest.$ac_ext <<_ACEOF
2344/* confdefs.h.  */
2345_ACEOF
2346cat confdefs.h >>conftest.$ac_ext
2347cat >>conftest.$ac_ext <<_ACEOF
2348/* end confdefs.h.  */
2349
2350int
2351main ()
2352{
2353
2354  ;
2355  return 0;
2356}
2357_ACEOF
2358ac_clean_files_save=$ac_clean_files
2359ac_clean_files="$ac_clean_files a.out a.exe b.out"
2360# Try to create an executable without -o first, disregard a.out.
2361# It will help us diagnose broken compilers, and finding out an intuition
2362# of exeext.
2363echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2364echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2365ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2366if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2367  (eval $ac_link_default) 2>&5
2368  ac_status=$?
2369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370  (exit $ac_status); }; then
2371  # Find the output, starting from the most likely.  This scheme is
2372# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2373# resort.
2374
2375# Be careful to initialize this variable, since it used to be cached.
2376# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2377ac_cv_exeext=
2378# b.out is created by i960 compilers.
2379for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2380do
2381  test -f "$ac_file" || continue
2382  case $ac_file in
2383    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2384	;;
2385    conftest.$ac_ext )
2386	# This is the source file.
2387	;;
2388    [ab].out )
2389	# We found the default executable, but exeext='' is most
2390	# certainly right.
2391	break;;
2392    *.* )
2393	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2394	# FIXME: I believe we export ac_cv_exeext for Libtool,
2395	# but it would be cool to find out if it's true.  Does anybody
2396	# maintain Libtool? --akim.
2397	export ac_cv_exeext
2398	break;;
2399    * )
2400	break;;
2401  esac
2402done
2403else
2404  echo "$as_me: failed program was:" >&5
2405sed 's/^/| /' conftest.$ac_ext >&5
2406
2407{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2408See \`config.log' for more details." >&5
2409echo "$as_me: error: C compiler cannot create executables
2410See \`config.log' for more details." >&2;}
2411   { (exit 77); exit 77; }; }
2412fi
2413
2414ac_exeext=$ac_cv_exeext
2415echo "$as_me:$LINENO: result: $ac_file" >&5
2416echo "${ECHO_T}$ac_file" >&6
2417
2418# Check the compiler produces executables we can run.  If not, either
2419# the compiler is broken, or we cross compile.
2420echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2421echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2422# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2423# If not cross compiling, check that we can run a simple program.
2424if test "$cross_compiling" != yes; then
2425  if { ac_try='./$ac_file'
2426  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2427  (eval $ac_try) 2>&5
2428  ac_status=$?
2429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430  (exit $ac_status); }; }; then
2431    cross_compiling=no
2432  else
2433    if test "$cross_compiling" = maybe; then
2434	cross_compiling=yes
2435    else
2436	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2437If you meant to cross compile, use \`--host'.
2438See \`config.log' for more details." >&5
2439echo "$as_me: error: cannot run C compiled programs.
2440If you meant to cross compile, use \`--host'.
2441See \`config.log' for more details." >&2;}
2442   { (exit 1); exit 1; }; }
2443    fi
2444  fi
2445fi
2446echo "$as_me:$LINENO: result: yes" >&5
2447echo "${ECHO_T}yes" >&6
2448
2449rm -f a.out a.exe conftest$ac_cv_exeext b.out
2450ac_clean_files=$ac_clean_files_save
2451# Check the compiler produces executables we can run.  If not, either
2452# the compiler is broken, or we cross compile.
2453echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2454echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2455echo "$as_me:$LINENO: result: $cross_compiling" >&5
2456echo "${ECHO_T}$cross_compiling" >&6
2457
2458echo "$as_me:$LINENO: checking for suffix of executables" >&5
2459echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2460if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2461  (eval $ac_link) 2>&5
2462  ac_status=$?
2463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464  (exit $ac_status); }; then
2465  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2466# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2467# work properly (i.e., refer to `conftest.exe'), while it won't with
2468# `rm'.
2469for ac_file in conftest.exe conftest conftest.*; do
2470  test -f "$ac_file" || continue
2471  case $ac_file in
2472    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2473    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2474	  export ac_cv_exeext
2475	  break;;
2476    * ) break;;
2477  esac
2478done
2479else
2480  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2481See \`config.log' for more details." >&5
2482echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2483See \`config.log' for more details." >&2;}
2484   { (exit 1); exit 1; }; }
2485fi
2486
2487rm -f conftest$ac_cv_exeext
2488echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2489echo "${ECHO_T}$ac_cv_exeext" >&6
2490
2491rm -f conftest.$ac_ext
2492EXEEXT=$ac_cv_exeext
2493ac_exeext=$EXEEXT
2494echo "$as_me:$LINENO: checking for suffix of object files" >&5
2495echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2496if test "${ac_cv_objext+set}" = set; then
2497  echo $ECHO_N "(cached) $ECHO_C" >&6
2498else
2499  cat >conftest.$ac_ext <<_ACEOF
2500/* confdefs.h.  */
2501_ACEOF
2502cat confdefs.h >>conftest.$ac_ext
2503cat >>conftest.$ac_ext <<_ACEOF
2504/* end confdefs.h.  */
2505
2506int
2507main ()
2508{
2509
2510  ;
2511  return 0;
2512}
2513_ACEOF
2514rm -f conftest.o conftest.obj
2515if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2516  (eval $ac_compile) 2>&5
2517  ac_status=$?
2518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519  (exit $ac_status); }; then
2520  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2521  case $ac_file in
2522    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2523    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2524       break;;
2525  esac
2526done
2527else
2528  echo "$as_me: failed program was:" >&5
2529sed 's/^/| /' conftest.$ac_ext >&5
2530
2531{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2532See \`config.log' for more details." >&5
2533echo "$as_me: error: cannot compute suffix of object files: cannot compile
2534See \`config.log' for more details." >&2;}
2535   { (exit 1); exit 1; }; }
2536fi
2537
2538rm -f conftest.$ac_cv_objext conftest.$ac_ext
2539fi
2540echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2541echo "${ECHO_T}$ac_cv_objext" >&6
2542OBJEXT=$ac_cv_objext
2543ac_objext=$OBJEXT
2544echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2545echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2546if test "${ac_cv_c_compiler_gnu+set}" = set; then
2547  echo $ECHO_N "(cached) $ECHO_C" >&6
2548else
2549  cat >conftest.$ac_ext <<_ACEOF
2550/* confdefs.h.  */
2551_ACEOF
2552cat confdefs.h >>conftest.$ac_ext
2553cat >>conftest.$ac_ext <<_ACEOF
2554/* end confdefs.h.  */
2555
2556int
2557main ()
2558{
2559#ifndef __GNUC__
2560       choke me
2561#endif
2562
2563  ;
2564  return 0;
2565}
2566_ACEOF
2567rm -f conftest.$ac_objext
2568if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2569  (eval $ac_compile) 2>conftest.er1
2570  ac_status=$?
2571  grep -v '^ *+' conftest.er1 >conftest.err
2572  rm -f conftest.er1
2573  cat conftest.err >&5
2574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575  (exit $ac_status); } &&
2576	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2577  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2578  (eval $ac_try) 2>&5
2579  ac_status=$?
2580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581  (exit $ac_status); }; } &&
2582	 { ac_try='test -s conftest.$ac_objext'
2583  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2584  (eval $ac_try) 2>&5
2585  ac_status=$?
2586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587  (exit $ac_status); }; }; then
2588  ac_compiler_gnu=yes
2589else
2590  echo "$as_me: failed program was:" >&5
2591sed 's/^/| /' conftest.$ac_ext >&5
2592
2593ac_compiler_gnu=no
2594fi
2595rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2596ac_cv_c_compiler_gnu=$ac_compiler_gnu
2597
2598fi
2599echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2600echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2601GCC=`test $ac_compiler_gnu = yes && echo yes`
2602ac_test_CFLAGS=${CFLAGS+set}
2603ac_save_CFLAGS=$CFLAGS
2604CFLAGS="-g"
2605echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2606echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2607if test "${ac_cv_prog_cc_g+set}" = set; then
2608  echo $ECHO_N "(cached) $ECHO_C" >&6
2609else
2610  cat >conftest.$ac_ext <<_ACEOF
2611/* confdefs.h.  */
2612_ACEOF
2613cat confdefs.h >>conftest.$ac_ext
2614cat >>conftest.$ac_ext <<_ACEOF
2615/* end confdefs.h.  */
2616
2617int
2618main ()
2619{
2620
2621  ;
2622  return 0;
2623}
2624_ACEOF
2625rm -f conftest.$ac_objext
2626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2627  (eval $ac_compile) 2>conftest.er1
2628  ac_status=$?
2629  grep -v '^ *+' conftest.er1 >conftest.err
2630  rm -f conftest.er1
2631  cat conftest.err >&5
2632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633  (exit $ac_status); } &&
2634	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2635  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2636  (eval $ac_try) 2>&5
2637  ac_status=$?
2638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639  (exit $ac_status); }; } &&
2640	 { ac_try='test -s conftest.$ac_objext'
2641  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2642  (eval $ac_try) 2>&5
2643  ac_status=$?
2644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2645  (exit $ac_status); }; }; then
2646  ac_cv_prog_cc_g=yes
2647else
2648  echo "$as_me: failed program was:" >&5
2649sed 's/^/| /' conftest.$ac_ext >&5
2650
2651ac_cv_prog_cc_g=no
2652fi
2653rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2654fi
2655echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2656echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2657if test "$ac_test_CFLAGS" = set; then
2658  CFLAGS=$ac_save_CFLAGS
2659elif test $ac_cv_prog_cc_g = yes; then
2660  if test "$GCC" = yes; then
2661    CFLAGS="-g -O2"
2662  else
2663    CFLAGS="-g"
2664  fi
2665else
2666  if test "$GCC" = yes; then
2667    CFLAGS="-O2"
2668  else
2669    CFLAGS=
2670  fi
2671fi
2672echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2673echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2674if test "${ac_cv_prog_cc_stdc+set}" = set; then
2675  echo $ECHO_N "(cached) $ECHO_C" >&6
2676else
2677  ac_cv_prog_cc_stdc=no
2678ac_save_CC=$CC
2679cat >conftest.$ac_ext <<_ACEOF
2680/* confdefs.h.  */
2681_ACEOF
2682cat confdefs.h >>conftest.$ac_ext
2683cat >>conftest.$ac_ext <<_ACEOF
2684/* end confdefs.h.  */
2685#include <stdarg.h>
2686#include <stdio.h>
2687#include <sys/types.h>
2688#include <sys/stat.h>
2689/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2690struct buf { int x; };
2691FILE * (*rcsopen) (struct buf *, struct stat *, int);
2692static char *e (p, i)
2693     char **p;
2694     int i;
2695{
2696  return p[i];
2697}
2698static char *f (char * (*g) (char **, int), char **p, ...)
2699{
2700  char *s;
2701  va_list v;
2702  va_start (v,p);
2703  s = g (p, va_arg (v,int));
2704  va_end (v);
2705  return s;
2706}
2707
2708/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2709   function prototypes and stuff, but not '\xHH' hex character constants.
2710   These don't provoke an error unfortunately, instead are silently treated
2711   as 'x'.  The following induces an error, until -std1 is added to get
2712   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2713   array size at least.  It's necessary to write '\x00'==0 to get something
2714   that's true only with -std1.  */
2715int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2716
2717int test (int i, double x);
2718struct s1 {int (*f) (int a);};
2719struct s2 {int (*f) (double a);};
2720int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2721int argc;
2722char **argv;
2723int
2724main ()
2725{
2726return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2727  ;
2728  return 0;
2729}
2730_ACEOF
2731# Don't try gcc -ansi; that turns off useful extensions and
2732# breaks some systems' header files.
2733# AIX			-qlanglvl=ansi
2734# Ultrix and OSF/1	-std1
2735# HP-UX 10.20 and later	-Ae
2736# HP-UX older versions	-Aa -D_HPUX_SOURCE
2737# SVR4			-Xc -D__EXTENSIONS__
2738for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2739do
2740  CC="$ac_save_CC $ac_arg"
2741  rm -f conftest.$ac_objext
2742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2743  (eval $ac_compile) 2>conftest.er1
2744  ac_status=$?
2745  grep -v '^ *+' conftest.er1 >conftest.err
2746  rm -f conftest.er1
2747  cat conftest.err >&5
2748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749  (exit $ac_status); } &&
2750	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2751  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2752  (eval $ac_try) 2>&5
2753  ac_status=$?
2754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755  (exit $ac_status); }; } &&
2756	 { ac_try='test -s conftest.$ac_objext'
2757  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2758  (eval $ac_try) 2>&5
2759  ac_status=$?
2760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761  (exit $ac_status); }; }; then
2762  ac_cv_prog_cc_stdc=$ac_arg
2763break
2764else
2765  echo "$as_me: failed program was:" >&5
2766sed 's/^/| /' conftest.$ac_ext >&5
2767
2768fi
2769rm -f conftest.err conftest.$ac_objext
2770done
2771rm -f conftest.$ac_ext conftest.$ac_objext
2772CC=$ac_save_CC
2773
2774fi
2775
2776case "x$ac_cv_prog_cc_stdc" in
2777  x|xno)
2778    echo "$as_me:$LINENO: result: none needed" >&5
2779echo "${ECHO_T}none needed" >&6 ;;
2780  *)
2781    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2782echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2783    CC="$CC $ac_cv_prog_cc_stdc" ;;
2784esac
2785
2786# Some people use a C++ compiler to compile C.  Since we use `exit',
2787# in C++ we need to declare it.  In case someone uses the same compiler
2788# for both compiling C and C++ we need to have the C++ compiler decide
2789# the declaration of exit, since it's the most demanding environment.
2790cat >conftest.$ac_ext <<_ACEOF
2791#ifndef __cplusplus
2792  choke me
2793#endif
2794_ACEOF
2795rm -f conftest.$ac_objext
2796if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2797  (eval $ac_compile) 2>conftest.er1
2798  ac_status=$?
2799  grep -v '^ *+' conftest.er1 >conftest.err
2800  rm -f conftest.er1
2801  cat conftest.err >&5
2802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803  (exit $ac_status); } &&
2804	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2805  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2806  (eval $ac_try) 2>&5
2807  ac_status=$?
2808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809  (exit $ac_status); }; } &&
2810	 { ac_try='test -s conftest.$ac_objext'
2811  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2812  (eval $ac_try) 2>&5
2813  ac_status=$?
2814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815  (exit $ac_status); }; }; then
2816  for ac_declaration in \
2817   '' \
2818   'extern "C" void std::exit (int) throw (); using std::exit;' \
2819   'extern "C" void std::exit (int); using std::exit;' \
2820   'extern "C" void exit (int) throw ();' \
2821   'extern "C" void exit (int);' \
2822   'void exit (int);'
2823do
2824  cat >conftest.$ac_ext <<_ACEOF
2825/* confdefs.h.  */
2826_ACEOF
2827cat confdefs.h >>conftest.$ac_ext
2828cat >>conftest.$ac_ext <<_ACEOF
2829/* end confdefs.h.  */
2830$ac_declaration
2831#include <stdlib.h>
2832int
2833main ()
2834{
2835exit (42);
2836  ;
2837  return 0;
2838}
2839_ACEOF
2840rm -f conftest.$ac_objext
2841if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2842  (eval $ac_compile) 2>conftest.er1
2843  ac_status=$?
2844  grep -v '^ *+' conftest.er1 >conftest.err
2845  rm -f conftest.er1
2846  cat conftest.err >&5
2847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848  (exit $ac_status); } &&
2849	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2850  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2851  (eval $ac_try) 2>&5
2852  ac_status=$?
2853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854  (exit $ac_status); }; } &&
2855	 { ac_try='test -s conftest.$ac_objext'
2856  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2857  (eval $ac_try) 2>&5
2858  ac_status=$?
2859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860  (exit $ac_status); }; }; then
2861  :
2862else
2863  echo "$as_me: failed program was:" >&5
2864sed 's/^/| /' conftest.$ac_ext >&5
2865
2866continue
2867fi
2868rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2869  cat >conftest.$ac_ext <<_ACEOF
2870/* confdefs.h.  */
2871_ACEOF
2872cat confdefs.h >>conftest.$ac_ext
2873cat >>conftest.$ac_ext <<_ACEOF
2874/* end confdefs.h.  */
2875$ac_declaration
2876int
2877main ()
2878{
2879exit (42);
2880  ;
2881  return 0;
2882}
2883_ACEOF
2884rm -f conftest.$ac_objext
2885if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2886  (eval $ac_compile) 2>conftest.er1
2887  ac_status=$?
2888  grep -v '^ *+' conftest.er1 >conftest.err
2889  rm -f conftest.er1
2890  cat conftest.err >&5
2891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892  (exit $ac_status); } &&
2893	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2894  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2895  (eval $ac_try) 2>&5
2896  ac_status=$?
2897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898  (exit $ac_status); }; } &&
2899	 { ac_try='test -s conftest.$ac_objext'
2900  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2901  (eval $ac_try) 2>&5
2902  ac_status=$?
2903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904  (exit $ac_status); }; }; then
2905  break
2906else
2907  echo "$as_me: failed program was:" >&5
2908sed 's/^/| /' conftest.$ac_ext >&5
2909
2910fi
2911rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2912done
2913rm -f conftest*
2914if test -n "$ac_declaration"; then
2915  echo '#ifdef __cplusplus' >>confdefs.h
2916  echo $ac_declaration      >>confdefs.h
2917  echo '#endif'             >>confdefs.h
2918fi
2919
2920else
2921  echo "$as_me: failed program was:" >&5
2922sed 's/^/| /' conftest.$ac_ext >&5
2923
2924fi
2925rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2926ac_ext=c
2927ac_cpp='$CPP $CPPFLAGS'
2928ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2929ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2930ac_compiler_gnu=$ac_cv_c_compiler_gnu
2931
2932depcc="$CC"   am_compiler_list=
2933
2934echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2935echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2936if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2937  echo $ECHO_N "(cached) $ECHO_C" >&6
2938else
2939  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2940  # We make a subdir and do the tests there.  Otherwise we can end up
2941  # making bogus files that we don't know about and never remove.  For
2942  # instance it was reported that on HP-UX the gcc test will end up
2943  # making a dummy file named `D' -- because `-MD' means `put the output
2944  # in D'.
2945  mkdir conftest.dir
2946  # Copy depcomp to subdir because otherwise we won't find it if we're
2947  # using a relative directory.
2948  cp "$am_depcomp" conftest.dir
2949  cd conftest.dir
2950  # We will build objects and dependencies in a subdirectory because
2951  # it helps to detect inapplicable dependency modes.  For instance
2952  # both Tru64's cc and ICC support -MD to output dependencies as a
2953  # side effect of compilation, but ICC will put the dependencies in
2954  # the current directory while Tru64 will put them in the object
2955  # directory.
2956  mkdir sub
2957
2958  am_cv_CC_dependencies_compiler_type=none
2959  if test "$am_compiler_list" = ""; then
2960     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2961  fi
2962  for depmode in $am_compiler_list; do
2963    # Setup a source with many dependencies, because some compilers
2964    # like to wrap large dependency lists on column 80 (with \), and
2965    # we should not choose a depcomp mode which is confused by this.
2966    #
2967    # We need to recreate these files for each test, as the compiler may
2968    # overwrite some of them when testing with obscure command lines.
2969    # This happens at least with the AIX C compiler.
2970    : > sub/conftest.c
2971    for i in 1 2 3 4 5 6; do
2972      echo '#include "conftst'$i'.h"' >> sub/conftest.c
2973      : > sub/conftst$i.h
2974    done
2975    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2976
2977    case $depmode in
2978    nosideeffect)
2979      # after this tag, mechanisms are not by side-effect, so they'll
2980      # only be used when explicitly requested
2981      if test "x$enable_dependency_tracking" = xyes; then
2982	continue
2983      else
2984	break
2985      fi
2986      ;;
2987    none) break ;;
2988    esac
2989    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2990    # mode.  It turns out that the SunPro C++ compiler does not properly
2991    # handle `-M -o', and we need to detect this.
2992    if depmode=$depmode \
2993       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2994       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2995       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2996         >/dev/null 2>conftest.err &&
2997       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2998       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2999       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3000      # icc doesn't choke on unknown options, it will just issue warnings
3001      # (even with -Werror).  So we grep stderr for any message
3002      # that says an option was ignored.
3003      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3004        am_cv_CC_dependencies_compiler_type=$depmode
3005        break
3006      fi
3007    fi
3008  done
3009
3010  cd ..
3011  rm -rf conftest.dir
3012else
3013  am_cv_CC_dependencies_compiler_type=none
3014fi
3015
3016fi
3017echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3018echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3019CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3020
3021
3022
3023if
3024  test "x$enable_dependency_tracking" != xno \
3025  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3026  am__fastdepCC_TRUE=
3027  am__fastdepCC_FALSE='#'
3028else
3029  am__fastdepCC_TRUE='#'
3030  am__fastdepCC_FALSE=
3031fi
3032
3033
3034
3035
3036        echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3037echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
3038if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3039  echo $ECHO_N "(cached) $ECHO_C" >&6
3040else
3041  ac_check_lib_save_LIBS=$LIBS
3042LIBS="-lcposix  $LIBS"
3043cat >conftest.$ac_ext <<_ACEOF
3044/* confdefs.h.  */
3045_ACEOF
3046cat confdefs.h >>conftest.$ac_ext
3047cat >>conftest.$ac_ext <<_ACEOF
3048/* end confdefs.h.  */
3049
3050/* Override any gcc2 internal prototype to avoid an error.  */
3051#ifdef __cplusplus
3052extern "C"
3053#endif
3054/* We use char because int might match the return type of a gcc2
3055   builtin and then its argument prototype would still apply.  */
3056char strerror ();
3057int
3058main ()
3059{
3060strerror ();
3061  ;
3062  return 0;
3063}
3064_ACEOF
3065rm -f conftest.$ac_objext conftest$ac_exeext
3066if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3067  (eval $ac_link) 2>conftest.er1
3068  ac_status=$?
3069  grep -v '^ *+' conftest.er1 >conftest.err
3070  rm -f conftest.er1
3071  cat conftest.err >&5
3072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073  (exit $ac_status); } &&
3074	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
3075  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3076  (eval $ac_try) 2>&5
3077  ac_status=$?
3078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079  (exit $ac_status); }; } &&
3080	 { ac_try='test -s conftest$ac_exeext'
3081  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3082  (eval $ac_try) 2>&5
3083  ac_status=$?
3084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085  (exit $ac_status); }; }; then
3086  ac_cv_lib_cposix_strerror=yes
3087else
3088  echo "$as_me: failed program was:" >&5
3089sed 's/^/| /' conftest.$ac_ext >&5
3090
3091ac_cv_lib_cposix_strerror=no
3092fi
3093rm -f conftest.err conftest.$ac_objext \
3094      conftest$ac_exeext conftest.$ac_ext
3095LIBS=$ac_check_lib_save_LIBS
3096fi
3097echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3098echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
3099if test $ac_cv_lib_cposix_strerror = yes; then
3100  LIBS="$LIBS -lcposix"
3101fi
3102
3103
3104
3105ac_ext=c
3106ac_cpp='$CPP $CPPFLAGS'
3107ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3108ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3109ac_compiler_gnu=$ac_cv_c_compiler_gnu
3110if test -n "$ac_tool_prefix"; then
3111  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3112set dummy ${ac_tool_prefix}gcc; ac_word=$2
3113echo "$as_me:$LINENO: checking for $ac_word" >&5
3114echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3115if test "${ac_cv_prog_CC+set}" = set; then
3116  echo $ECHO_N "(cached) $ECHO_C" >&6
3117else
3118  if test -n "$CC"; then
3119  ac_cv_prog_CC="$CC" # Let the user override the test.
3120else
3121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3122for as_dir in $PATH
3123do
3124  IFS=$as_save_IFS
3125  test -z "$as_dir" && as_dir=.
3126  for ac_exec_ext in '' $ac_executable_extensions; do
3127  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3128    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3129    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3130    break 2
3131  fi
3132done
3133done
3134
3135fi
3136fi
3137CC=$ac_cv_prog_CC
3138if test -n "$CC"; then
3139  echo "$as_me:$LINENO: result: $CC" >&5
3140echo "${ECHO_T}$CC" >&6
3141else
3142  echo "$as_me:$LINENO: result: no" >&5
3143echo "${ECHO_T}no" >&6
3144fi
3145
3146fi
3147if test -z "$ac_cv_prog_CC"; then
3148  ac_ct_CC=$CC
3149  # Extract the first word of "gcc", so it can be a program name with args.
3150set dummy gcc; ac_word=$2
3151echo "$as_me:$LINENO: checking for $ac_word" >&5
3152echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3153if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3154  echo $ECHO_N "(cached) $ECHO_C" >&6
3155else
3156  if test -n "$ac_ct_CC"; then
3157  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3158else
3159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3160for as_dir in $PATH
3161do
3162  IFS=$as_save_IFS
3163  test -z "$as_dir" && as_dir=.
3164  for ac_exec_ext in '' $ac_executable_extensions; do
3165  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3166    ac_cv_prog_ac_ct_CC="gcc"
3167    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3168    break 2
3169  fi
3170done
3171done
3172
3173fi
3174fi
3175ac_ct_CC=$ac_cv_prog_ac_ct_CC
3176if test -n "$ac_ct_CC"; then
3177  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3178echo "${ECHO_T}$ac_ct_CC" >&6
3179else
3180  echo "$as_me:$LINENO: result: no" >&5
3181echo "${ECHO_T}no" >&6
3182fi
3183
3184  CC=$ac_ct_CC
3185else
3186  CC="$ac_cv_prog_CC"
3187fi
3188
3189if test -z "$CC"; then
3190  if test -n "$ac_tool_prefix"; then
3191  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3192set dummy ${ac_tool_prefix}cc; ac_word=$2
3193echo "$as_me:$LINENO: checking for $ac_word" >&5
3194echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3195if test "${ac_cv_prog_CC+set}" = set; then
3196  echo $ECHO_N "(cached) $ECHO_C" >&6
3197else
3198  if test -n "$CC"; then
3199  ac_cv_prog_CC="$CC" # Let the user override the test.
3200else
3201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3202for as_dir in $PATH
3203do
3204  IFS=$as_save_IFS
3205  test -z "$as_dir" && as_dir=.
3206  for ac_exec_ext in '' $ac_executable_extensions; do
3207  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3208    ac_cv_prog_CC="${ac_tool_prefix}cc"
3209    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3210    break 2
3211  fi
3212done
3213done
3214
3215fi
3216fi
3217CC=$ac_cv_prog_CC
3218if test -n "$CC"; then
3219  echo "$as_me:$LINENO: result: $CC" >&5
3220echo "${ECHO_T}$CC" >&6
3221else
3222  echo "$as_me:$LINENO: result: no" >&5
3223echo "${ECHO_T}no" >&6
3224fi
3225
3226fi
3227if test -z "$ac_cv_prog_CC"; then
3228  ac_ct_CC=$CC
3229  # Extract the first word of "cc", so it can be a program name with args.
3230set dummy cc; ac_word=$2
3231echo "$as_me:$LINENO: checking for $ac_word" >&5
3232echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3233if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3234  echo $ECHO_N "(cached) $ECHO_C" >&6
3235else
3236  if test -n "$ac_ct_CC"; then
3237  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3238else
3239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3240for as_dir in $PATH
3241do
3242  IFS=$as_save_IFS
3243  test -z "$as_dir" && as_dir=.
3244  for ac_exec_ext in '' $ac_executable_extensions; do
3245  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3246    ac_cv_prog_ac_ct_CC="cc"
3247    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3248    break 2
3249  fi
3250done
3251done
3252
3253fi
3254fi
3255ac_ct_CC=$ac_cv_prog_ac_ct_CC
3256if test -n "$ac_ct_CC"; then
3257  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3258echo "${ECHO_T}$ac_ct_CC" >&6
3259else
3260  echo "$as_me:$LINENO: result: no" >&5
3261echo "${ECHO_T}no" >&6
3262fi
3263
3264  CC=$ac_ct_CC
3265else
3266  CC="$ac_cv_prog_CC"
3267fi
3268
3269fi
3270if test -z "$CC"; then
3271  # Extract the first word of "cc", so it can be a program name with args.
3272set dummy cc; ac_word=$2
3273echo "$as_me:$LINENO: checking for $ac_word" >&5
3274echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3275if test "${ac_cv_prog_CC+set}" = set; then
3276  echo $ECHO_N "(cached) $ECHO_C" >&6
3277else
3278  if test -n "$CC"; then
3279  ac_cv_prog_CC="$CC" # Let the user override the test.
3280else
3281  ac_prog_rejected=no
3282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3283for as_dir in $PATH
3284do
3285  IFS=$as_save_IFS
3286  test -z "$as_dir" && as_dir=.
3287  for ac_exec_ext in '' $ac_executable_extensions; do
3288  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3289    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3290       ac_prog_rejected=yes
3291       continue
3292     fi
3293    ac_cv_prog_CC="cc"
3294    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3295    break 2
3296  fi
3297done
3298done
3299
3300if test $ac_prog_rejected = yes; then
3301  # We found a bogon in the path, so make sure we never use it.
3302  set dummy $ac_cv_prog_CC
3303  shift
3304  if test $# != 0; then
3305    # We chose a different compiler from the bogus one.
3306    # However, it has the same basename, so the bogon will be chosen
3307    # first if we set CC to just the basename; use the full file name.
3308    shift
3309    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3310  fi
3311fi
3312fi
3313fi
3314CC=$ac_cv_prog_CC
3315if test -n "$CC"; then
3316  echo "$as_me:$LINENO: result: $CC" >&5
3317echo "${ECHO_T}$CC" >&6
3318else
3319  echo "$as_me:$LINENO: result: no" >&5
3320echo "${ECHO_T}no" >&6
3321fi
3322
3323fi
3324if test -z "$CC"; then
3325  if test -n "$ac_tool_prefix"; then
3326  for ac_prog in cl
3327  do
3328    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3329set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3330echo "$as_me:$LINENO: checking for $ac_word" >&5
3331echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3332if test "${ac_cv_prog_CC+set}" = set; then
3333  echo $ECHO_N "(cached) $ECHO_C" >&6
3334else
3335  if test -n "$CC"; then
3336  ac_cv_prog_CC="$CC" # Let the user override the test.
3337else
3338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3339for as_dir in $PATH
3340do
3341  IFS=$as_save_IFS
3342  test -z "$as_dir" && as_dir=.
3343  for ac_exec_ext in '' $ac_executable_extensions; do
3344  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3345    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3346    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3347    break 2
3348  fi
3349done
3350done
3351
3352fi
3353fi
3354CC=$ac_cv_prog_CC
3355if test -n "$CC"; then
3356  echo "$as_me:$LINENO: result: $CC" >&5
3357echo "${ECHO_T}$CC" >&6
3358else
3359  echo "$as_me:$LINENO: result: no" >&5
3360echo "${ECHO_T}no" >&6
3361fi
3362
3363    test -n "$CC" && break
3364  done
3365fi
3366if test -z "$CC"; then
3367  ac_ct_CC=$CC
3368  for ac_prog in cl
3369do
3370  # Extract the first word of "$ac_prog", so it can be a program name with args.
3371set dummy $ac_prog; ac_word=$2
3372echo "$as_me:$LINENO: checking for $ac_word" >&5
3373echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3374if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3375  echo $ECHO_N "(cached) $ECHO_C" >&6
3376else
3377  if test -n "$ac_ct_CC"; then
3378  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3379else
3380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3381for as_dir in $PATH
3382do
3383  IFS=$as_save_IFS
3384  test -z "$as_dir" && as_dir=.
3385  for ac_exec_ext in '' $ac_executable_extensions; do
3386  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3387    ac_cv_prog_ac_ct_CC="$ac_prog"
3388    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3389    break 2
3390  fi
3391done
3392done
3393
3394fi
3395fi
3396ac_ct_CC=$ac_cv_prog_ac_ct_CC
3397if test -n "$ac_ct_CC"; then
3398  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3399echo "${ECHO_T}$ac_ct_CC" >&6
3400else
3401  echo "$as_me:$LINENO: result: no" >&5
3402echo "${ECHO_T}no" >&6
3403fi
3404
3405  test -n "$ac_ct_CC" && break
3406done
3407
3408  CC=$ac_ct_CC
3409fi
3410
3411fi
3412
3413
3414test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3415See \`config.log' for more details." >&5
3416echo "$as_me: error: no acceptable C compiler found in \$PATH
3417See \`config.log' for more details." >&2;}
3418   { (exit 1); exit 1; }; }
3419
3420# Provide some information about the compiler.
3421echo "$as_me:$LINENO:" \
3422     "checking for C compiler version" >&5
3423ac_compiler=`set X $ac_compile; echo $2`
3424{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3425  (eval $ac_compiler --version </dev/null >&5) 2>&5
3426  ac_status=$?
3427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428  (exit $ac_status); }
3429{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3430  (eval $ac_compiler -v </dev/null >&5) 2>&5
3431  ac_status=$?
3432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433  (exit $ac_status); }
3434{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3435  (eval $ac_compiler -V </dev/null >&5) 2>&5
3436  ac_status=$?
3437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438  (exit $ac_status); }
3439
3440echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3441echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3442if test "${ac_cv_c_compiler_gnu+set}" = set; then
3443  echo $ECHO_N "(cached) $ECHO_C" >&6
3444else
3445  cat >conftest.$ac_ext <<_ACEOF
3446/* confdefs.h.  */
3447_ACEOF
3448cat confdefs.h >>conftest.$ac_ext
3449cat >>conftest.$ac_ext <<_ACEOF
3450/* end confdefs.h.  */
3451
3452int
3453main ()
3454{
3455#ifndef __GNUC__
3456       choke me
3457#endif
3458
3459  ;
3460  return 0;
3461}
3462_ACEOF
3463rm -f conftest.$ac_objext
3464if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3465  (eval $ac_compile) 2>conftest.er1
3466  ac_status=$?
3467  grep -v '^ *+' conftest.er1 >conftest.err
3468  rm -f conftest.er1
3469  cat conftest.err >&5
3470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471  (exit $ac_status); } &&
3472	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
3473  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3474  (eval $ac_try) 2>&5
3475  ac_status=$?
3476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3477  (exit $ac_status); }; } &&
3478	 { ac_try='test -s conftest.$ac_objext'
3479  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3480  (eval $ac_try) 2>&5
3481  ac_status=$?
3482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483  (exit $ac_status); }; }; then
3484  ac_compiler_gnu=yes
3485else
3486  echo "$as_me: failed program was:" >&5
3487sed 's/^/| /' conftest.$ac_ext >&5
3488
3489ac_compiler_gnu=no
3490fi
3491rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3492ac_cv_c_compiler_gnu=$ac_compiler_gnu
3493
3494fi
3495echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3496echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3497GCC=`test $ac_compiler_gnu = yes && echo yes`
3498ac_test_CFLAGS=${CFLAGS+set}
3499ac_save_CFLAGS=$CFLAGS
3500CFLAGS="-g"
3501echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3502echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3503if test "${ac_cv_prog_cc_g+set}" = set; then
3504  echo $ECHO_N "(cached) $ECHO_C" >&6
3505else
3506  cat >conftest.$ac_ext <<_ACEOF
3507/* confdefs.h.  */
3508_ACEOF
3509cat confdefs.h >>conftest.$ac_ext
3510cat >>conftest.$ac_ext <<_ACEOF
3511/* end confdefs.h.  */
3512
3513int
3514main ()
3515{
3516
3517  ;
3518  return 0;
3519}
3520_ACEOF
3521rm -f conftest.$ac_objext
3522if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3523  (eval $ac_compile) 2>conftest.er1
3524  ac_status=$?
3525  grep -v '^ *+' conftest.er1 >conftest.err
3526  rm -f conftest.er1
3527  cat conftest.err >&5
3528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529  (exit $ac_status); } &&
3530	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
3531  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3532  (eval $ac_try) 2>&5
3533  ac_status=$?
3534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535  (exit $ac_status); }; } &&
3536	 { ac_try='test -s conftest.$ac_objext'
3537  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3538  (eval $ac_try) 2>&5
3539  ac_status=$?
3540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541  (exit $ac_status); }; }; then
3542  ac_cv_prog_cc_g=yes
3543else
3544  echo "$as_me: failed program was:" >&5
3545sed 's/^/| /' conftest.$ac_ext >&5
3546
3547ac_cv_prog_cc_g=no
3548fi
3549rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3550fi
3551echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3552echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3553if test "$ac_test_CFLAGS" = set; then
3554  CFLAGS=$ac_save_CFLAGS
3555elif test $ac_cv_prog_cc_g = yes; then
3556  if test "$GCC" = yes; then
3557    CFLAGS="-g -O2"
3558  else
3559    CFLAGS="-g"
3560  fi
3561else
3562  if test "$GCC" = yes; then
3563    CFLAGS="-O2"
3564  else
3565    CFLAGS=
3566  fi
3567fi
3568echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3569echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3570if test "${ac_cv_prog_cc_stdc+set}" = set; then
3571  echo $ECHO_N "(cached) $ECHO_C" >&6
3572else
3573  ac_cv_prog_cc_stdc=no
3574ac_save_CC=$CC
3575cat >conftest.$ac_ext <<_ACEOF
3576/* confdefs.h.  */
3577_ACEOF
3578cat confdefs.h >>conftest.$ac_ext
3579cat >>conftest.$ac_ext <<_ACEOF
3580/* end confdefs.h.  */
3581#include <stdarg.h>
3582#include <stdio.h>
3583#include <sys/types.h>
3584#include <sys/stat.h>
3585/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3586struct buf { int x; };
3587FILE * (*rcsopen) (struct buf *, struct stat *, int);
3588static char *e (p, i)
3589     char **p;
3590     int i;
3591{
3592  return p[i];
3593}
3594static char *f (char * (*g) (char **, int), char **p, ...)
3595{
3596  char *s;
3597  va_list v;
3598  va_start (v,p);
3599  s = g (p, va_arg (v,int));
3600  va_end (v);
3601  return s;
3602}
3603
3604/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3605   function prototypes and stuff, but not '\xHH' hex character constants.
3606   These don't provoke an error unfortunately, instead are silently treated
3607   as 'x'.  The following induces an error, until -std1 is added to get
3608   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3609   array size at least.  It's necessary to write '\x00'==0 to get something
3610   that's true only with -std1.  */
3611int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3612
3613int test (int i, double x);
3614struct s1 {int (*f) (int a);};
3615struct s2 {int (*f) (double a);};
3616int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3617int argc;
3618char **argv;
3619int
3620main ()
3621{
3622return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3623  ;
3624  return 0;
3625}
3626_ACEOF
3627# Don't try gcc -ansi; that turns off useful extensions and
3628# breaks some systems' header files.
3629# AIX			-qlanglvl=ansi
3630# Ultrix and OSF/1	-std1
3631# HP-UX 10.20 and later	-Ae
3632# HP-UX older versions	-Aa -D_HPUX_SOURCE
3633# SVR4			-Xc -D__EXTENSIONS__
3634for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3635do
3636  CC="$ac_save_CC $ac_arg"
3637  rm -f conftest.$ac_objext
3638if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3639  (eval $ac_compile) 2>conftest.er1
3640  ac_status=$?
3641  grep -v '^ *+' conftest.er1 >conftest.err
3642  rm -f conftest.er1
3643  cat conftest.err >&5
3644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645  (exit $ac_status); } &&
3646	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
3647  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3648  (eval $ac_try) 2>&5
3649  ac_status=$?
3650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651  (exit $ac_status); }; } &&
3652	 { ac_try='test -s conftest.$ac_objext'
3653  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3654  (eval $ac_try) 2>&5
3655  ac_status=$?
3656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3657  (exit $ac_status); }; }; then
3658  ac_cv_prog_cc_stdc=$ac_arg
3659break
3660else
3661  echo "$as_me: failed program was:" >&5
3662sed 's/^/| /' conftest.$ac_ext >&5
3663
3664fi
3665rm -f conftest.err conftest.$ac_objext
3666done
3667rm -f conftest.$ac_ext conftest.$ac_objext
3668CC=$ac_save_CC
3669
3670fi
3671
3672case "x$ac_cv_prog_cc_stdc" in
3673  x|xno)
3674    echo "$as_me:$LINENO: result: none needed" >&5
3675echo "${ECHO_T}none needed" >&6 ;;
3676  *)
3677    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3678echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3679    CC="$CC $ac_cv_prog_cc_stdc" ;;
3680esac
3681
3682# Some people use a C++ compiler to compile C.  Since we use `exit',
3683# in C++ we need to declare it.  In case someone uses the same compiler
3684# for both compiling C and C++ we need to have the C++ compiler decide
3685# the declaration of exit, since it's the most demanding environment.
3686cat >conftest.$ac_ext <<_ACEOF
3687#ifndef __cplusplus
3688  choke me
3689#endif
3690_ACEOF
3691rm -f conftest.$ac_objext
3692if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3693  (eval $ac_compile) 2>conftest.er1
3694  ac_status=$?
3695  grep -v '^ *+' conftest.er1 >conftest.err
3696  rm -f conftest.er1
3697  cat conftest.err >&5
3698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699  (exit $ac_status); } &&
3700	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
3701  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3702  (eval $ac_try) 2>&5
3703  ac_status=$?
3704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705  (exit $ac_status); }; } &&
3706	 { ac_try='test -s conftest.$ac_objext'
3707  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3708  (eval $ac_try) 2>&5
3709  ac_status=$?
3710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711  (exit $ac_status); }; }; then
3712  for ac_declaration in \
3713   '' \
3714   'extern "C" void std::exit (int) throw (); using std::exit;' \
3715   'extern "C" void std::exit (int); using std::exit;' \
3716   'extern "C" void exit (int) throw ();' \
3717   'extern "C" void exit (int);' \
3718   'void exit (int);'
3719do
3720  cat >conftest.$ac_ext <<_ACEOF
3721/* confdefs.h.  */
3722_ACEOF
3723cat confdefs.h >>conftest.$ac_ext
3724cat >>conftest.$ac_ext <<_ACEOF
3725/* end confdefs.h.  */
3726$ac_declaration
3727#include <stdlib.h>
3728int
3729main ()
3730{
3731exit (42);
3732  ;
3733  return 0;
3734}
3735_ACEOF
3736rm -f conftest.$ac_objext
3737if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3738  (eval $ac_compile) 2>conftest.er1
3739  ac_status=$?
3740  grep -v '^ *+' conftest.er1 >conftest.err
3741  rm -f conftest.er1
3742  cat conftest.err >&5
3743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3744  (exit $ac_status); } &&
3745	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
3746  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3747  (eval $ac_try) 2>&5
3748  ac_status=$?
3749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750  (exit $ac_status); }; } &&
3751	 { ac_try='test -s conftest.$ac_objext'
3752  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3753  (eval $ac_try) 2>&5
3754  ac_status=$?
3755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3756  (exit $ac_status); }; }; then
3757  :
3758else
3759  echo "$as_me: failed program was:" >&5
3760sed 's/^/| /' conftest.$ac_ext >&5
3761
3762continue
3763fi
3764rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3765  cat >conftest.$ac_ext <<_ACEOF
3766/* confdefs.h.  */
3767_ACEOF
3768cat confdefs.h >>conftest.$ac_ext
3769cat >>conftest.$ac_ext <<_ACEOF
3770/* end confdefs.h.  */
3771$ac_declaration
3772int
3773main ()
3774{
3775exit (42);
3776  ;
3777  return 0;
3778}
3779_ACEOF
3780rm -f conftest.$ac_objext
3781if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3782  (eval $ac_compile) 2>conftest.er1
3783  ac_status=$?
3784  grep -v '^ *+' conftest.er1 >conftest.err
3785  rm -f conftest.er1
3786  cat conftest.err >&5
3787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3788  (exit $ac_status); } &&
3789	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
3790  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3791  (eval $ac_try) 2>&5
3792  ac_status=$?
3793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794  (exit $ac_status); }; } &&
3795	 { ac_try='test -s conftest.$ac_objext'
3796  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3797  (eval $ac_try) 2>&5
3798  ac_status=$?
3799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800  (exit $ac_status); }; }; then
3801  break
3802else
3803  echo "$as_me: failed program was:" >&5
3804sed 's/^/| /' conftest.$ac_ext >&5
3805
3806fi
3807rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3808done
3809rm -f conftest*
3810if test -n "$ac_declaration"; then
3811  echo '#ifdef __cplusplus' >>confdefs.h
3812  echo $ac_declaration      >>confdefs.h
3813  echo '#endif'             >>confdefs.h
3814fi
3815
3816else
3817  echo "$as_me: failed program was:" >&5
3818sed 's/^/| /' conftest.$ac_ext >&5
3819
3820fi
3821rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3822ac_ext=c
3823ac_cpp='$CPP $CPPFLAGS'
3824ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3825ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3826ac_compiler_gnu=$ac_cv_c_compiler_gnu
3827
3828depcc="$CC"   am_compiler_list=
3829
3830echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3831echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3832if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3833  echo $ECHO_N "(cached) $ECHO_C" >&6
3834else
3835  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3836  # We make a subdir and do the tests there.  Otherwise we can end up
3837  # making bogus files that we don't know about and never remove.  For
3838  # instance it was reported that on HP-UX the gcc test will end up
3839  # making a dummy file named `D' -- because `-MD' means `put the output
3840  # in D'.
3841  mkdir conftest.dir
3842  # Copy depcomp to subdir because otherwise we won't find it if we're
3843  # using a relative directory.
3844  cp "$am_depcomp" conftest.dir
3845  cd conftest.dir
3846  # We will build objects and dependencies in a subdirectory because
3847  # it helps to detect inapplicable dependency modes.  For instance
3848  # both Tru64's cc and ICC support -MD to output dependencies as a
3849  # side effect of compilation, but ICC will put the dependencies in
3850  # the current directory while Tru64 will put them in the object
3851  # directory.
3852  mkdir sub
3853
3854  am_cv_CC_dependencies_compiler_type=none
3855  if test "$am_compiler_list" = ""; then
3856     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3857  fi
3858  for depmode in $am_compiler_list; do
3859    # Setup a source with many dependencies, because some compilers
3860    # like to wrap large dependency lists on column 80 (with \), and
3861    # we should not choose a depcomp mode which is confused by this.
3862    #
3863    # We need to recreate these files for each test, as the compiler may
3864    # overwrite some of them when testing with obscure command lines.
3865    # This happens at least with the AIX C compiler.
3866    : > sub/conftest.c
3867    for i in 1 2 3 4 5 6; do
3868      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3869      : > sub/conftst$i.h
3870    done
3871    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3872
3873    case $depmode in
3874    nosideeffect)
3875      # after this tag, mechanisms are not by side-effect, so they'll
3876      # only be used when explicitly requested
3877      if test "x$enable_dependency_tracking" = xyes; then
3878	continue
3879      else
3880	break
3881      fi
3882      ;;
3883    none) break ;;
3884    esac
3885    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3886    # mode.  It turns out that the SunPro C++ compiler does not properly
3887    # handle `-M -o', and we need to detect this.
3888    if depmode=$depmode \
3889       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3890       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3891       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3892         >/dev/null 2>conftest.err &&
3893       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3894       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3895       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3896      # icc doesn't choke on unknown options, it will just issue warnings
3897      # (even with -Werror).  So we grep stderr for any message
3898      # that says an option was ignored.
3899      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3900        am_cv_CC_dependencies_compiler_type=$depmode
3901        break
3902      fi
3903    fi
3904  done
3905
3906  cd ..
3907  rm -rf conftest.dir
3908else
3909  am_cv_CC_dependencies_compiler_type=none
3910fi
3911
3912fi
3913echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3914echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3915CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3916
3917
3918
3919if
3920  test "x$enable_dependency_tracking" != xno \
3921  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3922  am__fastdepCC_TRUE=
3923  am__fastdepCC_FALSE='#'
3924else
3925  am__fastdepCC_TRUE='#'
3926  am__fastdepCC_FALSE=
3927fi
3928
3929
3930ac_ext=c
3931ac_cpp='$CPP $CPPFLAGS'
3932ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3933ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3934ac_compiler_gnu=$ac_cv_c_compiler_gnu
3935echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3936echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3937# On Suns, sometimes $CPP names a directory.
3938if test -n "$CPP" && test -d "$CPP"; then
3939  CPP=
3940fi
3941if test -z "$CPP"; then
3942  if test "${ac_cv_prog_CPP+set}" = set; then
3943  echo $ECHO_N "(cached) $ECHO_C" >&6
3944else
3945      # Double quotes because CPP needs to be expanded
3946    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3947    do
3948      ac_preproc_ok=false
3949for ac_c_preproc_warn_flag in '' yes
3950do
3951  # Use a header file that comes with gcc, so configuring glibc
3952  # with a fresh cross-compiler works.
3953  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3954  # <limits.h> exists even on freestanding compilers.
3955  # On the NeXT, cc -E runs the code through the compiler's parser,
3956  # not just through cpp. "Syntax error" is here to catch this case.
3957  cat >conftest.$ac_ext <<_ACEOF
3958/* confdefs.h.  */
3959_ACEOF
3960cat confdefs.h >>conftest.$ac_ext
3961cat >>conftest.$ac_ext <<_ACEOF
3962/* end confdefs.h.  */
3963#ifdef __STDC__
3964# include <limits.h>
3965#else
3966# include <assert.h>
3967#endif
3968		     Syntax error
3969_ACEOF
3970if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3971  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3972  ac_status=$?
3973  grep -v '^ *+' conftest.er1 >conftest.err
3974  rm -f conftest.er1
3975  cat conftest.err >&5
3976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977  (exit $ac_status); } >/dev/null; then
3978  if test -s conftest.err; then
3979    ac_cpp_err=$ac_c_preproc_warn_flag
3980    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3981  else
3982    ac_cpp_err=
3983  fi
3984else
3985  ac_cpp_err=yes
3986fi
3987if test -z "$ac_cpp_err"; then
3988  :
3989else
3990  echo "$as_me: failed program was:" >&5
3991sed 's/^/| /' conftest.$ac_ext >&5
3992
3993  # Broken: fails on valid input.
3994continue
3995fi
3996rm -f conftest.err conftest.$ac_ext
3997
3998  # OK, works on sane cases.  Now check whether non-existent headers
3999  # can be detected and how.
4000  cat >conftest.$ac_ext <<_ACEOF
4001/* confdefs.h.  */
4002_ACEOF
4003cat confdefs.h >>conftest.$ac_ext
4004cat >>conftest.$ac_ext <<_ACEOF
4005/* end confdefs.h.  */
4006#include <ac_nonexistent.h>
4007_ACEOF
4008if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4009  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4010  ac_status=$?
4011  grep -v '^ *+' conftest.er1 >conftest.err
4012  rm -f conftest.er1
4013  cat conftest.err >&5
4014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4015  (exit $ac_status); } >/dev/null; then
4016  if test -s conftest.err; then
4017    ac_cpp_err=$ac_c_preproc_warn_flag
4018    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4019  else
4020    ac_cpp_err=
4021  fi
4022else
4023  ac_cpp_err=yes
4024fi
4025if test -z "$ac_cpp_err"; then
4026  # Broken: success on invalid input.
4027continue
4028else
4029  echo "$as_me: failed program was:" >&5
4030sed 's/^/| /' conftest.$ac_ext >&5
4031
4032  # Passes both tests.
4033ac_preproc_ok=:
4034break
4035fi
4036rm -f conftest.err conftest.$ac_ext
4037
4038done
4039# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4040rm -f conftest.err conftest.$ac_ext
4041if $ac_preproc_ok; then
4042  break
4043fi
4044
4045    done
4046    ac_cv_prog_CPP=$CPP
4047
4048fi
4049  CPP=$ac_cv_prog_CPP
4050else
4051  ac_cv_prog_CPP=$CPP
4052fi
4053echo "$as_me:$LINENO: result: $CPP" >&5
4054echo "${ECHO_T}$CPP" >&6
4055ac_preproc_ok=false
4056for ac_c_preproc_warn_flag in '' yes
4057do
4058  # Use a header file that comes with gcc, so configuring glibc
4059  # with a fresh cross-compiler works.
4060  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4061  # <limits.h> exists even on freestanding compilers.
4062  # On the NeXT, cc -E runs the code through the compiler's parser,
4063  # not just through cpp. "Syntax error" is here to catch this case.
4064  cat >conftest.$ac_ext <<_ACEOF
4065/* confdefs.h.  */
4066_ACEOF
4067cat confdefs.h >>conftest.$ac_ext
4068cat >>conftest.$ac_ext <<_ACEOF
4069/* end confdefs.h.  */
4070#ifdef __STDC__
4071# include <limits.h>
4072#else
4073# include <assert.h>
4074#endif
4075		     Syntax error
4076_ACEOF
4077if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4078  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4079  ac_status=$?
4080  grep -v '^ *+' conftest.er1 >conftest.err
4081  rm -f conftest.er1
4082  cat conftest.err >&5
4083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4084  (exit $ac_status); } >/dev/null; then
4085  if test -s conftest.err; then
4086    ac_cpp_err=$ac_c_preproc_warn_flag
4087    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4088  else
4089    ac_cpp_err=
4090  fi
4091else
4092  ac_cpp_err=yes
4093fi
4094if test -z "$ac_cpp_err"; then
4095  :
4096else
4097  echo "$as_me: failed program was:" >&5
4098sed 's/^/| /' conftest.$ac_ext >&5
4099
4100  # Broken: fails on valid input.
4101continue
4102fi
4103rm -f conftest.err conftest.$ac_ext
4104
4105  # OK, works on sane cases.  Now check whether non-existent headers
4106  # can be detected and how.
4107  cat >conftest.$ac_ext <<_ACEOF
4108/* confdefs.h.  */
4109_ACEOF
4110cat confdefs.h >>conftest.$ac_ext
4111cat >>conftest.$ac_ext <<_ACEOF
4112/* end confdefs.h.  */
4113#include <ac_nonexistent.h>
4114_ACEOF
4115if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4116  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4117  ac_status=$?
4118  grep -v '^ *+' conftest.er1 >conftest.err
4119  rm -f conftest.er1
4120  cat conftest.err >&5
4121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122  (exit $ac_status); } >/dev/null; then
4123  if test -s conftest.err; then
4124    ac_cpp_err=$ac_c_preproc_warn_flag
4125    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4126  else
4127    ac_cpp_err=
4128  fi
4129else
4130  ac_cpp_err=yes
4131fi
4132if test -z "$ac_cpp_err"; then
4133  # Broken: success on invalid input.
4134continue
4135else
4136  echo "$as_me: failed program was:" >&5
4137sed 's/^/| /' conftest.$ac_ext >&5
4138
4139  # Passes both tests.
4140ac_preproc_ok=:
4141break
4142fi
4143rm -f conftest.err conftest.$ac_ext
4144
4145done
4146# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4147rm -f conftest.err conftest.$ac_ext
4148if $ac_preproc_ok; then
4149  :
4150else
4151  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4152See \`config.log' for more details." >&5
4153echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4154See \`config.log' for more details." >&2;}
4155   { (exit 1); exit 1; }; }
4156fi
4157
4158ac_ext=c
4159ac_cpp='$CPP $CPPFLAGS'
4160ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4161ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4162ac_compiler_gnu=$ac_cv_c_compiler_gnu
4163
4164
4165echo "$as_me:$LINENO: checking for egrep" >&5
4166echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4167if test "${ac_cv_prog_egrep+set}" = set; then
4168  echo $ECHO_N "(cached) $ECHO_C" >&6
4169else
4170  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4171    then ac_cv_prog_egrep='grep -E'
4172    else ac_cv_prog_egrep='egrep'
4173    fi
4174fi
4175echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4176echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4177 EGREP=$ac_cv_prog_egrep
4178
4179
4180
4181echo "$as_me:$LINENO: checking for AIX" >&5
4182echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4183cat >conftest.$ac_ext <<_ACEOF
4184/* confdefs.h.  */
4185_ACEOF
4186cat confdefs.h >>conftest.$ac_ext
4187cat >>conftest.$ac_ext <<_ACEOF
4188/* end confdefs.h.  */
4189#ifdef _AIX
4190  yes
4191#endif
4192
4193_ACEOF
4194if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4195  $EGREP "yes" >/dev/null 2>&1; then
4196  echo "$as_me:$LINENO: result: yes" >&5
4197echo "${ECHO_T}yes" >&6
4198cat >>confdefs.h <<\_ACEOF
4199#define _ALL_SOURCE 1
4200_ACEOF
4201
4202else
4203  echo "$as_me:$LINENO: result: no" >&5
4204echo "${ECHO_T}no" >&6
4205fi
4206rm -f conftest*
4207
4208
4209echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4210echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4211set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4212if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4213  echo $ECHO_N "(cached) $ECHO_C" >&6
4214else
4215  cat >conftest.make <<\_ACEOF
4216all:
4217	@echo 'ac_maketemp="$(MAKE)"'
4218_ACEOF
4219# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4220eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4221if test -n "$ac_maketemp"; then
4222  eval ac_cv_prog_make_${ac_make}_set=yes
4223else
4224  eval ac_cv_prog_make_${ac_make}_set=no
4225fi
4226rm -f conftest.make
4227fi
4228if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4229  echo "$as_me:$LINENO: result: yes" >&5
4230echo "${ECHO_T}yes" >&6
4231  SET_MAKE=
4232else
4233  echo "$as_me:$LINENO: result: no" >&5
4234echo "${ECHO_T}no" >&6
4235  SET_MAKE="MAKE=${MAKE-make}"
4236fi
4237
4238# Check whether --enable-shared or --disable-shared was given.
4239if test "${enable_shared+set}" = set; then
4240  enableval="$enable_shared"
4241  p=${PACKAGE-default}
4242    case $enableval in
4243    yes) enable_shared=yes ;;
4244    no) enable_shared=no ;;
4245    *)
4246      enable_shared=no
4247      # Look at the argument we got.  We use all the common list separators.
4248      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4249      for pkg in $enableval; do
4250	IFS="$lt_save_ifs"
4251	if test "X$pkg" = "X$p"; then
4252	  enable_shared=yes
4253	fi
4254      done
4255      IFS="$lt_save_ifs"
4256      ;;
4257    esac
4258else
4259  enable_shared=yes
4260fi;
4261
4262# Check whether --enable-static or --disable-static was given.
4263if test "${enable_static+set}" = set; then
4264  enableval="$enable_static"
4265  p=${PACKAGE-default}
4266    case $enableval in
4267    yes) enable_static=yes ;;
4268    no) enable_static=no ;;
4269    *)
4270     enable_static=no
4271      # Look at the argument we got.  We use all the common list separators.
4272      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4273      for pkg in $enableval; do
4274	IFS="$lt_save_ifs"
4275	if test "X$pkg" = "X$p"; then
4276	  enable_static=yes
4277	fi
4278      done
4279      IFS="$lt_save_ifs"
4280      ;;
4281    esac
4282else
4283  enable_static=yes
4284fi;
4285
4286# Check whether --enable-fast-install or --disable-fast-install was given.
4287if test "${enable_fast_install+set}" = set; then
4288  enableval="$enable_fast_install"
4289  p=${PACKAGE-default}
4290    case $enableval in
4291    yes) enable_fast_install=yes ;;
4292    no) enable_fast_install=no ;;
4293    *)
4294      enable_fast_install=no
4295      # Look at the argument we got.  We use all the common list separators.
4296      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4297      for pkg in $enableval; do
4298	IFS="$lt_save_ifs"
4299	if test "X$pkg" = "X$p"; then
4300	  enable_fast_install=yes
4301	fi
4302      done
4303      IFS="$lt_save_ifs"
4304      ;;
4305    esac
4306else
4307  enable_fast_install=yes
4308fi;
4309
4310# Make sure we can run config.sub.
4311$ac_config_sub sun4 >/dev/null 2>&1 ||
4312  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4313echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4314   { (exit 1); exit 1; }; }
4315
4316echo "$as_me:$LINENO: checking build system type" >&5
4317echo $ECHO_N "checking build system type... $ECHO_C" >&6
4318if test "${ac_cv_build+set}" = set; then
4319  echo $ECHO_N "(cached) $ECHO_C" >&6
4320else
4321  ac_cv_build_alias=$build_alias
4322test -z "$ac_cv_build_alias" &&
4323  ac_cv_build_alias=`$ac_config_guess`
4324test -z "$ac_cv_build_alias" &&
4325  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4326echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4327   { (exit 1); exit 1; }; }
4328ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4329  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4330echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4331   { (exit 1); exit 1; }; }
4332
4333fi
4334echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4335echo "${ECHO_T}$ac_cv_build" >&6
4336build=$ac_cv_build
4337build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4338build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4339build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4340
4341
4342echo "$as_me:$LINENO: checking host system type" >&5
4343echo $ECHO_N "checking host system type... $ECHO_C" >&6
4344if test "${ac_cv_host+set}" = set; then
4345  echo $ECHO_N "(cached) $ECHO_C" >&6
4346else
4347  ac_cv_host_alias=$host_alias
4348test -z "$ac_cv_host_alias" &&
4349  ac_cv_host_alias=$ac_cv_build_alias
4350ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4351  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4352echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4353   { (exit 1); exit 1; }; }
4354
4355fi
4356echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4357echo "${ECHO_T}$ac_cv_host" >&6
4358host=$ac_cv_host
4359host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4360host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4361host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4362
4363
4364echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4365echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4366if test "${lt_cv_path_SED+set}" = set; then
4367  echo $ECHO_N "(cached) $ECHO_C" >&6
4368else
4369  # Loop through the user's path and test for sed and gsed.
4370# Then use that list of sed's as ones to test for truncation.
4371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4372for as_dir in $PATH
4373do
4374  IFS=$as_save_IFS
4375  test -z "$as_dir" && as_dir=.
4376  for lt_ac_prog in sed gsed; do
4377    for ac_exec_ext in '' $ac_executable_extensions; do
4378      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4379        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4380      fi
4381    done
4382  done
4383done
4384lt_ac_max=0
4385lt_ac_count=0
4386# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4387# along with /bin/sed that truncates output.
4388for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4389  test ! -f $lt_ac_sed && break
4390  cat /dev/null > conftest.in
4391  lt_ac_count=0
4392  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4393  # Check for GNU sed and select it if it is found.
4394  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4395    lt_cv_path_SED=$lt_ac_sed
4396    break
4397  fi
4398  while true; do
4399    cat conftest.in conftest.in >conftest.tmp
4400    mv conftest.tmp conftest.in
4401    cp conftest.in conftest.nl
4402    echo >>conftest.nl
4403    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4404    cmp -s conftest.out conftest.nl || break
4405    # 10000 chars as input seems more than enough
4406    test $lt_ac_count -gt 10 && break
4407    lt_ac_count=`expr $lt_ac_count + 1`
4408    if test $lt_ac_count -gt $lt_ac_max; then
4409      lt_ac_max=$lt_ac_count
4410      lt_cv_path_SED=$lt_ac_sed
4411    fi
4412  done
4413done
4414SED=$lt_cv_path_SED
4415
4416fi
4417
4418echo "$as_me:$LINENO: result: $SED" >&5
4419echo "${ECHO_T}$SED" >&6
4420
4421
4422# Check whether --with-gnu-ld or --without-gnu-ld was given.
4423if test "${with_gnu_ld+set}" = set; then
4424  withval="$with_gnu_ld"
4425  test "$withval" = no || with_gnu_ld=yes
4426else
4427  with_gnu_ld=no
4428fi;
4429ac_prog=ld
4430if test "$GCC" = yes; then
4431  # Check if gcc -print-prog-name=ld gives a path.
4432  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4433echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4434  case $host in
4435  *-*-mingw*)
4436    # gcc leaves a trailing carriage return which upsets mingw
4437    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4438  *)
4439    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4440  esac
4441  case $ac_prog in
4442    # Accept absolute paths.
4443    [\\/]* | ?:[\\/]*)
4444      re_direlt='/[^/][^/]*/\.\./'
4445      # Canonicalize the pathname of ld
4446      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4447      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4448	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4449      done
4450      test -z "$LD" && LD="$ac_prog"
4451      ;;
4452  "")
4453    # If it fails, then pretend we aren't using GCC.
4454    ac_prog=ld
4455    ;;
4456  *)
4457    # If it is relative, then search for the first ld in PATH.
4458    with_gnu_ld=unknown
4459    ;;
4460  esac
4461elif test "$with_gnu_ld" = yes; then
4462  echo "$as_me:$LINENO: checking for GNU ld" >&5
4463echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4464else
4465  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4466echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4467fi
4468if test "${lt_cv_path_LD+set}" = set; then
4469  echo $ECHO_N "(cached) $ECHO_C" >&6
4470else
4471  if test -z "$LD"; then
4472  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4473  for ac_dir in $PATH; do
4474    IFS="$lt_save_ifs"
4475    test -z "$ac_dir" && ac_dir=.
4476    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4477      lt_cv_path_LD="$ac_dir/$ac_prog"
4478      # Check to see if the program is GNU ld.  I'd rather use --version,
4479      # but apparently some GNU ld's only accept -v.
4480      # Break only if it was the GNU/non-GNU ld that we prefer.
4481      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4482      *GNU* | *'with BFD'*)
4483	test "$with_gnu_ld" != no && break
4484	;;
4485      *)
4486	test "$with_gnu_ld" != yes && break
4487	;;
4488      esac
4489    fi
4490  done
4491  IFS="$lt_save_ifs"
4492else
4493  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4494fi
4495fi
4496
4497LD="$lt_cv_path_LD"
4498if test -n "$LD"; then
4499  echo "$as_me:$LINENO: result: $LD" >&5
4500echo "${ECHO_T}$LD" >&6
4501else
4502  echo "$as_me:$LINENO: result: no" >&5
4503echo "${ECHO_T}no" >&6
4504fi
4505test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4506echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4507   { (exit 1); exit 1; }; }
4508echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4509echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4510if test "${lt_cv_prog_gnu_ld+set}" = set; then
4511  echo $ECHO_N "(cached) $ECHO_C" >&6
4512else
4513  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4514case `$LD -v 2>&1 </dev/null` in
4515*GNU* | *'with BFD'*)
4516  lt_cv_prog_gnu_ld=yes
4517  ;;
4518*)
4519  lt_cv_prog_gnu_ld=no
4520  ;;
4521esac
4522fi
4523echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4524echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4525with_gnu_ld=$lt_cv_prog_gnu_ld
4526
4527
4528echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4529echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4530if test "${lt_cv_ld_reload_flag+set}" = set; then
4531  echo $ECHO_N "(cached) $ECHO_C" >&6
4532else
4533  lt_cv_ld_reload_flag='-r'
4534fi
4535echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4536echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4537reload_flag=$lt_cv_ld_reload_flag
4538case $reload_flag in
4539"" | " "*) ;;
4540*) reload_flag=" $reload_flag" ;;
4541esac
4542reload_cmds='$LD$reload_flag -o $output$reload_objs'
4543
4544echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4545echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4546if test "${lt_cv_path_NM+set}" = set; then
4547  echo $ECHO_N "(cached) $ECHO_C" >&6
4548else
4549  if test -n "$NM"; then
4550  # Let the user override the test.
4551  lt_cv_path_NM="$NM"
4552else
4553  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4554  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4555    IFS="$lt_save_ifs"
4556    test -z "$ac_dir" && ac_dir=.
4557    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4558    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4559      # Check to see if the nm accepts a BSD-compat flag.
4560      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4561      #   nm: unknown option "B" ignored
4562      # Tru64's nm complains that /dev/null is an invalid object file
4563      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4564      */dev/null* | *'Invalid file or object type'*)
4565	lt_cv_path_NM="$tmp_nm -B"
4566	break
4567        ;;
4568      *)
4569	case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4570	*/dev/null*)
4571	  lt_cv_path_NM="$tmp_nm -p"
4572	  break
4573	  ;;
4574	*)
4575	  lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4576	  continue # so that we can try to find one that supports BSD flags
4577	  ;;
4578	esac
4579      esac
4580    fi
4581  done
4582  IFS="$lt_save_ifs"
4583  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4584fi
4585fi
4586echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4587echo "${ECHO_T}$lt_cv_path_NM" >&6
4588NM="$lt_cv_path_NM"
4589
4590echo "$as_me:$LINENO: checking whether ln -s works" >&5
4591echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4592LN_S=$as_ln_s
4593if test "$LN_S" = "ln -s"; then
4594  echo "$as_me:$LINENO: result: yes" >&5
4595echo "${ECHO_T}yes" >&6
4596else
4597  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4598echo "${ECHO_T}no, using $LN_S" >&6
4599fi
4600
4601echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4602echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4603if test "${lt_cv_deplibs_check_method+set}" = set; then
4604  echo $ECHO_N "(cached) $ECHO_C" >&6
4605else
4606  lt_cv_file_magic_cmd='$MAGIC_CMD'
4607lt_cv_file_magic_test_file=
4608lt_cv_deplibs_check_method='unknown'
4609# Need to set the preceding variable on all platforms that support
4610# interlibrary dependencies.
4611# 'none' -- dependencies not supported.
4612# `unknown' -- same as none, but documents that we really don't know.
4613# 'pass_all' -- all dependencies passed with no checks.
4614# 'test_compile' -- check by making test program.
4615# 'file_magic [[regex]]' -- check by looking for files in library path
4616# which responds to the $file_magic_cmd with a given extended regex.
4617# If you have `file' or equivalent on your system and you're not sure
4618# whether `pass_all' will *always* work, you probably want this one.
4619
4620case $host_os in
4621aix4* | aix5*)
4622  lt_cv_deplibs_check_method=pass_all
4623  ;;
4624
4625beos*)
4626  lt_cv_deplibs_check_method=pass_all
4627  ;;
4628
4629bsdi4*)
4630  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4631  lt_cv_file_magic_cmd='/usr/bin/file -L'
4632  lt_cv_file_magic_test_file=/shlib/libc.so
4633  ;;
4634
4635cygwin*)
4636  # func_win32_libid is a shell function defined in ltmain.sh
4637  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4638  lt_cv_file_magic_cmd='func_win32_libid'
4639  ;;
4640
4641mingw* | pw32*)
4642  # Base MSYS/MinGW do not provide the 'file' command needed by
4643  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4644  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4645  lt_cv_file_magic_cmd='$OBJDUMP -f'
4646  ;;
4647
4648darwin* | rhapsody*)
4649  lt_cv_deplibs_check_method=pass_all
4650  ;;
4651
4652freebsd* | kfreebsd*-gnu)
4653  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4654    case $host_cpu in
4655    i*86 )
4656      # Not sure whether the presence of OpenBSD here was a mistake.
4657      # Let's accept both of them until this is cleared up.
4658      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4659      lt_cv_file_magic_cmd=/usr/bin/file
4660      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4661      ;;
4662    esac
4663  else
4664    lt_cv_deplibs_check_method=pass_all
4665  fi
4666  ;;
4667
4668gnu*)
4669  lt_cv_deplibs_check_method=pass_all
4670  ;;
4671
4672hpux10.20* | hpux11*)
4673  lt_cv_file_magic_cmd=/usr/bin/file
4674  case "$host_cpu" in
4675  ia64*)
4676    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4677    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4678    ;;
4679  hppa*64*)
4680    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]'
4681    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4682    ;;
4683  *)
4684    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4685    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4686    ;;
4687  esac
4688  ;;
4689
4690irix5* | irix6* | nonstopux*)
4691  case $LD in
4692  *-32|*"-32 ") libmagic=32-bit;;
4693  *-n32|*"-n32 ") libmagic=N32;;
4694  *-64|*"-64 ") libmagic=64-bit;;
4695  *) libmagic=never-match;;
4696  esac
4697  lt_cv_deplibs_check_method=pass_all
4698  ;;
4699
4700# This must be Linux ELF.
4701linux*)
4702  lt_cv_deplibs_check_method=pass_all
4703  ;;
4704
4705netbsd* | knetbsd*-gnu)
4706  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4707    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4708  else
4709    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4710  fi
4711  ;;
4712
4713newos6*)
4714  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4715  lt_cv_file_magic_cmd=/usr/bin/file
4716  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4717  ;;
4718
4719nto-qnx*)
4720  lt_cv_deplibs_check_method=unknown
4721  ;;
4722
4723openbsd*)
4724  lt_cv_file_magic_cmd=/usr/bin/file
4725  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4726  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4727    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4728  else
4729    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4730  fi
4731  ;;
4732
4733osf3* | osf4* | osf5*)
4734  lt_cv_deplibs_check_method=pass_all
4735  ;;
4736
4737sco3.2v5*)
4738  lt_cv_deplibs_check_method=pass_all
4739  ;;
4740
4741solaris*)
4742  lt_cv_deplibs_check_method=pass_all
4743  ;;
4744
4745sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4746  case $host_vendor in
4747  motorola)
4748    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]'
4749    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4750    ;;
4751  ncr)
4752    lt_cv_deplibs_check_method=pass_all
4753    ;;
4754  sequent)
4755    lt_cv_file_magic_cmd='/bin/file'
4756    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4757    ;;
4758  sni)
4759    lt_cv_file_magic_cmd='/bin/file'
4760    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4761    lt_cv_file_magic_test_file=/lib/libc.so
4762    ;;
4763  siemens)
4764    lt_cv_deplibs_check_method=pass_all
4765    ;;
4766  esac
4767  ;;
4768
4769sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4770  lt_cv_deplibs_check_method=pass_all
4771  ;;
4772esac
4773
4774fi
4775echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4776echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4777file_magic_cmd=$lt_cv_file_magic_cmd
4778deplibs_check_method=$lt_cv_deplibs_check_method
4779test -z "$deplibs_check_method" && deplibs_check_method=unknown
4780
4781
4782
4783
4784# If no C compiler was specified, use CC.
4785LTCC=${LTCC-"$CC"}
4786
4787# Allow CC to be a program name with arguments.
4788compiler=$CC
4789
4790# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4791if test "${enable_libtool_lock+set}" = set; then
4792  enableval="$enable_libtool_lock"
4793
4794fi;
4795test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4796
4797# Some flags need to be propagated to the compiler or linker for good
4798# libtool support.
4799case $host in
4800ia64-*-hpux*)
4801  # Find out which ABI we are using.
4802  echo 'int i;' > conftest.$ac_ext
4803  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4804  (eval $ac_compile) 2>&5
4805  ac_status=$?
4806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807  (exit $ac_status); }; then
4808    case `/usr/bin/file conftest.$ac_objext` in
4809    *ELF-32*)
4810      HPUX_IA64_MODE="32"
4811      ;;
4812    *ELF-64*)
4813      HPUX_IA64_MODE="64"
4814      ;;
4815    esac
4816  fi
4817  rm -rf conftest*
4818  ;;
4819*-*-irix6*)
4820  # Find out which ABI we are using.
4821  echo '#line 4821 "configure"' > conftest.$ac_ext
4822  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4823  (eval $ac_compile) 2>&5
4824  ac_status=$?
4825  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826  (exit $ac_status); }; then
4827   if test "$lt_cv_prog_gnu_ld" = yes; then
4828    case `/usr/bin/file conftest.$ac_objext` in
4829    *32-bit*)
4830      LD="${LD-ld} -melf32bsmip"
4831      ;;
4832    *N32*)
4833      LD="${LD-ld} -melf32bmipn32"
4834      ;;
4835    *64-bit*)
4836      LD="${LD-ld} -melf64bmip"
4837      ;;
4838    esac
4839   else
4840    case `/usr/bin/file conftest.$ac_objext` in
4841    *32-bit*)
4842      LD="${LD-ld} -32"
4843      ;;
4844    *N32*)
4845      LD="${LD-ld} -n32"
4846      ;;
4847    *64-bit*)
4848      LD="${LD-ld} -64"
4849      ;;
4850    esac
4851   fi
4852  fi
4853  rm -rf conftest*
4854  ;;
4855
4856x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4857  # Find out which ABI we are using.
4858  echo 'int i;' > conftest.$ac_ext
4859  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4860  (eval $ac_compile) 2>&5
4861  ac_status=$?
4862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863  (exit $ac_status); }; then
4864    case "`/usr/bin/file conftest.o`" in
4865    *32-bit*)
4866      case $host in
4867        x86_64-*linux*)
4868          LD="${LD-ld} -m elf_i386"
4869          ;;
4870        ppc64-*linux*|powerpc64-*linux*)
4871          LD="${LD-ld} -m elf32ppclinux"
4872          ;;
4873        s390x-*linux*)
4874          LD="${LD-ld} -m elf_s390"
4875          ;;
4876        sparc64-*linux*)
4877          LD="${LD-ld} -m elf32_sparc"
4878          ;;
4879      esac
4880      ;;
4881    *64-bit*)
4882      case $host in
4883        x86_64-*linux*)
4884          LD="${LD-ld} -m elf_x86_64"
4885          ;;
4886        ppc*-*linux*|powerpc*-*linux*)
4887          LD="${LD-ld} -m elf64ppc"
4888          ;;
4889        s390*-*linux*)
4890          LD="${LD-ld} -m elf64_s390"
4891          ;;
4892        sparc*-*linux*)
4893          LD="${LD-ld} -m elf64_sparc"
4894          ;;
4895      esac
4896      ;;
4897    esac
4898  fi
4899  rm -rf conftest*
4900  ;;
4901
4902*-*-sco3.2v5*)
4903  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4904  SAVE_CFLAGS="$CFLAGS"
4905  CFLAGS="$CFLAGS -belf"
4906  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4907echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4908if test "${lt_cv_cc_needs_belf+set}" = set; then
4909  echo $ECHO_N "(cached) $ECHO_C" >&6
4910else
4911  ac_ext=c
4912ac_cpp='$CPP $CPPFLAGS'
4913ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4914ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4915ac_compiler_gnu=$ac_cv_c_compiler_gnu
4916
4917     cat >conftest.$ac_ext <<_ACEOF
4918/* confdefs.h.  */
4919_ACEOF
4920cat confdefs.h >>conftest.$ac_ext
4921cat >>conftest.$ac_ext <<_ACEOF
4922/* end confdefs.h.  */
4923
4924int
4925main ()
4926{
4927
4928  ;
4929  return 0;
4930}
4931_ACEOF
4932rm -f conftest.$ac_objext conftest$ac_exeext
4933if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4934  (eval $ac_link) 2>conftest.er1
4935  ac_status=$?
4936  grep -v '^ *+' conftest.er1 >conftest.err
4937  rm -f conftest.er1
4938  cat conftest.err >&5
4939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940  (exit $ac_status); } &&
4941	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
4942  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4943  (eval $ac_try) 2>&5
4944  ac_status=$?
4945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946  (exit $ac_status); }; } &&
4947	 { ac_try='test -s conftest$ac_exeext'
4948  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4949  (eval $ac_try) 2>&5
4950  ac_status=$?
4951  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952  (exit $ac_status); }; }; then
4953  lt_cv_cc_needs_belf=yes
4954else
4955  echo "$as_me: failed program was:" >&5
4956sed 's/^/| /' conftest.$ac_ext >&5
4957
4958lt_cv_cc_needs_belf=no
4959fi
4960rm -f conftest.err conftest.$ac_objext \
4961      conftest$ac_exeext conftest.$ac_ext
4962     ac_ext=c
4963ac_cpp='$CPP $CPPFLAGS'
4964ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4965ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4966ac_compiler_gnu=$ac_cv_c_compiler_gnu
4967
4968fi
4969echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4970echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4971  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4972    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4973    CFLAGS="$SAVE_CFLAGS"
4974  fi
4975  ;;
4976
4977esac
4978
4979need_locks="$enable_libtool_lock"
4980
4981
4982echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4983echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4984if test "${ac_cv_header_stdc+set}" = set; then
4985  echo $ECHO_N "(cached) $ECHO_C" >&6
4986else
4987  cat >conftest.$ac_ext <<_ACEOF
4988/* confdefs.h.  */
4989_ACEOF
4990cat confdefs.h >>conftest.$ac_ext
4991cat >>conftest.$ac_ext <<_ACEOF
4992/* end confdefs.h.  */
4993#include <stdlib.h>
4994#include <stdarg.h>
4995#include <string.h>
4996#include <float.h>
4997
4998int
4999main ()
5000{
5001
5002  ;
5003  return 0;
5004}
5005_ACEOF
5006rm -f conftest.$ac_objext
5007if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5008  (eval $ac_compile) 2>conftest.er1
5009  ac_status=$?
5010  grep -v '^ *+' conftest.er1 >conftest.err
5011  rm -f conftest.er1
5012  cat conftest.err >&5
5013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014  (exit $ac_status); } &&
5015	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
5016  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5017  (eval $ac_try) 2>&5
5018  ac_status=$?
5019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020  (exit $ac_status); }; } &&
5021	 { ac_try='test -s conftest.$ac_objext'
5022  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5023  (eval $ac_try) 2>&5
5024  ac_status=$?
5025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026  (exit $ac_status); }; }; then
5027  ac_cv_header_stdc=yes
5028else
5029  echo "$as_me: failed program was:" >&5
5030sed 's/^/| /' conftest.$ac_ext >&5
5031
5032ac_cv_header_stdc=no
5033fi
5034rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5035
5036if test $ac_cv_header_stdc = yes; then
5037  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5038  cat >conftest.$ac_ext <<_ACEOF
5039/* confdefs.h.  */
5040_ACEOF
5041cat confdefs.h >>conftest.$ac_ext
5042cat >>conftest.$ac_ext <<_ACEOF
5043/* end confdefs.h.  */
5044#include <string.h>
5045
5046_ACEOF
5047if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5048  $EGREP "memchr" >/dev/null 2>&1; then
5049  :
5050else
5051  ac_cv_header_stdc=no
5052fi
5053rm -f conftest*
5054
5055fi
5056
5057if test $ac_cv_header_stdc = yes; then
5058  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5059  cat >conftest.$ac_ext <<_ACEOF
5060/* confdefs.h.  */
5061_ACEOF
5062cat confdefs.h >>conftest.$ac_ext
5063cat >>conftest.$ac_ext <<_ACEOF
5064/* end confdefs.h.  */
5065#include <stdlib.h>
5066
5067_ACEOF
5068if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5069  $EGREP "free" >/dev/null 2>&1; then
5070  :
5071else
5072  ac_cv_header_stdc=no
5073fi
5074rm -f conftest*
5075
5076fi
5077
5078if test $ac_cv_header_stdc = yes; then
5079  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5080  if test "$cross_compiling" = yes; then
5081  :
5082else
5083  cat >conftest.$ac_ext <<_ACEOF
5084/* confdefs.h.  */
5085_ACEOF
5086cat confdefs.h >>conftest.$ac_ext
5087cat >>conftest.$ac_ext <<_ACEOF
5088/* end confdefs.h.  */
5089#include <ctype.h>
5090#if ((' ' & 0x0FF) == 0x020)
5091# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5092# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5093#else
5094# define ISLOWER(c) \
5095		   (('a' <= (c) && (c) <= 'i') \
5096		     || ('j' <= (c) && (c) <= 'r') \
5097		     || ('s' <= (c) && (c) <= 'z'))
5098# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5099#endif
5100
5101#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5102int
5103main ()
5104{
5105  int i;
5106  for (i = 0; i < 256; i++)
5107    if (XOR (islower (i), ISLOWER (i))
5108	|| toupper (i) != TOUPPER (i))
5109      exit(2);
5110  exit (0);
5111}
5112_ACEOF
5113rm -f conftest$ac_exeext
5114if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5115  (eval $ac_link) 2>&5
5116  ac_status=$?
5117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5119  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5120  (eval $ac_try) 2>&5
5121  ac_status=$?
5122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123  (exit $ac_status); }; }; then
5124  :
5125else
5126  echo "$as_me: program exited with status $ac_status" >&5
5127echo "$as_me: failed program was:" >&5
5128sed 's/^/| /' conftest.$ac_ext >&5
5129
5130( exit $ac_status )
5131ac_cv_header_stdc=no
5132fi
5133rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5134fi
5135fi
5136fi
5137echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5138echo "${ECHO_T}$ac_cv_header_stdc" >&6
5139if test $ac_cv_header_stdc = yes; then
5140
5141cat >>confdefs.h <<\_ACEOF
5142#define STDC_HEADERS 1
5143_ACEOF
5144
5145fi
5146
5147# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5158		  inttypes.h stdint.h unistd.h
5159do
5160as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5161echo "$as_me:$LINENO: checking for $ac_header" >&5
5162echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5163if eval "test \"\${$as_ac_Header+set}\" = set"; then
5164  echo $ECHO_N "(cached) $ECHO_C" >&6
5165else
5166  cat >conftest.$ac_ext <<_ACEOF
5167/* confdefs.h.  */
5168_ACEOF
5169cat confdefs.h >>conftest.$ac_ext
5170cat >>conftest.$ac_ext <<_ACEOF
5171/* end confdefs.h.  */
5172$ac_includes_default
5173
5174#include <$ac_header>
5175_ACEOF
5176rm -f conftest.$ac_objext
5177if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5178  (eval $ac_compile) 2>conftest.er1
5179  ac_status=$?
5180  grep -v '^ *+' conftest.er1 >conftest.err
5181  rm -f conftest.er1
5182  cat conftest.err >&5
5183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5184  (exit $ac_status); } &&
5185	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
5186  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5187  (eval $ac_try) 2>&5
5188  ac_status=$?
5189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190  (exit $ac_status); }; } &&
5191	 { ac_try='test -s conftest.$ac_objext'
5192  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5193  (eval $ac_try) 2>&5
5194  ac_status=$?
5195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196  (exit $ac_status); }; }; then
5197  eval "$as_ac_Header=yes"
5198else
5199  echo "$as_me: failed program was:" >&5
5200sed 's/^/| /' conftest.$ac_ext >&5
5201
5202eval "$as_ac_Header=no"
5203fi
5204rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5205fi
5206echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5207echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5208if test `eval echo '${'$as_ac_Header'}'` = yes; then
5209  cat >>confdefs.h <<_ACEOF
5210#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5211_ACEOF
5212
5213fi
5214
5215done
5216
5217
5218
5219for ac_header in dlfcn.h
5220do
5221as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5222if eval "test \"\${$as_ac_Header+set}\" = set"; then
5223  echo "$as_me:$LINENO: checking for $ac_header" >&5
5224echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5225if eval "test \"\${$as_ac_Header+set}\" = set"; then
5226  echo $ECHO_N "(cached) $ECHO_C" >&6
5227fi
5228echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5229echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5230else
5231  # Is the header compilable?
5232echo "$as_me:$LINENO: checking $ac_header usability" >&5
5233echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5234cat >conftest.$ac_ext <<_ACEOF
5235/* confdefs.h.  */
5236_ACEOF
5237cat confdefs.h >>conftest.$ac_ext
5238cat >>conftest.$ac_ext <<_ACEOF
5239/* end confdefs.h.  */
5240$ac_includes_default
5241#include <$ac_header>
5242_ACEOF
5243rm -f conftest.$ac_objext
5244if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5245  (eval $ac_compile) 2>conftest.er1
5246  ac_status=$?
5247  grep -v '^ *+' conftest.er1 >conftest.err
5248  rm -f conftest.er1
5249  cat conftest.err >&5
5250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5251  (exit $ac_status); } &&
5252	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
5253  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5254  (eval $ac_try) 2>&5
5255  ac_status=$?
5256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257  (exit $ac_status); }; } &&
5258	 { ac_try='test -s conftest.$ac_objext'
5259  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5260  (eval $ac_try) 2>&5
5261  ac_status=$?
5262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263  (exit $ac_status); }; }; then
5264  ac_header_compiler=yes
5265else
5266  echo "$as_me: failed program was:" >&5
5267sed 's/^/| /' conftest.$ac_ext >&5
5268
5269ac_header_compiler=no
5270fi
5271rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5272echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5273echo "${ECHO_T}$ac_header_compiler" >&6
5274
5275# Is the header present?
5276echo "$as_me:$LINENO: checking $ac_header presence" >&5
5277echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5278cat >conftest.$ac_ext <<_ACEOF
5279/* confdefs.h.  */
5280_ACEOF
5281cat confdefs.h >>conftest.$ac_ext
5282cat >>conftest.$ac_ext <<_ACEOF
5283/* end confdefs.h.  */
5284#include <$ac_header>
5285_ACEOF
5286if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5287  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5288  ac_status=$?
5289  grep -v '^ *+' conftest.er1 >conftest.err
5290  rm -f conftest.er1
5291  cat conftest.err >&5
5292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293  (exit $ac_status); } >/dev/null; then
5294  if test -s conftest.err; then
5295    ac_cpp_err=$ac_c_preproc_warn_flag
5296    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5297  else
5298    ac_cpp_err=
5299  fi
5300else
5301  ac_cpp_err=yes
5302fi
5303if test -z "$ac_cpp_err"; then
5304  ac_header_preproc=yes
5305else
5306  echo "$as_me: failed program was:" >&5
5307sed 's/^/| /' conftest.$ac_ext >&5
5308
5309  ac_header_preproc=no
5310fi
5311rm -f conftest.err conftest.$ac_ext
5312echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5313echo "${ECHO_T}$ac_header_preproc" >&6
5314
5315# So?  What about this header?
5316case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5317  yes:no: )
5318    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5319echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5320    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5321echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5322    ac_header_preproc=yes
5323    ;;
5324  no:yes:* )
5325    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5326echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5327    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5328echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5329    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5330echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5331    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5332echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5333    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5334echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5335    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5336echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5337    (
5338      cat <<\_ASBOX
5339## -------------------------------------------------- ##
5340## Report this to lincity-users@lists.sourceforge.net ##
5341## -------------------------------------------------- ##
5342_ASBOX
5343    ) |
5344      sed "s/^/$as_me: WARNING:     /" >&2
5345    ;;
5346esac
5347echo "$as_me:$LINENO: checking for $ac_header" >&5
5348echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5349if eval "test \"\${$as_ac_Header+set}\" = set"; then
5350  echo $ECHO_N "(cached) $ECHO_C" >&6
5351else
5352  eval "$as_ac_Header=\$ac_header_preproc"
5353fi
5354echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5355echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5356
5357fi
5358if test `eval echo '${'$as_ac_Header'}'` = yes; then
5359  cat >>confdefs.h <<_ACEOF
5360#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5361_ACEOF
5362
5363fi
5364
5365done
5366
5367ac_ext=cc
5368ac_cpp='$CXXCPP $CPPFLAGS'
5369ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5370ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5371ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5372if test -n "$ac_tool_prefix"; then
5373  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5374  do
5375    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5376set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5377echo "$as_me:$LINENO: checking for $ac_word" >&5
5378echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5379if test "${ac_cv_prog_CXX+set}" = set; then
5380  echo $ECHO_N "(cached) $ECHO_C" >&6
5381else
5382  if test -n "$CXX"; then
5383  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5384else
5385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5386for as_dir in $PATH
5387do
5388  IFS=$as_save_IFS
5389  test -z "$as_dir" && as_dir=.
5390  for ac_exec_ext in '' $ac_executable_extensions; do
5391  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5392    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5393    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5394    break 2
5395  fi
5396done
5397done
5398
5399fi
5400fi
5401CXX=$ac_cv_prog_CXX
5402if test -n "$CXX"; then
5403  echo "$as_me:$LINENO: result: $CXX" >&5
5404echo "${ECHO_T}$CXX" >&6
5405else
5406  echo "$as_me:$LINENO: result: no" >&5
5407echo "${ECHO_T}no" >&6
5408fi
5409
5410    test -n "$CXX" && break
5411  done
5412fi
5413if test -z "$CXX"; then
5414  ac_ct_CXX=$CXX
5415  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5416do
5417  # Extract the first word of "$ac_prog", so it can be a program name with args.
5418set dummy $ac_prog; ac_word=$2
5419echo "$as_me:$LINENO: checking for $ac_word" >&5
5420echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5421if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5422  echo $ECHO_N "(cached) $ECHO_C" >&6
5423else
5424  if test -n "$ac_ct_CXX"; then
5425  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5426else
5427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5428for as_dir in $PATH
5429do
5430  IFS=$as_save_IFS
5431  test -z "$as_dir" && as_dir=.
5432  for ac_exec_ext in '' $ac_executable_extensions; do
5433  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5434    ac_cv_prog_ac_ct_CXX="$ac_prog"
5435    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5436    break 2
5437  fi
5438done
5439done
5440
5441fi
5442fi
5443ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5444if test -n "$ac_ct_CXX"; then
5445  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5446echo "${ECHO_T}$ac_ct_CXX" >&6
5447else
5448  echo "$as_me:$LINENO: result: no" >&5
5449echo "${ECHO_T}no" >&6
5450fi
5451
5452  test -n "$ac_ct_CXX" && break
5453done
5454test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5455
5456  CXX=$ac_ct_CXX
5457fi
5458
5459
5460# Provide some information about the compiler.
5461echo "$as_me:$LINENO:" \
5462     "checking for C++ compiler version" >&5
5463ac_compiler=`set X $ac_compile; echo $2`
5464{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5465  (eval $ac_compiler --version </dev/null >&5) 2>&5
5466  ac_status=$?
5467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468  (exit $ac_status); }
5469{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5470  (eval $ac_compiler -v </dev/null >&5) 2>&5
5471  ac_status=$?
5472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473  (exit $ac_status); }
5474{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5475  (eval $ac_compiler -V </dev/null >&5) 2>&5
5476  ac_status=$?
5477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478  (exit $ac_status); }
5479
5480echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5481echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5482if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5483  echo $ECHO_N "(cached) $ECHO_C" >&6
5484else
5485  cat >conftest.$ac_ext <<_ACEOF
5486/* confdefs.h.  */
5487_ACEOF
5488cat confdefs.h >>conftest.$ac_ext
5489cat >>conftest.$ac_ext <<_ACEOF
5490/* end confdefs.h.  */
5491
5492int
5493main ()
5494{
5495#ifndef __GNUC__
5496       choke me
5497#endif
5498
5499  ;
5500  return 0;
5501}
5502_ACEOF
5503rm -f conftest.$ac_objext
5504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5505  (eval $ac_compile) 2>conftest.er1
5506  ac_status=$?
5507  grep -v '^ *+' conftest.er1 >conftest.err
5508  rm -f conftest.er1
5509  cat conftest.err >&5
5510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511  (exit $ac_status); } &&
5512	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
5513  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5514  (eval $ac_try) 2>&5
5515  ac_status=$?
5516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517  (exit $ac_status); }; } &&
5518	 { ac_try='test -s conftest.$ac_objext'
5519  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5520  (eval $ac_try) 2>&5
5521  ac_status=$?
5522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523  (exit $ac_status); }; }; then
5524  ac_compiler_gnu=yes
5525else
5526  echo "$as_me: failed program was:" >&5
5527sed 's/^/| /' conftest.$ac_ext >&5
5528
5529ac_compiler_gnu=no
5530fi
5531rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5532ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5533
5534fi
5535echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5536echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5537GXX=`test $ac_compiler_gnu = yes && echo yes`
5538ac_test_CXXFLAGS=${CXXFLAGS+set}
5539ac_save_CXXFLAGS=$CXXFLAGS
5540CXXFLAGS="-g"
5541echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5542echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5543if test "${ac_cv_prog_cxx_g+set}" = set; then
5544  echo $ECHO_N "(cached) $ECHO_C" >&6
5545else
5546  cat >conftest.$ac_ext <<_ACEOF
5547/* confdefs.h.  */
5548_ACEOF
5549cat confdefs.h >>conftest.$ac_ext
5550cat >>conftest.$ac_ext <<_ACEOF
5551/* end confdefs.h.  */
5552
5553int
5554main ()
5555{
5556
5557  ;
5558  return 0;
5559}
5560_ACEOF
5561rm -f conftest.$ac_objext
5562if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5563  (eval $ac_compile) 2>conftest.er1
5564  ac_status=$?
5565  grep -v '^ *+' conftest.er1 >conftest.err
5566  rm -f conftest.er1
5567  cat conftest.err >&5
5568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569  (exit $ac_status); } &&
5570	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
5571  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5572  (eval $ac_try) 2>&5
5573  ac_status=$?
5574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575  (exit $ac_status); }; } &&
5576	 { ac_try='test -s conftest.$ac_objext'
5577  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5578  (eval $ac_try) 2>&5
5579  ac_status=$?
5580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581  (exit $ac_status); }; }; then
5582  ac_cv_prog_cxx_g=yes
5583else
5584  echo "$as_me: failed program was:" >&5
5585sed 's/^/| /' conftest.$ac_ext >&5
5586
5587ac_cv_prog_cxx_g=no
5588fi
5589rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5590fi
5591echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5592echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5593if test "$ac_test_CXXFLAGS" = set; then
5594  CXXFLAGS=$ac_save_CXXFLAGS
5595elif test $ac_cv_prog_cxx_g = yes; then
5596  if test "$GXX" = yes; then
5597    CXXFLAGS="-g -O2"
5598  else
5599    CXXFLAGS="-g"
5600  fi
5601else
5602  if test "$GXX" = yes; then
5603    CXXFLAGS="-O2"
5604  else
5605    CXXFLAGS=
5606  fi
5607fi
5608for ac_declaration in \
5609   '' \
5610   'extern "C" void std::exit (int) throw (); using std::exit;' \
5611   'extern "C" void std::exit (int); using std::exit;' \
5612   'extern "C" void exit (int) throw ();' \
5613   'extern "C" void exit (int);' \
5614   'void exit (int);'
5615do
5616  cat >conftest.$ac_ext <<_ACEOF
5617/* confdefs.h.  */
5618_ACEOF
5619cat confdefs.h >>conftest.$ac_ext
5620cat >>conftest.$ac_ext <<_ACEOF
5621/* end confdefs.h.  */
5622$ac_declaration
5623#include <stdlib.h>
5624int
5625main ()
5626{
5627exit (42);
5628  ;
5629  return 0;
5630}
5631_ACEOF
5632rm -f conftest.$ac_objext
5633if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5634  (eval $ac_compile) 2>conftest.er1
5635  ac_status=$?
5636  grep -v '^ *+' conftest.er1 >conftest.err
5637  rm -f conftest.er1
5638  cat conftest.err >&5
5639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640  (exit $ac_status); } &&
5641	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
5642  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5643  (eval $ac_try) 2>&5
5644  ac_status=$?
5645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646  (exit $ac_status); }; } &&
5647	 { ac_try='test -s conftest.$ac_objext'
5648  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5649  (eval $ac_try) 2>&5
5650  ac_status=$?
5651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652  (exit $ac_status); }; }; then
5653  :
5654else
5655  echo "$as_me: failed program was:" >&5
5656sed 's/^/| /' conftest.$ac_ext >&5
5657
5658continue
5659fi
5660rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5661  cat >conftest.$ac_ext <<_ACEOF
5662/* confdefs.h.  */
5663_ACEOF
5664cat confdefs.h >>conftest.$ac_ext
5665cat >>conftest.$ac_ext <<_ACEOF
5666/* end confdefs.h.  */
5667$ac_declaration
5668int
5669main ()
5670{
5671exit (42);
5672  ;
5673  return 0;
5674}
5675_ACEOF
5676rm -f conftest.$ac_objext
5677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5678  (eval $ac_compile) 2>conftest.er1
5679  ac_status=$?
5680  grep -v '^ *+' conftest.er1 >conftest.err
5681  rm -f conftest.er1
5682  cat conftest.err >&5
5683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684  (exit $ac_status); } &&
5685	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
5686  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5687  (eval $ac_try) 2>&5
5688  ac_status=$?
5689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690  (exit $ac_status); }; } &&
5691	 { ac_try='test -s conftest.$ac_objext'
5692  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5693  (eval $ac_try) 2>&5
5694  ac_status=$?
5695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696  (exit $ac_status); }; }; then
5697  break
5698else
5699  echo "$as_me: failed program was:" >&5
5700sed 's/^/| /' conftest.$ac_ext >&5
5701
5702fi
5703rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5704done
5705rm -f conftest*
5706if test -n "$ac_declaration"; then
5707  echo '#ifdef __cplusplus' >>confdefs.h
5708  echo $ac_declaration      >>confdefs.h
5709  echo '#endif'             >>confdefs.h
5710fi
5711
5712ac_ext=cc
5713ac_cpp='$CXXCPP $CPPFLAGS'
5714ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5715ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5716ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5717
5718depcc="$CXX"  am_compiler_list=
5719
5720echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5721echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5722if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5723  echo $ECHO_N "(cached) $ECHO_C" >&6
5724else
5725  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5726  # We make a subdir and do the tests there.  Otherwise we can end up
5727  # making bogus files that we don't know about and never remove.  For
5728  # instance it was reported that on HP-UX the gcc test will end up
5729  # making a dummy file named `D' -- because `-MD' means `put the output
5730  # in D'.
5731  mkdir conftest.dir
5732  # Copy depcomp to subdir because otherwise we won't find it if we're
5733  # using a relative directory.
5734  cp "$am_depcomp" conftest.dir
5735  cd conftest.dir
5736  # We will build objects and dependencies in a subdirectory because
5737  # it helps to detect inapplicable dependency modes.  For instance
5738  # both Tru64's cc and ICC support -MD to output dependencies as a
5739  # side effect of compilation, but ICC will put the dependencies in
5740  # the current directory while Tru64 will put them in the object
5741  # directory.
5742  mkdir sub
5743
5744  am_cv_CXX_dependencies_compiler_type=none
5745  if test "$am_compiler_list" = ""; then
5746     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5747  fi
5748  for depmode in $am_compiler_list; do
5749    # Setup a source with many dependencies, because some compilers
5750    # like to wrap large dependency lists on column 80 (with \), and
5751    # we should not choose a depcomp mode which is confused by this.
5752    #
5753    # We need to recreate these files for each test, as the compiler may
5754    # overwrite some of them when testing with obscure command lines.
5755    # This happens at least with the AIX C compiler.
5756    : > sub/conftest.c
5757    for i in 1 2 3 4 5 6; do
5758      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5759      : > sub/conftst$i.h
5760    done
5761    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5762
5763    case $depmode in
5764    nosideeffect)
5765      # after this tag, mechanisms are not by side-effect, so they'll
5766      # only be used when explicitly requested
5767      if test "x$enable_dependency_tracking" = xyes; then
5768	continue
5769      else
5770	break
5771      fi
5772      ;;
5773    none) break ;;
5774    esac
5775    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5776    # mode.  It turns out that the SunPro C++ compiler does not properly
5777    # handle `-M -o', and we need to detect this.
5778    if depmode=$depmode \
5779       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5780       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5781       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5782         >/dev/null 2>conftest.err &&
5783       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5784       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5785       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5786      # icc doesn't choke on unknown options, it will just issue warnings
5787      # (even with -Werror).  So we grep stderr for any message
5788      # that says an option was ignored.
5789      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
5790        am_cv_CXX_dependencies_compiler_type=$depmode
5791        break
5792      fi
5793    fi
5794  done
5795
5796  cd ..
5797  rm -rf conftest.dir
5798else
5799  am_cv_CXX_dependencies_compiler_type=none
5800fi
5801
5802fi
5803echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5804echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5805CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5806
5807
5808
5809if
5810  test "x$enable_dependency_tracking" != xno \
5811  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5812  am__fastdepCXX_TRUE=
5813  am__fastdepCXX_FALSE='#'
5814else
5815  am__fastdepCXX_TRUE='#'
5816  am__fastdepCXX_FALSE=
5817fi
5818
5819
5820ac_ext=cc
5821ac_cpp='$CXXCPP $CPPFLAGS'
5822ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5823ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5824ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5825echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5826echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5827if test -z "$CXXCPP"; then
5828  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5829  echo $ECHO_N "(cached) $ECHO_C" >&6
5830else
5831      # Double quotes because CXXCPP needs to be expanded
5832    for CXXCPP in "$CXX -E" "/lib/cpp"
5833    do
5834      ac_preproc_ok=false
5835for ac_cxx_preproc_warn_flag in '' yes
5836do
5837  # Use a header file that comes with gcc, so configuring glibc
5838  # with a fresh cross-compiler works.
5839  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5840  # <limits.h> exists even on freestanding compilers.
5841  # On the NeXT, cc -E runs the code through the compiler's parser,
5842  # not just through cpp. "Syntax error" is here to catch this case.
5843  cat >conftest.$ac_ext <<_ACEOF
5844/* confdefs.h.  */
5845_ACEOF
5846cat confdefs.h >>conftest.$ac_ext
5847cat >>conftest.$ac_ext <<_ACEOF
5848/* end confdefs.h.  */
5849#ifdef __STDC__
5850# include <limits.h>
5851#else
5852# include <assert.h>
5853#endif
5854		     Syntax error
5855_ACEOF
5856if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5857  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5858  ac_status=$?
5859  grep -v '^ *+' conftest.er1 >conftest.err
5860  rm -f conftest.er1
5861  cat conftest.err >&5
5862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863  (exit $ac_status); } >/dev/null; then
5864  if test -s conftest.err; then
5865    ac_cpp_err=$ac_cxx_preproc_warn_flag
5866    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5867  else
5868    ac_cpp_err=
5869  fi
5870else
5871  ac_cpp_err=yes
5872fi
5873if test -z "$ac_cpp_err"; then
5874  :
5875else
5876  echo "$as_me: failed program was:" >&5
5877sed 's/^/| /' conftest.$ac_ext >&5
5878
5879  # Broken: fails on valid input.
5880continue
5881fi
5882rm -f conftest.err conftest.$ac_ext
5883
5884  # OK, works on sane cases.  Now check whether non-existent headers
5885  # can be detected and how.
5886  cat >conftest.$ac_ext <<_ACEOF
5887/* confdefs.h.  */
5888_ACEOF
5889cat confdefs.h >>conftest.$ac_ext
5890cat >>conftest.$ac_ext <<_ACEOF
5891/* end confdefs.h.  */
5892#include <ac_nonexistent.h>
5893_ACEOF
5894if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5895  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5896  ac_status=$?
5897  grep -v '^ *+' conftest.er1 >conftest.err
5898  rm -f conftest.er1
5899  cat conftest.err >&5
5900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901  (exit $ac_status); } >/dev/null; then
5902  if test -s conftest.err; then
5903    ac_cpp_err=$ac_cxx_preproc_warn_flag
5904    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5905  else
5906    ac_cpp_err=
5907  fi
5908else
5909  ac_cpp_err=yes
5910fi
5911if test -z "$ac_cpp_err"; then
5912  # Broken: success on invalid input.
5913continue
5914else
5915  echo "$as_me: failed program was:" >&5
5916sed 's/^/| /' conftest.$ac_ext >&5
5917
5918  # Passes both tests.
5919ac_preproc_ok=:
5920break
5921fi
5922rm -f conftest.err conftest.$ac_ext
5923
5924done
5925# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5926rm -f conftest.err conftest.$ac_ext
5927if $ac_preproc_ok; then
5928  break
5929fi
5930
5931    done
5932    ac_cv_prog_CXXCPP=$CXXCPP
5933
5934fi
5935  CXXCPP=$ac_cv_prog_CXXCPP
5936else
5937  ac_cv_prog_CXXCPP=$CXXCPP
5938fi
5939echo "$as_me:$LINENO: result: $CXXCPP" >&5
5940echo "${ECHO_T}$CXXCPP" >&6
5941ac_preproc_ok=false
5942for ac_cxx_preproc_warn_flag in '' yes
5943do
5944  # Use a header file that comes with gcc, so configuring glibc
5945  # with a fresh cross-compiler works.
5946  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5947  # <limits.h> exists even on freestanding compilers.
5948  # On the NeXT, cc -E runs the code through the compiler's parser,
5949  # not just through cpp. "Syntax error" is here to catch this case.
5950  cat >conftest.$ac_ext <<_ACEOF
5951/* confdefs.h.  */
5952_ACEOF
5953cat confdefs.h >>conftest.$ac_ext
5954cat >>conftest.$ac_ext <<_ACEOF
5955/* end confdefs.h.  */
5956#ifdef __STDC__
5957# include <limits.h>
5958#else
5959# include <assert.h>
5960#endif
5961		     Syntax error
5962_ACEOF
5963if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5964  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5965  ac_status=$?
5966  grep -v '^ *+' conftest.er1 >conftest.err
5967  rm -f conftest.er1
5968  cat conftest.err >&5
5969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5970  (exit $ac_status); } >/dev/null; then
5971  if test -s conftest.err; then
5972    ac_cpp_err=$ac_cxx_preproc_warn_flag
5973    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5974  else
5975    ac_cpp_err=
5976  fi
5977else
5978  ac_cpp_err=yes
5979fi
5980if test -z "$ac_cpp_err"; then
5981  :
5982else
5983  echo "$as_me: failed program was:" >&5
5984sed 's/^/| /' conftest.$ac_ext >&5
5985
5986  # Broken: fails on valid input.
5987continue
5988fi
5989rm -f conftest.err conftest.$ac_ext
5990
5991  # OK, works on sane cases.  Now check whether non-existent headers
5992  # can be detected and how.
5993  cat >conftest.$ac_ext <<_ACEOF
5994/* confdefs.h.  */
5995_ACEOF
5996cat confdefs.h >>conftest.$ac_ext
5997cat >>conftest.$ac_ext <<_ACEOF
5998/* end confdefs.h.  */
5999#include <ac_nonexistent.h>
6000_ACEOF
6001if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6002  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6003  ac_status=$?
6004  grep -v '^ *+' conftest.er1 >conftest.err
6005  rm -f conftest.er1
6006  cat conftest.err >&5
6007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008  (exit $ac_status); } >/dev/null; then
6009  if test -s conftest.err; then
6010    ac_cpp_err=$ac_cxx_preproc_warn_flag
6011    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6012  else
6013    ac_cpp_err=
6014  fi
6015else
6016  ac_cpp_err=yes
6017fi
6018if test -z "$ac_cpp_err"; then
6019  # Broken: success on invalid input.
6020continue
6021else
6022  echo "$as_me: failed program was:" >&5
6023sed 's/^/| /' conftest.$ac_ext >&5
6024
6025  # Passes both tests.
6026ac_preproc_ok=:
6027break
6028fi
6029rm -f conftest.err conftest.$ac_ext
6030
6031done
6032# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6033rm -f conftest.err conftest.$ac_ext
6034if $ac_preproc_ok; then
6035  :
6036else
6037  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6038See \`config.log' for more details." >&5
6039echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6040See \`config.log' for more details." >&2;}
6041   { (exit 1); exit 1; }; }
6042fi
6043
6044ac_ext=cc
6045ac_cpp='$CXXCPP $CPPFLAGS'
6046ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6047ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6048ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6049
6050
6051ac_ext=f
6052ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6053ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6054ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6055if test -n "$ac_tool_prefix"; then
6056  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6057  do
6058    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6059set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6060echo "$as_me:$LINENO: checking for $ac_word" >&5
6061echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6062if test "${ac_cv_prog_F77+set}" = set; then
6063  echo $ECHO_N "(cached) $ECHO_C" >&6
6064else
6065  if test -n "$F77"; then
6066  ac_cv_prog_F77="$F77" # Let the user override the test.
6067else
6068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6069for as_dir in $PATH
6070do
6071  IFS=$as_save_IFS
6072  test -z "$as_dir" && as_dir=.
6073  for ac_exec_ext in '' $ac_executable_extensions; do
6074  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6075    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6076    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6077    break 2
6078  fi
6079done
6080done
6081
6082fi
6083fi
6084F77=$ac_cv_prog_F77
6085if test -n "$F77"; then
6086  echo "$as_me:$LINENO: result: $F77" >&5
6087echo "${ECHO_T}$F77" >&6
6088else
6089  echo "$as_me:$LINENO: result: no" >&5
6090echo "${ECHO_T}no" >&6
6091fi
6092
6093    test -n "$F77" && break
6094  done
6095fi
6096if test -z "$F77"; then
6097  ac_ct_F77=$F77
6098  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6099do
6100  # Extract the first word of "$ac_prog", so it can be a program name with args.
6101set dummy $ac_prog; ac_word=$2
6102echo "$as_me:$LINENO: checking for $ac_word" >&5
6103echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6104if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6105  echo $ECHO_N "(cached) $ECHO_C" >&6
6106else
6107  if test -n "$ac_ct_F77"; then
6108  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6109else
6110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6111for as_dir in $PATH
6112do
6113  IFS=$as_save_IFS
6114  test -z "$as_dir" && as_dir=.
6115  for ac_exec_ext in '' $ac_executable_extensions; do
6116  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6117    ac_cv_prog_ac_ct_F77="$ac_prog"
6118    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6119    break 2
6120  fi
6121done
6122done
6123
6124fi
6125fi
6126ac_ct_F77=$ac_cv_prog_ac_ct_F77
6127if test -n "$ac_ct_F77"; then
6128  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6129echo "${ECHO_T}$ac_ct_F77" >&6
6130else
6131  echo "$as_me:$LINENO: result: no" >&5
6132echo "${ECHO_T}no" >&6
6133fi
6134
6135  test -n "$ac_ct_F77" && break
6136done
6137
6138  F77=$ac_ct_F77
6139fi
6140
6141
6142# Provide some information about the compiler.
6143echo "$as_me:6143:" \
6144     "checking for Fortran 77 compiler version" >&5
6145ac_compiler=`set X $ac_compile; echo $2`
6146{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6147  (eval $ac_compiler --version </dev/null >&5) 2>&5
6148  ac_status=$?
6149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150  (exit $ac_status); }
6151{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6152  (eval $ac_compiler -v </dev/null >&5) 2>&5
6153  ac_status=$?
6154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155  (exit $ac_status); }
6156{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6157  (eval $ac_compiler -V </dev/null >&5) 2>&5
6158  ac_status=$?
6159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160  (exit $ac_status); }
6161rm -f a.out
6162
6163# If we don't use `.F' as extension, the preprocessor is not run on the
6164# input file.  (Note that this only needs to work for GNU compilers.)
6165ac_save_ext=$ac_ext
6166ac_ext=F
6167echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6168echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6169if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6170  echo $ECHO_N "(cached) $ECHO_C" >&6
6171else
6172  cat >conftest.$ac_ext <<_ACEOF
6173      program main
6174#ifndef __GNUC__
6175       choke me
6176#endif
6177
6178      end
6179_ACEOF
6180rm -f conftest.$ac_objext
6181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6182  (eval $ac_compile) 2>conftest.er1
6183  ac_status=$?
6184  grep -v '^ *+' conftest.er1 >conftest.err
6185  rm -f conftest.er1
6186  cat conftest.err >&5
6187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188  (exit $ac_status); } &&
6189	 { ac_try='test -z "$ac_f77_werror_flag"			 || test ! -s conftest.err'
6190  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6191  (eval $ac_try) 2>&5
6192  ac_status=$?
6193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194  (exit $ac_status); }; } &&
6195	 { ac_try='test -s conftest.$ac_objext'
6196  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6197  (eval $ac_try) 2>&5
6198  ac_status=$?
6199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200  (exit $ac_status); }; }; then
6201  ac_compiler_gnu=yes
6202else
6203  echo "$as_me: failed program was:" >&5
6204sed 's/^/| /' conftest.$ac_ext >&5
6205
6206ac_compiler_gnu=no
6207fi
6208rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6209ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6210
6211fi
6212echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6213echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6214ac_ext=$ac_save_ext
6215ac_test_FFLAGS=${FFLAGS+set}
6216ac_save_FFLAGS=$FFLAGS
6217FFLAGS=
6218echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6219echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6220if test "${ac_cv_prog_f77_g+set}" = set; then
6221  echo $ECHO_N "(cached) $ECHO_C" >&6
6222else
6223  FFLAGS=-g
6224cat >conftest.$ac_ext <<_ACEOF
6225      program main
6226
6227      end
6228_ACEOF
6229rm -f conftest.$ac_objext
6230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6231  (eval $ac_compile) 2>conftest.er1
6232  ac_status=$?
6233  grep -v '^ *+' conftest.er1 >conftest.err
6234  rm -f conftest.er1
6235  cat conftest.err >&5
6236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237  (exit $ac_status); } &&
6238	 { ac_try='test -z "$ac_f77_werror_flag"			 || test ! -s conftest.err'
6239  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6240  (eval $ac_try) 2>&5
6241  ac_status=$?
6242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243  (exit $ac_status); }; } &&
6244	 { ac_try='test -s conftest.$ac_objext'
6245  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6246  (eval $ac_try) 2>&5
6247  ac_status=$?
6248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249  (exit $ac_status); }; }; then
6250  ac_cv_prog_f77_g=yes
6251else
6252  echo "$as_me: failed program was:" >&5
6253sed 's/^/| /' conftest.$ac_ext >&5
6254
6255ac_cv_prog_f77_g=no
6256fi
6257rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6258
6259fi
6260echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6261echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6262if test "$ac_test_FFLAGS" = set; then
6263  FFLAGS=$ac_save_FFLAGS
6264elif test $ac_cv_prog_f77_g = yes; then
6265  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6266    FFLAGS="-g -O2"
6267  else
6268    FFLAGS="-g"
6269  fi
6270else
6271  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6272    FFLAGS="-O2"
6273  else
6274    FFLAGS=
6275  fi
6276fi
6277
6278G77=`test $ac_compiler_gnu = yes && echo yes`
6279ac_ext=c
6280ac_cpp='$CPP $CPPFLAGS'
6281ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6282ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6283ac_compiler_gnu=$ac_cv_c_compiler_gnu
6284
6285
6286
6287# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6288
6289# find the maximum length of command line arguments
6290echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6291echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6292if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6293  echo $ECHO_N "(cached) $ECHO_C" >&6
6294else
6295    i=0
6296  teststring="ABCD"
6297
6298  case $build_os in
6299  msdosdjgpp*)
6300    # On DJGPP, this test can blow up pretty badly due to problems in libc
6301    # (any single argument exceeding 2000 bytes causes a buffer overrun
6302    # during glob expansion).  Even if it were fixed, the result of this
6303    # check would be larger than it should be.
6304    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6305    ;;
6306
6307  gnu*)
6308    # Under GNU Hurd, this test is not required because there is
6309    # no limit to the length of command line arguments.
6310    # Libtool will interpret -1 as no limit whatsoever
6311    lt_cv_sys_max_cmd_len=-1;
6312    ;;
6313
6314  cygwin* | mingw*)
6315    # On Win9x/ME, this test blows up -- it succeeds, but takes
6316    # about 5 minutes as the teststring grows exponentially.
6317    # Worse, since 9x/ME are not pre-emptively multitasking,
6318    # you end up with a "frozen" computer, even though with patience
6319    # the test eventually succeeds (with a max line length of 256k).
6320    # Instead, let's just punt: use the minimum linelength reported by
6321    # all of the supported platforms: 8192 (on NT/2K/XP).
6322    lt_cv_sys_max_cmd_len=8192;
6323    ;;
6324
6325  amigaos*)
6326    # On AmigaOS with pdksh, this test takes hours, literally.
6327    # So we just punt and use a minimum line length of 8192.
6328    lt_cv_sys_max_cmd_len=8192;
6329    ;;
6330
6331 *)
6332    # If test is not a shell built-in, we'll probably end up computing a
6333    # maximum length that is only half of the actual maximum length, but
6334    # we can't tell.
6335    while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6336	       = "XX$teststring") >/dev/null 2>&1 &&
6337	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
6338	    lt_cv_sys_max_cmd_len=$new_result &&
6339	    test $i != 17 # 1/2 MB should be enough
6340    do
6341      i=`expr $i + 1`
6342      teststring=$teststring$teststring
6343    done
6344    teststring=
6345    # Add a significant safety factor because C++ compilers can tack on massive
6346    # amounts of additional arguments before passing them to the linker.
6347    # It appears as though 1/2 is a usable value.
6348    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6349    ;;
6350  esac
6351
6352fi
6353
6354if test -n $lt_cv_sys_max_cmd_len ; then
6355  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6356echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6357else
6358  echo "$as_me:$LINENO: result: none" >&5
6359echo "${ECHO_T}none" >&6
6360fi
6361
6362
6363
6364
6365# Check for command to grab the raw symbol name followed by C symbol from nm.
6366echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6367echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6368if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6369  echo $ECHO_N "(cached) $ECHO_C" >&6
6370else
6371
6372# These are sane defaults that work on at least a few old systems.
6373# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6374
6375# Character class describing NM global symbol codes.
6376symcode='[BCDEGRST]'
6377
6378# Regexp to match symbols that can be accessed directly from C.
6379sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6380
6381# Transform the above into a raw symbol and a C symbol.
6382symxfrm='\1 \2\3 \3'
6383
6384# Transform an extracted symbol line into a proper C declaration
6385lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6386
6387# Transform an extracted symbol line into symbol name and symbol address
6388lt_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'"
6389
6390# Define system-specific variables.
6391case $host_os in
6392aix*)
6393  symcode='[BCDT]'
6394  ;;
6395cygwin* | mingw* | pw32*)
6396  symcode='[ABCDGISTW]'
6397  ;;
6398hpux*) # Its linker distinguishes data from code symbols
6399  if test "$host_cpu" = ia64; then
6400    symcode='[ABCDEGRST]'
6401  fi
6402  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6403  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'"
6404  ;;
6405irix* | nonstopux*)
6406  symcode='[BCDEGRST]'
6407  ;;
6408osf*)
6409  symcode='[BCDEGQRST]'
6410  ;;
6411solaris* | sysv5*)
6412  symcode='[BDRT]'
6413  ;;
6414sysv4)
6415  symcode='[DFNSTU]'
6416  ;;
6417esac
6418
6419# Handle CRLF in mingw tool chain
6420opt_cr=
6421case $build_os in
6422mingw*)
6423  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6424  ;;
6425esac
6426
6427# If we're using GNU nm, then use its standard symbol codes.
6428case `$NM -V 2>&1` in
6429*GNU* | *'with BFD'*)
6430  symcode='[ABCDGIRSTW]' ;;
6431esac
6432
6433# Try without a prefix undercore, then with it.
6434for ac_symprfx in "" "_"; do
6435
6436  # Write the raw and C identifiers.
6437  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
6438
6439  # Check to see that the pipe works correctly.
6440  pipe_works=no
6441
6442  rm -f conftest*
6443  cat > conftest.$ac_ext <<EOF
6444#ifdef __cplusplus
6445extern "C" {
6446#endif
6447char nm_test_var;
6448void nm_test_func(){}
6449#ifdef __cplusplus
6450}
6451#endif
6452int main(){nm_test_var='a';nm_test_func();return(0);}
6453EOF
6454
6455  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6456  (eval $ac_compile) 2>&5
6457  ac_status=$?
6458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459  (exit $ac_status); }; then
6460    # Now try to grab the symbols.
6461    nlist=conftest.nm
6462    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6463  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6464  ac_status=$?
6465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466  (exit $ac_status); } && test -s "$nlist"; then
6467      # Try sorting and uniquifying the output.
6468      if sort "$nlist" | uniq > "$nlist"T; then
6469	mv -f "$nlist"T "$nlist"
6470      else
6471	rm -f "$nlist"T
6472      fi
6473
6474      # Make sure that we snagged all the symbols we need.
6475      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6476	if grep ' nm_test_func$' "$nlist" >/dev/null; then
6477	  cat <<EOF > conftest.$ac_ext
6478#ifdef __cplusplus
6479extern "C" {
6480#endif
6481
6482EOF
6483	  # Now generate the symbol file.
6484	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6485
6486	  cat <<EOF >> conftest.$ac_ext
6487#if defined (__STDC__) && __STDC__
6488# define lt_ptr_t void *
6489#else
6490# define lt_ptr_t char *
6491# define const
6492#endif
6493
6494/* The mapping between symbol names and symbols. */
6495const struct {
6496  const char *name;
6497  lt_ptr_t address;
6498}
6499lt_preloaded_symbols[] =
6500{
6501EOF
6502	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6503	  cat <<\EOF >> conftest.$ac_ext
6504  {0, (lt_ptr_t) 0}
6505};
6506
6507#ifdef __cplusplus
6508}
6509#endif
6510EOF
6511	  # Now try linking the two files.
6512	  mv conftest.$ac_objext conftstm.$ac_objext
6513	  lt_save_LIBS="$LIBS"
6514	  lt_save_CFLAGS="$CFLAGS"
6515	  LIBS="conftstm.$ac_objext"
6516	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6517	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6518  (eval $ac_link) 2>&5
6519  ac_status=$?
6520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6522	    pipe_works=yes
6523	  fi
6524	  LIBS="$lt_save_LIBS"
6525	  CFLAGS="$lt_save_CFLAGS"
6526	else
6527	  echo "cannot find nm_test_func in $nlist" >&5
6528	fi
6529      else
6530	echo "cannot find nm_test_var in $nlist" >&5
6531      fi
6532    else
6533      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6534    fi
6535  else
6536    echo "$progname: failed program was:" >&5
6537    cat conftest.$ac_ext >&5
6538  fi
6539  rm -f conftest* conftst*
6540
6541  # Do not use the global_symbol_pipe unless it works.
6542  if test "$pipe_works" = yes; then
6543    break
6544  else
6545    lt_cv_sys_global_symbol_pipe=
6546  fi
6547done
6548
6549fi
6550
6551if test -z "$lt_cv_sys_global_symbol_pipe"; then
6552  lt_cv_sys_global_symbol_to_cdecl=
6553fi
6554if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6555  echo "$as_me:$LINENO: result: failed" >&5
6556echo "${ECHO_T}failed" >&6
6557else
6558  echo "$as_me:$LINENO: result: ok" >&5
6559echo "${ECHO_T}ok" >&6
6560fi
6561
6562echo "$as_me:$LINENO: checking for objdir" >&5
6563echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6564if test "${lt_cv_objdir+set}" = set; then
6565  echo $ECHO_N "(cached) $ECHO_C" >&6
6566else
6567  rm -f .libs 2>/dev/null
6568mkdir .libs 2>/dev/null
6569if test -d .libs; then
6570  lt_cv_objdir=.libs
6571else
6572  # MS-DOS does not allow filenames that begin with a dot.
6573  lt_cv_objdir=_libs
6574fi
6575rmdir .libs 2>/dev/null
6576fi
6577echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6578echo "${ECHO_T}$lt_cv_objdir" >&6
6579objdir=$lt_cv_objdir
6580
6581
6582
6583
6584
6585case $host_os in
6586aix3*)
6587  # AIX sometimes has problems with the GCC collect2 program.  For some
6588  # reason, if we set the COLLECT_NAMES environment variable, the problems
6589  # vanish in a puff of smoke.
6590  if test "X${COLLECT_NAMES+set}" != Xset; then
6591    COLLECT_NAMES=
6592    export COLLECT_NAMES
6593  fi
6594  ;;
6595esac
6596
6597# Sed substitution that helps us do robust quoting.  It backslashifies
6598# metacharacters that are still active within double-quoted strings.
6599Xsed='sed -e s/^X//'
6600sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6601
6602# Same as above, but do not quote variable references.
6603double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6604
6605# Sed substitution to delay expansion of an escaped shell variable in a
6606# double_quote_subst'ed string.
6607delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6608
6609# Sed substitution to avoid accidental globbing in evaled expressions
6610no_glob_subst='s/\*/\\\*/g'
6611
6612# Constants:
6613rm="rm -f"
6614
6615# Global variables:
6616default_ofile=libtool
6617can_build_shared=yes
6618
6619# All known linkers require a `.a' archive for static linking (except M$VC,
6620# which needs '.lib').
6621libext=a
6622ltmain="$ac_aux_dir/ltmain.sh"
6623ofile="$default_ofile"
6624with_gnu_ld="$lt_cv_prog_gnu_ld"
6625
6626if test -n "$ac_tool_prefix"; then
6627  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6628set dummy ${ac_tool_prefix}ar; ac_word=$2
6629echo "$as_me:$LINENO: checking for $ac_word" >&5
6630echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6631if test "${ac_cv_prog_AR+set}" = set; then
6632  echo $ECHO_N "(cached) $ECHO_C" >&6
6633else
6634  if test -n "$AR"; then
6635  ac_cv_prog_AR="$AR" # Let the user override the test.
6636else
6637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6638for as_dir in $PATH
6639do
6640  IFS=$as_save_IFS
6641  test -z "$as_dir" && as_dir=.
6642  for ac_exec_ext in '' $ac_executable_extensions; do
6643  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6644    ac_cv_prog_AR="${ac_tool_prefix}ar"
6645    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6646    break 2
6647  fi
6648done
6649done
6650
6651fi
6652fi
6653AR=$ac_cv_prog_AR
6654if test -n "$AR"; then
6655  echo "$as_me:$LINENO: result: $AR" >&5
6656echo "${ECHO_T}$AR" >&6
6657else
6658  echo "$as_me:$LINENO: result: no" >&5
6659echo "${ECHO_T}no" >&6
6660fi
6661
6662fi
6663if test -z "$ac_cv_prog_AR"; then
6664  ac_ct_AR=$AR
6665  # Extract the first word of "ar", so it can be a program name with args.
6666set dummy ar; ac_word=$2
6667echo "$as_me:$LINENO: checking for $ac_word" >&5
6668echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6669if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6670  echo $ECHO_N "(cached) $ECHO_C" >&6
6671else
6672  if test -n "$ac_ct_AR"; then
6673  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6674else
6675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6676for as_dir in $PATH
6677do
6678  IFS=$as_save_IFS
6679  test -z "$as_dir" && as_dir=.
6680  for ac_exec_ext in '' $ac_executable_extensions; do
6681  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6682    ac_cv_prog_ac_ct_AR="ar"
6683    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6684    break 2
6685  fi
6686done
6687done
6688
6689  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6690fi
6691fi
6692ac_ct_AR=$ac_cv_prog_ac_ct_AR
6693if test -n "$ac_ct_AR"; then
6694  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6695echo "${ECHO_T}$ac_ct_AR" >&6
6696else
6697  echo "$as_me:$LINENO: result: no" >&5
6698echo "${ECHO_T}no" >&6
6699fi
6700
6701  AR=$ac_ct_AR
6702else
6703  AR="$ac_cv_prog_AR"
6704fi
6705
6706if test -n "$ac_tool_prefix"; then
6707  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6708set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6709echo "$as_me:$LINENO: checking for $ac_word" >&5
6710echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6711if test "${ac_cv_prog_RANLIB+set}" = set; then
6712  echo $ECHO_N "(cached) $ECHO_C" >&6
6713else
6714  if test -n "$RANLIB"; then
6715  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6716else
6717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6718for as_dir in $PATH
6719do
6720  IFS=$as_save_IFS
6721  test -z "$as_dir" && as_dir=.
6722  for ac_exec_ext in '' $ac_executable_extensions; do
6723  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6724    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6725    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6726    break 2
6727  fi
6728done
6729done
6730
6731fi
6732fi
6733RANLIB=$ac_cv_prog_RANLIB
6734if test -n "$RANLIB"; then
6735  echo "$as_me:$LINENO: result: $RANLIB" >&5
6736echo "${ECHO_T}$RANLIB" >&6
6737else
6738  echo "$as_me:$LINENO: result: no" >&5
6739echo "${ECHO_T}no" >&6
6740fi
6741
6742fi
6743if test -z "$ac_cv_prog_RANLIB"; then
6744  ac_ct_RANLIB=$RANLIB
6745  # Extract the first word of "ranlib", so it can be a program name with args.
6746set dummy ranlib; ac_word=$2
6747echo "$as_me:$LINENO: checking for $ac_word" >&5
6748echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6749if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6750  echo $ECHO_N "(cached) $ECHO_C" >&6
6751else
6752  if test -n "$ac_ct_RANLIB"; then
6753  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6754else
6755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6756for as_dir in $PATH
6757do
6758  IFS=$as_save_IFS
6759  test -z "$as_dir" && as_dir=.
6760  for ac_exec_ext in '' $ac_executable_extensions; do
6761  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6762    ac_cv_prog_ac_ct_RANLIB="ranlib"
6763    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6764    break 2
6765  fi
6766done
6767done
6768
6769  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6770fi
6771fi
6772ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6773if test -n "$ac_ct_RANLIB"; then
6774  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6775echo "${ECHO_T}$ac_ct_RANLIB" >&6
6776else
6777  echo "$as_me:$LINENO: result: no" >&5
6778echo "${ECHO_T}no" >&6
6779fi
6780
6781  RANLIB=$ac_ct_RANLIB
6782else
6783  RANLIB="$ac_cv_prog_RANLIB"
6784fi
6785
6786if test -n "$ac_tool_prefix"; then
6787  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6788set dummy ${ac_tool_prefix}strip; ac_word=$2
6789echo "$as_me:$LINENO: checking for $ac_word" >&5
6790echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6791if test "${ac_cv_prog_STRIP+set}" = set; then
6792  echo $ECHO_N "(cached) $ECHO_C" >&6
6793else
6794  if test -n "$STRIP"; then
6795  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6796else
6797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6798for as_dir in $PATH
6799do
6800  IFS=$as_save_IFS
6801  test -z "$as_dir" && as_dir=.
6802  for ac_exec_ext in '' $ac_executable_extensions; do
6803  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6804    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6805    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6806    break 2
6807  fi
6808done
6809done
6810
6811fi
6812fi
6813STRIP=$ac_cv_prog_STRIP
6814if test -n "$STRIP"; then
6815  echo "$as_me:$LINENO: result: $STRIP" >&5
6816echo "${ECHO_T}$STRIP" >&6
6817else
6818  echo "$as_me:$LINENO: result: no" >&5
6819echo "${ECHO_T}no" >&6
6820fi
6821
6822fi
6823if test -z "$ac_cv_prog_STRIP"; then
6824  ac_ct_STRIP=$STRIP
6825  # Extract the first word of "strip", so it can be a program name with args.
6826set dummy strip; ac_word=$2
6827echo "$as_me:$LINENO: checking for $ac_word" >&5
6828echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6829if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6830  echo $ECHO_N "(cached) $ECHO_C" >&6
6831else
6832  if test -n "$ac_ct_STRIP"; then
6833  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6834else
6835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6836for as_dir in $PATH
6837do
6838  IFS=$as_save_IFS
6839  test -z "$as_dir" && as_dir=.
6840  for ac_exec_ext in '' $ac_executable_extensions; do
6841  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6842    ac_cv_prog_ac_ct_STRIP="strip"
6843    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6844    break 2
6845  fi
6846done
6847done
6848
6849  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6850fi
6851fi
6852ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6853if test -n "$ac_ct_STRIP"; then
6854  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6855echo "${ECHO_T}$ac_ct_STRIP" >&6
6856else
6857  echo "$as_me:$LINENO: result: no" >&5
6858echo "${ECHO_T}no" >&6
6859fi
6860
6861  STRIP=$ac_ct_STRIP
6862else
6863  STRIP="$ac_cv_prog_STRIP"
6864fi
6865
6866
6867old_CC="$CC"
6868old_CFLAGS="$CFLAGS"
6869
6870# Set sane defaults for various variables
6871test -z "$AR" && AR=ar
6872test -z "$AR_FLAGS" && AR_FLAGS=cru
6873test -z "$AS" && AS=as
6874test -z "$CC" && CC=cc
6875test -z "$LTCC" && LTCC=$CC
6876test -z "$DLLTOOL" && DLLTOOL=dlltool
6877test -z "$LD" && LD=ld
6878test -z "$LN_S" && LN_S="ln -s"
6879test -z "$MAGIC_CMD" && MAGIC_CMD=file
6880test -z "$NM" && NM=nm
6881test -z "$SED" && SED=sed
6882test -z "$OBJDUMP" && OBJDUMP=objdump
6883test -z "$RANLIB" && RANLIB=:
6884test -z "$STRIP" && STRIP=:
6885test -z "$ac_objext" && ac_objext=o
6886
6887# Determine commands to create old-style static archives.
6888old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6889old_postinstall_cmds='chmod 644 $oldlib'
6890old_postuninstall_cmds=
6891
6892if test -n "$RANLIB"; then
6893  case $host_os in
6894  openbsd*)
6895    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6896    ;;
6897  *)
6898    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6899    ;;
6900  esac
6901  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6902fi
6903
6904# Only perform the check for file, if the check method requires it
6905case $deplibs_check_method in
6906file_magic*)
6907  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6908    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6909echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6910if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6911  echo $ECHO_N "(cached) $ECHO_C" >&6
6912else
6913  case $MAGIC_CMD in
6914[\\/*] |  ?:[\\/]*)
6915  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6916  ;;
6917*)
6918  lt_save_MAGIC_CMD="$MAGIC_CMD"
6919  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6920  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6921  for ac_dir in $ac_dummy; do
6922    IFS="$lt_save_ifs"
6923    test -z "$ac_dir" && ac_dir=.
6924    if test -f $ac_dir/${ac_tool_prefix}file; then
6925      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6926      if test -n "$file_magic_test_file"; then
6927	case $deplibs_check_method in
6928	"file_magic "*)
6929	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6930	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6931	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6932	    $EGREP "$file_magic_regex" > /dev/null; then
6933	    :
6934	  else
6935	    cat <<EOF 1>&2
6936
6937*** Warning: the command libtool uses to detect shared libraries,
6938*** $file_magic_cmd, produces output that libtool cannot recognize.
6939*** The result is that libtool may fail to recognize shared libraries
6940*** as such.  This will affect the creation of libtool libraries that
6941*** depend on shared libraries, but programs linked with such libtool
6942*** libraries will work regardless of this problem.  Nevertheless, you
6943*** may want to report the problem to your system manager and/or to
6944*** bug-libtool@gnu.org
6945
6946EOF
6947	  fi ;;
6948	esac
6949      fi
6950      break
6951    fi
6952  done
6953  IFS="$lt_save_ifs"
6954  MAGIC_CMD="$lt_save_MAGIC_CMD"
6955  ;;
6956esac
6957fi
6958
6959MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6960if test -n "$MAGIC_CMD"; then
6961  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6962echo "${ECHO_T}$MAGIC_CMD" >&6
6963else
6964  echo "$as_me:$LINENO: result: no" >&5
6965echo "${ECHO_T}no" >&6
6966fi
6967
6968if test -z "$lt_cv_path_MAGIC_CMD"; then
6969  if test -n "$ac_tool_prefix"; then
6970    echo "$as_me:$LINENO: checking for file" >&5
6971echo $ECHO_N "checking for file... $ECHO_C" >&6
6972if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6973  echo $ECHO_N "(cached) $ECHO_C" >&6
6974else
6975  case $MAGIC_CMD in
6976[\\/*] |  ?:[\\/]*)
6977  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6978  ;;
6979*)
6980  lt_save_MAGIC_CMD="$MAGIC_CMD"
6981  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6982  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6983  for ac_dir in $ac_dummy; do
6984    IFS="$lt_save_ifs"
6985    test -z "$ac_dir" && ac_dir=.
6986    if test -f $ac_dir/file; then
6987      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6988      if test -n "$file_magic_test_file"; then
6989	case $deplibs_check_method in
6990	"file_magic "*)
6991	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6992	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6993	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6994	    $EGREP "$file_magic_regex" > /dev/null; then
6995	    :
6996	  else
6997	    cat <<EOF 1>&2
6998
6999*** Warning: the command libtool uses to detect shared libraries,
7000*** $file_magic_cmd, produces output that libtool cannot recognize.
7001*** The result is that libtool may fail to recognize shared libraries
7002*** as such.  This will affect the creation of libtool libraries that
7003*** depend on shared libraries, but programs linked with such libtool
7004*** libraries will work regardless of this problem.  Nevertheless, you
7005*** may want to report the problem to your system manager and/or to
7006*** bug-libtool@gnu.org
7007
7008EOF
7009	  fi ;;
7010	esac
7011      fi
7012      break
7013    fi
7014  done
7015  IFS="$lt_save_ifs"
7016  MAGIC_CMD="$lt_save_MAGIC_CMD"
7017  ;;
7018esac
7019fi
7020
7021MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7022if test -n "$MAGIC_CMD"; then
7023  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7024echo "${ECHO_T}$MAGIC_CMD" >&6
7025else
7026  echo "$as_me:$LINENO: result: no" >&5
7027echo "${ECHO_T}no" >&6
7028fi
7029
7030  else
7031    MAGIC_CMD=:
7032  fi
7033fi
7034
7035  fi
7036  ;;
7037esac
7038
7039enable_dlopen=no
7040enable_win32_dll=no
7041
7042# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7043if test "${enable_libtool_lock+set}" = set; then
7044  enableval="$enable_libtool_lock"
7045
7046fi;
7047test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7048
7049
7050# Check whether --with-pic or --without-pic was given.
7051if test "${with_pic+set}" = set; then
7052  withval="$with_pic"
7053  pic_mode="$withval"
7054else
7055  pic_mode=default
7056fi;
7057test -z "$pic_mode" && pic_mode=default
7058
7059# Use C for the default configuration in the libtool script
7060tagname=
7061lt_save_CC="$CC"
7062ac_ext=c
7063ac_cpp='$CPP $CPPFLAGS'
7064ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7065ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7066ac_compiler_gnu=$ac_cv_c_compiler_gnu
7067
7068
7069# Source file extension for C test sources.
7070ac_ext=c
7071
7072# Object file extension for compiled C test sources.
7073objext=o
7074objext=$objext
7075
7076# Code to be used in simple compile tests
7077lt_simple_compile_test_code="int some_variable = 0;\n"
7078
7079# Code to be used in simple link tests
7080lt_simple_link_test_code='int main(){return(0);}\n'
7081
7082
7083# If no C compiler was specified, use CC.
7084LTCC=${LTCC-"$CC"}
7085
7086# Allow CC to be a program name with arguments.
7087compiler=$CC
7088
7089
7090#
7091# Check for any special shared library compilation flags.
7092#
7093lt_prog_cc_shlib=
7094if test "$GCC" = no; then
7095  case $host_os in
7096  sco3.2v5*)
7097    lt_prog_cc_shlib='-belf'
7098    ;;
7099  esac
7100fi
7101if test -n "$lt_prog_cc_shlib"; then
7102  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7103echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7104  if echo "$old_CC $old_CFLAGS " | grep "[ 	]$lt_prog_cc_shlib[ 	]" >/dev/null; then :
7105  else
7106    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7107echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7108    lt_cv_prog_cc_can_build_shared=no
7109  fi
7110fi
7111
7112
7113#
7114# Check to make sure the static flag actually works.
7115#
7116echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7117echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7118if test "${lt_prog_compiler_static_works+set}" = set; then
7119  echo $ECHO_N "(cached) $ECHO_C" >&6
7120else
7121  lt_prog_compiler_static_works=no
7122   save_LDFLAGS="$LDFLAGS"
7123   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7124   printf "$lt_simple_link_test_code" > conftest.$ac_ext
7125   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7126     # The compiler can only warn and ignore the option if not recognized
7127     # So say no if there are warnings
7128     if test -s conftest.err; then
7129       # Append any errors to the config.log.
7130       cat conftest.err 1>&5
7131     else
7132       lt_prog_compiler_static_works=yes
7133     fi
7134   fi
7135   $rm conftest*
7136   LDFLAGS="$save_LDFLAGS"
7137
7138fi
7139echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7140echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7141
7142if test x"$lt_prog_compiler_static_works" = xyes; then
7143    :
7144else
7145    lt_prog_compiler_static=
7146fi
7147
7148
7149
7150
7151lt_prog_compiler_no_builtin_flag=
7152
7153if test "$GCC" = yes; then
7154  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7155
7156
7157echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7158echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7159if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7160  echo $ECHO_N "(cached) $ECHO_C" >&6
7161else
7162  lt_cv_prog_compiler_rtti_exceptions=no
7163  ac_outfile=conftest.$ac_objext
7164   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7165   lt_compiler_flag="-fno-rtti -fno-exceptions"
7166   # Insert the option either (1) after the last *FLAGS variable, or
7167   # (2) before a word containing "conftest.", or (3) at the end.
7168   # Note that $ac_compile itself does not contain backslashes and begins
7169   # with a dollar sign (not a hyphen), so the echo should work correctly.
7170   # The option is referenced via a variable to avoid confusing sed.
7171   lt_compile=`echo "$ac_compile" | $SED \
7172   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7173   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7174   -e 's:$: $lt_compiler_flag:'`
7175   (eval echo "\"\$as_me:7175: $lt_compile\"" >&5)
7176   (eval "$lt_compile" 2>conftest.err)
7177   ac_status=$?
7178   cat conftest.err >&5
7179   echo "$as_me:7179: \$? = $ac_status" >&5
7180   if (exit $ac_status) && test -s "$ac_outfile"; then
7181     # The compiler can only warn and ignore the option if not recognized
7182     # So say no if there are warnings
7183     if test ! -s conftest.err; then
7184       lt_cv_prog_compiler_rtti_exceptions=yes
7185     fi
7186   fi
7187   $rm conftest*
7188
7189fi
7190echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7191echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7192
7193if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7194    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7195else
7196    :
7197fi
7198
7199fi
7200
7201lt_prog_compiler_wl=
7202lt_prog_compiler_pic=
7203lt_prog_compiler_static=
7204
7205echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7206echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7207
7208  if test "$GCC" = yes; then
7209    lt_prog_compiler_wl='-Wl,'
7210    lt_prog_compiler_static='-static'
7211
7212    case $host_os in
7213      aix*)
7214      # All AIX code is PIC.
7215      if test "$host_cpu" = ia64; then
7216	# AIX 5 now supports IA64 processor
7217	lt_prog_compiler_static='-Bstatic'
7218      fi
7219      ;;
7220
7221    amigaos*)
7222      # FIXME: we need at least 68020 code to build shared libraries, but
7223      # adding the `-m68020' flag to GCC prevents building anything better,
7224      # like `-m68040'.
7225      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7226      ;;
7227
7228    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7229      # PIC is the default for these OSes.
7230      ;;
7231
7232    mingw* | pw32* | os2*)
7233      # This hack is so that the source file can tell whether it is being
7234      # built for inclusion in a dll (and should export symbols for example).
7235      lt_prog_compiler_pic='-DDLL_EXPORT'
7236      ;;
7237
7238    darwin* | rhapsody*)
7239      # PIC is the default on this platform
7240      # Common symbols not allowed in MH_DYLIB files
7241      lt_prog_compiler_pic='-fno-common'
7242      ;;
7243
7244    msdosdjgpp*)
7245      # Just because we use GCC doesn't mean we suddenly get shared libraries
7246      # on systems that don't support them.
7247      lt_prog_compiler_can_build_shared=no
7248      enable_shared=no
7249      ;;
7250
7251    sysv4*MP*)
7252      if test -d /usr/nec; then
7253	lt_prog_compiler_pic=-Kconform_pic
7254      fi
7255      ;;
7256
7257    hpux*)
7258      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7259      # not for PA HP-UX.
7260      case "$host_cpu" in
7261      hppa*64*|ia64*)
7262	# +Z the default
7263	;;
7264      *)
7265	lt_prog_compiler_pic='-fPIC'
7266	;;
7267      esac
7268      ;;
7269
7270    *)
7271      lt_prog_compiler_pic='-fPIC'
7272      ;;
7273    esac
7274  else
7275    # PORTME Check for flag to pass linker flags through the system compiler.
7276    case $host_os in
7277    aix*)
7278      lt_prog_compiler_wl='-Wl,'
7279      if test "$host_cpu" = ia64; then
7280	# AIX 5 now supports IA64 processor
7281	lt_prog_compiler_static='-Bstatic'
7282      else
7283	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7284      fi
7285      ;;
7286
7287    mingw* | pw32* | os2*)
7288      # This hack is so that the source file can tell whether it is being
7289      # built for inclusion in a dll (and should export symbols for example).
7290      lt_prog_compiler_pic='-DDLL_EXPORT'
7291      ;;
7292
7293    hpux9* | hpux10* | hpux11*)
7294      lt_prog_compiler_wl='-Wl,'
7295      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7296      # not for PA HP-UX.
7297      case "$host_cpu" in
7298      hppa*64*|ia64*)
7299	# +Z the default
7300	;;
7301      *)
7302	lt_prog_compiler_pic='+Z'
7303	;;
7304      esac
7305      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7306      lt_prog_compiler_static='${wl}-a ${wl}archive'
7307      ;;
7308
7309    irix5* | irix6* | nonstopux*)
7310      lt_prog_compiler_wl='-Wl,'
7311      # PIC (with -KPIC) is the default.
7312      lt_prog_compiler_static='-non_shared'
7313      ;;
7314
7315    newsos6)
7316      lt_prog_compiler_pic='-KPIC'
7317      lt_prog_compiler_static='-Bstatic'
7318      ;;
7319
7320    linux*)
7321      case $CC in
7322      icc* | ecc*)
7323	lt_prog_compiler_wl='-Wl,'
7324	lt_prog_compiler_pic='-KPIC'
7325	lt_prog_compiler_static='-static'
7326        ;;
7327      ccc*)
7328        lt_prog_compiler_wl='-Wl,'
7329        # All Alpha code is PIC.
7330        lt_prog_compiler_static='-non_shared'
7331        ;;
7332      esac
7333      ;;
7334
7335    osf3* | osf4* | osf5*)
7336      lt_prog_compiler_wl='-Wl,'
7337      # All OSF/1 code is PIC.
7338      lt_prog_compiler_static='-non_shared'
7339      ;;
7340
7341    sco3.2v5*)
7342      lt_prog_compiler_pic='-Kpic'
7343      lt_prog_compiler_static='-dn'
7344      ;;
7345
7346    solaris*)
7347      lt_prog_compiler_wl='-Wl,'
7348      lt_prog_compiler_pic='-KPIC'
7349      lt_prog_compiler_static='-Bstatic'
7350      ;;
7351
7352    sunos4*)
7353      lt_prog_compiler_wl='-Qoption ld '
7354      lt_prog_compiler_pic='-PIC'
7355      lt_prog_compiler_static='-Bstatic'
7356      ;;
7357
7358    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7359      lt_prog_compiler_wl='-Wl,'
7360      lt_prog_compiler_pic='-KPIC'
7361      lt_prog_compiler_static='-Bstatic'
7362      ;;
7363
7364    sysv4*MP*)
7365      if test -d /usr/nec ;then
7366	lt_prog_compiler_pic='-Kconform_pic'
7367	lt_prog_compiler_static='-Bstatic'
7368      fi
7369      ;;
7370
7371    uts4*)
7372      lt_prog_compiler_pic='-pic'
7373      lt_prog_compiler_static='-Bstatic'
7374      ;;
7375
7376    *)
7377      lt_prog_compiler_can_build_shared=no
7378      ;;
7379    esac
7380  fi
7381
7382echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7383echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7384
7385#
7386# Check to make sure the PIC flag actually works.
7387#
7388if test -n "$lt_prog_compiler_pic"; then
7389
7390echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7391echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7392if test "${lt_prog_compiler_pic_works+set}" = set; then
7393  echo $ECHO_N "(cached) $ECHO_C" >&6
7394else
7395  lt_prog_compiler_pic_works=no
7396  ac_outfile=conftest.$ac_objext
7397   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7398   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7399   # Insert the option either (1) after the last *FLAGS variable, or
7400   # (2) before a word containing "conftest.", or (3) at the end.
7401   # Note that $ac_compile itself does not contain backslashes and begins
7402   # with a dollar sign (not a hyphen), so the echo should work correctly.
7403   # The option is referenced via a variable to avoid confusing sed.
7404   lt_compile=`echo "$ac_compile" | $SED \
7405   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7406   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7407   -e 's:$: $lt_compiler_flag:'`
7408   (eval echo "\"\$as_me:7408: $lt_compile\"" >&5)
7409   (eval "$lt_compile" 2>conftest.err)
7410   ac_status=$?
7411   cat conftest.err >&5
7412   echo "$as_me:7412: \$? = $ac_status" >&5
7413   if (exit $ac_status) && test -s "$ac_outfile"; then
7414     # The compiler can only warn and ignore the option if not recognized
7415     # So say no if there are warnings
7416     if test ! -s conftest.err; then
7417       lt_prog_compiler_pic_works=yes
7418     fi
7419   fi
7420   $rm conftest*
7421
7422fi
7423echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7424echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7425
7426if test x"$lt_prog_compiler_pic_works" = xyes; then
7427    case $lt_prog_compiler_pic in
7428     "" | " "*) ;;
7429     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7430     esac
7431else
7432    lt_prog_compiler_pic=
7433     lt_prog_compiler_can_build_shared=no
7434fi
7435
7436fi
7437case "$host_os" in
7438  # For platforms which do not support PIC, -DPIC is meaningless:
7439  *djgpp*)
7440    lt_prog_compiler_pic=
7441    ;;
7442  *)
7443    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7444    ;;
7445esac
7446
7447echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7448echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7449if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7450  echo $ECHO_N "(cached) $ECHO_C" >&6
7451else
7452  lt_cv_prog_compiler_c_o=no
7453   $rm -r conftest 2>/dev/null
7454   mkdir conftest
7455   cd conftest
7456   mkdir out
7457   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7458
7459   lt_compiler_flag="-o out/conftest2.$ac_objext"
7460   # Insert the option either (1) after the last *FLAGS variable, or
7461   # (2) before a word containing "conftest.", or (3) at the end.
7462   # Note that $ac_compile itself does not contain backslashes and begins
7463   # with a dollar sign (not a hyphen), so the echo should work correctly.
7464   lt_compile=`echo "$ac_compile" | $SED \
7465   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7466   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7467   -e 's:$: $lt_compiler_flag:'`
7468   (eval echo "\"\$as_me:7468: $lt_compile\"" >&5)
7469   (eval "$lt_compile" 2>out/conftest.err)
7470   ac_status=$?
7471   cat out/conftest.err >&5
7472   echo "$as_me:7472: \$? = $ac_status" >&5
7473   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7474   then
7475     # The compiler can only warn and ignore the option if not recognized
7476     # So say no if there are warnings
7477     if test ! -s out/conftest.err; then
7478       lt_cv_prog_compiler_c_o=yes
7479     fi
7480   fi
7481   chmod u+w .
7482   $rm conftest*
7483   # SGI C++ compiler will create directory out/ii_files/ for
7484   # template instantiation
7485   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7486   $rm out/* && rmdir out
7487   cd ..
7488   rmdir conftest
7489   $rm conftest*
7490
7491fi
7492echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7493echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7494
7495
7496hard_links="nottested"
7497if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7498  # do not overwrite the value of need_locks provided by the user
7499  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7500echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7501  hard_links=yes
7502  $rm conftest*
7503  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7504  touch conftest.a
7505  ln conftest.a conftest.b 2>&5 || hard_links=no
7506  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7507  echo "$as_me:$LINENO: result: $hard_links" >&5
7508echo "${ECHO_T}$hard_links" >&6
7509  if test "$hard_links" = no; then
7510    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7511echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7512    need_locks=warn
7513  fi
7514else
7515  need_locks=no
7516fi
7517
7518echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7519echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7520
7521  runpath_var=
7522  allow_undefined_flag=
7523  enable_shared_with_static_runtimes=no
7524  archive_cmds=
7525  archive_expsym_cmds=
7526  old_archive_From_new_cmds=
7527  old_archive_from_expsyms_cmds=
7528  export_dynamic_flag_spec=
7529  whole_archive_flag_spec=
7530  thread_safe_flag_spec=
7531  hardcode_libdir_flag_spec=
7532  hardcode_libdir_flag_spec_ld=
7533  hardcode_libdir_separator=
7534  hardcode_direct=no
7535  hardcode_minus_L=no
7536  hardcode_shlibpath_var=unsupported
7537  link_all_deplibs=unknown
7538  hardcode_automatic=no
7539  module_cmds=
7540  module_expsym_cmds=
7541  always_export_symbols=no
7542  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7543  # include_expsyms should be a list of space-separated symbols to be *always*
7544  # included in the symbol list
7545  include_expsyms=
7546  # exclude_expsyms can be an extended regexp of symbols to exclude
7547  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7548  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7549  # as well as any symbol that contains `d'.
7550  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7551  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7552  # platforms (ab)use it in PIC code, but their linkers get confused if
7553  # the symbol is explicitly referenced.  Since portable code cannot
7554  # rely on this symbol name, it's probably fine to never include it in
7555  # preloaded symbol tables.
7556  extract_expsyms_cmds=
7557
7558  case $host_os in
7559  cygwin* | mingw* | pw32*)
7560    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7561    # When not using gcc, we currently assume that we are using
7562    # Microsoft Visual C++.
7563    if test "$GCC" != yes; then
7564      with_gnu_ld=no
7565    fi
7566    ;;
7567  openbsd*)
7568    with_gnu_ld=no
7569    ;;
7570  esac
7571
7572  ld_shlibs=yes
7573  if test "$with_gnu_ld" = yes; then
7574    # If archive_cmds runs LD, not CC, wlarc should be empty
7575    wlarc='${wl}'
7576
7577    # See if GNU ld supports shared libraries.
7578    case $host_os in
7579    aix3* | aix4* | aix5*)
7580      # On AIX/PPC, the GNU linker is very broken
7581      if test "$host_cpu" != ia64; then
7582	ld_shlibs=no
7583	cat <<EOF 1>&2
7584
7585*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7586*** to be unable to reliably create shared libraries on AIX.
7587*** Therefore, libtool is disabling shared libraries support.  If you
7588*** really care for shared libraries, you may want to modify your PATH
7589*** so that a non-GNU linker is found, and then restart.
7590
7591EOF
7592      fi
7593      ;;
7594
7595    amigaos*)
7596      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)'
7597      hardcode_libdir_flag_spec='-L$libdir'
7598      hardcode_minus_L=yes
7599
7600      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7601      # that the semantics of dynamic libraries on AmigaOS, at least up
7602      # to version 4, is to share data among multiple programs linked
7603      # with the same dynamic library.  Since this doesn't match the
7604      # behavior of shared libraries on other platforms, we can't use
7605      # them.
7606      ld_shlibs=no
7607      ;;
7608
7609    beos*)
7610      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7611	allow_undefined_flag=unsupported
7612	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7613	# support --undefined.  This deserves some investigation.  FIXME
7614	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7615      else
7616	ld_shlibs=no
7617      fi
7618      ;;
7619
7620    cygwin* | mingw* | pw32*)
7621      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7622      # as there is no search path for DLLs.
7623      hardcode_libdir_flag_spec='-L$libdir'
7624      allow_undefined_flag=unsupported
7625      always_export_symbols=no
7626      enable_shared_with_static_runtimes=yes
7627      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7628
7629      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7630        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7631	# If the export-symbols file already is a .def file (1st line
7632	# is EXPORTS), use it as is; otherwise, prepend...
7633	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7634	  cp $export_symbols $output_objdir/$soname.def;
7635	else
7636	  echo EXPORTS > $output_objdir/$soname.def;
7637	  cat $export_symbols >> $output_objdir/$soname.def;
7638	fi~
7639	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
7640      else
7641	ld_shlibs=no
7642      fi
7643      ;;
7644
7645    netbsd* | knetbsd*-gnu)
7646      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7647	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7648	wlarc=
7649      else
7650	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7651	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7652      fi
7653      ;;
7654
7655    solaris* | sysv5*)
7656      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7657	ld_shlibs=no
7658	cat <<EOF 1>&2
7659
7660*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7661*** create shared libraries on Solaris systems.  Therefore, libtool
7662*** is disabling shared libraries support.  We urge you to upgrade GNU
7663*** binutils to release 2.9.1 or newer.  Another option is to modify
7664*** your PATH or compiler configuration so that the native linker is
7665*** used, and then restart.
7666
7667EOF
7668      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7669	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7670	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7671      else
7672	ld_shlibs=no
7673      fi
7674      ;;
7675
7676    sunos4*)
7677      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7678      wlarc=
7679      hardcode_direct=yes
7680      hardcode_shlibpath_var=no
7681      ;;
7682
7683  linux*)
7684    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7685        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7686	archive_cmds="$tmp_archive_cmds"
7687      supports_anon_versioning=no
7688      case `$LD -v 2>/dev/null` in
7689        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7690        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7691        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7692        *\ 2.11.*) ;; # other 2.11 versions
7693        *) supports_anon_versioning=yes ;;
7694      esac
7695      if test $supports_anon_versioning = yes; then
7696        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7697cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7698$echo "local: *; };" >> $output_objdir/$libname.ver~
7699        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7700      else
7701        archive_expsym_cmds="$tmp_archive_cmds"
7702      fi
7703      link_all_deplibs=no
7704    else
7705      ld_shlibs=no
7706    fi
7707    ;;
7708
7709    *)
7710      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7711	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7712	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7713      else
7714	ld_shlibs=no
7715      fi
7716      ;;
7717    esac
7718
7719    if test "$ld_shlibs" = yes; then
7720      runpath_var=LD_RUN_PATH
7721      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7722      export_dynamic_flag_spec='${wl}--export-dynamic'
7723      # ancient GNU ld didn't support --whole-archive et. al.
7724      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7725 	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7726      else
7727  	whole_archive_flag_spec=
7728      fi
7729    fi
7730  else
7731    # PORTME fill in a description of your system's linker (not GNU ld)
7732    case $host_os in
7733    aix3*)
7734      allow_undefined_flag=unsupported
7735      always_export_symbols=yes
7736      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'
7737      # Note: this linker hardcodes the directories in LIBPATH if there
7738      # are no directories specified by -L.
7739      hardcode_minus_L=yes
7740      if test "$GCC" = yes && test -z "$link_static_flag"; then
7741	# Neither direct hardcoding nor static linking is supported with a
7742	# broken collect2.
7743	hardcode_direct=unsupported
7744      fi
7745      ;;
7746
7747    aix4* | aix5*)
7748      if test "$host_cpu" = ia64; then
7749	# On IA64, the linker does run time linking by default, so we don't
7750	# have to do anything special.
7751	aix_use_runtimelinking=no
7752	exp_sym_flag='-Bexport'
7753	no_entry_flag=""
7754      else
7755	# If we're using GNU nm, then we don't want the "-C" option.
7756	# -C means demangle to AIX nm, but means don't demangle with GNU nm
7757	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7758	  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'
7759	else
7760	  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'
7761	fi
7762	aix_use_runtimelinking=no
7763
7764	# Test if we are trying to use run time linking or normal
7765	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7766	# need to do runtime linking.
7767	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7768	  for ld_flag in $LDFLAGS; do
7769  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7770  	    aix_use_runtimelinking=yes
7771  	    break
7772  	  fi
7773	  done
7774	esac
7775
7776	exp_sym_flag='-bexport'
7777	no_entry_flag='-bnoentry'
7778      fi
7779
7780      # When large executables or shared objects are built, AIX ld can
7781      # have problems creating the table of contents.  If linking a library
7782      # or program results in "error TOC overflow" add -mminimal-toc to
7783      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7784      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7785
7786      archive_cmds=''
7787      hardcode_direct=yes
7788      hardcode_libdir_separator=':'
7789      link_all_deplibs=yes
7790
7791      if test "$GCC" = yes; then
7792	case $host_os in aix4.012|aix4.012.*)
7793	# We only want to do this on AIX 4.2 and lower, the check
7794	# below for broken collect2 doesn't work under 4.3+
7795	  collect2name=`${CC} -print-prog-name=collect2`
7796	  if test -f "$collect2name" && \
7797  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
7798	  then
7799  	  # We have reworked collect2
7800  	  hardcode_direct=yes
7801	  else
7802  	  # We have old collect2
7803  	  hardcode_direct=unsupported
7804  	  # It fails to find uninstalled libraries when the uninstalled
7805  	  # path is not listed in the libpath.  Setting hardcode_minus_L
7806  	  # to unsupported forces relinking
7807  	  hardcode_minus_L=yes
7808  	  hardcode_libdir_flag_spec='-L$libdir'
7809  	  hardcode_libdir_separator=
7810	  fi
7811	esac
7812	shared_flag='-shared'
7813      else
7814	# not using gcc
7815	if test "$host_cpu" = ia64; then
7816  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7817  	# chokes on -Wl,-G. The following line is correct:
7818	  shared_flag='-G'
7819	else
7820  	if test "$aix_use_runtimelinking" = yes; then
7821	    shared_flag='${wl}-G'
7822	  else
7823	    shared_flag='${wl}-bM:SRE'
7824  	fi
7825	fi
7826      fi
7827
7828      # It seems that -bexpall does not export symbols beginning with
7829      # underscore (_), so it is better to generate a list of symbols to export.
7830      always_export_symbols=yes
7831      if test "$aix_use_runtimelinking" = yes; then
7832	# Warning - without using the other runtime loading flags (-brtl),
7833	# -berok will link without error, but may produce a broken library.
7834	allow_undefined_flag='-berok'
7835       # Determine the default libpath from the value encoded in an empty executable.
7836       cat >conftest.$ac_ext <<_ACEOF
7837/* confdefs.h.  */
7838_ACEOF
7839cat confdefs.h >>conftest.$ac_ext
7840cat >>conftest.$ac_ext <<_ACEOF
7841/* end confdefs.h.  */
7842
7843int
7844main ()
7845{
7846
7847  ;
7848  return 0;
7849}
7850_ACEOF
7851rm -f conftest.$ac_objext conftest$ac_exeext
7852if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7853  (eval $ac_link) 2>conftest.er1
7854  ac_status=$?
7855  grep -v '^ *+' conftest.er1 >conftest.err
7856  rm -f conftest.er1
7857  cat conftest.err >&5
7858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7859  (exit $ac_status); } &&
7860	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
7861  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7862  (eval $ac_try) 2>&5
7863  ac_status=$?
7864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7865  (exit $ac_status); }; } &&
7866	 { ac_try='test -s conftest$ac_exeext'
7867  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7868  (eval $ac_try) 2>&5
7869  ac_status=$?
7870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7871  (exit $ac_status); }; }; then
7872
7873aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7874}'`
7875# Check for a 64-bit object if we didn't find anything.
7876if 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; }
7877}'`; fi
7878else
7879  echo "$as_me: failed program was:" >&5
7880sed 's/^/| /' conftest.$ac_ext >&5
7881
7882fi
7883rm -f conftest.err conftest.$ac_objext \
7884      conftest$ac_exeext conftest.$ac_ext
7885if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7886
7887       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7888	archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7889       else
7890	if test "$host_cpu" = ia64; then
7891	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7892	  allow_undefined_flag="-z nodefs"
7893	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7894	else
7895	 # Determine the default libpath from the value encoded in an empty executable.
7896	 cat >conftest.$ac_ext <<_ACEOF
7897/* confdefs.h.  */
7898_ACEOF
7899cat confdefs.h >>conftest.$ac_ext
7900cat >>conftest.$ac_ext <<_ACEOF
7901/* end confdefs.h.  */
7902
7903int
7904main ()
7905{
7906
7907  ;
7908  return 0;
7909}
7910_ACEOF
7911rm -f conftest.$ac_objext conftest$ac_exeext
7912if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7913  (eval $ac_link) 2>conftest.er1
7914  ac_status=$?
7915  grep -v '^ *+' conftest.er1 >conftest.err
7916  rm -f conftest.er1
7917  cat conftest.err >&5
7918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919  (exit $ac_status); } &&
7920	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
7921  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7922  (eval $ac_try) 2>&5
7923  ac_status=$?
7924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7925  (exit $ac_status); }; } &&
7926	 { ac_try='test -s conftest$ac_exeext'
7927  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7928  (eval $ac_try) 2>&5
7929  ac_status=$?
7930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7931  (exit $ac_status); }; }; then
7932
7933aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7934}'`
7935# Check for a 64-bit object if we didn't find anything.
7936if 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; }
7937}'`; fi
7938else
7939  echo "$as_me: failed program was:" >&5
7940sed 's/^/| /' conftest.$ac_ext >&5
7941
7942fi
7943rm -f conftest.err conftest.$ac_objext \
7944      conftest$ac_exeext conftest.$ac_ext
7945if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7946
7947	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7948	  # Warning - without using the other run time loading flags,
7949	  # -berok will link without error, but may produce a broken library.
7950	  no_undefined_flag=' ${wl}-bernotok'
7951	  allow_undefined_flag=' ${wl}-berok'
7952	  # -bexpall does not export symbols beginning with underscore (_)
7953	  always_export_symbols=yes
7954	  # Exported symbols can be pulled into shared objects from archives
7955	  whole_archive_flag_spec=' '
7956	  archive_cmds_need_lc=yes
7957	  # This is similar to how AIX traditionally builds it's shared libraries.
7958	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7959	fi
7960      fi
7961      ;;
7962
7963    amigaos*)
7964      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)'
7965      hardcode_libdir_flag_spec='-L$libdir'
7966      hardcode_minus_L=yes
7967      # see comment about different semantics on the GNU ld section
7968      ld_shlibs=no
7969      ;;
7970
7971    bsdi4*)
7972      export_dynamic_flag_spec=-rdynamic
7973      ;;
7974
7975    cygwin* | mingw* | pw32*)
7976      # When not using gcc, we currently assume that we are using
7977      # Microsoft Visual C++.
7978      # hardcode_libdir_flag_spec is actually meaningless, as there is
7979      # no search path for DLLs.
7980      hardcode_libdir_flag_spec=' '
7981      allow_undefined_flag=unsupported
7982      # Tell ltmain to make .lib files, not .a files.
7983      libext=lib
7984      # Tell ltmain to make .dll files, not .so files.
7985      shrext_cmds=".dll"
7986      # FIXME: Setting linknames here is a bad hack.
7987      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7988      # The linker will automatically build a .lib file if we build a DLL.
7989      old_archive_From_new_cmds='true'
7990      # FIXME: Should let the user specify the lib program.
7991      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7992      fix_srcfile_path='`cygpath -w "$srcfile"`'
7993      enable_shared_with_static_runtimes=yes
7994      ;;
7995
7996    darwin* | rhapsody*)
7997    if test "$GXX" = yes ; then
7998      archive_cmds_need_lc=no
7999      case "$host_os" in
8000      rhapsody* | darwin1.[012])
8001	allow_undefined_flag='-undefined suppress'
8002	;;
8003      *) # Darwin 1.3 on
8004      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8005      	allow_undefined_flag='-flat_namespace -undefined suppress'
8006      else
8007        case ${MACOSX_DEPLOYMENT_TARGET} in
8008          10.[012])
8009            allow_undefined_flag='-flat_namespace -undefined suppress'
8010            ;;
8011          10.*)
8012            allow_undefined_flag='-undefined dynamic_lookup'
8013            ;;
8014        esac
8015      fi
8016	;;
8017      esac
8018    	lt_int_apple_cc_single_mod=no
8019    	output_verbose_link_cmd='echo'
8020    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
8021    	  lt_int_apple_cc_single_mod=yes
8022    	fi
8023    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
8024    	  archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8025    	else
8026        archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8027      fi
8028      module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8029      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8030        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
8031          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8032        else
8033          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8034        fi
8035          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}'
8036      hardcode_direct=no
8037      hardcode_automatic=yes
8038      hardcode_shlibpath_var=unsupported
8039      whole_archive_flag_spec='-all_load $convenience'
8040      link_all_deplibs=yes
8041    else
8042      ld_shlibs=no
8043    fi
8044      ;;
8045
8046    dgux*)
8047      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8048      hardcode_libdir_flag_spec='-L$libdir'
8049      hardcode_shlibpath_var=no
8050      ;;
8051
8052    freebsd1*)
8053      ld_shlibs=no
8054      ;;
8055
8056    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8057    # support.  Future versions do this automatically, but an explicit c++rt0.o
8058    # does not break anything, and helps significantly (at the cost of a little
8059    # extra space).
8060    freebsd2.2*)
8061      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8062      hardcode_libdir_flag_spec='-R$libdir'
8063      hardcode_direct=yes
8064      hardcode_shlibpath_var=no
8065      ;;
8066
8067    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8068    freebsd2*)
8069      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8070      hardcode_direct=yes
8071      hardcode_minus_L=yes
8072      hardcode_shlibpath_var=no
8073      ;;
8074
8075    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8076    freebsd* | kfreebsd*-gnu)
8077      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8078      hardcode_libdir_flag_spec='-R$libdir'
8079      hardcode_direct=yes
8080      hardcode_shlibpath_var=no
8081      ;;
8082
8083    hpux9*)
8084      if test "$GCC" = yes; then
8085	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'
8086      else
8087	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'
8088      fi
8089      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8090      hardcode_libdir_separator=:
8091      hardcode_direct=yes
8092
8093      # hardcode_minus_L: Not really in the search PATH,
8094      # but as the default location of the library.
8095      hardcode_minus_L=yes
8096      export_dynamic_flag_spec='${wl}-E'
8097      ;;
8098
8099    hpux10* | hpux11*)
8100      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8101	case "$host_cpu" in
8102	hppa*64*|ia64*)
8103	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8104	  ;;
8105	*)
8106	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8107	  ;;
8108	esac
8109      else
8110	case "$host_cpu" in
8111	hppa*64*|ia64*)
8112	  archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8113	  ;;
8114	*)
8115	  archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8116	  ;;
8117	esac
8118      fi
8119      if test "$with_gnu_ld" = no; then
8120	case "$host_cpu" in
8121	hppa*64*)
8122	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8123	  hardcode_libdir_flag_spec_ld='+b $libdir'
8124	  hardcode_libdir_separator=:
8125	  hardcode_direct=no
8126	  hardcode_shlibpath_var=no
8127	  ;;
8128	ia64*)
8129	  hardcode_libdir_flag_spec='-L$libdir'
8130	  hardcode_direct=no
8131	  hardcode_shlibpath_var=no
8132
8133	  # hardcode_minus_L: Not really in the search PATH,
8134	  # but as the default location of the library.
8135	  hardcode_minus_L=yes
8136	  ;;
8137	*)
8138	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8139	  hardcode_libdir_separator=:
8140	  hardcode_direct=yes
8141	  export_dynamic_flag_spec='${wl}-E'
8142
8143	  # hardcode_minus_L: Not really in the search PATH,
8144	  # but as the default location of the library.
8145	  hardcode_minus_L=yes
8146	  ;;
8147	esac
8148      fi
8149      ;;
8150
8151    irix5* | irix6* | nonstopux*)
8152      if test "$GCC" = yes; then
8153	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'
8154      else
8155	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'
8156	hardcode_libdir_flag_spec_ld='-rpath $libdir'
8157      fi
8158      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8159      hardcode_libdir_separator=:
8160      link_all_deplibs=yes
8161      ;;
8162
8163    netbsd* | knetbsd*-gnu)
8164      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8165	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8166      else
8167	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8168      fi
8169      hardcode_libdir_flag_spec='-R$libdir'
8170      hardcode_direct=yes
8171      hardcode_shlibpath_var=no
8172      ;;
8173
8174    newsos6)
8175      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8176      hardcode_direct=yes
8177      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8178      hardcode_libdir_separator=:
8179      hardcode_shlibpath_var=no
8180      ;;
8181
8182    openbsd*)
8183      hardcode_direct=yes
8184      hardcode_shlibpath_var=no
8185      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8186	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8187	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8188	export_dynamic_flag_spec='${wl}-E'
8189      else
8190       case $host_os in
8191	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8192	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8193	   hardcode_libdir_flag_spec='-R$libdir'
8194	   ;;
8195	 *)
8196	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8197	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8198	   ;;
8199       esac
8200      fi
8201      ;;
8202
8203    os2*)
8204      hardcode_libdir_flag_spec='-L$libdir'
8205      hardcode_minus_L=yes
8206      allow_undefined_flag=unsupported
8207      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'
8208      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8209      ;;
8210
8211    osf3*)
8212      if test "$GCC" = yes; then
8213	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8214	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'
8215      else
8216	allow_undefined_flag=' -expect_unresolved \*'
8217	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'
8218      fi
8219      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8220      hardcode_libdir_separator=:
8221      ;;
8222
8223    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8224      if test "$GCC" = yes; then
8225	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8226	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'
8227	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8228      else
8229	allow_undefined_flag=' -expect_unresolved \*'
8230	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'
8231	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8232	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
8233
8234	# Both c and cxx compiler support -rpath directly
8235	hardcode_libdir_flag_spec='-rpath $libdir'
8236      fi
8237      hardcode_libdir_separator=:
8238      ;;
8239
8240    sco3.2v5*)
8241      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8242      hardcode_shlibpath_var=no
8243      export_dynamic_flag_spec='${wl}-Bexport'
8244      runpath_var=LD_RUN_PATH
8245      hardcode_runpath_var=yes
8246      ;;
8247
8248    solaris*)
8249      no_undefined_flag=' -z text'
8250      if test "$GCC" = yes; then
8251	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8252	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8253	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8254      else
8255	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8256	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8257  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8258      fi
8259      hardcode_libdir_flag_spec='-R$libdir'
8260      hardcode_shlibpath_var=no
8261      case $host_os in
8262      solaris2.[0-5] | solaris2.[0-5].*) ;;
8263      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
8264	whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8265      esac
8266      link_all_deplibs=yes
8267      ;;
8268
8269    sunos4*)
8270      if test "x$host_vendor" = xsequent; then
8271	# Use $CC to link under sequent, because it throws in some extra .o
8272	# files that make .init and .fini sections work.
8273	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8274      else
8275	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8276      fi
8277      hardcode_libdir_flag_spec='-L$libdir'
8278      hardcode_direct=yes
8279      hardcode_minus_L=yes
8280      hardcode_shlibpath_var=no
8281      ;;
8282
8283    sysv4)
8284      case $host_vendor in
8285	sni)
8286	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8287	  hardcode_direct=yes # is this really true???
8288	;;
8289	siemens)
8290	  ## LD is ld it makes a PLAMLIB
8291	  ## CC just makes a GrossModule.
8292	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8293	  reload_cmds='$CC -r -o $output$reload_objs'
8294	  hardcode_direct=no
8295        ;;
8296	motorola)
8297	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8298	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8299	;;
8300      esac
8301      runpath_var='LD_RUN_PATH'
8302      hardcode_shlibpath_var=no
8303      ;;
8304
8305    sysv4.3*)
8306      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8307      hardcode_shlibpath_var=no
8308      export_dynamic_flag_spec='-Bexport'
8309      ;;
8310
8311    sysv4*MP*)
8312      if test -d /usr/nec; then
8313	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8314	hardcode_shlibpath_var=no
8315	runpath_var=LD_RUN_PATH
8316	hardcode_runpath_var=yes
8317	ld_shlibs=yes
8318      fi
8319      ;;
8320
8321    sysv4.2uw2*)
8322      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8323      hardcode_direct=yes
8324      hardcode_minus_L=no
8325      hardcode_shlibpath_var=no
8326      hardcode_runpath_var=yes
8327      runpath_var=LD_RUN_PATH
8328      ;;
8329
8330   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
8331      no_undefined_flag='${wl}-z ${wl}text'
8332      if test "$GCC" = yes; then
8333	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8334      else
8335	archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8336      fi
8337      runpath_var='LD_RUN_PATH'
8338      hardcode_shlibpath_var=no
8339      ;;
8340
8341    sysv5*)
8342      no_undefined_flag=' -z text'
8343      # $CC -shared without GNU ld will not create a library from C++
8344      # object files and a static libstdc++, better avoid it by now
8345      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8346      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8347  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8348      hardcode_libdir_flag_spec=
8349      hardcode_shlibpath_var=no
8350      runpath_var='LD_RUN_PATH'
8351      ;;
8352
8353    uts4*)
8354      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8355      hardcode_libdir_flag_spec='-L$libdir'
8356      hardcode_shlibpath_var=no
8357      ;;
8358
8359    *)
8360      ld_shlibs=no
8361      ;;
8362    esac
8363  fi
8364
8365echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8366echo "${ECHO_T}$ld_shlibs" >&6
8367test "$ld_shlibs" = no && can_build_shared=no
8368
8369variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8370if test "$GCC" = yes; then
8371  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8372fi
8373
8374#
8375# Do we need to explicitly link libc?
8376#
8377case "x$archive_cmds_need_lc" in
8378x|xyes)
8379  # Assume -lc should be added
8380  archive_cmds_need_lc=yes
8381
8382  if test "$enable_shared" = yes && test "$GCC" = yes; then
8383    case $archive_cmds in
8384    *'~'*)
8385      # FIXME: we may have to deal with multi-command sequences.
8386      ;;
8387    '$CC '*)
8388      # Test whether the compiler implicitly links with -lc since on some
8389      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8390      # to ld, don't add -lc before -lgcc.
8391      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8392echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8393      $rm conftest*
8394      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8395
8396      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8397  (eval $ac_compile) 2>&5
8398  ac_status=$?
8399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400  (exit $ac_status); } 2>conftest.err; then
8401        soname=conftest
8402        lib=conftest
8403        libobjs=conftest.$ac_objext
8404        deplibs=
8405        wl=$lt_prog_compiler_wl
8406        compiler_flags=-v
8407        linker_flags=-v
8408        verstring=
8409        output_objdir=.
8410        libname=conftest
8411        lt_save_allow_undefined_flag=$allow_undefined_flag
8412        allow_undefined_flag=
8413        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8414  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8415  ac_status=$?
8416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417  (exit $ac_status); }
8418        then
8419	  archive_cmds_need_lc=no
8420        else
8421	  archive_cmds_need_lc=yes
8422        fi
8423        allow_undefined_flag=$lt_save_allow_undefined_flag
8424      else
8425        cat conftest.err 1>&5
8426      fi
8427      $rm conftest*
8428      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8429echo "${ECHO_T}$archive_cmds_need_lc" >&6
8430      ;;
8431    esac
8432  fi
8433  ;;
8434esac
8435
8436echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8437echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8438library_names_spec=
8439libname_spec='lib$name'
8440soname_spec=
8441shrext_cmds=".so"
8442postinstall_cmds=
8443postuninstall_cmds=
8444finish_cmds=
8445finish_eval=
8446shlibpath_var=
8447shlibpath_overrides_runpath=unknown
8448version_type=none
8449dynamic_linker="$host_os ld.so"
8450sys_lib_dlsearch_path_spec="/lib /usr/lib"
8451if test "$GCC" = yes; then
8452  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8453  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8454    # if the path contains ";" then we assume it to be the separator
8455    # otherwise default to the standard path separator (i.e. ":") - it is
8456    # assumed that no part of a normal pathname contains ";" but that should
8457    # okay in the real world where ";" in dirpaths is itself problematic.
8458    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8459  else
8460    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8461  fi
8462else
8463  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8464fi
8465need_lib_prefix=unknown
8466hardcode_into_libs=no
8467
8468# when you set need_version to no, make sure it does not cause -set_version
8469# flags to be left without arguments
8470need_version=unknown
8471
8472case $host_os in
8473aix3*)
8474  version_type=linux
8475  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8476  shlibpath_var=LIBPATH
8477
8478  # AIX 3 has no versioning support, so we append a major version to the name.
8479  soname_spec='${libname}${release}${shared_ext}$major'
8480  ;;
8481
8482aix4* | aix5*)
8483  version_type=linux
8484  need_lib_prefix=no
8485  need_version=no
8486  hardcode_into_libs=yes
8487  if test "$host_cpu" = ia64; then
8488    # AIX 5 supports IA64
8489    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8490    shlibpath_var=LD_LIBRARY_PATH
8491  else
8492    # With GCC up to 2.95.x, collect2 would create an import file
8493    # for dependence libraries.  The import file would start with
8494    # the line `#! .'.  This would cause the generated library to
8495    # depend on `.', always an invalid library.  This was fixed in
8496    # development snapshots of GCC prior to 3.0.
8497    case $host_os in
8498      aix4 | aix4.[01] | aix4.[01].*)
8499      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8500	   echo ' yes '
8501	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8502	:
8503      else
8504	can_build_shared=no
8505      fi
8506      ;;
8507    esac
8508    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8509    # soname into executable. Probably we can add versioning support to
8510    # collect2, so additional links can be useful in future.
8511    if test "$aix_use_runtimelinking" = yes; then
8512      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8513      # instead of lib<name>.a to let people know that these are not
8514      # typical AIX shared libraries.
8515      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8516    else
8517      # We preserve .a as extension for shared libraries through AIX4.2
8518      # and later when we are not doing run time linking.
8519      library_names_spec='${libname}${release}.a $libname.a'
8520      soname_spec='${libname}${release}${shared_ext}$major'
8521    fi
8522    shlibpath_var=LIBPATH
8523  fi
8524  ;;
8525
8526amigaos*)
8527  library_names_spec='$libname.ixlibrary $libname.a'
8528  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8529  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'
8530  ;;
8531
8532beos*)
8533  library_names_spec='${libname}${shared_ext}'
8534  dynamic_linker="$host_os ld.so"
8535  shlibpath_var=LIBRARY_PATH
8536  ;;
8537
8538bsdi4*)
8539  version_type=linux
8540  need_version=no
8541  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8542  soname_spec='${libname}${release}${shared_ext}$major'
8543  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8544  shlibpath_var=LD_LIBRARY_PATH
8545  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8546  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8547  # the default ld.so.conf also contains /usr/contrib/lib and
8548  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8549  # libtool to hard-code these into programs
8550  ;;
8551
8552cygwin* | mingw* | pw32*)
8553  version_type=windows
8554  shrext_cmds=".dll"
8555  need_version=no
8556  need_lib_prefix=no
8557
8558  case $GCC,$host_os in
8559  yes,cygwin* | yes,mingw* | yes,pw32*)
8560    library_names_spec='$libname.dll.a'
8561    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8562    postinstall_cmds='base_file=`basename \${file}`~
8563      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8564      dldir=$destdir/`dirname \$dlpath`~
8565      test -d \$dldir || mkdir -p \$dldir~
8566      $install_prog $dir/$dlname \$dldir/$dlname'
8567    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8568      dlpath=$dir/\$dldll~
8569       $rm \$dlpath'
8570    shlibpath_overrides_runpath=yes
8571
8572    case $host_os in
8573    cygwin*)
8574      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8575      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8576      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8577      ;;
8578    mingw*)
8579      # MinGW DLLs use traditional 'lib' prefix
8580      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8581      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8582      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8583        # It is most probably a Windows format PATH printed by
8584        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8585        # path with ; separators, and with drive letters. We can handle the
8586        # drive letters (cygwin fileutils understands them), so leave them,
8587        # especially as we might pass files found there to a mingw objdump,
8588        # which wouldn't understand a cygwinified path. Ahh.
8589        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8590      else
8591        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8592      fi
8593      ;;
8594    pw32*)
8595      # pw32 DLLs use 'pw' prefix rather than 'lib'
8596      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
8597      ;;
8598    esac
8599    ;;
8600
8601  *)
8602    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8603    ;;
8604  esac
8605  dynamic_linker='Win32 ld.exe'
8606  # FIXME: first we should search . and the directory the executable is in
8607  shlibpath_var=PATH
8608  ;;
8609
8610darwin* | rhapsody*)
8611  dynamic_linker="$host_os dyld"
8612  version_type=darwin
8613  need_lib_prefix=no
8614  need_version=no
8615  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8616  soname_spec='${libname}${release}${major}$shared_ext'
8617  shlibpath_overrides_runpath=yes
8618  shlibpath_var=DYLD_LIBRARY_PATH
8619  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
8620  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8621  if test "$GCC" = yes; then
8622    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"`
8623  else
8624    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8625  fi
8626  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8627  ;;
8628
8629dgux*)
8630  version_type=linux
8631  need_lib_prefix=no
8632  need_version=no
8633  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8634  soname_spec='${libname}${release}${shared_ext}$major'
8635  shlibpath_var=LD_LIBRARY_PATH
8636  ;;
8637
8638freebsd1*)
8639  dynamic_linker=no
8640  ;;
8641
8642kfreebsd*-gnu)
8643  version_type=linux
8644  need_lib_prefix=no
8645  need_version=no
8646  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8647  soname_spec='${libname}${release}${shared_ext}$major'
8648  shlibpath_var=LD_LIBRARY_PATH
8649  shlibpath_overrides_runpath=no
8650  hardcode_into_libs=yes
8651  dynamic_linker='GNU ld.so'
8652  ;;
8653
8654freebsd*)
8655  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8656  version_type=freebsd-$objformat
8657  case $version_type in
8658    freebsd-elf*)
8659      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8660      need_version=no
8661      need_lib_prefix=no
8662      ;;
8663    freebsd-*)
8664      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8665      need_version=yes
8666      ;;
8667  esac
8668  shlibpath_var=LD_LIBRARY_PATH
8669  case $host_os in
8670  freebsd2*)
8671    shlibpath_overrides_runpath=yes
8672    ;;
8673  freebsd3.01* | freebsdelf3.01*)
8674    shlibpath_overrides_runpath=yes
8675    hardcode_into_libs=yes
8676    ;;
8677  *) # from 3.2 on
8678    shlibpath_overrides_runpath=no
8679    hardcode_into_libs=yes
8680    ;;
8681  esac
8682  ;;
8683
8684gnu*)
8685  version_type=linux
8686  need_lib_prefix=no
8687  need_version=no
8688  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8689  soname_spec='${libname}${release}${shared_ext}$major'
8690  shlibpath_var=LD_LIBRARY_PATH
8691  hardcode_into_libs=yes
8692  ;;
8693
8694hpux9* | hpux10* | hpux11*)
8695  # Give a soname corresponding to the major version so that dld.sl refuses to
8696  # link against other versions.
8697  version_type=sunos
8698  need_lib_prefix=no
8699  need_version=no
8700  case "$host_cpu" in
8701  ia64*)
8702    shrext_cmds='.so'
8703    hardcode_into_libs=yes
8704    dynamic_linker="$host_os dld.so"
8705    shlibpath_var=LD_LIBRARY_PATH
8706    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8707    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8708    soname_spec='${libname}${release}${shared_ext}$major'
8709    if test "X$HPUX_IA64_MODE" = X32; then
8710      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8711    else
8712      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8713    fi
8714    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8715    ;;
8716   hppa*64*)
8717     shrext_cmds='.sl'
8718     hardcode_into_libs=yes
8719     dynamic_linker="$host_os dld.sl"
8720     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8721     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8722     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8723     soname_spec='${libname}${release}${shared_ext}$major'
8724     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8725     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8726     ;;
8727   *)
8728    shrext_cmds='.sl'
8729    dynamic_linker="$host_os dld.sl"
8730    shlibpath_var=SHLIB_PATH
8731    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8732    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8733    soname_spec='${libname}${release}${shared_ext}$major'
8734    ;;
8735  esac
8736  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8737  postinstall_cmds='chmod 555 $lib'
8738  ;;
8739
8740irix5* | irix6* | nonstopux*)
8741  case $host_os in
8742    nonstopux*) version_type=nonstopux ;;
8743    *)
8744	if test "$lt_cv_prog_gnu_ld" = yes; then
8745		version_type=linux
8746	else
8747		version_type=irix
8748	fi ;;
8749  esac
8750  need_lib_prefix=no
8751  need_version=no
8752  soname_spec='${libname}${release}${shared_ext}$major'
8753  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8754  case $host_os in
8755  irix5* | nonstopux*)
8756    libsuff= shlibsuff=
8757    ;;
8758  *)
8759    case $LD in # libtool.m4 will add one of these switches to LD
8760    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8761      libsuff= shlibsuff= libmagic=32-bit;;
8762    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8763      libsuff=32 shlibsuff=N32 libmagic=N32;;
8764    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8765      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8766    *) libsuff= shlibsuff= libmagic=never-match;;
8767    esac
8768    ;;
8769  esac
8770  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8771  shlibpath_overrides_runpath=no
8772  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8773  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8774  hardcode_into_libs=yes
8775  ;;
8776
8777# No shared lib support for Linux oldld, aout, or coff.
8778linux*oldld* | linux*aout* | linux*coff*)
8779  dynamic_linker=no
8780  ;;
8781
8782# This must be Linux ELF.
8783linux*)
8784  version_type=linux
8785  need_lib_prefix=no
8786  need_version=no
8787  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8788  soname_spec='${libname}${release}${shared_ext}$major'
8789  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8790  shlibpath_var=LD_LIBRARY_PATH
8791  shlibpath_overrides_runpath=no
8792  # This implies no fast_install, which is unacceptable.
8793  # Some rework will be needed to allow for fast_install
8794  # before this can be enabled.
8795  hardcode_into_libs=yes
8796
8797  # Append ld.so.conf contents to the search path
8798  if test -f /etc/ld.so.conf; then
8799    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
8800    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8801  fi
8802
8803  # We used to test for /lib/ld.so.1 and disable shared libraries on
8804  # powerpc, because MkLinux only supported shared libraries with the
8805  # GNU dynamic linker.  Since this was broken with cross compilers,
8806  # most powerpc-linux boxes support dynamic linking these days and
8807  # people can always --disable-shared, the test was removed, and we
8808  # assume the GNU/Linux dynamic linker is in use.
8809  dynamic_linker='GNU/Linux ld.so'
8810  ;;
8811
8812knetbsd*-gnu)
8813  version_type=linux
8814  need_lib_prefix=no
8815  need_version=no
8816  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8817  soname_spec='${libname}${release}${shared_ext}$major'
8818  shlibpath_var=LD_LIBRARY_PATH
8819  shlibpath_overrides_runpath=no
8820  hardcode_into_libs=yes
8821  dynamic_linker='GNU ld.so'
8822  ;;
8823
8824netbsd*)
8825  version_type=sunos
8826  need_lib_prefix=no
8827  need_version=no
8828  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8829    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8830    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8831    dynamic_linker='NetBSD (a.out) ld.so'
8832  else
8833    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8834    soname_spec='${libname}${release}${shared_ext}$major'
8835    dynamic_linker='NetBSD ld.elf_so'
8836  fi
8837  shlibpath_var=LD_LIBRARY_PATH
8838  shlibpath_overrides_runpath=yes
8839  hardcode_into_libs=yes
8840  ;;
8841
8842newsos6)
8843  version_type=linux
8844  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8845  shlibpath_var=LD_LIBRARY_PATH
8846  shlibpath_overrides_runpath=yes
8847  ;;
8848
8849nto-qnx*)
8850  version_type=linux
8851  need_lib_prefix=no
8852  need_version=no
8853  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8854  soname_spec='${libname}${release}${shared_ext}$major'
8855  shlibpath_var=LD_LIBRARY_PATH
8856  shlibpath_overrides_runpath=yes
8857  ;;
8858
8859openbsd*)
8860  version_type=sunos
8861  need_lib_prefix=no
8862  need_version=yes
8863  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8864  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8865  shlibpath_var=LD_LIBRARY_PATH
8866  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8867    case $host_os in
8868      openbsd2.[89] | openbsd2.[89].*)
8869	shlibpath_overrides_runpath=no
8870	;;
8871      *)
8872	shlibpath_overrides_runpath=yes
8873	;;
8874      esac
8875  else
8876    shlibpath_overrides_runpath=yes
8877  fi
8878  ;;
8879
8880os2*)
8881  libname_spec='$name'
8882  shrext_cmds=".dll"
8883  need_lib_prefix=no
8884  library_names_spec='$libname${shared_ext} $libname.a'
8885  dynamic_linker='OS/2 ld.exe'
8886  shlibpath_var=LIBPATH
8887  ;;
8888
8889osf3* | osf4* | osf5*)
8890  version_type=osf
8891  need_lib_prefix=no
8892  need_version=no
8893  soname_spec='${libname}${release}${shared_ext}$major'
8894  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8895  shlibpath_var=LD_LIBRARY_PATH
8896  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8897  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8898  ;;
8899
8900sco3.2v5*)
8901  version_type=osf
8902  soname_spec='${libname}${release}${shared_ext}$major'
8903  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8904  shlibpath_var=LD_LIBRARY_PATH
8905  ;;
8906
8907solaris*)
8908  version_type=linux
8909  need_lib_prefix=no
8910  need_version=no
8911  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8912  soname_spec='${libname}${release}${shared_ext}$major'
8913  shlibpath_var=LD_LIBRARY_PATH
8914  shlibpath_overrides_runpath=yes
8915  hardcode_into_libs=yes
8916  # ldd complains unless libraries are executable
8917  postinstall_cmds='chmod +x $lib'
8918  ;;
8919
8920sunos4*)
8921  version_type=sunos
8922  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8923  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8924  shlibpath_var=LD_LIBRARY_PATH
8925  shlibpath_overrides_runpath=yes
8926  if test "$with_gnu_ld" = yes; then
8927    need_lib_prefix=no
8928  fi
8929  need_version=yes
8930  ;;
8931
8932sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8933  version_type=linux
8934  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8935  soname_spec='${libname}${release}${shared_ext}$major'
8936  shlibpath_var=LD_LIBRARY_PATH
8937  case $host_vendor in
8938    sni)
8939      shlibpath_overrides_runpath=no
8940      need_lib_prefix=no
8941      export_dynamic_flag_spec='${wl}-Blargedynsym'
8942      runpath_var=LD_RUN_PATH
8943      ;;
8944    siemens)
8945      need_lib_prefix=no
8946      ;;
8947    motorola)
8948      need_lib_prefix=no
8949      need_version=no
8950      shlibpath_overrides_runpath=no
8951      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8952      ;;
8953  esac
8954  ;;
8955
8956sysv4*MP*)
8957  if test -d /usr/nec ;then
8958    version_type=linux
8959    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8960    soname_spec='$libname${shared_ext}.$major'
8961    shlibpath_var=LD_LIBRARY_PATH
8962  fi
8963  ;;
8964
8965uts4*)
8966  version_type=linux
8967  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8968  soname_spec='${libname}${release}${shared_ext}$major'
8969  shlibpath_var=LD_LIBRARY_PATH
8970  ;;
8971
8972*)
8973  dynamic_linker=no
8974  ;;
8975esac
8976echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8977echo "${ECHO_T}$dynamic_linker" >&6
8978test "$dynamic_linker" = no && can_build_shared=no
8979
8980echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8981echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8982hardcode_action=
8983if test -n "$hardcode_libdir_flag_spec" || \
8984   test -n "$runpath_var " || \
8985   test "X$hardcode_automatic"="Xyes" ; then
8986
8987  # We can hardcode non-existant directories.
8988  if test "$hardcode_direct" != no &&
8989     # If the only mechanism to avoid hardcoding is shlibpath_var, we
8990     # have to relink, otherwise we might link with an installed library
8991     # when we should be linking with a yet-to-be-installed one
8992     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8993     test "$hardcode_minus_L" != no; then
8994    # Linking always hardcodes the temporary library directory.
8995    hardcode_action=relink
8996  else
8997    # We can link without hardcoding, and we can hardcode nonexisting dirs.
8998    hardcode_action=immediate
8999  fi
9000else
9001  # We cannot hardcode anything, or else we can only hardcode existing
9002  # directories.
9003  hardcode_action=unsupported
9004fi
9005echo "$as_me:$LINENO: result: $hardcode_action" >&5
9006echo "${ECHO_T}$hardcode_action" >&6
9007
9008if test "$hardcode_action" = relink; then
9009  # Fast installation is not supported
9010  enable_fast_install=no
9011elif test "$shlibpath_overrides_runpath" = yes ||
9012     test "$enable_shared" = no; then
9013  # Fast installation is not necessary
9014  enable_fast_install=needless
9015fi
9016
9017striplib=
9018old_striplib=
9019echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9020echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9021if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9022  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9023  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9024  echo "$as_me:$LINENO: result: yes" >&5
9025echo "${ECHO_T}yes" >&6
9026else
9027# FIXME - insert some real tests, host_os isn't really good enough
9028  case $host_os in
9029   darwin*)
9030       if test -n "$STRIP" ; then
9031         striplib="$STRIP -x"
9032         echo "$as_me:$LINENO: result: yes" >&5
9033echo "${ECHO_T}yes" >&6
9034       else
9035  echo "$as_me:$LINENO: result: no" >&5
9036echo "${ECHO_T}no" >&6
9037fi
9038       ;;
9039   *)
9040  echo "$as_me:$LINENO: result: no" >&5
9041echo "${ECHO_T}no" >&6
9042    ;;
9043  esac
9044fi
9045
9046if test "x$enable_dlopen" != xyes; then
9047  enable_dlopen=unknown
9048  enable_dlopen_self=unknown
9049  enable_dlopen_self_static=unknown
9050else
9051  lt_cv_dlopen=no
9052  lt_cv_dlopen_libs=
9053
9054  case $host_os in
9055  beos*)
9056    lt_cv_dlopen="load_add_on"
9057    lt_cv_dlopen_libs=
9058    lt_cv_dlopen_self=yes
9059    ;;
9060
9061  mingw* | pw32*)
9062    lt_cv_dlopen="LoadLibrary"
9063    lt_cv_dlopen_libs=
9064   ;;
9065
9066  cygwin*)
9067    lt_cv_dlopen="dlopen"
9068    lt_cv_dlopen_libs=
9069   ;;
9070
9071  darwin*)
9072  # if libdl is installed we need to link against it
9073    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9074echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9075if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9076  echo $ECHO_N "(cached) $ECHO_C" >&6
9077else
9078  ac_check_lib_save_LIBS=$LIBS
9079LIBS="-ldl  $LIBS"
9080cat >conftest.$ac_ext <<_ACEOF
9081/* confdefs.h.  */
9082_ACEOF
9083cat confdefs.h >>conftest.$ac_ext
9084cat >>conftest.$ac_ext <<_ACEOF
9085/* end confdefs.h.  */
9086
9087/* Override any gcc2 internal prototype to avoid an error.  */
9088#ifdef __cplusplus
9089extern "C"
9090#endif
9091/* We use char because int might match the return type of a gcc2
9092   builtin and then its argument prototype would still apply.  */
9093char dlopen ();
9094int
9095main ()
9096{
9097dlopen ();
9098  ;
9099  return 0;
9100}
9101_ACEOF
9102rm -f conftest.$ac_objext conftest$ac_exeext
9103if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9104  (eval $ac_link) 2>conftest.er1
9105  ac_status=$?
9106  grep -v '^ *+' conftest.er1 >conftest.err
9107  rm -f conftest.er1
9108  cat conftest.err >&5
9109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110  (exit $ac_status); } &&
9111	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
9112  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9113  (eval $ac_try) 2>&5
9114  ac_status=$?
9115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116  (exit $ac_status); }; } &&
9117	 { ac_try='test -s conftest$ac_exeext'
9118  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9119  (eval $ac_try) 2>&5
9120  ac_status=$?
9121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9122  (exit $ac_status); }; }; then
9123  ac_cv_lib_dl_dlopen=yes
9124else
9125  echo "$as_me: failed program was:" >&5
9126sed 's/^/| /' conftest.$ac_ext >&5
9127
9128ac_cv_lib_dl_dlopen=no
9129fi
9130rm -f conftest.err conftest.$ac_objext \
9131      conftest$ac_exeext conftest.$ac_ext
9132LIBS=$ac_check_lib_save_LIBS
9133fi
9134echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9135echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9136if test $ac_cv_lib_dl_dlopen = yes; then
9137  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9138else
9139
9140    lt_cv_dlopen="dyld"
9141    lt_cv_dlopen_libs=
9142    lt_cv_dlopen_self=yes
9143
9144fi
9145
9146   ;;
9147
9148  *)
9149    echo "$as_me:$LINENO: checking for shl_load" >&5
9150echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9151if test "${ac_cv_func_shl_load+set}" = set; then
9152  echo $ECHO_N "(cached) $ECHO_C" >&6
9153else
9154  cat >conftest.$ac_ext <<_ACEOF
9155/* confdefs.h.  */
9156_ACEOF
9157cat confdefs.h >>conftest.$ac_ext
9158cat >>conftest.$ac_ext <<_ACEOF
9159/* end confdefs.h.  */
9160/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9161   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9162#define shl_load innocuous_shl_load
9163
9164/* System header to define __stub macros and hopefully few prototypes,
9165    which can conflict with char shl_load (); below.
9166    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9167    <limits.h> exists even on freestanding compilers.  */
9168
9169#ifdef __STDC__
9170# include <limits.h>
9171#else
9172# include <assert.h>
9173#endif
9174
9175#undef shl_load
9176
9177/* Override any gcc2 internal prototype to avoid an error.  */
9178#ifdef __cplusplus
9179extern "C"
9180{
9181#endif
9182/* We use char because int might match the return type of a gcc2
9183   builtin and then its argument prototype would still apply.  */
9184char shl_load ();
9185/* The GNU C library defines this for functions which it implements
9186    to always fail with ENOSYS.  Some functions are actually named
9187    something starting with __ and the normal name is an alias.  */
9188#if defined (__stub_shl_load) || defined (__stub___shl_load)
9189choke me
9190#else
9191char (*f) () = shl_load;
9192#endif
9193#ifdef __cplusplus
9194}
9195#endif
9196
9197int
9198main ()
9199{
9200return f != shl_load;
9201  ;
9202  return 0;
9203}
9204_ACEOF
9205rm -f conftest.$ac_objext conftest$ac_exeext
9206if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9207  (eval $ac_link) 2>conftest.er1
9208  ac_status=$?
9209  grep -v '^ *+' conftest.er1 >conftest.err
9210  rm -f conftest.er1
9211  cat conftest.err >&5
9212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213  (exit $ac_status); } &&
9214	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
9215  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9216  (eval $ac_try) 2>&5
9217  ac_status=$?
9218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219  (exit $ac_status); }; } &&
9220	 { ac_try='test -s conftest$ac_exeext'
9221  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9222  (eval $ac_try) 2>&5
9223  ac_status=$?
9224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225  (exit $ac_status); }; }; then
9226  ac_cv_func_shl_load=yes
9227else
9228  echo "$as_me: failed program was:" >&5
9229sed 's/^/| /' conftest.$ac_ext >&5
9230
9231ac_cv_func_shl_load=no
9232fi
9233rm -f conftest.err conftest.$ac_objext \
9234      conftest$ac_exeext conftest.$ac_ext
9235fi
9236echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9237echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9238if test $ac_cv_func_shl_load = yes; then
9239  lt_cv_dlopen="shl_load"
9240else
9241  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9242echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9243if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9244  echo $ECHO_N "(cached) $ECHO_C" >&6
9245else
9246  ac_check_lib_save_LIBS=$LIBS
9247LIBS="-ldld  $LIBS"
9248cat >conftest.$ac_ext <<_ACEOF
9249/* confdefs.h.  */
9250_ACEOF
9251cat confdefs.h >>conftest.$ac_ext
9252cat >>conftest.$ac_ext <<_ACEOF
9253/* end confdefs.h.  */
9254
9255/* Override any gcc2 internal prototype to avoid an error.  */
9256#ifdef __cplusplus
9257extern "C"
9258#endif
9259/* We use char because int might match the return type of a gcc2
9260   builtin and then its argument prototype would still apply.  */
9261char shl_load ();
9262int
9263main ()
9264{
9265shl_load ();
9266  ;
9267  return 0;
9268}
9269_ACEOF
9270rm -f conftest.$ac_objext conftest$ac_exeext
9271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9272  (eval $ac_link) 2>conftest.er1
9273  ac_status=$?
9274  grep -v '^ *+' conftest.er1 >conftest.err
9275  rm -f conftest.er1
9276  cat conftest.err >&5
9277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9278  (exit $ac_status); } &&
9279	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
9280  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9281  (eval $ac_try) 2>&5
9282  ac_status=$?
9283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9284  (exit $ac_status); }; } &&
9285	 { ac_try='test -s conftest$ac_exeext'
9286  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9287  (eval $ac_try) 2>&5
9288  ac_status=$?
9289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9290  (exit $ac_status); }; }; then
9291  ac_cv_lib_dld_shl_load=yes
9292else
9293  echo "$as_me: failed program was:" >&5
9294sed 's/^/| /' conftest.$ac_ext >&5
9295
9296ac_cv_lib_dld_shl_load=no
9297fi
9298rm -f conftest.err conftest.$ac_objext \
9299      conftest$ac_exeext conftest.$ac_ext
9300LIBS=$ac_check_lib_save_LIBS
9301fi
9302echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9303echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9304if test $ac_cv_lib_dld_shl_load = yes; then
9305  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9306else
9307  echo "$as_me:$LINENO: checking for dlopen" >&5
9308echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9309if test "${ac_cv_func_dlopen+set}" = set; then
9310  echo $ECHO_N "(cached) $ECHO_C" >&6
9311else
9312  cat >conftest.$ac_ext <<_ACEOF
9313/* confdefs.h.  */
9314_ACEOF
9315cat confdefs.h >>conftest.$ac_ext
9316cat >>conftest.$ac_ext <<_ACEOF
9317/* end confdefs.h.  */
9318/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9319   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9320#define dlopen innocuous_dlopen
9321
9322/* System header to define __stub macros and hopefully few prototypes,
9323    which can conflict with char dlopen (); below.
9324    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9325    <limits.h> exists even on freestanding compilers.  */
9326
9327#ifdef __STDC__
9328# include <limits.h>
9329#else
9330# include <assert.h>
9331#endif
9332
9333#undef dlopen
9334
9335/* Override any gcc2 internal prototype to avoid an error.  */
9336#ifdef __cplusplus
9337extern "C"
9338{
9339#endif
9340/* We use char because int might match the return type of a gcc2
9341   builtin and then its argument prototype would still apply.  */
9342char dlopen ();
9343/* The GNU C library defines this for functions which it implements
9344    to always fail with ENOSYS.  Some functions are actually named
9345    something starting with __ and the normal name is an alias.  */
9346#if defined (__stub_dlopen) || defined (__stub___dlopen)
9347choke me
9348#else
9349char (*f) () = dlopen;
9350#endif
9351#ifdef __cplusplus
9352}
9353#endif
9354
9355int
9356main ()
9357{
9358return f != dlopen;
9359  ;
9360  return 0;
9361}
9362_ACEOF
9363rm -f conftest.$ac_objext conftest$ac_exeext
9364if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9365  (eval $ac_link) 2>conftest.er1
9366  ac_status=$?
9367  grep -v '^ *+' conftest.er1 >conftest.err
9368  rm -f conftest.er1
9369  cat conftest.err >&5
9370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9371  (exit $ac_status); } &&
9372	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
9373  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9374  (eval $ac_try) 2>&5
9375  ac_status=$?
9376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9377  (exit $ac_status); }; } &&
9378	 { ac_try='test -s conftest$ac_exeext'
9379  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9380  (eval $ac_try) 2>&5
9381  ac_status=$?
9382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9383  (exit $ac_status); }; }; then
9384  ac_cv_func_dlopen=yes
9385else
9386  echo "$as_me: failed program was:" >&5
9387sed 's/^/| /' conftest.$ac_ext >&5
9388
9389ac_cv_func_dlopen=no
9390fi
9391rm -f conftest.err conftest.$ac_objext \
9392      conftest$ac_exeext conftest.$ac_ext
9393fi
9394echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9395echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9396if test $ac_cv_func_dlopen = yes; then
9397  lt_cv_dlopen="dlopen"
9398else
9399  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9400echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9401if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9402  echo $ECHO_N "(cached) $ECHO_C" >&6
9403else
9404  ac_check_lib_save_LIBS=$LIBS
9405LIBS="-ldl  $LIBS"
9406cat >conftest.$ac_ext <<_ACEOF
9407/* confdefs.h.  */
9408_ACEOF
9409cat confdefs.h >>conftest.$ac_ext
9410cat >>conftest.$ac_ext <<_ACEOF
9411/* end confdefs.h.  */
9412
9413/* Override any gcc2 internal prototype to avoid an error.  */
9414#ifdef __cplusplus
9415extern "C"
9416#endif
9417/* We use char because int might match the return type of a gcc2
9418   builtin and then its argument prototype would still apply.  */
9419char dlopen ();
9420int
9421main ()
9422{
9423dlopen ();
9424  ;
9425  return 0;
9426}
9427_ACEOF
9428rm -f conftest.$ac_objext conftest$ac_exeext
9429if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9430  (eval $ac_link) 2>conftest.er1
9431  ac_status=$?
9432  grep -v '^ *+' conftest.er1 >conftest.err
9433  rm -f conftest.er1
9434  cat conftest.err >&5
9435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9436  (exit $ac_status); } &&
9437	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
9438  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9439  (eval $ac_try) 2>&5
9440  ac_status=$?
9441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9442  (exit $ac_status); }; } &&
9443	 { ac_try='test -s conftest$ac_exeext'
9444  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9445  (eval $ac_try) 2>&5
9446  ac_status=$?
9447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9448  (exit $ac_status); }; }; then
9449  ac_cv_lib_dl_dlopen=yes
9450else
9451  echo "$as_me: failed program was:" >&5
9452sed 's/^/| /' conftest.$ac_ext >&5
9453
9454ac_cv_lib_dl_dlopen=no
9455fi
9456rm -f conftest.err conftest.$ac_objext \
9457      conftest$ac_exeext conftest.$ac_ext
9458LIBS=$ac_check_lib_save_LIBS
9459fi
9460echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9461echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9462if test $ac_cv_lib_dl_dlopen = yes; then
9463  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9464else
9465  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9466echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9467if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9468  echo $ECHO_N "(cached) $ECHO_C" >&6
9469else
9470  ac_check_lib_save_LIBS=$LIBS
9471LIBS="-lsvld  $LIBS"
9472cat >conftest.$ac_ext <<_ACEOF
9473/* confdefs.h.  */
9474_ACEOF
9475cat confdefs.h >>conftest.$ac_ext
9476cat >>conftest.$ac_ext <<_ACEOF
9477/* end confdefs.h.  */
9478
9479/* Override any gcc2 internal prototype to avoid an error.  */
9480#ifdef __cplusplus
9481extern "C"
9482#endif
9483/* We use char because int might match the return type of a gcc2
9484   builtin and then its argument prototype would still apply.  */
9485char dlopen ();
9486int
9487main ()
9488{
9489dlopen ();
9490  ;
9491  return 0;
9492}
9493_ACEOF
9494rm -f conftest.$ac_objext conftest$ac_exeext
9495if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9496  (eval $ac_link) 2>conftest.er1
9497  ac_status=$?
9498  grep -v '^ *+' conftest.er1 >conftest.err
9499  rm -f conftest.er1
9500  cat conftest.err >&5
9501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502  (exit $ac_status); } &&
9503	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
9504  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9505  (eval $ac_try) 2>&5
9506  ac_status=$?
9507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9508  (exit $ac_status); }; } &&
9509	 { ac_try='test -s conftest$ac_exeext'
9510  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9511  (eval $ac_try) 2>&5
9512  ac_status=$?
9513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514  (exit $ac_status); }; }; then
9515  ac_cv_lib_svld_dlopen=yes
9516else
9517  echo "$as_me: failed program was:" >&5
9518sed 's/^/| /' conftest.$ac_ext >&5
9519
9520ac_cv_lib_svld_dlopen=no
9521fi
9522rm -f conftest.err conftest.$ac_objext \
9523      conftest$ac_exeext conftest.$ac_ext
9524LIBS=$ac_check_lib_save_LIBS
9525fi
9526echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9527echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9528if test $ac_cv_lib_svld_dlopen = yes; then
9529  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9530else
9531  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9532echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9533if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9534  echo $ECHO_N "(cached) $ECHO_C" >&6
9535else
9536  ac_check_lib_save_LIBS=$LIBS
9537LIBS="-ldld  $LIBS"
9538cat >conftest.$ac_ext <<_ACEOF
9539/* confdefs.h.  */
9540_ACEOF
9541cat confdefs.h >>conftest.$ac_ext
9542cat >>conftest.$ac_ext <<_ACEOF
9543/* end confdefs.h.  */
9544
9545/* Override any gcc2 internal prototype to avoid an error.  */
9546#ifdef __cplusplus
9547extern "C"
9548#endif
9549/* We use char because int might match the return type of a gcc2
9550   builtin and then its argument prototype would still apply.  */
9551char dld_link ();
9552int
9553main ()
9554{
9555dld_link ();
9556  ;
9557  return 0;
9558}
9559_ACEOF
9560rm -f conftest.$ac_objext conftest$ac_exeext
9561if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9562  (eval $ac_link) 2>conftest.er1
9563  ac_status=$?
9564  grep -v '^ *+' conftest.er1 >conftest.err
9565  rm -f conftest.er1
9566  cat conftest.err >&5
9567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9568  (exit $ac_status); } &&
9569	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
9570  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9571  (eval $ac_try) 2>&5
9572  ac_status=$?
9573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574  (exit $ac_status); }; } &&
9575	 { ac_try='test -s conftest$ac_exeext'
9576  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9577  (eval $ac_try) 2>&5
9578  ac_status=$?
9579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9580  (exit $ac_status); }; }; then
9581  ac_cv_lib_dld_dld_link=yes
9582else
9583  echo "$as_me: failed program was:" >&5
9584sed 's/^/| /' conftest.$ac_ext >&5
9585
9586ac_cv_lib_dld_dld_link=no
9587fi
9588rm -f conftest.err conftest.$ac_objext \
9589      conftest$ac_exeext conftest.$ac_ext
9590LIBS=$ac_check_lib_save_LIBS
9591fi
9592echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9593echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9594if test $ac_cv_lib_dld_dld_link = yes; then
9595  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9596fi
9597
9598
9599fi
9600
9601
9602fi
9603
9604
9605fi
9606
9607
9608fi
9609
9610
9611fi
9612
9613    ;;
9614  esac
9615
9616  if test "x$lt_cv_dlopen" != xno; then
9617    enable_dlopen=yes
9618  else
9619    enable_dlopen=no
9620  fi
9621
9622  case $lt_cv_dlopen in
9623  dlopen)
9624    save_CPPFLAGS="$CPPFLAGS"
9625    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9626
9627    save_LDFLAGS="$LDFLAGS"
9628    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9629
9630    save_LIBS="$LIBS"
9631    LIBS="$lt_cv_dlopen_libs $LIBS"
9632
9633    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9634echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9635if test "${lt_cv_dlopen_self+set}" = set; then
9636  echo $ECHO_N "(cached) $ECHO_C" >&6
9637else
9638  	  if test "$cross_compiling" = yes; then :
9639  lt_cv_dlopen_self=cross
9640else
9641  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9642  lt_status=$lt_dlunknown
9643  cat > conftest.$ac_ext <<EOF
9644#line 9644 "configure"
9645#include "confdefs.h"
9646
9647#if HAVE_DLFCN_H
9648#include <dlfcn.h>
9649#endif
9650
9651#include <stdio.h>
9652
9653#ifdef RTLD_GLOBAL
9654#  define LT_DLGLOBAL		RTLD_GLOBAL
9655#else
9656#  ifdef DL_GLOBAL
9657#    define LT_DLGLOBAL		DL_GLOBAL
9658#  else
9659#    define LT_DLGLOBAL		0
9660#  endif
9661#endif
9662
9663/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9664   find out it does not work in some platform. */
9665#ifndef LT_DLLAZY_OR_NOW
9666#  ifdef RTLD_LAZY
9667#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9668#  else
9669#    ifdef DL_LAZY
9670#      define LT_DLLAZY_OR_NOW		DL_LAZY
9671#    else
9672#      ifdef RTLD_NOW
9673#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9674#      else
9675#        ifdef DL_NOW
9676#          define LT_DLLAZY_OR_NOW	DL_NOW
9677#        else
9678#          define LT_DLLAZY_OR_NOW	0
9679#        endif
9680#      endif
9681#    endif
9682#  endif
9683#endif
9684
9685#ifdef __cplusplus
9686extern "C" void exit (int);
9687#endif
9688
9689void fnord() { int i=42;}
9690int main ()
9691{
9692  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9693  int status = $lt_dlunknown;
9694
9695  if (self)
9696    {
9697      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9698      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9699      /* dlclose (self); */
9700    }
9701
9702    exit (status);
9703}
9704EOF
9705  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9706  (eval $ac_link) 2>&5
9707  ac_status=$?
9708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9709  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9710    (./conftest; exit; ) 2>/dev/null
9711    lt_status=$?
9712    case x$lt_status in
9713      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9714      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9715      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9716    esac
9717  else :
9718    # compilation failed
9719    lt_cv_dlopen_self=no
9720  fi
9721fi
9722rm -fr conftest*
9723
9724
9725fi
9726echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9727echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9728
9729    if test "x$lt_cv_dlopen_self" = xyes; then
9730      LDFLAGS="$LDFLAGS $link_static_flag"
9731      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9732echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9733if test "${lt_cv_dlopen_self_static+set}" = set; then
9734  echo $ECHO_N "(cached) $ECHO_C" >&6
9735else
9736  	  if test "$cross_compiling" = yes; then :
9737  lt_cv_dlopen_self_static=cross
9738else
9739  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9740  lt_status=$lt_dlunknown
9741  cat > conftest.$ac_ext <<EOF
9742#line 9742 "configure"
9743#include "confdefs.h"
9744
9745#if HAVE_DLFCN_H
9746#include <dlfcn.h>
9747#endif
9748
9749#include <stdio.h>
9750
9751#ifdef RTLD_GLOBAL
9752#  define LT_DLGLOBAL		RTLD_GLOBAL
9753#else
9754#  ifdef DL_GLOBAL
9755#    define LT_DLGLOBAL		DL_GLOBAL
9756#  else
9757#    define LT_DLGLOBAL		0
9758#  endif
9759#endif
9760
9761/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9762   find out it does not work in some platform. */
9763#ifndef LT_DLLAZY_OR_NOW
9764#  ifdef RTLD_LAZY
9765#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9766#  else
9767#    ifdef DL_LAZY
9768#      define LT_DLLAZY_OR_NOW		DL_LAZY
9769#    else
9770#      ifdef RTLD_NOW
9771#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9772#      else
9773#        ifdef DL_NOW
9774#          define LT_DLLAZY_OR_NOW	DL_NOW
9775#        else
9776#          define LT_DLLAZY_OR_NOW	0
9777#        endif
9778#      endif
9779#    endif
9780#  endif
9781#endif
9782
9783#ifdef __cplusplus
9784extern "C" void exit (int);
9785#endif
9786
9787void fnord() { int i=42;}
9788int main ()
9789{
9790  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9791  int status = $lt_dlunknown;
9792
9793  if (self)
9794    {
9795      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9796      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9797      /* dlclose (self); */
9798    }
9799
9800    exit (status);
9801}
9802EOF
9803  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9804  (eval $ac_link) 2>&5
9805  ac_status=$?
9806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9808    (./conftest; exit; ) 2>/dev/null
9809    lt_status=$?
9810    case x$lt_status in
9811      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9812      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9813      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9814    esac
9815  else :
9816    # compilation failed
9817    lt_cv_dlopen_self_static=no
9818  fi
9819fi
9820rm -fr conftest*
9821
9822
9823fi
9824echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9825echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9826    fi
9827
9828    CPPFLAGS="$save_CPPFLAGS"
9829    LDFLAGS="$save_LDFLAGS"
9830    LIBS="$save_LIBS"
9831    ;;
9832  esac
9833
9834  case $lt_cv_dlopen_self in
9835  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9836  *) enable_dlopen_self=unknown ;;
9837  esac
9838
9839  case $lt_cv_dlopen_self_static in
9840  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9841  *) enable_dlopen_self_static=unknown ;;
9842  esac
9843fi
9844
9845
9846# Report which librarie types wil actually be built
9847echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9848echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9849echo "$as_me:$LINENO: result: $can_build_shared" >&5
9850echo "${ECHO_T}$can_build_shared" >&6
9851
9852echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9853echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9854test "$can_build_shared" = "no" && enable_shared=no
9855
9856# On AIX, shared libraries and static libraries use the same namespace, and
9857# are all built from PIC.
9858case "$host_os" in
9859aix3*)
9860  test "$enable_shared" = yes && enable_static=no
9861  if test -n "$RANLIB"; then
9862    archive_cmds="$archive_cmds~\$RANLIB \$lib"
9863    postinstall_cmds='$RANLIB $lib'
9864  fi
9865  ;;
9866
9867aix4* | aix5*)
9868  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9869    test "$enable_shared" = yes && enable_static=no
9870  fi
9871  ;;
9872  darwin* | rhapsody*)
9873  if test "$GCC" = yes; then
9874    archive_cmds_need_lc=no
9875    case "$host_os" in
9876    rhapsody* | darwin1.[012])
9877      allow_undefined_flag='-undefined suppress'
9878      ;;
9879    *) # Darwin 1.3 on
9880      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9881      	allow_undefined_flag='-flat_namespace -undefined suppress'
9882      else
9883        case ${MACOSX_DEPLOYMENT_TARGET} in
9884          10.[012])
9885            allow_undefined_flag='-flat_namespace -undefined suppress'
9886            ;;
9887          10.*)
9888            allow_undefined_flag='-undefined dynamic_lookup'
9889            ;;
9890        esac
9891      fi
9892      ;;
9893    esac
9894    output_verbose_link_cmd='echo'
9895    archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9896    module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9897    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9898    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}'
9899    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}'
9900    hardcode_direct=no
9901    hardcode_automatic=yes
9902    hardcode_shlibpath_var=unsupported
9903    whole_archive_flag_spec='-all_load $convenience'
9904    link_all_deplibs=yes
9905  else
9906    ld_shlibs=no
9907  fi
9908    ;;
9909esac
9910echo "$as_me:$LINENO: result: $enable_shared" >&5
9911echo "${ECHO_T}$enable_shared" >&6
9912
9913echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9914echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9915# Make sure either enable_shared or enable_static is yes.
9916test "$enable_shared" = yes || enable_static=yes
9917echo "$as_me:$LINENO: result: $enable_static" >&5
9918echo "${ECHO_T}$enable_static" >&6
9919
9920# The else clause should only fire when bootstrapping the
9921# libtool distribution, otherwise you forgot to ship ltmain.sh
9922# with your package, and you will get complaints that there are
9923# no rules to generate ltmain.sh.
9924if test -f "$ltmain"; then
9925  # See if we are running on zsh, and set the options which allow our commands through
9926  # without removal of \ escapes.
9927  if test -n "${ZSH_VERSION+set}" ; then
9928    setopt NO_GLOB_SUBST
9929  fi
9930  # Now quote all the things that may contain metacharacters while being
9931  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9932  # variables and quote the copies for generation of the libtool script.
9933  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9934    SED SHELL STRIP \
9935    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9936    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9937    deplibs_check_method reload_flag reload_cmds need_locks \
9938    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9939    lt_cv_sys_global_symbol_to_c_name_address \
9940    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9941    old_postinstall_cmds old_postuninstall_cmds \
9942    compiler \
9943    CC \
9944    LD \
9945    lt_prog_compiler_wl \
9946    lt_prog_compiler_pic \
9947    lt_prog_compiler_static \
9948    lt_prog_compiler_no_builtin_flag \
9949    export_dynamic_flag_spec \
9950    thread_safe_flag_spec \
9951    whole_archive_flag_spec \
9952    enable_shared_with_static_runtimes \
9953    old_archive_cmds \
9954    old_archive_from_new_cmds \
9955    predep_objects \
9956    postdep_objects \
9957    predeps \
9958    postdeps \
9959    compiler_lib_search_path \
9960    archive_cmds \
9961    archive_expsym_cmds \
9962    postinstall_cmds \
9963    postuninstall_cmds \
9964    old_archive_from_expsyms_cmds \
9965    allow_undefined_flag \
9966    no_undefined_flag \
9967    export_symbols_cmds \
9968    hardcode_libdir_flag_spec \
9969    hardcode_libdir_flag_spec_ld \
9970    hardcode_libdir_separator \
9971    hardcode_automatic \
9972    module_cmds \
9973    module_expsym_cmds \
9974    lt_cv_prog_compiler_c_o \
9975    exclude_expsyms \
9976    include_expsyms; do
9977
9978    case $var in
9979    old_archive_cmds | \
9980    old_archive_from_new_cmds | \
9981    archive_cmds | \
9982    archive_expsym_cmds | \
9983    module_cmds | \
9984    module_expsym_cmds | \
9985    old_archive_from_expsyms_cmds | \
9986    export_symbols_cmds | \
9987    extract_expsyms_cmds | reload_cmds | finish_cmds | \
9988    postinstall_cmds | postuninstall_cmds | \
9989    old_postinstall_cmds | old_postuninstall_cmds | \
9990    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9991      # Double-quote double-evaled strings.
9992      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9993      ;;
9994    *)
9995      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9996      ;;
9997    esac
9998  done
9999
10000  case $lt_echo in
10001  *'\$0 --fallback-echo"')
10002    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10003    ;;
10004  esac
10005
10006cfgfile="${ofile}T"
10007  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10008  $rm -f "$cfgfile"
10009  { echo "$as_me:$LINENO: creating $ofile" >&5
10010echo "$as_me: creating $ofile" >&6;}
10011
10012  cat <<__EOF__ >> "$cfgfile"
10013#! $SHELL
10014
10015# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10016# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10017# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10018#
10019# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10020# Free Software Foundation, Inc.
10021#
10022# This file is part of GNU Libtool:
10023# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10024#
10025# This program is free software; you can redistribute it and/or modify
10026# it under the terms of the GNU General Public License as published by
10027# the Free Software Foundation; either version 2 of the License, or
10028# (at your option) any later version.
10029#
10030# This program is distributed in the hope that it will be useful, but
10031# WITHOUT ANY WARRANTY; without even the implied warranty of
10032# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10033# General Public License for more details.
10034#
10035# You should have received a copy of the GNU General Public License
10036# along with this program; if not, write to the Free Software
10037# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
10038#
10039# As a special exception to the GNU General Public License, if you
10040# distribute this file as part of a program that contains a
10041# configuration script generated by Autoconf, you may include it under
10042# the same distribution terms that you use for the rest of that program.
10043
10044# A sed program that does not truncate output.
10045SED=$lt_SED
10046
10047# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10048Xsed="$SED -e s/^X//"
10049
10050# The HP-UX ksh and POSIX shell print the target directory to stdout
10051# if CDPATH is set.
10052if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
10053
10054# The names of the tagged configurations supported by this script.
10055available_tags=
10056
10057# ### BEGIN LIBTOOL CONFIG
10058
10059# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10060
10061# Shell to use when invoking shell scripts.
10062SHELL=$lt_SHELL
10063
10064# Whether or not to build shared libraries.
10065build_libtool_libs=$enable_shared
10066
10067# Whether or not to build static libraries.
10068build_old_libs=$enable_static
10069
10070# Whether or not to add -lc for building shared libraries.
10071build_libtool_need_lc=$archive_cmds_need_lc
10072
10073# Whether or not to disallow shared libs when runtime libs are static
10074allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10075
10076# Whether or not to optimize for fast installation.
10077fast_install=$enable_fast_install
10078
10079# The host system.
10080host_alias=$host_alias
10081host=$host
10082
10083# An echo program that does not interpret backslashes.
10084echo=$lt_echo
10085
10086# The archiver.
10087AR=$lt_AR
10088AR_FLAGS=$lt_AR_FLAGS
10089
10090# A C compiler.
10091LTCC=$lt_LTCC
10092
10093# A language-specific compiler.
10094CC=$lt_compiler
10095
10096# Is the compiler the GNU C compiler?
10097with_gcc=$GCC
10098
10099# An ERE matcher.
10100EGREP=$lt_EGREP
10101
10102# The linker used to build libraries.
10103LD=$lt_LD
10104
10105# Whether we need hard or soft links.
10106LN_S=$lt_LN_S
10107
10108# A BSD-compatible nm program.
10109NM=$lt_NM
10110
10111# A symbol stripping program
10112STRIP=$lt_STRIP
10113
10114# Used to examine libraries when file_magic_cmd begins "file"
10115MAGIC_CMD=$MAGIC_CMD
10116
10117# Used on cygwin: DLL creation program.
10118DLLTOOL="$DLLTOOL"
10119
10120# Used on cygwin: object dumper.
10121OBJDUMP="$OBJDUMP"
10122
10123# Used on cygwin: assembler.
10124AS="$AS"
10125
10126# The name of the directory that contains temporary libtool files.
10127objdir=$objdir
10128
10129# How to create reloadable object files.
10130reload_flag=$lt_reload_flag
10131reload_cmds=$lt_reload_cmds
10132
10133# How to pass a linker flag through the compiler.
10134wl=$lt_lt_prog_compiler_wl
10135
10136# Object file suffix (normally "o").
10137objext="$ac_objext"
10138
10139# Old archive suffix (normally "a").
10140libext="$libext"
10141
10142# Shared library suffix (normally ".so").
10143shrext_cmds='$shrext_cmds'
10144
10145# Executable file suffix (normally "").
10146exeext="$exeext"
10147
10148# Additional compiler flags for building library objects.
10149pic_flag=$lt_lt_prog_compiler_pic
10150pic_mode=$pic_mode
10151
10152# What is the maximum length of a command?
10153max_cmd_len=$lt_cv_sys_max_cmd_len
10154
10155# Does compiler simultaneously support -c and -o options?
10156compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10157
10158# Must we lock files when doing compilation ?
10159need_locks=$lt_need_locks
10160
10161# Do we need the lib prefix for modules?
10162need_lib_prefix=$need_lib_prefix
10163
10164# Do we need a version for libraries?
10165need_version=$need_version
10166
10167# Whether dlopen is supported.
10168dlopen_support=$enable_dlopen
10169
10170# Whether dlopen of programs is supported.
10171dlopen_self=$enable_dlopen_self
10172
10173# Whether dlopen of statically linked programs is supported.
10174dlopen_self_static=$enable_dlopen_self_static
10175
10176# Compiler flag to prevent dynamic linking.
10177link_static_flag=$lt_lt_prog_compiler_static
10178
10179# Compiler flag to turn off builtin functions.
10180no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10181
10182# Compiler flag to allow reflexive dlopens.
10183export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10184
10185# Compiler flag to generate shared objects directly from archives.
10186whole_archive_flag_spec=$lt_whole_archive_flag_spec
10187
10188# Compiler flag to generate thread-safe objects.
10189thread_safe_flag_spec=$lt_thread_safe_flag_spec
10190
10191# Library versioning type.
10192version_type=$version_type
10193
10194# Format of library name prefix.
10195libname_spec=$lt_libname_spec
10196
10197# List of archive names.  First name is the real one, the rest are links.
10198# The last name is the one that the linker finds with -lNAME.
10199library_names_spec=$lt_library_names_spec
10200
10201# The coded name of the library, if different from the real name.
10202soname_spec=$lt_soname_spec
10203
10204# Commands used to build and install an old-style archive.
10205RANLIB=$lt_RANLIB
10206old_archive_cmds=$lt_old_archive_cmds
10207old_postinstall_cmds=$lt_old_postinstall_cmds
10208old_postuninstall_cmds=$lt_old_postuninstall_cmds
10209
10210# Create an old-style archive from a shared archive.
10211old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10212
10213# Create a temporary old-style archive to link instead of a shared archive.
10214old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10215
10216# Commands used to build and install a shared archive.
10217archive_cmds=$lt_archive_cmds
10218archive_expsym_cmds=$lt_archive_expsym_cmds
10219postinstall_cmds=$lt_postinstall_cmds
10220postuninstall_cmds=$lt_postuninstall_cmds
10221
10222# Commands used to build a loadable module (assumed same as above if empty)
10223module_cmds=$lt_module_cmds
10224module_expsym_cmds=$lt_module_expsym_cmds
10225
10226# Commands to strip libraries.
10227old_striplib=$lt_old_striplib
10228striplib=$lt_striplib
10229
10230# Dependencies to place before the objects being linked to create a
10231# shared library.
10232predep_objects=$lt_predep_objects
10233
10234# Dependencies to place after the objects being linked to create a
10235# shared library.
10236postdep_objects=$lt_postdep_objects
10237
10238# Dependencies to place before the objects being linked to create a
10239# shared library.
10240predeps=$lt_predeps
10241
10242# Dependencies to place after the objects being linked to create a
10243# shared library.
10244postdeps=$lt_postdeps
10245
10246# The library search path used internally by the compiler when linking
10247# a shared library.
10248compiler_lib_search_path=$lt_compiler_lib_search_path
10249
10250# Method to check whether dependent libraries are shared objects.
10251deplibs_check_method=$lt_deplibs_check_method
10252
10253# Command to use when deplibs_check_method == file_magic.
10254file_magic_cmd=$lt_file_magic_cmd
10255
10256# Flag that allows shared libraries with undefined symbols to be built.
10257allow_undefined_flag=$lt_allow_undefined_flag
10258
10259# Flag that forces no undefined symbols.
10260no_undefined_flag=$lt_no_undefined_flag
10261
10262# Commands used to finish a libtool library installation in a directory.
10263finish_cmds=$lt_finish_cmds
10264
10265# Same as above, but a single script fragment to be evaled but not shown.
10266finish_eval=$lt_finish_eval
10267
10268# Take the output of nm and produce a listing of raw symbols and C names.
10269global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10270
10271# Transform the output of nm in a proper C declaration
10272global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10273
10274# Transform the output of nm in a C name address pair
10275global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10276
10277# This is the shared library runtime path variable.
10278runpath_var=$runpath_var
10279
10280# This is the shared library path variable.
10281shlibpath_var=$shlibpath_var
10282
10283# Is shlibpath searched before the hard-coded library search path?
10284shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10285
10286# How to hardcode a shared library path into an executable.
10287hardcode_action=$hardcode_action
10288
10289# Whether we should hardcode library paths into libraries.
10290hardcode_into_libs=$hardcode_into_libs
10291
10292# Flag to hardcode \$libdir into a binary during linking.
10293# This must work even if \$libdir does not exist.
10294hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10295
10296# If ld is used when linking, flag to hardcode \$libdir into
10297# a binary during linking. This must work even if \$libdir does
10298# not exist.
10299hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10300
10301# Whether we need a single -rpath flag with a separated argument.
10302hardcode_libdir_separator=$lt_hardcode_libdir_separator
10303
10304# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10305# resulting binary.
10306hardcode_direct=$hardcode_direct
10307
10308# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10309# resulting binary.
10310hardcode_minus_L=$hardcode_minus_L
10311
10312# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10313# the resulting binary.
10314hardcode_shlibpath_var=$hardcode_shlibpath_var
10315
10316# Set to yes if building a shared library automatically hardcodes DIR into the library
10317# and all subsequent libraries and executables linked against it.
10318hardcode_automatic=$hardcode_automatic
10319
10320# Variables whose values should be saved in libtool wrapper scripts and
10321# restored at relink time.
10322variables_saved_for_relink="$variables_saved_for_relink"
10323
10324# Whether libtool must link a program against all its dependency libraries.
10325link_all_deplibs=$link_all_deplibs
10326
10327# Compile-time system search path for libraries
10328sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10329
10330# Run-time system search path for libraries
10331sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10332
10333# Fix the shell variable \$srcfile for the compiler.
10334fix_srcfile_path="$fix_srcfile_path"
10335
10336# Set to yes if exported symbols are required.
10337always_export_symbols=$always_export_symbols
10338
10339# The commands to list exported symbols.
10340export_symbols_cmds=$lt_export_symbols_cmds
10341
10342# The commands to extract the exported symbol list from a shared archive.
10343extract_expsyms_cmds=$lt_extract_expsyms_cmds
10344
10345# Symbols that should not be listed in the preloaded symbols.
10346exclude_expsyms=$lt_exclude_expsyms
10347
10348# Symbols that must always be exported.
10349include_expsyms=$lt_include_expsyms
10350
10351# ### END LIBTOOL CONFIG
10352
10353__EOF__
10354
10355
10356  case $host_os in
10357  aix3*)
10358    cat <<\EOF >> "$cfgfile"
10359
10360# AIX sometimes has problems with the GCC collect2 program.  For some
10361# reason, if we set the COLLECT_NAMES environment variable, the problems
10362# vanish in a puff of smoke.
10363if test "X${COLLECT_NAMES+set}" != Xset; then
10364  COLLECT_NAMES=
10365  export COLLECT_NAMES
10366fi
10367EOF
10368    ;;
10369  esac
10370
10371  # We use sed instead of cat because bash on DJGPP gets confused if
10372  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10373  # text mode, it properly converts lines to CR/LF.  This bash problem
10374  # is reportedly fixed, but why not run on old versions too?
10375  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10376
10377  mv -f "$cfgfile" "$ofile" || \
10378    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10379  chmod +x "$ofile"
10380
10381else
10382  # If there is no Makefile yet, we rely on a make rule to execute
10383  # `config.status --recheck' to rerun these tests and create the
10384  # libtool script then.
10385  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10386  if test -f "$ltmain_in"; then
10387    test -f Makefile && make "$ltmain"
10388  fi
10389fi
10390
10391
10392ac_ext=c
10393ac_cpp='$CPP $CPPFLAGS'
10394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10396ac_compiler_gnu=$ac_cv_c_compiler_gnu
10397
10398CC="$lt_save_CC"
10399
10400
10401# Check whether --with-tags or --without-tags was given.
10402if test "${with_tags+set}" = set; then
10403  withval="$with_tags"
10404  tagnames="$withval"
10405fi;
10406
10407if test -f "$ltmain" && test -n "$tagnames"; then
10408  if test ! -f "${ofile}"; then
10409    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10410echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10411  fi
10412
10413  if test -z "$LTCC"; then
10414    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10415    if test -z "$LTCC"; then
10416      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10417echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10418    else
10419      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10420echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10421    fi
10422  fi
10423
10424  # Extract list of available tagged configurations in $ofile.
10425  # Note that this assumes the entire list is on one line.
10426  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10427
10428  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10429  for tagname in $tagnames; do
10430    IFS="$lt_save_ifs"
10431    # Check whether tagname contains only valid characters
10432    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10433    "") ;;
10434    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10435echo "$as_me: error: invalid tag name: $tagname" >&2;}
10436   { (exit 1); exit 1; }; }
10437	;;
10438    esac
10439
10440    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10441    then
10442      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10443echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10444   { (exit 1); exit 1; }; }
10445    fi
10446
10447    # Update the list of available tags.
10448    if test -n "$tagname"; then
10449      echo appending configuration tag \"$tagname\" to $ofile
10450
10451      case $tagname in
10452      CXX)
10453	if test -n "$CXX" && test "X$CXX" != "Xno"; then
10454	  ac_ext=cc
10455ac_cpp='$CXXCPP $CPPFLAGS'
10456ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10457ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10458ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10459
10460
10461
10462
10463archive_cmds_need_lc_CXX=no
10464allow_undefined_flag_CXX=
10465always_export_symbols_CXX=no
10466archive_expsym_cmds_CXX=
10467export_dynamic_flag_spec_CXX=
10468hardcode_direct_CXX=no
10469hardcode_libdir_flag_spec_CXX=
10470hardcode_libdir_flag_spec_ld_CXX=
10471hardcode_libdir_separator_CXX=
10472hardcode_minus_L_CXX=no
10473hardcode_automatic_CXX=no
10474module_cmds_CXX=
10475module_expsym_cmds_CXX=
10476link_all_deplibs_CXX=unknown
10477old_archive_cmds_CXX=$old_archive_cmds
10478no_undefined_flag_CXX=
10479whole_archive_flag_spec_CXX=
10480enable_shared_with_static_runtimes_CXX=no
10481
10482# Dependencies to place before and after the object being linked:
10483predep_objects_CXX=
10484postdep_objects_CXX=
10485predeps_CXX=
10486postdeps_CXX=
10487compiler_lib_search_path_CXX=
10488
10489# Source file extension for C++ test sources.
10490ac_ext=cc
10491
10492# Object file extension for compiled C++ test sources.
10493objext=o
10494objext_CXX=$objext
10495
10496# Code to be used in simple compile tests
10497lt_simple_compile_test_code="int some_variable = 0;\n"
10498
10499# Code to be used in simple link tests
10500lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10501
10502# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10503
10504# If no C compiler was specified, use CC.
10505LTCC=${LTCC-"$CC"}
10506
10507# Allow CC to be a program name with arguments.
10508compiler=$CC
10509
10510
10511# Allow CC to be a program name with arguments.
10512lt_save_CC=$CC
10513lt_save_LD=$LD
10514lt_save_GCC=$GCC
10515GCC=$GXX
10516lt_save_with_gnu_ld=$with_gnu_ld
10517lt_save_path_LD=$lt_cv_path_LD
10518if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10519  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10520else
10521  unset lt_cv_prog_gnu_ld
10522fi
10523if test -n "${lt_cv_path_LDCXX+set}"; then
10524  lt_cv_path_LD=$lt_cv_path_LDCXX
10525else
10526  unset lt_cv_path_LD
10527fi
10528test -z "${LDCXX+set}" || LD=$LDCXX
10529CC=${CXX-"c++"}
10530compiler=$CC
10531compiler_CXX=$CC
10532cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
10533
10534# We don't want -fno-exception wen compiling C++ code, so set the
10535# no_builtin_flag separately
10536if test "$GXX" = yes; then
10537  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10538else
10539  lt_prog_compiler_no_builtin_flag_CXX=
10540fi
10541
10542if test "$GXX" = yes; then
10543  # Set up default GNU C++ configuration
10544
10545
10546# Check whether --with-gnu-ld or --without-gnu-ld was given.
10547if test "${with_gnu_ld+set}" = set; then
10548  withval="$with_gnu_ld"
10549  test "$withval" = no || with_gnu_ld=yes
10550else
10551  with_gnu_ld=no
10552fi;
10553ac_prog=ld
10554if test "$GCC" = yes; then
10555  # Check if gcc -print-prog-name=ld gives a path.
10556  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10557echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10558  case $host in
10559  *-*-mingw*)
10560    # gcc leaves a trailing carriage return which upsets mingw
10561    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10562  *)
10563    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10564  esac
10565  case $ac_prog in
10566    # Accept absolute paths.
10567    [\\/]* | ?:[\\/]*)
10568      re_direlt='/[^/][^/]*/\.\./'
10569      # Canonicalize the pathname of ld
10570      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10571      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10572	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10573      done
10574      test -z "$LD" && LD="$ac_prog"
10575      ;;
10576  "")
10577    # If it fails, then pretend we aren't using GCC.
10578    ac_prog=ld
10579    ;;
10580  *)
10581    # If it is relative, then search for the first ld in PATH.
10582    with_gnu_ld=unknown
10583    ;;
10584  esac
10585elif test "$with_gnu_ld" = yes; then
10586  echo "$as_me:$LINENO: checking for GNU ld" >&5
10587echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10588else
10589  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10590echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10591fi
10592if test "${lt_cv_path_LD+set}" = set; then
10593  echo $ECHO_N "(cached) $ECHO_C" >&6
10594else
10595  if test -z "$LD"; then
10596  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10597  for ac_dir in $PATH; do
10598    IFS="$lt_save_ifs"
10599    test -z "$ac_dir" && ac_dir=.
10600    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10601      lt_cv_path_LD="$ac_dir/$ac_prog"
10602      # Check to see if the program is GNU ld.  I'd rather use --version,
10603      # but apparently some GNU ld's only accept -v.
10604      # Break only if it was the GNU/non-GNU ld that we prefer.
10605      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10606      *GNU* | *'with BFD'*)
10607	test "$with_gnu_ld" != no && break
10608	;;
10609      *)
10610	test "$with_gnu_ld" != yes && break
10611	;;
10612      esac
10613    fi
10614  done
10615  IFS="$lt_save_ifs"
10616else
10617  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10618fi
10619fi
10620
10621LD="$lt_cv_path_LD"
10622if test -n "$LD"; then
10623  echo "$as_me:$LINENO: result: $LD" >&5
10624echo "${ECHO_T}$LD" >&6
10625else
10626  echo "$as_me:$LINENO: result: no" >&5
10627echo "${ECHO_T}no" >&6
10628fi
10629test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10630echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10631   { (exit 1); exit 1; }; }
10632echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10633echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10634if test "${lt_cv_prog_gnu_ld+set}" = set; then
10635  echo $ECHO_N "(cached) $ECHO_C" >&6
10636else
10637  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10638case `$LD -v 2>&1 </dev/null` in
10639*GNU* | *'with BFD'*)
10640  lt_cv_prog_gnu_ld=yes
10641  ;;
10642*)
10643  lt_cv_prog_gnu_ld=no
10644  ;;
10645esac
10646fi
10647echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10648echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10649with_gnu_ld=$lt_cv_prog_gnu_ld
10650
10651
10652
10653  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10654  # archiving commands below assume that GNU ld is being used.
10655  if test "$with_gnu_ld" = yes; then
10656    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10657    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'
10658
10659    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10660    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10661
10662    # If archive_cmds runs LD, not CC, wlarc should be empty
10663    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10664    #     investigate it a little bit more. (MM)
10665    wlarc='${wl}'
10666
10667    # ancient GNU ld didn't support --whole-archive et. al.
10668    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10669	grep 'no-whole-archive' > /dev/null; then
10670      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10671    else
10672      whole_archive_flag_spec_CXX=
10673    fi
10674  else
10675    with_gnu_ld=no
10676    wlarc=
10677
10678    # A generic and very simple default shared library creation
10679    # command for GNU C++ for the case where it uses the native
10680    # linker, instead of GNU ld.  If possible, this setting should
10681    # overridden to take advantage of the native linker features on
10682    # the platform it is being used on.
10683    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10684  fi
10685
10686  # Commands to make compiler produce verbose output that lists
10687  # what "hidden" libraries, object files and flags are used when
10688  # linking a shared library.
10689  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10690
10691else
10692  GXX=no
10693  with_gnu_ld=no
10694  wlarc=
10695fi
10696
10697# PORTME: fill in a description of your system's C++ link characteristics
10698echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10699echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10700ld_shlibs_CXX=yes
10701case $host_os in
10702  aix3*)
10703    # FIXME: insert proper C++ library support
10704    ld_shlibs_CXX=no
10705    ;;
10706  aix4* | aix5*)
10707    if test "$host_cpu" = ia64; then
10708      # On IA64, the linker does run time linking by default, so we don't
10709      # have to do anything special.
10710      aix_use_runtimelinking=no
10711      exp_sym_flag='-Bexport'
10712      no_entry_flag=""
10713    else
10714      aix_use_runtimelinking=no
10715
10716      # Test if we are trying to use run time linking or normal
10717      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10718      # need to do runtime linking.
10719      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10720	for ld_flag in $LDFLAGS; do
10721	  case $ld_flag in
10722	  *-brtl*)
10723	    aix_use_runtimelinking=yes
10724	    break
10725	    ;;
10726	  esac
10727	done
10728      esac
10729
10730      exp_sym_flag='-bexport'
10731      no_entry_flag='-bnoentry'
10732    fi
10733
10734    # When large executables or shared objects are built, AIX ld can
10735    # have problems creating the table of contents.  If linking a library
10736    # or program results in "error TOC overflow" add -mminimal-toc to
10737    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10738    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10739
10740    archive_cmds_CXX=''
10741    hardcode_direct_CXX=yes
10742    hardcode_libdir_separator_CXX=':'
10743    link_all_deplibs_CXX=yes
10744
10745    if test "$GXX" = yes; then
10746      case $host_os in aix4.012|aix4.012.*)
10747      # We only want to do this on AIX 4.2 and lower, the check
10748      # below for broken collect2 doesn't work under 4.3+
10749	collect2name=`${CC} -print-prog-name=collect2`
10750	if test -f "$collect2name" && \
10751	   strings "$collect2name" | grep resolve_lib_name >/dev/null
10752	then
10753	  # We have reworked collect2
10754	  hardcode_direct_CXX=yes
10755	else
10756	  # We have old collect2
10757	  hardcode_direct_CXX=unsupported
10758	  # It fails to find uninstalled libraries when the uninstalled
10759	  # path is not listed in the libpath.  Setting hardcode_minus_L
10760	  # to unsupported forces relinking
10761	  hardcode_minus_L_CXX=yes
10762	  hardcode_libdir_flag_spec_CXX='-L$libdir'
10763	  hardcode_libdir_separator_CXX=
10764	fi
10765      esac
10766      shared_flag='-shared'
10767    else
10768      # not using gcc
10769      if test "$host_cpu" = ia64; then
10770	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10771	# chokes on -Wl,-G. The following line is correct:
10772	shared_flag='-G'
10773      else
10774	if test "$aix_use_runtimelinking" = yes; then
10775	  shared_flag='${wl}-G'
10776	else
10777	  shared_flag='${wl}-bM:SRE'
10778	fi
10779      fi
10780    fi
10781
10782    # It seems that -bexpall does not export symbols beginning with
10783    # underscore (_), so it is better to generate a list of symbols to export.
10784    always_export_symbols_CXX=yes
10785    if test "$aix_use_runtimelinking" = yes; then
10786      # Warning - without using the other runtime loading flags (-brtl),
10787      # -berok will link without error, but may produce a broken library.
10788      allow_undefined_flag_CXX='-berok'
10789      # Determine the default libpath from the value encoded in an empty executable.
10790      cat >conftest.$ac_ext <<_ACEOF
10791/* confdefs.h.  */
10792_ACEOF
10793cat confdefs.h >>conftest.$ac_ext
10794cat >>conftest.$ac_ext <<_ACEOF
10795/* end confdefs.h.  */
10796
10797int
10798main ()
10799{
10800
10801  ;
10802  return 0;
10803}
10804_ACEOF
10805rm -f conftest.$ac_objext conftest$ac_exeext
10806if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10807  (eval $ac_link) 2>conftest.er1
10808  ac_status=$?
10809  grep -v '^ *+' conftest.er1 >conftest.err
10810  rm -f conftest.er1
10811  cat conftest.err >&5
10812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813  (exit $ac_status); } &&
10814	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
10815  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10816  (eval $ac_try) 2>&5
10817  ac_status=$?
10818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10819  (exit $ac_status); }; } &&
10820	 { ac_try='test -s conftest$ac_exeext'
10821  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10822  (eval $ac_try) 2>&5
10823  ac_status=$?
10824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10825  (exit $ac_status); }; }; then
10826
10827aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10828}'`
10829# Check for a 64-bit object if we didn't find anything.
10830if 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; }
10831}'`; fi
10832else
10833  echo "$as_me: failed program was:" >&5
10834sed 's/^/| /' conftest.$ac_ext >&5
10835
10836fi
10837rm -f conftest.err conftest.$ac_objext \
10838      conftest$ac_exeext conftest.$ac_ext
10839if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10840
10841      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10842
10843      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10844     else
10845      if test "$host_cpu" = ia64; then
10846	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10847	allow_undefined_flag_CXX="-z nodefs"
10848	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
10849      else
10850	# Determine the default libpath from the value encoded in an empty executable.
10851	cat >conftest.$ac_ext <<_ACEOF
10852/* confdefs.h.  */
10853_ACEOF
10854cat confdefs.h >>conftest.$ac_ext
10855cat >>conftest.$ac_ext <<_ACEOF
10856/* end confdefs.h.  */
10857
10858int
10859main ()
10860{
10861
10862  ;
10863  return 0;
10864}
10865_ACEOF
10866rm -f conftest.$ac_objext conftest$ac_exeext
10867if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10868  (eval $ac_link) 2>conftest.er1
10869  ac_status=$?
10870  grep -v '^ *+' conftest.er1 >conftest.err
10871  rm -f conftest.er1
10872  cat conftest.err >&5
10873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874  (exit $ac_status); } &&
10875	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
10876  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10877  (eval $ac_try) 2>&5
10878  ac_status=$?
10879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10880  (exit $ac_status); }; } &&
10881	 { ac_try='test -s conftest$ac_exeext'
10882  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10883  (eval $ac_try) 2>&5
10884  ac_status=$?
10885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886  (exit $ac_status); }; }; then
10887
10888aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10889}'`
10890# Check for a 64-bit object if we didn't find anything.
10891if 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; }
10892}'`; fi
10893else
10894  echo "$as_me: failed program was:" >&5
10895sed 's/^/| /' conftest.$ac_ext >&5
10896
10897fi
10898rm -f conftest.err conftest.$ac_objext \
10899      conftest$ac_exeext conftest.$ac_ext
10900if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10901
10902	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10903	# Warning - without using the other run time loading flags,
10904	# -berok will link without error, but may produce a broken library.
10905	no_undefined_flag_CXX=' ${wl}-bernotok'
10906	allow_undefined_flag_CXX=' ${wl}-berok'
10907	# -bexpall does not export symbols beginning with underscore (_)
10908	always_export_symbols_CXX=yes
10909	# Exported symbols can be pulled into shared objects from archives
10910	whole_archive_flag_spec_CXX=' '
10911	archive_cmds_need_lc_CXX=yes
10912	# This is similar to how AIX traditionally builds it's shared libraries.
10913	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10914      fi
10915    fi
10916    ;;
10917  chorus*)
10918    case $cc_basename in
10919      *)
10920	# FIXME: insert proper C++ library support
10921	ld_shlibs_CXX=no
10922	;;
10923    esac
10924    ;;
10925
10926  cygwin* | mingw* | pw32*)
10927    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10928    # as there is no search path for DLLs.
10929    hardcode_libdir_flag_spec_CXX='-L$libdir'
10930    allow_undefined_flag_CXX=unsupported
10931    always_export_symbols_CXX=no
10932    enable_shared_with_static_runtimes_CXX=yes
10933
10934    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10935      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10936      # If the export-symbols file already is a .def file (1st line
10937      # is EXPORTS), use it as is; otherwise, prepend...
10938      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10939	cp $export_symbols $output_objdir/$soname.def;
10940      else
10941	echo EXPORTS > $output_objdir/$soname.def;
10942	cat $export_symbols >> $output_objdir/$soname.def;
10943      fi~
10944      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10945    else
10946      ld_shlibs_CXX=no
10947    fi
10948  ;;
10949
10950  darwin* | rhapsody*)
10951  if test "$GXX" = yes; then
10952    archive_cmds_need_lc_CXX=no
10953    case "$host_os" in
10954    rhapsody* | darwin1.[012])
10955      allow_undefined_flag_CXX='-undefined suppress'
10956      ;;
10957    *) # Darwin 1.3 on
10958      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10959      	allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10960      else
10961        case ${MACOSX_DEPLOYMENT_TARGET} in
10962          10.[012])
10963            allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10964            ;;
10965          10.*)
10966            allow_undefined_flag_CXX='-undefined dynamic_lookup'
10967            ;;
10968        esac
10969      fi
10970      ;;
10971    esac
10972    lt_int_apple_cc_single_mod=no
10973    output_verbose_link_cmd='echo'
10974    if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10975      lt_int_apple_cc_single_mod=yes
10976    fi
10977    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10978      archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10979    else
10980      archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10981    fi
10982    module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10983
10984    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10985    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10986      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}'
10987    else
10988      archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10989    fi
10990    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}'
10991    hardcode_direct_CXX=no
10992    hardcode_automatic_CXX=yes
10993    hardcode_shlibpath_var_CXX=unsupported
10994    whole_archive_flag_spec_CXX='-all_load $convenience'
10995    link_all_deplibs_CXX=yes
10996  else
10997    ld_shlibs_CXX=no
10998  fi
10999    ;;
11000
11001  dgux*)
11002    case $cc_basename in
11003      ec++)
11004	# FIXME: insert proper C++ library support
11005	ld_shlibs_CXX=no
11006	;;
11007      ghcx)
11008	# Green Hills C++ Compiler
11009	# FIXME: insert proper C++ library support
11010	ld_shlibs_CXX=no
11011	;;
11012      *)
11013	# FIXME: insert proper C++ library support
11014	ld_shlibs_CXX=no
11015	;;
11016    esac
11017    ;;
11018  freebsd12*)
11019    # C++ shared libraries reported to be fairly broken before switch to ELF
11020    ld_shlibs_CXX=no
11021    ;;
11022  freebsd-elf*)
11023    archive_cmds_need_lc_CXX=no
11024    ;;
11025  freebsd* | kfreebsd*-gnu)
11026    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11027    # conventions
11028    ld_shlibs_CXX=yes
11029    ;;
11030  gnu*)
11031    ;;
11032  hpux9*)
11033    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11034    hardcode_libdir_separator_CXX=:
11035    export_dynamic_flag_spec_CXX='${wl}-E'
11036    hardcode_direct_CXX=yes
11037    hardcode_minus_L_CXX=yes # Not in the search PATH,
11038				# but as the default
11039				# location of the library.
11040
11041    case $cc_basename in
11042    CC)
11043      # FIXME: insert proper C++ library support
11044      ld_shlibs_CXX=no
11045      ;;
11046    aCC)
11047      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'
11048      # Commands to make compiler produce verbose output that lists
11049      # what "hidden" libraries, object files and flags are used when
11050      # linking a shared library.
11051      #
11052      # There doesn't appear to be a way to prevent this compiler from
11053      # explicitly linking system object files so we need to strip them
11054      # from the output so that they don't get included in the library
11055      # dependencies.
11056      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'
11057      ;;
11058    *)
11059      if test "$GXX" = yes; then
11060        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'
11061      else
11062        # FIXME: insert proper C++ library support
11063        ld_shlibs_CXX=no
11064      fi
11065      ;;
11066    esac
11067    ;;
11068  hpux10*|hpux11*)
11069    if test $with_gnu_ld = no; then
11070      case "$host_cpu" in
11071      hppa*64*)
11072	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11073	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11074	hardcode_libdir_separator_CXX=:
11075        ;;
11076      ia64*)
11077	hardcode_libdir_flag_spec_CXX='-L$libdir'
11078        ;;
11079      *)
11080	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11081	hardcode_libdir_separator_CXX=:
11082	export_dynamic_flag_spec_CXX='${wl}-E'
11083        ;;
11084      esac
11085    fi
11086    case "$host_cpu" in
11087    hppa*64*)
11088      hardcode_direct_CXX=no
11089      hardcode_shlibpath_var_CXX=no
11090      ;;
11091    ia64*)
11092      hardcode_direct_CXX=no
11093      hardcode_shlibpath_var_CXX=no
11094      hardcode_minus_L_CXX=yes # Not in the search PATH,
11095					      # but as the default
11096					      # location of the library.
11097      ;;
11098    *)
11099      hardcode_direct_CXX=yes
11100      hardcode_minus_L_CXX=yes # Not in the search PATH,
11101					      # but as the default
11102					      # location of the library.
11103      ;;
11104    esac
11105
11106    case $cc_basename in
11107      CC)
11108	# FIXME: insert proper C++ library support
11109	ld_shlibs_CXX=no
11110	;;
11111      aCC)
11112	case "$host_cpu" in
11113	hppa*64*|ia64*)
11114	  archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11115	  ;;
11116	*)
11117	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11118	  ;;
11119	esac
11120	# Commands to make compiler produce verbose output that lists
11121	# what "hidden" libraries, object files and flags are used when
11122	# linking a shared library.
11123	#
11124	# There doesn't appear to be a way to prevent this compiler from
11125	# explicitly linking system object files so we need to strip them
11126	# from the output so that they don't get included in the library
11127	# dependencies.
11128	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'
11129	;;
11130      *)
11131	if test "$GXX" = yes; then
11132	  if test $with_gnu_ld = no; then
11133	    case "$host_cpu" in
11134	    ia64*|hppa*64*)
11135	      archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11136	      ;;
11137	    *)
11138	      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'
11139	      ;;
11140	    esac
11141	  fi
11142	else
11143	  # FIXME: insert proper C++ library support
11144	  ld_shlibs_CXX=no
11145	fi
11146	;;
11147    esac
11148    ;;
11149  irix5* | irix6*)
11150    case $cc_basename in
11151      CC)
11152	# SGI C++
11153	archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
11154
11155	# Archives containing C++ object files must be created using
11156	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11157	# necessary to make sure instantiated templates are included
11158	# in the archive.
11159	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11160	;;
11161      *)
11162	if test "$GXX" = yes; then
11163	  if test "$with_gnu_ld" = no; then
11164	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
11165	  else
11166	    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'
11167	  fi
11168	fi
11169	link_all_deplibs_CXX=yes
11170	;;
11171    esac
11172    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11173    hardcode_libdir_separator_CXX=:
11174    ;;
11175  linux*)
11176    case $cc_basename in
11177      KCC)
11178	# Kuck and Associates, Inc. (KAI) C++ Compiler
11179
11180	# KCC will only create a shared library if the output file
11181	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11182	# to its proper name (with version) after linking.
11183	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'
11184	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'
11185	# Commands to make compiler produce verbose output that lists
11186	# what "hidden" libraries, object files and flags are used when
11187	# linking a shared library.
11188	#
11189	# There doesn't appear to be a way to prevent this compiler from
11190	# explicitly linking system object files so we need to strip them
11191	# from the output so that they don't get included in the library
11192	# dependencies.
11193	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'
11194
11195	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11196	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11197
11198	# Archives containing C++ object files must be created using
11199	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11200	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11201	;;
11202      icpc)
11203	# Intel C++
11204	with_gnu_ld=yes
11205	archive_cmds_need_lc_CXX=no
11206	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11207	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'
11208	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11209	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11210	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11211	;;
11212      cxx)
11213	# Compaq C++
11214	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11215	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'
11216
11217	runpath_var=LD_RUN_PATH
11218	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11219	hardcode_libdir_separator_CXX=:
11220
11221	# Commands to make compiler produce verbose output that lists
11222	# what "hidden" libraries, object files and flags are used when
11223	# linking a shared library.
11224	#
11225	# There doesn't appear to be a way to prevent this compiler from
11226	# explicitly linking system object files so we need to strip them
11227	# from the output so that they don't get included in the library
11228	# dependencies.
11229	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'
11230	;;
11231    esac
11232    ;;
11233  lynxos*)
11234    # FIXME: insert proper C++ library support
11235    ld_shlibs_CXX=no
11236    ;;
11237  m88k*)
11238    # FIXME: insert proper C++ library support
11239    ld_shlibs_CXX=no
11240    ;;
11241  mvs*)
11242    case $cc_basename in
11243      cxx)
11244	# FIXME: insert proper C++ library support
11245	ld_shlibs_CXX=no
11246	;;
11247      *)
11248	# FIXME: insert proper C++ library support
11249	ld_shlibs_CXX=no
11250	;;
11251    esac
11252    ;;
11253  netbsd* | knetbsd*-gnu)
11254    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11255      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11256      wlarc=
11257      hardcode_libdir_flag_spec_CXX='-R$libdir'
11258      hardcode_direct_CXX=yes
11259      hardcode_shlibpath_var_CXX=no
11260    fi
11261    # Workaround some broken pre-1.5 toolchains
11262    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11263    ;;
11264  osf3*)
11265    case $cc_basename in
11266      KCC)
11267	# Kuck and Associates, Inc. (KAI) C++ Compiler
11268
11269	# KCC will only create a shared library if the output file
11270	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11271	# to its proper name (with version) after linking.
11272	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'
11273
11274	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11275	hardcode_libdir_separator_CXX=:
11276
11277	# Archives containing C++ object files must be created using
11278	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11279	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11280
11281	;;
11282      RCC)
11283	# Rational C++ 2.4.1
11284	# FIXME: insert proper C++ library support
11285	ld_shlibs_CXX=no
11286	;;
11287      cxx)
11288	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11289	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
11290
11291	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11292	hardcode_libdir_separator_CXX=:
11293
11294	# Commands to make compiler produce verbose output that lists
11295	# what "hidden" libraries, object files and flags are used when
11296	# linking a shared library.
11297	#
11298	# There doesn't appear to be a way to prevent this compiler from
11299	# explicitly linking system object files so we need to strip them
11300	# from the output so that they don't get included in the library
11301	# dependencies.
11302	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'
11303	;;
11304      *)
11305	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11306	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11307	  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
11308
11309	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11310	  hardcode_libdir_separator_CXX=:
11311
11312	  # Commands to make compiler produce verbose output that lists
11313	  # what "hidden" libraries, object files and flags are used when
11314	  # linking a shared library.
11315	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11316
11317	else
11318	  # FIXME: insert proper C++ library support
11319	  ld_shlibs_CXX=no
11320	fi
11321	;;
11322    esac
11323    ;;
11324  osf4* | osf5*)
11325    case $cc_basename in
11326      KCC)
11327	# Kuck and Associates, Inc. (KAI) C++ Compiler
11328
11329	# KCC will only create a shared library if the output file
11330	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11331	# to its proper name (with version) after linking.
11332	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'
11333
11334	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11335	hardcode_libdir_separator_CXX=:
11336
11337	# Archives containing C++ object files must be created using
11338	# the KAI C++ compiler.
11339	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11340	;;
11341      RCC)
11342	# Rational C++ 2.4.1
11343	# FIXME: insert proper C++ library support
11344	ld_shlibs_CXX=no
11345	;;
11346      cxx)
11347	allow_undefined_flag_CXX=' -expect_unresolved \*'
11348	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
11349	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11350	  echo "-hidden">> $lib.exp~
11351	  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version	$verstring` -update_registry $objdir/so_locations -o $lib~
11352	  $rm $lib.exp'
11353
11354	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11355	hardcode_libdir_separator_CXX=:
11356
11357	# Commands to make compiler produce verbose output that lists
11358	# what "hidden" libraries, object files and flags are used when
11359	# linking a shared library.
11360	#
11361	# There doesn't appear to be a way to prevent this compiler from
11362	# explicitly linking system object files so we need to strip them
11363	# from the output so that they don't get included in the library
11364	# dependencies.
11365	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'
11366	;;
11367      *)
11368	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11369	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11370	 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
11371
11372	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11373	  hardcode_libdir_separator_CXX=:
11374
11375	  # Commands to make compiler produce verbose output that lists
11376	  # what "hidden" libraries, object files and flags are used when
11377	  # linking a shared library.
11378	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11379
11380	else
11381	  # FIXME: insert proper C++ library support
11382	  ld_shlibs_CXX=no
11383	fi
11384	;;
11385    esac
11386    ;;
11387  psos*)
11388    # FIXME: insert proper C++ library support
11389    ld_shlibs_CXX=no
11390    ;;
11391  sco*)
11392    archive_cmds_need_lc_CXX=no
11393    case $cc_basename in
11394      CC)
11395	# FIXME: insert proper C++ library support
11396	ld_shlibs_CXX=no
11397	;;
11398      *)
11399	# FIXME: insert proper C++ library support
11400	ld_shlibs_CXX=no
11401	;;
11402    esac
11403    ;;
11404  sunos4*)
11405    case $cc_basename in
11406      CC)
11407	# Sun C++ 4.x
11408	# FIXME: insert proper C++ library support
11409	ld_shlibs_CXX=no
11410	;;
11411      lcc)
11412	# Lucid
11413	# FIXME: insert proper C++ library support
11414	ld_shlibs_CXX=no
11415	;;
11416      *)
11417	# FIXME: insert proper C++ library support
11418	ld_shlibs_CXX=no
11419	;;
11420    esac
11421    ;;
11422  solaris*)
11423    case $cc_basename in
11424      CC)
11425	# Sun C++ 4.2, 5.x and Centerline C++
11426	no_undefined_flag_CXX=' -zdefs'
11427	archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11428	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11429	$CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11430
11431	hardcode_libdir_flag_spec_CXX='-R$libdir'
11432	hardcode_shlibpath_var_CXX=no
11433	case $host_os in
11434	  solaris2.0-5 | solaris2.0-5.*) ;;
11435	  *)
11436	    # The C++ compiler is used as linker so we must use $wl
11437	    # flag to pass the commands to the underlying system
11438	    # linker.
11439	    # Supported since Solaris 2.6 (maybe 2.5.1?)
11440	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11441	    ;;
11442	esac
11443	link_all_deplibs_CXX=yes
11444
11445	# Commands to make compiler produce verbose output that lists
11446	# what "hidden" libraries, object files and flags are used when
11447	# linking a shared library.
11448	#
11449	# There doesn't appear to be a way to prevent this compiler from
11450	# explicitly linking system object files so we need to strip them
11451	# from the output so that they don't get included in the library
11452	# dependencies.
11453	output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11454
11455	# Archives containing C++ object files must be created using
11456	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
11457	# necessary to make sure instantiated templates are included
11458	# in the archive.
11459	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11460	;;
11461      gcx)
11462	# Green Hills C++ Compiler
11463	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11464
11465	# The C++ compiler must be used to create the archive.
11466	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11467	;;
11468      *)
11469	# GNU C++ compiler with Solaris linker
11470	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11471	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11472	  if $CC --version | grep -v '^2\.7' > /dev/null; then
11473	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11474	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11475		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11476
11477	    # Commands to make compiler produce verbose output that lists
11478	    # what "hidden" libraries, object files and flags are used when
11479	    # linking a shared library.
11480	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11481	  else
11482	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
11483	    # platform.
11484	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11485	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11486		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11487
11488	    # Commands to make compiler produce verbose output that lists
11489	    # what "hidden" libraries, object files and flags are used when
11490	    # linking a shared library.
11491	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11492	  fi
11493
11494	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11495	fi
11496	;;
11497    esac
11498    ;;
11499  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11500    archive_cmds_need_lc_CXX=no
11501    ;;
11502  tandem*)
11503    case $cc_basename in
11504      NCC)
11505	# NonStop-UX NCC 3.20
11506	# FIXME: insert proper C++ library support
11507	ld_shlibs_CXX=no
11508	;;
11509      *)
11510	# FIXME: insert proper C++ library support
11511	ld_shlibs_CXX=no
11512	;;
11513    esac
11514    ;;
11515  vxworks*)
11516    # FIXME: insert proper C++ library support
11517    ld_shlibs_CXX=no
11518    ;;
11519  *)
11520    # FIXME: insert proper C++ library support
11521    ld_shlibs_CXX=no
11522    ;;
11523esac
11524echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11525echo "${ECHO_T}$ld_shlibs_CXX" >&6
11526test "$ld_shlibs_CXX" = no && can_build_shared=no
11527
11528GCC_CXX="$GXX"
11529LD_CXX="$LD"
11530
11531
11532cat > conftest.$ac_ext <<EOF
11533class Foo
11534{
11535public:
11536  Foo (void) { a = 0; }
11537private:
11538  int a;
11539};
11540EOF
11541
11542if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11543  (eval $ac_compile) 2>&5
11544  ac_status=$?
11545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546  (exit $ac_status); }; then
11547  # Parse the compiler output and extract the necessary
11548  # objects, libraries and library flags.
11549
11550  # Sentinel used to keep track of whether or not we are before
11551  # the conftest object file.
11552  pre_test_object_deps_done=no
11553
11554  # The `*' in the case matches for architectures that use `case' in
11555  # $output_verbose_cmd can trigger glob expansion during the loop
11556  # eval without this substitution.
11557  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
11558
11559  for p in `eval $output_verbose_link_cmd`; do
11560    case $p in
11561
11562    -L* | -R* | -l*)
11563       # Some compilers place space between "-{L,R}" and the path.
11564       # Remove the space.
11565       if test $p = "-L" \
11566	  || test $p = "-R"; then
11567	 prev=$p
11568	 continue
11569       else
11570	 prev=
11571       fi
11572
11573       if test "$pre_test_object_deps_done" = no; then
11574	 case $p in
11575	 -L* | -R*)
11576	   # Internal compiler library paths should come after those
11577	   # provided the user.  The postdeps already come after the
11578	   # user supplied libs so there is no need to process them.
11579	   if test -z "$compiler_lib_search_path_CXX"; then
11580	     compiler_lib_search_path_CXX="${prev}${p}"
11581	   else
11582	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11583	   fi
11584	   ;;
11585	 # The "-l" case would never come before the object being
11586	 # linked, so don't bother handling this case.
11587	 esac
11588       else
11589	 if test -z "$postdeps_CXX"; then
11590	   postdeps_CXX="${prev}${p}"
11591	 else
11592	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11593	 fi
11594       fi
11595       ;;
11596
11597    *.$objext)
11598       # This assumes that the test object file only shows up
11599       # once in the compiler output.
11600       if test "$p" = "conftest.$objext"; then
11601	 pre_test_object_deps_done=yes
11602	 continue
11603       fi
11604
11605       if test "$pre_test_object_deps_done" = no; then
11606	 if test -z "$predep_objects_CXX"; then
11607	   predep_objects_CXX="$p"
11608	 else
11609	   predep_objects_CXX="$predep_objects_CXX $p"
11610	 fi
11611       else
11612	 if test -z "$postdep_objects_CXX"; then
11613	   postdep_objects_CXX="$p"
11614	 else
11615	   postdep_objects_CXX="$postdep_objects_CXX $p"
11616	 fi
11617       fi
11618       ;;
11619
11620    *) ;; # Ignore the rest.
11621
11622    esac
11623  done
11624
11625  # Clean up.
11626  rm -f a.out a.exe
11627else
11628  echo "libtool.m4: error: problem compiling CXX test program"
11629fi
11630
11631$rm -f confest.$objext
11632
11633case " $postdeps_CXX " in
11634*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11635esac
11636
11637lt_prog_compiler_wl_CXX=
11638lt_prog_compiler_pic_CXX=
11639lt_prog_compiler_static_CXX=
11640
11641echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11642echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11643
11644  # C++ specific cases for pic, static, wl, etc.
11645  if test "$GXX" = yes; then
11646    lt_prog_compiler_wl_CXX='-Wl,'
11647    lt_prog_compiler_static_CXX='-static'
11648
11649    case $host_os in
11650    aix*)
11651      # All AIX code is PIC.
11652      if test "$host_cpu" = ia64; then
11653	# AIX 5 now supports IA64 processor
11654	lt_prog_compiler_static_CXX='-Bstatic'
11655      fi
11656      ;;
11657    amigaos*)
11658      # FIXME: we need at least 68020 code to build shared libraries, but
11659      # adding the `-m68020' flag to GCC prevents building anything better,
11660      # like `-m68040'.
11661      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11662      ;;
11663    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11664      # PIC is the default for these OSes.
11665      ;;
11666    mingw* | os2* | pw32*)
11667      # This hack is so that the source file can tell whether it is being
11668      # built for inclusion in a dll (and should export symbols for example).
11669      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11670      ;;
11671    darwin* | rhapsody*)
11672      # PIC is the default on this platform
11673      # Common symbols not allowed in MH_DYLIB files
11674      lt_prog_compiler_pic_CXX='-fno-common'
11675      ;;
11676    *djgpp*)
11677      # DJGPP does not support shared libraries at all
11678      lt_prog_compiler_pic_CXX=
11679      ;;
11680    sysv4*MP*)
11681      if test -d /usr/nec; then
11682	lt_prog_compiler_pic_CXX=-Kconform_pic
11683      fi
11684      ;;
11685    hpux*)
11686      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11687      # not for PA HP-UX.
11688      case "$host_cpu" in
11689      hppa*64*|ia64*)
11690	;;
11691      *)
11692	lt_prog_compiler_pic_CXX='-fPIC'
11693	;;
11694      esac
11695      ;;
11696    *)
11697      lt_prog_compiler_pic_CXX='-fPIC'
11698      ;;
11699    esac
11700  else
11701    case $host_os in
11702      aix4* | aix5*)
11703	# All AIX code is PIC.
11704	if test "$host_cpu" = ia64; then
11705	  # AIX 5 now supports IA64 processor
11706	  lt_prog_compiler_static_CXX='-Bstatic'
11707	else
11708	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11709	fi
11710	;;
11711      chorus*)
11712	case $cc_basename in
11713	cxch68)
11714	  # Green Hills C++ Compiler
11715	  # _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"
11716	  ;;
11717	esac
11718	;;
11719      dgux*)
11720	case $cc_basename in
11721	  ec++)
11722	    lt_prog_compiler_pic_CXX='-KPIC'
11723	    ;;
11724	  ghcx)
11725	    # Green Hills C++ Compiler
11726	    lt_prog_compiler_pic_CXX='-pic'
11727	    ;;
11728	  *)
11729	    ;;
11730	esac
11731	;;
11732      freebsd* | kfreebsd*-gnu)
11733	# FreeBSD uses GNU C++
11734	;;
11735      hpux9* | hpux10* | hpux11*)
11736	case $cc_basename in
11737	  CC)
11738	    lt_prog_compiler_wl_CXX='-Wl,'
11739	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11740	    if test "$host_cpu" != ia64; then
11741	      lt_prog_compiler_pic_CXX='+Z'
11742	    fi
11743	    ;;
11744	  aCC)
11745	    lt_prog_compiler_wl_CXX='-Wl,'
11746	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11747	    case "$host_cpu" in
11748	    hppa*64*|ia64*)
11749	      # +Z the default
11750	      ;;
11751	    *)
11752	      lt_prog_compiler_pic_CXX='+Z'
11753	      ;;
11754	    esac
11755	    ;;
11756	  *)
11757	    ;;
11758	esac
11759	;;
11760      irix5* | irix6* | nonstopux*)
11761	case $cc_basename in
11762	  CC)
11763	    lt_prog_compiler_wl_CXX='-Wl,'
11764	    lt_prog_compiler_static_CXX='-non_shared'
11765	    # CC pic flag -KPIC is the default.
11766	    ;;
11767	  *)
11768	    ;;
11769	esac
11770	;;
11771      linux*)
11772	case $cc_basename in
11773	  KCC)
11774	    # KAI C++ Compiler
11775	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11776	    lt_prog_compiler_pic_CXX='-fPIC'
11777	    ;;
11778	  icpc)
11779	    # Intel C++
11780	    lt_prog_compiler_wl_CXX='-Wl,'
11781	    lt_prog_compiler_pic_CXX='-KPIC'
11782	    lt_prog_compiler_static_CXX='-static'
11783	    ;;
11784	  cxx)
11785	    # Compaq C++
11786	    # Make sure the PIC flag is empty.  It appears that all Alpha
11787	    # Linux and Compaq Tru64 Unix objects are PIC.
11788	    lt_prog_compiler_pic_CXX=
11789	    lt_prog_compiler_static_CXX='-non_shared'
11790	    ;;
11791	  *)
11792	    ;;
11793	esac
11794	;;
11795      lynxos*)
11796	;;
11797      m88k*)
11798	;;
11799      mvs*)
11800	case $cc_basename in
11801	  cxx)
11802	    lt_prog_compiler_pic_CXX='-W c,exportall'
11803	    ;;
11804	  *)
11805	    ;;
11806	esac
11807	;;
11808      netbsd* | knetbsd*-gnu)
11809	;;
11810      osf3* | osf4* | osf5*)
11811	case $cc_basename in
11812	  KCC)
11813	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11814	    ;;
11815	  RCC)
11816	    # Rational C++ 2.4.1
11817	    lt_prog_compiler_pic_CXX='-pic'
11818	    ;;
11819	  cxx)
11820	    # Digital/Compaq C++
11821	    lt_prog_compiler_wl_CXX='-Wl,'
11822	    # Make sure the PIC flag is empty.  It appears that all Alpha
11823	    # Linux and Compaq Tru64 Unix objects are PIC.
11824	    lt_prog_compiler_pic_CXX=
11825	    lt_prog_compiler_static_CXX='-non_shared'
11826	    ;;
11827	  *)
11828	    ;;
11829	esac
11830	;;
11831      psos*)
11832	;;
11833      sco*)
11834	case $cc_basename in
11835	  CC)
11836	    lt_prog_compiler_pic_CXX='-fPIC'
11837	    ;;
11838	  *)
11839	    ;;
11840	esac
11841	;;
11842      solaris*)
11843	case $cc_basename in
11844	  CC)
11845	    # Sun C++ 4.2, 5.x and Centerline C++
11846	    lt_prog_compiler_pic_CXX='-KPIC'
11847	    lt_prog_compiler_static_CXX='-Bstatic'
11848	    lt_prog_compiler_wl_CXX='-Qoption ld '
11849	    ;;
11850	  gcx)
11851	    # Green Hills C++ Compiler
11852	    lt_prog_compiler_pic_CXX='-PIC'
11853	    ;;
11854	  *)
11855	    ;;
11856	esac
11857	;;
11858      sunos4*)
11859	case $cc_basename in
11860	  CC)
11861	    # Sun C++ 4.x
11862	    lt_prog_compiler_pic_CXX='-pic'
11863	    lt_prog_compiler_static_CXX='-Bstatic'
11864	    ;;
11865	  lcc)
11866	    # Lucid
11867	    lt_prog_compiler_pic_CXX='-pic'
11868	    ;;
11869	  *)
11870	    ;;
11871	esac
11872	;;
11873      tandem*)
11874	case $cc_basename in
11875	  NCC)
11876	    # NonStop-UX NCC 3.20
11877	    lt_prog_compiler_pic_CXX='-KPIC'
11878	    ;;
11879	  *)
11880	    ;;
11881	esac
11882	;;
11883      unixware*)
11884	;;
11885      vxworks*)
11886	;;
11887      *)
11888	lt_prog_compiler_can_build_shared_CXX=no
11889	;;
11890    esac
11891  fi
11892
11893echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11894echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11895
11896#
11897# Check to make sure the PIC flag actually works.
11898#
11899if test -n "$lt_prog_compiler_pic_CXX"; then
11900
11901echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11902echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11903if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11904  echo $ECHO_N "(cached) $ECHO_C" >&6
11905else
11906  lt_prog_compiler_pic_works_CXX=no
11907  ac_outfile=conftest.$ac_objext
11908   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11909   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11910   # Insert the option either (1) after the last *FLAGS variable, or
11911   # (2) before a word containing "conftest.", or (3) at the end.
11912   # Note that $ac_compile itself does not contain backslashes and begins
11913   # with a dollar sign (not a hyphen), so the echo should work correctly.
11914   # The option is referenced via a variable to avoid confusing sed.
11915   lt_compile=`echo "$ac_compile" | $SED \
11916   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11917   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11918   -e 's:$: $lt_compiler_flag:'`
11919   (eval echo "\"\$as_me:11919: $lt_compile\"" >&5)
11920   (eval "$lt_compile" 2>conftest.err)
11921   ac_status=$?
11922   cat conftest.err >&5
11923   echo "$as_me:11923: \$? = $ac_status" >&5
11924   if (exit $ac_status) && test -s "$ac_outfile"; then
11925     # The compiler can only warn and ignore the option if not recognized
11926     # So say no if there are warnings
11927     if test ! -s conftest.err; then
11928       lt_prog_compiler_pic_works_CXX=yes
11929     fi
11930   fi
11931   $rm conftest*
11932
11933fi
11934echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11935echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11936
11937if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11938    case $lt_prog_compiler_pic_CXX in
11939     "" | " "*) ;;
11940     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11941     esac
11942else
11943    lt_prog_compiler_pic_CXX=
11944     lt_prog_compiler_can_build_shared_CXX=no
11945fi
11946
11947fi
11948case "$host_os" in
11949  # For platforms which do not support PIC, -DPIC is meaningless:
11950  *djgpp*)
11951    lt_prog_compiler_pic_CXX=
11952    ;;
11953  *)
11954    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11955    ;;
11956esac
11957
11958echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11959echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11960if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11961  echo $ECHO_N "(cached) $ECHO_C" >&6
11962else
11963  lt_cv_prog_compiler_c_o_CXX=no
11964   $rm -r conftest 2>/dev/null
11965   mkdir conftest
11966   cd conftest
11967   mkdir out
11968   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11969
11970   lt_compiler_flag="-o out/conftest2.$ac_objext"
11971   # Insert the option either (1) after the last *FLAGS variable, or
11972   # (2) before a word containing "conftest.", or (3) at the end.
11973   # Note that $ac_compile itself does not contain backslashes and begins
11974   # with a dollar sign (not a hyphen), so the echo should work correctly.
11975   lt_compile=`echo "$ac_compile" | $SED \
11976   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11977   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11978   -e 's:$: $lt_compiler_flag:'`
11979   (eval echo "\"\$as_me:11979: $lt_compile\"" >&5)
11980   (eval "$lt_compile" 2>out/conftest.err)
11981   ac_status=$?
11982   cat out/conftest.err >&5
11983   echo "$as_me:11983: \$? = $ac_status" >&5
11984   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11985   then
11986     # The compiler can only warn and ignore the option if not recognized
11987     # So say no if there are warnings
11988     if test ! -s out/conftest.err; then
11989       lt_cv_prog_compiler_c_o_CXX=yes
11990     fi
11991   fi
11992   chmod u+w .
11993   $rm conftest*
11994   # SGI C++ compiler will create directory out/ii_files/ for
11995   # template instantiation
11996   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11997   $rm out/* && rmdir out
11998   cd ..
11999   rmdir conftest
12000   $rm conftest*
12001
12002fi
12003echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12004echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
12005
12006
12007hard_links="nottested"
12008if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12009  # do not overwrite the value of need_locks provided by the user
12010  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12011echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12012  hard_links=yes
12013  $rm conftest*
12014  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12015  touch conftest.a
12016  ln conftest.a conftest.b 2>&5 || hard_links=no
12017  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12018  echo "$as_me:$LINENO: result: $hard_links" >&5
12019echo "${ECHO_T}$hard_links" >&6
12020  if test "$hard_links" = no; then
12021    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12022echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12023    need_locks=warn
12024  fi
12025else
12026  need_locks=no
12027fi
12028
12029echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12030echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12031
12032  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12033  case $host_os in
12034  aix4* | aix5*)
12035    # If we're using GNU nm, then we don't want the "-C" option.
12036    # -C means demangle to AIX nm, but means don't demangle with GNU nm
12037    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12038      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'
12039    else
12040      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'
12041    fi
12042    ;;
12043  pw32*)
12044    export_symbols_cmds_CXX="$ltdll_cmds"
12045  ;;
12046  cygwin* | mingw*)
12047    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12048  ;;
12049  linux*)
12050    link_all_deplibs_CXX=no
12051  ;;
12052  *)
12053    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12054  ;;
12055  esac
12056
12057echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12058echo "${ECHO_T}$ld_shlibs_CXX" >&6
12059test "$ld_shlibs_CXX" = no && can_build_shared=no
12060
12061variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12062if test "$GCC" = yes; then
12063  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12064fi
12065
12066#
12067# Do we need to explicitly link libc?
12068#
12069case "x$archive_cmds_need_lc_CXX" in
12070x|xyes)
12071  # Assume -lc should be added
12072  archive_cmds_need_lc_CXX=yes
12073
12074  if test "$enable_shared" = yes && test "$GCC" = yes; then
12075    case $archive_cmds_CXX in
12076    *'~'*)
12077      # FIXME: we may have to deal with multi-command sequences.
12078      ;;
12079    '$CC '*)
12080      # Test whether the compiler implicitly links with -lc since on some
12081      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12082      # to ld, don't add -lc before -lgcc.
12083      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12084echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12085      $rm conftest*
12086      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12087
12088      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12089  (eval $ac_compile) 2>&5
12090  ac_status=$?
12091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12092  (exit $ac_status); } 2>conftest.err; then
12093        soname=conftest
12094        lib=conftest
12095        libobjs=conftest.$ac_objext
12096        deplibs=
12097        wl=$lt_prog_compiler_wl_CXX
12098        compiler_flags=-v
12099        linker_flags=-v
12100        verstring=
12101        output_objdir=.
12102        libname=conftest
12103        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12104        allow_undefined_flag_CXX=
12105        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12106  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12107  ac_status=$?
12108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109  (exit $ac_status); }
12110        then
12111	  archive_cmds_need_lc_CXX=no
12112        else
12113	  archive_cmds_need_lc_CXX=yes
12114        fi
12115        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12116      else
12117        cat conftest.err 1>&5
12118      fi
12119      $rm conftest*
12120      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12121echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12122      ;;
12123    esac
12124  fi
12125  ;;
12126esac
12127
12128echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12129echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12130library_names_spec=
12131libname_spec='lib$name'
12132soname_spec=
12133shrext_cmds=".so"
12134postinstall_cmds=
12135postuninstall_cmds=
12136finish_cmds=
12137finish_eval=
12138shlibpath_var=
12139shlibpath_overrides_runpath=unknown
12140version_type=none
12141dynamic_linker="$host_os ld.so"
12142sys_lib_dlsearch_path_spec="/lib /usr/lib"
12143if test "$GCC" = yes; then
12144  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12145  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12146    # if the path contains ";" then we assume it to be the separator
12147    # otherwise default to the standard path separator (i.e. ":") - it is
12148    # assumed that no part of a normal pathname contains ";" but that should
12149    # okay in the real world where ";" in dirpaths is itself problematic.
12150    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12151  else
12152    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12153  fi
12154else
12155  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12156fi
12157need_lib_prefix=unknown
12158hardcode_into_libs=no
12159
12160# when you set need_version to no, make sure it does not cause -set_version
12161# flags to be left without arguments
12162need_version=unknown
12163
12164case $host_os in
12165aix3*)
12166  version_type=linux
12167  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12168  shlibpath_var=LIBPATH
12169
12170  # AIX 3 has no versioning support, so we append a major version to the name.
12171  soname_spec='${libname}${release}${shared_ext}$major'
12172  ;;
12173
12174aix4* | aix5*)
12175  version_type=linux
12176  need_lib_prefix=no
12177  need_version=no
12178  hardcode_into_libs=yes
12179  if test "$host_cpu" = ia64; then
12180    # AIX 5 supports IA64
12181    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12182    shlibpath_var=LD_LIBRARY_PATH
12183  else
12184    # With GCC up to 2.95.x, collect2 would create an import file
12185    # for dependence libraries.  The import file would start with
12186    # the line `#! .'.  This would cause the generated library to
12187    # depend on `.', always an invalid library.  This was fixed in
12188    # development snapshots of GCC prior to 3.0.
12189    case $host_os in
12190      aix4 | aix4.[01] | aix4.[01].*)
12191      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12192	   echo ' yes '
12193	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12194	:
12195      else
12196	can_build_shared=no
12197      fi
12198      ;;
12199    esac
12200    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12201    # soname into executable. Probably we can add versioning support to
12202    # collect2, so additional links can be useful in future.
12203    if test "$aix_use_runtimelinking" = yes; then
12204      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12205      # instead of lib<name>.a to let people know that these are not
12206      # typical AIX shared libraries.
12207      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12208    else
12209      # We preserve .a as extension for shared libraries through AIX4.2
12210      # and later when we are not doing run time linking.
12211      library_names_spec='${libname}${release}.a $libname.a'
12212      soname_spec='${libname}${release}${shared_ext}$major'
12213    fi
12214    shlibpath_var=LIBPATH
12215  fi
12216  ;;
12217
12218amigaos*)
12219  library_names_spec='$libname.ixlibrary $libname.a'
12220  # Create ${libname}_ixlibrary.a entries in /sys/libs.
12221  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'
12222  ;;
12223
12224beos*)
12225  library_names_spec='${libname}${shared_ext}'
12226  dynamic_linker="$host_os ld.so"
12227  shlibpath_var=LIBRARY_PATH
12228  ;;
12229
12230bsdi4*)
12231  version_type=linux
12232  need_version=no
12233  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12234  soname_spec='${libname}${release}${shared_ext}$major'
12235  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12236  shlibpath_var=LD_LIBRARY_PATH
12237  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12238  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12239  # the default ld.so.conf also contains /usr/contrib/lib and
12240  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12241  # libtool to hard-code these into programs
12242  ;;
12243
12244cygwin* | mingw* | pw32*)
12245  version_type=windows
12246  shrext_cmds=".dll"
12247  need_version=no
12248  need_lib_prefix=no
12249
12250  case $GCC,$host_os in
12251  yes,cygwin* | yes,mingw* | yes,pw32*)
12252    library_names_spec='$libname.dll.a'
12253    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12254    postinstall_cmds='base_file=`basename \${file}`~
12255      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12256      dldir=$destdir/`dirname \$dlpath`~
12257      test -d \$dldir || mkdir -p \$dldir~
12258      $install_prog $dir/$dlname \$dldir/$dlname'
12259    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12260      dlpath=$dir/\$dldll~
12261       $rm \$dlpath'
12262    shlibpath_overrides_runpath=yes
12263
12264    case $host_os in
12265    cygwin*)
12266      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12267      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12268      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12269      ;;
12270    mingw*)
12271      # MinGW DLLs use traditional 'lib' prefix
12272      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12273      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12274      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12275        # It is most probably a Windows format PATH printed by
12276        # mingw gcc, but we are running on Cygwin. Gcc prints its search
12277        # path with ; separators, and with drive letters. We can handle the
12278        # drive letters (cygwin fileutils understands them), so leave them,
12279        # especially as we might pass files found there to a mingw objdump,
12280        # which wouldn't understand a cygwinified path. Ahh.
12281        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12282      else
12283        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12284      fi
12285      ;;
12286    pw32*)
12287      # pw32 DLLs use 'pw' prefix rather than 'lib'
12288      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
12289      ;;
12290    esac
12291    ;;
12292
12293  *)
12294    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12295    ;;
12296  esac
12297  dynamic_linker='Win32 ld.exe'
12298  # FIXME: first we should search . and the directory the executable is in
12299  shlibpath_var=PATH
12300  ;;
12301
12302darwin* | rhapsody*)
12303  dynamic_linker="$host_os dyld"
12304  version_type=darwin
12305  need_lib_prefix=no
12306  need_version=no
12307  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12308  soname_spec='${libname}${release}${major}$shared_ext'
12309  shlibpath_overrides_runpath=yes
12310  shlibpath_var=DYLD_LIBRARY_PATH
12311  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
12312  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12313  if test "$GCC" = yes; then
12314    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"`
12315  else
12316    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12317  fi
12318  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12319  ;;
12320
12321dgux*)
12322  version_type=linux
12323  need_lib_prefix=no
12324  need_version=no
12325  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12326  soname_spec='${libname}${release}${shared_ext}$major'
12327  shlibpath_var=LD_LIBRARY_PATH
12328  ;;
12329
12330freebsd1*)
12331  dynamic_linker=no
12332  ;;
12333
12334kfreebsd*-gnu)
12335  version_type=linux
12336  need_lib_prefix=no
12337  need_version=no
12338  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12339  soname_spec='${libname}${release}${shared_ext}$major'
12340  shlibpath_var=LD_LIBRARY_PATH
12341  shlibpath_overrides_runpath=no
12342  hardcode_into_libs=yes
12343  dynamic_linker='GNU ld.so'
12344  ;;
12345
12346freebsd*)
12347  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
12348  version_type=freebsd-$objformat
12349  case $version_type in
12350    freebsd-elf*)
12351      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12352      need_version=no
12353      need_lib_prefix=no
12354      ;;
12355    freebsd-*)
12356      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12357      need_version=yes
12358      ;;
12359  esac
12360  shlibpath_var=LD_LIBRARY_PATH
12361  case $host_os in
12362  freebsd2*)
12363    shlibpath_overrides_runpath=yes
12364    ;;
12365  freebsd3.01* | freebsdelf3.01*)
12366    shlibpath_overrides_runpath=yes
12367    hardcode_into_libs=yes
12368    ;;
12369  *) # from 3.2 on
12370    shlibpath_overrides_runpath=no
12371    hardcode_into_libs=yes
12372    ;;
12373  esac
12374  ;;
12375
12376gnu*)
12377  version_type=linux
12378  need_lib_prefix=no
12379  need_version=no
12380  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12381  soname_spec='${libname}${release}${shared_ext}$major'
12382  shlibpath_var=LD_LIBRARY_PATH
12383  hardcode_into_libs=yes
12384  ;;
12385
12386hpux9* | hpux10* | hpux11*)
12387  # Give a soname corresponding to the major version so that dld.sl refuses to
12388  # link against other versions.
12389  version_type=sunos
12390  need_lib_prefix=no
12391  need_version=no
12392  case "$host_cpu" in
12393  ia64*)
12394    shrext_cmds='.so'
12395    hardcode_into_libs=yes
12396    dynamic_linker="$host_os dld.so"
12397    shlibpath_var=LD_LIBRARY_PATH
12398    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12399    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12400    soname_spec='${libname}${release}${shared_ext}$major'
12401    if test "X$HPUX_IA64_MODE" = X32; then
12402      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12403    else
12404      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12405    fi
12406    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12407    ;;
12408   hppa*64*)
12409     shrext_cmds='.sl'
12410     hardcode_into_libs=yes
12411     dynamic_linker="$host_os dld.sl"
12412     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12413     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12414     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12415     soname_spec='${libname}${release}${shared_ext}$major'
12416     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12417     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12418     ;;
12419   *)
12420    shrext_cmds='.sl'
12421    dynamic_linker="$host_os dld.sl"
12422    shlibpath_var=SHLIB_PATH
12423    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12424    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12425    soname_spec='${libname}${release}${shared_ext}$major'
12426    ;;
12427  esac
12428  # HP-UX runs *really* slowly unless shared libraries are mode 555.
12429  postinstall_cmds='chmod 555 $lib'
12430  ;;
12431
12432irix5* | irix6* | nonstopux*)
12433  case $host_os in
12434    nonstopux*) version_type=nonstopux ;;
12435    *)
12436	if test "$lt_cv_prog_gnu_ld" = yes; then
12437		version_type=linux
12438	else
12439		version_type=irix
12440	fi ;;
12441  esac
12442  need_lib_prefix=no
12443  need_version=no
12444  soname_spec='${libname}${release}${shared_ext}$major'
12445  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12446  case $host_os in
12447  irix5* | nonstopux*)
12448    libsuff= shlibsuff=
12449    ;;
12450  *)
12451    case $LD in # libtool.m4 will add one of these switches to LD
12452    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12453      libsuff= shlibsuff= libmagic=32-bit;;
12454    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12455      libsuff=32 shlibsuff=N32 libmagic=N32;;
12456    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12457      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12458    *) libsuff= shlibsuff= libmagic=never-match;;
12459    esac
12460    ;;
12461  esac
12462  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12463  shlibpath_overrides_runpath=no
12464  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12465  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12466  hardcode_into_libs=yes
12467  ;;
12468
12469# No shared lib support for Linux oldld, aout, or coff.
12470linux*oldld* | linux*aout* | linux*coff*)
12471  dynamic_linker=no
12472  ;;
12473
12474# This must be Linux ELF.
12475linux*)
12476  version_type=linux
12477  need_lib_prefix=no
12478  need_version=no
12479  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12480  soname_spec='${libname}${release}${shared_ext}$major'
12481  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12482  shlibpath_var=LD_LIBRARY_PATH
12483  shlibpath_overrides_runpath=no
12484  # This implies no fast_install, which is unacceptable.
12485  # Some rework will be needed to allow for fast_install
12486  # before this can be enabled.
12487  hardcode_into_libs=yes
12488
12489  # Append ld.so.conf contents to the search path
12490  if test -f /etc/ld.so.conf; then
12491    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
12492    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12493  fi
12494
12495  # We used to test for /lib/ld.so.1 and disable shared libraries on
12496  # powerpc, because MkLinux only supported shared libraries with the
12497  # GNU dynamic linker.  Since this was broken with cross compilers,
12498  # most powerpc-linux boxes support dynamic linking these days and
12499  # people can always --disable-shared, the test was removed, and we
12500  # assume the GNU/Linux dynamic linker is in use.
12501  dynamic_linker='GNU/Linux ld.so'
12502  ;;
12503
12504knetbsd*-gnu)
12505  version_type=linux
12506  need_lib_prefix=no
12507  need_version=no
12508  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12509  soname_spec='${libname}${release}${shared_ext}$major'
12510  shlibpath_var=LD_LIBRARY_PATH
12511  shlibpath_overrides_runpath=no
12512  hardcode_into_libs=yes
12513  dynamic_linker='GNU ld.so'
12514  ;;
12515
12516netbsd*)
12517  version_type=sunos
12518  need_lib_prefix=no
12519  need_version=no
12520  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12521    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12522    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12523    dynamic_linker='NetBSD (a.out) ld.so'
12524  else
12525    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12526    soname_spec='${libname}${release}${shared_ext}$major'
12527    dynamic_linker='NetBSD ld.elf_so'
12528  fi
12529  shlibpath_var=LD_LIBRARY_PATH
12530  shlibpath_overrides_runpath=yes
12531  hardcode_into_libs=yes
12532  ;;
12533
12534newsos6)
12535  version_type=linux
12536  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12537  shlibpath_var=LD_LIBRARY_PATH
12538  shlibpath_overrides_runpath=yes
12539  ;;
12540
12541nto-qnx*)
12542  version_type=linux
12543  need_lib_prefix=no
12544  need_version=no
12545  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12546  soname_spec='${libname}${release}${shared_ext}$major'
12547  shlibpath_var=LD_LIBRARY_PATH
12548  shlibpath_overrides_runpath=yes
12549  ;;
12550
12551openbsd*)
12552  version_type=sunos
12553  need_lib_prefix=no
12554  need_version=yes
12555  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12556  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12557  shlibpath_var=LD_LIBRARY_PATH
12558  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12559    case $host_os in
12560      openbsd2.[89] | openbsd2.[89].*)
12561	shlibpath_overrides_runpath=no
12562	;;
12563      *)
12564	shlibpath_overrides_runpath=yes
12565	;;
12566      esac
12567  else
12568    shlibpath_overrides_runpath=yes
12569  fi
12570  ;;
12571
12572os2*)
12573  libname_spec='$name'
12574  shrext_cmds=".dll"
12575  need_lib_prefix=no
12576  library_names_spec='$libname${shared_ext} $libname.a'
12577  dynamic_linker='OS/2 ld.exe'
12578  shlibpath_var=LIBPATH
12579  ;;
12580
12581osf3* | osf4* | osf5*)
12582  version_type=osf
12583  need_lib_prefix=no
12584  need_version=no
12585  soname_spec='${libname}${release}${shared_ext}$major'
12586  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12587  shlibpath_var=LD_LIBRARY_PATH
12588  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12589  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12590  ;;
12591
12592sco3.2v5*)
12593  version_type=osf
12594  soname_spec='${libname}${release}${shared_ext}$major'
12595  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12596  shlibpath_var=LD_LIBRARY_PATH
12597  ;;
12598
12599solaris*)
12600  version_type=linux
12601  need_lib_prefix=no
12602  need_version=no
12603  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12604  soname_spec='${libname}${release}${shared_ext}$major'
12605  shlibpath_var=LD_LIBRARY_PATH
12606  shlibpath_overrides_runpath=yes
12607  hardcode_into_libs=yes
12608  # ldd complains unless libraries are executable
12609  postinstall_cmds='chmod +x $lib'
12610  ;;
12611
12612sunos4*)
12613  version_type=sunos
12614  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12615  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12616  shlibpath_var=LD_LIBRARY_PATH
12617  shlibpath_overrides_runpath=yes
12618  if test "$with_gnu_ld" = yes; then
12619    need_lib_prefix=no
12620  fi
12621  need_version=yes
12622  ;;
12623
12624sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12625  version_type=linux
12626  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12627  soname_spec='${libname}${release}${shared_ext}$major'
12628  shlibpath_var=LD_LIBRARY_PATH
12629  case $host_vendor in
12630    sni)
12631      shlibpath_overrides_runpath=no
12632      need_lib_prefix=no
12633      export_dynamic_flag_spec='${wl}-Blargedynsym'
12634      runpath_var=LD_RUN_PATH
12635      ;;
12636    siemens)
12637      need_lib_prefix=no
12638      ;;
12639    motorola)
12640      need_lib_prefix=no
12641      need_version=no
12642      shlibpath_overrides_runpath=no
12643      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12644      ;;
12645  esac
12646  ;;
12647
12648sysv4*MP*)
12649  if test -d /usr/nec ;then
12650    version_type=linux
12651    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12652    soname_spec='$libname${shared_ext}.$major'
12653    shlibpath_var=LD_LIBRARY_PATH
12654  fi
12655  ;;
12656
12657uts4*)
12658  version_type=linux
12659  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12660  soname_spec='${libname}${release}${shared_ext}$major'
12661  shlibpath_var=LD_LIBRARY_PATH
12662  ;;
12663
12664*)
12665  dynamic_linker=no
12666  ;;
12667esac
12668echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12669echo "${ECHO_T}$dynamic_linker" >&6
12670test "$dynamic_linker" = no && can_build_shared=no
12671
12672echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12673echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12674hardcode_action_CXX=
12675if test -n "$hardcode_libdir_flag_spec_CXX" || \
12676   test -n "$runpath_var CXX" || \
12677   test "X$hardcode_automatic_CXX"="Xyes" ; then
12678
12679  # We can hardcode non-existant directories.
12680  if test "$hardcode_direct_CXX" != no &&
12681     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12682     # have to relink, otherwise we might link with an installed library
12683     # when we should be linking with a yet-to-be-installed one
12684     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12685     test "$hardcode_minus_L_CXX" != no; then
12686    # Linking always hardcodes the temporary library directory.
12687    hardcode_action_CXX=relink
12688  else
12689    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12690    hardcode_action_CXX=immediate
12691  fi
12692else
12693  # We cannot hardcode anything, or else we can only hardcode existing
12694  # directories.
12695  hardcode_action_CXX=unsupported
12696fi
12697echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12698echo "${ECHO_T}$hardcode_action_CXX" >&6
12699
12700if test "$hardcode_action_CXX" = relink; then
12701  # Fast installation is not supported
12702  enable_fast_install=no
12703elif test "$shlibpath_overrides_runpath" = yes ||
12704     test "$enable_shared" = no; then
12705  # Fast installation is not necessary
12706  enable_fast_install=needless
12707fi
12708
12709striplib=
12710old_striplib=
12711echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12712echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12713if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12714  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12715  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12716  echo "$as_me:$LINENO: result: yes" >&5
12717echo "${ECHO_T}yes" >&6
12718else
12719# FIXME - insert some real tests, host_os isn't really good enough
12720  case $host_os in
12721   darwin*)
12722       if test -n "$STRIP" ; then
12723         striplib="$STRIP -x"
12724         echo "$as_me:$LINENO: result: yes" >&5
12725echo "${ECHO_T}yes" >&6
12726       else
12727  echo "$as_me:$LINENO: result: no" >&5
12728echo "${ECHO_T}no" >&6
12729fi
12730       ;;
12731   *)
12732  echo "$as_me:$LINENO: result: no" >&5
12733echo "${ECHO_T}no" >&6
12734    ;;
12735  esac
12736fi
12737
12738if test "x$enable_dlopen" != xyes; then
12739  enable_dlopen=unknown
12740  enable_dlopen_self=unknown
12741  enable_dlopen_self_static=unknown
12742else
12743  lt_cv_dlopen=no
12744  lt_cv_dlopen_libs=
12745
12746  case $host_os in
12747  beos*)
12748    lt_cv_dlopen="load_add_on"
12749    lt_cv_dlopen_libs=
12750    lt_cv_dlopen_self=yes
12751    ;;
12752
12753  mingw* | pw32*)
12754    lt_cv_dlopen="LoadLibrary"
12755    lt_cv_dlopen_libs=
12756   ;;
12757
12758  cygwin*)
12759    lt_cv_dlopen="dlopen"
12760    lt_cv_dlopen_libs=
12761   ;;
12762
12763  darwin*)
12764  # if libdl is installed we need to link against it
12765    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12766echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12767if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12768  echo $ECHO_N "(cached) $ECHO_C" >&6
12769else
12770  ac_check_lib_save_LIBS=$LIBS
12771LIBS="-ldl  $LIBS"
12772cat >conftest.$ac_ext <<_ACEOF
12773/* confdefs.h.  */
12774_ACEOF
12775cat confdefs.h >>conftest.$ac_ext
12776cat >>conftest.$ac_ext <<_ACEOF
12777/* end confdefs.h.  */
12778
12779/* Override any gcc2 internal prototype to avoid an error.  */
12780#ifdef __cplusplus
12781extern "C"
12782#endif
12783/* We use char because int might match the return type of a gcc2
12784   builtin and then its argument prototype would still apply.  */
12785char dlopen ();
12786int
12787main ()
12788{
12789dlopen ();
12790  ;
12791  return 0;
12792}
12793_ACEOF
12794rm -f conftest.$ac_objext conftest$ac_exeext
12795if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12796  (eval $ac_link) 2>conftest.er1
12797  ac_status=$?
12798  grep -v '^ *+' conftest.er1 >conftest.err
12799  rm -f conftest.er1
12800  cat conftest.err >&5
12801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12802  (exit $ac_status); } &&
12803	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
12804  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12805  (eval $ac_try) 2>&5
12806  ac_status=$?
12807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808  (exit $ac_status); }; } &&
12809	 { ac_try='test -s conftest$ac_exeext'
12810  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12811  (eval $ac_try) 2>&5
12812  ac_status=$?
12813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814  (exit $ac_status); }; }; then
12815  ac_cv_lib_dl_dlopen=yes
12816else
12817  echo "$as_me: failed program was:" >&5
12818sed 's/^/| /' conftest.$ac_ext >&5
12819
12820ac_cv_lib_dl_dlopen=no
12821fi
12822rm -f conftest.err conftest.$ac_objext \
12823      conftest$ac_exeext conftest.$ac_ext
12824LIBS=$ac_check_lib_save_LIBS
12825fi
12826echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12827echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12828if test $ac_cv_lib_dl_dlopen = yes; then
12829  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12830else
12831
12832    lt_cv_dlopen="dyld"
12833    lt_cv_dlopen_libs=
12834    lt_cv_dlopen_self=yes
12835
12836fi
12837
12838   ;;
12839
12840  *)
12841    echo "$as_me:$LINENO: checking for shl_load" >&5
12842echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12843if test "${ac_cv_func_shl_load+set}" = set; then
12844  echo $ECHO_N "(cached) $ECHO_C" >&6
12845else
12846  cat >conftest.$ac_ext <<_ACEOF
12847/* confdefs.h.  */
12848_ACEOF
12849cat confdefs.h >>conftest.$ac_ext
12850cat >>conftest.$ac_ext <<_ACEOF
12851/* end confdefs.h.  */
12852/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12853   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12854#define shl_load innocuous_shl_load
12855
12856/* System header to define __stub macros and hopefully few prototypes,
12857    which can conflict with char shl_load (); below.
12858    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12859    <limits.h> exists even on freestanding compilers.  */
12860
12861#ifdef __STDC__
12862# include <limits.h>
12863#else
12864# include <assert.h>
12865#endif
12866
12867#undef shl_load
12868
12869/* Override any gcc2 internal prototype to avoid an error.  */
12870#ifdef __cplusplus
12871extern "C"
12872{
12873#endif
12874/* We use char because int might match the return type of a gcc2
12875   builtin and then its argument prototype would still apply.  */
12876char shl_load ();
12877/* The GNU C library defines this for functions which it implements
12878    to always fail with ENOSYS.  Some functions are actually named
12879    something starting with __ and the normal name is an alias.  */
12880#if defined (__stub_shl_load) || defined (__stub___shl_load)
12881choke me
12882#else
12883char (*f) () = shl_load;
12884#endif
12885#ifdef __cplusplus
12886}
12887#endif
12888
12889int
12890main ()
12891{
12892return f != shl_load;
12893  ;
12894  return 0;
12895}
12896_ACEOF
12897rm -f conftest.$ac_objext conftest$ac_exeext
12898if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12899  (eval $ac_link) 2>conftest.er1
12900  ac_status=$?
12901  grep -v '^ *+' conftest.er1 >conftest.err
12902  rm -f conftest.er1
12903  cat conftest.err >&5
12904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905  (exit $ac_status); } &&
12906	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
12907  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12908  (eval $ac_try) 2>&5
12909  ac_status=$?
12910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12911  (exit $ac_status); }; } &&
12912	 { ac_try='test -s conftest$ac_exeext'
12913  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12914  (eval $ac_try) 2>&5
12915  ac_status=$?
12916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12917  (exit $ac_status); }; }; then
12918  ac_cv_func_shl_load=yes
12919else
12920  echo "$as_me: failed program was:" >&5
12921sed 's/^/| /' conftest.$ac_ext >&5
12922
12923ac_cv_func_shl_load=no
12924fi
12925rm -f conftest.err conftest.$ac_objext \
12926      conftest$ac_exeext conftest.$ac_ext
12927fi
12928echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12929echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12930if test $ac_cv_func_shl_load = yes; then
12931  lt_cv_dlopen="shl_load"
12932else
12933  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12934echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12935if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12936  echo $ECHO_N "(cached) $ECHO_C" >&6
12937else
12938  ac_check_lib_save_LIBS=$LIBS
12939LIBS="-ldld  $LIBS"
12940cat >conftest.$ac_ext <<_ACEOF
12941/* confdefs.h.  */
12942_ACEOF
12943cat confdefs.h >>conftest.$ac_ext
12944cat >>conftest.$ac_ext <<_ACEOF
12945/* end confdefs.h.  */
12946
12947/* Override any gcc2 internal prototype to avoid an error.  */
12948#ifdef __cplusplus
12949extern "C"
12950#endif
12951/* We use char because int might match the return type of a gcc2
12952   builtin and then its argument prototype would still apply.  */
12953char shl_load ();
12954int
12955main ()
12956{
12957shl_load ();
12958  ;
12959  return 0;
12960}
12961_ACEOF
12962rm -f conftest.$ac_objext conftest$ac_exeext
12963if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12964  (eval $ac_link) 2>conftest.er1
12965  ac_status=$?
12966  grep -v '^ *+' conftest.er1 >conftest.err
12967  rm -f conftest.er1
12968  cat conftest.err >&5
12969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12970  (exit $ac_status); } &&
12971	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
12972  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12973  (eval $ac_try) 2>&5
12974  ac_status=$?
12975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976  (exit $ac_status); }; } &&
12977	 { ac_try='test -s conftest$ac_exeext'
12978  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12979  (eval $ac_try) 2>&5
12980  ac_status=$?
12981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982  (exit $ac_status); }; }; then
12983  ac_cv_lib_dld_shl_load=yes
12984else
12985  echo "$as_me: failed program was:" >&5
12986sed 's/^/| /' conftest.$ac_ext >&5
12987
12988ac_cv_lib_dld_shl_load=no
12989fi
12990rm -f conftest.err conftest.$ac_objext \
12991      conftest$ac_exeext conftest.$ac_ext
12992LIBS=$ac_check_lib_save_LIBS
12993fi
12994echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12995echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12996if test $ac_cv_lib_dld_shl_load = yes; then
12997  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12998else
12999  echo "$as_me:$LINENO: checking for dlopen" >&5
13000echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13001if test "${ac_cv_func_dlopen+set}" = set; then
13002  echo $ECHO_N "(cached) $ECHO_C" >&6
13003else
13004  cat >conftest.$ac_ext <<_ACEOF
13005/* confdefs.h.  */
13006_ACEOF
13007cat confdefs.h >>conftest.$ac_ext
13008cat >>conftest.$ac_ext <<_ACEOF
13009/* end confdefs.h.  */
13010/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13011   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13012#define dlopen innocuous_dlopen
13013
13014/* System header to define __stub macros and hopefully few prototypes,
13015    which can conflict with char dlopen (); below.
13016    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13017    <limits.h> exists even on freestanding compilers.  */
13018
13019#ifdef __STDC__
13020# include <limits.h>
13021#else
13022# include <assert.h>
13023#endif
13024
13025#undef dlopen
13026
13027/* Override any gcc2 internal prototype to avoid an error.  */
13028#ifdef __cplusplus
13029extern "C"
13030{
13031#endif
13032/* We use char because int might match the return type of a gcc2
13033   builtin and then its argument prototype would still apply.  */
13034char dlopen ();
13035/* The GNU C library defines this for functions which it implements
13036    to always fail with ENOSYS.  Some functions are actually named
13037    something starting with __ and the normal name is an alias.  */
13038#if defined (__stub_dlopen) || defined (__stub___dlopen)
13039choke me
13040#else
13041char (*f) () = dlopen;
13042#endif
13043#ifdef __cplusplus
13044}
13045#endif
13046
13047int
13048main ()
13049{
13050return f != dlopen;
13051  ;
13052  return 0;
13053}
13054_ACEOF
13055rm -f conftest.$ac_objext conftest$ac_exeext
13056if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13057  (eval $ac_link) 2>conftest.er1
13058  ac_status=$?
13059  grep -v '^ *+' conftest.er1 >conftest.err
13060  rm -f conftest.er1
13061  cat conftest.err >&5
13062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13063  (exit $ac_status); } &&
13064	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
13065  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13066  (eval $ac_try) 2>&5
13067  ac_status=$?
13068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069  (exit $ac_status); }; } &&
13070	 { ac_try='test -s conftest$ac_exeext'
13071  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13072  (eval $ac_try) 2>&5
13073  ac_status=$?
13074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13075  (exit $ac_status); }; }; then
13076  ac_cv_func_dlopen=yes
13077else
13078  echo "$as_me: failed program was:" >&5
13079sed 's/^/| /' conftest.$ac_ext >&5
13080
13081ac_cv_func_dlopen=no
13082fi
13083rm -f conftest.err conftest.$ac_objext \
13084      conftest$ac_exeext conftest.$ac_ext
13085fi
13086echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13087echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13088if test $ac_cv_func_dlopen = yes; then
13089  lt_cv_dlopen="dlopen"
13090else
13091  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13092echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13093if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13094  echo $ECHO_N "(cached) $ECHO_C" >&6
13095else
13096  ac_check_lib_save_LIBS=$LIBS
13097LIBS="-ldl  $LIBS"
13098cat >conftest.$ac_ext <<_ACEOF
13099/* confdefs.h.  */
13100_ACEOF
13101cat confdefs.h >>conftest.$ac_ext
13102cat >>conftest.$ac_ext <<_ACEOF
13103/* end confdefs.h.  */
13104
13105/* Override any gcc2 internal prototype to avoid an error.  */
13106#ifdef __cplusplus
13107extern "C"
13108#endif
13109/* We use char because int might match the return type of a gcc2
13110   builtin and then its argument prototype would still apply.  */
13111char dlopen ();
13112int
13113main ()
13114{
13115dlopen ();
13116  ;
13117  return 0;
13118}
13119_ACEOF
13120rm -f conftest.$ac_objext conftest$ac_exeext
13121if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13122  (eval $ac_link) 2>conftest.er1
13123  ac_status=$?
13124  grep -v '^ *+' conftest.er1 >conftest.err
13125  rm -f conftest.er1
13126  cat conftest.err >&5
13127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13128  (exit $ac_status); } &&
13129	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
13130  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13131  (eval $ac_try) 2>&5
13132  ac_status=$?
13133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13134  (exit $ac_status); }; } &&
13135	 { ac_try='test -s conftest$ac_exeext'
13136  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13137  (eval $ac_try) 2>&5
13138  ac_status=$?
13139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140  (exit $ac_status); }; }; then
13141  ac_cv_lib_dl_dlopen=yes
13142else
13143  echo "$as_me: failed program was:" >&5
13144sed 's/^/| /' conftest.$ac_ext >&5
13145
13146ac_cv_lib_dl_dlopen=no
13147fi
13148rm -f conftest.err conftest.$ac_objext \
13149      conftest$ac_exeext conftest.$ac_ext
13150LIBS=$ac_check_lib_save_LIBS
13151fi
13152echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13153echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13154if test $ac_cv_lib_dl_dlopen = yes; then
13155  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13156else
13157  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13158echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
13159if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13160  echo $ECHO_N "(cached) $ECHO_C" >&6
13161else
13162  ac_check_lib_save_LIBS=$LIBS
13163LIBS="-lsvld  $LIBS"
13164cat >conftest.$ac_ext <<_ACEOF
13165/* confdefs.h.  */
13166_ACEOF
13167cat confdefs.h >>conftest.$ac_ext
13168cat >>conftest.$ac_ext <<_ACEOF
13169/* end confdefs.h.  */
13170
13171/* Override any gcc2 internal prototype to avoid an error.  */
13172#ifdef __cplusplus
13173extern "C"
13174#endif
13175/* We use char because int might match the return type of a gcc2
13176   builtin and then its argument prototype would still apply.  */
13177char dlopen ();
13178int
13179main ()
13180{
13181dlopen ();
13182  ;
13183  return 0;
13184}
13185_ACEOF
13186rm -f conftest.$ac_objext conftest$ac_exeext
13187if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13188  (eval $ac_link) 2>conftest.er1
13189  ac_status=$?
13190  grep -v '^ *+' conftest.er1 >conftest.err
13191  rm -f conftest.er1
13192  cat conftest.err >&5
13193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194  (exit $ac_status); } &&
13195	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
13196  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13197  (eval $ac_try) 2>&5
13198  ac_status=$?
13199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13200  (exit $ac_status); }; } &&
13201	 { ac_try='test -s conftest$ac_exeext'
13202  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13203  (eval $ac_try) 2>&5
13204  ac_status=$?
13205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206  (exit $ac_status); }; }; then
13207  ac_cv_lib_svld_dlopen=yes
13208else
13209  echo "$as_me: failed program was:" >&5
13210sed 's/^/| /' conftest.$ac_ext >&5
13211
13212ac_cv_lib_svld_dlopen=no
13213fi
13214rm -f conftest.err conftest.$ac_objext \
13215      conftest$ac_exeext conftest.$ac_ext
13216LIBS=$ac_check_lib_save_LIBS
13217fi
13218echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13219echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
13220if test $ac_cv_lib_svld_dlopen = yes; then
13221  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13222else
13223  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13224echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
13225if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13226  echo $ECHO_N "(cached) $ECHO_C" >&6
13227else
13228  ac_check_lib_save_LIBS=$LIBS
13229LIBS="-ldld  $LIBS"
13230cat >conftest.$ac_ext <<_ACEOF
13231/* confdefs.h.  */
13232_ACEOF
13233cat confdefs.h >>conftest.$ac_ext
13234cat >>conftest.$ac_ext <<_ACEOF
13235/* end confdefs.h.  */
13236
13237/* Override any gcc2 internal prototype to avoid an error.  */
13238#ifdef __cplusplus
13239extern "C"
13240#endif
13241/* We use char because int might match the return type of a gcc2
13242   builtin and then its argument prototype would still apply.  */
13243char dld_link ();
13244int
13245main ()
13246{
13247dld_link ();
13248  ;
13249  return 0;
13250}
13251_ACEOF
13252rm -f conftest.$ac_objext conftest$ac_exeext
13253if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13254  (eval $ac_link) 2>conftest.er1
13255  ac_status=$?
13256  grep -v '^ *+' conftest.er1 >conftest.err
13257  rm -f conftest.er1
13258  cat conftest.err >&5
13259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260  (exit $ac_status); } &&
13261	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
13262  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13263  (eval $ac_try) 2>&5
13264  ac_status=$?
13265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266  (exit $ac_status); }; } &&
13267	 { ac_try='test -s conftest$ac_exeext'
13268  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13269  (eval $ac_try) 2>&5
13270  ac_status=$?
13271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272  (exit $ac_status); }; }; then
13273  ac_cv_lib_dld_dld_link=yes
13274else
13275  echo "$as_me: failed program was:" >&5
13276sed 's/^/| /' conftest.$ac_ext >&5
13277
13278ac_cv_lib_dld_dld_link=no
13279fi
13280rm -f conftest.err conftest.$ac_objext \
13281      conftest$ac_exeext conftest.$ac_ext
13282LIBS=$ac_check_lib_save_LIBS
13283fi
13284echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13285echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
13286if test $ac_cv_lib_dld_dld_link = yes; then
13287  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13288fi
13289
13290
13291fi
13292
13293
13294fi
13295
13296
13297fi
13298
13299
13300fi
13301
13302
13303fi
13304
13305    ;;
13306  esac
13307
13308  if test "x$lt_cv_dlopen" != xno; then
13309    enable_dlopen=yes
13310  else
13311    enable_dlopen=no
13312  fi
13313
13314  case $lt_cv_dlopen in
13315  dlopen)
13316    save_CPPFLAGS="$CPPFLAGS"
13317    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13318
13319    save_LDFLAGS="$LDFLAGS"
13320    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13321
13322    save_LIBS="$LIBS"
13323    LIBS="$lt_cv_dlopen_libs $LIBS"
13324
13325    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13326echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
13327if test "${lt_cv_dlopen_self+set}" = set; then
13328  echo $ECHO_N "(cached) $ECHO_C" >&6
13329else
13330  	  if test "$cross_compiling" = yes; then :
13331  lt_cv_dlopen_self=cross
13332else
13333  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13334  lt_status=$lt_dlunknown
13335  cat > conftest.$ac_ext <<EOF
13336#line 13336 "configure"
13337#include "confdefs.h"
13338
13339#if HAVE_DLFCN_H
13340#include <dlfcn.h>
13341#endif
13342
13343#include <stdio.h>
13344
13345#ifdef RTLD_GLOBAL
13346#  define LT_DLGLOBAL		RTLD_GLOBAL
13347#else
13348#  ifdef DL_GLOBAL
13349#    define LT_DLGLOBAL		DL_GLOBAL
13350#  else
13351#    define LT_DLGLOBAL		0
13352#  endif
13353#endif
13354
13355/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13356   find out it does not work in some platform. */
13357#ifndef LT_DLLAZY_OR_NOW
13358#  ifdef RTLD_LAZY
13359#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13360#  else
13361#    ifdef DL_LAZY
13362#      define LT_DLLAZY_OR_NOW		DL_LAZY
13363#    else
13364#      ifdef RTLD_NOW
13365#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13366#      else
13367#        ifdef DL_NOW
13368#          define LT_DLLAZY_OR_NOW	DL_NOW
13369#        else
13370#          define LT_DLLAZY_OR_NOW	0
13371#        endif
13372#      endif
13373#    endif
13374#  endif
13375#endif
13376
13377#ifdef __cplusplus
13378extern "C" void exit (int);
13379#endif
13380
13381void fnord() { int i=42;}
13382int main ()
13383{
13384  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13385  int status = $lt_dlunknown;
13386
13387  if (self)
13388    {
13389      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13390      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13391      /* dlclose (self); */
13392    }
13393
13394    exit (status);
13395}
13396EOF
13397  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13398  (eval $ac_link) 2>&5
13399  ac_status=$?
13400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13402    (./conftest; exit; ) 2>/dev/null
13403    lt_status=$?
13404    case x$lt_status in
13405      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13406      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13407      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13408    esac
13409  else :
13410    # compilation failed
13411    lt_cv_dlopen_self=no
13412  fi
13413fi
13414rm -fr conftest*
13415
13416
13417fi
13418echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13419echo "${ECHO_T}$lt_cv_dlopen_self" >&6
13420
13421    if test "x$lt_cv_dlopen_self" = xyes; then
13422      LDFLAGS="$LDFLAGS $link_static_flag"
13423      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13424echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
13425if test "${lt_cv_dlopen_self_static+set}" = set; then
13426  echo $ECHO_N "(cached) $ECHO_C" >&6
13427else
13428  	  if test "$cross_compiling" = yes; then :
13429  lt_cv_dlopen_self_static=cross
13430else
13431  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13432  lt_status=$lt_dlunknown
13433  cat > conftest.$ac_ext <<EOF
13434#line 13434 "configure"
13435#include "confdefs.h"
13436
13437#if HAVE_DLFCN_H
13438#include <dlfcn.h>
13439#endif
13440
13441#include <stdio.h>
13442
13443#ifdef RTLD_GLOBAL
13444#  define LT_DLGLOBAL		RTLD_GLOBAL
13445#else
13446#  ifdef DL_GLOBAL
13447#    define LT_DLGLOBAL		DL_GLOBAL
13448#  else
13449#    define LT_DLGLOBAL		0
13450#  endif
13451#endif
13452
13453/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13454   find out it does not work in some platform. */
13455#ifndef LT_DLLAZY_OR_NOW
13456#  ifdef RTLD_LAZY
13457#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13458#  else
13459#    ifdef DL_LAZY
13460#      define LT_DLLAZY_OR_NOW		DL_LAZY
13461#    else
13462#      ifdef RTLD_NOW
13463#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13464#      else
13465#        ifdef DL_NOW
13466#          define LT_DLLAZY_OR_NOW	DL_NOW
13467#        else
13468#          define LT_DLLAZY_OR_NOW	0
13469#        endif
13470#      endif
13471#    endif
13472#  endif
13473#endif
13474
13475#ifdef __cplusplus
13476extern "C" void exit (int);
13477#endif
13478
13479void fnord() { int i=42;}
13480int main ()
13481{
13482  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13483  int status = $lt_dlunknown;
13484
13485  if (self)
13486    {
13487      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13488      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13489      /* dlclose (self); */
13490    }
13491
13492    exit (status);
13493}
13494EOF
13495  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13496  (eval $ac_link) 2>&5
13497  ac_status=$?
13498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13499  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13500    (./conftest; exit; ) 2>/dev/null
13501    lt_status=$?
13502    case x$lt_status in
13503      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13504      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13505      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13506    esac
13507  else :
13508    # compilation failed
13509    lt_cv_dlopen_self_static=no
13510  fi
13511fi
13512rm -fr conftest*
13513
13514
13515fi
13516echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13517echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13518    fi
13519
13520    CPPFLAGS="$save_CPPFLAGS"
13521    LDFLAGS="$save_LDFLAGS"
13522    LIBS="$save_LIBS"
13523    ;;
13524  esac
13525
13526  case $lt_cv_dlopen_self in
13527  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13528  *) enable_dlopen_self=unknown ;;
13529  esac
13530
13531  case $lt_cv_dlopen_self_static in
13532  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13533  *) enable_dlopen_self_static=unknown ;;
13534  esac
13535fi
13536
13537
13538# The else clause should only fire when bootstrapping the
13539# libtool distribution, otherwise you forgot to ship ltmain.sh
13540# with your package, and you will get complaints that there are
13541# no rules to generate ltmain.sh.
13542if test -f "$ltmain"; then
13543  # See if we are running on zsh, and set the options which allow our commands through
13544  # without removal of \ escapes.
13545  if test -n "${ZSH_VERSION+set}" ; then
13546    setopt NO_GLOB_SUBST
13547  fi
13548  # Now quote all the things that may contain metacharacters while being
13549  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13550  # variables and quote the copies for generation of the libtool script.
13551  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13552    SED SHELL STRIP \
13553    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13554    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13555    deplibs_check_method reload_flag reload_cmds need_locks \
13556    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13557    lt_cv_sys_global_symbol_to_c_name_address \
13558    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13559    old_postinstall_cmds old_postuninstall_cmds \
13560    compiler_CXX \
13561    CC_CXX \
13562    LD_CXX \
13563    lt_prog_compiler_wl_CXX \
13564    lt_prog_compiler_pic_CXX \
13565    lt_prog_compiler_static_CXX \
13566    lt_prog_compiler_no_builtin_flag_CXX \
13567    export_dynamic_flag_spec_CXX \
13568    thread_safe_flag_spec_CXX \
13569    whole_archive_flag_spec_CXX \
13570    enable_shared_with_static_runtimes_CXX \
13571    old_archive_cmds_CXX \
13572    old_archive_from_new_cmds_CXX \
13573    predep_objects_CXX \
13574    postdep_objects_CXX \
13575    predeps_CXX \
13576    postdeps_CXX \
13577    compiler_lib_search_path_CXX \
13578    archive_cmds_CXX \
13579    archive_expsym_cmds_CXX \
13580    postinstall_cmds_CXX \
13581    postuninstall_cmds_CXX \
13582    old_archive_from_expsyms_cmds_CXX \
13583    allow_undefined_flag_CXX \
13584    no_undefined_flag_CXX \
13585    export_symbols_cmds_CXX \
13586    hardcode_libdir_flag_spec_CXX \
13587    hardcode_libdir_flag_spec_ld_CXX \
13588    hardcode_libdir_separator_CXX \
13589    hardcode_automatic_CXX \
13590    module_cmds_CXX \
13591    module_expsym_cmds_CXX \
13592    lt_cv_prog_compiler_c_o_CXX \
13593    exclude_expsyms_CXX \
13594    include_expsyms_CXX; do
13595
13596    case $var in
13597    old_archive_cmds_CXX | \
13598    old_archive_from_new_cmds_CXX | \
13599    archive_cmds_CXX | \
13600    archive_expsym_cmds_CXX | \
13601    module_cmds_CXX | \
13602    module_expsym_cmds_CXX | \
13603    old_archive_from_expsyms_cmds_CXX | \
13604    export_symbols_cmds_CXX | \
13605    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13606    postinstall_cmds | postuninstall_cmds | \
13607    old_postinstall_cmds | old_postuninstall_cmds | \
13608    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13609      # Double-quote double-evaled strings.
13610      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13611      ;;
13612    *)
13613      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13614      ;;
13615    esac
13616  done
13617
13618  case $lt_echo in
13619  *'\$0 --fallback-echo"')
13620    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13621    ;;
13622  esac
13623
13624cfgfile="$ofile"
13625
13626  cat <<__EOF__ >> "$cfgfile"
13627# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13628
13629# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13630
13631# Shell to use when invoking shell scripts.
13632SHELL=$lt_SHELL
13633
13634# Whether or not to build shared libraries.
13635build_libtool_libs=$enable_shared
13636
13637# Whether or not to build static libraries.
13638build_old_libs=$enable_static
13639
13640# Whether or not to add -lc for building shared libraries.
13641build_libtool_need_lc=$archive_cmds_need_lc_CXX
13642
13643# Whether or not to disallow shared libs when runtime libs are static
13644allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13645
13646# Whether or not to optimize for fast installation.
13647fast_install=$enable_fast_install
13648
13649# The host system.
13650host_alias=$host_alias
13651host=$host
13652
13653# An echo program that does not interpret backslashes.
13654echo=$lt_echo
13655
13656# The archiver.
13657AR=$lt_AR
13658AR_FLAGS=$lt_AR_FLAGS
13659
13660# A C compiler.
13661LTCC=$lt_LTCC
13662
13663# A language-specific compiler.
13664CC=$lt_compiler_CXX
13665
13666# Is the compiler the GNU C compiler?
13667with_gcc=$GCC_CXX
13668
13669# An ERE matcher.
13670EGREP=$lt_EGREP
13671
13672# The linker used to build libraries.
13673LD=$lt_LD_CXX
13674
13675# Whether we need hard or soft links.
13676LN_S=$lt_LN_S
13677
13678# A BSD-compatible nm program.
13679NM=$lt_NM
13680
13681# A symbol stripping program
13682STRIP=$lt_STRIP
13683
13684# Used to examine libraries when file_magic_cmd begins "file"
13685MAGIC_CMD=$MAGIC_CMD
13686
13687# Used on cygwin: DLL creation program.
13688DLLTOOL="$DLLTOOL"
13689
13690# Used on cygwin: object dumper.
13691OBJDUMP="$OBJDUMP"
13692
13693# Used on cygwin: assembler.
13694AS="$AS"
13695
13696# The name of the directory that contains temporary libtool files.
13697objdir=$objdir
13698
13699# How to create reloadable object files.
13700reload_flag=$lt_reload_flag
13701reload_cmds=$lt_reload_cmds
13702
13703# How to pass a linker flag through the compiler.
13704wl=$lt_lt_prog_compiler_wl_CXX
13705
13706# Object file suffix (normally "o").
13707objext="$ac_objext"
13708
13709# Old archive suffix (normally "a").
13710libext="$libext"
13711
13712# Shared library suffix (normally ".so").
13713shrext_cmds='$shrext_cmds'
13714
13715# Executable file suffix (normally "").
13716exeext="$exeext"
13717
13718# Additional compiler flags for building library objects.
13719pic_flag=$lt_lt_prog_compiler_pic_CXX
13720pic_mode=$pic_mode
13721
13722# What is the maximum length of a command?
13723max_cmd_len=$lt_cv_sys_max_cmd_len
13724
13725# Does compiler simultaneously support -c and -o options?
13726compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13727
13728# Must we lock files when doing compilation ?
13729need_locks=$lt_need_locks
13730
13731# Do we need the lib prefix for modules?
13732need_lib_prefix=$need_lib_prefix
13733
13734# Do we need a version for libraries?
13735need_version=$need_version
13736
13737# Whether dlopen is supported.
13738dlopen_support=$enable_dlopen
13739
13740# Whether dlopen of programs is supported.
13741dlopen_self=$enable_dlopen_self
13742
13743# Whether dlopen of statically linked programs is supported.
13744dlopen_self_static=$enable_dlopen_self_static
13745
13746# Compiler flag to prevent dynamic linking.
13747link_static_flag=$lt_lt_prog_compiler_static_CXX
13748
13749# Compiler flag to turn off builtin functions.
13750no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13751
13752# Compiler flag to allow reflexive dlopens.
13753export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13754
13755# Compiler flag to generate shared objects directly from archives.
13756whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13757
13758# Compiler flag to generate thread-safe objects.
13759thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13760
13761# Library versioning type.
13762version_type=$version_type
13763
13764# Format of library name prefix.
13765libname_spec=$lt_libname_spec
13766
13767# List of archive names.  First name is the real one, the rest are links.
13768# The last name is the one that the linker finds with -lNAME.
13769library_names_spec=$lt_library_names_spec
13770
13771# The coded name of the library, if different from the real name.
13772soname_spec=$lt_soname_spec
13773
13774# Commands used to build and install an old-style archive.
13775RANLIB=$lt_RANLIB
13776old_archive_cmds=$lt_old_archive_cmds_CXX
13777old_postinstall_cmds=$lt_old_postinstall_cmds
13778old_postuninstall_cmds=$lt_old_postuninstall_cmds
13779
13780# Create an old-style archive from a shared archive.
13781old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13782
13783# Create a temporary old-style archive to link instead of a shared archive.
13784old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13785
13786# Commands used to build and install a shared archive.
13787archive_cmds=$lt_archive_cmds_CXX
13788archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13789postinstall_cmds=$lt_postinstall_cmds
13790postuninstall_cmds=$lt_postuninstall_cmds
13791
13792# Commands used to build a loadable module (assumed same as above if empty)
13793module_cmds=$lt_module_cmds_CXX
13794module_expsym_cmds=$lt_module_expsym_cmds_CXX
13795
13796# Commands to strip libraries.
13797old_striplib=$lt_old_striplib
13798striplib=$lt_striplib
13799
13800# Dependencies to place before the objects being linked to create a
13801# shared library.
13802predep_objects=$lt_predep_objects_CXX
13803
13804# Dependencies to place after the objects being linked to create a
13805# shared library.
13806postdep_objects=$lt_postdep_objects_CXX
13807
13808# Dependencies to place before the objects being linked to create a
13809# shared library.
13810predeps=$lt_predeps_CXX
13811
13812# Dependencies to place after the objects being linked to create a
13813# shared library.
13814postdeps=$lt_postdeps_CXX
13815
13816# The library search path used internally by the compiler when linking
13817# a shared library.
13818compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13819
13820# Method to check whether dependent libraries are shared objects.
13821deplibs_check_method=$lt_deplibs_check_method
13822
13823# Command to use when deplibs_check_method == file_magic.
13824file_magic_cmd=$lt_file_magic_cmd
13825
13826# Flag that allows shared libraries with undefined symbols to be built.
13827allow_undefined_flag=$lt_allow_undefined_flag_CXX
13828
13829# Flag that forces no undefined symbols.
13830no_undefined_flag=$lt_no_undefined_flag_CXX
13831
13832# Commands used to finish a libtool library installation in a directory.
13833finish_cmds=$lt_finish_cmds
13834
13835# Same as above, but a single script fragment to be evaled but not shown.
13836finish_eval=$lt_finish_eval
13837
13838# Take the output of nm and produce a listing of raw symbols and C names.
13839global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13840
13841# Transform the output of nm in a proper C declaration
13842global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13843
13844# Transform the output of nm in a C name address pair
13845global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13846
13847# This is the shared library runtime path variable.
13848runpath_var=$runpath_var
13849
13850# This is the shared library path variable.
13851shlibpath_var=$shlibpath_var
13852
13853# Is shlibpath searched before the hard-coded library search path?
13854shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13855
13856# How to hardcode a shared library path into an executable.
13857hardcode_action=$hardcode_action_CXX
13858
13859# Whether we should hardcode library paths into libraries.
13860hardcode_into_libs=$hardcode_into_libs
13861
13862# Flag to hardcode \$libdir into a binary during linking.
13863# This must work even if \$libdir does not exist.
13864hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13865
13866# If ld is used when linking, flag to hardcode \$libdir into
13867# a binary during linking. This must work even if \$libdir does
13868# not exist.
13869hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13870
13871# Whether we need a single -rpath flag with a separated argument.
13872hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13873
13874# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13875# resulting binary.
13876hardcode_direct=$hardcode_direct_CXX
13877
13878# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13879# resulting binary.
13880hardcode_minus_L=$hardcode_minus_L_CXX
13881
13882# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13883# the resulting binary.
13884hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13885
13886# Set to yes if building a shared library automatically hardcodes DIR into the library
13887# and all subsequent libraries and executables linked against it.
13888hardcode_automatic=$hardcode_automatic_CXX
13889
13890# Variables whose values should be saved in libtool wrapper scripts and
13891# restored at relink time.
13892variables_saved_for_relink="$variables_saved_for_relink"
13893
13894# Whether libtool must link a program against all its dependency libraries.
13895link_all_deplibs=$link_all_deplibs_CXX
13896
13897# Compile-time system search path for libraries
13898sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13899
13900# Run-time system search path for libraries
13901sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13902
13903# Fix the shell variable \$srcfile for the compiler.
13904fix_srcfile_path="$fix_srcfile_path_CXX"
13905
13906# Set to yes if exported symbols are required.
13907always_export_symbols=$always_export_symbols_CXX
13908
13909# The commands to list exported symbols.
13910export_symbols_cmds=$lt_export_symbols_cmds_CXX
13911
13912# The commands to extract the exported symbol list from a shared archive.
13913extract_expsyms_cmds=$lt_extract_expsyms_cmds
13914
13915# Symbols that should not be listed in the preloaded symbols.
13916exclude_expsyms=$lt_exclude_expsyms_CXX
13917
13918# Symbols that must always be exported.
13919include_expsyms=$lt_include_expsyms_CXX
13920
13921# ### END LIBTOOL TAG CONFIG: $tagname
13922
13923__EOF__
13924
13925
13926else
13927  # If there is no Makefile yet, we rely on a make rule to execute
13928  # `config.status --recheck' to rerun these tests and create the
13929  # libtool script then.
13930  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13931  if test -f "$ltmain_in"; then
13932    test -f Makefile && make "$ltmain"
13933  fi
13934fi
13935
13936
13937ac_ext=c
13938ac_cpp='$CPP $CPPFLAGS'
13939ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13940ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13941ac_compiler_gnu=$ac_cv_c_compiler_gnu
13942
13943CC=$lt_save_CC
13944LDCXX=$LD
13945LD=$lt_save_LD
13946GCC=$lt_save_GCC
13947with_gnu_ldcxx=$with_gnu_ld
13948with_gnu_ld=$lt_save_with_gnu_ld
13949lt_cv_path_LDCXX=$lt_cv_path_LD
13950lt_cv_path_LD=$lt_save_path_LD
13951lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13952lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13953
13954	else
13955	  tagname=""
13956	fi
13957	;;
13958
13959      F77)
13960	if test -n "$F77" && test "X$F77" != "Xno"; then
13961
13962ac_ext=f
13963ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13964ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13965ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13966
13967
13968archive_cmds_need_lc_F77=no
13969allow_undefined_flag_F77=
13970always_export_symbols_F77=no
13971archive_expsym_cmds_F77=
13972export_dynamic_flag_spec_F77=
13973hardcode_direct_F77=no
13974hardcode_libdir_flag_spec_F77=
13975hardcode_libdir_flag_spec_ld_F77=
13976hardcode_libdir_separator_F77=
13977hardcode_minus_L_F77=no
13978hardcode_automatic_F77=no
13979module_cmds_F77=
13980module_expsym_cmds_F77=
13981link_all_deplibs_F77=unknown
13982old_archive_cmds_F77=$old_archive_cmds
13983no_undefined_flag_F77=
13984whole_archive_flag_spec_F77=
13985enable_shared_with_static_runtimes_F77=no
13986
13987# Source file extension for f77 test sources.
13988ac_ext=f
13989
13990# Object file extension for compiled f77 test sources.
13991objext=o
13992objext_F77=$objext
13993
13994# Code to be used in simple compile tests
13995lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13996
13997# Code to be used in simple link tests
13998lt_simple_link_test_code="      program t\n      end\n"
13999
14000# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14001
14002# If no C compiler was specified, use CC.
14003LTCC=${LTCC-"$CC"}
14004
14005# Allow CC to be a program name with arguments.
14006compiler=$CC
14007
14008
14009# Allow CC to be a program name with arguments.
14010lt_save_CC="$CC"
14011CC=${F77-"f77"}
14012compiler=$CC
14013compiler_F77=$CC
14014cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
14015
14016echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14017echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14018echo "$as_me:$LINENO: result: $can_build_shared" >&5
14019echo "${ECHO_T}$can_build_shared" >&6
14020
14021echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14022echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14023test "$can_build_shared" = "no" && enable_shared=no
14024
14025# On AIX, shared libraries and static libraries use the same namespace, and
14026# are all built from PIC.
14027case "$host_os" in
14028aix3*)
14029  test "$enable_shared" = yes && enable_static=no
14030  if test -n "$RANLIB"; then
14031    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14032    postinstall_cmds='$RANLIB $lib'
14033  fi
14034  ;;
14035aix4* | aix5*)
14036  test "$enable_shared" = yes && enable_static=no
14037  ;;
14038esac
14039echo "$as_me:$LINENO: result: $enable_shared" >&5
14040echo "${ECHO_T}$enable_shared" >&6
14041
14042echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14043echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14044# Make sure either enable_shared or enable_static is yes.
14045test "$enable_shared" = yes || enable_static=yes
14046echo "$as_me:$LINENO: result: $enable_static" >&5
14047echo "${ECHO_T}$enable_static" >&6
14048
14049test "$ld_shlibs_F77" = no && can_build_shared=no
14050
14051GCC_F77="$G77"
14052LD_F77="$LD"
14053
14054lt_prog_compiler_wl_F77=
14055lt_prog_compiler_pic_F77=
14056lt_prog_compiler_static_F77=
14057
14058echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14059echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14060
14061  if test "$GCC" = yes; then
14062    lt_prog_compiler_wl_F77='-Wl,'
14063    lt_prog_compiler_static_F77='-static'
14064
14065    case $host_os in
14066      aix*)
14067      # All AIX code is PIC.
14068      if test "$host_cpu" = ia64; then
14069	# AIX 5 now supports IA64 processor
14070	lt_prog_compiler_static_F77='-Bstatic'
14071      fi
14072      ;;
14073
14074    amigaos*)
14075      # FIXME: we need at least 68020 code to build shared libraries, but
14076      # adding the `-m68020' flag to GCC prevents building anything better,
14077      # like `-m68040'.
14078      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14079      ;;
14080
14081    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14082      # PIC is the default for these OSes.
14083      ;;
14084
14085    mingw* | pw32* | os2*)
14086      # This hack is so that the source file can tell whether it is being
14087      # built for inclusion in a dll (and should export symbols for example).
14088      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14089      ;;
14090
14091    darwin* | rhapsody*)
14092      # PIC is the default on this platform
14093      # Common symbols not allowed in MH_DYLIB files
14094      lt_prog_compiler_pic_F77='-fno-common'
14095      ;;
14096
14097    msdosdjgpp*)
14098      # Just because we use GCC doesn't mean we suddenly get shared libraries
14099      # on systems that don't support them.
14100      lt_prog_compiler_can_build_shared_F77=no
14101      enable_shared=no
14102      ;;
14103
14104    sysv4*MP*)
14105      if test -d /usr/nec; then
14106	lt_prog_compiler_pic_F77=-Kconform_pic
14107      fi
14108      ;;
14109
14110    hpux*)
14111      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14112      # not for PA HP-UX.
14113      case "$host_cpu" in
14114      hppa*64*|ia64*)
14115	# +Z the default
14116	;;
14117      *)
14118	lt_prog_compiler_pic_F77='-fPIC'
14119	;;
14120      esac
14121      ;;
14122
14123    *)
14124      lt_prog_compiler_pic_F77='-fPIC'
14125      ;;
14126    esac
14127  else
14128    # PORTME Check for flag to pass linker flags through the system compiler.
14129    case $host_os in
14130    aix*)
14131      lt_prog_compiler_wl_F77='-Wl,'
14132      if test "$host_cpu" = ia64; then
14133	# AIX 5 now supports IA64 processor
14134	lt_prog_compiler_static_F77='-Bstatic'
14135      else
14136	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14137      fi
14138      ;;
14139
14140    mingw* | pw32* | os2*)
14141      # This hack is so that the source file can tell whether it is being
14142      # built for inclusion in a dll (and should export symbols for example).
14143      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14144      ;;
14145
14146    hpux9* | hpux10* | hpux11*)
14147      lt_prog_compiler_wl_F77='-Wl,'
14148      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14149      # not for PA HP-UX.
14150      case "$host_cpu" in
14151      hppa*64*|ia64*)
14152	# +Z the default
14153	;;
14154      *)
14155	lt_prog_compiler_pic_F77='+Z'
14156	;;
14157      esac
14158      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14159      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14160      ;;
14161
14162    irix5* | irix6* | nonstopux*)
14163      lt_prog_compiler_wl_F77='-Wl,'
14164      # PIC (with -KPIC) is the default.
14165      lt_prog_compiler_static_F77='-non_shared'
14166      ;;
14167
14168    newsos6)
14169      lt_prog_compiler_pic_F77='-KPIC'
14170      lt_prog_compiler_static_F77='-Bstatic'
14171      ;;
14172
14173    linux*)
14174      case $CC in
14175      icc* | ecc*)
14176	lt_prog_compiler_wl_F77='-Wl,'
14177	lt_prog_compiler_pic_F77='-KPIC'
14178	lt_prog_compiler_static_F77='-static'
14179        ;;
14180      ccc*)
14181        lt_prog_compiler_wl_F77='-Wl,'
14182        # All Alpha code is PIC.
14183        lt_prog_compiler_static_F77='-non_shared'
14184        ;;
14185      esac
14186      ;;
14187
14188    osf3* | osf4* | osf5*)
14189      lt_prog_compiler_wl_F77='-Wl,'
14190      # All OSF/1 code is PIC.
14191      lt_prog_compiler_static_F77='-non_shared'
14192      ;;
14193
14194    sco3.2v5*)
14195      lt_prog_compiler_pic_F77='-Kpic'
14196      lt_prog_compiler_static_F77='-dn'
14197      ;;
14198
14199    solaris*)
14200      lt_prog_compiler_wl_F77='-Wl,'
14201      lt_prog_compiler_pic_F77='-KPIC'
14202      lt_prog_compiler_static_F77='-Bstatic'
14203      ;;
14204
14205    sunos4*)
14206      lt_prog_compiler_wl_F77='-Qoption ld '
14207      lt_prog_compiler_pic_F77='-PIC'
14208      lt_prog_compiler_static_F77='-Bstatic'
14209      ;;
14210
14211    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14212      lt_prog_compiler_wl_F77='-Wl,'
14213      lt_prog_compiler_pic_F77='-KPIC'
14214      lt_prog_compiler_static_F77='-Bstatic'
14215      ;;
14216
14217    sysv4*MP*)
14218      if test -d /usr/nec ;then
14219	lt_prog_compiler_pic_F77='-Kconform_pic'
14220	lt_prog_compiler_static_F77='-Bstatic'
14221      fi
14222      ;;
14223
14224    uts4*)
14225      lt_prog_compiler_pic_F77='-pic'
14226      lt_prog_compiler_static_F77='-Bstatic'
14227      ;;
14228
14229    *)
14230      lt_prog_compiler_can_build_shared_F77=no
14231      ;;
14232    esac
14233  fi
14234
14235echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14236echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14237
14238#
14239# Check to make sure the PIC flag actually works.
14240#
14241if test -n "$lt_prog_compiler_pic_F77"; then
14242
14243echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14244echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14245if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14246  echo $ECHO_N "(cached) $ECHO_C" >&6
14247else
14248  lt_prog_compiler_pic_works_F77=no
14249  ac_outfile=conftest.$ac_objext
14250   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14251   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14252   # Insert the option either (1) after the last *FLAGS variable, or
14253   # (2) before a word containing "conftest.", or (3) at the end.
14254   # Note that $ac_compile itself does not contain backslashes and begins
14255   # with a dollar sign (not a hyphen), so the echo should work correctly.
14256   # The option is referenced via a variable to avoid confusing sed.
14257   lt_compile=`echo "$ac_compile" | $SED \
14258   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14259   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14260   -e 's:$: $lt_compiler_flag:'`
14261   (eval echo "\"\$as_me:14261: $lt_compile\"" >&5)
14262   (eval "$lt_compile" 2>conftest.err)
14263   ac_status=$?
14264   cat conftest.err >&5
14265   echo "$as_me:14265: \$? = $ac_status" >&5
14266   if (exit $ac_status) && test -s "$ac_outfile"; then
14267     # The compiler can only warn and ignore the option if not recognized
14268     # So say no if there are warnings
14269     if test ! -s conftest.err; then
14270       lt_prog_compiler_pic_works_F77=yes
14271     fi
14272   fi
14273   $rm conftest*
14274
14275fi
14276echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14277echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14278
14279if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14280    case $lt_prog_compiler_pic_F77 in
14281     "" | " "*) ;;
14282     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14283     esac
14284else
14285    lt_prog_compiler_pic_F77=
14286     lt_prog_compiler_can_build_shared_F77=no
14287fi
14288
14289fi
14290case "$host_os" in
14291  # For platforms which do not support PIC, -DPIC is meaningless:
14292  *djgpp*)
14293    lt_prog_compiler_pic_F77=
14294    ;;
14295  *)
14296    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14297    ;;
14298esac
14299
14300echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14301echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14302if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14303  echo $ECHO_N "(cached) $ECHO_C" >&6
14304else
14305  lt_cv_prog_compiler_c_o_F77=no
14306   $rm -r conftest 2>/dev/null
14307   mkdir conftest
14308   cd conftest
14309   mkdir out
14310   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14311
14312   lt_compiler_flag="-o out/conftest2.$ac_objext"
14313   # Insert the option either (1) after the last *FLAGS variable, or
14314   # (2) before a word containing "conftest.", or (3) at the end.
14315   # Note that $ac_compile itself does not contain backslashes and begins
14316   # with a dollar sign (not a hyphen), so the echo should work correctly.
14317   lt_compile=`echo "$ac_compile" | $SED \
14318   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14319   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14320   -e 's:$: $lt_compiler_flag:'`
14321   (eval echo "\"\$as_me:14321: $lt_compile\"" >&5)
14322   (eval "$lt_compile" 2>out/conftest.err)
14323   ac_status=$?
14324   cat out/conftest.err >&5
14325   echo "$as_me:14325: \$? = $ac_status" >&5
14326   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14327   then
14328     # The compiler can only warn and ignore the option if not recognized
14329     # So say no if there are warnings
14330     if test ! -s out/conftest.err; then
14331       lt_cv_prog_compiler_c_o_F77=yes
14332     fi
14333   fi
14334   chmod u+w .
14335   $rm conftest*
14336   # SGI C++ compiler will create directory out/ii_files/ for
14337   # template instantiation
14338   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14339   $rm out/* && rmdir out
14340   cd ..
14341   rmdir conftest
14342   $rm conftest*
14343
14344fi
14345echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14346echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
14347
14348
14349hard_links="nottested"
14350if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14351  # do not overwrite the value of need_locks provided by the user
14352  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14353echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14354  hard_links=yes
14355  $rm conftest*
14356  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14357  touch conftest.a
14358  ln conftest.a conftest.b 2>&5 || hard_links=no
14359  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14360  echo "$as_me:$LINENO: result: $hard_links" >&5
14361echo "${ECHO_T}$hard_links" >&6
14362  if test "$hard_links" = no; then
14363    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14364echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14365    need_locks=warn
14366  fi
14367else
14368  need_locks=no
14369fi
14370
14371echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14372echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14373
14374  runpath_var=
14375  allow_undefined_flag_F77=
14376  enable_shared_with_static_runtimes_F77=no
14377  archive_cmds_F77=
14378  archive_expsym_cmds_F77=
14379  old_archive_From_new_cmds_F77=
14380  old_archive_from_expsyms_cmds_F77=
14381  export_dynamic_flag_spec_F77=
14382  whole_archive_flag_spec_F77=
14383  thread_safe_flag_spec_F77=
14384  hardcode_libdir_flag_spec_F77=
14385  hardcode_libdir_flag_spec_ld_F77=
14386  hardcode_libdir_separator_F77=
14387  hardcode_direct_F77=no
14388  hardcode_minus_L_F77=no
14389  hardcode_shlibpath_var_F77=unsupported
14390  link_all_deplibs_F77=unknown
14391  hardcode_automatic_F77=no
14392  module_cmds_F77=
14393  module_expsym_cmds_F77=
14394  always_export_symbols_F77=no
14395  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14396  # include_expsyms should be a list of space-separated symbols to be *always*
14397  # included in the symbol list
14398  include_expsyms_F77=
14399  # exclude_expsyms can be an extended regexp of symbols to exclude
14400  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14401  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14402  # as well as any symbol that contains `d'.
14403  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14404  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14405  # platforms (ab)use it in PIC code, but their linkers get confused if
14406  # the symbol is explicitly referenced.  Since portable code cannot
14407  # rely on this symbol name, it's probably fine to never include it in
14408  # preloaded symbol tables.
14409  extract_expsyms_cmds=
14410
14411  case $host_os in
14412  cygwin* | mingw* | pw32*)
14413    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14414    # When not using gcc, we currently assume that we are using
14415    # Microsoft Visual C++.
14416    if test "$GCC" != yes; then
14417      with_gnu_ld=no
14418    fi
14419    ;;
14420  openbsd*)
14421    with_gnu_ld=no
14422    ;;
14423  esac
14424
14425  ld_shlibs_F77=yes
14426  if test "$with_gnu_ld" = yes; then
14427    # If archive_cmds runs LD, not CC, wlarc should be empty
14428    wlarc='${wl}'
14429
14430    # See if GNU ld supports shared libraries.
14431    case $host_os in
14432    aix3* | aix4* | aix5*)
14433      # On AIX/PPC, the GNU linker is very broken
14434      if test "$host_cpu" != ia64; then
14435	ld_shlibs_F77=no
14436	cat <<EOF 1>&2
14437
14438*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14439*** to be unable to reliably create shared libraries on AIX.
14440*** Therefore, libtool is disabling shared libraries support.  If you
14441*** really care for shared libraries, you may want to modify your PATH
14442*** so that a non-GNU linker is found, and then restart.
14443
14444EOF
14445      fi
14446      ;;
14447
14448    amigaos*)
14449      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)'
14450      hardcode_libdir_flag_spec_F77='-L$libdir'
14451      hardcode_minus_L_F77=yes
14452
14453      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14454      # that the semantics of dynamic libraries on AmigaOS, at least up
14455      # to version 4, is to share data among multiple programs linked
14456      # with the same dynamic library.  Since this doesn't match the
14457      # behavior of shared libraries on other platforms, we can't use
14458      # them.
14459      ld_shlibs_F77=no
14460      ;;
14461
14462    beos*)
14463      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14464	allow_undefined_flag_F77=unsupported
14465	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14466	# support --undefined.  This deserves some investigation.  FIXME
14467	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14468      else
14469	ld_shlibs_F77=no
14470      fi
14471      ;;
14472
14473    cygwin* | mingw* | pw32*)
14474      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14475      # as there is no search path for DLLs.
14476      hardcode_libdir_flag_spec_F77='-L$libdir'
14477      allow_undefined_flag_F77=unsupported
14478      always_export_symbols_F77=no
14479      enable_shared_with_static_runtimes_F77=yes
14480      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14481
14482      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14483        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14484	# If the export-symbols file already is a .def file (1st line
14485	# is EXPORTS), use it as is; otherwise, prepend...
14486	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14487	  cp $export_symbols $output_objdir/$soname.def;
14488	else
14489	  echo EXPORTS > $output_objdir/$soname.def;
14490	  cat $export_symbols >> $output_objdir/$soname.def;
14491	fi~
14492	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
14493      else
14494	ld_shlibs=no
14495      fi
14496      ;;
14497
14498    netbsd* | knetbsd*-gnu)
14499      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14500	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14501	wlarc=
14502      else
14503	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14504	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14505      fi
14506      ;;
14507
14508    solaris* | sysv5*)
14509      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14510	ld_shlibs_F77=no
14511	cat <<EOF 1>&2
14512
14513*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14514*** create shared libraries on Solaris systems.  Therefore, libtool
14515*** is disabling shared libraries support.  We urge you to upgrade GNU
14516*** binutils to release 2.9.1 or newer.  Another option is to modify
14517*** your PATH or compiler configuration so that the native linker is
14518*** used, and then restart.
14519
14520EOF
14521      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14522	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14523	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14524      else
14525	ld_shlibs_F77=no
14526      fi
14527      ;;
14528
14529    sunos4*)
14530      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14531      wlarc=
14532      hardcode_direct_F77=yes
14533      hardcode_shlibpath_var_F77=no
14534      ;;
14535
14536  linux*)
14537    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14538        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14539	archive_cmds_F77="$tmp_archive_cmds"
14540      supports_anon_versioning=no
14541      case `$LD -v 2>/dev/null` in
14542        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14543        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14544        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14545        *\ 2.11.*) ;; # other 2.11 versions
14546        *) supports_anon_versioning=yes ;;
14547      esac
14548      if test $supports_anon_versioning = yes; then
14549        archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14550cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14551$echo "local: *; };" >> $output_objdir/$libname.ver~
14552        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14553      else
14554        archive_expsym_cmds_F77="$tmp_archive_cmds"
14555      fi
14556      link_all_deplibs_F77=no
14557    else
14558      ld_shlibs_F77=no
14559    fi
14560    ;;
14561
14562    *)
14563      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14564	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14565	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14566      else
14567	ld_shlibs_F77=no
14568      fi
14569      ;;
14570    esac
14571
14572    if test "$ld_shlibs_F77" = yes; then
14573      runpath_var=LD_RUN_PATH
14574      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14575      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14576      # ancient GNU ld didn't support --whole-archive et. al.
14577      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14578 	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14579      else
14580  	whole_archive_flag_spec_F77=
14581      fi
14582    fi
14583  else
14584    # PORTME fill in a description of your system's linker (not GNU ld)
14585    case $host_os in
14586    aix3*)
14587      allow_undefined_flag_F77=unsupported
14588      always_export_symbols_F77=yes
14589      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'
14590      # Note: this linker hardcodes the directories in LIBPATH if there
14591      # are no directories specified by -L.
14592      hardcode_minus_L_F77=yes
14593      if test "$GCC" = yes && test -z "$link_static_flag"; then
14594	# Neither direct hardcoding nor static linking is supported with a
14595	# broken collect2.
14596	hardcode_direct_F77=unsupported
14597      fi
14598      ;;
14599
14600    aix4* | aix5*)
14601      if test "$host_cpu" = ia64; then
14602	# On IA64, the linker does run time linking by default, so we don't
14603	# have to do anything special.
14604	aix_use_runtimelinking=no
14605	exp_sym_flag='-Bexport'
14606	no_entry_flag=""
14607      else
14608	# If we're using GNU nm, then we don't want the "-C" option.
14609	# -C means demangle to AIX nm, but means don't demangle with GNU nm
14610	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14611	  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'
14612	else
14613	  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'
14614	fi
14615	aix_use_runtimelinking=no
14616
14617	# Test if we are trying to use run time linking or normal
14618	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14619	# need to do runtime linking.
14620	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14621	  for ld_flag in $LDFLAGS; do
14622  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14623  	    aix_use_runtimelinking=yes
14624  	    break
14625  	  fi
14626	  done
14627	esac
14628
14629	exp_sym_flag='-bexport'
14630	no_entry_flag='-bnoentry'
14631      fi
14632
14633      # When large executables or shared objects are built, AIX ld can
14634      # have problems creating the table of contents.  If linking a library
14635      # or program results in "error TOC overflow" add -mminimal-toc to
14636      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14637      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14638
14639      archive_cmds_F77=''
14640      hardcode_direct_F77=yes
14641      hardcode_libdir_separator_F77=':'
14642      link_all_deplibs_F77=yes
14643
14644      if test "$GCC" = yes; then
14645	case $host_os in aix4.012|aix4.012.*)
14646	# We only want to do this on AIX 4.2 and lower, the check
14647	# below for broken collect2 doesn't work under 4.3+
14648	  collect2name=`${CC} -print-prog-name=collect2`
14649	  if test -f "$collect2name" && \
14650  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
14651	  then
14652  	  # We have reworked collect2
14653  	  hardcode_direct_F77=yes
14654	  else
14655  	  # We have old collect2
14656  	  hardcode_direct_F77=unsupported
14657  	  # It fails to find uninstalled libraries when the uninstalled
14658  	  # path is not listed in the libpath.  Setting hardcode_minus_L
14659  	  # to unsupported forces relinking
14660  	  hardcode_minus_L_F77=yes
14661  	  hardcode_libdir_flag_spec_F77='-L$libdir'
14662  	  hardcode_libdir_separator_F77=
14663	  fi
14664	esac
14665	shared_flag='-shared'
14666      else
14667	# not using gcc
14668	if test "$host_cpu" = ia64; then
14669  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14670  	# chokes on -Wl,-G. The following line is correct:
14671	  shared_flag='-G'
14672	else
14673  	if test "$aix_use_runtimelinking" = yes; then
14674	    shared_flag='${wl}-G'
14675	  else
14676	    shared_flag='${wl}-bM:SRE'
14677  	fi
14678	fi
14679      fi
14680
14681      # It seems that -bexpall does not export symbols beginning with
14682      # underscore (_), so it is better to generate a list of symbols to export.
14683      always_export_symbols_F77=yes
14684      if test "$aix_use_runtimelinking" = yes; then
14685	# Warning - without using the other runtime loading flags (-brtl),
14686	# -berok will link without error, but may produce a broken library.
14687	allow_undefined_flag_F77='-berok'
14688       # Determine the default libpath from the value encoded in an empty executable.
14689       cat >conftest.$ac_ext <<_ACEOF
14690      program main
14691
14692      end
14693_ACEOF
14694rm -f conftest.$ac_objext conftest$ac_exeext
14695if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14696  (eval $ac_link) 2>conftest.er1
14697  ac_status=$?
14698  grep -v '^ *+' conftest.er1 >conftest.err
14699  rm -f conftest.er1
14700  cat conftest.err >&5
14701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14702  (exit $ac_status); } &&
14703	 { ac_try='test -z "$ac_f77_werror_flag"			 || test ! -s conftest.err'
14704  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14705  (eval $ac_try) 2>&5
14706  ac_status=$?
14707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14708  (exit $ac_status); }; } &&
14709	 { ac_try='test -s conftest$ac_exeext'
14710  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14711  (eval $ac_try) 2>&5
14712  ac_status=$?
14713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14714  (exit $ac_status); }; }; then
14715
14716aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14717}'`
14718# Check for a 64-bit object if we didn't find anything.
14719if 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; }
14720}'`; fi
14721else
14722  echo "$as_me: failed program was:" >&5
14723sed 's/^/| /' conftest.$ac_ext >&5
14724
14725fi
14726rm -f conftest.err conftest.$ac_objext \
14727      conftest$ac_exeext conftest.$ac_ext
14728if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14729
14730       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14731	archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14732       else
14733	if test "$host_cpu" = ia64; then
14734	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14735	  allow_undefined_flag_F77="-z nodefs"
14736	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
14737	else
14738	 # Determine the default libpath from the value encoded in an empty executable.
14739	 cat >conftest.$ac_ext <<_ACEOF
14740      program main
14741
14742      end
14743_ACEOF
14744rm -f conftest.$ac_objext conftest$ac_exeext
14745if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14746  (eval $ac_link) 2>conftest.er1
14747  ac_status=$?
14748  grep -v '^ *+' conftest.er1 >conftest.err
14749  rm -f conftest.er1
14750  cat conftest.err >&5
14751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14752  (exit $ac_status); } &&
14753	 { ac_try='test -z "$ac_f77_werror_flag"			 || test ! -s conftest.err'
14754  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14755  (eval $ac_try) 2>&5
14756  ac_status=$?
14757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14758  (exit $ac_status); }; } &&
14759	 { ac_try='test -s conftest$ac_exeext'
14760  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14761  (eval $ac_try) 2>&5
14762  ac_status=$?
14763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14764  (exit $ac_status); }; }; then
14765
14766aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14767}'`
14768# Check for a 64-bit object if we didn't find anything.
14769if 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; }
14770}'`; fi
14771else
14772  echo "$as_me: failed program was:" >&5
14773sed 's/^/| /' conftest.$ac_ext >&5
14774
14775fi
14776rm -f conftest.err conftest.$ac_objext \
14777      conftest$ac_exeext conftest.$ac_ext
14778if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14779
14780	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14781	  # Warning - without using the other run time loading flags,
14782	  # -berok will link without error, but may produce a broken library.
14783	  no_undefined_flag_F77=' ${wl}-bernotok'
14784	  allow_undefined_flag_F77=' ${wl}-berok'
14785	  # -bexpall does not export symbols beginning with underscore (_)
14786	  always_export_symbols_F77=yes
14787	  # Exported symbols can be pulled into shared objects from archives
14788	  whole_archive_flag_spec_F77=' '
14789	  archive_cmds_need_lc_F77=yes
14790	  # This is similar to how AIX traditionally builds it's shared libraries.
14791	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14792	fi
14793      fi
14794      ;;
14795
14796    amigaos*)
14797      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)'
14798      hardcode_libdir_flag_spec_F77='-L$libdir'
14799      hardcode_minus_L_F77=yes
14800      # see comment about different semantics on the GNU ld section
14801      ld_shlibs_F77=no
14802      ;;
14803
14804    bsdi4*)
14805      export_dynamic_flag_spec_F77=-rdynamic
14806      ;;
14807
14808    cygwin* | mingw* | pw32*)
14809      # When not using gcc, we currently assume that we are using
14810      # Microsoft Visual C++.
14811      # hardcode_libdir_flag_spec is actually meaningless, as there is
14812      # no search path for DLLs.
14813      hardcode_libdir_flag_spec_F77=' '
14814      allow_undefined_flag_F77=unsupported
14815      # Tell ltmain to make .lib files, not .a files.
14816      libext=lib
14817      # Tell ltmain to make .dll files, not .so files.
14818      shrext_cmds=".dll"
14819      # FIXME: Setting linknames here is a bad hack.
14820      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14821      # The linker will automatically build a .lib file if we build a DLL.
14822      old_archive_From_new_cmds_F77='true'
14823      # FIXME: Should let the user specify the lib program.
14824      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14825      fix_srcfile_path='`cygpath -w "$srcfile"`'
14826      enable_shared_with_static_runtimes_F77=yes
14827      ;;
14828
14829    darwin* | rhapsody*)
14830    if test "$GXX" = yes ; then
14831      archive_cmds_need_lc_F77=no
14832      case "$host_os" in
14833      rhapsody* | darwin1.[012])
14834	allow_undefined_flag_F77='-undefined suppress'
14835	;;
14836      *) # Darwin 1.3 on
14837      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14838      	allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14839      else
14840        case ${MACOSX_DEPLOYMENT_TARGET} in
14841          10.[012])
14842            allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14843            ;;
14844          10.*)
14845            allow_undefined_flag_F77='-undefined dynamic_lookup'
14846            ;;
14847        esac
14848      fi
14849	;;
14850      esac
14851    	lt_int_apple_cc_single_mod=no
14852    	output_verbose_link_cmd='echo'
14853    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14854    	  lt_int_apple_cc_single_mod=yes
14855    	fi
14856    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14857    	  archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14858    	else
14859        archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14860      fi
14861      module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14862      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14863        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14864          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14865        else
14866          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14867        fi
14868          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}'
14869      hardcode_direct_F77=no
14870      hardcode_automatic_F77=yes
14871      hardcode_shlibpath_var_F77=unsupported
14872      whole_archive_flag_spec_F77='-all_load $convenience'
14873      link_all_deplibs_F77=yes
14874    else
14875      ld_shlibs_F77=no
14876    fi
14877      ;;
14878
14879    dgux*)
14880      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14881      hardcode_libdir_flag_spec_F77='-L$libdir'
14882      hardcode_shlibpath_var_F77=no
14883      ;;
14884
14885    freebsd1*)
14886      ld_shlibs_F77=no
14887      ;;
14888
14889    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14890    # support.  Future versions do this automatically, but an explicit c++rt0.o
14891    # does not break anything, and helps significantly (at the cost of a little
14892    # extra space).
14893    freebsd2.2*)
14894      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14895      hardcode_libdir_flag_spec_F77='-R$libdir'
14896      hardcode_direct_F77=yes
14897      hardcode_shlibpath_var_F77=no
14898      ;;
14899
14900    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14901    freebsd2*)
14902      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14903      hardcode_direct_F77=yes
14904      hardcode_minus_L_F77=yes
14905      hardcode_shlibpath_var_F77=no
14906      ;;
14907
14908    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14909    freebsd* | kfreebsd*-gnu)
14910      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14911      hardcode_libdir_flag_spec_F77='-R$libdir'
14912      hardcode_direct_F77=yes
14913      hardcode_shlibpath_var_F77=no
14914      ;;
14915
14916    hpux9*)
14917      if test "$GCC" = yes; then
14918	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'
14919      else
14920	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'
14921      fi
14922      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14923      hardcode_libdir_separator_F77=:
14924      hardcode_direct_F77=yes
14925
14926      # hardcode_minus_L: Not really in the search PATH,
14927      # but as the default location of the library.
14928      hardcode_minus_L_F77=yes
14929      export_dynamic_flag_spec_F77='${wl}-E'
14930      ;;
14931
14932    hpux10* | hpux11*)
14933      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14934	case "$host_cpu" in
14935	hppa*64*|ia64*)
14936	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14937	  ;;
14938	*)
14939	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14940	  ;;
14941	esac
14942      else
14943	case "$host_cpu" in
14944	hppa*64*|ia64*)
14945	  archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14946	  ;;
14947	*)
14948	  archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14949	  ;;
14950	esac
14951      fi
14952      if test "$with_gnu_ld" = no; then
14953	case "$host_cpu" in
14954	hppa*64*)
14955	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14956	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14957	  hardcode_libdir_separator_F77=:
14958	  hardcode_direct_F77=no
14959	  hardcode_shlibpath_var_F77=no
14960	  ;;
14961	ia64*)
14962	  hardcode_libdir_flag_spec_F77='-L$libdir'
14963	  hardcode_direct_F77=no
14964	  hardcode_shlibpath_var_F77=no
14965
14966	  # hardcode_minus_L: Not really in the search PATH,
14967	  # but as the default location of the library.
14968	  hardcode_minus_L_F77=yes
14969	  ;;
14970	*)
14971	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14972	  hardcode_libdir_separator_F77=:
14973	  hardcode_direct_F77=yes
14974	  export_dynamic_flag_spec_F77='${wl}-E'
14975
14976	  # hardcode_minus_L: Not really in the search PATH,
14977	  # but as the default location of the library.
14978	  hardcode_minus_L_F77=yes
14979	  ;;
14980	esac
14981      fi
14982      ;;
14983
14984    irix5* | irix6* | nonstopux*)
14985      if test "$GCC" = yes; then
14986	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'
14987      else
14988	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'
14989	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14990      fi
14991      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14992      hardcode_libdir_separator_F77=:
14993      link_all_deplibs_F77=yes
14994      ;;
14995
14996    netbsd* | knetbsd*-gnu)
14997      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14998	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14999      else
15000	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15001      fi
15002      hardcode_libdir_flag_spec_F77='-R$libdir'
15003      hardcode_direct_F77=yes
15004      hardcode_shlibpath_var_F77=no
15005      ;;
15006
15007    newsos6)
15008      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15009      hardcode_direct_F77=yes
15010      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15011      hardcode_libdir_separator_F77=:
15012      hardcode_shlibpath_var_F77=no
15013      ;;
15014
15015    openbsd*)
15016      hardcode_direct_F77=yes
15017      hardcode_shlibpath_var_F77=no
15018      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15019	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15020	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15021	export_dynamic_flag_spec_F77='${wl}-E'
15022      else
15023       case $host_os in
15024	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15025	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15026	   hardcode_libdir_flag_spec_F77='-R$libdir'
15027	   ;;
15028	 *)
15029	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15030	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15031	   ;;
15032       esac
15033      fi
15034      ;;
15035
15036    os2*)
15037      hardcode_libdir_flag_spec_F77='-L$libdir'
15038      hardcode_minus_L_F77=yes
15039      allow_undefined_flag_F77=unsupported
15040      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'
15041      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15042      ;;
15043
15044    osf3*)
15045      if test "$GCC" = yes; then
15046	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15047	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'
15048      else
15049	allow_undefined_flag_F77=' -expect_unresolved \*'
15050	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'
15051      fi
15052      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15053      hardcode_libdir_separator_F77=:
15054      ;;
15055
15056    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15057      if test "$GCC" = yes; then
15058	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15059	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'
15060	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15061      else
15062	allow_undefined_flag_F77=' -expect_unresolved \*'
15063	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'
15064	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~
15065	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
15066
15067	# Both c and cxx compiler support -rpath directly
15068	hardcode_libdir_flag_spec_F77='-rpath $libdir'
15069      fi
15070      hardcode_libdir_separator_F77=:
15071      ;;
15072
15073    sco3.2v5*)
15074      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15075      hardcode_shlibpath_var_F77=no
15076      export_dynamic_flag_spec_F77='${wl}-Bexport'
15077      runpath_var=LD_RUN_PATH
15078      hardcode_runpath_var=yes
15079      ;;
15080
15081    solaris*)
15082      no_undefined_flag_F77=' -z text'
15083      if test "$GCC" = yes; then
15084	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15085	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15086	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15087      else
15088	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15089	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15090  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15091      fi
15092      hardcode_libdir_flag_spec_F77='-R$libdir'
15093      hardcode_shlibpath_var_F77=no
15094      case $host_os in
15095      solaris2.[0-5] | solaris2.[0-5].*) ;;
15096      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15097	whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15098      esac
15099      link_all_deplibs_F77=yes
15100      ;;
15101
15102    sunos4*)
15103      if test "x$host_vendor" = xsequent; then
15104	# Use $CC to link under sequent, because it throws in some extra .o
15105	# files that make .init and .fini sections work.
15106	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15107      else
15108	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15109      fi
15110      hardcode_libdir_flag_spec_F77='-L$libdir'
15111      hardcode_direct_F77=yes
15112      hardcode_minus_L_F77=yes
15113      hardcode_shlibpath_var_F77=no
15114      ;;
15115
15116    sysv4)
15117      case $host_vendor in
15118	sni)
15119	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15120	  hardcode_direct_F77=yes # is this really true???
15121	;;
15122	siemens)
15123	  ## LD is ld it makes a PLAMLIB
15124	  ## CC just makes a GrossModule.
15125	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15126	  reload_cmds_F77='$CC -r -o $output$reload_objs'
15127	  hardcode_direct_F77=no
15128        ;;
15129	motorola)
15130	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15131	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15132	;;
15133      esac
15134      runpath_var='LD_RUN_PATH'
15135      hardcode_shlibpath_var_F77=no
15136      ;;
15137
15138    sysv4.3*)
15139      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15140      hardcode_shlibpath_var_F77=no
15141      export_dynamic_flag_spec_F77='-Bexport'
15142      ;;
15143
15144    sysv4*MP*)
15145      if test -d /usr/nec; then
15146	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15147	hardcode_shlibpath_var_F77=no
15148	runpath_var=LD_RUN_PATH
15149	hardcode_runpath_var=yes
15150	ld_shlibs_F77=yes
15151      fi
15152      ;;
15153
15154    sysv4.2uw2*)
15155      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15156      hardcode_direct_F77=yes
15157      hardcode_minus_L_F77=no
15158      hardcode_shlibpath_var_F77=no
15159      hardcode_runpath_var=yes
15160      runpath_var=LD_RUN_PATH
15161      ;;
15162
15163   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
15164      no_undefined_flag_F77='${wl}-z ${wl}text'
15165      if test "$GCC" = yes; then
15166	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15167      else
15168	archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15169      fi
15170      runpath_var='LD_RUN_PATH'
15171      hardcode_shlibpath_var_F77=no
15172      ;;
15173
15174    sysv5*)
15175      no_undefined_flag_F77=' -z text'
15176      # $CC -shared without GNU ld will not create a library from C++
15177      # object files and a static libstdc++, better avoid it by now
15178      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15179      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15180  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15181      hardcode_libdir_flag_spec_F77=
15182      hardcode_shlibpath_var_F77=no
15183      runpath_var='LD_RUN_PATH'
15184      ;;
15185
15186    uts4*)
15187      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15188      hardcode_libdir_flag_spec_F77='-L$libdir'
15189      hardcode_shlibpath_var_F77=no
15190      ;;
15191
15192    *)
15193      ld_shlibs_F77=no
15194      ;;
15195    esac
15196  fi
15197
15198echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15199echo "${ECHO_T}$ld_shlibs_F77" >&6
15200test "$ld_shlibs_F77" = no && can_build_shared=no
15201
15202variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15203if test "$GCC" = yes; then
15204  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15205fi
15206
15207#
15208# Do we need to explicitly link libc?
15209#
15210case "x$archive_cmds_need_lc_F77" in
15211x|xyes)
15212  # Assume -lc should be added
15213  archive_cmds_need_lc_F77=yes
15214
15215  if test "$enable_shared" = yes && test "$GCC" = yes; then
15216    case $archive_cmds_F77 in
15217    *'~'*)
15218      # FIXME: we may have to deal with multi-command sequences.
15219      ;;
15220    '$CC '*)
15221      # Test whether the compiler implicitly links with -lc since on some
15222      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15223      # to ld, don't add -lc before -lgcc.
15224      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15225echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15226      $rm conftest*
15227      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15228
15229      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15230  (eval $ac_compile) 2>&5
15231  ac_status=$?
15232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15233  (exit $ac_status); } 2>conftest.err; then
15234        soname=conftest
15235        lib=conftest
15236        libobjs=conftest.$ac_objext
15237        deplibs=
15238        wl=$lt_prog_compiler_wl_F77
15239        compiler_flags=-v
15240        linker_flags=-v
15241        verstring=
15242        output_objdir=.
15243        libname=conftest
15244        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15245        allow_undefined_flag_F77=
15246        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15247  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15248  ac_status=$?
15249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15250  (exit $ac_status); }
15251        then
15252	  archive_cmds_need_lc_F77=no
15253        else
15254	  archive_cmds_need_lc_F77=yes
15255        fi
15256        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15257      else
15258        cat conftest.err 1>&5
15259      fi
15260      $rm conftest*
15261      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15262echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15263      ;;
15264    esac
15265  fi
15266  ;;
15267esac
15268
15269echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15270echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15271library_names_spec=
15272libname_spec='lib$name'
15273soname_spec=
15274shrext_cmds=".so"
15275postinstall_cmds=
15276postuninstall_cmds=
15277finish_cmds=
15278finish_eval=
15279shlibpath_var=
15280shlibpath_overrides_runpath=unknown
15281version_type=none
15282dynamic_linker="$host_os ld.so"
15283sys_lib_dlsearch_path_spec="/lib /usr/lib"
15284if test "$GCC" = yes; then
15285  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15286  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15287    # if the path contains ";" then we assume it to be the separator
15288    # otherwise default to the standard path separator (i.e. ":") - it is
15289    # assumed that no part of a normal pathname contains ";" but that should
15290    # okay in the real world where ";" in dirpaths is itself problematic.
15291    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15292  else
15293    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15294  fi
15295else
15296  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15297fi
15298need_lib_prefix=unknown
15299hardcode_into_libs=no
15300
15301# when you set need_version to no, make sure it does not cause -set_version
15302# flags to be left without arguments
15303need_version=unknown
15304
15305case $host_os in
15306aix3*)
15307  version_type=linux
15308  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15309  shlibpath_var=LIBPATH
15310
15311  # AIX 3 has no versioning support, so we append a major version to the name.
15312  soname_spec='${libname}${release}${shared_ext}$major'
15313  ;;
15314
15315aix4* | aix5*)
15316  version_type=linux
15317  need_lib_prefix=no
15318  need_version=no
15319  hardcode_into_libs=yes
15320  if test "$host_cpu" = ia64; then
15321    # AIX 5 supports IA64
15322    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15323    shlibpath_var=LD_LIBRARY_PATH
15324  else
15325    # With GCC up to 2.95.x, collect2 would create an import file
15326    # for dependence libraries.  The import file would start with
15327    # the line `#! .'.  This would cause the generated library to
15328    # depend on `.', always an invalid library.  This was fixed in
15329    # development snapshots of GCC prior to 3.0.
15330    case $host_os in
15331      aix4 | aix4.[01] | aix4.[01].*)
15332      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15333	   echo ' yes '
15334	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15335	:
15336      else
15337	can_build_shared=no
15338      fi
15339      ;;
15340    esac
15341    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15342    # soname into executable. Probably we can add versioning support to
15343    # collect2, so additional links can be useful in future.
15344    if test "$aix_use_runtimelinking" = yes; then
15345      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15346      # instead of lib<name>.a to let people know that these are not
15347      # typical AIX shared libraries.
15348      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15349    else
15350      # We preserve .a as extension for shared libraries through AIX4.2
15351      # and later when we are not doing run time linking.
15352      library_names_spec='${libname}${release}.a $libname.a'
15353      soname_spec='${libname}${release}${shared_ext}$major'
15354    fi
15355    shlibpath_var=LIBPATH
15356  fi
15357  ;;
15358
15359amigaos*)
15360  library_names_spec='$libname.ixlibrary $libname.a'
15361  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15362  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'
15363  ;;
15364
15365beos*)
15366  library_names_spec='${libname}${shared_ext}'
15367  dynamic_linker="$host_os ld.so"
15368  shlibpath_var=LIBRARY_PATH
15369  ;;
15370
15371bsdi4*)
15372  version_type=linux
15373  need_version=no
15374  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15375  soname_spec='${libname}${release}${shared_ext}$major'
15376  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15377  shlibpath_var=LD_LIBRARY_PATH
15378  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15379  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15380  # the default ld.so.conf also contains /usr/contrib/lib and
15381  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15382  # libtool to hard-code these into programs
15383  ;;
15384
15385cygwin* | mingw* | pw32*)
15386  version_type=windows
15387  shrext_cmds=".dll"
15388  need_version=no
15389  need_lib_prefix=no
15390
15391  case $GCC,$host_os in
15392  yes,cygwin* | yes,mingw* | yes,pw32*)
15393    library_names_spec='$libname.dll.a'
15394    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15395    postinstall_cmds='base_file=`basename \${file}`~
15396      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15397      dldir=$destdir/`dirname \$dlpath`~
15398      test -d \$dldir || mkdir -p \$dldir~
15399      $install_prog $dir/$dlname \$dldir/$dlname'
15400    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15401      dlpath=$dir/\$dldll~
15402       $rm \$dlpath'
15403    shlibpath_overrides_runpath=yes
15404
15405    case $host_os in
15406    cygwin*)
15407      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15408      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15409      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15410      ;;
15411    mingw*)
15412      # MinGW DLLs use traditional 'lib' prefix
15413      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15414      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15415      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15416        # It is most probably a Windows format PATH printed by
15417        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15418        # path with ; separators, and with drive letters. We can handle the
15419        # drive letters (cygwin fileutils understands them), so leave them,
15420        # especially as we might pass files found there to a mingw objdump,
15421        # which wouldn't understand a cygwinified path. Ahh.
15422        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15423      else
15424        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15425      fi
15426      ;;
15427    pw32*)
15428      # pw32 DLLs use 'pw' prefix rather than 'lib'
15429      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
15430      ;;
15431    esac
15432    ;;
15433
15434  *)
15435    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15436    ;;
15437  esac
15438  dynamic_linker='Win32 ld.exe'
15439  # FIXME: first we should search . and the directory the executable is in
15440  shlibpath_var=PATH
15441  ;;
15442
15443darwin* | rhapsody*)
15444  dynamic_linker="$host_os dyld"
15445  version_type=darwin
15446  need_lib_prefix=no
15447  need_version=no
15448  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15449  soname_spec='${libname}${release}${major}$shared_ext'
15450  shlibpath_overrides_runpath=yes
15451  shlibpath_var=DYLD_LIBRARY_PATH
15452  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
15453  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15454  if test "$GCC" = yes; then
15455    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"`
15456  else
15457    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15458  fi
15459  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15460  ;;
15461
15462dgux*)
15463  version_type=linux
15464  need_lib_prefix=no
15465  need_version=no
15466  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15467  soname_spec='${libname}${release}${shared_ext}$major'
15468  shlibpath_var=LD_LIBRARY_PATH
15469  ;;
15470
15471freebsd1*)
15472  dynamic_linker=no
15473  ;;
15474
15475kfreebsd*-gnu)
15476  version_type=linux
15477  need_lib_prefix=no
15478  need_version=no
15479  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15480  soname_spec='${libname}${release}${shared_ext}$major'
15481  shlibpath_var=LD_LIBRARY_PATH
15482  shlibpath_overrides_runpath=no
15483  hardcode_into_libs=yes
15484  dynamic_linker='GNU ld.so'
15485  ;;
15486
15487freebsd*)
15488  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15489  version_type=freebsd-$objformat
15490  case $version_type in
15491    freebsd-elf*)
15492      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15493      need_version=no
15494      need_lib_prefix=no
15495      ;;
15496    freebsd-*)
15497      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15498      need_version=yes
15499      ;;
15500  esac
15501  shlibpath_var=LD_LIBRARY_PATH
15502  case $host_os in
15503  freebsd2*)
15504    shlibpath_overrides_runpath=yes
15505    ;;
15506  freebsd3.01* | freebsdelf3.01*)
15507    shlibpath_overrides_runpath=yes
15508    hardcode_into_libs=yes
15509    ;;
15510  *) # from 3.2 on
15511    shlibpath_overrides_runpath=no
15512    hardcode_into_libs=yes
15513    ;;
15514  esac
15515  ;;
15516
15517gnu*)
15518  version_type=linux
15519  need_lib_prefix=no
15520  need_version=no
15521  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15522  soname_spec='${libname}${release}${shared_ext}$major'
15523  shlibpath_var=LD_LIBRARY_PATH
15524  hardcode_into_libs=yes
15525  ;;
15526
15527hpux9* | hpux10* | hpux11*)
15528  # Give a soname corresponding to the major version so that dld.sl refuses to
15529  # link against other versions.
15530  version_type=sunos
15531  need_lib_prefix=no
15532  need_version=no
15533  case "$host_cpu" in
15534  ia64*)
15535    shrext_cmds='.so'
15536    hardcode_into_libs=yes
15537    dynamic_linker="$host_os dld.so"
15538    shlibpath_var=LD_LIBRARY_PATH
15539    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15540    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15541    soname_spec='${libname}${release}${shared_ext}$major'
15542    if test "X$HPUX_IA64_MODE" = X32; then
15543      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15544    else
15545      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15546    fi
15547    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15548    ;;
15549   hppa*64*)
15550     shrext_cmds='.sl'
15551     hardcode_into_libs=yes
15552     dynamic_linker="$host_os dld.sl"
15553     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15554     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15555     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15556     soname_spec='${libname}${release}${shared_ext}$major'
15557     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15558     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15559     ;;
15560   *)
15561    shrext_cmds='.sl'
15562    dynamic_linker="$host_os dld.sl"
15563    shlibpath_var=SHLIB_PATH
15564    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15565    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15566    soname_spec='${libname}${release}${shared_ext}$major'
15567    ;;
15568  esac
15569  # HP-UX runs *really* slowly unless shared libraries are mode 555.
15570  postinstall_cmds='chmod 555 $lib'
15571  ;;
15572
15573irix5* | irix6* | nonstopux*)
15574  case $host_os in
15575    nonstopux*) version_type=nonstopux ;;
15576    *)
15577	if test "$lt_cv_prog_gnu_ld" = yes; then
15578		version_type=linux
15579	else
15580		version_type=irix
15581	fi ;;
15582  esac
15583  need_lib_prefix=no
15584  need_version=no
15585  soname_spec='${libname}${release}${shared_ext}$major'
15586  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15587  case $host_os in
15588  irix5* | nonstopux*)
15589    libsuff= shlibsuff=
15590    ;;
15591  *)
15592    case $LD in # libtool.m4 will add one of these switches to LD
15593    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15594      libsuff= shlibsuff= libmagic=32-bit;;
15595    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15596      libsuff=32 shlibsuff=N32 libmagic=N32;;
15597    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15598      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15599    *) libsuff= shlibsuff= libmagic=never-match;;
15600    esac
15601    ;;
15602  esac
15603  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15604  shlibpath_overrides_runpath=no
15605  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15606  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15607  hardcode_into_libs=yes
15608  ;;
15609
15610# No shared lib support for Linux oldld, aout, or coff.
15611linux*oldld* | linux*aout* | linux*coff*)
15612  dynamic_linker=no
15613  ;;
15614
15615# This must be Linux ELF.
15616linux*)
15617  version_type=linux
15618  need_lib_prefix=no
15619  need_version=no
15620  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15621  soname_spec='${libname}${release}${shared_ext}$major'
15622  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15623  shlibpath_var=LD_LIBRARY_PATH
15624  shlibpath_overrides_runpath=no
15625  # This implies no fast_install, which is unacceptable.
15626  # Some rework will be needed to allow for fast_install
15627  # before this can be enabled.
15628  hardcode_into_libs=yes
15629
15630  # Append ld.so.conf contents to the search path
15631  if test -f /etc/ld.so.conf; then
15632    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
15633    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15634  fi
15635
15636  # We used to test for /lib/ld.so.1 and disable shared libraries on
15637  # powerpc, because MkLinux only supported shared libraries with the
15638  # GNU dynamic linker.  Since this was broken with cross compilers,
15639  # most powerpc-linux boxes support dynamic linking these days and
15640  # people can always --disable-shared, the test was removed, and we
15641  # assume the GNU/Linux dynamic linker is in use.
15642  dynamic_linker='GNU/Linux ld.so'
15643  ;;
15644
15645knetbsd*-gnu)
15646  version_type=linux
15647  need_lib_prefix=no
15648  need_version=no
15649  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15650  soname_spec='${libname}${release}${shared_ext}$major'
15651  shlibpath_var=LD_LIBRARY_PATH
15652  shlibpath_overrides_runpath=no
15653  hardcode_into_libs=yes
15654  dynamic_linker='GNU ld.so'
15655  ;;
15656
15657netbsd*)
15658  version_type=sunos
15659  need_lib_prefix=no
15660  need_version=no
15661  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15662    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15663    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15664    dynamic_linker='NetBSD (a.out) ld.so'
15665  else
15666    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15667    soname_spec='${libname}${release}${shared_ext}$major'
15668    dynamic_linker='NetBSD ld.elf_so'
15669  fi
15670  shlibpath_var=LD_LIBRARY_PATH
15671  shlibpath_overrides_runpath=yes
15672  hardcode_into_libs=yes
15673  ;;
15674
15675newsos6)
15676  version_type=linux
15677  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15678  shlibpath_var=LD_LIBRARY_PATH
15679  shlibpath_overrides_runpath=yes
15680  ;;
15681
15682nto-qnx*)
15683  version_type=linux
15684  need_lib_prefix=no
15685  need_version=no
15686  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15687  soname_spec='${libname}${release}${shared_ext}$major'
15688  shlibpath_var=LD_LIBRARY_PATH
15689  shlibpath_overrides_runpath=yes
15690  ;;
15691
15692openbsd*)
15693  version_type=sunos
15694  need_lib_prefix=no
15695  need_version=yes
15696  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15697  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15698  shlibpath_var=LD_LIBRARY_PATH
15699  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15700    case $host_os in
15701      openbsd2.[89] | openbsd2.[89].*)
15702	shlibpath_overrides_runpath=no
15703	;;
15704      *)
15705	shlibpath_overrides_runpath=yes
15706	;;
15707      esac
15708  else
15709    shlibpath_overrides_runpath=yes
15710  fi
15711  ;;
15712
15713os2*)
15714  libname_spec='$name'
15715  shrext_cmds=".dll"
15716  need_lib_prefix=no
15717  library_names_spec='$libname${shared_ext} $libname.a'
15718  dynamic_linker='OS/2 ld.exe'
15719  shlibpath_var=LIBPATH
15720  ;;
15721
15722osf3* | osf4* | osf5*)
15723  version_type=osf
15724  need_lib_prefix=no
15725  need_version=no
15726  soname_spec='${libname}${release}${shared_ext}$major'
15727  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15728  shlibpath_var=LD_LIBRARY_PATH
15729  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15730  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15731  ;;
15732
15733sco3.2v5*)
15734  version_type=osf
15735  soname_spec='${libname}${release}${shared_ext}$major'
15736  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15737  shlibpath_var=LD_LIBRARY_PATH
15738  ;;
15739
15740solaris*)
15741  version_type=linux
15742  need_lib_prefix=no
15743  need_version=no
15744  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15745  soname_spec='${libname}${release}${shared_ext}$major'
15746  shlibpath_var=LD_LIBRARY_PATH
15747  shlibpath_overrides_runpath=yes
15748  hardcode_into_libs=yes
15749  # ldd complains unless libraries are executable
15750  postinstall_cmds='chmod +x $lib'
15751  ;;
15752
15753sunos4*)
15754  version_type=sunos
15755  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15756  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15757  shlibpath_var=LD_LIBRARY_PATH
15758  shlibpath_overrides_runpath=yes
15759  if test "$with_gnu_ld" = yes; then
15760    need_lib_prefix=no
15761  fi
15762  need_version=yes
15763  ;;
15764
15765sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15766  version_type=linux
15767  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15768  soname_spec='${libname}${release}${shared_ext}$major'
15769  shlibpath_var=LD_LIBRARY_PATH
15770  case $host_vendor in
15771    sni)
15772      shlibpath_overrides_runpath=no
15773      need_lib_prefix=no
15774      export_dynamic_flag_spec='${wl}-Blargedynsym'
15775      runpath_var=LD_RUN_PATH
15776      ;;
15777    siemens)
15778      need_lib_prefix=no
15779      ;;
15780    motorola)
15781      need_lib_prefix=no
15782      need_version=no
15783      shlibpath_overrides_runpath=no
15784      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15785      ;;
15786  esac
15787  ;;
15788
15789sysv4*MP*)
15790  if test -d /usr/nec ;then
15791    version_type=linux
15792    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15793    soname_spec='$libname${shared_ext}.$major'
15794    shlibpath_var=LD_LIBRARY_PATH
15795  fi
15796  ;;
15797
15798uts4*)
15799  version_type=linux
15800  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15801  soname_spec='${libname}${release}${shared_ext}$major'
15802  shlibpath_var=LD_LIBRARY_PATH
15803  ;;
15804
15805*)
15806  dynamic_linker=no
15807  ;;
15808esac
15809echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15810echo "${ECHO_T}$dynamic_linker" >&6
15811test "$dynamic_linker" = no && can_build_shared=no
15812
15813echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15814echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15815hardcode_action_F77=
15816if test -n "$hardcode_libdir_flag_spec_F77" || \
15817   test -n "$runpath_var F77" || \
15818   test "X$hardcode_automatic_F77"="Xyes" ; then
15819
15820  # We can hardcode non-existant directories.
15821  if test "$hardcode_direct_F77" != no &&
15822     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15823     # have to relink, otherwise we might link with an installed library
15824     # when we should be linking with a yet-to-be-installed one
15825     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15826     test "$hardcode_minus_L_F77" != no; then
15827    # Linking always hardcodes the temporary library directory.
15828    hardcode_action_F77=relink
15829  else
15830    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15831    hardcode_action_F77=immediate
15832  fi
15833else
15834  # We cannot hardcode anything, or else we can only hardcode existing
15835  # directories.
15836  hardcode_action_F77=unsupported
15837fi
15838echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15839echo "${ECHO_T}$hardcode_action_F77" >&6
15840
15841if test "$hardcode_action_F77" = relink; then
15842  # Fast installation is not supported
15843  enable_fast_install=no
15844elif test "$shlibpath_overrides_runpath" = yes ||
15845     test "$enable_shared" = no; then
15846  # Fast installation is not necessary
15847  enable_fast_install=needless
15848fi
15849
15850striplib=
15851old_striplib=
15852echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15853echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15854if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15855  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15856  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15857  echo "$as_me:$LINENO: result: yes" >&5
15858echo "${ECHO_T}yes" >&6
15859else
15860# FIXME - insert some real tests, host_os isn't really good enough
15861  case $host_os in
15862   darwin*)
15863       if test -n "$STRIP" ; then
15864         striplib="$STRIP -x"
15865         echo "$as_me:$LINENO: result: yes" >&5
15866echo "${ECHO_T}yes" >&6
15867       else
15868  echo "$as_me:$LINENO: result: no" >&5
15869echo "${ECHO_T}no" >&6
15870fi
15871       ;;
15872   *)
15873  echo "$as_me:$LINENO: result: no" >&5
15874echo "${ECHO_T}no" >&6
15875    ;;
15876  esac
15877fi
15878
15879
15880
15881# The else clause should only fire when bootstrapping the
15882# libtool distribution, otherwise you forgot to ship ltmain.sh
15883# with your package, and you will get complaints that there are
15884# no rules to generate ltmain.sh.
15885if test -f "$ltmain"; then
15886  # See if we are running on zsh, and set the options which allow our commands through
15887  # without removal of \ escapes.
15888  if test -n "${ZSH_VERSION+set}" ; then
15889    setopt NO_GLOB_SUBST
15890  fi
15891  # Now quote all the things that may contain metacharacters while being
15892  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15893  # variables and quote the copies for generation of the libtool script.
15894  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15895    SED SHELL STRIP \
15896    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15897    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15898    deplibs_check_method reload_flag reload_cmds need_locks \
15899    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15900    lt_cv_sys_global_symbol_to_c_name_address \
15901    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15902    old_postinstall_cmds old_postuninstall_cmds \
15903    compiler_F77 \
15904    CC_F77 \
15905    LD_F77 \
15906    lt_prog_compiler_wl_F77 \
15907    lt_prog_compiler_pic_F77 \
15908    lt_prog_compiler_static_F77 \
15909    lt_prog_compiler_no_builtin_flag_F77 \
15910    export_dynamic_flag_spec_F77 \
15911    thread_safe_flag_spec_F77 \
15912    whole_archive_flag_spec_F77 \
15913    enable_shared_with_static_runtimes_F77 \
15914    old_archive_cmds_F77 \
15915    old_archive_from_new_cmds_F77 \
15916    predep_objects_F77 \
15917    postdep_objects_F77 \
15918    predeps_F77 \
15919    postdeps_F77 \
15920    compiler_lib_search_path_F77 \
15921    archive_cmds_F77 \
15922    archive_expsym_cmds_F77 \
15923    postinstall_cmds_F77 \
15924    postuninstall_cmds_F77 \
15925    old_archive_from_expsyms_cmds_F77 \
15926    allow_undefined_flag_F77 \
15927    no_undefined_flag_F77 \
15928    export_symbols_cmds_F77 \
15929    hardcode_libdir_flag_spec_F77 \
15930    hardcode_libdir_flag_spec_ld_F77 \
15931    hardcode_libdir_separator_F77 \
15932    hardcode_automatic_F77 \
15933    module_cmds_F77 \
15934    module_expsym_cmds_F77 \
15935    lt_cv_prog_compiler_c_o_F77 \
15936    exclude_expsyms_F77 \
15937    include_expsyms_F77; do
15938
15939    case $var in
15940    old_archive_cmds_F77 | \
15941    old_archive_from_new_cmds_F77 | \
15942    archive_cmds_F77 | \
15943    archive_expsym_cmds_F77 | \
15944    module_cmds_F77 | \
15945    module_expsym_cmds_F77 | \
15946    old_archive_from_expsyms_cmds_F77 | \
15947    export_symbols_cmds_F77 | \
15948    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15949    postinstall_cmds | postuninstall_cmds | \
15950    old_postinstall_cmds | old_postuninstall_cmds | \
15951    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15952      # Double-quote double-evaled strings.
15953      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15954      ;;
15955    *)
15956      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15957      ;;
15958    esac
15959  done
15960
15961  case $lt_echo in
15962  *'\$0 --fallback-echo"')
15963    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15964    ;;
15965  esac
15966
15967cfgfile="$ofile"
15968
15969  cat <<__EOF__ >> "$cfgfile"
15970# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15971
15972# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15973
15974# Shell to use when invoking shell scripts.
15975SHELL=$lt_SHELL
15976
15977# Whether or not to build shared libraries.
15978build_libtool_libs=$enable_shared
15979
15980# Whether or not to build static libraries.
15981build_old_libs=$enable_static
15982
15983# Whether or not to add -lc for building shared libraries.
15984build_libtool_need_lc=$archive_cmds_need_lc_F77
15985
15986# Whether or not to disallow shared libs when runtime libs are static
15987allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15988
15989# Whether or not to optimize for fast installation.
15990fast_install=$enable_fast_install
15991
15992# The host system.
15993host_alias=$host_alias
15994host=$host
15995
15996# An echo program that does not interpret backslashes.
15997echo=$lt_echo
15998
15999# The archiver.
16000AR=$lt_AR
16001AR_FLAGS=$lt_AR_FLAGS
16002
16003# A C compiler.
16004LTCC=$lt_LTCC
16005
16006# A language-specific compiler.
16007CC=$lt_compiler_F77
16008
16009# Is the compiler the GNU C compiler?
16010with_gcc=$GCC_F77
16011
16012# An ERE matcher.
16013EGREP=$lt_EGREP
16014
16015# The linker used to build libraries.
16016LD=$lt_LD_F77
16017
16018# Whether we need hard or soft links.
16019LN_S=$lt_LN_S
16020
16021# A BSD-compatible nm program.
16022NM=$lt_NM
16023
16024# A symbol stripping program
16025STRIP=$lt_STRIP
16026
16027# Used to examine libraries when file_magic_cmd begins "file"
16028MAGIC_CMD=$MAGIC_CMD
16029
16030# Used on cygwin: DLL creation program.
16031DLLTOOL="$DLLTOOL"
16032
16033# Used on cygwin: object dumper.
16034OBJDUMP="$OBJDUMP"
16035
16036# Used on cygwin: assembler.
16037AS="$AS"
16038
16039# The name of the directory that contains temporary libtool files.
16040objdir=$objdir
16041
16042# How to create reloadable object files.
16043reload_flag=$lt_reload_flag
16044reload_cmds=$lt_reload_cmds
16045
16046# How to pass a linker flag through the compiler.
16047wl=$lt_lt_prog_compiler_wl_F77
16048
16049# Object file suffix (normally "o").
16050objext="$ac_objext"
16051
16052# Old archive suffix (normally "a").
16053libext="$libext"
16054
16055# Shared library suffix (normally ".so").
16056shrext_cmds='$shrext_cmds'
16057
16058# Executable file suffix (normally "").
16059exeext="$exeext"
16060
16061# Additional compiler flags for building library objects.
16062pic_flag=$lt_lt_prog_compiler_pic_F77
16063pic_mode=$pic_mode
16064
16065# What is the maximum length of a command?
16066max_cmd_len=$lt_cv_sys_max_cmd_len
16067
16068# Does compiler simultaneously support -c and -o options?
16069compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16070
16071# Must we lock files when doing compilation ?
16072need_locks=$lt_need_locks
16073
16074# Do we need the lib prefix for modules?
16075need_lib_prefix=$need_lib_prefix
16076
16077# Do we need a version for libraries?
16078need_version=$need_version
16079
16080# Whether dlopen is supported.
16081dlopen_support=$enable_dlopen
16082
16083# Whether dlopen of programs is supported.
16084dlopen_self=$enable_dlopen_self
16085
16086# Whether dlopen of statically linked programs is supported.
16087dlopen_self_static=$enable_dlopen_self_static
16088
16089# Compiler flag to prevent dynamic linking.
16090link_static_flag=$lt_lt_prog_compiler_static_F77
16091
16092# Compiler flag to turn off builtin functions.
16093no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16094
16095# Compiler flag to allow reflexive dlopens.
16096export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16097
16098# Compiler flag to generate shared objects directly from archives.
16099whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16100
16101# Compiler flag to generate thread-safe objects.
16102thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16103
16104# Library versioning type.
16105version_type=$version_type
16106
16107# Format of library name prefix.
16108libname_spec=$lt_libname_spec
16109
16110# List of archive names.  First name is the real one, the rest are links.
16111# The last name is the one that the linker finds with -lNAME.
16112library_names_spec=$lt_library_names_spec
16113
16114# The coded name of the library, if different from the real name.
16115soname_spec=$lt_soname_spec
16116
16117# Commands used to build and install an old-style archive.
16118RANLIB=$lt_RANLIB
16119old_archive_cmds=$lt_old_archive_cmds_F77
16120old_postinstall_cmds=$lt_old_postinstall_cmds
16121old_postuninstall_cmds=$lt_old_postuninstall_cmds
16122
16123# Create an old-style archive from a shared archive.
16124old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16125
16126# Create a temporary old-style archive to link instead of a shared archive.
16127old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16128
16129# Commands used to build and install a shared archive.
16130archive_cmds=$lt_archive_cmds_F77
16131archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16132postinstall_cmds=$lt_postinstall_cmds
16133postuninstall_cmds=$lt_postuninstall_cmds
16134
16135# Commands used to build a loadable module (assumed same as above if empty)
16136module_cmds=$lt_module_cmds_F77
16137module_expsym_cmds=$lt_module_expsym_cmds_F77
16138
16139# Commands to strip libraries.
16140old_striplib=$lt_old_striplib
16141striplib=$lt_striplib
16142
16143# Dependencies to place before the objects being linked to create a
16144# shared library.
16145predep_objects=$lt_predep_objects_F77
16146
16147# Dependencies to place after the objects being linked to create a
16148# shared library.
16149postdep_objects=$lt_postdep_objects_F77
16150
16151# Dependencies to place before the objects being linked to create a
16152# shared library.
16153predeps=$lt_predeps_F77
16154
16155# Dependencies to place after the objects being linked to create a
16156# shared library.
16157postdeps=$lt_postdeps_F77
16158
16159# The library search path used internally by the compiler when linking
16160# a shared library.
16161compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16162
16163# Method to check whether dependent libraries are shared objects.
16164deplibs_check_method=$lt_deplibs_check_method
16165
16166# Command to use when deplibs_check_method == file_magic.
16167file_magic_cmd=$lt_file_magic_cmd
16168
16169# Flag that allows shared libraries with undefined symbols to be built.
16170allow_undefined_flag=$lt_allow_undefined_flag_F77
16171
16172# Flag that forces no undefined symbols.
16173no_undefined_flag=$lt_no_undefined_flag_F77
16174
16175# Commands used to finish a libtool library installation in a directory.
16176finish_cmds=$lt_finish_cmds
16177
16178# Same as above, but a single script fragment to be evaled but not shown.
16179finish_eval=$lt_finish_eval
16180
16181# Take the output of nm and produce a listing of raw symbols and C names.
16182global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16183
16184# Transform the output of nm in a proper C declaration
16185global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16186
16187# Transform the output of nm in a C name address pair
16188global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16189
16190# This is the shared library runtime path variable.
16191runpath_var=$runpath_var
16192
16193# This is the shared library path variable.
16194shlibpath_var=$shlibpath_var
16195
16196# Is shlibpath searched before the hard-coded library search path?
16197shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16198
16199# How to hardcode a shared library path into an executable.
16200hardcode_action=$hardcode_action_F77
16201
16202# Whether we should hardcode library paths into libraries.
16203hardcode_into_libs=$hardcode_into_libs
16204
16205# Flag to hardcode \$libdir into a binary during linking.
16206# This must work even if \$libdir does not exist.
16207hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16208
16209# If ld is used when linking, flag to hardcode \$libdir into
16210# a binary during linking. This must work even if \$libdir does
16211# not exist.
16212hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16213
16214# Whether we need a single -rpath flag with a separated argument.
16215hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16216
16217# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16218# resulting binary.
16219hardcode_direct=$hardcode_direct_F77
16220
16221# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16222# resulting binary.
16223hardcode_minus_L=$hardcode_minus_L_F77
16224
16225# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16226# the resulting binary.
16227hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16228
16229# Set to yes if building a shared library automatically hardcodes DIR into the library
16230# and all subsequent libraries and executables linked against it.
16231hardcode_automatic=$hardcode_automatic_F77
16232
16233# Variables whose values should be saved in libtool wrapper scripts and
16234# restored at relink time.
16235variables_saved_for_relink="$variables_saved_for_relink"
16236
16237# Whether libtool must link a program against all its dependency libraries.
16238link_all_deplibs=$link_all_deplibs_F77
16239
16240# Compile-time system search path for libraries
16241sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16242
16243# Run-time system search path for libraries
16244sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16245
16246# Fix the shell variable \$srcfile for the compiler.
16247fix_srcfile_path="$fix_srcfile_path_F77"
16248
16249# Set to yes if exported symbols are required.
16250always_export_symbols=$always_export_symbols_F77
16251
16252# The commands to list exported symbols.
16253export_symbols_cmds=$lt_export_symbols_cmds_F77
16254
16255# The commands to extract the exported symbol list from a shared archive.
16256extract_expsyms_cmds=$lt_extract_expsyms_cmds
16257
16258# Symbols that should not be listed in the preloaded symbols.
16259exclude_expsyms=$lt_exclude_expsyms_F77
16260
16261# Symbols that must always be exported.
16262include_expsyms=$lt_include_expsyms_F77
16263
16264# ### END LIBTOOL TAG CONFIG: $tagname
16265
16266__EOF__
16267
16268
16269else
16270  # If there is no Makefile yet, we rely on a make rule to execute
16271  # `config.status --recheck' to rerun these tests and create the
16272  # libtool script then.
16273  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16274  if test -f "$ltmain_in"; then
16275    test -f Makefile && make "$ltmain"
16276  fi
16277fi
16278
16279
16280ac_ext=c
16281ac_cpp='$CPP $CPPFLAGS'
16282ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16283ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16284ac_compiler_gnu=$ac_cv_c_compiler_gnu
16285
16286CC="$lt_save_CC"
16287
16288	else
16289	  tagname=""
16290	fi
16291	;;
16292
16293      GCJ)
16294	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16295
16296
16297
16298# Source file extension for Java test sources.
16299ac_ext=java
16300
16301# Object file extension for compiled Java test sources.
16302objext=o
16303objext_GCJ=$objext
16304
16305# Code to be used in simple compile tests
16306lt_simple_compile_test_code="class foo {}\n"
16307
16308# Code to be used in simple link tests
16309lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
16310
16311# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16312
16313# If no C compiler was specified, use CC.
16314LTCC=${LTCC-"$CC"}
16315
16316# Allow CC to be a program name with arguments.
16317compiler=$CC
16318
16319
16320# Allow CC to be a program name with arguments.
16321lt_save_CC="$CC"
16322CC=${GCJ-"gcj"}
16323compiler=$CC
16324compiler_GCJ=$CC
16325
16326# GCJ did not exist at the time GCC didn't implicitly link libc in.
16327archive_cmds_need_lc_GCJ=no
16328
16329
16330lt_prog_compiler_no_builtin_flag_GCJ=
16331
16332if test "$GCC" = yes; then
16333  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16334
16335
16336echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16337echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16338if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16339  echo $ECHO_N "(cached) $ECHO_C" >&6
16340else
16341  lt_cv_prog_compiler_rtti_exceptions=no
16342  ac_outfile=conftest.$ac_objext
16343   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16344   lt_compiler_flag="-fno-rtti -fno-exceptions"
16345   # Insert the option either (1) after the last *FLAGS variable, or
16346   # (2) before a word containing "conftest.", or (3) at the end.
16347   # Note that $ac_compile itself does not contain backslashes and begins
16348   # with a dollar sign (not a hyphen), so the echo should work correctly.
16349   # The option is referenced via a variable to avoid confusing sed.
16350   lt_compile=`echo "$ac_compile" | $SED \
16351   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16352   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16353   -e 's:$: $lt_compiler_flag:'`
16354   (eval echo "\"\$as_me:16354: $lt_compile\"" >&5)
16355   (eval "$lt_compile" 2>conftest.err)
16356   ac_status=$?
16357   cat conftest.err >&5
16358   echo "$as_me:16358: \$? = $ac_status" >&5
16359   if (exit $ac_status) && test -s "$ac_outfile"; then
16360     # The compiler can only warn and ignore the option if not recognized
16361     # So say no if there are warnings
16362     if test ! -s conftest.err; then
16363       lt_cv_prog_compiler_rtti_exceptions=yes
16364     fi
16365   fi
16366   $rm conftest*
16367
16368fi
16369echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16370echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16371
16372if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16373    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16374else
16375    :
16376fi
16377
16378fi
16379
16380lt_prog_compiler_wl_GCJ=
16381lt_prog_compiler_pic_GCJ=
16382lt_prog_compiler_static_GCJ=
16383
16384echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16385echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16386
16387  if test "$GCC" = yes; then
16388    lt_prog_compiler_wl_GCJ='-Wl,'
16389    lt_prog_compiler_static_GCJ='-static'
16390
16391    case $host_os in
16392      aix*)
16393      # All AIX code is PIC.
16394      if test "$host_cpu" = ia64; then
16395	# AIX 5 now supports IA64 processor
16396	lt_prog_compiler_static_GCJ='-Bstatic'
16397      fi
16398      ;;
16399
16400    amigaos*)
16401      # FIXME: we need at least 68020 code to build shared libraries, but
16402      # adding the `-m68020' flag to GCC prevents building anything better,
16403      # like `-m68040'.
16404      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16405      ;;
16406
16407    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16408      # PIC is the default for these OSes.
16409      ;;
16410
16411    mingw* | pw32* | os2*)
16412      # This hack is so that the source file can tell whether it is being
16413      # built for inclusion in a dll (and should export symbols for example).
16414      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16415      ;;
16416
16417    darwin* | rhapsody*)
16418      # PIC is the default on this platform
16419      # Common symbols not allowed in MH_DYLIB files
16420      lt_prog_compiler_pic_GCJ='-fno-common'
16421      ;;
16422
16423    msdosdjgpp*)
16424      # Just because we use GCC doesn't mean we suddenly get shared libraries
16425      # on systems that don't support them.
16426      lt_prog_compiler_can_build_shared_GCJ=no
16427      enable_shared=no
16428      ;;
16429
16430    sysv4*MP*)
16431      if test -d /usr/nec; then
16432	lt_prog_compiler_pic_GCJ=-Kconform_pic
16433      fi
16434      ;;
16435
16436    hpux*)
16437      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16438      # not for PA HP-UX.
16439      case "$host_cpu" in
16440      hppa*64*|ia64*)
16441	# +Z the default
16442	;;
16443      *)
16444	lt_prog_compiler_pic_GCJ='-fPIC'
16445	;;
16446      esac
16447      ;;
16448
16449    *)
16450      lt_prog_compiler_pic_GCJ='-fPIC'
16451      ;;
16452    esac
16453  else
16454    # PORTME Check for flag to pass linker flags through the system compiler.
16455    case $host_os in
16456    aix*)
16457      lt_prog_compiler_wl_GCJ='-Wl,'
16458      if test "$host_cpu" = ia64; then
16459	# AIX 5 now supports IA64 processor
16460	lt_prog_compiler_static_GCJ='-Bstatic'
16461      else
16462	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16463      fi
16464      ;;
16465
16466    mingw* | pw32* | os2*)
16467      # This hack is so that the source file can tell whether it is being
16468      # built for inclusion in a dll (and should export symbols for example).
16469      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16470      ;;
16471
16472    hpux9* | hpux10* | hpux11*)
16473      lt_prog_compiler_wl_GCJ='-Wl,'
16474      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16475      # not for PA HP-UX.
16476      case "$host_cpu" in
16477      hppa*64*|ia64*)
16478	# +Z the default
16479	;;
16480      *)
16481	lt_prog_compiler_pic_GCJ='+Z'
16482	;;
16483      esac
16484      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16485      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16486      ;;
16487
16488    irix5* | irix6* | nonstopux*)
16489      lt_prog_compiler_wl_GCJ='-Wl,'
16490      # PIC (with -KPIC) is the default.
16491      lt_prog_compiler_static_GCJ='-non_shared'
16492      ;;
16493
16494    newsos6)
16495      lt_prog_compiler_pic_GCJ='-KPIC'
16496      lt_prog_compiler_static_GCJ='-Bstatic'
16497      ;;
16498
16499    linux*)
16500      case $CC in
16501      icc* | ecc*)
16502	lt_prog_compiler_wl_GCJ='-Wl,'
16503	lt_prog_compiler_pic_GCJ='-KPIC'
16504	lt_prog_compiler_static_GCJ='-static'
16505        ;;
16506      ccc*)
16507        lt_prog_compiler_wl_GCJ='-Wl,'
16508        # All Alpha code is PIC.
16509        lt_prog_compiler_static_GCJ='-non_shared'
16510        ;;
16511      esac
16512      ;;
16513
16514    osf3* | osf4* | osf5*)
16515      lt_prog_compiler_wl_GCJ='-Wl,'
16516      # All OSF/1 code is PIC.
16517      lt_prog_compiler_static_GCJ='-non_shared'
16518      ;;
16519
16520    sco3.2v5*)
16521      lt_prog_compiler_pic_GCJ='-Kpic'
16522      lt_prog_compiler_static_GCJ='-dn'
16523      ;;
16524
16525    solaris*)
16526      lt_prog_compiler_wl_GCJ='-Wl,'
16527      lt_prog_compiler_pic_GCJ='-KPIC'
16528      lt_prog_compiler_static_GCJ='-Bstatic'
16529      ;;
16530
16531    sunos4*)
16532      lt_prog_compiler_wl_GCJ='-Qoption ld '
16533      lt_prog_compiler_pic_GCJ='-PIC'
16534      lt_prog_compiler_static_GCJ='-Bstatic'
16535      ;;
16536
16537    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16538      lt_prog_compiler_wl_GCJ='-Wl,'
16539      lt_prog_compiler_pic_GCJ='-KPIC'
16540      lt_prog_compiler_static_GCJ='-Bstatic'
16541      ;;
16542
16543    sysv4*MP*)
16544      if test -d /usr/nec ;then
16545	lt_prog_compiler_pic_GCJ='-Kconform_pic'
16546	lt_prog_compiler_static_GCJ='-Bstatic'
16547      fi
16548      ;;
16549
16550    uts4*)
16551      lt_prog_compiler_pic_GCJ='-pic'
16552      lt_prog_compiler_static_GCJ='-Bstatic'
16553      ;;
16554
16555    *)
16556      lt_prog_compiler_can_build_shared_GCJ=no
16557      ;;
16558    esac
16559  fi
16560
16561echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16562echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16563
16564#
16565# Check to make sure the PIC flag actually works.
16566#
16567if test -n "$lt_prog_compiler_pic_GCJ"; then
16568
16569echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16570echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16571if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16572  echo $ECHO_N "(cached) $ECHO_C" >&6
16573else
16574  lt_prog_compiler_pic_works_GCJ=no
16575  ac_outfile=conftest.$ac_objext
16576   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16577   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16578   # Insert the option either (1) after the last *FLAGS variable, or
16579   # (2) before a word containing "conftest.", or (3) at the end.
16580   # Note that $ac_compile itself does not contain backslashes and begins
16581   # with a dollar sign (not a hyphen), so the echo should work correctly.
16582   # The option is referenced via a variable to avoid confusing sed.
16583   lt_compile=`echo "$ac_compile" | $SED \
16584   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16585   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16586   -e 's:$: $lt_compiler_flag:'`
16587   (eval echo "\"\$as_me:16587: $lt_compile\"" >&5)
16588   (eval "$lt_compile" 2>conftest.err)
16589   ac_status=$?
16590   cat conftest.err >&5
16591   echo "$as_me:16591: \$? = $ac_status" >&5
16592   if (exit $ac_status) && test -s "$ac_outfile"; then
16593     # The compiler can only warn and ignore the option if not recognized
16594     # So say no if there are warnings
16595     if test ! -s conftest.err; then
16596       lt_prog_compiler_pic_works_GCJ=yes
16597     fi
16598   fi
16599   $rm conftest*
16600
16601fi
16602echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16603echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16604
16605if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16606    case $lt_prog_compiler_pic_GCJ in
16607     "" | " "*) ;;
16608     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16609     esac
16610else
16611    lt_prog_compiler_pic_GCJ=
16612     lt_prog_compiler_can_build_shared_GCJ=no
16613fi
16614
16615fi
16616case "$host_os" in
16617  # For platforms which do not support PIC, -DPIC is meaningless:
16618  *djgpp*)
16619    lt_prog_compiler_pic_GCJ=
16620    ;;
16621  *)
16622    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16623    ;;
16624esac
16625
16626echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16627echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16628if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16629  echo $ECHO_N "(cached) $ECHO_C" >&6
16630else
16631  lt_cv_prog_compiler_c_o_GCJ=no
16632   $rm -r conftest 2>/dev/null
16633   mkdir conftest
16634   cd conftest
16635   mkdir out
16636   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16637
16638   lt_compiler_flag="-o out/conftest2.$ac_objext"
16639   # Insert the option either (1) after the last *FLAGS variable, or
16640   # (2) before a word containing "conftest.", or (3) at the end.
16641   # Note that $ac_compile itself does not contain backslashes and begins
16642   # with a dollar sign (not a hyphen), so the echo should work correctly.
16643   lt_compile=`echo "$ac_compile" | $SED \
16644   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16645   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16646   -e 's:$: $lt_compiler_flag:'`
16647   (eval echo "\"\$as_me:16647: $lt_compile\"" >&5)
16648   (eval "$lt_compile" 2>out/conftest.err)
16649   ac_status=$?
16650   cat out/conftest.err >&5
16651   echo "$as_me:16651: \$? = $ac_status" >&5
16652   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16653   then
16654     # The compiler can only warn and ignore the option if not recognized
16655     # So say no if there are warnings
16656     if test ! -s out/conftest.err; then
16657       lt_cv_prog_compiler_c_o_GCJ=yes
16658     fi
16659   fi
16660   chmod u+w .
16661   $rm conftest*
16662   # SGI C++ compiler will create directory out/ii_files/ for
16663   # template instantiation
16664   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16665   $rm out/* && rmdir out
16666   cd ..
16667   rmdir conftest
16668   $rm conftest*
16669
16670fi
16671echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16672echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16673
16674
16675hard_links="nottested"
16676if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16677  # do not overwrite the value of need_locks provided by the user
16678  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16679echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16680  hard_links=yes
16681  $rm conftest*
16682  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16683  touch conftest.a
16684  ln conftest.a conftest.b 2>&5 || hard_links=no
16685  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16686  echo "$as_me:$LINENO: result: $hard_links" >&5
16687echo "${ECHO_T}$hard_links" >&6
16688  if test "$hard_links" = no; then
16689    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16690echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16691    need_locks=warn
16692  fi
16693else
16694  need_locks=no
16695fi
16696
16697echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16698echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16699
16700  runpath_var=
16701  allow_undefined_flag_GCJ=
16702  enable_shared_with_static_runtimes_GCJ=no
16703  archive_cmds_GCJ=
16704  archive_expsym_cmds_GCJ=
16705  old_archive_From_new_cmds_GCJ=
16706  old_archive_from_expsyms_cmds_GCJ=
16707  export_dynamic_flag_spec_GCJ=
16708  whole_archive_flag_spec_GCJ=
16709  thread_safe_flag_spec_GCJ=
16710  hardcode_libdir_flag_spec_GCJ=
16711  hardcode_libdir_flag_spec_ld_GCJ=
16712  hardcode_libdir_separator_GCJ=
16713  hardcode_direct_GCJ=no
16714  hardcode_minus_L_GCJ=no
16715  hardcode_shlibpath_var_GCJ=unsupported
16716  link_all_deplibs_GCJ=unknown
16717  hardcode_automatic_GCJ=no
16718  module_cmds_GCJ=
16719  module_expsym_cmds_GCJ=
16720  always_export_symbols_GCJ=no
16721  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16722  # include_expsyms should be a list of space-separated symbols to be *always*
16723  # included in the symbol list
16724  include_expsyms_GCJ=
16725  # exclude_expsyms can be an extended regexp of symbols to exclude
16726  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16727  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16728  # as well as any symbol that contains `d'.
16729  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16730  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16731  # platforms (ab)use it in PIC code, but their linkers get confused if
16732  # the symbol is explicitly referenced.  Since portable code cannot
16733  # rely on this symbol name, it's probably fine to never include it in
16734  # preloaded symbol tables.
16735  extract_expsyms_cmds=
16736
16737  case $host_os in
16738  cygwin* | mingw* | pw32*)
16739    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16740    # When not using gcc, we currently assume that we are using
16741    # Microsoft Visual C++.
16742    if test "$GCC" != yes; then
16743      with_gnu_ld=no
16744    fi
16745    ;;
16746  openbsd*)
16747    with_gnu_ld=no
16748    ;;
16749  esac
16750
16751  ld_shlibs_GCJ=yes
16752  if test "$with_gnu_ld" = yes; then
16753    # If archive_cmds runs LD, not CC, wlarc should be empty
16754    wlarc='${wl}'
16755
16756    # See if GNU ld supports shared libraries.
16757    case $host_os in
16758    aix3* | aix4* | aix5*)
16759      # On AIX/PPC, the GNU linker is very broken
16760      if test "$host_cpu" != ia64; then
16761	ld_shlibs_GCJ=no
16762	cat <<EOF 1>&2
16763
16764*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16765*** to be unable to reliably create shared libraries on AIX.
16766*** Therefore, libtool is disabling shared libraries support.  If you
16767*** really care for shared libraries, you may want to modify your PATH
16768*** so that a non-GNU linker is found, and then restart.
16769
16770EOF
16771      fi
16772      ;;
16773
16774    amigaos*)
16775      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)'
16776      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16777      hardcode_minus_L_GCJ=yes
16778
16779      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16780      # that the semantics of dynamic libraries on AmigaOS, at least up
16781      # to version 4, is to share data among multiple programs linked
16782      # with the same dynamic library.  Since this doesn't match the
16783      # behavior of shared libraries on other platforms, we can't use
16784      # them.
16785      ld_shlibs_GCJ=no
16786      ;;
16787
16788    beos*)
16789      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16790	allow_undefined_flag_GCJ=unsupported
16791	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16792	# support --undefined.  This deserves some investigation.  FIXME
16793	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16794      else
16795	ld_shlibs_GCJ=no
16796      fi
16797      ;;
16798
16799    cygwin* | mingw* | pw32*)
16800      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16801      # as there is no search path for DLLs.
16802      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16803      allow_undefined_flag_GCJ=unsupported
16804      always_export_symbols_GCJ=no
16805      enable_shared_with_static_runtimes_GCJ=yes
16806      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16807
16808      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16809        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16810	# If the export-symbols file already is a .def file (1st line
16811	# is EXPORTS), use it as is; otherwise, prepend...
16812	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16813	  cp $export_symbols $output_objdir/$soname.def;
16814	else
16815	  echo EXPORTS > $output_objdir/$soname.def;
16816	  cat $export_symbols >> $output_objdir/$soname.def;
16817	fi~
16818	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
16819      else
16820	ld_shlibs=no
16821      fi
16822      ;;
16823
16824    netbsd* | knetbsd*-gnu)
16825      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16826	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16827	wlarc=
16828      else
16829	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16830	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16831      fi
16832      ;;
16833
16834    solaris* | sysv5*)
16835      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16836	ld_shlibs_GCJ=no
16837	cat <<EOF 1>&2
16838
16839*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16840*** create shared libraries on Solaris systems.  Therefore, libtool
16841*** is disabling shared libraries support.  We urge you to upgrade GNU
16842*** binutils to release 2.9.1 or newer.  Another option is to modify
16843*** your PATH or compiler configuration so that the native linker is
16844*** used, and then restart.
16845
16846EOF
16847      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16848	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16849	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16850      else
16851	ld_shlibs_GCJ=no
16852      fi
16853      ;;
16854
16855    sunos4*)
16856      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16857      wlarc=
16858      hardcode_direct_GCJ=yes
16859      hardcode_shlibpath_var_GCJ=no
16860      ;;
16861
16862  linux*)
16863    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16864        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16865	archive_cmds_GCJ="$tmp_archive_cmds"
16866      supports_anon_versioning=no
16867      case `$LD -v 2>/dev/null` in
16868        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16869        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16870        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16871        *\ 2.11.*) ;; # other 2.11 versions
16872        *) supports_anon_versioning=yes ;;
16873      esac
16874      if test $supports_anon_versioning = yes; then
16875        archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16876cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16877$echo "local: *; };" >> $output_objdir/$libname.ver~
16878        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16879      else
16880        archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16881      fi
16882      link_all_deplibs_GCJ=no
16883    else
16884      ld_shlibs_GCJ=no
16885    fi
16886    ;;
16887
16888    *)
16889      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16890	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16891	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16892      else
16893	ld_shlibs_GCJ=no
16894      fi
16895      ;;
16896    esac
16897
16898    if test "$ld_shlibs_GCJ" = yes; then
16899      runpath_var=LD_RUN_PATH
16900      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16901      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16902      # ancient GNU ld didn't support --whole-archive et. al.
16903      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16904 	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16905      else
16906  	whole_archive_flag_spec_GCJ=
16907      fi
16908    fi
16909  else
16910    # PORTME fill in a description of your system's linker (not GNU ld)
16911    case $host_os in
16912    aix3*)
16913      allow_undefined_flag_GCJ=unsupported
16914      always_export_symbols_GCJ=yes
16915      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'
16916      # Note: this linker hardcodes the directories in LIBPATH if there
16917      # are no directories specified by -L.
16918      hardcode_minus_L_GCJ=yes
16919      if test "$GCC" = yes && test -z "$link_static_flag"; then
16920	# Neither direct hardcoding nor static linking is supported with a
16921	# broken collect2.
16922	hardcode_direct_GCJ=unsupported
16923      fi
16924      ;;
16925
16926    aix4* | aix5*)
16927      if test "$host_cpu" = ia64; then
16928	# On IA64, the linker does run time linking by default, so we don't
16929	# have to do anything special.
16930	aix_use_runtimelinking=no
16931	exp_sym_flag='-Bexport'
16932	no_entry_flag=""
16933      else
16934	# If we're using GNU nm, then we don't want the "-C" option.
16935	# -C means demangle to AIX nm, but means don't demangle with GNU nm
16936	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16937	  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'
16938	else
16939	  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'
16940	fi
16941	aix_use_runtimelinking=no
16942
16943	# Test if we are trying to use run time linking or normal
16944	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16945	# need to do runtime linking.
16946	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16947	  for ld_flag in $LDFLAGS; do
16948  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16949  	    aix_use_runtimelinking=yes
16950  	    break
16951  	  fi
16952	  done
16953	esac
16954
16955	exp_sym_flag='-bexport'
16956	no_entry_flag='-bnoentry'
16957      fi
16958
16959      # When large executables or shared objects are built, AIX ld can
16960      # have problems creating the table of contents.  If linking a library
16961      # or program results in "error TOC overflow" add -mminimal-toc to
16962      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16963      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16964
16965      archive_cmds_GCJ=''
16966      hardcode_direct_GCJ=yes
16967      hardcode_libdir_separator_GCJ=':'
16968      link_all_deplibs_GCJ=yes
16969
16970      if test "$GCC" = yes; then
16971	case $host_os in aix4.012|aix4.012.*)
16972	# We only want to do this on AIX 4.2 and lower, the check
16973	# below for broken collect2 doesn't work under 4.3+
16974	  collect2name=`${CC} -print-prog-name=collect2`
16975	  if test -f "$collect2name" && \
16976  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
16977	  then
16978  	  # We have reworked collect2
16979  	  hardcode_direct_GCJ=yes
16980	  else
16981  	  # We have old collect2
16982  	  hardcode_direct_GCJ=unsupported
16983  	  # It fails to find uninstalled libraries when the uninstalled
16984  	  # path is not listed in the libpath.  Setting hardcode_minus_L
16985  	  # to unsupported forces relinking
16986  	  hardcode_minus_L_GCJ=yes
16987  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
16988  	  hardcode_libdir_separator_GCJ=
16989	  fi
16990	esac
16991	shared_flag='-shared'
16992      else
16993	# not using gcc
16994	if test "$host_cpu" = ia64; then
16995  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16996  	# chokes on -Wl,-G. The following line is correct:
16997	  shared_flag='-G'
16998	else
16999  	if test "$aix_use_runtimelinking" = yes; then
17000	    shared_flag='${wl}-G'
17001	  else
17002	    shared_flag='${wl}-bM:SRE'
17003  	fi
17004	fi
17005      fi
17006
17007      # It seems that -bexpall does not export symbols beginning with
17008      # underscore (_), so it is better to generate a list of symbols to export.
17009      always_export_symbols_GCJ=yes
17010      if test "$aix_use_runtimelinking" = yes; then
17011	# Warning - without using the other runtime loading flags (-brtl),
17012	# -berok will link without error, but may produce a broken library.
17013	allow_undefined_flag_GCJ='-berok'
17014       # Determine the default libpath from the value encoded in an empty executable.
17015       cat >conftest.$ac_ext <<_ACEOF
17016/* confdefs.h.  */
17017_ACEOF
17018cat confdefs.h >>conftest.$ac_ext
17019cat >>conftest.$ac_ext <<_ACEOF
17020/* end confdefs.h.  */
17021
17022int
17023main ()
17024{
17025
17026  ;
17027  return 0;
17028}
17029_ACEOF
17030rm -f conftest.$ac_objext conftest$ac_exeext
17031if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17032  (eval $ac_link) 2>conftest.er1
17033  ac_status=$?
17034  grep -v '^ *+' conftest.er1 >conftest.err
17035  rm -f conftest.er1
17036  cat conftest.err >&5
17037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17038  (exit $ac_status); } &&
17039	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
17040  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17041  (eval $ac_try) 2>&5
17042  ac_status=$?
17043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17044  (exit $ac_status); }; } &&
17045	 { ac_try='test -s conftest$ac_exeext'
17046  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17047  (eval $ac_try) 2>&5
17048  ac_status=$?
17049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17050  (exit $ac_status); }; }; then
17051
17052aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17053}'`
17054# Check for a 64-bit object if we didn't find anything.
17055if 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; }
17056}'`; fi
17057else
17058  echo "$as_me: failed program was:" >&5
17059sed 's/^/| /' conftest.$ac_ext >&5
17060
17061fi
17062rm -f conftest.err conftest.$ac_objext \
17063      conftest$ac_exeext conftest.$ac_ext
17064if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17065
17066       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17067	archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17068       else
17069	if test "$host_cpu" = ia64; then
17070	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17071	  allow_undefined_flag_GCJ="-z nodefs"
17072	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
17073	else
17074	 # Determine the default libpath from the value encoded in an empty executable.
17075	 cat >conftest.$ac_ext <<_ACEOF
17076/* confdefs.h.  */
17077_ACEOF
17078cat confdefs.h >>conftest.$ac_ext
17079cat >>conftest.$ac_ext <<_ACEOF
17080/* end confdefs.h.  */
17081
17082int
17083main ()
17084{
17085
17086  ;
17087  return 0;
17088}
17089_ACEOF
17090rm -f conftest.$ac_objext conftest$ac_exeext
17091if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17092  (eval $ac_link) 2>conftest.er1
17093  ac_status=$?
17094  grep -v '^ *+' conftest.er1 >conftest.err
17095  rm -f conftest.er1
17096  cat conftest.err >&5
17097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17098  (exit $ac_status); } &&
17099	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
17100  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17101  (eval $ac_try) 2>&5
17102  ac_status=$?
17103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104  (exit $ac_status); }; } &&
17105	 { ac_try='test -s conftest$ac_exeext'
17106  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17107  (eval $ac_try) 2>&5
17108  ac_status=$?
17109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110  (exit $ac_status); }; }; then
17111
17112aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17113}'`
17114# Check for a 64-bit object if we didn't find anything.
17115if 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; }
17116}'`; fi
17117else
17118  echo "$as_me: failed program was:" >&5
17119sed 's/^/| /' conftest.$ac_ext >&5
17120
17121fi
17122rm -f conftest.err conftest.$ac_objext \
17123      conftest$ac_exeext conftest.$ac_ext
17124if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17125
17126	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17127	  # Warning - without using the other run time loading flags,
17128	  # -berok will link without error, but may produce a broken library.
17129	  no_undefined_flag_GCJ=' ${wl}-bernotok'
17130	  allow_undefined_flag_GCJ=' ${wl}-berok'
17131	  # -bexpall does not export symbols beginning with underscore (_)
17132	  always_export_symbols_GCJ=yes
17133	  # Exported symbols can be pulled into shared objects from archives
17134	  whole_archive_flag_spec_GCJ=' '
17135	  archive_cmds_need_lc_GCJ=yes
17136	  # This is similar to how AIX traditionally builds it's shared libraries.
17137	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17138	fi
17139      fi
17140      ;;
17141
17142    amigaos*)
17143      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)'
17144      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17145      hardcode_minus_L_GCJ=yes
17146      # see comment about different semantics on the GNU ld section
17147      ld_shlibs_GCJ=no
17148      ;;
17149
17150    bsdi4*)
17151      export_dynamic_flag_spec_GCJ=-rdynamic
17152      ;;
17153
17154    cygwin* | mingw* | pw32*)
17155      # When not using gcc, we currently assume that we are using
17156      # Microsoft Visual C++.
17157      # hardcode_libdir_flag_spec is actually meaningless, as there is
17158      # no search path for DLLs.
17159      hardcode_libdir_flag_spec_GCJ=' '
17160      allow_undefined_flag_GCJ=unsupported
17161      # Tell ltmain to make .lib files, not .a files.
17162      libext=lib
17163      # Tell ltmain to make .dll files, not .so files.
17164      shrext_cmds=".dll"
17165      # FIXME: Setting linknames here is a bad hack.
17166      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17167      # The linker will automatically build a .lib file if we build a DLL.
17168      old_archive_From_new_cmds_GCJ='true'
17169      # FIXME: Should let the user specify the lib program.
17170      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17171      fix_srcfile_path='`cygpath -w "$srcfile"`'
17172      enable_shared_with_static_runtimes_GCJ=yes
17173      ;;
17174
17175    darwin* | rhapsody*)
17176    if test "$GXX" = yes ; then
17177      archive_cmds_need_lc_GCJ=no
17178      case "$host_os" in
17179      rhapsody* | darwin1.[012])
17180	allow_undefined_flag_GCJ='-undefined suppress'
17181	;;
17182      *) # Darwin 1.3 on
17183      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17184      	allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
17185      else
17186        case ${MACOSX_DEPLOYMENT_TARGET} in
17187          10.[012])
17188            allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
17189            ;;
17190          10.*)
17191            allow_undefined_flag_GCJ='-undefined dynamic_lookup'
17192            ;;
17193        esac
17194      fi
17195	;;
17196      esac
17197    	lt_int_apple_cc_single_mod=no
17198    	output_verbose_link_cmd='echo'
17199    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
17200    	  lt_int_apple_cc_single_mod=yes
17201    	fi
17202    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17203    	  archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17204    	else
17205        archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17206      fi
17207      module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17208      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17209        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17210          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17211        else
17212          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17213        fi
17214          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}'
17215      hardcode_direct_GCJ=no
17216      hardcode_automatic_GCJ=yes
17217      hardcode_shlibpath_var_GCJ=unsupported
17218      whole_archive_flag_spec_GCJ='-all_load $convenience'
17219      link_all_deplibs_GCJ=yes
17220    else
17221      ld_shlibs_GCJ=no
17222    fi
17223      ;;
17224
17225    dgux*)
17226      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17227      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17228      hardcode_shlibpath_var_GCJ=no
17229      ;;
17230
17231    freebsd1*)
17232      ld_shlibs_GCJ=no
17233      ;;
17234
17235    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17236    # support.  Future versions do this automatically, but an explicit c++rt0.o
17237    # does not break anything, and helps significantly (at the cost of a little
17238    # extra space).
17239    freebsd2.2*)
17240      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17241      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17242      hardcode_direct_GCJ=yes
17243      hardcode_shlibpath_var_GCJ=no
17244      ;;
17245
17246    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17247    freebsd2*)
17248      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17249      hardcode_direct_GCJ=yes
17250      hardcode_minus_L_GCJ=yes
17251      hardcode_shlibpath_var_GCJ=no
17252      ;;
17253
17254    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17255    freebsd* | kfreebsd*-gnu)
17256      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17257      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17258      hardcode_direct_GCJ=yes
17259      hardcode_shlibpath_var_GCJ=no
17260      ;;
17261
17262    hpux9*)
17263      if test "$GCC" = yes; then
17264	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'
17265      else
17266	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'
17267      fi
17268      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17269      hardcode_libdir_separator_GCJ=:
17270      hardcode_direct_GCJ=yes
17271
17272      # hardcode_minus_L: Not really in the search PATH,
17273      # but as the default location of the library.
17274      hardcode_minus_L_GCJ=yes
17275      export_dynamic_flag_spec_GCJ='${wl}-E'
17276      ;;
17277
17278    hpux10* | hpux11*)
17279      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17280	case "$host_cpu" in
17281	hppa*64*|ia64*)
17282	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17283	  ;;
17284	*)
17285	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17286	  ;;
17287	esac
17288      else
17289	case "$host_cpu" in
17290	hppa*64*|ia64*)
17291	  archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17292	  ;;
17293	*)
17294	  archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17295	  ;;
17296	esac
17297      fi
17298      if test "$with_gnu_ld" = no; then
17299	case "$host_cpu" in
17300	hppa*64*)
17301	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17302	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17303	  hardcode_libdir_separator_GCJ=:
17304	  hardcode_direct_GCJ=no
17305	  hardcode_shlibpath_var_GCJ=no
17306	  ;;
17307	ia64*)
17308	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17309	  hardcode_direct_GCJ=no
17310	  hardcode_shlibpath_var_GCJ=no
17311
17312	  # hardcode_minus_L: Not really in the search PATH,
17313	  # but as the default location of the library.
17314	  hardcode_minus_L_GCJ=yes
17315	  ;;
17316	*)
17317	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17318	  hardcode_libdir_separator_GCJ=:
17319	  hardcode_direct_GCJ=yes
17320	  export_dynamic_flag_spec_GCJ='${wl}-E'
17321
17322	  # hardcode_minus_L: Not really in the search PATH,
17323	  # but as the default location of the library.
17324	  hardcode_minus_L_GCJ=yes
17325	  ;;
17326	esac
17327      fi
17328      ;;
17329
17330    irix5* | irix6* | nonstopux*)
17331      if test "$GCC" = yes; then
17332	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'
17333      else
17334	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'
17335	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17336      fi
17337      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17338      hardcode_libdir_separator_GCJ=:
17339      link_all_deplibs_GCJ=yes
17340      ;;
17341
17342    netbsd* | knetbsd*-gnu)
17343      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17344	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17345      else
17346	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17347      fi
17348      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17349      hardcode_direct_GCJ=yes
17350      hardcode_shlibpath_var_GCJ=no
17351      ;;
17352
17353    newsos6)
17354      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17355      hardcode_direct_GCJ=yes
17356      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17357      hardcode_libdir_separator_GCJ=:
17358      hardcode_shlibpath_var_GCJ=no
17359      ;;
17360
17361    openbsd*)
17362      hardcode_direct_GCJ=yes
17363      hardcode_shlibpath_var_GCJ=no
17364      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17365	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17366	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17367	export_dynamic_flag_spec_GCJ='${wl}-E'
17368      else
17369       case $host_os in
17370	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17371	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17372	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
17373	   ;;
17374	 *)
17375	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17376	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17377	   ;;
17378       esac
17379      fi
17380      ;;
17381
17382    os2*)
17383      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17384      hardcode_minus_L_GCJ=yes
17385      allow_undefined_flag_GCJ=unsupported
17386      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'
17387      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17388      ;;
17389
17390    osf3*)
17391      if test "$GCC" = yes; then
17392	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17393	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'
17394      else
17395	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17396	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'
17397      fi
17398      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17399      hardcode_libdir_separator_GCJ=:
17400      ;;
17401
17402    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17403      if test "$GCC" = yes; then
17404	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17405	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'
17406	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17407      else
17408	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17409	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'
17410	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~
17411	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
17412
17413	# Both c and cxx compiler support -rpath directly
17414	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17415      fi
17416      hardcode_libdir_separator_GCJ=:
17417      ;;
17418
17419    sco3.2v5*)
17420      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17421      hardcode_shlibpath_var_GCJ=no
17422      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17423      runpath_var=LD_RUN_PATH
17424      hardcode_runpath_var=yes
17425      ;;
17426
17427    solaris*)
17428      no_undefined_flag_GCJ=' -z text'
17429      if test "$GCC" = yes; then
17430	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17431	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17432	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17433      else
17434	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17435	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17436  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17437      fi
17438      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17439      hardcode_shlibpath_var_GCJ=no
17440      case $host_os in
17441      solaris2.[0-5] | solaris2.[0-5].*) ;;
17442      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
17443	whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17444      esac
17445      link_all_deplibs_GCJ=yes
17446      ;;
17447
17448    sunos4*)
17449      if test "x$host_vendor" = xsequent; then
17450	# Use $CC to link under sequent, because it throws in some extra .o
17451	# files that make .init and .fini sections work.
17452	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17453      else
17454	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17455      fi
17456      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17457      hardcode_direct_GCJ=yes
17458      hardcode_minus_L_GCJ=yes
17459      hardcode_shlibpath_var_GCJ=no
17460      ;;
17461
17462    sysv4)
17463      case $host_vendor in
17464	sni)
17465	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17466	  hardcode_direct_GCJ=yes # is this really true???
17467	;;
17468	siemens)
17469	  ## LD is ld it makes a PLAMLIB
17470	  ## CC just makes a GrossModule.
17471	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17472	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17473	  hardcode_direct_GCJ=no
17474        ;;
17475	motorola)
17476	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17477	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17478	;;
17479      esac
17480      runpath_var='LD_RUN_PATH'
17481      hardcode_shlibpath_var_GCJ=no
17482      ;;
17483
17484    sysv4.3*)
17485      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17486      hardcode_shlibpath_var_GCJ=no
17487      export_dynamic_flag_spec_GCJ='-Bexport'
17488      ;;
17489
17490    sysv4*MP*)
17491      if test -d /usr/nec; then
17492	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17493	hardcode_shlibpath_var_GCJ=no
17494	runpath_var=LD_RUN_PATH
17495	hardcode_runpath_var=yes
17496	ld_shlibs_GCJ=yes
17497      fi
17498      ;;
17499
17500    sysv4.2uw2*)
17501      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17502      hardcode_direct_GCJ=yes
17503      hardcode_minus_L_GCJ=no
17504      hardcode_shlibpath_var_GCJ=no
17505      hardcode_runpath_var=yes
17506      runpath_var=LD_RUN_PATH
17507      ;;
17508
17509   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
17510      no_undefined_flag_GCJ='${wl}-z ${wl}text'
17511      if test "$GCC" = yes; then
17512	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17513      else
17514	archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17515      fi
17516      runpath_var='LD_RUN_PATH'
17517      hardcode_shlibpath_var_GCJ=no
17518      ;;
17519
17520    sysv5*)
17521      no_undefined_flag_GCJ=' -z text'
17522      # $CC -shared without GNU ld will not create a library from C++
17523      # object files and a static libstdc++, better avoid it by now
17524      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17525      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17526  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17527      hardcode_libdir_flag_spec_GCJ=
17528      hardcode_shlibpath_var_GCJ=no
17529      runpath_var='LD_RUN_PATH'
17530      ;;
17531
17532    uts4*)
17533      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17534      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17535      hardcode_shlibpath_var_GCJ=no
17536      ;;
17537
17538    *)
17539      ld_shlibs_GCJ=no
17540      ;;
17541    esac
17542  fi
17543
17544echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17545echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17546test "$ld_shlibs_GCJ" = no && can_build_shared=no
17547
17548variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17549if test "$GCC" = yes; then
17550  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17551fi
17552
17553#
17554# Do we need to explicitly link libc?
17555#
17556case "x$archive_cmds_need_lc_GCJ" in
17557x|xyes)
17558  # Assume -lc should be added
17559  archive_cmds_need_lc_GCJ=yes
17560
17561  if test "$enable_shared" = yes && test "$GCC" = yes; then
17562    case $archive_cmds_GCJ in
17563    *'~'*)
17564      # FIXME: we may have to deal with multi-command sequences.
17565      ;;
17566    '$CC '*)
17567      # Test whether the compiler implicitly links with -lc since on some
17568      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17569      # to ld, don't add -lc before -lgcc.
17570      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17571echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17572      $rm conftest*
17573      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17574
17575      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17576  (eval $ac_compile) 2>&5
17577  ac_status=$?
17578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17579  (exit $ac_status); } 2>conftest.err; then
17580        soname=conftest
17581        lib=conftest
17582        libobjs=conftest.$ac_objext
17583        deplibs=
17584        wl=$lt_prog_compiler_wl_GCJ
17585        compiler_flags=-v
17586        linker_flags=-v
17587        verstring=
17588        output_objdir=.
17589        libname=conftest
17590        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17591        allow_undefined_flag_GCJ=
17592        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17593  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17594  ac_status=$?
17595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17596  (exit $ac_status); }
17597        then
17598	  archive_cmds_need_lc_GCJ=no
17599        else
17600	  archive_cmds_need_lc_GCJ=yes
17601        fi
17602        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17603      else
17604        cat conftest.err 1>&5
17605      fi
17606      $rm conftest*
17607      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17608echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17609      ;;
17610    esac
17611  fi
17612  ;;
17613esac
17614
17615echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17616echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17617library_names_spec=
17618libname_spec='lib$name'
17619soname_spec=
17620shrext_cmds=".so"
17621postinstall_cmds=
17622postuninstall_cmds=
17623finish_cmds=
17624finish_eval=
17625shlibpath_var=
17626shlibpath_overrides_runpath=unknown
17627version_type=none
17628dynamic_linker="$host_os ld.so"
17629sys_lib_dlsearch_path_spec="/lib /usr/lib"
17630if test "$GCC" = yes; then
17631  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17632  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17633    # if the path contains ";" then we assume it to be the separator
17634    # otherwise default to the standard path separator (i.e. ":") - it is
17635    # assumed that no part of a normal pathname contains ";" but that should
17636    # okay in the real world where ";" in dirpaths is itself problematic.
17637    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17638  else
17639    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17640  fi
17641else
17642  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17643fi
17644need_lib_prefix=unknown
17645hardcode_into_libs=no
17646
17647# when you set need_version to no, make sure it does not cause -set_version
17648# flags to be left without arguments
17649need_version=unknown
17650
17651case $host_os in
17652aix3*)
17653  version_type=linux
17654  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17655  shlibpath_var=LIBPATH
17656
17657  # AIX 3 has no versioning support, so we append a major version to the name.
17658  soname_spec='${libname}${release}${shared_ext}$major'
17659  ;;
17660
17661aix4* | aix5*)
17662  version_type=linux
17663  need_lib_prefix=no
17664  need_version=no
17665  hardcode_into_libs=yes
17666  if test "$host_cpu" = ia64; then
17667    # AIX 5 supports IA64
17668    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17669    shlibpath_var=LD_LIBRARY_PATH
17670  else
17671    # With GCC up to 2.95.x, collect2 would create an import file
17672    # for dependence libraries.  The import file would start with
17673    # the line `#! .'.  This would cause the generated library to
17674    # depend on `.', always an invalid library.  This was fixed in
17675    # development snapshots of GCC prior to 3.0.
17676    case $host_os in
17677      aix4 | aix4.[01] | aix4.[01].*)
17678      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17679	   echo ' yes '
17680	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17681	:
17682      else
17683	can_build_shared=no
17684      fi
17685      ;;
17686    esac
17687    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17688    # soname into executable. Probably we can add versioning support to
17689    # collect2, so additional links can be useful in future.
17690    if test "$aix_use_runtimelinking" = yes; then
17691      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17692      # instead of lib<name>.a to let people know that these are not
17693      # typical AIX shared libraries.
17694      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17695    else
17696      # We preserve .a as extension for shared libraries through AIX4.2
17697      # and later when we are not doing run time linking.
17698      library_names_spec='${libname}${release}.a $libname.a'
17699      soname_spec='${libname}${release}${shared_ext}$major'
17700    fi
17701    shlibpath_var=LIBPATH
17702  fi
17703  ;;
17704
17705amigaos*)
17706  library_names_spec='$libname.ixlibrary $libname.a'
17707  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17708  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'
17709  ;;
17710
17711beos*)
17712  library_names_spec='${libname}${shared_ext}'
17713  dynamic_linker="$host_os ld.so"
17714  shlibpath_var=LIBRARY_PATH
17715  ;;
17716
17717bsdi4*)
17718  version_type=linux
17719  need_version=no
17720  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17721  soname_spec='${libname}${release}${shared_ext}$major'
17722  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17723  shlibpath_var=LD_LIBRARY_PATH
17724  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17725  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17726  # the default ld.so.conf also contains /usr/contrib/lib and
17727  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17728  # libtool to hard-code these into programs
17729  ;;
17730
17731cygwin* | mingw* | pw32*)
17732  version_type=windows
17733  shrext_cmds=".dll"
17734  need_version=no
17735  need_lib_prefix=no
17736
17737  case $GCC,$host_os in
17738  yes,cygwin* | yes,mingw* | yes,pw32*)
17739    library_names_spec='$libname.dll.a'
17740    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17741    postinstall_cmds='base_file=`basename \${file}`~
17742      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17743      dldir=$destdir/`dirname \$dlpath`~
17744      test -d \$dldir || mkdir -p \$dldir~
17745      $install_prog $dir/$dlname \$dldir/$dlname'
17746    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17747      dlpath=$dir/\$dldll~
17748       $rm \$dlpath'
17749    shlibpath_overrides_runpath=yes
17750
17751    case $host_os in
17752    cygwin*)
17753      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17754      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17755      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17756      ;;
17757    mingw*)
17758      # MinGW DLLs use traditional 'lib' prefix
17759      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17760      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17761      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17762        # It is most probably a Windows format PATH printed by
17763        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17764        # path with ; separators, and with drive letters. We can handle the
17765        # drive letters (cygwin fileutils understands them), so leave them,
17766        # especially as we might pass files found there to a mingw objdump,
17767        # which wouldn't understand a cygwinified path. Ahh.
17768        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17769      else
17770        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17771      fi
17772      ;;
17773    pw32*)
17774      # pw32 DLLs use 'pw' prefix rather than 'lib'
17775      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17776      ;;
17777    esac
17778    ;;
17779
17780  *)
17781    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17782    ;;
17783  esac
17784  dynamic_linker='Win32 ld.exe'
17785  # FIXME: first we should search . and the directory the executable is in
17786  shlibpath_var=PATH
17787  ;;
17788
17789darwin* | rhapsody*)
17790  dynamic_linker="$host_os dyld"
17791  version_type=darwin
17792  need_lib_prefix=no
17793  need_version=no
17794  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17795  soname_spec='${libname}${release}${major}$shared_ext'
17796  shlibpath_overrides_runpath=yes
17797  shlibpath_var=DYLD_LIBRARY_PATH
17798  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17799  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17800  if test "$GCC" = yes; then
17801    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"`
17802  else
17803    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17804  fi
17805  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17806  ;;
17807
17808dgux*)
17809  version_type=linux
17810  need_lib_prefix=no
17811  need_version=no
17812  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17813  soname_spec='${libname}${release}${shared_ext}$major'
17814  shlibpath_var=LD_LIBRARY_PATH
17815  ;;
17816
17817freebsd1*)
17818  dynamic_linker=no
17819  ;;
17820
17821kfreebsd*-gnu)
17822  version_type=linux
17823  need_lib_prefix=no
17824  need_version=no
17825  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17826  soname_spec='${libname}${release}${shared_ext}$major'
17827  shlibpath_var=LD_LIBRARY_PATH
17828  shlibpath_overrides_runpath=no
17829  hardcode_into_libs=yes
17830  dynamic_linker='GNU ld.so'
17831  ;;
17832
17833freebsd*)
17834  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17835  version_type=freebsd-$objformat
17836  case $version_type in
17837    freebsd-elf*)
17838      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17839      need_version=no
17840      need_lib_prefix=no
17841      ;;
17842    freebsd-*)
17843      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17844      need_version=yes
17845      ;;
17846  esac
17847  shlibpath_var=LD_LIBRARY_PATH
17848  case $host_os in
17849  freebsd2*)
17850    shlibpath_overrides_runpath=yes
17851    ;;
17852  freebsd3.01* | freebsdelf3.01*)
17853    shlibpath_overrides_runpath=yes
17854    hardcode_into_libs=yes
17855    ;;
17856  *) # from 3.2 on
17857    shlibpath_overrides_runpath=no
17858    hardcode_into_libs=yes
17859    ;;
17860  esac
17861  ;;
17862
17863gnu*)
17864  version_type=linux
17865  need_lib_prefix=no
17866  need_version=no
17867  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17868  soname_spec='${libname}${release}${shared_ext}$major'
17869  shlibpath_var=LD_LIBRARY_PATH
17870  hardcode_into_libs=yes
17871  ;;
17872
17873hpux9* | hpux10* | hpux11*)
17874  # Give a soname corresponding to the major version so that dld.sl refuses to
17875  # link against other versions.
17876  version_type=sunos
17877  need_lib_prefix=no
17878  need_version=no
17879  case "$host_cpu" in
17880  ia64*)
17881    shrext_cmds='.so'
17882    hardcode_into_libs=yes
17883    dynamic_linker="$host_os dld.so"
17884    shlibpath_var=LD_LIBRARY_PATH
17885    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17886    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17887    soname_spec='${libname}${release}${shared_ext}$major'
17888    if test "X$HPUX_IA64_MODE" = X32; then
17889      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17890    else
17891      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17892    fi
17893    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17894    ;;
17895   hppa*64*)
17896     shrext_cmds='.sl'
17897     hardcode_into_libs=yes
17898     dynamic_linker="$host_os dld.sl"
17899     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17900     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17901     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17902     soname_spec='${libname}${release}${shared_ext}$major'
17903     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17904     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17905     ;;
17906   *)
17907    shrext_cmds='.sl'
17908    dynamic_linker="$host_os dld.sl"
17909    shlibpath_var=SHLIB_PATH
17910    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17911    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17912    soname_spec='${libname}${release}${shared_ext}$major'
17913    ;;
17914  esac
17915  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17916  postinstall_cmds='chmod 555 $lib'
17917  ;;
17918
17919irix5* | irix6* | nonstopux*)
17920  case $host_os in
17921    nonstopux*) version_type=nonstopux ;;
17922    *)
17923	if test "$lt_cv_prog_gnu_ld" = yes; then
17924		version_type=linux
17925	else
17926		version_type=irix
17927	fi ;;
17928  esac
17929  need_lib_prefix=no
17930  need_version=no
17931  soname_spec='${libname}${release}${shared_ext}$major'
17932  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17933  case $host_os in
17934  irix5* | nonstopux*)
17935    libsuff= shlibsuff=
17936    ;;
17937  *)
17938    case $LD in # libtool.m4 will add one of these switches to LD
17939    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17940      libsuff= shlibsuff= libmagic=32-bit;;
17941    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17942      libsuff=32 shlibsuff=N32 libmagic=N32;;
17943    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17944      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17945    *) libsuff= shlibsuff= libmagic=never-match;;
17946    esac
17947    ;;
17948  esac
17949  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17950  shlibpath_overrides_runpath=no
17951  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17952  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17953  hardcode_into_libs=yes
17954  ;;
17955
17956# No shared lib support for Linux oldld, aout, or coff.
17957linux*oldld* | linux*aout* | linux*coff*)
17958  dynamic_linker=no
17959  ;;
17960
17961# This must be Linux ELF.
17962linux*)
17963  version_type=linux
17964  need_lib_prefix=no
17965  need_version=no
17966  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17967  soname_spec='${libname}${release}${shared_ext}$major'
17968  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17969  shlibpath_var=LD_LIBRARY_PATH
17970  shlibpath_overrides_runpath=no
17971  # This implies no fast_install, which is unacceptable.
17972  # Some rework will be needed to allow for fast_install
17973  # before this can be enabled.
17974  hardcode_into_libs=yes
17975
17976  # Append ld.so.conf contents to the search path
17977  if test -f /etc/ld.so.conf; then
17978    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17979    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17980  fi
17981
17982  # We used to test for /lib/ld.so.1 and disable shared libraries on
17983  # powerpc, because MkLinux only supported shared libraries with the
17984  # GNU dynamic linker.  Since this was broken with cross compilers,
17985  # most powerpc-linux boxes support dynamic linking these days and
17986  # people can always --disable-shared, the test was removed, and we
17987  # assume the GNU/Linux dynamic linker is in use.
17988  dynamic_linker='GNU/Linux ld.so'
17989  ;;
17990
17991knetbsd*-gnu)
17992  version_type=linux
17993  need_lib_prefix=no
17994  need_version=no
17995  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17996  soname_spec='${libname}${release}${shared_ext}$major'
17997  shlibpath_var=LD_LIBRARY_PATH
17998  shlibpath_overrides_runpath=no
17999  hardcode_into_libs=yes
18000  dynamic_linker='GNU ld.so'
18001  ;;
18002
18003netbsd*)
18004  version_type=sunos
18005  need_lib_prefix=no
18006  need_version=no
18007  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18008    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18009    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18010    dynamic_linker='NetBSD (a.out) ld.so'
18011  else
18012    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18013    soname_spec='${libname}${release}${shared_ext}$major'
18014    dynamic_linker='NetBSD ld.elf_so'
18015  fi
18016  shlibpath_var=LD_LIBRARY_PATH
18017  shlibpath_overrides_runpath=yes
18018  hardcode_into_libs=yes
18019  ;;
18020
18021newsos6)
18022  version_type=linux
18023  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18024  shlibpath_var=LD_LIBRARY_PATH
18025  shlibpath_overrides_runpath=yes
18026  ;;
18027
18028nto-qnx*)
18029  version_type=linux
18030  need_lib_prefix=no
18031  need_version=no
18032  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18033  soname_spec='${libname}${release}${shared_ext}$major'
18034  shlibpath_var=LD_LIBRARY_PATH
18035  shlibpath_overrides_runpath=yes
18036  ;;
18037
18038openbsd*)
18039  version_type=sunos
18040  need_lib_prefix=no
18041  need_version=yes
18042  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18043  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18044  shlibpath_var=LD_LIBRARY_PATH
18045  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18046    case $host_os in
18047      openbsd2.[89] | openbsd2.[89].*)
18048	shlibpath_overrides_runpath=no
18049	;;
18050      *)
18051	shlibpath_overrides_runpath=yes
18052	;;
18053      esac
18054  else
18055    shlibpath_overrides_runpath=yes
18056  fi
18057  ;;
18058
18059os2*)
18060  libname_spec='$name'
18061  shrext_cmds=".dll"
18062  need_lib_prefix=no
18063  library_names_spec='$libname${shared_ext} $libname.a'
18064  dynamic_linker='OS/2 ld.exe'
18065  shlibpath_var=LIBPATH
18066  ;;
18067
18068osf3* | osf4* | osf5*)
18069  version_type=osf
18070  need_lib_prefix=no
18071  need_version=no
18072  soname_spec='${libname}${release}${shared_ext}$major'
18073  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18074  shlibpath_var=LD_LIBRARY_PATH
18075  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18076  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18077  ;;
18078
18079sco3.2v5*)
18080  version_type=osf
18081  soname_spec='${libname}${release}${shared_ext}$major'
18082  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18083  shlibpath_var=LD_LIBRARY_PATH
18084  ;;
18085
18086solaris*)
18087  version_type=linux
18088  need_lib_prefix=no
18089  need_version=no
18090  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18091  soname_spec='${libname}${release}${shared_ext}$major'
18092  shlibpath_var=LD_LIBRARY_PATH
18093  shlibpath_overrides_runpath=yes
18094  hardcode_into_libs=yes
18095  # ldd complains unless libraries are executable
18096  postinstall_cmds='chmod +x $lib'
18097  ;;
18098
18099sunos4*)
18100  version_type=sunos
18101  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18102  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18103  shlibpath_var=LD_LIBRARY_PATH
18104  shlibpath_overrides_runpath=yes
18105  if test "$with_gnu_ld" = yes; then
18106    need_lib_prefix=no
18107  fi
18108  need_version=yes
18109  ;;
18110
18111sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18112  version_type=linux
18113  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18114  soname_spec='${libname}${release}${shared_ext}$major'
18115  shlibpath_var=LD_LIBRARY_PATH
18116  case $host_vendor in
18117    sni)
18118      shlibpath_overrides_runpath=no
18119      need_lib_prefix=no
18120      export_dynamic_flag_spec='${wl}-Blargedynsym'
18121      runpath_var=LD_RUN_PATH
18122      ;;
18123    siemens)
18124      need_lib_prefix=no
18125      ;;
18126    motorola)
18127      need_lib_prefix=no
18128      need_version=no
18129      shlibpath_overrides_runpath=no
18130      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18131      ;;
18132  esac
18133  ;;
18134
18135sysv4*MP*)
18136  if test -d /usr/nec ;then
18137    version_type=linux
18138    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18139    soname_spec='$libname${shared_ext}.$major'
18140    shlibpath_var=LD_LIBRARY_PATH
18141  fi
18142  ;;
18143
18144uts4*)
18145  version_type=linux
18146  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18147  soname_spec='${libname}${release}${shared_ext}$major'
18148  shlibpath_var=LD_LIBRARY_PATH
18149  ;;
18150
18151*)
18152  dynamic_linker=no
18153  ;;
18154esac
18155echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18156echo "${ECHO_T}$dynamic_linker" >&6
18157test "$dynamic_linker" = no && can_build_shared=no
18158
18159echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18160echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18161hardcode_action_GCJ=
18162if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18163   test -n "$runpath_var GCJ" || \
18164   test "X$hardcode_automatic_GCJ"="Xyes" ; then
18165
18166  # We can hardcode non-existant directories.
18167  if test "$hardcode_direct_GCJ" != no &&
18168     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18169     # have to relink, otherwise we might link with an installed library
18170     # when we should be linking with a yet-to-be-installed one
18171     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18172     test "$hardcode_minus_L_GCJ" != no; then
18173    # Linking always hardcodes the temporary library directory.
18174    hardcode_action_GCJ=relink
18175  else
18176    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18177    hardcode_action_GCJ=immediate
18178  fi
18179else
18180  # We cannot hardcode anything, or else we can only hardcode existing
18181  # directories.
18182  hardcode_action_GCJ=unsupported
18183fi
18184echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18185echo "${ECHO_T}$hardcode_action_GCJ" >&6
18186
18187if test "$hardcode_action_GCJ" = relink; then
18188  # Fast installation is not supported
18189  enable_fast_install=no
18190elif test "$shlibpath_overrides_runpath" = yes ||
18191     test "$enable_shared" = no; then
18192  # Fast installation is not necessary
18193  enable_fast_install=needless
18194fi
18195
18196striplib=
18197old_striplib=
18198echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18199echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18200if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18201  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18202  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18203  echo "$as_me:$LINENO: result: yes" >&5
18204echo "${ECHO_T}yes" >&6
18205else
18206# FIXME - insert some real tests, host_os isn't really good enough
18207  case $host_os in
18208   darwin*)
18209       if test -n "$STRIP" ; then
18210         striplib="$STRIP -x"
18211         echo "$as_me:$LINENO: result: yes" >&5
18212echo "${ECHO_T}yes" >&6
18213       else
18214  echo "$as_me:$LINENO: result: no" >&5
18215echo "${ECHO_T}no" >&6
18216fi
18217       ;;
18218   *)
18219  echo "$as_me:$LINENO: result: no" >&5
18220echo "${ECHO_T}no" >&6
18221    ;;
18222  esac
18223fi
18224
18225if test "x$enable_dlopen" != xyes; then
18226  enable_dlopen=unknown
18227  enable_dlopen_self=unknown
18228  enable_dlopen_self_static=unknown
18229else
18230  lt_cv_dlopen=no
18231  lt_cv_dlopen_libs=
18232
18233  case $host_os in
18234  beos*)
18235    lt_cv_dlopen="load_add_on"
18236    lt_cv_dlopen_libs=
18237    lt_cv_dlopen_self=yes
18238    ;;
18239
18240  mingw* | pw32*)
18241    lt_cv_dlopen="LoadLibrary"
18242    lt_cv_dlopen_libs=
18243   ;;
18244
18245  cygwin*)
18246    lt_cv_dlopen="dlopen"
18247    lt_cv_dlopen_libs=
18248   ;;
18249
18250  darwin*)
18251  # if libdl is installed we need to link against it
18252    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18253echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18254if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18255  echo $ECHO_N "(cached) $ECHO_C" >&6
18256else
18257  ac_check_lib_save_LIBS=$LIBS
18258LIBS="-ldl  $LIBS"
18259cat >conftest.$ac_ext <<_ACEOF
18260/* confdefs.h.  */
18261_ACEOF
18262cat confdefs.h >>conftest.$ac_ext
18263cat >>conftest.$ac_ext <<_ACEOF
18264/* end confdefs.h.  */
18265
18266/* Override any gcc2 internal prototype to avoid an error.  */
18267#ifdef __cplusplus
18268extern "C"
18269#endif
18270/* We use char because int might match the return type of a gcc2
18271   builtin and then its argument prototype would still apply.  */
18272char dlopen ();
18273int
18274main ()
18275{
18276dlopen ();
18277  ;
18278  return 0;
18279}
18280_ACEOF
18281rm -f conftest.$ac_objext conftest$ac_exeext
18282if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18283  (eval $ac_link) 2>conftest.er1
18284  ac_status=$?
18285  grep -v '^ *+' conftest.er1 >conftest.err
18286  rm -f conftest.er1
18287  cat conftest.err >&5
18288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18289  (exit $ac_status); } &&
18290	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
18291  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18292  (eval $ac_try) 2>&5
18293  ac_status=$?
18294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18295  (exit $ac_status); }; } &&
18296	 { ac_try='test -s conftest$ac_exeext'
18297  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18298  (eval $ac_try) 2>&5
18299  ac_status=$?
18300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18301  (exit $ac_status); }; }; then
18302  ac_cv_lib_dl_dlopen=yes
18303else
18304  echo "$as_me: failed program was:" >&5
18305sed 's/^/| /' conftest.$ac_ext >&5
18306
18307ac_cv_lib_dl_dlopen=no
18308fi
18309rm -f conftest.err conftest.$ac_objext \
18310      conftest$ac_exeext conftest.$ac_ext
18311LIBS=$ac_check_lib_save_LIBS
18312fi
18313echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18314echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18315if test $ac_cv_lib_dl_dlopen = yes; then
18316  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18317else
18318
18319    lt_cv_dlopen="dyld"
18320    lt_cv_dlopen_libs=
18321    lt_cv_dlopen_self=yes
18322
18323fi
18324
18325   ;;
18326
18327  *)
18328    echo "$as_me:$LINENO: checking for shl_load" >&5
18329echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18330if test "${ac_cv_func_shl_load+set}" = set; then
18331  echo $ECHO_N "(cached) $ECHO_C" >&6
18332else
18333  cat >conftest.$ac_ext <<_ACEOF
18334/* confdefs.h.  */
18335_ACEOF
18336cat confdefs.h >>conftest.$ac_ext
18337cat >>conftest.$ac_ext <<_ACEOF
18338/* end confdefs.h.  */
18339/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18340   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18341#define shl_load innocuous_shl_load
18342
18343/* System header to define __stub macros and hopefully few prototypes,
18344    which can conflict with char shl_load (); below.
18345    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18346    <limits.h> exists even on freestanding compilers.  */
18347
18348#ifdef __STDC__
18349# include <limits.h>
18350#else
18351# include <assert.h>
18352#endif
18353
18354#undef shl_load
18355
18356/* Override any gcc2 internal prototype to avoid an error.  */
18357#ifdef __cplusplus
18358extern "C"
18359{
18360#endif
18361/* We use char because int might match the return type of a gcc2
18362   builtin and then its argument prototype would still apply.  */
18363char shl_load ();
18364/* The GNU C library defines this for functions which it implements
18365    to always fail with ENOSYS.  Some functions are actually named
18366    something starting with __ and the normal name is an alias.  */
18367#if defined (__stub_shl_load) || defined (__stub___shl_load)
18368choke me
18369#else
18370char (*f) () = shl_load;
18371#endif
18372#ifdef __cplusplus
18373}
18374#endif
18375
18376int
18377main ()
18378{
18379return f != shl_load;
18380  ;
18381  return 0;
18382}
18383_ACEOF
18384rm -f conftest.$ac_objext conftest$ac_exeext
18385if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18386  (eval $ac_link) 2>conftest.er1
18387  ac_status=$?
18388  grep -v '^ *+' conftest.er1 >conftest.err
18389  rm -f conftest.er1
18390  cat conftest.err >&5
18391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18392  (exit $ac_status); } &&
18393	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
18394  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18395  (eval $ac_try) 2>&5
18396  ac_status=$?
18397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18398  (exit $ac_status); }; } &&
18399	 { ac_try='test -s conftest$ac_exeext'
18400  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18401  (eval $ac_try) 2>&5
18402  ac_status=$?
18403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18404  (exit $ac_status); }; }; then
18405  ac_cv_func_shl_load=yes
18406else
18407  echo "$as_me: failed program was:" >&5
18408sed 's/^/| /' conftest.$ac_ext >&5
18409
18410ac_cv_func_shl_load=no
18411fi
18412rm -f conftest.err conftest.$ac_objext \
18413      conftest$ac_exeext conftest.$ac_ext
18414fi
18415echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18416echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18417if test $ac_cv_func_shl_load = yes; then
18418  lt_cv_dlopen="shl_load"
18419else
18420  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18421echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18422if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18423  echo $ECHO_N "(cached) $ECHO_C" >&6
18424else
18425  ac_check_lib_save_LIBS=$LIBS
18426LIBS="-ldld  $LIBS"
18427cat >conftest.$ac_ext <<_ACEOF
18428/* confdefs.h.  */
18429_ACEOF
18430cat confdefs.h >>conftest.$ac_ext
18431cat >>conftest.$ac_ext <<_ACEOF
18432/* end confdefs.h.  */
18433
18434/* Override any gcc2 internal prototype to avoid an error.  */
18435#ifdef __cplusplus
18436extern "C"
18437#endif
18438/* We use char because int might match the return type of a gcc2
18439   builtin and then its argument prototype would still apply.  */
18440char shl_load ();
18441int
18442main ()
18443{
18444shl_load ();
18445  ;
18446  return 0;
18447}
18448_ACEOF
18449rm -f conftest.$ac_objext conftest$ac_exeext
18450if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18451  (eval $ac_link) 2>conftest.er1
18452  ac_status=$?
18453  grep -v '^ *+' conftest.er1 >conftest.err
18454  rm -f conftest.er1
18455  cat conftest.err >&5
18456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18457  (exit $ac_status); } &&
18458	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
18459  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18460  (eval $ac_try) 2>&5
18461  ac_status=$?
18462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18463  (exit $ac_status); }; } &&
18464	 { ac_try='test -s conftest$ac_exeext'
18465  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18466  (eval $ac_try) 2>&5
18467  ac_status=$?
18468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18469  (exit $ac_status); }; }; then
18470  ac_cv_lib_dld_shl_load=yes
18471else
18472  echo "$as_me: failed program was:" >&5
18473sed 's/^/| /' conftest.$ac_ext >&5
18474
18475ac_cv_lib_dld_shl_load=no
18476fi
18477rm -f conftest.err conftest.$ac_objext \
18478      conftest$ac_exeext conftest.$ac_ext
18479LIBS=$ac_check_lib_save_LIBS
18480fi
18481echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18482echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18483if test $ac_cv_lib_dld_shl_load = yes; then
18484  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18485else
18486  echo "$as_me:$LINENO: checking for dlopen" >&5
18487echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18488if test "${ac_cv_func_dlopen+set}" = set; then
18489  echo $ECHO_N "(cached) $ECHO_C" >&6
18490else
18491  cat >conftest.$ac_ext <<_ACEOF
18492/* confdefs.h.  */
18493_ACEOF
18494cat confdefs.h >>conftest.$ac_ext
18495cat >>conftest.$ac_ext <<_ACEOF
18496/* end confdefs.h.  */
18497/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18498   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18499#define dlopen innocuous_dlopen
18500
18501/* System header to define __stub macros and hopefully few prototypes,
18502    which can conflict with char dlopen (); below.
18503    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18504    <limits.h> exists even on freestanding compilers.  */
18505
18506#ifdef __STDC__
18507# include <limits.h>
18508#else
18509# include <assert.h>
18510#endif
18511
18512#undef dlopen
18513
18514/* Override any gcc2 internal prototype to avoid an error.  */
18515#ifdef __cplusplus
18516extern "C"
18517{
18518#endif
18519/* We use char because int might match the return type of a gcc2
18520   builtin and then its argument prototype would still apply.  */
18521char dlopen ();
18522/* The GNU C library defines this for functions which it implements
18523    to always fail with ENOSYS.  Some functions are actually named
18524    something starting with __ and the normal name is an alias.  */
18525#if defined (__stub_dlopen) || defined (__stub___dlopen)
18526choke me
18527#else
18528char (*f) () = dlopen;
18529#endif
18530#ifdef __cplusplus
18531}
18532#endif
18533
18534int
18535main ()
18536{
18537return f != dlopen;
18538  ;
18539  return 0;
18540}
18541_ACEOF
18542rm -f conftest.$ac_objext conftest$ac_exeext
18543if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18544  (eval $ac_link) 2>conftest.er1
18545  ac_status=$?
18546  grep -v '^ *+' conftest.er1 >conftest.err
18547  rm -f conftest.er1
18548  cat conftest.err >&5
18549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18550  (exit $ac_status); } &&
18551	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
18552  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18553  (eval $ac_try) 2>&5
18554  ac_status=$?
18555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18556  (exit $ac_status); }; } &&
18557	 { ac_try='test -s conftest$ac_exeext'
18558  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18559  (eval $ac_try) 2>&5
18560  ac_status=$?
18561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18562  (exit $ac_status); }; }; then
18563  ac_cv_func_dlopen=yes
18564else
18565  echo "$as_me: failed program was:" >&5
18566sed 's/^/| /' conftest.$ac_ext >&5
18567
18568ac_cv_func_dlopen=no
18569fi
18570rm -f conftest.err conftest.$ac_objext \
18571      conftest$ac_exeext conftest.$ac_ext
18572fi
18573echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18574echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18575if test $ac_cv_func_dlopen = yes; then
18576  lt_cv_dlopen="dlopen"
18577else
18578  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18579echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18580if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18581  echo $ECHO_N "(cached) $ECHO_C" >&6
18582else
18583  ac_check_lib_save_LIBS=$LIBS
18584LIBS="-ldl  $LIBS"
18585cat >conftest.$ac_ext <<_ACEOF
18586/* confdefs.h.  */
18587_ACEOF
18588cat confdefs.h >>conftest.$ac_ext
18589cat >>conftest.$ac_ext <<_ACEOF
18590/* end confdefs.h.  */
18591
18592/* Override any gcc2 internal prototype to avoid an error.  */
18593#ifdef __cplusplus
18594extern "C"
18595#endif
18596/* We use char because int might match the return type of a gcc2
18597   builtin and then its argument prototype would still apply.  */
18598char dlopen ();
18599int
18600main ()
18601{
18602dlopen ();
18603  ;
18604  return 0;
18605}
18606_ACEOF
18607rm -f conftest.$ac_objext conftest$ac_exeext
18608if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18609  (eval $ac_link) 2>conftest.er1
18610  ac_status=$?
18611  grep -v '^ *+' conftest.er1 >conftest.err
18612  rm -f conftest.er1
18613  cat conftest.err >&5
18614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18615  (exit $ac_status); } &&
18616	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
18617  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18618  (eval $ac_try) 2>&5
18619  ac_status=$?
18620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18621  (exit $ac_status); }; } &&
18622	 { ac_try='test -s conftest$ac_exeext'
18623  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18624  (eval $ac_try) 2>&5
18625  ac_status=$?
18626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18627  (exit $ac_status); }; }; then
18628  ac_cv_lib_dl_dlopen=yes
18629else
18630  echo "$as_me: failed program was:" >&5
18631sed 's/^/| /' conftest.$ac_ext >&5
18632
18633ac_cv_lib_dl_dlopen=no
18634fi
18635rm -f conftest.err conftest.$ac_objext \
18636      conftest$ac_exeext conftest.$ac_ext
18637LIBS=$ac_check_lib_save_LIBS
18638fi
18639echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18640echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18641if test $ac_cv_lib_dl_dlopen = yes; then
18642  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18643else
18644  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18645echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18646if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18647  echo $ECHO_N "(cached) $ECHO_C" >&6
18648else
18649  ac_check_lib_save_LIBS=$LIBS
18650LIBS="-lsvld  $LIBS"
18651cat >conftest.$ac_ext <<_ACEOF
18652/* confdefs.h.  */
18653_ACEOF
18654cat confdefs.h >>conftest.$ac_ext
18655cat >>conftest.$ac_ext <<_ACEOF
18656/* end confdefs.h.  */
18657
18658/* Override any gcc2 internal prototype to avoid an error.  */
18659#ifdef __cplusplus
18660extern "C"
18661#endif
18662/* We use char because int might match the return type of a gcc2
18663   builtin and then its argument prototype would still apply.  */
18664char dlopen ();
18665int
18666main ()
18667{
18668dlopen ();
18669  ;
18670  return 0;
18671}
18672_ACEOF
18673rm -f conftest.$ac_objext conftest$ac_exeext
18674if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18675  (eval $ac_link) 2>conftest.er1
18676  ac_status=$?
18677  grep -v '^ *+' conftest.er1 >conftest.err
18678  rm -f conftest.er1
18679  cat conftest.err >&5
18680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18681  (exit $ac_status); } &&
18682	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
18683  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18684  (eval $ac_try) 2>&5
18685  ac_status=$?
18686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18687  (exit $ac_status); }; } &&
18688	 { ac_try='test -s conftest$ac_exeext'
18689  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18690  (eval $ac_try) 2>&5
18691  ac_status=$?
18692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18693  (exit $ac_status); }; }; then
18694  ac_cv_lib_svld_dlopen=yes
18695else
18696  echo "$as_me: failed program was:" >&5
18697sed 's/^/| /' conftest.$ac_ext >&5
18698
18699ac_cv_lib_svld_dlopen=no
18700fi
18701rm -f conftest.err conftest.$ac_objext \
18702      conftest$ac_exeext conftest.$ac_ext
18703LIBS=$ac_check_lib_save_LIBS
18704fi
18705echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18706echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18707if test $ac_cv_lib_svld_dlopen = yes; then
18708  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18709else
18710  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18711echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18712if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18713  echo $ECHO_N "(cached) $ECHO_C" >&6
18714else
18715  ac_check_lib_save_LIBS=$LIBS
18716LIBS="-ldld  $LIBS"
18717cat >conftest.$ac_ext <<_ACEOF
18718/* confdefs.h.  */
18719_ACEOF
18720cat confdefs.h >>conftest.$ac_ext
18721cat >>conftest.$ac_ext <<_ACEOF
18722/* end confdefs.h.  */
18723
18724/* Override any gcc2 internal prototype to avoid an error.  */
18725#ifdef __cplusplus
18726extern "C"
18727#endif
18728/* We use char because int might match the return type of a gcc2
18729   builtin and then its argument prototype would still apply.  */
18730char dld_link ();
18731int
18732main ()
18733{
18734dld_link ();
18735  ;
18736  return 0;
18737}
18738_ACEOF
18739rm -f conftest.$ac_objext conftest$ac_exeext
18740if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18741  (eval $ac_link) 2>conftest.er1
18742  ac_status=$?
18743  grep -v '^ *+' conftest.er1 >conftest.err
18744  rm -f conftest.er1
18745  cat conftest.err >&5
18746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18747  (exit $ac_status); } &&
18748	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
18749  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18750  (eval $ac_try) 2>&5
18751  ac_status=$?
18752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18753  (exit $ac_status); }; } &&
18754	 { ac_try='test -s conftest$ac_exeext'
18755  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18756  (eval $ac_try) 2>&5
18757  ac_status=$?
18758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18759  (exit $ac_status); }; }; then
18760  ac_cv_lib_dld_dld_link=yes
18761else
18762  echo "$as_me: failed program was:" >&5
18763sed 's/^/| /' conftest.$ac_ext >&5
18764
18765ac_cv_lib_dld_dld_link=no
18766fi
18767rm -f conftest.err conftest.$ac_objext \
18768      conftest$ac_exeext conftest.$ac_ext
18769LIBS=$ac_check_lib_save_LIBS
18770fi
18771echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18772echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18773if test $ac_cv_lib_dld_dld_link = yes; then
18774  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18775fi
18776
18777
18778fi
18779
18780
18781fi
18782
18783
18784fi
18785
18786
18787fi
18788
18789
18790fi
18791
18792    ;;
18793  esac
18794
18795  if test "x$lt_cv_dlopen" != xno; then
18796    enable_dlopen=yes
18797  else
18798    enable_dlopen=no
18799  fi
18800
18801  case $lt_cv_dlopen in
18802  dlopen)
18803    save_CPPFLAGS="$CPPFLAGS"
18804    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18805
18806    save_LDFLAGS="$LDFLAGS"
18807    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18808
18809    save_LIBS="$LIBS"
18810    LIBS="$lt_cv_dlopen_libs $LIBS"
18811
18812    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18813echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18814if test "${lt_cv_dlopen_self+set}" = set; then
18815  echo $ECHO_N "(cached) $ECHO_C" >&6
18816else
18817  	  if test "$cross_compiling" = yes; then :
18818  lt_cv_dlopen_self=cross
18819else
18820  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18821  lt_status=$lt_dlunknown
18822  cat > conftest.$ac_ext <<EOF
18823#line 18823 "configure"
18824#include "confdefs.h"
18825
18826#if HAVE_DLFCN_H
18827#include <dlfcn.h>
18828#endif
18829
18830#include <stdio.h>
18831
18832#ifdef RTLD_GLOBAL
18833#  define LT_DLGLOBAL		RTLD_GLOBAL
18834#else
18835#  ifdef DL_GLOBAL
18836#    define LT_DLGLOBAL		DL_GLOBAL
18837#  else
18838#    define LT_DLGLOBAL		0
18839#  endif
18840#endif
18841
18842/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18843   find out it does not work in some platform. */
18844#ifndef LT_DLLAZY_OR_NOW
18845#  ifdef RTLD_LAZY
18846#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18847#  else
18848#    ifdef DL_LAZY
18849#      define LT_DLLAZY_OR_NOW		DL_LAZY
18850#    else
18851#      ifdef RTLD_NOW
18852#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18853#      else
18854#        ifdef DL_NOW
18855#          define LT_DLLAZY_OR_NOW	DL_NOW
18856#        else
18857#          define LT_DLLAZY_OR_NOW	0
18858#        endif
18859#      endif
18860#    endif
18861#  endif
18862#endif
18863
18864#ifdef __cplusplus
18865extern "C" void exit (int);
18866#endif
18867
18868void fnord() { int i=42;}
18869int main ()
18870{
18871  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18872  int status = $lt_dlunknown;
18873
18874  if (self)
18875    {
18876      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18877      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18878      /* dlclose (self); */
18879    }
18880
18881    exit (status);
18882}
18883EOF
18884  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18885  (eval $ac_link) 2>&5
18886  ac_status=$?
18887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18888  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18889    (./conftest; exit; ) 2>/dev/null
18890    lt_status=$?
18891    case x$lt_status in
18892      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18893      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18894      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18895    esac
18896  else :
18897    # compilation failed
18898    lt_cv_dlopen_self=no
18899  fi
18900fi
18901rm -fr conftest*
18902
18903
18904fi
18905echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18906echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18907
18908    if test "x$lt_cv_dlopen_self" = xyes; then
18909      LDFLAGS="$LDFLAGS $link_static_flag"
18910      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18911echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18912if test "${lt_cv_dlopen_self_static+set}" = set; then
18913  echo $ECHO_N "(cached) $ECHO_C" >&6
18914else
18915  	  if test "$cross_compiling" = yes; then :
18916  lt_cv_dlopen_self_static=cross
18917else
18918  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18919  lt_status=$lt_dlunknown
18920  cat > conftest.$ac_ext <<EOF
18921#line 18921 "configure"
18922#include "confdefs.h"
18923
18924#if HAVE_DLFCN_H
18925#include <dlfcn.h>
18926#endif
18927
18928#include <stdio.h>
18929
18930#ifdef RTLD_GLOBAL
18931#  define LT_DLGLOBAL		RTLD_GLOBAL
18932#else
18933#  ifdef DL_GLOBAL
18934#    define LT_DLGLOBAL		DL_GLOBAL
18935#  else
18936#    define LT_DLGLOBAL		0
18937#  endif
18938#endif
18939
18940/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18941   find out it does not work in some platform. */
18942#ifndef LT_DLLAZY_OR_NOW
18943#  ifdef RTLD_LAZY
18944#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18945#  else
18946#    ifdef DL_LAZY
18947#      define LT_DLLAZY_OR_NOW		DL_LAZY
18948#    else
18949#      ifdef RTLD_NOW
18950#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18951#      else
18952#        ifdef DL_NOW
18953#          define LT_DLLAZY_OR_NOW	DL_NOW
18954#        else
18955#          define LT_DLLAZY_OR_NOW	0
18956#        endif
18957#      endif
18958#    endif
18959#  endif
18960#endif
18961
18962#ifdef __cplusplus
18963extern "C" void exit (int);
18964#endif
18965
18966void fnord() { int i=42;}
18967int main ()
18968{
18969  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18970  int status = $lt_dlunknown;
18971
18972  if (self)
18973    {
18974      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18975      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18976      /* dlclose (self); */
18977    }
18978
18979    exit (status);
18980}
18981EOF
18982  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18983  (eval $ac_link) 2>&5
18984  ac_status=$?
18985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18986  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18987    (./conftest; exit; ) 2>/dev/null
18988    lt_status=$?
18989    case x$lt_status in
18990      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18991      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18992      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18993    esac
18994  else :
18995    # compilation failed
18996    lt_cv_dlopen_self_static=no
18997  fi
18998fi
18999rm -fr conftest*
19000
19001
19002fi
19003echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19004echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19005    fi
19006
19007    CPPFLAGS="$save_CPPFLAGS"
19008    LDFLAGS="$save_LDFLAGS"
19009    LIBS="$save_LIBS"
19010    ;;
19011  esac
19012
19013  case $lt_cv_dlopen_self in
19014  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19015  *) enable_dlopen_self=unknown ;;
19016  esac
19017
19018  case $lt_cv_dlopen_self_static in
19019  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19020  *) enable_dlopen_self_static=unknown ;;
19021  esac
19022fi
19023
19024
19025# The else clause should only fire when bootstrapping the
19026# libtool distribution, otherwise you forgot to ship ltmain.sh
19027# with your package, and you will get complaints that there are
19028# no rules to generate ltmain.sh.
19029if test -f "$ltmain"; then
19030  # See if we are running on zsh, and set the options which allow our commands through
19031  # without removal of \ escapes.
19032  if test -n "${ZSH_VERSION+set}" ; then
19033    setopt NO_GLOB_SUBST
19034  fi
19035  # Now quote all the things that may contain metacharacters while being
19036  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19037  # variables and quote the copies for generation of the libtool script.
19038  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19039    SED SHELL STRIP \
19040    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19041    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19042    deplibs_check_method reload_flag reload_cmds need_locks \
19043    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19044    lt_cv_sys_global_symbol_to_c_name_address \
19045    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19046    old_postinstall_cmds old_postuninstall_cmds \
19047    compiler_GCJ \
19048    CC_GCJ \
19049    LD_GCJ \
19050    lt_prog_compiler_wl_GCJ \
19051    lt_prog_compiler_pic_GCJ \
19052    lt_prog_compiler_static_GCJ \
19053    lt_prog_compiler_no_builtin_flag_GCJ \
19054    export_dynamic_flag_spec_GCJ \
19055    thread_safe_flag_spec_GCJ \
19056    whole_archive_flag_spec_GCJ \
19057    enable_shared_with_static_runtimes_GCJ \
19058    old_archive_cmds_GCJ \
19059    old_archive_from_new_cmds_GCJ \
19060    predep_objects_GCJ \
19061    postdep_objects_GCJ \
19062    predeps_GCJ \
19063    postdeps_GCJ \
19064    compiler_lib_search_path_GCJ \
19065    archive_cmds_GCJ \
19066    archive_expsym_cmds_GCJ \
19067    postinstall_cmds_GCJ \
19068    postuninstall_cmds_GCJ \
19069    old_archive_from_expsyms_cmds_GCJ \
19070    allow_undefined_flag_GCJ \
19071    no_undefined_flag_GCJ \
19072    export_symbols_cmds_GCJ \
19073    hardcode_libdir_flag_spec_GCJ \
19074    hardcode_libdir_flag_spec_ld_GCJ \
19075    hardcode_libdir_separator_GCJ \
19076    hardcode_automatic_GCJ \
19077    module_cmds_GCJ \
19078    module_expsym_cmds_GCJ \
19079    lt_cv_prog_compiler_c_o_GCJ \
19080    exclude_expsyms_GCJ \
19081    include_expsyms_GCJ; do
19082
19083    case $var in
19084    old_archive_cmds_GCJ | \
19085    old_archive_from_new_cmds_GCJ | \
19086    archive_cmds_GCJ | \
19087    archive_expsym_cmds_GCJ | \
19088    module_cmds_GCJ | \
19089    module_expsym_cmds_GCJ | \
19090    old_archive_from_expsyms_cmds_GCJ | \
19091    export_symbols_cmds_GCJ | \
19092    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19093    postinstall_cmds | postuninstall_cmds | \
19094    old_postinstall_cmds | old_postuninstall_cmds | \
19095    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19096      # Double-quote double-evaled strings.
19097      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19098      ;;
19099    *)
19100      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19101      ;;
19102    esac
19103  done
19104
19105  case $lt_echo in
19106  *'\$0 --fallback-echo"')
19107    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19108    ;;
19109  esac
19110
19111cfgfile="$ofile"
19112
19113  cat <<__EOF__ >> "$cfgfile"
19114# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19115
19116# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19117
19118# Shell to use when invoking shell scripts.
19119SHELL=$lt_SHELL
19120
19121# Whether or not to build shared libraries.
19122build_libtool_libs=$enable_shared
19123
19124# Whether or not to build static libraries.
19125build_old_libs=$enable_static
19126
19127# Whether or not to add -lc for building shared libraries.
19128build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19129
19130# Whether or not to disallow shared libs when runtime libs are static
19131allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19132
19133# Whether or not to optimize for fast installation.
19134fast_install=$enable_fast_install
19135
19136# The host system.
19137host_alias=$host_alias
19138host=$host
19139
19140# An echo program that does not interpret backslashes.
19141echo=$lt_echo
19142
19143# The archiver.
19144AR=$lt_AR
19145AR_FLAGS=$lt_AR_FLAGS
19146
19147# A C compiler.
19148LTCC=$lt_LTCC
19149
19150# A language-specific compiler.
19151CC=$lt_compiler_GCJ
19152
19153# Is the compiler the GNU C compiler?
19154with_gcc=$GCC_GCJ
19155
19156# An ERE matcher.
19157EGREP=$lt_EGREP
19158
19159# The linker used to build libraries.
19160LD=$lt_LD_GCJ
19161
19162# Whether we need hard or soft links.
19163LN_S=$lt_LN_S
19164
19165# A BSD-compatible nm program.
19166NM=$lt_NM
19167
19168# A symbol stripping program
19169STRIP=$lt_STRIP
19170
19171# Used to examine libraries when file_magic_cmd begins "file"
19172MAGIC_CMD=$MAGIC_CMD
19173
19174# Used on cygwin: DLL creation program.
19175DLLTOOL="$DLLTOOL"
19176
19177# Used on cygwin: object dumper.
19178OBJDUMP="$OBJDUMP"
19179
19180# Used on cygwin: assembler.
19181AS="$AS"
19182
19183# The name of the directory that contains temporary libtool files.
19184objdir=$objdir
19185
19186# How to create reloadable object files.
19187reload_flag=$lt_reload_flag
19188reload_cmds=$lt_reload_cmds
19189
19190# How to pass a linker flag through the compiler.
19191wl=$lt_lt_prog_compiler_wl_GCJ
19192
19193# Object file suffix (normally "o").
19194objext="$ac_objext"
19195
19196# Old archive suffix (normally "a").
19197libext="$libext"
19198
19199# Shared library suffix (normally ".so").
19200shrext_cmds='$shrext_cmds'
19201
19202# Executable file suffix (normally "").
19203exeext="$exeext"
19204
19205# Additional compiler flags for building library objects.
19206pic_flag=$lt_lt_prog_compiler_pic_GCJ
19207pic_mode=$pic_mode
19208
19209# What is the maximum length of a command?
19210max_cmd_len=$lt_cv_sys_max_cmd_len
19211
19212# Does compiler simultaneously support -c and -o options?
19213compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19214
19215# Must we lock files when doing compilation ?
19216need_locks=$lt_need_locks
19217
19218# Do we need the lib prefix for modules?
19219need_lib_prefix=$need_lib_prefix
19220
19221# Do we need a version for libraries?
19222need_version=$need_version
19223
19224# Whether dlopen is supported.
19225dlopen_support=$enable_dlopen
19226
19227# Whether dlopen of programs is supported.
19228dlopen_self=$enable_dlopen_self
19229
19230# Whether dlopen of statically linked programs is supported.
19231dlopen_self_static=$enable_dlopen_self_static
19232
19233# Compiler flag to prevent dynamic linking.
19234link_static_flag=$lt_lt_prog_compiler_static_GCJ
19235
19236# Compiler flag to turn off builtin functions.
19237no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19238
19239# Compiler flag to allow reflexive dlopens.
19240export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19241
19242# Compiler flag to generate shared objects directly from archives.
19243whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19244
19245# Compiler flag to generate thread-safe objects.
19246thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19247
19248# Library versioning type.
19249version_type=$version_type
19250
19251# Format of library name prefix.
19252libname_spec=$lt_libname_spec
19253
19254# List of archive names.  First name is the real one, the rest are links.
19255# The last name is the one that the linker finds with -lNAME.
19256library_names_spec=$lt_library_names_spec
19257
19258# The coded name of the library, if different from the real name.
19259soname_spec=$lt_soname_spec
19260
19261# Commands used to build and install an old-style archive.
19262RANLIB=$lt_RANLIB
19263old_archive_cmds=$lt_old_archive_cmds_GCJ
19264old_postinstall_cmds=$lt_old_postinstall_cmds
19265old_postuninstall_cmds=$lt_old_postuninstall_cmds
19266
19267# Create an old-style archive from a shared archive.
19268old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19269
19270# Create a temporary old-style archive to link instead of a shared archive.
19271old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19272
19273# Commands used to build and install a shared archive.
19274archive_cmds=$lt_archive_cmds_GCJ
19275archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19276postinstall_cmds=$lt_postinstall_cmds
19277postuninstall_cmds=$lt_postuninstall_cmds
19278
19279# Commands used to build a loadable module (assumed same as above if empty)
19280module_cmds=$lt_module_cmds_GCJ
19281module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19282
19283# Commands to strip libraries.
19284old_striplib=$lt_old_striplib
19285striplib=$lt_striplib
19286
19287# Dependencies to place before the objects being linked to create a
19288# shared library.
19289predep_objects=$lt_predep_objects_GCJ
19290
19291# Dependencies to place after the objects being linked to create a
19292# shared library.
19293postdep_objects=$lt_postdep_objects_GCJ
19294
19295# Dependencies to place before the objects being linked to create a
19296# shared library.
19297predeps=$lt_predeps_GCJ
19298
19299# Dependencies to place after the objects being linked to create a
19300# shared library.
19301postdeps=$lt_postdeps_GCJ
19302
19303# The library search path used internally by the compiler when linking
19304# a shared library.
19305compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19306
19307# Method to check whether dependent libraries are shared objects.
19308deplibs_check_method=$lt_deplibs_check_method
19309
19310# Command to use when deplibs_check_method == file_magic.
19311file_magic_cmd=$lt_file_magic_cmd
19312
19313# Flag that allows shared libraries with undefined symbols to be built.
19314allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19315
19316# Flag that forces no undefined symbols.
19317no_undefined_flag=$lt_no_undefined_flag_GCJ
19318
19319# Commands used to finish a libtool library installation in a directory.
19320finish_cmds=$lt_finish_cmds
19321
19322# Same as above, but a single script fragment to be evaled but not shown.
19323finish_eval=$lt_finish_eval
19324
19325# Take the output of nm and produce a listing of raw symbols and C names.
19326global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19327
19328# Transform the output of nm in a proper C declaration
19329global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19330
19331# Transform the output of nm in a C name address pair
19332global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19333
19334# This is the shared library runtime path variable.
19335runpath_var=$runpath_var
19336
19337# This is the shared library path variable.
19338shlibpath_var=$shlibpath_var
19339
19340# Is shlibpath searched before the hard-coded library search path?
19341shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19342
19343# How to hardcode a shared library path into an executable.
19344hardcode_action=$hardcode_action_GCJ
19345
19346# Whether we should hardcode library paths into libraries.
19347hardcode_into_libs=$hardcode_into_libs
19348
19349# Flag to hardcode \$libdir into a binary during linking.
19350# This must work even if \$libdir does not exist.
19351hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19352
19353# If ld is used when linking, flag to hardcode \$libdir into
19354# a binary during linking. This must work even if \$libdir does
19355# not exist.
19356hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19357
19358# Whether we need a single -rpath flag with a separated argument.
19359hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19360
19361# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19362# resulting binary.
19363hardcode_direct=$hardcode_direct_GCJ
19364
19365# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19366# resulting binary.
19367hardcode_minus_L=$hardcode_minus_L_GCJ
19368
19369# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19370# the resulting binary.
19371hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19372
19373# Set to yes if building a shared library automatically hardcodes DIR into the library
19374# and all subsequent libraries and executables linked against it.
19375hardcode_automatic=$hardcode_automatic_GCJ
19376
19377# Variables whose values should be saved in libtool wrapper scripts and
19378# restored at relink time.
19379variables_saved_for_relink="$variables_saved_for_relink"
19380
19381# Whether libtool must link a program against all its dependency libraries.
19382link_all_deplibs=$link_all_deplibs_GCJ
19383
19384# Compile-time system search path for libraries
19385sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19386
19387# Run-time system search path for libraries
19388sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19389
19390# Fix the shell variable \$srcfile for the compiler.
19391fix_srcfile_path="$fix_srcfile_path_GCJ"
19392
19393# Set to yes if exported symbols are required.
19394always_export_symbols=$always_export_symbols_GCJ
19395
19396# The commands to list exported symbols.
19397export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19398
19399# The commands to extract the exported symbol list from a shared archive.
19400extract_expsyms_cmds=$lt_extract_expsyms_cmds
19401
19402# Symbols that should not be listed in the preloaded symbols.
19403exclude_expsyms=$lt_exclude_expsyms_GCJ
19404
19405# Symbols that must always be exported.
19406include_expsyms=$lt_include_expsyms_GCJ
19407
19408# ### END LIBTOOL TAG CONFIG: $tagname
19409
19410__EOF__
19411
19412
19413else
19414  # If there is no Makefile yet, we rely on a make rule to execute
19415  # `config.status --recheck' to rerun these tests and create the
19416  # libtool script then.
19417  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19418  if test -f "$ltmain_in"; then
19419    test -f Makefile && make "$ltmain"
19420  fi
19421fi
19422
19423
19424ac_ext=c
19425ac_cpp='$CPP $CPPFLAGS'
19426ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19427ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19428ac_compiler_gnu=$ac_cv_c_compiler_gnu
19429
19430CC="$lt_save_CC"
19431
19432	else
19433	  tagname=""
19434	fi
19435	;;
19436
19437      RC)
19438
19439
19440
19441# Source file extension for RC test sources.
19442ac_ext=rc
19443
19444# Object file extension for compiled RC test sources.
19445objext=o
19446objext_RC=$objext
19447
19448# Code to be used in simple compile tests
19449lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19450
19451# Code to be used in simple link tests
19452lt_simple_link_test_code="$lt_simple_compile_test_code"
19453
19454# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19455
19456# If no C compiler was specified, use CC.
19457LTCC=${LTCC-"$CC"}
19458
19459# Allow CC to be a program name with arguments.
19460compiler=$CC
19461
19462
19463# Allow CC to be a program name with arguments.
19464lt_save_CC="$CC"
19465CC=${RC-"windres"}
19466compiler=$CC
19467compiler_RC=$CC
19468lt_cv_prog_compiler_c_o_RC=yes
19469
19470# The else clause should only fire when bootstrapping the
19471# libtool distribution, otherwise you forgot to ship ltmain.sh
19472# with your package, and you will get complaints that there are
19473# no rules to generate ltmain.sh.
19474if test -f "$ltmain"; then
19475  # See if we are running on zsh, and set the options which allow our commands through
19476  # without removal of \ escapes.
19477  if test -n "${ZSH_VERSION+set}" ; then
19478    setopt NO_GLOB_SUBST
19479  fi
19480  # Now quote all the things that may contain metacharacters while being
19481  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19482  # variables and quote the copies for generation of the libtool script.
19483  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19484    SED SHELL STRIP \
19485    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19486    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19487    deplibs_check_method reload_flag reload_cmds need_locks \
19488    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19489    lt_cv_sys_global_symbol_to_c_name_address \
19490    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19491    old_postinstall_cmds old_postuninstall_cmds \
19492    compiler_RC \
19493    CC_RC \
19494    LD_RC \
19495    lt_prog_compiler_wl_RC \
19496    lt_prog_compiler_pic_RC \
19497    lt_prog_compiler_static_RC \
19498    lt_prog_compiler_no_builtin_flag_RC \
19499    export_dynamic_flag_spec_RC \
19500    thread_safe_flag_spec_RC \
19501    whole_archive_flag_spec_RC \
19502    enable_shared_with_static_runtimes_RC \
19503    old_archive_cmds_RC \
19504    old_archive_from_new_cmds_RC \
19505    predep_objects_RC \
19506    postdep_objects_RC \
19507    predeps_RC \
19508    postdeps_RC \
19509    compiler_lib_search_path_RC \
19510    archive_cmds_RC \
19511    archive_expsym_cmds_RC \
19512    postinstall_cmds_RC \
19513    postuninstall_cmds_RC \
19514    old_archive_from_expsyms_cmds_RC \
19515    allow_undefined_flag_RC \
19516    no_undefined_flag_RC \
19517    export_symbols_cmds_RC \
19518    hardcode_libdir_flag_spec_RC \
19519    hardcode_libdir_flag_spec_ld_RC \
19520    hardcode_libdir_separator_RC \
19521    hardcode_automatic_RC \
19522    module_cmds_RC \
19523    module_expsym_cmds_RC \
19524    lt_cv_prog_compiler_c_o_RC \
19525    exclude_expsyms_RC \
19526    include_expsyms_RC; do
19527
19528    case $var in
19529    old_archive_cmds_RC | \
19530    old_archive_from_new_cmds_RC | \
19531    archive_cmds_RC | \
19532    archive_expsym_cmds_RC | \
19533    module_cmds_RC | \
19534    module_expsym_cmds_RC | \
19535    old_archive_from_expsyms_cmds_RC | \
19536    export_symbols_cmds_RC | \
19537    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19538    postinstall_cmds | postuninstall_cmds | \
19539    old_postinstall_cmds | old_postuninstall_cmds | \
19540    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19541      # Double-quote double-evaled strings.
19542      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19543      ;;
19544    *)
19545      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19546      ;;
19547    esac
19548  done
19549
19550  case $lt_echo in
19551  *'\$0 --fallback-echo"')
19552    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19553    ;;
19554  esac
19555
19556cfgfile="$ofile"
19557
19558  cat <<__EOF__ >> "$cfgfile"
19559# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19560
19561# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19562
19563# Shell to use when invoking shell scripts.
19564SHELL=$lt_SHELL
19565
19566# Whether or not to build shared libraries.
19567build_libtool_libs=$enable_shared
19568
19569# Whether or not to build static libraries.
19570build_old_libs=$enable_static
19571
19572# Whether or not to add -lc for building shared libraries.
19573build_libtool_need_lc=$archive_cmds_need_lc_RC
19574
19575# Whether or not to disallow shared libs when runtime libs are static
19576allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19577
19578# Whether or not to optimize for fast installation.
19579fast_install=$enable_fast_install
19580
19581# The host system.
19582host_alias=$host_alias
19583host=$host
19584
19585# An echo program that does not interpret backslashes.
19586echo=$lt_echo
19587
19588# The archiver.
19589AR=$lt_AR
19590AR_FLAGS=$lt_AR_FLAGS
19591
19592# A C compiler.
19593LTCC=$lt_LTCC
19594
19595# A language-specific compiler.
19596CC=$lt_compiler_RC
19597
19598# Is the compiler the GNU C compiler?
19599with_gcc=$GCC_RC
19600
19601# An ERE matcher.
19602EGREP=$lt_EGREP
19603
19604# The linker used to build libraries.
19605LD=$lt_LD_RC
19606
19607# Whether we need hard or soft links.
19608LN_S=$lt_LN_S
19609
19610# A BSD-compatible nm program.
19611NM=$lt_NM
19612
19613# A symbol stripping program
19614STRIP=$lt_STRIP
19615
19616# Used to examine libraries when file_magic_cmd begins "file"
19617MAGIC_CMD=$MAGIC_CMD
19618
19619# Used on cygwin: DLL creation program.
19620DLLTOOL="$DLLTOOL"
19621
19622# Used on cygwin: object dumper.
19623OBJDUMP="$OBJDUMP"
19624
19625# Used on cygwin: assembler.
19626AS="$AS"
19627
19628# The name of the directory that contains temporary libtool files.
19629objdir=$objdir
19630
19631# How to create reloadable object files.
19632reload_flag=$lt_reload_flag
19633reload_cmds=$lt_reload_cmds
19634
19635# How to pass a linker flag through the compiler.
19636wl=$lt_lt_prog_compiler_wl_RC
19637
19638# Object file suffix (normally "o").
19639objext="$ac_objext"
19640
19641# Old archive suffix (normally "a").
19642libext="$libext"
19643
19644# Shared library suffix (normally ".so").
19645shrext_cmds='$shrext_cmds'
19646
19647# Executable file suffix (normally "").
19648exeext="$exeext"
19649
19650# Additional compiler flags for building library objects.
19651pic_flag=$lt_lt_prog_compiler_pic_RC
19652pic_mode=$pic_mode
19653
19654# What is the maximum length of a command?
19655max_cmd_len=$lt_cv_sys_max_cmd_len
19656
19657# Does compiler simultaneously support -c and -o options?
19658compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19659
19660# Must we lock files when doing compilation ?
19661need_locks=$lt_need_locks
19662
19663# Do we need the lib prefix for modules?
19664need_lib_prefix=$need_lib_prefix
19665
19666# Do we need a version for libraries?
19667need_version=$need_version
19668
19669# Whether dlopen is supported.
19670dlopen_support=$enable_dlopen
19671
19672# Whether dlopen of programs is supported.
19673dlopen_self=$enable_dlopen_self
19674
19675# Whether dlopen of statically linked programs is supported.
19676dlopen_self_static=$enable_dlopen_self_static
19677
19678# Compiler flag to prevent dynamic linking.
19679link_static_flag=$lt_lt_prog_compiler_static_RC
19680
19681# Compiler flag to turn off builtin functions.
19682no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19683
19684# Compiler flag to allow reflexive dlopens.
19685export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19686
19687# Compiler flag to generate shared objects directly from archives.
19688whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19689
19690# Compiler flag to generate thread-safe objects.
19691thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19692
19693# Library versioning type.
19694version_type=$version_type
19695
19696# Format of library name prefix.
19697libname_spec=$lt_libname_spec
19698
19699# List of archive names.  First name is the real one, the rest are links.
19700# The last name is the one that the linker finds with -lNAME.
19701library_names_spec=$lt_library_names_spec
19702
19703# The coded name of the library, if different from the real name.
19704soname_spec=$lt_soname_spec
19705
19706# Commands used to build and install an old-style archive.
19707RANLIB=$lt_RANLIB
19708old_archive_cmds=$lt_old_archive_cmds_RC
19709old_postinstall_cmds=$lt_old_postinstall_cmds
19710old_postuninstall_cmds=$lt_old_postuninstall_cmds
19711
19712# Create an old-style archive from a shared archive.
19713old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19714
19715# Create a temporary old-style archive to link instead of a shared archive.
19716old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19717
19718# Commands used to build and install a shared archive.
19719archive_cmds=$lt_archive_cmds_RC
19720archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19721postinstall_cmds=$lt_postinstall_cmds
19722postuninstall_cmds=$lt_postuninstall_cmds
19723
19724# Commands used to build a loadable module (assumed same as above if empty)
19725module_cmds=$lt_module_cmds_RC
19726module_expsym_cmds=$lt_module_expsym_cmds_RC
19727
19728# Commands to strip libraries.
19729old_striplib=$lt_old_striplib
19730striplib=$lt_striplib
19731
19732# Dependencies to place before the objects being linked to create a
19733# shared library.
19734predep_objects=$lt_predep_objects_RC
19735
19736# Dependencies to place after the objects being linked to create a
19737# shared library.
19738postdep_objects=$lt_postdep_objects_RC
19739
19740# Dependencies to place before the objects being linked to create a
19741# shared library.
19742predeps=$lt_predeps_RC
19743
19744# Dependencies to place after the objects being linked to create a
19745# shared library.
19746postdeps=$lt_postdeps_RC
19747
19748# The library search path used internally by the compiler when linking
19749# a shared library.
19750compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19751
19752# Method to check whether dependent libraries are shared objects.
19753deplibs_check_method=$lt_deplibs_check_method
19754
19755# Command to use when deplibs_check_method == file_magic.
19756file_magic_cmd=$lt_file_magic_cmd
19757
19758# Flag that allows shared libraries with undefined symbols to be built.
19759allow_undefined_flag=$lt_allow_undefined_flag_RC
19760
19761# Flag that forces no undefined symbols.
19762no_undefined_flag=$lt_no_undefined_flag_RC
19763
19764# Commands used to finish a libtool library installation in a directory.
19765finish_cmds=$lt_finish_cmds
19766
19767# Same as above, but a single script fragment to be evaled but not shown.
19768finish_eval=$lt_finish_eval
19769
19770# Take the output of nm and produce a listing of raw symbols and C names.
19771global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19772
19773# Transform the output of nm in a proper C declaration
19774global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19775
19776# Transform the output of nm in a C name address pair
19777global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19778
19779# This is the shared library runtime path variable.
19780runpath_var=$runpath_var
19781
19782# This is the shared library path variable.
19783shlibpath_var=$shlibpath_var
19784
19785# Is shlibpath searched before the hard-coded library search path?
19786shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19787
19788# How to hardcode a shared library path into an executable.
19789hardcode_action=$hardcode_action_RC
19790
19791# Whether we should hardcode library paths into libraries.
19792hardcode_into_libs=$hardcode_into_libs
19793
19794# Flag to hardcode \$libdir into a binary during linking.
19795# This must work even if \$libdir does not exist.
19796hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19797
19798# If ld is used when linking, flag to hardcode \$libdir into
19799# a binary during linking. This must work even if \$libdir does
19800# not exist.
19801hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19802
19803# Whether we need a single -rpath flag with a separated argument.
19804hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19805
19806# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19807# resulting binary.
19808hardcode_direct=$hardcode_direct_RC
19809
19810# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19811# resulting binary.
19812hardcode_minus_L=$hardcode_minus_L_RC
19813
19814# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19815# the resulting binary.
19816hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19817
19818# Set to yes if building a shared library automatically hardcodes DIR into the library
19819# and all subsequent libraries and executables linked against it.
19820hardcode_automatic=$hardcode_automatic_RC
19821
19822# Variables whose values should be saved in libtool wrapper scripts and
19823# restored at relink time.
19824variables_saved_for_relink="$variables_saved_for_relink"
19825
19826# Whether libtool must link a program against all its dependency libraries.
19827link_all_deplibs=$link_all_deplibs_RC
19828
19829# Compile-time system search path for libraries
19830sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19831
19832# Run-time system search path for libraries
19833sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19834
19835# Fix the shell variable \$srcfile for the compiler.
19836fix_srcfile_path="$fix_srcfile_path_RC"
19837
19838# Set to yes if exported symbols are required.
19839always_export_symbols=$always_export_symbols_RC
19840
19841# The commands to list exported symbols.
19842export_symbols_cmds=$lt_export_symbols_cmds_RC
19843
19844# The commands to extract the exported symbol list from a shared archive.
19845extract_expsyms_cmds=$lt_extract_expsyms_cmds
19846
19847# Symbols that should not be listed in the preloaded symbols.
19848exclude_expsyms=$lt_exclude_expsyms_RC
19849
19850# Symbols that must always be exported.
19851include_expsyms=$lt_include_expsyms_RC
19852
19853# ### END LIBTOOL TAG CONFIG: $tagname
19854
19855__EOF__
19856
19857
19858else
19859  # If there is no Makefile yet, we rely on a make rule to execute
19860  # `config.status --recheck' to rerun these tests and create the
19861  # libtool script then.
19862  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19863  if test -f "$ltmain_in"; then
19864    test -f Makefile && make "$ltmain"
19865  fi
19866fi
19867
19868
19869ac_ext=c
19870ac_cpp='$CPP $CPPFLAGS'
19871ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19872ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19873ac_compiler_gnu=$ac_cv_c_compiler_gnu
19874
19875CC="$lt_save_CC"
19876
19877	;;
19878
19879      *)
19880	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19881echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19882   { (exit 1); exit 1; }; }
19883	;;
19884      esac
19885
19886      # Append the new tag name to the list of available tags.
19887      if test -n "$tagname" ; then
19888      available_tags="$available_tags $tagname"
19889    fi
19890    fi
19891  done
19892  IFS="$lt_save_ifs"
19893
19894  # Now substitute the updated list of available tags.
19895  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19896    mv "${ofile}T" "$ofile"
19897    chmod +x "$ofile"
19898  else
19899    rm -f "${ofile}T"
19900    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19901echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19902   { (exit 1); exit 1; }; }
19903  fi
19904fi
19905
19906
19907
19908# This can be used to rebuild libtool when needed
19909LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19910
19911# Always use our own libtool.
19912LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19913
19914# Prevent multiple expansion
19915
19916
19917
19918
19919
19920
19921
19922
19923
19924
19925
19926
19927
19928
19929
19930
19931
19932
19933
19934
19935
19936if eval "test x$with_gzip = x"; then
19937  # Extract the first word of "gzip", so it can be a program name with args.
19938set dummy gzip; ac_word=$2
19939echo "$as_me:$LINENO: checking for $ac_word" >&5
19940echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19941if test "${ac_cv_prog_with_gzip+set}" = set; then
19942  echo $ECHO_N "(cached) $ECHO_C" >&6
19943else
19944  if test -n "$with_gzip"; then
19945  ac_cv_prog_with_gzip="$with_gzip" # Let the user override the test.
19946else
19947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19948for as_dir in $PATH
19949do
19950  IFS=$as_save_IFS
19951  test -z "$as_dir" && as_dir=.
19952  for ac_exec_ext in '' $ac_executable_extensions; do
19953  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19954    ac_cv_prog_with_gzip=""yes""
19955    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19956    break 2
19957  fi
19958done
19959done
19960
19961fi
19962fi
19963with_gzip=$ac_cv_prog_with_gzip
19964if test -n "$with_gzip"; then
19965  echo "$as_me:$LINENO: result: $with_gzip" >&5
19966echo "${ECHO_T}$with_gzip" >&6
19967else
19968  echo "$as_me:$LINENO: result: no" >&5
19969echo "${ECHO_T}no" >&6
19970fi
19971
19972fi
19973if eval "test x$with_gzip = xyes"; then
19974  cat >>confdefs.h <<\_ACEOF
19975#define HAVE_GZIP 1
19976_ACEOF
19977
19978fi
19979
19980
19981        DEFAULT_LIBDIR=${datadir}/lincity
19982        DEFAULT_LIBDIR=`(
19983            test "x$prefix" = xNONE && prefix="$ac_default_prefix"
19984            test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
19985            eval echo \""$DEFAULT_LIBDIR"\"
19986        )`
19987
19988cat >>confdefs.h <<_ACEOF
19989#define DEFAULT_LIBDIR "$DEFAULT_LIBDIR"
19990_ACEOF
19991
19992
19993
19994
19995
19996
19997
19998
19999
20000if test "x$ac_path_x_has_been_run" != xyes; then
20001  echo "$as_me:$LINENO: checking for X" >&5
20002echo $ECHO_N "checking for X... $ECHO_C" >&6
20003
20004ac_path_x_has_been_run=yes
20005
20006# Check whether --with-x or --without-x was given.
20007if test "${with_x+set}" = set; then
20008  withval="$with_x"
20009
20010fi;
20011# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
20012if test "x$with_x" = xno; then
20013  # The user explicitly disabled X.
20014  have_x=disabled
20015else
20016  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
20017    # Both variables are already set.
20018    have_x=yes
20019  else
20020    if test "${ac_cv_have_x+set}" = set; then
20021  echo $ECHO_N "(cached) $ECHO_C" >&6
20022else
20023  # One or both of the vars are not set, and there is no cached value.
20024ac_x_includes=no ac_x_libraries=no
20025rm -fr conftest.dir
20026if mkdir conftest.dir; then
20027  cd conftest.dir
20028  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
20029  cat >Imakefile <<'_ACEOF'
20030acfindx:
20031	@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
20032_ACEOF
20033  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
20034    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20035    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
20036    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
20037    for ac_extension in a so sl; do
20038      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
20039	 test -f $ac_im_libdir/libX11.$ac_extension; then
20040	ac_im_usrlibdir=$ac_im_libdir; break
20041      fi
20042    done
20043    # Screen out bogus values from the imake configuration.  They are
20044    # bogus both because they are the default anyway, and because
20045    # using them would break gcc on systems where it needs fixed includes.
20046    case $ac_im_incroot in
20047	/usr/include) ;;
20048	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
20049    esac
20050    case $ac_im_usrlibdir in
20051	/usr/lib | /lib) ;;
20052	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
20053    esac
20054  fi
20055  cd ..
20056  rm -fr conftest.dir
20057fi
20058
20059# Standard set of common directories for X headers.
20060# Check X11 before X11Rn because it is often a symlink to the current release.
20061ac_x_header_dirs='
20062/usr/X11/include
20063/usr/X11R6/include
20064/usr/X11R5/include
20065/usr/X11R4/include
20066
20067/usr/include/X11
20068/usr/include/X11R6
20069/usr/include/X11R5
20070/usr/include/X11R4
20071
20072/usr/local/X11/include
20073/usr/local/X11R6/include
20074/usr/local/X11R5/include
20075/usr/local/X11R4/include
20076
20077/usr/local/include/X11
20078/usr/local/include/X11R6
20079/usr/local/include/X11R5
20080/usr/local/include/X11R4
20081
20082/usr/X386/include
20083/usr/x386/include
20084/usr/XFree86/include/X11
20085
20086/usr/include
20087/usr/local/include
20088/usr/unsupported/include
20089/usr/athena/include
20090/usr/local/x11r5/include
20091/usr/lpp/Xamples/include
20092
20093/usr/openwin/include
20094/usr/openwin/share/include'
20095
20096if test "$ac_x_includes" = no; then
20097  # Guess where to find include files, by looking for a specified header file.
20098  # First, try using that file with no special directory specified.
20099  cat >conftest.$ac_ext <<_ACEOF
20100/* confdefs.h.  */
20101_ACEOF
20102cat confdefs.h >>conftest.$ac_ext
20103cat >>conftest.$ac_ext <<_ACEOF
20104/* end confdefs.h.  */
20105#include <X11/Intrinsic.h>
20106_ACEOF
20107if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20108  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20109  ac_status=$?
20110  grep -v '^ *+' conftest.er1 >conftest.err
20111  rm -f conftest.er1
20112  cat conftest.err >&5
20113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20114  (exit $ac_status); } >/dev/null; then
20115  if test -s conftest.err; then
20116    ac_cpp_err=$ac_c_preproc_warn_flag
20117    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20118  else
20119    ac_cpp_err=
20120  fi
20121else
20122  ac_cpp_err=yes
20123fi
20124if test -z "$ac_cpp_err"; then
20125  # We can compile using X headers with no special include directory.
20126ac_x_includes=
20127else
20128  echo "$as_me: failed program was:" >&5
20129sed 's/^/| /' conftest.$ac_ext >&5
20130
20131  for ac_dir in $ac_x_header_dirs; do
20132  if test -r "$ac_dir/X11/Intrinsic.h"; then
20133    ac_x_includes=$ac_dir
20134    break
20135  fi
20136done
20137fi
20138rm -f conftest.err conftest.$ac_ext
20139fi # $ac_x_includes = no
20140
20141if test "$ac_x_libraries" = no; then
20142  # Check for the libraries.
20143  # See if we find them without any special options.
20144  # Don't add to $LIBS permanently.
20145  ac_save_LIBS=$LIBS
20146  LIBS="-lXt $LIBS"
20147  cat >conftest.$ac_ext <<_ACEOF
20148/* confdefs.h.  */
20149_ACEOF
20150cat confdefs.h >>conftest.$ac_ext
20151cat >>conftest.$ac_ext <<_ACEOF
20152/* end confdefs.h.  */
20153#include <X11/Intrinsic.h>
20154int
20155main ()
20156{
20157XtMalloc (0)
20158  ;
20159  return 0;
20160}
20161_ACEOF
20162rm -f conftest.$ac_objext conftest$ac_exeext
20163if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20164  (eval $ac_link) 2>conftest.er1
20165  ac_status=$?
20166  grep -v '^ *+' conftest.er1 >conftest.err
20167  rm -f conftest.er1
20168  cat conftest.err >&5
20169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20170  (exit $ac_status); } &&
20171	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20172  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20173  (eval $ac_try) 2>&5
20174  ac_status=$?
20175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20176  (exit $ac_status); }; } &&
20177	 { ac_try='test -s conftest$ac_exeext'
20178  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20179  (eval $ac_try) 2>&5
20180  ac_status=$?
20181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20182  (exit $ac_status); }; }; then
20183  LIBS=$ac_save_LIBS
20184# We can link X programs with no special library path.
20185ac_x_libraries=
20186else
20187  echo "$as_me: failed program was:" >&5
20188sed 's/^/| /' conftest.$ac_ext >&5
20189
20190LIBS=$ac_save_LIBS
20191for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
20192do
20193  # Don't even attempt the hair of trying to link an X program!
20194  for ac_extension in a so sl; do
20195    if test -r $ac_dir/libXt.$ac_extension; then
20196      ac_x_libraries=$ac_dir
20197      break 2
20198    fi
20199  done
20200done
20201fi
20202rm -f conftest.err conftest.$ac_objext \
20203      conftest$ac_exeext conftest.$ac_ext
20204fi # $ac_x_libraries = no
20205
20206if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
20207  # Didn't find X anywhere.  Cache the known absence of X.
20208  ac_cv_have_x="have_x=no"
20209else
20210  # Record where we found X for the cache.
20211  ac_cv_have_x="have_x=yes \
20212		ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
20213fi
20214fi
20215
20216  fi
20217  eval "$ac_cv_have_x"
20218fi # $with_x != no
20219
20220if test "$have_x" != yes; then
20221  echo "$as_me:$LINENO: result: $have_x" >&5
20222echo "${ECHO_T}$have_x" >&6
20223  no_x=yes
20224else
20225  # If each of the values was on the command line, it overrides each guess.
20226  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
20227  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
20228  # Update the cache value to reflect the command line values.
20229  ac_cv_have_x="have_x=yes \
20230		ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
20231  # It might be that x_includes is empty (headers are found in the
20232  # standard search path. Then output the corresponding message
20233  ac_out_x_includes=$x_includes
20234  test "x$x_includes" = x && ac_out_x_includes="in standard search path"
20235  echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
20236echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
20237fi
20238
20239fi
20240if test "$no_x" = yes; then
20241  # Not all programs may use this symbol, but it does not hurt to define it.
20242
20243cat >>confdefs.h <<\_ACEOF
20244#define X_DISPLAY_MISSING 1
20245_ACEOF
20246
20247  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
20248else
20249  if test -n "$x_includes"; then
20250    X_CFLAGS="$X_CFLAGS -I$x_includes"
20251  fi
20252
20253  # It would also be nice to do this for all -L options, not just this one.
20254  if test -n "$x_libraries"; then
20255    X_LIBS="$X_LIBS -L$x_libraries"
20256    # For Solaris; some versions of Sun CC require a space after -R and
20257    # others require no space.  Words are not sufficient . . . .
20258    case `(uname -sr) 2>/dev/null` in
20259    "SunOS 5"*)
20260      echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
20261echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
20262      ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
20263      cat >conftest.$ac_ext <<_ACEOF
20264/* confdefs.h.  */
20265_ACEOF
20266cat confdefs.h >>conftest.$ac_ext
20267cat >>conftest.$ac_ext <<_ACEOF
20268/* end confdefs.h.  */
20269
20270int
20271main ()
20272{
20273
20274  ;
20275  return 0;
20276}
20277_ACEOF
20278rm -f conftest.$ac_objext conftest$ac_exeext
20279if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20280  (eval $ac_link) 2>conftest.er1
20281  ac_status=$?
20282  grep -v '^ *+' conftest.er1 >conftest.err
20283  rm -f conftest.er1
20284  cat conftest.err >&5
20285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20286  (exit $ac_status); } &&
20287	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20288  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20289  (eval $ac_try) 2>&5
20290  ac_status=$?
20291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20292  (exit $ac_status); }; } &&
20293	 { ac_try='test -s conftest$ac_exeext'
20294  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20295  (eval $ac_try) 2>&5
20296  ac_status=$?
20297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20298  (exit $ac_status); }; }; then
20299  ac_R_nospace=yes
20300else
20301  echo "$as_me: failed program was:" >&5
20302sed 's/^/| /' conftest.$ac_ext >&5
20303
20304ac_R_nospace=no
20305fi
20306rm -f conftest.err conftest.$ac_objext \
20307      conftest$ac_exeext conftest.$ac_ext
20308      if test $ac_R_nospace = yes; then
20309	echo "$as_me:$LINENO: result: no" >&5
20310echo "${ECHO_T}no" >&6
20311	X_LIBS="$X_LIBS -R$x_libraries"
20312      else
20313	LIBS="$ac_xsave_LIBS -R $x_libraries"
20314	cat >conftest.$ac_ext <<_ACEOF
20315/* confdefs.h.  */
20316_ACEOF
20317cat confdefs.h >>conftest.$ac_ext
20318cat >>conftest.$ac_ext <<_ACEOF
20319/* end confdefs.h.  */
20320
20321int
20322main ()
20323{
20324
20325  ;
20326  return 0;
20327}
20328_ACEOF
20329rm -f conftest.$ac_objext conftest$ac_exeext
20330if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20331  (eval $ac_link) 2>conftest.er1
20332  ac_status=$?
20333  grep -v '^ *+' conftest.er1 >conftest.err
20334  rm -f conftest.er1
20335  cat conftest.err >&5
20336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20337  (exit $ac_status); } &&
20338	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20339  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20340  (eval $ac_try) 2>&5
20341  ac_status=$?
20342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20343  (exit $ac_status); }; } &&
20344	 { ac_try='test -s conftest$ac_exeext'
20345  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20346  (eval $ac_try) 2>&5
20347  ac_status=$?
20348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20349  (exit $ac_status); }; }; then
20350  ac_R_space=yes
20351else
20352  echo "$as_me: failed program was:" >&5
20353sed 's/^/| /' conftest.$ac_ext >&5
20354
20355ac_R_space=no
20356fi
20357rm -f conftest.err conftest.$ac_objext \
20358      conftest$ac_exeext conftest.$ac_ext
20359	if test $ac_R_space = yes; then
20360	  echo "$as_me:$LINENO: result: yes" >&5
20361echo "${ECHO_T}yes" >&6
20362	  X_LIBS="$X_LIBS -R $x_libraries"
20363	else
20364	  echo "$as_me:$LINENO: result: neither works" >&5
20365echo "${ECHO_T}neither works" >&6
20366	fi
20367      fi
20368      LIBS=$ac_xsave_LIBS
20369    esac
20370  fi
20371
20372  # Check for system-dependent libraries X programs must link with.
20373  # Do this before checking for the system-independent R6 libraries
20374  # (-lICE), since we may need -lsocket or whatever for X linking.
20375
20376  if test "$ISC" = yes; then
20377    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
20378  else
20379    # Martyn Johnson says this is needed for Ultrix, if the X
20380    # libraries were built with DECnet support.  And Karl Berry says
20381    # the Alpha needs dnet_stub (dnet does not exist).
20382    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
20383    cat >conftest.$ac_ext <<_ACEOF
20384/* confdefs.h.  */
20385_ACEOF
20386cat confdefs.h >>conftest.$ac_ext
20387cat >>conftest.$ac_ext <<_ACEOF
20388/* end confdefs.h.  */
20389
20390/* Override any gcc2 internal prototype to avoid an error.  */
20391#ifdef __cplusplus
20392extern "C"
20393#endif
20394/* We use char because int might match the return type of a gcc2
20395   builtin and then its argument prototype would still apply.  */
20396char XOpenDisplay ();
20397int
20398main ()
20399{
20400XOpenDisplay ();
20401  ;
20402  return 0;
20403}
20404_ACEOF
20405rm -f conftest.$ac_objext conftest$ac_exeext
20406if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20407  (eval $ac_link) 2>conftest.er1
20408  ac_status=$?
20409  grep -v '^ *+' conftest.er1 >conftest.err
20410  rm -f conftest.er1
20411  cat conftest.err >&5
20412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20413  (exit $ac_status); } &&
20414	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20415  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20416  (eval $ac_try) 2>&5
20417  ac_status=$?
20418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20419  (exit $ac_status); }; } &&
20420	 { ac_try='test -s conftest$ac_exeext'
20421  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20422  (eval $ac_try) 2>&5
20423  ac_status=$?
20424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20425  (exit $ac_status); }; }; then
20426  :
20427else
20428  echo "$as_me: failed program was:" >&5
20429sed 's/^/| /' conftest.$ac_ext >&5
20430
20431echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
20432echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
20433if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
20434  echo $ECHO_N "(cached) $ECHO_C" >&6
20435else
20436  ac_check_lib_save_LIBS=$LIBS
20437LIBS="-ldnet  $LIBS"
20438cat >conftest.$ac_ext <<_ACEOF
20439/* confdefs.h.  */
20440_ACEOF
20441cat confdefs.h >>conftest.$ac_ext
20442cat >>conftest.$ac_ext <<_ACEOF
20443/* end confdefs.h.  */
20444
20445/* Override any gcc2 internal prototype to avoid an error.  */
20446#ifdef __cplusplus
20447extern "C"
20448#endif
20449/* We use char because int might match the return type of a gcc2
20450   builtin and then its argument prototype would still apply.  */
20451char dnet_ntoa ();
20452int
20453main ()
20454{
20455dnet_ntoa ();
20456  ;
20457  return 0;
20458}
20459_ACEOF
20460rm -f conftest.$ac_objext conftest$ac_exeext
20461if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20462  (eval $ac_link) 2>conftest.er1
20463  ac_status=$?
20464  grep -v '^ *+' conftest.er1 >conftest.err
20465  rm -f conftest.er1
20466  cat conftest.err >&5
20467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20468  (exit $ac_status); } &&
20469	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20470  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20471  (eval $ac_try) 2>&5
20472  ac_status=$?
20473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20474  (exit $ac_status); }; } &&
20475	 { ac_try='test -s conftest$ac_exeext'
20476  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20477  (eval $ac_try) 2>&5
20478  ac_status=$?
20479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20480  (exit $ac_status); }; }; then
20481  ac_cv_lib_dnet_dnet_ntoa=yes
20482else
20483  echo "$as_me: failed program was:" >&5
20484sed 's/^/| /' conftest.$ac_ext >&5
20485
20486ac_cv_lib_dnet_dnet_ntoa=no
20487fi
20488rm -f conftest.err conftest.$ac_objext \
20489      conftest$ac_exeext conftest.$ac_ext
20490LIBS=$ac_check_lib_save_LIBS
20491fi
20492echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
20493echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
20494if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
20495  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
20496fi
20497
20498    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
20499      echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
20500echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
20501if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
20502  echo $ECHO_N "(cached) $ECHO_C" >&6
20503else
20504  ac_check_lib_save_LIBS=$LIBS
20505LIBS="-ldnet_stub  $LIBS"
20506cat >conftest.$ac_ext <<_ACEOF
20507/* confdefs.h.  */
20508_ACEOF
20509cat confdefs.h >>conftest.$ac_ext
20510cat >>conftest.$ac_ext <<_ACEOF
20511/* end confdefs.h.  */
20512
20513/* Override any gcc2 internal prototype to avoid an error.  */
20514#ifdef __cplusplus
20515extern "C"
20516#endif
20517/* We use char because int might match the return type of a gcc2
20518   builtin and then its argument prototype would still apply.  */
20519char dnet_ntoa ();
20520int
20521main ()
20522{
20523dnet_ntoa ();
20524  ;
20525  return 0;
20526}
20527_ACEOF
20528rm -f conftest.$ac_objext conftest$ac_exeext
20529if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20530  (eval $ac_link) 2>conftest.er1
20531  ac_status=$?
20532  grep -v '^ *+' conftest.er1 >conftest.err
20533  rm -f conftest.er1
20534  cat conftest.err >&5
20535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20536  (exit $ac_status); } &&
20537	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20538  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20539  (eval $ac_try) 2>&5
20540  ac_status=$?
20541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20542  (exit $ac_status); }; } &&
20543	 { ac_try='test -s conftest$ac_exeext'
20544  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20545  (eval $ac_try) 2>&5
20546  ac_status=$?
20547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20548  (exit $ac_status); }; }; then
20549  ac_cv_lib_dnet_stub_dnet_ntoa=yes
20550else
20551  echo "$as_me: failed program was:" >&5
20552sed 's/^/| /' conftest.$ac_ext >&5
20553
20554ac_cv_lib_dnet_stub_dnet_ntoa=no
20555fi
20556rm -f conftest.err conftest.$ac_objext \
20557      conftest$ac_exeext conftest.$ac_ext
20558LIBS=$ac_check_lib_save_LIBS
20559fi
20560echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
20561echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
20562if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
20563  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
20564fi
20565
20566    fi
20567fi
20568rm -f conftest.err conftest.$ac_objext \
20569      conftest$ac_exeext conftest.$ac_ext
20570    LIBS="$ac_xsave_LIBS"
20571
20572    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
20573    # to get the SysV transport functions.
20574    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
20575    # needs -lnsl.
20576    # The nsl library prevents programs from opening the X display
20577    # on Irix 5.2, according to T.E. Dickey.
20578    # The functions gethostbyname, getservbyname, and inet_addr are
20579    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
20580    echo "$as_me:$LINENO: checking for gethostbyname" >&5
20581echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
20582if test "${ac_cv_func_gethostbyname+set}" = set; then
20583  echo $ECHO_N "(cached) $ECHO_C" >&6
20584else
20585  cat >conftest.$ac_ext <<_ACEOF
20586/* confdefs.h.  */
20587_ACEOF
20588cat confdefs.h >>conftest.$ac_ext
20589cat >>conftest.$ac_ext <<_ACEOF
20590/* end confdefs.h.  */
20591/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
20592   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20593#define gethostbyname innocuous_gethostbyname
20594
20595/* System header to define __stub macros and hopefully few prototypes,
20596    which can conflict with char gethostbyname (); below.
20597    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20598    <limits.h> exists even on freestanding compilers.  */
20599
20600#ifdef __STDC__
20601# include <limits.h>
20602#else
20603# include <assert.h>
20604#endif
20605
20606#undef gethostbyname
20607
20608/* Override any gcc2 internal prototype to avoid an error.  */
20609#ifdef __cplusplus
20610extern "C"
20611{
20612#endif
20613/* We use char because int might match the return type of a gcc2
20614   builtin and then its argument prototype would still apply.  */
20615char gethostbyname ();
20616/* The GNU C library defines this for functions which it implements
20617    to always fail with ENOSYS.  Some functions are actually named
20618    something starting with __ and the normal name is an alias.  */
20619#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
20620choke me
20621#else
20622char (*f) () = gethostbyname;
20623#endif
20624#ifdef __cplusplus
20625}
20626#endif
20627
20628int
20629main ()
20630{
20631return f != gethostbyname;
20632  ;
20633  return 0;
20634}
20635_ACEOF
20636rm -f conftest.$ac_objext conftest$ac_exeext
20637if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20638  (eval $ac_link) 2>conftest.er1
20639  ac_status=$?
20640  grep -v '^ *+' conftest.er1 >conftest.err
20641  rm -f conftest.er1
20642  cat conftest.err >&5
20643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20644  (exit $ac_status); } &&
20645	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20646  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20647  (eval $ac_try) 2>&5
20648  ac_status=$?
20649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20650  (exit $ac_status); }; } &&
20651	 { ac_try='test -s conftest$ac_exeext'
20652  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20653  (eval $ac_try) 2>&5
20654  ac_status=$?
20655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20656  (exit $ac_status); }; }; then
20657  ac_cv_func_gethostbyname=yes
20658else
20659  echo "$as_me: failed program was:" >&5
20660sed 's/^/| /' conftest.$ac_ext >&5
20661
20662ac_cv_func_gethostbyname=no
20663fi
20664rm -f conftest.err conftest.$ac_objext \
20665      conftest$ac_exeext conftest.$ac_ext
20666fi
20667echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
20668echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
20669
20670    if test $ac_cv_func_gethostbyname = no; then
20671      echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
20672echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
20673if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
20674  echo $ECHO_N "(cached) $ECHO_C" >&6
20675else
20676  ac_check_lib_save_LIBS=$LIBS
20677LIBS="-lnsl  $LIBS"
20678cat >conftest.$ac_ext <<_ACEOF
20679/* confdefs.h.  */
20680_ACEOF
20681cat confdefs.h >>conftest.$ac_ext
20682cat >>conftest.$ac_ext <<_ACEOF
20683/* end confdefs.h.  */
20684
20685/* Override any gcc2 internal prototype to avoid an error.  */
20686#ifdef __cplusplus
20687extern "C"
20688#endif
20689/* We use char because int might match the return type of a gcc2
20690   builtin and then its argument prototype would still apply.  */
20691char gethostbyname ();
20692int
20693main ()
20694{
20695gethostbyname ();
20696  ;
20697  return 0;
20698}
20699_ACEOF
20700rm -f conftest.$ac_objext conftest$ac_exeext
20701if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20702  (eval $ac_link) 2>conftest.er1
20703  ac_status=$?
20704  grep -v '^ *+' conftest.er1 >conftest.err
20705  rm -f conftest.er1
20706  cat conftest.err >&5
20707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20708  (exit $ac_status); } &&
20709	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20710  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20711  (eval $ac_try) 2>&5
20712  ac_status=$?
20713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20714  (exit $ac_status); }; } &&
20715	 { ac_try='test -s conftest$ac_exeext'
20716  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20717  (eval $ac_try) 2>&5
20718  ac_status=$?
20719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20720  (exit $ac_status); }; }; then
20721  ac_cv_lib_nsl_gethostbyname=yes
20722else
20723  echo "$as_me: failed program was:" >&5
20724sed 's/^/| /' conftest.$ac_ext >&5
20725
20726ac_cv_lib_nsl_gethostbyname=no
20727fi
20728rm -f conftest.err conftest.$ac_objext \
20729      conftest$ac_exeext conftest.$ac_ext
20730LIBS=$ac_check_lib_save_LIBS
20731fi
20732echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
20733echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
20734if test $ac_cv_lib_nsl_gethostbyname = yes; then
20735  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
20736fi
20737
20738      if test $ac_cv_lib_nsl_gethostbyname = no; then
20739	echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
20740echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
20741if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
20742  echo $ECHO_N "(cached) $ECHO_C" >&6
20743else
20744  ac_check_lib_save_LIBS=$LIBS
20745LIBS="-lbsd  $LIBS"
20746cat >conftest.$ac_ext <<_ACEOF
20747/* confdefs.h.  */
20748_ACEOF
20749cat confdefs.h >>conftest.$ac_ext
20750cat >>conftest.$ac_ext <<_ACEOF
20751/* end confdefs.h.  */
20752
20753/* Override any gcc2 internal prototype to avoid an error.  */
20754#ifdef __cplusplus
20755extern "C"
20756#endif
20757/* We use char because int might match the return type of a gcc2
20758   builtin and then its argument prototype would still apply.  */
20759char gethostbyname ();
20760int
20761main ()
20762{
20763gethostbyname ();
20764  ;
20765  return 0;
20766}
20767_ACEOF
20768rm -f conftest.$ac_objext conftest$ac_exeext
20769if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20770  (eval $ac_link) 2>conftest.er1
20771  ac_status=$?
20772  grep -v '^ *+' conftest.er1 >conftest.err
20773  rm -f conftest.er1
20774  cat conftest.err >&5
20775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20776  (exit $ac_status); } &&
20777	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20778  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20779  (eval $ac_try) 2>&5
20780  ac_status=$?
20781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20782  (exit $ac_status); }; } &&
20783	 { ac_try='test -s conftest$ac_exeext'
20784  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20785  (eval $ac_try) 2>&5
20786  ac_status=$?
20787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20788  (exit $ac_status); }; }; then
20789  ac_cv_lib_bsd_gethostbyname=yes
20790else
20791  echo "$as_me: failed program was:" >&5
20792sed 's/^/| /' conftest.$ac_ext >&5
20793
20794ac_cv_lib_bsd_gethostbyname=no
20795fi
20796rm -f conftest.err conftest.$ac_objext \
20797      conftest$ac_exeext conftest.$ac_ext
20798LIBS=$ac_check_lib_save_LIBS
20799fi
20800echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
20801echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
20802if test $ac_cv_lib_bsd_gethostbyname = yes; then
20803  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
20804fi
20805
20806      fi
20807    fi
20808
20809    # lieder@skyler.mavd.honeywell.com says without -lsocket,
20810    # socket/setsockopt and other routines are undefined under SCO ODT
20811    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
20812    # on later versions), says Simon Leinen: it contains gethostby*
20813    # variants that don't use the name server (or something).  -lsocket
20814    # must be given before -lnsl if both are needed.  We assume that
20815    # if connect needs -lnsl, so does gethostbyname.
20816    echo "$as_me:$LINENO: checking for connect" >&5
20817echo $ECHO_N "checking for connect... $ECHO_C" >&6
20818if test "${ac_cv_func_connect+set}" = set; then
20819  echo $ECHO_N "(cached) $ECHO_C" >&6
20820else
20821  cat >conftest.$ac_ext <<_ACEOF
20822/* confdefs.h.  */
20823_ACEOF
20824cat confdefs.h >>conftest.$ac_ext
20825cat >>conftest.$ac_ext <<_ACEOF
20826/* end confdefs.h.  */
20827/* Define connect to an innocuous variant, in case <limits.h> declares connect.
20828   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20829#define connect innocuous_connect
20830
20831/* System header to define __stub macros and hopefully few prototypes,
20832    which can conflict with char connect (); below.
20833    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20834    <limits.h> exists even on freestanding compilers.  */
20835
20836#ifdef __STDC__
20837# include <limits.h>
20838#else
20839# include <assert.h>
20840#endif
20841
20842#undef connect
20843
20844/* Override any gcc2 internal prototype to avoid an error.  */
20845#ifdef __cplusplus
20846extern "C"
20847{
20848#endif
20849/* We use char because int might match the return type of a gcc2
20850   builtin and then its argument prototype would still apply.  */
20851char connect ();
20852/* The GNU C library defines this for functions which it implements
20853    to always fail with ENOSYS.  Some functions are actually named
20854    something starting with __ and the normal name is an alias.  */
20855#if defined (__stub_connect) || defined (__stub___connect)
20856choke me
20857#else
20858char (*f) () = connect;
20859#endif
20860#ifdef __cplusplus
20861}
20862#endif
20863
20864int
20865main ()
20866{
20867return f != connect;
20868  ;
20869  return 0;
20870}
20871_ACEOF
20872rm -f conftest.$ac_objext conftest$ac_exeext
20873if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20874  (eval $ac_link) 2>conftest.er1
20875  ac_status=$?
20876  grep -v '^ *+' conftest.er1 >conftest.err
20877  rm -f conftest.er1
20878  cat conftest.err >&5
20879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20880  (exit $ac_status); } &&
20881	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20882  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20883  (eval $ac_try) 2>&5
20884  ac_status=$?
20885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20886  (exit $ac_status); }; } &&
20887	 { ac_try='test -s conftest$ac_exeext'
20888  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20889  (eval $ac_try) 2>&5
20890  ac_status=$?
20891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20892  (exit $ac_status); }; }; then
20893  ac_cv_func_connect=yes
20894else
20895  echo "$as_me: failed program was:" >&5
20896sed 's/^/| /' conftest.$ac_ext >&5
20897
20898ac_cv_func_connect=no
20899fi
20900rm -f conftest.err conftest.$ac_objext \
20901      conftest$ac_exeext conftest.$ac_ext
20902fi
20903echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
20904echo "${ECHO_T}$ac_cv_func_connect" >&6
20905
20906    if test $ac_cv_func_connect = no; then
20907      echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
20908echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
20909if test "${ac_cv_lib_socket_connect+set}" = set; then
20910  echo $ECHO_N "(cached) $ECHO_C" >&6
20911else
20912  ac_check_lib_save_LIBS=$LIBS
20913LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
20914cat >conftest.$ac_ext <<_ACEOF
20915/* confdefs.h.  */
20916_ACEOF
20917cat confdefs.h >>conftest.$ac_ext
20918cat >>conftest.$ac_ext <<_ACEOF
20919/* end confdefs.h.  */
20920
20921/* Override any gcc2 internal prototype to avoid an error.  */
20922#ifdef __cplusplus
20923extern "C"
20924#endif
20925/* We use char because int might match the return type of a gcc2
20926   builtin and then its argument prototype would still apply.  */
20927char connect ();
20928int
20929main ()
20930{
20931connect ();
20932  ;
20933  return 0;
20934}
20935_ACEOF
20936rm -f conftest.$ac_objext conftest$ac_exeext
20937if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20938  (eval $ac_link) 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"			 || test ! -s conftest.err'
20946  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20947  (eval $ac_try) 2>&5
20948  ac_status=$?
20949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20950  (exit $ac_status); }; } &&
20951	 { ac_try='test -s conftest$ac_exeext'
20952  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20953  (eval $ac_try) 2>&5
20954  ac_status=$?
20955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20956  (exit $ac_status); }; }; then
20957  ac_cv_lib_socket_connect=yes
20958else
20959  echo "$as_me: failed program was:" >&5
20960sed 's/^/| /' conftest.$ac_ext >&5
20961
20962ac_cv_lib_socket_connect=no
20963fi
20964rm -f conftest.err conftest.$ac_objext \
20965      conftest$ac_exeext conftest.$ac_ext
20966LIBS=$ac_check_lib_save_LIBS
20967fi
20968echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
20969echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
20970if test $ac_cv_lib_socket_connect = yes; then
20971  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
20972fi
20973
20974    fi
20975
20976    # Guillermo Gomez says -lposix is necessary on A/UX.
20977    echo "$as_me:$LINENO: checking for remove" >&5
20978echo $ECHO_N "checking for remove... $ECHO_C" >&6
20979if test "${ac_cv_func_remove+set}" = set; then
20980  echo $ECHO_N "(cached) $ECHO_C" >&6
20981else
20982  cat >conftest.$ac_ext <<_ACEOF
20983/* confdefs.h.  */
20984_ACEOF
20985cat confdefs.h >>conftest.$ac_ext
20986cat >>conftest.$ac_ext <<_ACEOF
20987/* end confdefs.h.  */
20988/* Define remove to an innocuous variant, in case <limits.h> declares remove.
20989   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20990#define remove innocuous_remove
20991
20992/* System header to define __stub macros and hopefully few prototypes,
20993    which can conflict with char remove (); below.
20994    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20995    <limits.h> exists even on freestanding compilers.  */
20996
20997#ifdef __STDC__
20998# include <limits.h>
20999#else
21000# include <assert.h>
21001#endif
21002
21003#undef remove
21004
21005/* Override any gcc2 internal prototype to avoid an error.  */
21006#ifdef __cplusplus
21007extern "C"
21008{
21009#endif
21010/* We use char because int might match the return type of a gcc2
21011   builtin and then its argument prototype would still apply.  */
21012char remove ();
21013/* The GNU C library defines this for functions which it implements
21014    to always fail with ENOSYS.  Some functions are actually named
21015    something starting with __ and the normal name is an alias.  */
21016#if defined (__stub_remove) || defined (__stub___remove)
21017choke me
21018#else
21019char (*f) () = remove;
21020#endif
21021#ifdef __cplusplus
21022}
21023#endif
21024
21025int
21026main ()
21027{
21028return f != remove;
21029  ;
21030  return 0;
21031}
21032_ACEOF
21033rm -f conftest.$ac_objext conftest$ac_exeext
21034if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21035  (eval $ac_link) 2>conftest.er1
21036  ac_status=$?
21037  grep -v '^ *+' conftest.er1 >conftest.err
21038  rm -f conftest.er1
21039  cat conftest.err >&5
21040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21041  (exit $ac_status); } &&
21042	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
21043  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21044  (eval $ac_try) 2>&5
21045  ac_status=$?
21046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21047  (exit $ac_status); }; } &&
21048	 { ac_try='test -s conftest$ac_exeext'
21049  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21050  (eval $ac_try) 2>&5
21051  ac_status=$?
21052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21053  (exit $ac_status); }; }; then
21054  ac_cv_func_remove=yes
21055else
21056  echo "$as_me: failed program was:" >&5
21057sed 's/^/| /' conftest.$ac_ext >&5
21058
21059ac_cv_func_remove=no
21060fi
21061rm -f conftest.err conftest.$ac_objext \
21062      conftest$ac_exeext conftest.$ac_ext
21063fi
21064echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
21065echo "${ECHO_T}$ac_cv_func_remove" >&6
21066
21067    if test $ac_cv_func_remove = no; then
21068      echo "$as_me:$LINENO: checking for remove in -lposix" >&5
21069echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
21070if test "${ac_cv_lib_posix_remove+set}" = set; then
21071  echo $ECHO_N "(cached) $ECHO_C" >&6
21072else
21073  ac_check_lib_save_LIBS=$LIBS
21074LIBS="-lposix  $LIBS"
21075cat >conftest.$ac_ext <<_ACEOF
21076/* confdefs.h.  */
21077_ACEOF
21078cat confdefs.h >>conftest.$ac_ext
21079cat >>conftest.$ac_ext <<_ACEOF
21080/* end confdefs.h.  */
21081
21082/* Override any gcc2 internal prototype to avoid an error.  */
21083#ifdef __cplusplus
21084extern "C"
21085#endif
21086/* We use char because int might match the return type of a gcc2
21087   builtin and then its argument prototype would still apply.  */
21088char remove ();
21089int
21090main ()
21091{
21092remove ();
21093  ;
21094  return 0;
21095}
21096_ACEOF
21097rm -f conftest.$ac_objext conftest$ac_exeext
21098if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21099  (eval $ac_link) 2>conftest.er1
21100  ac_status=$?
21101  grep -v '^ *+' conftest.er1 >conftest.err
21102  rm -f conftest.er1
21103  cat conftest.err >&5
21104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21105  (exit $ac_status); } &&
21106	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
21107  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21108  (eval $ac_try) 2>&5
21109  ac_status=$?
21110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21111  (exit $ac_status); }; } &&
21112	 { ac_try='test -s conftest$ac_exeext'
21113  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21114  (eval $ac_try) 2>&5
21115  ac_status=$?
21116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21117  (exit $ac_status); }; }; then
21118  ac_cv_lib_posix_remove=yes
21119else
21120  echo "$as_me: failed program was:" >&5
21121sed 's/^/| /' conftest.$ac_ext >&5
21122
21123ac_cv_lib_posix_remove=no
21124fi
21125rm -f conftest.err conftest.$ac_objext \
21126      conftest$ac_exeext conftest.$ac_ext
21127LIBS=$ac_check_lib_save_LIBS
21128fi
21129echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
21130echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
21131if test $ac_cv_lib_posix_remove = yes; then
21132  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
21133fi
21134
21135    fi
21136
21137    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
21138    echo "$as_me:$LINENO: checking for shmat" >&5
21139echo $ECHO_N "checking for shmat... $ECHO_C" >&6
21140if test "${ac_cv_func_shmat+set}" = set; then
21141  echo $ECHO_N "(cached) $ECHO_C" >&6
21142else
21143  cat >conftest.$ac_ext <<_ACEOF
21144/* confdefs.h.  */
21145_ACEOF
21146cat confdefs.h >>conftest.$ac_ext
21147cat >>conftest.$ac_ext <<_ACEOF
21148/* end confdefs.h.  */
21149/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
21150   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21151#define shmat innocuous_shmat
21152
21153/* System header to define __stub macros and hopefully few prototypes,
21154    which can conflict with char shmat (); below.
21155    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21156    <limits.h> exists even on freestanding compilers.  */
21157
21158#ifdef __STDC__
21159# include <limits.h>
21160#else
21161# include <assert.h>
21162#endif
21163
21164#undef shmat
21165
21166/* Override any gcc2 internal prototype to avoid an error.  */
21167#ifdef __cplusplus
21168extern "C"
21169{
21170#endif
21171/* We use char because int might match the return type of a gcc2
21172   builtin and then its argument prototype would still apply.  */
21173char shmat ();
21174/* The GNU C library defines this for functions which it implements
21175    to always fail with ENOSYS.  Some functions are actually named
21176    something starting with __ and the normal name is an alias.  */
21177#if defined (__stub_shmat) || defined (__stub___shmat)
21178choke me
21179#else
21180char (*f) () = shmat;
21181#endif
21182#ifdef __cplusplus
21183}
21184#endif
21185
21186int
21187main ()
21188{
21189return f != shmat;
21190  ;
21191  return 0;
21192}
21193_ACEOF
21194rm -f conftest.$ac_objext conftest$ac_exeext
21195if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21196  (eval $ac_link) 2>conftest.er1
21197  ac_status=$?
21198  grep -v '^ *+' conftest.er1 >conftest.err
21199  rm -f conftest.er1
21200  cat conftest.err >&5
21201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21202  (exit $ac_status); } &&
21203	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
21204  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21205  (eval $ac_try) 2>&5
21206  ac_status=$?
21207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21208  (exit $ac_status); }; } &&
21209	 { ac_try='test -s conftest$ac_exeext'
21210  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21211  (eval $ac_try) 2>&5
21212  ac_status=$?
21213  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21214  (exit $ac_status); }; }; then
21215  ac_cv_func_shmat=yes
21216else
21217  echo "$as_me: failed program was:" >&5
21218sed 's/^/| /' conftest.$ac_ext >&5
21219
21220ac_cv_func_shmat=no
21221fi
21222rm -f conftest.err conftest.$ac_objext \
21223      conftest$ac_exeext conftest.$ac_ext
21224fi
21225echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
21226echo "${ECHO_T}$ac_cv_func_shmat" >&6
21227
21228    if test $ac_cv_func_shmat = no; then
21229      echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
21230echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
21231if test "${ac_cv_lib_ipc_shmat+set}" = set; then
21232  echo $ECHO_N "(cached) $ECHO_C" >&6
21233else
21234  ac_check_lib_save_LIBS=$LIBS
21235LIBS="-lipc  $LIBS"
21236cat >conftest.$ac_ext <<_ACEOF
21237/* confdefs.h.  */
21238_ACEOF
21239cat confdefs.h >>conftest.$ac_ext
21240cat >>conftest.$ac_ext <<_ACEOF
21241/* end confdefs.h.  */
21242
21243/* Override any gcc2 internal prototype to avoid an error.  */
21244#ifdef __cplusplus
21245extern "C"
21246#endif
21247/* We use char because int might match the return type of a gcc2
21248   builtin and then its argument prototype would still apply.  */
21249char shmat ();
21250int
21251main ()
21252{
21253shmat ();
21254  ;
21255  return 0;
21256}
21257_ACEOF
21258rm -f conftest.$ac_objext conftest$ac_exeext
21259if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21260  (eval $ac_link) 2>conftest.er1
21261  ac_status=$?
21262  grep -v '^ *+' conftest.er1 >conftest.err
21263  rm -f conftest.er1
21264  cat conftest.err >&5
21265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21266  (exit $ac_status); } &&
21267	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
21268  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21269  (eval $ac_try) 2>&5
21270  ac_status=$?
21271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21272  (exit $ac_status); }; } &&
21273	 { ac_try='test -s conftest$ac_exeext'
21274  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21275  (eval $ac_try) 2>&5
21276  ac_status=$?
21277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21278  (exit $ac_status); }; }; then
21279  ac_cv_lib_ipc_shmat=yes
21280else
21281  echo "$as_me: failed program was:" >&5
21282sed 's/^/| /' conftest.$ac_ext >&5
21283
21284ac_cv_lib_ipc_shmat=no
21285fi
21286rm -f conftest.err conftest.$ac_objext \
21287      conftest$ac_exeext conftest.$ac_ext
21288LIBS=$ac_check_lib_save_LIBS
21289fi
21290echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
21291echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
21292if test $ac_cv_lib_ipc_shmat = yes; then
21293  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
21294fi
21295
21296    fi
21297  fi
21298
21299  # Check for libraries that X11R6 Xt/Xaw programs need.
21300  ac_save_LDFLAGS=$LDFLAGS
21301  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
21302  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
21303  # check for ICE first), but we must link in the order -lSM -lICE or
21304  # we get undefined symbols.  So assume we have SM if we have ICE.
21305  # These have to be linked with before -lX11, unlike the other
21306  # libraries we check for below, so use a different variable.
21307  # John Interrante, Karl Berry
21308  echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
21309echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
21310if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
21311  echo $ECHO_N "(cached) $ECHO_C" >&6
21312else
21313  ac_check_lib_save_LIBS=$LIBS
21314LIBS="-lICE $X_EXTRA_LIBS $LIBS"
21315cat >conftest.$ac_ext <<_ACEOF
21316/* confdefs.h.  */
21317_ACEOF
21318cat confdefs.h >>conftest.$ac_ext
21319cat >>conftest.$ac_ext <<_ACEOF
21320/* end confdefs.h.  */
21321
21322/* Override any gcc2 internal prototype to avoid an error.  */
21323#ifdef __cplusplus
21324extern "C"
21325#endif
21326/* We use char because int might match the return type of a gcc2
21327   builtin and then its argument prototype would still apply.  */
21328char IceConnectionNumber ();
21329int
21330main ()
21331{
21332IceConnectionNumber ();
21333  ;
21334  return 0;
21335}
21336_ACEOF
21337rm -f conftest.$ac_objext conftest$ac_exeext
21338if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21339  (eval $ac_link) 2>conftest.er1
21340  ac_status=$?
21341  grep -v '^ *+' conftest.er1 >conftest.err
21342  rm -f conftest.er1
21343  cat conftest.err >&5
21344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21345  (exit $ac_status); } &&
21346	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
21347  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21348  (eval $ac_try) 2>&5
21349  ac_status=$?
21350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21351  (exit $ac_status); }; } &&
21352	 { ac_try='test -s conftest$ac_exeext'
21353  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21354  (eval $ac_try) 2>&5
21355  ac_status=$?
21356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21357  (exit $ac_status); }; }; then
21358  ac_cv_lib_ICE_IceConnectionNumber=yes
21359else
21360  echo "$as_me: failed program was:" >&5
21361sed 's/^/| /' conftest.$ac_ext >&5
21362
21363ac_cv_lib_ICE_IceConnectionNumber=no
21364fi
21365rm -f conftest.err conftest.$ac_objext \
21366      conftest$ac_exeext conftest.$ac_ext
21367LIBS=$ac_check_lib_save_LIBS
21368fi
21369echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
21370echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
21371if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
21372  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
21373fi
21374
21375  LDFLAGS=$ac_save_LDFLAGS
21376
21377fi
21378
21379
21380CFLAGS="$CFLAGS $X_CFLAGS -Wall"
21381LIBS="$LIBS $X_LIBS $X_PRE_LIBS $X_EXTRA_LIBS"
21382
21383          ac_config_headers="$ac_config_headers config.h"
21384
21385
21386
21387
21388
21389
21390ac_header_dirent=no
21391for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21392  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
21393echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
21394echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
21395if eval "test \"\${$as_ac_Header+set}\" = set"; then
21396  echo $ECHO_N "(cached) $ECHO_C" >&6
21397else
21398  cat >conftest.$ac_ext <<_ACEOF
21399/* confdefs.h.  */
21400_ACEOF
21401cat confdefs.h >>conftest.$ac_ext
21402cat >>conftest.$ac_ext <<_ACEOF
21403/* end confdefs.h.  */
21404#include <sys/types.h>
21405#include <$ac_hdr>
21406
21407int
21408main ()
21409{
21410if ((DIR *) 0)
21411return 0;
21412  ;
21413  return 0;
21414}
21415_ACEOF
21416rm -f conftest.$ac_objext
21417if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21418  (eval $ac_compile) 2>conftest.er1
21419  ac_status=$?
21420  grep -v '^ *+' conftest.er1 >conftest.err
21421  rm -f conftest.er1
21422  cat conftest.err >&5
21423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21424  (exit $ac_status); } &&
21425	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
21426  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21427  (eval $ac_try) 2>&5
21428  ac_status=$?
21429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21430  (exit $ac_status); }; } &&
21431	 { ac_try='test -s conftest.$ac_objext'
21432  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21433  (eval $ac_try) 2>&5
21434  ac_status=$?
21435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21436  (exit $ac_status); }; }; then
21437  eval "$as_ac_Header=yes"
21438else
21439  echo "$as_me: failed program was:" >&5
21440sed 's/^/| /' conftest.$ac_ext >&5
21441
21442eval "$as_ac_Header=no"
21443fi
21444rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21445fi
21446echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21447echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21448if test `eval echo '${'$as_ac_Header'}'` = yes; then
21449  cat >>confdefs.h <<_ACEOF
21450#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21451_ACEOF
21452
21453ac_header_dirent=$ac_hdr; break
21454fi
21455
21456done
21457# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21458if test $ac_header_dirent = dirent.h; then
21459  echo "$as_me:$LINENO: checking for library containing opendir" >&5
21460echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
21461if test "${ac_cv_search_opendir+set}" = set; then
21462  echo $ECHO_N "(cached) $ECHO_C" >&6
21463else
21464  ac_func_search_save_LIBS=$LIBS
21465ac_cv_search_opendir=no
21466cat >conftest.$ac_ext <<_ACEOF
21467/* confdefs.h.  */
21468_ACEOF
21469cat confdefs.h >>conftest.$ac_ext
21470cat >>conftest.$ac_ext <<_ACEOF
21471/* end confdefs.h.  */
21472
21473/* Override any gcc2 internal prototype to avoid an error.  */
21474#ifdef __cplusplus
21475extern "C"
21476#endif
21477/* We use char because int might match the return type of a gcc2
21478   builtin and then its argument prototype would still apply.  */
21479char opendir ();
21480int
21481main ()
21482{
21483opendir ();
21484  ;
21485  return 0;
21486}
21487_ACEOF
21488rm -f conftest.$ac_objext conftest$ac_exeext
21489if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21490  (eval $ac_link) 2>conftest.er1
21491  ac_status=$?
21492  grep -v '^ *+' conftest.er1 >conftest.err
21493  rm -f conftest.er1
21494  cat conftest.err >&5
21495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21496  (exit $ac_status); } &&
21497	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
21498  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21499  (eval $ac_try) 2>&5
21500  ac_status=$?
21501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21502  (exit $ac_status); }; } &&
21503	 { ac_try='test -s conftest$ac_exeext'
21504  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21505  (eval $ac_try) 2>&5
21506  ac_status=$?
21507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21508  (exit $ac_status); }; }; then
21509  ac_cv_search_opendir="none required"
21510else
21511  echo "$as_me: failed program was:" >&5
21512sed 's/^/| /' conftest.$ac_ext >&5
21513
21514fi
21515rm -f conftest.err conftest.$ac_objext \
21516      conftest$ac_exeext conftest.$ac_ext
21517if test "$ac_cv_search_opendir" = no; then
21518  for ac_lib in dir; do
21519    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21520    cat >conftest.$ac_ext <<_ACEOF
21521/* confdefs.h.  */
21522_ACEOF
21523cat confdefs.h >>conftest.$ac_ext
21524cat >>conftest.$ac_ext <<_ACEOF
21525/* end confdefs.h.  */
21526
21527/* Override any gcc2 internal prototype to avoid an error.  */
21528#ifdef __cplusplus
21529extern "C"
21530#endif
21531/* We use char because int might match the return type of a gcc2
21532   builtin and then its argument prototype would still apply.  */
21533char opendir ();
21534int
21535main ()
21536{
21537opendir ();
21538  ;
21539  return 0;
21540}
21541_ACEOF
21542rm -f conftest.$ac_objext conftest$ac_exeext
21543if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21544  (eval $ac_link) 2>conftest.er1
21545  ac_status=$?
21546  grep -v '^ *+' conftest.er1 >conftest.err
21547  rm -f conftest.er1
21548  cat conftest.err >&5
21549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21550  (exit $ac_status); } &&
21551	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
21552  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21553  (eval $ac_try) 2>&5
21554  ac_status=$?
21555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21556  (exit $ac_status); }; } &&
21557	 { ac_try='test -s conftest$ac_exeext'
21558  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21559  (eval $ac_try) 2>&5
21560  ac_status=$?
21561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21562  (exit $ac_status); }; }; then
21563  ac_cv_search_opendir="-l$ac_lib"
21564break
21565else
21566  echo "$as_me: failed program was:" >&5
21567sed 's/^/| /' conftest.$ac_ext >&5
21568
21569fi
21570rm -f conftest.err conftest.$ac_objext \
21571      conftest$ac_exeext conftest.$ac_ext
21572  done
21573fi
21574LIBS=$ac_func_search_save_LIBS
21575fi
21576echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
21577echo "${ECHO_T}$ac_cv_search_opendir" >&6
21578if test "$ac_cv_search_opendir" != no; then
21579  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
21580
21581fi
21582
21583else
21584  echo "$as_me:$LINENO: checking for library containing opendir" >&5
21585echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
21586if test "${ac_cv_search_opendir+set}" = set; then
21587  echo $ECHO_N "(cached) $ECHO_C" >&6
21588else
21589  ac_func_search_save_LIBS=$LIBS
21590ac_cv_search_opendir=no
21591cat >conftest.$ac_ext <<_ACEOF
21592/* confdefs.h.  */
21593_ACEOF
21594cat confdefs.h >>conftest.$ac_ext
21595cat >>conftest.$ac_ext <<_ACEOF
21596/* end confdefs.h.  */
21597
21598/* Override any gcc2 internal prototype to avoid an error.  */
21599#ifdef __cplusplus
21600extern "C"
21601#endif
21602/* We use char because int might match the return type of a gcc2
21603   builtin and then its argument prototype would still apply.  */
21604char opendir ();
21605int
21606main ()
21607{
21608opendir ();
21609  ;
21610  return 0;
21611}
21612_ACEOF
21613rm -f conftest.$ac_objext conftest$ac_exeext
21614if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21615  (eval $ac_link) 2>conftest.er1
21616  ac_status=$?
21617  grep -v '^ *+' conftest.er1 >conftest.err
21618  rm -f conftest.er1
21619  cat conftest.err >&5
21620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21621  (exit $ac_status); } &&
21622	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
21623  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21624  (eval $ac_try) 2>&5
21625  ac_status=$?
21626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21627  (exit $ac_status); }; } &&
21628	 { ac_try='test -s 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  ac_cv_search_opendir="none required"
21635else
21636  echo "$as_me: failed program was:" >&5
21637sed 's/^/| /' conftest.$ac_ext >&5
21638
21639fi
21640rm -f conftest.err conftest.$ac_objext \
21641      conftest$ac_exeext conftest.$ac_ext
21642if test "$ac_cv_search_opendir" = no; then
21643  for ac_lib in x; do
21644    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21645    cat >conftest.$ac_ext <<_ACEOF
21646/* confdefs.h.  */
21647_ACEOF
21648cat confdefs.h >>conftest.$ac_ext
21649cat >>conftest.$ac_ext <<_ACEOF
21650/* end confdefs.h.  */
21651
21652/* Override any gcc2 internal prototype to avoid an error.  */
21653#ifdef __cplusplus
21654extern "C"
21655#endif
21656/* We use char because int might match the return type of a gcc2
21657   builtin and then its argument prototype would still apply.  */
21658char opendir ();
21659int
21660main ()
21661{
21662opendir ();
21663  ;
21664  return 0;
21665}
21666_ACEOF
21667rm -f conftest.$ac_objext conftest$ac_exeext
21668if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21669  (eval $ac_link) 2>conftest.er1
21670  ac_status=$?
21671  grep -v '^ *+' conftest.er1 >conftest.err
21672  rm -f conftest.er1
21673  cat conftest.err >&5
21674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21675  (exit $ac_status); } &&
21676	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
21677  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21678  (eval $ac_try) 2>&5
21679  ac_status=$?
21680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21681  (exit $ac_status); }; } &&
21682	 { ac_try='test -s conftest$ac_exeext'
21683  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21684  (eval $ac_try) 2>&5
21685  ac_status=$?
21686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21687  (exit $ac_status); }; }; then
21688  ac_cv_search_opendir="-l$ac_lib"
21689break
21690else
21691  echo "$as_me: failed program was:" >&5
21692sed 's/^/| /' conftest.$ac_ext >&5
21693
21694fi
21695rm -f conftest.err conftest.$ac_objext \
21696      conftest$ac_exeext conftest.$ac_ext
21697  done
21698fi
21699LIBS=$ac_func_search_save_LIBS
21700fi
21701echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
21702echo "${ECHO_T}$ac_cv_search_opendir" >&6
21703if test "$ac_cv_search_opendir" != no; then
21704  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
21705
21706fi
21707
21708fi
21709
21710echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21711echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
21712if test "${ac_cv_header_time+set}" = set; then
21713  echo $ECHO_N "(cached) $ECHO_C" >&6
21714else
21715  cat >conftest.$ac_ext <<_ACEOF
21716/* confdefs.h.  */
21717_ACEOF
21718cat confdefs.h >>conftest.$ac_ext
21719cat >>conftest.$ac_ext <<_ACEOF
21720/* end confdefs.h.  */
21721#include <sys/types.h>
21722#include <sys/time.h>
21723#include <time.h>
21724
21725int
21726main ()
21727{
21728if ((struct tm *) 0)
21729return 0;
21730  ;
21731  return 0;
21732}
21733_ACEOF
21734rm -f conftest.$ac_objext
21735if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21736  (eval $ac_compile) 2>conftest.er1
21737  ac_status=$?
21738  grep -v '^ *+' conftest.er1 >conftest.err
21739  rm -f conftest.er1
21740  cat conftest.err >&5
21741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21742  (exit $ac_status); } &&
21743	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
21744  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21745  (eval $ac_try) 2>&5
21746  ac_status=$?
21747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21748  (exit $ac_status); }; } &&
21749	 { ac_try='test -s conftest.$ac_objext'
21750  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21751  (eval $ac_try) 2>&5
21752  ac_status=$?
21753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21754  (exit $ac_status); }; }; then
21755  ac_cv_header_time=yes
21756else
21757  echo "$as_me: failed program was:" >&5
21758sed 's/^/| /' conftest.$ac_ext >&5
21759
21760ac_cv_header_time=no
21761fi
21762rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21763fi
21764echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21765echo "${ECHO_T}$ac_cv_header_time" >&6
21766if test $ac_cv_header_time = yes; then
21767
21768cat >>confdefs.h <<\_ACEOF
21769#define TIME_WITH_SYS_TIME 1
21770_ACEOF
21771
21772fi
21773
21774
21775echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21776echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
21777if test "${ac_cv_c_const+set}" = set; then
21778  echo $ECHO_N "(cached) $ECHO_C" >&6
21779else
21780  cat >conftest.$ac_ext <<_ACEOF
21781/* confdefs.h.  */
21782_ACEOF
21783cat confdefs.h >>conftest.$ac_ext
21784cat >>conftest.$ac_ext <<_ACEOF
21785/* end confdefs.h.  */
21786
21787int
21788main ()
21789{
21790/* FIXME: Include the comments suggested by Paul. */
21791#ifndef __cplusplus
21792  /* Ultrix mips cc rejects this.  */
21793  typedef int charset[2];
21794  const charset x;
21795  /* SunOS 4.1.1 cc rejects this.  */
21796  char const *const *ccp;
21797  char **p;
21798  /* NEC SVR4.0.2 mips cc rejects this.  */
21799  struct point {int x, y;};
21800  static struct point const zero = {0,0};
21801  /* AIX XL C 1.02.0.0 rejects this.
21802     It does not let you subtract one const X* pointer from another in
21803     an arm of an if-expression whose if-part is not a constant
21804     expression */
21805  const char *g = "string";
21806  ccp = &g + (g ? g-g : 0);
21807  /* HPUX 7.0 cc rejects these. */
21808  ++ccp;
21809  p = (char**) ccp;
21810  ccp = (char const *const *) p;
21811  { /* SCO 3.2v4 cc rejects this.  */
21812    char *t;
21813    char const *s = 0 ? (char *) 0 : (char const *) 0;
21814
21815    *t++ = 0;
21816  }
21817  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21818    int x[] = {25, 17};
21819    const int *foo = &x[0];
21820    ++foo;
21821  }
21822  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21823    typedef const int *iptr;
21824    iptr p = 0;
21825    ++p;
21826  }
21827  { /* AIX XL C 1.02.0.0 rejects this saying
21828       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21829    struct s { int j; const int *ap[3]; };
21830    struct s *b; b->j = 5;
21831  }
21832  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21833    const int foo = 10;
21834  }
21835#endif
21836
21837  ;
21838  return 0;
21839}
21840_ACEOF
21841rm -f conftest.$ac_objext
21842if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21843  (eval $ac_compile) 2>conftest.er1
21844  ac_status=$?
21845  grep -v '^ *+' conftest.er1 >conftest.err
21846  rm -f conftest.er1
21847  cat conftest.err >&5
21848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21849  (exit $ac_status); } &&
21850	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
21851  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21852  (eval $ac_try) 2>&5
21853  ac_status=$?
21854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21855  (exit $ac_status); }; } &&
21856	 { ac_try='test -s conftest.$ac_objext'
21857  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21858  (eval $ac_try) 2>&5
21859  ac_status=$?
21860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21861  (exit $ac_status); }; }; then
21862  ac_cv_c_const=yes
21863else
21864  echo "$as_me: failed program was:" >&5
21865sed 's/^/| /' conftest.$ac_ext >&5
21866
21867ac_cv_c_const=no
21868fi
21869rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21870fi
21871echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21872echo "${ECHO_T}$ac_cv_c_const" >&6
21873if test $ac_cv_c_const = no; then
21874
21875cat >>confdefs.h <<\_ACEOF
21876#define const
21877_ACEOF
21878
21879fi
21880
21881echo "$as_me:$LINENO: checking for inline" >&5
21882echo $ECHO_N "checking for inline... $ECHO_C" >&6
21883if test "${ac_cv_c_inline+set}" = set; then
21884  echo $ECHO_N "(cached) $ECHO_C" >&6
21885else
21886  ac_cv_c_inline=no
21887for ac_kw in inline __inline__ __inline; do
21888  cat >conftest.$ac_ext <<_ACEOF
21889/* confdefs.h.  */
21890_ACEOF
21891cat confdefs.h >>conftest.$ac_ext
21892cat >>conftest.$ac_ext <<_ACEOF
21893/* end confdefs.h.  */
21894#ifndef __cplusplus
21895typedef int foo_t;
21896static $ac_kw foo_t static_foo () {return 0; }
21897$ac_kw foo_t foo () {return 0; }
21898#endif
21899
21900_ACEOF
21901rm -f conftest.$ac_objext
21902if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21903  (eval $ac_compile) 2>conftest.er1
21904  ac_status=$?
21905  grep -v '^ *+' conftest.er1 >conftest.err
21906  rm -f conftest.er1
21907  cat conftest.err >&5
21908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21909  (exit $ac_status); } &&
21910	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
21911  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21912  (eval $ac_try) 2>&5
21913  ac_status=$?
21914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21915  (exit $ac_status); }; } &&
21916	 { ac_try='test -s conftest.$ac_objext'
21917  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21918  (eval $ac_try) 2>&5
21919  ac_status=$?
21920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21921  (exit $ac_status); }; }; then
21922  ac_cv_c_inline=$ac_kw; break
21923else
21924  echo "$as_me: failed program was:" >&5
21925sed 's/^/| /' conftest.$ac_ext >&5
21926
21927fi
21928rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21929done
21930
21931fi
21932echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
21933echo "${ECHO_T}$ac_cv_c_inline" >&6
21934
21935
21936case $ac_cv_c_inline in
21937  inline | yes) ;;
21938  *)
21939    case $ac_cv_c_inline in
21940      no) ac_val=;;
21941      *) ac_val=$ac_cv_c_inline;;
21942    esac
21943    cat >>confdefs.h <<_ACEOF
21944#ifndef __cplusplus
21945#define inline $ac_val
21946#endif
21947_ACEOF
21948    ;;
21949esac
21950
21951
21952echo "$as_me:$LINENO: checking for char" >&5
21953echo $ECHO_N "checking for char... $ECHO_C" >&6
21954if test "${ac_cv_type_char+set}" = set; then
21955  echo $ECHO_N "(cached) $ECHO_C" >&6
21956else
21957  cat >conftest.$ac_ext <<_ACEOF
21958/* confdefs.h.  */
21959_ACEOF
21960cat confdefs.h >>conftest.$ac_ext
21961cat >>conftest.$ac_ext <<_ACEOF
21962/* end confdefs.h.  */
21963$ac_includes_default
21964int
21965main ()
21966{
21967if ((char *) 0)
21968  return 0;
21969if (sizeof (char))
21970  return 0;
21971  ;
21972  return 0;
21973}
21974_ACEOF
21975rm -f conftest.$ac_objext
21976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21977  (eval $ac_compile) 2>conftest.er1
21978  ac_status=$?
21979  grep -v '^ *+' conftest.er1 >conftest.err
21980  rm -f conftest.er1
21981  cat conftest.err >&5
21982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21983  (exit $ac_status); } &&
21984	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
21985  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21986  (eval $ac_try) 2>&5
21987  ac_status=$?
21988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21989  (exit $ac_status); }; } &&
21990	 { ac_try='test -s conftest.$ac_objext'
21991  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21992  (eval $ac_try) 2>&5
21993  ac_status=$?
21994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21995  (exit $ac_status); }; }; then
21996  ac_cv_type_char=yes
21997else
21998  echo "$as_me: failed program was:" >&5
21999sed 's/^/| /' conftest.$ac_ext >&5
22000
22001ac_cv_type_char=no
22002fi
22003rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22004fi
22005echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
22006echo "${ECHO_T}$ac_cv_type_char" >&6
22007
22008echo "$as_me:$LINENO: checking size of char" >&5
22009echo $ECHO_N "checking size of char... $ECHO_C" >&6
22010if test "${ac_cv_sizeof_char+set}" = set; then
22011  echo $ECHO_N "(cached) $ECHO_C" >&6
22012else
22013  if test "$ac_cv_type_char" = yes; then
22014  # The cast to unsigned long works around a bug in the HP C Compiler
22015  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22016  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22017  # This bug is HP SR number 8606223364.
22018  if test "$cross_compiling" = yes; then
22019  # Depending upon the size, compute the lo and hi bounds.
22020cat >conftest.$ac_ext <<_ACEOF
22021/* confdefs.h.  */
22022_ACEOF
22023cat confdefs.h >>conftest.$ac_ext
22024cat >>conftest.$ac_ext <<_ACEOF
22025/* end confdefs.h.  */
22026$ac_includes_default
22027int
22028main ()
22029{
22030static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
22031test_array [0] = 0
22032
22033  ;
22034  return 0;
22035}
22036_ACEOF
22037rm -f conftest.$ac_objext
22038if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22039  (eval $ac_compile) 2>conftest.er1
22040  ac_status=$?
22041  grep -v '^ *+' conftest.er1 >conftest.err
22042  rm -f conftest.er1
22043  cat conftest.err >&5
22044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22045  (exit $ac_status); } &&
22046	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
22047  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22048  (eval $ac_try) 2>&5
22049  ac_status=$?
22050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22051  (exit $ac_status); }; } &&
22052	 { ac_try='test -s conftest.$ac_objext'
22053  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22054  (eval $ac_try) 2>&5
22055  ac_status=$?
22056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22057  (exit $ac_status); }; }; then
22058  ac_lo=0 ac_mid=0
22059  while :; do
22060    cat >conftest.$ac_ext <<_ACEOF
22061/* confdefs.h.  */
22062_ACEOF
22063cat confdefs.h >>conftest.$ac_ext
22064cat >>conftest.$ac_ext <<_ACEOF
22065/* end confdefs.h.  */
22066$ac_includes_default
22067int
22068main ()
22069{
22070static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
22071test_array [0] = 0
22072
22073  ;
22074  return 0;
22075}
22076_ACEOF
22077rm -f conftest.$ac_objext
22078if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22079  (eval $ac_compile) 2>conftest.er1
22080  ac_status=$?
22081  grep -v '^ *+' conftest.er1 >conftest.err
22082  rm -f conftest.er1
22083  cat conftest.err >&5
22084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22085  (exit $ac_status); } &&
22086	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
22087  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22088  (eval $ac_try) 2>&5
22089  ac_status=$?
22090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22091  (exit $ac_status); }; } &&
22092	 { ac_try='test -s conftest.$ac_objext'
22093  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22094  (eval $ac_try) 2>&5
22095  ac_status=$?
22096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22097  (exit $ac_status); }; }; then
22098  ac_hi=$ac_mid; break
22099else
22100  echo "$as_me: failed program was:" >&5
22101sed 's/^/| /' conftest.$ac_ext >&5
22102
22103ac_lo=`expr $ac_mid + 1`
22104		    if test $ac_lo -le $ac_mid; then
22105		      ac_lo= ac_hi=
22106		      break
22107		    fi
22108		    ac_mid=`expr 2 '*' $ac_mid + 1`
22109fi
22110rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22111  done
22112else
22113  echo "$as_me: failed program was:" >&5
22114sed 's/^/| /' conftest.$ac_ext >&5
22115
22116cat >conftest.$ac_ext <<_ACEOF
22117/* confdefs.h.  */
22118_ACEOF
22119cat confdefs.h >>conftest.$ac_ext
22120cat >>conftest.$ac_ext <<_ACEOF
22121/* end confdefs.h.  */
22122$ac_includes_default
22123int
22124main ()
22125{
22126static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
22127test_array [0] = 0
22128
22129  ;
22130  return 0;
22131}
22132_ACEOF
22133rm -f conftest.$ac_objext
22134if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22135  (eval $ac_compile) 2>conftest.er1
22136  ac_status=$?
22137  grep -v '^ *+' conftest.er1 >conftest.err
22138  rm -f conftest.er1
22139  cat conftest.err >&5
22140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22141  (exit $ac_status); } &&
22142	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
22143  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22144  (eval $ac_try) 2>&5
22145  ac_status=$?
22146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22147  (exit $ac_status); }; } &&
22148	 { ac_try='test -s conftest.$ac_objext'
22149  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22150  (eval $ac_try) 2>&5
22151  ac_status=$?
22152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22153  (exit $ac_status); }; }; then
22154  ac_hi=-1 ac_mid=-1
22155  while :; do
22156    cat >conftest.$ac_ext <<_ACEOF
22157/* confdefs.h.  */
22158_ACEOF
22159cat confdefs.h >>conftest.$ac_ext
22160cat >>conftest.$ac_ext <<_ACEOF
22161/* end confdefs.h.  */
22162$ac_includes_default
22163int
22164main ()
22165{
22166static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
22167test_array [0] = 0
22168
22169  ;
22170  return 0;
22171}
22172_ACEOF
22173rm -f conftest.$ac_objext
22174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22175  (eval $ac_compile) 2>conftest.er1
22176  ac_status=$?
22177  grep -v '^ *+' conftest.er1 >conftest.err
22178  rm -f conftest.er1
22179  cat conftest.err >&5
22180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22181  (exit $ac_status); } &&
22182	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
22183  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22184  (eval $ac_try) 2>&5
22185  ac_status=$?
22186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22187  (exit $ac_status); }; } &&
22188	 { ac_try='test -s conftest.$ac_objext'
22189  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22190  (eval $ac_try) 2>&5
22191  ac_status=$?
22192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22193  (exit $ac_status); }; }; then
22194  ac_lo=$ac_mid; break
22195else
22196  echo "$as_me: failed program was:" >&5
22197sed 's/^/| /' conftest.$ac_ext >&5
22198
22199ac_hi=`expr '(' $ac_mid ')' - 1`
22200		       if test $ac_mid -le $ac_hi; then
22201			 ac_lo= ac_hi=
22202			 break
22203		       fi
22204		       ac_mid=`expr 2 '*' $ac_mid`
22205fi
22206rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22207  done
22208else
22209  echo "$as_me: failed program was:" >&5
22210sed 's/^/| /' conftest.$ac_ext >&5
22211
22212ac_lo= ac_hi=
22213fi
22214rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22215fi
22216rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22217# Binary search between lo and hi bounds.
22218while test "x$ac_lo" != "x$ac_hi"; do
22219  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22220  cat >conftest.$ac_ext <<_ACEOF
22221/* confdefs.h.  */
22222_ACEOF
22223cat confdefs.h >>conftest.$ac_ext
22224cat >>conftest.$ac_ext <<_ACEOF
22225/* end confdefs.h.  */
22226$ac_includes_default
22227int
22228main ()
22229{
22230static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
22231test_array [0] = 0
22232
22233  ;
22234  return 0;
22235}
22236_ACEOF
22237rm -f conftest.$ac_objext
22238if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22239  (eval $ac_compile) 2>conftest.er1
22240  ac_status=$?
22241  grep -v '^ *+' conftest.er1 >conftest.err
22242  rm -f conftest.er1
22243  cat conftest.err >&5
22244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22245  (exit $ac_status); } &&
22246	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
22247  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22248  (eval $ac_try) 2>&5
22249  ac_status=$?
22250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22251  (exit $ac_status); }; } &&
22252	 { ac_try='test -s conftest.$ac_objext'
22253  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22254  (eval $ac_try) 2>&5
22255  ac_status=$?
22256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22257  (exit $ac_status); }; }; then
22258  ac_hi=$ac_mid
22259else
22260  echo "$as_me: failed program was:" >&5
22261sed 's/^/| /' conftest.$ac_ext >&5
22262
22263ac_lo=`expr '(' $ac_mid ')' + 1`
22264fi
22265rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22266done
22267case $ac_lo in
22268?*) ac_cv_sizeof_char=$ac_lo;;
22269'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
22270See \`config.log' for more details." >&5
22271echo "$as_me: error: cannot compute sizeof (char), 77
22272See \`config.log' for more details." >&2;}
22273   { (exit 1); exit 1; }; } ;;
22274esac
22275else
22276  if test "$cross_compiling" = yes; then
22277  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
22278echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
22279   { (exit 1); exit 1; }; }
22280else
22281  cat >conftest.$ac_ext <<_ACEOF
22282/* confdefs.h.  */
22283_ACEOF
22284cat confdefs.h >>conftest.$ac_ext
22285cat >>conftest.$ac_ext <<_ACEOF
22286/* end confdefs.h.  */
22287$ac_includes_default
22288long longval () { return (long) (sizeof (char)); }
22289unsigned long ulongval () { return (long) (sizeof (char)); }
22290#include <stdio.h>
22291#include <stdlib.h>
22292int
22293main ()
22294{
22295
22296  FILE *f = fopen ("conftest.val", "w");
22297  if (! f)
22298    exit (1);
22299  if (((long) (sizeof (char))) < 0)
22300    {
22301      long i = longval ();
22302      if (i != ((long) (sizeof (char))))
22303	exit (1);
22304      fprintf (f, "%ld\n", i);
22305    }
22306  else
22307    {
22308      unsigned long i = ulongval ();
22309      if (i != ((long) (sizeof (char))))
22310	exit (1);
22311      fprintf (f, "%lu\n", i);
22312    }
22313  exit (ferror (f) || fclose (f) != 0);
22314
22315  ;
22316  return 0;
22317}
22318_ACEOF
22319rm -f conftest$ac_exeext
22320if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22321  (eval $ac_link) 2>&5
22322  ac_status=$?
22323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22324  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22325  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22326  (eval $ac_try) 2>&5
22327  ac_status=$?
22328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22329  (exit $ac_status); }; }; then
22330  ac_cv_sizeof_char=`cat conftest.val`
22331else
22332  echo "$as_me: program exited with status $ac_status" >&5
22333echo "$as_me: failed program was:" >&5
22334sed 's/^/| /' conftest.$ac_ext >&5
22335
22336( exit $ac_status )
22337{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
22338See \`config.log' for more details." >&5
22339echo "$as_me: error: cannot compute sizeof (char), 77
22340See \`config.log' for more details." >&2;}
22341   { (exit 1); exit 1; }; }
22342fi
22343rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22344fi
22345fi
22346rm -f conftest.val
22347else
22348  ac_cv_sizeof_char=0
22349fi
22350fi
22351echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
22352echo "${ECHO_T}$ac_cv_sizeof_char" >&6
22353cat >>confdefs.h <<_ACEOF
22354#define SIZEOF_CHAR $ac_cv_sizeof_char
22355_ACEOF
22356
22357
22358echo "$as_me:$LINENO: checking for short" >&5
22359echo $ECHO_N "checking for short... $ECHO_C" >&6
22360if test "${ac_cv_type_short+set}" = set; then
22361  echo $ECHO_N "(cached) $ECHO_C" >&6
22362else
22363  cat >conftest.$ac_ext <<_ACEOF
22364/* confdefs.h.  */
22365_ACEOF
22366cat confdefs.h >>conftest.$ac_ext
22367cat >>conftest.$ac_ext <<_ACEOF
22368/* end confdefs.h.  */
22369$ac_includes_default
22370int
22371main ()
22372{
22373if ((short *) 0)
22374  return 0;
22375if (sizeof (short))
22376  return 0;
22377  ;
22378  return 0;
22379}
22380_ACEOF
22381rm -f conftest.$ac_objext
22382if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22383  (eval $ac_compile) 2>conftest.er1
22384  ac_status=$?
22385  grep -v '^ *+' conftest.er1 >conftest.err
22386  rm -f conftest.er1
22387  cat conftest.err >&5
22388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22389  (exit $ac_status); } &&
22390	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
22391  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22392  (eval $ac_try) 2>&5
22393  ac_status=$?
22394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22395  (exit $ac_status); }; } &&
22396	 { ac_try='test -s conftest.$ac_objext'
22397  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22398  (eval $ac_try) 2>&5
22399  ac_status=$?
22400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22401  (exit $ac_status); }; }; then
22402  ac_cv_type_short=yes
22403else
22404  echo "$as_me: failed program was:" >&5
22405sed 's/^/| /' conftest.$ac_ext >&5
22406
22407ac_cv_type_short=no
22408fi
22409rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22410fi
22411echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
22412echo "${ECHO_T}$ac_cv_type_short" >&6
22413
22414echo "$as_me:$LINENO: checking size of short" >&5
22415echo $ECHO_N "checking size of short... $ECHO_C" >&6
22416if test "${ac_cv_sizeof_short+set}" = set; then
22417  echo $ECHO_N "(cached) $ECHO_C" >&6
22418else
22419  if test "$ac_cv_type_short" = yes; then
22420  # The cast to unsigned long works around a bug in the HP C Compiler
22421  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22422  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22423  # This bug is HP SR number 8606223364.
22424  if test "$cross_compiling" = yes; then
22425  # Depending upon the size, compute the lo and hi bounds.
22426cat >conftest.$ac_ext <<_ACEOF
22427/* confdefs.h.  */
22428_ACEOF
22429cat confdefs.h >>conftest.$ac_ext
22430cat >>conftest.$ac_ext <<_ACEOF
22431/* end confdefs.h.  */
22432$ac_includes_default
22433int
22434main ()
22435{
22436static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
22437test_array [0] = 0
22438
22439  ;
22440  return 0;
22441}
22442_ACEOF
22443rm -f conftest.$ac_objext
22444if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22445  (eval $ac_compile) 2>conftest.er1
22446  ac_status=$?
22447  grep -v '^ *+' conftest.er1 >conftest.err
22448  rm -f conftest.er1
22449  cat conftest.err >&5
22450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22451  (exit $ac_status); } &&
22452	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
22453  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22454  (eval $ac_try) 2>&5
22455  ac_status=$?
22456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22457  (exit $ac_status); }; } &&
22458	 { ac_try='test -s conftest.$ac_objext'
22459  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22460  (eval $ac_try) 2>&5
22461  ac_status=$?
22462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22463  (exit $ac_status); }; }; then
22464  ac_lo=0 ac_mid=0
22465  while :; do
22466    cat >conftest.$ac_ext <<_ACEOF
22467/* confdefs.h.  */
22468_ACEOF
22469cat confdefs.h >>conftest.$ac_ext
22470cat >>conftest.$ac_ext <<_ACEOF
22471/* end confdefs.h.  */
22472$ac_includes_default
22473int
22474main ()
22475{
22476static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
22477test_array [0] = 0
22478
22479  ;
22480  return 0;
22481}
22482_ACEOF
22483rm -f conftest.$ac_objext
22484if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22485  (eval $ac_compile) 2>conftest.er1
22486  ac_status=$?
22487  grep -v '^ *+' conftest.er1 >conftest.err
22488  rm -f conftest.er1
22489  cat conftest.err >&5
22490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22491  (exit $ac_status); } &&
22492	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
22493  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22494  (eval $ac_try) 2>&5
22495  ac_status=$?
22496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22497  (exit $ac_status); }; } &&
22498	 { ac_try='test -s conftest.$ac_objext'
22499  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22500  (eval $ac_try) 2>&5
22501  ac_status=$?
22502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22503  (exit $ac_status); }; }; then
22504  ac_hi=$ac_mid; break
22505else
22506  echo "$as_me: failed program was:" >&5
22507sed 's/^/| /' conftest.$ac_ext >&5
22508
22509ac_lo=`expr $ac_mid + 1`
22510		    if test $ac_lo -le $ac_mid; then
22511		      ac_lo= ac_hi=
22512		      break
22513		    fi
22514		    ac_mid=`expr 2 '*' $ac_mid + 1`
22515fi
22516rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22517  done
22518else
22519  echo "$as_me: failed program was:" >&5
22520sed 's/^/| /' conftest.$ac_ext >&5
22521
22522cat >conftest.$ac_ext <<_ACEOF
22523/* confdefs.h.  */
22524_ACEOF
22525cat confdefs.h >>conftest.$ac_ext
22526cat >>conftest.$ac_ext <<_ACEOF
22527/* end confdefs.h.  */
22528$ac_includes_default
22529int
22530main ()
22531{
22532static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
22533test_array [0] = 0
22534
22535  ;
22536  return 0;
22537}
22538_ACEOF
22539rm -f conftest.$ac_objext
22540if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22541  (eval $ac_compile) 2>conftest.er1
22542  ac_status=$?
22543  grep -v '^ *+' conftest.er1 >conftest.err
22544  rm -f conftest.er1
22545  cat conftest.err >&5
22546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22547  (exit $ac_status); } &&
22548	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
22549  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22550  (eval $ac_try) 2>&5
22551  ac_status=$?
22552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22553  (exit $ac_status); }; } &&
22554	 { ac_try='test -s conftest.$ac_objext'
22555  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22556  (eval $ac_try) 2>&5
22557  ac_status=$?
22558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22559  (exit $ac_status); }; }; then
22560  ac_hi=-1 ac_mid=-1
22561  while :; do
22562    cat >conftest.$ac_ext <<_ACEOF
22563/* confdefs.h.  */
22564_ACEOF
22565cat confdefs.h >>conftest.$ac_ext
22566cat >>conftest.$ac_ext <<_ACEOF
22567/* end confdefs.h.  */
22568$ac_includes_default
22569int
22570main ()
22571{
22572static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
22573test_array [0] = 0
22574
22575  ;
22576  return 0;
22577}
22578_ACEOF
22579rm -f conftest.$ac_objext
22580if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22581  (eval $ac_compile) 2>conftest.er1
22582  ac_status=$?
22583  grep -v '^ *+' conftest.er1 >conftest.err
22584  rm -f conftest.er1
22585  cat conftest.err >&5
22586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22587  (exit $ac_status); } &&
22588	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
22589  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22590  (eval $ac_try) 2>&5
22591  ac_status=$?
22592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22593  (exit $ac_status); }; } &&
22594	 { ac_try='test -s conftest.$ac_objext'
22595  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22596  (eval $ac_try) 2>&5
22597  ac_status=$?
22598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22599  (exit $ac_status); }; }; then
22600  ac_lo=$ac_mid; break
22601else
22602  echo "$as_me: failed program was:" >&5
22603sed 's/^/| /' conftest.$ac_ext >&5
22604
22605ac_hi=`expr '(' $ac_mid ')' - 1`
22606		       if test $ac_mid -le $ac_hi; then
22607			 ac_lo= ac_hi=
22608			 break
22609		       fi
22610		       ac_mid=`expr 2 '*' $ac_mid`
22611fi
22612rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22613  done
22614else
22615  echo "$as_me: failed program was:" >&5
22616sed 's/^/| /' conftest.$ac_ext >&5
22617
22618ac_lo= ac_hi=
22619fi
22620rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22621fi
22622rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22623# Binary search between lo and hi bounds.
22624while test "x$ac_lo" != "x$ac_hi"; do
22625  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22626  cat >conftest.$ac_ext <<_ACEOF
22627/* confdefs.h.  */
22628_ACEOF
22629cat confdefs.h >>conftest.$ac_ext
22630cat >>conftest.$ac_ext <<_ACEOF
22631/* end confdefs.h.  */
22632$ac_includes_default
22633int
22634main ()
22635{
22636static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
22637test_array [0] = 0
22638
22639  ;
22640  return 0;
22641}
22642_ACEOF
22643rm -f conftest.$ac_objext
22644if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22645  (eval $ac_compile) 2>conftest.er1
22646  ac_status=$?
22647  grep -v '^ *+' conftest.er1 >conftest.err
22648  rm -f conftest.er1
22649  cat conftest.err >&5
22650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22651  (exit $ac_status); } &&
22652	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
22653  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22654  (eval $ac_try) 2>&5
22655  ac_status=$?
22656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22657  (exit $ac_status); }; } &&
22658	 { ac_try='test -s conftest.$ac_objext'
22659  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22660  (eval $ac_try) 2>&5
22661  ac_status=$?
22662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22663  (exit $ac_status); }; }; then
22664  ac_hi=$ac_mid
22665else
22666  echo "$as_me: failed program was:" >&5
22667sed 's/^/| /' conftest.$ac_ext >&5
22668
22669ac_lo=`expr '(' $ac_mid ')' + 1`
22670fi
22671rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22672done
22673case $ac_lo in
22674?*) ac_cv_sizeof_short=$ac_lo;;
22675'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
22676See \`config.log' for more details." >&5
22677echo "$as_me: error: cannot compute sizeof (short), 77
22678See \`config.log' for more details." >&2;}
22679   { (exit 1); exit 1; }; } ;;
22680esac
22681else
22682  if test "$cross_compiling" = yes; then
22683  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
22684echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
22685   { (exit 1); exit 1; }; }
22686else
22687  cat >conftest.$ac_ext <<_ACEOF
22688/* confdefs.h.  */
22689_ACEOF
22690cat confdefs.h >>conftest.$ac_ext
22691cat >>conftest.$ac_ext <<_ACEOF
22692/* end confdefs.h.  */
22693$ac_includes_default
22694long longval () { return (long) (sizeof (short)); }
22695unsigned long ulongval () { return (long) (sizeof (short)); }
22696#include <stdio.h>
22697#include <stdlib.h>
22698int
22699main ()
22700{
22701
22702  FILE *f = fopen ("conftest.val", "w");
22703  if (! f)
22704    exit (1);
22705  if (((long) (sizeof (short))) < 0)
22706    {
22707      long i = longval ();
22708      if (i != ((long) (sizeof (short))))
22709	exit (1);
22710      fprintf (f, "%ld\n", i);
22711    }
22712  else
22713    {
22714      unsigned long i = ulongval ();
22715      if (i != ((long) (sizeof (short))))
22716	exit (1);
22717      fprintf (f, "%lu\n", i);
22718    }
22719  exit (ferror (f) || fclose (f) != 0);
22720
22721  ;
22722  return 0;
22723}
22724_ACEOF
22725rm -f conftest$ac_exeext
22726if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22727  (eval $ac_link) 2>&5
22728  ac_status=$?
22729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22730  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22731  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22732  (eval $ac_try) 2>&5
22733  ac_status=$?
22734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22735  (exit $ac_status); }; }; then
22736  ac_cv_sizeof_short=`cat conftest.val`
22737else
22738  echo "$as_me: program exited with status $ac_status" >&5
22739echo "$as_me: failed program was:" >&5
22740sed 's/^/| /' conftest.$ac_ext >&5
22741
22742( exit $ac_status )
22743{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
22744See \`config.log' for more details." >&5
22745echo "$as_me: error: cannot compute sizeof (short), 77
22746See \`config.log' for more details." >&2;}
22747   { (exit 1); exit 1; }; }
22748fi
22749rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22750fi
22751fi
22752rm -f conftest.val
22753else
22754  ac_cv_sizeof_short=0
22755fi
22756fi
22757echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
22758echo "${ECHO_T}$ac_cv_sizeof_short" >&6
22759cat >>confdefs.h <<_ACEOF
22760#define SIZEOF_SHORT $ac_cv_sizeof_short
22761_ACEOF
22762
22763
22764echo "$as_me:$LINENO: checking for int" >&5
22765echo $ECHO_N "checking for int... $ECHO_C" >&6
22766if test "${ac_cv_type_int+set}" = set; then
22767  echo $ECHO_N "(cached) $ECHO_C" >&6
22768else
22769  cat >conftest.$ac_ext <<_ACEOF
22770/* confdefs.h.  */
22771_ACEOF
22772cat confdefs.h >>conftest.$ac_ext
22773cat >>conftest.$ac_ext <<_ACEOF
22774/* end confdefs.h.  */
22775$ac_includes_default
22776int
22777main ()
22778{
22779if ((int *) 0)
22780  return 0;
22781if (sizeof (int))
22782  return 0;
22783  ;
22784  return 0;
22785}
22786_ACEOF
22787rm -f conftest.$ac_objext
22788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22789  (eval $ac_compile) 2>conftest.er1
22790  ac_status=$?
22791  grep -v '^ *+' conftest.er1 >conftest.err
22792  rm -f conftest.er1
22793  cat conftest.err >&5
22794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22795  (exit $ac_status); } &&
22796	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
22797  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22798  (eval $ac_try) 2>&5
22799  ac_status=$?
22800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22801  (exit $ac_status); }; } &&
22802	 { ac_try='test -s conftest.$ac_objext'
22803  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22804  (eval $ac_try) 2>&5
22805  ac_status=$?
22806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22807  (exit $ac_status); }; }; then
22808  ac_cv_type_int=yes
22809else
22810  echo "$as_me: failed program was:" >&5
22811sed 's/^/| /' conftest.$ac_ext >&5
22812
22813ac_cv_type_int=no
22814fi
22815rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22816fi
22817echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
22818echo "${ECHO_T}$ac_cv_type_int" >&6
22819
22820echo "$as_me:$LINENO: checking size of int" >&5
22821echo $ECHO_N "checking size of int... $ECHO_C" >&6
22822if test "${ac_cv_sizeof_int+set}" = set; then
22823  echo $ECHO_N "(cached) $ECHO_C" >&6
22824else
22825  if test "$ac_cv_type_int" = yes; then
22826  # The cast to unsigned long works around a bug in the HP C Compiler
22827  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22828  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22829  # This bug is HP SR number 8606223364.
22830  if test "$cross_compiling" = yes; then
22831  # Depending upon the size, compute the lo and hi bounds.
22832cat >conftest.$ac_ext <<_ACEOF
22833/* confdefs.h.  */
22834_ACEOF
22835cat confdefs.h >>conftest.$ac_ext
22836cat >>conftest.$ac_ext <<_ACEOF
22837/* end confdefs.h.  */
22838$ac_includes_default
22839int
22840main ()
22841{
22842static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
22843test_array [0] = 0
22844
22845  ;
22846  return 0;
22847}
22848_ACEOF
22849rm -f conftest.$ac_objext
22850if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22851  (eval $ac_compile) 2>conftest.er1
22852  ac_status=$?
22853  grep -v '^ *+' conftest.er1 >conftest.err
22854  rm -f conftest.er1
22855  cat conftest.err >&5
22856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22857  (exit $ac_status); } &&
22858	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
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); }; } &&
22864	 { ac_try='test -s conftest.$ac_objext'
22865  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22866  (eval $ac_try) 2>&5
22867  ac_status=$?
22868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22869  (exit $ac_status); }; }; then
22870  ac_lo=0 ac_mid=0
22871  while :; do
22872    cat >conftest.$ac_ext <<_ACEOF
22873/* confdefs.h.  */
22874_ACEOF
22875cat confdefs.h >>conftest.$ac_ext
22876cat >>conftest.$ac_ext <<_ACEOF
22877/* end confdefs.h.  */
22878$ac_includes_default
22879int
22880main ()
22881{
22882static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
22883test_array [0] = 0
22884
22885  ;
22886  return 0;
22887}
22888_ACEOF
22889rm -f conftest.$ac_objext
22890if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22891  (eval $ac_compile) 2>conftest.er1
22892  ac_status=$?
22893  grep -v '^ *+' conftest.er1 >conftest.err
22894  rm -f conftest.er1
22895  cat conftest.err >&5
22896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22897  (exit $ac_status); } &&
22898	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
22899  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22900  (eval $ac_try) 2>&5
22901  ac_status=$?
22902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22903  (exit $ac_status); }; } &&
22904	 { ac_try='test -s conftest.$ac_objext'
22905  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22906  (eval $ac_try) 2>&5
22907  ac_status=$?
22908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22909  (exit $ac_status); }; }; then
22910  ac_hi=$ac_mid; break
22911else
22912  echo "$as_me: failed program was:" >&5
22913sed 's/^/| /' conftest.$ac_ext >&5
22914
22915ac_lo=`expr $ac_mid + 1`
22916		    if test $ac_lo -le $ac_mid; then
22917		      ac_lo= ac_hi=
22918		      break
22919		    fi
22920		    ac_mid=`expr 2 '*' $ac_mid + 1`
22921fi
22922rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22923  done
22924else
22925  echo "$as_me: failed program was:" >&5
22926sed 's/^/| /' conftest.$ac_ext >&5
22927
22928cat >conftest.$ac_ext <<_ACEOF
22929/* confdefs.h.  */
22930_ACEOF
22931cat confdefs.h >>conftest.$ac_ext
22932cat >>conftest.$ac_ext <<_ACEOF
22933/* end confdefs.h.  */
22934$ac_includes_default
22935int
22936main ()
22937{
22938static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
22939test_array [0] = 0
22940
22941  ;
22942  return 0;
22943}
22944_ACEOF
22945rm -f conftest.$ac_objext
22946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22947  (eval $ac_compile) 2>conftest.er1
22948  ac_status=$?
22949  grep -v '^ *+' conftest.er1 >conftest.err
22950  rm -f conftest.er1
22951  cat conftest.err >&5
22952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22953  (exit $ac_status); } &&
22954	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
22955  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22956  (eval $ac_try) 2>&5
22957  ac_status=$?
22958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22959  (exit $ac_status); }; } &&
22960	 { ac_try='test -s conftest.$ac_objext'
22961  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22962  (eval $ac_try) 2>&5
22963  ac_status=$?
22964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22965  (exit $ac_status); }; }; then
22966  ac_hi=-1 ac_mid=-1
22967  while :; do
22968    cat >conftest.$ac_ext <<_ACEOF
22969/* confdefs.h.  */
22970_ACEOF
22971cat confdefs.h >>conftest.$ac_ext
22972cat >>conftest.$ac_ext <<_ACEOF
22973/* end confdefs.h.  */
22974$ac_includes_default
22975int
22976main ()
22977{
22978static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
22979test_array [0] = 0
22980
22981  ;
22982  return 0;
22983}
22984_ACEOF
22985rm -f conftest.$ac_objext
22986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22987  (eval $ac_compile) 2>conftest.er1
22988  ac_status=$?
22989  grep -v '^ *+' conftest.er1 >conftest.err
22990  rm -f conftest.er1
22991  cat conftest.err >&5
22992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22993  (exit $ac_status); } &&
22994	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
22995  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22996  (eval $ac_try) 2>&5
22997  ac_status=$?
22998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22999  (exit $ac_status); }; } &&
23000	 { ac_try='test -s conftest.$ac_objext'
23001  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23002  (eval $ac_try) 2>&5
23003  ac_status=$?
23004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23005  (exit $ac_status); }; }; then
23006  ac_lo=$ac_mid; break
23007else
23008  echo "$as_me: failed program was:" >&5
23009sed 's/^/| /' conftest.$ac_ext >&5
23010
23011ac_hi=`expr '(' $ac_mid ')' - 1`
23012		       if test $ac_mid -le $ac_hi; then
23013			 ac_lo= ac_hi=
23014			 break
23015		       fi
23016		       ac_mid=`expr 2 '*' $ac_mid`
23017fi
23018rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23019  done
23020else
23021  echo "$as_me: failed program was:" >&5
23022sed 's/^/| /' conftest.$ac_ext >&5
23023
23024ac_lo= ac_hi=
23025fi
23026rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23027fi
23028rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23029# Binary search between lo and hi bounds.
23030while test "x$ac_lo" != "x$ac_hi"; do
23031  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23032  cat >conftest.$ac_ext <<_ACEOF
23033/* confdefs.h.  */
23034_ACEOF
23035cat confdefs.h >>conftest.$ac_ext
23036cat >>conftest.$ac_ext <<_ACEOF
23037/* end confdefs.h.  */
23038$ac_includes_default
23039int
23040main ()
23041{
23042static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
23043test_array [0] = 0
23044
23045  ;
23046  return 0;
23047}
23048_ACEOF
23049rm -f conftest.$ac_objext
23050if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23051  (eval $ac_compile) 2>conftest.er1
23052  ac_status=$?
23053  grep -v '^ *+' conftest.er1 >conftest.err
23054  rm -f conftest.er1
23055  cat conftest.err >&5
23056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23057  (exit $ac_status); } &&
23058	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
23059  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23060  (eval $ac_try) 2>&5
23061  ac_status=$?
23062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23063  (exit $ac_status); }; } &&
23064	 { ac_try='test -s conftest.$ac_objext'
23065  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23066  (eval $ac_try) 2>&5
23067  ac_status=$?
23068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23069  (exit $ac_status); }; }; then
23070  ac_hi=$ac_mid
23071else
23072  echo "$as_me: failed program was:" >&5
23073sed 's/^/| /' conftest.$ac_ext >&5
23074
23075ac_lo=`expr '(' $ac_mid ')' + 1`
23076fi
23077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23078done
23079case $ac_lo in
23080?*) ac_cv_sizeof_int=$ac_lo;;
23081'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
23082See \`config.log' for more details." >&5
23083echo "$as_me: error: cannot compute sizeof (int), 77
23084See \`config.log' for more details." >&2;}
23085   { (exit 1); exit 1; }; } ;;
23086esac
23087else
23088  if test "$cross_compiling" = yes; then
23089  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
23090echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
23091   { (exit 1); exit 1; }; }
23092else
23093  cat >conftest.$ac_ext <<_ACEOF
23094/* confdefs.h.  */
23095_ACEOF
23096cat confdefs.h >>conftest.$ac_ext
23097cat >>conftest.$ac_ext <<_ACEOF
23098/* end confdefs.h.  */
23099$ac_includes_default
23100long longval () { return (long) (sizeof (int)); }
23101unsigned long ulongval () { return (long) (sizeof (int)); }
23102#include <stdio.h>
23103#include <stdlib.h>
23104int
23105main ()
23106{
23107
23108  FILE *f = fopen ("conftest.val", "w");
23109  if (! f)
23110    exit (1);
23111  if (((long) (sizeof (int))) < 0)
23112    {
23113      long i = longval ();
23114      if (i != ((long) (sizeof (int))))
23115	exit (1);
23116      fprintf (f, "%ld\n", i);
23117    }
23118  else
23119    {
23120      unsigned long i = ulongval ();
23121      if (i != ((long) (sizeof (int))))
23122	exit (1);
23123      fprintf (f, "%lu\n", i);
23124    }
23125  exit (ferror (f) || fclose (f) != 0);
23126
23127  ;
23128  return 0;
23129}
23130_ACEOF
23131rm -f conftest$ac_exeext
23132if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23133  (eval $ac_link) 2>&5
23134  ac_status=$?
23135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23136  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23137  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23138  (eval $ac_try) 2>&5
23139  ac_status=$?
23140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23141  (exit $ac_status); }; }; then
23142  ac_cv_sizeof_int=`cat conftest.val`
23143else
23144  echo "$as_me: program exited with status $ac_status" >&5
23145echo "$as_me: failed program was:" >&5
23146sed 's/^/| /' conftest.$ac_ext >&5
23147
23148( exit $ac_status )
23149{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
23150See \`config.log' for more details." >&5
23151echo "$as_me: error: cannot compute sizeof (int), 77
23152See \`config.log' for more details." >&2;}
23153   { (exit 1); exit 1; }; }
23154fi
23155rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23156fi
23157fi
23158rm -f conftest.val
23159else
23160  ac_cv_sizeof_int=0
23161fi
23162fi
23163echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
23164echo "${ECHO_T}$ac_cv_sizeof_int" >&6
23165cat >>confdefs.h <<_ACEOF
23166#define SIZEOF_INT $ac_cv_sizeof_int
23167_ACEOF
23168
23169
23170echo "$as_me:$LINENO: checking for long" >&5
23171echo $ECHO_N "checking for long... $ECHO_C" >&6
23172if test "${ac_cv_type_long+set}" = set; then
23173  echo $ECHO_N "(cached) $ECHO_C" >&6
23174else
23175  cat >conftest.$ac_ext <<_ACEOF
23176/* confdefs.h.  */
23177_ACEOF
23178cat confdefs.h >>conftest.$ac_ext
23179cat >>conftest.$ac_ext <<_ACEOF
23180/* end confdefs.h.  */
23181$ac_includes_default
23182int
23183main ()
23184{
23185if ((long *) 0)
23186  return 0;
23187if (sizeof (long))
23188  return 0;
23189  ;
23190  return 0;
23191}
23192_ACEOF
23193rm -f conftest.$ac_objext
23194if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23195  (eval $ac_compile) 2>conftest.er1
23196  ac_status=$?
23197  grep -v '^ *+' conftest.er1 >conftest.err
23198  rm -f conftest.er1
23199  cat conftest.err >&5
23200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23201  (exit $ac_status); } &&
23202	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
23203  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23204  (eval $ac_try) 2>&5
23205  ac_status=$?
23206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23207  (exit $ac_status); }; } &&
23208	 { ac_try='test -s conftest.$ac_objext'
23209  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23210  (eval $ac_try) 2>&5
23211  ac_status=$?
23212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23213  (exit $ac_status); }; }; then
23214  ac_cv_type_long=yes
23215else
23216  echo "$as_me: failed program was:" >&5
23217sed 's/^/| /' conftest.$ac_ext >&5
23218
23219ac_cv_type_long=no
23220fi
23221rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23222fi
23223echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
23224echo "${ECHO_T}$ac_cv_type_long" >&6
23225
23226echo "$as_me:$LINENO: checking size of long" >&5
23227echo $ECHO_N "checking size of long... $ECHO_C" >&6
23228if test "${ac_cv_sizeof_long+set}" = set; then
23229  echo $ECHO_N "(cached) $ECHO_C" >&6
23230else
23231  if test "$ac_cv_type_long" = yes; then
23232  # The cast to unsigned long works around a bug in the HP C Compiler
23233  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23234  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23235  # This bug is HP SR number 8606223364.
23236  if test "$cross_compiling" = yes; then
23237  # Depending upon the size, compute the lo and hi bounds.
23238cat >conftest.$ac_ext <<_ACEOF
23239/* confdefs.h.  */
23240_ACEOF
23241cat confdefs.h >>conftest.$ac_ext
23242cat >>conftest.$ac_ext <<_ACEOF
23243/* end confdefs.h.  */
23244$ac_includes_default
23245int
23246main ()
23247{
23248static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
23249test_array [0] = 0
23250
23251  ;
23252  return 0;
23253}
23254_ACEOF
23255rm -f conftest.$ac_objext
23256if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23257  (eval $ac_compile) 2>conftest.er1
23258  ac_status=$?
23259  grep -v '^ *+' conftest.er1 >conftest.err
23260  rm -f conftest.er1
23261  cat conftest.err >&5
23262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23263  (exit $ac_status); } &&
23264	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
23265  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23266  (eval $ac_try) 2>&5
23267  ac_status=$?
23268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23269  (exit $ac_status); }; } &&
23270	 { ac_try='test -s conftest.$ac_objext'
23271  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23272  (eval $ac_try) 2>&5
23273  ac_status=$?
23274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23275  (exit $ac_status); }; }; then
23276  ac_lo=0 ac_mid=0
23277  while :; do
23278    cat >conftest.$ac_ext <<_ACEOF
23279/* confdefs.h.  */
23280_ACEOF
23281cat confdefs.h >>conftest.$ac_ext
23282cat >>conftest.$ac_ext <<_ACEOF
23283/* end confdefs.h.  */
23284$ac_includes_default
23285int
23286main ()
23287{
23288static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
23289test_array [0] = 0
23290
23291  ;
23292  return 0;
23293}
23294_ACEOF
23295rm -f conftest.$ac_objext
23296if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23297  (eval $ac_compile) 2>conftest.er1
23298  ac_status=$?
23299  grep -v '^ *+' conftest.er1 >conftest.err
23300  rm -f conftest.er1
23301  cat conftest.err >&5
23302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23303  (exit $ac_status); } &&
23304	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
23305  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23306  (eval $ac_try) 2>&5
23307  ac_status=$?
23308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23309  (exit $ac_status); }; } &&
23310	 { ac_try='test -s conftest.$ac_objext'
23311  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23312  (eval $ac_try) 2>&5
23313  ac_status=$?
23314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23315  (exit $ac_status); }; }; then
23316  ac_hi=$ac_mid; break
23317else
23318  echo "$as_me: failed program was:" >&5
23319sed 's/^/| /' conftest.$ac_ext >&5
23320
23321ac_lo=`expr $ac_mid + 1`
23322		    if test $ac_lo -le $ac_mid; then
23323		      ac_lo= ac_hi=
23324		      break
23325		    fi
23326		    ac_mid=`expr 2 '*' $ac_mid + 1`
23327fi
23328rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23329  done
23330else
23331  echo "$as_me: failed program was:" >&5
23332sed 's/^/| /' conftest.$ac_ext >&5
23333
23334cat >conftest.$ac_ext <<_ACEOF
23335/* confdefs.h.  */
23336_ACEOF
23337cat confdefs.h >>conftest.$ac_ext
23338cat >>conftest.$ac_ext <<_ACEOF
23339/* end confdefs.h.  */
23340$ac_includes_default
23341int
23342main ()
23343{
23344static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
23345test_array [0] = 0
23346
23347  ;
23348  return 0;
23349}
23350_ACEOF
23351rm -f conftest.$ac_objext
23352if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23353  (eval $ac_compile) 2>conftest.er1
23354  ac_status=$?
23355  grep -v '^ *+' conftest.er1 >conftest.err
23356  rm -f conftest.er1
23357  cat conftest.err >&5
23358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23359  (exit $ac_status); } &&
23360	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
23361  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23362  (eval $ac_try) 2>&5
23363  ac_status=$?
23364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23365  (exit $ac_status); }; } &&
23366	 { ac_try='test -s conftest.$ac_objext'
23367  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23368  (eval $ac_try) 2>&5
23369  ac_status=$?
23370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23371  (exit $ac_status); }; }; then
23372  ac_hi=-1 ac_mid=-1
23373  while :; do
23374    cat >conftest.$ac_ext <<_ACEOF
23375/* confdefs.h.  */
23376_ACEOF
23377cat confdefs.h >>conftest.$ac_ext
23378cat >>conftest.$ac_ext <<_ACEOF
23379/* end confdefs.h.  */
23380$ac_includes_default
23381int
23382main ()
23383{
23384static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
23385test_array [0] = 0
23386
23387  ;
23388  return 0;
23389}
23390_ACEOF
23391rm -f conftest.$ac_objext
23392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23393  (eval $ac_compile) 2>conftest.er1
23394  ac_status=$?
23395  grep -v '^ *+' conftest.er1 >conftest.err
23396  rm -f conftest.er1
23397  cat conftest.err >&5
23398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23399  (exit $ac_status); } &&
23400	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
23401  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23402  (eval $ac_try) 2>&5
23403  ac_status=$?
23404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23405  (exit $ac_status); }; } &&
23406	 { ac_try='test -s conftest.$ac_objext'
23407  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23408  (eval $ac_try) 2>&5
23409  ac_status=$?
23410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23411  (exit $ac_status); }; }; then
23412  ac_lo=$ac_mid; break
23413else
23414  echo "$as_me: failed program was:" >&5
23415sed 's/^/| /' conftest.$ac_ext >&5
23416
23417ac_hi=`expr '(' $ac_mid ')' - 1`
23418		       if test $ac_mid -le $ac_hi; then
23419			 ac_lo= ac_hi=
23420			 break
23421		       fi
23422		       ac_mid=`expr 2 '*' $ac_mid`
23423fi
23424rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23425  done
23426else
23427  echo "$as_me: failed program was:" >&5
23428sed 's/^/| /' conftest.$ac_ext >&5
23429
23430ac_lo= ac_hi=
23431fi
23432rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23433fi
23434rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23435# Binary search between lo and hi bounds.
23436while test "x$ac_lo" != "x$ac_hi"; do
23437  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23438  cat >conftest.$ac_ext <<_ACEOF
23439/* confdefs.h.  */
23440_ACEOF
23441cat confdefs.h >>conftest.$ac_ext
23442cat >>conftest.$ac_ext <<_ACEOF
23443/* end confdefs.h.  */
23444$ac_includes_default
23445int
23446main ()
23447{
23448static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
23449test_array [0] = 0
23450
23451  ;
23452  return 0;
23453}
23454_ACEOF
23455rm -f conftest.$ac_objext
23456if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23457  (eval $ac_compile) 2>conftest.er1
23458  ac_status=$?
23459  grep -v '^ *+' conftest.er1 >conftest.err
23460  rm -f conftest.er1
23461  cat conftest.err >&5
23462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23463  (exit $ac_status); } &&
23464	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
23465  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23466  (eval $ac_try) 2>&5
23467  ac_status=$?
23468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23469  (exit $ac_status); }; } &&
23470	 { ac_try='test -s conftest.$ac_objext'
23471  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23472  (eval $ac_try) 2>&5
23473  ac_status=$?
23474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23475  (exit $ac_status); }; }; then
23476  ac_hi=$ac_mid
23477else
23478  echo "$as_me: failed program was:" >&5
23479sed 's/^/| /' conftest.$ac_ext >&5
23480
23481ac_lo=`expr '(' $ac_mid ')' + 1`
23482fi
23483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23484done
23485case $ac_lo in
23486?*) ac_cv_sizeof_long=$ac_lo;;
23487'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
23488See \`config.log' for more details." >&5
23489echo "$as_me: error: cannot compute sizeof (long), 77
23490See \`config.log' for more details." >&2;}
23491   { (exit 1); exit 1; }; } ;;
23492esac
23493else
23494  if test "$cross_compiling" = yes; then
23495  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
23496echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
23497   { (exit 1); exit 1; }; }
23498else
23499  cat >conftest.$ac_ext <<_ACEOF
23500/* confdefs.h.  */
23501_ACEOF
23502cat confdefs.h >>conftest.$ac_ext
23503cat >>conftest.$ac_ext <<_ACEOF
23504/* end confdefs.h.  */
23505$ac_includes_default
23506long longval () { return (long) (sizeof (long)); }
23507unsigned long ulongval () { return (long) (sizeof (long)); }
23508#include <stdio.h>
23509#include <stdlib.h>
23510int
23511main ()
23512{
23513
23514  FILE *f = fopen ("conftest.val", "w");
23515  if (! f)
23516    exit (1);
23517  if (((long) (sizeof (long))) < 0)
23518    {
23519      long i = longval ();
23520      if (i != ((long) (sizeof (long))))
23521	exit (1);
23522      fprintf (f, "%ld\n", i);
23523    }
23524  else
23525    {
23526      unsigned long i = ulongval ();
23527      if (i != ((long) (sizeof (long))))
23528	exit (1);
23529      fprintf (f, "%lu\n", i);
23530    }
23531  exit (ferror (f) || fclose (f) != 0);
23532
23533  ;
23534  return 0;
23535}
23536_ACEOF
23537rm -f conftest$ac_exeext
23538if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23539  (eval $ac_link) 2>&5
23540  ac_status=$?
23541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23542  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23543  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23544  (eval $ac_try) 2>&5
23545  ac_status=$?
23546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23547  (exit $ac_status); }; }; then
23548  ac_cv_sizeof_long=`cat conftest.val`
23549else
23550  echo "$as_me: program exited with status $ac_status" >&5
23551echo "$as_me: failed program was:" >&5
23552sed 's/^/| /' conftest.$ac_ext >&5
23553
23554( exit $ac_status )
23555{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
23556See \`config.log' for more details." >&5
23557echo "$as_me: error: cannot compute sizeof (long), 77
23558See \`config.log' for more details." >&2;}
23559   { (exit 1); exit 1; }; }
23560fi
23561rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23562fi
23563fi
23564rm -f conftest.val
23565else
23566  ac_cv_sizeof_long=0
23567fi
23568fi
23569echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
23570echo "${ECHO_T}$ac_cv_sizeof_long" >&6
23571cat >>confdefs.h <<_ACEOF
23572#define SIZEOF_LONG $ac_cv_sizeof_long
23573_ACEOF
23574
23575
23576if test -n "$ac_tool_prefix"; then
23577  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
23578set dummy ${ac_tool_prefix}ranlib; ac_word=$2
23579echo "$as_me:$LINENO: checking for $ac_word" >&5
23580echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23581if test "${ac_cv_prog_RANLIB+set}" = set; then
23582  echo $ECHO_N "(cached) $ECHO_C" >&6
23583else
23584  if test -n "$RANLIB"; then
23585  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
23586else
23587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23588for as_dir in $PATH
23589do
23590  IFS=$as_save_IFS
23591  test -z "$as_dir" && as_dir=.
23592  for ac_exec_ext in '' $ac_executable_extensions; do
23593  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23594    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
23595    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23596    break 2
23597  fi
23598done
23599done
23600
23601fi
23602fi
23603RANLIB=$ac_cv_prog_RANLIB
23604if test -n "$RANLIB"; then
23605  echo "$as_me:$LINENO: result: $RANLIB" >&5
23606echo "${ECHO_T}$RANLIB" >&6
23607else
23608  echo "$as_me:$LINENO: result: no" >&5
23609echo "${ECHO_T}no" >&6
23610fi
23611
23612fi
23613if test -z "$ac_cv_prog_RANLIB"; then
23614  ac_ct_RANLIB=$RANLIB
23615  # Extract the first word of "ranlib", so it can be a program name with args.
23616set dummy ranlib; ac_word=$2
23617echo "$as_me:$LINENO: checking for $ac_word" >&5
23618echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23619if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
23620  echo $ECHO_N "(cached) $ECHO_C" >&6
23621else
23622  if test -n "$ac_ct_RANLIB"; then
23623  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
23624else
23625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23626for as_dir in $PATH
23627do
23628  IFS=$as_save_IFS
23629  test -z "$as_dir" && as_dir=.
23630  for ac_exec_ext in '' $ac_executable_extensions; do
23631  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23632    ac_cv_prog_ac_ct_RANLIB="ranlib"
23633    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23634    break 2
23635  fi
23636done
23637done
23638
23639  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
23640fi
23641fi
23642ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
23643if test -n "$ac_ct_RANLIB"; then
23644  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
23645echo "${ECHO_T}$ac_ct_RANLIB" >&6
23646else
23647  echo "$as_me:$LINENO: result: no" >&5
23648echo "${ECHO_T}no" >&6
23649fi
23650
23651  RANLIB=$ac_ct_RANLIB
23652else
23653  RANLIB="$ac_cv_prog_RANLIB"
23654fi
23655
23656
23657
23658
23659
23660for ac_func in gettimeofday mkdir popen
23661do
23662as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23663echo "$as_me:$LINENO: checking for $ac_func" >&5
23664echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23665if eval "test \"\${$as_ac_var+set}\" = set"; then
23666  echo $ECHO_N "(cached) $ECHO_C" >&6
23667else
23668  cat >conftest.$ac_ext <<_ACEOF
23669/* confdefs.h.  */
23670_ACEOF
23671cat confdefs.h >>conftest.$ac_ext
23672cat >>conftest.$ac_ext <<_ACEOF
23673/* end confdefs.h.  */
23674/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23675   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23676#define $ac_func innocuous_$ac_func
23677
23678/* System header to define __stub macros and hopefully few prototypes,
23679    which can conflict with char $ac_func (); below.
23680    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23681    <limits.h> exists even on freestanding compilers.  */
23682
23683#ifdef __STDC__
23684# include <limits.h>
23685#else
23686# include <assert.h>
23687#endif
23688
23689#undef $ac_func
23690
23691/* Override any gcc2 internal prototype to avoid an error.  */
23692#ifdef __cplusplus
23693extern "C"
23694{
23695#endif
23696/* We use char because int might match the return type of a gcc2
23697   builtin and then its argument prototype would still apply.  */
23698char $ac_func ();
23699/* The GNU C library defines this for functions which it implements
23700    to always fail with ENOSYS.  Some functions are actually named
23701    something starting with __ and the normal name is an alias.  */
23702#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23703choke me
23704#else
23705char (*f) () = $ac_func;
23706#endif
23707#ifdef __cplusplus
23708}
23709#endif
23710
23711int
23712main ()
23713{
23714return f != $ac_func;
23715  ;
23716  return 0;
23717}
23718_ACEOF
23719rm -f conftest.$ac_objext conftest$ac_exeext
23720if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23721  (eval $ac_link) 2>conftest.er1
23722  ac_status=$?
23723  grep -v '^ *+' conftest.er1 >conftest.err
23724  rm -f conftest.er1
23725  cat conftest.err >&5
23726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23727  (exit $ac_status); } &&
23728	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
23729  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23730  (eval $ac_try) 2>&5
23731  ac_status=$?
23732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23733  (exit $ac_status); }; } &&
23734	 { ac_try='test -s conftest$ac_exeext'
23735  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23736  (eval $ac_try) 2>&5
23737  ac_status=$?
23738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23739  (exit $ac_status); }; }; then
23740  eval "$as_ac_var=yes"
23741else
23742  echo "$as_me: failed program was:" >&5
23743sed 's/^/| /' conftest.$ac_ext >&5
23744
23745eval "$as_ac_var=no"
23746fi
23747rm -f conftest.err conftest.$ac_objext \
23748      conftest$ac_exeext conftest.$ac_ext
23749fi
23750echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23751echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23752if test `eval echo '${'$as_ac_var'}'` = yes; then
23753  cat >>confdefs.h <<_ACEOF
23754#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23755_ACEOF
23756
23757fi
23758done
23759
23760
23761
23762LCLIBS=""
23763PROGS=""
23764
23765
23766if eval "test x$with_x = xyes"; then
23767  LCLIBS="$LCLIBS LCX_LIBS"
23768else
23769  if eval "test x$with_x = x"; then
23770    echo "$as_me:$LINENO: checking for XOpenDisplay in -lX11" >&5
23771echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
23772if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
23773  echo $ECHO_N "(cached) $ECHO_C" >&6
23774else
23775  ac_check_lib_save_LIBS=$LIBS
23776LIBS="-lX11  $LIBS"
23777cat >conftest.$ac_ext <<_ACEOF
23778/* confdefs.h.  */
23779_ACEOF
23780cat confdefs.h >>conftest.$ac_ext
23781cat >>conftest.$ac_ext <<_ACEOF
23782/* end confdefs.h.  */
23783
23784/* Override any gcc2 internal prototype to avoid an error.  */
23785#ifdef __cplusplus
23786extern "C"
23787#endif
23788/* We use char because int might match the return type of a gcc2
23789   builtin and then its argument prototype would still apply.  */
23790char XOpenDisplay ();
23791int
23792main ()
23793{
23794XOpenDisplay ();
23795  ;
23796  return 0;
23797}
23798_ACEOF
23799rm -f conftest.$ac_objext conftest$ac_exeext
23800if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23801  (eval $ac_link) 2>conftest.er1
23802  ac_status=$?
23803  grep -v '^ *+' conftest.er1 >conftest.err
23804  rm -f conftest.er1
23805  cat conftest.err >&5
23806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23807  (exit $ac_status); } &&
23808	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
23809  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23810  (eval $ac_try) 2>&5
23811  ac_status=$?
23812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23813  (exit $ac_status); }; } &&
23814	 { ac_try='test -s conftest$ac_exeext'
23815  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23816  (eval $ac_try) 2>&5
23817  ac_status=$?
23818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23819  (exit $ac_status); }; }; then
23820  ac_cv_lib_X11_XOpenDisplay=yes
23821else
23822  echo "$as_me: failed program was:" >&5
23823sed 's/^/| /' conftest.$ac_ext >&5
23824
23825ac_cv_lib_X11_XOpenDisplay=no
23826fi
23827rm -f conftest.err conftest.$ac_objext \
23828      conftest$ac_exeext conftest.$ac_ext
23829LIBS=$ac_check_lib_save_LIBS
23830fi
23831echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XOpenDisplay" >&5
23832echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
23833if test $ac_cv_lib_X11_XOpenDisplay = yes; then
23834  LCLIBS="$LCLIBS LCX_LIBS";
23835				   PROGS="$PROGS X_PROGS"
23836fi
23837
23838  fi
23839fi
23840if eval "test x$with_svga = xyes"; then
23841  LCLIBS="$LCLIBS LCSVGA_LIBS"
23842else
23843  if eval "test x$with_svga = x"; then
23844    echo "$as_me:$LINENO: checking for gl_putbox in -lvgagl" >&5
23845echo $ECHO_N "checking for gl_putbox in -lvgagl... $ECHO_C" >&6
23846if test "${ac_cv_lib_vgagl_gl_putbox+set}" = set; then
23847  echo $ECHO_N "(cached) $ECHO_C" >&6
23848else
23849  ac_check_lib_save_LIBS=$LIBS
23850LIBS="-lvgagl -lvga $LIBS"
23851cat >conftest.$ac_ext <<_ACEOF
23852/* confdefs.h.  */
23853_ACEOF
23854cat confdefs.h >>conftest.$ac_ext
23855cat >>conftest.$ac_ext <<_ACEOF
23856/* end confdefs.h.  */
23857
23858/* Override any gcc2 internal prototype to avoid an error.  */
23859#ifdef __cplusplus
23860extern "C"
23861#endif
23862/* We use char because int might match the return type of a gcc2
23863   builtin and then its argument prototype would still apply.  */
23864char gl_putbox ();
23865int
23866main ()
23867{
23868gl_putbox ();
23869  ;
23870  return 0;
23871}
23872_ACEOF
23873rm -f conftest.$ac_objext conftest$ac_exeext
23874if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23875  (eval $ac_link) 2>conftest.er1
23876  ac_status=$?
23877  grep -v '^ *+' conftest.er1 >conftest.err
23878  rm -f conftest.er1
23879  cat conftest.err >&5
23880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23881  (exit $ac_status); } &&
23882	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
23883  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23884  (eval $ac_try) 2>&5
23885  ac_status=$?
23886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23887  (exit $ac_status); }; } &&
23888	 { ac_try='test -s conftest$ac_exeext'
23889  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23890  (eval $ac_try) 2>&5
23891  ac_status=$?
23892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23893  (exit $ac_status); }; }; then
23894  ac_cv_lib_vgagl_gl_putbox=yes
23895else
23896  echo "$as_me: failed program was:" >&5
23897sed 's/^/| /' conftest.$ac_ext >&5
23898
23899ac_cv_lib_vgagl_gl_putbox=no
23900fi
23901rm -f conftest.err conftest.$ac_objext \
23902      conftest$ac_exeext conftest.$ac_ext
23903LIBS=$ac_check_lib_save_LIBS
23904fi
23905echo "$as_me:$LINENO: result: $ac_cv_lib_vgagl_gl_putbox" >&5
23906echo "${ECHO_T}$ac_cv_lib_vgagl_gl_putbox" >&6
23907if test $ac_cv_lib_vgagl_gl_putbox = yes; then
23908
23909for ac_header in vga.h
23910do
23911as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23912if eval "test \"\${$as_ac_Header+set}\" = set"; then
23913  echo "$as_me:$LINENO: checking for $ac_header" >&5
23914echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23915if eval "test \"\${$as_ac_Header+set}\" = set"; then
23916  echo $ECHO_N "(cached) $ECHO_C" >&6
23917fi
23918echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23919echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23920else
23921  # Is the header compilable?
23922echo "$as_me:$LINENO: checking $ac_header usability" >&5
23923echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23924cat >conftest.$ac_ext <<_ACEOF
23925/* confdefs.h.  */
23926_ACEOF
23927cat confdefs.h >>conftest.$ac_ext
23928cat >>conftest.$ac_ext <<_ACEOF
23929/* end confdefs.h.  */
23930$ac_includes_default
23931#include <$ac_header>
23932_ACEOF
23933rm -f conftest.$ac_objext
23934if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23935  (eval $ac_compile) 2>conftest.er1
23936  ac_status=$?
23937  grep -v '^ *+' conftest.er1 >conftest.err
23938  rm -f conftest.er1
23939  cat conftest.err >&5
23940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23941  (exit $ac_status); } &&
23942	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
23943  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23944  (eval $ac_try) 2>&5
23945  ac_status=$?
23946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23947  (exit $ac_status); }; } &&
23948	 { ac_try='test -s conftest.$ac_objext'
23949  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23950  (eval $ac_try) 2>&5
23951  ac_status=$?
23952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23953  (exit $ac_status); }; }; then
23954  ac_header_compiler=yes
23955else
23956  echo "$as_me: failed program was:" >&5
23957sed 's/^/| /' conftest.$ac_ext >&5
23958
23959ac_header_compiler=no
23960fi
23961rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23962echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23963echo "${ECHO_T}$ac_header_compiler" >&6
23964
23965# Is the header present?
23966echo "$as_me:$LINENO: checking $ac_header presence" >&5
23967echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23968cat >conftest.$ac_ext <<_ACEOF
23969/* confdefs.h.  */
23970_ACEOF
23971cat confdefs.h >>conftest.$ac_ext
23972cat >>conftest.$ac_ext <<_ACEOF
23973/* end confdefs.h.  */
23974#include <$ac_header>
23975_ACEOF
23976if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23977  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23978  ac_status=$?
23979  grep -v '^ *+' conftest.er1 >conftest.err
23980  rm -f conftest.er1
23981  cat conftest.err >&5
23982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23983  (exit $ac_status); } >/dev/null; then
23984  if test -s conftest.err; then
23985    ac_cpp_err=$ac_c_preproc_warn_flag
23986    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23987  else
23988    ac_cpp_err=
23989  fi
23990else
23991  ac_cpp_err=yes
23992fi
23993if test -z "$ac_cpp_err"; then
23994  ac_header_preproc=yes
23995else
23996  echo "$as_me: failed program was:" >&5
23997sed 's/^/| /' conftest.$ac_ext >&5
23998
23999  ac_header_preproc=no
24000fi
24001rm -f conftest.err conftest.$ac_ext
24002echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24003echo "${ECHO_T}$ac_header_preproc" >&6
24004
24005# So?  What about this header?
24006case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24007  yes:no: )
24008    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24009echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24010    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24011echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24012    ac_header_preproc=yes
24013    ;;
24014  no:yes:* )
24015    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24016echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24017    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24018echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24019    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24020echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24021    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24022echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24023    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24024echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24025    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24026echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24027    (
24028      cat <<\_ASBOX
24029## -------------------------------------------------- ##
24030## Report this to lincity-users@lists.sourceforge.net ##
24031## -------------------------------------------------- ##
24032_ASBOX
24033    ) |
24034      sed "s/^/$as_me: WARNING:     /" >&2
24035    ;;
24036esac
24037echo "$as_me:$LINENO: checking for $ac_header" >&5
24038echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24039if eval "test \"\${$as_ac_Header+set}\" = set"; then
24040  echo $ECHO_N "(cached) $ECHO_C" >&6
24041else
24042  eval "$as_ac_Header=\$ac_header_preproc"
24043fi
24044echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24045echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24046
24047fi
24048if test `eval echo '${'$as_ac_Header'}'` = yes; then
24049  cat >>confdefs.h <<_ACEOF
24050#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24051_ACEOF
24052 LCLIBS="$LCLIBS LCSVGA_LIBS";
24053				 PROGS="$PROGS SVGA_PROGS"
24054fi
24055
24056done
24057
24058fi
24059
24060  fi
24061fi
24062if test -z "$LCLIBS"; then
24063  { { echo "$as_me:$LINENO: error: \"Found neither SVGA nor X on your system.\"" >&5
24064echo "$as_me: error: \"Found neither SVGA nor X on your system.\"" >&2;}
24065   { (exit 1); exit 1; }; }
24066fi
24067
24068
24069
24070        MKINSTALLDIRS=
24071  if test -n "$ac_aux_dir"; then
24072    MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
24073  fi
24074  if test -z "$MKINSTALLDIRS"; then
24075    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
24076  fi
24077
24078
24079
24080
24081
24082        # Extract the first word of "msgfmt", so it can be a program name with args.
24083set dummy msgfmt; ac_word=$2
24084echo "$as_me:$LINENO: checking for $ac_word" >&5
24085echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24086if test "${ac_cv_path_MSGFMT+set}" = set; then
24087  echo $ECHO_N "(cached) $ECHO_C" >&6
24088else
24089  case "$MSGFMT" in
24090  /*)
24091  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
24092  ;;
24093  *)
24094  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
24095  for ac_dir in $PATH; do
24096    test -z "$ac_dir" && ac_dir=.
24097    if test -f $ac_dir/$ac_word; then
24098      if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
24099     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
24100	ac_cv_path_MSGFMT="$ac_dir/$ac_word"
24101	break
24102      fi
24103    fi
24104  done
24105  IFS="$ac_save_ifs"
24106  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
24107  ;;
24108esac
24109fi
24110MSGFMT="$ac_cv_path_MSGFMT"
24111if test "$MSGFMT" != ":"; then
24112  echo "$as_me:$LINENO: result: $MSGFMT" >&5
24113echo "${ECHO_T}$MSGFMT" >&6
24114else
24115  echo "$as_me:$LINENO: result: no" >&5
24116echo "${ECHO_T}no" >&6
24117fi
24118
24119  # Extract the first word of "gmsgfmt", so it can be a program name with args.
24120set dummy gmsgfmt; ac_word=$2
24121echo "$as_me:$LINENO: checking for $ac_word" >&5
24122echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24123if test "${ac_cv_path_GMSGFMT+set}" = set; then
24124  echo $ECHO_N "(cached) $ECHO_C" >&6
24125else
24126  case $GMSGFMT in
24127  [\\/]* | ?:[\\/]*)
24128  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
24129  ;;
24130  *)
24131  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24132for as_dir in $PATH
24133do
24134  IFS=$as_save_IFS
24135  test -z "$as_dir" && as_dir=.
24136  for ac_exec_ext in '' $ac_executable_extensions; do
24137  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24138    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
24139    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24140    break 2
24141  fi
24142done
24143done
24144
24145  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
24146  ;;
24147esac
24148fi
24149GMSGFMT=$ac_cv_path_GMSGFMT
24150
24151if test -n "$GMSGFMT"; then
24152  echo "$as_me:$LINENO: result: $GMSGFMT" >&5
24153echo "${ECHO_T}$GMSGFMT" >&6
24154else
24155  echo "$as_me:$LINENO: result: no" >&5
24156echo "${ECHO_T}no" >&6
24157fi
24158
24159
24160        # Extract the first word of "xgettext", so it can be a program name with args.
24161set dummy xgettext; ac_word=$2
24162echo "$as_me:$LINENO: checking for $ac_word" >&5
24163echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24164if test "${ac_cv_path_XGETTEXT+set}" = set; then
24165  echo $ECHO_N "(cached) $ECHO_C" >&6
24166else
24167  case "$XGETTEXT" in
24168  /*)
24169  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
24170  ;;
24171  *)
24172  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
24173  for ac_dir in $PATH; do
24174    test -z "$ac_dir" && ac_dir=.
24175    if test -f $ac_dir/$ac_word; then
24176      if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
24177     (if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
24178	ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
24179	break
24180      fi
24181    fi
24182  done
24183  IFS="$ac_save_ifs"
24184  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
24185  ;;
24186esac
24187fi
24188XGETTEXT="$ac_cv_path_XGETTEXT"
24189if test "$XGETTEXT" != ":"; then
24190  echo "$as_me:$LINENO: result: $XGETTEXT" >&5
24191echo "${ECHO_T}$XGETTEXT" >&6
24192else
24193  echo "$as_me:$LINENO: result: no" >&5
24194echo "${ECHO_T}no" >&6
24195fi
24196
24197    rm -f messages.po
24198
24199    # Extract the first word of "msgmerge", so it can be a program name with args.
24200set dummy msgmerge; ac_word=$2
24201echo "$as_me:$LINENO: checking for $ac_word" >&5
24202echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24203if test "${ac_cv_path_MSGMERGE+set}" = set; then
24204  echo $ECHO_N "(cached) $ECHO_C" >&6
24205else
24206  case "$MSGMERGE" in
24207  /*)
24208  ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
24209  ;;
24210  *)
24211  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
24212  for ac_dir in $PATH; do
24213    test -z "$ac_dir" && ac_dir=.
24214    if test -f $ac_dir/$ac_word; then
24215      if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
24216	ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
24217	break
24218      fi
24219    fi
24220  done
24221  IFS="$ac_save_ifs"
24222  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
24223  ;;
24224esac
24225fi
24226MSGMERGE="$ac_cv_path_MSGMERGE"
24227if test "$MSGMERGE" != ":"; then
24228  echo "$as_me:$LINENO: result: $MSGMERGE" >&5
24229echo "${ECHO_T}$MSGMERGE" >&6
24230else
24231  echo "$as_me:$LINENO: result: no" >&5
24232echo "${ECHO_T}no" >&6
24233fi
24234
24235
24236      if test "$GMSGFMT" != ":"; then
24237            if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
24238       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
24239      : ;
24240    else
24241      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
24242      echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
24243echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
24244      GMSGFMT=":"
24245    fi
24246  fi
24247
24248      if test "$XGETTEXT" != ":"; then
24249            if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
24250       (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
24251      : ;
24252    else
24253      echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
24254echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
24255      XGETTEXT=":"
24256    fi
24257        rm -f messages.po
24258  fi
24259
24260            ac_config_commands="$ac_config_commands default-1"
24261
24262
24263echo "$as_me:$LINENO: checking for off_t" >&5
24264echo $ECHO_N "checking for off_t... $ECHO_C" >&6
24265if test "${ac_cv_type_off_t+set}" = set; then
24266  echo $ECHO_N "(cached) $ECHO_C" >&6
24267else
24268  cat >conftest.$ac_ext <<_ACEOF
24269/* confdefs.h.  */
24270_ACEOF
24271cat confdefs.h >>conftest.$ac_ext
24272cat >>conftest.$ac_ext <<_ACEOF
24273/* end confdefs.h.  */
24274$ac_includes_default
24275int
24276main ()
24277{
24278if ((off_t *) 0)
24279  return 0;
24280if (sizeof (off_t))
24281  return 0;
24282  ;
24283  return 0;
24284}
24285_ACEOF
24286rm -f conftest.$ac_objext
24287if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24288  (eval $ac_compile) 2>conftest.er1
24289  ac_status=$?
24290  grep -v '^ *+' conftest.er1 >conftest.err
24291  rm -f conftest.er1
24292  cat conftest.err >&5
24293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24294  (exit $ac_status); } &&
24295	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
24296  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24297  (eval $ac_try) 2>&5
24298  ac_status=$?
24299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24300  (exit $ac_status); }; } &&
24301	 { ac_try='test -s conftest.$ac_objext'
24302  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24303  (eval $ac_try) 2>&5
24304  ac_status=$?
24305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24306  (exit $ac_status); }; }; then
24307  ac_cv_type_off_t=yes
24308else
24309  echo "$as_me: failed program was:" >&5
24310sed 's/^/| /' conftest.$ac_ext >&5
24311
24312ac_cv_type_off_t=no
24313fi
24314rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24315fi
24316echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
24317echo "${ECHO_T}$ac_cv_type_off_t" >&6
24318if test $ac_cv_type_off_t = yes; then
24319  :
24320else
24321
24322cat >>confdefs.h <<_ACEOF
24323#define off_t long
24324_ACEOF
24325
24326fi
24327
24328echo "$as_me:$LINENO: checking for size_t" >&5
24329echo $ECHO_N "checking for size_t... $ECHO_C" >&6
24330if test "${ac_cv_type_size_t+set}" = set; then
24331  echo $ECHO_N "(cached) $ECHO_C" >&6
24332else
24333  cat >conftest.$ac_ext <<_ACEOF
24334/* confdefs.h.  */
24335_ACEOF
24336cat confdefs.h >>conftest.$ac_ext
24337cat >>conftest.$ac_ext <<_ACEOF
24338/* end confdefs.h.  */
24339$ac_includes_default
24340int
24341main ()
24342{
24343if ((size_t *) 0)
24344  return 0;
24345if (sizeof (size_t))
24346  return 0;
24347  ;
24348  return 0;
24349}
24350_ACEOF
24351rm -f conftest.$ac_objext
24352if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24353  (eval $ac_compile) 2>conftest.er1
24354  ac_status=$?
24355  grep -v '^ *+' conftest.er1 >conftest.err
24356  rm -f conftest.er1
24357  cat conftest.err >&5
24358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24359  (exit $ac_status); } &&
24360	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
24361  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24362  (eval $ac_try) 2>&5
24363  ac_status=$?
24364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24365  (exit $ac_status); }; } &&
24366	 { ac_try='test -s conftest.$ac_objext'
24367  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24368  (eval $ac_try) 2>&5
24369  ac_status=$?
24370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24371  (exit $ac_status); }; }; then
24372  ac_cv_type_size_t=yes
24373else
24374  echo "$as_me: failed program was:" >&5
24375sed 's/^/| /' conftest.$ac_ext >&5
24376
24377ac_cv_type_size_t=no
24378fi
24379rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24380fi
24381echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
24382echo "${ECHO_T}$ac_cv_type_size_t" >&6
24383if test $ac_cv_type_size_t = yes; then
24384  :
24385else
24386
24387cat >>confdefs.h <<_ACEOF
24388#define size_t unsigned
24389_ACEOF
24390
24391fi
24392
24393# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
24394# for constant arguments.  Useless!
24395echo "$as_me:$LINENO: checking for working alloca.h" >&5
24396echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
24397if test "${ac_cv_working_alloca_h+set}" = set; then
24398  echo $ECHO_N "(cached) $ECHO_C" >&6
24399else
24400  cat >conftest.$ac_ext <<_ACEOF
24401/* confdefs.h.  */
24402_ACEOF
24403cat confdefs.h >>conftest.$ac_ext
24404cat >>conftest.$ac_ext <<_ACEOF
24405/* end confdefs.h.  */
24406#include <alloca.h>
24407int
24408main ()
24409{
24410char *p = (char *) alloca (2 * sizeof (int));
24411  ;
24412  return 0;
24413}
24414_ACEOF
24415rm -f conftest.$ac_objext conftest$ac_exeext
24416if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24417  (eval $ac_link) 2>conftest.er1
24418  ac_status=$?
24419  grep -v '^ *+' conftest.er1 >conftest.err
24420  rm -f conftest.er1
24421  cat conftest.err >&5
24422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24423  (exit $ac_status); } &&
24424	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
24425  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24426  (eval $ac_try) 2>&5
24427  ac_status=$?
24428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24429  (exit $ac_status); }; } &&
24430	 { ac_try='test -s conftest$ac_exeext'
24431  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24432  (eval $ac_try) 2>&5
24433  ac_status=$?
24434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24435  (exit $ac_status); }; }; then
24436  ac_cv_working_alloca_h=yes
24437else
24438  echo "$as_me: failed program was:" >&5
24439sed 's/^/| /' conftest.$ac_ext >&5
24440
24441ac_cv_working_alloca_h=no
24442fi
24443rm -f conftest.err conftest.$ac_objext \
24444      conftest$ac_exeext conftest.$ac_ext
24445fi
24446echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
24447echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
24448if test $ac_cv_working_alloca_h = yes; then
24449
24450cat >>confdefs.h <<\_ACEOF
24451#define HAVE_ALLOCA_H 1
24452_ACEOF
24453
24454fi
24455
24456echo "$as_me:$LINENO: checking for alloca" >&5
24457echo $ECHO_N "checking for alloca... $ECHO_C" >&6
24458if test "${ac_cv_func_alloca_works+set}" = set; then
24459  echo $ECHO_N "(cached) $ECHO_C" >&6
24460else
24461  cat >conftest.$ac_ext <<_ACEOF
24462/* confdefs.h.  */
24463_ACEOF
24464cat confdefs.h >>conftest.$ac_ext
24465cat >>conftest.$ac_ext <<_ACEOF
24466/* end confdefs.h.  */
24467#ifdef __GNUC__
24468# define alloca __builtin_alloca
24469#else
24470# ifdef _MSC_VER
24471#  include <malloc.h>
24472#  define alloca _alloca
24473# else
24474#  if HAVE_ALLOCA_H
24475#   include <alloca.h>
24476#  else
24477#   ifdef _AIX
24478 #pragma alloca
24479#   else
24480#    ifndef alloca /* predefined by HP cc +Olibcalls */
24481char *alloca ();
24482#    endif
24483#   endif
24484#  endif
24485# endif
24486#endif
24487
24488int
24489main ()
24490{
24491char *p = (char *) alloca (1);
24492  ;
24493  return 0;
24494}
24495_ACEOF
24496rm -f conftest.$ac_objext conftest$ac_exeext
24497if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24498  (eval $ac_link) 2>conftest.er1
24499  ac_status=$?
24500  grep -v '^ *+' conftest.er1 >conftest.err
24501  rm -f conftest.er1
24502  cat conftest.err >&5
24503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24504  (exit $ac_status); } &&
24505	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
24506  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24507  (eval $ac_try) 2>&5
24508  ac_status=$?
24509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24510  (exit $ac_status); }; } &&
24511	 { ac_try='test -s conftest$ac_exeext'
24512  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24513  (eval $ac_try) 2>&5
24514  ac_status=$?
24515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24516  (exit $ac_status); }; }; then
24517  ac_cv_func_alloca_works=yes
24518else
24519  echo "$as_me: failed program was:" >&5
24520sed 's/^/| /' conftest.$ac_ext >&5
24521
24522ac_cv_func_alloca_works=no
24523fi
24524rm -f conftest.err conftest.$ac_objext \
24525      conftest$ac_exeext conftest.$ac_ext
24526fi
24527echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
24528echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
24529
24530if test $ac_cv_func_alloca_works = yes; then
24531
24532cat >>confdefs.h <<\_ACEOF
24533#define HAVE_ALLOCA 1
24534_ACEOF
24535
24536else
24537  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
24538# that cause trouble.  Some versions do not even contain alloca or
24539# contain a buggy version.  If you still want to use their alloca,
24540# use ar to extract alloca.o from them instead of compiling alloca.c.
24541
24542ALLOCA=alloca.$ac_objext
24543
24544cat >>confdefs.h <<\_ACEOF
24545#define C_ALLOCA 1
24546_ACEOF
24547
24548
24549echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
24550echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
24551if test "${ac_cv_os_cray+set}" = set; then
24552  echo $ECHO_N "(cached) $ECHO_C" >&6
24553else
24554  cat >conftest.$ac_ext <<_ACEOF
24555/* confdefs.h.  */
24556_ACEOF
24557cat confdefs.h >>conftest.$ac_ext
24558cat >>conftest.$ac_ext <<_ACEOF
24559/* end confdefs.h.  */
24560#if defined(CRAY) && ! defined(CRAY2)
24561webecray
24562#else
24563wenotbecray
24564#endif
24565
24566_ACEOF
24567if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24568  $EGREP "webecray" >/dev/null 2>&1; then
24569  ac_cv_os_cray=yes
24570else
24571  ac_cv_os_cray=no
24572fi
24573rm -f conftest*
24574
24575fi
24576echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
24577echo "${ECHO_T}$ac_cv_os_cray" >&6
24578if test $ac_cv_os_cray = yes; then
24579  for ac_func in _getb67 GETB67 getb67; do
24580    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24581echo "$as_me:$LINENO: checking for $ac_func" >&5
24582echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24583if eval "test \"\${$as_ac_var+set}\" = set"; then
24584  echo $ECHO_N "(cached) $ECHO_C" >&6
24585else
24586  cat >conftest.$ac_ext <<_ACEOF
24587/* confdefs.h.  */
24588_ACEOF
24589cat confdefs.h >>conftest.$ac_ext
24590cat >>conftest.$ac_ext <<_ACEOF
24591/* end confdefs.h.  */
24592/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24593   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24594#define $ac_func innocuous_$ac_func
24595
24596/* System header to define __stub macros and hopefully few prototypes,
24597    which can conflict with char $ac_func (); below.
24598    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24599    <limits.h> exists even on freestanding compilers.  */
24600
24601#ifdef __STDC__
24602# include <limits.h>
24603#else
24604# include <assert.h>
24605#endif
24606
24607#undef $ac_func
24608
24609/* Override any gcc2 internal prototype to avoid an error.  */
24610#ifdef __cplusplus
24611extern "C"
24612{
24613#endif
24614/* We use char because int might match the return type of a gcc2
24615   builtin and then its argument prototype would still apply.  */
24616char $ac_func ();
24617/* The GNU C library defines this for functions which it implements
24618    to always fail with ENOSYS.  Some functions are actually named
24619    something starting with __ and the normal name is an alias.  */
24620#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24621choke me
24622#else
24623char (*f) () = $ac_func;
24624#endif
24625#ifdef __cplusplus
24626}
24627#endif
24628
24629int
24630main ()
24631{
24632return f != $ac_func;
24633  ;
24634  return 0;
24635}
24636_ACEOF
24637rm -f conftest.$ac_objext conftest$ac_exeext
24638if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24639  (eval $ac_link) 2>conftest.er1
24640  ac_status=$?
24641  grep -v '^ *+' conftest.er1 >conftest.err
24642  rm -f conftest.er1
24643  cat conftest.err >&5
24644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24645  (exit $ac_status); } &&
24646	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
24647  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24648  (eval $ac_try) 2>&5
24649  ac_status=$?
24650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24651  (exit $ac_status); }; } &&
24652	 { ac_try='test -s conftest$ac_exeext'
24653  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24654  (eval $ac_try) 2>&5
24655  ac_status=$?
24656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24657  (exit $ac_status); }; }; then
24658  eval "$as_ac_var=yes"
24659else
24660  echo "$as_me: failed program was:" >&5
24661sed 's/^/| /' conftest.$ac_ext >&5
24662
24663eval "$as_ac_var=no"
24664fi
24665rm -f conftest.err conftest.$ac_objext \
24666      conftest$ac_exeext conftest.$ac_ext
24667fi
24668echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24669echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24670if test `eval echo '${'$as_ac_var'}'` = yes; then
24671
24672cat >>confdefs.h <<_ACEOF
24673#define CRAY_STACKSEG_END $ac_func
24674_ACEOF
24675
24676    break
24677fi
24678
24679  done
24680fi
24681
24682echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
24683echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
24684if test "${ac_cv_c_stack_direction+set}" = set; then
24685  echo $ECHO_N "(cached) $ECHO_C" >&6
24686else
24687  if test "$cross_compiling" = yes; then
24688  ac_cv_c_stack_direction=0
24689else
24690  cat >conftest.$ac_ext <<_ACEOF
24691/* confdefs.h.  */
24692_ACEOF
24693cat confdefs.h >>conftest.$ac_ext
24694cat >>conftest.$ac_ext <<_ACEOF
24695/* end confdefs.h.  */
24696int
24697find_stack_direction ()
24698{
24699  static char *addr = 0;
24700  auto char dummy;
24701  if (addr == 0)
24702    {
24703      addr = &dummy;
24704      return find_stack_direction ();
24705    }
24706  else
24707    return (&dummy > addr) ? 1 : -1;
24708}
24709
24710int
24711main ()
24712{
24713  exit (find_stack_direction () < 0);
24714}
24715_ACEOF
24716rm -f conftest$ac_exeext
24717if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24718  (eval $ac_link) 2>&5
24719  ac_status=$?
24720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24721  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24722  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24723  (eval $ac_try) 2>&5
24724  ac_status=$?
24725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24726  (exit $ac_status); }; }; then
24727  ac_cv_c_stack_direction=1
24728else
24729  echo "$as_me: program exited with status $ac_status" >&5
24730echo "$as_me: failed program was:" >&5
24731sed 's/^/| /' conftest.$ac_ext >&5
24732
24733( exit $ac_status )
24734ac_cv_c_stack_direction=-1
24735fi
24736rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24737fi
24738fi
24739echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
24740echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
24741
24742cat >>confdefs.h <<_ACEOF
24743#define STACK_DIRECTION $ac_cv_c_stack_direction
24744_ACEOF
24745
24746
24747fi
24748
24749
24750
24751for ac_header in stdlib.h unistd.h
24752do
24753as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24754if eval "test \"\${$as_ac_Header+set}\" = set"; then
24755  echo "$as_me:$LINENO: checking for $ac_header" >&5
24756echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24757if eval "test \"\${$as_ac_Header+set}\" = set"; then
24758  echo $ECHO_N "(cached) $ECHO_C" >&6
24759fi
24760echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24761echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24762else
24763  # Is the header compilable?
24764echo "$as_me:$LINENO: checking $ac_header usability" >&5
24765echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24766cat >conftest.$ac_ext <<_ACEOF
24767/* confdefs.h.  */
24768_ACEOF
24769cat confdefs.h >>conftest.$ac_ext
24770cat >>conftest.$ac_ext <<_ACEOF
24771/* end confdefs.h.  */
24772$ac_includes_default
24773#include <$ac_header>
24774_ACEOF
24775rm -f conftest.$ac_objext
24776if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24777  (eval $ac_compile) 2>conftest.er1
24778  ac_status=$?
24779  grep -v '^ *+' conftest.er1 >conftest.err
24780  rm -f conftest.er1
24781  cat conftest.err >&5
24782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24783  (exit $ac_status); } &&
24784	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
24785  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24786  (eval $ac_try) 2>&5
24787  ac_status=$?
24788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24789  (exit $ac_status); }; } &&
24790	 { ac_try='test -s conftest.$ac_objext'
24791  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24792  (eval $ac_try) 2>&5
24793  ac_status=$?
24794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24795  (exit $ac_status); }; }; then
24796  ac_header_compiler=yes
24797else
24798  echo "$as_me: failed program was:" >&5
24799sed 's/^/| /' conftest.$ac_ext >&5
24800
24801ac_header_compiler=no
24802fi
24803rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24804echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24805echo "${ECHO_T}$ac_header_compiler" >&6
24806
24807# Is the header present?
24808echo "$as_me:$LINENO: checking $ac_header presence" >&5
24809echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24810cat >conftest.$ac_ext <<_ACEOF
24811/* confdefs.h.  */
24812_ACEOF
24813cat confdefs.h >>conftest.$ac_ext
24814cat >>conftest.$ac_ext <<_ACEOF
24815/* end confdefs.h.  */
24816#include <$ac_header>
24817_ACEOF
24818if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24819  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24820  ac_status=$?
24821  grep -v '^ *+' conftest.er1 >conftest.err
24822  rm -f conftest.er1
24823  cat conftest.err >&5
24824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24825  (exit $ac_status); } >/dev/null; then
24826  if test -s conftest.err; then
24827    ac_cpp_err=$ac_c_preproc_warn_flag
24828    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24829  else
24830    ac_cpp_err=
24831  fi
24832else
24833  ac_cpp_err=yes
24834fi
24835if test -z "$ac_cpp_err"; then
24836  ac_header_preproc=yes
24837else
24838  echo "$as_me: failed program was:" >&5
24839sed 's/^/| /' conftest.$ac_ext >&5
24840
24841  ac_header_preproc=no
24842fi
24843rm -f conftest.err conftest.$ac_ext
24844echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24845echo "${ECHO_T}$ac_header_preproc" >&6
24846
24847# So?  What about this header?
24848case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24849  yes:no: )
24850    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24851echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24852    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24853echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24854    ac_header_preproc=yes
24855    ;;
24856  no:yes:* )
24857    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24858echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24859    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24860echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24861    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24862echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24863    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24864echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24865    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24866echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24867    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24868echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24869    (
24870      cat <<\_ASBOX
24871## -------------------------------------------------- ##
24872## Report this to lincity-users@lists.sourceforge.net ##
24873## -------------------------------------------------- ##
24874_ASBOX
24875    ) |
24876      sed "s/^/$as_me: WARNING:     /" >&2
24877    ;;
24878esac
24879echo "$as_me:$LINENO: checking for $ac_header" >&5
24880echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24881if eval "test \"\${$as_ac_Header+set}\" = set"; then
24882  echo $ECHO_N "(cached) $ECHO_C" >&6
24883else
24884  eval "$as_ac_Header=\$ac_header_preproc"
24885fi
24886echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24887echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24888
24889fi
24890if test `eval echo '${'$as_ac_Header'}'` = yes; then
24891  cat >>confdefs.h <<_ACEOF
24892#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24893_ACEOF
24894
24895fi
24896
24897done
24898
24899
24900for ac_func in getpagesize
24901do
24902as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24903echo "$as_me:$LINENO: checking for $ac_func" >&5
24904echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24905if eval "test \"\${$as_ac_var+set}\" = set"; then
24906  echo $ECHO_N "(cached) $ECHO_C" >&6
24907else
24908  cat >conftest.$ac_ext <<_ACEOF
24909/* confdefs.h.  */
24910_ACEOF
24911cat confdefs.h >>conftest.$ac_ext
24912cat >>conftest.$ac_ext <<_ACEOF
24913/* end confdefs.h.  */
24914/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24915   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24916#define $ac_func innocuous_$ac_func
24917
24918/* System header to define __stub macros and hopefully few prototypes,
24919    which can conflict with char $ac_func (); below.
24920    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24921    <limits.h> exists even on freestanding compilers.  */
24922
24923#ifdef __STDC__
24924# include <limits.h>
24925#else
24926# include <assert.h>
24927#endif
24928
24929#undef $ac_func
24930
24931/* Override any gcc2 internal prototype to avoid an error.  */
24932#ifdef __cplusplus
24933extern "C"
24934{
24935#endif
24936/* We use char because int might match the return type of a gcc2
24937   builtin and then its argument prototype would still apply.  */
24938char $ac_func ();
24939/* The GNU C library defines this for functions which it implements
24940    to always fail with ENOSYS.  Some functions are actually named
24941    something starting with __ and the normal name is an alias.  */
24942#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24943choke me
24944#else
24945char (*f) () = $ac_func;
24946#endif
24947#ifdef __cplusplus
24948}
24949#endif
24950
24951int
24952main ()
24953{
24954return f != $ac_func;
24955  ;
24956  return 0;
24957}
24958_ACEOF
24959rm -f conftest.$ac_objext conftest$ac_exeext
24960if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24961  (eval $ac_link) 2>conftest.er1
24962  ac_status=$?
24963  grep -v '^ *+' conftest.er1 >conftest.err
24964  rm -f conftest.er1
24965  cat conftest.err >&5
24966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24967  (exit $ac_status); } &&
24968	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
24969  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24970  (eval $ac_try) 2>&5
24971  ac_status=$?
24972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24973  (exit $ac_status); }; } &&
24974	 { ac_try='test -s conftest$ac_exeext'
24975  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24976  (eval $ac_try) 2>&5
24977  ac_status=$?
24978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24979  (exit $ac_status); }; }; then
24980  eval "$as_ac_var=yes"
24981else
24982  echo "$as_me: failed program was:" >&5
24983sed 's/^/| /' conftest.$ac_ext >&5
24984
24985eval "$as_ac_var=no"
24986fi
24987rm -f conftest.err conftest.$ac_objext \
24988      conftest$ac_exeext conftest.$ac_ext
24989fi
24990echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24991echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24992if test `eval echo '${'$as_ac_var'}'` = yes; then
24993  cat >>confdefs.h <<_ACEOF
24994#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24995_ACEOF
24996
24997fi
24998done
24999
25000echo "$as_me:$LINENO: checking for working mmap" >&5
25001echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
25002if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
25003  echo $ECHO_N "(cached) $ECHO_C" >&6
25004else
25005  if test "$cross_compiling" = yes; then
25006  ac_cv_func_mmap_fixed_mapped=no
25007else
25008  cat >conftest.$ac_ext <<_ACEOF
25009/* confdefs.h.  */
25010_ACEOF
25011cat confdefs.h >>conftest.$ac_ext
25012cat >>conftest.$ac_ext <<_ACEOF
25013/* end confdefs.h.  */
25014$ac_includes_default
25015/* malloc might have been renamed as rpl_malloc. */
25016#undef malloc
25017
25018/* Thanks to Mike Haertel and Jim Avera for this test.
25019   Here is a matrix of mmap possibilities:
25020	mmap private not fixed
25021	mmap private fixed at somewhere currently unmapped
25022	mmap private fixed at somewhere already mapped
25023	mmap shared not fixed
25024	mmap shared fixed at somewhere currently unmapped
25025	mmap shared fixed at somewhere already mapped
25026   For private mappings, we should verify that changes cannot be read()
25027   back from the file, nor mmap's back from the file at a different
25028   address.  (There have been systems where private was not correctly
25029   implemented like the infamous i386 svr4.0, and systems where the
25030   VM page cache was not coherent with the file system buffer cache
25031   like early versions of FreeBSD and possibly contemporary NetBSD.)
25032   For shared mappings, we should conversely verify that changes get
25033   propagated back to all the places they're supposed to be.
25034
25035   Grep wants private fixed already mapped.
25036   The main things grep needs to know about mmap are:
25037   * does it exist and is it safe to write into the mmap'd area
25038   * how to use it (BSD variants)  */
25039
25040#include <fcntl.h>
25041#include <sys/mman.h>
25042
25043#if !STDC_HEADERS && !HAVE_STDLIB_H
25044char *malloc ();
25045#endif
25046
25047/* This mess was copied from the GNU getpagesize.h.  */
25048#if !HAVE_GETPAGESIZE
25049/* Assume that all systems that can run configure have sys/param.h.  */
25050# if !HAVE_SYS_PARAM_H
25051#  define HAVE_SYS_PARAM_H 1
25052# endif
25053
25054# ifdef _SC_PAGESIZE
25055#  define getpagesize() sysconf(_SC_PAGESIZE)
25056# else /* no _SC_PAGESIZE */
25057#  if HAVE_SYS_PARAM_H
25058#   include <sys/param.h>
25059#   ifdef EXEC_PAGESIZE
25060#    define getpagesize() EXEC_PAGESIZE
25061#   else /* no EXEC_PAGESIZE */
25062#    ifdef NBPG
25063#     define getpagesize() NBPG * CLSIZE
25064#     ifndef CLSIZE
25065#      define CLSIZE 1
25066#     endif /* no CLSIZE */
25067#    else /* no NBPG */
25068#     ifdef NBPC
25069#      define getpagesize() NBPC
25070#     else /* no NBPC */
25071#      ifdef PAGESIZE
25072#       define getpagesize() PAGESIZE
25073#      endif /* PAGESIZE */
25074#     endif /* no NBPC */
25075#    endif /* no NBPG */
25076#   endif /* no EXEC_PAGESIZE */
25077#  else /* no HAVE_SYS_PARAM_H */
25078#   define getpagesize() 8192	/* punt totally */
25079#  endif /* no HAVE_SYS_PARAM_H */
25080# endif /* no _SC_PAGESIZE */
25081
25082#endif /* no HAVE_GETPAGESIZE */
25083
25084int
25085main ()
25086{
25087  char *data, *data2, *data3;
25088  int i, pagesize;
25089  int fd;
25090
25091  pagesize = getpagesize ();
25092
25093  /* First, make a file with some known garbage in it. */
25094  data = (char *) malloc (pagesize);
25095  if (!data)
25096    exit (1);
25097  for (i = 0; i < pagesize; ++i)
25098    *(data + i) = rand ();
25099  umask (0);
25100  fd = creat ("conftest.mmap", 0600);
25101  if (fd < 0)
25102    exit (1);
25103  if (write (fd, data, pagesize) != pagesize)
25104    exit (1);
25105  close (fd);
25106
25107  /* Next, try to mmap the file at a fixed address which already has
25108     something else allocated at it.  If we can, also make sure that
25109     we see the same garbage.  */
25110  fd = open ("conftest.mmap", O_RDWR);
25111  if (fd < 0)
25112    exit (1);
25113  data2 = (char *) malloc (2 * pagesize);
25114  if (!data2)
25115    exit (1);
25116  data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
25117  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
25118		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
25119    exit (1);
25120  for (i = 0; i < pagesize; ++i)
25121    if (*(data + i) != *(data2 + i))
25122      exit (1);
25123
25124  /* Finally, make sure that changes to the mapped area do not
25125     percolate back to the file as seen by read().  (This is a bug on
25126     some variants of i386 svr4.0.)  */
25127  for (i = 0; i < pagesize; ++i)
25128    *(data2 + i) = *(data2 + i) + 1;
25129  data3 = (char *) malloc (pagesize);
25130  if (!data3)
25131    exit (1);
25132  if (read (fd, data3, pagesize) != pagesize)
25133    exit (1);
25134  for (i = 0; i < pagesize; ++i)
25135    if (*(data + i) != *(data3 + i))
25136      exit (1);
25137  close (fd);
25138  exit (0);
25139}
25140_ACEOF
25141rm -f conftest$ac_exeext
25142if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25143  (eval $ac_link) 2>&5
25144  ac_status=$?
25145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25146  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25147  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25148  (eval $ac_try) 2>&5
25149  ac_status=$?
25150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25151  (exit $ac_status); }; }; then
25152  ac_cv_func_mmap_fixed_mapped=yes
25153else
25154  echo "$as_me: program exited with status $ac_status" >&5
25155echo "$as_me: failed program was:" >&5
25156sed 's/^/| /' conftest.$ac_ext >&5
25157
25158( exit $ac_status )
25159ac_cv_func_mmap_fixed_mapped=no
25160fi
25161rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25162fi
25163fi
25164echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
25165echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
25166if test $ac_cv_func_mmap_fixed_mapped = yes; then
25167
25168cat >>confdefs.h <<\_ACEOF
25169#define HAVE_MMAP 1
25170_ACEOF
25171
25172fi
25173rm -f conftest.mmap
25174
25175
25176    echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
25177echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
25178if test "${ac_cv_gnu_library_2_1+set}" = set; then
25179  echo $ECHO_N "(cached) $ECHO_C" >&6
25180else
25181  cat >conftest.$ac_ext <<_ACEOF
25182/* confdefs.h.  */
25183_ACEOF
25184cat confdefs.h >>conftest.$ac_ext
25185cat >>conftest.$ac_ext <<_ACEOF
25186/* end confdefs.h.  */
25187
25188#include <features.h>
25189#ifdef __GNU_LIBRARY__
25190 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
25191  Lucky GNU user
25192 #endif
25193#endif
25194
25195_ACEOF
25196if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25197  $EGREP "Lucky GNU user" >/dev/null 2>&1; then
25198  ac_cv_gnu_library_2_1=yes
25199else
25200  ac_cv_gnu_library_2_1=no
25201fi
25202rm -f conftest*
25203
25204
25205
25206fi
25207echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
25208echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
25209
25210    GLIBC21="$ac_cv_gnu_library_2_1"
25211
25212
25213
25214
25215  echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
25216echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
25217if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
25218  echo $ECHO_N "(cached) $ECHO_C" >&6
25219else
25220
25221      if test "$cross_compiling" = yes; then
25222
25223          # Guess based on the CPU.
25224          case "$host_cpu" in
25225            alpha* | i3456786 | m68k | s390*)
25226              gt_cv_int_divbyzero_sigfpe="guessing yes";;
25227            *)
25228              gt_cv_int_divbyzero_sigfpe="guessing no";;
25229          esac
25230
25231else
25232  cat >conftest.$ac_ext <<_ACEOF
25233/* confdefs.h.  */
25234_ACEOF
25235cat confdefs.h >>conftest.$ac_ext
25236cat >>conftest.$ac_ext <<_ACEOF
25237/* end confdefs.h.  */
25238
25239#include <stdlib.h>
25240#include <signal.h>
25241
25242static void
25243#ifdef __cplusplus
25244sigfpe_handler (int sig)
25245#else
25246sigfpe_handler (sig) int sig;
25247#endif
25248{
25249  /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
25250  exit (sig != SIGFPE);
25251}
25252
25253int x = 1;
25254int y = 0;
25255int z;
25256int nan;
25257
25258int main ()
25259{
25260  signal (SIGFPE, sigfpe_handler);
25261/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
25262#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
25263  signal (SIGTRAP, sigfpe_handler);
25264#endif
25265/* Linux/SPARC yields signal SIGILL.  */
25266#if defined (__sparc__) && defined (__linux__)
25267  signal (SIGILL, sigfpe_handler);
25268#endif
25269
25270  z = x / y;
25271  nan = y / y;
25272  exit (1);
25273}
25274
25275_ACEOF
25276rm -f conftest$ac_exeext
25277if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25278  (eval $ac_link) 2>&5
25279  ac_status=$?
25280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25281  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25282  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25283  (eval $ac_try) 2>&5
25284  ac_status=$?
25285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25286  (exit $ac_status); }; }; then
25287  gt_cv_int_divbyzero_sigfpe=yes
25288else
25289  echo "$as_me: program exited with status $ac_status" >&5
25290echo "$as_me: failed program was:" >&5
25291sed 's/^/| /' conftest.$ac_ext >&5
25292
25293( exit $ac_status )
25294gt_cv_int_divbyzero_sigfpe=no
25295fi
25296rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25297fi
25298
25299fi
25300echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
25301echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
25302  case "$gt_cv_int_divbyzero_sigfpe" in
25303    *yes) value=1;;
25304    *) value=0;;
25305  esac
25306
25307cat >>confdefs.h <<_ACEOF
25308#define INTDIV0_RAISES_SIGFPE $value
25309_ACEOF
25310
25311
25312
25313  echo "$as_me:$LINENO: checking for inttypes.h" >&5
25314echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
25315if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
25316  echo $ECHO_N "(cached) $ECHO_C" >&6
25317else
25318  cat >conftest.$ac_ext <<_ACEOF
25319/* confdefs.h.  */
25320_ACEOF
25321cat confdefs.h >>conftest.$ac_ext
25322cat >>conftest.$ac_ext <<_ACEOF
25323/* end confdefs.h.  */
25324#include <sys/types.h>
25325#include <inttypes.h>
25326int
25327main ()
25328{
25329uintmax_t i = (uintmax_t) -1;
25330  ;
25331  return 0;
25332}
25333_ACEOF
25334rm -f conftest.$ac_objext
25335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25336  (eval $ac_compile) 2>conftest.er1
25337  ac_status=$?
25338  grep -v '^ *+' conftest.er1 >conftest.err
25339  rm -f conftest.er1
25340  cat conftest.err >&5
25341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25342  (exit $ac_status); } &&
25343	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
25344  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25345  (eval $ac_try) 2>&5
25346  ac_status=$?
25347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25348  (exit $ac_status); }; } &&
25349	 { ac_try='test -s conftest.$ac_objext'
25350  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25351  (eval $ac_try) 2>&5
25352  ac_status=$?
25353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25354  (exit $ac_status); }; }; then
25355  jm_ac_cv_header_inttypes_h=yes
25356else
25357  echo "$as_me: failed program was:" >&5
25358sed 's/^/| /' conftest.$ac_ext >&5
25359
25360jm_ac_cv_header_inttypes_h=no
25361fi
25362rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25363fi
25364echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
25365echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
25366  if test $jm_ac_cv_header_inttypes_h = yes; then
25367
25368cat >>confdefs.h <<_ACEOF
25369#define HAVE_INTTYPES_H_WITH_UINTMAX 1
25370_ACEOF
25371
25372  fi
25373
25374
25375  echo "$as_me:$LINENO: checking for stdint.h" >&5
25376echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
25377if test "${jm_ac_cv_header_stdint_h+set}" = set; then
25378  echo $ECHO_N "(cached) $ECHO_C" >&6
25379else
25380  cat >conftest.$ac_ext <<_ACEOF
25381/* confdefs.h.  */
25382_ACEOF
25383cat confdefs.h >>conftest.$ac_ext
25384cat >>conftest.$ac_ext <<_ACEOF
25385/* end confdefs.h.  */
25386#include <sys/types.h>
25387#include <stdint.h>
25388int
25389main ()
25390{
25391uintmax_t i = (uintmax_t) -1;
25392  ;
25393  return 0;
25394}
25395_ACEOF
25396rm -f conftest.$ac_objext
25397if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25398  (eval $ac_compile) 2>conftest.er1
25399  ac_status=$?
25400  grep -v '^ *+' conftest.er1 >conftest.err
25401  rm -f conftest.er1
25402  cat conftest.err >&5
25403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25404  (exit $ac_status); } &&
25405	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
25406  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25407  (eval $ac_try) 2>&5
25408  ac_status=$?
25409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25410  (exit $ac_status); }; } &&
25411	 { ac_try='test -s conftest.$ac_objext'
25412  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25413  (eval $ac_try) 2>&5
25414  ac_status=$?
25415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25416  (exit $ac_status); }; }; then
25417  jm_ac_cv_header_stdint_h=yes
25418else
25419  echo "$as_me: failed program was:" >&5
25420sed 's/^/| /' conftest.$ac_ext >&5
25421
25422jm_ac_cv_header_stdint_h=no
25423fi
25424rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25425fi
25426echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
25427echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
25428  if test $jm_ac_cv_header_stdint_h = yes; then
25429
25430cat >>confdefs.h <<_ACEOF
25431#define HAVE_STDINT_H_WITH_UINTMAX 1
25432_ACEOF
25433
25434  fi
25435
25436
25437  echo "$as_me:$LINENO: checking for unsigned long long" >&5
25438echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
25439if test "${ac_cv_type_unsigned_long_long+set}" = set; then
25440  echo $ECHO_N "(cached) $ECHO_C" >&6
25441else
25442  cat >conftest.$ac_ext <<_ACEOF
25443/* confdefs.h.  */
25444_ACEOF
25445cat confdefs.h >>conftest.$ac_ext
25446cat >>conftest.$ac_ext <<_ACEOF
25447/* end confdefs.h.  */
25448unsigned long long ull = 1; int i = 63;
25449int
25450main ()
25451{
25452unsigned long long ullmax = (unsigned long long) -1;
25453     return ull << i | ull >> i | ullmax / ull | ullmax % ull;
25454  ;
25455  return 0;
25456}
25457_ACEOF
25458rm -f conftest.$ac_objext conftest$ac_exeext
25459if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25460  (eval $ac_link) 2>conftest.er1
25461  ac_status=$?
25462  grep -v '^ *+' conftest.er1 >conftest.err
25463  rm -f conftest.er1
25464  cat conftest.err >&5
25465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25466  (exit $ac_status); } &&
25467	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
25468  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25469  (eval $ac_try) 2>&5
25470  ac_status=$?
25471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25472  (exit $ac_status); }; } &&
25473	 { ac_try='test -s conftest$ac_exeext'
25474  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25475  (eval $ac_try) 2>&5
25476  ac_status=$?
25477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25478  (exit $ac_status); }; }; then
25479  ac_cv_type_unsigned_long_long=yes
25480else
25481  echo "$as_me: failed program was:" >&5
25482sed 's/^/| /' conftest.$ac_ext >&5
25483
25484ac_cv_type_unsigned_long_long=no
25485fi
25486rm -f conftest.err conftest.$ac_objext \
25487      conftest$ac_exeext conftest.$ac_ext
25488fi
25489echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
25490echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
25491  if test $ac_cv_type_unsigned_long_long = yes; then
25492
25493cat >>confdefs.h <<\_ACEOF
25494#define HAVE_UNSIGNED_LONG_LONG 1
25495_ACEOF
25496
25497  fi
25498
25499
25500
25501
25502  if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
25503
25504    test $ac_cv_type_unsigned_long_long = yes \
25505      && ac_type='unsigned long long' \
25506      || ac_type='unsigned long'
25507
25508cat >>confdefs.h <<_ACEOF
25509#define uintmax_t $ac_type
25510_ACEOF
25511
25512  fi
25513
25514
25515  echo "$as_me:$LINENO: checking for inttypes.h" >&5
25516echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
25517if test "${gt_cv_header_inttypes_h+set}" = set; then
25518  echo $ECHO_N "(cached) $ECHO_C" >&6
25519else
25520
25521    cat >conftest.$ac_ext <<_ACEOF
25522/* confdefs.h.  */
25523_ACEOF
25524cat confdefs.h >>conftest.$ac_ext
25525cat >>conftest.$ac_ext <<_ACEOF
25526/* end confdefs.h.  */
25527#include <sys/types.h>
25528#include <inttypes.h>
25529int
25530main ()
25531{
25532
25533  ;
25534  return 0;
25535}
25536_ACEOF
25537rm -f conftest.$ac_objext
25538if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25539  (eval $ac_compile) 2>conftest.er1
25540  ac_status=$?
25541  grep -v '^ *+' conftest.er1 >conftest.err
25542  rm -f conftest.er1
25543  cat conftest.err >&5
25544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25545  (exit $ac_status); } &&
25546	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
25547  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25548  (eval $ac_try) 2>&5
25549  ac_status=$?
25550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25551  (exit $ac_status); }; } &&
25552	 { ac_try='test -s conftest.$ac_objext'
25553  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25554  (eval $ac_try) 2>&5
25555  ac_status=$?
25556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25557  (exit $ac_status); }; }; then
25558  gt_cv_header_inttypes_h=yes
25559else
25560  echo "$as_me: failed program was:" >&5
25561sed 's/^/| /' conftest.$ac_ext >&5
25562
25563gt_cv_header_inttypes_h=no
25564fi
25565rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25566
25567fi
25568echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
25569echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
25570  if test $gt_cv_header_inttypes_h = yes; then
25571
25572cat >>confdefs.h <<_ACEOF
25573#define HAVE_INTTYPES_H 1
25574_ACEOF
25575
25576  fi
25577
25578
25579
25580  if test $gt_cv_header_inttypes_h = yes; then
25581    echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
25582echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
25583if test "${gt_cv_inttypes_pri_broken+set}" = set; then
25584  echo $ECHO_N "(cached) $ECHO_C" >&6
25585else
25586
25587        cat >conftest.$ac_ext <<_ACEOF
25588/* confdefs.h.  */
25589_ACEOF
25590cat confdefs.h >>conftest.$ac_ext
25591cat >>conftest.$ac_ext <<_ACEOF
25592/* end confdefs.h.  */
25593#include <inttypes.h>
25594#ifdef PRId32
25595char *p = PRId32;
25596#endif
25597
25598int
25599main ()
25600{
25601
25602  ;
25603  return 0;
25604}
25605_ACEOF
25606rm -f conftest.$ac_objext
25607if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25608  (eval $ac_compile) 2>conftest.er1
25609  ac_status=$?
25610  grep -v '^ *+' conftest.er1 >conftest.err
25611  rm -f conftest.er1
25612  cat conftest.err >&5
25613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25614  (exit $ac_status); } &&
25615	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
25616  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25617  (eval $ac_try) 2>&5
25618  ac_status=$?
25619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25620  (exit $ac_status); }; } &&
25621	 { ac_try='test -s conftest.$ac_objext'
25622  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25623  (eval $ac_try) 2>&5
25624  ac_status=$?
25625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25626  (exit $ac_status); }; }; then
25627  gt_cv_inttypes_pri_broken=no
25628else
25629  echo "$as_me: failed program was:" >&5
25630sed 's/^/| /' conftest.$ac_ext >&5
25631
25632gt_cv_inttypes_pri_broken=yes
25633fi
25634rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25635
25636fi
25637echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
25638echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
25639  fi
25640  if test "$gt_cv_inttypes_pri_broken" = yes; then
25641
25642cat >>confdefs.h <<_ACEOF
25643#define PRI_MACROS_BROKEN 1
25644_ACEOF
25645
25646  fi
25647
25648
25649      if test "X$prefix" = "XNONE"; then
25650    acl_final_prefix="$ac_default_prefix"
25651  else
25652    acl_final_prefix="$prefix"
25653  fi
25654  if test "X$exec_prefix" = "XNONE"; then
25655    acl_final_exec_prefix='${prefix}'
25656  else
25657    acl_final_exec_prefix="$exec_prefix"
25658  fi
25659  acl_save_prefix="$prefix"
25660  prefix="$acl_final_prefix"
25661  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
25662  prefix="$acl_save_prefix"
25663
25664
25665# Check whether --with-gnu-ld or --without-gnu-ld was given.
25666if test "${with_gnu_ld+set}" = set; then
25667  withval="$with_gnu_ld"
25668  test "$withval" = no || with_gnu_ld=yes
25669else
25670  with_gnu_ld=no
25671fi;
25672ac_prog=ld
25673if test "$GCC" = yes; then
25674  # Check if gcc -print-prog-name=ld gives a path.
25675  echo "$as_me:$LINENO: checking for ld used by GCC" >&5
25676echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
25677  case $host in
25678  *-*-mingw*)
25679    # gcc leaves a trailing carriage return which upsets mingw
25680    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
25681  *)
25682    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
25683  esac
25684  case $ac_prog in
25685    # Accept absolute paths.
25686    [\\/]* | [A-Za-z]:[\\/]*)
25687      re_direlt='/[^/][^/]*/\.\./'
25688      # Canonicalize the path of ld
25689      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
25690      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
25691	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
25692      done
25693      test -z "$LD" && LD="$ac_prog"
25694      ;;
25695  "")
25696    # If it fails, then pretend we aren't using GCC.
25697    ac_prog=ld
25698    ;;
25699  *)
25700    # If it is relative, then search for the first ld in PATH.
25701    with_gnu_ld=unknown
25702    ;;
25703  esac
25704elif test "$with_gnu_ld" = yes; then
25705  echo "$as_me:$LINENO: checking for GNU ld" >&5
25706echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
25707else
25708  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
25709echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
25710fi
25711if test "${acl_cv_path_LD+set}" = set; then
25712  echo $ECHO_N "(cached) $ECHO_C" >&6
25713else
25714  if test -z "$LD"; then
25715  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
25716  for ac_dir in $PATH; do
25717    test -z "$ac_dir" && ac_dir=.
25718    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
25719      acl_cv_path_LD="$ac_dir/$ac_prog"
25720      # Check to see if the program is GNU ld.  I'd rather use --version,
25721      # but apparently some GNU ld's only accept -v.
25722      # Break only if it was the GNU/non-GNU ld that we prefer.
25723      if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
25724	test "$with_gnu_ld" != no && break
25725      else
25726	test "$with_gnu_ld" != yes && break
25727      fi
25728    fi
25729  done
25730  IFS="$ac_save_ifs"
25731else
25732  acl_cv_path_LD="$LD" # Let the user override the test with a path.
25733fi
25734fi
25735
25736LD="$acl_cv_path_LD"
25737if test -n "$LD"; then
25738  echo "$as_me:$LINENO: result: $LD" >&5
25739echo "${ECHO_T}$LD" >&6
25740else
25741  echo "$as_me:$LINENO: result: no" >&5
25742echo "${ECHO_T}no" >&6
25743fi
25744test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
25745echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
25746   { (exit 1); exit 1; }; }
25747echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
25748echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
25749if test "${acl_cv_prog_gnu_ld+set}" = set; then
25750  echo $ECHO_N "(cached) $ECHO_C" >&6
25751else
25752  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
25753if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
25754  acl_cv_prog_gnu_ld=yes
25755else
25756  acl_cv_prog_gnu_ld=no
25757fi
25758fi
25759echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
25760echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
25761with_gnu_ld=$acl_cv_prog_gnu_ld
25762
25763
25764
25765                                                echo "$as_me:$LINENO: checking for shared library run path origin" >&5
25766echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
25767if test "${acl_cv_rpath+set}" = set; then
25768  echo $ECHO_N "(cached) $ECHO_C" >&6
25769else
25770
25771    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
25772    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
25773    . ./conftest.sh
25774    rm -f ./conftest.sh
25775    acl_cv_rpath=done
25776
25777fi
25778echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
25779echo "${ECHO_T}$acl_cv_rpath" >&6
25780  wl="$acl_cv_wl"
25781  libext="$acl_cv_libext"
25782  shlibext="$acl_cv_shlibext"
25783  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
25784  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
25785  hardcode_direct="$acl_cv_hardcode_direct"
25786  hardcode_minus_L="$acl_cv_hardcode_minus_L"
25787  sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
25788  sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
25789    # Check whether --enable-rpath or --disable-rpath was given.
25790if test "${enable_rpath+set}" = set; then
25791  enableval="$enable_rpath"
25792  :
25793else
25794  enable_rpath=yes
25795fi;
25796
25797
25798
25799
25800
25801
25802
25803    use_additional=yes
25804
25805  acl_save_prefix="$prefix"
25806  prefix="$acl_final_prefix"
25807  acl_save_exec_prefix="$exec_prefix"
25808  exec_prefix="$acl_final_exec_prefix"
25809
25810    eval additional_includedir=\"$includedir\"
25811    eval additional_libdir=\"$libdir\"
25812
25813  exec_prefix="$acl_save_exec_prefix"
25814  prefix="$acl_save_prefix"
25815
25816
25817# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
25818if test "${with_libiconv_prefix+set}" = set; then
25819  withval="$with_libiconv_prefix"
25820
25821    if test "X$withval" = "Xno"; then
25822      use_additional=no
25823    else
25824      if test "X$withval" = "X"; then
25825
25826  acl_save_prefix="$prefix"
25827  prefix="$acl_final_prefix"
25828  acl_save_exec_prefix="$exec_prefix"
25829  exec_prefix="$acl_final_exec_prefix"
25830
25831          eval additional_includedir=\"$includedir\"
25832          eval additional_libdir=\"$libdir\"
25833
25834  exec_prefix="$acl_save_exec_prefix"
25835  prefix="$acl_save_prefix"
25836
25837      else
25838        additional_includedir="$withval/include"
25839        additional_libdir="$withval/lib"
25840      fi
25841    fi
25842
25843fi;
25844      LIBICONV=
25845  LTLIBICONV=
25846  INCICONV=
25847  rpathdirs=
25848  ltrpathdirs=
25849  names_already_handled=
25850  names_next_round='iconv '
25851  while test -n "$names_next_round"; do
25852    names_this_round="$names_next_round"
25853    names_next_round=
25854    for name in $names_this_round; do
25855      already_handled=
25856      for n in $names_already_handled; do
25857        if test "$n" = "$name"; then
25858          already_handled=yes
25859          break
25860        fi
25861      done
25862      if test -z "$already_handled"; then
25863        names_already_handled="$names_already_handled $name"
25864                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
25865        eval value=\"\$HAVE_LIB$uppername\"
25866        if test -n "$value"; then
25867          if test "$value" = yes; then
25868            eval value=\"\$LIB$uppername\"
25869            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
25870            eval value=\"\$LTLIB$uppername\"
25871            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
25872          else
25873                                    :
25874          fi
25875        else
25876                              found_dir=
25877          found_la=
25878          found_so=
25879          found_a=
25880          if test $use_additional = yes; then
25881            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
25882              found_dir="$additional_libdir"
25883              found_so="$additional_libdir/lib$name.$shlibext"
25884              if test -f "$additional_libdir/lib$name.la"; then
25885                found_la="$additional_libdir/lib$name.la"
25886              fi
25887            else
25888              if test -f "$additional_libdir/lib$name.$libext"; then
25889                found_dir="$additional_libdir"
25890                found_a="$additional_libdir/lib$name.$libext"
25891                if test -f "$additional_libdir/lib$name.la"; then
25892                  found_la="$additional_libdir/lib$name.la"
25893                fi
25894              fi
25895            fi
25896          fi
25897          if test "X$found_dir" = "X"; then
25898            for x in $LDFLAGS $LTLIBICONV; do
25899
25900  acl_save_prefix="$prefix"
25901  prefix="$acl_final_prefix"
25902  acl_save_exec_prefix="$exec_prefix"
25903  exec_prefix="$acl_final_exec_prefix"
25904  eval x=\"$x\"
25905  exec_prefix="$acl_save_exec_prefix"
25906  prefix="$acl_save_prefix"
25907
25908              case "$x" in
25909                -L*)
25910                  dir=`echo "X$x" | sed -e 's/^X-L//'`
25911                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
25912                    found_dir="$dir"
25913                    found_so="$dir/lib$name.$shlibext"
25914                    if test -f "$dir/lib$name.la"; then
25915                      found_la="$dir/lib$name.la"
25916                    fi
25917                  else
25918                    if test -f "$dir/lib$name.$libext"; then
25919                      found_dir="$dir"
25920                      found_a="$dir/lib$name.$libext"
25921                      if test -f "$dir/lib$name.la"; then
25922                        found_la="$dir/lib$name.la"
25923                      fi
25924                    fi
25925                  fi
25926                  ;;
25927              esac
25928              if test "X$found_dir" != "X"; then
25929                break
25930              fi
25931            done
25932          fi
25933          if test "X$found_dir" != "X"; then
25934                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
25935            if test "X$found_so" != "X"; then
25936                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
25937                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
25938              else
25939                                                                                haveit=
25940                for x in $ltrpathdirs; do
25941                  if test "X$x" = "X$found_dir"; then
25942                    haveit=yes
25943                    break
25944                  fi
25945                done
25946                if test -z "$haveit"; then
25947                  ltrpathdirs="$ltrpathdirs $found_dir"
25948                fi
25949                                if test "$hardcode_direct" = yes; then
25950                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
25951                else
25952                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
25953                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
25954                                                            haveit=
25955                    for x in $rpathdirs; do
25956                      if test "X$x" = "X$found_dir"; then
25957                        haveit=yes
25958                        break
25959                      fi
25960                    done
25961                    if test -z "$haveit"; then
25962                      rpathdirs="$rpathdirs $found_dir"
25963                    fi
25964                  else
25965                                                                                haveit=
25966                    for x in $LDFLAGS $LIBICONV; do
25967
25968  acl_save_prefix="$prefix"
25969  prefix="$acl_final_prefix"
25970  acl_save_exec_prefix="$exec_prefix"
25971  exec_prefix="$acl_final_exec_prefix"
25972  eval x=\"$x\"
25973  exec_prefix="$acl_save_exec_prefix"
25974  prefix="$acl_save_prefix"
25975
25976                      if test "X$x" = "X-L$found_dir"; then
25977                        haveit=yes
25978                        break
25979                      fi
25980                    done
25981                    if test -z "$haveit"; then
25982                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
25983                    fi
25984                    if test "$hardcode_minus_L" != no; then
25985                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
25986                    else
25987                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
25988                    fi
25989                  fi
25990                fi
25991              fi
25992            else
25993              if test "X$found_a" != "X"; then
25994                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
25995              else
25996                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
25997              fi
25998            fi
25999                        additional_includedir=
26000            case "$found_dir" in
26001              */lib | */lib/)
26002                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
26003                additional_includedir="$basedir/include"
26004                ;;
26005            esac
26006            if test "X$additional_includedir" != "X"; then
26007                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
26008                haveit=
26009                if test "X$additional_includedir" = "X/usr/local/include"; then
26010                  if test -n "$GCC"; then
26011                    case $host_os in
26012                      linux*) haveit=yes;;
26013                    esac
26014                  fi
26015                fi
26016                if test -z "$haveit"; then
26017                  for x in $CPPFLAGS $INCICONV; do
26018
26019  acl_save_prefix="$prefix"
26020  prefix="$acl_final_prefix"
26021  acl_save_exec_prefix="$exec_prefix"
26022  exec_prefix="$acl_final_exec_prefix"
26023  eval x=\"$x\"
26024  exec_prefix="$acl_save_exec_prefix"
26025  prefix="$acl_save_prefix"
26026
26027                    if test "X$x" = "X-I$additional_includedir"; then
26028                      haveit=yes
26029                      break
26030                    fi
26031                  done
26032                  if test -z "$haveit"; then
26033                    if test -d "$additional_includedir"; then
26034                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
26035                    fi
26036                  fi
26037                fi
26038              fi
26039            fi
26040                        if test -n "$found_la"; then
26041                                                        save_libdir="$libdir"
26042              case "$found_la" in
26043                */* | *\\*) . "$found_la" ;;
26044                *) . "./$found_la" ;;
26045              esac
26046              libdir="$save_libdir"
26047                            for dep in $dependency_libs; do
26048                case "$dep" in
26049                  -L*)
26050                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
26051                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
26052                      haveit=
26053                      if test "X$additional_libdir" = "X/usr/local/lib"; then
26054                        if test -n "$GCC"; then
26055                          case $host_os in
26056                            linux*) haveit=yes;;
26057                          esac
26058                        fi
26059                      fi
26060                      if test -z "$haveit"; then
26061                        haveit=
26062                        for x in $LDFLAGS $LIBICONV; do
26063
26064  acl_save_prefix="$prefix"
26065  prefix="$acl_final_prefix"
26066  acl_save_exec_prefix="$exec_prefix"
26067  exec_prefix="$acl_final_exec_prefix"
26068  eval x=\"$x\"
26069  exec_prefix="$acl_save_exec_prefix"
26070  prefix="$acl_save_prefix"
26071
26072                          if test "X$x" = "X-L$additional_libdir"; then
26073                            haveit=yes
26074                            break
26075                          fi
26076                        done
26077                        if test -z "$haveit"; then
26078                          if test -d "$additional_libdir"; then
26079                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
26080                          fi
26081                        fi
26082                        haveit=
26083                        for x in $LDFLAGS $LTLIBICONV; do
26084
26085  acl_save_prefix="$prefix"
26086  prefix="$acl_final_prefix"
26087  acl_save_exec_prefix="$exec_prefix"
26088  exec_prefix="$acl_final_exec_prefix"
26089  eval x=\"$x\"
26090  exec_prefix="$acl_save_exec_prefix"
26091  prefix="$acl_save_prefix"
26092
26093                          if test "X$x" = "X-L$additional_libdir"; then
26094                            haveit=yes
26095                            break
26096                          fi
26097                        done
26098                        if test -z "$haveit"; then
26099                          if test -d "$additional_libdir"; then
26100                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
26101                          fi
26102                        fi
26103                      fi
26104                    fi
26105                    ;;
26106                  -R*)
26107                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
26108                    if test "$enable_rpath" != no; then
26109                                                                  haveit=
26110                      for x in $rpathdirs; do
26111                        if test "X$x" = "X$dir"; then
26112                          haveit=yes
26113                          break
26114                        fi
26115                      done
26116                      if test -z "$haveit"; then
26117                        rpathdirs="$rpathdirs $dir"
26118                      fi
26119                                                                  haveit=
26120                      for x in $ltrpathdirs; do
26121                        if test "X$x" = "X$dir"; then
26122                          haveit=yes
26123                          break
26124                        fi
26125                      done
26126                      if test -z "$haveit"; then
26127                        ltrpathdirs="$ltrpathdirs $dir"
26128                      fi
26129                    fi
26130                    ;;
26131                  -l*)
26132                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
26133                    ;;
26134                  *.la)
26135                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
26136                    ;;
26137                  *)
26138                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
26139                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
26140                    ;;
26141                esac
26142              done
26143            fi
26144          else
26145                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
26146            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
26147          fi
26148        fi
26149      fi
26150    done
26151  done
26152  if test "X$rpathdirs" != "X"; then
26153    if test -n "$hardcode_libdir_separator"; then
26154                        alldirs=
26155      for found_dir in $rpathdirs; do
26156        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
26157      done
26158            acl_save_libdir="$libdir"
26159      libdir="$alldirs"
26160      eval flag=\"$hardcode_libdir_flag_spec\"
26161      libdir="$acl_save_libdir"
26162      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
26163    else
26164            for found_dir in $rpathdirs; do
26165        acl_save_libdir="$libdir"
26166        libdir="$found_dir"
26167        eval flag=\"$hardcode_libdir_flag_spec\"
26168        libdir="$acl_save_libdir"
26169        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
26170      done
26171    fi
26172  fi
26173  if test "X$ltrpathdirs" != "X"; then
26174            for found_dir in $ltrpathdirs; do
26175      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
26176    done
26177  fi
26178
26179
26180
26181
26182
26183
26184
26185
26186
26187
26188
26189
26190
26191
26192for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
26193stdlib.h string.h unistd.h sys/param.h
26194do
26195as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26196if eval "test \"\${$as_ac_Header+set}\" = set"; then
26197  echo "$as_me:$LINENO: checking for $ac_header" >&5
26198echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26199if eval "test \"\${$as_ac_Header+set}\" = set"; then
26200  echo $ECHO_N "(cached) $ECHO_C" >&6
26201fi
26202echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26203echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26204else
26205  # Is the header compilable?
26206echo "$as_me:$LINENO: checking $ac_header usability" >&5
26207echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26208cat >conftest.$ac_ext <<_ACEOF
26209/* confdefs.h.  */
26210_ACEOF
26211cat confdefs.h >>conftest.$ac_ext
26212cat >>conftest.$ac_ext <<_ACEOF
26213/* end confdefs.h.  */
26214$ac_includes_default
26215#include <$ac_header>
26216_ACEOF
26217rm -f conftest.$ac_objext
26218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26219  (eval $ac_compile) 2>conftest.er1
26220  ac_status=$?
26221  grep -v '^ *+' conftest.er1 >conftest.err
26222  rm -f conftest.er1
26223  cat conftest.err >&5
26224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26225  (exit $ac_status); } &&
26226	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
26227  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26228  (eval $ac_try) 2>&5
26229  ac_status=$?
26230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26231  (exit $ac_status); }; } &&
26232	 { ac_try='test -s conftest.$ac_objext'
26233  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26234  (eval $ac_try) 2>&5
26235  ac_status=$?
26236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26237  (exit $ac_status); }; }; then
26238  ac_header_compiler=yes
26239else
26240  echo "$as_me: failed program was:" >&5
26241sed 's/^/| /' conftest.$ac_ext >&5
26242
26243ac_header_compiler=no
26244fi
26245rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26246echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26247echo "${ECHO_T}$ac_header_compiler" >&6
26248
26249# Is the header present?
26250echo "$as_me:$LINENO: checking $ac_header presence" >&5
26251echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26252cat >conftest.$ac_ext <<_ACEOF
26253/* confdefs.h.  */
26254_ACEOF
26255cat confdefs.h >>conftest.$ac_ext
26256cat >>conftest.$ac_ext <<_ACEOF
26257/* end confdefs.h.  */
26258#include <$ac_header>
26259_ACEOF
26260if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26261  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26262  ac_status=$?
26263  grep -v '^ *+' conftest.er1 >conftest.err
26264  rm -f conftest.er1
26265  cat conftest.err >&5
26266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26267  (exit $ac_status); } >/dev/null; then
26268  if test -s conftest.err; then
26269    ac_cpp_err=$ac_c_preproc_warn_flag
26270    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26271  else
26272    ac_cpp_err=
26273  fi
26274else
26275  ac_cpp_err=yes
26276fi
26277if test -z "$ac_cpp_err"; then
26278  ac_header_preproc=yes
26279else
26280  echo "$as_me: failed program was:" >&5
26281sed 's/^/| /' conftest.$ac_ext >&5
26282
26283  ac_header_preproc=no
26284fi
26285rm -f conftest.err conftest.$ac_ext
26286echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26287echo "${ECHO_T}$ac_header_preproc" >&6
26288
26289# So?  What about this header?
26290case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26291  yes:no: )
26292    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26293echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26294    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26295echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26296    ac_header_preproc=yes
26297    ;;
26298  no:yes:* )
26299    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26300echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26301    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26302echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26303    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26304echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26305    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26306echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26307    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26308echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26309    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26310echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26311    (
26312      cat <<\_ASBOX
26313## -------------------------------------------------- ##
26314## Report this to lincity-users@lists.sourceforge.net ##
26315## -------------------------------------------------- ##
26316_ASBOX
26317    ) |
26318      sed "s/^/$as_me: WARNING:     /" >&2
26319    ;;
26320esac
26321echo "$as_me:$LINENO: checking for $ac_header" >&5
26322echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26323if eval "test \"\${$as_ac_Header+set}\" = set"; then
26324  echo $ECHO_N "(cached) $ECHO_C" >&6
26325else
26326  eval "$as_ac_Header=\$ac_header_preproc"
26327fi
26328echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26329echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26330
26331fi
26332if test `eval echo '${'$as_ac_Header'}'` = yes; then
26333  cat >>confdefs.h <<_ACEOF
26334#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26335_ACEOF
26336
26337fi
26338
26339done
26340
26341
26342
26343
26344
26345
26346
26347
26348
26349
26350
26351
26352
26353
26354
26355
26356
26357
26358
26359
26360
26361
26362for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
26363geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
26364strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
26365do
26366as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26367echo "$as_me:$LINENO: checking for $ac_func" >&5
26368echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26369if eval "test \"\${$as_ac_var+set}\" = set"; then
26370  echo $ECHO_N "(cached) $ECHO_C" >&6
26371else
26372  cat >conftest.$ac_ext <<_ACEOF
26373/* confdefs.h.  */
26374_ACEOF
26375cat confdefs.h >>conftest.$ac_ext
26376cat >>conftest.$ac_ext <<_ACEOF
26377/* end confdefs.h.  */
26378/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26379   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26380#define $ac_func innocuous_$ac_func
26381
26382/* System header to define __stub macros and hopefully few prototypes,
26383    which can conflict with char $ac_func (); below.
26384    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26385    <limits.h> exists even on freestanding compilers.  */
26386
26387#ifdef __STDC__
26388# include <limits.h>
26389#else
26390# include <assert.h>
26391#endif
26392
26393#undef $ac_func
26394
26395/* Override any gcc2 internal prototype to avoid an error.  */
26396#ifdef __cplusplus
26397extern "C"
26398{
26399#endif
26400/* We use char because int might match the return type of a gcc2
26401   builtin and then its argument prototype would still apply.  */
26402char $ac_func ();
26403/* The GNU C library defines this for functions which it implements
26404    to always fail with ENOSYS.  Some functions are actually named
26405    something starting with __ and the normal name is an alias.  */
26406#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26407choke me
26408#else
26409char (*f) () = $ac_func;
26410#endif
26411#ifdef __cplusplus
26412}
26413#endif
26414
26415int
26416main ()
26417{
26418return f != $ac_func;
26419  ;
26420  return 0;
26421}
26422_ACEOF
26423rm -f conftest.$ac_objext conftest$ac_exeext
26424if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26425  (eval $ac_link) 2>conftest.er1
26426  ac_status=$?
26427  grep -v '^ *+' conftest.er1 >conftest.err
26428  rm -f conftest.er1
26429  cat conftest.err >&5
26430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26431  (exit $ac_status); } &&
26432	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
26433  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26434  (eval $ac_try) 2>&5
26435  ac_status=$?
26436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26437  (exit $ac_status); }; } &&
26438	 { ac_try='test -s conftest$ac_exeext'
26439  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26440  (eval $ac_try) 2>&5
26441  ac_status=$?
26442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26443  (exit $ac_status); }; }; then
26444  eval "$as_ac_var=yes"
26445else
26446  echo "$as_me: failed program was:" >&5
26447sed 's/^/| /' conftest.$ac_ext >&5
26448
26449eval "$as_ac_var=no"
26450fi
26451rm -f conftest.err conftest.$ac_objext \
26452      conftest$ac_exeext conftest.$ac_ext
26453fi
26454echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26455echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26456if test `eval echo '${'$as_ac_var'}'` = yes; then
26457  cat >>confdefs.h <<_ACEOF
26458#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26459_ACEOF
26460
26461fi
26462done
26463
26464
26465
26466
26467
26468
26469
26470          am_save_CPPFLAGS="$CPPFLAGS"
26471
26472  for element in $INCICONV; do
26473    haveit=
26474    for x in $CPPFLAGS; do
26475
26476  acl_save_prefix="$prefix"
26477  prefix="$acl_final_prefix"
26478  acl_save_exec_prefix="$exec_prefix"
26479  exec_prefix="$acl_final_exec_prefix"
26480  eval x=\"$x\"
26481  exec_prefix="$acl_save_exec_prefix"
26482  prefix="$acl_save_prefix"
26483
26484      if test "X$x" = "X$element"; then
26485        haveit=yes
26486        break
26487      fi
26488    done
26489    if test -z "$haveit"; then
26490      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
26491    fi
26492  done
26493
26494
26495  echo "$as_me:$LINENO: checking for iconv" >&5
26496echo $ECHO_N "checking for iconv... $ECHO_C" >&6
26497if test "${am_cv_func_iconv+set}" = set; then
26498  echo $ECHO_N "(cached) $ECHO_C" >&6
26499else
26500
26501    am_cv_func_iconv="no, consider installing GNU libiconv"
26502    am_cv_lib_iconv=no
26503    cat >conftest.$ac_ext <<_ACEOF
26504/* confdefs.h.  */
26505_ACEOF
26506cat confdefs.h >>conftest.$ac_ext
26507cat >>conftest.$ac_ext <<_ACEOF
26508/* end confdefs.h.  */
26509#include <stdlib.h>
26510#include <iconv.h>
26511int
26512main ()
26513{
26514iconv_t cd = iconv_open("","");
26515       iconv(cd,NULL,NULL,NULL,NULL);
26516       iconv_close(cd);
26517  ;
26518  return 0;
26519}
26520_ACEOF
26521rm -f conftest.$ac_objext conftest$ac_exeext
26522if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26523  (eval $ac_link) 2>conftest.er1
26524  ac_status=$?
26525  grep -v '^ *+' conftest.er1 >conftest.err
26526  rm -f conftest.er1
26527  cat conftest.err >&5
26528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26529  (exit $ac_status); } &&
26530	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
26531  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26532  (eval $ac_try) 2>&5
26533  ac_status=$?
26534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26535  (exit $ac_status); }; } &&
26536	 { ac_try='test -s conftest$ac_exeext'
26537  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26538  (eval $ac_try) 2>&5
26539  ac_status=$?
26540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26541  (exit $ac_status); }; }; then
26542  am_cv_func_iconv=yes
26543else
26544  echo "$as_me: failed program was:" >&5
26545sed 's/^/| /' conftest.$ac_ext >&5
26546
26547fi
26548rm -f conftest.err conftest.$ac_objext \
26549      conftest$ac_exeext conftest.$ac_ext
26550    if test "$am_cv_func_iconv" != yes; then
26551      am_save_LIBS="$LIBS"
26552      LIBS="$LIBS $LIBICONV"
26553      cat >conftest.$ac_ext <<_ACEOF
26554/* confdefs.h.  */
26555_ACEOF
26556cat confdefs.h >>conftest.$ac_ext
26557cat >>conftest.$ac_ext <<_ACEOF
26558/* end confdefs.h.  */
26559#include <stdlib.h>
26560#include <iconv.h>
26561int
26562main ()
26563{
26564iconv_t cd = iconv_open("","");
26565         iconv(cd,NULL,NULL,NULL,NULL);
26566         iconv_close(cd);
26567  ;
26568  return 0;
26569}
26570_ACEOF
26571rm -f conftest.$ac_objext conftest$ac_exeext
26572if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26573  (eval $ac_link) 2>conftest.er1
26574  ac_status=$?
26575  grep -v '^ *+' conftest.er1 >conftest.err
26576  rm -f conftest.er1
26577  cat conftest.err >&5
26578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26579  (exit $ac_status); } &&
26580	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
26581  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26582  (eval $ac_try) 2>&5
26583  ac_status=$?
26584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26585  (exit $ac_status); }; } &&
26586	 { ac_try='test -s conftest$ac_exeext'
26587  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26588  (eval $ac_try) 2>&5
26589  ac_status=$?
26590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26591  (exit $ac_status); }; }; then
26592  am_cv_lib_iconv=yes
26593        am_cv_func_iconv=yes
26594else
26595  echo "$as_me: failed program was:" >&5
26596sed 's/^/| /' conftest.$ac_ext >&5
26597
26598fi
26599rm -f conftest.err conftest.$ac_objext \
26600      conftest$ac_exeext conftest.$ac_ext
26601      LIBS="$am_save_LIBS"
26602    fi
26603
26604fi
26605echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
26606echo "${ECHO_T}$am_cv_func_iconv" >&6
26607  if test "$am_cv_func_iconv" = yes; then
26608
26609cat >>confdefs.h <<\_ACEOF
26610#define HAVE_ICONV 1
26611_ACEOF
26612
26613  fi
26614  if test "$am_cv_lib_iconv" = yes; then
26615    echo "$as_me:$LINENO: checking how to link with libiconv" >&5
26616echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
26617    echo "$as_me:$LINENO: result: $LIBICONV" >&5
26618echo "${ECHO_T}$LIBICONV" >&6
26619  else
26620            CPPFLAGS="$am_save_CPPFLAGS"
26621    LIBICONV=
26622    LTLIBICONV=
26623  fi
26624
26625
26626
26627  if test "$am_cv_func_iconv" = yes; then
26628    echo "$as_me:$LINENO: checking for iconv declaration" >&5
26629echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
26630    if test "${am_cv_proto_iconv+set}" = set; then
26631  echo $ECHO_N "(cached) $ECHO_C" >&6
26632else
26633
26634      cat >conftest.$ac_ext <<_ACEOF
26635/* confdefs.h.  */
26636_ACEOF
26637cat confdefs.h >>conftest.$ac_ext
26638cat >>conftest.$ac_ext <<_ACEOF
26639/* end confdefs.h.  */
26640
26641#include <stdlib.h>
26642#include <iconv.h>
26643extern
26644#ifdef __cplusplus
26645"C"
26646#endif
26647#if defined(__STDC__) || defined(__cplusplus)
26648size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
26649#else
26650size_t iconv();
26651#endif
26652
26653int
26654main ()
26655{
26656
26657  ;
26658  return 0;
26659}
26660_ACEOF
26661rm -f conftest.$ac_objext
26662if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26663  (eval $ac_compile) 2>conftest.er1
26664  ac_status=$?
26665  grep -v '^ *+' conftest.er1 >conftest.err
26666  rm -f conftest.er1
26667  cat conftest.err >&5
26668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26669  (exit $ac_status); } &&
26670	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
26671  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26672  (eval $ac_try) 2>&5
26673  ac_status=$?
26674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26675  (exit $ac_status); }; } &&
26676	 { ac_try='test -s conftest.$ac_objext'
26677  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26678  (eval $ac_try) 2>&5
26679  ac_status=$?
26680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26681  (exit $ac_status); }; }; then
26682  am_cv_proto_iconv_arg1=""
26683else
26684  echo "$as_me: failed program was:" >&5
26685sed 's/^/| /' conftest.$ac_ext >&5
26686
26687am_cv_proto_iconv_arg1="const"
26688fi
26689rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26690      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
26691fi
26692
26693    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
26694    echo "$as_me:$LINENO: result: ${ac_t:-
26695         }$am_cv_proto_iconv" >&5
26696echo "${ECHO_T}${ac_t:-
26697         }$am_cv_proto_iconv" >&6
26698
26699cat >>confdefs.h <<_ACEOF
26700#define ICONV_CONST $am_cv_proto_iconv_arg1
26701_ACEOF
26702
26703  fi
26704
26705
26706  echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
26707echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
26708if test "${am_cv_langinfo_codeset+set}" = set; then
26709  echo $ECHO_N "(cached) $ECHO_C" >&6
26710else
26711  cat >conftest.$ac_ext <<_ACEOF
26712/* confdefs.h.  */
26713_ACEOF
26714cat confdefs.h >>conftest.$ac_ext
26715cat >>conftest.$ac_ext <<_ACEOF
26716/* end confdefs.h.  */
26717#include <langinfo.h>
26718int
26719main ()
26720{
26721char* cs = nl_langinfo(CODESET);
26722  ;
26723  return 0;
26724}
26725_ACEOF
26726rm -f conftest.$ac_objext conftest$ac_exeext
26727if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26728  (eval $ac_link) 2>conftest.er1
26729  ac_status=$?
26730  grep -v '^ *+' conftest.er1 >conftest.err
26731  rm -f conftest.er1
26732  cat conftest.err >&5
26733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26734  (exit $ac_status); } &&
26735	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
26736  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26737  (eval $ac_try) 2>&5
26738  ac_status=$?
26739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26740  (exit $ac_status); }; } &&
26741	 { ac_try='test -s conftest$ac_exeext'
26742  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26743  (eval $ac_try) 2>&5
26744  ac_status=$?
26745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26746  (exit $ac_status); }; }; then
26747  am_cv_langinfo_codeset=yes
26748else
26749  echo "$as_me: failed program was:" >&5
26750sed 's/^/| /' conftest.$ac_ext >&5
26751
26752am_cv_langinfo_codeset=no
26753fi
26754rm -f conftest.err conftest.$ac_objext \
26755      conftest$ac_exeext conftest.$ac_ext
26756
26757fi
26758echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
26759echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
26760  if test $am_cv_langinfo_codeset = yes; then
26761
26762cat >>confdefs.h <<\_ACEOF
26763#define HAVE_LANGINFO_CODESET 1
26764_ACEOF
26765
26766  fi
26767
26768  if test $ac_cv_header_locale_h = yes; then
26769
26770  echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
26771echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
26772if test "${am_cv_val_LC_MESSAGES+set}" = set; then
26773  echo $ECHO_N "(cached) $ECHO_C" >&6
26774else
26775  cat >conftest.$ac_ext <<_ACEOF
26776/* confdefs.h.  */
26777_ACEOF
26778cat confdefs.h >>conftest.$ac_ext
26779cat >>conftest.$ac_ext <<_ACEOF
26780/* end confdefs.h.  */
26781#include <locale.h>
26782int
26783main ()
26784{
26785return LC_MESSAGES
26786  ;
26787  return 0;
26788}
26789_ACEOF
26790rm -f conftest.$ac_objext conftest$ac_exeext
26791if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26792  (eval $ac_link) 2>conftest.er1
26793  ac_status=$?
26794  grep -v '^ *+' conftest.er1 >conftest.err
26795  rm -f conftest.er1
26796  cat conftest.err >&5
26797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26798  (exit $ac_status); } &&
26799	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
26800  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26801  (eval $ac_try) 2>&5
26802  ac_status=$?
26803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26804  (exit $ac_status); }; } &&
26805	 { ac_try='test -s conftest$ac_exeext'
26806  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26807  (eval $ac_try) 2>&5
26808  ac_status=$?
26809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26810  (exit $ac_status); }; }; then
26811  am_cv_val_LC_MESSAGES=yes
26812else
26813  echo "$as_me: failed program was:" >&5
26814sed 's/^/| /' conftest.$ac_ext >&5
26815
26816am_cv_val_LC_MESSAGES=no
26817fi
26818rm -f conftest.err conftest.$ac_objext \
26819      conftest$ac_exeext conftest.$ac_ext
26820fi
26821echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
26822echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
26823  if test $am_cv_val_LC_MESSAGES = yes; then
26824
26825cat >>confdefs.h <<\_ACEOF
26826#define HAVE_LC_MESSAGES 1
26827_ACEOF
26828
26829  fi
26830
26831  fi
26832
26833                      for ac_prog in bison
26834do
26835  # Extract the first word of "$ac_prog", so it can be a program name with args.
26836set dummy $ac_prog; ac_word=$2
26837echo "$as_me:$LINENO: checking for $ac_word" >&5
26838echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26839if test "${ac_cv_prog_INTLBISON+set}" = set; then
26840  echo $ECHO_N "(cached) $ECHO_C" >&6
26841else
26842  if test -n "$INTLBISON"; then
26843  ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
26844else
26845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26846for as_dir in $PATH
26847do
26848  IFS=$as_save_IFS
26849  test -z "$as_dir" && as_dir=.
26850  for ac_exec_ext in '' $ac_executable_extensions; do
26851  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26852    ac_cv_prog_INTLBISON="$ac_prog"
26853    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26854    break 2
26855  fi
26856done
26857done
26858
26859fi
26860fi
26861INTLBISON=$ac_cv_prog_INTLBISON
26862if test -n "$INTLBISON"; then
26863  echo "$as_me:$LINENO: result: $INTLBISON" >&5
26864echo "${ECHO_T}$INTLBISON" >&6
26865else
26866  echo "$as_me:$LINENO: result: no" >&5
26867echo "${ECHO_T}no" >&6
26868fi
26869
26870  test -n "$INTLBISON" && break
26871done
26872
26873  if test -z "$INTLBISON"; then
26874    ac_verc_fail=yes
26875  else
26876        echo "$as_me:$LINENO: checking version of bison" >&5
26877echo $ECHO_N "checking version of bison... $ECHO_C" >&6
26878    ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
26879    case $ac_prog_version in
26880      '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
26881      1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
26882         ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
26883      *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
26884    esac
26885    echo "$as_me:$LINENO: result: $ac_prog_version" >&5
26886echo "${ECHO_T}$ac_prog_version" >&6
26887  fi
26888  if test $ac_verc_fail = yes; then
26889    INTLBISON=:
26890  fi
26891
26892
26893
26894
26895
26896
26897
26898
26899
26900
26901
26902
26903
26904
26905
26906  echo "$as_me:$LINENO: checking whether NLS is requested" >&5
26907echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
26908    # Check whether --enable-nls or --disable-nls was given.
26909if test "${enable_nls+set}" = set; then
26910  enableval="$enable_nls"
26911  USE_NLS=$enableval
26912else
26913  USE_NLS=yes
26914fi;
26915  echo "$as_me:$LINENO: result: $USE_NLS" >&5
26916echo "${ECHO_T}$USE_NLS" >&6
26917
26918
26919
26920    BUILD_INCLUDED_LIBINTL=no
26921    USE_INCLUDED_LIBINTL=no
26922
26923  LIBINTL=
26924  LTLIBINTL=
26925  POSUB=
26926
26927    if test "$USE_NLS" = "yes"; then
26928    gt_use_preinstalled_gnugettext=no
26929
26930      echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
26931echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
26932
26933# Check whether --with-included-gettext or --without-included-gettext was given.
26934if test "${with_included_gettext+set}" = set; then
26935  withval="$with_included_gettext"
26936  nls_cv_force_use_gnu_gettext=$withval
26937else
26938  nls_cv_force_use_gnu_gettext=no
26939fi;
26940      echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
26941echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
26942
26943      nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
26944      if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
26945
26946
26947
26948
26949
26950
26951        echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
26952echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
26953if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
26954  echo $ECHO_N "(cached) $ECHO_C" >&6
26955else
26956  cat >conftest.$ac_ext <<_ACEOF
26957/* confdefs.h.  */
26958_ACEOF
26959cat confdefs.h >>conftest.$ac_ext
26960cat >>conftest.$ac_ext <<_ACEOF
26961/* end confdefs.h.  */
26962#include <libintl.h>
26963extern int _nl_msg_cat_cntr;
26964extern int *_nl_domain_bindings;
26965int
26966main ()
26967{
26968bindtextdomain ("", "");
26969return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
26970  ;
26971  return 0;
26972}
26973_ACEOF
26974rm -f conftest.$ac_objext conftest$ac_exeext
26975if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26976  (eval $ac_link) 2>conftest.er1
26977  ac_status=$?
26978  grep -v '^ *+' conftest.er1 >conftest.err
26979  rm -f conftest.er1
26980  cat conftest.err >&5
26981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26982  (exit $ac_status); } &&
26983	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
26984  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26985  (eval $ac_try) 2>&5
26986  ac_status=$?
26987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26988  (exit $ac_status); }; } &&
26989	 { ac_try='test -s conftest$ac_exeext'
26990  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26991  (eval $ac_try) 2>&5
26992  ac_status=$?
26993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26994  (exit $ac_status); }; }; then
26995  gt_cv_func_gnugettext1_libc=yes
26996else
26997  echo "$as_me: failed program was:" >&5
26998sed 's/^/| /' conftest.$ac_ext >&5
26999
27000gt_cv_func_gnugettext1_libc=no
27001fi
27002rm -f conftest.err conftest.$ac_objext \
27003      conftest$ac_exeext conftest.$ac_ext
27004fi
27005echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
27006echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
27007
27008        if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
27009
27010
27011
27012    use_additional=yes
27013
27014  acl_save_prefix="$prefix"
27015  prefix="$acl_final_prefix"
27016  acl_save_exec_prefix="$exec_prefix"
27017  exec_prefix="$acl_final_exec_prefix"
27018
27019    eval additional_includedir=\"$includedir\"
27020    eval additional_libdir=\"$libdir\"
27021
27022  exec_prefix="$acl_save_exec_prefix"
27023  prefix="$acl_save_prefix"
27024
27025
27026# Check whether --with-libintl-prefix or --without-libintl-prefix was given.
27027if test "${with_libintl_prefix+set}" = set; then
27028  withval="$with_libintl_prefix"
27029
27030    if test "X$withval" = "Xno"; then
27031      use_additional=no
27032    else
27033      if test "X$withval" = "X"; then
27034
27035  acl_save_prefix="$prefix"
27036  prefix="$acl_final_prefix"
27037  acl_save_exec_prefix="$exec_prefix"
27038  exec_prefix="$acl_final_exec_prefix"
27039
27040          eval additional_includedir=\"$includedir\"
27041          eval additional_libdir=\"$libdir\"
27042
27043  exec_prefix="$acl_save_exec_prefix"
27044  prefix="$acl_save_prefix"
27045
27046      else
27047        additional_includedir="$withval/include"
27048        additional_libdir="$withval/lib"
27049      fi
27050    fi
27051
27052fi;
27053      LIBINTL=
27054  LTLIBINTL=
27055  INCINTL=
27056  rpathdirs=
27057  ltrpathdirs=
27058  names_already_handled=
27059  names_next_round='intl '
27060  while test -n "$names_next_round"; do
27061    names_this_round="$names_next_round"
27062    names_next_round=
27063    for name in $names_this_round; do
27064      already_handled=
27065      for n in $names_already_handled; do
27066        if test "$n" = "$name"; then
27067          already_handled=yes
27068          break
27069        fi
27070      done
27071      if test -z "$already_handled"; then
27072        names_already_handled="$names_already_handled $name"
27073                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
27074        eval value=\"\$HAVE_LIB$uppername\"
27075        if test -n "$value"; then
27076          if test "$value" = yes; then
27077            eval value=\"\$LIB$uppername\"
27078            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
27079            eval value=\"\$LTLIB$uppername\"
27080            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
27081          else
27082                                    :
27083          fi
27084        else
27085                              found_dir=
27086          found_la=
27087          found_so=
27088          found_a=
27089          if test $use_additional = yes; then
27090            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
27091              found_dir="$additional_libdir"
27092              found_so="$additional_libdir/lib$name.$shlibext"
27093              if test -f "$additional_libdir/lib$name.la"; then
27094                found_la="$additional_libdir/lib$name.la"
27095              fi
27096            else
27097              if test -f "$additional_libdir/lib$name.$libext"; then
27098                found_dir="$additional_libdir"
27099                found_a="$additional_libdir/lib$name.$libext"
27100                if test -f "$additional_libdir/lib$name.la"; then
27101                  found_la="$additional_libdir/lib$name.la"
27102                fi
27103              fi
27104            fi
27105          fi
27106          if test "X$found_dir" = "X"; then
27107            for x in $LDFLAGS $LTLIBINTL; do
27108
27109  acl_save_prefix="$prefix"
27110  prefix="$acl_final_prefix"
27111  acl_save_exec_prefix="$exec_prefix"
27112  exec_prefix="$acl_final_exec_prefix"
27113  eval x=\"$x\"
27114  exec_prefix="$acl_save_exec_prefix"
27115  prefix="$acl_save_prefix"
27116
27117              case "$x" in
27118                -L*)
27119                  dir=`echo "X$x" | sed -e 's/^X-L//'`
27120                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
27121                    found_dir="$dir"
27122                    found_so="$dir/lib$name.$shlibext"
27123                    if test -f "$dir/lib$name.la"; then
27124                      found_la="$dir/lib$name.la"
27125                    fi
27126                  else
27127                    if test -f "$dir/lib$name.$libext"; then
27128                      found_dir="$dir"
27129                      found_a="$dir/lib$name.$libext"
27130                      if test -f "$dir/lib$name.la"; then
27131                        found_la="$dir/lib$name.la"
27132                      fi
27133                    fi
27134                  fi
27135                  ;;
27136              esac
27137              if test "X$found_dir" != "X"; then
27138                break
27139              fi
27140            done
27141          fi
27142          if test "X$found_dir" != "X"; then
27143                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
27144            if test "X$found_so" != "X"; then
27145                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
27146                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
27147              else
27148                                                                                haveit=
27149                for x in $ltrpathdirs; do
27150                  if test "X$x" = "X$found_dir"; then
27151                    haveit=yes
27152                    break
27153                  fi
27154                done
27155                if test -z "$haveit"; then
27156                  ltrpathdirs="$ltrpathdirs $found_dir"
27157                fi
27158                                if test "$hardcode_direct" = yes; then
27159                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
27160                else
27161                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
27162                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
27163                                                            haveit=
27164                    for x in $rpathdirs; do
27165                      if test "X$x" = "X$found_dir"; then
27166                        haveit=yes
27167                        break
27168                      fi
27169                    done
27170                    if test -z "$haveit"; then
27171                      rpathdirs="$rpathdirs $found_dir"
27172                    fi
27173                  else
27174                                                                                haveit=
27175                    for x in $LDFLAGS $LIBINTL; do
27176
27177  acl_save_prefix="$prefix"
27178  prefix="$acl_final_prefix"
27179  acl_save_exec_prefix="$exec_prefix"
27180  exec_prefix="$acl_final_exec_prefix"
27181  eval x=\"$x\"
27182  exec_prefix="$acl_save_exec_prefix"
27183  prefix="$acl_save_prefix"
27184
27185                      if test "X$x" = "X-L$found_dir"; then
27186                        haveit=yes
27187                        break
27188                      fi
27189                    done
27190                    if test -z "$haveit"; then
27191                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
27192                    fi
27193                    if test "$hardcode_minus_L" != no; then
27194                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
27195                    else
27196                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
27197                    fi
27198                  fi
27199                fi
27200              fi
27201            else
27202              if test "X$found_a" != "X"; then
27203                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
27204              else
27205                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
27206              fi
27207            fi
27208                        additional_includedir=
27209            case "$found_dir" in
27210              */lib | */lib/)
27211                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
27212                additional_includedir="$basedir/include"
27213                ;;
27214            esac
27215            if test "X$additional_includedir" != "X"; then
27216                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
27217                haveit=
27218                if test "X$additional_includedir" = "X/usr/local/include"; then
27219                  if test -n "$GCC"; then
27220                    case $host_os in
27221                      linux*) haveit=yes;;
27222                    esac
27223                  fi
27224                fi
27225                if test -z "$haveit"; then
27226                  for x in $CPPFLAGS $INCINTL; do
27227
27228  acl_save_prefix="$prefix"
27229  prefix="$acl_final_prefix"
27230  acl_save_exec_prefix="$exec_prefix"
27231  exec_prefix="$acl_final_exec_prefix"
27232  eval x=\"$x\"
27233  exec_prefix="$acl_save_exec_prefix"
27234  prefix="$acl_save_prefix"
27235
27236                    if test "X$x" = "X-I$additional_includedir"; then
27237                      haveit=yes
27238                      break
27239                    fi
27240                  done
27241                  if test -z "$haveit"; then
27242                    if test -d "$additional_includedir"; then
27243                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
27244                    fi
27245                  fi
27246                fi
27247              fi
27248            fi
27249                        if test -n "$found_la"; then
27250                                                        save_libdir="$libdir"
27251              case "$found_la" in
27252                */* | *\\*) . "$found_la" ;;
27253                *) . "./$found_la" ;;
27254              esac
27255              libdir="$save_libdir"
27256                            for dep in $dependency_libs; do
27257                case "$dep" in
27258                  -L*)
27259                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
27260                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
27261                      haveit=
27262                      if test "X$additional_libdir" = "X/usr/local/lib"; then
27263                        if test -n "$GCC"; then
27264                          case $host_os in
27265                            linux*) haveit=yes;;
27266                          esac
27267                        fi
27268                      fi
27269                      if test -z "$haveit"; then
27270                        haveit=
27271                        for x in $LDFLAGS $LIBINTL; do
27272
27273  acl_save_prefix="$prefix"
27274  prefix="$acl_final_prefix"
27275  acl_save_exec_prefix="$exec_prefix"
27276  exec_prefix="$acl_final_exec_prefix"
27277  eval x=\"$x\"
27278  exec_prefix="$acl_save_exec_prefix"
27279  prefix="$acl_save_prefix"
27280
27281                          if test "X$x" = "X-L$additional_libdir"; then
27282                            haveit=yes
27283                            break
27284                          fi
27285                        done
27286                        if test -z "$haveit"; then
27287                          if test -d "$additional_libdir"; then
27288                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
27289                          fi
27290                        fi
27291                        haveit=
27292                        for x in $LDFLAGS $LTLIBINTL; do
27293
27294  acl_save_prefix="$prefix"
27295  prefix="$acl_final_prefix"
27296  acl_save_exec_prefix="$exec_prefix"
27297  exec_prefix="$acl_final_exec_prefix"
27298  eval x=\"$x\"
27299  exec_prefix="$acl_save_exec_prefix"
27300  prefix="$acl_save_prefix"
27301
27302                          if test "X$x" = "X-L$additional_libdir"; then
27303                            haveit=yes
27304                            break
27305                          fi
27306                        done
27307                        if test -z "$haveit"; then
27308                          if test -d "$additional_libdir"; then
27309                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
27310                          fi
27311                        fi
27312                      fi
27313                    fi
27314                    ;;
27315                  -R*)
27316                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
27317                    if test "$enable_rpath" != no; then
27318                                                                  haveit=
27319                      for x in $rpathdirs; do
27320                        if test "X$x" = "X$dir"; then
27321                          haveit=yes
27322                          break
27323                        fi
27324                      done
27325                      if test -z "$haveit"; then
27326                        rpathdirs="$rpathdirs $dir"
27327                      fi
27328                                                                  haveit=
27329                      for x in $ltrpathdirs; do
27330                        if test "X$x" = "X$dir"; then
27331                          haveit=yes
27332                          break
27333                        fi
27334                      done
27335                      if test -z "$haveit"; then
27336                        ltrpathdirs="$ltrpathdirs $dir"
27337                      fi
27338                    fi
27339                    ;;
27340                  -l*)
27341                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
27342                    ;;
27343                  *.la)
27344                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
27345                    ;;
27346                  *)
27347                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
27348                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
27349                    ;;
27350                esac
27351              done
27352            fi
27353          else
27354                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
27355            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
27356          fi
27357        fi
27358      fi
27359    done
27360  done
27361  if test "X$rpathdirs" != "X"; then
27362    if test -n "$hardcode_libdir_separator"; then
27363                        alldirs=
27364      for found_dir in $rpathdirs; do
27365        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
27366      done
27367            acl_save_libdir="$libdir"
27368      libdir="$alldirs"
27369      eval flag=\"$hardcode_libdir_flag_spec\"
27370      libdir="$acl_save_libdir"
27371      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
27372    else
27373            for found_dir in $rpathdirs; do
27374        acl_save_libdir="$libdir"
27375        libdir="$found_dir"
27376        eval flag=\"$hardcode_libdir_flag_spec\"
27377        libdir="$acl_save_libdir"
27378        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
27379      done
27380    fi
27381  fi
27382  if test "X$ltrpathdirs" != "X"; then
27383            for found_dir in $ltrpathdirs; do
27384      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
27385    done
27386  fi
27387
27388          echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
27389echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
27390if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
27391  echo $ECHO_N "(cached) $ECHO_C" >&6
27392else
27393  gt_save_CPPFLAGS="$CPPFLAGS"
27394            CPPFLAGS="$CPPFLAGS $INCINTL"
27395            gt_save_LIBS="$LIBS"
27396            LIBS="$LIBS $LIBINTL"
27397                        cat >conftest.$ac_ext <<_ACEOF
27398/* confdefs.h.  */
27399_ACEOF
27400cat confdefs.h >>conftest.$ac_ext
27401cat >>conftest.$ac_ext <<_ACEOF
27402/* end confdefs.h.  */
27403#include <libintl.h>
27404extern int _nl_msg_cat_cntr;
27405extern
27406#ifdef __cplusplus
27407"C"
27408#endif
27409const char *_nl_expand_alias ();
27410int
27411main ()
27412{
27413bindtextdomain ("", "");
27414return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
27415  ;
27416  return 0;
27417}
27418_ACEOF
27419rm -f conftest.$ac_objext conftest$ac_exeext
27420if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27421  (eval $ac_link) 2>conftest.er1
27422  ac_status=$?
27423  grep -v '^ *+' conftest.er1 >conftest.err
27424  rm -f conftest.er1
27425  cat conftest.err >&5
27426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27427  (exit $ac_status); } &&
27428	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
27429  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27430  (eval $ac_try) 2>&5
27431  ac_status=$?
27432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27433  (exit $ac_status); }; } &&
27434	 { ac_try='test -s conftest$ac_exeext'
27435  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27436  (eval $ac_try) 2>&5
27437  ac_status=$?
27438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27439  (exit $ac_status); }; }; then
27440  gt_cv_func_gnugettext1_libintl=yes
27441else
27442  echo "$as_me: failed program was:" >&5
27443sed 's/^/| /' conftest.$ac_ext >&5
27444
27445gt_cv_func_gnugettext1_libintl=no
27446fi
27447rm -f conftest.err conftest.$ac_objext \
27448      conftest$ac_exeext conftest.$ac_ext
27449                        if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
27450              LIBS="$LIBS $LIBICONV"
27451              cat >conftest.$ac_ext <<_ACEOF
27452/* confdefs.h.  */
27453_ACEOF
27454cat confdefs.h >>conftest.$ac_ext
27455cat >>conftest.$ac_ext <<_ACEOF
27456/* end confdefs.h.  */
27457#include <libintl.h>
27458extern int _nl_msg_cat_cntr;
27459extern
27460#ifdef __cplusplus
27461"C"
27462#endif
27463const char *_nl_expand_alias ();
27464int
27465main ()
27466{
27467bindtextdomain ("", "");
27468return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
27469  ;
27470  return 0;
27471}
27472_ACEOF
27473rm -f conftest.$ac_objext conftest$ac_exeext
27474if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27475  (eval $ac_link) 2>conftest.er1
27476  ac_status=$?
27477  grep -v '^ *+' conftest.er1 >conftest.err
27478  rm -f conftest.er1
27479  cat conftest.err >&5
27480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27481  (exit $ac_status); } &&
27482	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
27483  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27484  (eval $ac_try) 2>&5
27485  ac_status=$?
27486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27487  (exit $ac_status); }; } &&
27488	 { ac_try='test -s conftest$ac_exeext'
27489  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27490  (eval $ac_try) 2>&5
27491  ac_status=$?
27492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27493  (exit $ac_status); }; }; then
27494  LIBINTL="$LIBINTL $LIBICONV"
27495                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
27496                gt_cv_func_gnugettext1_libintl=yes
27497
27498else
27499  echo "$as_me: failed program was:" >&5
27500sed 's/^/| /' conftest.$ac_ext >&5
27501
27502fi
27503rm -f conftest.err conftest.$ac_objext \
27504      conftest$ac_exeext conftest.$ac_ext
27505            fi
27506            CPPFLAGS="$gt_save_CPPFLAGS"
27507            LIBS="$gt_save_LIBS"
27508fi
27509echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
27510echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
27511        fi
27512
27513                                        if test "$gt_cv_func_gnugettext1_libc" = "yes" \
27514           || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
27515                && test "$PACKAGE" != gettext; }; then
27516          gt_use_preinstalled_gnugettext=yes
27517        else
27518                    LIBINTL=
27519          LTLIBINTL=
27520          INCINTL=
27521        fi
27522
27523
27524        if test "$gt_use_preinstalled_gnugettext" != "yes"; then
27525                              nls_cv_use_gnu_gettext=yes
27526        fi
27527      fi
27528
27529      if test "$nls_cv_use_gnu_gettext" = "yes"; then
27530                INTLOBJS="\$(GETTOBJS)"
27531        BUILD_INCLUDED_LIBINTL=yes
27532        USE_INCLUDED_LIBINTL=yes
27533        LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
27534        LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
27535        LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
27536      fi
27537
27538      if test "$gt_use_preinstalled_gnugettext" = "yes" \
27539         || test "$nls_cv_use_gnu_gettext" = "yes"; then
27540                CATOBJEXT=.gmo
27541      fi
27542
27543
27544    if test "$gt_use_preinstalled_gnugettext" = "yes" \
27545       || test "$nls_cv_use_gnu_gettext" = "yes"; then
27546
27547cat >>confdefs.h <<\_ACEOF
27548#define ENABLE_NLS 1
27549_ACEOF
27550
27551    else
27552      USE_NLS=no
27553    fi
27554  fi
27555
27556  if test "$USE_NLS" = "yes"; then
27557
27558    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
27559      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
27560        echo "$as_me:$LINENO: checking how to link with libintl" >&5
27561echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
27562        echo "$as_me:$LINENO: result: $LIBINTL" >&5
27563echo "${ECHO_T}$LIBINTL" >&6
27564
27565  for element in $INCINTL; do
27566    haveit=
27567    for x in $CPPFLAGS; do
27568
27569  acl_save_prefix="$prefix"
27570  prefix="$acl_final_prefix"
27571  acl_save_exec_prefix="$exec_prefix"
27572  exec_prefix="$acl_final_exec_prefix"
27573  eval x=\"$x\"
27574  exec_prefix="$acl_save_exec_prefix"
27575  prefix="$acl_save_prefix"
27576
27577      if test "X$x" = "X$element"; then
27578        haveit=yes
27579        break
27580      fi
27581    done
27582    if test -z "$haveit"; then
27583      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
27584    fi
27585  done
27586
27587      fi
27588
27589
27590cat >>confdefs.h <<\_ACEOF
27591#define HAVE_GETTEXT 1
27592_ACEOF
27593
27594
27595cat >>confdefs.h <<\_ACEOF
27596#define HAVE_DCGETTEXT 1
27597_ACEOF
27598
27599    fi
27600
27601        POSUB=po
27602  fi
27603
27604
27605            if test "$PACKAGE" = gettext; then
27606      BUILD_INCLUDED_LIBINTL=yes
27607    fi
27608
27609
27610
27611
27612
27613
27614        nls_cv_header_intl=
27615    nls_cv_header_libgt=
27616
27617        DATADIRNAME=share
27618
27619
27620        INSTOBJEXT=.mo
27621
27622
27623        GENCAT=gencat
27624
27625
27626        INTL_LIBTOOL_SUFFIX_PREFIX=
27627
27628
27629
27630    INTLLIBS="$LIBINTL"
27631
27632
27633
27634
27635
27636
27637
27638        LOCALEDIR='${prefix}/${DATADIRNAME}/locale'
27639        LOCALEDIR=`(
27640            test "x$prefix" = xNONE && prefix="$ac_default_prefix"
27641            test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
27642            eval echo \""$LOCALEDIR"\"
27643        )`
27644
27645cat >>confdefs.h <<_ACEOF
27646#define LOCALEDIR "$LOCALEDIR"
27647_ACEOF
27648
27649
27650
27651LIBS="$LIBS $LIBINTL"
27652
27653
27654
27655
27656                                                  ac_config_files="$ac_config_files Makefile intl/Makefile po/Makefile.in m4/Makefile modules/Makefile"
27657
27658
27659
27660cat >confcache <<\_ACEOF
27661# This file is a shell script that caches the results of configure
27662# tests run on this system so they can be shared between configure
27663# scripts and configure runs, see configure's option --config-cache.
27664# It is not useful on other systems.  If it contains results you don't
27665# want to keep, you may remove or edit it.
27666#
27667# config.status only pays attention to the cache file if you give it
27668# the --recheck option to rerun configure.
27669#
27670# `ac_cv_env_foo' variables (set or unset) will be overridden when
27671# loading this file, other *unset* `ac_cv_foo' will be assigned the
27672# following values.
27673
27674_ACEOF
27675
27676# The following way of writing the cache mishandles newlines in values,
27677# but we know of no workaround that is simple, portable, and efficient.
27678# So, don't put newlines in cache variables' values.
27679# Ultrix sh set writes to stderr and can't be redirected directly,
27680# and sets the high bit in the cache file unless we assign to the vars.
27681{
27682  (set) 2>&1 |
27683    case `(ac_space=' '; set | grep ac_space) 2>&1` in
27684    *ac_space=\ *)
27685      # `set' does not quote correctly, so add quotes (double-quote
27686      # substitution turns \\\\ into \\, and sed turns \\ into \).
27687      sed -n \
27688	"s/'/'\\\\''/g;
27689	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27690      ;;
27691    *)
27692      # `set' quotes correctly as required by POSIX, so do not add quotes.
27693      sed -n \
27694	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
27695      ;;
27696    esac;
27697} |
27698  sed '
27699     t clear
27700     : clear
27701     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27702     t end
27703     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27704     : end' >>confcache
27705if diff $cache_file confcache >/dev/null 2>&1; then :; else
27706  if test -w $cache_file; then
27707    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
27708    cat confcache >$cache_file
27709  else
27710    echo "not updating unwritable cache $cache_file"
27711  fi
27712fi
27713rm -f confcache
27714
27715test "x$prefix" = xNONE && prefix=$ac_default_prefix
27716# Let make expand exec_prefix.
27717test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27718
27719# VPATH may cause trouble with some makes, so we remove $(srcdir),
27720# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27721# trailing colons and then remove the whole line if VPATH becomes empty
27722# (actually we leave an empty line to preserve line numbers).
27723if test "x$srcdir" = x.; then
27724  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
27725s/:*\$(srcdir):*/:/;
27726s/:*\${srcdir}:*/:/;
27727s/:*@srcdir@:*/:/;
27728s/^\([^=]*=[	 ]*\):*/\1/;
27729s/:*$//;
27730s/^[^=]*=[	 ]*$//;
27731}'
27732fi
27733
27734DEFS=-DHAVE_CONFIG_H
27735
27736ac_libobjs=
27737ac_ltlibobjs=
27738for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27739  # 1. Remove the extension, and $U if already installed.
27740  ac_i=`echo "$ac_i" |
27741	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
27742  # 2. Add them.
27743  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
27744  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
27745done
27746LIBOBJS=$ac_libobjs
27747
27748LTLIBOBJS=$ac_ltlibobjs
27749
27750
27751if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27752  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
27753Usually this means the macro was only invoked conditionally." >&5
27754echo "$as_me: error: conditional \"AMDEP\" was never defined.
27755Usually this means the macro was only invoked conditionally." >&2;}
27756   { (exit 1); exit 1; }; }
27757fi
27758if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27759  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
27760Usually this means the macro was only invoked conditionally." >&5
27761echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
27762Usually this means the macro was only invoked conditionally." >&2;}
27763   { (exit 1); exit 1; }; }
27764fi
27765if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27766  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
27767Usually this means the macro was only invoked conditionally." >&5
27768echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
27769Usually this means the macro was only invoked conditionally." >&2;}
27770   { (exit 1); exit 1; }; }
27771fi
27772if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
27773  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
27774Usually this means the macro was only invoked conditionally." >&5
27775echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
27776Usually this means the macro was only invoked conditionally." >&2;}
27777   { (exit 1); exit 1; }; }
27778fi
27779
27780: ${CONFIG_STATUS=./config.status}
27781ac_clean_files_save=$ac_clean_files
27782ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27783{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
27784echo "$as_me: creating $CONFIG_STATUS" >&6;}
27785cat >$CONFIG_STATUS <<_ACEOF
27786#! $SHELL
27787# Generated by $as_me.
27788# Run this file to recreate the current configuration.
27789# Compiler output produced by configure, useful for debugging
27790# configure, is in config.log if it exists.
27791
27792debug=false
27793ac_cs_recheck=false
27794ac_cs_silent=false
27795SHELL=\${CONFIG_SHELL-$SHELL}
27796_ACEOF
27797
27798cat >>$CONFIG_STATUS <<\_ACEOF
27799## --------------------- ##
27800## M4sh Initialization.  ##
27801## --------------------- ##
27802
27803# Be Bourne compatible
27804if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27805  emulate sh
27806  NULLCMD=:
27807  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
27808  # is contrary to our usage.  Disable this feature.
27809  alias -g '${1+"$@"}'='"$@"'
27810elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
27811  set -o posix
27812fi
27813DUALCASE=1; export DUALCASE # for MKS sh
27814
27815# Support unset when possible.
27816if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27817  as_unset=unset
27818else
27819  as_unset=false
27820fi
27821
27822
27823# Work around bugs in pre-3.0 UWIN ksh.
27824$as_unset ENV MAIL MAILPATH
27825PS1='$ '
27826PS2='> '
27827PS4='+ '
27828
27829# NLS nuisances.
27830for as_var in \
27831  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
27832  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
27833  LC_TELEPHONE LC_TIME
27834do
27835  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
27836    eval $as_var=C; export $as_var
27837  else
27838    $as_unset $as_var
27839  fi
27840done
27841
27842# Required to use basename.
27843if expr a : '\(a\)' >/dev/null 2>&1; then
27844  as_expr=expr
27845else
27846  as_expr=false
27847fi
27848
27849if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
27850  as_basename=basename
27851else
27852  as_basename=false
27853fi
27854
27855
27856# Name of the executable.
27857as_me=`$as_basename "$0" ||
27858$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27859	 X"$0" : 'X\(//\)$' \| \
27860	 X"$0" : 'X\(/\)$' \| \
27861	 .     : '\(.\)' 2>/dev/null ||
27862echo X/"$0" |
27863    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
27864  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
27865  	  /^X\/\(\/\).*/{ s//\1/; q; }
27866  	  s/.*/./; q'`
27867
27868
27869# PATH needs CR, and LINENO needs CR and PATH.
27870# Avoid depending upon Character Ranges.
27871as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27872as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27873as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27874as_cr_digits='0123456789'
27875as_cr_alnum=$as_cr_Letters$as_cr_digits
27876
27877# The user is always right.
27878if test "${PATH_SEPARATOR+set}" != set; then
27879  echo "#! /bin/sh" >conf$$.sh
27880  echo  "exit 0"   >>conf$$.sh
27881  chmod +x conf$$.sh
27882  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
27883    PATH_SEPARATOR=';'
27884  else
27885    PATH_SEPARATOR=:
27886  fi
27887  rm -f conf$$.sh
27888fi
27889
27890
27891  as_lineno_1=$LINENO
27892  as_lineno_2=$LINENO
27893  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
27894  test "x$as_lineno_1" != "x$as_lineno_2" &&
27895  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
27896  # Find who we are.  Look in the path if we contain no path at all
27897  # relative or not.
27898  case $0 in
27899    *[\\/]* ) as_myself=$0 ;;
27900    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27901for as_dir in $PATH
27902do
27903  IFS=$as_save_IFS
27904  test -z "$as_dir" && as_dir=.
27905  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27906done
27907
27908       ;;
27909  esac
27910  # We did not find ourselves, most probably we were run as `sh COMMAND'
27911  # in which case we are not to be found in the path.
27912  if test "x$as_myself" = x; then
27913    as_myself=$0
27914  fi
27915  if test ! -f "$as_myself"; then
27916    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
27917echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
27918   { (exit 1); exit 1; }; }
27919  fi
27920  case $CONFIG_SHELL in
27921  '')
27922    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27923for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
27924do
27925  IFS=$as_save_IFS
27926  test -z "$as_dir" && as_dir=.
27927  for as_base in sh bash ksh sh5; do
27928	 case $as_dir in
27929	 /*)
27930	   if ("$as_dir/$as_base" -c '
27931  as_lineno_1=$LINENO
27932  as_lineno_2=$LINENO
27933  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
27934  test "x$as_lineno_1" != "x$as_lineno_2" &&
27935  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
27936	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
27937	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
27938	     CONFIG_SHELL=$as_dir/$as_base
27939	     export CONFIG_SHELL
27940	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
27941	   fi;;
27942	 esac
27943       done
27944done
27945;;
27946  esac
27947
27948  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27949  # uniformly replaced by the line number.  The first 'sed' inserts a
27950  # line-number line before each line; the second 'sed' does the real
27951  # work.  The second script uses 'N' to pair each line-number line
27952  # with the numbered line, and appends trailing '-' during
27953  # substitution so that $LINENO is not a special case at line end.
27954  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27955  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
27956  sed '=' <$as_myself |
27957    sed '
27958      N
27959      s,$,-,
27960      : loop
27961      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
27962      t loop
27963      s,-$,,
27964      s,^['$as_cr_digits']*\n,,
27965    ' >$as_me.lineno &&
27966  chmod +x $as_me.lineno ||
27967    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
27968echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
27969   { (exit 1); exit 1; }; }
27970
27971  # Don't try to exec as it changes $[0], causing all sort of problems
27972  # (the dirname of $[0] is not the place where we might find the
27973  # original and so on.  Autoconf is especially sensible to this).
27974  . ./$as_me.lineno
27975  # Exit status is that of the last command.
27976  exit
27977}
27978
27979
27980case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
27981  *c*,-n*) ECHO_N= ECHO_C='
27982' ECHO_T='	' ;;
27983  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
27984  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
27985esac
27986
27987if expr a : '\(a\)' >/dev/null 2>&1; then
27988  as_expr=expr
27989else
27990  as_expr=false
27991fi
27992
27993rm -f conf$$ conf$$.exe conf$$.file
27994echo >conf$$.file
27995if ln -s conf$$.file conf$$ 2>/dev/null; then
27996  # We could just check for DJGPP; but this test a) works b) is more generic
27997  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
27998  if test -f conf$$.exe; then
27999    # Don't use ln at all; we don't have any links
28000    as_ln_s='cp -p'
28001  else
28002    as_ln_s='ln -s'
28003  fi
28004elif ln conf$$.file conf$$ 2>/dev/null; then
28005  as_ln_s=ln
28006else
28007  as_ln_s='cp -p'
28008fi
28009rm -f conf$$ conf$$.exe conf$$.file
28010
28011if mkdir -p . 2>/dev/null; then
28012  as_mkdir_p=:
28013else
28014  test -d ./-p && rmdir ./-p
28015  as_mkdir_p=false
28016fi
28017
28018as_executable_p="test -f"
28019
28020# Sed expression to map a string onto a valid CPP name.
28021as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28022
28023# Sed expression to map a string onto a valid variable name.
28024as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28025
28026
28027# IFS
28028# We need space, tab and new line, in precisely that order.
28029as_nl='
28030'
28031IFS=" 	$as_nl"
28032
28033# CDPATH.
28034$as_unset CDPATH
28035
28036exec 6>&1
28037
28038# Open the log real soon, to keep \$[0] and so on meaningful, and to
28039# report actual input values of CONFIG_FILES etc. instead of their
28040# values after options handling.  Logging --version etc. is OK.
28041exec 5>>config.log
28042{
28043  echo
28044  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28045## Running $as_me. ##
28046_ASBOX
28047} >&5
28048cat >&5 <<_CSEOF
28049
28050This file was extended by Lincity $as_me 1.13.1, which was
28051generated by GNU Autoconf 2.59.  Invocation command line was
28052
28053  CONFIG_FILES    = $CONFIG_FILES
28054  CONFIG_HEADERS  = $CONFIG_HEADERS
28055  CONFIG_LINKS    = $CONFIG_LINKS
28056  CONFIG_COMMANDS = $CONFIG_COMMANDS
28057  $ $0 $@
28058
28059_CSEOF
28060echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
28061echo >&5
28062_ACEOF
28063
28064# Files that config.status was made for.
28065if test -n "$ac_config_files"; then
28066  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
28067fi
28068
28069if test -n "$ac_config_headers"; then
28070  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
28071fi
28072
28073if test -n "$ac_config_links"; then
28074  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
28075fi
28076
28077if test -n "$ac_config_commands"; then
28078  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
28079fi
28080
28081cat >>$CONFIG_STATUS <<\_ACEOF
28082
28083ac_cs_usage="\
28084\`$as_me' instantiates files from templates according to the
28085current configuration.
28086
28087Usage: $0 [OPTIONS] [FILE]...
28088
28089  -h, --help       print this help, then exit
28090  -V, --version    print version number, then exit
28091  -q, --quiet      do not print progress messages
28092  -d, --debug      don't remove temporary files
28093      --recheck    update $as_me by reconfiguring in the same conditions
28094  --file=FILE[:TEMPLATE]
28095		   instantiate the configuration file FILE
28096  --header=FILE[:TEMPLATE]
28097		   instantiate the configuration header FILE
28098
28099Configuration files:
28100$config_files
28101
28102Configuration headers:
28103$config_headers
28104
28105Configuration commands:
28106$config_commands
28107
28108Report bugs to <bug-autoconf@gnu.org>."
28109_ACEOF
28110
28111cat >>$CONFIG_STATUS <<_ACEOF
28112ac_cs_version="\\
28113Lincity config.status 1.13.1
28114configured by $0, generated by GNU Autoconf 2.59,
28115  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
28116
28117Copyright (C) 2003 Free Software Foundation, Inc.
28118This config.status script is free software; the Free Software Foundation
28119gives unlimited permission to copy, distribute and modify it."
28120srcdir=$srcdir
28121INSTALL="$INSTALL"
28122_ACEOF
28123
28124cat >>$CONFIG_STATUS <<\_ACEOF
28125# If no file are specified by the user, then we need to provide default
28126# value.  By we need to know if files were specified by the user.
28127ac_need_defaults=:
28128while test $# != 0
28129do
28130  case $1 in
28131  --*=*)
28132    ac_option=`expr "x$1" : 'x\([^=]*\)='`
28133    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
28134    ac_shift=:
28135    ;;
28136  -*)
28137    ac_option=$1
28138    ac_optarg=$2
28139    ac_shift=shift
28140    ;;
28141  *) # This is not an option, so the user has probably given explicit
28142     # arguments.
28143     ac_option=$1
28144     ac_need_defaults=false;;
28145  esac
28146
28147  case $ac_option in
28148  # Handling of the options.
28149_ACEOF
28150cat >>$CONFIG_STATUS <<\_ACEOF
28151  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28152    ac_cs_recheck=: ;;
28153  --version | --vers* | -V )
28154    echo "$ac_cs_version"; exit 0 ;;
28155  --he | --h)
28156    # Conflict between --help and --header
28157    { { echo "$as_me:$LINENO: error: ambiguous option: $1
28158Try \`$0 --help' for more information." >&5
28159echo "$as_me: error: ambiguous option: $1
28160Try \`$0 --help' for more information." >&2;}
28161   { (exit 1); exit 1; }; };;
28162  --help | --hel | -h )
28163    echo "$ac_cs_usage"; exit 0 ;;
28164  --debug | --d* | -d )
28165    debug=: ;;
28166  --file | --fil | --fi | --f )
28167    $ac_shift
28168    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
28169    ac_need_defaults=false;;
28170  --header | --heade | --head | --hea )
28171    $ac_shift
28172    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
28173    ac_need_defaults=false;;
28174  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28175  | -silent | --silent | --silen | --sile | --sil | --si | --s)
28176    ac_cs_silent=: ;;
28177
28178  # This is an error.
28179  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
28180Try \`$0 --help' for more information." >&5
28181echo "$as_me: error: unrecognized option: $1
28182Try \`$0 --help' for more information." >&2;}
28183   { (exit 1); exit 1; }; } ;;
28184
28185  *) ac_config_targets="$ac_config_targets $1" ;;
28186
28187  esac
28188  shift
28189done
28190
28191ac_configure_extra_args=
28192
28193if $ac_cs_silent; then
28194  exec 6>/dev/null
28195  ac_configure_extra_args="$ac_configure_extra_args --silent"
28196fi
28197
28198_ACEOF
28199cat >>$CONFIG_STATUS <<_ACEOF
28200if \$ac_cs_recheck; then
28201  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
28202  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28203fi
28204
28205_ACEOF
28206
28207cat >>$CONFIG_STATUS <<_ACEOF
28208#
28209# INIT-COMMANDS section.
28210#
28211
28212AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
28213# Capture the value of obsolete ALL_LINGUAS because we need it to compute
28214    # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
28215    # from automake.
28216    eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
28217    # Capture the value of LINGUAS because we need it to compute CATALOGS.
28218    LINGUAS="${LINGUAS-%UNSET%}"
28219
28220
28221_ACEOF
28222
28223
28224
28225cat >>$CONFIG_STATUS <<\_ACEOF
28226for ac_config_target in $ac_config_targets
28227do
28228  case "$ac_config_target" in
28229  # Handling of arguments.
28230  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
28231  "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
28232  "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
28233  "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
28234  "modules/Makefile" ) CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
28235  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
28236  "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
28237  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
28238  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
28239echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
28240   { (exit 1); exit 1; }; };;
28241  esac
28242done
28243
28244# If the user did not use the arguments to specify the items to instantiate,
28245# then the envvar interface is used.  Set only those that are not.
28246# We use the long form for the default assignment because of an extremely
28247# bizarre bug on SunOS 4.1.3.
28248if $ac_need_defaults; then
28249  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28250  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28251  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28252fi
28253
28254# Have a temporary directory for convenience.  Make it in the build tree
28255# simply because there is no reason to put it here, and in addition,
28256# creating and moving files from /tmp can sometimes cause problems.
28257# Create a temporary directory, and hook for its removal unless debugging.
28258$debug ||
28259{
28260  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
28261  trap '{ (exit 1); exit 1; }' 1 2 13 15
28262}
28263
28264# Create a (secure) tmp directory for tmp files.
28265
28266{
28267  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
28268  test -n "$tmp" && test -d "$tmp"
28269}  ||
28270{
28271  tmp=./confstat$$-$RANDOM
28272  (umask 077 && mkdir $tmp)
28273} ||
28274{
28275   echo "$me: cannot create a temporary directory in ." >&2
28276   { (exit 1); exit 1; }
28277}
28278
28279_ACEOF
28280
28281cat >>$CONFIG_STATUS <<_ACEOF
28282
28283#
28284# CONFIG_FILES section.
28285#
28286
28287# No need to generate the scripts if there are no CONFIG_FILES.
28288# This happens for instance when ./config.status config.h
28289if test -n "\$CONFIG_FILES"; then
28290  # Protect against being on the right side of a sed subst in config.status.
28291  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
28292   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
28293s,@SHELL@,$SHELL,;t t
28294s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
28295s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
28296s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
28297s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
28298s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
28299s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
28300s,@exec_prefix@,$exec_prefix,;t t
28301s,@prefix@,$prefix,;t t
28302s,@program_transform_name@,$program_transform_name,;t t
28303s,@bindir@,$bindir,;t t
28304s,@sbindir@,$sbindir,;t t
28305s,@libexecdir@,$libexecdir,;t t
28306s,@datadir@,$datadir,;t t
28307s,@sysconfdir@,$sysconfdir,;t t
28308s,@sharedstatedir@,$sharedstatedir,;t t
28309s,@localstatedir@,$localstatedir,;t t
28310s,@libdir@,$libdir,;t t
28311s,@includedir@,$includedir,;t t
28312s,@oldincludedir@,$oldincludedir,;t t
28313s,@infodir@,$infodir,;t t
28314s,@mandir@,$mandir,;t t
28315s,@build_alias@,$build_alias,;t t
28316s,@host_alias@,$host_alias,;t t
28317s,@target_alias@,$target_alias,;t t
28318s,@DEFS@,$DEFS,;t t
28319s,@ECHO_C@,$ECHO_C,;t t
28320s,@ECHO_N@,$ECHO_N,;t t
28321s,@ECHO_T@,$ECHO_T,;t t
28322s,@LIBS@,$LIBS,;t t
28323s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
28324s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
28325s,@INSTALL_DATA@,$INSTALL_DATA,;t t
28326s,@CYGPATH_W@,$CYGPATH_W,;t t
28327s,@PACKAGE@,$PACKAGE,;t t
28328s,@VERSION@,$VERSION,;t t
28329s,@ACLOCAL@,$ACLOCAL,;t t
28330s,@AUTOCONF@,$AUTOCONF,;t t
28331s,@AUTOMAKE@,$AUTOMAKE,;t t
28332s,@AUTOHEADER@,$AUTOHEADER,;t t
28333s,@MAKEINFO@,$MAKEINFO,;t t
28334s,@AMTAR@,$AMTAR,;t t
28335s,@install_sh@,$install_sh,;t t
28336s,@STRIP@,$STRIP,;t t
28337s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
28338s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
28339s,@AWK@,$AWK,;t t
28340s,@SET_MAKE@,$SET_MAKE,;t t
28341s,@am__leading_dot@,$am__leading_dot,;t t
28342s,@CC@,$CC,;t t
28343s,@CFLAGS@,$CFLAGS,;t t
28344s,@LDFLAGS@,$LDFLAGS,;t t
28345s,@CPPFLAGS@,$CPPFLAGS,;t t
28346s,@ac_ct_CC@,$ac_ct_CC,;t t
28347s,@EXEEXT@,$EXEEXT,;t t
28348s,@OBJEXT@,$OBJEXT,;t t
28349s,@DEPDIR@,$DEPDIR,;t t
28350s,@am__include@,$am__include,;t t
28351s,@am__quote@,$am__quote,;t t
28352s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
28353s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
28354s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
28355s,@CCDEPMODE@,$CCDEPMODE,;t t
28356s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
28357s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
28358s,@CPP@,$CPP,;t t
28359s,@EGREP@,$EGREP,;t t
28360s,@build@,$build,;t t
28361s,@build_cpu@,$build_cpu,;t t
28362s,@build_vendor@,$build_vendor,;t t
28363s,@build_os@,$build_os,;t t
28364s,@host@,$host,;t t
28365s,@host_cpu@,$host_cpu,;t t
28366s,@host_vendor@,$host_vendor,;t t
28367s,@host_os@,$host_os,;t t
28368s,@LN_S@,$LN_S,;t t
28369s,@ECHO@,$ECHO,;t t
28370s,@AR@,$AR,;t t
28371s,@ac_ct_AR@,$ac_ct_AR,;t t
28372s,@RANLIB@,$RANLIB,;t t
28373s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
28374s,@CXX@,$CXX,;t t
28375s,@CXXFLAGS@,$CXXFLAGS,;t t
28376s,@ac_ct_CXX@,$ac_ct_CXX,;t t
28377s,@CXXDEPMODE@,$CXXDEPMODE,;t t
28378s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
28379s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
28380s,@CXXCPP@,$CXXCPP,;t t
28381s,@F77@,$F77,;t t
28382s,@FFLAGS@,$FFLAGS,;t t
28383s,@ac_ct_F77@,$ac_ct_F77,;t t
28384s,@LIBTOOL@,$LIBTOOL,;t t
28385s,@with_gzip@,$with_gzip,;t t
28386s,@X_CFLAGS@,$X_CFLAGS,;t t
28387s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
28388s,@X_LIBS@,$X_LIBS,;t t
28389s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
28390s,@LCLIBS@,$LCLIBS,;t t
28391s,@PROGS@,$PROGS,;t t
28392s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
28393s,@MSGFMT@,$MSGFMT,;t t
28394s,@GMSGFMT@,$GMSGFMT,;t t
28395s,@XGETTEXT@,$XGETTEXT,;t t
28396s,@MSGMERGE@,$MSGMERGE,;t t
28397s,@ALLOCA@,$ALLOCA,;t t
28398s,@GLIBC21@,$GLIBC21,;t t
28399s,@LIBICONV@,$LIBICONV,;t t
28400s,@LTLIBICONV@,$LTLIBICONV,;t t
28401s,@INTLBISON@,$INTLBISON,;t t
28402s,@USE_NLS@,$USE_NLS,;t t
28403s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
28404s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
28405s,@CATOBJEXT@,$CATOBJEXT,;t t
28406s,@INTLOBJS@,$INTLOBJS,;t t
28407s,@DATADIRNAME@,$DATADIRNAME,;t t
28408s,@INSTOBJEXT@,$INSTOBJEXT,;t t
28409s,@GENCAT@,$GENCAT,;t t
28410s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
28411s,@INTLLIBS@,$INTLLIBS,;t t
28412s,@LIBINTL@,$LIBINTL,;t t
28413s,@LTLIBINTL@,$LTLIBINTL,;t t
28414s,@POSUB@,$POSUB,;t t
28415s,@LIBOBJS@,$LIBOBJS,;t t
28416s,@LTLIBOBJS@,$LTLIBOBJS,;t t
28417CEOF
28418
28419_ACEOF
28420
28421  cat >>$CONFIG_STATUS <<\_ACEOF
28422  # Split the substitutions into bite-sized pieces for seds with
28423  # small command number limits, like on Digital OSF/1 and HP-UX.
28424  ac_max_sed_lines=48
28425  ac_sed_frag=1 # Number of current file.
28426  ac_beg=1 # First line for current file.
28427  ac_end=$ac_max_sed_lines # Line after last line for current file.
28428  ac_more_lines=:
28429  ac_sed_cmds=
28430  while $ac_more_lines; do
28431    if test $ac_beg -gt 1; then
28432      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
28433    else
28434      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
28435    fi
28436    if test ! -s $tmp/subs.frag; then
28437      ac_more_lines=false
28438    else
28439      # The purpose of the label and of the branching condition is to
28440      # speed up the sed processing (if there are no `@' at all, there
28441      # is no need to browse any of the substitutions).
28442      # These are the two extra sed commands mentioned above.
28443      (echo ':t
28444  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
28445      if test -z "$ac_sed_cmds"; then
28446	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
28447      else
28448	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
28449      fi
28450      ac_sed_frag=`expr $ac_sed_frag + 1`
28451      ac_beg=$ac_end
28452      ac_end=`expr $ac_end + $ac_max_sed_lines`
28453    fi
28454  done
28455  if test -z "$ac_sed_cmds"; then
28456    ac_sed_cmds=cat
28457  fi
28458fi # test -n "$CONFIG_FILES"
28459
28460_ACEOF
28461cat >>$CONFIG_STATUS <<\_ACEOF
28462for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
28463  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
28464  case $ac_file in
28465  - | *:- | *:-:* ) # input from stdin
28466	cat >$tmp/stdin
28467	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28468	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
28469  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28470	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
28471  * )   ac_file_in=$ac_file.in ;;
28472  esac
28473
28474  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
28475  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
28476$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28477	 X"$ac_file" : 'X\(//\)[^/]' \| \
28478	 X"$ac_file" : 'X\(//\)$' \| \
28479	 X"$ac_file" : 'X\(/\)' \| \
28480	 .     : '\(.\)' 2>/dev/null ||
28481echo X"$ac_file" |
28482    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28483  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28484  	  /^X\(\/\/\)$/{ s//\1/; q; }
28485  	  /^X\(\/\).*/{ s//\1/; q; }
28486  	  s/.*/./; q'`
28487  { if $as_mkdir_p; then
28488    mkdir -p "$ac_dir"
28489  else
28490    as_dir="$ac_dir"
28491    as_dirs=
28492    while test ! -d "$as_dir"; do
28493      as_dirs="$as_dir $as_dirs"
28494      as_dir=`(dirname "$as_dir") 2>/dev/null ||
28495$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28496	 X"$as_dir" : 'X\(//\)[^/]' \| \
28497	 X"$as_dir" : 'X\(//\)$' \| \
28498	 X"$as_dir" : 'X\(/\)' \| \
28499	 .     : '\(.\)' 2>/dev/null ||
28500echo X"$as_dir" |
28501    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28502  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28503  	  /^X\(\/\/\)$/{ s//\1/; q; }
28504  	  /^X\(\/\).*/{ s//\1/; q; }
28505  	  s/.*/./; q'`
28506    done
28507    test ! -n "$as_dirs" || mkdir $as_dirs
28508  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28509echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28510   { (exit 1); exit 1; }; }; }
28511
28512  ac_builddir=.
28513
28514if test "$ac_dir" != .; then
28515  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28516  # A "../" for each directory in $ac_dir_suffix.
28517  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
28518else
28519  ac_dir_suffix= ac_top_builddir=
28520fi
28521
28522case $srcdir in
28523  .)  # No --srcdir option.  We are building in place.
28524    ac_srcdir=.
28525    if test -z "$ac_top_builddir"; then
28526       ac_top_srcdir=.
28527    else
28528       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
28529    fi ;;
28530  [\\/]* | ?:[\\/]* )  # Absolute path.
28531    ac_srcdir=$srcdir$ac_dir_suffix;
28532    ac_top_srcdir=$srcdir ;;
28533  *) # Relative path.
28534    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
28535    ac_top_srcdir=$ac_top_builddir$srcdir ;;
28536esac
28537
28538# Do not use `cd foo && pwd` to compute absolute paths, because
28539# the directories may not exist.
28540case `pwd` in
28541.) ac_abs_builddir="$ac_dir";;
28542*)
28543  case "$ac_dir" in
28544  .) ac_abs_builddir=`pwd`;;
28545  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
28546  *) ac_abs_builddir=`pwd`/"$ac_dir";;
28547  esac;;
28548esac
28549case $ac_abs_builddir in
28550.) ac_abs_top_builddir=${ac_top_builddir}.;;
28551*)
28552  case ${ac_top_builddir}. in
28553  .) ac_abs_top_builddir=$ac_abs_builddir;;
28554  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
28555  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
28556  esac;;
28557esac
28558case $ac_abs_builddir in
28559.) ac_abs_srcdir=$ac_srcdir;;
28560*)
28561  case $ac_srcdir in
28562  .) ac_abs_srcdir=$ac_abs_builddir;;
28563  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
28564  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
28565  esac;;
28566esac
28567case $ac_abs_builddir in
28568.) ac_abs_top_srcdir=$ac_top_srcdir;;
28569*)
28570  case $ac_top_srcdir in
28571  .) ac_abs_top_srcdir=$ac_abs_builddir;;
28572  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
28573  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
28574  esac;;
28575esac
28576
28577
28578  case $INSTALL in
28579  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28580  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
28581  esac
28582
28583  # Let's still pretend it is `configure' which instantiates (i.e., don't
28584  # use $as_me), people would be surprised to read:
28585  #    /* config.h.  Generated by config.status.  */
28586  if test x"$ac_file" = x-; then
28587    configure_input=
28588  else
28589    configure_input="$ac_file.  "
28590  fi
28591  configure_input=$configure_input"Generated from `echo $ac_file_in |
28592				     sed 's,.*/,,'` by configure."
28593
28594  # First look for the input files in the build tree, otherwise in the
28595  # src tree.
28596  ac_file_inputs=`IFS=:
28597    for f in $ac_file_in; do
28598      case $f in
28599      -) echo $tmp/stdin ;;
28600      [\\/$]*)
28601	 # Absolute (can't be DOS-style, as IFS=:)
28602	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28603echo "$as_me: error: cannot find input file: $f" >&2;}
28604   { (exit 1); exit 1; }; }
28605	 echo "$f";;
28606      *) # Relative
28607	 if test -f "$f"; then
28608	   # Build tree
28609	   echo "$f"
28610	 elif test -f "$srcdir/$f"; then
28611	   # Source tree
28612	   echo "$srcdir/$f"
28613	 else
28614	   # /dev/null tree
28615	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28616echo "$as_me: error: cannot find input file: $f" >&2;}
28617   { (exit 1); exit 1; }; }
28618	 fi;;
28619      esac
28620    done` || { (exit 1); exit 1; }
28621
28622  if test x"$ac_file" != x-; then
28623    { echo "$as_me:$LINENO: creating $ac_file" >&5
28624echo "$as_me: creating $ac_file" >&6;}
28625    rm -f "$ac_file"
28626  fi
28627_ACEOF
28628cat >>$CONFIG_STATUS <<_ACEOF
28629  sed "$ac_vpsub
28630$extrasub
28631_ACEOF
28632cat >>$CONFIG_STATUS <<\_ACEOF
28633:t
28634/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28635s,@configure_input@,$configure_input,;t t
28636s,@srcdir@,$ac_srcdir,;t t
28637s,@abs_srcdir@,$ac_abs_srcdir,;t t
28638s,@top_srcdir@,$ac_top_srcdir,;t t
28639s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
28640s,@builddir@,$ac_builddir,;t t
28641s,@abs_builddir@,$ac_abs_builddir,;t t
28642s,@top_builddir@,$ac_top_builddir,;t t
28643s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
28644s,@INSTALL@,$ac_INSTALL,;t t
28645" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
28646  rm -f $tmp/stdin
28647  if test x"$ac_file" != x-; then
28648    mv $tmp/out $ac_file
28649  else
28650    cat $tmp/out
28651    rm -f $tmp/out
28652  fi
28653
28654done
28655_ACEOF
28656cat >>$CONFIG_STATUS <<\_ACEOF
28657
28658#
28659# CONFIG_HEADER section.
28660#
28661
28662# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
28663# NAME is the cpp macro being defined and VALUE is the value it is being given.
28664#
28665# ac_d sets the value in "#define NAME VALUE" lines.
28666ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
28667ac_dB='[	 ].*$,\1#\2'
28668ac_dC=' '
28669ac_dD=',;t'
28670# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
28671ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
28672ac_uB='$,\1#\2define\3'
28673ac_uC=' '
28674ac_uD=',;t'
28675
28676for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
28677  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
28678  case $ac_file in
28679  - | *:- | *:-:* ) # input from stdin
28680	cat >$tmp/stdin
28681	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28682	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
28683  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28684	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
28685  * )   ac_file_in=$ac_file.in ;;
28686  esac
28687
28688  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
28689echo "$as_me: creating $ac_file" >&6;}
28690
28691  # First look for the input files in the build tree, otherwise in the
28692  # src tree.
28693  ac_file_inputs=`IFS=:
28694    for f in $ac_file_in; do
28695      case $f in
28696      -) echo $tmp/stdin ;;
28697      [\\/$]*)
28698	 # Absolute (can't be DOS-style, as IFS=:)
28699	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28700echo "$as_me: error: cannot find input file: $f" >&2;}
28701   { (exit 1); exit 1; }; }
28702	 # Do quote $f, to prevent DOS paths from being IFS'd.
28703	 echo "$f";;
28704      *) # Relative
28705	 if test -f "$f"; then
28706	   # Build tree
28707	   echo "$f"
28708	 elif test -f "$srcdir/$f"; then
28709	   # Source tree
28710	   echo "$srcdir/$f"
28711	 else
28712	   # /dev/null tree
28713	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28714echo "$as_me: error: cannot find input file: $f" >&2;}
28715   { (exit 1); exit 1; }; }
28716	 fi;;
28717      esac
28718    done` || { (exit 1); exit 1; }
28719  # Remove the trailing spaces.
28720  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
28721
28722_ACEOF
28723
28724# Transform confdefs.h into two sed scripts, `conftest.defines' and
28725# `conftest.undefs', that substitutes the proper values into
28726# config.h.in to produce config.h.  The first handles `#define'
28727# templates, and the second `#undef' templates.
28728# And first: Protect against being on the right side of a sed subst in
28729# config.status.  Protect against being in an unquoted here document
28730# in config.status.
28731rm -f conftest.defines conftest.undefs
28732# Using a here document instead of a string reduces the quoting nightmare.
28733# Putting comments in sed scripts is not portable.
28734#
28735# `end' is used to avoid that the second main sed command (meant for
28736# 0-ary CPP macros) applies to n-ary macro definitions.
28737# See the Autoconf documentation for `clear'.
28738cat >confdef2sed.sed <<\_ACEOF
28739s/[\\&,]/\\&/g
28740s,[\\$`],\\&,g
28741t clear
28742: clear
28743s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
28744t end
28745s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
28746: end
28747_ACEOF
28748# If some macros were called several times there might be several times
28749# the same #defines, which is useless.  Nevertheless, we may not want to
28750# sort them, since we want the *last* AC-DEFINE to be honored.
28751uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
28752sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
28753rm -f confdef2sed.sed
28754
28755# This sed command replaces #undef with comments.  This is necessary, for
28756# example, in the case of _POSIX_SOURCE, which is predefined and required
28757# on some systems where configure will not decide to define it.
28758cat >>conftest.undefs <<\_ACEOF
28759s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
28760_ACEOF
28761
28762# Break up conftest.defines because some shells have a limit on the size
28763# of here documents, and old seds have small limits too (100 cmds).
28764echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
28765echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
28766echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
28767echo '  :' >>$CONFIG_STATUS
28768rm -f conftest.tail
28769while grep . conftest.defines >/dev/null
28770do
28771  # Write a limited-size here document to $tmp/defines.sed.
28772  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
28773  # Speed up: don't consider the non `#define' lines.
28774  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
28775  # Work around the forget-to-reset-the-flag bug.
28776  echo 't clr' >>$CONFIG_STATUS
28777  echo ': clr' >>$CONFIG_STATUS
28778  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
28779  echo 'CEOF
28780  sed -f $tmp/defines.sed $tmp/in >$tmp/out
28781  rm -f $tmp/in
28782  mv $tmp/out $tmp/in
28783' >>$CONFIG_STATUS
28784  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
28785  rm -f conftest.defines
28786  mv conftest.tail conftest.defines
28787done
28788rm -f conftest.defines
28789echo '  fi # grep' >>$CONFIG_STATUS
28790echo >>$CONFIG_STATUS
28791
28792# Break up conftest.undefs because some shells have a limit on the size
28793# of here documents, and old seds have small limits too (100 cmds).
28794echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
28795rm -f conftest.tail
28796while grep . conftest.undefs >/dev/null
28797do
28798  # Write a limited-size here document to $tmp/undefs.sed.
28799  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
28800  # Speed up: don't consider the non `#undef'
28801  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
28802  # Work around the forget-to-reset-the-flag bug.
28803  echo 't clr' >>$CONFIG_STATUS
28804  echo ': clr' >>$CONFIG_STATUS
28805  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
28806  echo 'CEOF
28807  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
28808  rm -f $tmp/in
28809  mv $tmp/out $tmp/in
28810' >>$CONFIG_STATUS
28811  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
28812  rm -f conftest.undefs
28813  mv conftest.tail conftest.undefs
28814done
28815rm -f conftest.undefs
28816
28817cat >>$CONFIG_STATUS <<\_ACEOF
28818  # Let's still pretend it is `configure' which instantiates (i.e., don't
28819  # use $as_me), people would be surprised to read:
28820  #    /* config.h.  Generated by config.status.  */
28821  if test x"$ac_file" = x-; then
28822    echo "/* Generated by configure.  */" >$tmp/config.h
28823  else
28824    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
28825  fi
28826  cat $tmp/in >>$tmp/config.h
28827  rm -f $tmp/in
28828  if test x"$ac_file" != x-; then
28829    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
28830      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28831echo "$as_me: $ac_file is unchanged" >&6;}
28832    else
28833      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
28834$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28835	 X"$ac_file" : 'X\(//\)[^/]' \| \
28836	 X"$ac_file" : 'X\(//\)$' \| \
28837	 X"$ac_file" : 'X\(/\)' \| \
28838	 .     : '\(.\)' 2>/dev/null ||
28839echo X"$ac_file" |
28840    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28841  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28842  	  /^X\(\/\/\)$/{ s//\1/; q; }
28843  	  /^X\(\/\).*/{ s//\1/; q; }
28844  	  s/.*/./; q'`
28845      { if $as_mkdir_p; then
28846    mkdir -p "$ac_dir"
28847  else
28848    as_dir="$ac_dir"
28849    as_dirs=
28850    while test ! -d "$as_dir"; do
28851      as_dirs="$as_dir $as_dirs"
28852      as_dir=`(dirname "$as_dir") 2>/dev/null ||
28853$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28854	 X"$as_dir" : 'X\(//\)[^/]' \| \
28855	 X"$as_dir" : 'X\(//\)$' \| \
28856	 X"$as_dir" : 'X\(/\)' \| \
28857	 .     : '\(.\)' 2>/dev/null ||
28858echo X"$as_dir" |
28859    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28860  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28861  	  /^X\(\/\/\)$/{ s//\1/; q; }
28862  	  /^X\(\/\).*/{ s//\1/; q; }
28863  	  s/.*/./; q'`
28864    done
28865    test ! -n "$as_dirs" || mkdir $as_dirs
28866  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28867echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28868   { (exit 1); exit 1; }; }; }
28869
28870      rm -f $ac_file
28871      mv $tmp/config.h $ac_file
28872    fi
28873  else
28874    cat $tmp/config.h
28875    rm -f $tmp/config.h
28876  fi
28877# Compute $ac_file's index in $config_headers.
28878_am_stamp_count=1
28879for _am_header in $config_headers :; do
28880  case $_am_header in
28881    $ac_file | $ac_file:* )
28882      break ;;
28883    * )
28884      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28885  esac
28886done
28887echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
28888$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28889	 X$ac_file : 'X\(//\)[^/]' \| \
28890	 X$ac_file : 'X\(//\)$' \| \
28891	 X$ac_file : 'X\(/\)' \| \
28892	 .     : '\(.\)' 2>/dev/null ||
28893echo X$ac_file |
28894    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28895  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28896  	  /^X\(\/\/\)$/{ s//\1/; q; }
28897  	  /^X\(\/\).*/{ s//\1/; q; }
28898  	  s/.*/./; q'`/stamp-h$_am_stamp_count
28899done
28900_ACEOF
28901cat >>$CONFIG_STATUS <<\_ACEOF
28902
28903#
28904# CONFIG_COMMANDS section.
28905#
28906for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
28907  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
28908  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
28909  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
28910$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28911	 X"$ac_dest" : 'X\(//\)[^/]' \| \
28912	 X"$ac_dest" : 'X\(//\)$' \| \
28913	 X"$ac_dest" : 'X\(/\)' \| \
28914	 .     : '\(.\)' 2>/dev/null ||
28915echo X"$ac_dest" |
28916    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28917  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28918  	  /^X\(\/\/\)$/{ s//\1/; q; }
28919  	  /^X\(\/\).*/{ s//\1/; q; }
28920  	  s/.*/./; q'`
28921  { if $as_mkdir_p; then
28922    mkdir -p "$ac_dir"
28923  else
28924    as_dir="$ac_dir"
28925    as_dirs=
28926    while test ! -d "$as_dir"; do
28927      as_dirs="$as_dir $as_dirs"
28928      as_dir=`(dirname "$as_dir") 2>/dev/null ||
28929$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28930	 X"$as_dir" : 'X\(//\)[^/]' \| \
28931	 X"$as_dir" : 'X\(//\)$' \| \
28932	 X"$as_dir" : 'X\(/\)' \| \
28933	 .     : '\(.\)' 2>/dev/null ||
28934echo X"$as_dir" |
28935    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28936  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28937  	  /^X\(\/\/\)$/{ s//\1/; q; }
28938  	  /^X\(\/\).*/{ s//\1/; q; }
28939  	  s/.*/./; q'`
28940    done
28941    test ! -n "$as_dirs" || mkdir $as_dirs
28942  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28943echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28944   { (exit 1); exit 1; }; }; }
28945
28946  ac_builddir=.
28947
28948if test "$ac_dir" != .; then
28949  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28950  # A "../" for each directory in $ac_dir_suffix.
28951  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
28952else
28953  ac_dir_suffix= ac_top_builddir=
28954fi
28955
28956case $srcdir in
28957  .)  # No --srcdir option.  We are building in place.
28958    ac_srcdir=.
28959    if test -z "$ac_top_builddir"; then
28960       ac_top_srcdir=.
28961    else
28962       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
28963    fi ;;
28964  [\\/]* | ?:[\\/]* )  # Absolute path.
28965    ac_srcdir=$srcdir$ac_dir_suffix;
28966    ac_top_srcdir=$srcdir ;;
28967  *) # Relative path.
28968    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
28969    ac_top_srcdir=$ac_top_builddir$srcdir ;;
28970esac
28971
28972# Do not use `cd foo && pwd` to compute absolute paths, because
28973# the directories may not exist.
28974case `pwd` in
28975.) ac_abs_builddir="$ac_dir";;
28976*)
28977  case "$ac_dir" in
28978  .) ac_abs_builddir=`pwd`;;
28979  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
28980  *) ac_abs_builddir=`pwd`/"$ac_dir";;
28981  esac;;
28982esac
28983case $ac_abs_builddir in
28984.) ac_abs_top_builddir=${ac_top_builddir}.;;
28985*)
28986  case ${ac_top_builddir}. in
28987  .) ac_abs_top_builddir=$ac_abs_builddir;;
28988  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
28989  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
28990  esac;;
28991esac
28992case $ac_abs_builddir in
28993.) ac_abs_srcdir=$ac_srcdir;;
28994*)
28995  case $ac_srcdir in
28996  .) ac_abs_srcdir=$ac_abs_builddir;;
28997  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
28998  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
28999  esac;;
29000esac
29001case $ac_abs_builddir in
29002.) ac_abs_top_srcdir=$ac_top_srcdir;;
29003*)
29004  case $ac_top_srcdir in
29005  .) ac_abs_top_srcdir=$ac_abs_builddir;;
29006  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
29007  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
29008  esac;;
29009esac
29010
29011
29012  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
29013echo "$as_me: executing $ac_dest commands" >&6;}
29014  case $ac_dest in
29015    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
29016  # Strip MF so we end up with the name of the file.
29017  mf=`echo "$mf" | sed -e 's/:.*$//'`
29018  # Check whether this is an Automake generated Makefile or not.
29019  # We used to match only the files named `Makefile.in', but
29020  # some people rename them; so instead we look at the file content.
29021  # Grep'ing the first line is not enough: some people post-process
29022  # each Makefile.in and add a new line on top of each file to say so.
29023  # So let's grep whole file.
29024  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
29025    dirpart=`(dirname "$mf") 2>/dev/null ||
29026$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29027	 X"$mf" : 'X\(//\)[^/]' \| \
29028	 X"$mf" : 'X\(//\)$' \| \
29029	 X"$mf" : 'X\(/\)' \| \
29030	 .     : '\(.\)' 2>/dev/null ||
29031echo X"$mf" |
29032    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29033  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29034  	  /^X\(\/\/\)$/{ s//\1/; q; }
29035  	  /^X\(\/\).*/{ s//\1/; q; }
29036  	  s/.*/./; q'`
29037  else
29038    continue
29039  fi
29040  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
29041  # Extract the definition of DEP_FILES from the Makefile without
29042  # running `make'.
29043  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
29044  test -z "$DEPDIR" && continue
29045  # When using ansi2knr, U may be empty or an underscore; expand it
29046  U=`sed -n -e '/^U = / s///p' < "$mf"`
29047  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
29048  # We invoke sed twice because it is the simplest approach to
29049  # changing $(DEPDIR) to its actual value in the expansion.
29050  for file in `sed -n -e '
29051    /^DEP_FILES = .*\\\\$/ {
29052      s/^DEP_FILES = //
29053      :loop
29054	s/\\\\$//
29055	p
29056	n
29057	/\\\\$/ b loop
29058      p
29059    }
29060    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
29061       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
29062    # Make sure the directory exists.
29063    test -f "$dirpart/$file" && continue
29064    fdir=`(dirname "$file") 2>/dev/null ||
29065$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29066	 X"$file" : 'X\(//\)[^/]' \| \
29067	 X"$file" : 'X\(//\)$' \| \
29068	 X"$file" : 'X\(/\)' \| \
29069	 .     : '\(.\)' 2>/dev/null ||
29070echo X"$file" |
29071    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29072  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29073  	  /^X\(\/\/\)$/{ s//\1/; q; }
29074  	  /^X\(\/\).*/{ s//\1/; q; }
29075  	  s/.*/./; q'`
29076    { if $as_mkdir_p; then
29077    mkdir -p $dirpart/$fdir
29078  else
29079    as_dir=$dirpart/$fdir
29080    as_dirs=
29081    while test ! -d "$as_dir"; do
29082      as_dirs="$as_dir $as_dirs"
29083      as_dir=`(dirname "$as_dir") 2>/dev/null ||
29084$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29085	 X"$as_dir" : 'X\(//\)[^/]' \| \
29086	 X"$as_dir" : 'X\(//\)$' \| \
29087	 X"$as_dir" : 'X\(/\)' \| \
29088	 .     : '\(.\)' 2>/dev/null ||
29089echo X"$as_dir" |
29090    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29091  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29092  	  /^X\(\/\/\)$/{ s//\1/; q; }
29093  	  /^X\(\/\).*/{ s//\1/; q; }
29094  	  s/.*/./; q'`
29095    done
29096    test ! -n "$as_dirs" || mkdir $as_dirs
29097  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
29098echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
29099   { (exit 1); exit 1; }; }; }
29100
29101    # echo "creating $dirpart/$file"
29102    echo '# dummy' > "$dirpart/$file"
29103  done
29104done
29105 ;;
29106    default-1 )
29107    for ac_file in $CONFIG_FILES; do
29108      # Support "outfile[:infile[:infile...]]"
29109      case "$ac_file" in
29110        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
29111      esac
29112      # PO directories have a Makefile.in generated from Makefile.in.in.
29113      case "$ac_file" in */Makefile.in)
29114        # Adjust a relative srcdir.
29115        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
29116        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
29117        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
29118        # In autoconf-2.13 it is called $ac_given_srcdir.
29119        # In autoconf-2.50 it is called $srcdir.
29120        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
29121        case "$ac_given_srcdir" in
29122          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
29123          /*) top_srcdir="$ac_given_srcdir" ;;
29124          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
29125        esac
29126        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
29127          rm -f "$ac_dir/POTFILES"
29128          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
29129          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
29130          # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
29131          # on $ac_dir but don't depend on user-specified configuration
29132          # parameters.
29133          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
29134            # The LINGUAS file contains the set of available languages.
29135            if test -n "$ALL_LINGUAS"; then
29136              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
29137            fi
29138            ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
29139            # Hide the ALL_LINGUAS assigment from automake.
29140            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
29141          fi
29142          case "$ac_given_srcdir" in
29143            .) srcdirpre= ;;
29144            *) srcdirpre='$(srcdir)/' ;;
29145          esac
29146          POFILES=
29147          GMOFILES=
29148          UPDATEPOFILES=
29149          DUMMYPOFILES=
29150          for lang in $ALL_LINGUAS; do
29151            POFILES="$POFILES $srcdirpre$lang.po"
29152            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
29153            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
29154            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
29155          done
29156          # CATALOGS depends on both $ac_dir and the user's LINGUAS
29157          # environment variable.
29158          INST_LINGUAS=
29159          if test -n "$ALL_LINGUAS"; then
29160            for presentlang in $ALL_LINGUAS; do
29161              useit=no
29162              if test "%UNSET%" != "$LINGUAS"; then
29163                desiredlanguages="$LINGUAS"
29164              else
29165                desiredlanguages="$ALL_LINGUAS"
29166              fi
29167              for desiredlang in $desiredlanguages; do
29168                # Use the presentlang catalog if desiredlang is
29169                #   a. equal to presentlang, or
29170                #   b. a variant of presentlang (because in this case,
29171                #      presentlang can be used as a fallback for messages
29172                #      which are not translated in the desiredlang catalog).
29173                case "$desiredlang" in
29174                  "$presentlang"*) useit=yes;;
29175                esac
29176              done
29177              if test $useit = yes; then
29178                INST_LINGUAS="$INST_LINGUAS $presentlang"
29179              fi
29180            done
29181          fi
29182          CATALOGS=
29183          if test -n "$INST_LINGUAS"; then
29184            for lang in $INST_LINGUAS; do
29185              CATALOGS="$CATALOGS $lang.gmo"
29186            done
29187          fi
29188          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
29189          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
29190          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
29191            if test -f "$f"; then
29192              case "$f" in
29193                *.orig | *.bak | *~) ;;
29194                *) cat "$f" >> "$ac_dir/Makefile" ;;
29195              esac
29196            fi
29197          done
29198        fi
29199        ;;
29200      esac
29201    done ;;
29202  esac
29203done
29204_ACEOF
29205
29206cat >>$CONFIG_STATUS <<\_ACEOF
29207
29208{ (exit 0); exit 0; }
29209_ACEOF
29210chmod +x $CONFIG_STATUS
29211ac_clean_files=$ac_clean_files_save
29212
29213
29214# configure is writing to config.log, and then calls config.status.
29215# config.status does its own redirection, appending to config.log.
29216# Unfortunately, on DOS this fails, as config.log is still kept open
29217# by configure, so config.status won't be able to write to it; its
29218# output is simply discarded.  So we exec the FD to /dev/null,
29219# effectively closing config.log, so it can be properly (re)opened and
29220# appended to by config.status.  When coming back to configure, we
29221# need to make the FD available again.
29222if test "$no_create" != yes; then
29223  ac_cs_success=:
29224  ac_config_status_args=
29225  test "$silent" = yes &&
29226    ac_config_status_args="$ac_config_status_args --quiet"
29227  exec 5>/dev/null
29228  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29229  exec 5>>config.log
29230  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29231  # would make configure fail if this is the last instruction.
29232  $ac_cs_success || { (exit 1); exit 1; }
29233fi
29234
29235